pixi-solid 0.0.2 → 0.0.4
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/pixi-stage.js +0 -5
- package/dist/pixi-stage.js.map +1 -1
- package/dist/renderer.js +1 -1
- package/package.json +1 -1
- package/dist/universal.js +0 -204
- package/dist/universal.js.map +0 -1
package/dist/pixi-stage.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { usePixiApp } from "./pixi-application.js";
|
|
2
|
-
import { insert as insert$1 } from "./renderer.js";
|
|
3
2
|
import { applyProps } from "./pixi-components.js";
|
|
4
3
|
import { memo } from "solid-js/web";
|
|
5
|
-
import { createRenderEffect } from "solid-js";
|
|
6
4
|
|
|
7
5
|
//#region src/pixi-stage.tsx
|
|
8
6
|
/**
|
|
@@ -25,9 +23,6 @@ import { createRenderEffect } from "solid-js";
|
|
|
25
23
|
const PixiStage = (props) => {
|
|
26
24
|
const pixiApp = usePixiApp();
|
|
27
25
|
applyProps(pixiApp.stage, props);
|
|
28
|
-
createRenderEffect(() => {
|
|
29
|
-
insert$1(pixiApp.stage, () => props.children);
|
|
30
|
-
});
|
|
31
26
|
return memo(() => pixiApp.stage);
|
|
32
27
|
};
|
|
33
28
|
|
package/dist/pixi-stage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pixi-stage.js","names":["Container","ContainerOptions","JSX","Ref","
|
|
1
|
+
{"version":3,"file":"pixi-stage.js","names":["Container","ContainerOptions","JSX","Ref","usePixiApp","applyProps","PixiEventHandlerMap","PixiStageProps","Omit","ref","children","Element","PixiStage","props","pixiApp","stage","_$memo"],"sources":["../src/pixi-stage.tsx"],"sourcesContent":["import type { Container, ContainerOptions } from \"pixi.js\";\nimport type { JSX, Ref } from \"solid-js\";\nimport { usePixiApp } from \"./pixi-application\";\nimport { applyProps } from \"./pixi-components\";\nimport type { PixiEventHandlerMap } from \"./pixi-events\";\n\nexport type PixiStageProps = PixiEventHandlerMap &\n Omit<ContainerOptions, \"children\"> & {\n ref?: Ref<Container>;\n children?: JSX.Element;\n };\n\n/**\n * PixiStage\n *\n * The root container for rendering Pixi display objects. This component\n * uses the application stage (`pixiApp.stage`) as the mount point and\n * applies props and event handlers to it.\n *\n * Props:\n * - `ref` (optional): receives the stage container reference.\n * - Event handler props (e.g. `onpointerdown`) are forwarded to the stage.\n * - Any other container options supported by Pixi may be passed.\n *\n * Children passed to `PixiStage` are inserted into the application stage.\n *\n * **Example**\n * {@includeCode ./examples/PixiStage.example.tsx}\n */\nexport const PixiStage = (props: PixiStageProps): JSX.Element => {\n const pixiApp = usePixiApp();\n\n applyProps(pixiApp.stage, props);\n\n return <>{pixiApp.stage}</>;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAaY,aAAaC,UAAuC;CAC/D,MAAMC,UAAUV,YAAY;AAE5BC,YAAWS,QAAQC,OAAOF,MAAM;AAEhC,QAAAG,WAAUF,QAAQC,MAAK"}
|
package/dist/renderer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PIXI_EVENT_HANDLER_NAME_SET } from "./pixi-events.js";
|
|
2
|
-
import { createRenderer } from "./universal.js";
|
|
3
2
|
import { Text } from "pixi.js";
|
|
3
|
+
import { createRenderer } from "solid-js/universal";
|
|
4
4
|
|
|
5
5
|
//#region src/renderer.tsx
|
|
6
6
|
const { effect, memo, createComponent, createElement, createTextNode, insertNode, insert, setProp, mergeProps, use, render, spread } = createRenderer({
|
package/package.json
CHANGED
package/dist/universal.js
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { createComponent, createMemo, createRenderEffect, createRoot, mergeProps, untrack } from "solid-js";
|
|
2
|
-
|
|
3
|
-
//#region node_modules/solid-js/universal/dist/universal.js
|
|
4
|
-
var memo = (fn) => createMemo(() => fn());
|
|
5
|
-
function createRenderer$1({ createElement, createTextNode, isTextNode, replaceText, insertNode, removeNode, setProperty, getParentNode, getFirstChild, getNextSibling }) {
|
|
6
|
-
function insert(parent, accessor, marker, initial) {
|
|
7
|
-
if (marker !== void 0 && !initial) initial = [];
|
|
8
|
-
if (typeof accessor !== "function") return insertExpression(parent, accessor, initial, marker);
|
|
9
|
-
createRenderEffect((current) => insertExpression(parent, accessor(), current, marker), initial);
|
|
10
|
-
}
|
|
11
|
-
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
12
|
-
while (typeof current === "function") current = current();
|
|
13
|
-
if (value === current) return current;
|
|
14
|
-
const t = typeof value, multi = marker !== void 0;
|
|
15
|
-
if (t === "string" || t === "number") {
|
|
16
|
-
if (t === "number") value = value.toString();
|
|
17
|
-
if (multi) {
|
|
18
|
-
let node = current[0];
|
|
19
|
-
if (node && isTextNode(node)) replaceText(node, value);
|
|
20
|
-
else node = createTextNode(value);
|
|
21
|
-
current = cleanChildren(parent, current, marker, node);
|
|
22
|
-
} else if (current !== "" && typeof current === "string") replaceText(getFirstChild(parent), current = value);
|
|
23
|
-
else {
|
|
24
|
-
cleanChildren(parent, current, marker, createTextNode(value));
|
|
25
|
-
current = value;
|
|
26
|
-
}
|
|
27
|
-
} else if (value == null || t === "boolean") current = cleanChildren(parent, current, marker);
|
|
28
|
-
else if (t === "function") {
|
|
29
|
-
createRenderEffect(() => {
|
|
30
|
-
let v = value();
|
|
31
|
-
while (typeof v === "function") v = v();
|
|
32
|
-
current = insertExpression(parent, v, current, marker);
|
|
33
|
-
});
|
|
34
|
-
return () => current;
|
|
35
|
-
} else if (Array.isArray(value)) {
|
|
36
|
-
const array = [];
|
|
37
|
-
if (normalizeIncomingArray(array, value, unwrapArray)) {
|
|
38
|
-
createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
|
|
39
|
-
return () => current;
|
|
40
|
-
}
|
|
41
|
-
if (array.length === 0) {
|
|
42
|
-
const replacement = cleanChildren(parent, current, marker);
|
|
43
|
-
if (multi) return current = replacement;
|
|
44
|
-
} else if (Array.isArray(current)) if (current.length === 0) appendNodes(parent, array, marker);
|
|
45
|
-
else reconcileArrays(parent, current, array);
|
|
46
|
-
else if (current == null || current === "") appendNodes(parent, array);
|
|
47
|
-
else reconcileArrays(parent, multi && current || [getFirstChild(parent)], array);
|
|
48
|
-
current = array;
|
|
49
|
-
} else {
|
|
50
|
-
if (Array.isArray(current)) {
|
|
51
|
-
if (multi) return current = cleanChildren(parent, current, marker, value);
|
|
52
|
-
cleanChildren(parent, current, null, value);
|
|
53
|
-
} else if (current == null || current === "" || !getFirstChild(parent)) insertNode(parent, value);
|
|
54
|
-
else replaceNode(parent, value, getFirstChild(parent));
|
|
55
|
-
current = value;
|
|
56
|
-
}
|
|
57
|
-
return current;
|
|
58
|
-
}
|
|
59
|
-
function normalizeIncomingArray(normalized, array, unwrap) {
|
|
60
|
-
let dynamic = false;
|
|
61
|
-
for (let i = 0, len = array.length; i < len; i++) {
|
|
62
|
-
let item = array[i], t;
|
|
63
|
-
if (item == null || item === true || item === false);
|
|
64
|
-
else if (Array.isArray(item)) dynamic = normalizeIncomingArray(normalized, item) || dynamic;
|
|
65
|
-
else if ((t = typeof item) === "string" || t === "number") normalized.push(createTextNode(item));
|
|
66
|
-
else if (t === "function") if (unwrap) {
|
|
67
|
-
while (typeof item === "function") item = item();
|
|
68
|
-
dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item]) || dynamic;
|
|
69
|
-
} else {
|
|
70
|
-
normalized.push(item);
|
|
71
|
-
dynamic = true;
|
|
72
|
-
}
|
|
73
|
-
else normalized.push(item);
|
|
74
|
-
}
|
|
75
|
-
return dynamic;
|
|
76
|
-
}
|
|
77
|
-
function reconcileArrays(parentNode, a, b) {
|
|
78
|
-
let bLength = b.length, aEnd = a.length, bEnd = bLength, aStart = 0, bStart = 0, after = getNextSibling(a[aEnd - 1]), map = null;
|
|
79
|
-
while (aStart < aEnd || bStart < bEnd) {
|
|
80
|
-
if (a[aStart] === b[bStart]) {
|
|
81
|
-
aStart++;
|
|
82
|
-
bStart++;
|
|
83
|
-
continue;
|
|
84
|
-
}
|
|
85
|
-
while (a[aEnd - 1] === b[bEnd - 1]) {
|
|
86
|
-
aEnd--;
|
|
87
|
-
bEnd--;
|
|
88
|
-
}
|
|
89
|
-
if (aEnd === aStart) {
|
|
90
|
-
const node = bEnd < bLength ? bStart ? getNextSibling(b[bStart - 1]) : b[bEnd - bStart] : after;
|
|
91
|
-
while (bStart < bEnd) insertNode(parentNode, b[bStart++], node);
|
|
92
|
-
} else if (bEnd === bStart) while (aStart < aEnd) {
|
|
93
|
-
if (!map || !map.has(a[aStart])) removeNode(parentNode, a[aStart]);
|
|
94
|
-
aStart++;
|
|
95
|
-
}
|
|
96
|
-
else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
|
|
97
|
-
const node = getNextSibling(a[--aEnd]);
|
|
98
|
-
insertNode(parentNode, b[bStart++], getNextSibling(a[aStart++]));
|
|
99
|
-
insertNode(parentNode, b[--bEnd], node);
|
|
100
|
-
a[aEnd] = b[bEnd];
|
|
101
|
-
} else {
|
|
102
|
-
if (!map) {
|
|
103
|
-
map = /* @__PURE__ */ new Map();
|
|
104
|
-
let i = bStart;
|
|
105
|
-
while (i < bEnd) map.set(b[i], i++);
|
|
106
|
-
}
|
|
107
|
-
const index = map.get(a[aStart]);
|
|
108
|
-
if (index != null) if (bStart < index && index < bEnd) {
|
|
109
|
-
let i = aStart, sequence = 1, t;
|
|
110
|
-
while (++i < aEnd && i < bEnd) {
|
|
111
|
-
if ((t = map.get(a[i])) == null || t !== index + sequence) break;
|
|
112
|
-
sequence++;
|
|
113
|
-
}
|
|
114
|
-
if (sequence > index - bStart) {
|
|
115
|
-
const node = a[aStart];
|
|
116
|
-
while (bStart < index) insertNode(parentNode, b[bStart++], node);
|
|
117
|
-
} else replaceNode(parentNode, b[bStart++], a[aStart++]);
|
|
118
|
-
} else aStart++;
|
|
119
|
-
else removeNode(parentNode, a[aStart++]);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
function cleanChildren(parent, current, marker, replacement) {
|
|
124
|
-
if (marker === void 0) {
|
|
125
|
-
let removed;
|
|
126
|
-
while (removed = getFirstChild(parent)) removeNode(parent, removed);
|
|
127
|
-
replacement && insertNode(parent, replacement);
|
|
128
|
-
return "";
|
|
129
|
-
}
|
|
130
|
-
const node = replacement || createTextNode("");
|
|
131
|
-
if (current.length) {
|
|
132
|
-
let inserted = false;
|
|
133
|
-
for (let i = current.length - 1; i >= 0; i--) {
|
|
134
|
-
const el = current[i];
|
|
135
|
-
if (node !== el) {
|
|
136
|
-
const isParent = getParentNode(el) === parent;
|
|
137
|
-
if (!inserted && !i) isParent ? replaceNode(parent, node, el) : insertNode(parent, node, marker);
|
|
138
|
-
else isParent && removeNode(parent, el);
|
|
139
|
-
} else inserted = true;
|
|
140
|
-
}
|
|
141
|
-
} else insertNode(parent, node, marker);
|
|
142
|
-
return [node];
|
|
143
|
-
}
|
|
144
|
-
function appendNodes(parent, array, marker) {
|
|
145
|
-
for (let i = 0, len = array.length; i < len; i++) insertNode(parent, array[i], marker);
|
|
146
|
-
}
|
|
147
|
-
function replaceNode(parent, newNode, oldNode) {
|
|
148
|
-
insertNode(parent, newNode, oldNode);
|
|
149
|
-
removeNode(parent, oldNode);
|
|
150
|
-
}
|
|
151
|
-
function spreadExpression(node, props, prevProps = {}, skipChildren) {
|
|
152
|
-
props || (props = {});
|
|
153
|
-
if (!skipChildren) createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
|
|
154
|
-
createRenderEffect(() => props.ref && props.ref(node));
|
|
155
|
-
createRenderEffect(() => {
|
|
156
|
-
for (const prop in props) {
|
|
157
|
-
if (prop === "children" || prop === "ref") continue;
|
|
158
|
-
const value = props[prop];
|
|
159
|
-
if (value === prevProps[prop]) continue;
|
|
160
|
-
setProperty(node, prop, value, prevProps[prop]);
|
|
161
|
-
prevProps[prop] = value;
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
return prevProps;
|
|
165
|
-
}
|
|
166
|
-
return {
|
|
167
|
-
render(code, element) {
|
|
168
|
-
let disposer;
|
|
169
|
-
createRoot((dispose) => {
|
|
170
|
-
disposer = dispose;
|
|
171
|
-
insert(element, code());
|
|
172
|
-
});
|
|
173
|
-
return disposer;
|
|
174
|
-
},
|
|
175
|
-
insert,
|
|
176
|
-
spread(node, accessor, skipChildren) {
|
|
177
|
-
if (typeof accessor === "function") createRenderEffect((current) => spreadExpression(node, accessor(), current, skipChildren));
|
|
178
|
-
else spreadExpression(node, accessor, void 0, skipChildren);
|
|
179
|
-
},
|
|
180
|
-
createElement,
|
|
181
|
-
createTextNode,
|
|
182
|
-
insertNode,
|
|
183
|
-
setProp(node, name, value, prev) {
|
|
184
|
-
setProperty(node, name, value, prev);
|
|
185
|
-
return value;
|
|
186
|
-
},
|
|
187
|
-
mergeProps,
|
|
188
|
-
effect: createRenderEffect,
|
|
189
|
-
memo,
|
|
190
|
-
createComponent,
|
|
191
|
-
use(fn, element, arg) {
|
|
192
|
-
return untrack(() => fn(element, arg));
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
function createRenderer(options) {
|
|
197
|
-
const renderer = createRenderer$1(options);
|
|
198
|
-
renderer.mergeProps = mergeProps;
|
|
199
|
-
return renderer;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
//#endregion
|
|
203
|
-
export { createRenderer };
|
|
204
|
-
//# sourceMappingURL=universal.js.map
|
package/dist/universal.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"universal.js","names":[],"sources":["../node_modules/solid-js/universal/dist/universal.js"],"sourcesContent":["import { createMemo, createRoot, createRenderEffect, mergeProps, createComponent, untrack } from 'solid-js';\n\nconst memo = fn => createMemo(() => fn());\n\nfunction createRenderer$1({\n createElement,\n createTextNode,\n isTextNode,\n replaceText,\n insertNode,\n removeNode,\n setProperty,\n getParentNode,\n getFirstChild,\n getNextSibling\n}) {\n function insert(parent, accessor, marker, initial) {\n if (marker !== undefined && !initial) initial = [];\n if (typeof accessor !== \"function\") return insertExpression(parent, accessor, initial, marker);\n createRenderEffect(current => insertExpression(parent, accessor(), current, marker), initial);\n }\n function insertExpression(parent, value, current, marker, unwrapArray) {\n while (typeof current === \"function\") current = current();\n if (value === current) return current;\n const t = typeof value,\n multi = marker !== undefined;\n if (t === \"string\" || t === \"number\") {\n if (t === \"number\") value = value.toString();\n if (multi) {\n let node = current[0];\n if (node && isTextNode(node)) {\n replaceText(node, value);\n } else node = createTextNode(value);\n current = cleanChildren(parent, current, marker, node);\n } else {\n if (current !== \"\" && typeof current === \"string\") {\n replaceText(getFirstChild(parent), current = value);\n } else {\n cleanChildren(parent, current, marker, createTextNode(value));\n current = value;\n }\n }\n } else if (value == null || t === \"boolean\") {\n current = cleanChildren(parent, current, marker);\n } else if (t === \"function\") {\n createRenderEffect(() => {\n let v = value();\n while (typeof v === \"function\") v = v();\n current = insertExpression(parent, v, current, marker);\n });\n return () => current;\n } else if (Array.isArray(value)) {\n const array = [];\n if (normalizeIncomingArray(array, value, unwrapArray)) {\n createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));\n return () => current;\n }\n if (array.length === 0) {\n const replacement = cleanChildren(parent, current, marker);\n if (multi) return current = replacement;\n } else {\n if (Array.isArray(current)) {\n if (current.length === 0) {\n appendNodes(parent, array, marker);\n } else reconcileArrays(parent, current, array);\n } else if (current == null || current === \"\") {\n appendNodes(parent, array);\n } else {\n reconcileArrays(parent, multi && current || [getFirstChild(parent)], array);\n }\n }\n current = array;\n } else {\n if (Array.isArray(current)) {\n if (multi) return current = cleanChildren(parent, current, marker, value);\n cleanChildren(parent, current, null, value);\n } else if (current == null || current === \"\" || !getFirstChild(parent)) {\n insertNode(parent, value);\n } else replaceNode(parent, value, getFirstChild(parent));\n current = value;\n }\n return current;\n }\n function normalizeIncomingArray(normalized, array, unwrap) {\n let dynamic = false;\n for (let i = 0, len = array.length; i < len; i++) {\n let item = array[i],\n t;\n if (item == null || item === true || item === false) ; else if (Array.isArray(item)) {\n dynamic = normalizeIncomingArray(normalized, item) || dynamic;\n } else if ((t = typeof item) === \"string\" || t === \"number\") {\n normalized.push(createTextNode(item));\n } else if (t === \"function\") {\n if (unwrap) {\n while (typeof item === \"function\") item = item();\n dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item]) || dynamic;\n } else {\n normalized.push(item);\n dynamic = true;\n }\n } else normalized.push(item);\n }\n return dynamic;\n }\n function reconcileArrays(parentNode, a, b) {\n let bLength = b.length,\n aEnd = a.length,\n bEnd = bLength,\n aStart = 0,\n bStart = 0,\n after = getNextSibling(a[aEnd - 1]),\n map = null;\n while (aStart < aEnd || bStart < bEnd) {\n if (a[aStart] === b[bStart]) {\n aStart++;\n bStart++;\n continue;\n }\n while (a[aEnd - 1] === b[bEnd - 1]) {\n aEnd--;\n bEnd--;\n }\n if (aEnd === aStart) {\n const node = bEnd < bLength ? bStart ? getNextSibling(b[bStart - 1]) : b[bEnd - bStart] : after;\n while (bStart < bEnd) insertNode(parentNode, b[bStart++], node);\n } else if (bEnd === bStart) {\n while (aStart < aEnd) {\n if (!map || !map.has(a[aStart])) removeNode(parentNode, a[aStart]);\n aStart++;\n }\n } else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {\n const node = getNextSibling(a[--aEnd]);\n insertNode(parentNode, b[bStart++], getNextSibling(a[aStart++]));\n insertNode(parentNode, b[--bEnd], node);\n a[aEnd] = b[bEnd];\n } else {\n if (!map) {\n map = new Map();\n let i = bStart;\n while (i < bEnd) map.set(b[i], i++);\n }\n const index = map.get(a[aStart]);\n if (index != null) {\n if (bStart < index && index < bEnd) {\n let i = aStart,\n sequence = 1,\n t;\n while (++i < aEnd && i < bEnd) {\n if ((t = map.get(a[i])) == null || t !== index + sequence) break;\n sequence++;\n }\n if (sequence > index - bStart) {\n const node = a[aStart];\n while (bStart < index) insertNode(parentNode, b[bStart++], node);\n } else replaceNode(parentNode, b[bStart++], a[aStart++]);\n } else aStart++;\n } else removeNode(parentNode, a[aStart++]);\n }\n }\n }\n function cleanChildren(parent, current, marker, replacement) {\n if (marker === undefined) {\n let removed;\n while (removed = getFirstChild(parent)) removeNode(parent, removed);\n replacement && insertNode(parent, replacement);\n return \"\";\n }\n const node = replacement || createTextNode(\"\");\n if (current.length) {\n let inserted = false;\n for (let i = current.length - 1; i >= 0; i--) {\n const el = current[i];\n if (node !== el) {\n const isParent = getParentNode(el) === parent;\n if (!inserted && !i) isParent ? replaceNode(parent, node, el) : insertNode(parent, node, marker);else isParent && removeNode(parent, el);\n } else inserted = true;\n }\n } else insertNode(parent, node, marker);\n return [node];\n }\n function appendNodes(parent, array, marker) {\n for (let i = 0, len = array.length; i < len; i++) insertNode(parent, array[i], marker);\n }\n function replaceNode(parent, newNode, oldNode) {\n insertNode(parent, newNode, oldNode);\n removeNode(parent, oldNode);\n }\n function spreadExpression(node, props, prevProps = {}, skipChildren) {\n props || (props = {});\n if (!skipChildren) {\n createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));\n }\n createRenderEffect(() => props.ref && props.ref(node));\n createRenderEffect(() => {\n for (const prop in props) {\n if (prop === \"children\" || prop === \"ref\") continue;\n const value = props[prop];\n if (value === prevProps[prop]) continue;\n setProperty(node, prop, value, prevProps[prop]);\n prevProps[prop] = value;\n }\n });\n return prevProps;\n }\n return {\n render(code, element) {\n let disposer;\n createRoot(dispose => {\n disposer = dispose;\n insert(element, code());\n });\n return disposer;\n },\n insert,\n spread(node, accessor, skipChildren) {\n if (typeof accessor === \"function\") {\n createRenderEffect(current => spreadExpression(node, accessor(), current, skipChildren));\n } else spreadExpression(node, accessor, undefined, skipChildren);\n },\n createElement,\n createTextNode,\n insertNode,\n setProp(node, name, value, prev) {\n setProperty(node, name, value, prev);\n return value;\n },\n mergeProps,\n effect: createRenderEffect,\n memo,\n createComponent,\n use(fn, element, arg) {\n return untrack(() => fn(element, arg));\n }\n };\n}\n\nfunction createRenderer(options) {\n const renderer = createRenderer$1(options);\n renderer.mergeProps = mergeProps;\n return renderer;\n}\n\nexport { createRenderer };\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAM,QAAO,OAAM,iBAAiB,IAAI,CAAC;AAEzC,SAAS,iBAAiB,EACxB,eACA,gBACA,YACA,aACA,YACA,YACA,aACA,eACA,eACA,kBACC;CACD,SAAS,OAAO,QAAQ,UAAU,QAAQ,SAAS;AACjD,MAAI,WAAW,UAAa,CAAC,QAAS,WAAU,EAAE;AAClD,MAAI,OAAO,aAAa,WAAY,QAAO,iBAAiB,QAAQ,UAAU,SAAS,OAAO;AAC9F,sBAAmB,YAAW,iBAAiB,QAAQ,UAAU,EAAE,SAAS,OAAO,EAAE,QAAQ;;CAE/F,SAAS,iBAAiB,QAAQ,OAAO,SAAS,QAAQ,aAAa;AACrE,SAAO,OAAO,YAAY,WAAY,WAAU,SAAS;AACzD,MAAI,UAAU,QAAS,QAAO;EAC9B,MAAM,IAAI,OAAO,OACf,QAAQ,WAAW;AACrB,MAAI,MAAM,YAAY,MAAM,UAAU;AACpC,OAAI,MAAM,SAAU,SAAQ,MAAM,UAAU;AAC5C,OAAI,OAAO;IACT,IAAI,OAAO,QAAQ;AACnB,QAAI,QAAQ,WAAW,KAAK,CAC1B,aAAY,MAAM,MAAM;QACnB,QAAO,eAAe,MAAM;AACnC,cAAU,cAAc,QAAQ,SAAS,QAAQ,KAAK;cAElD,YAAY,MAAM,OAAO,YAAY,SACvC,aAAY,cAAc,OAAO,EAAE,UAAU,MAAM;QAC9C;AACL,kBAAc,QAAQ,SAAS,QAAQ,eAAe,MAAM,CAAC;AAC7D,cAAU;;aAGL,SAAS,QAAQ,MAAM,UAChC,WAAU,cAAc,QAAQ,SAAS,OAAO;WACvC,MAAM,YAAY;AAC3B,4BAAyB;IACvB,IAAI,IAAI,OAAO;AACf,WAAO,OAAO,MAAM,WAAY,KAAI,GAAG;AACvC,cAAU,iBAAiB,QAAQ,GAAG,SAAS,OAAO;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