highmark-markdown 1.1.99 → 1.1.100
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/package.json +1 -1
- package/lib/attributeNames.js +0 -38
- package/lib/constants.js +0 -90
- package/lib/defaultMarkdownStyle.js +0 -14
- package/lib/example/constants.js +0 -38
- package/lib/example/customEventTypes.js +0 -46
- package/lib/example/importer.js +0 -56
- package/lib/example/indexOptions.js +0 -45
- package/lib/example/view/button/page.js +0 -155
- package/lib/example/view/button/tab/css.js +0 -133
- package/lib/example/view/button/tab/html.js +0 -133
- package/lib/example/view/button/tab/markdown.js +0 -133
- package/lib/example/view/button/tab/markdownStyle.js +0 -133
- package/lib/example/view/button/tab/plainText.js +0 -133
- package/lib/example/view/button/tab/preview.js +0 -133
- package/lib/example/view/button/tab.js +0 -156
- package/lib/example/view/div/container/css.js +0 -173
- package/lib/example/view/div/container/html.js +0 -175
- package/lib/example/view/div/container/markdown.js +0 -208
- package/lib/example/view/div/container/markdownStyle.js +0 -209
- package/lib/example/view/div/container/plainText.js +0 -173
- package/lib/example/view/div/container/preview.js +0 -193
- package/lib/example/view/div/container.js +0 -175
- package/lib/example/view/div/html.js +0 -192
- package/lib/example/view/div/pageButtons.js +0 -259
- package/lib/example/view/div/preview.js +0 -293
- package/lib/example/view/div/sizeable/left.js +0 -122
- package/lib/example/view/div/tabButtons/left.js +0 -180
- package/lib/example/view/div/tabButtons/right.js +0 -218
- package/lib/example/view/div/tabButtons.js +0 -191
- package/lib/example/view/textarea/css.js +0 -165
- package/lib/example/view/textarea/markdown.js +0 -163
- package/lib/example/view/textarea/markdownStyle.js +0 -163
- package/lib/example/view/textarea/parseTree/css.js +0 -150
- package/lib/example/view/textarea/parseTree/html.js +0 -150
- package/lib/example/view/textarea/parseTree/markdown.js +0 -148
- package/lib/example/view/textarea/parseTree/markdownStyle.js +0 -148
- package/lib/example/view/textarea/parseTree.js +0 -155
- package/lib/example/view/textarea/plainText.js +0 -171
- package/lib/example/view/textarea.js +0 -39
- package/lib/example/view/xmp.js +0 -207
- package/lib/example/view.js +0 -551
- package/lib/example.js +0 -27
- package/lib/index/item.js +0 -102
- package/lib/index/list.js +0 -88
- package/lib/index/match.js +0 -76
- package/lib/index.js +0 -139
- package/lib/letters.js +0 -41
- package/lib/map/className.js +0 -19
- package/lib/map/node/css.js +0 -67
- package/lib/map/node/html.js +0 -98
- package/lib/map/nonTerminalNode/markdown.js +0 -55
- package/lib/map/nonTerminalNode/markdownStyle.js +0 -54
- package/lib/map/tagName.js +0 -19
- package/lib/markdown/bnf.js +0 -14
- package/lib/markdown/entries.js +0 -75
- package/lib/markdown/lexer.js +0 -144
- package/lib/markdown/parser.js +0 -139
- package/lib/markdownStyle/bnf.js +0 -14
- package/lib/markdownStyle/entries.js +0 -50
- package/lib/markdownStyle/lexer.js +0 -144
- package/lib/markdownStyle/parser.js +0 -139
- package/lib/mixins/node.js +0 -145
- package/lib/node/css/amount.js +0 -128
- package/lib/node/css/argument.js +0 -113
- package/lib/node/css/arguments.js +0 -146
- package/lib/node/css/class.js +0 -146
- package/lib/node/css/colour.js +0 -128
- package/lib/node/css/declaration.js +0 -127
- package/lib/node/css/identifier.js +0 -128
- package/lib/node/css/name.js +0 -146
- package/lib/node/css/pseudoClass.js +0 -146
- package/lib/node/css/ruleName.js +0 -159
- package/lib/node/css/ruleSet.js +0 -159
- package/lib/node/css/selector.js +0 -113
- package/lib/node/css/selectors.js +0 -125
- package/lib/node/css/selectorsList.js +0 -133
- package/lib/node/css/string.js +0 -128
- package/lib/node/css/topmost.js +0 -158
- package/lib/node/css/value.js +0 -145
- package/lib/node/css/values.js +0 -125
- package/lib/node/css.js +0 -282
- package/lib/node/html/anchor.js +0 -183
- package/lib/node/html/directive/contents.js +0 -113
- package/lib/node/html/directive/footnotes.js +0 -113
- package/lib/node/html/directive/index.js +0 -113
- package/lib/node/html/directive/pageNumber.js +0 -113
- package/lib/node/html/directive.js +0 -141
- package/lib/node/html/division.js +0 -294
- package/lib/node/html/error.js +0 -197
- package/lib/node/html/footnote.js +0 -167
- package/lib/node/html/heading/index.js +0 -192
- package/lib/node/html/heading/primary.js +0 -130
- package/lib/node/html/heading/quaternary.js +0 -130
- package/lib/node/html/heading/secondary.js +0 -130
- package/lib/node/html/heading/tertiary.js +0 -130
- package/lib/node/html/heading.js +0 -165
- package/lib/node/html/image.js +0 -219
- package/lib/node/html/item/contents.js +0 -142
- package/lib/node/html/item/footnote.js +0 -144
- package/lib/node/html/item/index.js +0 -152
- package/lib/node/html/item/ordered.js +0 -151
- package/lib/node/html/item/unordered.js +0 -128
- package/lib/node/html/line/block.js +0 -144
- package/lib/node/html/line.js +0 -243
- package/lib/node/html/link/contents.js +0 -171
- package/lib/node/html/link/email.js +0 -258
- package/lib/node/html/link/footnote.js +0 -265
- package/lib/node/html/link/hyper.js +0 -258
- package/lib/node/html/link/index.js +0 -236
- package/lib/node/html/list/contents.js +0 -142
- package/lib/node/html/list/footnotes.js +0 -178
- package/lib/node/html/list/index.js +0 -142
- package/lib/node/html/list/ordered.js +0 -128
- package/lib/node/html/list/unordered.js +0 -128
- package/lib/node/html/listing/block.js +0 -195
- package/lib/node/html/listing/inline.js +0 -197
- package/lib/node/html/pageNumber.js +0 -226
- package/lib/node/html/paragraph.js +0 -128
- package/lib/node/html/reference.js +0 -128
- package/lib/node/html/table.js +0 -128
- package/lib/node/html/tableBody.js +0 -128
- package/lib/node/html/tableBodyCell.js +0 -128
- package/lib/node/html/tableBodyRow.js +0 -128
- package/lib/node/html/tableHead.js +0 -128
- package/lib/node/html/tableHeadCell.js +0 -128
- package/lib/node/html/tableHeadRow.js +0 -128
- package/lib/node/html/text/block.js +0 -128
- package/lib/node/html/text/comma.js +0 -146
- package/lib/node/html/text/emphasised.js +0 -128
- package/lib/node/html/text/index.js +0 -161
- package/lib/node/html/text/inline.js +0 -197
- package/lib/node/html/text/plain.js +0 -128
- package/lib/node/html/text/strong.js +0 -128
- package/lib/node/html/text/stronglyEmphasised.js +0 -222
- package/lib/node/html/text.js +0 -180
- package/lib/node/html/topmost.js +0 -250
- package/lib/node/html.js +0 -574
- package/lib/node/markdown/blockEnd.js +0 -107
- package/lib/node/markdown/blockStart.js +0 -131
- package/lib/node/markdown/className.js +0 -118
- package/lib/node/markdown/directive/embed.js +0 -158
- package/lib/node/markdown/directive/include.js +0 -158
- package/lib/node/markdown/division.js +0 -237
- package/lib/node/markdown/error.js +0 -118
- package/lib/node/markdown/footnote.js +0 -118
- package/lib/node/markdown/hyperlink.js +0 -155
- package/lib/node/markdown/image.js +0 -118
- package/lib/node/markdown/item/ordered.js +0 -124
- package/lib/node/markdown/link/email.js +0 -155
- package/lib/node/markdown/link/footnote.js +0 -120
- package/lib/node/markdown/listng/block.js +0 -118
- package/lib/node/markdown/listng/inline.js +0 -124
- package/lib/node/markdown/path.js +0 -118
- package/lib/node/markdown/reference.js +0 -124
- package/lib/node/markdown/subDivision.js +0 -144
- package/lib/node/markdown/text/block.js +0 -107
- package/lib/node/markdown/text/plain.js +0 -107
- package/lib/node/markdown/text.js +0 -142
- package/lib/node/markdown/topmost.js +0 -165
- package/lib/node/markdown.js +0 -188
- package/lib/node/markdownStyle/amount.js +0 -119
- package/lib/node/markdownStyle/argument.js +0 -107
- package/lib/node/markdownStyle/arguments.js +0 -107
- package/lib/node/markdownStyle/colour.js +0 -118
- package/lib/node/markdownStyle/declaration.js +0 -107
- package/lib/node/markdownStyle/error.js +0 -107
- package/lib/node/markdownStyle/identifier.js +0 -119
- package/lib/node/markdownStyle/name.js +0 -107
- package/lib/node/markdownStyle/nonsense.js +0 -107
- package/lib/node/markdownStyle/pseudoClass.js +0 -107
- package/lib/node/markdownStyle/ruleName.js +0 -118
- package/lib/node/markdownStyle/ruleSet.js +0 -107
- package/lib/node/markdownStyle/selector.js +0 -107
- package/lib/node/markdownStyle/selectors.js +0 -107
- package/lib/node/markdownStyle/selectorsList.js +0 -107
- package/lib/node/markdownStyle/string.js +0 -118
- package/lib/node/markdownStyle/topmost.js +0 -107
- package/lib/node/markdownStyle/value.js +0 -107
- package/lib/node/markdownStyle/values.js +0 -107
- package/lib/node/markdownStyle.js +0 -153
- package/lib/prepends.js +0 -26
- package/lib/queries/markdown.js +0 -20
- package/lib/queries/markdownStyle.js +0 -20
- package/lib/ruleNames/markdown.js +0 -370
- package/lib/ruleNames/markdownStyle.js +0 -125
- package/lib/styleElement/markdown/default.js +0 -150
- package/lib/styleElement/markdown.js +0 -207
- package/lib/styleElement.js +0 -95
- package/lib/tokenTypes.js +0 -110
- package/lib/transform/css/ruleSet.js +0 -124
- package/lib/transform/css/selectors.js +0 -126
- package/lib/transform/css/selectorsList.js +0 -144
- package/lib/transform/css.js +0 -161
- package/lib/transform/html/division.js +0 -130
- package/lib/transform/html/footnote.js +0 -140
- package/lib/transform/html/heading/index.js +0 -109
- package/lib/transform/html/index.js +0 -159
- package/lib/transform/html/indexAnchor.js +0 -118
- package/lib/transform/html/item/contents.js +0 -130
- package/lib/transform/html/item/footnote.js +0 -117
- package/lib/transform/html/item/index.js +0 -117
- package/lib/transform/html/line.js +0 -116
- package/lib/transform/html/link/contents.js +0 -130
- package/lib/transform/html/link/footnote.js +0 -158
- package/lib/transform/html/list/contents.js +0 -180
- package/lib/transform/html/list/footnotes.js +0 -129
- package/lib/transform/html/list/index.js +0 -118
- package/lib/transform/html/pageNumber.js +0 -124
- package/lib/transform/html.js +0 -148
- package/lib/transform/markdown/directive/embed.js +0 -139
- package/lib/transform/markdown/directive/ignore.js +0 -108
- package/lib/transform/markdown/directive/include.js +0 -148
- package/lib/transform/markdown/subDivision.js +0 -108
- package/lib/transform/markdown.js +0 -148
- package/lib/utilities/contents.js +0 -172
- package/lib/utilities/css.js +0 -57
- package/lib/utilities/division.js +0 -121
- package/lib/utilities/dom.js +0 -58
- package/lib/utilities/element.js +0 -26
- package/lib/utilities/entities.js +0 -17
- package/lib/utilities/entries.js +0 -24
- package/lib/utilities/grammar.js +0 -131
- package/lib/utilities/html.js +0 -99
- package/lib/utilities/index.js +0 -265
- package/lib/utilities/markdown.js +0 -81
- package/lib/utilities/markdownStyle.js +0 -13
- package/lib/utilities/object.js +0 -65
- package/lib/utilities/query.js +0 -65
- package/lib/utilities/string.js +0 -45
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
-
var _container = /*#__PURE__*/ _interop_require_default(require("../../div/container"));
|
|
13
|
-
var _markdown = /*#__PURE__*/ _interop_require_default(require("../../textarea/markdown"));
|
|
14
|
-
var _markdown1 = /*#__PURE__*/ _interop_require_default(require("../../textarea/parseTree/markdown"));
|
|
15
|
-
var _constants = require("../../../constants");
|
|
16
|
-
function _assert_this_initialized(self) {
|
|
17
|
-
if (self === void 0) {
|
|
18
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19
|
-
}
|
|
20
|
-
return self;
|
|
21
|
-
}
|
|
22
|
-
function _call_super(_this, derived, args) {
|
|
23
|
-
derived = _get_prototype_of(derived);
|
|
24
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
25
|
-
}
|
|
26
|
-
function _class_call_check(instance, Constructor) {
|
|
27
|
-
if (!(instance instanceof Constructor)) {
|
|
28
|
-
throw new TypeError("Cannot call a class as a function");
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function _defineProperties(target, props) {
|
|
32
|
-
for(var i = 0; i < props.length; i++){
|
|
33
|
-
var descriptor = props[i];
|
|
34
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
35
|
-
descriptor.configurable = true;
|
|
36
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
37
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
41
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
42
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
43
|
-
return Constructor;
|
|
44
|
-
}
|
|
45
|
-
function _define_property(obj, key, value) {
|
|
46
|
-
if (key in obj) {
|
|
47
|
-
Object.defineProperty(obj, key, {
|
|
48
|
-
value: value,
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true,
|
|
51
|
-
writable: true
|
|
52
|
-
});
|
|
53
|
-
} else {
|
|
54
|
-
obj[key] = value;
|
|
55
|
-
}
|
|
56
|
-
return obj;
|
|
57
|
-
}
|
|
58
|
-
function _get_prototype_of(o) {
|
|
59
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
60
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
61
|
-
};
|
|
62
|
-
return _get_prototype_of(o);
|
|
63
|
-
}
|
|
64
|
-
function _inherits(subClass, superClass) {
|
|
65
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
66
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
67
|
-
}
|
|
68
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
69
|
-
constructor: {
|
|
70
|
-
value: subClass,
|
|
71
|
-
writable: true,
|
|
72
|
-
configurable: true
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
76
|
-
}
|
|
77
|
-
function _interop_require_default(obj) {
|
|
78
|
-
return obj && obj.__esModule ? obj : {
|
|
79
|
-
default: obj
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function _object_spread(target) {
|
|
83
|
-
for(var i = 1; i < arguments.length; i++){
|
|
84
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
85
|
-
var ownKeys = Object.keys(source);
|
|
86
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
87
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
88
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
89
|
-
}));
|
|
90
|
-
}
|
|
91
|
-
ownKeys.forEach(function(key) {
|
|
92
|
-
_define_property(target, key, source[key]);
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
return target;
|
|
96
|
-
}
|
|
97
|
-
function ownKeys(object, enumerableOnly) {
|
|
98
|
-
var keys = Object.keys(object);
|
|
99
|
-
if (Object.getOwnPropertySymbols) {
|
|
100
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
101
|
-
if (enumerableOnly) {
|
|
102
|
-
symbols = symbols.filter(function(sym) {
|
|
103
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
keys.push.apply(keys, symbols);
|
|
107
|
-
}
|
|
108
|
-
return keys;
|
|
109
|
-
}
|
|
110
|
-
function _object_spread_props(target, source) {
|
|
111
|
-
source = source != null ? source : {};
|
|
112
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
113
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
114
|
-
} else {
|
|
115
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
116
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
return target;
|
|
120
|
-
}
|
|
121
|
-
function _possible_constructor_return(self, call) {
|
|
122
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
123
|
-
return call;
|
|
124
|
-
}
|
|
125
|
-
return _assert_this_initialized(self);
|
|
126
|
-
}
|
|
127
|
-
function _set_prototype_of(o, p) {
|
|
128
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
129
|
-
o.__proto__ = p;
|
|
130
|
-
return o;
|
|
131
|
-
};
|
|
132
|
-
return _set_prototype_of(o, p);
|
|
133
|
-
}
|
|
134
|
-
function _tagged_template_literal(strings, raw) {
|
|
135
|
-
if (!raw) {
|
|
136
|
-
raw = strings.slice(0);
|
|
137
|
-
}
|
|
138
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
139
|
-
raw: {
|
|
140
|
-
value: Object.freeze(raw)
|
|
141
|
-
}
|
|
142
|
-
}));
|
|
143
|
-
}
|
|
144
|
-
function _type_of(obj) {
|
|
145
|
-
"@swc/helpers - typeof";
|
|
146
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
147
|
-
}
|
|
148
|
-
function _is_native_reflect_construct() {
|
|
149
|
-
try {
|
|
150
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
151
|
-
} catch (_) {}
|
|
152
|
-
return (_is_native_reflect_construct = function() {
|
|
153
|
-
return !!result;
|
|
154
|
-
})();
|
|
155
|
-
}
|
|
156
|
-
function _templateObject() {
|
|
157
|
-
var data = _tagged_template_literal([
|
|
158
|
-
"\n\n gap: 1rem;\n height: 97rem;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n \n"
|
|
159
|
-
]);
|
|
160
|
-
_templateObject = function _templateObject() {
|
|
161
|
-
return data;
|
|
162
|
-
};
|
|
163
|
-
return data;
|
|
164
|
-
}
|
|
165
|
-
var MarkdownContainerDiv = /*#__PURE__*/ function(ContainerDiv) {
|
|
166
|
-
_inherits(MarkdownContainerDiv, ContainerDiv);
|
|
167
|
-
function MarkdownContainerDiv() {
|
|
168
|
-
_class_call_check(this, MarkdownContainerDiv);
|
|
169
|
-
return _call_super(this, MarkdownContainerDiv, arguments);
|
|
170
|
-
}
|
|
171
|
-
_create_class(MarkdownContainerDiv, [
|
|
172
|
-
{
|
|
173
|
-
key: "show",
|
|
174
|
-
value: function show() {
|
|
175
|
-
var displayStyle = _constants.FLEX;
|
|
176
|
-
this.display(displayStyle);
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
key: "childElements",
|
|
181
|
-
value: function childElements() {
|
|
182
|
-
return [
|
|
183
|
-
/*#__PURE__*/ React.createElement(_markdown.default, {
|
|
184
|
-
onKeyUp: this.keyUpHandler
|
|
185
|
-
}),
|
|
186
|
-
/*#__PURE__*/ React.createElement(_markdown1.default, null)
|
|
187
|
-
];
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
key: "parentContext",
|
|
192
|
-
value: function parentContext() {
|
|
193
|
-
var context = this.getContext(), showMarkdownContainerDiv = this.show.bind(this), hideMarkdownContainerDiv = this.hide.bind(this); ///
|
|
194
|
-
return _object_spread_props(_object_spread({}, context), {
|
|
195
|
-
showMarkdownContainerDiv: showMarkdownContainerDiv,
|
|
196
|
-
hideMarkdownContainerDiv: hideMarkdownContainerDiv
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
]);
|
|
201
|
-
return MarkdownContainerDiv;
|
|
202
|
-
}(_container.default);
|
|
203
|
-
_define_property(MarkdownContainerDiv, "defaultProperties", {
|
|
204
|
-
className: "markdown"
|
|
205
|
-
});
|
|
206
|
-
var _default = (0, _easywithstyle.default)(MarkdownContainerDiv)(_templateObject());
|
|
207
|
-
|
|
208
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L2NvbnRhaW5lci9tYXJrZG93bi5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7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ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVyQixJQUFBLEFBQU1BLHFDQUFOO2NBQU1BO2FBQUFBO2dDQUFBQTtRQUFOLE9BQUEsa0JBQU1BOztrQkFBQUE7O1lBQ0pDLEtBQUFBO21CQUFBQSxTQUFBQTtnQkFDRSxJQUFNQyxlQUFlQyxlQUFJO2dCQUV6QixJQUFJLENBQUNDLE9BQU8sQ0FBQ0Y7WUFDZjs7O1lBRUFHLEtBQUFBO21CQUFBQSxTQUFBQTtnQkFDRSxPQUFRO2tDQUVOLG9CQUFDQyxpQkFBZ0I7d0JBQUNDLFNBQVMsSUFBSSxDQUFDQyxZQUFZOztrQ0FDNUMsb0JBQUNDLGtCQUF5QjtpQkFFM0I7WUFDSDs7O1lBRUFDLEtBQUFBO21CQUFBQSxTQUFBQTtnQkFDRSxJQUFNQyxVQUFVLElBQUksQ0FBQ0MsVUFBVSxJQUN6QkMsMkJBQTJCLElBQUksQ0FBQ1osSUFBSSxDQUFDYSxJQUFJLENBQUMsSUFBSSxHQUM5Q0MsMkJBQTJCLElBQUksQ0FBQ0MsSUFBSSxDQUFDRixJQUFJLENBQUMsSUFBSSxHQUFJLEdBQUc7Z0JBRTNELE9BQVEsd0NBQ0hIO29CQUNIRSwwQkFBQUE7b0JBQ0FFLDBCQUFBQTs7WUFFSjs7O1dBMUJJZjtFQUE2QmlCLGtCQUFZO0FBNEI3QyxpQkE1QklqQixzQkE0QkdrQixxQkFBb0I7SUFDekJDLFdBQVc7QUFDYjtJQUdGLFdBQWVDLElBQUFBLHNCQUFTLEVBQUNwQiJ9
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
-
var _container = /*#__PURE__*/ _interop_require_default(require("../../div/container"));
|
|
13
|
-
var _markdownStyle = /*#__PURE__*/ _interop_require_default(require("../../textarea/markdownStyle"));
|
|
14
|
-
var _markdownStyle1 = /*#__PURE__*/ _interop_require_default(require("../../textarea/parseTree/markdownStyle"));
|
|
15
|
-
var _constants = require("../../../constants");
|
|
16
|
-
function _assert_this_initialized(self) {
|
|
17
|
-
if (self === void 0) {
|
|
18
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19
|
-
}
|
|
20
|
-
return self;
|
|
21
|
-
}
|
|
22
|
-
function _call_super(_this, derived, args) {
|
|
23
|
-
derived = _get_prototype_of(derived);
|
|
24
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
25
|
-
}
|
|
26
|
-
function _class_call_check(instance, Constructor) {
|
|
27
|
-
if (!(instance instanceof Constructor)) {
|
|
28
|
-
throw new TypeError("Cannot call a class as a function");
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function _defineProperties(target, props) {
|
|
32
|
-
for(var i = 0; i < props.length; i++){
|
|
33
|
-
var descriptor = props[i];
|
|
34
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
35
|
-
descriptor.configurable = true;
|
|
36
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
37
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
41
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
42
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
43
|
-
return Constructor;
|
|
44
|
-
}
|
|
45
|
-
function _define_property(obj, key, value) {
|
|
46
|
-
if (key in obj) {
|
|
47
|
-
Object.defineProperty(obj, key, {
|
|
48
|
-
value: value,
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true,
|
|
51
|
-
writable: true
|
|
52
|
-
});
|
|
53
|
-
} else {
|
|
54
|
-
obj[key] = value;
|
|
55
|
-
}
|
|
56
|
-
return obj;
|
|
57
|
-
}
|
|
58
|
-
function _get_prototype_of(o) {
|
|
59
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
60
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
61
|
-
};
|
|
62
|
-
return _get_prototype_of(o);
|
|
63
|
-
}
|
|
64
|
-
function _inherits(subClass, superClass) {
|
|
65
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
66
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
67
|
-
}
|
|
68
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
69
|
-
constructor: {
|
|
70
|
-
value: subClass,
|
|
71
|
-
writable: true,
|
|
72
|
-
configurable: true
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
76
|
-
}
|
|
77
|
-
function _interop_require_default(obj) {
|
|
78
|
-
return obj && obj.__esModule ? obj : {
|
|
79
|
-
default: obj
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function _object_spread(target) {
|
|
83
|
-
for(var i = 1; i < arguments.length; i++){
|
|
84
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
85
|
-
var ownKeys = Object.keys(source);
|
|
86
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
87
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
88
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
89
|
-
}));
|
|
90
|
-
}
|
|
91
|
-
ownKeys.forEach(function(key) {
|
|
92
|
-
_define_property(target, key, source[key]);
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
return target;
|
|
96
|
-
}
|
|
97
|
-
function ownKeys(object, enumerableOnly) {
|
|
98
|
-
var keys = Object.keys(object);
|
|
99
|
-
if (Object.getOwnPropertySymbols) {
|
|
100
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
101
|
-
if (enumerableOnly) {
|
|
102
|
-
symbols = symbols.filter(function(sym) {
|
|
103
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
keys.push.apply(keys, symbols);
|
|
107
|
-
}
|
|
108
|
-
return keys;
|
|
109
|
-
}
|
|
110
|
-
function _object_spread_props(target, source) {
|
|
111
|
-
source = source != null ? source : {};
|
|
112
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
113
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
114
|
-
} else {
|
|
115
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
116
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
return target;
|
|
120
|
-
}
|
|
121
|
-
function _possible_constructor_return(self, call) {
|
|
122
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
123
|
-
return call;
|
|
124
|
-
}
|
|
125
|
-
return _assert_this_initialized(self);
|
|
126
|
-
}
|
|
127
|
-
function _set_prototype_of(o, p) {
|
|
128
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
129
|
-
o.__proto__ = p;
|
|
130
|
-
return o;
|
|
131
|
-
};
|
|
132
|
-
return _set_prototype_of(o, p);
|
|
133
|
-
}
|
|
134
|
-
function _tagged_template_literal(strings, raw) {
|
|
135
|
-
if (!raw) {
|
|
136
|
-
raw = strings.slice(0);
|
|
137
|
-
}
|
|
138
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
139
|
-
raw: {
|
|
140
|
-
value: Object.freeze(raw)
|
|
141
|
-
}
|
|
142
|
-
}));
|
|
143
|
-
}
|
|
144
|
-
function _type_of(obj) {
|
|
145
|
-
"@swc/helpers - typeof";
|
|
146
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
147
|
-
}
|
|
148
|
-
function _is_native_reflect_construct() {
|
|
149
|
-
try {
|
|
150
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
151
|
-
} catch (_) {}
|
|
152
|
-
return (_is_native_reflect_construct = function() {
|
|
153
|
-
return !!result;
|
|
154
|
-
})();
|
|
155
|
-
}
|
|
156
|
-
function _templateObject() {
|
|
157
|
-
var data = _tagged_template_literal([
|
|
158
|
-
"\n\n gap: 1rem;\n height: 97rem;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n \n"
|
|
159
|
-
]);
|
|
160
|
-
_templateObject = function _templateObject() {
|
|
161
|
-
return data;
|
|
162
|
-
};
|
|
163
|
-
return data;
|
|
164
|
-
}
|
|
165
|
-
var MarkdownStyleContainerDiv = /*#__PURE__*/ function(ContainerDiv) {
|
|
166
|
-
_inherits(MarkdownStyleContainerDiv, ContainerDiv);
|
|
167
|
-
function MarkdownStyleContainerDiv() {
|
|
168
|
-
_class_call_check(this, MarkdownStyleContainerDiv);
|
|
169
|
-
return _call_super(this, MarkdownStyleContainerDiv, arguments);
|
|
170
|
-
}
|
|
171
|
-
_create_class(MarkdownStyleContainerDiv, [
|
|
172
|
-
{
|
|
173
|
-
key: "show",
|
|
174
|
-
value: function show() {
|
|
175
|
-
var displayStyle = _constants.FLEX;
|
|
176
|
-
this.display(displayStyle);
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
key: "childElements",
|
|
181
|
-
value: function childElements() {
|
|
182
|
-
return [
|
|
183
|
-
/*#__PURE__*/ React.createElement(_markdownStyle.default, {
|
|
184
|
-
onKeyUp: this.keyUpHandler
|
|
185
|
-
}),
|
|
186
|
-
/*#__PURE__*/ React.createElement(_markdownStyle1.default, null)
|
|
187
|
-
];
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
key: "parentContext",
|
|
192
|
-
value: function parentContext() {
|
|
193
|
-
var context = this.getContext(), showMarkdownStyleContainerDiv = this.show.bind(this), hideMarkdownStyleContainerDiv = this.hide.bind(this); ///
|
|
194
|
-
return _object_spread_props(_object_spread({}, context), {
|
|
195
|
-
showMarkdownStyleContainerDiv: showMarkdownStyleContainerDiv,
|
|
196
|
-
hideMarkdownStyleContainerDiv: hideMarkdownStyleContainerDiv
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
]);
|
|
201
|
-
return MarkdownStyleContainerDiv;
|
|
202
|
-
}(_container.default);
|
|
203
|
-
_define_property(MarkdownStyleContainerDiv, "Textarea", _markdownStyle.default);
|
|
204
|
-
_define_property(MarkdownStyleContainerDiv, "defaultProperties", {
|
|
205
|
-
className: "markdown-style"
|
|
206
|
-
});
|
|
207
|
-
var _default = (0, _easywithstyle.default)(MarkdownStyleContainerDiv)(_templateObject());
|
|
208
|
-
|
|
209
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L2NvbnRhaW5lci9tYXJrZG93blN0eWxlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQgQ29udGFpbmVyRGl2IGZyb20gXCIuLi8uLi9kaXYvY29udGFpbmVyXCI7XG5pbXBvcnQgTWFya2Rvd25TdHlsZVRleHRhcmVhIGZyb20gXCIuLi8uLi90ZXh0YXJlYS9tYXJrZG93blN0eWxlXCI7XG5pbXBvcnQgTWFya2Rvd25TdHlsZ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function() {
|
|
8
|
-
return PlainTextContainerDiv;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _container = /*#__PURE__*/ _interop_require_default(require("../../div/container"));
|
|
12
|
-
var _plainText = /*#__PURE__*/ _interop_require_default(require("../../textarea/plainText"));
|
|
13
|
-
function _assert_this_initialized(self) {
|
|
14
|
-
if (self === void 0) {
|
|
15
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
-
}
|
|
17
|
-
return self;
|
|
18
|
-
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _define_property(obj, key, value) {
|
|
43
|
-
if (key in obj) {
|
|
44
|
-
Object.defineProperty(obj, key, {
|
|
45
|
-
value: value,
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true,
|
|
48
|
-
writable: true
|
|
49
|
-
});
|
|
50
|
-
} else {
|
|
51
|
-
obj[key] = value;
|
|
52
|
-
}
|
|
53
|
-
return obj;
|
|
54
|
-
}
|
|
55
|
-
function _get_prototype_of(o) {
|
|
56
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
57
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
58
|
-
};
|
|
59
|
-
return _get_prototype_of(o);
|
|
60
|
-
}
|
|
61
|
-
function _inherits(subClass, superClass) {
|
|
62
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
63
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
64
|
-
}
|
|
65
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
66
|
-
constructor: {
|
|
67
|
-
value: subClass,
|
|
68
|
-
writable: true,
|
|
69
|
-
configurable: true
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
73
|
-
}
|
|
74
|
-
function _interop_require_default(obj) {
|
|
75
|
-
return obj && obj.__esModule ? obj : {
|
|
76
|
-
default: obj
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function _object_spread(target) {
|
|
80
|
-
for(var i = 1; i < arguments.length; i++){
|
|
81
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
82
|
-
var ownKeys = Object.keys(source);
|
|
83
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
84
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
85
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
86
|
-
}));
|
|
87
|
-
}
|
|
88
|
-
ownKeys.forEach(function(key) {
|
|
89
|
-
_define_property(target, key, source[key]);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
return target;
|
|
93
|
-
}
|
|
94
|
-
function ownKeys(object, enumerableOnly) {
|
|
95
|
-
var keys = Object.keys(object);
|
|
96
|
-
if (Object.getOwnPropertySymbols) {
|
|
97
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
98
|
-
if (enumerableOnly) {
|
|
99
|
-
symbols = symbols.filter(function(sym) {
|
|
100
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
keys.push.apply(keys, symbols);
|
|
104
|
-
}
|
|
105
|
-
return keys;
|
|
106
|
-
}
|
|
107
|
-
function _object_spread_props(target, source) {
|
|
108
|
-
source = source != null ? source : {};
|
|
109
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
110
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
111
|
-
} else {
|
|
112
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
113
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
return target;
|
|
117
|
-
}
|
|
118
|
-
function _possible_constructor_return(self, call) {
|
|
119
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
120
|
-
return call;
|
|
121
|
-
}
|
|
122
|
-
return _assert_this_initialized(self);
|
|
123
|
-
}
|
|
124
|
-
function _set_prototype_of(o, p) {
|
|
125
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
126
|
-
o.__proto__ = p;
|
|
127
|
-
return o;
|
|
128
|
-
};
|
|
129
|
-
return _set_prototype_of(o, p);
|
|
130
|
-
}
|
|
131
|
-
function _type_of(obj) {
|
|
132
|
-
"@swc/helpers - typeof";
|
|
133
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
134
|
-
}
|
|
135
|
-
function _is_native_reflect_construct() {
|
|
136
|
-
try {
|
|
137
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
138
|
-
} catch (_) {}
|
|
139
|
-
return (_is_native_reflect_construct = function() {
|
|
140
|
-
return !!result;
|
|
141
|
-
})();
|
|
142
|
-
}
|
|
143
|
-
var PlainTextContainerDiv = /*#__PURE__*/ function(ContainerDiv) {
|
|
144
|
-
_inherits(PlainTextContainerDiv, ContainerDiv);
|
|
145
|
-
function PlainTextContainerDiv() {
|
|
146
|
-
_class_call_check(this, PlainTextContainerDiv);
|
|
147
|
-
return _call_super(this, PlainTextContainerDiv, arguments);
|
|
148
|
-
}
|
|
149
|
-
_create_class(PlainTextContainerDiv, [
|
|
150
|
-
{
|
|
151
|
-
key: "childElements",
|
|
152
|
-
value: function childElements() {
|
|
153
|
-
return /*#__PURE__*/ React.createElement(_plainText.default, null);
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
key: "parentContext",
|
|
158
|
-
value: function parentContext() {
|
|
159
|
-
var context = this.getContext(), showPlainTextContainerDiv = this.show.bind(this), hidePlainTextContainerDiv = this.hide.bind(this); ///
|
|
160
|
-
return _object_spread_props(_object_spread({}, context), {
|
|
161
|
-
showPlainTextContainerDiv: showPlainTextContainerDiv,
|
|
162
|
-
hidePlainTextContainerDiv: hidePlainTextContainerDiv
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
]);
|
|
167
|
-
return PlainTextContainerDiv;
|
|
168
|
-
}(_container.default);
|
|
169
|
-
_define_property(PlainTextContainerDiv, "defaultProperties", {
|
|
170
|
-
className: "plain-text"
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvZGl2L2NvbnRhaW5lci9wbGFpblRleHQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBDb250YWluZXJEaXYgZnJvbSBcIi4uLy4uL2Rpdi9jb250YWluZXJcIjtcbmltcG9ydCBQb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