@nsshunt/ststestrunner 1.1.108 → 1.1.110
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/ststestrunner.cjs +587 -9
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +606 -9
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +3 -1
- package/types/libmodule/randomSequence.d.ts +2 -0
- package/types/libmodule/randomSequence.d.ts.map +1 -0
- package/types/libmodule/testCaseFhir02.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir03.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir04.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir05.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir07.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir08.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir09.d.ts.map +1 -1
- package/types/libmodule/testCaseFhir10.d.ts.map +1 -1
- package/types/libmodule/testCaseFhirBase.d.ts +2 -0
- package/types/libmodule/testCaseFhirBase.d.ts.map +1 -1
package/dist/ststestrunner.cjs
CHANGED
|
@@ -401,6 +401,579 @@ var StatusCodes;
|
|
|
401
401
|
StatusCodes[StatusCodes["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
402
402
|
})(StatusCodes || (StatusCodes = {}));
|
|
403
403
|
//#endregion
|
|
404
|
+
//#region node_modules/seedrandom/lib/alea.js
|
|
405
|
+
var require_alea = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
406
|
+
(function(global, module$6, define) {
|
|
407
|
+
function Alea(seed) {
|
|
408
|
+
var me = this, mash = Mash();
|
|
409
|
+
me.next = function() {
|
|
410
|
+
var t = 2091639 * me.s0 + me.c * 23283064365386963e-26;
|
|
411
|
+
me.s0 = me.s1;
|
|
412
|
+
me.s1 = me.s2;
|
|
413
|
+
return me.s2 = t - (me.c = t | 0);
|
|
414
|
+
};
|
|
415
|
+
me.c = 1;
|
|
416
|
+
me.s0 = mash(" ");
|
|
417
|
+
me.s1 = mash(" ");
|
|
418
|
+
me.s2 = mash(" ");
|
|
419
|
+
me.s0 -= mash(seed);
|
|
420
|
+
if (me.s0 < 0) me.s0 += 1;
|
|
421
|
+
me.s1 -= mash(seed);
|
|
422
|
+
if (me.s1 < 0) me.s1 += 1;
|
|
423
|
+
me.s2 -= mash(seed);
|
|
424
|
+
if (me.s2 < 0) me.s2 += 1;
|
|
425
|
+
mash = null;
|
|
426
|
+
}
|
|
427
|
+
function copy(f, t) {
|
|
428
|
+
t.c = f.c;
|
|
429
|
+
t.s0 = f.s0;
|
|
430
|
+
t.s1 = f.s1;
|
|
431
|
+
t.s2 = f.s2;
|
|
432
|
+
return t;
|
|
433
|
+
}
|
|
434
|
+
function impl(seed, opts) {
|
|
435
|
+
var xg = new Alea(seed), state = opts && opts.state, prng = xg.next;
|
|
436
|
+
prng.int32 = function() {
|
|
437
|
+
return xg.next() * 4294967296 | 0;
|
|
438
|
+
};
|
|
439
|
+
prng.double = function() {
|
|
440
|
+
return prng() + (prng() * 2097152 | 0) * 11102230246251565e-32;
|
|
441
|
+
};
|
|
442
|
+
prng.quick = prng;
|
|
443
|
+
if (state) {
|
|
444
|
+
if (typeof state == "object") copy(state, xg);
|
|
445
|
+
prng.state = function() {
|
|
446
|
+
return copy(xg, {});
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
return prng;
|
|
450
|
+
}
|
|
451
|
+
function Mash() {
|
|
452
|
+
var n = 4022871197;
|
|
453
|
+
var mash = function(data) {
|
|
454
|
+
data = String(data);
|
|
455
|
+
for (var i = 0; i < data.length; i++) {
|
|
456
|
+
n += data.charCodeAt(i);
|
|
457
|
+
var h = .02519603282416938 * n;
|
|
458
|
+
n = h >>> 0;
|
|
459
|
+
h -= n;
|
|
460
|
+
h *= n;
|
|
461
|
+
n = h >>> 0;
|
|
462
|
+
h -= n;
|
|
463
|
+
n += h * 4294967296;
|
|
464
|
+
}
|
|
465
|
+
return (n >>> 0) * 23283064365386963e-26;
|
|
466
|
+
};
|
|
467
|
+
return mash;
|
|
468
|
+
}
|
|
469
|
+
if (module$6 && module$6.exports) module$6.exports = impl;
|
|
470
|
+
else if (define && define.amd) define(function() {
|
|
471
|
+
return impl;
|
|
472
|
+
});
|
|
473
|
+
else this.alea = impl;
|
|
474
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
475
|
+
}));
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region node_modules/seedrandom/lib/xor128.js
|
|
478
|
+
var require_xor128 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
479
|
+
(function(global, module$5, define) {
|
|
480
|
+
function XorGen(seed) {
|
|
481
|
+
var me = this, strseed = "";
|
|
482
|
+
me.x = 0;
|
|
483
|
+
me.y = 0;
|
|
484
|
+
me.z = 0;
|
|
485
|
+
me.w = 0;
|
|
486
|
+
me.next = function() {
|
|
487
|
+
var t = me.x ^ me.x << 11;
|
|
488
|
+
me.x = me.y;
|
|
489
|
+
me.y = me.z;
|
|
490
|
+
me.z = me.w;
|
|
491
|
+
return me.w ^= me.w >>> 19 ^ t ^ t >>> 8;
|
|
492
|
+
};
|
|
493
|
+
if (seed === (seed | 0)) me.x = seed;
|
|
494
|
+
else strseed += seed;
|
|
495
|
+
for (var k = 0; k < strseed.length + 64; k++) {
|
|
496
|
+
me.x ^= strseed.charCodeAt(k) | 0;
|
|
497
|
+
me.next();
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
function copy(f, t) {
|
|
501
|
+
t.x = f.x;
|
|
502
|
+
t.y = f.y;
|
|
503
|
+
t.z = f.z;
|
|
504
|
+
t.w = f.w;
|
|
505
|
+
return t;
|
|
506
|
+
}
|
|
507
|
+
function impl(seed, opts) {
|
|
508
|
+
var xg = new XorGen(seed), state = opts && opts.state, prng = function() {
|
|
509
|
+
return (xg.next() >>> 0) / 4294967296;
|
|
510
|
+
};
|
|
511
|
+
prng.double = function() {
|
|
512
|
+
do
|
|
513
|
+
var result = ((xg.next() >>> 11) + (xg.next() >>> 0) / 4294967296) / (1 << 21);
|
|
514
|
+
while (result === 0);
|
|
515
|
+
return result;
|
|
516
|
+
};
|
|
517
|
+
prng.int32 = xg.next;
|
|
518
|
+
prng.quick = prng;
|
|
519
|
+
if (state) {
|
|
520
|
+
if (typeof state == "object") copy(state, xg);
|
|
521
|
+
prng.state = function() {
|
|
522
|
+
return copy(xg, {});
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
return prng;
|
|
526
|
+
}
|
|
527
|
+
if (module$5 && module$5.exports) module$5.exports = impl;
|
|
528
|
+
else if (define && define.amd) define(function() {
|
|
529
|
+
return impl;
|
|
530
|
+
});
|
|
531
|
+
else this.xor128 = impl;
|
|
532
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
533
|
+
}));
|
|
534
|
+
//#endregion
|
|
535
|
+
//#region node_modules/seedrandom/lib/xorwow.js
|
|
536
|
+
var require_xorwow = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
537
|
+
(function(global, module$4, define) {
|
|
538
|
+
function XorGen(seed) {
|
|
539
|
+
var me = this, strseed = "";
|
|
540
|
+
me.next = function() {
|
|
541
|
+
var t = me.x ^ me.x >>> 2;
|
|
542
|
+
me.x = me.y;
|
|
543
|
+
me.y = me.z;
|
|
544
|
+
me.z = me.w;
|
|
545
|
+
me.w = me.v;
|
|
546
|
+
return (me.d = me.d + 362437 | 0) + (me.v = me.v ^ me.v << 4 ^ (t ^ t << 1)) | 0;
|
|
547
|
+
};
|
|
548
|
+
me.x = 0;
|
|
549
|
+
me.y = 0;
|
|
550
|
+
me.z = 0;
|
|
551
|
+
me.w = 0;
|
|
552
|
+
me.v = 0;
|
|
553
|
+
if (seed === (seed | 0)) me.x = seed;
|
|
554
|
+
else strseed += seed;
|
|
555
|
+
for (var k = 0; k < strseed.length + 64; k++) {
|
|
556
|
+
me.x ^= strseed.charCodeAt(k) | 0;
|
|
557
|
+
if (k == strseed.length) me.d = me.x << 10 ^ me.x >>> 4;
|
|
558
|
+
me.next();
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
function copy(f, t) {
|
|
562
|
+
t.x = f.x;
|
|
563
|
+
t.y = f.y;
|
|
564
|
+
t.z = f.z;
|
|
565
|
+
t.w = f.w;
|
|
566
|
+
t.v = f.v;
|
|
567
|
+
t.d = f.d;
|
|
568
|
+
return t;
|
|
569
|
+
}
|
|
570
|
+
function impl(seed, opts) {
|
|
571
|
+
var xg = new XorGen(seed), state = opts && opts.state, prng = function() {
|
|
572
|
+
return (xg.next() >>> 0) / 4294967296;
|
|
573
|
+
};
|
|
574
|
+
prng.double = function() {
|
|
575
|
+
do
|
|
576
|
+
var result = ((xg.next() >>> 11) + (xg.next() >>> 0) / 4294967296) / (1 << 21);
|
|
577
|
+
while (result === 0);
|
|
578
|
+
return result;
|
|
579
|
+
};
|
|
580
|
+
prng.int32 = xg.next;
|
|
581
|
+
prng.quick = prng;
|
|
582
|
+
if (state) {
|
|
583
|
+
if (typeof state == "object") copy(state, xg);
|
|
584
|
+
prng.state = function() {
|
|
585
|
+
return copy(xg, {});
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
return prng;
|
|
589
|
+
}
|
|
590
|
+
if (module$4 && module$4.exports) module$4.exports = impl;
|
|
591
|
+
else if (define && define.amd) define(function() {
|
|
592
|
+
return impl;
|
|
593
|
+
});
|
|
594
|
+
else this.xorwow = impl;
|
|
595
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
596
|
+
}));
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region node_modules/seedrandom/lib/xorshift7.js
|
|
599
|
+
var require_xorshift7 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
600
|
+
(function(global, module$3, define) {
|
|
601
|
+
function XorGen(seed) {
|
|
602
|
+
var me = this;
|
|
603
|
+
me.next = function() {
|
|
604
|
+
var X = me.x, i = me.i, t = X[i], v;
|
|
605
|
+
t ^= t >>> 7;
|
|
606
|
+
v = t ^ t << 24;
|
|
607
|
+
t = X[i + 1 & 7];
|
|
608
|
+
v ^= t ^ t >>> 10;
|
|
609
|
+
t = X[i + 3 & 7];
|
|
610
|
+
v ^= t ^ t >>> 3;
|
|
611
|
+
t = X[i + 4 & 7];
|
|
612
|
+
v ^= t ^ t << 7;
|
|
613
|
+
t = X[i + 7 & 7];
|
|
614
|
+
t = t ^ t << 13;
|
|
615
|
+
v ^= t ^ t << 9;
|
|
616
|
+
X[i] = v;
|
|
617
|
+
me.i = i + 1 & 7;
|
|
618
|
+
return v;
|
|
619
|
+
};
|
|
620
|
+
function init(me, seed) {
|
|
621
|
+
var j, X = [];
|
|
622
|
+
if (seed === (seed | 0)) X[0] = seed;
|
|
623
|
+
else {
|
|
624
|
+
seed = "" + seed;
|
|
625
|
+
for (j = 0; j < seed.length; ++j) X[j & 7] = X[j & 7] << 15 ^ seed.charCodeAt(j) + X[j + 1 & 7] << 13;
|
|
626
|
+
}
|
|
627
|
+
while (X.length < 8) X.push(0);
|
|
628
|
+
for (j = 0; j < 8 && X[j] === 0; ++j);
|
|
629
|
+
if (j == 8) X[7] = -1;
|
|
630
|
+
else X[j];
|
|
631
|
+
me.x = X;
|
|
632
|
+
me.i = 0;
|
|
633
|
+
for (j = 256; j > 0; --j) me.next();
|
|
634
|
+
}
|
|
635
|
+
init(me, seed);
|
|
636
|
+
}
|
|
637
|
+
function copy(f, t) {
|
|
638
|
+
t.x = f.x.slice();
|
|
639
|
+
t.i = f.i;
|
|
640
|
+
return t;
|
|
641
|
+
}
|
|
642
|
+
function impl(seed, opts) {
|
|
643
|
+
if (seed == null) seed = +/* @__PURE__ */ new Date();
|
|
644
|
+
var xg = new XorGen(seed), state = opts && opts.state, prng = function() {
|
|
645
|
+
return (xg.next() >>> 0) / 4294967296;
|
|
646
|
+
};
|
|
647
|
+
prng.double = function() {
|
|
648
|
+
do
|
|
649
|
+
var result = ((xg.next() >>> 11) + (xg.next() >>> 0) / 4294967296) / (1 << 21);
|
|
650
|
+
while (result === 0);
|
|
651
|
+
return result;
|
|
652
|
+
};
|
|
653
|
+
prng.int32 = xg.next;
|
|
654
|
+
prng.quick = prng;
|
|
655
|
+
if (state) {
|
|
656
|
+
if (state.x) copy(state, xg);
|
|
657
|
+
prng.state = function() {
|
|
658
|
+
return copy(xg, {});
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
return prng;
|
|
662
|
+
}
|
|
663
|
+
if (module$3 && module$3.exports) module$3.exports = impl;
|
|
664
|
+
else if (define && define.amd) define(function() {
|
|
665
|
+
return impl;
|
|
666
|
+
});
|
|
667
|
+
else this.xorshift7 = impl;
|
|
668
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
669
|
+
}));
|
|
670
|
+
//#endregion
|
|
671
|
+
//#region node_modules/seedrandom/lib/xor4096.js
|
|
672
|
+
var require_xor4096 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
673
|
+
(function(global, module$2, define) {
|
|
674
|
+
function XorGen(seed) {
|
|
675
|
+
var me = this;
|
|
676
|
+
me.next = function() {
|
|
677
|
+
var w = me.w, X = me.X, i = me.i, t, v;
|
|
678
|
+
me.w = w = w + 1640531527 | 0;
|
|
679
|
+
v = X[i + 34 & 127];
|
|
680
|
+
t = X[i = i + 1 & 127];
|
|
681
|
+
v ^= v << 13;
|
|
682
|
+
t ^= t << 17;
|
|
683
|
+
v ^= v >>> 15;
|
|
684
|
+
t ^= t >>> 12;
|
|
685
|
+
v = X[i] = v ^ t;
|
|
686
|
+
me.i = i;
|
|
687
|
+
return v + (w ^ w >>> 16) | 0;
|
|
688
|
+
};
|
|
689
|
+
function init(me, seed) {
|
|
690
|
+
var t, v, i, j, w, X = [], limit = 128;
|
|
691
|
+
if (seed === (seed | 0)) {
|
|
692
|
+
v = seed;
|
|
693
|
+
seed = null;
|
|
694
|
+
} else {
|
|
695
|
+
seed = seed + "\0";
|
|
696
|
+
v = 0;
|
|
697
|
+
limit = Math.max(limit, seed.length);
|
|
698
|
+
}
|
|
699
|
+
for (i = 0, j = -32; j < limit; ++j) {
|
|
700
|
+
if (seed) v ^= seed.charCodeAt((j + 32) % seed.length);
|
|
701
|
+
if (j === 0) w = v;
|
|
702
|
+
v ^= v << 10;
|
|
703
|
+
v ^= v >>> 15;
|
|
704
|
+
v ^= v << 4;
|
|
705
|
+
v ^= v >>> 13;
|
|
706
|
+
if (j >= 0) {
|
|
707
|
+
w = w + 1640531527 | 0;
|
|
708
|
+
t = X[j & 127] ^= v + w;
|
|
709
|
+
i = 0 == t ? i + 1 : 0;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
if (i >= 128) X[(seed && seed.length || 0) & 127] = -1;
|
|
713
|
+
i = 127;
|
|
714
|
+
for (j = 512; j > 0; --j) {
|
|
715
|
+
v = X[i + 34 & 127];
|
|
716
|
+
t = X[i = i + 1 & 127];
|
|
717
|
+
v ^= v << 13;
|
|
718
|
+
t ^= t << 17;
|
|
719
|
+
v ^= v >>> 15;
|
|
720
|
+
t ^= t >>> 12;
|
|
721
|
+
X[i] = v ^ t;
|
|
722
|
+
}
|
|
723
|
+
me.w = w;
|
|
724
|
+
me.X = X;
|
|
725
|
+
me.i = i;
|
|
726
|
+
}
|
|
727
|
+
init(me, seed);
|
|
728
|
+
}
|
|
729
|
+
function copy(f, t) {
|
|
730
|
+
t.i = f.i;
|
|
731
|
+
t.w = f.w;
|
|
732
|
+
t.X = f.X.slice();
|
|
733
|
+
return t;
|
|
734
|
+
}
|
|
735
|
+
function impl(seed, opts) {
|
|
736
|
+
if (seed == null) seed = +/* @__PURE__ */ new Date();
|
|
737
|
+
var xg = new XorGen(seed), state = opts && opts.state, prng = function() {
|
|
738
|
+
return (xg.next() >>> 0) / 4294967296;
|
|
739
|
+
};
|
|
740
|
+
prng.double = function() {
|
|
741
|
+
do
|
|
742
|
+
var result = ((xg.next() >>> 11) + (xg.next() >>> 0) / 4294967296) / (1 << 21);
|
|
743
|
+
while (result === 0);
|
|
744
|
+
return result;
|
|
745
|
+
};
|
|
746
|
+
prng.int32 = xg.next;
|
|
747
|
+
prng.quick = prng;
|
|
748
|
+
if (state) {
|
|
749
|
+
if (state.X) copy(state, xg);
|
|
750
|
+
prng.state = function() {
|
|
751
|
+
return copy(xg, {});
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
return prng;
|
|
755
|
+
}
|
|
756
|
+
if (module$2 && module$2.exports) module$2.exports = impl;
|
|
757
|
+
else if (define && define.amd) define(function() {
|
|
758
|
+
return impl;
|
|
759
|
+
});
|
|
760
|
+
else this.xor4096 = impl;
|
|
761
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
762
|
+
}));
|
|
763
|
+
//#endregion
|
|
764
|
+
//#region node_modules/seedrandom/lib/tychei.js
|
|
765
|
+
var require_tychei = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
766
|
+
(function(global, module$1, define) {
|
|
767
|
+
function XorGen(seed) {
|
|
768
|
+
var me = this, strseed = "";
|
|
769
|
+
me.next = function() {
|
|
770
|
+
var b = me.b, c = me.c, d = me.d, a = me.a;
|
|
771
|
+
b = b << 25 ^ b >>> 7 ^ c;
|
|
772
|
+
c = c - d | 0;
|
|
773
|
+
d = d << 24 ^ d >>> 8 ^ a;
|
|
774
|
+
a = a - b | 0;
|
|
775
|
+
me.b = b = b << 20 ^ b >>> 12 ^ c;
|
|
776
|
+
me.c = c = c - d | 0;
|
|
777
|
+
me.d = d << 16 ^ c >>> 16 ^ a;
|
|
778
|
+
return me.a = a - b | 0;
|
|
779
|
+
};
|
|
780
|
+
me.a = 0;
|
|
781
|
+
me.b = 0;
|
|
782
|
+
me.c = -1640531527;
|
|
783
|
+
me.d = 1367130551;
|
|
784
|
+
if (seed === Math.floor(seed)) {
|
|
785
|
+
me.a = seed / 4294967296 | 0;
|
|
786
|
+
me.b = seed | 0;
|
|
787
|
+
} else strseed += seed;
|
|
788
|
+
for (var k = 0; k < strseed.length + 20; k++) {
|
|
789
|
+
me.b ^= strseed.charCodeAt(k) | 0;
|
|
790
|
+
me.next();
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
function copy(f, t) {
|
|
794
|
+
t.a = f.a;
|
|
795
|
+
t.b = f.b;
|
|
796
|
+
t.c = f.c;
|
|
797
|
+
t.d = f.d;
|
|
798
|
+
return t;
|
|
799
|
+
}
|
|
800
|
+
function impl(seed, opts) {
|
|
801
|
+
var xg = new XorGen(seed), state = opts && opts.state, prng = function() {
|
|
802
|
+
return (xg.next() >>> 0) / 4294967296;
|
|
803
|
+
};
|
|
804
|
+
prng.double = function() {
|
|
805
|
+
do
|
|
806
|
+
var result = ((xg.next() >>> 11) + (xg.next() >>> 0) / 4294967296) / (1 << 21);
|
|
807
|
+
while (result === 0);
|
|
808
|
+
return result;
|
|
809
|
+
};
|
|
810
|
+
prng.int32 = xg.next;
|
|
811
|
+
prng.quick = prng;
|
|
812
|
+
if (state) {
|
|
813
|
+
if (typeof state == "object") copy(state, xg);
|
|
814
|
+
prng.state = function() {
|
|
815
|
+
return copy(xg, {});
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
return prng;
|
|
819
|
+
}
|
|
820
|
+
if (module$1 && module$1.exports) module$1.exports = impl;
|
|
821
|
+
else if (define && define.amd) define(function() {
|
|
822
|
+
return impl;
|
|
823
|
+
});
|
|
824
|
+
else this.tychei = impl;
|
|
825
|
+
})(exports, typeof module == "object" && module, typeof define == "function" && define);
|
|
826
|
+
}));
|
|
827
|
+
//#endregion
|
|
828
|
+
//#region __vite-browser-external
|
|
829
|
+
var require___vite_browser_external = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
830
|
+
module.exports = {};
|
|
831
|
+
}));
|
|
832
|
+
//#endregion
|
|
833
|
+
//#region node_modules/seedrandom/seedrandom.js
|
|
834
|
+
var require_seedrandom$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
835
|
+
(function(global, pool, math) {
|
|
836
|
+
var width = 256, chunks = 6, digits = 52, rngname = "random", startdenom = math.pow(width, chunks), significance = math.pow(2, digits), overflow = significance * 2, mask = width - 1, nodecrypto;
|
|
837
|
+
function seedrandom(seed, options, callback) {
|
|
838
|
+
var key = [];
|
|
839
|
+
options = options == true ? { entropy: true } : options || {};
|
|
840
|
+
var shortseed = mixkey(flatten(options.entropy ? [seed, tostring(pool)] : seed == null ? autoseed() : seed, 3), key);
|
|
841
|
+
var arc4 = new ARC4(key);
|
|
842
|
+
var prng = function() {
|
|
843
|
+
var n = arc4.g(chunks), d = startdenom, x = 0;
|
|
844
|
+
while (n < significance) {
|
|
845
|
+
n = (n + x) * width;
|
|
846
|
+
d *= width;
|
|
847
|
+
x = arc4.g(1);
|
|
848
|
+
}
|
|
849
|
+
while (n >= overflow) {
|
|
850
|
+
n /= 2;
|
|
851
|
+
d /= 2;
|
|
852
|
+
x >>>= 1;
|
|
853
|
+
}
|
|
854
|
+
return (n + x) / d;
|
|
855
|
+
};
|
|
856
|
+
prng.int32 = function() {
|
|
857
|
+
return arc4.g(4) | 0;
|
|
858
|
+
};
|
|
859
|
+
prng.quick = function() {
|
|
860
|
+
return arc4.g(4) / 4294967296;
|
|
861
|
+
};
|
|
862
|
+
prng.double = prng;
|
|
863
|
+
mixkey(tostring(arc4.S), pool);
|
|
864
|
+
return (options.pass || callback || function(prng, seed, is_math_call, state) {
|
|
865
|
+
if (state) {
|
|
866
|
+
if (state.S) copy(state, arc4);
|
|
867
|
+
prng.state = function() {
|
|
868
|
+
return copy(arc4, {});
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
if (is_math_call) {
|
|
872
|
+
math[rngname] = prng;
|
|
873
|
+
return seed;
|
|
874
|
+
} else return prng;
|
|
875
|
+
})(prng, shortseed, "global" in options ? options.global : this == math, options.state);
|
|
876
|
+
}
|
|
877
|
+
function ARC4(key) {
|
|
878
|
+
var t, keylen = key.length, me = this, i = 0, j = me.i = me.j = 0, s = me.S = [];
|
|
879
|
+
if (!keylen) key = [keylen++];
|
|
880
|
+
while (i < width) s[i] = i++;
|
|
881
|
+
for (i = 0; i < width; i++) {
|
|
882
|
+
s[i] = s[j = mask & j + key[i % keylen] + (t = s[i])];
|
|
883
|
+
s[j] = t;
|
|
884
|
+
}
|
|
885
|
+
(me.g = function(count) {
|
|
886
|
+
var t, r = 0, i = me.i, j = me.j, s = me.S;
|
|
887
|
+
while (count--) {
|
|
888
|
+
t = s[i = mask & i + 1];
|
|
889
|
+
r = r * width + s[mask & (s[i] = s[j = mask & j + t]) + (s[j] = t)];
|
|
890
|
+
}
|
|
891
|
+
me.i = i;
|
|
892
|
+
me.j = j;
|
|
893
|
+
return r;
|
|
894
|
+
})(width);
|
|
895
|
+
}
|
|
896
|
+
function copy(f, t) {
|
|
897
|
+
t.i = f.i;
|
|
898
|
+
t.j = f.j;
|
|
899
|
+
t.S = f.S.slice();
|
|
900
|
+
return t;
|
|
901
|
+
}
|
|
902
|
+
function flatten(obj, depth) {
|
|
903
|
+
var result = [], typ = typeof obj, prop;
|
|
904
|
+
if (depth && typ == "object") for (prop in obj) try {
|
|
905
|
+
result.push(flatten(obj[prop], depth - 1));
|
|
906
|
+
} catch (e) {}
|
|
907
|
+
return result.length ? result : typ == "string" ? obj : obj + "\0";
|
|
908
|
+
}
|
|
909
|
+
function mixkey(seed, key) {
|
|
910
|
+
var stringseed = seed + "", smear, j = 0;
|
|
911
|
+
while (j < stringseed.length) key[mask & j] = mask & (smear ^= key[mask & j] * 19) + stringseed.charCodeAt(j++);
|
|
912
|
+
return tostring(key);
|
|
913
|
+
}
|
|
914
|
+
function autoseed() {
|
|
915
|
+
try {
|
|
916
|
+
var out;
|
|
917
|
+
if (nodecrypto && (out = nodecrypto.randomBytes)) out = out(width);
|
|
918
|
+
else {
|
|
919
|
+
out = new Uint8Array(width);
|
|
920
|
+
(global.crypto || global.msCrypto).getRandomValues(out);
|
|
921
|
+
}
|
|
922
|
+
return tostring(out);
|
|
923
|
+
} catch (e) {
|
|
924
|
+
var browser = global.navigator, plugins = browser && browser.plugins;
|
|
925
|
+
return [
|
|
926
|
+
+/* @__PURE__ */ new Date(),
|
|
927
|
+
global,
|
|
928
|
+
plugins,
|
|
929
|
+
global.screen,
|
|
930
|
+
tostring(pool)
|
|
931
|
+
];
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
function tostring(a) {
|
|
935
|
+
return String.fromCharCode.apply(0, a);
|
|
936
|
+
}
|
|
937
|
+
mixkey(math.random(), pool);
|
|
938
|
+
if (typeof module == "object" && module.exports) {
|
|
939
|
+
module.exports = seedrandom;
|
|
940
|
+
try {
|
|
941
|
+
nodecrypto = require___vite_browser_external();
|
|
942
|
+
} catch (ex) {}
|
|
943
|
+
} else if (typeof define == "function" && define.amd) define(function() {
|
|
944
|
+
return seedrandom;
|
|
945
|
+
});
|
|
946
|
+
else math["seed" + rngname] = seedrandom;
|
|
947
|
+
})(typeof self !== "undefined" ? self : exports, [], Math);
|
|
948
|
+
}));
|
|
949
|
+
//#endregion
|
|
950
|
+
//#region src/libmodule/randomSequence.ts
|
|
951
|
+
var import_seedrandom = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
952
|
+
var alea = require_alea();
|
|
953
|
+
var xor128 = require_xor128();
|
|
954
|
+
var xorwow = require_xorwow();
|
|
955
|
+
var xorshift7 = require_xorshift7();
|
|
956
|
+
var xor4096 = require_xor4096();
|
|
957
|
+
var tychei = require_tychei();
|
|
958
|
+
var sr = require_seedrandom$1();
|
|
959
|
+
sr.alea = alea;
|
|
960
|
+
sr.xor128 = xor128;
|
|
961
|
+
sr.xorwow = xorwow;
|
|
962
|
+
sr.xorshift7 = xorshift7;
|
|
963
|
+
sr.xor4096 = xor4096;
|
|
964
|
+
sr.tychei = tychei;
|
|
965
|
+
module.exports = sr;
|
|
966
|
+
})))(), 1);
|
|
967
|
+
function getRandomIterationOrder(iterations, seed) {
|
|
968
|
+
const rng = (0, import_seedrandom.default)(seed);
|
|
969
|
+
const values = Array.from({ length: iterations }, (_, i) => i);
|
|
970
|
+
for (let i = values.length - 1; i > 0; i--) {
|
|
971
|
+
const j = Math.floor(rng() * (i + 1));
|
|
972
|
+
[values[i], values[j]] = [values[j], values[i]];
|
|
973
|
+
}
|
|
974
|
+
return values;
|
|
975
|
+
}
|
|
976
|
+
//#endregion
|
|
404
977
|
//#region src/libmodule/testCaseFhirBase.ts
|
|
405
978
|
var TestCaseFhirBase = class {
|
|
406
979
|
#options;
|
|
@@ -410,6 +983,7 @@ var TestCaseFhirBase = class {
|
|
|
410
983
|
#maxBufferSize = 50;
|
|
411
984
|
#publishTelemetryTimeout = null;
|
|
412
985
|
#publishTelemetryTimeoutVal = 1e3;
|
|
986
|
+
randomSequence = [];
|
|
413
987
|
_RetryMap = [
|
|
414
988
|
100,
|
|
415
989
|
250,
|
|
@@ -431,6 +1005,10 @@ var TestCaseFhirBase = class {
|
|
|
431
1005
|
return this.#runnerExecutionWorker;
|
|
432
1006
|
}
|
|
433
1007
|
ResetClient = () => {};
|
|
1008
|
+
GetRandomSequenceFromIteration = () => {
|
|
1009
|
+
if (this.runner.iteration === 1) this.randomSequence = getRandomIterationOrder(this.runner.options.executionProfile.iterations, this.runner.options.description);
|
|
1010
|
+
return this.randomSequence[this.runner.iteration];
|
|
1011
|
+
};
|
|
434
1012
|
Error = (message) => {
|
|
435
1013
|
this.#runnerExecutionWorker.logger.error(message);
|
|
436
1014
|
this.#runner.instrumentData.message.push(chalk.default.red(`${message}`));
|
|
@@ -744,7 +1322,7 @@ var TestCaseFhir02 = class extends TestCaseFhirQueryBase {
|
|
|
744
1322
|
const client = await this.GetClient();
|
|
745
1323
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
746
1324
|
const prefix = this.runner.options.personPrefix;
|
|
747
|
-
const personRecord = await this.GetPersonRecord(prefix, this.
|
|
1325
|
+
const personRecord = await this.GetPersonRecord(prefix, this.GetRandomSequenceFromIteration(), "1");
|
|
748
1326
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
749
1327
|
const retVal = await client.PostResource("Person", personRecord);
|
|
750
1328
|
this._CheckOutputLongDurationError(__snapshot3, "await this.PostResource()");
|
|
@@ -774,7 +1352,7 @@ var TestCaseFhir03 = class extends TestCaseFhirQueryBase {
|
|
|
774
1352
|
const __snapshot1 = performance.now();
|
|
775
1353
|
const client = await this.GetClient();
|
|
776
1354
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
777
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
1355
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "1");
|
|
778
1356
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
779
1357
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
780
1358
|
this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
@@ -804,7 +1382,7 @@ var TestCaseFhir04 = class extends TestCaseFhirQueryBase {
|
|
|
804
1382
|
const __snapshot1 = performance.now();
|
|
805
1383
|
const client = await this.GetClient();
|
|
806
1384
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
807
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
1385
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "1");
|
|
808
1386
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
809
1387
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
810
1388
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
@@ -864,7 +1442,7 @@ var TestCaseFhir05 = class extends TestCaseFhirQueryBase {
|
|
|
864
1442
|
const __snapshot1 = performance.now();
|
|
865
1443
|
const client = await this.GetClient();
|
|
866
1444
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
867
|
-
const originalPersonRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
1445
|
+
const originalPersonRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "2");
|
|
868
1446
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
869
1447
|
if (originalPersonRecord && originalPersonRecord.text) {
|
|
870
1448
|
originalPersonRecord.text.div = `Put record TestCaseFhir05 ${this.runner.iteration}`;
|
|
@@ -903,7 +1481,7 @@ var TestCaseFhir06 = class extends TestCaseFhirQueryBase {
|
|
|
903
1481
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
904
1482
|
const baseUrl = this.runner.options.fhirOptions.stsfhirbaseurl;
|
|
905
1483
|
const prefix = this.runner.options.personPrefix;
|
|
906
|
-
const personRecord = await this.GetPersonRecord(prefix, this.
|
|
1484
|
+
const personRecord = await this.GetPersonRecord(prefix, this.GetRandomSequenceFromIteration(), "3");
|
|
907
1485
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
908
1486
|
const url = new URL(`${baseUrl}/Person?family=${personRecord.name[0].family}`);
|
|
909
1487
|
let retVal;
|
|
@@ -1577,7 +2155,7 @@ var TestCaseFhir07 = class extends TestCaseFhirQueryBase {
|
|
|
1577
2155
|
const __snapshot1 = performance.now();
|
|
1578
2156
|
const client = await this.GetClient();
|
|
1579
2157
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1580
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
2158
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "3");
|
|
1581
2159
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1582
2160
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
1583
2161
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
@@ -1599,7 +2177,7 @@ var TestCaseFhir08 = class extends TestCaseFhirQueryBase {
|
|
|
1599
2177
|
const __snapshot1 = performance.now();
|
|
1600
2178
|
const client = await this.GetClient();
|
|
1601
2179
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1602
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
2180
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "4");
|
|
1603
2181
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1604
2182
|
const retVal = await client.GetResource("Person", personRecord.id);
|
|
1605
2183
|
const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
|
|
@@ -1619,7 +2197,7 @@ var TestCaseFhir09 = class extends TestCaseFhirQueryBase {
|
|
|
1619
2197
|
const __snapshot1 = performance.now();
|
|
1620
2198
|
const client = await this.GetClient();
|
|
1621
2199
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1622
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
2200
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "5");
|
|
1623
2201
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1624
2202
|
if (personRecord.text) try {
|
|
1625
2203
|
const retVal = await client.DeleteResource("Person", personRecord.id, `W/"5"`);
|
|
@@ -1648,7 +2226,7 @@ var TestCaseFhir10 = class extends TestCaseFhirQueryBase {
|
|
|
1648
2226
|
const __snapshot1 = performance.now();
|
|
1649
2227
|
const client = await this.GetClient();
|
|
1650
2228
|
const __snapshot2 = this._CheckOutputLongDurationError(__snapshot1, "await this.GetClient()");
|
|
1651
|
-
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.
|
|
2229
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.GetRandomSequenceFromIteration(), "1");
|
|
1652
2230
|
const __snapshot3 = this._CheckOutputLongDurationError(__snapshot2, "await this.GetPersonRecord()");
|
|
1653
2231
|
const retVal = await client.GetHistoryInstanceFhirResource("Person", personRecord.id, "2");
|
|
1654
2232
|
this._CheckOutputLongDurationError(__snapshot3, "await this.GetHistoryInstanceFhirResource()");
|