@dpuse/dpuse-tool-rust-csv-core-parser 1.0.106 → 1.0.115

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.
@@ -1,4 +1,4 @@
1
- //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
1
+ // node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
2
2
  function e(e) {
3
3
  return new Map(Object.entries(e));
4
4
  }
@@ -300,7 +300,7 @@ var T = {
300
300
  status: /* @__PURE__ */ d(C),
301
301
  statusId: /* @__PURE__ */ d(S)
302
302
  };
303
- ({ ...T }), e({ en: "Data Positioning Events" }), e({ en: "Delimited Text" }), e({ en: "JSON" }), e({ en: "SPSS" }), e({ en: "XLSX" }), e({ en: "XML" }), e({ en: "Newline" }), e({ en: "Carriage Return" }), e({ en: "Carriage Return/Newline" }), e({ en: "Colon" }), e({ en: "Comma" }), e({ en: "Exclamation Mark" }), e({ en: "Record Separator" }), e({ en: "Semicolon" }), e({ en: "Space" }), e({ en: "Tab" }), e({ en: "Underscore" }), e({ en: "Unit Separator" }), e({ en: "Vertical Bar" }), y([
303
+ ({ ...T }), e({ en: "Arrow" }), e({ en: "Avro" }), e({ en: "Delimited text (CSV, TSV…)" }), e({ en: "JSON" }), e({ en: "JSON Lines (JSONL)" }), e({ en: "Markdown (MD)" }), e({ en: "OpenDocument spreadsheet (ODS)" }), e({ en: "Parquet" }), e({ en: "SPSS (SAV)" }), e({ en: "SQLite" }), e({ en: "Excel (XLSX, XLSM)" }), e({ en: "XML" }), e({ en: "Newline" }), e({ en: "Carriage Return" }), e({ en: "Carriage Return/Newline" }), e({ en: "Colon" }), e({ en: "Comma" }), e({ en: "Exclamation Mark" }), e({ en: "Record Separator" }), e({ en: "Semicolon" }), e({ en: "Space" }), e({ en: "Tab" }), e({ en: "Underscore" }), e({ en: "Unit Separator" }), e({ en: "Vertical Bar" }), y([
304
304
  "app",
305
305
  "engine",
306
306
  "connector",
@@ -318,6 +318,7 @@ var E = {
318
318
  ({ ...E }), y([
319
319
  "abortOperation",
320
320
  "auditObjectContent",
321
+ "closeStore",
321
322
  "createObject",
322
323
  "describeConnection",
323
324
  "dropObject",
@@ -326,7 +327,10 @@ var E = {
326
327
  "getReadableStream",
327
328
  "getRecord",
328
329
  "listNodes",
330
+ "loadObjectRecords",
331
+ "openStore",
329
332
  "previewObject",
333
+ "queryRecords",
330
334
  "removeRecords",
331
335
  "retrieveChunks",
332
336
  "retrieveRecords",
@@ -336,6 +340,10 @@ var E = {
336
340
  "curatedDataset",
337
341
  "database",
338
342
  "fileStore"
343
+ ]), y([
344
+ "apiEndpoint",
345
+ "file",
346
+ "table"
339
347
  ]), y([
340
348
  "bidirectional",
341
349
  "destination",
@@ -346,10 +354,6 @@ var E = {
346
354
  "disabled",
347
355
  "oAuth2",
348
356
  "none"
349
- ]), { ...E }, y(["list"]), { ...E }, y([
350
- "list",
351
- "render",
352
- "setColorMode"
353
357
  ]), { ...E };
354
358
  var D = class extends Error {
355
359
  data;
@@ -361,14 +365,582 @@ var D = class extends Error {
361
365
  constructor(e, t, n, r) {
362
366
  super(e, t, n, r), this.name = "ConnectorError";
363
367
  }
364
- }, k = {
368
+ };
369
+ function k(e) {
370
+ try {
371
+ e();
372
+ } catch {}
373
+ }
374
+ y([
375
+ "arrow",
376
+ "avro",
377
+ "dtv",
378
+ "json",
379
+ "jsonl",
380
+ "markdown",
381
+ "ods",
382
+ "parquet",
383
+ "sav",
384
+ "sqlite",
385
+ "xlsx",
386
+ "xml"
387
+ ]), { ...E };
388
+ async function A(e, t, n) {
389
+ let r = j(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await M(e, t.valueDelimiterIds, t.isComplete, n);
390
+ return {
391
+ issues: i,
392
+ parsedRecords: a,
393
+ recordDelimiterId: r,
394
+ valueDelimiterId: o
395
+ };
396
+ }
397
+ function j(e) {
398
+ let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
399
+ return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
400
+ }
401
+ async function M(e, t, n, r) {
402
+ let i, a, o, s = [], c, l = !1;
403
+ for (let u of t) {
404
+ let { issues: t, records: d } = await r(e, u, n);
405
+ if (t.length > 0) {
406
+ c = N(c, {
407
+ delimiter: u,
408
+ issues: t,
409
+ records: d
410
+ });
411
+ continue;
412
+ }
413
+ if (l = !0, d.length === 0) continue;
414
+ let { averageValueCount: f, sumOfValueCountDiffs: p } = P(d);
415
+ (!o || p <= o) && (!a || f > a) && (i = u, a = f, o = p, s = d);
416
+ }
417
+ if (!l && c != null) {
418
+ let { delimiter: e, issues: t, records: n } = c;
419
+ return {
420
+ issues: t,
421
+ parsedRecords: n,
422
+ valueDelimiterId: F(n) ? e : void 0
423
+ };
424
+ }
425
+ return {
426
+ issues: [],
427
+ parsedRecords: s,
428
+ valueDelimiterId: i != null && F(s) ? i : void 0
429
+ };
430
+ }
431
+ function N(e, t) {
432
+ return e == null || t.issues.length < e.issues.length ? t : e;
433
+ }
434
+ function P(e) {
435
+ let t = 0, n = 0, r;
436
+ for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
437
+ return {
438
+ averageValueCount: t / e.length,
439
+ sumOfValueCountDiffs: n
440
+ };
441
+ }
442
+ function F(e) {
443
+ let t = /* @__PURE__ */ new Map();
444
+ for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
445
+ let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
446
+ return n > 1 && r * 2 > e.length;
447
+ }
448
+ y(["list"]), { ...E }, y([
449
+ "list",
450
+ "render",
451
+ "setColorMode"
452
+ ]), { ...E };
453
+ var I = {
454
+ ascii: {
455
+ id: "ascii",
456
+ groupId: null,
457
+ decoderId: "windows-1252"
458
+ },
459
+ big5: {
460
+ id: "big5",
461
+ groupId: "chineseTraditional",
462
+ decoderId: "big5"
463
+ },
464
+ cp273: {
465
+ id: "cp273",
466
+ groupId: "western",
467
+ decoderId: null
468
+ },
469
+ cp424: {
470
+ id: "cp424",
471
+ groupId: "hebrew",
472
+ decoderId: null
473
+ },
474
+ cp437: {
475
+ id: "cp437",
476
+ groupId: "western",
477
+ decoderId: null
478
+ },
479
+ cp500: {
480
+ id: "cp500",
481
+ groupId: "western",
482
+ decoderId: null
483
+ },
484
+ cp720: {
485
+ id: "cp720",
486
+ groupId: "arabic",
487
+ decoderId: null
488
+ },
489
+ cp737: {
490
+ id: "cp737",
491
+ groupId: "greek",
492
+ decoderId: null
493
+ },
494
+ cp775: {
495
+ id: "cp775",
496
+ groupId: "baltic",
497
+ decoderId: null
498
+ },
499
+ cp850: {
500
+ id: "cp850",
501
+ groupId: "western",
502
+ decoderId: null
503
+ },
504
+ cp852: {
505
+ id: "cp852",
506
+ groupId: "centralEuropean",
507
+ decoderId: null
508
+ },
509
+ cp856: {
510
+ id: "cp856",
511
+ groupId: "hebrew",
512
+ decoderId: null
513
+ },
514
+ cp857: {
515
+ id: "cp857",
516
+ groupId: "turkish",
517
+ decoderId: null
518
+ },
519
+ cp858: {
520
+ id: "cp858",
521
+ groupId: "western",
522
+ decoderId: null
523
+ },
524
+ cp860: {
525
+ id: "cp860",
526
+ groupId: "western",
527
+ decoderId: null
528
+ },
529
+ cp861: {
530
+ id: "cp861",
531
+ groupId: "nordic",
532
+ decoderId: null
533
+ },
534
+ cp862: {
535
+ id: "cp862",
536
+ groupId: "hebrew",
537
+ decoderId: null
538
+ },
539
+ cp863: {
540
+ id: "cp863",
541
+ groupId: "western",
542
+ decoderId: null
543
+ },
544
+ cp864: {
545
+ id: "cp864",
546
+ groupId: "arabic",
547
+ decoderId: null
548
+ },
549
+ cp865: {
550
+ id: "cp865",
551
+ groupId: "nordic",
552
+ decoderId: null
553
+ },
554
+ cp869: {
555
+ id: "cp869",
556
+ groupId: "greek",
557
+ decoderId: null
558
+ },
559
+ cp874: {
560
+ id: "cp874",
561
+ groupId: "thai",
562
+ decoderId: "windows-874"
563
+ },
564
+ cp875: {
565
+ id: "cp875",
566
+ groupId: "greek",
567
+ decoderId: null
568
+ },
569
+ cp932: {
570
+ id: "cp932",
571
+ groupId: "japanese",
572
+ decoderId: "shift_jis"
573
+ },
574
+ cp949: {
575
+ id: "cp949",
576
+ groupId: "korean",
577
+ decoderId: "euc-kr"
578
+ },
579
+ cp1006: {
580
+ id: "cp1006",
581
+ groupId: "arabic",
582
+ decoderId: null
583
+ },
584
+ cp1026: {
585
+ id: "cp1026",
586
+ groupId: "turkish",
587
+ decoderId: null
588
+ },
589
+ cp1125: {
590
+ id: "cp1125",
591
+ groupId: "cyrillic",
592
+ decoderId: null
593
+ },
594
+ cp1140: {
595
+ id: "cp1140",
596
+ groupId: "western",
597
+ decoderId: null
598
+ },
599
+ cp1258: {
600
+ id: "cp1258",
601
+ groupId: "vietnamese",
602
+ decoderId: "windows-1258"
603
+ },
604
+ "euc-jp": {
605
+ id: "euc-jp",
606
+ groupId: "japanese",
607
+ decoderId: "euc-jp"
608
+ },
609
+ "euc-kr": {
610
+ id: "euc-kr",
611
+ groupId: "korean",
612
+ decoderId: "euc-kr"
613
+ },
614
+ gb18030: {
615
+ id: "gb18030",
616
+ groupId: "chineseSimplified",
617
+ decoderId: "gb18030"
618
+ },
619
+ "hp-roman8": {
620
+ id: "hp-roman8",
621
+ groupId: "western",
622
+ decoderId: null
623
+ },
624
+ "hz-gb-2312": {
625
+ id: "hz-gb-2312",
626
+ groupId: "chineseSimplified",
627
+ decoderId: null
628
+ },
629
+ ibm855: {
630
+ id: "ibm855",
631
+ groupId: "cyrillic",
632
+ decoderId: null
633
+ },
634
+ ibm866: {
635
+ id: "ibm866",
636
+ groupId: "cyrillic",
637
+ decoderId: "ibm866"
638
+ },
639
+ "iso-2022-jp": {
640
+ id: "iso-2022-jp",
641
+ groupId: "japanese",
642
+ decoderId: "iso-2022-jp"
643
+ },
644
+ "iso-2022-kr": {
645
+ id: "iso-2022-kr",
646
+ groupId: "korean",
647
+ decoderId: null
648
+ },
649
+ "iso-8859-1": {
650
+ id: "iso-8859-1",
651
+ groupId: "western",
652
+ decoderId: "windows-1252"
653
+ },
654
+ "iso-8859-2": {
655
+ id: "iso-8859-2",
656
+ groupId: "centralEuropean",
657
+ decoderId: "iso-8859-2"
658
+ },
659
+ "iso-8859-5": {
660
+ id: "iso-8859-5",
661
+ groupId: "cyrillic",
662
+ decoderId: "iso-8859-5"
663
+ },
664
+ "iso-8859-6": {
665
+ id: "iso-8859-6",
666
+ groupId: "arabic",
667
+ decoderId: "iso-8859-6"
668
+ },
669
+ "iso-8859-7": {
670
+ id: "iso-8859-7",
671
+ groupId: "greek",
672
+ decoderId: "iso-8859-7"
673
+ },
674
+ "iso-8859-8": {
675
+ id: "iso-8859-8",
676
+ groupId: "hebrew",
677
+ decoderId: "iso-8859-8-i"
678
+ },
679
+ "iso-8859-9": {
680
+ id: "iso-8859-9",
681
+ groupId: "turkish",
682
+ decoderId: "windows-1254"
683
+ },
684
+ "iso-8859-13": {
685
+ id: "iso-8859-13",
686
+ groupId: "baltic",
687
+ decoderId: "iso-8859-13"
688
+ },
689
+ iso2022_jp_2004: {
690
+ id: "iso2022_jp_2004",
691
+ groupId: "japanese",
692
+ decoderId: null
693
+ },
694
+ iso2022_jp_ext: {
695
+ id: "iso2022_jp_ext",
696
+ groupId: "japanese",
697
+ decoderId: null
698
+ },
699
+ "iso8859-3": {
700
+ id: "iso8859-3",
701
+ groupId: "southernEuropean",
702
+ decoderId: "iso-8859-3"
703
+ },
704
+ "iso8859-4": {
705
+ id: "iso8859-4",
706
+ groupId: "baltic",
707
+ decoderId: "iso-8859-4"
708
+ },
709
+ "iso8859-10": {
710
+ id: "iso8859-10",
711
+ groupId: "nordic",
712
+ decoderId: "iso-8859-10"
713
+ },
714
+ "iso8859-14": {
715
+ id: "iso8859-14",
716
+ groupId: "celtic",
717
+ decoderId: "iso-8859-14"
718
+ },
719
+ "iso8859-15": {
720
+ id: "iso8859-15",
721
+ groupId: "western",
722
+ decoderId: "iso-8859-15"
723
+ },
724
+ "iso8859-16": {
725
+ id: "iso8859-16",
726
+ groupId: "romanian",
727
+ decoderId: "iso-8859-16"
728
+ },
729
+ johab: {
730
+ id: "johab",
731
+ groupId: "korean",
732
+ decoderId: null
733
+ },
734
+ "koi8-r": {
735
+ id: "koi8-r",
736
+ groupId: "cyrillic",
737
+ decoderId: "koi8-r"
738
+ },
739
+ "koi8-t": {
740
+ id: "koi8-t",
741
+ groupId: "cyrillic",
742
+ decoderId: null
743
+ },
744
+ "koi8-u": {
745
+ id: "koi8-u",
746
+ groupId: "cyrillic",
747
+ decoderId: "koi8-u"
748
+ },
749
+ kz1048: {
750
+ id: "kz1048",
751
+ groupId: "cyrillic",
752
+ decoderId: null
753
+ },
754
+ maccyrillic: {
755
+ id: "maccyrillic",
756
+ groupId: "cyrillic",
757
+ decoderId: "x-mac-cyrillic"
758
+ },
759
+ macgreek: {
760
+ id: "macgreek",
761
+ groupId: "greek",
762
+ decoderId: null
763
+ },
764
+ maciceland: {
765
+ id: "maciceland",
766
+ groupId: "nordic",
767
+ decoderId: null
768
+ },
769
+ maclatin2: {
770
+ id: "maclatin2",
771
+ groupId: "centralEuropean",
772
+ decoderId: null
773
+ },
774
+ macroman: {
775
+ id: "macroman",
776
+ groupId: "western",
777
+ decoderId: "macintosh"
778
+ },
779
+ macturkish: {
780
+ id: "macturkish",
781
+ groupId: "turkish",
782
+ decoderId: null
783
+ },
784
+ ptcp154: {
785
+ id: "ptcp154",
786
+ groupId: "cyrillic",
787
+ decoderId: null
788
+ },
789
+ shift_jis: {
790
+ id: "shift_jis",
791
+ groupId: "japanese",
792
+ decoderId: "shift_jis"
793
+ },
794
+ "tis-620": {
795
+ id: "tis-620",
796
+ groupId: "thai",
797
+ decoderId: "windows-874"
798
+ },
799
+ "utf-7": {
800
+ id: "utf-7",
801
+ groupId: "other",
802
+ decoderId: null
803
+ },
804
+ "utf-8": {
805
+ id: "utf-8",
806
+ groupId: null,
807
+ decoderId: "utf-8"
808
+ },
809
+ "utf-8-sig": {
810
+ id: "utf-8-sig",
811
+ groupId: null,
812
+ decoderId: "utf-8"
813
+ },
814
+ "utf-16": {
815
+ id: "utf-16",
816
+ groupId: "unicode16",
817
+ decoderId: null
818
+ },
819
+ "utf-16-be": {
820
+ id: "utf-16-be",
821
+ groupId: "unicode16",
822
+ decoderId: "utf-16be"
823
+ },
824
+ "utf-16-le": {
825
+ id: "utf-16-le",
826
+ groupId: "unicode16",
827
+ decoderId: "utf-16le"
828
+ },
829
+ "utf-32": {
830
+ id: "utf-32",
831
+ groupId: "unicode32",
832
+ decoderId: null
833
+ },
834
+ "utf-32-be": {
835
+ id: "utf-32-be",
836
+ groupId: "unicode32",
837
+ decoderId: null
838
+ },
839
+ "utf-32-le": {
840
+ id: "utf-32-le",
841
+ groupId: "unicode32",
842
+ decoderId: null
843
+ },
844
+ "windows-1250": {
845
+ id: "windows-1250",
846
+ groupId: "centralEuropean",
847
+ decoderId: "windows-1250"
848
+ },
849
+ "windows-1251": {
850
+ id: "windows-1251",
851
+ groupId: "cyrillic",
852
+ decoderId: "windows-1251"
853
+ },
854
+ "windows-1252": {
855
+ id: "windows-1252",
856
+ groupId: "western",
857
+ decoderId: "windows-1252"
858
+ },
859
+ "windows-1253": {
860
+ id: "windows-1253",
861
+ groupId: "greek",
862
+ decoderId: "windows-1253"
863
+ },
864
+ "windows-1254": {
865
+ id: "windows-1254",
866
+ groupId: "turkish",
867
+ decoderId: "windows-1254"
868
+ },
869
+ "windows-1255": {
870
+ id: "windows-1255",
871
+ groupId: "hebrew",
872
+ decoderId: "windows-1255"
873
+ },
874
+ "windows-1256": {
875
+ id: "windows-1256",
876
+ groupId: "arabic",
877
+ decoderId: "windows-1256"
878
+ },
879
+ "windows-1257": {
880
+ id: "windows-1257",
881
+ groupId: "baltic",
882
+ decoderId: "windows-1257"
883
+ }
884
+ };
885
+ function L(e) {
886
+ return Object.hasOwn(I, e);
887
+ }
888
+ function R(e) {
889
+ return L(e) ? I[e].decoderId ?? e : e;
890
+ }
891
+ // src/index.ts
892
+ var z = {
365
893
  id: "rust-csv-core",
366
894
  name: "Rust CSV Core",
367
895
  version: "0.1.0"
368
- }, A = { rustBindingsPromise: void 0 }, j = class {
369
- config = k;
896
+ }, B = 1e4, V = { rustBindingsPromise: void 0 }, H = class {
897
+ config = z;
898
+ async parseStream(e, t, n) {
899
+ let { RecordReader: r } = await K();
900
+ t.abortSignal.throwIfAborted();
901
+ let i = new r(U(t.valueDelimiterId)), a = W(t.encodingId), o = Math.max(1, Math.floor(t.chunkSize ?? B)), s = e.getReader(), c = () => {
902
+ k(() => void s.cancel(t.abortSignal.reason));
903
+ };
904
+ t.abortSignal.addEventListener("abort", c, { once: !0 });
905
+ let l = [], u = async (e) => {
906
+ for (let t of G(e)) {
907
+ if (l.push(t), l.length < o) continue;
908
+ let e = l;
909
+ l = [], await n("parsingRecordArray", e);
910
+ }
911
+ };
912
+ try {
913
+ let e = await s.read();
914
+ for (; !e.done;) t.abortSignal.throwIfAborted(), await u(i.pushChunk(a == null ? e.value : a.transcode(e.value))), e = await s.read();
915
+ return t.abortSignal.throwIfAborted(), a != null && await u(i.pushChunk(a.finish())), await u(i.finish()), l.length > 0 && await n("parsingRecordArray", l), {
916
+ byteCount: i.byteCount,
917
+ commentLineCount: 0,
918
+ emptyLineCount: i.emptyLineCount,
919
+ lineCount: i.lineCount,
920
+ nonUniformRecordCount: i.nonUniformRecordCount,
921
+ recordCount: i.recordCount
922
+ };
923
+ } finally {
924
+ t.abortSignal.removeEventListener("abort", c), i.free(), s.releaseLock();
925
+ }
926
+ }
927
+ async parseText(e, t) {
928
+ let { RecordReader: n } = await K();
929
+ return await A(e, t, (e, t) => {
930
+ let r = new n(U(t));
931
+ try {
932
+ let t = G(r.pushChunk(new TextEncoder().encode(e)));
933
+ return t.push(...G(r.finish())), Promise.resolve({
934
+ issues: [],
935
+ records: t
936
+ });
937
+ } finally {
938
+ r.free();
939
+ }
940
+ });
941
+ }
370
942
  async processWithTransferableStream(e, t = {}, n) {
371
- let r = await M(), i = t.delimiter?.codePointAt(0) ?? 44, a = t.hasHeaders ?? !0, o = performance.now(), s = 0, c = (e) => {
943
+ let r = await K(), i = t.delimiter?.codePointAt(0) ?? 44, a = t.hasHeaders ?? !0, o = performance.now(), s = 0, c = (e) => {
372
944
  s += e, n && n(e);
373
945
  };
374
946
  try {
@@ -382,7 +954,7 @@ var D = class extends Error {
382
954
  }
383
955
  }
384
956
  async processWithChunks(e, t = {}, n) {
385
- let { CsvSession: r } = await M(), i = t.delimiter?.codePointAt(0) ?? 44, a = t.hasHeaders ?? !0, o = performance.now(), s = 0, c = new r(i, a);
957
+ let { CsvSession: r } = await K(), i = t.delimiter?.codePointAt(0) ?? 44, a = t.hasHeaders ?? !0, o = performance.now(), s = 0, c = new r(i, a);
386
958
  try {
387
959
  let t = e.getReader();
388
960
  try {
@@ -406,11 +978,43 @@ var D = class extends Error {
406
978
  }
407
979
  }
408
980
  };
409
- async function M() {
410
- return A.rustBindingsPromise ??= (async () => {
411
- let e = await import("./dpuse_tool_rust_csv_core_parser-DxibblRh.js");
981
+ function U(e) {
982
+ if (e === "0x1E") return 30;
983
+ if (e === "0x1F") return 31;
984
+ let t = e.codePointAt(0);
985
+ if (t == null || t > 127) throw Error(`Delimiter '${e}' is not a single ASCII character.`);
986
+ return t;
987
+ }
988
+ function W(e) {
989
+ let t = new TextDecoder(R(e));
990
+ if (t.encoding === "utf-8") return;
991
+ let n = new TextEncoder();
992
+ return {
993
+ finish: () => n.encode(t.decode()),
994
+ transcode: (e) => n.encode(t.decode(e, { stream: !0 }))
995
+ };
996
+ }
997
+ function G(e) {
998
+ let { recordValueCounts: t, text: n, valueEnds: r, valueQuoted: i } = e;
999
+ e.free();
1000
+ let a = [], o = 0, s = 0;
1001
+ for (let e of t) {
1002
+ let t = [];
1003
+ for (let a = 0; a < e; a++) {
1004
+ let e = r[o] ?? s;
1005
+ t.push({
1006
+ value: n.slice(s, e),
1007
+ valueWasQuoted: i[o] === 1
1008
+ }), s = e, o++;
1009
+ }
1010
+ a.push(t);
1011
+ }
1012
+ return a;
1013
+ }
1014
+ async function K() {
1015
+ return V.rustBindingsPromise ??= (async () => {
1016
+ let e = await import("./dpuse_tool_rust_csv_core_parser-BZJW07sd.js");
412
1017
  return await e.default(), e;
413
- })(), A.rustBindingsPromise;
1018
+ })(), V.rustBindingsPromise;
414
1019
  }
415
- //#endregion
416
- export { j as Tool, k as config };
1020
+ export { H as Tool, z as config };