quantum-component-library 1.4.48-dev.2 → 1.4.48-dev.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/dist/services.js CHANGED
@@ -2,40 +2,7 @@ import { ActivityType as l, SessionType as L, ActionActivityKind as h } from "./
2
2
  import { axes as E, planes as T, AngleDataSource as c, limbAngle as v, jointAngle as w } from "./types.js";
3
3
  import "./moment-vendor-DMLRxgRE.js";
4
4
  import { memo as m, capitalizeAll as x } from "./utils.js";
5
- const ue = (e) => {
6
- switch (e) {
7
- case l.IsolatedMovement:
8
- return "Isolated Movement";
9
- case l.FunctionalMovement:
10
- return "Functional Movement";
11
- case l.ActionPrecursor:
12
- return "Action Precursor";
13
- case l.IsolatedAction:
14
- return "Isolated Action";
15
- }
16
- }, Re = (e) => {
17
- switch (e) {
18
- case L.BiofeedbackTraining:
19
- return "Biofeedback (Training)";
20
- case L.BiofeedbackTesting:
21
- return "Biofeedback (Testing)";
22
- case L.RecordedTesting:
23
- return "Recorded (Testing)";
24
- }
25
- }, Le = (e) => {
26
- switch (e) {
27
- case l.IsolatedMovement:
28
- return h.Movement;
29
- case l.FunctionalMovement:
30
- return h.Movement;
31
- case l.ActionPrecursor:
32
- return h.Action;
33
- case l.IsolatedAction:
34
- return h.Action;
35
- default:
36
- return h.Action;
37
- }
38
- }, b = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, N = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, F = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, M = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, C = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, P = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, B = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -75, max: 60 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -45, max: 45 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -80, max: 80 } }, H = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -25, max: 50 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -25, max: 25 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -30, max: 30 } }, U = { __COMMENT__: "This is the sum of the ChestSpine and NavalSpine", sagittal: { __COMMENT__: "-Extension, +Flexion", min: -100, max: 110 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -70, max: 70 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -110, max: 110 } }, O = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, K = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, y = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, j = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, _ = {
5
+ const b = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, N = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, F = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, M = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, C = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, P = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, B = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -75, max: 60 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -45, max: 45 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -80, max: 80 } }, H = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -25, max: 50 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -25, max: 25 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -30, max: 30 } }, U = { __COMMENT__: "This is the sum of the ChestSpine and NavalSpine", sagittal: { __COMMENT__: "-Extension, +Flexion", min: -100, max: 110 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -70, max: 70 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -110, max: 110 } }, O = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, K = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, y = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, j = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, _ = {
39
6
  LeftAnkle: b,
40
7
  RightAnkle: N,
41
8
  LeftKnee: F,
@@ -83,7 +50,7 @@ const ue = (e) => {
83
50
  LeftElbow: "Left Elbow",
84
51
  RightElbow: "Right Elbow",
85
52
  Neck: "Neck"
86
- }, de = {
53
+ }, ue = {
87
54
  LeftFoot: ["LeftAnkle"],
88
55
  RightFoot: ["RightAnkle"],
89
56
  LeftShank: ["LeftKnee", "LeftAnkle"],
@@ -136,7 +103,7 @@ const ue = (e) => {
136
103
  { id: "RightUpperArm", name: i.RightUpperArm },
137
104
  { id: "LeftForearm", name: i.LeftForearm },
138
105
  { id: "RightForearm", name: i.RightForearm }
139
- ], xe = (e) => k().filter((t) => e.find((n) => n == t.id)), J = () => [
106
+ ], Re = (e) => k().filter((t) => e.find((n) => n == t.id)), J = () => [
140
107
  { id: "LeftAnkle", name: a.LeftAnkle },
141
108
  { id: "RightAnkle", name: a.RightAnkle },
142
109
  { id: "LeftKnee", name: a.LeftKnee },
@@ -180,7 +147,7 @@ const ue = (e) => {
180
147
  { id: "LeftElbow", name: a.LeftElbow },
181
148
  { id: "RightElbow", name: a.RightElbow },
182
149
  { id: "Neck", name: a.Neck }
183
- ], pe = () => [
150
+ ], Le = () => [
184
151
  { id: "Head", name: i.Head },
185
152
  { id: "LeftThigh", name: i.LeftThigh },
186
153
  { id: "RightThigh", name: i.RightThigh },
@@ -194,7 +161,7 @@ const ue = (e) => {
194
161
  { id: "RightUpperArm", name: i.RightUpperArm },
195
162
  { id: "LeftForearm", name: i.LeftForearm },
196
163
  { id: "RightForearm", name: i.RightForearm }
197
- ], _e = (e) => $().filter((n) => A[n.id].every((r) => e.includes(r))), Ae = (e) => D().filter((n) => A[n.id].every((r) => e.includes(r))), I = (e, t, n) => {
164
+ ], de = (e) => $().filter((n) => A[n.id].every((r) => e.includes(r))), xe = (e) => D().filter((n) => A[n.id].every((r) => e.includes(r))), I = (e, t, n) => {
198
165
  if (n)
199
166
  return ["frontal", "sagittal", "transverse"];
200
167
  switch (e) {
@@ -432,7 +399,7 @@ const ue = (e) => {
432
399
  return null;
433
400
  }
434
401
  }
435
- ), ke = m(
402
+ ), pe = m(
436
403
  (e, t) => {
437
404
  switch (e) {
438
405
  case "LeftAnkle":
@@ -486,7 +453,7 @@ const ue = (e) => {
486
453
  }
487
454
  return { min: -10, max: 10 };
488
455
  }
489
- ), Se = m(
456
+ ), _e = m(
490
457
  (e, t) => {
491
458
  switch (e) {
492
459
  case "LeftFoot":
@@ -559,7 +526,7 @@ const ue = (e) => {
559
526
  }
560
527
  return { min: -10, max: 10 };
561
528
  }
562
- ), Ee = m(
529
+ ), Ae = m(
563
530
  (e, t) => {
564
531
  switch (e) {
565
532
  case "LeftAnkle":
@@ -639,11 +606,11 @@ const ue = (e) => {
639
606
  kind: "angular_velocity",
640
607
  value: e,
641
608
  plane: t
642
- }), Z = (e) => E.includes(e), Te = (e) => T.includes(e), ee = (e) => typeof e == "object" && e !== null && "id" in e && "name" in e && !!k().find((t) => t.id === e.id), te = (e) => typeof e == "object" && e !== null && "id" in e && "name" in e && !!J().find((t) => t.id === e.id), ve = (e, t, n = !1) => Z(t) ? ee(e) ? Q(e, t) : ne(
609
+ }), Z = (e) => E.includes(e), ke = (e) => T.includes(e), ee = (e) => typeof e == "object" && e !== null && "id" in e && "name" in e && !!k().find((t) => t.id === e.id), te = (e) => typeof e == "object" && e !== null && "id" in e && "name" in e && !!J().find((t) => t.id === e.id), Se = (e, t, n = !1) => Z(t) ? ee(e) ? Q(e, t) : ne(
643
610
  `Can't make acceleration part from joint: ${e} ${t}`
644
- ) : te(e) ? n ? Y(e, t) : X(e, t) : G(e, t), we = (e) => e.kind === "acceleration" ? e.axis : e.plane, be = (e) => e?.kind === "acceleration" ? e.axis : null, Ne = (e) => e?.kind === "acceleration" ? null : e?.plane ?? null, ne = (e) => {
611
+ ) : te(e) ? n ? Y(e, t) : X(e, t) : G(e, t), Ee = (e) => e.kind === "acceleration" ? e.axis : e.plane, Te = (e) => e?.kind === "acceleration" ? e.axis : null, ve = (e) => e?.kind === "acceleration" ? null : e?.plane ?? null, ne = (e) => {
645
612
  throw new Error(e);
646
- }, R = (e) => e in a ? a[e] : e in i ? i[e] : "Unknown", Fe = (e) => R(e).replace(/Left|Right/g, ""), ae = (e) => e in _, ie = (e, t) => {
613
+ }, R = (e) => e in a ? a[e] : e in i ? i[e] : "Unknown", we = (e) => R(e).replace(/Left|Right/g, ""), ae = (e) => e in _, ie = (e, t) => {
647
614
  if (!ae(e))
648
615
  return null;
649
616
  const n = _[e];
@@ -655,16 +622,16 @@ const ue = (e) => {
655
622
  };
656
623
  }
657
624
  return null;
658
- }, Me = (...e) => {
625
+ }, be = (...e) => {
659
626
  const t = ie(...e);
660
627
  return t ? Math.abs(t.max - t.min) : 0;
661
628
  }, re = (e, t) => {
662
629
  const n = Object.keys(i).find((r) => r === t), s = Object.keys(a).find((r) => r === t);
663
630
  return !n && !s ? null : n ? e.limbs[t].sensor_angle ? c.Sensor : c.Pose : e.joints[t].sensor_angle ? c.Sensor : c.Pose;
664
- }, Ce = (e, t, n) => {
631
+ }, Ne = (e, t, n) => {
665
632
  const s = Object.keys(a).find((o) => o === t), r = re(e, t);
666
633
  return r ? s ? I(t, r).includes(n) : z(t, r).includes(n) : !1;
667
- }, Pe = (e, t, n) => {
634
+ }, Fe = (e, t, n) => {
668
635
  const s = Object.keys(i).find((o) => o === t), r = Object.keys(a).find((o) => o === t);
669
636
  if (!s && !r)
670
637
  throw new Error(
@@ -747,7 +714,7 @@ const ue = (e) => {
747
714
  return `${s} (${S})`;
748
715
  }
749
716
  return `${s} (${t})`;
750
- }, Be = (e, t) => {
717
+ }, Me = (e, t) => {
751
718
  let n;
752
719
  switch (t) {
753
720
  case "x":
@@ -763,7 +730,7 @@ const ue = (e) => {
763
730
  }, ce = (e, t, n = !1) => {
764
731
  const s = R(e), r = se(e, t, n);
765
732
  return r ? `${s} (${r})` : null;
766
- }, He = (e, t) => ce(e, t) || oe(e, t), p = (e, t, n, s = !1) => {
733
+ }, Ce = (e, t) => ce(e, t) || oe(e, t), p = (e, t, n, s = !1) => {
767
734
  const r = s ? V : W, o = s ? q : d, [g, f] = e === "joint" ? [
768
735
  r(t, n, 1),
769
736
  r(t, n, -1)
@@ -785,63 +752,96 @@ const ue = (e) => {
785
752
  e.partId,
786
753
  e.partDimension,
787
754
  t
788
- ), Ue = (e, t, n = !1) => {
755
+ ), Pe = (e, t, n = !1) => {
789
756
  const { positive: s, negative: r } = le(
790
757
  t,
791
758
  n
792
759
  );
793
760
  return e >= 0 ? s : r;
761
+ }, Be = (e) => {
762
+ switch (e) {
763
+ case l.IsolatedMovement:
764
+ return "Isolated Movement";
765
+ case l.FunctionalMovement:
766
+ return "Functional Movement";
767
+ case l.ActionPrecursor:
768
+ return "Action Precursor";
769
+ case l.IsolatedAction:
770
+ return "Isolated Action";
771
+ }
772
+ }, He = (e) => {
773
+ switch (e) {
774
+ case L.BiofeedbackTraining:
775
+ return "Biofeedback (Training)";
776
+ case L.BiofeedbackTesting:
777
+ return "Biofeedback (Testing)";
778
+ case L.RecordedTesting:
779
+ return "Recorded (Testing)";
780
+ }
781
+ }, Ue = (e) => {
782
+ switch (e) {
783
+ case l.IsolatedMovement:
784
+ return h.Movement;
785
+ case l.FunctionalMovement:
786
+ return h.Movement;
787
+ case l.ActionPrecursor:
788
+ return h.Action;
789
+ case l.IsolatedAction:
790
+ return h.Action;
791
+ default:
792
+ return h.Action;
793
+ }
794
794
  };
795
795
  export {
796
- Le as getActivityKindFromActivityType,
796
+ Ue as getActivityKindFromActivityType,
797
797
  J as getAllAvailableJoints,
798
798
  k as getAllAvailableLimbs,
799
799
  D as getAllAvailablePoseJoints,
800
- pe as getAllAvailablePoseLimbs,
800
+ Le as getAllAvailablePoseLimbs,
801
801
  $ as getAllAvailableSensorJoints,
802
802
  p as getAngleDirectionNames,
803
- xe as getAvailableLimbsForLimbIds,
804
- Ae as getAvailablePoseJointsForLimbIds,
805
- _e as getAvailableSensorJointsForLimbIds,
806
- be as getAxis,
803
+ Re as getAvailableLimbsForLimbIds,
804
+ xe as getAvailablePoseJointsForLimbIds,
805
+ de as getAvailableSensorJointsForLimbIds,
806
+ Te as getAxis,
807
807
  re as getDefaultAngleSource,
808
- ke as getDefaultJointRange,
809
- Se as getDefaultLimbRange,
808
+ pe as getDefaultJointRange,
809
+ _e as getDefaultLimbRange,
810
810
  I as getEnabledJointPlanes,
811
811
  z as getEnabledSegmentPlanes,
812
- Pe as getHumanBodyAngle,
813
- Ce as getIsDefaultAngleAllowed,
812
+ Fe as getHumanBodyAngle,
813
+ Ne as getIsDefaultAngleAllowed,
814
814
  V as getJointAngleDirectionAbbr,
815
815
  W as getJointAngleDirectionName,
816
816
  ce as getJointNameWithPlane,
817
- He as getJointOrSegmentNameWithPlane,
817
+ Ce as getJointOrSegmentNameWithPlane,
818
818
  se as getJointPlaneName,
819
- Ee as getNormativeJointRange,
820
- Ue as getParameterAngleDirectionName,
819
+ Ae as getNormativeJointRange,
820
+ Pe as getParameterAngleDirectionName,
821
821
  le as getParameterDirectionNames,
822
822
  R as getPartName,
823
- Fe as getPartNameNoSide,
824
- Ne as getPlane,
823
+ we as getPartNameNoSide,
824
+ ve as getPlane,
825
825
  q as getSegmentAngleDirectionAbbr,
826
826
  d as getSegmentAngleDirectionName,
827
827
  oe as getSegmentNameWithPlane,
828
- Be as getSegmentXyzName,
828
+ Me as getSegmentXyzName,
829
829
  ie as getTypicalRom,
830
- Me as getTypicalRomSize,
830
+ be as getTypicalRomSize,
831
831
  Z as isAxis,
832
832
  te as isJoint,
833
833
  ee as isLimb,
834
- Te as isPlane,
834
+ ke as isPlane,
835
835
  a as jointNames,
836
- de as jointsUsedByLimbs,
836
+ ue as jointsUsedByLimbs,
837
837
  i as limbNames,
838
838
  A as limbsRequiredForJoints,
839
- ue as mapActivityTypeEnumToLabel,
840
- Re as mapSessionTypeEnumToLabel,
839
+ Be as mapActivityTypeEnumToLabel,
840
+ He as mapSessionTypeEnumToLabel,
841
841
  Q as mkAccelerationPart,
842
842
  Y as mkAngularVelocityPart,
843
- ve as mkHumanPart,
843
+ Se as mkHumanPart,
844
844
  X as mkJointPart,
845
845
  G as mkLimbPart,
846
- we as planeOrAxis
846
+ Ee as planeOrAxis
847
847
  };
@@ -0,0 +1 @@
1
+ "use strict";const q=require("react"),L=require("./other-Dp3RPYfF.cjs");var T=q.useLayoutEffect,S=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function M(r,t){return!!(r===t||S(r)&&S(t))}function C(r,t){if(r.length!==t.length)return!1;for(var e=0;e<r.length;e++)if(!M(r[e],t[e]))return!1;return!0}function Y(r,t){t===void 0&&(t=C);var e=null;function n(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];if(e&&e.lastThis===this&&t(o,e.lastArgs))return e.lastResult;var i=r.apply(this,o);return e={lastResult:i,lastArgs:o,lastThis:this},i}return n.clear=function(){e=null},n}function l(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var D=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),j=function(){return Math.random().toString(36).substring(7).split("").join(".")},I={INIT:"@@redux/INIT"+j(),REPLACE:"@@redux/REPLACE"+j()};function z(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function F(r){if(r===void 0)return"undefined";if(r===null)return"null";var t=typeof r;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(r))return"array";if(K(r))return"date";if($(r))return"error";var e=W(r);switch(e){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return e}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function W(r){return typeof r.constructor=="function"?r.constructor.name:null}function $(r){return r instanceof Error||typeof r.message=="string"&&r.constructor&&typeof r.constructor.stackTraceLimit=="number"}function K(r){return r instanceof Date?!0:typeof r.toDateString=="function"&&typeof r.getDate=="function"&&typeof r.setDate=="function"}function y(r){var t=typeof r;return process.env.NODE_ENV!=="production"&&(t=F(r)),t}function k(r,t,e){var n;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?l(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?l(1):"Expected the enhancer to be a function. Instead, received: '"+y(e)+"'");return e(k)(r,t)}if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?l(2):"Expected the root reducer to be a function. Instead, received: '"+y(r)+"'");var o=r,s=t,i=[],u=i,a=!1;function d(){u===i&&(u=i.slice())}function p(){if(a)throw new Error(process.env.NODE_ENV==="production"?l(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function c(f){if(typeof f!="function")throw new Error(process.env.NODE_ENV==="production"?l(4):"Expected the listener to be a function. Instead, received: '"+y(f)+"'");if(a)throw new Error(process.env.NODE_ENV==="production"?l(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var g=!0;return d(),u.push(f),function(){if(g){if(a)throw new Error(process.env.NODE_ENV==="production"?l(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");g=!1,d();var h=u.indexOf(f);u.splice(h,1),i=null}}}function v(f){if(!z(f))throw new Error(process.env.NODE_ENV==="production"?l(7):"Actions must be plain objects. Instead, the actual type was: '"+y(f)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof f.type>"u")throw new Error(process.env.NODE_ENV==="production"?l(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(a)throw new Error(process.env.NODE_ENV==="production"?l(9):"Reducers may not dispatch actions.");try{a=!0,s=o(s,f)}finally{a=!1}for(var g=i=u,b=0;b<g.length;b++){var h=g[b];h()}return f}function x(f){if(typeof f!="function")throw new Error(process.env.NODE_ENV==="production"?l(10):"Expected the nextReducer to be a function. Instead, received: '"+y(f));o=f,v({type:I.REPLACE})}function R(){var f,g=c;return f={subscribe:function(h){if(typeof h!="object"||h===null)throw new Error(process.env.NODE_ENV==="production"?l(11):"Expected the observer to be an object. Instead, received: '"+y(h)+"'");function N(){h.next&&h.next(p())}N();var _=g(N);return{unsubscribe:_}}},f[D]=function(){return this},f}return v({type:I.INIT}),n={dispatch:v,subscribe:c,getState:p,replaceReducer:x},n[D]=R,n}var O,P;function B(){return P||(P=1,O=function r(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,o,s;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(o=n;o--!==0;)if(!r(t[o],e[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!r(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}),O}var G=B();const H=L.getDefaultExportFromCjs(G);var V=()=>{},m=V;function E(r){return{tag:0,0:r}}function w(r){return{tag:1,0:r}}var A=()=>typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator",J=r=>r;function Q(r){return t=>e=>{var n=m;t((o=>{o===0?e(0):o.tag===0?(n=o[0],e(o)):r(o[0])?e(o):n(0)}))}}function U(r){return t=>e=>t((n=>{n===0||n.tag===0?e(n):e(w(r(n[0])))}))}function X(r){return t=>e=>{var n=[],o=m,s=!1,i=!1;t((u=>{i||(u===0?(i=!0,n.length||e(0)):u.tag===0?o=u[0]:(s=!1,(function(d){var p=m;d((c=>{if(c===0){if(n.length){var v=n.indexOf(p);v>-1&&(n=n.slice()).splice(v,1),n.length||(i?e(0):s||(s=!0,o(0)))}}else c.tag===0?(n.push(p=c[0]),p(0)):n.length&&(e(c),p(0))}))})(r(u[0])),s||(s=!0,o(0))))})),e(E((u=>{if(u===1){i||(i=!0,o(1));for(var a=0,d=n,p=n.length;a<p;a++)d[a](1);n.length=0}else{!i&&!s?(s=!0,o(0)):s=!1;for(var c=0,v=n,x=n.length;c<x;c++)v[c](0)}})))}}function Z(r){return X(J)(r)}function ee(r){return Z(ie(r))}function te(r){return t=>e=>t((n=>{n===0?e(0):n.tag===0?(e(n),r()):e(n)}))}function re(r){var t=[],e=m,n=!1;return o=>{t.push(o),t.length===1&&r((s=>{if(s===0){for(var i=0,u=t,a=t.length;i<a;i++)u[i](0);t.length=0}else if(s.tag===0)e=s[0];else{n=!1;for(var d=0,p=t,c=t.length;d<c;d++)p[d](s)}})),o(E((s=>{if(s===1){var i=t.indexOf(o);i>-1&&(t=t.slice()).splice(i,1),t.length||e(1)}else n||(n=!0,e(0))})))}}function ne(r){return t=>e=>{var n=m,o=!1,s=0;t((i=>{o||(i===0?(o=!0,e(0)):i.tag===0?n=i[0]:s++<r?(e(i),!o&&s>=r&&(o=!0,e(0),n(1))):e(i))})),e(E((i=>{i===1&&!o?(o=!0,n(1)):i===0&&!o&&s<r&&n(0)})))}}function oe(r){return t=>{var e=r[A()]&&r[A()]()||r,n=!1,o=!1,s=!1,i;t(E((async u=>{if(u===1)n=!0,e.return&&e.return();else if(o)s=!0;else{for(s=o=!0;s&&!n;)if((i=await e.next()).done)n=!0,e.return&&await e.return(),t(0);else try{s=!1,t(w(i.value))}catch(a){if(e.throw)(n=!!(await e.throw(a)).done)&&t(0);else throw a}o=!1}})))}}function se(r){return r[Symbol.asyncIterator]?oe(r):t=>{var e=r[Symbol.iterator](),n=!1,o=!1,s=!1,i;t(E((u=>{if(u===1)n=!0,e.return&&e.return();else if(o)s=!0;else{for(s=o=!0;s&&!n;)if((i=e.next()).done)n=!0,e.return&&e.return(),t(0);else try{s=!1,t(w(i.value))}catch(a){if(e.throw)(n=!!e.throw(a).done)&&t(0);else throw a}o=!1}})))}}var ie=se;function ue(r){return t=>{var e=!1,n=r({next(o){e||t(w(o))},complete(){e||(e=!0,t(0))}});t(E((o=>{o===1&&!e&&(e=!0,n())})))}}function ae(){var r,t;return{source:re(ue((e=>(r=e.next,t=e.complete,V)))),next(e){r&&r(e)},complete(){t&&t()}}}function fe(r){return new Promise((t=>{var e=m,n;r((o=>{o===0?Promise.resolve(n).then(t):o.tag===0?(e=o[0])(0):(n=o[0],e(0))}))}))}exports.createStore=k;exports.equal=H;exports.filter=Q;exports.index=T;exports.makeSubject=ae;exports.map=U;exports.memoizeOne=Y;exports.merge=ee;exports.onStart=te;exports.take=ne;exports.toPromise=fe;