@hanzo/gui 2.0.7 → 2.0.9

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 (95) hide show
  1. package/dist/cjs/createGui.cjs +69 -0
  2. package/dist/cjs/createGui.native.js +77 -0
  3. package/dist/cjs/createGui.native.js.map +1 -0
  4. package/dist/cjs/index.cjs +54 -0
  5. package/dist/cjs/index.native.js +57 -0
  6. package/dist/cjs/index.native.js.map +1 -0
  7. package/dist/cjs/setup.cjs +26 -0
  8. package/dist/cjs/setup.native.js +31 -0
  9. package/dist/cjs/setup.native.js.map +1 -0
  10. package/dist/cjs/viewTypes.cjs +16 -0
  11. package/dist/cjs/viewTypes.native.js +19 -0
  12. package/dist/cjs/viewTypes.native.js.map +1 -0
  13. package/dist/cjs/views/EnsureFlexed.cjs +36 -0
  14. package/dist/cjs/views/EnsureFlexed.native.js +39 -0
  15. package/dist/cjs/views/EnsureFlexed.native.js.map +1 -0
  16. package/dist/cjs/views/GuiProvider.cjs +27 -0
  17. package/dist/cjs/views/GuiProvider.native.js +30 -0
  18. package/dist/cjs/views/GuiProvider.native.js.map +1 -0
  19. package/dist/cjs/views/Text.cjs +38 -0
  20. package/dist/cjs/views/Text.native.js +41 -0
  21. package/dist/cjs/views/Text.native.js.map +1 -0
  22. package/dist/cjs/views/VisuallyHidden.cjs +58 -0
  23. package/dist/cjs/views/VisuallyHidden.native.js +61 -0
  24. package/dist/cjs/views/VisuallyHidden.native.js.map +1 -0
  25. package/dist/esm/createGui.mjs +46 -0
  26. package/dist/esm/createGui.mjs.map +1 -0
  27. package/dist/esm/createGui.native.js +51 -0
  28. package/dist/esm/createGui.native.js.map +1 -0
  29. package/dist/esm/index.js +37 -0
  30. package/dist/esm/index.js.map +1 -0
  31. package/dist/esm/index.mjs +37 -0
  32. package/dist/esm/index.mjs.map +1 -0
  33. package/dist/esm/index.native.js +37 -0
  34. package/dist/esm/index.native.js.map +1 -0
  35. package/dist/esm/setup.mjs +4 -0
  36. package/dist/esm/setup.mjs.map +1 -0
  37. package/dist/esm/setup.native.js +5 -0
  38. package/dist/esm/setup.native.js.map +1 -0
  39. package/dist/esm/viewTypes.mjs +2 -0
  40. package/dist/esm/viewTypes.mjs.map +1 -0
  41. package/dist/esm/viewTypes.native.js +2 -0
  42. package/dist/esm/viewTypes.native.js.map +1 -0
  43. package/dist/esm/views/EnsureFlexed.mjs +13 -0
  44. package/dist/esm/views/EnsureFlexed.mjs.map +1 -0
  45. package/dist/esm/views/EnsureFlexed.native.js +13 -0
  46. package/dist/esm/views/EnsureFlexed.native.js.map +1 -0
  47. package/dist/esm/views/GuiProvider.mjs +4 -0
  48. package/dist/esm/views/GuiProvider.mjs.map +1 -0
  49. package/dist/esm/views/GuiProvider.native.js +4 -0
  50. package/dist/esm/views/GuiProvider.native.js.map +1 -0
  51. package/dist/esm/views/Text.mjs +15 -0
  52. package/dist/esm/views/Text.mjs.map +1 -0
  53. package/dist/esm/views/Text.native.js +15 -0
  54. package/dist/esm/views/Text.native.js.map +1 -0
  55. package/dist/esm/views/VisuallyHidden.mjs +35 -0
  56. package/dist/esm/views/VisuallyHidden.mjs.map +1 -0
  57. package/dist/esm/views/VisuallyHidden.native.js +35 -0
  58. package/dist/esm/views/VisuallyHidden.native.js.map +1 -0
  59. package/dist/jsx/createGui.mjs +46 -0
  60. package/dist/jsx/createGui.mjs.map +1 -0
  61. package/dist/jsx/createGui.native.js +77 -0
  62. package/dist/jsx/createGui.native.js.map +1 -0
  63. package/dist/jsx/index.js +37 -0
  64. package/dist/jsx/index.js.map +1 -0
  65. package/dist/jsx/index.mjs +37 -0
  66. package/dist/jsx/index.mjs.map +1 -0
  67. package/dist/jsx/index.native.js +57 -0
  68. package/dist/jsx/index.native.js.map +1 -0
  69. package/dist/jsx/setup.mjs +4 -0
  70. package/dist/jsx/setup.mjs.map +1 -0
  71. package/dist/jsx/setup.native.js +31 -0
  72. package/dist/jsx/setup.native.js.map +1 -0
  73. package/dist/jsx/viewTypes.mjs +2 -0
  74. package/dist/jsx/viewTypes.mjs.map +1 -0
  75. package/dist/jsx/viewTypes.native.js +19 -0
  76. package/dist/jsx/viewTypes.native.js.map +1 -0
  77. package/dist/jsx/views/EnsureFlexed.mjs +13 -0
  78. package/dist/jsx/views/EnsureFlexed.mjs.map +1 -0
  79. package/dist/jsx/views/EnsureFlexed.native.js +39 -0
  80. package/dist/jsx/views/EnsureFlexed.native.js.map +1 -0
  81. package/dist/jsx/views/GuiProvider.mjs +4 -0
  82. package/dist/jsx/views/GuiProvider.mjs.map +1 -0
  83. package/dist/jsx/views/GuiProvider.native.js +30 -0
  84. package/dist/jsx/views/GuiProvider.native.js.map +1 -0
  85. package/dist/jsx/views/Text.mjs +15 -0
  86. package/dist/jsx/views/Text.mjs.map +1 -0
  87. package/dist/jsx/views/Text.native.js +41 -0
  88. package/dist/jsx/views/Text.native.js.map +1 -0
  89. package/dist/jsx/views/VisuallyHidden.mjs +35 -0
  90. package/dist/jsx/views/VisuallyHidden.mjs.map +1 -0
  91. package/dist/jsx/views/VisuallyHidden.native.js +61 -0
  92. package/dist/jsx/views/VisuallyHidden.native.js.map +1 -0
  93. package/package.json +54 -3
  94. package/src/index.ts +38 -157
  95. package/types/index.d.ts +2 -23
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var createGui_exports = {};
24
+ __export(createGui_exports, {
25
+ createGui: () => createGui
26
+ });
27
+ module.exports = __toCommonJS(createGui_exports);
28
+ var import_core = require("@hanzogui/core"),
29
+ createGui = process.env.NODE_ENV !== "development" ? import_core.createGui : function (conf) {
30
+ for (var sizeTokenKeys = ["$true"], hasKeys = function (expectedKeys, obj) {
31
+ return expectedKeys.every(function (k) {
32
+ return typeof obj[k] < "u";
33
+ });
34
+ }, guiConfig = (0, import_core.createGui)(conf), _i = 0, _iter = ["size", "space"]; _i < _iter.length; _i++) {
35
+ var name = _iter[_i],
36
+ tokenSet = guiConfig.tokensParsed[name];
37
+ if (!tokenSet) throw new Error(`Expected tokens for "${name}" in ${Object.keys(guiConfig.tokensParsed).join(", ")}`);
38
+ if (!hasKeys(sizeTokenKeys, tokenSet)) throw new Error(`
39
+ createGui() missing expected tokens.${name}:
40
+
41
+ Received: ${Object.keys(tokenSet).join(", ")}
42
+
43
+ Expected: ${sizeTokenKeys.join(", ")}
44
+
45
+ Hanzo GUI expects a "true" key that is the same value as your default size. This is so
46
+ it can size things up or down from the defaults without assuming which keys you use.
47
+
48
+ Please define a "true" or "$true" key on your size and space tokens like so (example):
49
+
50
+ size: {
51
+ sm: 2,
52
+ md: 10,
53
+ true: 10, // this means "md" is your default size
54
+ lg: 20,
55
+ }
56
+
57
+ `);
58
+ }
59
+ for (var expected = Object.keys(guiConfig.tokensParsed.size), _i1 = 0, _iter1 = ["radius", "zIndex"]; _i1 < _iter1.length; _i1++) {
60
+ var name1 = _iter1[_i1],
61
+ tokenSet1 = guiConfig.tokensParsed[name1],
62
+ received = Object.keys(tokenSet1),
63
+ hasSomeOverlap = received.some(function (rk) {
64
+ return expected.includes(rk);
65
+ });
66
+ if (!hasSomeOverlap) throw new Error(`
67
+ createGui() invalid tokens.${name1}:
68
+
69
+ Received: ${received.join(", ")}
70
+
71
+ Expected a subset of: ${expected.join(", ")}
72
+
73
+ `);
74
+ }
75
+ return guiConfig;
76
+ };
77
+ //# sourceMappingURL=createGui.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","createGui_exports","createGui","module","exports","import_core","require","process","env","NODE_ENV","conf","sizeTokenKeys","hasKeys","expectedKeys","obj","every","k","guiConfig","_i","_iter","length","tokenSet","tokensParsed","Error","keys","join"],"sources":["../../src/createGui.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AAMF,IAAAA,SAAM,GAAAC,MACX,CAAAC,cAAY;AAGN,IAAAC,gBAAM,GAAAF,MAAiB,CAAAG,wBAEN;AAOjB,IAAAC,iBAAmB,GAACJ,MAAQ,CAAAK,mBAAmB;AAC7C,IAAAC,YAAM,GAAAN,MAAW,CAAAO,SAAU,CAAAC,cAAiB;AAC5C,IAAAC,QAAK,GAAAA,CAAAC,MAAA,EAAAC,GAAA;IACH,SAAAC,IAAM,IAAID,GAAA,EAAAZ,SACR,CAAAW,MAAA,EAAAE,IAAA;MAAAC,GAAwB,EAAAF,GAAI,CAAAC,IAAA,CAAQ;MAAAE,UAAO;IAAA;EAAA;EAAAC,WACzC,GAAAA,CAAAC,EAAU,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;IAAA,IAAAF,IACV,WAAUA,IAAA,uBAAAA,IAAA,qBACd,IAAAG,GAAA,IAAAhB,iBAAA,CAAAa,IAAA,GAEF,CAAAX,YAAa,CAAAe,IAAA,CAAAL,EAAA,EAAAI,GAAe,KAAAA,GAAQ,KAAAF,MAAA,IAAAnB,SAAA,CAAAiB,EAAA,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA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c,IAAI,CAAC;AAAA;AAAA;AAEY;AAAA;AAE1C;AAIO;AACF","ignoreList":[]}
@@ -0,0 +1,37 @@
1
+ export * from "@hanzogui/core";
2
+ export * from "@hanzogui/stacks";
3
+ export * from "@hanzogui/spacer";
4
+ export * from "@hanzogui/animate-presence";
5
+ export * from "@hanzogui/button";
6
+ export * from "@hanzogui/popover";
7
+ export * from "@hanzogui/radio-group";
8
+ export * from "@hanzogui/tooltip";
9
+ export * from "@hanzogui/switch";
10
+ export * from "@hanzogui/checkbox";
11
+ export * from "@hanzogui/dialog";
12
+ export * from "@hanzogui/sheet";
13
+ export * from "@hanzogui/adapt";
14
+ export * from "@hanzogui/label";
15
+ export * from "@hanzogui/input";
16
+ export * from "@hanzogui/select";
17
+ export * from "@hanzogui/separator";
18
+ export * from "@hanzogui/slider";
19
+ export * from "@hanzogui/tabs";
20
+ export * from "@hanzogui/toggle-group";
21
+ export * from "@hanzogui/accordion";
22
+ export * from "@hanzogui/avatar";
23
+ export * from "@hanzogui/card";
24
+ export * from "@hanzogui/form";
25
+ export * from "@hanzogui/group";
26
+ export * from "@hanzogui/image";
27
+ export * from "@hanzogui/list-item";
28
+ export * from "@hanzogui/portal";
29
+ export * from "@hanzogui/progress";
30
+ export * from "@hanzogui/scroll-view";
31
+ export * from "@hanzogui/spinner";
32
+ export * from "@hanzogui/text";
33
+ export * from "@hanzogui/toast";
34
+ export * from "@hanzogui/visually-hidden";
35
+ export * from "@hanzogui/focusable";
36
+ export * from "@hanzogui/elements";
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAGA,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
@@ -0,0 +1,37 @@
1
+ export * from "@hanzogui/core";
2
+ export * from "@hanzogui/stacks";
3
+ export * from "@hanzogui/spacer";
4
+ export * from "@hanzogui/animate-presence";
5
+ export * from "@hanzogui/button";
6
+ export * from "@hanzogui/popover";
7
+ export * from "@hanzogui/radio-group";
8
+ export * from "@hanzogui/tooltip";
9
+ export * from "@hanzogui/switch";
10
+ export * from "@hanzogui/checkbox";
11
+ export * from "@hanzogui/dialog";
12
+ export * from "@hanzogui/sheet";
13
+ export * from "@hanzogui/adapt";
14
+ export * from "@hanzogui/label";
15
+ export * from "@hanzogui/input";
16
+ export * from "@hanzogui/select";
17
+ export * from "@hanzogui/separator";
18
+ export * from "@hanzogui/slider";
19
+ export * from "@hanzogui/tabs";
20
+ export * from "@hanzogui/toggle-group";
21
+ export * from "@hanzogui/accordion";
22
+ export * from "@hanzogui/avatar";
23
+ export * from "@hanzogui/card";
24
+ export * from "@hanzogui/form";
25
+ export * from "@hanzogui/group";
26
+ export * from "@hanzogui/image";
27
+ export * from "@hanzogui/list-item";
28
+ export * from "@hanzogui/portal";
29
+ export * from "@hanzogui/progress";
30
+ export * from "@hanzogui/scroll-view";
31
+ export * from "@hanzogui/spinner";
32
+ export * from "@hanzogui/text";
33
+ export * from "@hanzogui/toast";
34
+ export * from "@hanzogui/visually-hidden";
35
+ export * from "@hanzogui/focusable";
36
+ export * from "@hanzogui/elements";
37
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAGA,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc","ignoreList":[]}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ },
14
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: !0
17
+ }), mod);
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ var import_setup = require("./setup.native.js");
21
+ __reExport(index_exports, require("@hanzogui/core"), module.exports);
22
+ __reExport(index_exports, require("@hanzogui/stacks"), module.exports);
23
+ __reExport(index_exports, require("@hanzogui/spacer"), module.exports);
24
+ __reExport(index_exports, require("@hanzogui/animate-presence"), module.exports);
25
+ __reExport(index_exports, require("@hanzogui/button"), module.exports);
26
+ __reExport(index_exports, require("@hanzogui/popover"), module.exports);
27
+ __reExport(index_exports, require("@hanzogui/radio-group"), module.exports);
28
+ __reExport(index_exports, require("@hanzogui/tooltip"), module.exports);
29
+ __reExport(index_exports, require("@hanzogui/switch"), module.exports);
30
+ __reExport(index_exports, require("@hanzogui/checkbox"), module.exports);
31
+ __reExport(index_exports, require("@hanzogui/dialog"), module.exports);
32
+ __reExport(index_exports, require("@hanzogui/sheet"), module.exports);
33
+ __reExport(index_exports, require("@hanzogui/adapt"), module.exports);
34
+ __reExport(index_exports, require("@hanzogui/label"), module.exports);
35
+ __reExport(index_exports, require("@hanzogui/input"), module.exports);
36
+ __reExport(index_exports, require("@hanzogui/select"), module.exports);
37
+ __reExport(index_exports, require("@hanzogui/separator"), module.exports);
38
+ __reExport(index_exports, require("@hanzogui/slider"), module.exports);
39
+ __reExport(index_exports, require("@hanzogui/tabs"), module.exports);
40
+ __reExport(index_exports, require("@hanzogui/toggle-group"), module.exports);
41
+ __reExport(index_exports, require("@hanzogui/accordion"), module.exports);
42
+ __reExport(index_exports, require("@hanzogui/avatar"), module.exports);
43
+ __reExport(index_exports, require("@hanzogui/card"), module.exports);
44
+ __reExport(index_exports, require("@hanzogui/form"), module.exports);
45
+ __reExport(index_exports, require("@hanzogui/group"), module.exports);
46
+ __reExport(index_exports, require("@hanzogui/image"), module.exports);
47
+ __reExport(index_exports, require("@hanzogui/list-item"), module.exports);
48
+ __reExport(index_exports, require("@hanzogui/portal"), module.exports);
49
+ __reExport(index_exports, require("@hanzogui/progress"), module.exports);
50
+ __reExport(index_exports, require("@hanzogui/scroll-view"), module.exports);
51
+ __reExport(index_exports, require("@hanzogui/spinner"), module.exports);
52
+ __reExport(index_exports, require("@hanzogui/text"), module.exports);
53
+ __reExport(index_exports, require("@hanzogui/toast"), module.exports);
54
+ __reExport(index_exports, require("@hanzogui/visually-hidden"), module.exports);
55
+ __reExport(index_exports, require("@hanzogui/focusable"), module.exports);
56
+ __reExport(index_exports, require("@hanzogui/elements"), module.exports);
57
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__copyProps","to","from","except","desc","key","call","get","enumerable","__reExport","target","mod","secondTarget","__toCommonJS","value","index_exports","module","exports","import_setup","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAO;;AAGP,IAAAA,SAAA,GAAcC,MAAA,CAAAC,cAAA;AAGd,IAAAC,gBAAc,GAAAF,MAAA,CAAAG,wBAAA;AAGd,IAAAC,iBAAc,GAAAJ,MAAA,CAAAK,mBAAA;AACd,IAAAC,YAAc,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AACd,IAAAC,WAAc,GAAAA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;IACd,IAAAF,IAAA,IAAc,OAAAA,IAAA,uBAAAA,IAAA,gBACd,SAAAG,GAAc,IAAAV,iBAAA,CAAAO,IAAA,GACd,CAAAL,YAAc,CAAAS,IAAA,CAAAL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,IAAAb,SAAA,CAAAW,EAAA,EAAAI,GAAA;MAAAE,GAAA,EAAAA,CAAA,KAAAL,IAAA,CAAAG,GAAA;MAAAG,UAAA,IAAAJ,IAAA,GAAAX,gBAAA,CAAAS,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAI;IAAA;IACd,OAAAP,EAAA;EACA;EAAAQ,UAAA,GAAcA,CAAAC,MAAA,EAAAC,GAAA,EAAAC,YAAA,MAAAZ,WAAA,CAAAU,MAAA,EAAAC,GAAA,cAAAC,YAAA,IAAAZ,WAAA,CAAAY,YAAA,EAAAD,GAAA;AACd,IAAAE,YAAc,GAAAF,GAAA,IAAAX,WAAA,CAAAV,SAAA;EAAAwB,KAAA;AAAA,IAAAH,GAAA;AACd,IAAAI,aAAc;AACdC,MAAA,CAAAC,OAAc,GAAAJ,YAAA,CAAAE,aAAA;AACd,IAAAG,Y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c,EAAAI,OAAA,oBAAAH,MAAA,CAAAC,OAAA;AACdR,UAAA,CAAAM,aAAc,EAAAI,OAAA,4BAAAH,MAAA,CAAAC,OAAA;AACdR,UAAA,CAAAM,aAAc,EAAAI,OAAA,yBAAAH,MAAA,CAAAC,OAAA;AACdR,UAAA,CAAAM,aAAc,EAAAI,OAAA,sBAAAH,MAAA,CAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ globalThis.React ||= React;
3
+ typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
4
+ //# sourceMappingURL=setup.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","globalThis","requestAnimationFrame","setImmediate","setTimeout"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":"AAEA,YAAYA,KAAA,MAAW;AAIvBC,UAAA,CAAWD,KAAA,KAAaA,KAAA;AAGpB,OAAOE,qBAAA,GAA0B,QACnCD,UAAA,CAAWC,qBAAA,GACT,OAAOC,YAAA,GAAiB,MAAcC,UAAA,GAAaD,YAAA","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
22
+ value: mod,
23
+ enumerable: !0
24
+ }) : target, mod));
25
+ var import_polyfill_dev = require("@hanzogui/polyfill-dev"),
26
+ React = __toESM(require("react"), 1),
27
+ _globalThis,
28
+ _React;
29
+ (_globalThis = globalThis)[_React = "React"] || (_globalThis[_React] = React);
30
+ typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = typeof setImmediate > "u" ? setTimeout : setImmediate);
31
+ //# sourceMappingURL=setup.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAO;;AAEP,IAAAA,QAAY,GAAAC,MAAA,CAAAC,MAAW;AAIvB,IAAAC,SAAW,GAAAF,MAAa,CAAAG,cAAA;AAGpB,IAAAC,gBAAO,GAAAJ,MAAA,CAAAK,wBACE","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=viewTypes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ };
14
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
15
+ value: !0
16
+ }), mod);
17
+ var viewTypes_exports = {};
18
+ module.exports = __toCommonJS(viewTypes_exports);
19
+ //# sourceMappingURL=viewTypes.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ import { Text, styled } from "@hanzogui/core";
2
+ const EnsureFlexed = styled(Text, {
3
+ opacity: 0,
4
+ lineHeight: 0,
5
+ height: 0,
6
+ display: "flex",
7
+ fontSize: 200,
8
+ children: "wwwwwwwwwwwwwwwwwww",
9
+ pointerEvents: "none"
10
+ });
11
+ EnsureFlexed.isVisuallyHidden = !0;
12
+ export { EnsureFlexed };
13
+ //# sourceMappingURL=EnsureFlexed.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Text","styled","EnsureFlexed","opacity","lineHeight","height","display","fontSize","children","pointerEvents","isVisuallyHidden"],"sources":["../../../src/views/EnsureFlexed.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,EAAMC,MAAA,QAAc;AAItB,MAAMC,YAAA,GAAeD,MAAA,CAAOD,IAAA,EAAM;EACvCG,OAAA,EAAS;EACTC,UAAA,EAAY;EACZC,MAAA,EAAQ;EACRC,OAAA,EAAS;EACTC,QAAA,EAAU;EACVC,QAAA,EAAU;EACVC,aAAA,EAAe;AACjB,CAAC;AAIDP,YAAA,CAAaQ,gBAAA,GAAsB","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var EnsureFlexed_exports = {};
24
+ __export(EnsureFlexed_exports, {
25
+ EnsureFlexed: () => EnsureFlexed
26
+ });
27
+ module.exports = __toCommonJS(EnsureFlexed_exports);
28
+ var import_core = require("@hanzogui/core"),
29
+ EnsureFlexed = (0, import_core.styled)(import_core.Text, {
30
+ opacity: 0,
31
+ lineHeight: 0,
32
+ height: 0,
33
+ display: "flex",
34
+ fontSize: 200,
35
+ children: "wwwwwwwwwwwwwwwwwww",
36
+ pointerEvents: "none"
37
+ });
38
+ EnsureFlexed.isVisuallyHidden = !0;
39
+ //# sourceMappingURL=EnsureFlexed.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key"],"sources":["../../../src/views/EnsureFlexed.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AAIF,IAAAA,SAAM,GAAAC,MAAe,CAAAC,cAAa;AAAA,IACvCC,gBAAS,GAAAF,MAAA,CAAAG,wBAAA;AAAA,IACTC,iBAAY,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IACZC,YAAQ,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACRC,QAAS,GAAAA,CAAAC,MAAA,EAAAC,GAAA;IACT,SAAAC,IAAU,IAAAD,GAAA,EACVZ,SAAU,CAAAW,MAAA,EAAAE,IAAA;MAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;MAAAE,UAAA;IAAA;EAAA;EACVC,WAAA,GAAeA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;IAChB,IAAAF,IAAA,WAAAA,IAAA,uBAAAA,IAAA,gBAID,SAAaG,GAAA,IAAAhB,iBAAsB,CAAAa,IAAA,G","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ import { GuiProvider as CoreGuiProvider } from "@hanzogui/core";
2
+ const GuiProvider = CoreGuiProvider;
3
+ export { GuiProvider };
4
+ //# sourceMappingURL=GuiProvider.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GuiProvider","CoreGuiProvider"],"sources":["../../../src/views/GuiProvider.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,WAAA,IAAeC,eAAA,QAAuB;AAExC,MAAMD,WAAA,GAAcC,eAAA","ignoreList":[]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var GuiProvider_exports = {};
24
+ __export(GuiProvider_exports, {
25
+ GuiProvider: () => GuiProvider
26
+ });
27
+ module.exports = __toCommonJS(GuiProvider_exports);
28
+ var import_core = require("@hanzogui/core"),
29
+ GuiProvider = import_core.GuiProvider;
30
+ //# sourceMappingURL=GuiProvider.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__defProp","Object","defineProperty"],"sources":["../../../src/views/GuiProvider.tsx"],"sourcesContent":[null],"mappings":"AACA,YAAS;;AAEF,IAAAA,SAAM,GAAAC,MAAc,CAAAC,cAAA","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ import { Text as GuiText, styled } from "@hanzogui/core";
2
+ const Text = styled(GuiText, {
3
+ variants: {
4
+ unstyled: {
5
+ false: {
6
+ color: "$color"
7
+ }
8
+ }
9
+ },
10
+ defaultVariants: {
11
+ unstyled: process.env.HANZO_GUI_HEADLESS === "1"
12
+ }
13
+ });
14
+ export { Text };
15
+ //# sourceMappingURL=Text.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Text","GuiText","styled","variants","unstyled","false","color","defaultVariants","process","env","HANZO_GUI_HEADLESS"],"sources":["../../../src/views/Text.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,IAAQC,OAAA,EAASC,MAAA,QAAc;AAEjC,MAAMF,IAAA,GAAOE,MAAA,CAAOD,OAAA,EAAS;EAClCE,QAAA,EAAU;IACRC,QAAA,EAAU;MACRC,KAAA,EAAO;QACLC,KAAA,EAAO;MACT;IACF;EACF;EAEAC,eAAA,EAAiB;IACfH,QAAA,EAAUI,OAAA,CAAQC,GAAA,CAAIC,kBAAA,KAAuB;EAC/C;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var Text_exports = {};
24
+ __export(Text_exports, {
25
+ Text: () => Text
26
+ });
27
+ module.exports = __toCommonJS(Text_exports);
28
+ var import_core = require("@hanzogui/core"),
29
+ Text = (0, import_core.styled)(import_core.Text, {
30
+ variants: {
31
+ unstyled: {
32
+ false: {
33
+ color: "$color"
34
+ }
35
+ }
36
+ },
37
+ defaultVariants: {
38
+ unstyled: process.env.HANZO_GUI_HEADLESS === "1"
39
+ }
40
+ });
41
+ //# sourceMappingURL=Text.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call"],"sources":["../../../src/views/Text.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AAEF,IAAAA,SAAa,GAAAC,MAAO,CAAAC,cAAS;AAAA,IAClCC,gBAAU,GAAAF,MAAA,CAAAG,wBAAA;AAAA,IACRC,iBAAU,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IAAAC,YACD,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IAAAC,QACL,GAAOA,CAAAC,MAAA,EAAAC,GAAA;IAAA,KACT,IAAAC,IAAA,IAAAD,GAAA,EACFZ,SAAA,CAAAW,MAAA,EAAAE,IAAA;MAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;MAAAE,UAAA;IAAA;EAAA;EACFC,WAAA,GAAAA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;IAEA,IAAAF,IAAA,WAAiBA,IAAA,uBAAAA,IAAA,gBACf,SAAAG,GAAU,IAAAhB,iBAAY,CAAAa,IAAA,GACxB,CAAAX,YAAA,CAAAe,IAAA,CAAAL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,IAAAnB,SAAA,CAAAiB,EAAA,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAjB,gBAAA,CAAAe,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA;IACD,OAAAE,EAAA","ignoreList":[]}
@@ -0,0 +1,35 @@
1
+ import { View, styled } from "@hanzogui/core";
2
+ const VisuallyHidden = styled(View, {
3
+ position: "absolute",
4
+ width: 1,
5
+ height: 1,
6
+ margin: -1,
7
+ zIndex: -1e4,
8
+ overflow: "hidden",
9
+ opacity: 1e-8,
10
+ pointerEvents: "none",
11
+ variants: {
12
+ preserveDimensions: {
13
+ true: {
14
+ position: "relative",
15
+ width: "auto",
16
+ height: "auto"
17
+ }
18
+ },
19
+ visible: {
20
+ true: {
21
+ position: "relative",
22
+ width: "auto",
23
+ height: "auto",
24
+ margin: 0,
25
+ zIndex: 1,
26
+ overflow: "visible",
27
+ opacity: 1,
28
+ pointerEvents: "auto"
29
+ }
30
+ }
31
+ }
32
+ });
33
+ VisuallyHidden.isVisuallyHidden = !0;
34
+ export { VisuallyHidden };
35
+ //# sourceMappingURL=VisuallyHidden.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","styled","VisuallyHidden","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true","visible","isVisuallyHidden"],"sources":["../../../src/views/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,EAAMC,MAAA,QAAc;AAEtB,MAAMC,cAAA,GAAiBD,MAAA,CAAOD,IAAA,EAAM;EACzCG,QAAA,EAAU;EACVC,KAAA,EAAO;EACPC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,QAAA,EAAU;EACVC,OAAA,EAAS;EACTC,aAAA,EAAe;EAEfC,QAAA,EAAU;IACRC,kBAAA,EAAoB;MAClBC,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;MACV;IACF;IAEAS,OAAA,EAAS;MACPD,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,QAAA,EAAU;QACVC,OAAA,EAAS;QACTC,aAAA,EAAe;MACjB;IACF;EACF;AACF,CAAC;AAGDR,cAAA,CAAea,gBAAA,GAAsB","ignoreList":[]}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var VisuallyHidden_exports = {};
24
+ __export(VisuallyHidden_exports, {
25
+ VisuallyHidden: () => VisuallyHidden
26
+ });
27
+ module.exports = __toCommonJS(VisuallyHidden_exports);
28
+ var import_core = require("@hanzogui/core"),
29
+ VisuallyHidden = (0, import_core.styled)(import_core.View, {
30
+ position: "absolute",
31
+ width: 1,
32
+ height: 1,
33
+ margin: -1,
34
+ zIndex: -1e4,
35
+ overflow: "hidden",
36
+ opacity: 1e-8,
37
+ pointerEvents: "none",
38
+ variants: {
39
+ preserveDimensions: {
40
+ true: {
41
+ position: "relative",
42
+ width: "auto",
43
+ height: "auto"
44
+ }
45
+ },
46
+ visible: {
47
+ true: {
48
+ position: "relative",
49
+ width: "auto",
50
+ height: "auto",
51
+ margin: 0,
52
+ zIndex: 1,
53
+ overflow: "visible",
54
+ opacity: 1,
55
+ pointerEvents: "auto"
56
+ }
57
+ }
58
+ }
59
+ });
60
+ VisuallyHidden.isVisuallyHidden = !0;
61
+ //# sourceMappingURL=VisuallyHidden.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","VisuallyHidden_exports","VisuallyHidden","module","exports","import_core","require","styled","View","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true"],"sources":["../../../src/views/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AAEF,IAAAA,SAAM,GAAAC,MAAA,CAAiBC,cAAa;AAAA,IACzCC,gBAAU,GAAAF,MAAA,CAAAG,wBAAA;AAAA,IACVC,iBAAO,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IACPC,YAAQ,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACRC,QAAQ,GAAAA,CAAAC,MAAA,EAAAC,GAAA;IACR,SAAQC,IAAA,IAAAD,GAAA,EACRZ,SAAU,CAAAW,MAAA,EAAAE,IAAA;MAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;MAAAE,UAAA;IAAA;EAAA;EACVC,WAAS,GAAAA,CAAAC,EAAA,EAAAC,IAA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