@manuscripts/transform 1.5.6 → 1.5.7-LEAN-3030-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/jats/importer/index.js +1 -3
- package/dist/cjs/jats/importer/jats-body-dom-parser.js +23 -227
- package/dist/cjs/jats/importer/jats-body-transformations.js +110 -201
- package/dist/cjs/jats/importer/jats-comments.js +100 -98
- package/dist/cjs/jats/importer/jats-front-parser.js +87 -81
- package/dist/cjs/jats/importer/jats-journal-meta-parser.js +51 -39
- package/dist/cjs/jats/importer/jats-parser-utils.js +17 -56
- package/dist/cjs/jats/importer/jats-reference-parser.js +24 -79
- package/dist/cjs/jats/importer/jats-references.js +34 -0
- package/dist/cjs/jats/importer/parse-jats-article.js +67 -173
- package/dist/cjs/jats/index.js +1 -3
- package/dist/cjs/jats/jats-exporter.js +32 -52
- package/dist/cjs/lib/section-group-type.js +30 -0
- package/dist/cjs/lib/utils.js +10 -1
- package/dist/cjs/schema/index.js +15 -11
- package/dist/cjs/schema/nodes/{affiliations_section.js → affiliations.js} +9 -8
- package/dist/cjs/schema/nodes/citation.js +10 -15
- package/dist/cjs/schema/nodes/{contributors_section.js → contributors.js} +8 -7
- package/dist/cjs/schema/nodes/core_section.js +27 -0
- package/dist/cjs/schema/nodes/cross_reference.js +4 -3
- package/dist/cjs/schema/nodes/graphical_abstract_section.js +1 -0
- package/dist/cjs/schema/nodes/inline_footnote.js +6 -5
- package/dist/cjs/schema/nodes/keyword.js +0 -1
- package/dist/cjs/schema/nodes/{keywords_group.js → keyword_group.js} +6 -6
- package/dist/cjs/schema/nodes/{keywords_section.js → keywords.js} +7 -7
- package/dist/cjs/schema/nodes/keywords_element.js +1 -1
- package/dist/cjs/schema/nodes/manuscript.js +1 -1
- package/dist/cjs/transformer/builders.js +9 -86
- package/dist/cjs/transformer/decode.js +110 -113
- package/dist/cjs/transformer/encode.js +46 -29
- package/dist/cjs/transformer/highlight-markers.js +4 -4
- package/dist/cjs/transformer/html.js +4 -19
- package/dist/cjs/transformer/node-names.js +1 -1
- package/dist/cjs/transformer/node-title.js +1 -1
- package/dist/cjs/transformer/node-types.js +7 -5
- package/dist/cjs/transformer/object-types.js +1 -2
- package/dist/cjs/transformer/section-category.js +35 -17
- package/dist/es/index.js +1 -1
- package/dist/es/jats/importer/index.js +1 -1
- package/dist/es/jats/importer/jats-body-dom-parser.js +23 -227
- package/dist/es/jats/importer/jats-body-transformations.js +111 -202
- package/dist/es/jats/importer/jats-comments.js +97 -96
- package/dist/es/jats/importer/jats-front-parser.js +88 -82
- package/dist/es/jats/importer/jats-journal-meta-parser.js +51 -39
- package/dist/es/jats/importer/jats-parser-utils.js +16 -54
- package/dist/es/jats/importer/jats-reference-parser.js +27 -82
- package/dist/es/jats/importer/jats-references.js +30 -0
- package/dist/es/jats/importer/parse-jats-article.js +70 -174
- package/dist/es/jats/index.js +1 -1
- package/dist/es/jats/jats-exporter.js +32 -52
- package/dist/es/lib/section-group-type.js +27 -0
- package/dist/es/lib/utils.js +8 -0
- package/dist/es/schema/index.js +15 -11
- package/dist/es/schema/nodes/{affiliations_section.js → affiliations.js} +7 -6
- package/dist/es/schema/nodes/citation.js +10 -15
- package/dist/es/schema/nodes/{contributors_section.js → contributors.js} +6 -5
- package/dist/es/schema/nodes/core_section.js +24 -0
- package/dist/es/schema/nodes/cross_reference.js +4 -3
- package/dist/es/schema/nodes/graphical_abstract_section.js +1 -0
- package/dist/es/schema/nodes/inline_footnote.js +6 -5
- package/dist/es/schema/nodes/keyword.js +0 -1
- package/dist/es/schema/nodes/{keywords_group.js → keyword_group.js} +4 -4
- package/dist/es/schema/nodes/{keywords_section.js → keywords.js} +5 -5
- package/dist/es/schema/nodes/keywords_element.js +1 -1
- package/dist/es/schema/nodes/manuscript.js +1 -1
- package/dist/es/transformer/builders.js +6 -73
- package/dist/es/transformer/decode.js +111 -114
- package/dist/es/transformer/encode.js +47 -30
- package/dist/es/transformer/highlight-markers.js +1 -1
- package/dist/es/transformer/html.js +4 -19
- package/dist/es/transformer/node-names.js +1 -1
- package/dist/es/transformer/node-title.js +1 -1
- package/dist/es/transformer/node-types.js +7 -5
- package/dist/es/transformer/object-types.js +0 -1
- package/dist/es/transformer/section-category.js +33 -15
- package/dist/types/index.d.ts +1 -1
- package/dist/types/jats/importer/index.d.ts +1 -1
- package/dist/types/jats/importer/jats-body-transformations.d.ts +16 -19
- package/dist/types/jats/importer/jats-comments.d.ts +13 -9
- package/dist/types/jats/importer/jats-front-parser.d.ts +35 -12
- package/dist/types/jats/importer/jats-journal-meta-parser.d.ts +4 -4
- package/dist/types/jats/importer/jats-parser-utils.d.ts +1 -6
- package/dist/types/jats/importer/jats-reference-parser.d.ts +2 -6
- package/dist/types/jats/importer/jats-references.d.ts +12 -0
- package/dist/types/jats/importer/parse-jats-article.d.ts +5 -17
- package/dist/types/jats/index.d.ts +1 -1
- package/dist/types/lib/section-group-type.d.ts +31 -0
- package/dist/types/lib/utils.d.ts +2 -1
- package/dist/types/schema/index.d.ts +3 -3
- package/dist/types/schema/nodes/affiliations.d.ts +11 -0
- package/dist/types/schema/nodes/citation.d.ts +3 -5
- package/dist/types/schema/nodes/contributors.d.ts +12 -0
- package/dist/types/schema/nodes/core_section.d.ts +17 -0
- package/dist/types/schema/nodes/cross_reference.d.ts +1 -1
- package/dist/types/schema/nodes/inline_footnote.d.ts +1 -1
- package/dist/types/schema/nodes/keyword.d.ts +0 -1
- package/dist/types/schema/nodes/{keywords_group.d.ts → keyword_group.d.ts} +3 -3
- package/dist/types/schema/nodes/{keywords_section.d.ts → keywords.d.ts} +3 -3
- package/dist/types/schema/types.d.ts +1 -1
- package/dist/types/transformer/builders.d.ts +2 -14
- package/dist/types/transformer/decode.d.ts +6 -6
- package/dist/types/transformer/highlight-markers.d.ts +1 -0
- package/dist/types/transformer/object-types.d.ts +1 -2
- package/dist/types/transformer/section-category.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/lib/core-section-categories.js +0 -29
- package/dist/es/lib/core-section-categories.js +0 -26
- package/dist/types/lib/core-section-categories.d.ts +0 -8
- package/dist/types/schema/nodes/affiliations_section.d.ts +0 -11
- package/dist/types/schema/nodes/contributors_section.d.ts +0 -12
package/dist/cjs/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.isSectionLabelNode = void 0;
|
|
18
|
-
__exportStar(require("./lib/
|
|
18
|
+
__exportStar(require("./lib/section-group-type"), exports);
|
|
19
19
|
__exportStar(require("./lib/table-cell-styles"), exports);
|
|
20
20
|
__exportStar(require("./lib/utils"), exports);
|
|
21
21
|
__exportStar(require("./mathjax"), exports);
|
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.parseJATSArticle = exports.parseJATSBody = exports.parseJATSFront = void 0;
|
|
19
19
|
var parse_jats_article_1 = require("./parse-jats-article");
|
|
20
20
|
Object.defineProperty(exports, "parseJATSFront", { enumerable: true, get: function () { return parse_jats_article_1.parseJATSFront; } });
|
|
21
21
|
Object.defineProperty(exports, "parseJATSBody", { enumerable: true, get: function () { return parse_jats_article_1.parseJATSBody; } });
|
|
22
|
-
Object.defineProperty(exports, "parseJATSReferences", { enumerable: true, get: function () { return parse_jats_article_1.parseJATSReferences; } });
|
|
23
22
|
Object.defineProperty(exports, "parseJATSArticle", { enumerable: true, get: function () { return parse_jats_article_1.parseJATSArticle; } });
|
|
24
|
-
Object.defineProperty(exports, "getElementsOrder", { enumerable: true, get: function () { return parse_jats_article_1.getElementsOrder; } });
|
|
@@ -338,75 +338,6 @@ const nodes = [
|
|
|
338
338
|
};
|
|
339
339
|
},
|
|
340
340
|
},
|
|
341
|
-
{
|
|
342
|
-
tag: 'ref',
|
|
343
|
-
node: 'bibliography_item',
|
|
344
|
-
context: 'bibliography_element/',
|
|
345
|
-
getAttrs: (node) => {
|
|
346
|
-
const element = node;
|
|
347
|
-
const ref = {
|
|
348
|
-
id: element.getAttribute('id'),
|
|
349
|
-
type: element.getAttribute('type'),
|
|
350
|
-
};
|
|
351
|
-
const author = element.getAttribute('author');
|
|
352
|
-
if (author) {
|
|
353
|
-
ref.author = author;
|
|
354
|
-
}
|
|
355
|
-
const issued = element.getAttribute('issued');
|
|
356
|
-
if (issued) {
|
|
357
|
-
ref.issued = issued;
|
|
358
|
-
}
|
|
359
|
-
const containerTitle = element.getAttribute('container-title');
|
|
360
|
-
if (containerTitle) {
|
|
361
|
-
ref.containerTitle = containerTitle;
|
|
362
|
-
}
|
|
363
|
-
const doi = element.getAttribute('doi');
|
|
364
|
-
if (doi) {
|
|
365
|
-
ref.doi = doi;
|
|
366
|
-
}
|
|
367
|
-
const volume = element.getAttribute('volume');
|
|
368
|
-
if (volume) {
|
|
369
|
-
ref.volume = volume;
|
|
370
|
-
}
|
|
371
|
-
const issue = element.getAttribute('issue');
|
|
372
|
-
if (issue) {
|
|
373
|
-
ref.issue = issue;
|
|
374
|
-
}
|
|
375
|
-
const supplement = element.getAttribute('supplement');
|
|
376
|
-
if (supplement) {
|
|
377
|
-
ref.supplement = supplement;
|
|
378
|
-
}
|
|
379
|
-
const page = element.getAttribute('page');
|
|
380
|
-
if (page) {
|
|
381
|
-
ref.page = page;
|
|
382
|
-
}
|
|
383
|
-
const title = element.getAttribute('title');
|
|
384
|
-
if (title) {
|
|
385
|
-
ref.title = title;
|
|
386
|
-
}
|
|
387
|
-
const literal = element.getAttribute('literal');
|
|
388
|
-
if (literal) {
|
|
389
|
-
ref.literal = literal;
|
|
390
|
-
}
|
|
391
|
-
return ref;
|
|
392
|
-
},
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
tag: 'ref-list',
|
|
396
|
-
node: 'bibliography_element',
|
|
397
|
-
context: 'bibliography_section/',
|
|
398
|
-
getAttrs: (node) => {
|
|
399
|
-
const element = node;
|
|
400
|
-
const titleNode = element.querySelector('title');
|
|
401
|
-
if (titleNode) {
|
|
402
|
-
element.removeChild(titleNode);
|
|
403
|
-
}
|
|
404
|
-
return {
|
|
405
|
-
id: element.getAttribute('id'),
|
|
406
|
-
contents: '',
|
|
407
|
-
};
|
|
408
|
-
},
|
|
409
|
-
},
|
|
410
341
|
{
|
|
411
342
|
tag: 'fn-group',
|
|
412
343
|
node: 'footnotes_element',
|
|
@@ -496,144 +427,24 @@ const nodes = [
|
|
|
496
427
|
},
|
|
497
428
|
},
|
|
498
429
|
{
|
|
499
|
-
tag: 'sec[sec-type="
|
|
500
|
-
node: '
|
|
501
|
-
getAttrs: (node) => {
|
|
502
|
-
const element = node;
|
|
503
|
-
return {
|
|
504
|
-
id: element.getAttribute('id'),
|
|
505
|
-
};
|
|
506
|
-
},
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
tag: 'sec[sec-type="affiliations"]',
|
|
510
|
-
node: 'affiliations_section',
|
|
511
|
-
getAttrs: (node) => {
|
|
512
|
-
const element = node;
|
|
513
|
-
return {
|
|
514
|
-
id: element.getAttribute('id'),
|
|
515
|
-
category: 'MPSectionCategory:affiliations',
|
|
516
|
-
};
|
|
517
|
-
},
|
|
430
|
+
tag: 'sec[sec-type="keywords"]',
|
|
431
|
+
node: 'keywords',
|
|
518
432
|
},
|
|
519
433
|
{
|
|
520
|
-
tag: '
|
|
521
|
-
node: '
|
|
522
|
-
context: 'affiliations_section/',
|
|
523
|
-
getAttrs: (node) => {
|
|
524
|
-
const element = node;
|
|
525
|
-
const aff = {
|
|
526
|
-
id: element.getAttribute('id'),
|
|
527
|
-
};
|
|
528
|
-
const institution = element.getAttribute('institution');
|
|
529
|
-
if (institution) {
|
|
530
|
-
aff.institution = institution;
|
|
531
|
-
}
|
|
532
|
-
const email = element.getAttribute('email');
|
|
533
|
-
if (email) {
|
|
534
|
-
aff.bibliographicName = JSON.parse(email);
|
|
535
|
-
}
|
|
536
|
-
const department = element.getAttribute('department');
|
|
537
|
-
if (department) {
|
|
538
|
-
aff.department = department;
|
|
539
|
-
}
|
|
540
|
-
const addressLine1 = element.getAttribute('addressLine1');
|
|
541
|
-
if (addressLine1) {
|
|
542
|
-
aff.addressLine1 = addressLine1;
|
|
543
|
-
}
|
|
544
|
-
const addressLine2 = element.getAttribute('addressLine2');
|
|
545
|
-
if (addressLine2) {
|
|
546
|
-
aff.addressLine2 = addressLine2;
|
|
547
|
-
}
|
|
548
|
-
const addressLine3 = element.getAttribute('addressLine3');
|
|
549
|
-
if (addressLine3) {
|
|
550
|
-
aff.addressLine3 = addressLine3;
|
|
551
|
-
}
|
|
552
|
-
const postCode = element.getAttribute('postCode');
|
|
553
|
-
if (postCode) {
|
|
554
|
-
aff.postCode = postCode;
|
|
555
|
-
}
|
|
556
|
-
const country = element.getAttribute('country');
|
|
557
|
-
if (country) {
|
|
558
|
-
aff.country = country;
|
|
559
|
-
}
|
|
560
|
-
const priority = element.getAttribute('priority');
|
|
561
|
-
if (priority) {
|
|
562
|
-
aff.priority = parseInt(priority);
|
|
563
|
-
}
|
|
564
|
-
return aff;
|
|
565
|
-
},
|
|
434
|
+
tag: 'sec[sec-type="abstracts"]',
|
|
435
|
+
node: 'abstracts',
|
|
566
436
|
},
|
|
567
437
|
{
|
|
568
|
-
tag: 'sec[sec-type="
|
|
569
|
-
node: '
|
|
570
|
-
getAttrs: (node) => {
|
|
571
|
-
const element = node;
|
|
572
|
-
return {
|
|
573
|
-
id: element.getAttribute('id'),
|
|
574
|
-
category: 'MPSectionCategory:contributors',
|
|
575
|
-
};
|
|
576
|
-
},
|
|
438
|
+
tag: 'sec[sec-type="body"]',
|
|
439
|
+
node: 'body',
|
|
577
440
|
},
|
|
578
441
|
{
|
|
579
|
-
tag: '
|
|
580
|
-
node: '
|
|
581
|
-
context: 'contributors_section/',
|
|
582
|
-
getAttrs: (node) => {
|
|
583
|
-
const element = node;
|
|
584
|
-
const contrib = {
|
|
585
|
-
id: element.getAttribute('id'),
|
|
586
|
-
};
|
|
587
|
-
const role = element.getAttribute('role');
|
|
588
|
-
if (role) {
|
|
589
|
-
contrib.role = role;
|
|
590
|
-
}
|
|
591
|
-
const affiliations = element.getAttribute('affiliations');
|
|
592
|
-
if (affiliations) {
|
|
593
|
-
contrib.affiliations = JSON.parse(affiliations);
|
|
594
|
-
}
|
|
595
|
-
const footnote = element.getAttribute('footnote');
|
|
596
|
-
if (footnote) {
|
|
597
|
-
contrib.footnote = JSON.parse(footnote);
|
|
598
|
-
}
|
|
599
|
-
const corresp = element.getAttribute('corresp');
|
|
600
|
-
if (corresp) {
|
|
601
|
-
contrib.corresp = JSON.parse(corresp);
|
|
602
|
-
}
|
|
603
|
-
const bibliographicName = element.getAttribute('bibliographicName');
|
|
604
|
-
if (bibliographicName) {
|
|
605
|
-
contrib.bibliographicName = JSON.parse(bibliographicName);
|
|
606
|
-
}
|
|
607
|
-
const userID = element.getAttribute('userID');
|
|
608
|
-
if (userID) {
|
|
609
|
-
contrib.userID = userID;
|
|
610
|
-
}
|
|
611
|
-
const priority = element.getAttribute('priority');
|
|
612
|
-
if (priority) {
|
|
613
|
-
contrib.priority = parseInt(priority);
|
|
614
|
-
}
|
|
615
|
-
const invitationID = element.getAttribute('invitationID');
|
|
616
|
-
if (invitationID) {
|
|
617
|
-
contrib.invitationID = invitationID;
|
|
618
|
-
}
|
|
619
|
-
const objectType = element.getAttribute('objectType');
|
|
620
|
-
if (objectType) {
|
|
621
|
-
contrib.objectType = objectType;
|
|
622
|
-
}
|
|
623
|
-
const isCorresponding = element.getAttribute('isCorresponding');
|
|
624
|
-
if (isCorresponding) {
|
|
625
|
-
contrib.isCorresponding = JSON.parse(isCorresponding);
|
|
626
|
-
}
|
|
627
|
-
const ORCIDIdentifier = element.getAttribute('ORCIDIdentifier');
|
|
628
|
-
if (ORCIDIdentifier) {
|
|
629
|
-
contrib.ORCIDIdentifier = ORCIDIdentifier;
|
|
630
|
-
}
|
|
631
|
-
return contrib;
|
|
632
|
-
},
|
|
442
|
+
tag: 'sec[sec-type="backmatter"]',
|
|
443
|
+
node: 'backmatter',
|
|
633
444
|
},
|
|
634
445
|
{
|
|
635
|
-
tag: 'sec
|
|
636
|
-
node: '
|
|
446
|
+
tag: 'sec',
|
|
447
|
+
node: 'section',
|
|
637
448
|
getAttrs: (node) => {
|
|
638
449
|
const element = node;
|
|
639
450
|
return {
|
|
@@ -644,24 +455,13 @@ const nodes = [
|
|
|
644
455
|
},
|
|
645
456
|
{
|
|
646
457
|
tag: 'kwd-group-list',
|
|
647
|
-
context: '
|
|
458
|
+
context: 'keywords/',
|
|
648
459
|
node: 'keywords_element',
|
|
649
460
|
},
|
|
650
|
-
{
|
|
651
|
-
tag: 'sec',
|
|
652
|
-
node: 'section',
|
|
653
|
-
getAttrs: (node) => {
|
|
654
|
-
const element = node;
|
|
655
|
-
return {
|
|
656
|
-
id: element.getAttribute('id'),
|
|
657
|
-
category: (0, transformer_1.chooseSectionCategory)(element),
|
|
658
|
-
};
|
|
659
|
-
},
|
|
660
|
-
},
|
|
661
461
|
{
|
|
662
462
|
tag: 'kwd-group',
|
|
663
463
|
context: 'keywords_element/',
|
|
664
|
-
node: '
|
|
464
|
+
node: 'keyword_group',
|
|
665
465
|
getAttrs: (node) => {
|
|
666
466
|
const element = node;
|
|
667
467
|
return {
|
|
@@ -671,7 +471,7 @@ const nodes = [
|
|
|
671
471
|
},
|
|
672
472
|
{
|
|
673
473
|
tag: 'kwd',
|
|
674
|
-
context: '
|
|
474
|
+
context: 'keyword_group//',
|
|
675
475
|
node: 'keyword',
|
|
676
476
|
},
|
|
677
477
|
{
|
|
@@ -726,7 +526,7 @@ const nodes = [
|
|
|
726
526
|
{
|
|
727
527
|
tag: 'title',
|
|
728
528
|
node: 'section_title',
|
|
729
|
-
context: 'section/|footnotes_section/|bibliography_section/|
|
|
529
|
+
context: 'section/|footnotes_section/|bibliography_section/|keywords/',
|
|
730
530
|
},
|
|
731
531
|
{
|
|
732
532
|
tag: 'title',
|
|
@@ -775,15 +575,11 @@ const nodes = [
|
|
|
775
575
|
tag: 'xref[ref-type="bibr"]',
|
|
776
576
|
node: 'citation',
|
|
777
577
|
getAttrs: (node) => {
|
|
778
|
-
var _a;
|
|
578
|
+
var _a, _b;
|
|
779
579
|
const element = node;
|
|
780
|
-
const embeddedCitationAttr = element.getAttribute('data-reference-embedded-citation');
|
|
781
580
|
return {
|
|
782
|
-
|
|
783
|
-
contents: (
|
|
784
|
-
embeddedCitationItems: embeddedCitationAttr
|
|
785
|
-
? JSON.parse(embeddedCitationAttr)
|
|
786
|
-
: null,
|
|
581
|
+
rids: ((_a = element.getAttribute('rid')) === null || _a === void 0 ? void 0 : _a.split(/\s+/)) || [],
|
|
582
|
+
contents: (_b = element.textContent) === null || _b === void 0 ? void 0 : _b.trim(),
|
|
787
583
|
};
|
|
788
584
|
},
|
|
789
585
|
},
|
|
@@ -791,11 +587,11 @@ const nodes = [
|
|
|
791
587
|
tag: 'xref[ref-type="fn"]',
|
|
792
588
|
node: 'inline_footnote',
|
|
793
589
|
getAttrs: (node) => {
|
|
794
|
-
var _a;
|
|
590
|
+
var _a, _b;
|
|
795
591
|
const element = node;
|
|
796
592
|
return {
|
|
797
|
-
|
|
798
|
-
contents: (
|
|
593
|
+
rids: ((_a = element.getAttribute('rid')) === null || _a === void 0 ? void 0 : _a.split(/\s+/)) || [],
|
|
594
|
+
contents: (_b = element.textContent) === null || _b === void 0 ? void 0 : _b.trim(),
|
|
799
595
|
};
|
|
800
596
|
},
|
|
801
597
|
},
|
|
@@ -803,11 +599,11 @@ const nodes = [
|
|
|
803
599
|
tag: 'xref',
|
|
804
600
|
node: 'cross_reference',
|
|
805
601
|
getAttrs: (node) => {
|
|
806
|
-
var _a;
|
|
602
|
+
var _a, _b;
|
|
807
603
|
const element = node;
|
|
808
604
|
return {
|
|
809
|
-
|
|
810
|
-
label: (
|
|
605
|
+
rids: ((_a = element.getAttribute('rid')) === null || _a === void 0 ? void 0 : _a.split(/\s+/)) || [],
|
|
606
|
+
label: (_b = element.textContent) === null || _b === void 0 ? void 0 : _b.trim(),
|
|
811
607
|
};
|
|
812
608
|
},
|
|
813
609
|
},
|