@ppg_pl/pallete 2.0.23 → 2.0.25

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 (89) hide show
  1. package/README.md +12 -5
  2. package/dist/cjs/{index-53e78fc8.js → index-d74cbc0d.js} +33 -2
  3. package/dist/cjs/index-d74cbc0d.js.map +1 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js.map +1 -1
  6. package/dist/cjs/my-backdrop_8.cjs.entry.js +1648 -1286
  7. package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -1
  8. package/dist/cjs/pallete.cjs.js +2 -2
  9. package/dist/cjs/pallete.cjs.js.map +1 -1
  10. package/dist/collection/components/my-backdrop/my-backdrop.css +7 -0
  11. package/dist/collection/components/my-colorbox/my-colorbox.css +7 -0
  12. package/dist/collection/components/my-colorinfo/assets/Shape.svg +4 -0
  13. package/dist/collection/components/my-colorinfo/assets/close.png +0 -0
  14. package/dist/collection/components/my-colorinfo/assets/shape.png +0 -0
  15. package/dist/collection/components/my-colorinfo/my-colorinfo.js +124 -1
  16. package/dist/collection/components/my-colorinfo/my-colorinfo.js.map +1 -1
  17. package/dist/collection/components/my-component/my-component.js +68 -1
  18. package/dist/collection/components/my-component/my-component.js.map +1 -1
  19. package/dist/collection/components/my-modal/my-modal.css +140 -31
  20. package/dist/collection/components/my-modal/my-modal.js +41 -2
  21. package/dist/collection/components/my-modal/my-modal.js.map +1 -1
  22. package/dist/collection/components/my-search/my-search.css +7 -0
  23. package/dist/collection/components/my-slider/index.js +9 -6
  24. package/dist/collection/components/my-slider/index.js.map +1 -1
  25. package/dist/collection/components/my-slider/my-slider.css +12 -3
  26. package/dist/collection/types.js.map +1 -1
  27. package/dist/components/index3.js +10 -7
  28. package/dist/components/index3.js.map +1 -1
  29. package/dist/components/my-backdrop2.js +1 -1
  30. package/dist/components/my-backdrop2.js.map +1 -1
  31. package/dist/components/my-colorbox2.js +1 -1
  32. package/dist/components/my-colorbox2.js.map +1 -1
  33. package/dist/components/my-colorinfo2.js +42 -2
  34. package/dist/components/my-colorinfo2.js.map +1 -1
  35. package/dist/components/my-component.js +15 -3
  36. package/dist/components/my-component.js.map +1 -1
  37. package/dist/components/my-modal2.js +1588 -1273
  38. package/dist/components/my-modal2.js.map +1 -1
  39. package/dist/components/my-search2.js +1 -1
  40. package/dist/components/my-search2.js.map +1 -1
  41. package/dist/esm/{index-b0145abf.js → index-45a30349.js} +33 -2
  42. package/dist/esm/index-45a30349.js.map +1 -0
  43. package/dist/esm/loader.js +3 -3
  44. package/dist/esm/loader.js.map +1 -1
  45. package/dist/esm/my-backdrop_8.entry.js +1648 -1286
  46. package/dist/esm/my-backdrop_8.entry.js.map +1 -1
  47. package/dist/esm/pallete.js +3 -3
  48. package/dist/esm/pallete.js.map +1 -1
  49. package/dist/pallete/assets/Shape.svg +4 -0
  50. package/dist/pallete/assets/shape.png +0 -0
  51. package/dist/pallete/p-a3449132.js +3 -0
  52. package/dist/pallete/p-a3449132.js.map +1 -0
  53. package/dist/pallete/p-d142c667.entry.js +2 -0
  54. package/dist/pallete/p-d142c667.entry.js.map +1 -0
  55. package/dist/pallete/pallete.css +1 -1
  56. package/dist/pallete/pallete.esm.js +1 -1
  57. package/dist/pallete/pallete.esm.js.map +1 -1
  58. package/dist/types/components/my-colorinfo/my-colorinfo.d.ts +11 -1
  59. package/dist/types/components/my-component/my-component.d.ts +9 -0
  60. package/dist/types/components/my-modal/my-modal.d.ts +3 -1
  61. package/dist/types/components.d.ts +24 -2
  62. package/dist/types/types.d.ts +4 -0
  63. package/package.json +5 -4
  64. package/www/build/assets/Shape.svg +4 -0
  65. package/www/build/assets/shape.png +0 -0
  66. package/www/build/p-8c41f668.js +2 -0
  67. package/www/build/p-a3449132.js +3 -0
  68. package/www/build/p-a3449132.js.map +1 -0
  69. package/www/build/p-d142c667.entry.js +2 -0
  70. package/www/build/p-d142c667.entry.js.map +1 -0
  71. package/www/build/p-f8a0208d.css +1 -0
  72. package/www/build/pallete.css +1 -1
  73. package/www/build/pallete.esm.js +1 -1
  74. package/www/build/pallete.esm.js.map +1 -1
  75. package/www/index.html +62 -10
  76. package/dist/cjs/index-53e78fc8.js.map +0 -1
  77. package/dist/esm/index-b0145abf.js.map +0 -1
  78. package/dist/pallete/p-bdb05818.entry.js +0 -2
  79. package/dist/pallete/p-bdb05818.entry.js.map +0 -1
  80. package/dist/pallete/p-c6a049a2.js +0 -3
  81. package/dist/pallete/p-c6a049a2.js.map +0 -1
  82. package/www/build/p-bdb05818.entry.js +0 -2
  83. package/www/build/p-bdb05818.entry.js.map +0 -1
  84. package/www/build/p-c6a049a2.js +0 -3
  85. package/www/build/p-c6a049a2.js.map +0 -1
  86. /package/www/{build/assets → assets}/fonts/Galatea-Regular.eot +0 -0
  87. /package/www/{build/assets → assets}/fonts/Galatea-Regular.ttf +0 -0
  88. /package/www/{build/assets → assets}/fonts/Galatea-Regular.woff +0 -0
  89. /package/www/{build/assets → assets}/fonts/Galatea-Regular.woff2 +0 -0
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, c as createEvent, g as getAssetPath, a as getElement } from './index-b0145abf.js';
1
+ import { r as registerInstance, h, c as createEvent, g as getAssetPath, a as getElement } from './index-45a30349.js';
2
2
 
3
- const myBackdropCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}my-backdrop{width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:100;left:0;top:0}";
3
+ const myBackdropCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}my-backdrop{width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:100;left:0;top:0}";
4
4
 
5
5
  const MyBackdrop = class {
6
6
  constructor(hostRef) {
@@ -43,7 +43,7 @@ class API {
43
43
  }
44
44
  const ApiService = new API();
45
45
 
46
- const myColorboxCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-color-box{width:125px;height:125px;display:block;margin-bottom:5px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;position:relative}@media (max-width: 1024px){.my-color-box{width:65px;height:65px}}.my-color-box .color-name{width:100%;background-color:#fff;padding:15px 0px 10px;border-top-left-radius:15px;border-top-right-radius:15px;opacity:0;transition:0.3s opacity ease-in-out;font-size:10px;color:#232323;text-transform:lowercase}.my-color-box.active .color-name{opacity:1}.my-color-box.categoryactive{width:120px;height:115px}.my-color-box.categoryactive .color-name{opacity:1}@media (max-width: 1024px){.my-color-box.categoryactive{width:72px;height:72px}}.my-color-box:hover .color-name{opacity:1}";
46
+ const myColorboxCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-color-box{width:125px;height:125px;display:block;margin-bottom:5px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;position:relative}@media (max-width: 1024px){.my-color-box{width:65px;height:65px}}.my-color-box .color-name{width:100%;background-color:#fff;padding:15px 0px 10px;border-top-left-radius:15px;border-top-right-radius:15px;opacity:0;transition:0.3s opacity ease-in-out;font-size:10px;color:#232323;text-transform:lowercase}.my-color-box.active .color-name{opacity:1}.my-color-box.categoryactive{width:120px;height:115px}.my-color-box.categoryactive .color-name{opacity:1}@media (max-width: 1024px){.my-color-box.categoryactive{width:72px;height:72px}}.my-color-box:hover .color-name{opacity:1}";
47
47
 
48
48
  const MyColorBox = class {
49
49
  constructor(hostRef) {
@@ -93,6 +93,7 @@ const MyColorInfo = class {
93
93
  constructor(hostRef) {
94
94
  registerInstance(this, hostRef);
95
95
  this.closeInfoBox = createEvent(this, "closeInfoBox", 7);
96
+ this.addToBasket = createEvent(this, "addToBasket", 7);
96
97
  this.goToProduct = () => {
97
98
  var _a;
98
99
  this.currentColor &&
@@ -128,14 +129,48 @@ const MyColorInfo = class {
128
129
  this.capitalizeFirstLetter = (string) => {
129
130
  return string.charAt(0).toUpperCase() + string.slice(1).toLocaleLowerCase();
130
131
  };
132
+ this.isVeryLightBackground = () => {
133
+ var _a, _b;
134
+ if (this.currentColor.imageInsteadHex)
135
+ return true;
136
+ const hex = (_b = (_a = this.currentColor.hex) === null || _a === void 0 ? void 0 : _a.replace('#', '')) !== null && _b !== void 0 ? _b : '';
137
+ if (hex.length !== 6 && hex.length !== 3)
138
+ return false;
139
+ const r = parseInt(hex.length === 3 ? hex[0] + hex[0] : hex.slice(0, 2), 16) / 255;
140
+ const g = parseInt(hex.length === 3 ? hex[1] + hex[1] : hex.slice(2, 4), 16) / 255;
141
+ const b = parseInt(hex.length === 3 ? hex[2] + hex[2] : hex.slice(4, 6), 16) / 255;
142
+ const luminance = 0.299 * r + 0.587 * g + 0.114 * b;
143
+ return luminance > 0.96; // only near-white: dark button; rest: white button
144
+ };
145
+ this.getButtonClass = () => {
146
+ if (this.currentColor.imageInsteadHex)
147
+ return 'brown';
148
+ return this.isVeryLightBackground() ? 'inverse' : '';
149
+ };
150
+ this.handleAddToBasket = () => {
151
+ var _a;
152
+ if (!((_a = this.availableTesters) === null || _a === void 0 ? void 0 : _a.id_product_attribute))
153
+ return;
154
+ this.buttonBlocked = true;
155
+ this.addToBasket.emit({
156
+ id: this.availableTesters.id_product_attribute,
157
+ });
158
+ setTimeout(() => {
159
+ this.buttonBlocked = false;
160
+ }, 10000);
161
+ };
131
162
  this.currentColor = undefined;
132
163
  this.shop = undefined;
133
164
  this.product = undefined;
134
165
  this.baselink = undefined;
166
+ this.availableTesters = undefined;
167
+ this.price = undefined;
135
168
  this.data = null;
136
169
  this.isMobile = false;
137
170
  this.infoBoxWidth = undefined;
138
171
  this.closeImage = 'close.png';
172
+ this.shapeImage = 'Shape.svg';
173
+ this.buttonBlocked = false;
139
174
  }
140
175
  render() {
141
176
  var _a;
@@ -144,8 +179,9 @@ const MyColorInfo = class {
144
179
  maxWidth: `${this.infoBoxWidth && this.infoBoxWidth - 4}px`,
145
180
  } }, this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("div", { class: "boxes__box-content__info", style: {
146
181
  maxWidth: this.isMobile ? `${this.infoBoxWidth && this.infoBoxWidth - 35}px` : ``,
147
- } }, !this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("h2", null, this.capitalizeFirstLetter(this.currentColor.name)), !this.isMobile && h("h4", null, this.currentColor.number), h("div", { class: "boxes__box-content__info__value" }, h("div", { class: "boxes__box-content__info__value-product" }, this.isMobile && h("div", { class: 'divider' }), this.currentColor && ((_a = this.currentColor.links) === null || _a === void 0 ? void 0 : _a.find((link) => (link === null || link === void 0 ? void 0 : link.shop) === this.shop)) && (h("a", { onClick: this.goToProduct, href: this.getHref(), class: `button ${this.currentColor.imageInsteadHex ? 'brown' : this.currentColor.buttonInverse ? 'inverse' : ''}` }, "wybierz kolor"))))), h("div", { class: "boxes__box-content__slider" }, this.renderSliderOrImage())));
182
+ } }, h("div", { class: "boxes__box-content__info__header" }, !this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("h2", null, this.capitalizeFirstLetter(this.currentColor.name)), !this.isMobile && h("h4", null, this.currentColor.number), this.currentColor && ((_a = this.currentColor.links) === null || _a === void 0 ? void 0 : _a.find((link) => (link === null || link === void 0 ? void 0 : link.shop) === this.shop)) && (h("a", { onClick: this.goToProduct, href: this.getHref(), class: `button ${this.getButtonClass()}` }, "wybierz kolor"))), h("div", { class: "boxes__box-content__info__value" }, h("div", { class: "divider" }), h("div", { class: "boxes__box-content__info__tester" }, ' ', h("div", { class: "divider" }), h("div", { class: "tester-text" }, h("h2", null, "Zam\u00F3w tester"), h("p", null, "Sprawd\u017A go na swojej \u015Bcianie.")), h("div", { class: "tester-buy" }, h("div", { class: "price" }, this.price ? `${this.price} zł` : ''), h("button", { class: `button fit ${this.getButtonClass()} ${!this.availableTesters ? 'disabled' : ''}`, onClick: this.handleAddToBasket, disabled: !this.availableTesters || this.buttonBlocked }, h("span", { class: "shape-icon", "aria-hidden": "true" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "16", viewBox: "0 0 15 16" }, h("path", { class: "shape-icon__path", transform: "translate(0.0867462 0)", d: "M13.246571 12.763281L11.931726 4.961875C11.801879 4.1936703 11.13567 3.6319427 10.35657 3.63375L9.7429771 3.63375L9.7429771 3.1025C9.7429771 1.3890365 8.35394 0 6.6404767 0C4.9270134 0 3.537977 1.3890365 3.537977 3.1025L3.537977 3.63375L2.9217269 3.63375C2.1426277 3.6319427 1.4764187 4.1936703 1.3465706 4.961875L0.034383144 12.763281C-0.086738147 13.483807 0.11555123 14.221112 0.58740741 14.778946C1.0592636 15.336781 1.7528107 15.658594 2.4834456 15.658594L10.797508 15.658594C11.528143 15.658594 12.22169 15.336781 12.693546 14.778946C13.165402 14.221112 13.367692 13.483807 13.246571 12.763281L13.246571 12.763281ZM4.3348517 3.0892186C4.3348517 1.8158572 5.3671155 0.78359371 6.6404767 0.78359371C7.9138384 0.78359371 8.9461021 1.8158572 8.9461021 3.0892186L8.9461021 3.6204686L4.3348517 3.6204686L4.3348517 3.0892186ZM12.08579 14.264063C11.765244 14.643165 11.293964 14.86172 10.797508 14.86172L2.4834456 14.86172C1.9871488 14.862442 1.5158025 14.644215 1.195269 14.265309C0.87473541 13.886404 0.73765546 13.385406 0.82063317 12.896093L2.1248519 5.092031C2.1891608 4.703371 2.5278175 4.4200282 2.9217269 4.4252396L3.5353208 4.4252396L3.5353208 5.5834374C3.5353208 5.8034883 3.7137072 5.9818749 3.9337583 5.9818749C4.1538091 5.9818749 4.3321958 5.8034883 4.3321958 5.5834374L4.3321958 4.4252396L8.9461021 4.4252396L8.9461021 5.5834374C8.9461021 5.8034883 9.1244888 5.9818749 9.3445396 5.9818749C9.5645905 5.9818749 9.7429771 5.8034883 9.7429771 5.5834374L9.7429771 4.4252396L10.359227 4.4252396C10.753137 4.4200282 11.091793 4.703371 11.156102 5.092031L12.46032 12.896093C12.542204 13.384947 12.40527 13.885097 12.08579 14.264063L12.08579 14.264063Z" }))), this.buttonBlocked ? 'Dodano do koszyka…' : !this.availableTesters ? 'Tester obecnie niedostępny' : 'Dodaj do koszyka'))))), h("div", { class: "boxes__box-content__slider" }, this.renderSliderOrImage())));
148
183
  }
184
+ static get assetsDirs() { return ["assets"]; }
149
185
  };
150
186
 
151
187
  const isObject$2 = (val) => !Array.isArray(val) && val !== null && typeof val === 'object';
@@ -269,10 +305,13 @@ const myComponentCss = ".pallete-wrapper.sc-my-component{display:flex;flex-direc
269
305
  const MyModalBundle = class {
270
306
  constructor(hostRef) {
271
307
  registerInstance(this, hostRef);
308
+ this.addToBasket = createEvent(this, "addToBasket", 7);
272
309
  this.shop = undefined;
273
310
  this.product = undefined;
274
311
  this.baselink = undefined;
275
312
  this.colorname = undefined;
313
+ this.available_testers = undefined;
314
+ this.price = undefined;
276
315
  this.show = false;
277
316
  this.readyToClose = false;
278
317
  }
@@ -289,10 +328,17 @@ const MyModalBundle = class {
289
328
  this.show = false;
290
329
  this.readyToClose = false;
291
330
  }
331
+ addToBasketHandler(event) {
332
+ const { id } = event.detail;
333
+ return id;
334
+ }
292
335
  render() {
293
336
  let content = null;
294
337
  if (this.show) {
295
- content = [h("my-backdrop", null), h("my-modal", { shop: this.shop, product: this.product, baselink: this.baselink, selectedcolor: this.colorname })];
338
+ content = [
339
+ h("my-backdrop", null),
340
+ h("my-modal", { shop: this.shop, product: this.product, baselink: this.baselink, selectedcolor: this.colorname, available_testers: this.available_testers ? JSON.parse(this.available_testers) : null, price: this.price }),
341
+ ];
296
342
  }
297
343
  return (h("div", { onClick: () => {
298
344
  if (this.readyToClose) {
@@ -325,1389 +371,1534 @@ const MyLoader = class {
325
371
  };
326
372
  MyLoader.style = myLoaderCss;
327
373
 
328
- /** @type {import('.')} */
329
- var esErrors = Error;
330
-
331
- /** @type {import('./eval')} */
332
- var _eval = EvalError;
333
-
334
- /** @type {import('./range')} */
335
- var range = RangeError;
336
-
337
- /** @type {import('./ref')} */
338
- var ref = ReferenceError;
339
-
340
- /** @type {import('./syntax')} */
341
- var syntax = SyntaxError;
342
-
343
374
  /** @type {import('./type')} */
344
375
  var type = TypeError;
345
376
 
346
- /** @type {import('./uri')} */
347
- var uri = URIError;
348
-
349
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
350
- var shams = function hasSymbols() {
351
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
352
- if (typeof Symbol.iterator === 'symbol') { return true; }
353
-
354
- var obj = {};
355
- var sym = Symbol('test');
356
- var symObj = Object(sym);
357
- if (typeof sym === 'string') { return false; }
358
-
359
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
360
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
361
-
362
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
363
- // if (sym instanceof Symbol) { return false; }
364
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
365
- // if (!(symObj instanceof Symbol)) { return false; }
366
-
367
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
368
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
369
-
370
- var symVal = 42;
371
- obj[sym] = symVal;
372
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
373
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
377
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
374
378
 
375
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
379
+ function getAugmentedNamespace(n) {
380
+ if (n.__esModule) return n;
381
+ var a = Object.defineProperty({}, '__esModule', {value: true});
382
+ Object.keys(n).forEach(function (k) {
383
+ var d = Object.getOwnPropertyDescriptor(n, k);
384
+ Object.defineProperty(a, k, d.get ? d : {
385
+ enumerable: true,
386
+ get: function () {
387
+ return n[k];
388
+ }
389
+ });
390
+ });
391
+ return a;
392
+ }
376
393
 
377
- var syms = Object.getOwnPropertySymbols(obj);
378
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
394
+ const _nodeResolve_empty = {};
379
395
 
380
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
396
+ const _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
397
+ __proto__: null,
398
+ 'default': _nodeResolve_empty
399
+ });
381
400
 
382
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
383
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
384
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
385
- }
401
+ const utilInspect = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
386
402
 
387
- return true;
388
- };
403
+ var hasMap = typeof Map === 'function' && Map.prototype;
404
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
405
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
406
+ var mapForEach = hasMap && Map.prototype.forEach;
407
+ var hasSet = typeof Set === 'function' && Set.prototype;
408
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
409
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
410
+ var setForEach = hasSet && Set.prototype.forEach;
411
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
412
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
413
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
414
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
415
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
416
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
417
+ var booleanValueOf = Boolean.prototype.valueOf;
418
+ var objectToString = Object.prototype.toString;
419
+ var functionToString = Function.prototype.toString;
420
+ var $match = String.prototype.match;
421
+ var $slice = String.prototype.slice;
422
+ var $replace$1 = String.prototype.replace;
423
+ var $toUpperCase = String.prototype.toUpperCase;
424
+ var $toLowerCase = String.prototype.toLowerCase;
425
+ var $test = RegExp.prototype.test;
426
+ var $concat$1 = Array.prototype.concat;
427
+ var $join = Array.prototype.join;
428
+ var $arrSlice = Array.prototype.slice;
429
+ var $floor = Math.floor;
430
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
431
+ var gOPS = Object.getOwnPropertySymbols;
432
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
433
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
434
+ // ie, `has-tostringtag/shams
435
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
436
+ ? Symbol.toStringTag
437
+ : null;
438
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
389
439
 
390
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
440
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
441
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
442
+ ? function (O) {
443
+ return O.__proto__; // eslint-disable-line no-proto
444
+ }
445
+ : null
446
+ );
391
447
 
448
+ function addNumericSeparator(num, str) {
449
+ if (
450
+ num === Infinity
451
+ || num === -Infinity
452
+ || num !== num
453
+ || (num && num > -1000 && num < 1000)
454
+ || $test.call(/e/, str)
455
+ ) {
456
+ return str;
457
+ }
458
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
459
+ if (typeof num === 'number') {
460
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
461
+ if (int !== num) {
462
+ var intStr = String(int);
463
+ var dec = $slice.call(str, intStr.length + 1);
464
+ return $replace$1.call(intStr, sepRegex, '$&_') + '.' + $replace$1.call($replace$1.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
465
+ }
466
+ }
467
+ return $replace$1.call(str, sepRegex, '$&_');
468
+ }
392
469
 
393
- var hasSymbols$1 = function hasNativeSymbols() {
394
- if (typeof origSymbol !== 'function') { return false; }
395
- if (typeof Symbol !== 'function') { return false; }
396
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
397
- if (typeof Symbol('bar') !== 'symbol') { return false; }
398
470
 
399
- return shams();
400
- };
471
+ var inspectCustom = utilInspect.custom;
472
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
401
473
 
402
- var test = {
403
- __proto__: null,
404
- foo: {}
474
+ var quotes = {
475
+ __proto__: null,
476
+ 'double': '"',
477
+ single: "'"
405
478
  };
406
-
407
- var $Object = Object;
408
-
409
- /** @type {import('.')} */
410
- var hasProto$1 = function hasProto() {
411
- // @ts-expect-error: TS errors on an inherited property for some reason
412
- return { __proto__: test }.foo === test.foo
413
- && !(test instanceof $Object);
479
+ var quoteREs = {
480
+ __proto__: null,
481
+ 'double': /(["\\])/g,
482
+ single: /(['\\])/g
414
483
  };
415
484
 
416
- /* eslint no-invalid-this: 1 */
417
-
418
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
419
- var toStr$1 = Object.prototype.toString;
420
- var max = Math.max;
421
- var funcType = '[object Function]';
422
-
423
- var concatty = function concatty(a, b) {
424
- var arr = [];
485
+ var objectInspect = function inspect_(obj, options, depth, seen) {
486
+ var opts = options || {};
425
487
 
426
- for (var i = 0; i < a.length; i += 1) {
427
- arr[i] = a[i];
488
+ if (has$3(opts, 'quoteStyle') && !has$3(quotes, opts.quoteStyle)) {
489
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
428
490
  }
429
- for (var j = 0; j < b.length; j += 1) {
430
- arr[j + a.length] = b[j];
491
+ if (
492
+ has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
493
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
494
+ : opts.maxStringLength !== null
495
+ )
496
+ ) {
497
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
498
+ }
499
+ var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
500
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
501
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
431
502
  }
432
503
 
433
- return arr;
434
- };
504
+ if (
505
+ has$3(opts, 'indent')
506
+ && opts.indent !== null
507
+ && opts.indent !== '\t'
508
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
509
+ ) {
510
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
511
+ }
512
+ if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
513
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
514
+ }
515
+ var numericSeparator = opts.numericSeparator;
435
516
 
436
- var slicy = function slicy(arrLike, offset) {
437
- var arr = [];
438
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
439
- arr[j] = arrLike[i];
517
+ if (typeof obj === 'undefined') {
518
+ return 'undefined';
519
+ }
520
+ if (obj === null) {
521
+ return 'null';
522
+ }
523
+ if (typeof obj === 'boolean') {
524
+ return obj ? 'true' : 'false';
440
525
  }
441
- return arr;
442
- };
443
526
 
444
- var joiny = function (arr, joiner) {
445
- var str = '';
446
- for (var i = 0; i < arr.length; i += 1) {
447
- str += arr[i];
448
- if (i + 1 < arr.length) {
449
- str += joiner;
527
+ if (typeof obj === 'string') {
528
+ return inspectString(obj, opts);
529
+ }
530
+ if (typeof obj === 'number') {
531
+ if (obj === 0) {
532
+ return Infinity / obj > 0 ? '0' : '-0';
450
533
  }
534
+ var str = String(obj);
535
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
536
+ }
537
+ if (typeof obj === 'bigint') {
538
+ var bigIntStr = String(obj) + 'n';
539
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
451
540
  }
452
- return str;
453
- };
454
541
 
455
- var implementation = function bind(that) {
456
- var target = this;
457
- if (typeof target !== 'function' || toStr$1.apply(target) !== funcType) {
458
- throw new TypeError(ERROR_MESSAGE + target);
542
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
543
+ if (typeof depth === 'undefined') { depth = 0; }
544
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
545
+ return isArray$3(obj) ? '[Array]' : '[Object]';
459
546
  }
460
- var args = slicy(arguments, 1);
461
547
 
462
- var bound;
463
- var binder = function () {
464
- if (this instanceof bound) {
465
- var result = target.apply(
466
- this,
467
- concatty(args, arguments)
468
- );
469
- if (Object(result) === result) {
470
- return result;
471
- }
472
- return this;
473
- }
474
- return target.apply(
475
- that,
476
- concatty(args, arguments)
477
- );
478
-
479
- };
548
+ var indent = getIndent(opts, depth);
480
549
 
481
- var boundLength = max(0, target.length - args.length);
482
- var boundArgs = [];
483
- for (var i = 0; i < boundLength; i++) {
484
- boundArgs[i] = '$' + i;
550
+ if (typeof seen === 'undefined') {
551
+ seen = [];
552
+ } else if (indexOf(seen, obj) >= 0) {
553
+ return '[Circular]';
485
554
  }
486
555
 
487
- bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
488
-
489
- if (target.prototype) {
490
- var Empty = function Empty() {};
491
- Empty.prototype = target.prototype;
492
- bound.prototype = new Empty();
493
- Empty.prototype = null;
556
+ function inspect(value, from, noIndent) {
557
+ if (from) {
558
+ seen = $arrSlice.call(seen);
559
+ seen.push(from);
560
+ }
561
+ if (noIndent) {
562
+ var newOpts = {
563
+ depth: opts.depth
564
+ };
565
+ if (has$3(opts, 'quoteStyle')) {
566
+ newOpts.quoteStyle = opts.quoteStyle;
567
+ }
568
+ return inspect_(value, newOpts, depth + 1, seen);
569
+ }
570
+ return inspect_(value, opts, depth + 1, seen);
494
571
  }
495
572
 
496
- return bound;
573
+ if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
574
+ var name = nameOf(obj);
575
+ var keys = arrObjKeys(obj, inspect);
576
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
577
+ }
578
+ if (isSymbol(obj)) {
579
+ var symString = hasShammedSymbols ? $replace$1.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
580
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
581
+ }
582
+ if (isElement(obj)) {
583
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
584
+ var attrs = obj.attributes || [];
585
+ for (var i = 0; i < attrs.length; i++) {
586
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
587
+ }
588
+ s += '>';
589
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
590
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
591
+ return s;
592
+ }
593
+ if (isArray$3(obj)) {
594
+ if (obj.length === 0) { return '[]'; }
595
+ var xs = arrObjKeys(obj, inspect);
596
+ if (indent && !singleLineValues(xs)) {
597
+ return '[' + indentedJoin(xs, indent) + ']';
598
+ }
599
+ return '[ ' + $join.call(xs, ', ') + ' ]';
600
+ }
601
+ if (isError(obj)) {
602
+ var parts = arrObjKeys(obj, inspect);
603
+ if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
604
+ return '{ [' + String(obj) + '] ' + $join.call($concat$1.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
605
+ }
606
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
607
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
608
+ }
609
+ if (typeof obj === 'object' && customInspect) {
610
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
611
+ return utilInspect(obj, { depth: maxDepth - depth });
612
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
613
+ return obj.inspect();
614
+ }
615
+ }
616
+ if (isMap(obj)) {
617
+ var mapParts = [];
618
+ if (mapForEach) {
619
+ mapForEach.call(obj, function (value, key) {
620
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
621
+ });
622
+ }
623
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
624
+ }
625
+ if (isSet(obj)) {
626
+ var setParts = [];
627
+ if (setForEach) {
628
+ setForEach.call(obj, function (value) {
629
+ setParts.push(inspect(value, obj));
630
+ });
631
+ }
632
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
633
+ }
634
+ if (isWeakMap(obj)) {
635
+ return weakCollectionOf('WeakMap');
636
+ }
637
+ if (isWeakSet(obj)) {
638
+ return weakCollectionOf('WeakSet');
639
+ }
640
+ if (isWeakRef(obj)) {
641
+ return weakCollectionOf('WeakRef');
642
+ }
643
+ if (isNumber(obj)) {
644
+ return markBoxed(inspect(Number(obj)));
645
+ }
646
+ if (isBigInt(obj)) {
647
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
648
+ }
649
+ if (isBoolean(obj)) {
650
+ return markBoxed(booleanValueOf.call(obj));
651
+ }
652
+ if (isString(obj)) {
653
+ return markBoxed(inspect(String(obj)));
654
+ }
655
+ // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
656
+ /* eslint-env browser */
657
+ if (typeof window !== 'undefined' && obj === window) {
658
+ return '{ [object Window] }';
659
+ }
660
+ if (
661
+ (typeof globalThis !== 'undefined' && obj === globalThis)
662
+ || (typeof commonjsGlobal !== 'undefined' && obj === commonjsGlobal)
663
+ ) {
664
+ return '{ [object globalThis] }';
665
+ }
666
+ if (!isDate(obj) && !isRegExp$1(obj)) {
667
+ var ys = arrObjKeys(obj, inspect);
668
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
669
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
670
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? 'Object' : '';
671
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
672
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat$1.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
673
+ if (ys.length === 0) { return tag + '{}'; }
674
+ if (indent) {
675
+ return tag + '{' + indentedJoin(ys, indent) + '}';
676
+ }
677
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
678
+ }
679
+ return String(obj);
497
680
  };
498
681
 
499
- var functionBind = Function.prototype.bind || implementation;
500
-
501
- var call = Function.prototype.call;
502
- var $hasOwn = Object.prototype.hasOwnProperty;
682
+ function wrapQuotes(s, defaultStyle, opts) {
683
+ var style = opts.quoteStyle || defaultStyle;
684
+ var quoteChar = quotes[style];
685
+ return quoteChar + s + quoteChar;
686
+ }
503
687
 
688
+ function quote(s) {
689
+ return $replace$1.call(String(s), /"/g, '&quot;');
690
+ }
504
691
 
505
- /** @type {import('.')} */
506
- var hasown = functionBind.call(call, $hasOwn);
692
+ function canTrustToString(obj) {
693
+ return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
694
+ }
695
+ function isArray$3(obj) { return toStr$1(obj) === '[object Array]' && canTrustToString(obj); }
696
+ function isDate(obj) { return toStr$1(obj) === '[object Date]' && canTrustToString(obj); }
697
+ function isRegExp$1(obj) { return toStr$1(obj) === '[object RegExp]' && canTrustToString(obj); }
698
+ function isError(obj) { return toStr$1(obj) === '[object Error]' && canTrustToString(obj); }
699
+ function isString(obj) { return toStr$1(obj) === '[object String]' && canTrustToString(obj); }
700
+ function isNumber(obj) { return toStr$1(obj) === '[object Number]' && canTrustToString(obj); }
701
+ function isBoolean(obj) { return toStr$1(obj) === '[object Boolean]' && canTrustToString(obj); }
507
702
 
508
- var undefined$1;
703
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
704
+ function isSymbol(obj) {
705
+ if (hasShammedSymbols) {
706
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
707
+ }
708
+ if (typeof obj === 'symbol') {
709
+ return true;
710
+ }
711
+ if (!obj || typeof obj !== 'object' || !symToString) {
712
+ return false;
713
+ }
714
+ try {
715
+ symToString.call(obj);
716
+ return true;
717
+ } catch (e) {}
718
+ return false;
719
+ }
509
720
 
721
+ function isBigInt(obj) {
722
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
723
+ return false;
724
+ }
725
+ try {
726
+ bigIntValueOf.call(obj);
727
+ return true;
728
+ } catch (e) {}
729
+ return false;
730
+ }
510
731
 
732
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
733
+ function has$3(obj, key) {
734
+ return hasOwn.call(obj, key);
735
+ }
511
736
 
737
+ function toStr$1(obj) {
738
+ return objectToString.call(obj);
739
+ }
512
740
 
741
+ function nameOf(f) {
742
+ if (f.name) { return f.name; }
743
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
744
+ if (m) { return m[1]; }
745
+ return null;
746
+ }
513
747
 
748
+ function indexOf(xs, x) {
749
+ if (xs.indexOf) { return xs.indexOf(x); }
750
+ for (var i = 0, l = xs.length; i < l; i++) {
751
+ if (xs[i] === x) { return i; }
752
+ }
753
+ return -1;
754
+ }
514
755
 
756
+ function isMap(x) {
757
+ if (!mapSize || !x || typeof x !== 'object') {
758
+ return false;
759
+ }
760
+ try {
761
+ mapSize.call(x);
762
+ try {
763
+ setSize.call(x);
764
+ } catch (s) {
765
+ return true;
766
+ }
767
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
768
+ } catch (e) {}
769
+ return false;
770
+ }
515
771
 
772
+ function isWeakMap(x) {
773
+ if (!weakMapHas || !x || typeof x !== 'object') {
774
+ return false;
775
+ }
776
+ try {
777
+ weakMapHas.call(x, weakMapHas);
778
+ try {
779
+ weakSetHas.call(x, weakSetHas);
780
+ } catch (s) {
781
+ return true;
782
+ }
783
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
784
+ } catch (e) {}
785
+ return false;
786
+ }
516
787
 
788
+ function isWeakRef(x) {
789
+ if (!weakRefDeref || !x || typeof x !== 'object') {
790
+ return false;
791
+ }
792
+ try {
793
+ weakRefDeref.call(x);
794
+ return true;
795
+ } catch (e) {}
796
+ return false;
797
+ }
517
798
 
518
- var $Function = Function;
799
+ function isSet(x) {
800
+ if (!setSize || !x || typeof x !== 'object') {
801
+ return false;
802
+ }
803
+ try {
804
+ setSize.call(x);
805
+ try {
806
+ mapSize.call(x);
807
+ } catch (m) {
808
+ return true;
809
+ }
810
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
811
+ } catch (e) {}
812
+ return false;
813
+ }
519
814
 
520
- // eslint-disable-next-line consistent-return
521
- var getEvalledConstructor = function (expressionSyntax) {
522
- try {
523
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
524
- } catch (e) {}
525
- };
526
-
527
- var $gOPD$1 = Object.getOwnPropertyDescriptor;
528
-
529
- var throwTypeError = function () {
530
- throw new type();
531
- };
532
- var ThrowTypeError = $gOPD$1
533
- ? (function () {
534
- try {
535
- return throwTypeError;
536
- } catch (calleeThrows) {
537
- try {
538
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
539
- return $gOPD$1(arguments, 'callee').get;
540
- } catch (gOPDthrows) {
541
- return throwTypeError;
542
- }
543
- }
544
- }())
545
- : throwTypeError;
546
-
547
- var hasSymbols = hasSymbols$1();
548
- var hasProto = hasProto$1();
549
-
550
- var getProto = Object.getPrototypeOf || (
551
- hasProto
552
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
553
- : null
554
- );
555
-
556
- var needsEval = {};
557
-
558
- var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
559
-
560
- var INTRINSICS = {
561
- __proto__: null,
562
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
563
- '%Array%': Array,
564
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
565
- '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
566
- '%AsyncFromSyncIteratorPrototype%': undefined$1,
567
- '%AsyncFunction%': needsEval,
568
- '%AsyncGenerator%': needsEval,
569
- '%AsyncGeneratorFunction%': needsEval,
570
- '%AsyncIteratorPrototype%': needsEval,
571
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
572
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
573
- '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
574
- '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
575
- '%Boolean%': Boolean,
576
- '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
577
- '%Date%': Date,
578
- '%decodeURI%': decodeURI,
579
- '%decodeURIComponent%': decodeURIComponent,
580
- '%encodeURI%': encodeURI,
581
- '%encodeURIComponent%': encodeURIComponent,
582
- '%Error%': esErrors,
583
- '%eval%': eval, // eslint-disable-line no-eval
584
- '%EvalError%': _eval,
585
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
586
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
587
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
588
- '%Function%': $Function,
589
- '%GeneratorFunction%': needsEval,
590
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
591
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
592
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
593
- '%isFinite%': isFinite,
594
- '%isNaN%': isNaN,
595
- '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
596
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
597
- '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
598
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
599
- '%Math%': Math,
600
- '%Number%': Number,
601
- '%Object%': Object,
602
- '%parseFloat%': parseFloat,
603
- '%parseInt%': parseInt,
604
- '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
605
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
606
- '%RangeError%': range,
607
- '%ReferenceError%': ref,
608
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
609
- '%RegExp%': RegExp,
610
- '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
611
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
612
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
613
- '%String%': String,
614
- '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
615
- '%Symbol%': hasSymbols ? Symbol : undefined$1,
616
- '%SyntaxError%': syntax,
617
- '%ThrowTypeError%': ThrowTypeError,
618
- '%TypedArray%': TypedArray,
619
- '%TypeError%': type,
620
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
621
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
622
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
623
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
624
- '%URIError%': uri,
625
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
626
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
627
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
628
- };
629
-
630
- var doEval = function doEval(name) {
631
- var value;
632
- if (name === '%AsyncFunction%') {
633
- value = getEvalledConstructor('async function () {}');
634
- } else if (name === '%GeneratorFunction%') {
635
- value = getEvalledConstructor('function* () {}');
636
- } else if (name === '%AsyncGeneratorFunction%') {
637
- value = getEvalledConstructor('async function* () {}');
638
- } else if (name === '%AsyncGenerator%') {
639
- var fn = doEval('%AsyncGeneratorFunction%');
640
- if (fn) {
641
- value = fn.prototype;
642
- }
643
- } else if (name === '%AsyncIteratorPrototype%') {
644
- var gen = doEval('%AsyncGenerator%');
645
- if (gen && getProto) {
646
- value = getProto(gen.prototype);
647
- }
648
- }
649
-
650
- INTRINSICS[name] = value;
651
-
652
- return value;
653
- };
654
-
655
- var LEGACY_ALIASES = {
656
- __proto__: null,
657
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
658
- '%ArrayPrototype%': ['Array', 'prototype'],
659
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
660
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
661
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
662
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
663
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
664
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
665
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
666
- '%BooleanPrototype%': ['Boolean', 'prototype'],
667
- '%DataViewPrototype%': ['DataView', 'prototype'],
668
- '%DatePrototype%': ['Date', 'prototype'],
669
- '%ErrorPrototype%': ['Error', 'prototype'],
670
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
671
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
672
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
673
- '%FunctionPrototype%': ['Function', 'prototype'],
674
- '%Generator%': ['GeneratorFunction', 'prototype'],
675
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
676
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
677
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
678
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
679
- '%JSONParse%': ['JSON', 'parse'],
680
- '%JSONStringify%': ['JSON', 'stringify'],
681
- '%MapPrototype%': ['Map', 'prototype'],
682
- '%NumberPrototype%': ['Number', 'prototype'],
683
- '%ObjectPrototype%': ['Object', 'prototype'],
684
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
685
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
686
- '%PromisePrototype%': ['Promise', 'prototype'],
687
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
688
- '%Promise_all%': ['Promise', 'all'],
689
- '%Promise_reject%': ['Promise', 'reject'],
690
- '%Promise_resolve%': ['Promise', 'resolve'],
691
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
692
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
693
- '%RegExpPrototype%': ['RegExp', 'prototype'],
694
- '%SetPrototype%': ['Set', 'prototype'],
695
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
696
- '%StringPrototype%': ['String', 'prototype'],
697
- '%SymbolPrototype%': ['Symbol', 'prototype'],
698
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
699
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
700
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
701
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
702
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
703
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
704
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
705
- '%URIErrorPrototype%': ['URIError', 'prototype'],
706
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
707
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
708
- };
709
-
710
-
711
-
712
- var $concat$1 = functionBind.call(Function.call, Array.prototype.concat);
713
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
714
- var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
715
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
716
- var $exec = functionBind.call(Function.call, RegExp.prototype.exec);
717
-
718
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
719
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
720
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
721
- var stringToPath = function stringToPath(string) {
722
- var first = $strSlice(string, 0, 1);
723
- var last = $strSlice(string, -1);
724
- if (first === '%' && last !== '%') {
725
- throw new syntax('invalid intrinsic syntax, expected closing `%`');
726
- } else if (last === '%' && first !== '%') {
727
- throw new syntax('invalid intrinsic syntax, expected opening `%`');
728
- }
729
- var result = [];
730
- $replace$1(string, rePropName, function (match, number, quote, subString) {
731
- result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
732
- });
733
- return result;
734
- };
735
- /* end adaptation */
736
-
737
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
738
- var intrinsicName = name;
739
- var alias;
740
- if (hasown(LEGACY_ALIASES, intrinsicName)) {
741
- alias = LEGACY_ALIASES[intrinsicName];
742
- intrinsicName = '%' + alias[0] + '%';
743
- }
744
-
745
- if (hasown(INTRINSICS, intrinsicName)) {
746
- var value = INTRINSICS[intrinsicName];
747
- if (value === needsEval) {
748
- value = doEval(intrinsicName);
749
- }
750
- if (typeof value === 'undefined' && !allowMissing) {
751
- throw new type('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
752
- }
753
-
754
- return {
755
- alias: alias,
756
- name: intrinsicName,
757
- value: value
758
- };
759
- }
760
-
761
- throw new syntax('intrinsic ' + name + ' does not exist!');
762
- };
763
-
764
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
765
- if (typeof name !== 'string' || name.length === 0) {
766
- throw new type('intrinsic name must be a non-empty string');
767
- }
768
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
769
- throw new type('"allowMissing" argument must be a boolean');
770
- }
771
-
772
- if ($exec(/^%?[^%]*%?$/, name) === null) {
773
- throw new syntax('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
774
- }
775
- var parts = stringToPath(name);
776
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
777
-
778
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
779
- var intrinsicRealName = intrinsic.name;
780
- var value = intrinsic.value;
781
- var skipFurtherCaching = false;
782
-
783
- var alias = intrinsic.alias;
784
- if (alias) {
785
- intrinsicBaseName = alias[0];
786
- $spliceApply(parts, $concat$1([0, 1], alias));
787
- }
788
-
789
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
790
- var part = parts[i];
791
- var first = $strSlice(part, 0, 1);
792
- var last = $strSlice(part, -1);
793
- if (
794
- (
795
- (first === '"' || first === "'" || first === '`')
796
- || (last === '"' || last === "'" || last === '`')
797
- )
798
- && first !== last
799
- ) {
800
- throw new syntax('property names with quotes must have matching quotes');
801
- }
802
- if (part === 'constructor' || !isOwn) {
803
- skipFurtherCaching = true;
804
- }
805
-
806
- intrinsicBaseName += '.' + part;
807
- intrinsicRealName = '%' + intrinsicBaseName + '%';
815
+ function isWeakSet(x) {
816
+ if (!weakSetHas || !x || typeof x !== 'object') {
817
+ return false;
818
+ }
819
+ try {
820
+ weakSetHas.call(x, weakSetHas);
821
+ try {
822
+ weakMapHas.call(x, weakMapHas);
823
+ } catch (s) {
824
+ return true;
825
+ }
826
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
827
+ } catch (e) {}
828
+ return false;
829
+ }
808
830
 
809
- if (hasown(INTRINSICS, intrinsicRealName)) {
810
- value = INTRINSICS[intrinsicRealName];
811
- } else if (value != null) {
812
- if (!(part in value)) {
813
- if (!allowMissing) {
814
- throw new type('base intrinsic for ' + name + ' exists, but the property is not available.');
815
- }
816
- return void undefined$1;
817
- }
818
- if ($gOPD$1 && (i + 1) >= parts.length) {
819
- var desc = $gOPD$1(value, part);
820
- isOwn = !!desc;
831
+ function isElement(x) {
832
+ if (!x || typeof x !== 'object') { return false; }
833
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
834
+ return true;
835
+ }
836
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
837
+ }
821
838
 
822
- // By convention, when a data property is converted to an accessor
823
- // property to emulate a data property that does not suffer from
824
- // the override mistake, that accessor's getter is marked with
825
- // an `originalValue` property. Here, when we detect this, we
826
- // uphold the illusion by pretending to see that original data
827
- // property, i.e., returning the value rather than the getter
828
- // itself.
829
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
830
- value = desc.get;
831
- } else {
832
- value = value[part];
833
- }
834
- } else {
835
- isOwn = hasown(value, part);
836
- value = value[part];
837
- }
839
+ function inspectString(str, opts) {
840
+ if (str.length > opts.maxStringLength) {
841
+ var remaining = str.length - opts.maxStringLength;
842
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
843
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
844
+ }
845
+ var quoteRE = quoteREs[opts.quoteStyle || 'single'];
846
+ quoteRE.lastIndex = 0;
847
+ // eslint-disable-next-line no-control-regex
848
+ var s = $replace$1.call($replace$1.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
849
+ return wrapQuotes(s, 'single', opts);
850
+ }
838
851
 
839
- if (isOwn && !skipFurtherCaching) {
840
- INTRINSICS[intrinsicRealName] = value;
841
- }
842
- }
843
- }
844
- return value;
845
- };
852
+ function lowbyte(c) {
853
+ var n = c.charCodeAt(0);
854
+ var x = {
855
+ 8: 'b',
856
+ 9: 't',
857
+ 10: 'n',
858
+ 12: 'f',
859
+ 13: 'r'
860
+ }[n];
861
+ if (x) { return '\\' + x; }
862
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
863
+ }
846
864
 
847
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
865
+ function markBoxed(str) {
866
+ return 'Object(' + str + ')';
867
+ }
848
868
 
849
- function createCommonjsModule(fn, basedir, module) {
850
- return module = {
851
- path: basedir,
852
- exports: {},
853
- require: function (path, base) {
854
- return commonjsRequire();
855
- }
856
- }, fn(module, module.exports), module.exports;
869
+ function weakCollectionOf(type) {
870
+ return type + ' { ? }';
857
871
  }
858
872
 
859
- function getAugmentedNamespace(n) {
860
- if (n.__esModule) return n;
861
- var a = Object.defineProperty({}, '__esModule', {value: true});
862
- Object.keys(n).forEach(function (k) {
863
- var d = Object.getOwnPropertyDescriptor(n, k);
864
- Object.defineProperty(a, k, d.get ? d : {
865
- enumerable: true,
866
- get: function () {
867
- return n[k];
868
- }
869
- });
870
- });
871
- return a;
873
+ function collectionOf(type, size, entries, indent) {
874
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
875
+ return type + ' (' + size + ') {' + joinedEntries + '}';
872
876
  }
873
877
 
874
- function commonjsRequire () {
875
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
878
+ function singleLineValues(xs) {
879
+ for (var i = 0; i < xs.length; i++) {
880
+ if (indexOf(xs[i], '\n') >= 0) {
881
+ return false;
882
+ }
883
+ }
884
+ return true;
876
885
  }
877
886
 
878
- /** @type {import('.')} */
879
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true) || false;
880
- if ($defineProperty) {
881
- try {
882
- $defineProperty({}, 'a', { value: 1 });
883
- } catch (e) {
884
- // IE 8 has a broken defineProperty
885
- $defineProperty = false;
886
- }
887
+ function getIndent(opts, depth) {
888
+ var baseIndent;
889
+ if (opts.indent === '\t') {
890
+ baseIndent = '\t';
891
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
892
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
893
+ } else {
894
+ return null;
895
+ }
896
+ return {
897
+ base: baseIndent,
898
+ prev: $join.call(Array(depth + 1), baseIndent)
899
+ };
887
900
  }
888
901
 
889
- var esDefineProperty = $defineProperty;
902
+ function indentedJoin(xs, indent) {
903
+ if (xs.length === 0) { return ''; }
904
+ var lineJoiner = '\n' + indent.prev + indent.base;
905
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
906
+ }
890
907
 
891
- var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
908
+ function arrObjKeys(obj, inspect) {
909
+ var isArr = isArray$3(obj);
910
+ var xs = [];
911
+ if (isArr) {
912
+ xs.length = obj.length;
913
+ for (var i = 0; i < obj.length; i++) {
914
+ xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
915
+ }
916
+ }
917
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
918
+ var symMap;
919
+ if (hasShammedSymbols) {
920
+ symMap = {};
921
+ for (var k = 0; k < syms.length; k++) {
922
+ symMap['$' + syms[k]] = syms[k];
923
+ }
924
+ }
892
925
 
893
- if ($gOPD) {
894
- try {
895
- $gOPD([], 'length');
896
- } catch (e) {
897
- // IE 8 has a broken gOPD
898
- $gOPD = null;
899
- }
926
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
927
+ if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
928
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
929
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
930
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
931
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
932
+ } else if ($test.call(/[^\w$]/, key)) {
933
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
934
+ } else {
935
+ xs.push(key + ': ' + inspect(obj[key], obj));
936
+ }
937
+ }
938
+ if (typeof gOPS === 'function') {
939
+ for (var j = 0; j < syms.length; j++) {
940
+ if (isEnumerable.call(obj, syms[j])) {
941
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
942
+ }
943
+ }
944
+ }
945
+ return xs;
900
946
  }
901
947
 
902
- var gopd = $gOPD;
903
-
904
- /** @type {import('.')} */
905
- var defineDataProperty = function defineDataProperty(
906
- obj,
907
- property,
908
- value
909
- ) {
910
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
911
- throw new type('`obj` must be an object or a function`');
912
- }
913
- if (typeof property !== 'string' && typeof property !== 'symbol') {
914
- throw new type('`property` must be a string or a symbol`');
915
- }
916
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
917
- throw new type('`nonEnumerable`, if provided, must be a boolean or null');
918
- }
919
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
920
- throw new type('`nonWritable`, if provided, must be a boolean or null');
921
- }
922
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
923
- throw new type('`nonConfigurable`, if provided, must be a boolean or null');
924
- }
925
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
926
- throw new type('`loose`, if provided, must be a boolean');
948
+ /*
949
+ * This function traverses the list returning the node corresponding to the given key.
950
+ *
951
+ * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
952
+ * By doing so, all the recently used nodes can be accessed relatively quickly.
953
+ */
954
+ /** @type {import('./list.d.ts').listGetNode} */
955
+ // eslint-disable-next-line consistent-return
956
+ var listGetNode = function (list, key, isDelete) {
957
+ /** @type {typeof list | NonNullable<(typeof list)['next']>} */
958
+ var prev = list;
959
+ /** @type {(typeof list)['next']} */
960
+ var curr;
961
+ // eslint-disable-next-line eqeqeq
962
+ for (; (curr = prev.next) != null; prev = curr) {
963
+ if (curr.key === key) {
964
+ prev.next = curr.next;
965
+ if (!isDelete) {
966
+ // eslint-disable-next-line no-extra-parens
967
+ curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
968
+ list.next = curr; // eslint-disable-line no-param-reassign
969
+ }
970
+ return curr;
971
+ }
927
972
  }
973
+ };
928
974
 
929
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
930
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
931
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
932
- var loose = arguments.length > 6 ? arguments[6] : false;
933
-
934
- /* @type {false | TypedPropertyDescriptor<unknown>} */
935
- var desc = !!gopd && gopd(obj, property);
936
-
937
- if (esDefineProperty) {
938
- esDefineProperty(obj, property, {
939
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
940
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
941
- value: value,
942
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
943
- });
944
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
945
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
946
- obj[property] = value; // eslint-disable-line no-param-reassign
947
- } else {
948
- throw new syntax('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
975
+ /** @type {import('./list.d.ts').listGet} */
976
+ var listGet = function (objects, key) {
977
+ if (!objects) {
978
+ return void undefined;
949
979
  }
980
+ var node = listGetNode(objects, key);
981
+ return node && node.value;
950
982
  };
951
-
952
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
953
- return !!esDefineProperty;
983
+ /** @type {import('./list.d.ts').listSet} */
984
+ var listSet = function (objects, key, value) {
985
+ var node = listGetNode(objects, key);
986
+ if (node) {
987
+ node.value = value;
988
+ } else {
989
+ // Prepend the new node to the beginning of the list
990
+ objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
991
+ key: key,
992
+ next: objects.next,
993
+ value: value
994
+ });
995
+ }
954
996
  };
955
-
956
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
957
- // node v0.6 has a bug where array lengths can be Set but not Defined
958
- if (!esDefineProperty) {
959
- return null;
997
+ /** @type {import('./list.d.ts').listHas} */
998
+ var listHas = function (objects, key) {
999
+ if (!objects) {
1000
+ return false;
960
1001
  }
961
- try {
962
- return esDefineProperty([], 'length', { value: 1 }).length !== 1;
963
- } catch (e) {
964
- // In Firefox 4-22, defining length on an array throws an exception.
965
- return true;
1002
+ return !!listGetNode(objects, key);
1003
+ };
1004
+ /** @type {import('./list.d.ts').listDelete} */
1005
+ // eslint-disable-next-line consistent-return
1006
+ var listDelete = function (objects, key) {
1007
+ if (objects) {
1008
+ return listGetNode(objects, key, true);
966
1009
  }
967
1010
  };
968
1011
 
969
- var hasPropertyDescriptors_1 = hasPropertyDescriptors;
970
-
971
- var hasDescriptors = hasPropertyDescriptors_1();
1012
+ /** @type {import('.')} */
1013
+ var sideChannelList = function getSideChannelList() {
1014
+ /** @typedef {ReturnType<typeof getSideChannelList>} Channel */
1015
+ /** @typedef {Parameters<Channel['get']>[0]} K */
1016
+ /** @typedef {Parameters<Channel['set']>[1]} V */
972
1017
 
1018
+ /** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
973
1019
 
1020
+ /** @type {Channel} */
1021
+ var channel = {
1022
+ assert: function (key) {
1023
+ if (!channel.has(key)) {
1024
+ throw new type('Side channel does not contain ' + objectInspect(key));
1025
+ }
1026
+ },
1027
+ 'delete': function (key) {
1028
+ var root = $o && $o.next;
1029
+ var deletedNode = listDelete($o, key);
1030
+ if (deletedNode && root && root === deletedNode) {
1031
+ $o = void undefined;
1032
+ }
1033
+ return !!deletedNode;
1034
+ },
1035
+ get: function (key) {
1036
+ return listGet($o, key);
1037
+ },
1038
+ has: function (key) {
1039
+ return listHas($o, key);
1040
+ },
1041
+ set: function (key, value) {
1042
+ if (!$o) {
1043
+ // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
1044
+ $o = {
1045
+ next: void undefined
1046
+ };
1047
+ }
1048
+ // eslint-disable-next-line no-extra-parens
1049
+ listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
1050
+ }
1051
+ };
1052
+ // @ts-expect-error TODO: figure out why this is erroring
1053
+ return channel;
1054
+ };
974
1055
 
975
- var $floor$1 = getIntrinsic('%Math.floor%');
1056
+ /** @type {import('.')} */
1057
+ var esObjectAtoms = Object;
976
1058
 
977
1059
  /** @type {import('.')} */
978
- var setFunctionLength = function setFunctionLength(fn, length) {
979
- if (typeof fn !== 'function') {
980
- throw new type('`fn` is not a function');
981
- }
982
- if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
983
- throw new type('`length` must be a positive 32-bit integer');
984
- }
1060
+ var esErrors = Error;
985
1061
 
986
- var loose = arguments.length > 2 && !!arguments[2];
1062
+ /** @type {import('./eval')} */
1063
+ var _eval = EvalError;
987
1064
 
988
- var functionLengthIsConfigurable = true;
989
- var functionLengthIsWritable = true;
990
- if ('length' in fn && gopd) {
991
- var desc = gopd(fn, 'length');
992
- if (desc && !desc.configurable) {
993
- functionLengthIsConfigurable = false;
994
- }
995
- if (desc && !desc.writable) {
996
- functionLengthIsWritable = false;
997
- }
998
- }
1065
+ /** @type {import('./range')} */
1066
+ var range = RangeError;
999
1067
 
1000
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
1001
- if (hasDescriptors) {
1002
- defineDataProperty(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
1003
- } else {
1004
- defineDataProperty(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
1005
- }
1006
- }
1007
- return fn;
1008
- };
1068
+ /** @type {import('./ref')} */
1069
+ var ref = ReferenceError;
1009
1070
 
1010
- var callBind = createCommonjsModule(function (module) {
1071
+ /** @type {import('./syntax')} */
1072
+ var syntax = SyntaxError;
1011
1073
 
1074
+ /** @type {import('./uri')} */
1075
+ var uri = URIError;
1012
1076
 
1077
+ /** @type {import('./abs')} */
1078
+ var abs = Math.abs;
1013
1079
 
1080
+ /** @type {import('./floor')} */
1081
+ var floor = Math.floor;
1014
1082
 
1083
+ /** @type {import('./max')} */
1084
+ var max$1 = Math.max;
1015
1085
 
1086
+ /** @type {import('./min')} */
1087
+ var min = Math.min;
1016
1088
 
1017
- var $apply = getIntrinsic('%Function.prototype.apply%');
1018
- var $call = getIntrinsic('%Function.prototype.call%');
1019
- var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1089
+ /** @type {import('./pow')} */
1090
+ var pow = Math.pow;
1020
1091
 
1092
+ /** @type {import('./round')} */
1093
+ var round = Math.round;
1021
1094
 
1022
- var $max = getIntrinsic('%Math.max%');
1095
+ /** @type {import('./isNaN')} */
1096
+ var _isNaN = Number.isNaN || function isNaN(a) {
1097
+ return a !== a;
1098
+ };
1023
1099
 
1024
- module.exports = function callBind(originalFunction) {
1025
- if (typeof originalFunction !== 'function') {
1026
- throw new type('a function is required');
1100
+ /** @type {import('./sign')} */
1101
+ var sign = function sign(number) {
1102
+ if (_isNaN(number) || number === 0) {
1103
+ return number;
1027
1104
  }
1028
- var func = $reflectApply(functionBind, $call, arguments);
1029
- return setFunctionLength(
1030
- func,
1031
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
1032
- true
1033
- );
1105
+ return number < 0 ? -1 : +1;
1034
1106
  };
1035
1107
 
1036
- var applyBind = function applyBind() {
1037
- return $reflectApply(functionBind, $apply, arguments);
1038
- };
1108
+ /** @type {import('./gOPD')} */
1109
+ var gOPD = Object.getOwnPropertyDescriptor;
1039
1110
 
1040
- if (esDefineProperty) {
1041
- esDefineProperty(module.exports, 'apply', { value: applyBind });
1042
- } else {
1043
- module.exports.apply = applyBind;
1044
- }
1045
- });
1111
+ /** @type {import('.')} */
1112
+ var $gOPD = gOPD;
1046
1113
 
1047
- var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
1114
+ var gopd = $gOPD;
1048
1115
 
1049
- var callBound = function callBoundIntrinsic(name, allowMissing) {
1050
- var intrinsic = getIntrinsic(name, !!allowMissing);
1051
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1052
- return callBind(intrinsic);
1116
+ /** @type {import('.')} */
1117
+ var $defineProperty = Object.defineProperty || false;
1118
+ if ($defineProperty) {
1119
+ try {
1120
+ $defineProperty({}, 'a', { value: 1 });
1121
+ } catch (e) {
1122
+ // IE 8 has a broken defineProperty
1123
+ $defineProperty = false;
1053
1124
  }
1054
- return intrinsic;
1055
- };
1125
+ }
1056
1126
 
1057
- const _nodeResolve_empty = {};
1127
+ var esDefineProperty = $defineProperty;
1058
1128
 
1059
- const _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
1060
- __proto__: null,
1061
- 'default': _nodeResolve_empty
1062
- });
1129
+ /** @type {import('./shams')} */
1130
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
1131
+ var shams = function hasSymbols() {
1132
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1133
+ if (typeof Symbol.iterator === 'symbol') { return true; }
1063
1134
 
1064
- const utilInspect = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
1135
+ /** @type {{ [k in symbol]?: unknown }} */
1136
+ var obj = {};
1137
+ var sym = Symbol('test');
1138
+ var symObj = Object(sym);
1139
+ if (typeof sym === 'string') { return false; }
1065
1140
 
1066
- var hasMap = typeof Map === 'function' && Map.prototype;
1067
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
1068
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
1069
- var mapForEach = hasMap && Map.prototype.forEach;
1070
- var hasSet = typeof Set === 'function' && Set.prototype;
1071
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
1072
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
1073
- var setForEach = hasSet && Set.prototype.forEach;
1074
- var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
1075
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
1076
- var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
1077
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
1078
- var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
1079
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
1080
- var booleanValueOf = Boolean.prototype.valueOf;
1081
- var objectToString = Object.prototype.toString;
1082
- var functionToString = Function.prototype.toString;
1083
- var $match = String.prototype.match;
1084
- var $slice = String.prototype.slice;
1085
- var $replace = String.prototype.replace;
1086
- var $toUpperCase = String.prototype.toUpperCase;
1087
- var $toLowerCase = String.prototype.toLowerCase;
1088
- var $test = RegExp.prototype.test;
1089
- var $concat = Array.prototype.concat;
1090
- var $join = Array.prototype.join;
1091
- var $arrSlice = Array.prototype.slice;
1092
- var $floor = Math.floor;
1093
- var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
1094
- var gOPS = Object.getOwnPropertySymbols;
1095
- var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
1096
- var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
1097
- // ie, `has-tostringtag/shams
1098
- var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
1099
- ? Symbol.toStringTag
1100
- : null;
1101
- var isEnumerable = Object.prototype.propertyIsEnumerable;
1141
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1142
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1102
1143
 
1103
- var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
1104
- [].__proto__ === Array.prototype // eslint-disable-line no-proto
1105
- ? function (O) {
1106
- return O.__proto__; // eslint-disable-line no-proto
1107
- }
1108
- : null
1109
- );
1144
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
1145
+ // if (sym instanceof Symbol) { return false; }
1146
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1147
+ // if (!(symObj instanceof Symbol)) { return false; }
1148
+
1149
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1150
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1151
+
1152
+ var symVal = 42;
1153
+ obj[sym] = symVal;
1154
+ for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
1155
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1156
+
1157
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1110
1158
 
1111
- function addNumericSeparator(num, str) {
1112
- if (
1113
- num === Infinity
1114
- || num === -Infinity
1115
- || num !== num
1116
- || (num && num > -1000 && num < 1000)
1117
- || $test.call(/e/, str)
1118
- ) {
1119
- return str;
1120
- }
1121
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1122
- if (typeof num === 'number') {
1123
- var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
1124
- if (int !== num) {
1125
- var intStr = String(int);
1126
- var dec = $slice.call(str, intStr.length + 1);
1127
- return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
1128
- }
1129
- }
1130
- return $replace.call(str, sepRegex, '$&_');
1131
- }
1159
+ var syms = Object.getOwnPropertySymbols(obj);
1160
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
1132
1161
 
1162
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1133
1163
 
1134
- var inspectCustom = utilInspect.custom;
1135
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
1164
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
1165
+ // eslint-disable-next-line no-extra-parens
1166
+ var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
1167
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1168
+ }
1136
1169
 
1137
- var objectInspect = function inspect_(obj, options, depth, seen) {
1138
- var opts = options || {};
1170
+ return true;
1171
+ };
1139
1172
 
1140
- if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
1141
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
1142
- }
1143
- if (
1144
- has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
1145
- ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
1146
- : opts.maxStringLength !== null
1147
- )
1148
- ) {
1149
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1150
- }
1151
- var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
1152
- if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
1153
- throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
1154
- }
1173
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
1155
1174
 
1156
- if (
1157
- has$3(opts, 'indent')
1158
- && opts.indent !== null
1159
- && opts.indent !== '\t'
1160
- && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
1161
- ) {
1162
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1163
- }
1164
- if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
1165
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1166
- }
1167
- var numericSeparator = opts.numericSeparator;
1168
1175
 
1169
- if (typeof obj === 'undefined') {
1170
- return 'undefined';
1171
- }
1172
- if (obj === null) {
1173
- return 'null';
1174
- }
1175
- if (typeof obj === 'boolean') {
1176
- return obj ? 'true' : 'false';
1177
- }
1176
+ /** @type {import('.')} */
1177
+ var hasSymbols$1 = function hasNativeSymbols() {
1178
+ if (typeof origSymbol !== 'function') { return false; }
1179
+ if (typeof Symbol !== 'function') { return false; }
1180
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
1181
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
1178
1182
 
1179
- if (typeof obj === 'string') {
1180
- return inspectString(obj, opts);
1181
- }
1182
- if (typeof obj === 'number') {
1183
- if (obj === 0) {
1184
- return Infinity / obj > 0 ? '0' : '-0';
1185
- }
1186
- var str = String(obj);
1187
- return numericSeparator ? addNumericSeparator(obj, str) : str;
1188
- }
1189
- if (typeof obj === 'bigint') {
1190
- var bigIntStr = String(obj) + 'n';
1191
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
1192
- }
1183
+ return shams();
1184
+ };
1193
1185
 
1194
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
1195
- if (typeof depth === 'undefined') { depth = 0; }
1196
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
1197
- return isArray$3(obj) ? '[Array]' : '[Object]';
1198
- }
1186
+ /** @type {import('./Reflect.getPrototypeOf')} */
1187
+ var Reflect_getPrototypeOf = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
1199
1188
 
1200
- var indent = getIndent(opts, depth);
1189
+ /** @type {import('./Object.getPrototypeOf')} */
1190
+ var Object_getPrototypeOf = esObjectAtoms.getPrototypeOf || null;
1201
1191
 
1202
- if (typeof seen === 'undefined') {
1203
- seen = [];
1204
- } else if (indexOf(seen, obj) >= 0) {
1205
- return '[Circular]';
1206
- }
1192
+ /* eslint no-invalid-this: 1 */
1207
1193
 
1208
- function inspect(value, from, noIndent) {
1209
- if (from) {
1210
- seen = $arrSlice.call(seen);
1211
- seen.push(from);
1212
- }
1213
- if (noIndent) {
1214
- var newOpts = {
1215
- depth: opts.depth
1216
- };
1217
- if (has$3(opts, 'quoteStyle')) {
1218
- newOpts.quoteStyle = opts.quoteStyle;
1219
- }
1220
- return inspect_(value, newOpts, depth + 1, seen);
1221
- }
1222
- return inspect_(value, opts, depth + 1, seen);
1223
- }
1194
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1195
+ var toStr = Object.prototype.toString;
1196
+ var max = Math.max;
1197
+ var funcType = '[object Function]';
1224
1198
 
1225
- if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
1226
- var name = nameOf(obj);
1227
- var keys = arrObjKeys(obj, inspect);
1228
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
1229
- }
1230
- if (isSymbol(obj)) {
1231
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
1232
- return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
1233
- }
1234
- if (isElement(obj)) {
1235
- var s = '<' + $toLowerCase.call(String(obj.nodeName));
1236
- var attrs = obj.attributes || [];
1237
- for (var i = 0; i < attrs.length; i++) {
1238
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
1239
- }
1240
- s += '>';
1241
- if (obj.childNodes && obj.childNodes.length) { s += '...'; }
1242
- s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
1243
- return s;
1244
- }
1245
- if (isArray$3(obj)) {
1246
- if (obj.length === 0) { return '[]'; }
1247
- var xs = arrObjKeys(obj, inspect);
1248
- if (indent && !singleLineValues(xs)) {
1249
- return '[' + indentedJoin(xs, indent) + ']';
1250
- }
1251
- return '[ ' + $join.call(xs, ', ') + ' ]';
1252
- }
1253
- if (isError(obj)) {
1254
- var parts = arrObjKeys(obj, inspect);
1255
- if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
1256
- return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
1257
- }
1258
- if (parts.length === 0) { return '[' + String(obj) + ']'; }
1259
- return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
1199
+ var concatty = function concatty(a, b) {
1200
+ var arr = [];
1201
+
1202
+ for (var i = 0; i < a.length; i += 1) {
1203
+ arr[i] = a[i];
1260
1204
  }
1261
- if (typeof obj === 'object' && customInspect) {
1262
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
1263
- return utilInspect(obj, { depth: maxDepth - depth });
1264
- } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
1265
- return obj.inspect();
1266
- }
1205
+ for (var j = 0; j < b.length; j += 1) {
1206
+ arr[j + a.length] = b[j];
1267
1207
  }
1268
- if (isMap(obj)) {
1269
- var mapParts = [];
1270
- if (mapForEach) {
1271
- mapForEach.call(obj, function (value, key) {
1272
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
1273
- });
1274
- }
1275
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
1208
+
1209
+ return arr;
1210
+ };
1211
+
1212
+ var slicy = function slicy(arrLike, offset) {
1213
+ var arr = [];
1214
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
1215
+ arr[j] = arrLike[i];
1276
1216
  }
1277
- if (isSet(obj)) {
1278
- var setParts = [];
1279
- if (setForEach) {
1280
- setForEach.call(obj, function (value) {
1281
- setParts.push(inspect(value, obj));
1282
- });
1217
+ return arr;
1218
+ };
1219
+
1220
+ var joiny = function (arr, joiner) {
1221
+ var str = '';
1222
+ for (var i = 0; i < arr.length; i += 1) {
1223
+ str += arr[i];
1224
+ if (i + 1 < arr.length) {
1225
+ str += joiner;
1283
1226
  }
1284
- return collectionOf('Set', setSize.call(obj), setParts, indent);
1285
- }
1286
- if (isWeakMap(obj)) {
1287
- return weakCollectionOf('WeakMap');
1288
- }
1289
- if (isWeakSet(obj)) {
1290
- return weakCollectionOf('WeakSet');
1291
- }
1292
- if (isWeakRef(obj)) {
1293
- return weakCollectionOf('WeakRef');
1294
- }
1295
- if (isNumber(obj)) {
1296
- return markBoxed(inspect(Number(obj)));
1297
- }
1298
- if (isBigInt(obj)) {
1299
- return markBoxed(inspect(bigIntValueOf.call(obj)));
1300
- }
1301
- if (isBoolean(obj)) {
1302
- return markBoxed(booleanValueOf.call(obj));
1303
- }
1304
- if (isString(obj)) {
1305
- return markBoxed(inspect(String(obj)));
1306
- }
1307
- // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
1308
- /* eslint-env browser */
1309
- if (typeof window !== 'undefined' && obj === window) {
1310
- return '{ [object Window] }';
1311
1227
  }
1312
- if (obj === commonjsGlobal) {
1313
- return '{ [object globalThis] }';
1228
+ return str;
1229
+ };
1230
+
1231
+ var implementation = function bind(that) {
1232
+ var target = this;
1233
+ if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
1234
+ throw new TypeError(ERROR_MESSAGE + target);
1314
1235
  }
1315
- if (!isDate(obj) && !isRegExp$1(obj)) {
1316
- var ys = arrObjKeys(obj, inspect);
1317
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1318
- var protoTag = obj instanceof Object ? '' : 'null prototype';
1319
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
1320
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
1321
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
1322
- if (ys.length === 0) { return tag + '{}'; }
1323
- if (indent) {
1324
- return tag + '{' + indentedJoin(ys, indent) + '}';
1236
+ var args = slicy(arguments, 1);
1237
+
1238
+ var bound;
1239
+ var binder = function () {
1240
+ if (this instanceof bound) {
1241
+ var result = target.apply(
1242
+ this,
1243
+ concatty(args, arguments)
1244
+ );
1245
+ if (Object(result) === result) {
1246
+ return result;
1247
+ }
1248
+ return this;
1325
1249
  }
1326
- return tag + '{ ' + $join.call(ys, ', ') + ' }';
1250
+ return target.apply(
1251
+ that,
1252
+ concatty(args, arguments)
1253
+ );
1254
+
1255
+ };
1256
+
1257
+ var boundLength = max(0, target.length - args.length);
1258
+ var boundArgs = [];
1259
+ for (var i = 0; i < boundLength; i++) {
1260
+ boundArgs[i] = '$' + i;
1327
1261
  }
1328
- return String(obj);
1262
+
1263
+ bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
1264
+
1265
+ if (target.prototype) {
1266
+ var Empty = function Empty() {};
1267
+ Empty.prototype = target.prototype;
1268
+ bound.prototype = new Empty();
1269
+ Empty.prototype = null;
1270
+ }
1271
+
1272
+ return bound;
1329
1273
  };
1330
1274
 
1331
- function wrapQuotes(s, defaultStyle, opts) {
1332
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
1333
- return quoteChar + s + quoteChar;
1334
- }
1275
+ var functionBind = Function.prototype.bind || implementation;
1335
1276
 
1336
- function quote(s) {
1337
- return $replace.call(String(s), /"/g, '&quot;');
1338
- }
1277
+ /** @type {import('./functionCall')} */
1278
+ var functionCall = Function.prototype.call;
1339
1279
 
1340
- function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1341
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1342
- function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1343
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1344
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1345
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1346
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1280
+ /** @type {import('./functionApply')} */
1281
+ var functionApply = Function.prototype.apply;
1347
1282
 
1348
- // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
1349
- function isSymbol(obj) {
1350
- if (hasShammedSymbols) {
1351
- return obj && typeof obj === 'object' && obj instanceof Symbol;
1352
- }
1353
- if (typeof obj === 'symbol') {
1354
- return true;
1355
- }
1356
- if (!obj || typeof obj !== 'object' || !symToString) {
1357
- return false;
1358
- }
1359
- try {
1360
- symToString.call(obj);
1361
- return true;
1362
- } catch (e) {}
1363
- return false;
1364
- }
1283
+ /** @type {import('./reflectApply')} */
1284
+ var reflectApply = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
1365
1285
 
1366
- function isBigInt(obj) {
1367
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
1368
- return false;
1369
- }
1370
- try {
1371
- bigIntValueOf.call(obj);
1372
- return true;
1373
- } catch (e) {}
1374
- return false;
1375
- }
1286
+ /** @type {import('./actualApply')} */
1287
+ var actualApply = reflectApply || functionBind.call(functionCall, functionApply);
1376
1288
 
1377
- var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
1378
- function has$3(obj, key) {
1379
- return hasOwn.call(obj, key);
1380
- }
1289
+ /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
1290
+ var callBindApplyHelpers = function callBindBasic(args) {
1291
+ if (args.length < 1 || typeof args[0] !== 'function') {
1292
+ throw new type('a function is required');
1293
+ }
1294
+ return actualApply(functionBind, functionCall, args);
1295
+ };
1381
1296
 
1382
- function toStr(obj) {
1383
- return objectToString.call(obj);
1297
+ var hasProtoAccessor;
1298
+ try {
1299
+ // eslint-disable-next-line no-extra-parens, no-proto
1300
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
1301
+ } catch (e) {
1302
+ if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
1303
+ throw e;
1304
+ }
1384
1305
  }
1385
1306
 
1386
- function nameOf(f) {
1387
- if (f.name) { return f.name; }
1388
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
1389
- if (m) { return m[1]; }
1390
- return null;
1391
- }
1307
+ // eslint-disable-next-line no-extra-parens
1308
+ var desc = !!hasProtoAccessor && gopd && gopd(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
1392
1309
 
1393
- function indexOf(xs, x) {
1394
- if (xs.indexOf) { return xs.indexOf(x); }
1395
- for (var i = 0, l = xs.length; i < l; i++) {
1396
- if (xs[i] === x) { return i; }
1397
- }
1398
- return -1;
1399
- }
1310
+ var $Object = Object;
1311
+ var $getPrototypeOf = $Object.getPrototypeOf;
1312
+
1313
+ /** @type {import('./get')} */
1314
+ var get = desc && typeof desc.get === 'function'
1315
+ ? callBindApplyHelpers([desc.get])
1316
+ : typeof $getPrototypeOf === 'function'
1317
+ ? /** @type {import('./get')} */ function getDunder(value) {
1318
+ // eslint-disable-next-line eqeqeq
1319
+ return $getPrototypeOf(value == null ? value : $Object(value));
1320
+ }
1321
+ : false;
1400
1322
 
1401
- function isMap(x) {
1402
- if (!mapSize || !x || typeof x !== 'object') {
1403
- return false;
1404
- }
1405
- try {
1406
- mapSize.call(x);
1407
- try {
1408
- setSize.call(x);
1409
- } catch (s) {
1410
- return true;
1411
- }
1412
- return x instanceof Map; // core-js workaround, pre-v2.5.0
1413
- } catch (e) {}
1414
- return false;
1415
- }
1323
+ /** @type {import('.')} */
1324
+ var getProto = Reflect_getPrototypeOf
1325
+ ? function getProto(O) {
1326
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
1327
+ return Reflect_getPrototypeOf(O);
1328
+ }
1329
+ : Object_getPrototypeOf
1330
+ ? function getProto(O) {
1331
+ if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
1332
+ throw new TypeError('getProto: not an object');
1333
+ }
1334
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
1335
+ return Object_getPrototypeOf(O);
1336
+ }
1337
+ : get
1338
+ ? function getProto(O) {
1339
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
1340
+ return get(O);
1341
+ }
1342
+ : null;
1343
+
1344
+ var call = Function.prototype.call;
1345
+ var $hasOwn = Object.prototype.hasOwnProperty;
1346
+
1347
+
1348
+ /** @type {import('.')} */
1349
+ var hasown = functionBind.call(call, $hasOwn);
1350
+
1351
+ var undefined$1;
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+ var $Function = Function;
1372
+
1373
+ // eslint-disable-next-line consistent-return
1374
+ var getEvalledConstructor = function (expressionSyntax) {
1375
+ try {
1376
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1377
+ } catch (e) {}
1378
+ };
1379
+
1380
+
1381
+
1382
+
1383
+ var throwTypeError = function () {
1384
+ throw new type();
1385
+ };
1386
+ var ThrowTypeError = gopd
1387
+ ? (function () {
1388
+ try {
1389
+ return throwTypeError;
1390
+ } catch (calleeThrows) {
1391
+ try {
1392
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
1393
+ return gopd(arguments, 'callee').get;
1394
+ } catch (gOPDthrows) {
1395
+ return throwTypeError;
1396
+ }
1397
+ }
1398
+ }())
1399
+ : throwTypeError;
1400
+
1401
+ var hasSymbols = hasSymbols$1();
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+ var needsEval = {};
1411
+
1412
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
1413
+
1414
+ var INTRINSICS = {
1415
+ __proto__: null,
1416
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1417
+ '%Array%': Array,
1418
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1419
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
1420
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
1421
+ '%AsyncFunction%': needsEval,
1422
+ '%AsyncGenerator%': needsEval,
1423
+ '%AsyncGeneratorFunction%': needsEval,
1424
+ '%AsyncIteratorPrototype%': needsEval,
1425
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1426
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1427
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
1428
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
1429
+ '%Boolean%': Boolean,
1430
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1431
+ '%Date%': Date,
1432
+ '%decodeURI%': decodeURI,
1433
+ '%decodeURIComponent%': decodeURIComponent,
1434
+ '%encodeURI%': encodeURI,
1435
+ '%encodeURIComponent%': encodeURIComponent,
1436
+ '%Error%': esErrors,
1437
+ '%eval%': eval, // eslint-disable-line no-eval
1438
+ '%EvalError%': _eval,
1439
+ '%Float16Array%': typeof Float16Array === 'undefined' ? undefined$1 : Float16Array,
1440
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1441
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1442
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1443
+ '%Function%': $Function,
1444
+ '%GeneratorFunction%': needsEval,
1445
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1446
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1447
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1448
+ '%isFinite%': isFinite,
1449
+ '%isNaN%': isNaN,
1450
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1451
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1452
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1453
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1454
+ '%Math%': Math,
1455
+ '%Number%': Number,
1456
+ '%Object%': esObjectAtoms,
1457
+ '%Object.getOwnPropertyDescriptor%': gopd,
1458
+ '%parseFloat%': parseFloat,
1459
+ '%parseInt%': parseInt,
1460
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1461
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1462
+ '%RangeError%': range,
1463
+ '%ReferenceError%': ref,
1464
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1465
+ '%RegExp%': RegExp,
1466
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1467
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1468
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1469
+ '%String%': String,
1470
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
1471
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
1472
+ '%SyntaxError%': syntax,
1473
+ '%ThrowTypeError%': ThrowTypeError,
1474
+ '%TypedArray%': TypedArray,
1475
+ '%TypeError%': type,
1476
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1477
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1478
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1479
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1480
+ '%URIError%': uri,
1481
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1482
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1483
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
1484
+
1485
+ '%Function.prototype.call%': functionCall,
1486
+ '%Function.prototype.apply%': functionApply,
1487
+ '%Object.defineProperty%': esDefineProperty,
1488
+ '%Object.getPrototypeOf%': Object_getPrototypeOf,
1489
+ '%Math.abs%': abs,
1490
+ '%Math.floor%': floor,
1491
+ '%Math.max%': max$1,
1492
+ '%Math.min%': min,
1493
+ '%Math.pow%': pow,
1494
+ '%Math.round%': round,
1495
+ '%Math.sign%': sign,
1496
+ '%Reflect.getPrototypeOf%': Reflect_getPrototypeOf
1497
+ };
1498
+
1499
+ var doEval = function doEval(name) {
1500
+ var value;
1501
+ if (name === '%AsyncFunction%') {
1502
+ value = getEvalledConstructor('async function () {}');
1503
+ } else if (name === '%GeneratorFunction%') {
1504
+ value = getEvalledConstructor('function* () {}');
1505
+ } else if (name === '%AsyncGeneratorFunction%') {
1506
+ value = getEvalledConstructor('async function* () {}');
1507
+ } else if (name === '%AsyncGenerator%') {
1508
+ var fn = doEval('%AsyncGeneratorFunction%');
1509
+ if (fn) {
1510
+ value = fn.prototype;
1511
+ }
1512
+ } else if (name === '%AsyncIteratorPrototype%') {
1513
+ var gen = doEval('%AsyncGenerator%');
1514
+ if (gen && getProto) {
1515
+ value = getProto(gen.prototype);
1516
+ }
1517
+ }
1518
+
1519
+ INTRINSICS[name] = value;
1520
+
1521
+ return value;
1522
+ };
1416
1523
 
1417
- function isWeakMap(x) {
1418
- if (!weakMapHas || !x || typeof x !== 'object') {
1419
- return false;
1420
- }
1421
- try {
1422
- weakMapHas.call(x, weakMapHas);
1423
- try {
1424
- weakSetHas.call(x, weakSetHas);
1425
- } catch (s) {
1426
- return true;
1427
- }
1428
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
1429
- } catch (e) {}
1430
- return false;
1431
- }
1524
+ var LEGACY_ALIASES = {
1525
+ __proto__: null,
1526
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1527
+ '%ArrayPrototype%': ['Array', 'prototype'],
1528
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1529
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1530
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1531
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1532
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1533
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1534
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1535
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
1536
+ '%DataViewPrototype%': ['DataView', 'prototype'],
1537
+ '%DatePrototype%': ['Date', 'prototype'],
1538
+ '%ErrorPrototype%': ['Error', 'prototype'],
1539
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1540
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1541
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1542
+ '%FunctionPrototype%': ['Function', 'prototype'],
1543
+ '%Generator%': ['GeneratorFunction', 'prototype'],
1544
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1545
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1546
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1547
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1548
+ '%JSONParse%': ['JSON', 'parse'],
1549
+ '%JSONStringify%': ['JSON', 'stringify'],
1550
+ '%MapPrototype%': ['Map', 'prototype'],
1551
+ '%NumberPrototype%': ['Number', 'prototype'],
1552
+ '%ObjectPrototype%': ['Object', 'prototype'],
1553
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1554
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1555
+ '%PromisePrototype%': ['Promise', 'prototype'],
1556
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1557
+ '%Promise_all%': ['Promise', 'all'],
1558
+ '%Promise_reject%': ['Promise', 'reject'],
1559
+ '%Promise_resolve%': ['Promise', 'resolve'],
1560
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1561
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1562
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
1563
+ '%SetPrototype%': ['Set', 'prototype'],
1564
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1565
+ '%StringPrototype%': ['String', 'prototype'],
1566
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
1567
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1568
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1569
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1570
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1571
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1572
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1573
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1574
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
1575
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1576
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
1577
+ };
1432
1578
 
1433
- function isWeakRef(x) {
1434
- if (!weakRefDeref || !x || typeof x !== 'object') {
1435
- return false;
1436
- }
1437
- try {
1438
- weakRefDeref.call(x);
1439
- return true;
1440
- } catch (e) {}
1441
- return false;
1442
- }
1443
1579
 
1444
- function isSet(x) {
1445
- if (!setSize || !x || typeof x !== 'object') {
1446
- return false;
1447
- }
1448
- try {
1449
- setSize.call(x);
1450
- try {
1451
- mapSize.call(x);
1452
- } catch (m) {
1453
- return true;
1454
- }
1455
- return x instanceof Set; // core-js workaround, pre-v2.5.0
1456
- } catch (e) {}
1457
- return false;
1458
- }
1459
1580
 
1460
- function isWeakSet(x) {
1461
- if (!weakSetHas || !x || typeof x !== 'object') {
1462
- return false;
1463
- }
1464
- try {
1465
- weakSetHas.call(x, weakSetHas);
1466
- try {
1467
- weakMapHas.call(x, weakMapHas);
1468
- } catch (s) {
1469
- return true;
1470
- }
1471
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
1472
- } catch (e) {}
1473
- return false;
1474
- }
1581
+ var $concat = functionBind.call(functionCall, Array.prototype.concat);
1582
+ var $spliceApply = functionBind.call(functionApply, Array.prototype.splice);
1583
+ var $replace = functionBind.call(functionCall, String.prototype.replace);
1584
+ var $strSlice = functionBind.call(functionCall, String.prototype.slice);
1585
+ var $exec = functionBind.call(functionCall, RegExp.prototype.exec);
1475
1586
 
1476
- function isElement(x) {
1477
- if (!x || typeof x !== 'object') { return false; }
1478
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
1479
- return true;
1480
- }
1481
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
1482
- }
1587
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1588
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1589
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1590
+ var stringToPath = function stringToPath(string) {
1591
+ var first = $strSlice(string, 0, 1);
1592
+ var last = $strSlice(string, -1);
1593
+ if (first === '%' && last !== '%') {
1594
+ throw new syntax('invalid intrinsic syntax, expected closing `%`');
1595
+ } else if (last === '%' && first !== '%') {
1596
+ throw new syntax('invalid intrinsic syntax, expected opening `%`');
1597
+ }
1598
+ var result = [];
1599
+ $replace(string, rePropName, function (match, number, quote, subString) {
1600
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
1601
+ });
1602
+ return result;
1603
+ };
1604
+ /* end adaptation */
1483
1605
 
1484
- function inspectString(str, opts) {
1485
- if (str.length > opts.maxStringLength) {
1486
- var remaining = str.length - opts.maxStringLength;
1487
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
1488
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
1489
- }
1490
- // eslint-disable-next-line no-control-regex
1491
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
1492
- return wrapQuotes(s, 'single', opts);
1493
- }
1606
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1607
+ var intrinsicName = name;
1608
+ var alias;
1609
+ if (hasown(LEGACY_ALIASES, intrinsicName)) {
1610
+ alias = LEGACY_ALIASES[intrinsicName];
1611
+ intrinsicName = '%' + alias[0] + '%';
1612
+ }
1494
1613
 
1495
- function lowbyte(c) {
1496
- var n = c.charCodeAt(0);
1497
- var x = {
1498
- 8: 'b',
1499
- 9: 't',
1500
- 10: 'n',
1501
- 12: 'f',
1502
- 13: 'r'
1503
- }[n];
1504
- if (x) { return '\\' + x; }
1505
- return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
1506
- }
1614
+ if (hasown(INTRINSICS, intrinsicName)) {
1615
+ var value = INTRINSICS[intrinsicName];
1616
+ if (value === needsEval) {
1617
+ value = doEval(intrinsicName);
1618
+ }
1619
+ if (typeof value === 'undefined' && !allowMissing) {
1620
+ throw new type('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1621
+ }
1507
1622
 
1508
- function markBoxed(str) {
1509
- return 'Object(' + str + ')';
1510
- }
1623
+ return {
1624
+ alias: alias,
1625
+ name: intrinsicName,
1626
+ value: value
1627
+ };
1628
+ }
1511
1629
 
1512
- function weakCollectionOf(type) {
1513
- return type + ' { ? }';
1514
- }
1630
+ throw new syntax('intrinsic ' + name + ' does not exist!');
1631
+ };
1515
1632
 
1516
- function collectionOf(type, size, entries, indent) {
1517
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
1518
- return type + ' (' + size + ') {' + joinedEntries + '}';
1519
- }
1633
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1634
+ if (typeof name !== 'string' || name.length === 0) {
1635
+ throw new type('intrinsic name must be a non-empty string');
1636
+ }
1637
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1638
+ throw new type('"allowMissing" argument must be a boolean');
1639
+ }
1520
1640
 
1521
- function singleLineValues(xs) {
1522
- for (var i = 0; i < xs.length; i++) {
1523
- if (indexOf(xs[i], '\n') >= 0) {
1524
- return false;
1525
- }
1526
- }
1527
- return true;
1528
- }
1641
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
1642
+ throw new syntax('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
1643
+ }
1644
+ var parts = stringToPath(name);
1645
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1529
1646
 
1530
- function getIndent(opts, depth) {
1531
- var baseIndent;
1532
- if (opts.indent === '\t') {
1533
- baseIndent = '\t';
1534
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
1535
- baseIndent = $join.call(Array(opts.indent + 1), ' ');
1536
- } else {
1537
- return null;
1538
- }
1539
- return {
1540
- base: baseIndent,
1541
- prev: $join.call(Array(depth + 1), baseIndent)
1542
- };
1543
- }
1647
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1648
+ var intrinsicRealName = intrinsic.name;
1649
+ var value = intrinsic.value;
1650
+ var skipFurtherCaching = false;
1544
1651
 
1545
- function indentedJoin(xs, indent) {
1546
- if (xs.length === 0) { return ''; }
1547
- var lineJoiner = '\n' + indent.prev + indent.base;
1548
- return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
1549
- }
1652
+ var alias = intrinsic.alias;
1653
+ if (alias) {
1654
+ intrinsicBaseName = alias[0];
1655
+ $spliceApply(parts, $concat([0, 1], alias));
1656
+ }
1550
1657
 
1551
- function arrObjKeys(obj, inspect) {
1552
- var isArr = isArray$3(obj);
1553
- var xs = [];
1554
- if (isArr) {
1555
- xs.length = obj.length;
1556
- for (var i = 0; i < obj.length; i++) {
1557
- xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
1558
- }
1559
- }
1560
- var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
1561
- var symMap;
1562
- if (hasShammedSymbols) {
1563
- symMap = {};
1564
- for (var k = 0; k < syms.length; k++) {
1565
- symMap['$' + syms[k]] = syms[k];
1566
- }
1567
- }
1658
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1659
+ var part = parts[i];
1660
+ var first = $strSlice(part, 0, 1);
1661
+ var last = $strSlice(part, -1);
1662
+ if (
1663
+ (
1664
+ (first === '"' || first === "'" || first === '`')
1665
+ || (last === '"' || last === "'" || last === '`')
1666
+ )
1667
+ && first !== last
1668
+ ) {
1669
+ throw new syntax('property names with quotes must have matching quotes');
1670
+ }
1671
+ if (part === 'constructor' || !isOwn) {
1672
+ skipFurtherCaching = true;
1673
+ }
1568
1674
 
1569
- for (var key in obj) { // eslint-disable-line no-restricted-syntax
1570
- if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1571
- if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1572
- if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
1573
- // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
1574
- continue; // eslint-disable-line no-restricted-syntax, no-continue
1575
- } else if ($test.call(/[^\w$]/, key)) {
1576
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
1577
- } else {
1578
- xs.push(key + ': ' + inspect(obj[key], obj));
1579
- }
1580
- }
1581
- if (typeof gOPS === 'function') {
1582
- for (var j = 0; j < syms.length; j++) {
1583
- if (isEnumerable.call(obj, syms[j])) {
1584
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
1585
- }
1586
- }
1587
- }
1588
- return xs;
1589
- }
1675
+ intrinsicBaseName += '.' + part;
1676
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
1590
1677
 
1591
- var $WeakMap = getIntrinsic('%WeakMap%', true);
1592
- var $Map = getIntrinsic('%Map%', true);
1678
+ if (hasown(INTRINSICS, intrinsicRealName)) {
1679
+ value = INTRINSICS[intrinsicRealName];
1680
+ } else if (value != null) {
1681
+ if (!(part in value)) {
1682
+ if (!allowMissing) {
1683
+ throw new type('base intrinsic for ' + name + ' exists, but the property is not available.');
1684
+ }
1685
+ return void undefined$1;
1686
+ }
1687
+ if (gopd && (i + 1) >= parts.length) {
1688
+ var desc = gopd(value, part);
1689
+ isOwn = !!desc;
1593
1690
 
1594
- var $weakMapGet = callBound('WeakMap.prototype.get', true);
1595
- var $weakMapSet = callBound('WeakMap.prototype.set', true);
1596
- var $weakMapHas = callBound('WeakMap.prototype.has', true);
1597
- var $mapGet = callBound('Map.prototype.get', true);
1598
- var $mapSet = callBound('Map.prototype.set', true);
1599
- var $mapHas = callBound('Map.prototype.has', true);
1691
+ // By convention, when a data property is converted to an accessor
1692
+ // property to emulate a data property that does not suffer from
1693
+ // the override mistake, that accessor's getter is marked with
1694
+ // an `originalValue` property. Here, when we detect this, we
1695
+ // uphold the illusion by pretending to see that original data
1696
+ // property, i.e., returning the value rather than the getter
1697
+ // itself.
1698
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1699
+ value = desc.get;
1700
+ } else {
1701
+ value = value[part];
1702
+ }
1703
+ } else {
1704
+ isOwn = hasown(value, part);
1705
+ value = value[part];
1706
+ }
1600
1707
 
1601
- /*
1602
- * This function traverses the list returning the node corresponding to the given key.
1603
- *
1604
- * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.
1605
- */
1606
- /** @type {import('.').listGetNode} */
1607
- var listGetNode = function (list, key) { // eslint-disable-line consistent-return
1608
- /** @type {typeof list | NonNullable<(typeof list)['next']>} */
1609
- var prev = list;
1610
- /** @type {(typeof list)['next']} */
1611
- var curr;
1612
- for (; (curr = prev.next) !== null; prev = curr) {
1613
- if (curr.key === key) {
1614
- prev.next = curr.next;
1615
- // eslint-disable-next-line no-extra-parens
1616
- curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
1617
- list.next = curr; // eslint-disable-line no-param-reassign
1618
- return curr;
1708
+ if (isOwn && !skipFurtherCaching) {
1709
+ INTRINSICS[intrinsicRealName] = value;
1710
+ }
1619
1711
  }
1620
1712
  }
1713
+ return value;
1621
1714
  };
1622
1715
 
1623
- /** @type {import('.').listGet} */
1624
- var listGet = function (objects, key) {
1625
- var node = listGetNode(objects, key);
1626
- return node && node.value;
1627
- };
1628
- /** @type {import('.').listSet} */
1629
- var listSet = function (objects, key, value) {
1630
- var node = listGetNode(objects, key);
1631
- if (node) {
1632
- node.value = value;
1633
- } else {
1634
- // Prepend the new node to the beginning of the list
1635
- objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
1636
- key: key,
1637
- next: objects.next,
1638
- value: value
1639
- });
1716
+ /** @type {(thisArg: string, searchString: string, position?: number) => number} */
1717
+ var $indexOf = callBindApplyHelpers([getIntrinsic('%String.prototype.indexOf%')]);
1718
+
1719
+ /** @type {import('.')} */
1720
+ var callBound = function callBoundIntrinsic(name, allowMissing) {
1721
+ /* eslint no-extra-parens: 0 */
1722
+
1723
+ var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (getIntrinsic(name, !!allowMissing));
1724
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1725
+ return callBindApplyHelpers(/** @type {const} */ ([intrinsic]));
1640
1726
  }
1727
+ return intrinsic;
1641
1728
  };
1642
- /** @type {import('.').listHas} */
1643
- var listHas = function (objects, key) {
1644
- return !!listGetNode(objects, key);
1645
- };
1729
+
1730
+ var $Map = getIntrinsic('%Map%', true);
1731
+
1732
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
1733
+ var $mapGet = callBound('Map.prototype.get', true);
1734
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
1735
+ var $mapSet = callBound('Map.prototype.set', true);
1736
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
1737
+ var $mapHas = callBound('Map.prototype.has', true);
1738
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
1739
+ var $mapDelete = callBound('Map.prototype.delete', true);
1740
+ /** @type {<K, V>(thisArg: Map<K, V>) => number} */
1741
+ var $mapSize = callBound('Map.prototype.size', true);
1646
1742
 
1647
1743
  /** @type {import('.')} */
1648
- var sideChannel = function getSideChannel() {
1649
- /** @type {WeakMap<object, unknown>} */ var $wm;
1650
- /** @type {Map<object, unknown>} */ var $m;
1651
- /** @type {import('.').RootNode<unknown>} */ var $o;
1744
+ var sideChannelMap = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
1745
+ /** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
1746
+ /** @typedef {Parameters<Channel['get']>[0]} K */
1747
+ /** @typedef {Parameters<Channel['set']>[1]} V */
1748
+
1749
+ /** @type {Map<K, V> | undefined} */ var $m;
1652
1750
 
1653
- /** @type {import('.').Channel} */
1751
+ /** @type {Channel} */
1654
1752
  var channel = {
1655
1753
  assert: function (key) {
1656
1754
  if (!channel.has(key)) {
1657
1755
  throw new type('Side channel does not contain ' + objectInspect(key));
1658
1756
  }
1659
1757
  },
1660
- get: function (key) { // eslint-disable-line consistent-return
1661
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1662
- if ($wm) {
1663
- return $weakMapGet($wm, key);
1664
- }
1665
- } else if ($Map) {
1666
- if ($m) {
1667
- return $mapGet($m, key);
1668
- }
1669
- } else {
1670
- if ($o) { // eslint-disable-line no-lonely-if
1671
- return listGet($o, key);
1758
+ 'delete': function (key) {
1759
+ if ($m) {
1760
+ var result = $mapDelete($m, key);
1761
+ if ($mapSize($m) === 0) {
1762
+ $m = void undefined;
1672
1763
  }
1764
+ return result;
1765
+ }
1766
+ return false;
1767
+ },
1768
+ get: function (key) { // eslint-disable-line consistent-return
1769
+ if ($m) {
1770
+ return $mapGet($m, key);
1673
1771
  }
1674
1772
  },
1675
1773
  has: function (key) {
1676
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1677
- if ($wm) {
1678
- return $weakMapHas($wm, key);
1679
- }
1680
- } else if ($Map) {
1681
- if ($m) {
1682
- return $mapHas($m, key);
1683
- }
1684
- } else {
1685
- if ($o) { // eslint-disable-line no-lonely-if
1686
- return listHas($o, key);
1687
- }
1774
+ if ($m) {
1775
+ return $mapHas($m, key);
1688
1776
  }
1689
1777
  return false;
1690
1778
  },
1691
1779
  set: function (key, value) {
1692
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1693
- if (!$wm) {
1694
- $wm = new $WeakMap();
1780
+ if (!$m) {
1781
+ // @ts-expect-error TS can't handle narrowing a variable inside a closure
1782
+ $m = new $Map();
1783
+ }
1784
+ $mapSet($m, key, value);
1785
+ }
1786
+ };
1787
+
1788
+ // @ts-expect-error TODO: figure out why TS is erroring here
1789
+ return channel;
1790
+ };
1791
+
1792
+ var $WeakMap = getIntrinsic('%WeakMap%', true);
1793
+
1794
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
1795
+ var $weakMapGet = callBound('WeakMap.prototype.get', true);
1796
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
1797
+ var $weakMapSet = callBound('WeakMap.prototype.set', true);
1798
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
1799
+ var $weakMapHas = callBound('WeakMap.prototype.has', true);
1800
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
1801
+ var $weakMapDelete = callBound('WeakMap.prototype.delete', true);
1802
+
1803
+ /** @type {import('.')} */
1804
+ var sideChannelWeakmap = $WeakMap
1805
+ ? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
1806
+ /** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
1807
+ /** @typedef {Parameters<Channel['get']>[0]} K */
1808
+ /** @typedef {Parameters<Channel['set']>[1]} V */
1809
+
1810
+ /** @type {WeakMap<K & object, V> | undefined} */ var $wm;
1811
+ /** @type {Channel | undefined} */ var $m;
1812
+
1813
+ /** @type {Channel} */
1814
+ var channel = {
1815
+ assert: function (key) {
1816
+ if (!channel.has(key)) {
1817
+ throw new type('Side channel does not contain ' + objectInspect(key));
1695
1818
  }
1696
- $weakMapSet($wm, key, value);
1697
- } else if ($Map) {
1698
- if (!$m) {
1699
- $m = new $Map();
1819
+ },
1820
+ 'delete': function (key) {
1821
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1822
+ if ($wm) {
1823
+ return $weakMapDelete($wm, key);
1824
+ }
1825
+ } else if (sideChannelMap) {
1826
+ if ($m) {
1827
+ return $m['delete'](key);
1828
+ }
1700
1829
  }
1701
- $mapSet($m, key, value);
1702
- } else {
1703
- if (!$o) {
1704
- // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
1705
- $o = { key: {}, next: null };
1830
+ return false;
1831
+ },
1832
+ get: function (key) {
1833
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1834
+ if ($wm) {
1835
+ return $weakMapGet($wm, key);
1836
+ }
1837
+ }
1838
+ return $m && $m.get(key);
1839
+ },
1840
+ has: function (key) {
1841
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1842
+ if ($wm) {
1843
+ return $weakMapHas($wm, key);
1844
+ }
1706
1845
  }
1707
- listSet($o, key, value);
1846
+ return !!$m && $m.has(key);
1847
+ },
1848
+ set: function (key, value) {
1849
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1850
+ if (!$wm) {
1851
+ $wm = new $WeakMap();
1852
+ }
1853
+ $weakMapSet($wm, key, value);
1854
+ } else if (sideChannelMap) {
1855
+ if (!$m) {
1856
+ $m = sideChannelMap();
1857
+ }
1858
+ // eslint-disable-next-line no-extra-parens
1859
+ /** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
1860
+ }
1861
+ }
1862
+ };
1863
+
1864
+ // @ts-expect-error TODO: figure out why this is erroring
1865
+ return channel;
1866
+ }
1867
+ : sideChannelMap;
1868
+
1869
+ var makeChannel = sideChannelWeakmap || sideChannelMap || sideChannelList;
1870
+
1871
+ /** @type {import('.')} */
1872
+ var sideChannel = function getSideChannel() {
1873
+ /** @typedef {ReturnType<typeof getSideChannel>} Channel */
1874
+
1875
+ /** @type {Channel | undefined} */ var $channelData;
1876
+
1877
+ /** @type {Channel} */
1878
+ var channel = {
1879
+ assert: function (key) {
1880
+ if (!channel.has(key)) {
1881
+ throw new type('Side channel does not contain ' + objectInspect(key));
1882
+ }
1883
+ },
1884
+ 'delete': function (key) {
1885
+ return !!$channelData && $channelData['delete'](key);
1886
+ },
1887
+ get: function (key) {
1888
+ return $channelData && $channelData.get(key);
1889
+ },
1890
+ has: function (key) {
1891
+ return !!$channelData && $channelData.has(key);
1892
+ },
1893
+ set: function (key, value) {
1894
+ if (!$channelData) {
1895
+ $channelData = makeChannel();
1708
1896
  }
1897
+
1898
+ $channelData.set(key, value);
1709
1899
  }
1710
1900
  };
1901
+ // @ts-expect-error TODO: figure out why this is erroring
1711
1902
  return channel;
1712
1903
  };
1713
1904
 
@@ -1736,10 +1927,31 @@ var formats = {
1736
1927
  var has$2 = Object.prototype.hasOwnProperty;
1737
1928
  var isArray$2 = Array.isArray;
1738
1929
 
1930
+ // Track objects created from arrayLimit overflow using side-channel
1931
+ // Stores the current max numeric index for O(1) lookup
1932
+ var overflowChannel = sideChannel();
1933
+
1934
+ var markOverflow = function markOverflow(obj, maxIndex) {
1935
+ overflowChannel.set(obj, maxIndex);
1936
+ return obj;
1937
+ };
1938
+
1939
+ var isOverflow = function isOverflow(obj) {
1940
+ return overflowChannel.has(obj);
1941
+ };
1942
+
1943
+ var getMaxIndex = function getMaxIndex(obj) {
1944
+ return overflowChannel.get(obj);
1945
+ };
1946
+
1947
+ var setMaxIndex = function setMaxIndex(obj, maxIndex) {
1948
+ overflowChannel.set(obj, maxIndex);
1949
+ };
1950
+
1739
1951
  var hexTable = (function () {
1740
1952
  var array = [];
1741
1953
  for (var i = 0; i < 256; ++i) {
1742
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
1954
+ array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
1743
1955
  }
1744
1956
 
1745
1957
  return array;
@@ -1755,7 +1967,7 @@ var compactQueue = function compactQueue(queue) {
1755
1967
 
1756
1968
  for (var j = 0; j < obj.length; ++j) {
1757
1969
  if (typeof obj[j] !== 'undefined') {
1758
- compacted.push(obj[j]);
1970
+ compacted[compacted.length] = obj[j];
1759
1971
  }
1760
1972
  }
1761
1973
 
@@ -1765,7 +1977,7 @@ var compactQueue = function compactQueue(queue) {
1765
1977
  };
1766
1978
 
1767
1979
  var arrayToObject = function arrayToObject(source, options) {
1768
- var obj = options && options.plainObjects ? Object.create(null) : {};
1980
+ var obj = options && options.plainObjects ? { __proto__: null } : {};
1769
1981
  for (var i = 0; i < source.length; ++i) {
1770
1982
  if (typeof source[i] !== 'undefined') {
1771
1983
  obj[i] = source[i];
@@ -1781,11 +1993,25 @@ var merge = function merge(target, source, options) {
1781
1993
  return target;
1782
1994
  }
1783
1995
 
1784
- if (typeof source !== 'object') {
1996
+ if (typeof source !== 'object' && typeof source !== 'function') {
1785
1997
  if (isArray$2(target)) {
1786
- target.push(source);
1998
+ var nextIndex = target.length;
1999
+ if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) {
2000
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
2001
+ }
2002
+ target[nextIndex] = source;
1787
2003
  } else if (target && typeof target === 'object') {
1788
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
2004
+ if (isOverflow(target)) {
2005
+ // Add at next numeric index for overflow objects
2006
+ var newIndex = getMaxIndex(target) + 1;
2007
+ target[newIndex] = source;
2008
+ setMaxIndex(target, newIndex);
2009
+ } else if (options && options.strictMerge) {
2010
+ return [target, source];
2011
+ } else if (
2012
+ (options && (options.plainObjects || options.allowPrototypes))
2013
+ || !has$2.call(Object.prototype, source)
2014
+ ) {
1789
2015
  target[source] = true;
1790
2016
  }
1791
2017
  } else {
@@ -1796,7 +2022,23 @@ var merge = function merge(target, source, options) {
1796
2022
  }
1797
2023
 
1798
2024
  if (!target || typeof target !== 'object') {
1799
- return [target].concat(source);
2025
+ if (isOverflow(source)) {
2026
+ // Create new object with target at 0, source values shifted by 1
2027
+ var sourceKeys = Object.keys(source);
2028
+ var result = options && options.plainObjects
2029
+ ? { __proto__: null, 0: target }
2030
+ : { 0: target };
2031
+ for (var m = 0; m < sourceKeys.length; m++) {
2032
+ var oldKey = parseInt(sourceKeys[m], 10);
2033
+ result[oldKey + 1] = source[sourceKeys[m]];
2034
+ }
2035
+ return markOverflow(result, getMaxIndex(source) + 1);
2036
+ }
2037
+ var combined = [target].concat(source);
2038
+ if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) {
2039
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
2040
+ }
2041
+ return combined;
1800
2042
  }
1801
2043
 
1802
2044
  var mergeTarget = target;
@@ -1811,7 +2053,7 @@ var merge = function merge(target, source, options) {
1811
2053
  if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
1812
2054
  target[i] = merge(targetItem, item, options);
1813
2055
  } else {
1814
- target.push(item);
2056
+ target[target.length] = item;
1815
2057
  }
1816
2058
  } else {
1817
2059
  target[i] = item;
@@ -1828,6 +2070,17 @@ var merge = function merge(target, source, options) {
1828
2070
  } else {
1829
2071
  acc[key] = value;
1830
2072
  }
2073
+
2074
+ if (isOverflow(source) && !isOverflow(acc)) {
2075
+ markOverflow(acc, getMaxIndex(source));
2076
+ }
2077
+ if (isOverflow(acc)) {
2078
+ var keyNum = parseInt(key, 10);
2079
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
2080
+ setMaxIndex(acc, keyNum);
2081
+ }
2082
+ }
2083
+
1831
2084
  return acc;
1832
2085
  }, mergeTarget);
1833
2086
  };
@@ -1839,7 +2092,7 @@ var assign = function assignSingleSource(target, source) {
1839
2092
  }, target);
1840
2093
  };
1841
2094
 
1842
- var decode = function (str, decoder, charset) {
2095
+ var decode = function (str, defaultDecoder, charset) {
1843
2096
  var strWithoutPlus = str.replace(/\+/g, ' ');
1844
2097
  if (charset === 'iso-8859-1') {
1845
2098
  // unescape never throws, no try...catch needed:
@@ -1944,8 +2197,8 @@ var compact = function compact(value) {
1944
2197
  var key = keys[j];
1945
2198
  var val = obj[key];
1946
2199
  if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
1947
- queue.push({ obj: obj, prop: key });
1948
- refs.push(val);
2200
+ queue[queue.length] = { obj: obj, prop: key };
2201
+ refs[refs.length] = val;
1949
2202
  }
1950
2203
  }
1951
2204
  }
@@ -1967,15 +2220,27 @@ var isBuffer = function isBuffer(obj) {
1967
2220
  return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
1968
2221
  };
1969
2222
 
1970
- var combine = function combine(a, b) {
1971
- return [].concat(a, b);
2223
+ var combine = function combine(a, b, arrayLimit, plainObjects) {
2224
+ // If 'a' is already an overflow object, add to it
2225
+ if (isOverflow(a)) {
2226
+ var newIndex = getMaxIndex(a) + 1;
2227
+ a[newIndex] = b;
2228
+ setMaxIndex(a, newIndex);
2229
+ return a;
2230
+ }
2231
+
2232
+ var result = [].concat(a, b);
2233
+ if (result.length > arrayLimit) {
2234
+ return markOverflow(arrayToObject(result, { plainObjects: plainObjects }), result.length - 1);
2235
+ }
2236
+ return result;
1972
2237
  };
1973
2238
 
1974
2239
  var maybeMap = function maybeMap(val, fn) {
1975
2240
  if (isArray$2(val)) {
1976
2241
  var mapped = [];
1977
2242
  for (var i = 0; i < val.length; i += 1) {
1978
- mapped.push(fn(val[i]));
2243
+ mapped[mapped.length] = fn(val[i]);
1979
2244
  }
1980
2245
  return mapped;
1981
2246
  }
@@ -1990,7 +2255,9 @@ var utils = {
1990
2255
  decode: decode,
1991
2256
  encode: encode,
1992
2257
  isBuffer: isBuffer,
2258
+ isOverflow: isOverflow,
1993
2259
  isRegExp: isRegExp,
2260
+ markOverflow: markOverflow,
1994
2261
  maybeMap: maybeMap,
1995
2262
  merge: merge
1996
2263
  };
@@ -2026,11 +2293,13 @@ var defaults$2 = {
2026
2293
  arrayFormat: 'indices',
2027
2294
  charset: 'utf-8',
2028
2295
  charsetSentinel: false,
2296
+ commaRoundTrip: false,
2029
2297
  delimiter: '&',
2030
2298
  encode: true,
2031
2299
  encodeDotInKeys: false,
2032
2300
  encoder: utils.encode,
2033
2301
  encodeValuesOnly: false,
2302
+ filter: void undefined,
2034
2303
  format: defaultFormat,
2035
2304
  formatter: formats.formatters[defaultFormat],
2036
2305
  // deprecated
@@ -2142,7 +2411,7 @@ var stringify = function stringify(
2142
2411
  objKeys = sort ? keys.sort(sort) : keys;
2143
2412
  }
2144
2413
 
2145
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
2414
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
2146
2415
 
2147
2416
  var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
2148
2417
 
@@ -2152,13 +2421,15 @@ var stringify = function stringify(
2152
2421
 
2153
2422
  for (var j = 0; j < objKeys.length; ++j) {
2154
2423
  var key = objKeys[j];
2155
- var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
2424
+ var value = typeof key === 'object' && key && typeof key.value !== 'undefined'
2425
+ ? key.value
2426
+ : obj[key];
2156
2427
 
2157
2428
  if (skipNulls && value === null) {
2158
2429
  continue;
2159
2430
  }
2160
2431
 
2161
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
2432
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
2162
2433
  var keyPrefix = isArray$1(obj)
2163
2434
  ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
2164
2435
  : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
@@ -2249,7 +2520,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
2249
2520
  arrayFormat: arrayFormat,
2250
2521
  charset: charset,
2251
2522
  charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$2.charsetSentinel,
2252
- commaRoundTrip: opts.commaRoundTrip,
2523
+ commaRoundTrip: !!opts.commaRoundTrip,
2253
2524
  delimiter: typeof opts.delimiter === 'undefined' ? defaults$2.delimiter : opts.delimiter,
2254
2525
  encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$2.encode,
2255
2526
  encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults$2.encodeDotInKeys,
@@ -2300,12 +2571,13 @@ var stringify_1 = function (object, opts) {
2300
2571
  var sideChannel$1 = sideChannel();
2301
2572
  for (var i = 0; i < objKeys.length; ++i) {
2302
2573
  var key = objKeys[i];
2574
+ var value = obj[key];
2303
2575
 
2304
- if (options.skipNulls && obj[key] === null) {
2576
+ if (options.skipNulls && value === null) {
2305
2577
  continue;
2306
2578
  }
2307
2579
  pushToArray(keys, stringify(
2308
- obj[key],
2580
+ value,
2309
2581
  key,
2310
2582
  generateArrayPrefix,
2311
2583
  commaRoundTrip,
@@ -2364,7 +2636,10 @@ var defaults$1 = {
2364
2636
  parameterLimit: 1000,
2365
2637
  parseArrays: true,
2366
2638
  plainObjects: false,
2367
- strictNullHandling: false
2639
+ strictDepth: false,
2640
+ strictMerge: true,
2641
+ strictNullHandling: false,
2642
+ throwOnLimitExceeded: false
2368
2643
  };
2369
2644
 
2370
2645
  var interpretNumericEntities = function (str) {
@@ -2373,11 +2648,15 @@ var interpretNumericEntities = function (str) {
2373
2648
  });
2374
2649
  };
2375
2650
 
2376
- var parseArrayValue = function (val, options) {
2651
+ var parseArrayValue = function (val, options, currentArrayLength) {
2377
2652
  if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
2378
2653
  return val.split(',');
2379
2654
  }
2380
2655
 
2656
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
2657
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
2658
+ }
2659
+
2381
2660
  return val;
2382
2661
  };
2383
2662
 
@@ -2395,8 +2674,18 @@ var parseValues = function parseQueryStringValues(str, options) {
2395
2674
  var obj = { __proto__: null };
2396
2675
 
2397
2676
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
2398
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
2399
- var parts = cleanStr.split(options.delimiter, limit);
2677
+ cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
2678
+
2679
+ var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit;
2680
+ var parts = cleanStr.split(
2681
+ options.delimiter,
2682
+ options.throwOnLimitExceeded ? limit + 1 : limit
2683
+ );
2684
+
2685
+ if (options.throwOnLimitExceeded && parts.length > limit) {
2686
+ throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');
2687
+ }
2688
+
2400
2689
  var skipIndex = -1; // Keep track of where the utf8 sentinel was found
2401
2690
  var i;
2402
2691
 
@@ -2424,33 +2713,55 @@ var parseValues = function parseQueryStringValues(str, options) {
2424
2713
  var bracketEqualsPos = part.indexOf(']=');
2425
2714
  var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
2426
2715
 
2427
- var key, val;
2716
+ var key;
2717
+ var val;
2428
2718
  if (pos === -1) {
2429
2719
  key = options.decoder(part, defaults$1.decoder, charset, 'key');
2430
2720
  val = options.strictNullHandling ? null : '';
2431
2721
  } else {
2432
2722
  key = options.decoder(part.slice(0, pos), defaults$1.decoder, charset, 'key');
2433
- val = utils.maybeMap(
2434
- parseArrayValue(part.slice(pos + 1), options),
2435
- function (encodedVal) {
2436
- return options.decoder(encodedVal, defaults$1.decoder, charset, 'value');
2437
- }
2438
- );
2723
+
2724
+ if (key !== null) {
2725
+ val = utils.maybeMap(
2726
+ parseArrayValue(
2727
+ part.slice(pos + 1),
2728
+ options,
2729
+ isArray(obj[key]) ? obj[key].length : 0
2730
+ ),
2731
+ function (encodedVal) {
2732
+ return options.decoder(encodedVal, defaults$1.decoder, charset, 'value');
2733
+ }
2734
+ );
2735
+ }
2439
2736
  }
2440
2737
 
2441
2738
  if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
2442
- val = interpretNumericEntities(val);
2739
+ val = interpretNumericEntities(String(val));
2443
2740
  }
2444
2741
 
2445
2742
  if (part.indexOf('[]=') > -1) {
2446
2743
  val = isArray(val) ? [val] : val;
2447
2744
  }
2448
2745
 
2449
- var existing = has.call(obj, key);
2450
- if (existing && options.duplicates === 'combine') {
2451
- obj[key] = utils.combine(obj[key], val);
2452
- } else if (!existing || options.duplicates === 'last') {
2453
- obj[key] = val;
2746
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) {
2747
+ if (options.throwOnLimitExceeded) {
2748
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
2749
+ }
2750
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
2751
+ }
2752
+
2753
+ if (key !== null) {
2754
+ var existing = has.call(obj, key);
2755
+ if (existing && (options.duplicates === 'combine' || part.indexOf('[]=') > -1)) {
2756
+ obj[key] = utils.combine(
2757
+ obj[key],
2758
+ val,
2759
+ options.arrayLimit,
2760
+ options.plainObjects
2761
+ );
2762
+ } else if (!existing || options.duplicates === 'last') {
2763
+ obj[key] = val;
2764
+ }
2454
2765
  }
2455
2766
  }
2456
2767
 
@@ -2458,30 +2769,52 @@ var parseValues = function parseQueryStringValues(str, options) {
2458
2769
  };
2459
2770
 
2460
2771
  var parseObject = function (chain, val, options, valuesParsed) {
2461
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
2772
+ var currentArrayLength = 0;
2773
+ if (chain.length > 0 && chain[chain.length - 1] === '[]') {
2774
+ var parentKey = chain.slice(0, -1).join('');
2775
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
2776
+ }
2777
+
2778
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
2462
2779
 
2463
2780
  for (var i = chain.length - 1; i >= 0; --i) {
2464
2781
  var obj;
2465
2782
  var root = chain[i];
2466
2783
 
2467
2784
  if (root === '[]' && options.parseArrays) {
2468
- obj = options.allowEmptyArrays && leaf === '' ? [] : [].concat(leaf);
2785
+ if (utils.isOverflow(leaf)) {
2786
+ // leaf is already an overflow object, preserve it
2787
+ obj = leaf;
2788
+ } else {
2789
+ obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
2790
+ ? []
2791
+ : utils.combine(
2792
+ [],
2793
+ leaf,
2794
+ options.arrayLimit,
2795
+ options.plainObjects
2796
+ );
2797
+ }
2469
2798
  } else {
2470
- obj = options.plainObjects ? Object.create(null) : {};
2799
+ obj = options.plainObjects ? { __proto__: null } : {};
2471
2800
  var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
2472
2801
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
2473
2802
  var index = parseInt(decodedRoot, 10);
2474
- if (!options.parseArrays && decodedRoot === '') {
2475
- obj = { 0: leaf };
2476
- } else if (
2477
- !isNaN(index)
2803
+ var isValidArrayIndex = !isNaN(index)
2478
2804
  && root !== decodedRoot
2479
2805
  && String(index) === decodedRoot
2480
2806
  && index >= 0
2481
- && (options.parseArrays && index <= options.arrayLimit)
2482
- ) {
2807
+ && options.parseArrays;
2808
+ if (!options.parseArrays && decodedRoot === '') {
2809
+ obj = { 0: leaf };
2810
+ } else if (isValidArrayIndex && index < options.arrayLimit) {
2483
2811
  obj = [];
2484
2812
  obj[index] = leaf;
2813
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) {
2814
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
2815
+ } else if (isValidArrayIndex) {
2816
+ obj[index] = leaf;
2817
+ utils.markOverflow(obj, index);
2485
2818
  } else if (decodedRoot !== '__proto__') {
2486
2819
  obj[decodedRoot] = leaf;
2487
2820
  }
@@ -2493,55 +2826,71 @@ var parseObject = function (chain, val, options, valuesParsed) {
2493
2826
  return leaf;
2494
2827
  };
2495
2828
 
2496
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
2497
- if (!givenKey) {
2498
- return;
2499
- }
2500
-
2501
- // Transform dot notation to bracket notation
2829
+ var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
2502
2830
  var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
2503
2831
 
2504
- // The regex chunks
2832
+ if (options.depth <= 0) {
2833
+ if (!options.plainObjects && has.call(Object.prototype, key)) {
2834
+ if (!options.allowPrototypes) {
2835
+ return;
2836
+ }
2837
+ }
2838
+
2839
+ return [key];
2840
+ }
2505
2841
 
2506
2842
  var brackets = /(\[[^[\]]*])/;
2507
2843
  var child = /(\[[^[\]]*])/g;
2508
2844
 
2509
- // Get the parent
2510
-
2511
- var segment = options.depth > 0 && brackets.exec(key);
2845
+ var segment = brackets.exec(key);
2512
2846
  var parent = segment ? key.slice(0, segment.index) : key;
2513
2847
 
2514
- // Stash the parent if it exists
2515
-
2516
2848
  var keys = [];
2849
+
2517
2850
  if (parent) {
2518
- // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
2519
2851
  if (!options.plainObjects && has.call(Object.prototype, parent)) {
2520
2852
  if (!options.allowPrototypes) {
2521
2853
  return;
2522
2854
  }
2523
2855
  }
2524
2856
 
2525
- keys.push(parent);
2857
+ keys[keys.length] = parent;
2526
2858
  }
2527
2859
 
2528
- // Loop through children appending to the array until we hit depth
2529
-
2530
2860
  var i = 0;
2531
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
2861
+ while ((segment = child.exec(key)) !== null && i < options.depth) {
2532
2862
  i += 1;
2533
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
2863
+
2864
+ var segmentContent = segment[1].slice(1, -1);
2865
+ if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
2534
2866
  if (!options.allowPrototypes) {
2535
2867
  return;
2536
2868
  }
2537
2869
  }
2538
- keys.push(segment[1]);
2539
- }
2540
2870
 
2541
- // If there's a remainder, just add whatever is left
2871
+ keys[keys.length] = segment[1];
2872
+ }
2542
2873
 
2543
2874
  if (segment) {
2544
- keys.push('[' + key.slice(segment.index) + ']');
2875
+ if (options.strictDepth === true) {
2876
+ throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
2877
+ }
2878
+
2879
+ keys[keys.length] = '[' + key.slice(segment.index) + ']';
2880
+ }
2881
+
2882
+ return keys;
2883
+ };
2884
+
2885
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
2886
+ if (!givenKey) {
2887
+ return;
2888
+ }
2889
+
2890
+ var keys = splitKeyIntoSegments(givenKey, options);
2891
+
2892
+ if (!keys) {
2893
+ return;
2545
2894
  }
2546
2895
 
2547
2896
  return parseObject(keys, val, options, valuesParsed);
@@ -2567,6 +2916,11 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
2567
2916
  if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
2568
2917
  throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
2569
2918
  }
2919
+
2920
+ if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') {
2921
+ throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
2922
+ }
2923
+
2570
2924
  var charset = typeof opts.charset === 'undefined' ? defaults$1.charset : opts.charset;
2571
2925
 
2572
2926
  var duplicates = typeof opts.duplicates === 'undefined' ? defaults$1.duplicates : opts.duplicates;
@@ -2597,7 +2951,10 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
2597
2951
  parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults$1.parameterLimit,
2598
2952
  parseArrays: opts.parseArrays !== false,
2599
2953
  plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults$1.plainObjects,
2600
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
2954
+ strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults$1.strictDepth,
2955
+ strictMerge: typeof opts.strictMerge === 'boolean' ? !!opts.strictMerge : defaults$1.strictMerge,
2956
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling,
2957
+ throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
2601
2958
  };
2602
2959
  };
2603
2960
 
@@ -2605,11 +2962,11 @@ var parse = function (str, opts) {
2605
2962
  var options = normalizeParseOptions(opts);
2606
2963
 
2607
2964
  if (str === '' || str === null || typeof str === 'undefined') {
2608
- return options.plainObjects ? Object.create(null) : {};
2965
+ return options.plainObjects ? { __proto__: null } : {};
2609
2966
  }
2610
2967
 
2611
2968
  var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
2612
- var obj = options.plainObjects ? Object.create(null) : {};
2969
+ var obj = options.plainObjects ? { __proto__: null } : {};
2613
2970
 
2614
2971
  // Iterate over the keys and setup the new object
2615
2972
 
@@ -2694,7 +3051,7 @@ function debounce$1(func, wait) {
2694
3051
  };
2695
3052
  }
2696
3053
 
2697
- const myModalCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-modal{box-shadow:1px 1px 1px #ccc;background-color:#fff;position:fixed;top:20px;left:50%;transform:translateX(-50%);max-width:1555px;width:90%;z-index:1000;text-align:center;padding:35px 40px;max-height:calc(100vh - 100px);overflow-y:auto;min-height:50vh}@media (max-width: 1024px){.my-modal{padding:40px 20px 20px}}.my-modal::-webkit-scrollbar{display:none}.my-modal .loader{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px}.my-modal__header{display:flex;align-items:center;justify-content:space-between;align-items:flex-end;margin-bottom:16px}@media (max-width: 1024px){.my-modal__header{flex-direction:column;margin-bottom:12px;align-items:center;display:block}}@media (max-width: 768px){.my-modal__header .image-wrapper{margin-bottom:12px}}.my-modal__header .image-wrapper>img{max-width:300px;object-fit:cover}@media (max-width: 768px){.my-modal__header .image-wrapper>img{max-width:200px}}.my-modal__header .search-wrapper{display:flex;gap:55px;align-items:flex-start}@media (max-width: 1024px){.my-modal__header .search-wrapper{justify-content:center;width:92%}}@media (max-width: 1024px){.my-modal__header .search-wrapper .sc-my-search-h{width:100%;margin:0 auto}}.my-modal__header .search-wrapper .my-modal__close{background:transparent;border:none;margin-top:-20px}.my-modal__header .search-wrapper .my-modal__close>img{width:45px;height:45px;object-fit:cover;cursor:pointer}@media (max-width: 1024px){.my-modal__header .search-wrapper .my-modal__close{margin-top:0px;position:absolute;right:10px;top:10px}}.my-modal__see-more{font-size:16px;display:flex;justify-content:center;align-items:center;font-weight:300;color:#575757;margin-top:12px;margin-bottom:0px}@media (max-width: 1024px){.my-modal__see-more{font-size:18px}}.my-modal__see-more img{width:45px;height:45px}@media (max-width: 1024px){.my-modal__see-more img{display:none}}.my-modal__wrapper{display:flex;flex-direction:column;position:relative}.my-modal__wrapper .boxes{display:flex;flex-direction:column;flex-wrap:wrap}.my-modal__wrapper .boxes__list{display:flex;flex-wrap:wrap;gap:5px 5px}@media (max-width: 1024px){.my-modal__wrapper .boxes__list{justify-content:center}}.my-modal__wrapper .boxes__box-content{width:100%;margin-bottom:5px;height:500px;text-align:left;display:flex;flex-direction:row;justify-content:space-between;position:relative}.my-modal__wrapper .boxes__box-content .closebtn{position:absolute;right:10px;top:10px;width:53px;height:53px;cursor:pointer;object-fit:cover;z-index:9999}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content{flex-direction:column-reverse;height:auto}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content{margin:0 auto}}.my-modal__wrapper .boxes__box-content__info{width:40%;padding:50px 40px;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info{width:100%;padding:15px;min-height:100px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info{min-height:auto}}.my-modal__wrapper .boxes__box-content__info h2{font-size:35px;font-weight:normal;margin-bottom:30px;color:#232323}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info h2{font-size:16px;text-align:center;margin-bottom:15px;margin-top:5px}}.my-modal__wrapper .boxes__box-content__info h4{margin-top:0px;margin-bottom:15px;font-size:16px;color:#4c4c4c}.my-modal__wrapper .boxes__box-content__info .divider{border:1px solid #4c4c4c;opacity:0.2;margin-bottom:20px}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info .divider{margin:10px 0px;display:none}}.my-modal__wrapper .boxes__box-content__info__value{display:flex;flex-direction:row;justify-content:flex-start}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value{justify-content:flex-start}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value{flex-direction:column}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-image{margin:0 auto;margin-bottom:10px}}.my-modal__wrapper .boxes__box-content__info__value-image img{width:114px;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-image img{width:75px}}.my-modal__wrapper .boxes__box-content__info__value-product{color:#232323;margin-left:10px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:26px;margin:0;margin-right:10px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:16px}}.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:20px;margin-top:0px;margin-bottom:0px}.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:20px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:0}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:10px}}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product>div{display:flex;justify-content:flex-start;align-items:center}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product>div{flex-direction:column}}.my-modal__wrapper .boxes__box-content__slider{width:60%;min-width:60%;max-width:60%;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider{width:100%;display:block;min-width:100%;max-width:100%}}.my-modal__wrapper .boxes__box-content__slider .color-big-image{width:100%;height:100%;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider .color-big-image{height:300px}}.my-modal__wrapper .boxes__box-content__white *{color:#fff}.my-modal__wrapper .boxes__box-content__white h2{color:#fff}.my-modal__wrapper .pagination{margin:10px 0px;font-size:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.my-modal__wrapper .pagination>span{margin:0 3px;cursor:pointer;min-width:20px;padding:5px;box-shadow:1px 1px 1px #ccc}.my-modal__wrapper .pagination .current{background-color:wheat}.my-modal .categories{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #dfdfdf;display:flex;flex-direction:column;align-items:flex-start}.my-modal .categories__container{display:flex;flex-wrap:nowrap;gap:5px 5px;overflow-x:auto;width:100%}@media (max-width: 1024px){.my-modal .categories__container{padding-bottom:5px}}.my-modal .categories__slide-information{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.my-modal .categories__slide-information span{color:#4c4c4c;font-size:16px;font-weight:normal}.my-modal .categories__slide-information span:first-of-type{margin-left:7px}.my-modal .categories__slide-information span:last-of-type{margin-right:7px}.my-modal .button,.my-modal a{background-color:#fff;font-size:16px;box-shadow:0px 10px 20px rgba(0, 0, 0, 0.1);border-radius:22px;padding:10px 35px;color:#232323;text-decoration:none;display:block;text-align:center;transition:all 0.7s ease-in-out;border:none;cursor:pointer}.my-modal .button:hover,.my-modal a:hover{color:#fff;background-color:#232323}.my-modal .button.brown,.my-modal a.brown{background-color:#3c2114;color:#fff}.my-modal .button.brown:hover,.my-modal a.brown:hover{color:#fff;background-color:#232323}.my-modal .button.inverse,.my-modal a.inverse{background-color:#232323;color:#fff}.my-modal .button.inverse:hover,.my-modal a.inverse:hover{color:#232323;background-color:#fff}@media (max-width: 1024px){.my-modal .button,.my-modal a{max-width:150px;font-size:13px;padding:12px 25px}}@media (max-width: 768px){.my-modal .button,.my-modal a{margin:0 auto}}.my-modal>.button{margin:10px auto}";
3054
+ const myModalCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-modal{box-shadow:1px 1px 1px #ccc;background-color:#fff;position:fixed;top:20px;left:50%;transform:translateX(-50%);max-width:1555px;width:90%;z-index:1000;text-align:center;padding:35px 40px;max-height:calc(100vh - 100px);overflow-y:auto;min-height:50vh}@media (max-width: 1024px){.my-modal{padding:40px 20px 20px}}.my-modal::-webkit-scrollbar{display:none}.my-modal .loader{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px}.my-modal__header{display:flex;align-items:center;justify-content:space-between;align-items:flex-end;margin-bottom:16px}@media (max-width: 1024px){.my-modal__header{flex-direction:column;margin-bottom:12px;align-items:center;display:block}}@media (max-width: 768px){.my-modal__header .image-wrapper{margin-bottom:12px}}.my-modal__header .image-wrapper>img{max-width:300px;object-fit:cover}@media (max-width: 768px){.my-modal__header .image-wrapper>img{max-width:200px}}.my-modal__header .search-wrapper{display:flex;gap:55px;align-items:flex-start}@media (max-width: 1024px){.my-modal__header .search-wrapper{justify-content:center;width:92%}}@media (max-width: 1024px){.my-modal__header .search-wrapper .sc-my-search-h{width:100%;margin:0 auto}}.my-modal__header .search-wrapper .my-modal__close{background:transparent;border:none;margin-top:-20px}.my-modal__header .search-wrapper .my-modal__close>img{width:45px;height:45px;object-fit:cover;cursor:pointer}@media (max-width: 1024px){.my-modal__header .search-wrapper .my-modal__close{margin-top:0px;position:absolute;right:10px;top:10px}}.my-modal__see-more{font-size:16px;display:flex;justify-content:center;align-items:center;font-weight:300;color:#575757;margin-top:12px;margin-bottom:0px}@media (max-width: 1024px){.my-modal__see-more{font-size:18px}}.my-modal__see-more img{width:45px;height:45px}@media (max-width: 1024px){.my-modal__see-more img{display:none}}.my-modal__wrapper{display:flex;flex-direction:column;position:relative}.my-modal__wrapper .boxes{display:flex;flex-direction:column;flex-wrap:wrap}.my-modal__wrapper .boxes__list{display:flex;flex-wrap:wrap;gap:5px 5px}@media (max-width: 1024px){.my-modal__wrapper .boxes__list{justify-content:center}}.my-modal__wrapper .boxes__box-content{width:100%;margin-bottom:5px;height:500px;text-align:left;display:flex;flex-direction:row;justify-content:space-between;position:relative}.my-modal__wrapper .boxes__box-content .closebtn{position:absolute;right:10px;top:10px;width:53px;height:53px;cursor:pointer;object-fit:cover;z-index:9999}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content{flex-direction:column-reverse;height:auto}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content{margin:0 auto}}.my-modal__wrapper .boxes__box-content__info{width:40%;padding:50px 40px;position:relative;display:flex;flex-direction:column;justify-content:space-between}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info{width:100%;padding:15px;min-height:100px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info{min-height:auto}}.my-modal__wrapper .boxes__box-content__info__header{display:flex;flex-direction:column;align-items:flex-start}.my-modal__wrapper .boxes__box-content__info h2{font-size:35px;font-weight:normal;margin-bottom:30px;color:#232323}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info h2{font-size:16px;text-align:center;margin-bottom:15px;margin-top:5px}}.my-modal__wrapper .boxes__box-content__info h4{margin-top:0px;margin-bottom:15px;font-size:16px;color:#4c4c4c}.my-modal__wrapper .boxes__box-content__info__value{display:flex;flex-direction:column;align-items:flex-start;gap:20px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value{justify-content:flex-start;margin-top:30px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value{flex-direction:column}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-image{margin:0 auto;margin-bottom:10px}}.my-modal__wrapper .boxes__box-content__info__value-image img{width:114px;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-image img{width:75px}}.my-modal__wrapper .boxes__box-content__info__value-product{color:#232323;margin-left:10px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:26px;margin:0;margin-right:10px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:16px}}.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:20px;margin-top:0px;margin-bottom:0px}.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:20px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:0}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:10px}}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product>div{display:flex;justify-content:flex-start;align-items:center}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product>div{flex-direction:column}}.my-modal__wrapper .boxes__box-content__info__tester{display:flex;flex-direction:column;gap:15px;width:100%}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__tester{text-align:center}}.my-modal__wrapper .boxes__box-content__info__tester .tester-text h2{margin:0 0 10px;font-size:18px;font-weight:700}.my-modal__wrapper .boxes__box-content__info__tester .tester-text p{margin:0;font-size:14px}.my-modal__wrapper .boxes__box-content__info__tester .tester-buy{display:flex;align-items:center;gap:15px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__tester .tester-buy{flex-direction:column}.my-modal__wrapper .boxes__box-content__info__tester .tester-buy button{margin:0;max-width:100%}}.my-modal__wrapper .boxes__box-content__info__tester .price{font-size:20px;font-weight:600}.my-modal__wrapper .boxes__box-content__slider{width:60%;min-width:60%;max-width:60%;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider{width:100%;display:block;min-width:100%;max-width:100%}}.my-modal__wrapper .boxes__box-content__slider .color-big-image{width:100%;height:100%;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider .color-big-image{height:300px}}.my-modal__wrapper .boxes__box-content__white .tester-text,.my-modal__wrapper .boxes__box-content__white .tester-buy{color:#fff}.my-modal__wrapper .boxes__box-content__white h2{color:#fff}.my-modal__wrapper .pagination{margin:10px 0px;font-size:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.my-modal__wrapper .pagination>span{margin:0 3px;cursor:pointer;min-width:20px;padding:5px;box-shadow:1px 1px 1px #ccc}.my-modal__wrapper .pagination .current{background-color:wheat}.my-modal .categories{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #dfdfdf;display:flex;flex-direction:column;align-items:flex-start}.my-modal .categories__container{display:flex;flex-wrap:nowrap;gap:5px 5px;overflow-x:auto;width:100%}@media (max-width: 1024px){.my-modal .categories__container{padding-bottom:5px}}.my-modal .categories__slide-information{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.my-modal .categories__slide-information span{color:#4c4c4c;font-size:16px;font-weight:normal}.my-modal .categories__slide-information span:first-of-type{margin-left:7px}.my-modal .categories__slide-information span:last-of-type{margin-right:7px}.button,a{background-color:#fff;font-size:16px;box-shadow:0px 10px 20px rgba(0, 0, 0, 0.1);border-radius:22px;padding:10px 35px;color:#232323;text-decoration:none;display:block;text-align:center;transition:all 0.7s ease-in-out;border:none;cursor:pointer;display:flex;align-items:center;gap:5px}.button .shape-icon,a .shape-icon{display:inline-flex}.button .shape-icon svg,a .shape-icon svg{display:block}.button .shape-icon path,.button .shape-icon .shape-icon__path,a .shape-icon path,a .shape-icon .shape-icon__path{fill:currentColor;transition:fill 0.7s ease-in-out}.button.fit,a.fit{padding:10px 15px}.button:hover,a:hover{color:#fff;background-color:#232323}.button.brown,a.brown{background-color:#3c2114;color:#fff}.button.brown:hover,a.brown:hover{color:#fff;background-color:#232323}.button.inverse,a.inverse{background-color:#232323;color:#fff}.button.inverse:hover,a.inverse:hover{color:#232323;background-color:#fff}.button.inverse svg path,a.inverse svg path{fill:#fff}.button:disabled,a:disabled{cursor:not-allowed;background-color:white;opacity:0.5}.button:disabled.brown,a:disabled.brown{background-color:black;color:white;opacity:0.5}.button:disabled.inverse,a:disabled.inverse{background-color:black;color:white;opacity:0.5}.button:disabled:hover,a:disabled:hover{background-color:inherit;color:inherit;opacity:0.5}@media (max-width: 1024px){.button,a{max-width:150px;font-size:13px;padding:12px 25px}}@media (max-width: 768px){.button,a{margin:0 auto}}>.button{margin:10px auto}.divider{border:1px solid #4c4c4c;opacity:0.2;margin-bottom:20px}@media (max-width: 768px){.divider{margin:10px 0px;display:none}}";
2698
3055
 
2699
3056
  const MyModal = class {
2700
3057
  constructor(hostRef) {
@@ -2875,6 +3232,8 @@ const MyModal = class {
2875
3232
  this.shop = undefined;
2876
3233
  this.product = undefined;
2877
3234
  this.baselink = undefined;
3235
+ this.available_testers = undefined;
3236
+ this.price = undefined;
2878
3237
  this.selectedcolor = undefined;
2879
3238
  this.closeImage = 'close.png';
2880
3239
  this.arrowDown = 'arrow_down.png';
@@ -2992,7 +3351,7 @@ const MyModal = class {
2992
3351
  render() {
2993
3352
  var _a, _b;
2994
3353
  return (h("div", { class: `my-modal`, onMouseEnter: () => this.handleReadyToClose(false), onMouseLeave: () => this.handleReadyToClose(true) }, this.preloader && (h("div", { class: 'loader' }, h("my-loader", null))), !this.preloader && this.data && (h("div", { class: `my-modal__header` }, h("div", { class: "image-wrapper" }, h("img", { src: `${APIURL}/assets/${(_a = this.data) === null || _a === void 0 ? void 0 : _a.modalLogo}?access_token=${accessToken}`, alt: "modal-logo" }), !this.preloader && this.data && (h("p", { class: "my-modal__see-more" }, (_b = this.data) === null || _b === void 0 ? void 0 : _b.modalDescription))), h("div", { class: "search-wrapper" }, !this.preloader && h("my-search", { shopname: this.shop, productname: this.data.name, isMobile: this.isMobile }), !this.preloader && (h("button", { class: "my-modal__close", onClick: () => this.closeModalHandler() }, h("img", { src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" })))))), h("div", { class: 'my-modal__wrapper' }, this.loading && h("my-loader", null), !this.loading && this.colors && (h("div", { class: 'container_boxes' }, this.colors.list.length > 0 ? (this.chunks(this.colors.list).map((color, index) => {
2995
- var _a;
3354
+ var _a, _b;
2996
3355
  return (h("div", { key: index, class: "boxes" }, h("div", { class: "boxes__list" }, color.map((c) => {
2997
3356
  var _a;
2998
3357
  return (h("my-colorbox", { key: c.id, onClick: () => {
@@ -3012,7 +3371,7 @@ const MyModal = class {
3012
3371
  isImageInsteadHex: c.imageInsteadHex,
3013
3372
  bigImage: c.bigImage,
3014
3373
  } }));
3015
- })), ((_a = this.currentColor) === null || _a === void 0 ? void 0 : _a.id) && index === this.currentIndex && (h("my-colorinfo", { currentColor: this.currentColor, shop: this.shop, product: this.product, data: this.data, isMobile: this.isMobile, infoBoxWidth: this.infoBoxWidth, baselink: this.baselink }))));
3374
+ })), ((_a = this.currentColor) === null || _a === void 0 ? void 0 : _a.id) && index === this.currentIndex && (h("my-colorinfo", { currentColor: this.currentColor, shop: this.shop, product: this.product, data: this.data, isMobile: this.isMobile, infoBoxWidth: this.infoBoxWidth, baselink: this.baselink, availableTesters: (_b = this.available_testers) === null || _b === void 0 ? void 0 : _b.find((t) => { var _a, _b, _c; return ((_a = t.color_name) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === ((_c = (_b = this.currentColor) === null || _b === void 0 ? void 0 : _b.name) === null || _c === void 0 ? void 0 : _c.trim().toLowerCase()); }), price: this.price }))));
3016
3375
  })) : (h("p", null, "Brak wynik\u00F3w")), this.colors.pagination.filter_count > limit && (h("div", { class: 'pagination' }, Array.from({ length: Math.ceil(this.colors.pagination.filter_count / limit) }).map((_, i) => (h("span", { class: i + 1 === this.page ? 'current' : '', onClick: e => {
3017
3376
  e.preventDefault();
3018
3377
  this.onPage(i + 1);
@@ -3027,7 +3386,7 @@ const MyModal = class {
3027
3386
  };
3028
3387
  MyModal.style = myModalCss;
3029
3388
 
3030
- const mySearchCss = ".pallete-wrapper.sc-my-search *.sc-my-search{font-family:\"Galatea\", sans-serif}.search.sc-my-search{position:relative;width:400px}@media (max-width: 768px){.search.sc-my-search{width:100%}}.search.sc-my-search input.sc-my-search{font-size:16px;padding:19px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%;color:#4c4c4c}.search.sc-my-search button.sc-my-search{position:absolute;border:none;background-color:transparent;right:10px;top:0;width:50px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}";
3389
+ const mySearchCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper.sc-my-search *.sc-my-search{font-family:\"Galatea\", sans-serif}.search.sc-my-search{position:relative;width:400px}@media (max-width: 768px){.search.sc-my-search{width:100%}}.search.sc-my-search input.sc-my-search{font-size:16px;padding:19px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%;color:#4c4c4c}.search.sc-my-search button.sc-my-search{position:absolute;border:none;background-color:transparent;right:10px;top:0;width:50px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}";
3031
3390
 
3032
3391
  function debounce(func, wait) {
3033
3392
  let timeout;
@@ -8309,7 +8668,7 @@ function Controller({
8309
8668
  });
8310
8669
  }
8311
8670
 
8312
- const mySliderCss = "@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:10px;left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:50%;background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-next+.swiper-slide,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}.slider-wrapper{width:100%;position:relative;height:100%;display:flex;max-width:1100px;flex-direction:row;align-items:center;justify-content:space-between}@media (max-width: 1024px){.slider-wrapper{height:220px}}.slider-wrapper .swiper{margin:0}.slider-wrapper .swiper-slide img{display:block;width:100%;height:100%;object-fit:cover}.slider-wrapper .mySwiper2{height:100%;width:80%;position:relative}@media (max-width: 1024px){.slider-wrapper .mySwiper2{width:100%}}.slider-wrapper .mySwiper2 .swiper-button-prev,.slider-wrapper .mySwiper2 .swiper-button-next{z-index:20;position:absolute;bottom:15px;width:23px;top:inherit;height:23px;background-color:#fff}.slider-wrapper .mySwiper2 .swiper-button-prev::after,.slider-wrapper .mySwiper2 .swiper-button-next::after{font-size:11px;color:#232323;font-weight:bold}.slider-wrapper .mySwiper2 .swiper-button-prev{right:40px;left:initial}.slider-wrapper .mySwiper{width:20%;height:100%;box-sizing:border-box}@media (max-width: 1024px){.slider-wrapper .mySwiper{display:none}}.slider-wrapper .mySwiper .swiper-slide{height:100%;cursor:pointer}.slider-wrapper .mySwiper .swiper-slide-thumb-active{opacity:1}";
8671
+ const mySliderCss = "@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:10px;left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:50%;background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-next+.swiper-slide,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}.slider-wrapper{width:100%;position:relative;height:100%;display:flex;max-width:1100px;flex-direction:row;align-items:center;justify-content:space-between}@media (max-width: 1024px){.slider-wrapper{height:220px}}.slider-wrapper .swiper{margin:0}.slider-wrapper .swiper-slide img{display:block;width:100%;height:100%;object-fit:cover}.slider-wrapper .mySwiper2{height:100%;width:100%;position:relative}@media (max-width: 1024px){.slider-wrapper .mySwiper2{width:100%}}.slider-wrapper .mySwiper2 .swiper-button-prev,.slider-wrapper .mySwiper2 .swiper-button-next{z-index:20;position:absolute;bottom:15px;width:23px;top:inherit;height:23px;background-color:#fff}.slider-wrapper .mySwiper2 .swiper-button-prev::after,.slider-wrapper .mySwiper2 .swiper-button-next::after{font-size:11px;color:#232323;font-weight:bold}.slider-wrapper .mySwiper2 .swiper-button-next{right:45%}.slider-wrapper .mySwiper2 .swiper-button-prev{left:45%}.slider-wrapper .mySwiper{width:20%;height:100%;box-sizing:border-box}@media (max-width: 1024px){.slider-wrapper .mySwiper{display:none}}.slider-wrapper .mySwiper .swiper-slide{height:100%;cursor:pointer}.slider-wrapper .mySwiper .swiper-slide-thumb-active{opacity:1}";
8313
8672
 
8314
8673
  const JcSwiper = class {
8315
8674
  constructor(hostRef) {
@@ -8344,11 +8703,16 @@ const JcSwiper = class {
8344
8703
  nextEl: '.swiper-button-next',
8345
8704
  prevEl: '.swiper-button-prev',
8346
8705
  },
8706
+ // loop: true,
8707
+ // loopedSlides: 3,
8708
+ slideToClickedSlide: true,
8347
8709
  loop: true,
8348
- loopedSlides: 3,
8710
+ freeMode: true,
8711
+ slidesPerView: 1,
8349
8712
  });
8350
- this.swiper2.controller.control = this.thumbs;
8351
- this.thumbs.controller.control = this.swiper2;
8713
+ // this.swiper2.controller.control = this.thumbs;
8714
+ this.swiper2.controller.control = this.swiper2;
8715
+ // this.thumbs.controller.control = this.swiper2;
8352
8716
  }
8353
8717
  componentDidLoad() {
8354
8718
  this.initSwiper();
@@ -8360,9 +8724,7 @@ const JcSwiper = class {
8360
8724
  render() {
8361
8725
  return (h("div", { class: "slider-wrapper" }, h("div", { class: "swiper mySwiper2" }, h("div", { class: "swiper-wrapper" }, this.slides &&
8362
8726
  this.slides.length > 0 &&
8363
- this.slides.map((slide) => (h("div", { key: slide.id, class: "swiper-slide" }, h("img", { src: `${APIURL}/assets/${slide.directus_files_id}?access_token=${accessToken}`, alt: "room_image" }))))), this.slides && this.slides.length >= 2 && (h("div", null, h("div", { onClick: this.colorInteraction, class: "swiper-button-next" }), h("div", { onClick: this.colorInteraction, class: "swiper-button-prev" })))), h("div", { class: "swiper mySwiper" }, h("div", { class: "swiper-wrapper" }, this.slides &&
8364
- this.slides.length > 0 &&
8365
- this.slides.map((slide) => (h("div", { key: slide.id, class: "swiper-slide" }, h("img", { src: `${APIURL}/assets/${slide.directus_files_id}?access_token=${accessToken}`, alt: "room_image" }))))))));
8727
+ this.slides.map((slide) => (h("div", { key: slide.id, class: "swiper-slide" }, h("img", { src: `${APIURL}/assets/${slide.directus_files_id}?access_token=${accessToken}`, alt: "room_image" }))))), this.slides && this.slides.length >= 2 && (h("div", null, h("div", { onClick: this.colorInteraction, class: "swiper-button-next" }), h("div", { onClick: this.colorInteraction, class: "swiper-button-prev" }))))));
8366
8728
  }
8367
8729
  get modalEl() { return getElement(this); }
8368
8730
  };