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