@synnaxlabs/x 0.24.0 → 0.25.0

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.
Files changed (164) hide show
  1. package/.turbo/turbo-build.log +41 -42
  2. package/dist/binary.cjs +3 -3
  3. package/dist/binary.js +35 -35
  4. package/dist/bounds-CpboA0q6.js +127 -0
  5. package/dist/bounds-ZZc1c-_Z.cjs +1 -0
  6. package/dist/bounds.cjs +1 -1
  7. package/dist/bounds.js +1 -1
  8. package/dist/{box-m3dlc1kR.cjs → box-BcFruCBW.cjs} +1 -1
  9. package/dist/{box-C92jYSNY.js → box-DC5oviHL.js} +5 -8
  10. package/dist/box.cjs +1 -1
  11. package/dist/box.js +1 -1
  12. package/dist/caseconv.cjs +1 -1
  13. package/dist/caseconv.js +1 -1
  14. package/dist/compare.cjs +1 -1
  15. package/dist/compare.js +1 -1
  16. package/dist/deep.cjs +1 -1
  17. package/dist/deep.js +35 -51
  18. package/dist/{dimensions-BAuHfd-b.js → dimensions-D-1PnJVI.js} +1 -2
  19. package/dist/dimensions.js +1 -1
  20. package/dist/{external-DI9122wF.js → external-CO221aaF.js} +4 -8
  21. package/dist/index-2SfxIaaU.cjs +1 -0
  22. package/dist/index-CQk9JICS.js +41 -0
  23. package/dist/index-CvHP07Bs.cjs +1 -0
  24. package/dist/{index-Bt5ivtN9.js → index-DCwgKLH_.js} +9 -14
  25. package/dist/index.cjs +2 -2
  26. package/dist/index.js +155 -137
  27. package/dist/{location-CfP9TAnW.js → location-D4yS2DfR.js} +1 -1
  28. package/dist/{location-c3g6WKs-.cjs → location-wMqTcQ0n.cjs} +1 -1
  29. package/dist/location.cjs +1 -1
  30. package/dist/location.js +1 -1
  31. package/dist/observe.cjs +1 -1
  32. package/dist/observe.js +2 -3
  33. package/dist/path-Coj1BKMh.cjs +1 -0
  34. package/dist/path-DH9iaDDf.js +58 -0
  35. package/dist/{position-BBnkwGX1.cjs → position-DolPXOLe.cjs} +1 -1
  36. package/dist/{position-B_aphAR0.js → position-DvsYXRzE.js} +4 -6
  37. package/dist/position.cjs +1 -1
  38. package/dist/position.js +1 -1
  39. package/dist/runtime.js +1 -1
  40. package/dist/{scale-CgtgqlYU.js → scale-6y6-BcVI.js} +42 -40
  41. package/dist/scale-D_uVU2Fw.cjs +1 -0
  42. package/dist/scale.cjs +1 -1
  43. package/dist/scale.js +1 -1
  44. package/dist/search.js +1 -2
  45. package/dist/{series-DCJSrg1P.js → series-B3wKdjpi.js} +118 -141
  46. package/dist/series-PoUlr-RX.cjs +11 -0
  47. package/dist/spatial.cjs +1 -1
  48. package/dist/spatial.js +7 -7
  49. package/dist/src/binary/encoder.d.ts.map +1 -1
  50. package/dist/src/caseconv/caseconv.d.ts +41 -4
  51. package/dist/src/caseconv/caseconv.d.ts.map +1 -1
  52. package/dist/src/caseconv/caseconv.spec.d.ts +2 -0
  53. package/dist/src/caseconv/caseconv.spec.d.ts.map +1 -0
  54. package/dist/src/change/change.d.ts.map +1 -1
  55. package/dist/src/clamp/clamp.d.ts +3 -1
  56. package/dist/src/clamp/clamp.d.ts.map +1 -1
  57. package/dist/src/compare/compare.d.ts +1 -1
  58. package/dist/src/compare/compare.d.ts.map +1 -1
  59. package/dist/src/control/control.d.ts.map +1 -1
  60. package/dist/src/debounce/debounce.d.ts.map +1 -1
  61. package/dist/src/deep/copy.d.ts.map +1 -1
  62. package/dist/src/deep/delete.d.ts.map +1 -1
  63. package/dist/src/deep/difference.d.ts.map +1 -1
  64. package/dist/src/deep/equal.d.ts +8 -2
  65. package/dist/src/deep/equal.d.ts.map +1 -1
  66. package/dist/src/deep/merge.d.ts +1 -1
  67. package/dist/src/deep/merge.d.ts.map +1 -1
  68. package/dist/src/deep/path.d.ts +1 -3
  69. package/dist/src/deep/path.d.ts.map +1 -1
  70. package/dist/src/errors/errors.d.ts +12 -0
  71. package/dist/src/errors/errors.d.ts.map +1 -0
  72. package/dist/src/errors/index.d.ts +2 -0
  73. package/dist/src/errors/index.d.ts.map +1 -0
  74. package/dist/src/id/id.d.ts +4 -0
  75. package/dist/src/id/id.d.ts.map +1 -0
  76. package/dist/src/id/index.d.ts +2 -0
  77. package/dist/src/id/index.d.ts.map +1 -0
  78. package/dist/src/identity.d.ts.map +1 -1
  79. package/dist/src/index.d.ts +2 -0
  80. package/dist/src/index.d.ts.map +1 -1
  81. package/dist/src/math/math.d.ts.map +1 -1
  82. package/dist/src/migrate/migrate.d.ts +25 -2
  83. package/dist/src/migrate/migrate.d.ts.map +1 -1
  84. package/dist/src/mock/MockGLBufferController.d.ts +1 -1
  85. package/dist/src/numeric/index.d.ts +2 -0
  86. package/dist/src/numeric/index.d.ts.map +1 -0
  87. package/dist/src/numeric/numeric.d.ts +3 -0
  88. package/dist/src/numeric/numeric.d.ts.map +1 -0
  89. package/dist/src/record.d.ts +1 -1
  90. package/dist/src/record.d.ts.map +1 -1
  91. package/dist/src/runtime/os.d.ts.map +1 -1
  92. package/dist/src/search.d.ts +1 -1
  93. package/dist/src/search.d.ts.map +1 -1
  94. package/dist/src/shallowCopy.d.ts.map +1 -1
  95. package/dist/src/spatial/bounds/bounds.d.ts +19 -17
  96. package/dist/src/spatial/bounds/bounds.d.ts.map +1 -1
  97. package/dist/src/spatial/box/box.d.ts +1 -14
  98. package/dist/src/spatial/box/box.d.ts.map +1 -1
  99. package/dist/src/spatial/dimensions/dimensions.d.ts +1 -1
  100. package/dist/src/spatial/direction/direction.d.ts +1 -1
  101. package/dist/src/spatial/direction/direction.d.ts.map +1 -1
  102. package/dist/src/spatial/location/location.d.ts +3 -3
  103. package/dist/src/spatial/location/location.d.ts.map +1 -1
  104. package/dist/src/spatial/position/position.d.ts +2 -2
  105. package/dist/src/spatial/position/position.d.ts.map +1 -1
  106. package/dist/src/spatial/scale/scale.d.ts +27 -23
  107. package/dist/src/spatial/scale/scale.d.ts.map +1 -1
  108. package/dist/src/spatial/xy/xy.d.ts +1 -1
  109. package/dist/src/spatial/xy/xy.d.ts.map +1 -1
  110. package/dist/src/telem/series.d.ts +3 -3
  111. package/dist/src/telem/series.d.ts.map +1 -1
  112. package/dist/src/telem/telem.d.ts +2 -2
  113. package/dist/src/telem/telem.d.ts.map +1 -1
  114. package/dist/src/toArray.d.ts.map +1 -1
  115. package/dist/src/unique.d.ts.map +1 -1
  116. package/dist/src/url/url.d.ts.map +1 -1
  117. package/dist/src/zodutil/zodutil.d.ts +1 -1
  118. package/dist/telem.cjs +1 -1
  119. package/dist/telem.js +1 -1
  120. package/dist/url.cjs +1 -1
  121. package/dist/url.js +1 -1
  122. package/dist/worker.cjs +1 -1
  123. package/dist/worker.js +1 -1
  124. package/dist/{xy-D1ZbIqpT.js → xy-CrgPnICw.js} +1 -2
  125. package/dist/xy.js +1 -1
  126. package/dist/zodutil.cjs +1 -1
  127. package/dist/zodutil.js +2 -3
  128. package/package.json +7 -7
  129. package/src/binary/encoder.spec.ts +1 -1
  130. package/src/binary/encoder.ts +4 -2
  131. package/src/caseconv/caseconv.spec.ts +121 -0
  132. package/src/caseconv/caseconv.ts +114 -14
  133. package/src/clamp/clamp.ts +5 -3
  134. package/src/compare/compare.ts +2 -2
  135. package/src/deep/delete.spec.ts +38 -1
  136. package/src/deep/delete.ts +1 -2
  137. package/src/deep/path.ts +0 -7
  138. package/src/errors/errors.ts +17 -0
  139. package/src/errors/index.ts +1 -0
  140. package/src/id/id.ts +14 -0
  141. package/src/id/index.ts +10 -0
  142. package/src/index.ts +2 -0
  143. package/src/migrate/migrate.spec.ts +7 -0
  144. package/src/migrate/migrate.ts +16 -4
  145. package/src/numeric/index.ts +1 -0
  146. package/src/numeric/numeric.ts +6 -0
  147. package/src/record.ts +1 -1
  148. package/src/spatial/bounds/bounds.spec.ts +47 -0
  149. package/src/spatial/bounds/bounds.ts +36 -20
  150. package/src/spatial/scale/scale.spec.ts +5 -5
  151. package/src/spatial/scale/scale.ts +75 -59
  152. package/src/telem/series.ts +9 -6
  153. package/src/telem/telem.spec.ts +24 -1
  154. package/src/telem/telem.ts +1 -1
  155. package/tsconfig.tsbuildinfo +1 -1
  156. package/dist/bounds-Bh_QBZZK.cjs +0 -1
  157. package/dist/bounds-Dmn-hd_-.js +0 -129
  158. package/dist/index-BpCPHf78.cjs +0 -1
  159. package/dist/index-BwkQTA-j.js +0 -360
  160. package/dist/index-CuG8fceO.cjs +0 -1
  161. package/dist/path-BO4pyGZf.cjs +0 -1
  162. package/dist/path-nTHmt_4i.js +0 -65
  163. package/dist/scale-C8axypQ2.cjs +0 -1
  164. package/dist/series-8E6FnWBU.cjs +0 -11
@@ -1,30 +1,32 @@
1
- var B = Object.defineProperty;
2
- var R = (r, t, e) => t in r ? B(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
- var i = (r, t, e) => (R(r, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { z as v } from "zod";
5
- import { c as y } from "./bounds-Dmn-hd_-.js";
6
- import { e as T, f as x, y as h, c as E } from "./box-C92jYSNY.js";
7
- import { b as I } from "./location-CfP9TAnW.js";
8
- import { b as w, c as M } from "./xy-D1ZbIqpT.js";
9
- const Y = (r, t, e) => (t != null && (r = Math.max(r, t)), e != null && (r = Math.min(r, e)), r), j = v.object({ offset: w, scale: w }), z = (r) => (t, e, s, n) => e === "dimension" ? [t, s] : [t, n ? s - r : s + r], D = (r) => (t, e, s, n) => [t, n ? s / r : s * r], L = (r) => (t, e, s) => {
10
- if (t === null)
11
- return [r, s];
12
- const { lower: n, upper: o } = t, { lower: u, upper: p } = r, m = o - n, d = p - u;
13
- if (e === "dimension")
14
- return [r, s * (d / m)];
15
- const g = (s - n) * (d / m) + u;
16
- return [r, g];
1
+ var g = Object.defineProperty;
2
+ var B = (r, t, e) => t in r ? g(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var i = (r, t, e) => B(r, typeof t != "symbol" ? t + "" : t, e);
4
+ import { z as R } from "zod";
5
+ import { c as l } from "./bounds-CpboA0q6.js";
6
+ import { e as T, f as x, y as h, c as E } from "./box-DC5oviHL.js";
7
+ import { b as I } from "./location-D4yS2DfR.js";
8
+ import { b as w, c as Y } from "./xy-CrgPnICw.js";
9
+ const j = (r, t, e) => t !== void 0 && r < t ? t : e !== void 0 && r > e ? e : r, z = R.object({ offset: w, scale: w }), D = (r) => (t, e, s, n) => e === "dimension" ? [t, s] : [
10
+ t,
11
+ n ? s - r : s + r
12
+ ], L = (r) => (t, e, s, n) => [
13
+ t,
14
+ n ? s / r : s * r
15
+ ], M = (r) => (t, e, s) => {
16
+ if (t === null) return [r, s];
17
+ const { lower: n, upper: o } = t, { lower: a, upper: p } = r, d = o - n, m = p - a;
18
+ if (e === "dimension") return [r, s * (m / d)];
19
+ const v = (s - n) * (m / d) + a;
20
+ return [r, v];
17
21
  }, N = (r) => (t, e, s) => [r, s], O = () => (r, t, e) => {
18
- if (r === null)
19
- throw new Error("cannot invert without bounds");
20
- if (t === "dimension")
21
- return [r, e];
22
+ if (r === null) throw new Error("cannot invert without bounds");
23
+ if (t === "dimension") return [r, e];
22
24
  const { lower: s, upper: n } = r;
23
25
  return [r, n - (e - s)];
24
26
  }, U = (r) => (t, e, s) => {
25
27
  const { lower: n, upper: o } = r;
26
- return s = Y(s, n, o), [t, s];
27
- }, a = class a {
28
+ return s = j(s, n, o), [t, s];
29
+ }, u = class u {
28
30
  constructor() {
29
31
  i(this, "ops", []);
30
32
  i(this, "currBounds", null);
@@ -33,32 +35,32 @@ const Y = (r, t, e) => (t != null && (r = Math.max(r, t)), e != null && (r = Mat
33
35
  this.ops = [];
34
36
  }
35
37
  static translate(t) {
36
- return new a().translate(t);
38
+ return new u().translate(t);
37
39
  }
38
40
  static magnify(t) {
39
- return new a().magnify(t);
41
+ return new u().magnify(t);
40
42
  }
41
43
  static scale(t, e) {
42
- return new a().scale(t, e);
44
+ return new u().scale(t, e);
43
45
  }
44
46
  translate(t) {
45
- const e = this.new(), s = z(t);
47
+ const e = this.new(), s = D(t);
46
48
  return s.type = "translate", e.ops.push(s), e;
47
49
  }
48
50
  magnify(t) {
49
- const e = this.new(), s = D(t);
51
+ const e = this.new(), s = L(t);
50
52
  return s.type = "magnify", e.ops.push(s), e;
51
53
  }
52
54
  scale(t, e) {
53
- const s = y(t, e), n = this.new(), o = L(s);
55
+ const s = l(t, e), n = this.new(), o = M(s);
54
56
  return o.type = "scale", n.ops.push(o), n;
55
57
  }
56
58
  clamp(t, e) {
57
- const s = y(t, e), n = this.new(), o = U(s);
59
+ const s = l(t, e), n = this.new(), o = U(s);
58
60
  return o.type = "clamp", n.ops.push(o), n;
59
61
  }
60
62
  reBound(t, e) {
61
- const s = y(t, e), n = this.new(), o = N(s);
63
+ const s = l(t, e), n = this.new(), o = N(s);
62
64
  return o.type = "re-bound", n.ops.push(o), n;
63
65
  }
64
66
  invert() {
@@ -74,7 +76,7 @@ const Y = (r, t, e) => (t != null && (r = Math.max(r, t)), e != null && (r = Mat
74
76
  return this.exec("dimension", t);
75
77
  }
76
78
  new() {
77
- const t = new a();
79
+ const t = new u();
78
80
  return t.ops = this.ops.slice(), t.reversed = this.reversed, t;
79
81
  }
80
82
  exec(t, e) {
@@ -88,9 +90,9 @@ const Y = (r, t, e) => (t != null && (r = Math.max(r, t)), e != null && (r = Mat
88
90
  t.ops.reverse();
89
91
  const e = [];
90
92
  return t.ops.forEach((s, n) => {
91
- if (s.type === "scale" || e.some(([u, p]) => n >= u && n <= p))
93
+ if (s.type === "scale" || e.some(([a, p]) => n >= a && n <= p))
92
94
  return;
93
- const o = t.ops.findIndex((u, p) => u.type === "scale" && p > n);
95
+ const o = t.ops.findIndex((a, p) => a.type === "scale" && p > n);
94
96
  o !== -1 && e.push([n, o]);
95
97
  }), e.forEach(([s, n]) => {
96
98
  const o = t.ops.slice(s, n);
@@ -98,8 +100,8 @@ const Y = (r, t, e) => (t != null && (r = Math.max(r, t)), e != null && (r = Mat
98
100
  }), t.reversed = !t.reversed, t;
99
101
  }
100
102
  };
101
- i(a, "IDENTITY", new a());
102
- let l = a;
103
+ i(u, "IDENTITY", new u());
104
+ let y = u;
103
105
  const X = (r) => ({
104
106
  scale: {
105
107
  x: r.x.dim(1),
@@ -110,7 +112,7 @@ const X = (r) => ({
110
112
  y: r.y.pos(0)
111
113
  }
112
114
  }), c = class c {
113
- constructor(t = new l(), e = new l(), s = null) {
115
+ constructor(t = new y(), e = new y(), s = null) {
114
116
  i(this, "x");
115
117
  i(this, "y");
116
118
  i(this, "currRoot");
@@ -138,7 +140,7 @@ const X = (r) => ({
138
140
  return new c().reBound(t);
139
141
  }
140
142
  translate(t, e) {
141
- const s = M(t, e), n = this.copy();
143
+ const s = Y(t, e), n = this.copy();
142
144
  return n.x = this.x.translate(s.x), n.y = this.y.translate(s.y), n;
143
145
  }
144
146
  translateX(t) {
@@ -194,12 +196,12 @@ i(c, "IDENTITY", new c());
194
196
  let f = c;
195
197
  const k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
196
198
  __proto__: null,
197
- Scale: l,
199
+ Scale: y,
198
200
  XY: f,
199
- crudeXYTransform: j,
201
+ crudeXYTransform: z,
200
202
  xyScaleToTransform: X
201
203
  }, Symbol.toStringTag, { value: "Module" }));
202
204
  export {
203
- Y as c,
205
+ j as c,
204
206
  k as s
205
207
  };
@@ -0,0 +1 @@
1
+ "use strict";var v=Object.defineProperty;var g=(n,t,e)=>t in n?v(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var i=(n,t,e)=>g(n,typeof t!="symbol"?t+"":t,e);const R=require("zod"),x=require("./bounds-ZZc1c-_Z.cjs"),u=require("./box-BcFruCBW.cjs"),T=require("./location-wMqTcQ0n.cjs"),h=require("./xy-cP-FXJtR.cjs"),m=(n,t,e)=>t!==void 0&&n<t?t:e!==void 0&&n>e?e:n,q=R.z.object({offset:h.crudeZ,scale:h.crudeZ}),E=n=>(t,e,s,r)=>e==="dimension"?[t,s]:[t,r?s-n:s+n],I=n=>(t,e,s,r)=>[t,r?s/n:s*n],Y=n=>(t,e,s)=>{if(t===null)return[n,s];const{lower:r,upper:o}=t,{lower:p,upper:l}=n,f=o-r,w=l-p;if(e==="dimension")return[n,s*(w/f)];const B=(s-r)*(w/f)+p;return[n,B]},j=n=>(t,e,s)=>[n,s],z=()=>(n,t,e)=>{if(n===null)throw new Error("cannot invert without bounds");if(t==="dimension")return[n,e];const{lower:s,upper:r}=n;return[n,r-(e-s)]},D=n=>(t,e,s)=>{const{lower:r,upper:o}=n;return s=m(s,r,o),[t,s]},a=class a{constructor(){i(this,"ops",[]);i(this,"currBounds",null);i(this,"currType",null);i(this,"reversed",!1);this.ops=[]}static translate(t){return new a().translate(t)}static magnify(t){return new a().magnify(t)}static scale(t,e){return new a().scale(t,e)}translate(t){const e=this.new(),s=E(t);return s.type="translate",e.ops.push(s),e}magnify(t){const e=this.new(),s=I(t);return s.type="magnify",e.ops.push(s),e}scale(t,e){const s=x.construct(t,e),r=this.new(),o=Y(s);return o.type="scale",r.ops.push(o),r}clamp(t,e){const s=x.construct(t,e),r=this.new(),o=D(s);return o.type="clamp",r.ops.push(o),r}reBound(t,e){const s=x.construct(t,e),r=this.new(),o=j(s);return o.type="re-bound",r.ops.push(o),r}invert(){const t=z();t.type="invert";const e=this.new();return e.ops.push(t),e}pos(t){return this.exec("position",t)}dim(t){return this.exec("dimension",t)}new(){const t=new a;return t.ops=this.ops.slice(),t.reversed=this.reversed,t}exec(t,e){return this.currBounds=null,this.ops.reduce(([s,r],o)=>o(s,t,r,this.reversed),[null,e])[1]}reverse(){const t=this.new();t.ops.reverse();const e=[];return t.ops.forEach((s,r)=>{if(s.type==="scale"||e.some(([p,l])=>r>=p&&r<=l))return;const o=t.ops.findIndex((p,l)=>p.type==="scale"&&l>r);o!==-1&&e.push([r,o])}),e.forEach(([s,r])=>{const o=t.ops.slice(s,r);o.unshift(t.ops[r]),t.ops.splice(s,r-s+1,...o)}),t.reversed=!t.reversed,t}};i(a,"IDENTITY",new a);let y=a;const L=n=>({scale:{x:n.x.dim(1),y:n.y.dim(1)},offset:{x:n.x.pos(0),y:n.y.pos(0)}}),c=class c{constructor(t=new y,e=new y,s=null){i(this,"x");i(this,"y");i(this,"currRoot");this.x=t,this.y=e,this.currRoot=s}static translate(t,e){return new c().translate(t,e)}static translateX(t){return new c().translateX(t)}static translateY(t){return new c().translateY(t)}static clamp(t){return new c().clamp(t)}static magnify(t){return new c().magnify(t)}static scale(t){return new c().scale(t)}static reBound(t){return new c().reBound(t)}translate(t,e){const s=h.construct(t,e),r=this.copy();return r.x=this.x.translate(s.x),r.y=this.y.translate(s.y),r}translateX(t){const e=this.copy();return e.x=this.x.translate(t),e}translateY(t){const e=this.copy();return e.y=this.y.translate(t),e}magnify(t){const e=this.copy();return e.x=this.x.magnify(t.x),e.y=this.y.magnify(t.y),e}scale(t){const e=this.copy();if(u.isBox(t)){const s=this.currRoot;return e.currRoot=t.root,s!=null&&!T.xyEquals(s,t.root)&&(s.x!==t.root.x&&(e.x=e.x.invert()),s.y!==t.root.y&&(e.y=e.y.invert())),e.x=e.x.scale(u.xBounds(t)),e.y=e.y.scale(u.yBounds(t)),e}return e.x=e.x.scale(t.width),e.y=e.y.scale(t.height),e}reBound(t){const e=this.copy();return e.x=this.x.reBound(u.xBounds(t)),e.y=this.y.reBound(u.yBounds(t)),e}clamp(t){const e=this.copy();return e.x=this.x.clamp(u.xBounds(t)),e.y=this.y.clamp(u.yBounds(t)),e}copy(){const t=new c;return t.currRoot=this.currRoot,t.x=this.x,t.y=this.y,t}reverse(){const t=this.copy();return t.x=this.x.reverse(),t.y=this.y.reverse(),t}pos(t){return{x:this.x.pos(t.x),y:this.y.pos(t.y)}}box(t){return u.construct(this.pos(t.one),this.pos(t.two),0,0,this.currRoot??t.root)}};i(c,"IDENTITY",new c);let d=c;const M=Object.freeze(Object.defineProperty({__proto__:null,Scale:y,XY:d,crudeXYTransform:q,xyScaleToTransform:L},Symbol.toStringTag,{value:"Module"}));exports.clamp=m;exports.scale=M;
package/dist/scale.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./scale-C8axypQ2.cjs");exports.scale=e.scale;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./scale-D_uVU2Fw.cjs");exports.scale=e.scale;
package/dist/scale.js CHANGED
@@ -1,4 +1,4 @@
1
- import { s as e } from "./scale-CgtgqlYU.js";
1
+ import { s as e } from "./scale-6y6-BcVI.js";
2
2
  export {
3
3
  e as scale
4
4
  };
package/dist/search.js CHANGED
@@ -2,8 +2,7 @@ const i = (l, r, c) => {
2
2
  let e = 0, n = l.length - 1;
3
3
  for (; e <= n; ) {
4
4
  const t = Math.floor((e + n) / 2), o = c(l[t], r);
5
- if (o === 0)
6
- return t;
5
+ if (o === 0) return t;
7
6
  o < 0 ? e = t + 1 : n = t - 1;
8
7
  }
9
8
  return -1;