@everymatrix/casino-play-random-game 1.56.0 → 1.56.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-play-random-game/casino-play-random-game.esm.js +1 -1
- package/dist/casino-play-random-game/p-2af16b90.entry.js +1 -0
- package/dist/casino-play-random-game/p-b74b1c99.js +2 -0
- package/dist/cjs/casino-play-random-game.cjs.entry.js +18 -38
- package/dist/cjs/casino-play-random-game.cjs.js +2 -2
- package/dist/cjs/{index-a0c0d6c2.js → index-1046d63d.js} +73 -208
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-play-random-game/casino-play-random-game.js +17 -59
- package/dist/esm/casino-play-random-game.entry.js +18 -38
- package/dist/esm/casino-play-random-game.js +3 -3
- package/dist/esm/{index-29915e18.js → index-510a6ba4.js} +73 -208
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/casino-play-random-game/p-aafe302e.js +0 -2
- package/dist/casino-play-random-game/p-ca888ed9.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'casino-play-random-game';
|
|
2
|
-
const BUILD = /* casino-play-random-game */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false,
|
|
2
|
+
const BUILD = /* casino-play-random-game */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
// src/client/client-host-ref.ts
|
|
14
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
15
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
16
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
17
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
19
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
16
|
const hostRef = {
|
|
21
17
|
$flags$: 0,
|
|
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
24
|
hostElement["s-p"] = [];
|
|
29
25
|
hostElement["s-rc"] = [];
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
33
28
|
};
|
|
34
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
35
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
66
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
67
62
|
/* webpackMode: "lazy" */
|
|
68
63
|
`./${bundleId}.entry.js${""}`
|
|
69
|
-
).then(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
cmpModules.set(bundleId, importedModule);
|
|
73
|
-
}
|
|
74
|
-
return importedModule[exportName];
|
|
75
|
-
},
|
|
76
|
-
(e) => {
|
|
77
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
78
67
|
}
|
|
79
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
80
70
|
};
|
|
81
71
|
|
|
82
72
|
// src/client/client-style.ts
|
|
83
73
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -139,6 +128,12 @@ var flush = () => {
|
|
|
139
128
|
};
|
|
140
129
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
141
130
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
+
|
|
132
|
+
// src/utils/constants.ts
|
|
133
|
+
var EMPTY_OBJ = {};
|
|
134
|
+
|
|
135
|
+
// src/utils/helpers.ts
|
|
136
|
+
var isDef = (v) => v != null;
|
|
142
137
|
var isComplexType = (o) => {
|
|
143
138
|
o = typeof o;
|
|
144
139
|
return o === "object" || o === "function";
|
|
@@ -321,40 +316,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
321
316
|
}
|
|
322
317
|
if (!appliedStyles.has(scopeId2)) {
|
|
323
318
|
{
|
|
324
|
-
styleElm =
|
|
319
|
+
styleElm = doc.createElement("style");
|
|
325
320
|
styleElm.innerHTML = style;
|
|
326
321
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
327
322
|
if (nonce != null) {
|
|
328
323
|
styleElm.setAttribute("nonce", nonce);
|
|
329
324
|
}
|
|
330
|
-
|
|
331
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
332
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
333
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
334
|
-
styleContainerNode.insertBefore(
|
|
335
|
-
styleElm,
|
|
336
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
337
|
-
);
|
|
338
|
-
} else if ("host" in styleContainerNode) {
|
|
339
|
-
if (supportsConstructableStylesheets) {
|
|
340
|
-
const stylesheet = new CSSStyleSheet();
|
|
341
|
-
stylesheet.replaceSync(style);
|
|
342
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
343
|
-
} else {
|
|
344
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
345
|
-
if (existingStyleContainer) {
|
|
346
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
347
|
-
} else {
|
|
348
|
-
styleContainerNode.prepend(styleElm);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
} else {
|
|
352
|
-
styleContainerNode.append(styleElm);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
356
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
357
|
-
}
|
|
325
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
358
326
|
}
|
|
359
327
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
360
328
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -377,25 +345,23 @@ var attachStyles = (hostRef) => {
|
|
|
377
345
|
const scopeId2 = addStyle(
|
|
378
346
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
379
347
|
cmpMeta);
|
|
380
|
-
if (
|
|
348
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
381
349
|
elm["s-sc"] = scopeId2;
|
|
382
350
|
elm.classList.add(scopeId2 + "-h");
|
|
383
351
|
}
|
|
384
352
|
endAttachStyles();
|
|
385
353
|
};
|
|
386
354
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
387
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
355
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
388
356
|
if (oldValue !== newValue) {
|
|
389
357
|
let isProp = isMemberInElement(elm, memberName);
|
|
390
358
|
let ln = memberName.toLowerCase();
|
|
391
359
|
if (memberName === "class") {
|
|
392
360
|
const classList = elm.classList;
|
|
393
361
|
const oldClasses = parseClassList(oldValue);
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
398
|
-
}
|
|
362
|
+
const newClasses = parseClassList(newValue);
|
|
363
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
364
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
399
365
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
400
366
|
if (newValue) {
|
|
401
367
|
newValue(elm);
|
|
@@ -427,13 +393,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
427
393
|
if (memberName === "list") {
|
|
428
394
|
isProp = false;
|
|
429
395
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
430
|
-
|
|
431
|
-
elm[memberName] = n;
|
|
432
|
-
} else {
|
|
433
|
-
elm.setAttribute(memberName, n);
|
|
434
|
-
}
|
|
396
|
+
elm[memberName] = n;
|
|
435
397
|
}
|
|
436
|
-
} else
|
|
398
|
+
} else {
|
|
437
399
|
elm[memberName] = newValue;
|
|
438
400
|
}
|
|
439
401
|
} catch (e) {
|
|
@@ -455,44 +417,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
455
417
|
}
|
|
456
418
|
};
|
|
457
419
|
var parseClassListRegex = /\s/;
|
|
458
|
-
var parseClassList = (value) =>
|
|
459
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
460
|
-
value = value.baseVal;
|
|
461
|
-
}
|
|
462
|
-
if (!value || typeof value !== "string") {
|
|
463
|
-
return [];
|
|
464
|
-
}
|
|
465
|
-
return value.split(parseClassListRegex);
|
|
466
|
-
};
|
|
420
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
467
421
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
468
422
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
469
423
|
|
|
470
424
|
// src/runtime/vdom/update-element.ts
|
|
471
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
425
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
472
426
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
473
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
474
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
427
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
428
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
475
429
|
{
|
|
476
430
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
477
431
|
if (!(memberName in newVnodeAttrs)) {
|
|
478
|
-
setAccessor(
|
|
479
|
-
elm,
|
|
480
|
-
memberName,
|
|
481
|
-
oldVnodeAttrs[memberName],
|
|
482
|
-
void 0,
|
|
483
|
-
isSvgMode2,
|
|
484
|
-
newVnode.$flags$);
|
|
432
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
485
433
|
}
|
|
486
434
|
}
|
|
487
435
|
}
|
|
488
436
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
489
|
-
setAccessor(
|
|
490
|
-
elm,
|
|
491
|
-
memberName,
|
|
492
|
-
oldVnodeAttrs[memberName],
|
|
493
|
-
newVnodeAttrs[memberName],
|
|
494
|
-
isSvgMode2,
|
|
495
|
-
newVnode.$flags$);
|
|
437
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
496
438
|
}
|
|
497
439
|
};
|
|
498
440
|
function sortedAttrNames(attrNames) {
|
|
@@ -504,10 +446,13 @@ function sortedAttrNames(attrNames) {
|
|
|
504
446
|
attrNames
|
|
505
447
|
);
|
|
506
448
|
}
|
|
449
|
+
|
|
450
|
+
// src/runtime/vdom/vdom-render.ts
|
|
451
|
+
var scopeId;
|
|
507
452
|
var hostTagName;
|
|
508
453
|
var useNativeShadowDom = false;
|
|
509
454
|
var isSvgMode = false;
|
|
510
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
455
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
511
456
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
512
457
|
let i2 = 0;
|
|
513
458
|
let elm;
|
|
@@ -521,6 +466,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
521
466
|
{
|
|
522
467
|
updateElement(null, newVNode2, isSvgMode);
|
|
523
468
|
}
|
|
469
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
470
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
471
|
+
}
|
|
524
472
|
if (newVNode2.$children$) {
|
|
525
473
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
526
474
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -650,9 +598,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
650
598
|
if (!isInitialRender) {
|
|
651
599
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
652
600
|
}
|
|
653
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
654
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
655
|
-
}
|
|
656
601
|
return true;
|
|
657
602
|
}
|
|
658
603
|
return false;
|
|
@@ -675,10 +620,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
675
620
|
elm.textContent = "";
|
|
676
621
|
}
|
|
677
622
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
678
|
-
} else if (
|
|
679
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
680
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
681
|
-
) {
|
|
623
|
+
} else if (oldChildren !== null) {
|
|
682
624
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
683
625
|
}
|
|
684
626
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -692,9 +634,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
692
634
|
}
|
|
693
635
|
};
|
|
694
636
|
var insertBefore = (parent, newNode, reference) => {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
}
|
|
637
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
638
|
+
return inserted;
|
|
698
639
|
};
|
|
699
640
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
700
641
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -719,21 +660,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
719
660
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
720
661
|
hostRef.$vnode$ = rootVnode;
|
|
721
662
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
722
|
-
|
|
663
|
+
{
|
|
664
|
+
scopeId = hostElm["s-sc"];
|
|
665
|
+
}
|
|
666
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
723
667
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
724
668
|
};
|
|
725
669
|
|
|
726
670
|
// src/runtime/update-component.ts
|
|
727
671
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
728
672
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
729
|
-
|
|
730
|
-
new Promise(
|
|
731
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
732
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
733
|
-
r();
|
|
734
|
-
}
|
|
735
|
-
)
|
|
736
|
-
);
|
|
673
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
737
674
|
}
|
|
738
675
|
};
|
|
739
676
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -760,7 +697,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
760
697
|
let maybePromise;
|
|
761
698
|
if (isInitialLoad) {
|
|
762
699
|
{
|
|
763
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
700
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
764
701
|
}
|
|
765
702
|
}
|
|
766
703
|
endSchedule();
|
|
@@ -834,7 +771,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
834
771
|
addHydratedFlag(elm);
|
|
835
772
|
}
|
|
836
773
|
{
|
|
837
|
-
safeCall(instance, "componentDidLoad"
|
|
774
|
+
safeCall(instance, "componentDidLoad");
|
|
838
775
|
}
|
|
839
776
|
endPostUpdate();
|
|
840
777
|
{
|
|
@@ -858,14 +795,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
858
795
|
}
|
|
859
796
|
};
|
|
860
797
|
var appDidLoad = (who) => {
|
|
798
|
+
{
|
|
799
|
+
addHydratedFlag(doc.documentElement);
|
|
800
|
+
}
|
|
861
801
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
862
802
|
};
|
|
863
|
-
var safeCall = (instance, method, arg
|
|
803
|
+
var safeCall = (instance, method, arg) => {
|
|
864
804
|
if (instance && instance[method]) {
|
|
865
805
|
try {
|
|
866
806
|
return instance[method](arg);
|
|
867
807
|
} catch (e) {
|
|
868
|
-
consoleError(e
|
|
808
|
+
consoleError(e);
|
|
869
809
|
}
|
|
870
810
|
}
|
|
871
811
|
return void 0;
|
|
@@ -924,68 +864,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
924
864
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
925
865
|
members.map(([memberName, [memberFlags]]) => {
|
|
926
866
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
927
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
928
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
929
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
930
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
931
|
-
Object.defineProperty(prototype, memberName, {
|
|
932
|
-
get() {
|
|
933
|
-
{
|
|
934
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
935
|
-
return getValue(this, memberName);
|
|
936
|
-
}
|
|
937
|
-
const ref = getHostRef(this);
|
|
938
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
939
|
-
if (!instance) return;
|
|
940
|
-
return instance[memberName];
|
|
941
|
-
}
|
|
942
|
-
},
|
|
943
|
-
configurable: true,
|
|
944
|
-
enumerable: true
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
867
|
Object.defineProperty(prototype, memberName, {
|
|
868
|
+
get() {
|
|
869
|
+
return getValue(this, memberName);
|
|
870
|
+
},
|
|
948
871
|
set(newValue) {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
954
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
955
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
956
|
-
}
|
|
957
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
958
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
959
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
960
|
-
return;
|
|
961
|
-
}
|
|
962
|
-
{
|
|
963
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
964
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
965
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
966
|
-
ref.$onReadyPromise$.then(() => {
|
|
967
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
968
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
969
|
-
}
|
|
970
|
-
});
|
|
971
|
-
}
|
|
972
|
-
return;
|
|
973
|
-
}
|
|
974
|
-
const setterSetVal = () => {
|
|
975
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
976
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
977
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
978
|
-
}
|
|
979
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
980
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
981
|
-
};
|
|
982
|
-
if (ref.$lazyInstance$) {
|
|
983
|
-
setterSetVal();
|
|
984
|
-
} else {
|
|
985
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
}
|
|
872
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
873
|
+
},
|
|
874
|
+
configurable: true,
|
|
875
|
+
enumerable: true
|
|
989
876
|
});
|
|
990
877
|
}
|
|
991
878
|
});
|
|
@@ -995,11 +882,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
995
882
|
plt.jmp(() => {
|
|
996
883
|
var _a2;
|
|
997
884
|
const propName = attrNameToPropName.get(attrName);
|
|
998
|
-
if (this.hasOwnProperty(propName)
|
|
885
|
+
if (this.hasOwnProperty(propName)) {
|
|
999
886
|
newValue = this[propName];
|
|
1000
887
|
delete this[propName];
|
|
1001
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1002
|
-
this[propName] == newValue) {
|
|
888
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1003
889
|
return;
|
|
1004
890
|
} else if (propName == null) {
|
|
1005
891
|
const hostRef = getHostRef(this);
|
|
@@ -1015,11 +901,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1015
901
|
}
|
|
1016
902
|
return;
|
|
1017
903
|
}
|
|
1018
|
-
|
|
1019
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1020
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1021
|
-
this[propName] = newValue;
|
|
1022
|
-
}
|
|
904
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1023
905
|
});
|
|
1024
906
|
};
|
|
1025
907
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1048,7 +930,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1048
930
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1049
931
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1050
932
|
if (bundleId) {
|
|
1051
|
-
const CstrImport = loadModule(cmpMeta
|
|
933
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1052
934
|
if (CstrImport && "then" in CstrImport) {
|
|
1053
935
|
const endLoad = uniqueTime();
|
|
1054
936
|
Cstr = await CstrImport;
|
|
@@ -1073,7 +955,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1073
955
|
try {
|
|
1074
956
|
new Cstr(hostRef);
|
|
1075
957
|
} catch (e) {
|
|
1076
|
-
consoleError(e
|
|
958
|
+
consoleError(e);
|
|
1077
959
|
}
|
|
1078
960
|
{
|
|
1079
961
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1082,7 +964,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1082
964
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1083
965
|
}
|
|
1084
966
|
endNewInstance();
|
|
1085
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
967
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1086
968
|
} else {
|
|
1087
969
|
Cstr = elm.constructor;
|
|
1088
970
|
const cmpTag = elm.localName;
|
|
@@ -1109,9 +991,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1109
991
|
schedule();
|
|
1110
992
|
}
|
|
1111
993
|
};
|
|
1112
|
-
var fireConnectedCallback = (instance
|
|
994
|
+
var fireConnectedCallback = (instance) => {
|
|
1113
995
|
{
|
|
1114
|
-
safeCall(instance, "connectedCallback"
|
|
996
|
+
safeCall(instance, "connectedCallback");
|
|
1115
997
|
}
|
|
1116
998
|
};
|
|
1117
999
|
|
|
@@ -1146,34 +1028,28 @@ var connectedCallback = (elm) => {
|
|
|
1146
1028
|
}
|
|
1147
1029
|
} else {
|
|
1148
1030
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1149
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1031
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1150
1032
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1151
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1033
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1152
1034
|
}
|
|
1153
1035
|
}
|
|
1154
1036
|
endConnected();
|
|
1155
1037
|
}
|
|
1156
1038
|
};
|
|
1157
|
-
var disconnectInstance = (instance
|
|
1039
|
+
var disconnectInstance = (instance) => {
|
|
1158
1040
|
{
|
|
1159
|
-
safeCall(instance, "disconnectedCallback"
|
|
1041
|
+
safeCall(instance, "disconnectedCallback");
|
|
1160
1042
|
}
|
|
1161
1043
|
};
|
|
1162
1044
|
var disconnectedCallback = async (elm) => {
|
|
1163
1045
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1164
1046
|
const hostRef = getHostRef(elm);
|
|
1165
1047
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1166
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1048
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1167
1049
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1168
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1050
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1169
1051
|
}
|
|
1170
1052
|
}
|
|
1171
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1172
|
-
rootAppliedStyles.delete(elm);
|
|
1173
|
-
}
|
|
1174
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1175
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1176
|
-
}
|
|
1177
1053
|
};
|
|
1178
1054
|
|
|
1179
1055
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1254,17 +1130,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1254
1130
|
}
|
|
1255
1131
|
disconnectedCallback() {
|
|
1256
1132
|
plt.jmp(() => disconnectedCallback(this));
|
|
1257
|
-
plt.raf(() => {
|
|
1258
|
-
var _a3;
|
|
1259
|
-
const hostRef = getHostRef(this);
|
|
1260
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1261
|
-
if (i2 > -1) {
|
|
1262
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1263
|
-
}
|
|
1264
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1265
|
-
delete hostRef.$vnode$.$elm$;
|
|
1266
|
-
}
|
|
1267
|
-
});
|
|
1268
1133
|
}
|
|
1269
1134
|
componentOnReady() {
|
|
1270
1135
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-510a6ba4.js';
|
|
2
|
+
export { s as setNonce } from './index-510a6ba4.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
|
|
|
1015
1015
|
autoPlay?: boolean;
|
|
1016
1016
|
autoplay?: boolean | string;
|
|
1017
1017
|
controls?: boolean;
|
|
1018
|
-
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1019
|
-
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1020
1018
|
crossOrigin?: string;
|
|
1021
1019
|
crossorigin?: string;
|
|
1022
1020
|
loop?: boolean;
|
|
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
|
|
|
1566
1564
|
onSubmitCapture?: (event: Event) => void;
|
|
1567
1565
|
onInvalid?: (event: Event) => void;
|
|
1568
1566
|
onInvalidCapture?: (event: Event) => void;
|
|
1569
|
-
onBeforeToggle?: (event: Event) => void;
|
|
1570
|
-
onBeforeToggleCapture?: (event: Event) => void;
|
|
1571
|
-
onToggle?: (event: Event) => void;
|
|
1572
|
-
onToggleCapture?: (event: Event) => void;
|
|
1573
1567
|
onLoad?: (event: Event) => void;
|
|
1574
1568
|
onLoadCapture?: (event: Event) => void;
|
|
1575
1569
|
onError?: (event: Event) => void;
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],v=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.o?w(b):f.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(m),$(y),(p=m.length>0)&&f.raf(b)},w=e=>h().then(e),S=v(y,!0),g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>C,ok:()=>k,unwrap:()=>M,unwrapErr:()=>x});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var E,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),L={},N=(e,t)=>null==e||g(e)?e:1&t?e+"":e,R=e=>n(e).$hostElement$,T=new WeakMap,D=e=>"sc-"+e.$,H=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=W(n);let s=W(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=g(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(F);t=t.replace(V,""),n&&f.rel(e,t,n,l),o&&f.ael(e,t,o,l)}}},U=/\s/,W=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(U):[]),F="Capture",V=RegExp(F+"$"),q=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of G(Object.keys(l)))e in s||H(o,e,l[e],void 0,n,t.o);for(const e of G(Object.keys(s)))H(o,e,l[e],s[e],n,t.o)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=a.createTextNode(o.i);else if(l=o.v=a.createElement(o.m),q(null,o,_),o.h)for(i=0;i<o.h.length;++i)s=z(e,o,i),s&&l.appendChild(s);return l["s-hn"]=E,l},B=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=z(null,n,l),i&&(o[l].v=i,X(r,i,t)))},I=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),K=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.i;null===i?(q(e,t,_),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(J(h,m,l))K(h,m,l),h=t[++r],m=o[++c];else if(J(d,y,l))K(d,y,l),d=t[--f],y=o[--p];else if(J(h,y,l))K(h,y,l),X(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(J(d,m,l))K(d,m,l),X(e,d.v,h.v),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=z(t&&t[c],n,u):(K(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=z(t&&t[c],n,c),m=o[++c]),s&&X(h.v.parentNode,s,h.v)}r>f?B(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&I(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),B(o,null,t,s,0,s.length-1)):!n&&null!==l&&I(l,0,l.length-1)):e.i!==i&&(o.data=i)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},Z=(e,t)=>{if(e.o|=16,!(4&e.o))return Y(e,e.j),S((()=>ee(e,t)));e.o|=512},ee=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=re(o,"componentWillLoad",void 0,n)),te(l,(()=>oe(e,o,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=D(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=T.get(e=e.head||e);if(i||T.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.O)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);le(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},le=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,s=e.C||A(null,null),i=(e=>e&&e.m===L)(t)?t:P(null,null,t);if(E=o.tagName,l.M&&(i.u=i.u||{},l.M.map((([e,t])=>i.u[t]=o[e]))),n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,K(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,ce(t),re(n,"componentDidLoad",void 0,t),e.P(t),o||ie()),e.S&&(e.S(),e.S=void 0),512&e.o&&w((()=>Z(e,!1))),e.o&=-517},ie=()=>{w((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"casino-play-random-game"}});return e.dispatchEvent(t),t})(u)))},re=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e,o)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,o,l)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.A.get(t),u=i.o,a=i.t;if(o=N(o,l.L[t][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.A.set(t,o),a)){if(l.N&&128&u){const e=l.N[t];e&&e.map((e=>{try{a[e](o,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&Z(i,!1)}},ae=(e,t,o)=>{var l,s;const i=e.prototype;if(t.L||t.N||e.watchers){e.watchers&&!t.N&&(t.N=e.watchers);const r=Object.entries(null!=(l=t.L)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.L[e][0]|=2048),r&&(t.L[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.L[e][0]))return((e,t)=>n(this).A.get(t))(0,e);const o=n(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.A.get(e)?s=i.A.get(e):!i.A.get(e)&&n&&i.A.set(e,n),r.call(this,N(s,l)),void ue(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.L[e][0]))return ue(this,e,s,t),void(1&o&&!i.t&&i.R.then((()=>{4096&t.L[e][0]&&i.t[e]!==i.A.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.A.get(e)&&n&&i.A.set(e,n),i.t[e]=N(s,l),ue(this,e,i.t[e],t)};i.t?n():i.R.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){f.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.N)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.N)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var l;const s=n[1]||e;return o.set(s,e),512&n[0]&&(null==(l=t.M)||l.push([e,s])),s}))]))}}return e},fe=(e,t)=>{re(e,"connectedCallback",void 0,t)},he=(e,t)=>{re(e,"disconnectedCallback",void 0,t||e)},de=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let w,S=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{var l;const c={o:o[0],$:o[1],L:o[2],T:o[3]};4&c.o&&(g=!0),c.L=o[2],c.M=[],c.N=null!=(l=o[4])?l:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,k:n,A:new Map};o.R=new Promise((e=>o.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,c),1&c.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.o)){const t=n(e),o=t.k,l=()=>{};if(1&t.o)(null==t?void 0:t.t)?fe(t.t,e):(null==t?void 0:t.R)&&t.R.then((()=>fe(t.t,e)));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}o.L&&Object.entries(o.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.D){const l=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.D;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{s(e,t.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(l&&"then"in l){const e=()=>{};o=await l,e()}else o=l;if(!o)throw Error(`Constructor for "${n.$}#${t.H}" was not found`);o.isProxied||(n.N=o.watchers,ae(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){s(t,e)}t.o&=-9,t.o|=128,r(),fe(t.t,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=D(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>Z(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async e=>{if(!(1&f.o)){const t=n(e);(null==t?void 0:t.t)?he(t.t,e):(null==t?void 0:t.R)&&t.R.then((()=>he(t.t,e)))}T.has(e)&&T.delete(e),e.shadowRoot&&T.has(e.shadowRoot)&&T.delete(e.shadowRoot)})(this))),f.raf((()=>{var e;const t=n(this),o=b.findIndex((e=>e===this));o>-1&&b.splice(o,1),(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).R}};c.D=e[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,ae(a,c,1)))}))})),h.length>0&&(g&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(l=f.O)?l:j(a);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,v?v.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ie,30)))},pe=e=>f.O=e;export{de as b,R as g,P as h,h as p,o as r,pe as s}
|