proto-float-wc 0.1.0

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.
Files changed (53) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -0
  3. package/dist/cjs/index-95c398a6.js +1762 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader.cjs.js +13 -0
  6. package/dist/cjs/proto-float-wc.cjs.js +23 -0
  7. package/dist/cjs/proto-floater-demo_2.cjs.entry.js +146 -0
  8. package/dist/collection/collection-manifest.json +13 -0
  9. package/dist/collection/components/proto-floater-demo/proto-360.js +10 -0
  10. package/dist/collection/components/proto-floater-demo/proto-floater-demo.css +60 -0
  11. package/dist/collection/components/proto-floater-demo/proto-floater-demo.js +67 -0
  12. package/dist/collection/components/proto-player/proto-player.css +60 -0
  13. package/dist/collection/components/proto-player/proto-player.js +166 -0
  14. package/dist/collection/index.js +1 -0
  15. package/dist/collection/utils/index.js +1 -0
  16. package/dist/collection/utils/types.js +1 -0
  17. package/dist/components/index.d.ts +33 -0
  18. package/dist/components/index.js +1 -0
  19. package/dist/components/proto-floater-demo.d.ts +11 -0
  20. package/dist/components/proto-floater-demo.js +53 -0
  21. package/dist/components/proto-player.d.ts +11 -0
  22. package/dist/components/proto-player.js +138 -0
  23. package/dist/esm/index-6a814d4f.js +1736 -0
  24. package/dist/esm/index.js +1 -0
  25. package/dist/esm/loader.js +9 -0
  26. package/dist/esm/polyfills/core-js.js +11 -0
  27. package/dist/esm/polyfills/dom.js +79 -0
  28. package/dist/esm/polyfills/es5-html-element.js +1 -0
  29. package/dist/esm/polyfills/index.js +34 -0
  30. package/dist/esm/polyfills/system.js +6 -0
  31. package/dist/esm/proto-float-wc.js +18 -0
  32. package/dist/esm/proto-floater-demo_2.entry.js +141 -0
  33. package/dist/index.cjs.js +1 -0
  34. package/dist/index.js +1 -0
  35. package/dist/proto-float-wc/index.esm.js +0 -0
  36. package/dist/proto-float-wc/p-5ef8cd91.js +2 -0
  37. package/dist/proto-float-wc/p-e4a96884.entry.js +1 -0
  38. package/dist/proto-float-wc/proto-float-wc.esm.js +1 -0
  39. package/dist/types/components/proto-floater-demo/proto-360.d.ts +5 -0
  40. package/dist/types/components/proto-floater-demo/proto-floater-demo.d.ts +7 -0
  41. package/dist/types/components/proto-player/proto-player.d.ts +24 -0
  42. package/dist/types/components.d.ts +58 -0
  43. package/dist/types/index.d.ts +1 -0
  44. package/dist/types/stencil-public-runtime.d.ts +1681 -0
  45. package/dist/types/utils/index.d.ts +1 -0
  46. package/dist/types/utils/types.d.ts +8 -0
  47. package/loader/cdn.js +3 -0
  48. package/loader/index.cjs.js +3 -0
  49. package/loader/index.d.ts +21 -0
  50. package/loader/index.es2017.js +3 -0
  51. package/loader/index.js +4 -0
  52. package/loader/package.json +11 -0
  53. package/package.json +41 -0
@@ -0,0 +1,166 @@
1
+ import { h } from "@stencil/core";
2
+ const CHECK = 'Checking...';
3
+ const FAILED = 'Content Failed to Load...';
4
+ export class ProtoFloaterDemo {
5
+ constructor() {
6
+ this.message = undefined;
7
+ this.vin = undefined;
8
+ this.visible = false;
9
+ this.eventBus = () => window[this.bus];
10
+ this.messageHandler = event => {
11
+ const { origin, data } = event;
12
+ const { type } = data;
13
+ console.log('-- messageHandler:', data, origin);
14
+ if (origin !== 'http://localhost:3000')
15
+ return;
16
+ if (type && type === 'close-modal') {
17
+ this.hideFrame();
18
+ return;
19
+ }
20
+ if (this.message === undefined) {
21
+ if (data.type && data.type === 'resize-iframe') {
22
+ this.iframe.style.width = data.payload.width + 'px';
23
+ this.iframe.style.height = data.payload.height + 'px';
24
+ this.iframe.style.display = 'block';
25
+ this.loaded = true;
26
+ this.label = '';
27
+ this.message = data;
28
+ const payload = {
29
+ type: 'data-payload',
30
+ payload: { vin: this.vin, apikey: this.apikey },
31
+ };
32
+ if (this.iframe) {
33
+ this.iframe.contentWindow.postMessage(payload, '*');
34
+ }
35
+ }
36
+ }
37
+ else {
38
+ this.hideFrame();
39
+ }
40
+ };
41
+ this.register = () => {
42
+ window.addEventListener('message', this.messageHandler, false);
43
+ };
44
+ this.unregister = () => {
45
+ window.removeEventListener('message', this.messageHandler);
46
+ };
47
+ this.onIframeLoad = _event => {
48
+ if (this.vin !== undefined) {
49
+ setTimeout(() => {
50
+ if (!this.loaded) {
51
+ this.label = FAILED;
52
+ }
53
+ }, 3000);
54
+ }
55
+ };
56
+ this.hideFrame = () => {
57
+ this.unregister();
58
+ this.overlay.style.display = 'none';
59
+ this.iframe.style.display = 'none';
60
+ this.iframe.style.width = '0';
61
+ this.iframe.style.height = '0';
62
+ this.iframe.style.border = 'none';
63
+ this.message = undefined;
64
+ this.visible = false;
65
+ this.time = undefined;
66
+ this.vin = undefined;
67
+ this.url = undefined;
68
+ };
69
+ this.showFrame = (vin) => {
70
+ this.time = Date.now();
71
+ this.vin = vin;
72
+ this.url = `http://localhost:3000/demo_iframe.html?q=${this.time}&vin=${this.vin}`;
73
+ this.register();
74
+ this.loaded = false;
75
+ this.label = CHECK;
76
+ this.loaded = false;
77
+ this.overlay.style.display = 'block';
78
+ this.iframe.style.border = '1px solid grey';
79
+ this.iframe.style.display = 'block';
80
+ this.visible = true;
81
+ };
82
+ this.handleOverlayClick = () => {
83
+ console.log('-- overlayClick');
84
+ // this.hideFrame()
85
+ };
86
+ this.apikey = undefined;
87
+ this.bus = 'eventBus';
88
+ this.label = CHECK;
89
+ this.failed = true;
90
+ this.loaded = false;
91
+ this.time = undefined;
92
+ this.url = undefined;
93
+ }
94
+ componentDidLoad() {
95
+ this.eventBus().on('activate', vin => {
96
+ if (this.vin !== vin && this.visible) {
97
+ this.hideFrame();
98
+ }
99
+ this.showFrame(vin);
100
+ });
101
+ }
102
+ render() {
103
+ return (h("div", { id: "root" }, h("div", { id: "overlay", ref: el => (this.overlay = el), onClick: () => this.handleOverlayClick() }), h("iframe", { id: "frame", src: this.url, ref: el => (this.iframe = el), onLoad: ev => this.onIframeLoad(ev) })));
104
+ }
105
+ static get is() { return "proto-player"; }
106
+ static get encapsulation() { return "shadow"; }
107
+ static get originalStyleUrls() {
108
+ return {
109
+ "$": ["proto-player.css"]
110
+ };
111
+ }
112
+ static get styleUrls() {
113
+ return {
114
+ "$": ["proto-player.css"]
115
+ };
116
+ }
117
+ static get properties() {
118
+ return {
119
+ "apikey": {
120
+ "type": "string",
121
+ "mutable": false,
122
+ "complexType": {
123
+ "original": "string",
124
+ "resolved": "string",
125
+ "references": {}
126
+ },
127
+ "required": false,
128
+ "optional": false,
129
+ "docs": {
130
+ "tags": [],
131
+ "text": ""
132
+ },
133
+ "attribute": "apikey",
134
+ "reflect": false,
135
+ "defaultValue": "undefined"
136
+ },
137
+ "bus": {
138
+ "type": "string",
139
+ "mutable": false,
140
+ "complexType": {
141
+ "original": "string",
142
+ "resolved": "string",
143
+ "references": {}
144
+ },
145
+ "required": false,
146
+ "optional": true,
147
+ "docs": {
148
+ "tags": [],
149
+ "text": ""
150
+ },
151
+ "attribute": "bus",
152
+ "reflect": false,
153
+ "defaultValue": "'eventBus'"
154
+ }
155
+ };
156
+ }
157
+ static get states() {
158
+ return {
159
+ "label": {},
160
+ "failed": {},
161
+ "loaded": {},
162
+ "time": {},
163
+ "url": {}
164
+ };
165
+ }
166
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
6
+
7
+ /**
8
+ * Used to manually set the base path where assets can be found.
9
+ * If the script is used as "module", it's recommended to use "import.meta.url",
10
+ * such as "setAssetPath(import.meta.url)". Other options include
11
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
12
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
13
+ * But do note that this configuration depends on how your script is bundled, or lack of
14
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
15
+ * will have to ensure the static assets are copied to its build directory.
16
+ */
17
+ export declare const setAssetPath: (path: string) => void;
18
+
19
+ /**
20
+ * Used to specify a nonce value that corresponds with an application's CSP.
21
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
22
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
23
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
24
+ * will result in the same behavior.
25
+ */
26
+ export declare const setNonce: (nonce: string) => void
27
+
28
+ export interface SetPlatformOptions {
29
+ raf?: (c: FrameRequestCallback) => number;
30
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
31
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
32
+ }
33
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
@@ -0,0 +1 @@
1
+ export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface ProtoFloaterDemo extends Components.ProtoFloaterDemo, HTMLElement {}
4
+ export const ProtoFloaterDemo: {
5
+ prototype: ProtoFloaterDemo;
6
+ new (): ProtoFloaterDemo;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,53 @@
1
+ import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
2
+
3
+ const Proto360 = props => {
4
+ const hex = props.hex || 'currentColor';
5
+ const klass = props.class;
6
+ const label = props.label || '360';
7
+ const size = props.size || 24;
8
+ return (h("svg", { class: klass, width: size, height: size, viewBox: "0 0 400 400", role: "img", "aria-label": "title" },
9
+ h("title", null, label),
10
+ h("g", { fill: hex },
11
+ h("path", { "fill-rule": "evenodd", d: "M354.622 52.365c-.157.254-1.59.435-3.446.435-1.851 0-3.176.167-3.176.4 0 .22-.72.4-1.6.4-.88 0-1.6.18-1.6.4 0 .22-.439.4-.976.4-.537 0-1.088.18-1.224.4-.136.22-.582.4-.99.4-.409 0-.803.135-.877.3-.073.165-1.213.833-2.533 1.485-1.32.651-2.691 1.506-3.047 1.9-.356.393-.854.715-1.107.715-.532 0-5.646 5.012-5.646 5.533 0 .192-.54.913-1.2 1.604-.66.691-1.2 1.527-1.2 1.859 0 .332-.148.604-.33.604-.181 0-.824 1.125-1.429 2.5-.604 1.375-1.266 2.813-1.47 3.195-.204.382-.371 1.021-.371 1.42s-.162.896-.359 1.105c-1.293 1.368-1.292 17.607.001 18.406.197.122.358.65.358 1.174 0 .524.18 1.064.4 1.2.22.136.4.518.4.848 0 .767 2.027 5.108 2.468 5.285.183.074.332.386.332.693 0 .308.495 1.126 1.1 1.817 2.069 2.365 6.483 6.757 6.792 6.758.169 0 .938.54 1.708 1.199s1.625 1.199 1.9 1.199c.275.001.5.147.5.326 0 .179.63.573 1.4.875.77.302 1.4.696 1.4.875 0 .179.439.325.976.325.537 0 1.088.18 1.224.4.136.22.597.4 1.024.4.427 0 .776.18.776.4 0 .22.72.4 1.6.4.88 0 1.6.18 1.6.4 0 .235 1.389.4 3.367.4 2.319 0 3.429.156 3.568.5.161.4.208.4.233 0 .023-.358.996-.5 3.432-.5 2 0 3.4-.165 3.4-.4 0-.22.619-.4 1.376-.4.757 0 1.488-.18 1.624-.4.136-.22.597-.4 1.024-.4.427 0 .776-.18.776-.4 0-.22.54-.4 1.2-.4.66 0 1.2-.18 1.2-.4 0-.22.36-.4.8-.4.44 0 .8-.158.8-.351 0-.194.54-.576 1.2-.849.66-.273 1.2-.655 1.2-.849 0-.193.264-.351.586-.351 1.226 0 8.453-7.178 9.782-9.716.312-.596.717-1.084.9-1.084.182 0 .332-.36.332-.8 0-.44.18-.8.4-.8.22 0 .4-.36.4-.8 0-.44.18-.8.4-.8.22 0 .4-.36.4-.8 0-.44.18-.8.4-.8.22 0 .4-.54.4-1.2 0-.66.18-1.2.4-1.2.22 0 .4-.54.4-1.2 0-.66.18-1.2.4-1.2.22 0 .4-.99.4-2.2 0-1.21.18-2.2.4-2.2.237 0 .4-1.459.4-3.576 0-1.967-.18-3.688-.4-3.824-.22-.136-.4-1.126-.4-2.2 0-1.074-.18-2.064-.4-2.2-.22-.136-.4-.777-.4-1.424 0-.647-.18-1.176-.4-1.176-.22 0-.4-.343-.4-.762 0-.816-1.601-4.15-2.1-4.371-.165-.074-.3-.479-.3-.9 0-.422-.15-.767-.332-.767-.183 0-.587-.495-.898-1.1-.31-.605-.844-1.37-1.186-1.7-.342-.33-1.053-1.23-1.579-2s-1.397-1.76-1.934-2.2c-.538-.44-1.677-1.464-2.532-2.276-.854-.811-2.405-1.891-3.446-2.4-1.041-.508-1.953-1.059-2.026-1.224-.074-.165-.479-.3-.9-.3-.422 0-.767-.147-.767-.328 0-.18-.9-.572-2-.872-1.1-.3-2-.692-2-.872 0-.181-.619-.328-1.376-.328-.757 0-1.488-.18-1.624-.4-.136-.22-1.641-.4-3.344-.4-1.703 0-3.292-.196-3.531-.435-.313-.313-.51-.313-.703 0m6.018 23.203c1.819.879 4.56 3.26 4.56 3.96 0 .26.18.472.4.472.22 0 .4.36.4.8 0 .44.18.8.4.8.22 0 .4.54.4 1.2 0 .66.18 1.2.4 1.2.225 0 .4 1.125.4 2.576 0 1.417-.18 2.688-.4 2.824-.22.136-.4.561-.4.944 0 .875-.899 2.849-1.3 2.853-.165.002-.3.255-.3.563 0 .728-2.712 3.44-3.44 3.44-.308 0-.56.18-.56.4 0 .22-.36.4-.8.4-.44 0-.8.18-.8.4 0 .243-1.8.4-4.6.4s-4.6-.157-4.6-.4c0-.22-.36-.4-.8-.4-.44 0-.8-.18-.8-.4 0-.22-.276-.4-.613-.4-.338 0-1.222-.608-1.965-1.351-6.085-6.085-4.654-16.478 2.778-20.167 2.311-1.148 9.357-1.217 11.64-.114M99.6 123.609c-.55.178-2.395.639-4.1 1.024-1.705.386-3.1.851-3.1 1.034 0 .183-.45.333-1 .333s-1 .18-1 .4c0 .22-.27.4-.6.4-.33 0-.6.136-.6.302 0 .167-.585.561-1.3.876-1.264.557-7.891 6.836-7.909 7.493-.005.181-.361.779-.791 1.329-.43.55-.786 1.315-.791 1.7-.005.385-.189.7-.409.7-.22 0-.4.36-.4.8 0 .44-.18.8-.4.8-.22 0-.4.72-.4 1.6 0 .88-.18 1.6-.4 1.6-.242 0-.4 1.733-.4 4.4 0 2.667.158 4.4.4 4.4.22 0 .4.278.4.618 0 .8 1.782 2.582 2.582 2.582.34 0 .618.18.618.4 0 .22.9.4 2 .4s2 .18 2 .4c0 .222 1.067.4 2.4.4s2.4-.178 2.4-.4c0-.22.715-.4 1.588-.4 3.819 0 6.812-3.273 6.812-7.451 0-1.188.159-2.472.353-2.854.195-.382.562-1.145.816-1.695.65-1.405 2.955-2.8 4.625-2.8.773 0 1.406-.18 1.406-.4 0-.241 1.667-.4 4.2-.4 2.533 0 4.2.159 4.2.4 0 .22.549.4 1.221.4 2.468 0 5.979 3.037 5.979 5.171 0 .43.18.893.4 1.029.231.142.4 2.271.4 5.024 0 2.917-.156 4.776-.4 4.776-.22 0-.4.54-.4 1.2 0 .66-.18 1.2-.4 1.2-.22 0-.4.278-.4.617 0 .654-.527 1.412-1.745 2.511-.409.37-.981.897-1.271 1.172-.29.275-.99.5-1.555.5-.566 0-1.029.18-1.029.4 0 .23-1.24.4-2.92.4-2.719 0-5.07.602-5.077 1.3-.002.165-.228.303-.503.307-1.026.015-2.3 3.667-2.3 6.593s1.274 6.578 2.3 6.593c.275.004.501.142.503.307.008.728 2.416 1.3 5.477 1.3 1.947 0 3.32.165 3.32.4 0 .22.535.4 1.188.4 2.357 0 5.28 2.234 6.862 5.246 1.062 2.021 1.372 14.11.415 16.158a791 791 0 0 0-.9 1.935c-.682 1.472-2.193 3.061-2.912 3.061-.359 0-.653.18-.653.4 0 .22-.36.4-.8.4-.44 0-.8.18-.8.4 0 .22-.709.4-1.576.4-.867 0-1.688.18-1.824.4-.138.223-1.996.4-4.2.4s-4.062-.177-4.2-.4c-.136-.22-1.047-.4-2.024-.4-.977 0-1.776-.18-1.776-.4 0-.22-.436-.4-.968-.4-1.294 0-4.632-3.321-4.632-4.608 0-.52-.18-1.056-.4-1.192-.22-.136-.4-1.229-.4-2.429 0-2.568-1.146-4.971-2.371-4.971-.236 0-.429-.18-.429-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.246-2-.4-5.2-.4s-5.2.154-5.2.4c0 .22-.476.4-1.057.4-1.175 0-3.13 1.789-3.757 3.437-.893 2.348.002 11.396 1.259 12.743.195.209.355.704.355 1.1 0 .396.18.72.4.72.22 0 .4.27.4.6 0 .33.18.6.4.6.22 0 .4.27.4.6 0 .33.18.6.4.6.22 0 .4.27.4.6 0 .33.18.6.4.6.22 0 .4.183.4.407 0 .649 5.121 5.593 5.793 5.593.334 0 .607.145.607.321 0 .421 3.817 2.479 4.597 2.479.332 0 .603.141.603.313 0 .172.855.544 1.9.826 1.045.283 2.213.682 2.595.888.382.205 1.226.373 1.876.373.65 0 1.293.18 1.429.4.136.22 1.486.4 3 .4s2.864.18 3 .4c.137.221 1.937.4 4.024.4 2.251 0 3.776-.162 3.776-.4 0-.231 1.259-.4 2.976-.4 1.637 0 3.088-.18 3.224-.4.136-.22.946-.4 1.8-.4.854 0 1.664-.18 1.8-.4.136-.22.777-.4 1.424-.4.647 0 1.176-.18 1.176-.4 0-.22.252-.4.56-.4.837 0 5.794-2.183 6.679-2.941.424-.362.939-.659 1.146-.659.561 0 6.415-5.96 6.415-6.531 0-.271.36-.752.8-1.069.44-.317.8-.897.8-1.288 0-.392.135-.714.3-.715.165-.002.631-1.127 1.036-2.5.405-1.374.889-2.857 1.075-3.297.941-2.22 1.62-18.329.807-19.142-.23-.23-.418-.82-.418-1.312 0-1.11-1.978-5.746-2.452-5.746-.192 0-.348-.241-.348-.536 0-.725-3.38-4.264-4.072-4.264-.303 0-.811-.36-1.128-.8-.317-.44-.897-.8-1.288-.8-.392 0-.713-.135-.715-.3-.003-.314-1.903-1.3-2.505-1.3-1.12 0-1.59-1.25-.76-2.023.459-.427.946-.777 1.082-.777.495 0 5.386-5.309 5.386-5.846 0-.305.18-.554.4-.554.22 0 .4-.36.4-.8 0-.44.18-.8.4-.8.22 0 .4-.45.4-1s.18-1 .4-1c.22 0 .4-.45.4-1s.18-1 .4-1c.22 0 .4-.619.4-1.376 0-.757.18-1.488.4-1.624.243-.15.4-3.137.4-7.624 0-4.651-.148-7.376-.4-7.376-.22 0-.4-.54-.4-1.2 0-.66-.18-1.2-.4-1.2-.22 0-.4-.45-.4-1s-.18-1-.4-1c-.22 0-.4-.36-.4-.8 0-.44-.18-.8-.4-.8-.22 0-.4-.274-.4-.61 0-.687-5.707-6.59-6.371-6.59-.236 0-.429-.18-.429-.4 0-.22-.27-.4-.6-.4-.33 0-.6-.18-.6-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.18-.8-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.16-.8-.355 0-.195-.495-.456-1.1-.581-.605-.125-2.09-.43-3.3-.676-1.21-.247-2.753-.615-3.428-.819-1.492-.448-17.968-.415-19.372.04m91.8-.038c-.44.176-1.832.447-3.094.603-1.261.155-2.397.449-2.523.654-.127.205-.76.372-1.407.372s-1.176.18-1.176.4c0 .22-.36.4-.8.4-.44 0-.8.18-.8.4 0 .22-.234.4-.52.4-.736 0-2.673.941-2.677 1.3-.002.165-.323.3-.715.3-.391 0-.971.36-1.288.8-.317.44-.767.8-1 .8-.954 0-7 7.231-7 8.372 0 .235-.135.429-.3.431-.406.004-1.3 1.983-1.3 2.877 0 .396-.18.72-.4.72-.22 0-.4.439-.4.976 0 .537-.18 1.088-.4 1.224-.22.136-.4.856-.4 1.6 0 .744-.18 1.464-.4 1.6-.22.136-.4 1.317-.4 2.624 0 1.317-.178 2.376-.4 2.376-.262 0-.4 8.192-.4 23.776 0 15.42.141 23.864.4 24.024.22.136.4 1.407.4 2.824 0 1.451.175 2.576.4 2.576.22 0 .4.72.4 1.6 0 .88.18 1.6.4 1.6.22 0 .4.335.4.744 0 .802 2.405 5.769 2.9 5.989.165.074.3.383.3.687 0 1.025 6.812 8.18 7.788 8.18.336 0 .612.145.612.323 0 .178.765.642 1.7 1.031l2.7 1.124c.55.228 1.313.574 1.695.769a3.88 3.88 0 0 0 1.476.353c.43 0 .881.161 1.003.358.265.428 2.583.819 6.526 1.099 1.595.113 2.9.372 2.9.575 0 .202 1.8.368 4 .368s4-.166 4-.368c0-.203 1.305-.462 2.9-.575 3.943-.28 6.261-.671 6.526-1.099.122-.197.573-.358 1.003-.358a3.88 3.88 0 0 0 1.476-.353c.382-.195 1.235-.58 1.895-.856 2.567-1.076 4.006-1.803 4.133-2.091.074-.165.399-.3.722-.3.862 0 6.328-5.684 7.373-7.666.27-.514.602-1.024.737-1.134.135-.11.668-1.1 1.184-2.2a127.05 127.05 0 0 1 1.295-2.695 3.846 3.846 0 0 0 .356-1.476c0-.43.18-.893.4-1.029.22-.136.4-.957.4-1.824 0-.867.18-1.576.4-1.576.237 0 .4-1.459.4-3.576 0-1.967.18-3.688.4-3.824.22-.136.4-1.126.4-2.2 0-1.074-.18-2.064-.4-2.2-.22-.136-.4-1.767-.4-3.624 0-1.984-.165-3.376-.4-3.376-.22 0-.4-.72-.4-1.6 0-.88-.18-1.6-.4-1.6-.22 0-.4-.54-.4-1.2 0-.66-.18-1.2-.4-1.2-.22 0-.4-.36-.4-.8 0-.44-.18-.8-.4-.8-.22 0-.4-.36-.4-.8 0-.44-.18-.8-.4-.8-.22 0-.4-.268-.4-.595 0-1.418-6.387-7.805-7.805-7.805-.327 0-.596-.135-.598-.3-.004-.359-1.941-1.3-2.677-1.3-.286 0-.52-.18-.52-.4 0-.22-.439-.4-.976-.4-.537 0-1.088-.18-1.224-.4-.136-.22-.777-.4-1.424-.4-.647 0-1.176-.18-1.176-.4 0-.222-1.059-.4-2.376-.4-1.307 0-2.488-.18-2.624-.4-.14-.227-2.137-.4-4.624-.4-2.651 0-4.376.158-4.376.4 0 .22-.9.4-2 .4s-2 .18-2 .4c0 .22-.452.4-1.005.4-.553 0-1.318.159-1.7.353-.382.195-1.176.578-1.764.851-.588.274-1.913 1.195-2.944 2.047-3.433 2.837-3.387 2.944-3.387-7.851 0-6 .145-9.4.4-9.4.22 0 .4-.619.4-1.376 0-.757.18-1.488.4-1.624.22-.136.4-.557.4-.935 0-.379.36-.948.8-1.265.44-.317.8-.767.8-1 0-.233.377-.688.837-1.012a27.315 27.315 0 0 0 1.663-1.29c1.458-1.238 3.808-1.572 10.088-1.433l6.046.135 2.288 1.388c1.321.801 2.497 1.858 2.781 2.5.271.611.628 1.112.795 1.112.166 0 .302 1.069.302 2.376s.18 2.488.4 2.624c.22.136.4.629.4 1.096 0 1.138 3.425 4.304 4.656 4.304.519 0 .944.18.944.4 0 .245 1.933.4 5 .4s5-.155 5-.4c0-.22.36-.4.8-.4.44 0 .8-.18.8-.4 0-.22.36-.4.8-.4.44 0 .8-.236.8-.525 0-.288.36-.911.8-1.383.522-.561.8-1.411.8-2.452 0-.876.18-1.704.4-1.84.22-.136.4-.597.4-1.024 0-.427-.18-.776-.4-.776-.222 0-.4-1.067-.4-2.4s-.178-2.4-.4-2.4c-.22 0-.4-.54-.4-1.2 0-.66-.18-1.2-.4-1.2-.22 0-.4-.265-.4-.588 0-.532-.495-1.544-2.062-4.22-.536-.913-2.409-3.087-5.207-6.041-.807-.853-1.713-1.551-2.011-1.551-.299 0-.803-.36-1.12-.8-.317-.44-.897-.8-1.288-.8-.392 0-.712-.18-.712-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.18-.8-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.16-.8-.356 0-.196-.585-.452-1.3-.569-1.732-.284-5.007-1.037-6.528-1.5-1.485-.453-17.242-.456-18.372-.004m90.088-.125c-.135.135-1.56.501-3.167.813-4.821.936-5.121 1.018-5.121 1.386 0 .195-.36.355-.8.355-.44 0-.8.18-.8.4 0 .22-.36.4-.8.4-.44 0-.8.18-.8.4 0 .22-.32.4-.712.4-.391 0-.971.36-1.288.8-.317.44-.786.8-1.042.8-.593 0-5.758 4.995-5.758 5.569 0 .237-.18.431-.4.431-.22 0-.4.27-.4.6 0 .33-.18.6-.4.6-.22 0-.4.27-.4.6 0 .33-.136.6-.302.6-.167 0-.539.585-.827 1.3-.288.715-.782 1.891-1.097 2.614-.316.722-.574 1.631-.574 2.02 0 .388-.162.877-.359 1.086-1.546 1.636-2.403 59.178-.904 60.677.255.255.463.899.463 1.431 0 1.137 2.062 7.411 2.5 7.605.165.074.3.439.3.812 0 .373.36.938.8 1.255.44.317.8.818.8 1.113 0 .69 6.702 7.287 7.403 7.287.292 0 .59.135.664.3.194.438 4.573 2.5 5.308 2.5.344 0 .625.18.625.4 0 .22.54.4 1.2.4.66 0 1.2.162 1.2.36 0 .198.855.472 1.9.609s3.25.435 4.9.663c4.952.682 10.053.875 10.53.398.237-.237 1.643-.43 3.126-.43 1.483 0 2.808-.18 2.944-.4.136-.22.946-.4 1.8-.4.854 0 1.664-.18 1.8-.4.136-.22.676-.4 1.2-.4.524 0 1.064-.18 1.2-.4.136-.22.687-.4 1.224-.4.537 0 .976-.18.976-.4 0-.22.274-.4.608-.4.334 0 1.321-.45 2.192-1 .871-.55 1.728-1 1.904-1 .176 0 .579-.36.896-.8.317-.44.762-.804.988-.809.548-.013 3.412-2.608 3.412-3.092 0-.209.54-.945 1.2-1.636.66-.691 1.2-1.445 1.2-1.676 0-.231.36-.807.8-1.279.44-.472.8-1.185.8-1.583 0-.399.18-.725.4-.725.22 0 .4-.349.4-.776 0-.427.18-.888.4-1.024.22-.136.4-.687.4-1.224 0-.537.155-.976.344-.976.189 0 .464-.945.61-2.1.146-1.155.428-3.09.626-4.3.199-1.21.362-13 .362-26.2s-.163-24.99-.362-26.2c-.198-1.21-.48-3.145-.626-4.3-.146-1.155-.421-2.1-.61-2.1s-.344-.54-.344-1.2c0-.66-.18-1.2-.4-1.2-.22 0-.4-.36-.4-.8 0-.44-.146-.8-.325-.8-.179 0-.573-.63-.875-1.4-.302-.77-.696-1.4-.875-1.4-.179 0-.325-.275-.325-.611 0-.789-7.411-8.189-8.201-8.189-.329 0-.599-.146-.599-.325 0-.179-.63-.573-1.4-.875-.77-.302-1.4-.696-1.4-.875 0-.179-.36-.325-.8-.325-.44 0-.8-.16-.8-.356 0-.196-.585-.449-1.3-.561a45.33 45.33 0 0 1-3.1-.653 227.74 227.74 0 0 0-3.506-.839c-1.843-.423-17.802-.55-18.206-.145m16.228 19.397c1.938.97 4.284 3.071 4.284 3.835 0 .287.18.522.4.522.22 0 .4.349.4.776 0 .427.18.888.4 1.024.22.136.4.676.4 1.2 0 .524.18 1.064.4 1.2.26.161.4 8.996.4 25.2s-.14 25.039-.4 25.2c-.22.136-.4.777-.4 1.424 0 .647-.18 1.176-.4 1.176-.22 0-.4.331-.4.736 0 .803-3.248 4.464-3.96 4.464-.242 0-.44.18-.44.4 0 .22-.349.4-.776.4-.427 0-.888.18-1.024.4-.136.22-.766.4-1.4.4-.634 0-1.264.18-1.4.4-.136.22-1.666.4-3.4.4s-3.264-.18-3.4-.4c-.136-.22-.867-.4-1.624-.4-.757 0-1.376-.18-1.376-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.18-.8-.4 0-.22-.278-.4-.618-.4-1.183 0-3.033-2.472-4.49-6-1.178-2.853-1.345-6.862-1.176-28.2.19-23.921.176-23.722 1.984-27.7.745-1.64 4.018-4.697 5.554-5.188 2.651-.847 12.155-.624 14.062.331M47.8 160c-.136.22-.743.4-1.348.4-.606 0-1.488.36-1.96.8-.472.44-1.136.8-1.475.8-.339 0-.617.18-.617.4 0 .22-.236.4-.525.4-.288 0-.911.36-1.383.8-.472.44-1.046.8-1.275.8a.41.41 0 0 0-.417.4c0 .22-.27.4-.6.4-.33 0-.6.18-.6.4 0 .22-.27.4-.6.4-.33 0-.6.15-.6.332 0 .183-.495.587-1.1.898-.605.31-1.391.881-1.747 1.267-.356.387-.816.703-1.022.703-.206 0-1.062.63-1.903 1.4-.841.77-1.658 1.4-1.817 1.4-.307 0-.944.516-4.345 3.517-3.475 3.066-5.792 5.384-7.009 7.013a32.29 32.29 0 0 1-2.5 2.886c-.746.747-1.357 1.451-1.357 1.566 0 .211-.975 1.459-1.9 2.434-.275.29-.5.68-.5.867 0 .187-.36.6-.8.917-.44.317-.8.897-.8 1.288 0 .392-.159.712-.354.712-.195 0-.668.675-1.052 1.5-1.551 3.339-3.095 6.756-3.48 7.7-.224.55-.566 1.313-.761 1.695-.194.382-.353 1.057-.353 1.5 0 .443-.16.805-.356.805-.34 0-.587 1.027-1.108 4.6-.128.88-.403 1.708-.611 1.84-.543.345-.501 16.344.045 16.89.237.237.43 1.114.43 1.95 0 .836.18 1.52.4 1.52.22 0 .403.405.406.9.007.976.876 3.715 1.32 4.159.151.151.274.694.274 1.208 0 .513.18.933.4.933.22 0 .4.259.4.576 0 .316.629 1.801 1.398 3.3.769 1.498 1.399 2.949 1.4 3.224.001.275.182.5.402.5.22 0 .4.32.4.712 0 .391.36.971.8 1.288.44.317.8.762.801.988 0 .227.54 1.042 1.199 1.812s1.199 1.54 1.199 1.711c.001.363.7 1.148 7.067 7.938 2.604 2.776 4.941 5.071 5.193 5.1.253.028 1.379.951 2.502 2.051 1.124 1.1 2.24 2 2.481 2 .24 0 .941.54 1.558 1.2.617.66 1.274 1.202 1.46 1.205.187.003.79.364 1.34.803 1.595 1.271 4.002 2.792 4.418 2.792.21 0 .382.158.382.351 0 .194.54.576 1.2.849.66.273 1.2.655 1.2.849 0 .193.236.351.525.351.288 0 .911.36 1.383.8.472.44 1.136.8 1.475.8.339 0 .617.18.617.4 0 .22.36.4.8.4.44 0 .8.159.8.353 0 .195.315.454.7.576.936.296 3.066 1.595 3.233 1.971.074.165.479.3.9.3.422 0 .767.18.767.4 0 .22.36.4.8.4.44 0 .8.18.8.4 0 .22.36.4.8.4.44 0 .8.136.8.302 0 .167.585.538 1.3.827.715.288 1.613.692 1.995.897.382.206.967.374 1.3.374.333 0 .605.18.605.4 0 .22.36.4.8.4.44 0 .8.18.8.4 0 .22.36.4.8.4.44 0 .8.143.8.317 0 .174.847.544 1.883.821 1.036.277 2.521.782 3.3 1.124.779.341 1.867.802 2.417 1.025.55.224 1.313.565 1.695.76.382.194 1.057.353 1.5.353.443 0 .805.18.805.4 0 .22.362.4.805.4.443 0 1.208.208 1.7.462 1.921.994 2.311 1.138 3.066 1.138.43 0 .893.18 1.029.4.136.22.676.4 1.2.4.524 0 1.064.18 1.2.4.136.22.676.4 1.2.4.524 0 1.064.18 1.2.4.136.22.777.4 1.424.4.647 0 1.176.18 1.176.4 0 .22.54.4 1.2.4.66 0 1.2.18 1.2.4 0 .22.529.4 1.176.4.647 0 1.288.18 1.424.4.136.22.867.4 1.624.4.757 0 1.376.18 1.376.4 0 .22.63.4 1.4.4.77 0 1.4.18 1.4.4 0 .22.63.4 1.4.4.77 0 1.4.18 1.4.4 0 .22.619.4 1.376.4.757 0 1.488.18 1.624.4.136.22.946.4 1.8.4.854 0 1.664.18 1.8.4.136.22.957.4 1.824.4.867 0 1.576.18 1.576.4 0 .22.81.4 1.8.4s1.8.18 1.8.4c0 .22.675.408 1.5.417.825.01 2.31.194 3.3.409.99.215 2.97.581 4.4.814 1.43.233 3.59.601 4.8.818 1.21.217 3.28.488 4.6.602 1.32.114 2.571.372 2.78.574.209.201 1.388.366 2.62.366 1.232 0 2.411.166 2.62.369.357.347 2.183.551 9.38 1.05 1.65.115 3.36.379 3.8.588.44.209 1.878.428 3.196.486 4.027.18 4.064.118-6.23 10.556-3.281 3.327-5.966 6.342-5.966 6.7 0 .358-.18.651-.4.651-.22 0-.4.54-.4 1.2 0 .66-.18 1.2-.4 1.2-.22 0-.4.709-.4 1.576 0 .867.18 1.688.4 1.824.22.136.4.561.4.944 0 .875.899 2.849 1.3 2.853.165.002.3.244.3.539 0 .732 2.238 2.673 4.341 3.764 1.849.959 7.659 1.339 7.659.5 0-.22.298-.4.662-.4 2.259 0 37.338-35.111 37.338-37.372 0-.345.18-.628.4-.628.526 0 .526-5.875 0-6.2-.22-.136-.4-.597-.4-1.024 0-.427-.18-.776-.4-.776-.22 0-.4-.266-.4-.59 0-.487-3.37-4.267-6.739-7.558-.795-.776-14.69-14.671-16.712-16.711-4.041-4.078-10.613-10.342-10.858-10.35-.16-.005-.741-.361-1.291-.791-.55-.43-1.495-.786-2.1-.791-.605-.005-1.1-.189-1.1-.409 0-.22-.709-.4-1.576-.4-.867 0-1.688.18-1.824.4-.136.22-.687.4-1.224.4-.537 0-.976.18-.976.4 0 .22-.315.404-.7.409-.884.012-4.9 4.057-4.9 4.936 0 .36-.18.655-.4.655-.22 0-.4.439-.4.976 0 .537-.18 1.088-.4 1.224-.22.136-.4.946-.4 1.8 0 .854.18 1.664.4 1.8.22.136.4.561.4.944 0 .875.899 2.849 1.3 2.853.165.002.3.186.3.409 0 .223 1.485 1.905 3.3 3.738 4.467 4.511 6.7 7 6.7 7.467 0 .923-10.663.099-21.4-1.654-1.32-.216-3.3-.491-4.4-.611-1.1-.121-2.171-.383-2.38-.583-.209-.2-1.244-.363-2.3-.363-1.056 0-1.92-.18-1.92-.4 0-.22-.774-.4-1.72-.4s-1.891-.162-2.1-.359c-.209-.197-1.145-.467-2.08-.6-4.199-.595-4.918-.747-5.126-1.083-.122-.197-.83-.358-1.574-.358-.744 0-1.464-.18-1.6-.4-.136-.22-.867-.4-1.624-.4-.757 0-1.376-.18-1.376-.4 0-.22-.72-.4-1.6-.4-.88 0-1.6-.18-1.6-.4 0-.22-.72-.4-1.6-.4-.88 0-1.6-.18-1.6-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.22-.63-.4-1.4-.4-.77 0-1.4-.18-1.4-.4 0-.22-.529-.4-1.176-.4-.647 0-1.288-.18-1.424-.4-.136-.22-.687-.4-1.224-.4-.537 0-.976-.18-.976-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.22-.362-.4-.805-.4-.443 0-1.118-.174-1.5-.387-.382-.213-1.505-.658-2.495-.987-3.25-1.083-4.781-1.674-5.059-1.952-.151-.151-.604-.274-1.008-.274-.403 0-.733-.18-.733-.4 0-.22-.315-.406-.7-.413-.385-.006-1.775-.546-3.09-1.2-1.314-.653-2.619-1.187-2.9-1.187-.28 0-.51-.18-.51-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.18-.8-.4 0-.22-.36-.4-.8-.4-.44 0-.801-.135-.801-.3-.001-.165-.991-.75-2.199-1.3-1.208-.55-2.198-1.135-2.199-1.3 0-.165-.279-.3-.618-.3-.339 0-1.003-.36-1.475-.8-.472-.44-1.095-.8-1.383-.8-.289 0-.525-.18-.525-.4 0-.22-.36-.4-.8-.4-.44 0-.8-.15-.8-.332 0-.183-.495-.588-1.1-.9-.605-.313-1.449-.883-1.875-1.268-.427-.385-1.012-.7-1.3-.7-.289 0-.525-.18-.525-.4 0-.22-.201-.4-.446-.4-.479 0-3.468-2.084-6.289-4.385-2.501-2.04-11.265-10.783-11.265-11.238 0-.211-.538-.947-1.195-1.635-1.285-1.344-4.805-8.127-4.805-9.257 0-.377-.18-.685-.4-.685-.22 0-.4-.619-.4-1.376 0-.757-.18-1.488-.4-1.624-.536-.331-.536-12.869 0-13.2.22-.136.4-.777.4-1.424 0-.647.18-1.176.4-1.176.22 0 .4-.362.4-.805 0-.443.163-1.118.363-1.5.2-.382 1.03-2.045 1.844-3.695.815-1.65 1.605-3.09 1.756-3.2.152-.11.715-.828 1.252-1.596 1.826-2.611 8.068-9.204 8.714-9.204.215 0 1.309-.9 2.432-2 1.124-1.1 2.182-2 2.353-2 .17 0 .569-.36.886-.8.317-.44.807-.8 1.088-.8.282 0 .512-.18.512-.4 0-.22.27-.4.6-.4.33 0 .6-.15.6-.332 0-.183.495-.588 1.1-.9.605-.313 1.449-.883 1.875-1.268.427-.385 1.012-.7 1.3-.7.289 0 .525-.18.525-.4 0-.22.236-.4.525-.4.288 0 .911-.36 1.383-.8.472-.44 1.052-.8 1.289-.8 1.755 0 5.182-5.911 5.197-8.965.017-3.461-3.964-9.835-6.142-9.835-.359 0-.652-.18-.652-.4 0-.22-.54-.4-1.2-.4-.66 0-1.2-.18-1.2-.4 0-.22-.709-.4-1.576-.4-.867 0-1.688.18-1.824.4m309.2 4.8c-.136.22-.682.4-1.213.4-1.582 0-6.187 2.899-6.187 3.895 0 .278-.18.505-.4.505-.22 0-.4.27-.4.6 0 .33-.18.6-.4.6-.22 0-.4.439-.4.976 0 .537-.18 1.088-.4 1.224-2.337 1.444 2.953 12.6 5.974 12.6.234 0 .426.18.426.4 0 .22.23.4.512.4.281 0 .771.36 1.088.8.317.44.722.8.899.8.177 0 1.132.81 2.122 1.8s1.978 1.8 2.196 1.8c.735 0 8.713 8.362 9.619 10.082.266.505.625 1.011.798 1.126.497.328 3.966 7.434 3.966 8.123 0 .342.18.733.4.869.22.136.4.777.4 1.424 0 .647.18 1.176.4 1.176.251 0 .4 2.467.4 6.6 0 4.133-.149 6.6-.4 6.6-.22 0-.4.72-.4 1.6 0 .88-.18 1.6-.4 1.6-.22 0-.4.362-.4.805 0 .805-.111 1.091-1.34 3.452-1.969 3.782-2.552 4.73-3.556 5.781-.607.635-1.104 1.325-1.104 1.533 0 .442-9.285 9.811-11.019 11.119-3.343 2.522-6.151 4.51-6.369 4.51-.135 0-.632.36-1.104.8-.472.44-1.095.8-1.383.8-.289 0-.525.18-.525.4 0 .22-.236.4-.525.4-.288 0-.911.36-1.383.8-.472.44-1.136.8-1.475.8-.339 0-.617.18-.617.4 0 .22-.236.4-.525.4-.288 0-.911.36-1.383.8-.472.44-1.136.8-1.475.8-.339 0-.618.135-.618.3-.001.165-.991.75-2.199 1.3-1.208.55-2.198 1.135-2.199 1.3 0 .165-.361.3-.801.3-.44 0-.8.18-.8.4 0 .22-.36.4-.8.4-.44 0-.8.18-.8.4 0 .22-.253.4-.562.4-.485 0-1.758.552-4.733 2.05-.382.193-.967.35-1.3.35-.333 0-.605.18-.605.4 0 .22-.216.4-.48.4-.521 0-7.682 2.623-8.815 3.229-.382.204-1.057.371-1.5.371-.443 0-.805.18-.805.4 0 .22-.54.4-1.2.4-.66 0-1.2.18-1.2.4 0 .22-.54.4-1.2.4-.66 0-1.2.18-1.2.4 0 .22-.54.4-1.2.4-.66 0-1.2.18-1.2.4 0 .22-.54.4-1.2.4-.66 0-1.2.18-1.2.4 0 .22-.54.4-1.2.4-.66 0-1.2.18-1.2.4 0 .22-.63.4-1.4.4-.77 0-1.4.18-1.4.4 0 .22-.529.4-1.176.4-.647 0-1.288.18-1.424.4-.136.22-.867.4-1.624.4-.757 0-1.376.18-1.376.4 0 .22-.72.4-1.6.4-.88 0-1.6.18-1.6.4 0 .22-.619.4-1.376.4-.757 0-1.488.18-1.624.4-.136.22-.856.4-1.6.4-.744 0-1.464.18-1.6.4-.136.22-.946.4-1.8.4-.854 0-1.664.18-1.8.4-.136.22-.946.4-1.8.4-.854 0-1.664.18-1.8.4-.136.22-1.011.4-1.944.4s-1.867.163-2.076.361c-.209.199-1.19.46-2.18.581-.99.121-2.88.415-4.2.653-3.904.703-6.615 1.13-9.8 1.541-8.61 1.113-10.8 1.627-10.8 2.532 0 .182-.291.332-.646.332-.73 0-3.354 2.695-3.354 3.445 0 .269-.225.563-.5.655-.361.12-.5 1.429-.5 4.7s.139 4.58.5 4.7c.275.092.5.439.5.773 0 1.138 4.337 4.527 5.795 4.527.333 0 .605.18.605.4 0 .237 1.459.4 3.576.4 1.967 0 3.688-.18 3.824-.4.136-.22 1.371-.4 2.744-.4 1.373 0 2.667-.164 2.876-.365.209-.2 1.37-.46 2.58-.576 1.21-.116 3.19-.387 4.4-.603 1.21-.216 3.37-.583 4.8-.816 1.43-.233 3.41-.599 4.4-.814.99-.215 2.565-.399 3.5-.409.935-.009 1.7-.197 1.7-.417 0-.22.72-.4 1.6-.4.88 0 1.6-.18 1.6-.4 0-.22.9-.4 2-.4s2-.18 2-.4c0-.22.619-.4 1.376-.4.757 0 1.488-.18 1.624-.4.136-.22.867-.4 1.624-.4.757 0 1.376-.18 1.376-.4 0-.22.72-.4 1.6-.4.88 0 1.6-.18 1.6-.4 0-.22.529-.4 1.176-.4.647 0 1.288-.18 1.424-.4.136-.22.867-.4 1.624-.4.757 0 1.376-.18 1.376-.4 0-.22.54-.4 1.2-.4.66 0 1.2-.18 1.2-.4 0-.22.529-.4 1.176-.4.647 0 1.288-.18 1.424-.4.136-.22.766-.4 1.4-.4.634 0 1.264-.18 1.4-.4.136-.22.687-.4 1.224-.4.537 0 .976-.18.976-.4 0-.22.54-.4 1.2-.4.66 0 1.2-.18 1.2-.4 0-.22.54-.4 1.2-.4.66 0 1.2-.147 1.2-.328 0-.18.9-.572 2-.872 1.1-.3 2-.692 2-.872 0-.181.525-.328 1.167-.328.641 0 1.226-.135 1.3-.3.133-.301 2.053-1.081 6.533-2.656 1.32-.464 2.46-.979 2.533-1.144.074-.165.479-.3.9-.3.422 0 .767-.18.767-.4 0-.22.272-.4.605-.4.333 0 .918-.16 1.3-.356.382-.196 1.595-.781 2.695-1.3 1.1-.519 2.06-1.079 2.133-1.244.074-.165.479-.3.9-.3.422 0 .767-.18.767-.4 0-.22.36-.4.8-.4.44 0 .8-.18.8-.4 0-.22.36-.4.8-.4.44 0 .8-.159.8-.353 0-.195.315-.454.7-.576.936-.296 3.066-1.595 3.233-1.971.074-.165.479-.3.9-.3.422 0 .767-.18.767-.4 0-.22.278-.4.617-.4.339 0 1.003-.36 1.475-.8.472-.44 1.095-.8 1.383-.8.289 0 .525-.18.525-.4 0-.22.236-.4.525-.4.288 0 .883-.315 1.321-.7.882-.774 1.77-1.365 3.516-2.337.64-.357 1.529-.989 1.976-1.406.447-.416 1.009-.757 1.249-.757.24 0 .696-.36 1.013-.8.317-.44.775-.8 1.018-.8.242 0 1.404-.9 2.582-2s2.259-2 2.403-2c.356 0 10.797-10.463 10.797-10.82 0-.156.72-1.025 1.6-1.932.88-.907 1.6-1.879 1.6-2.16 0-.281.36-.771.8-1.088.44-.317.8-.857.8-1.2 0-.343.36-.883.8-1.2.44-.317.8-.882.8-1.255 0-.373.135-.738.3-.812.307-.136 2.29-4.071 3.494-6.933.37-.88.838-1.913 1.04-2.295.201-.382.366-1.046.366-1.476 0-.43.18-.893.4-1.029.22-.136.4-.766.4-1.4 0-.634.18-1.264.4-1.4.22-.136.4-.921.4-1.744s.186-1.682.414-1.91c.521-.521.567-16.584.049-16.914-.201-.127-.471-.952-.599-1.832-.521-3.573-.768-4.6-1.108-4.6-.196 0-.356-.362-.356-.805 0-.443-.159-1.118-.353-1.5a24.714 24.714 0 0 1-.752-1.695c-.953-2.389-4.262-9.012-4.564-9.133-.182-.074-.331-.439-.331-.812 0-.373-.36-.938-.8-1.255-.44-.317-.8-.719-.8-.892 0-.173-.54-.88-1.2-1.571-.66-.691-1.2-1.423-1.2-1.628 0-.204-.675-1.037-1.5-1.85-.825-.813-2.307-2.464-3.294-3.668-.987-1.205-2.21-2.525-2.717-2.933-.507-.408-1.859-1.622-3.005-2.699-3.259-3.06-3.697-3.431-4.691-3.963-.513-.274-1.359-.925-1.881-1.447-.521-.522-1.112-.949-1.312-.949-.2 0-.777-.405-1.282-.9s-1.413-1.155-2.018-1.468c-.605-.312-1.1-.717-1.1-.9 0-.182-.36-.332-.8-.332-.44 0-.8-.18-.8-.4 0-.22-.63-.4-1.4-.4-.77 0-1.4-.18-1.4-.4 0-.22-.439-.4-.976-.4-.537 0-1.088.18-1.224.4m-153.2 16.4c.136.22.777.4 1.424.4.647 0 1.176.18 1.176.4 0 .22.275.4.611.4 1.185 0 4.989 4.418 4.989 5.795 0 .333.18.605.4.605.22 0 .4.72.4 1.6 0 .88.18 1.6.4 1.6.246 0 .4 1.992.4 5.176 0 3.02-.167 5.28-.4 5.424-.22.136-.4.867-.4 1.624 0 .757-.18 1.376-.4 1.376-.22 0-.4.36-.4.8 0 .44-.18.8-.4.8-.22 0-.4.276-.4.613 0 1.709-5.021 4.987-7.638 4.987-.859 0-1.562.18-1.562.4 0 .222-1.067.4-2.4.4s-2.4-.178-2.4-.4c0-.22-.684-.4-1.52-.4-1.543 0-3.671-.752-3.677-1.3-.002-.165-.279-.3-.616-.3-1.479 0-4.987-4.952-4.987-7.038 0-.529-.18-.962-.4-.962-.25 0-.4-2.4-.4-6.4s.15-6.4.4-6.4c.22 0 .4-.54.4-1.2 0-.66.18-1.2.4-1.2.22 0 .4-.36.4-.8 0-.44.136-.8.302-.8.167 0 .537-.53.824-1.177.286-.647 1.05-1.411 1.697-1.697.647-.287 1.177-.657 1.177-.824 0-.166.36-.302.8-.302.44 0 .8-.18.8-.4 0-.22.529-.4 1.176-.4.647 0 1.288-.18 1.424-.4.138-.223 1.996-.4 4.2-.4s4.062.177 4.2.4" }))));
12
+ };
13
+
14
+ const protoFloaterDemoCss = "#root{--clrs-navy:#001f3f;--clrs-blue:#0074d9;--clrs-aqua:#7fdbff;--clrs-teal:#39cccc;--clrs-olive:#3d9970;--clrs-green:#2ecc40;--clrs-lime:#01ff70;--clrs-yellow:#ffdc00;--clrs-orange:#ff851b;--clrs-red:#ff4136;--clrs-maroon:#85144b;--clrs-fuchsia:#f012be;--clrs-purple:#b10dc9;--clrs-black:#111111;--clrs-gray:#aaaaaa;--clrs-silver:#dddddd;--clrs-bada55:#bada55;--clrs-slate:#708090;--clrs-slate4:#4e5964;--clrs-white:#ffffff}#target{width:32px;height:32px;border-radius:8px;background:var(--clrs-navy);color:var(--clrs-white);cursor:pointer}.ikon{margin-top:4px;margin-left:4px}#overlay{display:none;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0.68;z-index:1000;background-color:black}#frame{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:none;width:0;height:0;border:none;z-index:1100}";
15
+
16
+ const ProtoFloaterDemo$1 = /*@__PURE__*/ proxyCustomElement(class ProtoFloaterDemo extends HTMLElement {
17
+ constructor() {
18
+ super();
19
+ this.__registerHost();
20
+ this.__attachShadow();
21
+ this.eventBus = () => window[this.bus];
22
+ this.clickHandler = () => {
23
+ this.eventBus().emit('activate', this.vin);
24
+ };
25
+ this.vin = undefined;
26
+ this.bus = 'eventBus';
27
+ }
28
+ render() {
29
+ return (h("div", { id: "root" }, h("div", { id: "target", onClick: () => this.clickHandler() }, h(Proto360, { class: "ikon", label: `Take a Tour -- ${this.vin}` }))));
30
+ }
31
+ static get style() { return protoFloaterDemoCss; }
32
+ }, [1, "proto-floater-demo", {
33
+ "vin": [1],
34
+ "bus": [1]
35
+ }]);
36
+ function defineCustomElement$1() {
37
+ if (typeof customElements === "undefined") {
38
+ return;
39
+ }
40
+ const components = ["proto-floater-demo"];
41
+ components.forEach(tagName => { switch (tagName) {
42
+ case "proto-floater-demo":
43
+ if (!customElements.get(tagName)) {
44
+ customElements.define(tagName, ProtoFloaterDemo$1);
45
+ }
46
+ break;
47
+ } });
48
+ }
49
+
50
+ const ProtoFloaterDemo = ProtoFloaterDemo$1;
51
+ const defineCustomElement = defineCustomElement$1;
52
+
53
+ export { ProtoFloaterDemo, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface ProtoPlayer extends Components.ProtoPlayer, HTMLElement {}
4
+ export const ProtoPlayer: {
5
+ prototype: ProtoPlayer;
6
+ new (): ProtoPlayer;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,138 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+
3
+ const protoPlayerCss = "#root{--clrs-navy:#001f3f;--clrs-blue:#0074d9;--clrs-aqua:#7fdbff;--clrs-teal:#39cccc;--clrs-olive:#3d9970;--clrs-green:#2ecc40;--clrs-lime:#01ff70;--clrs-yellow:#ffdc00;--clrs-orange:#ff851b;--clrs-red:#ff4136;--clrs-maroon:#85144b;--clrs-fuchsia:#f012be;--clrs-purple:#b10dc9;--clrs-black:#111111;--clrs-gray:#aaaaaa;--clrs-silver:#dddddd;--clrs-bada55:#bada55;--clrs-slate:#708090;--clrs-slate4:#4e5964;--clrs-white:#ffffff}#target{width:32px;height:32px;border-radius:8px;background:var(--clrs-navy);color:var(--clrs-white);cursor:pointer}.ikon{margin-top:4px;margin-left:4px}#overlay{display:none;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0.68;z-index:1000;background-color:black}#frame{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:none;width:0;height:0;border:none;z-index:1100}";
4
+
5
+ const CHECK = 'Checking...';
6
+ const FAILED = 'Content Failed to Load...';
7
+ const ProtoFloaterDemo = /*@__PURE__*/ proxyCustomElement(class ProtoFloaterDemo extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.__attachShadow();
12
+ this.message = undefined;
13
+ this.vin = undefined;
14
+ this.visible = false;
15
+ this.eventBus = () => window[this.bus];
16
+ this.messageHandler = event => {
17
+ const { origin, data } = event;
18
+ const { type } = data;
19
+ console.log('-- messageHandler:', data, origin);
20
+ if (origin !== 'http://localhost:3000')
21
+ return;
22
+ if (type && type === 'close-modal') {
23
+ this.hideFrame();
24
+ return;
25
+ }
26
+ if (this.message === undefined) {
27
+ if (data.type && data.type === 'resize-iframe') {
28
+ this.iframe.style.width = data.payload.width + 'px';
29
+ this.iframe.style.height = data.payload.height + 'px';
30
+ this.iframe.style.display = 'block';
31
+ this.loaded = true;
32
+ this.label = '';
33
+ this.message = data;
34
+ const payload = {
35
+ type: 'data-payload',
36
+ payload: { vin: this.vin, apikey: this.apikey },
37
+ };
38
+ if (this.iframe) {
39
+ this.iframe.contentWindow.postMessage(payload, '*');
40
+ }
41
+ }
42
+ }
43
+ else {
44
+ this.hideFrame();
45
+ }
46
+ };
47
+ this.register = () => {
48
+ window.addEventListener('message', this.messageHandler, false);
49
+ };
50
+ this.unregister = () => {
51
+ window.removeEventListener('message', this.messageHandler);
52
+ };
53
+ this.onIframeLoad = _event => {
54
+ if (this.vin !== undefined) {
55
+ setTimeout(() => {
56
+ if (!this.loaded) {
57
+ this.label = FAILED;
58
+ }
59
+ }, 3000);
60
+ }
61
+ };
62
+ this.hideFrame = () => {
63
+ this.unregister();
64
+ this.overlay.style.display = 'none';
65
+ this.iframe.style.display = 'none';
66
+ this.iframe.style.width = '0';
67
+ this.iframe.style.height = '0';
68
+ this.iframe.style.border = 'none';
69
+ this.message = undefined;
70
+ this.visible = false;
71
+ this.time = undefined;
72
+ this.vin = undefined;
73
+ this.url = undefined;
74
+ };
75
+ this.showFrame = (vin) => {
76
+ this.time = Date.now();
77
+ this.vin = vin;
78
+ this.url = `http://localhost:3000/demo_iframe.html?q=${this.time}&vin=${this.vin}`;
79
+ this.register();
80
+ this.loaded = false;
81
+ this.label = CHECK;
82
+ this.loaded = false;
83
+ this.overlay.style.display = 'block';
84
+ this.iframe.style.border = '1px solid grey';
85
+ this.iframe.style.display = 'block';
86
+ this.visible = true;
87
+ };
88
+ this.handleOverlayClick = () => {
89
+ console.log('-- overlayClick');
90
+ // this.hideFrame()
91
+ };
92
+ this.apikey = undefined;
93
+ this.bus = 'eventBus';
94
+ this.label = CHECK;
95
+ this.failed = true;
96
+ this.loaded = false;
97
+ this.time = undefined;
98
+ this.url = undefined;
99
+ }
100
+ componentDidLoad() {
101
+ this.eventBus().on('activate', vin => {
102
+ if (this.vin !== vin && this.visible) {
103
+ this.hideFrame();
104
+ }
105
+ this.showFrame(vin);
106
+ });
107
+ }
108
+ render() {
109
+ return (h("div", { id: "root" }, h("div", { id: "overlay", ref: el => (this.overlay = el), onClick: () => this.handleOverlayClick() }), h("iframe", { id: "frame", src: this.url, ref: el => (this.iframe = el), onLoad: ev => this.onIframeLoad(ev) })));
110
+ }
111
+ static get style() { return protoPlayerCss; }
112
+ }, [1, "proto-player", {
113
+ "apikey": [1],
114
+ "bus": [1],
115
+ "label": [32],
116
+ "failed": [32],
117
+ "loaded": [32],
118
+ "time": [32],
119
+ "url": [32]
120
+ }]);
121
+ function defineCustomElement$1() {
122
+ if (typeof customElements === "undefined") {
123
+ return;
124
+ }
125
+ const components = ["proto-player"];
126
+ components.forEach(tagName => { switch (tagName) {
127
+ case "proto-player":
128
+ if (!customElements.get(tagName)) {
129
+ customElements.define(tagName, ProtoFloaterDemo);
130
+ }
131
+ break;
132
+ } });
133
+ }
134
+
135
+ const ProtoPlayer = ProtoFloaterDemo;
136
+ const defineCustomElement = defineCustomElement$1;
137
+
138
+ export { ProtoPlayer, defineCustomElement };