@rebilly/instruments 16.127.0 → 16.128.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.
package/dist/index.js CHANGED
@@ -1154,126 +1154,15 @@ function kebabCase(str) {
1154
1154
  const words$1 = words(str);
1155
1155
  return words$1.map((word) => word.toLowerCase()).join("-");
1156
1156
  }
1157
- const en$1 = {
1158
- summary: {
1159
- subTotal: "Subtotal",
1160
- discounts: "Discounts",
1161
- taxes: "Taxes",
1162
- shipping: "Shipping",
1163
- total: "Total"
1164
- },
1165
- deposit: {
1166
- goBack: "Choose another amount"
1167
- },
1168
- form: {
1169
- expressCheckout: "Express checkout",
1170
- or: "Or",
1171
- popupOverlayText: "Click here to show popup window",
1172
- andMore: "and more",
1173
- error: {
1174
- noPaymentMethods: "No payment methods available for this transaction, please contact support.",
1175
- invoiceIsPaid: "The invoice has been fully paid.",
1176
- invoiceIsVoid: "The invoice has been voided.",
1177
- invoiceIsAbandoned: "The invoice has been abandoned.",
1178
- invoiceIsRefunded: "The invoice has been refunded.",
1179
- transactionIsCompleted: "The transaction is completed and cannot be updated.",
1180
- payoutCannotSelectPaymentInstrument: "The payout request cannot be updated."
1181
- },
1182
- loaderMessages: {
1183
- processingPayment: "Processing payment instrument."
1184
- },
1185
- bumpOffer: {
1186
- title: "Yes, I want to upgrade!",
1187
- startingAt: "Starting at {basePrice}"
1188
- }
1189
- },
1190
- paymentMethods: {
1191
- "payment-card": "Payment card",
1192
- ach: "Bank account"
1193
- }
1194
- };
1157
+ const en$1 = { "summary": { "subTotal": "Subtotal", "discounts": "Discounts", "taxes": "Taxes", "shipping": "Shipping", "total": "Total" }, "deposit": { "goBack": "Choose another amount" }, "form": { "expressCheckout": "Express checkout", "or": "Or", "popupOverlayText": "Click here to show popup window", "andMore": "and more", "error": { "noPaymentMethods": "No payment methods available for this transaction, please contact support.", "invoiceIsPaid": "The invoice has been fully paid.", "invoiceIsVoid": "The invoice has been voided.", "invoiceIsAbandoned": "The invoice has been abandoned.", "invoiceIsRefunded": "The invoice has been refunded.", "transactionIsCompleted": "The transaction is completed and cannot be updated.", "payoutCannotSelectPaymentInstrument": "The payout request cannot be updated." }, "loaderMessages": { "processingPayment": "Processing payment instrument." }, "bumpOffer": { "title": "Yes, I want to upgrade!", "startingAt": "Starting at {basePrice}" } }, "paymentMethods": { "payment-card": "Payment card", "ach": "Bank account" } };
1195
1158
  const en$2 = {
1196
1159
  en: en$1
1197
1160
  };
1198
- const es$1 = {
1199
- summary: {
1200
- subTotal: "Subtotal",
1201
- discounts: "Descuentos",
1202
- taxes: "Impuestos",
1203
- shipping: "Envío",
1204
- total: "Total"
1205
- },
1206
- deposit: {
1207
- goBack: "Elija otro monto a depositar"
1208
- },
1209
- form: {
1210
- expressCheckout: "Chequeo rápido",
1211
- or: "O pague con",
1212
- popupOverlayText: "Haga clic aquí para mostrar la ventana emergente",
1213
- andMore: "y más",
1214
- error: {
1215
- noPaymentMethods: "No hay métodos de pago disponibles para esta transacción, por favor, póngase en contacto con el servicio de asistencia.",
1216
- invoiceIsPaid: "La factura ha sido completamente pagada.",
1217
- invoiceIsVoid: "La factura ha sido anulada.",
1218
- invoiceIsAbandoned: "La factura ha sido abandonada.",
1219
- invoiceIsRefunded: "La factura ha reembolsada.",
1220
- transactionIsCompleted: "La transacción está finalizada y no se puede actualizar.",
1221
- payoutCannotSelectPaymentInstrument: "La solicitud de pago no se puede actualizar."
1222
- },
1223
- loaderMessages: {
1224
- processingPayment: "Procesamiento de instrumento de pago."
1225
- },
1226
- bumpOffer: {
1227
- title: "¡Sí, me gustaría actualizar!",
1228
- startingAt: "A partir de {basePrice}"
1229
- }
1230
- },
1231
- paymentMethods: {
1232
- "payment-card": "Tarjeta de crédito",
1233
- ach: "Cuenta bancaria"
1234
- }
1235
- };
1161
+ const es$1 = { "summary": { "subTotal": "Subtotal", "discounts": "Descuentos", "taxes": "Impuestos", "shipping": "Envío", "total": "Total" }, "deposit": { "goBack": "Elija otro monto a depositar" }, "form": { "expressCheckout": "Chequeo rápido", "or": "O pague con", "popupOverlayText": "Haga clic aquí para mostrar la ventana emergente", "andMore": "y más", "error": { "noPaymentMethods": "No hay métodos de pago disponibles para esta transacción, por favor, póngase en contacto con el servicio de asistencia.", "invoiceIsPaid": "La factura ha sido completamente pagada.", "invoiceIsVoid": "La factura ha sido anulada.", "invoiceIsAbandoned": "La factura ha sido abandonada.", "invoiceIsRefunded": "La factura ha reembolsada.", "transactionIsCompleted": "La transacción está finalizada y no se puede actualizar.", "payoutCannotSelectPaymentInstrument": "La solicitud de pago no se puede actualizar." }, "loaderMessages": { "processingPayment": "Procesamiento de instrumento de pago." }, "bumpOffer": { "title": "¡Sí, me gustaría actualizar!", "startingAt": "A partir de {basePrice}" } }, "paymentMethods": { "payment-card": "Tarjeta de crédito", "ach": "Cuenta bancaria" } };
1236
1162
  const es$2 = {
1237
1163
  es: es$1
1238
1164
  };
1239
- const ja = {
1240
- summary: {
1241
- subTotal: "Subtotal",
1242
- discounts: "Discounts",
1243
- taxes: "Taxes",
1244
- shipping: "Shipping",
1245
- total: "Total"
1246
- },
1247
- deposit: {
1248
- goBack: "Choose another amount"
1249
- },
1250
- form: {
1251
- expressCheckout: "Express checkout",
1252
- or: "Or",
1253
- popupOverlayText: "Click here to show popup window",
1254
- andMore: "and more",
1255
- error: {
1256
- noPaymentMethods: "No payment methods available for this transaction, please contact support.",
1257
- invoiceIsPaid: "The invoice has been fully paid.",
1258
- invoiceIsVoid: "The invoice has been voided.",
1259
- invoiceIsAbandoned: "The invoice has been abandoned.",
1260
- invoiceIsRefunded: "The invoice has been refunded.",
1261
- transactionIsCompleted: "The transaction is completed and cannot be updated.",
1262
- payoutCannotSelectPaymentInstrument: "The payout request cannot be updated."
1263
- },
1264
- loaderMessages: {
1265
- processingPayment: "Processing payment instrument."
1266
- },
1267
- bumpOffer: {
1268
- title: "Yes, I want to upgrade!",
1269
- startingAt: "Starting at {basePrice}"
1270
- }
1271
- },
1272
- paymentMethods: {
1273
- "payment-card": "Payment card",
1274
- ach: "Bank account"
1275
- }
1276
- };
1165
+ const ja = { "summary": { "subTotal": "Subtotal", "discounts": "Discounts", "taxes": "Taxes", "shipping": "Shipping", "total": "Total" }, "deposit": { "goBack": "Choose another amount" }, "form": { "expressCheckout": "Express checkout", "or": "Or", "popupOverlayText": "Click here to show popup window", "andMore": "and more", "error": { "noPaymentMethods": "No payment methods available for this transaction, please contact support.", "invoiceIsPaid": "The invoice has been fully paid.", "invoiceIsVoid": "The invoice has been voided.", "invoiceIsAbandoned": "The invoice has been abandoned.", "invoiceIsRefunded": "The invoice has been refunded.", "transactionIsCompleted": "The transaction is completed and cannot be updated.", "payoutCannotSelectPaymentInstrument": "The payout request cannot be updated." }, "loaderMessages": { "processingPayment": "Processing payment instrument." }, "bumpOffer": { "title": "Yes, I want to upgrade!", "startingAt": "Starting at {basePrice}" } }, "paymentMethods": { "payment-card": "Payment card", "ach": "Bank account" } };
1277
1166
  const ja$1 = {
1278
1167
  ja
1279
1168
  };
@@ -1512,7 +1401,7 @@ var resolveValue = function resolveValue2(model, property) {
1512
1401
  var unwrappedContext = typeof model[property] === "function" ? model[property]() : model[property];
1513
1402
  return Postmate.Promise.resolve(unwrappedContext);
1514
1403
  };
1515
- var ParentAPI = /* @__PURE__ */ function() {
1404
+ var ParentAPI = /* @__PURE__ */ (function() {
1516
1405
  function ParentAPI2(info) {
1517
1406
  var _this = this;
1518
1407
  this.parent = info.parent;
@@ -1579,8 +1468,8 @@ var ParentAPI = /* @__PURE__ */ function() {
1579
1468
  this.frame.parentNode.removeChild(this.frame);
1580
1469
  };
1581
1470
  return ParentAPI2;
1582
- }();
1583
- var ChildAPI = /* @__PURE__ */ function() {
1471
+ })();
1472
+ var ChildAPI = /* @__PURE__ */ (function() {
1584
1473
  function ChildAPI2(info) {
1585
1474
  var _this3 = this;
1586
1475
  this.model = info.model;
@@ -1627,8 +1516,8 @@ var ChildAPI = /* @__PURE__ */ function() {
1627
1516
  }, this.parentOrigin);
1628
1517
  };
1629
1518
  return ChildAPI2;
1630
- }();
1631
- var Postmate = /* @__PURE__ */ function() {
1519
+ })();
1520
+ var Postmate = /* @__PURE__ */ (function() {
1632
1521
  function Postmate2(_ref2) {
1633
1522
  var _ref2$container = _ref2.container, container = _ref2$container === void 0 ? typeof container !== "undefined" ? container : document.body : _ref2$container, model = _ref2.model, url = _ref2.url, name = _ref2.name, _ref2$classListArray = _ref2.classListArray, classListArray = _ref2$classListArray === void 0 ? [] : _ref2$classListArray, _ref2$logger = _ref2.logger, logger = _ref2$logger === void 0 ? {} : _ref2$logger;
1634
1523
  this.parent = window;
@@ -1698,16 +1587,16 @@ var Postmate = /* @__PURE__ */ function() {
1698
1587
  });
1699
1588
  };
1700
1589
  return Postmate2;
1701
- }();
1590
+ })();
1702
1591
  Postmate.maxHandshakeRequests = 5;
1703
- Postmate.Promise = function() {
1592
+ Postmate.Promise = (function() {
1704
1593
  try {
1705
1594
  return window ? window.Promise : Promise;
1706
1595
  } catch (e2) {
1707
1596
  return null;
1708
1597
  }
1709
- }();
1710
- Postmate.Model = /* @__PURE__ */ function() {
1598
+ })();
1599
+ Postmate.Model = /* @__PURE__ */ (function() {
1711
1600
  function Model(model, logger) {
1712
1601
  if (logger === void 0) {
1713
1602
  logger = {};
@@ -1754,7 +1643,7 @@ Postmate.Model = /* @__PURE__ */ function() {
1754
1643
  });
1755
1644
  };
1756
1645
  return Model;
1757
- }();
1646
+ })();
1758
1647
  class BaseIframe {
1759
1648
  constructor({
1760
1649
  name = "",
@@ -5040,6 +4929,7 @@ function et$1() {
5040
4929
  return "symbol";
5041
4930
  case "Promise":
5042
4931
  return "promise";
4932
+ // Set, Map, WeakSet, WeakMap
5043
4933
  case "WeakMap":
5044
4934
  return "weakmap";
5045
4935
  case "WeakSet":
@@ -5048,16 +4938,19 @@ function et$1() {
5048
4938
  return "map";
5049
4939
  case "Set":
5050
4940
  return "set";
4941
+ // 8-bit typed arrays
5051
4942
  case "Int8Array":
5052
4943
  return "int8array";
5053
4944
  case "Uint8Array":
5054
4945
  return "uint8array";
5055
4946
  case "Uint8ClampedArray":
5056
4947
  return "uint8clampedarray";
4948
+ // 16-bit typed arrays
5057
4949
  case "Int16Array":
5058
4950
  return "int16array";
5059
4951
  case "Uint16Array":
5060
4952
  return "uint16array";
4953
+ // 32-bit typed arrays
5061
4954
  case "Int32Array":
5062
4955
  return "int32array";
5063
4956
  case "Uint32Array":
@@ -5072,6 +4965,7 @@ function et$1() {
5072
4965
  switch (h2 = e2.call($2), h2) {
5073
4966
  case "[object Object]":
5074
4967
  return "object";
4968
+ // iterators
5075
4969
  case "[object Map Iterator]":
5076
4970
  return "mapiterator";
5077
4971
  case "[object Set Iterator]":
@@ -5369,7 +5263,7 @@ function O$1({ options: e2 }) {
5369
5263
  }
5370
5264
  function o2() {
5371
5265
  const g = {
5372
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@baf3d77`
5266
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((m2) => m2).join("/")}@8ebc3c3`
5373
5267
  };
5374
5268
  return e2.apiKey && (g["REB-APIKEY"] = e2.apiKey), g;
5375
5269
  }
@@ -5433,7 +5327,7 @@ function O$1({ options: e2 }) {
5433
5327
  function R({ request: c, isCollection: g, config: m2 }) {
5434
5328
  const p = z2(m2), { id: b, cancelToken: $t2 } = q$1.save();
5435
5329
  p.cancelToken = $t2;
5436
- const W2 = async function() {
5330
+ const W2 = (async function() {
5437
5331
  try {
5438
5332
  const d = await c(p);
5439
5333
  return ot2({
@@ -5446,7 +5340,7 @@ function O$1({ options: e2 }) {
5446
5340
  } finally {
5447
5341
  q$1.deleteById(b);
5448
5342
  }
5449
- }();
5343
+ })();
5450
5344
  return W2.cancel = (d) => I$1.cancelById(b, d), W2;
5451
5345
  }
5452
5346
  function ot2({ response: c, isCollection: g, config: m2 }) {
@@ -13995,12 +13889,12 @@ function t(e2) {
13995
13889
  throw "Illegal base64url string!";
13996
13890
  }
13997
13891
  try {
13998
- return function(e3) {
13999
- return decodeURIComponent(r(e3).replace(/(.)/g, function(e4, r2) {
13892
+ return (function(e3) {
13893
+ return decodeURIComponent(r(e3).replace(/(.)/g, (function(e4, r2) {
14000
13894
  var t3 = r2.charCodeAt(0).toString(16).toUpperCase();
14001
13895
  return t3.length < 2 && (t3 = "0" + t3), "%" + t3;
14002
- }));
14003
- }(t2);
13896
+ })));
13897
+ })(t2);
14004
13898
  } catch (e3) {
14005
13899
  return r(t2);
14006
13900
  }
@@ -14221,194 +14115,210 @@ const setupOptions = ({
14221
14115
  function getDefaultExportFromCjs(x2) {
14222
14116
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
14223
14117
  }
14224
- var colorName = {
14225
- "aliceblue": [240, 248, 255],
14226
- "antiquewhite": [250, 235, 215],
14227
- "aqua": [0, 255, 255],
14228
- "aquamarine": [127, 255, 212],
14229
- "azure": [240, 255, 255],
14230
- "beige": [245, 245, 220],
14231
- "bisque": [255, 228, 196],
14232
- "black": [0, 0, 0],
14233
- "blanchedalmond": [255, 235, 205],
14234
- "blue": [0, 0, 255],
14235
- "blueviolet": [138, 43, 226],
14236
- "brown": [165, 42, 42],
14237
- "burlywood": [222, 184, 135],
14238
- "cadetblue": [95, 158, 160],
14239
- "chartreuse": [127, 255, 0],
14240
- "chocolate": [210, 105, 30],
14241
- "coral": [255, 127, 80],
14242
- "cornflowerblue": [100, 149, 237],
14243
- "cornsilk": [255, 248, 220],
14244
- "crimson": [220, 20, 60],
14245
- "cyan": [0, 255, 255],
14246
- "darkblue": [0, 0, 139],
14247
- "darkcyan": [0, 139, 139],
14248
- "darkgoldenrod": [184, 134, 11],
14249
- "darkgray": [169, 169, 169],
14250
- "darkgreen": [0, 100, 0],
14251
- "darkgrey": [169, 169, 169],
14252
- "darkkhaki": [189, 183, 107],
14253
- "darkmagenta": [139, 0, 139],
14254
- "darkolivegreen": [85, 107, 47],
14255
- "darkorange": [255, 140, 0],
14256
- "darkorchid": [153, 50, 204],
14257
- "darkred": [139, 0, 0],
14258
- "darksalmon": [233, 150, 122],
14259
- "darkseagreen": [143, 188, 143],
14260
- "darkslateblue": [72, 61, 139],
14261
- "darkslategray": [47, 79, 79],
14262
- "darkslategrey": [47, 79, 79],
14263
- "darkturquoise": [0, 206, 209],
14264
- "darkviolet": [148, 0, 211],
14265
- "deeppink": [255, 20, 147],
14266
- "deepskyblue": [0, 191, 255],
14267
- "dimgray": [105, 105, 105],
14268
- "dimgrey": [105, 105, 105],
14269
- "dodgerblue": [30, 144, 255],
14270
- "firebrick": [178, 34, 34],
14271
- "floralwhite": [255, 250, 240],
14272
- "forestgreen": [34, 139, 34],
14273
- "fuchsia": [255, 0, 255],
14274
- "gainsboro": [220, 220, 220],
14275
- "ghostwhite": [248, 248, 255],
14276
- "gold": [255, 215, 0],
14277
- "goldenrod": [218, 165, 32],
14278
- "gray": [128, 128, 128],
14279
- "green": [0, 128, 0],
14280
- "greenyellow": [173, 255, 47],
14281
- "grey": [128, 128, 128],
14282
- "honeydew": [240, 255, 240],
14283
- "hotpink": [255, 105, 180],
14284
- "indianred": [205, 92, 92],
14285
- "indigo": [75, 0, 130],
14286
- "ivory": [255, 255, 240],
14287
- "khaki": [240, 230, 140],
14288
- "lavender": [230, 230, 250],
14289
- "lavenderblush": [255, 240, 245],
14290
- "lawngreen": [124, 252, 0],
14291
- "lemonchiffon": [255, 250, 205],
14292
- "lightblue": [173, 216, 230],
14293
- "lightcoral": [240, 128, 128],
14294
- "lightcyan": [224, 255, 255],
14295
- "lightgoldenrodyellow": [250, 250, 210],
14296
- "lightgray": [211, 211, 211],
14297
- "lightgreen": [144, 238, 144],
14298
- "lightgrey": [211, 211, 211],
14299
- "lightpink": [255, 182, 193],
14300
- "lightsalmon": [255, 160, 122],
14301
- "lightseagreen": [32, 178, 170],
14302
- "lightskyblue": [135, 206, 250],
14303
- "lightslategray": [119, 136, 153],
14304
- "lightslategrey": [119, 136, 153],
14305
- "lightsteelblue": [176, 196, 222],
14306
- "lightyellow": [255, 255, 224],
14307
- "lime": [0, 255, 0],
14308
- "limegreen": [50, 205, 50],
14309
- "linen": [250, 240, 230],
14310
- "magenta": [255, 0, 255],
14311
- "maroon": [128, 0, 0],
14312
- "mediumaquamarine": [102, 205, 170],
14313
- "mediumblue": [0, 0, 205],
14314
- "mediumorchid": [186, 85, 211],
14315
- "mediumpurple": [147, 112, 219],
14316
- "mediumseagreen": [60, 179, 113],
14317
- "mediumslateblue": [123, 104, 238],
14318
- "mediumspringgreen": [0, 250, 154],
14319
- "mediumturquoise": [72, 209, 204],
14320
- "mediumvioletred": [199, 21, 133],
14321
- "midnightblue": [25, 25, 112],
14322
- "mintcream": [245, 255, 250],
14323
- "mistyrose": [255, 228, 225],
14324
- "moccasin": [255, 228, 181],
14325
- "navajowhite": [255, 222, 173],
14326
- "navy": [0, 0, 128],
14327
- "oldlace": [253, 245, 230],
14328
- "olive": [128, 128, 0],
14329
- "olivedrab": [107, 142, 35],
14330
- "orange": [255, 165, 0],
14331
- "orangered": [255, 69, 0],
14332
- "orchid": [218, 112, 214],
14333
- "palegoldenrod": [238, 232, 170],
14334
- "palegreen": [152, 251, 152],
14335
- "paleturquoise": [175, 238, 238],
14336
- "palevioletred": [219, 112, 147],
14337
- "papayawhip": [255, 239, 213],
14338
- "peachpuff": [255, 218, 185],
14339
- "peru": [205, 133, 63],
14340
- "pink": [255, 192, 203],
14341
- "plum": [221, 160, 221],
14342
- "powderblue": [176, 224, 230],
14343
- "purple": [128, 0, 128],
14344
- "rebeccapurple": [102, 51, 153],
14345
- "red": [255, 0, 0],
14346
- "rosybrown": [188, 143, 143],
14347
- "royalblue": [65, 105, 225],
14348
- "saddlebrown": [139, 69, 19],
14349
- "salmon": [250, 128, 114],
14350
- "sandybrown": [244, 164, 96],
14351
- "seagreen": [46, 139, 87],
14352
- "seashell": [255, 245, 238],
14353
- "sienna": [160, 82, 45],
14354
- "silver": [192, 192, 192],
14355
- "skyblue": [135, 206, 235],
14356
- "slateblue": [106, 90, 205],
14357
- "slategray": [112, 128, 144],
14358
- "slategrey": [112, 128, 144],
14359
- "snow": [255, 250, 250],
14360
- "springgreen": [0, 255, 127],
14361
- "steelblue": [70, 130, 180],
14362
- "tan": [210, 180, 140],
14363
- "teal": [0, 128, 128],
14364
- "thistle": [216, 191, 216],
14365
- "tomato": [255, 99, 71],
14366
- "turquoise": [64, 224, 208],
14367
- "violet": [238, 130, 238],
14368
- "wheat": [245, 222, 179],
14369
- "white": [255, 255, 255],
14370
- "whitesmoke": [245, 245, 245],
14371
- "yellow": [255, 255, 0],
14372
- "yellowgreen": [154, 205, 50]
14373
- };
14374
- const colorName$1 = /* @__PURE__ */ getDefaultExportFromCjs(colorName);
14375
- const hexCharacters = "a-f\\d";
14376
- const match3or4Hex = `#?[${hexCharacters}]{3}[${hexCharacters}]?`;
14377
- const match6or8Hex = `#?[${hexCharacters}]{6}([${hexCharacters}]{2})?`;
14378
- const nonHexChars = new RegExp(`[^#${hexCharacters}]`, "gi");
14379
- const validHexSize = new RegExp(`^${match3or4Hex}$|^${match6or8Hex}$`, "i");
14380
- var hexRgb = (hex, options = {}) => {
14381
- if (typeof hex !== "string" || nonHexChars.test(hex) || !validHexSize.test(hex)) {
14382
- throw new TypeError("Expected a valid hex string");
14383
- }
14384
- hex = hex.replace(/^#/, "");
14385
- let alphaFromHex = 1;
14386
- if (hex.length === 8) {
14387
- alphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;
14388
- hex = hex.slice(0, 6);
14389
- }
14390
- if (hex.length === 4) {
14391
- alphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;
14392
- hex = hex.slice(0, 3);
14393
- }
14394
- if (hex.length === 3) {
14395
- hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
14396
- }
14397
- const number2 = Number.parseInt(hex, 16);
14398
- const red = number2 >> 16;
14399
- const green = number2 >> 8 & 255;
14400
- const blue = number2 & 255;
14401
- const alpha = typeof options.alpha === "number" ? options.alpha : alphaFromHex;
14402
- if (options.format === "array") {
14403
- return [red, green, blue, alpha];
14404
- }
14405
- if (options.format === "css") {
14406
- const alphaString = alpha === 1 ? "" : ` / ${Number((alpha * 100).toFixed(2))}%`;
14407
- return `rgb(${red} ${green} ${blue}${alphaString})`;
14408
- }
14409
- return { red, green, blue, alpha };
14410
- };
14411
- const hex2Rgb = /* @__PURE__ */ getDefaultExportFromCjs(hexRgb);
14118
+ var colorName$1;
14119
+ var hasRequiredColorName;
14120
+ function requireColorName() {
14121
+ if (hasRequiredColorName) return colorName$1;
14122
+ hasRequiredColorName = 1;
14123
+ colorName$1 = {
14124
+ "aliceblue": [240, 248, 255],
14125
+ "antiquewhite": [250, 235, 215],
14126
+ "aqua": [0, 255, 255],
14127
+ "aquamarine": [127, 255, 212],
14128
+ "azure": [240, 255, 255],
14129
+ "beige": [245, 245, 220],
14130
+ "bisque": [255, 228, 196],
14131
+ "black": [0, 0, 0],
14132
+ "blanchedalmond": [255, 235, 205],
14133
+ "blue": [0, 0, 255],
14134
+ "blueviolet": [138, 43, 226],
14135
+ "brown": [165, 42, 42],
14136
+ "burlywood": [222, 184, 135],
14137
+ "cadetblue": [95, 158, 160],
14138
+ "chartreuse": [127, 255, 0],
14139
+ "chocolate": [210, 105, 30],
14140
+ "coral": [255, 127, 80],
14141
+ "cornflowerblue": [100, 149, 237],
14142
+ "cornsilk": [255, 248, 220],
14143
+ "crimson": [220, 20, 60],
14144
+ "cyan": [0, 255, 255],
14145
+ "darkblue": [0, 0, 139],
14146
+ "darkcyan": [0, 139, 139],
14147
+ "darkgoldenrod": [184, 134, 11],
14148
+ "darkgray": [169, 169, 169],
14149
+ "darkgreen": [0, 100, 0],
14150
+ "darkgrey": [169, 169, 169],
14151
+ "darkkhaki": [189, 183, 107],
14152
+ "darkmagenta": [139, 0, 139],
14153
+ "darkolivegreen": [85, 107, 47],
14154
+ "darkorange": [255, 140, 0],
14155
+ "darkorchid": [153, 50, 204],
14156
+ "darkred": [139, 0, 0],
14157
+ "darksalmon": [233, 150, 122],
14158
+ "darkseagreen": [143, 188, 143],
14159
+ "darkslateblue": [72, 61, 139],
14160
+ "darkslategray": [47, 79, 79],
14161
+ "darkslategrey": [47, 79, 79],
14162
+ "darkturquoise": [0, 206, 209],
14163
+ "darkviolet": [148, 0, 211],
14164
+ "deeppink": [255, 20, 147],
14165
+ "deepskyblue": [0, 191, 255],
14166
+ "dimgray": [105, 105, 105],
14167
+ "dimgrey": [105, 105, 105],
14168
+ "dodgerblue": [30, 144, 255],
14169
+ "firebrick": [178, 34, 34],
14170
+ "floralwhite": [255, 250, 240],
14171
+ "forestgreen": [34, 139, 34],
14172
+ "fuchsia": [255, 0, 255],
14173
+ "gainsboro": [220, 220, 220],
14174
+ "ghostwhite": [248, 248, 255],
14175
+ "gold": [255, 215, 0],
14176
+ "goldenrod": [218, 165, 32],
14177
+ "gray": [128, 128, 128],
14178
+ "green": [0, 128, 0],
14179
+ "greenyellow": [173, 255, 47],
14180
+ "grey": [128, 128, 128],
14181
+ "honeydew": [240, 255, 240],
14182
+ "hotpink": [255, 105, 180],
14183
+ "indianred": [205, 92, 92],
14184
+ "indigo": [75, 0, 130],
14185
+ "ivory": [255, 255, 240],
14186
+ "khaki": [240, 230, 140],
14187
+ "lavender": [230, 230, 250],
14188
+ "lavenderblush": [255, 240, 245],
14189
+ "lawngreen": [124, 252, 0],
14190
+ "lemonchiffon": [255, 250, 205],
14191
+ "lightblue": [173, 216, 230],
14192
+ "lightcoral": [240, 128, 128],
14193
+ "lightcyan": [224, 255, 255],
14194
+ "lightgoldenrodyellow": [250, 250, 210],
14195
+ "lightgray": [211, 211, 211],
14196
+ "lightgreen": [144, 238, 144],
14197
+ "lightgrey": [211, 211, 211],
14198
+ "lightpink": [255, 182, 193],
14199
+ "lightsalmon": [255, 160, 122],
14200
+ "lightseagreen": [32, 178, 170],
14201
+ "lightskyblue": [135, 206, 250],
14202
+ "lightslategray": [119, 136, 153],
14203
+ "lightslategrey": [119, 136, 153],
14204
+ "lightsteelblue": [176, 196, 222],
14205
+ "lightyellow": [255, 255, 224],
14206
+ "lime": [0, 255, 0],
14207
+ "limegreen": [50, 205, 50],
14208
+ "linen": [250, 240, 230],
14209
+ "magenta": [255, 0, 255],
14210
+ "maroon": [128, 0, 0],
14211
+ "mediumaquamarine": [102, 205, 170],
14212
+ "mediumblue": [0, 0, 205],
14213
+ "mediumorchid": [186, 85, 211],
14214
+ "mediumpurple": [147, 112, 219],
14215
+ "mediumseagreen": [60, 179, 113],
14216
+ "mediumslateblue": [123, 104, 238],
14217
+ "mediumspringgreen": [0, 250, 154],
14218
+ "mediumturquoise": [72, 209, 204],
14219
+ "mediumvioletred": [199, 21, 133],
14220
+ "midnightblue": [25, 25, 112],
14221
+ "mintcream": [245, 255, 250],
14222
+ "mistyrose": [255, 228, 225],
14223
+ "moccasin": [255, 228, 181],
14224
+ "navajowhite": [255, 222, 173],
14225
+ "navy": [0, 0, 128],
14226
+ "oldlace": [253, 245, 230],
14227
+ "olive": [128, 128, 0],
14228
+ "olivedrab": [107, 142, 35],
14229
+ "orange": [255, 165, 0],
14230
+ "orangered": [255, 69, 0],
14231
+ "orchid": [218, 112, 214],
14232
+ "palegoldenrod": [238, 232, 170],
14233
+ "palegreen": [152, 251, 152],
14234
+ "paleturquoise": [175, 238, 238],
14235
+ "palevioletred": [219, 112, 147],
14236
+ "papayawhip": [255, 239, 213],
14237
+ "peachpuff": [255, 218, 185],
14238
+ "peru": [205, 133, 63],
14239
+ "pink": [255, 192, 203],
14240
+ "plum": [221, 160, 221],
14241
+ "powderblue": [176, 224, 230],
14242
+ "purple": [128, 0, 128],
14243
+ "rebeccapurple": [102, 51, 153],
14244
+ "red": [255, 0, 0],
14245
+ "rosybrown": [188, 143, 143],
14246
+ "royalblue": [65, 105, 225],
14247
+ "saddlebrown": [139, 69, 19],
14248
+ "salmon": [250, 128, 114],
14249
+ "sandybrown": [244, 164, 96],
14250
+ "seagreen": [46, 139, 87],
14251
+ "seashell": [255, 245, 238],
14252
+ "sienna": [160, 82, 45],
14253
+ "silver": [192, 192, 192],
14254
+ "skyblue": [135, 206, 235],
14255
+ "slateblue": [106, 90, 205],
14256
+ "slategray": [112, 128, 144],
14257
+ "slategrey": [112, 128, 144],
14258
+ "snow": [255, 250, 250],
14259
+ "springgreen": [0, 255, 127],
14260
+ "steelblue": [70, 130, 180],
14261
+ "tan": [210, 180, 140],
14262
+ "teal": [0, 128, 128],
14263
+ "thistle": [216, 191, 216],
14264
+ "tomato": [255, 99, 71],
14265
+ "turquoise": [64, 224, 208],
14266
+ "violet": [238, 130, 238],
14267
+ "wheat": [245, 222, 179],
14268
+ "white": [255, 255, 255],
14269
+ "whitesmoke": [245, 245, 245],
14270
+ "yellow": [255, 255, 0],
14271
+ "yellowgreen": [154, 205, 50]
14272
+ };
14273
+ return colorName$1;
14274
+ }
14275
+ var colorNameExports = requireColorName();
14276
+ const colorName = /* @__PURE__ */ getDefaultExportFromCjs(colorNameExports);
14277
+ var hexRgb;
14278
+ var hasRequiredHexRgb;
14279
+ function requireHexRgb() {
14280
+ if (hasRequiredHexRgb) return hexRgb;
14281
+ hasRequiredHexRgb = 1;
14282
+ const hexCharacters = "a-f\\d";
14283
+ const match3or4Hex = `#?[${hexCharacters}]{3}[${hexCharacters}]?`;
14284
+ const match6or8Hex = `#?[${hexCharacters}]{6}([${hexCharacters}]{2})?`;
14285
+ const nonHexChars = new RegExp(`[^#${hexCharacters}]`, "gi");
14286
+ const validHexSize = new RegExp(`^${match3or4Hex}$|^${match6or8Hex}$`, "i");
14287
+ hexRgb = (hex, options = {}) => {
14288
+ if (typeof hex !== "string" || nonHexChars.test(hex) || !validHexSize.test(hex)) {
14289
+ throw new TypeError("Expected a valid hex string");
14290
+ }
14291
+ hex = hex.replace(/^#/, "");
14292
+ let alphaFromHex = 1;
14293
+ if (hex.length === 8) {
14294
+ alphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;
14295
+ hex = hex.slice(0, 6);
14296
+ }
14297
+ if (hex.length === 4) {
14298
+ alphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;
14299
+ hex = hex.slice(0, 3);
14300
+ }
14301
+ if (hex.length === 3) {
14302
+ hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
14303
+ }
14304
+ const number2 = Number.parseInt(hex, 16);
14305
+ const red = number2 >> 16;
14306
+ const green = number2 >> 8 & 255;
14307
+ const blue = number2 & 255;
14308
+ const alpha = typeof options.alpha === "number" ? options.alpha : alphaFromHex;
14309
+ if (options.format === "array") {
14310
+ return [red, green, blue, alpha];
14311
+ }
14312
+ if (options.format === "css") {
14313
+ const alphaString = alpha === 1 ? "" : ` / ${Number((alpha * 100).toFixed(2))}%`;
14314
+ return `rgb(${red} ${green} ${blue}${alphaString})`;
14315
+ }
14316
+ return { red, green, blue, alpha };
14317
+ };
14318
+ return hexRgb;
14319
+ }
14320
+ var hexRgbExports = requireHexRgb();
14321
+ const hex2Rgb = /* @__PURE__ */ getDefaultExportFromCjs(hexRgbExports);
14412
14322
  const pattern$8 = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
14413
14323
  var hexRe$1 = new RegExp(pattern$8, "i");
14414
14324
  const float$1 = "-?\\d*(?:\\.\\d+)";
@@ -14477,17 +14387,17 @@ $
14477
14387
  var rgb4PercentageRe$1 = new RegExp(pattern$6$1);
14478
14388
  const pattern$7$1 = /^transparent$/;
14479
14389
  var transparentRe$1 = new RegExp(pattern$7$1, "i");
14480
- const clamp$3 = (num, min, max) => Math.min(Math.max(min, num), max);
14390
+ const clamp$1 = (num, min, max) => Math.min(Math.max(min, num), max);
14481
14391
  const parseRGB$1 = (num) => {
14482
14392
  let n2 = num;
14483
14393
  if (typeof n2 !== "number") n2 = n2.endsWith("%") ? parseFloat(n2) * 255 / 100 : parseFloat(n2);
14484
- return clamp$3(Math.round(n2), 0, 255);
14394
+ return clamp$1(Math.round(n2), 0, 255);
14485
14395
  };
14486
- const parsePercentage$1 = (percentage2) => clamp$3(parseFloat(percentage2), 0, 100);
14396
+ const parsePercentage$1 = (percentage2) => clamp$1(parseFloat(percentage2), 0, 100);
14487
14397
  function parseAlpha$1(alpha) {
14488
14398
  let a = alpha;
14489
14399
  if (typeof a !== "number") a = a.endsWith("%") ? parseFloat(a) / 100 : parseFloat(a);
14490
- return clamp$3(a, 0, 1);
14400
+ return clamp$1(a, 0, 1);
14491
14401
  }
14492
14402
  function getHEX$1(hex) {
14493
14403
  const [r2, g, b, a] = hex2Rgb(hex, { format: "array" });
@@ -14530,80 +14440,111 @@ const parseCSSColor$1 = (str) => {
14530
14440
  const rgb = rgb4NumberRe$1.exec(str) || rgb4PercentageRe$1.exec(str) || rgb3NumberRe$1.exec(str) || rgb3PercentageRe$1.exec(str);
14531
14441
  if (rgb) return getRGB$1(rgb);
14532
14442
  if (transparentRe$1.exec(str)) return getRGB$1([null, 0, 0, 0, 0]);
14533
- const cn2 = colorName$1[str.toLowerCase()];
14443
+ const cn2 = colorName[str.toLowerCase()];
14534
14444
  if (cn2) return getRGB$1([null, cn2[0], cn2[1], cn2[2], 1]);
14535
14445
  return null;
14536
14446
  };
14537
- function hsl2rgb(hsl) {
14538
- var h2 = hsl[0] / 360, s = hsl[1] / 100, l = hsl[2] / 100, t1, t2, t3, rgb, val;
14539
- if (s == 0) {
14540
- val = l * 255;
14541
- return [val, val, val];
14542
- }
14543
- if (l < 0.5)
14544
- t2 = l * (1 + s);
14545
- else
14546
- t2 = l + s - l * s;
14547
- t1 = 2 * l - t2;
14548
- rgb = [0, 0, 0];
14549
- for (var i = 0; i < 3; i++) {
14550
- t3 = h2 + 1 / 3 * -(i - 1);
14551
- t3 < 0 && t3++;
14552
- t3 > 1 && t3--;
14553
- if (6 * t3 < 1)
14554
- val = t1 + (t2 - t1) * 6 * t3;
14555
- else if (2 * t3 < 1)
14556
- val = t2;
14557
- else if (3 * t3 < 2)
14558
- val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
14447
+ var hsl2rgb_1;
14448
+ var hasRequiredHsl2rgb;
14449
+ function requireHsl2rgb() {
14450
+ if (hasRequiredHsl2rgb) return hsl2rgb_1;
14451
+ hasRequiredHsl2rgb = 1;
14452
+ function hsl2rgb2(hsl) {
14453
+ var h2 = hsl[0] / 360, s = hsl[1] / 100, l = hsl[2] / 100, t1, t2, t3, rgb, val;
14454
+ if (s == 0) {
14455
+ val = l * 255;
14456
+ return [val, val, val];
14457
+ }
14458
+ if (l < 0.5)
14459
+ t2 = l * (1 + s);
14460
+ else
14461
+ t2 = l + s - l * s;
14462
+ t1 = 2 * l - t2;
14463
+ rgb = [0, 0, 0];
14464
+ for (var i = 0; i < 3; i++) {
14465
+ t3 = h2 + 1 / 3 * -(i - 1);
14466
+ t3 < 0 && t3++;
14467
+ t3 > 1 && t3--;
14468
+ if (6 * t3 < 1)
14469
+ val = t1 + (t2 - t1) * 6 * t3;
14470
+ else if (2 * t3 < 1)
14471
+ val = t2;
14472
+ else if (3 * t3 < 2)
14473
+ val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
14474
+ else
14475
+ val = t1;
14476
+ rgb[i] = val * 255;
14477
+ }
14478
+ return rgb;
14479
+ }
14480
+ hsl2rgb_1 = hsl2rgb2;
14481
+ return hsl2rgb_1;
14482
+ }
14483
+ var hsl2rgbExports = requireHsl2rgb();
14484
+ const hsl2rgb = /* @__PURE__ */ getDefaultExportFromCjs(hsl2rgbExports);
14485
+ var clamp_1;
14486
+ var hasRequiredClamp;
14487
+ function requireClamp() {
14488
+ if (hasRequiredClamp) return clamp_1;
14489
+ hasRequiredClamp = 1;
14490
+ function clamp2(val, min, max) {
14491
+ return Math.min(Math.max(val, min), max);
14492
+ }
14493
+ clamp_1 = clamp2;
14494
+ return clamp_1;
14495
+ }
14496
+ var rgb2hex_1;
14497
+ var hasRequiredRgb2hex;
14498
+ function requireRgb2hex() {
14499
+ if (hasRequiredRgb2hex) return rgb2hex_1;
14500
+ hasRequiredRgb2hex = 1;
14501
+ var clamp2 = requireClamp();
14502
+ function componentToHex(c) {
14503
+ var value = Math.round(clamp2(c, 0, 255));
14504
+ var hex = value.toString(16);
14505
+ return hex.length == 1 ? "0" + hex : hex;
14506
+ }
14507
+ function rgb2hex2(rgb) {
14508
+ var alpha = rgb.length === 4 ? componentToHex(rgb[3] * 255) : "";
14509
+ return "#" + componentToHex(rgb[0]) + componentToHex(rgb[1]) + componentToHex(rgb[2]) + alpha;
14510
+ }
14511
+ rgb2hex_1 = rgb2hex2;
14512
+ return rgb2hex_1;
14513
+ }
14514
+ var rgb2hexExports = requireRgb2hex();
14515
+ const rgb2hex = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hexExports);
14516
+ var rgb2hsl_1;
14517
+ var hasRequiredRgb2hsl;
14518
+ function requireRgb2hsl() {
14519
+ if (hasRequiredRgb2hsl) return rgb2hsl_1;
14520
+ hasRequiredRgb2hsl = 1;
14521
+ function rgb2hsl2(rgb) {
14522
+ var r2 = rgb[0] / 255, g = rgb[1] / 255, b = rgb[2] / 255, min = Math.min(r2, g, b), max = Math.max(r2, g, b), delta = max - min, h2, s, l;
14523
+ if (max == min)
14524
+ h2 = 0;
14525
+ else if (r2 == max)
14526
+ h2 = (g - b) / delta;
14527
+ else if (g == max)
14528
+ h2 = 2 + (b - r2) / delta;
14529
+ else if (b == max)
14530
+ h2 = 4 + (r2 - g) / delta;
14531
+ h2 = Math.min(h2 * 60, 360);
14532
+ if (h2 < 0)
14533
+ h2 += 360;
14534
+ l = (min + max) / 2;
14535
+ if (max == min)
14536
+ s = 0;
14537
+ else if (l <= 0.5)
14538
+ s = delta / (max + min);
14559
14539
  else
14560
- val = t1;
14561
- rgb[i] = val * 255;
14562
- }
14563
- return rgb;
14564
- }
14565
- var hsl2rgb_1 = hsl2rgb;
14566
- const hsl2rgb$1 = /* @__PURE__ */ getDefaultExportFromCjs(hsl2rgb_1);
14567
- function clamp$2(val, min, max) {
14568
- return Math.min(Math.max(val, min), max);
14569
- }
14570
- var clamp_1 = clamp$2;
14571
- var clamp$1 = clamp_1;
14572
- function componentToHex(c) {
14573
- var value = Math.round(clamp$1(c, 0, 255));
14574
- var hex = value.toString(16);
14575
- return hex.length == 1 ? "0" + hex : hex;
14576
- }
14577
- function rgb2hex(rgb) {
14578
- var alpha = rgb.length === 4 ? componentToHex(rgb[3] * 255) : "";
14579
- return "#" + componentToHex(rgb[0]) + componentToHex(rgb[1]) + componentToHex(rgb[2]) + alpha;
14580
- }
14581
- var rgb2hex_1 = rgb2hex;
14582
- const rgb2hex$1 = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hex_1);
14583
- function rgb2hsl(rgb) {
14584
- var r2 = rgb[0] / 255, g = rgb[1] / 255, b = rgb[2] / 255, min = Math.min(r2, g, b), max = Math.max(r2, g, b), delta = max - min, h2, s, l;
14585
- if (max == min)
14586
- h2 = 0;
14587
- else if (r2 == max)
14588
- h2 = (g - b) / delta;
14589
- else if (g == max)
14590
- h2 = 2 + (b - r2) / delta;
14591
- else if (b == max)
14592
- h2 = 4 + (r2 - g) / delta;
14593
- h2 = Math.min(h2 * 60, 360);
14594
- if (h2 < 0)
14595
- h2 += 360;
14596
- l = (min + max) / 2;
14597
- if (max == min)
14598
- s = 0;
14599
- else if (l <= 0.5)
14600
- s = delta / (max + min);
14601
- else
14602
- s = delta / (2 - max - min);
14603
- return [h2, s * 100, l * 100];
14604
- }
14605
- var rgb2hsl_1 = rgb2hsl;
14606
- const rgb2hsl$1 = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hsl_1);
14540
+ s = delta / (2 - max - min);
14541
+ return [h2, s * 100, l * 100];
14542
+ }
14543
+ rgb2hsl_1 = rgb2hsl2;
14544
+ return rgb2hsl_1;
14545
+ }
14546
+ var rgb2hslExports = requireRgb2hsl();
14547
+ const rgb2hsl = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hslExports);
14607
14548
  /**
14608
14549
  * mix-css-color
14609
14550
  * @version v0.2.0
@@ -14613,7 +14554,7 @@ const rgb2hsl$1 = /* @__PURE__ */ getDefaultExportFromCjs(rgb2hsl_1);
14613
14554
  function parseColor(color) {
14614
14555
  const res = parseCSSColor$1(color);
14615
14556
  if (res === null) return null;
14616
- if (res.type === "hsl") res.values = hsl2rgb$1(res.values);
14557
+ if (res.type === "hsl") res.values = hsl2rgb(res.values);
14617
14558
  return res;
14618
14559
  }
14619
14560
  function mix(color1, color2, percentage2 = 50) {
@@ -14628,10 +14569,10 @@ function mix(color1, color2, percentage2 = 50) {
14628
14569
  const [r2, g, b] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w22));
14629
14570
  const alpha = parseFloat((c1.alpha * p + c2.alpha * (1 - p)).toFixed(8));
14630
14571
  return {
14631
- hex: rgb2hex$1([r2, g, b]),
14632
- hexa: rgb2hex$1([r2, g, b, alpha]),
14572
+ hex: rgb2hex([r2, g, b]),
14573
+ hexa: rgb2hex([r2, g, b, alpha]),
14633
14574
  rgba: [r2, g, b, alpha],
14634
- hsla: [...rgb2hsl$1([r2, g, b]).map(Math.round), alpha]
14575
+ hsla: [...rgb2hsl([r2, g, b]).map(Math.round), alpha]
14635
14576
  };
14636
14577
  }
14637
14578
  const pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
@@ -14755,7 +14696,7 @@ const parseCSSColor = (str) => {
14755
14696
  const rgb = rgb4NumberRe.exec(str) || rgb4PercentageRe.exec(str) || rgb3NumberRe.exec(str) || rgb3PercentageRe.exec(str);
14756
14697
  if (rgb) return getRGB(rgb);
14757
14698
  if (transparentRe.exec(str)) return getRGB([null, 0, 0, 0, 0]);
14758
- const cn2 = colorName$1[str.toLowerCase()];
14699
+ const cn2 = colorName[str.toLowerCase()];
14759
14700
  if (cn2) return getRGB([null, cn2[0], cn2[1], cn2[2], 1]);
14760
14701
  return null;
14761
14702
  };
@@ -14799,7 +14740,7 @@ class Values {
14799
14740
  return [...this.tints(weight).reverse(), Object.assign(this), ...this.shades(weight)];
14800
14741
  }
14801
14742
  hexString() {
14802
- return rgb2hex$1(this.alpha >= 1 ? this.rgb : [...this.rgb, this.alpha]);
14743
+ return rgb2hex(this.alpha >= 1 ? this.rgb : [...this.rgb, this.alpha]);
14803
14744
  }
14804
14745
  rgbString() {
14805
14746
  const channels = (this.alpha >= 1 ? this.rgb : [...this.rgb, this.alpha]).join(", ");
@@ -14813,7 +14754,7 @@ class Values {
14813
14754
  return this;
14814
14755
  }
14815
14756
  _setFromHSL([h2, s, l, a]) {
14816
- [this.rgb, this.alpha] = [hsl2rgb$1([h2, s, l]).map(Math.round), a];
14757
+ [this.rgb, this.alpha] = [hsl2rgb([h2, s, l]).map(Math.round), a];
14817
14758
  return this;
14818
14759
  }
14819
14760
  }