@equinor/esv-intersection 3.0.4 → 3.0.7

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 (169) hide show
  1. package/README.md +18 -3
  2. package/dist/components/axis.d.ts +48 -0
  3. package/dist/components/axis.d.ts.map +1 -0
  4. package/dist/components/index.d.ts +2 -0
  5. package/dist/components/index.d.ts.map +1 -0
  6. package/dist/constants.d.ts +1 -0
  7. package/dist/constants.d.ts.map +1 -0
  8. package/dist/control/ExtendedCurveInterpolator.d.ts +59 -0
  9. package/dist/control/ExtendedCurveInterpolator.d.ts.map +1 -0
  10. package/dist/control/IntersectionReferenceSystem.d.ts +97 -0
  11. package/dist/control/IntersectionReferenceSystem.d.ts.map +1 -0
  12. package/dist/control/LayerManager.d.ts +77 -0
  13. package/dist/control/LayerManager.d.ts.map +1 -0
  14. package/dist/control/MainController.d.ts +155 -0
  15. package/dist/control/MainController.d.ts.map +1 -0
  16. package/dist/control/ZoomPanHandler.d.ts +159 -0
  17. package/dist/control/ZoomPanHandler.d.ts.map +1 -0
  18. package/dist/control/index.d.ts +6 -0
  19. package/dist/control/index.d.ts.map +1 -0
  20. package/dist/control/interfaces.d.ts +38 -0
  21. package/dist/control/interfaces.d.ts.map +1 -0
  22. package/dist/control/overlay.d.ts +21 -0
  23. package/dist/control/overlay.d.ts.map +1 -0
  24. package/dist/datautils/colortable.d.ts +2 -0
  25. package/dist/datautils/colortable.d.ts.map +1 -0
  26. package/dist/datautils/findsample.d.ts +3 -0
  27. package/dist/datautils/findsample.d.ts.map +1 -0
  28. package/dist/datautils/index.d.ts +7 -0
  29. package/dist/datautils/index.d.ts.map +1 -0
  30. package/dist/datautils/interfaces.d.ts +64 -0
  31. package/dist/datautils/interfaces.d.ts.map +1 -0
  32. package/dist/datautils/picks.d.ts +75 -0
  33. package/dist/datautils/picks.d.ts.map +1 -0
  34. package/dist/datautils/schematicShapeGenerator.d.ts +60 -0
  35. package/dist/datautils/schematicShapeGenerator.d.ts.map +1 -0
  36. package/dist/datautils/seismicimage.d.ts +46 -0
  37. package/dist/datautils/seismicimage.d.ts.map +1 -0
  38. package/dist/datautils/surfacedata.d.ts +11 -0
  39. package/dist/datautils/surfacedata.d.ts.map +1 -0
  40. package/dist/datautils/trajectory.d.ts +15 -0
  41. package/dist/datautils/trajectory.d.ts.map +1 -0
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.cjs.map +1 -1
  44. package/dist/index.d.ts +1 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.mjs +162 -160
  47. package/dist/index.mjs.map +1 -1
  48. package/dist/index.umd.js +1 -1
  49. package/dist/index.umd.js.map +1 -1
  50. package/dist/interfaces.d.ts +1 -0
  51. package/dist/interfaces.d.ts.map +1 -0
  52. package/dist/layers/CalloutCanvasLayer.d.ts +61 -0
  53. package/dist/layers/CalloutCanvasLayer.d.ts.map +1 -0
  54. package/dist/layers/CustomDisplayObjects/ComplexRope.d.ts +22 -0
  55. package/dist/layers/CustomDisplayObjects/ComplexRope.d.ts.map +1 -0
  56. package/dist/layers/CustomDisplayObjects/ComplexRopeGeometry.d.ts +24 -0
  57. package/dist/layers/CustomDisplayObjects/ComplexRopeGeometry.d.ts.map +1 -0
  58. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRope.d.ts +21 -0
  59. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRope.d.ts.map +1 -0
  60. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.d.ts +27 -0
  61. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.d.ts.map +1 -0
  62. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRope.d.ts +18 -0
  63. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRope.d.ts.map +1 -0
  64. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.d.ts +25 -0
  65. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.d.ts.map +1 -0
  66. package/dist/layers/GeomodelCanvasLayer.d.ts +29 -0
  67. package/dist/layers/GeomodelCanvasLayer.d.ts.map +1 -0
  68. package/dist/layers/GeomodelLabelsLayer.d.ts +50 -0
  69. package/dist/layers/GeomodelLabelsLayer.d.ts.map +1 -0
  70. package/dist/layers/GeomodelLayerV2.d.ts +13 -0
  71. package/dist/layers/GeomodelLayerV2.d.ts.map +1 -0
  72. package/dist/layers/GridLayer.d.ts +30 -0
  73. package/dist/layers/GridLayer.d.ts.map +1 -0
  74. package/dist/layers/ImageCanvasLayer.d.ts +21 -0
  75. package/dist/layers/ImageCanvasLayer.d.ts.map +1 -0
  76. package/dist/layers/ReferenceLineLayer.d.ts +30 -0
  77. package/dist/layers/ReferenceLineLayer.d.ts.map +1 -0
  78. package/dist/layers/SchematicLayer.d.ts +114 -0
  79. package/dist/layers/SchematicLayer.d.ts.map +1 -0
  80. package/dist/layers/SeismicCanvasLayer.d.ts +19 -0
  81. package/dist/layers/SeismicCanvasLayer.d.ts.map +1 -0
  82. package/dist/layers/WellborePathLayer.d.ts +18 -0
  83. package/dist/layers/WellborePathLayer.d.ts.map +1 -0
  84. package/dist/layers/base/CanvasLayer.d.ts +20 -0
  85. package/dist/layers/base/CanvasLayer.d.ts.map +1 -0
  86. package/dist/layers/base/HTMLLayer.d.ts +14 -0
  87. package/dist/layers/base/HTMLLayer.d.ts.map +1 -0
  88. package/dist/layers/base/Layer.d.ts +70 -0
  89. package/dist/layers/base/Layer.d.ts.map +1 -0
  90. package/dist/layers/base/PixiLayer.d.ts +33 -0
  91. package/dist/layers/base/PixiLayer.d.ts.map +1 -0
  92. package/dist/layers/base/SVGLayer.d.ts +14 -0
  93. package/dist/layers/base/SVGLayer.d.ts.map +1 -0
  94. package/dist/layers/base/index.d.ts +6 -0
  95. package/dist/layers/base/index.d.ts.map +1 -0
  96. package/dist/layers/index.d.ts +17 -0
  97. package/dist/layers/index.d.ts.map +1 -0
  98. package/dist/layers/schematicInterfaces.d.ts +210 -0
  99. package/dist/layers/schematicInterfaces.d.ts.map +1 -0
  100. package/dist/utils/arc-length.d.ts +24 -0
  101. package/dist/utils/arc-length.d.ts.map +1 -0
  102. package/dist/utils/binary-search.d.ts +9 -0
  103. package/dist/utils/binary-search.d.ts.map +1 -0
  104. package/dist/utils/color.d.ts +6 -0
  105. package/dist/utils/color.d.ts.map +1 -0
  106. package/dist/utils/index.d.ts +2 -0
  107. package/dist/utils/index.d.ts.map +1 -0
  108. package/dist/utils/root-finder.d.ts +35 -0
  109. package/dist/utils/root-finder.d.ts.map +1 -0
  110. package/dist/utils/text.d.ts +15 -0
  111. package/dist/utils/text.d.ts.map +1 -0
  112. package/dist/utils/vectorUtils.d.ts +16 -0
  113. package/dist/utils/vectorUtils.d.ts.map +1 -0
  114. package/dist/vendor/pixi-dashed-line/index.d.ts +57 -0
  115. package/dist/vendor/pixi-dashed-line/index.d.ts.map +1 -0
  116. package/package.json +29 -21
  117. package/src/.eslintrc.json +5 -0
  118. package/src/components/axis.ts +247 -0
  119. package/src/components/index.ts +1 -0
  120. package/src/control/ExtendedCurveInterpolator.ts +155 -0
  121. package/src/control/IntersectionReferenceSystem.ts +391 -0
  122. package/src/control/LayerManager.ts +294 -0
  123. package/src/control/MainController.ts +296 -0
  124. package/src/control/ZoomPanHandler.ts +436 -0
  125. package/src/control/index.ts +5 -0
  126. package/src/control/interfaces.ts +42 -0
  127. package/src/control/overlay.ts +118 -0
  128. package/src/datautils/colortable.ts +14 -0
  129. package/src/datautils/findsample.ts +72 -0
  130. package/src/datautils/index.ts +6 -0
  131. package/src/datautils/interfaces.ts +68 -0
  132. package/src/datautils/picks.ts +328 -0
  133. package/src/datautils/schematicShapeGenerator.ts +1008 -0
  134. package/src/datautils/seismicimage.ts +180 -0
  135. package/src/datautils/surfacedata.ts +317 -0
  136. package/src/datautils/trajectory.ts +206 -0
  137. package/src/layers/CalloutCanvasLayer.ts +338 -0
  138. package/src/layers/CustomDisplayObjects/ComplexRope.ts +44 -0
  139. package/src/layers/CustomDisplayObjects/ComplexRopeGeometry.ts +184 -0
  140. package/src/layers/CustomDisplayObjects/FixedWidthSimpleRope.ts +41 -0
  141. package/src/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.ts +149 -0
  142. package/src/layers/CustomDisplayObjects/UniformTextureStretchRope.ts +39 -0
  143. package/src/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.ts +174 -0
  144. package/src/layers/GeomodelCanvasLayer.ts +176 -0
  145. package/src/layers/GeomodelLabelsLayer.ts +615 -0
  146. package/src/layers/GeomodelLayerV2.ts +111 -0
  147. package/src/layers/GridLayer.ts +145 -0
  148. package/src/layers/ImageCanvasLayer.ts +55 -0
  149. package/src/layers/ReferenceLineLayer.ts +185 -0
  150. package/src/layers/SchematicLayer.ts +870 -0
  151. package/src/layers/SeismicCanvasLayer.ts +46 -0
  152. package/src/layers/WellborePathLayer.ts +129 -0
  153. package/src/layers/base/CanvasLayer.ts +102 -0
  154. package/src/layers/base/HTMLLayer.ts +70 -0
  155. package/src/layers/base/Layer.ts +217 -0
  156. package/src/layers/base/PixiLayer.ts +190 -0
  157. package/src/layers/base/SVGLayer.ts +63 -0
  158. package/src/layers/base/index.ts +5 -0
  159. package/src/layers/index.ts +16 -0
  160. package/src/layers/schematicInterfaces.ts +472 -0
  161. package/src/tsconfig.json +9 -0
  162. package/src/utils/arc-length.ts +66 -0
  163. package/src/utils/binary-search.ts +26 -0
  164. package/src/utils/color.ts +22 -0
  165. package/src/utils/index.ts +1 -0
  166. package/src/utils/root-finder.ts +78 -0
  167. package/src/utils/text.ts +88 -0
  168. package/src/utils/vectorUtils.ts +67 -0
  169. package/src/vendor/pixi-dashed-line/index.ts +390 -0
package/dist/index.mjs CHANGED
@@ -22,15 +22,15 @@ function gs() {
22
22
  function ji(e, t) {
23
23
  var n = [], i = null, r = null, s = 6, o = 6, a = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, h = e === Ve || e === ne ? -1 : 1, l = e === ne || e === he ? "x" : "y", u = e === Ve || e === nn ? us : fs;
24
24
  function f(p) {
25
- var d = i ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = r ?? (t.tickFormat ? t.tickFormat.apply(t, n) : ls), y = Math.max(s, 0) + a, _ = t.range(), x = +_[0] + c, v = +_[_.length - 1] + c, A = (t.bandwidth ? ps : ds)(t.copy(), c), b = p.selection ? p.selection() : p, S = b.selectAll(".domain").data([null]), T = b.selectAll(".tick").data(d, t).order(), F = T.exit(), L = T.enter().append("g").attr("class", "tick"), D = T.select("line"), C = T.select("text");
26
- S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(L), D = D.merge(L.append("line").attr("stroke", "currentColor").attr(l + "2", h * s)), C = C.merge(L.append("text").attr("fill", "currentColor").attr(l, h * y).attr("dy", e === Ve ? "0em" : e === nn ? "0.71em" : "0.32em")), p !== b && (S = S.transition(p), T = T.transition(p), D = D.transition(p), C = C.transition(p), F = F.transition(p).attr("opacity", Jn).attr("transform", function(I) {
25
+ var d = i ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = r ?? (t.tickFormat ? t.tickFormat.apply(t, n) : ls), y = Math.max(s, 0) + a, _ = t.range(), x = +_[0] + c, v = +_[_.length - 1] + c, A = (t.bandwidth ? ps : ds)(t.copy(), c), b = p.selection ? p.selection() : p, S = b.selectAll(".domain").data([null]), T = b.selectAll(".tick").data(d, t).order(), F = T.exit(), L = T.enter().append("g").attr("class", "tick"), O = T.select("line"), C = T.select("text");
26
+ S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(L), O = O.merge(L.append("line").attr("stroke", "currentColor").attr(l + "2", h * s)), C = C.merge(L.append("text").attr("fill", "currentColor").attr(l, h * y).attr("dy", e === Ve ? "0em" : e === nn ? "0.71em" : "0.32em")), p !== b && (S = S.transition(p), T = T.transition(p), O = O.transition(p), C = C.transition(p), F = F.transition(p).attr("opacity", Jn).attr("transform", function(I) {
27
27
  return isFinite(I = A(I)) ? u(I + c) : this.getAttribute("transform");
28
28
  }), L.attr("opacity", Jn).attr("transform", function(I) {
29
29
  var N = this.parentNode.__axis;
30
30
  return u((N && isFinite(N = N(I)) ? N : A(I)) + c);
31
31
  })), F.remove(), S.attr("d", e === ne || e === he ? o ? "M" + h * o + "," + x + "H" + c + "V" + v + "H" + h * o : "M" + c + "," + x + "V" + v : o ? "M" + x + "," + h * o + "V" + c + "H" + v + "V" + h * o : "M" + x + "," + c + "H" + v), T.attr("opacity", 1).attr("transform", function(I) {
32
32
  return u(A(I) + c);
33
- }), D.attr(l + "2", h * s), C.attr(l, h * y).text(g), b.filter(gs).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === he ? "start" : e === ne ? "end" : "middle"), b.each(function() {
33
+ }), O.attr(l + "2", h * s), C.attr(l, h * y).text(g), b.filter(gs).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === he ? "start" : e === ne ? "end" : "middle"), b.each(function() {
34
34
  this.__axis = A;
35
35
  });
36
36
  }
@@ -255,7 +255,7 @@ function Ji(e, t) {
255
255
  }
256
256
  function te() {
257
257
  }
258
- var jt = 0.7, ye = 1 / jt, It = "\\s*([+-]?\\d+)\\s*", Zt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ot = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Fs = /^#([0-9a-f]{3,8})$/, Rs = new RegExp(`^rgb\\(${It},${It},${It}\\)$`), Is = new RegExp(`^rgb\\(${ot},${ot},${ot}\\)$`), zs = new RegExp(`^rgba\\(${It},${It},${It},${Zt}\\)$`), Os = new RegExp(`^rgba\\(${ot},${ot},${ot},${Zt}\\)$`), Ds = new RegExp(`^hsl\\(${Zt},${ot},${ot}\\)$`), Ns = new RegExp(`^hsla\\(${Zt},${ot},${ot},${Zt}\\)$`), ii = {
258
+ var jt = 0.7, ye = 1 / jt, It = "\\s*([+-]?\\d+)\\s*", Zt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ot = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Fs = /^#([0-9a-f]{3,8})$/, Rs = new RegExp(`^rgb\\(${It},${It},${It}\\)$`), Is = new RegExp(`^rgb\\(${ot},${ot},${ot}\\)$`), zs = new RegExp(`^rgba\\(${It},${It},${It},${Zt}\\)$`), Ds = new RegExp(`^rgba\\(${ot},${ot},${ot},${Zt}\\)$`), Os = new RegExp(`^hsl\\(${Zt},${ot},${ot}\\)$`), Ns = new RegExp(`^hsla\\(${Zt},${ot},${ot},${Zt}\\)$`), ii = {
259
259
  aliceblue: 15792383,
260
260
  antiquewhite: 16444375,
261
261
  aqua: 65535,
@@ -434,7 +434,7 @@ function si() {
434
434
  }
435
435
  function ft(e) {
436
436
  var t, n;
437
- return e = (e + "").trim().toLowerCase(), (t = Fs.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? oi(t) : n === 3 ? new Y(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? ie(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? ie(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Rs.exec(e)) ? new Y(t[1], t[2], t[3], 1) : (t = Is.exec(e)) ? new Y(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = zs.exec(e)) ? ie(t[1], t[2], t[3], t[4]) : (t = Os.exec(e)) ? ie(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ds.exec(e)) ? hi(t[1], t[2] / 100, t[3] / 100, 1) : (t = Ns.exec(e)) ? hi(t[1], t[2] / 100, t[3] / 100, t[4]) : ii.hasOwnProperty(e) ? oi(ii[e]) : e === "transparent" ? new Y(NaN, NaN, NaN, 0) : null;
437
+ return e = (e + "").trim().toLowerCase(), (t = Fs.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? oi(t) : n === 3 ? new Y(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? ie(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? ie(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Rs.exec(e)) ? new Y(t[1], t[2], t[3], 1) : (t = Is.exec(e)) ? new Y(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = zs.exec(e)) ? ie(t[1], t[2], t[3], t[4]) : (t = Ds.exec(e)) ? ie(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Os.exec(e)) ? hi(t[1], t[2] / 100, t[3] / 100, 1) : (t = Ns.exec(e)) ? hi(t[1], t[2] / 100, t[3] / 100, t[4]) : ii.hasOwnProperty(e) ? oi(ii[e]) : e === "transparent" ? new Y(NaN, NaN, NaN, 0) : null;
438
438
  }
439
439
  function oi(e) {
440
440
  return new Y(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -739,10 +739,10 @@ const co = function e(t, n, i) {
739
739
  else {
740
740
  var x = Math.sqrt(g), v = (f * f - h * h + i * g) / (2 * h * n * x), A = (f * f - h * h - i * g) / (2 * f * n * x), b = Math.log(Math.sqrt(v * v + 1) - v), S = Math.log(Math.sqrt(A * A + 1) - A);
741
741
  _ = (S - b) / t, y = function(T) {
742
- var F = T * _, L = fi(b), D = h / (n * x) * (L * ao(t * F + b) - oo(b));
742
+ var F = T * _, L = fi(b), O = h / (n * x) * (L * ao(t * F + b) - oo(b));
743
743
  return [
744
- a + D * p,
745
- c + D * d,
744
+ a + O * p,
745
+ c + O * d,
746
746
  h * L / fi(t * F + b)
747
747
  ];
748
748
  };
@@ -944,7 +944,7 @@ function Mo(e) {
944
944
  b === "n" ? (x = !0, b = "g") : gi[b] || (v === void 0 && (v = 12), A = !0, b = "g"), (y || f === "0" && p === "=") && (y = !0, f = "0", p = "=");
945
945
  var S = g === "$" ? n : g === "#" && /[boxX]/.test(b) ? "0" + b.toLowerCase() : "", T = g === "$" ? i : /[%p]/.test(b) ? o : "", F = gi[b], L = /[defgprs%]/.test(b);
946
946
  v = v === void 0 ? 6 : /[gprs]/.test(b) ? Math.max(1, Math.min(21, v)) : Math.max(0, Math.min(20, v));
947
- function D(C) {
947
+ function O(C) {
948
948
  var I = S, N = T, m, M, w;
949
949
  if (b === "c")
950
950
  N = F(C) + N, C = "";
@@ -977,9 +977,9 @@ function Mo(e) {
977
977
  }
978
978
  return s(C);
979
979
  }
980
- return D.toString = function() {
980
+ return O.toString = function() {
981
981
  return u + "";
982
- }, D;
982
+ }, O;
983
983
  }
984
984
  function l(u, f) {
985
985
  var p = h((u = ve(u), u.type = "f", u)), d = Math.max(-8, Math.min(8, Math.floor(zt(f) / 3))) * 3, g = Math.pow(10, -d), y = _i[8 + d / 3];
@@ -1197,14 +1197,14 @@ function Ut(e) {
1197
1197
  function vi(e, t) {
1198
1198
  t === void 0 && (t = e);
1199
1199
  var n = Ut(e);
1200
- return n === 0 ? Oo(0, t) : bt(e, 1 / n, t);
1200
+ return n === 0 ? Do(0, t) : bt(e, 1 / n, t);
1201
1201
  }
1202
- function Oo(e, t) {
1202
+ function Do(e, t) {
1203
1203
  for (var n = 0; n < t.length; n++)
1204
1204
  t[n] = e;
1205
1205
  return t;
1206
1206
  }
1207
- function Do(e, t) {
1207
+ function Oo(e, t) {
1208
1208
  for (var n = 0, i = 0; i < e.length; i++)
1209
1209
  n += Math.pow(t[i] - e[i], 2);
1210
1210
  return n === 0 ? n : Math.sqrt(n);
@@ -1245,7 +1245,7 @@ function Ht(e, t) {
1245
1245
  var n = Math.atan2(t[1], t[0]) - Math.atan2(e[1], e[0]);
1246
1246
  return n > Math.PI ? n -= 2 * Math.PI : n <= -Math.PI && (n += 2 * Math.PI), n;
1247
1247
  }
1248
- var O = function() {
1248
+ var D = function() {
1249
1249
  function e(t) {
1250
1250
  for (var n = [], i = 1; i < arguments.length; i++)
1251
1251
  n[i - 1] = arguments[i];
@@ -1314,7 +1314,7 @@ var O = function() {
1314
1314
  }, e.prototype.normalized = function() {
1315
1315
  return vi(this, e.zero);
1316
1316
  }, e.distance = function(t, n) {
1317
- return Do(t, n);
1317
+ return Oo(t, n);
1318
1318
  }, e.dot = function(t, n) {
1319
1319
  return No(t, n);
1320
1320
  }, e.cross = function(t, n) {
@@ -1763,7 +1763,7 @@ var lr = function() {
1763
1763
  var h = o - a;
1764
1764
  return (c + this.computeArcLength(a, 0, h)) / s;
1765
1765
  }, t;
1766
- }(lr), On = function() {
1766
+ }(lr), Dn = function() {
1767
1767
  function e(t, n) {
1768
1768
  n === void 0 && (n = {});
1769
1769
  var i = this;
@@ -1851,8 +1851,8 @@ var lr = function() {
1851
1851
  var A = h * s - (_ - 1), b = h * o - (_ - 1), S = function(L) {
1852
1852
  return L > -it && L <= 1 + it && (_ - 1 !== l || L > A) && (_ !== u || L < b);
1853
1853
  }, T = d._curveMapper.getCoefficients(_ - 1), F = function(L) {
1854
- var D = T[L];
1855
- cr(3 * D[0], 2 * D[1], D[2]).filter(S).forEach(function(C) {
1854
+ var O = T[L];
1855
+ cr(3 * O[0], 2 * O[1], O[2]).filter(S).forEach(function(C) {
1856
1856
  var I = Ft(C, T[L]);
1857
1857
  I < i[L] && (i[L] = I), I > r[L] && (r[L] = I);
1858
1858
  });
@@ -2062,7 +2062,7 @@ var lr = function() {
2062
2062
  var r = e.prototype.getBoundingBox.call(this, n, i);
2063
2063
  return { x1: r.min[0], x2: r.max[0], y1: r.min[1], y2: r.max[1], min: r.min, max: r.max };
2064
2064
  }, t;
2065
- })(On);
2065
+ })(Dn);
2066
2066
  class Se {
2067
2067
  /**
2068
2068
  * Find root using newthons method
@@ -2128,12 +2128,12 @@ class ta {
2128
2128
  */
2129
2129
  static bisect(t, n = 0, i = 1, r = 5e-3, s = 4, o = 10) {
2130
2130
  const a = (f, p, d, g, y, _, x = 0) => {
2131
- const v = (f + p) / 2, A = t(v), b = O.distance(d, A), S = O.distance(A, g), T = b + S;
2131
+ const v = (f + p) / 2, A = t(v), b = D.distance(d, A), S = D.distance(A, g), T = b + S;
2132
2132
  if (x >= s && Math.abs(T - y) < _ || x >= o)
2133
2133
  return T;
2134
2134
  const F = _ / 2, L = x + 1;
2135
2135
  return a(f, v, d, A, b, F, L) + a(v, p, A, g, S, F, L);
2136
- }, c = t(n), h = t(i), l = O.distance(c, h);
2136
+ }, c = t(n), h = t(i), l = D.distance(c, h);
2137
2137
  return a(n, i, c, h, l, r);
2138
2138
  }
2139
2139
  /**
@@ -2147,7 +2147,7 @@ class ta {
2147
2147
  let s = 0, o = t(n);
2148
2148
  const a = (i - n) / (r - 1);
2149
2149
  for (let c = 1; c < r; c++) {
2150
- const h = t(n + c * a), l = O.distance(o, h);
2150
+ const h = t(n + c * a), l = D.distance(o, h);
2151
2151
  s += l, o = h;
2152
2152
  }
2153
2153
  return s;
@@ -2165,7 +2165,7 @@ class ea {
2165
2165
  return s;
2166
2166
  }
2167
2167
  }
2168
- class Ze extends On {
2168
+ class Ze extends Dn {
2169
2169
  constructor(t, n) {
2170
2170
  super(t, n), this.arcLengthLookup = [], this.findTForArcLength = this.findTForArcLength.bind(this), this.findTByRootForArcLength = this.findTByRootForArcLength.bind(this), this.findApproxTForArcLength = this.findApproxTForArcLength.bind(this), this.findTQuickForArcLength = this.findTQuickForArcLength.bind(this), this.generateArcLengthLookup = this.generateArcLengthLookup.bind(this), this.getArcLength = this.getArcLength.bind(this), this.getQuickArcLength = this.getQuickArcLength.bind(this), this.getPointAtArcLength = this.getPointAtArcLength.bind(this), this.getPointAt = this.getPointAt.bind(this);
2171
2171
  }
@@ -2207,7 +2207,7 @@ class Ze extends On {
2207
2207
  generateArcLengthLookup(t = 1e3) {
2208
2208
  let n = this.getPointAt(0), i = 0;
2209
2209
  for (let r = 0; r < t; r++) {
2210
- const s = this.getPointAt(r / (t - 1)), o = O.distance(n, s);
2210
+ const s = this.getPointAt(r / (t - 1)), o = D.distance(n, s);
2211
2211
  i += o, this.arcLengthLookup.push(i), n = s;
2212
2212
  }
2213
2213
  }
@@ -2361,7 +2361,7 @@ class Qt {
2361
2361
  r ? (c = [
2362
2362
  o[0] + this.startVector[0] * r * this.displacement,
2363
2363
  o[1] + this.startVector[1] * r * this.displacement
2364
- ], l = -O.distance(c, o)) : n > 0 && (l = O.distance(p, o)), s && (h = [a[0] + this.endVector[0] * s * this.displacement, a[1] + this.endVector[1] * s * this.displacement]);
2364
+ ], l = -D.distance(c, o)) : n > 0 && (l = D.distance(p, o)), s && (h = [a[0] + this.endVector[0] * s * this.displacement, a[1] + this.endVector[1] * s * this.displacement]);
2365
2365
  const g = [], y = i - n, _ = Math.floor(r / y * t), x = Math.ceil((f - u) / y * t), v = t - x - _;
2366
2366
  if (c) {
2367
2367
  g.push(c);
@@ -2388,14 +2388,14 @@ class Qt {
2388
2388
  throw new Error("Invalid parameter, getExtendedTrajectory() must be called with a valid and positive startExtensionLength parameter");
2389
2389
  if (!isFinite(i) || i < 0)
2390
2390
  throw new Error("Invalid parameter, getExtendedTrajectory() must be called with a valid and positive endExtensionLength parameter");
2391
- const r = this.displacement + n + i, s = Math.floor(n / r * t), o = Math.max(Math.ceil(this.displacement / r * t), 1), a = t - o - s, c = [], h = new O(this.interpolators.trajectory.getPointAt(0)), l = new O(this.startVector), u = n / s;
2391
+ const r = this.displacement + n + i, s = Math.floor(n / r * t), o = Math.max(Math.ceil(this.displacement / r * t), 1), a = t - o - s, c = [], h = new D(this.interpolators.trajectory.getPointAt(0)), l = new D(this.startVector), u = n / s;
2392
2392
  for (let x = s; x > 0; x--) {
2393
2393
  const v = x * u, A = h.add(l.scale(v));
2394
2394
  c.push(A.toArray());
2395
2395
  }
2396
2396
  const f = this.interpolators.trajectory.getPoints(o, null, 0, 1);
2397
2397
  c.push(...f);
2398
- const p = new O(this.interpolators.trajectory.getPointAt(1)), d = new O(this.endVector), g = i / (a - 1);
2398
+ const p = new D(this.interpolators.trajectory.getPointAt(1)), d = new D(this.endVector), g = i / (a - 1);
2399
2399
  for (let x = 1; x < a; x++) {
2400
2400
  const v = x * g, A = p.add(d.scale(v));
2401
2401
  c.push(A.toArray());
@@ -2407,7 +2407,7 @@ class Qt {
2407
2407
  const { trajectoryAngle: t, calculateDisplacementFromBottom: n } = this.options;
2408
2408
  if (isFinite(t)) {
2409
2409
  const r = Io(t);
2410
- return new O(Math.cos(r), Math.sin(r)).toArray();
2410
+ return new D(Math.cos(r), Math.sin(r)).toArray();
2411
2411
  }
2412
2412
  return Qt.getDirectionVector(
2413
2413
  this.interpolators.trajectory,
@@ -2478,13 +2478,13 @@ function fr(e) {
2478
2478
  }
2479
2479
  function ha() {
2480
2480
  }
2481
- function Dn(e) {
2481
+ function On(e) {
2482
2482
  return e == null ? ha : function() {
2483
2483
  return this.querySelector(e);
2484
2484
  };
2485
2485
  }
2486
2486
  function la(e) {
2487
- typeof e != "function" && (e = Dn(e));
2487
+ typeof e != "function" && (e = On(e));
2488
2488
  for (var t = this._groups, n = t.length, i = new Array(n), r = 0; r < n; ++r)
2489
2489
  for (var s = t[r], o = s.length, a = i[r] = new Array(o), c, h, l = 0; l < o; ++l)
2490
2490
  (c = s[l]) && (h = e.call(c, c.__data__, l, s)) && ("__data__" in c && (h.__data__ = c.__data__), a[l] = h);
@@ -2643,7 +2643,7 @@ function Ia() {
2643
2643
  return this;
2644
2644
  }
2645
2645
  function za(e) {
2646
- e || (e = Oa);
2646
+ e || (e = Da);
2647
2647
  function t(u, f) {
2648
2648
  return u && f ? e(u.__data__, f.__data__) : !u - !f;
2649
2649
  }
@@ -2654,10 +2654,10 @@ function za(e) {
2654
2654
  }
2655
2655
  return new j(r, this._parents).order();
2656
2656
  }
2657
- function Oa(e, t) {
2657
+ function Da(e, t) {
2658
2658
  return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
2659
2659
  }
2660
- function Da() {
2660
+ function Oa() {
2661
2661
  var e = arguments[0];
2662
2662
  return arguments[0] = this, e.apply(null, arguments), this;
2663
2663
  }
@@ -2748,9 +2748,9 @@ function Qa(e, t, n) {
2748
2748
  };
2749
2749
  }
2750
2750
  function Ja(e, t, n) {
2751
- return arguments.length > 1 ? this.each((t == null ? Za : typeof t == "function" ? Qa : Ka)(e, t, n ?? "")) : Ot(this.node(), e);
2751
+ return arguments.length > 1 ? this.each((t == null ? Za : typeof t == "function" ? Qa : Ka)(e, t, n ?? "")) : Dt(this.node(), e);
2752
2752
  }
2753
- function Ot(e, t) {
2753
+ function Dt(e, t) {
2754
2754
  return e.style.getPropertyValue(t) || yr(e).getComputedStyle(e, null).getPropertyValue(t);
2755
2755
  }
2756
2756
  function tc(e) {
@@ -2883,7 +2883,7 @@ function wc() {
2883
2883
  return null;
2884
2884
  }
2885
2885
  function bc(e, t) {
2886
- var n = typeof e == "function" ? e : fr(e), i = t == null ? wc : typeof t == "function" ? t : Dn(t);
2886
+ var n = typeof e == "function" ? e : fr(e), i = t == null ? wc : typeof t == "function" ? t : On(t);
2887
2887
  return this.select(function() {
2888
2888
  return this.insertBefore(n.apply(this, arguments), i.apply(this, arguments) || null);
2889
2889
  });
@@ -2973,10 +2973,10 @@ function zc(e, t) {
2973
2973
  return br(this, e, t.apply(this, arguments));
2974
2974
  };
2975
2975
  }
2976
- function Oc(e, t) {
2976
+ function Dc(e, t) {
2977
2977
  return this.each((typeof t == "function" ? zc : Ic)(e, t));
2978
2978
  }
2979
- function* Dc() {
2979
+ function* Oc() {
2980
2980
  for (var e = this._groups, t = 0, n = e.length; t < n; ++t)
2981
2981
  for (var i = e[t], r = 0, s = i.length, o; r < s; ++r)
2982
2982
  (o = i[r]) && (yield o);
@@ -3006,7 +3006,7 @@ j.prototype = ee.prototype = {
3006
3006
  selection: Nc,
3007
3007
  order: Ia,
3008
3008
  sort: za,
3009
- call: Da,
3009
+ call: Oa,
3010
3010
  nodes: Na,
3011
3011
  node: $a,
3012
3012
  size: Ba,
@@ -3026,8 +3026,8 @@ j.prototype = ee.prototype = {
3026
3026
  clone: Pc,
3027
3027
  datum: Cc,
3028
3028
  on: Rc,
3029
- dispatch: Oc,
3030
- [Symbol.iterator]: Dc
3029
+ dispatch: Dc,
3030
+ [Symbol.iterator]: Oc
3031
3031
  };
3032
3032
  function q(e) {
3033
3033
  return typeof e == "string" ? new j([[document.querySelector(e)]], [document.documentElement]) : new j([[e]], Sr);
@@ -3142,7 +3142,7 @@ function Uc(e, t) {
3142
3142
  i.on("click.drag", null);
3143
3143
  }, 0)), "onselectstart" in n ? i.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect);
3144
3144
  }
3145
- var Dt = 0, Yt = 0, Xt = 0, Tr = 1e3, Me, Wt, Ae = 0, Pt = 0, Fe = 0, Jt = typeof performance == "object" && performance.now ? performance : Date, Mr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
3145
+ var Ot = 0, Yt = 0, Xt = 0, Tr = 1e3, Me, Wt, Ae = 0, Pt = 0, Fe = 0, Jt = typeof performance == "object" && performance.now ? performance : Date, Mr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
3146
3146
  setTimeout(e, 17);
3147
3147
  };
3148
3148
  function Bn() {
@@ -3170,17 +3170,17 @@ function Ar(e, t, n) {
3170
3170
  return i.restart(e, t, n), i;
3171
3171
  }
3172
3172
  function Wc() {
3173
- Bn(), ++Dt;
3173
+ Bn(), ++Ot;
3174
3174
  for (var e = Me, t; e; )
3175
3175
  (t = Pt - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
3176
- --Dt;
3176
+ --Ot;
3177
3177
  }
3178
3178
  function Ei() {
3179
- Pt = (Ae = Jt.now()) + Fe, Dt = Yt = 0;
3179
+ Pt = (Ae = Jt.now()) + Fe, Ot = Yt = 0;
3180
3180
  try {
3181
3181
  Wc();
3182
3182
  } finally {
3183
- Dt = 0, qc(), Pt = 0;
3183
+ Ot = 0, qc(), Pt = 0;
3184
3184
  }
3185
3185
  }
3186
3186
  function Gc() {
@@ -3193,10 +3193,10 @@ function qc() {
3193
3193
  Wt = e, _n(i);
3194
3194
  }
3195
3195
  function _n(e) {
3196
- if (!Dt) {
3196
+ if (!Ot) {
3197
3197
  Yt && (Yt = clearTimeout(Yt));
3198
3198
  var t = e - Pt;
3199
- t > 24 ? (e < 1 / 0 && (Yt = setTimeout(Ei, e - Jt.now() - Fe)), Xt && (Xt = clearInterval(Xt))) : (Xt || (Ae = Jt.now(), Xt = setInterval(Gc, Tr)), Dt = 1, Mr(Ei));
3199
+ t > 24 ? (e < 1 / 0 && (Yt = setTimeout(Ei, e - Jt.now() - Fe)), Xt && (Xt = clearInterval(Xt))) : (Xt || (Ae = Jt.now(), Xt = setInterval(Gc, Tr)), Ot = 1, Mr(Ei));
3200
3200
  }
3201
3201
  }
3202
3202
  function Fi(e, t, n) {
@@ -3536,7 +3536,7 @@ function kh() {
3536
3536
  }
3537
3537
  function Eh(e) {
3538
3538
  var t = this._name, n = this._id;
3539
- typeof e != "function" && (e = Dn(e));
3539
+ typeof e != "function" && (e = On(e));
3540
3540
  for (var i = this._groups, r = i.length, s = new Array(r), o = 0; o < r; ++o)
3541
3541
  for (var a = i[o], c = a.length, h = s[o] = new Array(c), l, u, f = 0; f < c; ++f)
3542
3542
  (l = a[f]) && (u = e.call(l, l.__data__, f, a)) && ("__data__" in l && (u.__data__ = l.__data__), h[f] = u, Re(h[f], t, n, f, h, rt(l, n)));
@@ -3561,7 +3561,7 @@ function Ih() {
3561
3561
  function zh(e, t) {
3562
3562
  var n, i, r;
3563
3563
  return function() {
3564
- var s = Ot(this, e), o = (this.style.removeProperty(e), Ot(this, e));
3564
+ var s = Dt(this, e), o = (this.style.removeProperty(e), Dt(this, e));
3565
3565
  return s === o ? null : s === n && o === i ? r : r = t(n = s, i = o);
3566
3566
  };
3567
3567
  }
@@ -3570,18 +3570,18 @@ function Lr(e) {
3570
3570
  this.style.removeProperty(e);
3571
3571
  };
3572
3572
  }
3573
- function Oh(e, t, n) {
3573
+ function Dh(e, t, n) {
3574
3574
  var i, r = n + "", s;
3575
3575
  return function() {
3576
- var o = Ot(this, e);
3576
+ var o = Dt(this, e);
3577
3577
  return o === r ? null : o === i ? s : s = t(i = o, n);
3578
3578
  };
3579
3579
  }
3580
- function Dh(e, t, n) {
3580
+ function Oh(e, t, n) {
3581
3581
  var i, r, s;
3582
3582
  return function() {
3583
- var o = Ot(this, e), a = n(this), c = a + "";
3584
- return a == null && (c = a = (this.style.removeProperty(e), Ot(this, e))), o === c ? null : o === i && c === r ? s : (r = c, s = t(i = o, a));
3583
+ var o = Dt(this, e), a = n(this), c = a + "";
3584
+ return a == null && (c = a = (this.style.removeProperty(e), Dt(this, e))), o === c ? null : o === i && c === r ? s : (r = c, s = t(i = o, a));
3585
3585
  };
3586
3586
  }
3587
3587
  function Nh(e, t) {
@@ -3593,7 +3593,7 @@ function Nh(e, t) {
3593
3593
  }
3594
3594
  function $h(e, t, n) {
3595
3595
  var i = (e += "") == "transform" ? io : Cr;
3596
- return t == null ? this.styleTween(e, zh(e, i)).on("end.style." + e, Lr(e)) : typeof t == "function" ? this.styleTween(e, Dh(e, i, Xn(this, "style." + e, t))).each(Nh(this._id, e)) : this.styleTween(e, Oh(e, i, t), n).on("end.style." + e, null);
3596
+ return t == null ? this.styleTween(e, zh(e, i)).on("end.style." + e, Lr(e)) : typeof t == "function" ? this.styleTween(e, Oh(e, i, Xn(this, "style." + e, t))).each(Nh(this._id, e)) : this.styleTween(e, Dh(e, i, t), n).on("end.style." + e, null);
3597
3597
  }
3598
3598
  function Bh(e, t, n) {
3599
3599
  return function(i) {
@@ -3835,7 +3835,7 @@ function al(e, t, n) {
3835
3835
  function cl() {
3836
3836
  var e = il, t = rl, n = al, i = sl, r = ol, s = [0, 1 / 0], o = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], a = 250, c = co, h = $n("start", "zoom", "end"), l, u, f, p = 500, d = 150, g = 0, y = 10;
3837
3837
  function _(m) {
3838
- m.property("__zoom", zi).on("wheel.zoom", F, { passive: !1 }).on("mousedown.zoom", L).on("dblclick.zoom", D).filter(r).on("touchstart.zoom", C).on("touchmove.zoom", I).on("touchend.zoom touchcancel.zoom", N).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
3838
+ m.property("__zoom", zi).on("wheel.zoom", F, { passive: !1 }).on("mousedown.zoom", L).on("dblclick.zoom", O).filter(r).on("touchstart.zoom", C).on("touchmove.zoom", I).on("touchend.zoom touchcancel.zoom", N).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
3839
3839
  }
3840
3840
  _.transform = function(m, M, w, P) {
3841
3841
  var k = m.selection ? m.selection() : m;
@@ -3963,7 +3963,7 @@ function cl() {
3963
3963
  k.on("mousemove.zoom mouseup.zoom", null), Uc(B.view, P.moved), Vt(B), P.event(B).end();
3964
3964
  }
3965
3965
  }
3966
- function D(m, ...M) {
3966
+ function O(m, ...M) {
3967
3967
  if (e.apply(this, arguments)) {
3968
3968
  var w = this.__zoom, P = pt(m.changedTouches ? m.changedTouches[0] : m, this), k = w.invert(P), E = w.k * (m.shiftKey ? 0.5 : 2), R = n(v(x(w, E), P, k), t.apply(this, M), o);
3969
3969
  Vt(m), a > 0 ? q(this).transition().duration(a).call(b, R, P, m) : q(this).call(_.transform, R, P, m);
@@ -4389,7 +4389,7 @@ class Ie {
4389
4389
  return [];
4390
4390
  }
4391
4391
  }
4392
- const ze = 200, Oe = 300, Er = 40, Fr = 30, dl = 100, pl = 0.6, gl = 0.3, ml = 8, yl = 16, _t = 64, Rr = 1;
4392
+ const ze = 200, De = 300, Er = 40, Fr = 30, dl = 100, pl = 0.6, gl = 0.3, ml = 8, yl = 16, _t = 64, Rr = 1;
4393
4393
  class Ct extends Ie {
4394
4394
  onOpacityChanged(t) {
4395
4395
  this.canvas && this.updateStyle();
@@ -4412,7 +4412,7 @@ class Ct extends Ie {
4412
4412
  }
4413
4413
  onMount(t) {
4414
4414
  super.onMount(t);
4415
- const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || Oe;
4415
+ const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || De;
4416
4416
  this.elm = n;
4417
4417
  let s;
4418
4418
  this.canvas || (s = document.createElement("canvas"), this.canvas = s, t.elm.appendChild(s)), this.canvas.setAttribute("id", `${this.id}`), this.canvas.setAttribute("width", `${i}px`), this.canvas.setAttribute("height", `${r}px`), this.canvas.setAttribute("class", "canvas-layer"), this.updateStyle(), this.ctx = this.canvas.getContext("2d");
@@ -4443,7 +4443,7 @@ class Ct extends Ie {
4443
4443
  class $0 extends Ie {
4444
4444
  onMount(t) {
4445
4445
  super.onMount(t);
4446
- const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || Oe;
4446
+ const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || De;
4447
4447
  this.elm || (this.elm = q(n).append("div"), this.elm.attr("id", `${this.id}`), this.elm.attr("class", "html-layer"));
4448
4448
  const s = this.interactive ? "auto" : "none";
4449
4449
  this.elm.style("position", "absolute").style("height", `${r}px`).style("width", `${i}px`).style("opacity", this.opacity).style("overflow", "hidden").style("pointer-events", s).style("z-index", this.order);
@@ -4473,7 +4473,7 @@ class $0 extends Ie {
4473
4473
  class _l extends Ie {
4474
4474
  onMount(t) {
4475
4475
  super.onMount(t);
4476
- const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || Oe;
4476
+ const { elm: n } = t, i = t.width || parseInt(n.getAttribute("width"), 10) || ze, r = t.height || parseInt(n.getAttribute("height"), 10) || De;
4477
4477
  this.elm || (this.elm = q(n).append("svg"), this.elm.attr("id", `${this.id}`), this.elm.attr("class", "svg-layer")), this.elm.attr("height", r).attr("width", i);
4478
4478
  const s = this.interactive ? "auto" : "none";
4479
4479
  this.elm.style("position", "absolute").style("pointer-events", s).style("opacity", this.opacity).style("z-index", this.order);
@@ -4504,7 +4504,7 @@ class B0 {
4504
4504
  constructor(t) {
4505
4505
  const n = {
4506
4506
  width: ze,
4507
- height: Oe,
4507
+ height: De,
4508
4508
  antialias: !0,
4509
4509
  backgroundAlpha: 0,
4510
4510
  clearBeforeRender: !0,
@@ -4593,7 +4593,7 @@ class Ir extends Ie {
4593
4593
  return this.ctx.renderer.type;
4594
4594
  }
4595
4595
  }
4596
- function De(e) {
4596
+ function Oe(e) {
4597
4597
  throw new Error(`Unexpected object: ${JSON.stringify(e)}`);
4598
4598
  }
4599
4599
  const xl = (e) => e.kind === "pAndASymbol", vl = (e) => e.kind === "cementSqueeze", wl = (e) => e.kind === "cementPlug", bl = (e, t, n) => (i) => {
@@ -4605,7 +4605,7 @@ const xl = (e) => e.kind === "pAndASymbol", vl = (e) => e.kind === "cementSqueez
4605
4605
  case "completionSymbol":
4606
4606
  return n(i);
4607
4607
  default:
4608
- return De(i);
4608
+ return Oe(i);
4609
4609
  }
4610
4610
  }, K = (e, t) => {
4611
4611
  switch (t) {
@@ -4622,7 +4622,7 @@ const xl = (e) => e.kind === "pAndASymbol", vl = (e) => e.kind === "cementSqueez
4622
4622
  case "Cased hole gravel pack":
4623
4623
  return e.CasedHoleGravelPack(t);
4624
4624
  default:
4625
- return De(t);
4625
+ return Oe(t);
4626
4626
  }
4627
4627
  }, H0 = (e) => K(
4628
4628
  {
@@ -4777,10 +4777,10 @@ const Cl = (e) => e.subKind === "Cased hole fracturation", Ll = (e, t) => e.star
4777
4777
  firstColor: "#8b6713",
4778
4778
  secondColor: "#000000",
4779
4779
  scalingFactor: 4
4780
- }, Ol = {
4780
+ }, Dl = {
4781
4781
  scalingFactor: 4,
4782
4782
  lineColor: "#63666a"
4783
- }, Dl = {
4783
+ }, Ol = {
4784
4784
  scalingFactor: 1,
4785
4785
  innerColor: "#eeeeff",
4786
4786
  outerColor: "#777788"
@@ -4788,7 +4788,7 @@ const Cl = (e) => e.subKind === "Cased hole fracturation", Ll = (e, t) => e.star
4788
4788
  firstColor: "#c7b9ab",
4789
4789
  secondColor: "#000000",
4790
4790
  scalingFactor: 4
4791
- }, zr = 4, Or = 2;
4791
+ }, zr = 4, Dr = 2;
4792
4792
  function $l(e) {
4793
4793
  const [t] = e.domain();
4794
4794
  return Math.abs(e(t + 1));
@@ -4800,7 +4800,7 @@ function Y0(e, t) {
4800
4800
  const n = e.x + e.width, i = t.x + t.width;
4801
4801
  return !(t.x > n || i < e.x);
4802
4802
  }
4803
- function Bl(e, t, n = zr, i = Or) {
4803
+ function Bl(e, t, n = zr, i = Dr) {
4804
4804
  const r = e.x + e.width + n, s = t.x + t.width + n, o = e.y + e.height + i, a = t.y + t.height + i;
4805
4805
  return !(t.x - n > r || t.y - i > o || s + n < e.x || a + i < e.y);
4806
4806
  }
@@ -4814,7 +4814,7 @@ function W0(e, t) {
4814
4814
  dy: a
4815
4815
  };
4816
4816
  }
4817
- function Oi(e, t, n = zr, i = Or) {
4817
+ function Di(e, t, n = zr, i = Dr) {
4818
4818
  const r = e.x + e.width, s = t.x + t.width, o = e.y + e.height, a = t.y + t.height;
4819
4819
  if (t.x - n > r || t.y - i > o || s + n < e.x || a + i < e.y)
4820
4820
  return null;
@@ -4955,7 +4955,7 @@ class G0 extends Ct {
4955
4955
  for (let n = t.length - 2; n >= 0; --n) {
4956
4956
  const i = t[n];
4957
4957
  for (let r = t.length - 1; r > n; --r) {
4958
- const s = t[r], o = Oi(i.boundingBox, s.boundingBox);
4958
+ const s = t[r], o = Di(i.boundingBox, s.boundingBox);
4959
4959
  o && (i.dy += o.dy, i.boundingBox.y -= o.dy);
4960
4960
  }
4961
4961
  }
@@ -4964,7 +4964,7 @@ class G0 extends Ct {
4964
4964
  for (let n = t.length - 2; n >= 0; --n) {
4965
4965
  const i = t[n];
4966
4966
  for (let r = t.length - 1; r > n; --r) {
4967
- const s = t[r], o = Oi(s.boundingBox, i.boundingBox);
4967
+ const s = t[r], o = Di(s.boundingBox, i.boundingBox);
4968
4968
  o && (i.dy += o.dy, i.boundingBox.y += o.dy);
4969
4969
  }
4970
4970
  }
@@ -5048,28 +5048,32 @@ class q0 extends Ct {
5048
5048
  }, []);
5049
5049
  }
5050
5050
  }
5051
- function Dr(e, t) {
5052
- let n = 0, i = e.length - 1;
5053
- const r = 20;
5054
- let s = e[n][0], o = e[i][0];
5055
- for (; i - n > r; ) {
5056
- const c = Math.floor((i + n) / 2), h = e[c][0];
5057
- if (t >= s && t < h)
5058
- i = c, o = e[i][0];
5059
- else if (t >= h && t <= o)
5060
- n = c, s = e[n][0];
5061
- else if (t <= s && t > h)
5062
- i = c, o = e[i][0];
5063
- else if (t <= h && t >= o)
5064
- n = c, s = e[n][0];
5051
+ function Or(e, t) {
5052
+ var c, h, l, u, f, p, d, g, y;
5053
+ if (e.length < 2)
5054
+ return -1;
5055
+ const n = 20;
5056
+ let i = 0, r = e.length - 1, s = (c = e[i]) == null ? void 0 : c[0], o = (h = e[r]) == null ? void 0 : h[0];
5057
+ for (; r - i > n; ) {
5058
+ const _ = Math.floor((r + i) / 2), x = (l = e[_]) == null ? void 0 : l[0];
5059
+ if (s == null || o == null || x == null)
5060
+ return -1;
5061
+ if (t >= s && t < x)
5062
+ r = _, o = (u = e[r]) == null ? void 0 : u[0];
5063
+ else if (t >= x && t <= o)
5064
+ i = _, s = (f = e[i]) == null ? void 0 : f[0];
5065
+ else if (t <= s && t > x)
5066
+ r = _, o = (p = e[r]) == null ? void 0 : p[0];
5067
+ else if (t <= x && t >= o)
5068
+ i = _, s = (d = e[i]) == null ? void 0 : d[0];
5065
5069
  else
5066
5070
  return -1;
5067
5071
  }
5068
5072
  let a = -1;
5069
- for (let c = n; c < i; c++) {
5070
- const h = e[c][0], l = e[c + 1][0];
5071
- if (Math.min(h, l) <= t && t <= Math.max(h, l)) {
5072
- a = c;
5073
+ for (let _ = i; _ < r; _++) {
5074
+ const x = (g = e[_]) == null ? void 0 : g[0], v = (y = e[_ + 1]) == null ? void 0 : y[0];
5075
+ if (x != null && v != null && Math.min(x, v) <= t && t <= Math.max(x, v)) {
5076
+ a = _;
5073
5077
  break;
5074
5078
  }
5075
5079
  }
@@ -5077,7 +5081,7 @@ function Dr(e, t) {
5077
5081
  }
5078
5082
  function wt(e, t, n = null, i = null) {
5079
5083
  let r = null;
5080
- const s = Dr(e, t);
5084
+ const s = Or(e, t);
5081
5085
  if (s !== -1) {
5082
5086
  const o = e[s][1], a = e[s + 1][1];
5083
5087
  if (a && a) {
@@ -5272,13 +5276,13 @@ async function J0(e, t, n, i) {
5272
5276
  let v = i != null && i.isLeftToRight ? t[0][0] : t[t.length - 1][0];
5273
5277
  const A = u / f * (i != null && i.isLeftToRight ? -1 : 1);
5274
5278
  let b, S, T, F, L;
5275
- const D = [0, 0, 0];
5279
+ const O = [0, 0, 0];
5276
5280
  let C;
5277
5281
  for (let m = 0; m < f; m++) {
5278
5282
  _ = m * 4;
5279
- const M = Dr(t, v), w = t[M][0], k = t[M + 1][0] - w, R = (v - w) / k;
5283
+ const M = Or(t, v), w = t[M][0], k = t[M + 1][0] - w, R = (v - w) / k;
5280
5284
  for (let z = 0; z < p; z++)
5281
- b = r[z][M], S = r[z][M + 1], b == null || S == null ? (L = D, C = 0) : (T = b * (1 - R) + S * R, F = (T - l.min) * x, F = yt(~~F, 0, d - 1), L = g[F], C = 255), y.set([L[0], L[1], L[2], C], _), _ += f * 4;
5285
+ b = r[z][M], S = r[z][M + 1], b == null || S == null ? (L = O, C = 0) : (T = b * (1 - R) + S * R, F = (T - l.min) * x, F = yt(~~F, 0, d - 1), L = g[F], C = 255), y.set([L[0], L[1], L[2], C], _), _ += f * 4;
5282
5286
  v += A;
5283
5287
  }
5284
5288
  const I = new ImageData(y, f, p);
@@ -5430,7 +5434,7 @@ function xu(e, t, n) {
5430
5434
  return t[i].values[n];
5431
5435
  return null;
5432
5436
  }
5433
- const Di = 0.1, Qe = 1e3, vu = 150, wu = 30, bu = 10;
5437
+ const Oi = 0.1, Qe = 1e3, vu = 150, wu = 30, bu = 10;
5434
5438
  function ef(e) {
5435
5439
  if (!e || e.length === 0)
5436
5440
  return [];
@@ -5442,37 +5446,37 @@ function ef(e) {
5442
5446
  function nf(e, t) {
5443
5447
  if (!e || e.length === 0)
5444
5448
  return [];
5445
- const n = e ? e.map((x) => [x.easting, x.northing, x.tvd, x.md]) : [], i = new On(n, { tension: 0.75, arcDivisions: 5e3 }), r = i.length, s = Math.round(r * bu);
5449
+ const n = e ? e.map((x) => [x.easting, x.northing, x.tvd, x.md]) : [], i = new Dn(n, { tension: 0.75, arcDivisions: 5e3 }), r = i.length, s = Math.round(r * bu);
5446
5450
  let o = null;
5447
5451
  s > 0 ? o = $r(i.getPoints(s), 5e-4, 10) : o = [[n[0][0], n[0][1]]];
5448
- const a = o[0], c = o[o.length - 1], h = O.distance(a, c);
5452
+ const a = o[0], c = o[o.length - 1], h = D.distance(a, c);
5449
5453
  let l = null;
5450
5454
  if (h < vu) {
5451
5455
  const v = t / 180 * Math.PI;
5452
- l = new O(Math.cos(v), Math.sin(v)).mutable;
5456
+ l = new D(Math.cos(v), Math.sin(v)).mutable;
5453
5457
  } else
5454
5458
  l = Su(o, wu);
5455
5459
  const u = Math.max(0, Qe - r), f = u + r, p = [];
5456
5460
  let d = [];
5457
5461
  const g = l.toArray();
5458
- u > 0 && (d = xi(Math.ceil(u * Di)).map(
5462
+ u > 0 && (d = xi(Math.ceil(u * Oi)).map(
5459
5463
  (x) => l.set(g).scale(u * (1 - x)).subFrom(a).toArray()
5460
5464
  ), d.pop(), p.push(...d)), p.push(...o);
5461
- const y = xi(Math.ceil(Qe * Di)).map(
5465
+ const y = xi(Math.ceil(Qe * Oi)).map(
5462
5466
  (x) => l.set(g).scale(Qe * x).add(c).toArray()
5463
5467
  ).splice(1);
5464
5468
  return p.push(...y), Br(p, null, f);
5465
5469
  }
5466
5470
  function Su(e, t) {
5467
- const n = O.zero.mutable;
5471
+ const n = D.zero.mutable;
5468
5472
  let i = 0;
5469
- const r = O.zero.mutable;
5473
+ const r = D.zero.mutable;
5470
5474
  for (let s = 0; s < e.length - 1; s++) {
5471
5475
  const o = e.length - 1 - s;
5472
5476
  if (r.set(e[o]).sub(e[o - 1]), n.add(r), i = n.magnitude, i > t)
5473
5477
  break;
5474
5478
  }
5475
- return i === 0 ? new O([0, 0]) : n.scale(1 / i);
5479
+ return i === 0 ? new D([0, 0]) : n.scale(1 / i);
5476
5480
  }
5477
5481
  function $r(e, t = 1e-3, n = 10) {
5478
5482
  if (e.length <= 4)
@@ -5508,7 +5512,7 @@ class rf extends Ct {
5508
5512
  b > h && (b = h, b * d < v && (b = v / d));
5509
5513
  const S = u.invert(u.range()[0]) + x, T = u.invert(u.range()[1]) - x, [F, L] = this.getSurfacesAreaEdges();
5510
5514
  c.save(), c.font = `${b * d}px ${this.options.font || this.defaultFont}`;
5511
- let D = c.measureText(i.label), C = D.width / p;
5515
+ let O = c.measureText(i.label), C = O.width / p;
5512
5516
  if (y) {
5513
5517
  const H = S + (l ? -C : C);
5514
5518
  (!l && H > L || l && H < L) && (y = !1);
@@ -5534,14 +5538,14 @@ class rf extends Ct {
5534
5538
  s,
5535
5539
  o
5536
5540
  );
5537
- X || (X = new O(z.x, M));
5541
+ X || (X = new D(z.x, M));
5538
5542
  const B = X.y - z.y;
5539
5543
  if (B < b) {
5540
5544
  if (B * d < v)
5541
5545
  return;
5542
- b = B, c.font = `${b * d}px ${this.options.font || this.defaultFont}`, D = c.measureText(i.label), C = D.width / p;
5546
+ b = B, c.font = `${b * d}px ${this.options.font || this.defaultFont}`, O = c.measureText(i.label), C = O.width / p;
5543
5547
  }
5544
- const W = y !== l ? O.right : O.left, Q = this.calcAreaDir(
5548
+ const W = y !== l ? D.right : D.left, Q = this.calcAreaDir(
5545
5549
  R,
5546
5550
  $,
5547
5551
  I,
@@ -5565,10 +5569,10 @@ class rf extends Ct {
5565
5569
  let b;
5566
5570
  const S = 5;
5567
5571
  u ? b = s ? Math.max(A, x) : Math.min(A, x) : b = s ? Math.min(v, _) : Math.max(v, _);
5568
- const T = y / S * (u ? -1 : 1), { data: F } = i, L = this.calcPos(F, b, S, T), D = this.calcLineDir(F, b, S, T, l, u ? O.left : O.right);
5569
- if (!L || !D)
5572
+ const T = y / S * (u ? -1 : 1), { data: F } = i, L = this.calcPos(F, b, S, T), O = this.calcLineDir(F, b, S, T, l, u ? D.left : D.right);
5573
+ if (!L || !O)
5570
5574
  return;
5571
- const C = b, I = L.y - Rr - d / 2, N = O.angleRight(D) - (u ? Math.PI : 0);
5575
+ const C = b, I = L.y - Rr - d / 2, N = D.angleRight(O) - (u ? Math.PI : 0);
5572
5576
  r.textAlign = u ? "right" : "left", r.translate(o(C), a(I)), r.rotate(N), r.fillStyle = this.colorToCSSColor(i.color), r.textBaseline = "middle", r.fillText(i.label, 0, 0), r.restore();
5573
5577
  }, this.render = this.render.bind(this), this.getMarginsInWorldCoordinates = this.getMarginsInWorldCoordinates.bind(this), this.getSurfacesAreaEdges = this.getSurfacesAreaEdges.bind(this), this.updateXFlipped = this.updateXFlipped.bind(this), this.generateSurfacesWithAvgDepth = this.generateSurfacesWithAvgDepth.bind(this);
5574
5578
  }
@@ -5629,7 +5633,7 @@ class rf extends Ct {
5629
5633
  return n = "000000".substr(0, 6 - n.length) + n, `#${n}`;
5630
5634
  }
5631
5635
  calcPos(t, n, i, r, s = null, o = null, a = null, c = null, h = null) {
5632
- const l = O.zero.mutable;
5636
+ const l = D.zero.mutable;
5633
5637
  let u = 0;
5634
5638
  for (let f = 0; f < i; f++) {
5635
5639
  const p = n + f * r, d = wt(t, p, s, o);
@@ -5638,7 +5642,7 @@ class rf extends Ct {
5638
5642
  l.add(p, y), u++;
5639
5643
  }
5640
5644
  }
5641
- return u === 0 ? null : O.divide(l, u);
5645
+ return u === 0 ? null : D.divide(l, u);
5642
5646
  }
5643
5647
  getAlternativeYValueIfAvailable(t, n, i, r, s, o) {
5644
5648
  if (!r)
@@ -5658,42 +5662,42 @@ class rf extends Ct {
5658
5662
  }
5659
5663
  return a;
5660
5664
  }
5661
- calcLineDir(t, n, i, r, s, o = O.left, a = null, c = null) {
5665
+ calcLineDir(t, n, i, r, s, o = D.left, a = null, c = null) {
5662
5666
  const h = o.mutable, l = wt(t, n, a, c);
5663
5667
  if (l === null)
5664
5668
  return h;
5665
- const u = new O(n, l * s), f = O.zero.mutable;
5669
+ const u = new D(n, l * s), f = D.zero.mutable;
5666
5670
  for (let p = 1; p <= i; p++) {
5667
5671
  const d = n + p * r, g = wt(t, n, a, c);
5668
5672
  g !== null && (f.set(d, g * s), f.sub(u), h.add(f));
5669
5673
  }
5670
5674
  return h;
5671
5675
  }
5672
- calcAreaDir(t, n, i, r, s, o = O.left, a = null, c = null, h = 0, l = Math.PI / 4, u = 4, f = null, p = null, d = null) {
5673
- const g = [], y = O.zero.mutable;
5676
+ calcAreaDir(t, n, i, r, s, o = D.left, a = null, c = null, h = 0, l = Math.PI / 4, u = 4, f = null, p = null, d = null) {
5677
+ const g = [], y = D.zero.mutable;
5674
5678
  let _;
5675
5679
  for (let T = 0; T <= r; T++) {
5676
- const F = i + T * s, L = wt(t, F, a, c), D = wt(n, F, a, c) || c, C = this.getAlternativeYValueIfAvailable(
5680
+ const F = i + T * s, L = wt(t, F, a, c), O = wt(n, F, a, c) || c, C = this.getAlternativeYValueIfAvailable(
5677
5681
  F,
5678
5682
  a,
5679
5683
  c,
5680
5684
  f,
5681
5685
  p,
5682
5686
  d
5683
- ), I = C ? Math.min(D, C) : D;
5687
+ ), I = C ? Math.min(O, C) : O;
5684
5688
  if (T === 0) {
5685
5689
  if (L === null)
5686
- return O.angleRight(o);
5690
+ return D.angleRight(o);
5687
5691
  const N = (L + I) / 2;
5688
- _ = new O(i, N);
5692
+ _ = new D(i, N);
5689
5693
  } else
5690
- L !== null ? (y.set(F, (L + I) / 2), y.sub(_), g.push(O.angleRight(y))) : g.push(O.angleRight(o));
5694
+ L !== null ? (y.set(F, (L + I) / 2), y.sub(_), g.push(D.angleRight(y))) : g.push(D.angleRight(o));
5691
5695
  }
5692
5696
  const x = g[0], v = g.map((T) => T - x);
5693
5697
  let A = 0;
5694
5698
  return v.reduce((T, F) => {
5695
- const L = (Math.abs(F) - h) / l, D = Math.pow(1 - yt(L, 0, 1), u);
5696
- return A += D, T + F * D;
5699
+ const L = (Math.abs(F) - h) / l, O = Math.pow(1 - yt(L, 0, 1), u);
5700
+ return A += O, T + F * O;
5697
5701
  }, 0) / A + x;
5698
5702
  }
5699
5703
  updateXFlipped() {
@@ -5742,8 +5746,8 @@ class rf extends Ct {
5742
5746
  const p = Math.max(u[0][0], f[0][0]), d = Math.min(u[0][0], f[0][0]), g = {
5743
5747
  left: n ? p : d,
5744
5748
  right: n ? d : p
5745
- }, y = this.getMarginsInWorldCoordinates(), _ = a + y, x = c - y, [v, A] = this.getSurfacesAreaEdges(), b = n ? Math.min(_, v) : Math.max(_, v), S = n ? Math.max(x, A) : Math.min(x, A), T = Math.max(n ? b - g.left : g.left - b, 0), F = Math.max(n ? g.right - S : S - g.right, 0), L = T * s, D = F * s;
5746
- return T > F || L > o || L < o && D < o && n || f[0][1] < h;
5749
+ }, y = this.getMarginsInWorldCoordinates(), _ = a + y, x = c - y, [v, A] = this.getSurfacesAreaEdges(), b = n ? Math.min(_, v) : Math.max(_, v), S = n ? Math.max(x, A) : Math.min(x, A), T = Math.max(n ? b - g.left : g.left - b, 0), F = Math.max(n ? g.right - S : S - g.right, 0), L = T * s, O = F * s;
5750
+ return T > F || L > o || L < o && O < o && n || f[0][1] < h;
5747
5751
  }
5748
5752
  }
5749
5753
  const ku = 1e4;
@@ -5770,8 +5774,10 @@ class sf extends Ir {
5770
5774
  const n = new Gt(), { data: i } = t, r = 0.5;
5771
5775
  n.lineStyle(Rr, t.color, 1, r, !0);
5772
5776
  let s = !1;
5773
- for (let o = 0; o < i.length; o++)
5774
- i[o][1] ? s ? n.lineTo(i[o][0], i[o][1]) : (n.moveTo(i[o][0], i[o][1]), s = !0) : s = !1;
5777
+ for (let o = 0; o < i.length; o++) {
5778
+ const a = i[o];
5779
+ a && a[1] && a[0] ? s ? n.lineTo(a[0], a[1]) : (n.moveTo(a[0], a[1]), s = !0) : s = !1;
5780
+ }
5775
5781
  this.addChild(n);
5776
5782
  };
5777
5783
  }
@@ -5901,7 +5907,7 @@ const Fu = {
5901
5907
  alpha: e.alpha,
5902
5908
  texture: t,
5903
5909
  alignment: e.alignment
5904
- }), this.activeTexture = t;
5910
+ });
5905
5911
  } else
5906
5912
  this.graphics.lineStyle({
5907
5913
  width: e.width * e.scale,
@@ -6048,9 +6054,9 @@ const Fu = {
6048
6054
  };
6049
6055
  let Yr = gt;
6050
6056
  Yr.dashTextureCache = {};
6051
- const bn = (e) => new O(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6057
+ const bn = (e) => new D(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6052
6058
  if (e.length < 2)
6053
- return [new O(0)];
6059
+ return [new D(0)];
6054
6060
  let t;
6055
6061
  return e.map((n, i, r) => {
6056
6062
  if (i < r.length - 1) {
@@ -6085,10 +6091,10 @@ const bn = (e) => new O(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6085
6091
  (h) => h.start <= i && h.end >= i
6086
6092
  ), o = s ? s.diameter : 0, a = t.filter((h) => G(h) > o).sort((h, l) => G(h) - G(l)).find((h) => h.start <= i && h.end >= i), c = n.find((h) => h.start <= i && h.end >= i && h.diameter > o);
6087
6093
  return a ? G(a) : c ? c.diameter : 100;
6088
- }, Ou = (e, t, n, i) => {
6094
+ }, Du = (e, t, n, i) => {
6089
6095
  const s = e.sort((a, c) => c.diameter - a.diameter).find((a) => a.start <= n && a.end >= n), o = t.find((a) => a.start <= n && a.end >= n);
6090
6096
  return s && i !== "Open hole frac pack" && i !== "Open hole gravel pack" ? G(s) : o ? o.diameter : 100;
6091
- }, Du = (e, t, n, i) => {
6097
+ }, Ou = (e, t, n, i) => {
6092
6098
  const s = e.sort((h, l) => G(h) - G(l)).find((h) => h.start <= i && h.end >= i);
6093
6099
  if (s)
6094
6100
  return G(s);
@@ -6145,7 +6151,7 @@ const bn = (e) => new O(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6145
6151
  return $e([e.start, e.end], l).flatMap((d, g, y) => {
6146
6152
  if (g === y.length - 1)
6147
6153
  return [];
6148
- const _ = y[g + 1], x = Du(o, h, c, d);
6154
+ const _ = y[g + 1], x = Ou(o, h, c, d);
6149
6155
  return [{ top: d, bottom: _, diameter: x * r }];
6150
6156
  }).map((d) => ({
6151
6157
  diameter: d.diameter,
@@ -6241,7 +6247,7 @@ const bn = (e) => new O(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6241
6247
  return $e([e.start, e.end], a).flatMap((u, f, p) => {
6242
6248
  if (f === p.length - 1)
6243
6249
  return [];
6244
- const d = p[f + 1], g = Ou(s, o, u, e.subKind);
6250
+ const d = p[f + 1], g = Du(s, o, u, e.subKind);
6245
6251
  return [{ top: u, bottom: d, diameter: g * i }];
6246
6252
  }).map((u) => {
6247
6253
  const f = r(u.top, u.bottom);
@@ -6391,15 +6397,12 @@ const bn = (e) => new O(e.x, e.y), Ru = (e) => new qi(e[0], e[1]), Wr = (e) => {
6391
6397
  e.subKind
6392
6398
  );
6393
6399
  class i0 extends Cn {
6394
- // TODO unused?
6395
6400
  /**
6396
6401
  * @param segments - An array of segments with points and diameter to construct this rope.
6397
- * @param textureScale - scaling factor for repeated texture. To create a tiling rope
6398
- * set baseTexture.wrapMode to PIXI.WRAP_MODES.REPEAT and use a power of two texture.
6399
6402
  */
6400
- constructor(t, n = 0) {
6401
- const i = Ue(t, (r) => r.points.length);
6402
- super(new Float32Array(i * 4), new Float32Array(i * 4), new Uint16Array((i - 1) * 6)), this.segments = t, this.textureScale = n, this.build();
6403
+ constructor(t) {
6404
+ const n = Ue(t, (i) => i.points.length);
6405
+ super(new Float32Array(n * 4), new Float32Array(n * 4), new Uint16Array((n - 1) * 6)), this.segments = t, this.build();
6403
6406
  }
6404
6407
  /**
6405
6408
  * The max width (i.e., thickness) of the rope.
@@ -6463,11 +6466,10 @@ class r0 extends Ln {
6463
6466
  /**
6464
6467
  * @param texture - The texture to use on the rope.
6465
6468
  * @param segments - An array of segments with points and diaeter to construct this rope.
6466
- * @param {number} textureScale - Optional. Adjust interval of repeated texture
6467
6469
  */
6468
- constructor(t, n, i = 0) {
6469
- const r = new i0(n, i), s = new kn(t);
6470
- t.baseTexture.wrapMode = ke.REPEAT, super(r, s), this.autoUpdate = !0;
6470
+ constructor(t, n) {
6471
+ const i = new i0(n), r = new kn(t);
6472
+ t.baseTexture.wrapMode = ke.REPEAT, super(i, r), this.autoUpdate = !0;
6471
6473
  }
6472
6474
  _render(t) {
6473
6475
  const n = this.geometry;
@@ -6633,7 +6635,7 @@ const h0 = (e, t, n) => (i) => {
6633
6635
  case "cementSqueeze":
6634
6636
  return n(i);
6635
6637
  default:
6636
- return De(i);
6638
+ return Oe(i);
6637
6639
  }
6638
6640
  }, l0 = (e) => ({
6639
6641
  exaggerationFactor: 2,
@@ -6642,8 +6644,8 @@ const h0 = (e, t, n) => (i) => {
6642
6644
  casingOptions: Fl,
6643
6645
  cementOptions: Il,
6644
6646
  cementSqueezeOptions: zl,
6645
- screenOptions: Ol,
6646
- tubingOptions: Dl,
6647
+ screenOptions: Dl,
6648
+ tubingOptions: Ol,
6647
6649
  cementPlugOptions: Nl,
6648
6650
  perforationOptions: Rl
6649
6651
  }), Zr = class extends Ir {
@@ -6963,8 +6965,8 @@ const h0 = (e, t, n) => (i) => {
6963
6965
  drawComplexRope(e, t) {
6964
6966
  if (e.length === 0)
6965
6967
  return null;
6966
- const { exaggerationFactor: n } = this.options, i = new r0(t, e, n);
6967
- return this.addChild(i), i;
6968
+ const n = new r0(t, e);
6969
+ return this.addChild(n), n;
6968
6970
  }
6969
6971
  createCasingTexture(e) {
6970
6972
  return new V(V.WHITE.baseTexture, null, new qt(0, 0, 16, e));
@@ -7688,7 +7690,7 @@ const Wi = (e, t) => {
7688
7690
  case "solid":
7689
7691
  return e.solid(t);
7690
7692
  default:
7691
- return De(t.lineType);
7693
+ return Oe(t.lineType);
7692
7694
  }
7693
7695
  };
7694
7696
  class hf extends Ct {
@@ -7915,7 +7917,7 @@ class z0 {
7915
7917
  this._axis && this._axis.onRescale(t), this.layers && this.layers.forEach((n) => n.isVisible === !0 ? n.onRescale(t) : {});
7916
7918
  }
7917
7919
  }
7918
- class O0 {
7920
+ class D0 {
7919
7921
  constructor(t, n) {
7920
7922
  this.elements = {}, this.listeners = {}, this.enabled = !0;
7921
7923
  const i = q(n);
@@ -7982,7 +7984,7 @@ class O0 {
7982
7984
  this.source.remove();
7983
7985
  }
7984
7986
  }
7985
- const D0 = (e, t) => new O0(e, t);
7987
+ const O0 = (e, t) => new D0(e, t);
7986
7988
  class lf {
7987
7989
  /**
7988
7990
  * Interface to control layers, reference system, axis and overlay. overlay is created on instantiation, does not currently support opt-out.
@@ -7998,7 +8000,7 @@ class lf {
7998
8000
  */
7999
8001
  constructor(t) {
8000
8002
  const { container: n, axisOptions: i, scaleOptions: r, referenceSystem: s, layers: o, path: a } = t;
8001
- this._referenceSystem = s || a && new Qt(a), this._overlay = D0(this, n), this.layerManager = new z0(this._overlay.elm.node(), r, i), o && (this.layerManager.addLayers(o), this.setOverlayZIndex(o));
8003
+ this._referenceSystem = s || a && new Qt(a), this._overlay = O0(this, n), this.layerManager = new z0(this._overlay.elm.node(), r, i), o && (this.layerManager.addLayers(o), this.setOverlayZIndex(o));
8002
8004
  }
8003
8005
  /**
8004
8006
  * Sets reference system, overrides any existing reference systems in place
@@ -8212,7 +8214,7 @@ export {
8212
8214
  af as SeismicCanvasLayer,
8213
8215
  cf as WellborepathLayer,
8214
8216
  ul as ZoomPanHandler,
8215
- De as assertNever,
8217
+ Oe as assertNever,
8216
8218
  wn as calcSize,
8217
8219
  Fl as defaultCasingOptions,
8218
8220
  Il as defaultCementOptions,
@@ -8221,9 +8223,9 @@ export {
8221
8223
  El as defaultHoleOptions,
8222
8224
  kl as defaultInternalLayerOptions,
8223
8225
  Rl as defaultPerforationOptions,
8224
- Ol as defaultScreenOptions,
8225
- Dl as defaultTubingOptions,
8226
- Dr as findIndexOfSample,
8226
+ Dl as defaultScreenOptions,
8227
+ Ol as defaultTubingOptions,
8228
+ Or as findIndexOfSample,
8227
8229
  wt as findSampleAtPos,
8228
8230
  bl as foldCompletion,
8229
8231
  K as foldPerforationSubKind,
@@ -8232,7 +8234,7 @@ export {
8232
8234
  J0 as generateSeismicSliceImage,
8233
8235
  tf as generateSurfaceData,
8234
8236
  W0 as getOverlap,
8235
- Oi as getOverlapOffset,
8237
+ Di as getOverlapOffset,
8236
8238
  j0 as getPicksData,
8237
8239
  Q0 as getSeismicInfo,
8238
8240
  K0 as getSeismicOptions,