securemark 0.258.2 → 0.258.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.js +137 -143
- package/package.json +1 -1
- package/src/combinator/data/parser/context/memo.ts +6 -3
- package/src/combinator/data/parser/context.test.ts +3 -3
- package/src/combinator/data/parser/context.ts +15 -21
- package/src/combinator/data/parser/some.ts +4 -2
- package/src/combinator/data/parser.ts +1 -1
- package/src/parser/api/bind.ts +1 -1
- package/src/parser/api/parse.test.ts +4 -4
- package/src/parser/api/parse.ts +1 -1
- package/src/parser/block/blockquote.ts +4 -4
- package/src/parser/block/dlist.ts +3 -3
- package/src/parser/block/extension/table.ts +4 -4
- package/src/parser/block/ilist.ts +2 -2
- package/src/parser/block/olist.ts +2 -2
- package/src/parser/block/reply/cite.ts +2 -2
- package/src/parser/block/reply/quote.ts +2 -2
- package/src/parser/block/sidefence.ts +2 -2
- package/src/parser/block/table.ts +5 -5
- package/src/parser/block/ulist.ts +2 -2
- package/src/parser/block.ts +2 -2
- package/src/parser/context.ts +1 -1
- package/src/parser/inline/annotation.ts +6 -5
- package/src/parser/inline/autolink/email.ts +2 -2
- package/src/parser/inline/autolink/url.ts +2 -2
- package/src/parser/inline/autolink.ts +2 -2
- package/src/parser/inline/bracket.ts +8 -8
- package/src/parser/inline/code.ts +2 -2
- package/src/parser/inline/comment.ts +2 -2
- package/src/parser/inline/deletion.ts +5 -4
- package/src/parser/inline/emphasis.ts +5 -4
- package/src/parser/inline/emstrong.ts +5 -4
- package/src/parser/inline/extension/index.ts +8 -7
- package/src/parser/inline/extension/indexer.ts +2 -2
- package/src/parser/inline/extension/label.ts +2 -2
- package/src/parser/inline/extension/placeholder.ts +5 -4
- package/src/parser/inline/html.ts +2 -2
- package/src/parser/inline/htmlentity.ts +2 -2
- package/src/parser/inline/insertion.ts +5 -4
- package/src/parser/inline/link.ts +10 -8
- package/src/parser/inline/mark.ts +5 -4
- package/src/parser/inline/math.ts +3 -3
- package/src/parser/inline/media.ts +7 -6
- package/src/parser/inline/reference.ts +7 -6
- package/src/parser/inline/ruby.ts +4 -4
- package/src/parser/inline/strong.ts +5 -4
- package/src/parser/inline/template.ts +6 -6
- package/src/parser/inline.test.ts +2 -0
- package/src/parser/source/escapable.ts +2 -2
- package/src/parser/source/str.ts +5 -5
- package/src/parser/source/text.ts +2 -2
- package/src/parser/source/unescapable.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! securemark v0.258.
|
|
1
|
+
/*! securemark v0.258.3 https://github.com/falsandtru/securemark | (c) 2017, falsandtru | UNLICENSED License */
|
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
4
4
|
module.exports = factory(require("DOMPurify"), require("Prism"));
|
|
@@ -2783,7 +2783,7 @@ exports.check = check;
|
|
|
2783
2783
|
Object.defineProperty(exports, "__esModule", ({
|
|
2784
2784
|
value: true
|
|
2785
2785
|
}));
|
|
2786
|
-
exports.state = exports.guard = exports.precedence = exports.
|
|
2786
|
+
exports.state = exports.guard = exports.precedence = exports.creation = exports.syntax = exports.context = exports.reset = void 0;
|
|
2787
2787
|
|
|
2788
2788
|
const global_1 = __webpack_require__(4128);
|
|
2789
2789
|
|
|
@@ -2844,15 +2844,10 @@ function apply(parser, source, context, changes, values) {
|
|
|
2844
2844
|
}
|
|
2845
2845
|
|
|
2846
2846
|
function syntax(syntax, precedence, cost, parser) {
|
|
2847
|
-
if (typeof cost === 'function') {
|
|
2848
|
-
parser = cost;
|
|
2849
|
-
cost = 1;
|
|
2850
|
-
}
|
|
2851
|
-
|
|
2852
2847
|
return (source, context) => {
|
|
2853
2848
|
if (source === '') return;
|
|
2854
|
-
context.
|
|
2855
|
-
|
|
2849
|
+
const memo = context.memo ??= new memo_1.Memo();
|
|
2850
|
+
context.memorable ??= ~0;
|
|
2856
2851
|
const p = context.precedence;
|
|
2857
2852
|
context.precedence = precedence;
|
|
2858
2853
|
const {
|
|
@@ -2865,7 +2860,8 @@ function syntax(syntax, precedence, cost, parser) {
|
|
|
2865
2860
|
if (resources.recursion <= 0) throw new Error('Too much recursion');
|
|
2866
2861
|
--resources.recursion;
|
|
2867
2862
|
const pos = source.length;
|
|
2868
|
-
const
|
|
2863
|
+
const state = context.state ?? 0;
|
|
2864
|
+
const cache = syntax && memo.get(pos, syntax, state);
|
|
2869
2865
|
const result = cache ? cache.length === 0 ? global_1.undefined : [cache[0], source.slice(cache[1])] : parser(source, context);
|
|
2870
2866
|
++resources.recursion;
|
|
2871
2867
|
|
|
@@ -2874,11 +2870,10 @@ function syntax(syntax, precedence, cost, parser) {
|
|
|
2874
2870
|
}
|
|
2875
2871
|
|
|
2876
2872
|
if (syntax) {
|
|
2877
|
-
if (state & context.
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
context.memo.clear(pos);
|
|
2873
|
+
if (state & context.memorable) {
|
|
2874
|
+
cache ?? memo.set(pos, syntax, state, (0, parser_1.eval)(result), source.length - (0, parser_1.exec)(result, '').length);
|
|
2875
|
+
} else if (result && memo.length >= pos) {
|
|
2876
|
+
memo.clear(pos);
|
|
2882
2877
|
}
|
|
2883
2878
|
}
|
|
2884
2879
|
|
|
@@ -2889,8 +2884,8 @@ function syntax(syntax, precedence, cost, parser) {
|
|
|
2889
2884
|
|
|
2890
2885
|
exports.syntax = syntax;
|
|
2891
2886
|
|
|
2892
|
-
function
|
|
2893
|
-
if (typeof cost === 'function') return
|
|
2887
|
+
function creation(cost, parser) {
|
|
2888
|
+
if (typeof cost === 'function') return creation(1, cost);
|
|
2894
2889
|
return (source, context) => {
|
|
2895
2890
|
const {
|
|
2896
2891
|
resources = {
|
|
@@ -2912,7 +2907,7 @@ function creator(cost, parser) {
|
|
|
2912
2907
|
};
|
|
2913
2908
|
}
|
|
2914
2909
|
|
|
2915
|
-
exports.
|
|
2910
|
+
exports.creation = creation;
|
|
2916
2911
|
|
|
2917
2912
|
function precedence(precedence, parser) {
|
|
2918
2913
|
return (source, context) => {
|
|
@@ -3073,12 +3068,13 @@ class Memo {
|
|
|
3073
3068
|
|
|
3074
3069
|
get(position, syntax, state) {
|
|
3075
3070
|
//console.log('get', position + this.offset, syntax, state, this.memory[position + this.offset - 1]?.[`${syntax}:${state}`]);;
|
|
3076
|
-
|
|
3071
|
+
const cache = this.memory[position + this.offset - 1]?.[`${syntax}:${state}`];
|
|
3072
|
+
return cache?.length === 2 ? [cache[0].slice(), cache[1]] : cache;
|
|
3077
3073
|
}
|
|
3078
3074
|
|
|
3079
3075
|
set(position, syntax, state, nodes, offset) {
|
|
3080
3076
|
const record = this.memory[position + this.offset - 1] ??= {};
|
|
3081
|
-
record[`${syntax}:${state}`] = nodes ? [nodes.slice(), offset] : []; //console.log('set', position + this.offset, syntax, state);
|
|
3077
|
+
record[`${syntax}:${state}`] = nodes ? [nodes.slice(), offset] : []; //console.log('set', position + this.offset, syntax, state, record[`${syntax}:${state}`]);
|
|
3082
3078
|
}
|
|
3083
3079
|
|
|
3084
3080
|
clear(position) {
|
|
@@ -3221,7 +3217,7 @@ function some(parser, end, delimiters = [], limit = -1) {
|
|
|
3221
3217
|
if (context.delimiters?.match(rest, context.precedence)) break;
|
|
3222
3218
|
const result = parser(rest, context);
|
|
3223
3219
|
if (!result) break;
|
|
3224
|
-
nodes = nodes ? (0, array_1.push)(nodes, (0, parser_1.eval)(result)) : (0, parser_1.eval)(result);
|
|
3220
|
+
nodes = nodes ? nodes.length < (0, parser_1.eval)(result).length ? (0, array_1.unshift)(nodes, (0, parser_1.eval)(result)) : (0, array_1.push)(nodes, (0, parser_1.eval)(result)) : (0, parser_1.eval)(result);
|
|
3225
3221
|
rest = (0, parser_1.exec)(result);
|
|
3226
3222
|
if (limit >= 0 && source.length - rest.length > limit) break;
|
|
3227
3223
|
}
|
|
@@ -3462,7 +3458,7 @@ const array_1 = __webpack_require__(8112);
|
|
|
3462
3458
|
function bind(target, settings) {
|
|
3463
3459
|
let context = { ...settings,
|
|
3464
3460
|
host: settings.host ?? new url_1.ReadonlyURL(global_1.location.pathname, global_1.location.origin),
|
|
3465
|
-
|
|
3461
|
+
memorable: context_1.backtrackable
|
|
3466
3462
|
};
|
|
3467
3463
|
if (context.host?.origin === 'null') throw new Error(`Invalid host: ${context.host.href}`);
|
|
3468
3464
|
const blocks = [];
|
|
@@ -3822,7 +3818,7 @@ function parse(source, opts = {}, context) {
|
|
|
3822
3818
|
...(context?.resources && {
|
|
3823
3819
|
resources: context.resources
|
|
3824
3820
|
}),
|
|
3825
|
-
|
|
3821
|
+
memorable: context_1.backtrackable
|
|
3826
3822
|
};
|
|
3827
3823
|
if (context.host?.origin === 'null') throw new Error(`Invalid host: ${context.host.href}`);
|
|
3828
3824
|
const node = (0, dom_1.frag)();
|
|
@@ -3917,7 +3913,7 @@ const dom_1 = __webpack_require__(3252);
|
|
|
3917
3913
|
|
|
3918
3914
|
const random_1 = __webpack_require__(7325);
|
|
3919
3915
|
|
|
3920
|
-
exports.block = (0, combinator_1.
|
|
3916
|
+
exports.block = (0, combinator_1.creation)(error((0, combinator_1.reset)({
|
|
3921
3917
|
resources: {
|
|
3922
3918
|
budget: 50 * 1000,
|
|
3923
3919
|
recursion: 20
|
|
@@ -3968,8 +3964,8 @@ const indent = (0, combinator_1.block)((0, combinator_1.open)(opener, (0, combin
|
|
|
3968
3964
|
|
|
3969
3965
|
const unindent = source => source.replace(/(^|\n)>(?:[^\S\n]|(?=>*(?:$|\s)))|\n$/g, '$1');
|
|
3970
3966
|
|
|
3971
|
-
const source = (0, combinator_1.lazy)(() => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.
|
|
3972
|
-
const markdown = (0, combinator_1.lazy)(() => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.
|
|
3967
|
+
const source = (0, combinator_1.lazy)(() => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.creation)((0, combinator_1.union)([(0, combinator_1.rewrite)(indent, (0, combinator_1.convert)(unindent, source)), (0, combinator_1.rewrite)((0, combinator_1.some)(source_1.contentline, opener), (0, combinator_1.convert)(unindent, (0, combinator_1.fmap)((0, combinator_1.some)(autolink_1.autolink), ns => [(0, dom_1.html)('pre', (0, dom_1.defrag)(ns))])))]))), ns => [(0, dom_1.html)('blockquote', ns)]));
|
|
3968
|
+
const markdown = (0, combinator_1.lazy)(() => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.creation)((0, combinator_1.union)([(0, combinator_1.rewrite)(indent, (0, combinator_1.convert)(unindent, markdown)), (0, combinator_1.creation)(99, (0, combinator_1.rewrite)((0, combinator_1.some)(source_1.contentline, opener), (0, combinator_1.convert)(unindent, (source, context) => {
|
|
3973
3969
|
const references = (0, dom_1.html)('ol', {
|
|
3974
3970
|
class: 'references'
|
|
3975
3971
|
});
|
|
@@ -4094,8 +4090,8 @@ exports.dlist = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, locale_
|
|
|
4094
4090
|
| 2
|
|
4095
4091
|
/* State.media */
|
|
4096
4092
|
, (0, combinator_1.some)(term)), (0, combinator_1.some)(desc)]))), es => [(0, dom_1.html)('dl', fillTrailingDescription(es))]))));
|
|
4097
|
-
const term = (0, combinator_1.
|
|
4098
|
-
const desc = (0, combinator_1.
|
|
4093
|
+
const term = (0, combinator_1.creation)((0, combinator_1.line)((0, inline_1.indexee)((0, combinator_1.fmap)((0, combinator_1.open)(/^~[^\S\n]+(?=\S)/, (0, visibility_1.visualize)((0, visibility_1.trimBlank)((0, combinator_1.some)((0, combinator_1.union)([inline_1.indexer, inline_1.inline])))), true), ns => [(0, dom_1.html)('dt', (0, dom_1.defrag)(ns))]))));
|
|
4094
|
+
const desc = (0, combinator_1.creation)((0, combinator_1.block)((0, combinator_1.fmap)((0, combinator_1.open)(/^:[^\S\n]+(?=\S)|/, (0, combinator_1.rewrite)((0, combinator_1.some)(source_1.anyline, /^[~:][^\S\n]+\S/), (0, visibility_1.visualize)((0, combinator_1.trimEnd)((0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]))))), true), ns => [(0, dom_1.html)('dd', (0, dom_1.defrag)(ns))]), false));
|
|
4099
4095
|
|
|
4100
4096
|
function fillTrailingDescription(es) {
|
|
4101
4097
|
return es.length > 0 && es[es.length - 1].tagName === 'DT' ? (0, array_1.push)(es, [(0, dom_1.html)('dd')]) : es;
|
|
@@ -4669,9 +4665,9 @@ const row = (0, combinator_1.lazy)(() => (0, combinator_1.dup)((0, combinator_1.
|
|
|
4669
4665
|
const alignment = /^[-=<>]+(?:\/[-=^v]*)?(?=[^\S\n]*\n)/;
|
|
4670
4666
|
const align = (0, combinator_1.line)((0, combinator_1.fmap)((0, combinator_1.union)([(0, source_1.str)(alignment)]), ([s]) => s.split('/').map(s => s.split(''))));
|
|
4671
4667
|
const delimiter = /^[-=<>]+(?:\/[-=^v]*)?(?=[^\S\n]*\n)|^[#:](?:(?!:\D|0)\d*:(?!0)\d*)?!*(?=\s)/;
|
|
4672
|
-
const head = (0, combinator_1.
|
|
4673
|
-
const data = (0, combinator_1.
|
|
4674
|
-
const dataline = (0, combinator_1.
|
|
4668
|
+
const head = (0, combinator_1.creation)((0, combinator_1.block)((0, combinator_1.fmap)((0, combinator_1.open)((0, source_1.str)(/^#(?:(?!:\D|0)\d*:(?!0)\d*)?!*(?=\s)/), (0, combinator_1.rewrite)((0, combinator_1.inits)([source_1.anyline, (0, combinator_1.some)(source_1.contentline, delimiter)]), (0, combinator_1.trim)((0, visibility_1.visualize)((0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]))))), true), ns => [(0, dom_1.html)('th', attributes(ns.shift()), (0, dom_1.defrag)(ns))]), false));
|
|
4669
|
+
const data = (0, combinator_1.creation)((0, combinator_1.block)((0, combinator_1.fmap)((0, combinator_1.open)((0, source_1.str)(/^:(?:(?!:\D|0)\d*:(?!0)\d*)?!*(?=\s)/), (0, combinator_1.rewrite)((0, combinator_1.inits)([source_1.anyline, (0, combinator_1.some)(source_1.contentline, delimiter)]), (0, combinator_1.trim)((0, visibility_1.visualize)((0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]))))), true), ns => [(0, dom_1.html)('td', attributes(ns.shift()), (0, dom_1.defrag)(ns))]), false));
|
|
4670
|
+
const dataline = (0, combinator_1.creation)((0, combinator_1.line)((0, combinator_1.rewrite)(source_1.contentline, (0, combinator_1.union)([(0, combinator_1.validate)(/^!+\s/, (0, combinator_1.convert)(source => `:${source}`, data)), (0, combinator_1.convert)(source => `: ${source}`, data)]))));
|
|
4675
4671
|
|
|
4676
4672
|
function attributes(source) {
|
|
4677
4673
|
let [, rowspan = global_1.undefined, colspan = global_1.undefined, highlight = global_1.undefined] = source.match(/^.(?:(\d+)?:(\d+)?)?(!+)?$/) ?? [];
|
|
@@ -4972,7 +4968,7 @@ const dom_1 = __webpack_require__(3252);
|
|
|
4972
4968
|
exports.ilist = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, combinator_1.validate)(/^[-+*](?=[^\S\n]|\n[^\S\n]*\S)/, (0, combinator_1.state)(2
|
|
4973
4969
|
/* State.media */
|
|
4974
4970
|
, exports.ilist_))));
|
|
4975
|
-
exports.ilist_ = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, combinator_1.fmap)((0, combinator_1.validate)(/^[-+*](?:$|\s)/, (0, combinator_1.some)((0, combinator_1.
|
|
4971
|
+
exports.ilist_ = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, combinator_1.fmap)((0, combinator_1.validate)(/^[-+*](?:$|\s)/, (0, combinator_1.some)((0, combinator_1.creation)((0, combinator_1.union)([(0, combinator_1.fmap)((0, combinator_1.fallback)((0, combinator_1.inits)([(0, combinator_1.line)((0, combinator_1.open)(/^[-+*](?:$|\s)/, (0, combinator_1.some)(inline_1.inline), true)), (0, combinator_1.indent)((0, combinator_1.union)([ulist_1.ulist_, olist_1.olist_, exports.ilist_]))]), olist_1.invalid), ns => [(0, dom_1.html)('li', (0, dom_1.defrag)((0, ulist_1.fillFirstLine)(ns)))])])))), es => [(0, dom_1.html)('ul', {
|
|
4976
4972
|
class: 'invalid',
|
|
4977
4973
|
'data-invalid-syntax': 'list',
|
|
4978
4974
|
'data-invalid-type': 'syntax',
|
|
@@ -5063,7 +5059,7 @@ exports.olist = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, combina
|
|
|
5063
5059
|
, exports.olist_))));
|
|
5064
5060
|
exports.olist_ = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, combinator_1.union)([(0, combinator_1.match)(openers['.'], (0, memoize_1.memoize)(ms => list(type(ms[1]), '.'), ms => type(ms[1]).charCodeAt(0) || 0, [])), (0, combinator_1.match)(openers['('], (0, memoize_1.memoize)(ms => list(type(ms[1]), '('), ms => type(ms[1]).charCodeAt(0) || 0, []))])));
|
|
5065
5061
|
|
|
5066
|
-
const list = (type, form) => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.
|
|
5062
|
+
const list = (type, form) => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.creation)((0, combinator_1.union)([(0, inline_1.indexee)((0, combinator_1.fmap)((0, combinator_1.fallback)((0, combinator_1.inits)([(0, combinator_1.line)((0, combinator_1.open)(heads[form], (0, combinator_1.subsequence)([ulist_1.checkbox, (0, visibility_1.trimBlank)((0, combinator_1.some)((0, combinator_1.union)([inline_1.indexer, inline_1.inline])))]), true)), (0, combinator_1.indent)((0, combinator_1.union)([ulist_1.ulist_, exports.olist_, ilist_1.ilist_]))]), exports.invalid), ns => [(0, dom_1.html)('li', {
|
|
5067
5063
|
'data-marker': ns[0] || global_1.undefined
|
|
5068
5064
|
}, (0, dom_1.defrag)((0, ulist_1.fillFirstLine)((0, array_1.shift)(ns)[1])))]), true)]))), es => [format((0, dom_1.html)('ol', es), type, form)]);
|
|
5069
5065
|
|
|
@@ -5248,7 +5244,7 @@ const source_1 = __webpack_require__(6743);
|
|
|
5248
5244
|
|
|
5249
5245
|
const dom_1 = __webpack_require__(3252);
|
|
5250
5246
|
|
|
5251
|
-
exports.cite = (0, combinator_1.
|
|
5247
|
+
exports.cite = (0, combinator_1.creation)((0, combinator_1.line)((0, combinator_1.fmap)((0, combinator_1.validate)('>>', (0, combinator_1.reverse)((0, combinator_1.tails)([(0, source_1.str)(/^>*(?=>>[^>\s]+[^\S\n]*(?:$|\n))/), (0, combinator_1.union)([anchor_1.anchor, // Subject page representation.
|
|
5252
5248
|
// リンクの実装は後で検討
|
|
5253
5249
|
(0, combinator_1.focus)(/^>>\.[^\S\n]*(?:$|\n)/, () => [[(0, dom_1.html)('a', {
|
|
5254
5250
|
class: 'anchor'
|
|
@@ -5286,7 +5282,7 @@ const autolink_1 = __webpack_require__(6578);
|
|
|
5286
5282
|
const dom_1 = __webpack_require__(3252);
|
|
5287
5283
|
|
|
5288
5284
|
exports.syntax = /^>+(?=[^\S\n])|^>(?=[^\s>])|^>+(?=[^\s>])(?![0-9a-z]+(?:-[0-9a-z]+)*(?![0-9A-Za-z@#:]))/;
|
|
5289
|
-
exports.quote = (0, combinator_1.lazy)(() => (0, combinator_1.
|
|
5285
|
+
exports.quote = (0, combinator_1.lazy)(() => (0, combinator_1.creation)((0, combinator_1.block)((0, combinator_1.fmap)((0, combinator_1.validate)('>', (0, combinator_1.union)([(0, combinator_1.rewrite)((0, combinator_1.some)((0, combinator_1.validate)(new RegExp(exports.syntax.source.split('|')[0]), source_1.anyline)), qblock), (0, combinator_1.rewrite)((0, combinator_1.validate)(new RegExp(exports.syntax.source.split('|').slice(1).join('|')), source_1.anyline), (0, combinator_1.line)((0, combinator_1.union)([(0, source_1.str)(/^.+/)])))])), ns => [(0, dom_1.html)('span', ns.length > 1 ? {
|
|
5290
5286
|
class: 'quote'
|
|
5291
5287
|
} : {
|
|
5292
5288
|
class: 'quote invalid',
|
|
@@ -5363,7 +5359,7 @@ const opener = /^(?=\|\|+(?:$|\s))/;
|
|
|
5363
5359
|
|
|
5364
5360
|
const unindent = source => source.replace(/(^|\n)\|(?:[^\S\n]|(?=\|*(?:$|\s)))|\n$/g, '$1');
|
|
5365
5361
|
|
|
5366
|
-
const source = (0, combinator_1.lazy)(() => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.
|
|
5362
|
+
const source = (0, combinator_1.lazy)(() => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.creation)((0, combinator_1.union)([(0, combinator_1.focus)(/^(?:\|\|+(?:[^\S\n][^\n]*)?(?:$|\n))+/, (0, combinator_1.convert)(unindent, source)), (0, combinator_1.rewrite)((0, combinator_1.some)(source_1.contentline, opener), (0, combinator_1.convert)(unindent, (0, combinator_1.fmap)((0, combinator_1.some)(autolink_1.autolink), ns => [(0, dom_1.html)('pre', (0, dom_1.defrag)(ns))])))]))), ns => [(0, dom_1.html)('blockquote', ns)]));
|
|
5367
5363
|
|
|
5368
5364
|
/***/ }),
|
|
5369
5365
|
|
|
@@ -5394,17 +5390,17 @@ const array_1 = __webpack_require__(8112);
|
|
|
5394
5390
|
|
|
5395
5391
|
exports.table = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, combinator_1.fmap)((0, combinator_1.validate)(/^\|[^\n]*(?:\n\|[^\n]*){2}/, (0, combinator_1.sequence)([row((0, combinator_1.some)(head), true), row((0, combinator_1.some)(align), false), (0, combinator_1.some)(row((0, combinator_1.some)(data), true))])), rows => [(0, dom_1.html)('table', [(0, dom_1.html)('thead', [rows.shift()]), (0, dom_1.html)('tbody', format(rows))])])));
|
|
5396
5392
|
|
|
5397
|
-
const row = (parser, optional) => (0, combinator_1.
|
|
5393
|
+
const row = (parser, optional) => (0, combinator_1.creation)((0, combinator_1.fallback)((0, combinator_1.fmap)((0, combinator_1.line)((0, combinator_1.surround)(/^(?=\|)/, (0, combinator_1.some)((0, combinator_1.union)([parser])), /^[|\\]?\s*$/, optional)), es => [(0, dom_1.html)('tr', es)]), (0, combinator_1.rewrite)(source_1.contentline, source => [[(0, dom_1.html)('tr', {
|
|
5398
5394
|
class: 'invalid',
|
|
5399
5395
|
'data-invalid-syntax': 'table-row',
|
|
5400
5396
|
'data-invalid-type': 'syntax',
|
|
5401
5397
|
'data-invalid-message': 'Missing the start symbol of the table row'
|
|
5402
5398
|
}, [(0, dom_1.html)('td', source.replace('\n', ''))])], ''])));
|
|
5403
5399
|
|
|
5404
|
-
const align = (0, combinator_1.
|
|
5400
|
+
const align = (0, combinator_1.creation)((0, combinator_1.fmap)((0, combinator_1.open)('|', (0, combinator_1.union)([(0, combinator_1.focus)(/^:-+:/, () => [['center'], '']), (0, combinator_1.focus)(/^:-+/, () => [['start'], '']), (0, combinator_1.focus)(/^-+:/, () => [['end'], '']), (0, combinator_1.focus)(/^-+/, () => [[''], ''])])), ns => [(0, dom_1.html)('td', (0, dom_1.defrag)(ns))]));
|
|
5405
5401
|
const cell = (0, combinator_1.surround)(/^\|\s*(?=\S)/, (0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), /^\|/, [[/^[|\\]?\s*$/, 9]]), /^[^|]*/, true);
|
|
5406
|
-
const head = (0, combinator_1.
|
|
5407
|
-
const data = (0, combinator_1.
|
|
5402
|
+
const head = (0, combinator_1.creation)((0, combinator_1.fmap)(cell, ns => [(0, dom_1.html)('th', (0, visibility_1.trimNode)((0, dom_1.defrag)(ns)))]));
|
|
5403
|
+
const data = (0, combinator_1.creation)((0, combinator_1.fmap)(cell, ns => [(0, dom_1.html)('td', (0, visibility_1.trimNode)((0, dom_1.defrag)(ns)))]));
|
|
5408
5404
|
|
|
5409
5405
|
function format(rows) {
|
|
5410
5406
|
const aligns = rows[0].classList.contains('invalid') ? [] : (0, duff_1.duffReduce)(rows.shift().children, (acc, el) => (0, array_1.push)(acc, [el.textContent]), []);
|
|
@@ -5453,7 +5449,7 @@ const array_1 = __webpack_require__(8112);
|
|
|
5453
5449
|
exports.ulist = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, combinator_1.validate)(/^-(?=[^\S\n]|\n[^\S\n]*\S)/, (0, combinator_1.state)(2
|
|
5454
5450
|
/* State.media */
|
|
5455
5451
|
, exports.ulist_))));
|
|
5456
|
-
exports.ulist_ = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, combinator_1.fmap)((0, combinator_1.validate)(/^-(?=$|\s)/, (0, combinator_1.some)((0, combinator_1.
|
|
5452
|
+
exports.ulist_ = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, combinator_1.fmap)((0, combinator_1.validate)(/^-(?=$|\s)/, (0, combinator_1.some)((0, combinator_1.creation)((0, combinator_1.union)([(0, inline_1.indexee)((0, combinator_1.fmap)((0, combinator_1.fallback)((0, combinator_1.inits)([(0, combinator_1.line)((0, combinator_1.open)(/^-(?:$|\s)/, (0, combinator_1.subsequence)([exports.checkbox, (0, visibility_1.trimBlank)((0, combinator_1.some)((0, combinator_1.union)([inline_1.indexer, inline_1.inline])))]), true)), (0, combinator_1.indent)((0, combinator_1.union)([exports.ulist_, olist_1.olist_, ilist_1.ilist_]))]), olist_1.invalid), ns => [(0, dom_1.html)('li', (0, dom_1.defrag)(fillFirstLine(ns)))]), true)])))), es => [format((0, dom_1.html)('ul', es))])));
|
|
5457
5453
|
exports.checkbox = (0, combinator_1.focus)(/^\[[xX ]\](?=$|\s)/, source => [[(0, dom_1.html)('span', {
|
|
5458
5454
|
class: 'checkbox'
|
|
5459
5455
|
}, source[1].trimStart() ? '☑' : '☐')], '']);
|
|
@@ -5668,19 +5664,19 @@ const visibility_1 = __webpack_require__(7618);
|
|
|
5668
5664
|
|
|
5669
5665
|
const dom_1 = __webpack_require__(3252);
|
|
5670
5666
|
|
|
5671
|
-
exports.annotation = (0, combinator_1.lazy)(() => (0, combinator_1.
|
|
5672
|
-
/* Rule.annotation */
|
|
5673
|
-
, 6, (0, combinator_1.surround)('((', (0, combinator_1.guard)(context => ~context.state & 64
|
|
5667
|
+
exports.annotation = (0, combinator_1.lazy)(() => (0, combinator_1.surround)('((', (0, combinator_1.guard)(context => ~context.state & 64
|
|
5674
5668
|
/* State.annotation */
|
|
5675
|
-
, (0, combinator_1.
|
|
5669
|
+
, (0, combinator_1.syntax)(32
|
|
5670
|
+
/* Syntax.annotation */
|
|
5671
|
+
, 6, 1, (0, combinator_1.state)(64
|
|
5676
5672
|
/* State.annotation */
|
|
5677
5673
|
| 2
|
|
5678
5674
|
/* State.media */
|
|
5679
5675
|
, (0, visibility_1.startLoose)((0, combinator_1.context)({
|
|
5680
5676
|
delimiters: global_1.undefined
|
|
5681
|
-
}, (0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), ')', [[/^\\?\n/, 9], [')', 2], ['))', 6]])), ')'))), '))', false, ([, ns], rest) => [[(0, dom_1.html)('sup', {
|
|
5677
|
+
}, (0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), ')', [[/^\\?\n/, 9], [')', 2], ['))', 6]])), ')')))), '))', false, ([, ns], rest) => [[(0, dom_1.html)('sup', {
|
|
5682
5678
|
class: 'annotation'
|
|
5683
|
-
}, [(0, dom_1.html)('span', (0, visibility_1.trimNode)((0, dom_1.defrag)(ns)))])], rest], ([, ns, rest], next) => next[0] === ')' ? global_1.undefined : (0, link_1.optimize)('((', ns, rest, next)))
|
|
5679
|
+
}, [(0, dom_1.html)('span', (0, visibility_1.trimNode)((0, dom_1.defrag)(ns)))])], rest], ([, ns, rest], next) => next[0] === ')' ? global_1.undefined : (0, link_1.optimize)('((', ns, rest, next)));
|
|
5684
5680
|
|
|
5685
5681
|
/***/ }),
|
|
5686
5682
|
|
|
@@ -5718,8 +5714,8 @@ const util_1 = __webpack_require__(9437);
|
|
|
5718
5714
|
exports.autolink = (0, combinator_1.fmap)((0, combinator_1.validate)(/^(?:[@#>0-9A-Za-z]|\S#)/, (0, combinator_1.guard)(context => ~context.state & 1
|
|
5719
5715
|
/* State.autolink */
|
|
5720
5716
|
, (0, combinator_1.syntax)(2
|
|
5721
|
-
/*
|
|
5722
|
-
, 1, (0, combinator_1.some)((0, combinator_1.union)([url_1.url, email_1.email, // Escape unmatched email-like strings.
|
|
5717
|
+
/* Syntax.autolink */
|
|
5718
|
+
, 1, 1, (0, combinator_1.some)((0, combinator_1.union)([url_1.url, email_1.email, // Escape unmatched email-like strings.
|
|
5723
5719
|
(0, source_1.str)(/^[0-9A-Za-z]+(?:[.+_-][0-9A-Za-z]+)*(?:@(?:[0-9A-Za-z]+(?:[.-][0-9A-Za-z]+)*)?)+/), channel_1.channel, account_1.account, // Escape unmatched account-like strings.
|
|
5724
5720
|
(0, source_1.str)(/^@+[0-9A-Za-z]*(?:-[0-9A-Za-z]+)*/), // Escape invalid leading characters.
|
|
5725
5721
|
(0, source_1.str)(new RegExp(/^(?:[^\p{C}\p{S}\p{P}\s]|emoji|['_])(?=#)/u.source.replace('emoji', hashtag_1.emoji), 'u')), hashtag_1.hashtag, hashnum_1.hashnum, // Escape unmatched hashtag-like strings.
|
|
@@ -5835,7 +5831,7 @@ const source_1 = __webpack_require__(6743);
|
|
|
5835
5831
|
const dom_1 = __webpack_require__(3252); // https://html.spec.whatwg.org/multipage/input.html
|
|
5836
5832
|
|
|
5837
5833
|
|
|
5838
|
-
exports.email = (0, combinator_1.
|
|
5834
|
+
exports.email = (0, combinator_1.creation)((0, combinator_1.rewrite)((0, combinator_1.verify)((0, source_1.str)(/^[0-9A-Za-z]+(?:[.+_-][0-9A-Za-z]+)*@[0-9A-Za-z](?:(?:[0-9A-Za-z]|-(?=\w)){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-(?=\w)){0,61}[0-9A-Za-z])?)*(?![0-9A-Za-z])/), ([source]) => source.indexOf('@') <= 64 && source.length <= 255), source => [[(0, dom_1.html)('a', {
|
|
5839
5835
|
class: 'email',
|
|
5840
5836
|
href: `mailto:${source}`
|
|
5841
5837
|
}, source)], '']));
|
|
@@ -5917,7 +5913,7 @@ const source_1 = __webpack_require__(6743);
|
|
|
5917
5913
|
|
|
5918
5914
|
const closer = /^[-+*=~^,.;:!?]*(?=[\\"`|\[\](){}<>]|$)/;
|
|
5919
5915
|
exports.url = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['http://', 'https://'], (0, combinator_1.rewrite)((0, combinator_1.open)(/^https?:\/\/(?=[\x21-\x7E])/, (0, combinator_1.focus)(/^[\x21-\x7E]+/, (0, combinator_1.some)((0, combinator_1.union)([bracket, (0, combinator_1.some)(source_1.unescsource, closer)])))), (0, combinator_1.convert)(url => `{ ${url} }`, (0, combinator_1.union)([link_1.textlink])))));
|
|
5920
|
-
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.
|
|
5916
|
+
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.creation)((0, combinator_1.precedence)(2, (0, combinator_1.union)([(0, combinator_1.surround)('(', (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.unescsource]), ')'), ')', true), (0, combinator_1.surround)('[', (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.unescsource]), ']'), ']', true), (0, combinator_1.surround)('{', (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.unescsource]), '}'), '}', true), (0, combinator_1.surround)('"', (0, combinator_1.precedence)(8, (0, combinator_1.some)(source_1.unescsource, '"')), '"', true)]))));
|
|
5921
5917
|
|
|
5922
5918
|
/***/ }),
|
|
5923
5919
|
|
|
@@ -5946,25 +5942,25 @@ const array_1 = __webpack_require__(8112);
|
|
|
5946
5942
|
|
|
5947
5943
|
const index = /^[0-9A-Za-z]+(?:(?:[.-]|, )[0-9A-Za-z]+)*/;
|
|
5948
5944
|
exports.bracket = (0, combinator_1.lazy)(() => (0, combinator_1.union)([(0, combinator_1.surround)((0, source_1.str)('('), (0, combinator_1.syntax)(0
|
|
5949
|
-
/*
|
|
5950
|
-
, 2, (0, source_1.str)(index)), (0, source_1.str)(')')), (0, combinator_1.surround)((0, source_1.str)('('), (0, combinator_1.syntax)(128
|
|
5951
|
-
/*
|
|
5952
|
-
, 2, (0, combinator_1.some)(inline_1.inline, ')', [[')', 2]])), (0, source_1.str)(')'), true, ([as, bs = [], cs], rest) => [[(0, dom_1.html)('span', {
|
|
5945
|
+
/* Syntax.none */
|
|
5946
|
+
, 2, 1, (0, source_1.str)(index)), (0, source_1.str)(')')), (0, combinator_1.surround)((0, source_1.str)('('), (0, combinator_1.syntax)(128
|
|
5947
|
+
/* Syntax.bracket */
|
|
5948
|
+
, 2, 1, (0, combinator_1.some)(inline_1.inline, ')', [[')', 2]])), (0, source_1.str)(')'), true, ([as, bs = [], cs], rest) => [[(0, dom_1.html)('span', {
|
|
5953
5949
|
class: 'paren'
|
|
5954
5950
|
}, (0, dom_1.defrag)((0, array_1.push)((0, array_1.unshift)(as, bs), cs)))], rest], ([as, bs = []], rest) => [(0, array_1.unshift)([''], (0, array_1.unshift)(as, bs)), rest]), (0, combinator_1.surround)((0, source_1.str)('('), (0, combinator_1.syntax)(0
|
|
5955
|
-
/*
|
|
5956
|
-
, 2, (0, source_1.str)(new RegExp(index.source.replace(', ', '[,、]').replace(/[09AZaz.]|\-(?!\w)/g, c => c.trimStart() && String.fromCharCode(c.charCodeAt(0) + 0xFEE0))))), (0, source_1.str)(')')), (0, combinator_1.surround)((0, source_1.str)('('), (0, combinator_1.syntax)(128
|
|
5957
|
-
/*
|
|
5958
|
-
, 2, (0, combinator_1.some)(inline_1.inline, ')', [[')', 2]])), (0, source_1.str)(')'), true, ([as, bs = [], cs], rest) => [[(0, dom_1.html)('span', {
|
|
5951
|
+
/* Syntax.none */
|
|
5952
|
+
, 2, 1, (0, source_1.str)(new RegExp(index.source.replace(', ', '[,、]').replace(/[09AZaz.]|\-(?!\w)/g, c => c.trimStart() && String.fromCharCode(c.charCodeAt(0) + 0xFEE0))))), (0, source_1.str)(')')), (0, combinator_1.surround)((0, source_1.str)('('), (0, combinator_1.syntax)(128
|
|
5953
|
+
/* Syntax.bracket */
|
|
5954
|
+
, 2, 1, (0, combinator_1.some)(inline_1.inline, ')', [[')', 2]])), (0, source_1.str)(')'), true, ([as, bs = [], cs], rest) => [[(0, dom_1.html)('span', {
|
|
5959
5955
|
class: 'paren'
|
|
5960
5956
|
}, (0, dom_1.defrag)((0, array_1.push)((0, array_1.unshift)(as, bs), cs)))], rest], ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), (0, combinator_1.surround)((0, source_1.str)('['), (0, combinator_1.syntax)(128
|
|
5961
|
-
/*
|
|
5962
|
-
, 2, (0, combinator_1.some)(inline_1.inline, ']', [[']', 2]])), (0, source_1.str)(']'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)([''], (0, array_1.unshift)(as, bs)), rest]), (0, combinator_1.surround)((0, source_1.str)('{'), (0, combinator_1.syntax)(128
|
|
5963
|
-
/*
|
|
5964
|
-
, 2, (0, combinator_1.some)(inline_1.inline, '}', [['}', 2]])), (0, source_1.str)('}'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), // Control media blinking in editing rather than control confusion of pairs of quote marks.
|
|
5957
|
+
/* Syntax.bracket */
|
|
5958
|
+
, 2, 1, (0, combinator_1.some)(inline_1.inline, ']', [[']', 2]])), (0, source_1.str)(']'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)([''], (0, array_1.unshift)(as, bs)), rest]), (0, combinator_1.surround)((0, source_1.str)('{'), (0, combinator_1.syntax)(128
|
|
5959
|
+
/* Syntax.bracket */
|
|
5960
|
+
, 2, 1, (0, combinator_1.some)(inline_1.inline, '}', [['}', 2]])), (0, source_1.str)('}'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), // Control media blinking in editing rather than control confusion of pairs of quote marks.
|
|
5965
5961
|
(0, combinator_1.surround)((0, source_1.str)('"'), (0, combinator_1.syntax)(1
|
|
5966
|
-
/*
|
|
5967
|
-
, 8, (0, combinator_1.some)(inline_1.inline, '"', [['"', 8]])), (0, source_1.str)('"'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest])]));
|
|
5962
|
+
/* Syntax.quote */
|
|
5963
|
+
, 8, 1, (0, combinator_1.some)(inline_1.inline, '"', [['"', 8]])), (0, source_1.str)('"'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest])]));
|
|
5968
5964
|
|
|
5969
5965
|
/***/ }),
|
|
5970
5966
|
|
|
@@ -5983,7 +5979,7 @@ const combinator_1 = __webpack_require__(2087);
|
|
|
5983
5979
|
|
|
5984
5980
|
const dom_1 = __webpack_require__(3252);
|
|
5985
5981
|
|
|
5986
|
-
exports.code = (0, combinator_1.
|
|
5982
|
+
exports.code = (0, combinator_1.creation)((0, combinator_1.validate)('`', (0, combinator_1.match)(/^(`+)(?!`)([^\n]*?[^`\n])\1(?!`)/, ([whole,, body]) => rest => [[(0, dom_1.html)('code', {
|
|
5987
5983
|
'data-src': whole
|
|
5988
5984
|
}, format(body))], rest.slice(whole.length)])));
|
|
5989
5985
|
|
|
@@ -6017,8 +6013,8 @@ const memoize_1 = __webpack_require__(1808);
|
|
|
6017
6013
|
const array_1 = __webpack_require__(8112);
|
|
6018
6014
|
|
|
6019
6015
|
exports.comment = (0, combinator_1.lazy)(() => (0, combinator_1.validate)('[%', (0, combinator_1.syntax)(0
|
|
6020
|
-
/*
|
|
6021
|
-
, 4, (0, combinator_1.match)(/^\[(%+)\s/, (0, memoize_1.memoize)(([, fence]) => (0, combinator_1.surround)((0, combinator_1.open)((0, source_1.str)(`[${fence}`), (0, combinator_1.some)(source_1.text, new RegExp(String.raw`^\s+${fence}\]|^\S`)), true), (0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), new RegExp(String.raw`^\s+${fence}\]`), [[new RegExp(String.raw`^\s+${fence}\]`), 4]]), (0, combinator_1.close)((0, combinator_1.some)(source_1.text, /^\S/), (0, source_1.str)(`${fence}]`)), true, ([as, bs = [], cs], rest) => [[(0, dom_1.html)('span', {
|
|
6016
|
+
/* Syntax.none */
|
|
6017
|
+
, 4, 1, (0, combinator_1.match)(/^\[(%+)\s/, (0, memoize_1.memoize)(([, fence]) => (0, combinator_1.surround)((0, combinator_1.open)((0, source_1.str)(`[${fence}`), (0, combinator_1.some)(source_1.text, new RegExp(String.raw`^\s+${fence}\]|^\S`)), true), (0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), new RegExp(String.raw`^\s+${fence}\]`), [[new RegExp(String.raw`^\s+${fence}\]`), 4]]), (0, combinator_1.close)((0, combinator_1.some)(source_1.text, /^\S/), (0, source_1.str)(`${fence}]`)), true, ([as, bs = [], cs], rest) => [[(0, dom_1.html)('span', {
|
|
6022
6018
|
class: 'comment'
|
|
6023
6019
|
}, [(0, dom_1.html)('input', {
|
|
6024
6020
|
type: 'checkbox'
|
|
@@ -6049,9 +6045,9 @@ const dom_1 = __webpack_require__(3252);
|
|
|
6049
6045
|
|
|
6050
6046
|
const array_1 = __webpack_require__(8112);
|
|
6051
6047
|
|
|
6052
|
-
exports.deletion = (0, combinator_1.lazy)(() => (0, combinator_1.syntax)(0
|
|
6053
|
-
/*
|
|
6054
|
-
, 1,
|
|
6048
|
+
exports.deletion = (0, combinator_1.lazy)(() => (0, combinator_1.surround)((0, source_1.str)('~~'), (0, combinator_1.syntax)(0
|
|
6049
|
+
/* Syntax.none */
|
|
6050
|
+
, 1, 1, (0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, visibility_1.blankWith)('\n', '~~')), (0, combinator_1.open)('\n', (0, combinator_1.some)(inline_1.inline, '~'), true)]))), (0, source_1.str)('~~'), false, ([, bs], rest) => [[(0, dom_1.html)('del', (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest]));
|
|
6055
6051
|
|
|
6056
6052
|
/***/ }),
|
|
6057
6053
|
|
|
@@ -6082,9 +6078,9 @@ const dom_1 = __webpack_require__(3252);
|
|
|
6082
6078
|
|
|
6083
6079
|
const array_1 = __webpack_require__(8112);
|
|
6084
6080
|
|
|
6085
|
-
exports.emphasis = (0, combinator_1.lazy)(() => (0, combinator_1.syntax)(0
|
|
6086
|
-
/*
|
|
6087
|
-
, 1,
|
|
6081
|
+
exports.emphasis = (0, combinator_1.lazy)(() => (0, combinator_1.surround)((0, source_1.str)('*'), (0, combinator_1.syntax)(0
|
|
6082
|
+
/* Syntax.none */
|
|
6083
|
+
, 1, 1, (0, visibility_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([strong_1.strong, (0, combinator_1.some)(inline_1.inline, (0, visibility_1.blankWith)('*')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '*'), (0, combinator_1.union)([emstrong_1.emstrong, strong_1.strong, exports.emphasis]))])), '*')), (0, source_1.str)('*'), false, ([, bs], rest) => [[(0, dom_1.html)('em', (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest]));
|
|
6088
6084
|
|
|
6089
6085
|
/***/ }),
|
|
6090
6086
|
|
|
@@ -6117,9 +6113,9 @@ const array_1 = __webpack_require__(8112);
|
|
|
6117
6113
|
|
|
6118
6114
|
const substrong = (0, combinator_1.lazy)(() => (0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, visibility_1.blankWith)('**')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '*'), (0, combinator_1.union)([exports.emstrong, strong_1.strong]))])));
|
|
6119
6115
|
const subemphasis = (0, combinator_1.lazy)(() => (0, combinator_1.some)((0, combinator_1.union)([strong_1.strong, (0, combinator_1.some)(inline_1.inline, (0, visibility_1.blankWith)('*')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '*'), (0, combinator_1.union)([exports.emstrong, strong_1.strong, emphasis_1.emphasis]))])));
|
|
6120
|
-
exports.emstrong = (0, combinator_1.lazy)(() => (0, combinator_1.syntax)(0
|
|
6121
|
-
/*
|
|
6122
|
-
, 1,
|
|
6116
|
+
exports.emstrong = (0, combinator_1.lazy)(() => (0, combinator_1.surround)((0, source_1.str)('***'), (0, combinator_1.syntax)(0
|
|
6117
|
+
/* Syntax.none */
|
|
6118
|
+
, 1, 1, (0, visibility_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, visibility_1.blankWith)('*')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '*'), inline_1.inline)])))), (0, source_1.str)(/^\*{1,3}/), false, ([, bs, cs], rest, context) => {
|
|
6123
6119
|
switch (cs[0]) {
|
|
6124
6120
|
case '***':
|
|
6125
6121
|
return [[(0, dom_1.html)('em', [(0, dom_1.html)('strong', (0, dom_1.defrag)(bs))])], rest];
|
|
@@ -6130,7 +6126,7 @@ exports.emstrong = (0, combinator_1.lazy)(() => (0, combinator_1.syntax)(0
|
|
|
6130
6126
|
case '*':
|
|
6131
6127
|
return (0, combinator_1.bind)(substrong, (ds, rest) => rest.slice(0, 2) === '**' ? [[(0, dom_1.html)('strong', (0, array_1.unshift)([(0, dom_1.html)('em', (0, dom_1.defrag)(bs))], (0, dom_1.defrag)(ds)))], rest.slice(2)] : [(0, array_1.unshift)(['**', (0, dom_1.html)('em', (0, dom_1.defrag)(bs))], ds), rest])(rest, context) ?? [['**', (0, dom_1.html)('em', (0, dom_1.defrag)(bs))], rest];
|
|
6132
6128
|
}
|
|
6133
|
-
}, ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest]))
|
|
6129
|
+
}, ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest]));
|
|
6134
6130
|
|
|
6135
6131
|
/***/ }),
|
|
6136
6132
|
|
|
@@ -6220,11 +6216,11 @@ const visibility_1 = __webpack_require__(7618);
|
|
|
6220
6216
|
|
|
6221
6217
|
const dom_1 = __webpack_require__(3252);
|
|
6222
6218
|
|
|
6223
|
-
exports.index = (0, combinator_1.lazy)(() => (0, combinator_1.validate)('[#', (0, combinator_1.
|
|
6224
|
-
/* Rule.index */
|
|
6225
|
-
, 2, (0, combinator_1.fmap)((0, indexee_1.indexee)((0, combinator_1.surround)('[#', (0, combinator_1.guard)(context => ~context.state & 16
|
|
6219
|
+
exports.index = (0, combinator_1.lazy)(() => (0, combinator_1.validate)('[#', (0, combinator_1.fmap)((0, indexee_1.indexee)((0, combinator_1.surround)('[#', (0, combinator_1.guard)(context => ~context.state & 16
|
|
6226
6220
|
/* State.index */
|
|
6227
|
-
, (0, combinator_1.
|
|
6221
|
+
, (0, combinator_1.syntax)(1024
|
|
6222
|
+
/* Syntax.index */
|
|
6223
|
+
, 2, 1, (0, combinator_1.state)(64
|
|
6228
6224
|
/* State.annotation */
|
|
6229
6225
|
| 32
|
|
6230
6226
|
/* State.reference */
|
|
@@ -6238,16 +6234,16 @@ exports.index = (0, combinator_1.lazy)(() => (0, combinator_1.validate)('[#', (0
|
|
|
6238
6234
|
/* State.media */
|
|
6239
6235
|
| 1
|
|
6240
6236
|
/* State.autolink */
|
|
6241
|
-
, (0, visibility_1.startTight)((0, combinator_1.open)((0, source_1.stropt)(/^\|?/), (0, visibility_1.trimBlankEnd)((0, combinator_1.some)((0, combinator_1.union)([signature, inline_1.inline]), ']', [[/^\\?\n/, 9], [']', 2]])), true)))), ']', false, ([, ns], rest) => [[(0, dom_1.html)('a', (0, dom_1.defrag)(ns))], rest])), ([el]) => [(0, dom_1.define)(el, {
|
|
6237
|
+
, (0, visibility_1.startTight)((0, combinator_1.open)((0, source_1.stropt)(/^\|?/), (0, visibility_1.trimBlankEnd)((0, combinator_1.some)((0, combinator_1.union)([signature, inline_1.inline]), ']', [[/^\\?\n/, 9], [']', 2]])), true))))), ']', false, ([, ns], rest) => [[(0, dom_1.html)('a', (0, dom_1.defrag)(ns))], rest])), ([el]) => [(0, dom_1.define)(el, {
|
|
6242
6238
|
id: el.id ? null : global_1.undefined,
|
|
6243
6239
|
class: 'index',
|
|
6244
6240
|
href: el.id ? `#${el.id}` : global_1.undefined
|
|
6245
|
-
}, el.childNodes)])))
|
|
6246
|
-
const signature = (0, combinator_1.lazy)(() => (0, combinator_1.
|
|
6241
|
+
}, el.childNodes)])));
|
|
6242
|
+
const signature = (0, combinator_1.lazy)(() => (0, combinator_1.creation)((0, combinator_1.fmap)((0, combinator_1.open)('|#', (0, visibility_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.txt]), ']'))), ns => [(0, dom_1.html)('span', {
|
|
6247
6243
|
class: 'indexer',
|
|
6248
6244
|
'data-index': (0, indexee_1.identity)(ns.join('')).slice(6)
|
|
6249
6245
|
})])));
|
|
6250
|
-
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.
|
|
6246
|
+
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.creation)((0, combinator_1.union)([(0, combinator_1.surround)((0, source_1.str)('('), (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.txt]), ')'), (0, source_1.str)(')'), true), (0, combinator_1.surround)((0, source_1.str)('['), (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.txt]), ']'), (0, source_1.str)(']'), true), (0, combinator_1.surround)((0, source_1.str)('{'), (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.txt]), '}'), (0, source_1.str)('}'), true), (0, combinator_1.surround)((0, source_1.str)('"'), (0, combinator_1.precedence)(8, (0, combinator_1.some)(source_1.txt, '"')), (0, source_1.str)('"'), true)])));
|
|
6251
6247
|
|
|
6252
6248
|
/***/ }),
|
|
6253
6249
|
|
|
@@ -6348,7 +6344,7 @@ const index_1 = __webpack_require__(4479);
|
|
|
6348
6344
|
|
|
6349
6345
|
const dom_1 = __webpack_require__(3252);
|
|
6350
6346
|
|
|
6351
|
-
exports.indexer = (0, combinator_1.
|
|
6347
|
+
exports.indexer = (0, combinator_1.creation)((0, combinator_1.fmap)((0, combinator_1.verify)((0, combinator_1.surround)(/^\s+(?=\[#\S)/, (0, combinator_1.state)(16
|
|
6352
6348
|
/* State.index */
|
|
6353
6349
|
, false, (0, combinator_1.union)([(0, combinator_1.focus)('[#]', () => [[(0, dom_1.html)('a', {
|
|
6354
6350
|
href: '#'
|
|
@@ -6381,7 +6377,7 @@ const dom_1 = __webpack_require__(3252);
|
|
|
6381
6377
|
|
|
6382
6378
|
const body = (0, source_1.str)(/^\$[A-Za-z]*(?:(?:-[A-Za-z][0-9A-Za-z]*)+|-(?:(?:0|[1-9][0-9]*)\.)*(?:0|[1-9][0-9]*)(?![0-9A-Za-z]))/);
|
|
6383
6379
|
exports.segment = (0, combinator_1.clear)((0, combinator_1.validate)(['[$', '$'], (0, combinator_1.union)([(0, combinator_1.surround)('[', body, ']'), body])));
|
|
6384
|
-
exports.label = (0, combinator_1.validate)(['[$', '$'], (0, combinator_1.
|
|
6380
|
+
exports.label = (0, combinator_1.validate)(['[$', '$'], (0, combinator_1.creation)((0, combinator_1.fmap)((0, combinator_1.guard)(context => ~context.state & 8
|
|
6385
6381
|
/* State.label */
|
|
6386
6382
|
, (0, combinator_1.union)([(0, combinator_1.surround)('[', body, ']'), body])), ([text]) => [(0, dom_1.html)('a', {
|
|
6387
6383
|
class: 'label',
|
|
@@ -6439,14 +6435,14 @@ const array_1 = __webpack_require__(8112); // Don't use the symbols already used
|
|
|
6439
6435
|
// All syntax surrounded by square brackets shouldn't contain line breaks.
|
|
6440
6436
|
|
|
6441
6437
|
|
|
6442
|
-
exports.placeholder = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['[:', '[^'], (0, combinator_1.syntax)(0
|
|
6443
|
-
/*
|
|
6444
|
-
, 2,
|
|
6438
|
+
exports.placeholder = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['[:', '[^'], (0, combinator_1.surround)((0, source_1.str)(/^\[[:^]/), (0, combinator_1.syntax)(0
|
|
6439
|
+
/* Syntax.none */
|
|
6440
|
+
, 2, 1, (0, visibility_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), ']', [[/^\\?\n/, 9], [']', 2]]))), (0, source_1.str)(']'), false, ([as, bs], rest) => [[(0, dom_1.html)('span', {
|
|
6445
6441
|
class: 'invalid',
|
|
6446
6442
|
'data-invalid-syntax': 'extension',
|
|
6447
6443
|
'data-invalid-type': 'syntax',
|
|
6448
6444
|
'data-invalid-message': `Reserved start symbol "${as[0][1]}" cannot be used in "[]"`
|
|
6449
|
-
}, (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest])))
|
|
6445
|
+
}, (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest])));
|
|
6450
6446
|
|
|
6451
6447
|
/***/ }),
|
|
6452
6448
|
|
|
@@ -6488,8 +6484,8 @@ const attrspecs = {
|
|
|
6488
6484
|
global_1.Object.setPrototypeOf(attrspecs, null);
|
|
6489
6485
|
global_1.Object.values(attrspecs).forEach(o => global_1.Object.setPrototypeOf(o, null));
|
|
6490
6486
|
exports.html = (0, combinator_1.lazy)(() => (0, combinator_1.validate)('<', (0, combinator_1.validate)(/^<[a-z]+(?=[^\S\n]|>)/, (0, combinator_1.syntax)(0
|
|
6491
|
-
/*
|
|
6492
|
-
, 5, (0, combinator_1.union)([(0, combinator_1.focus)('<wbr>', () => [[(0, dom_1.html)('wbr')], '']), (0, combinator_1.focus)( // https://html.spec.whatwg.org/multipage/syntax.html#void-elements
|
|
6487
|
+
/* Syntax.none */
|
|
6488
|
+
, 5, 1, (0, combinator_1.union)([(0, combinator_1.focus)('<wbr>', () => [[(0, dom_1.html)('wbr')], '']), (0, combinator_1.focus)( // https://html.spec.whatwg.org/multipage/syntax.html#void-elements
|
|
6493
6489
|
/^<(?:area|base|br|col|embed|hr|img|input|link|meta|source|track|wbr)(?=[^\S\n]|>)/, source => [[source], '']), (0, combinator_1.match)(new RegExp(String.raw`^<(${TAGS.join('|')})(?=[^\S\n]|>)`), (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.surround)((0, combinator_1.surround)((0, source_1.str)(`<${tag}`), (0, combinator_1.some)(exports.attribute), (0, source_1.str)(/^[^\S\n]*>/), true), (0, combinator_1.subsequence)([(0, combinator_1.focus)(/^[^\S\n]*\n/, (0, combinator_1.some)(inline_1.inline)), (0, combinator_1.some)((0, combinator_1.open)(/^\n?/, (0, combinator_1.some)(inline_1.inline, (0, visibility_1.blankWith)('\n', `</${tag}>`), [[(0, visibility_1.blankWith)('\n', `</${tag}>`), 5]]), true))]), (0, source_1.str)(`</${tag}>`), true, ([as, bs = [], cs], rest) => [[elem(tag, as, bs, cs)], rest], ([as, bs = []], rest) => [[elem(tag, as, bs, [])], rest]), ([, tag]) => TAGS.indexOf(tag), [])), (0, combinator_1.match)(/^<([a-z]+)(?=[^\S\n]|>)/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.surround)((0, combinator_1.surround)((0, source_1.str)(`<${tag}`), (0, combinator_1.some)(exports.attribute), (0, source_1.str)(/^[^\S\n]*>/), true), (0, combinator_1.subsequence)([(0, combinator_1.focus)(/^[^\S\n]*\n/, (0, combinator_1.some)(inline_1.inline)), (0, combinator_1.some)(inline_1.inline, `</${tag}>`, [[`</${tag}>`, 5]])]), (0, source_1.str)(`</${tag}>`), true, ([as, bs = [], cs], rest) => [[elem(tag, as, bs, cs)], rest], ([as, bs = []], rest) => [[elem(tag, as, bs, [])], rest]), ([, tag]) => tag, new cache_1.Cache(10000)))])))));
|
|
6494
6490
|
exports.attribute = (0, combinator_1.union)([(0, source_1.str)(/^[^\S\n]+[a-z]+(?:-[a-z]+)*(?:="(?:\\[^\n]|[^\\\n"])*")?(?=[^\S\n]|>)/)]); // https://developer.mozilla.org/en-US/docs/Web/HTML/Element
|
|
6495
6491
|
// [...document.querySelectorAll('tbody > tr > td:first-child')].map(el => el.textContent.slice(1, -1))
|
|
@@ -6565,7 +6561,7 @@ const dom_1 = __webpack_require__(3252);
|
|
|
6565
6561
|
|
|
6566
6562
|
const memoize_1 = __webpack_require__(1808);
|
|
6567
6563
|
|
|
6568
|
-
exports.unsafehtmlentity = (0, combinator_1.
|
|
6564
|
+
exports.unsafehtmlentity = (0, combinator_1.creation)((0, combinator_1.validate)('&', (0, combinator_1.focus)(/^&[0-9A-Za-z]+;/, entity => [[parse(entity) ?? `\x1B${entity}`], ''])));
|
|
6569
6565
|
exports.htmlentity = (0, combinator_1.fmap)((0, combinator_1.union)([exports.unsafehtmlentity]), ([test]) => [test[0] === '\x1B' ? (0, dom_1.html)('span', {
|
|
6570
6566
|
class: 'invalid',
|
|
6571
6567
|
'data-invalid-syntax': 'htmlentity',
|
|
@@ -6604,9 +6600,9 @@ const dom_1 = __webpack_require__(3252);
|
|
|
6604
6600
|
|
|
6605
6601
|
const array_1 = __webpack_require__(8112);
|
|
6606
6602
|
|
|
6607
|
-
exports.insertion = (0, combinator_1.lazy)(() => (0, combinator_1.syntax)(0
|
|
6608
|
-
/*
|
|
6609
|
-
, 1,
|
|
6603
|
+
exports.insertion = (0, combinator_1.lazy)(() => (0, combinator_1.surround)((0, source_1.str)('++'), (0, combinator_1.syntax)(0
|
|
6604
|
+
/* Syntax.none */
|
|
6605
|
+
, 1, 1, (0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, visibility_1.blankWith)('\n', '++')), (0, combinator_1.open)('\n', (0, combinator_1.some)(inline_1.inline, '+'), true)]))), (0, source_1.str)('++'), false, ([, bs], rest) => [[(0, dom_1.html)('ins', (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest]));
|
|
6610
6606
|
|
|
6611
6607
|
/***/ }),
|
|
6612
6608
|
|
|
@@ -6647,11 +6643,11 @@ const optspec = {
|
|
|
6647
6643
|
rel: ['nofollow']
|
|
6648
6644
|
};
|
|
6649
6645
|
Object.setPrototypeOf(optspec, null);
|
|
6650
|
-
exports.link = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['[', '{'], (0, combinator_1.
|
|
6651
|
-
/* Rule.link */
|
|
6652
|
-
, 2, 10, (0, combinator_1.bind)((0, combinator_1.guard)(context => ~context.state & 4
|
|
6646
|
+
exports.link = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['[', '{'], (0, combinator_1.bind)((0, combinator_1.guard)(context => ~context.state & 4
|
|
6653
6647
|
/* State.link */
|
|
6654
|
-
, (0, combinator_1.
|
|
6648
|
+
, (0, combinator_1.syntax)(256
|
|
6649
|
+
/* Syntax.link */
|
|
6650
|
+
, 2, 10, (0, combinator_1.fmap)((0, combinator_1.subsequence)([(0, combinator_1.state)(4
|
|
6655
6651
|
/* State.link */
|
|
6656
6652
|
, (0, combinator_1.dup)((0, combinator_1.union)([(0, combinator_1.surround)('[', inline_1.media, ']'), (0, combinator_1.surround)('[', inline_1.shortmedia, ']'), (0, combinator_1.surround)('[', (0, combinator_1.state)(64
|
|
6657
6653
|
/* State.annotation */
|
|
@@ -6665,7 +6661,7 @@ exports.link = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['[', '{'
|
|
|
6665
6661
|
/* State.media */
|
|
6666
6662
|
| 1
|
|
6667
6663
|
/* State.autolink */
|
|
6668
|
-
, (0, combinator_1.some)(inline_1.inline, ']', [[/^\\?\n/, 9], [']', 2]])), ']', true, global_1.undefined, ([, ns = [], rest], next) => next[0] === ']' ? global_1.undefined : optimize('[', ns, rest, next))]))), (0, combinator_1.dup)((0, combinator_1.surround)(/^{(?![{}])/, (0, combinator_1.inits)([exports.uri, (0, combinator_1.some)(exports.option)]), /^[^\S\n]*}/))], nodes => nodes[0][0] !== ''), ([as, bs = []]) => bs[0] === '\r' && bs.shift() ? [as, bs] : as[0] === '\r' && as.shift() ? [[], as] : [as, []])), ([content, params], rest, context) => {
|
|
6664
|
+
, (0, combinator_1.some)(inline_1.inline, ']', [[/^\\?\n/, 9], [']', 2]])), ']', true, global_1.undefined, ([, ns = [], rest], next) => next[0] === ']' ? global_1.undefined : optimize('[', ns, rest, next))]))), (0, combinator_1.dup)((0, combinator_1.surround)(/^{(?![{}])/, (0, combinator_1.inits)([exports.uri, (0, combinator_1.some)(exports.option)]), /^[^\S\n]*}/))], nodes => nodes[0][0] !== ''), ([as, bs = []]) => bs[0] === '\r' && bs.shift() ? [as, bs] : as[0] === '\r' && as.shift() ? [[], as] : [as, []]))), ([content, params], rest, context) => {
|
|
6669
6665
|
if (content[0] === '') return [content, rest];
|
|
6670
6666
|
if (params.length === 0) return;
|
|
6671
6667
|
if (content.length !== 0 && (0, visibility_1.trimNode)(content).length === 0) return;
|
|
@@ -6680,16 +6676,14 @@ exports.link = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['[', '{'
|
|
|
6680
6676
|
const el = elem(INSECURE_URI, (0, dom_1.defrag)(content), new url_1.ReadonlyURL(resolve(INSECURE_URI, context.host ?? global_1.location, context.url ?? context.host ?? global_1.location), context.host?.href || global_1.location.href), context.host?.origin || global_1.location.origin);
|
|
6681
6677
|
if (el.classList.contains('invalid')) return [[el], rest];
|
|
6682
6678
|
return [[(0, dom_1.define)(el, (0, html_1.attributes)('link', [], optspec, params))], rest];
|
|
6683
|
-
})))
|
|
6684
|
-
exports.textlink = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['[', '{'], (0, combinator_1.
|
|
6685
|
-
/* Rule.link */
|
|
6686
|
-
, 2, 10, (0, combinator_1.bind)((0, combinator_1.reverse)((0, combinator_1.tails)([(0, combinator_1.dup)((0, combinator_1.surround)('[', (0, combinator_1.some)((0, combinator_1.union)([source_1.unescsource]), ']'), ']')), (0, combinator_1.dup)((0, combinator_1.surround)(/^{(?![{}])/, (0, combinator_1.inits)([exports.uri, (0, combinator_1.some)(exports.option)]), /^[^\S\n]*}/))])), ([params, content = []], rest, context) => {
|
|
6679
|
+
})));
|
|
6680
|
+
exports.textlink = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['[', '{'], (0, combinator_1.bind)((0, combinator_1.creation)(10, (0, combinator_1.precedence)(2, (0, combinator_1.reverse)((0, combinator_1.tails)([(0, combinator_1.dup)((0, combinator_1.surround)('[', (0, combinator_1.some)((0, combinator_1.union)([source_1.unescsource]), ']'), ']')), (0, combinator_1.dup)((0, combinator_1.surround)(/^{(?![{}])/, (0, combinator_1.inits)([exports.uri, (0, combinator_1.some)(exports.option)]), /^[^\S\n]*}/))])))), ([params, content = []], rest, context) => {
|
|
6687
6681
|
params.shift();
|
|
6688
6682
|
(0, visibility_1.trimNode)(content);
|
|
6689
6683
|
const INSECURE_URI = params.shift();
|
|
6690
6684
|
const el = elem(INSECURE_URI, (0, dom_1.defrag)(content), new url_1.ReadonlyURL(resolve(INSECURE_URI, context.host ?? global_1.location, context.url ?? context.host ?? global_1.location), context.host?.href || global_1.location.href), context.host?.origin || global_1.location.origin);
|
|
6691
6685
|
return [[(0, dom_1.define)(el, (0, html_1.attributes)('link', [], optspec, params))], rest];
|
|
6692
|
-
})))
|
|
6686
|
+
})));
|
|
6693
6687
|
exports.uri = (0, combinator_1.fmap)((0, combinator_1.union)([(0, combinator_1.open)(/^[^\S\n]+/, (0, source_1.str)(/^\S+/)), (0, source_1.str)(/^[^\s{}]+/)]), ([uri]) => ['\r', uri]);
|
|
6694
6688
|
exports.option = (0, combinator_1.union)([(0, combinator_1.fmap)((0, source_1.str)(/^[^\S\n]+nofollow(?=[^\S\n]|})/), () => [` rel="nofollow"`]), (0, source_1.str)(/^[^\S\n]+[a-z]+(?:-[a-z]+)*(?:="(?:\\[^\n]|[^\\\n"])*")?(?=[^\S\n]|})/), (0, combinator_1.fmap)((0, source_1.str)(/^[^\S\n]+[^\s{}]+/), opt => [` \\${opt.slice(1)}`])]);
|
|
6695
6689
|
|
|
@@ -6808,9 +6802,9 @@ const dom_1 = __webpack_require__(3252);
|
|
|
6808
6802
|
|
|
6809
6803
|
const array_1 = __webpack_require__(8112);
|
|
6810
6804
|
|
|
6811
|
-
exports.mark = (0, combinator_1.lazy)(() => (0, combinator_1.syntax)(0
|
|
6812
|
-
/*
|
|
6813
|
-
, 1,
|
|
6805
|
+
exports.mark = (0, combinator_1.lazy)(() => (0, combinator_1.surround)((0, source_1.str)('=='), (0, combinator_1.syntax)(0
|
|
6806
|
+
/* Syntax.none */
|
|
6807
|
+
, 1, 1, (0, visibility_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, visibility_1.blankWith)('==')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '='), exports.mark)])))), (0, source_1.str)('=='), false, ([, bs], rest) => [[(0, dom_1.html)('mark', (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest]));
|
|
6814
6808
|
|
|
6815
6809
|
/***/ }),
|
|
6816
6810
|
|
|
@@ -6832,7 +6826,7 @@ const source_1 = __webpack_require__(6743);
|
|
|
6832
6826
|
const dom_1 = __webpack_require__(3252);
|
|
6833
6827
|
|
|
6834
6828
|
const forbiddenCommand = /\\(?:begin|tiny|huge|large)(?![a-z])/i;
|
|
6835
|
-
exports.math = (0, combinator_1.lazy)(() => (0, combinator_1.validate)('$', (0, combinator_1.
|
|
6829
|
+
exports.math = (0, combinator_1.lazy)(() => (0, combinator_1.validate)('$', (0, combinator_1.creation)((0, combinator_1.rewrite)((0, combinator_1.union)([(0, combinator_1.surround)('$', (0, combinator_1.precedence)(6, bracket), '$'), (0, combinator_1.surround)(/^\$(?![\s{}])/, (0, combinator_1.precedence)(3, (0, combinator_1.some)((0, combinator_1.union)([bracket, (0, combinator_1.focus)(/^(?:[ ([](?!\$)|\\[\\{}$]?|[!#%&')\x2A-\x5A\]^_\x61-\x7A|~])+/, (0, combinator_1.some)(source_1.unescsource))]))), /^\$(?![0-9A-Za-z])/)]), (source, {
|
|
6836
6830
|
caches: {
|
|
6837
6831
|
math: cache
|
|
6838
6832
|
} = {}
|
|
@@ -6847,7 +6841,7 @@ exports.math = (0, combinator_1.lazy)(() => (0, combinator_1.validate)('$', (0,
|
|
|
6847
6841
|
'data-invalid-type': 'content',
|
|
6848
6842
|
'data-invalid-message': `"${source.match(forbiddenCommand)[0]}" command is forbidden`
|
|
6849
6843
|
}, source)], '']))));
|
|
6850
|
-
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.
|
|
6844
|
+
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.creation)((0, combinator_1.surround)('{', (0, combinator_1.some)((0, combinator_1.union)([bracket, (0, combinator_1.some)(source_1.escsource, /^(?:[{}$]|\\?\n)/)])), '}', true)));
|
|
6851
6845
|
|
|
6852
6846
|
/***/ }),
|
|
6853
6847
|
|
|
@@ -6887,11 +6881,11 @@ const optspec = {
|
|
|
6887
6881
|
rel: global_1.undefined
|
|
6888
6882
|
};
|
|
6889
6883
|
Object.setPrototypeOf(optspec, null);
|
|
6890
|
-
exports.media = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['![', '!{'], (0, combinator_1.
|
|
6891
|
-
/* Rule.media */
|
|
6892
|
-
, 2, 10, (0, combinator_1.bind)((0, combinator_1.verify)((0, combinator_1.fmap)((0, combinator_1.open)('!', (0, combinator_1.guard)(context => ~context.state & 2
|
|
6884
|
+
exports.media = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['![', '!{'], (0, combinator_1.bind)((0, combinator_1.verify)((0, combinator_1.fmap)((0, combinator_1.open)('!', (0, combinator_1.guard)(context => ~context.state & 2
|
|
6893
6885
|
/* State.media */
|
|
6894
|
-
, (0, combinator_1.
|
|
6886
|
+
, (0, combinator_1.syntax)(64
|
|
6887
|
+
/* Syntax.media */
|
|
6888
|
+
, 2, 10, (0, combinator_1.tails)([(0, combinator_1.dup)((0, combinator_1.surround)('[', (0, combinator_1.some)((0, combinator_1.union)([htmlentity_1.unsafehtmlentity, bracket, source_1.txt]), ']', [[/^\\?\n/, 9]]), ']', true)), (0, combinator_1.dup)((0, combinator_1.surround)(/^{(?![{}])/, (0, combinator_1.inits)([link_1.uri, (0, combinator_1.some)(option)]), /^[^\S\n]*}/))])))), ([as, bs]) => bs ? [[as.join('').trim() || as.join('')], (0, array_1.shift)(bs)[1]] : [[''], (0, array_1.shift)(as)[1]]), ([[text]]) => text === '' || text.trim() !== ''), ([[text], params], rest, context) => {
|
|
6895
6889
|
const INSECURE_URI = params.shift();
|
|
6896
6890
|
const url = new url_1.ReadonlyURL((0, link_1.resolve)(INSECURE_URI, context.host ?? global_1.location, context.url ?? context.host ?? global_1.location), context.host?.href || global_1.location.href);
|
|
6897
6891
|
let cache;
|
|
@@ -6915,8 +6909,8 @@ exports.media = (0, combinator_1.lazy)(() => (0, combinator_1.validate)(['![', '
|
|
|
6915
6909
|
return (0, combinator_1.fmap)(link_1.textlink, ([link]) => [(0, dom_1.define)(link, {
|
|
6916
6910
|
target: '_blank'
|
|
6917
6911
|
}, [el])])(`{ ${INSECURE_URI}${params.join('')} }${rest}`, context);
|
|
6918
|
-
})))
|
|
6919
|
-
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.
|
|
6912
|
+
})));
|
|
6913
|
+
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.creation)((0, combinator_1.union)([(0, combinator_1.surround)((0, source_1.str)('('), (0, combinator_1.some)((0, combinator_1.union)([htmlentity_1.unsafehtmlentity, bracket, source_1.txt]), ')'), (0, source_1.str)(')'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), (0, combinator_1.surround)((0, source_1.str)('['), (0, combinator_1.some)((0, combinator_1.union)([htmlentity_1.unsafehtmlentity, bracket, source_1.txt]), ']'), (0, source_1.str)(']'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), (0, combinator_1.surround)((0, source_1.str)('{'), (0, combinator_1.some)((0, combinator_1.union)([htmlentity_1.unsafehtmlentity, bracket, source_1.txt]), '}'), (0, source_1.str)('}'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), (0, combinator_1.surround)((0, source_1.str)('"'), (0, combinator_1.precedence)(8, (0, combinator_1.some)((0, combinator_1.union)([htmlentity_1.unsafehtmlentity, source_1.txt]), '"')), (0, source_1.str)('"'), true)])));
|
|
6920
6914
|
const option = (0, combinator_1.union)([(0, combinator_1.fmap)((0, source_1.str)(/^[^\S\n]+[1-9][0-9]*x[1-9][0-9]*(?=[^\S\n]|})/), ([opt]) => [` width="${opt.slice(1).split('x')[0]}"`, ` height="${opt.slice(1).split('x')[1]}"`]), (0, combinator_1.fmap)((0, source_1.str)(/^[^\S\n]+[1-9][0-9]*:[1-9][0-9]*(?=[^\S\n]|})/), ([opt]) => [` aspect-ratio="${opt.slice(1).split(':').join('/')}"`]), link_1.option]);
|
|
6921
6915
|
|
|
6922
6916
|
function sanitize(target, uri, alt) {
|
|
@@ -6988,11 +6982,11 @@ const util_1 = __webpack_require__(9437);
|
|
|
6988
6982
|
|
|
6989
6983
|
const dom_1 = __webpack_require__(3252);
|
|
6990
6984
|
|
|
6991
|
-
exports.reference = (0, combinator_1.lazy)(() => (0, combinator_1.
|
|
6992
|
-
/* Rule.reference */
|
|
6993
|
-
, 6, (0, combinator_1.surround)('[[', (0, combinator_1.guard)(context => ~context.state & 32
|
|
6985
|
+
exports.reference = (0, combinator_1.lazy)(() => (0, combinator_1.surround)('[[', (0, combinator_1.guard)(context => ~context.state & 32
|
|
6994
6986
|
/* State.reference */
|
|
6995
|
-
, (0, combinator_1.
|
|
6987
|
+
, (0, combinator_1.syntax)(4096
|
|
6988
|
+
/* Syntax.reference */
|
|
6989
|
+
, 6, 1, (0, combinator_1.state)(64
|
|
6996
6990
|
/* State.annotation */
|
|
6997
6991
|
| 32
|
|
6998
6992
|
/* State.reference */
|
|
@@ -7000,8 +6994,8 @@ exports.reference = (0, combinator_1.lazy)(() => (0, combinator_1.validate)('[['
|
|
|
7000
6994
|
/* State.media */
|
|
7001
6995
|
, (0, visibility_1.startLoose)((0, combinator_1.context)({
|
|
7002
6996
|
delimiters: global_1.undefined
|
|
7003
|
-
}, (0, combinator_1.subsequence)([abbr, (0, combinator_1.open)((0, source_1.stropt)(/^(?=\^)/), (0, combinator_1.some)(inline_1.inline, ']', [[/^\\?\n/, 9], [']', 2], [']]', 6]])), (0, combinator_1.some)(inline_1.inline, ']', [[/^\\?\n/, 9], [']', 2], [']]', 6]])])), ']'))), ']]', false, ([, ns], rest) => [[(0, dom_1.html)('sup', attributes(ns), [(0, dom_1.html)('span', (0, visibility_1.trimNode)((0, dom_1.defrag)(ns)))])], rest], ([, ns, rest], next) => next[0] === ']' ? global_1.undefined : (0, link_1.optimize)('[[', ns, rest, next)))
|
|
7004
|
-
const abbr = (0, combinator_1.
|
|
6997
|
+
}, (0, combinator_1.subsequence)([abbr, (0, combinator_1.open)((0, source_1.stropt)(/^(?=\^)/), (0, combinator_1.some)(inline_1.inline, ']', [[/^\\?\n/, 9], [']', 2], [']]', 6]])), (0, combinator_1.some)(inline_1.inline, ']', [[/^\\?\n/, 9], [']', 2], [']]', 6]])])), ']')))), ']]', false, ([, ns], rest) => [[(0, dom_1.html)('sup', attributes(ns), [(0, dom_1.html)('span', (0, visibility_1.trimNode)((0, dom_1.defrag)(ns)))])], rest], ([, ns, rest], next) => next[0] === ']' ? global_1.undefined : (0, link_1.optimize)('[[', ns, rest, next)));
|
|
6998
|
+
const abbr = (0, combinator_1.creation)((0, combinator_1.bind)((0, combinator_1.surround)('^', (0, combinator_1.union)([(0, source_1.str)(/^(?![0-9]+\s?[|\]])[0-9A-Za-z]+(?:(?:-|(?=\W)(?!'\d)'?(?!\.\d)\.?(?!,\S),? ?)[0-9A-Za-z]+)*(?:-|'?\.?,? ?)?/)]), /^\|?(?=]])|^\|[^\S\n]*/), ([source], rest) => [[(0, dom_1.html)('abbr', source)], rest.replace(visibility_1.regBlankStart, '')]));
|
|
7005
6999
|
|
|
7006
7000
|
function attributes(ns) {
|
|
7007
7001
|
return typeof ns[0] === 'object' && ns[0].tagName === 'ABBR' ? {
|
|
@@ -7047,8 +7041,8 @@ const dom_1 = __webpack_require__(3252);
|
|
|
7047
7041
|
const array_1 = __webpack_require__(8112);
|
|
7048
7042
|
|
|
7049
7043
|
exports.ruby = (0, combinator_1.lazy)(() => (0, combinator_1.validate)('[', (0, combinator_1.syntax)(0
|
|
7050
|
-
/*
|
|
7051
|
-
, 2, (0, combinator_1.fmap)((0, combinator_1.verify)((0, combinator_1.sequence)([(0, combinator_1.surround)('[', (0, combinator_1.focus)(/^(?:\\[^\n]|[^\\[\](){}"\n])+(?=]\()/, text), ']'), (0, combinator_1.surround)('(', (0, combinator_1.focus)(/^(?:\\[^\n]|[^\\[\](){}"\n])+(?=\))/, text), ')')]), ([texts]) => (0, visibility_1.isStartTightNodes)(texts)), ([texts, rubies]) => {
|
|
7044
|
+
/* Syntax.none */
|
|
7045
|
+
, 2, 1, (0, combinator_1.fmap)((0, combinator_1.verify)((0, combinator_1.sequence)([(0, combinator_1.surround)('[', (0, combinator_1.focus)(/^(?:\\[^\n]|[^\\[\](){}"\n])+(?=]\()/, text), ']'), (0, combinator_1.surround)('(', (0, combinator_1.focus)(/^(?:\\[^\n]|[^\\[\](){}"\n])+(?=\))/, text), ')')]), ([texts]) => (0, visibility_1.isStartTightNodes)(texts)), ([texts, rubies]) => {
|
|
7052
7046
|
texts[texts.length - 1] === '' && texts.pop();
|
|
7053
7047
|
|
|
7054
7048
|
switch (true) {
|
|
@@ -7062,7 +7056,7 @@ exports.ruby = (0, combinator_1.lazy)(() => (0, combinator_1.validate)('[', (0,
|
|
|
7062
7056
|
return [(0, dom_1.html)('ruby', attributes(texts, rubies), (0, dom_1.defrag)((0, array_1.unshift)([texts.join(' ')], [(0, dom_1.html)('rp', '('), (0, dom_1.html)('rt', rubies.join(' ').trim()), (0, dom_1.html)('rp', ')')])))];
|
|
7063
7057
|
}
|
|
7064
7058
|
}))));
|
|
7065
|
-
const text = (0, combinator_1.
|
|
7059
|
+
const text = (0, combinator_1.creation)((source, context) => {
|
|
7066
7060
|
const acc = [''];
|
|
7067
7061
|
|
|
7068
7062
|
while (source !== '') {
|
|
@@ -7168,9 +7162,9 @@ const dom_1 = __webpack_require__(3252);
|
|
|
7168
7162
|
|
|
7169
7163
|
const array_1 = __webpack_require__(8112);
|
|
7170
7164
|
|
|
7171
|
-
exports.strong = (0, combinator_1.lazy)(() => (0, combinator_1.syntax)(0
|
|
7172
|
-
/*
|
|
7173
|
-
, 1,
|
|
7165
|
+
exports.strong = (0, combinator_1.lazy)(() => (0, combinator_1.surround)((0, source_1.str)('**'), (0, combinator_1.syntax)(0
|
|
7166
|
+
/* Syntax.none */
|
|
7167
|
+
, 1, 1, (0, visibility_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, visibility_1.blankWith)('**')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '*'), (0, combinator_1.union)([emstrong_1.emstrong, exports.strong]))])), '*')), (0, source_1.str)('**'), false, ([, bs], rest) => [[(0, dom_1.html)('strong', (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest]));
|
|
7174
7168
|
|
|
7175
7169
|
/***/ }),
|
|
7176
7170
|
|
|
@@ -7197,12 +7191,12 @@ const dom_1 = __webpack_require__(3252);
|
|
|
7197
7191
|
|
|
7198
7192
|
const array_1 = __webpack_require__(8112);
|
|
7199
7193
|
|
|
7200
|
-
exports.template = (0, combinator_1.lazy)(() => (0, combinator_1.syntax)(0
|
|
7201
|
-
/*
|
|
7202
|
-
, 2,
|
|
7194
|
+
exports.template = (0, combinator_1.lazy)(() => (0, combinator_1.surround)('{{', (0, combinator_1.syntax)(0
|
|
7195
|
+
/* Syntax.none */
|
|
7196
|
+
, 2, 1, (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.escsource]), '}')), '}}', true, ([, ns = []], rest) => [[(0, dom_1.html)('span', {
|
|
7203
7197
|
class: 'template'
|
|
7204
|
-
}, `{{${ns.join('').replace(/\x1B/g, '')}}}`)], rest], ([, ns = [], rest], next) => next[0] === '}' ? global_1.undefined : (0, link_1.optimize)('{{', ns, rest, next)))
|
|
7205
|
-
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.
|
|
7198
|
+
}, `{{${ns.join('').replace(/\x1B/g, '')}}}`)], rest], ([, ns = [], rest], next) => next[0] === '}' ? global_1.undefined : (0, link_1.optimize)('{{', ns, rest, next)));
|
|
7199
|
+
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.creation)((0, combinator_1.union)([(0, combinator_1.surround)((0, source_1.str)('('), (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.escsource]), ')'), (0, source_1.str)(')'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), (0, combinator_1.surround)((0, source_1.str)('['), (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.escsource]), ']'), (0, source_1.str)(']'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), (0, combinator_1.surround)((0, source_1.str)('{'), (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.escsource]), '}'), (0, source_1.str)('}'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), (0, combinator_1.surround)((0, source_1.str)('"'), (0, combinator_1.precedence)(8, (0, combinator_1.some)(source_1.escsource, /^"|^\\?\n/)), (0, source_1.str)('"'), true)])));
|
|
7206
7200
|
|
|
7207
7201
|
/***/ }),
|
|
7208
7202
|
|
|
@@ -7859,7 +7853,7 @@ const combinator_1 = __webpack_require__(2087);
|
|
|
7859
7853
|
const text_1 = __webpack_require__(7763);
|
|
7860
7854
|
|
|
7861
7855
|
const delimiter = /[\s\x00-\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]/;
|
|
7862
|
-
exports.escsource = (0, combinator_1.
|
|
7856
|
+
exports.escsource = (0, combinator_1.creation)(source => {
|
|
7863
7857
|
if (source === '') return;
|
|
7864
7858
|
const i = source.search(delimiter);
|
|
7865
7859
|
|
|
@@ -7925,10 +7919,10 @@ const global_1 = __webpack_require__(4128);
|
|
|
7925
7919
|
const combinator_1 = __webpack_require__(2087);
|
|
7926
7920
|
|
|
7927
7921
|
function str(pattern) {
|
|
7928
|
-
return typeof pattern === 'string' ? (0, combinator_1.
|
|
7922
|
+
return typeof pattern === 'string' ? (0, combinator_1.creation)(source => {
|
|
7929
7923
|
if (source === '') return;
|
|
7930
7924
|
return source.slice(0, pattern.length) === pattern ? [[pattern], source.slice(pattern.length)] : global_1.undefined;
|
|
7931
|
-
}) : (0, combinator_1.
|
|
7925
|
+
}) : (0, combinator_1.creation)(source => {
|
|
7932
7926
|
if (source === '') return;
|
|
7933
7927
|
const m = source.match(pattern);
|
|
7934
7928
|
return m && m[0].length > 0 ? [[m[0]], source.slice(m[0].length)] : global_1.undefined;
|
|
@@ -7938,10 +7932,10 @@ function str(pattern) {
|
|
|
7938
7932
|
exports.str = str;
|
|
7939
7933
|
|
|
7940
7934
|
function stropt(pattern) {
|
|
7941
|
-
return typeof pattern === 'string' ? (0, combinator_1.
|
|
7935
|
+
return typeof pattern === 'string' ? (0, combinator_1.creation)(source => {
|
|
7942
7936
|
if (source === '') return;
|
|
7943
7937
|
return source.slice(0, pattern.length) === pattern ? [[pattern], source.slice(pattern.length)] : global_1.undefined;
|
|
7944
|
-
}) : (0, combinator_1.
|
|
7938
|
+
}) : (0, combinator_1.creation)(source => {
|
|
7945
7939
|
if (source === '') return;
|
|
7946
7940
|
const m = source.match(pattern);
|
|
7947
7941
|
return m ? [[m[0]], source.slice(m[0].length)] : global_1.undefined;
|
|
@@ -7975,7 +7969,7 @@ exports.delimiter = /[\s\x00-\x7F]|\S#|[()、。!?][^\S\n]*(?=\\\n)/;
|
|
|
7975
7969
|
exports.nonWhitespace = /[\S\n]|$/;
|
|
7976
7970
|
exports.nonAlphanumeric = /[^0-9A-Za-z]|\S#|$/;
|
|
7977
7971
|
const repeat = (0, str_1.str)(/^(.)\1*/);
|
|
7978
|
-
exports.text = (0, combinator_1.
|
|
7972
|
+
exports.text = (0, combinator_1.creation)((source, context) => {
|
|
7979
7973
|
if (source === '') return;
|
|
7980
7974
|
const i = source.search(exports.delimiter);
|
|
7981
7975
|
|
|
@@ -8070,7 +8064,7 @@ const combinator_1 = __webpack_require__(2087);
|
|
|
8070
8064
|
|
|
8071
8065
|
const text_1 = __webpack_require__(7763);
|
|
8072
8066
|
|
|
8073
|
-
exports.unescsource = (0, combinator_1.
|
|
8067
|
+
exports.unescsource = (0, combinator_1.creation)(source => {
|
|
8074
8068
|
if (source === '') return;
|
|
8075
8069
|
const i = source.search(text_1.delimiter);
|
|
8076
8070
|
|