@ncino/web-components 8.1.0-preview.9 → 9.0.0-preview.3

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 (207) hide show
  1. package/dist/_slds/icons/svg/symbols-rtl.svg +1 -1
  2. package/dist/_slds/icons/svg/symbols.svg +1 -1
  3. package/dist/_slds/icons/symbols-rtl.svg +1 -1
  4. package/dist/_slds/icons/symbols.svg +1 -1
  5. package/dist/_virtual/index5.js +1 -1
  6. package/dist/_virtual/index6.js +1 -1
  7. package/dist/assets/node_modules/.pnpm/ckeditor5@46.1.1/node_modules/ckeditor5/dist/ckeditor5.css +1 -1
  8. package/dist/components/badge/gator/badge.gator.js +3 -3
  9. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +38 -36
  10. package/dist/components/input/gator/input-phone/input-phone.gator.js +1 -1
  11. package/dist/components/input-rich-text/input-rich-text.slds.js +1 -1
  12. package/dist/components/modal/gator/modal.gator.js +7 -4
  13. package/dist/components/modal/modal.js +1 -1
  14. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  15. package/dist/components/progress-stepper/index.js +1 -0
  16. package/dist/index.gator.js +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/connect/helpers.js +1 -1
  19. package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1 -1
  20. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +3 -3
  21. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +1 -1
  22. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +2 -2
  23. package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +1 -1
  24. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +1 -1
  25. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +19 -19
  26. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +1 -1
  27. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +1 -1
  28. package/dist/node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js +1 -1
  29. package/dist/node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js +1 -1
  30. package/dist/node_modules/.pnpm/axe-core@4.11.0/node_modules/axe-core/axe.js +12 -12
  31. package/dist/node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js +1 -1
  32. package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +2 -0
  33. package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.js +1 -1
  34. package/dist/node_modules/.pnpm/color-convert@3.1.3/node_modules/color-convert/conversions.js +1 -1
  35. package/dist/node_modules/.pnpm/{color-name@2.0.2 → color-name@2.1.0}/node_modules/color-name/index.js +1 -1
  36. package/dist/node_modules/.pnpm/color-parse@2.0.2/node_modules/color-parse/index.js +1 -1
  37. package/dist/node_modules/.pnpm/color-string@2.1.4/node_modules/color-string/index.js +1 -1
  38. package/dist/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js +1 -1
  39. package/dist/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js +1 -1
  40. package/dist/node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js +1 -1
  41. package/dist/node_modules/.pnpm/hast-util-minify-whitespace@1.0.1/node_modules/hast-util-minify-whitespace/lib/index.js +1 -1
  42. package/dist/node_modules/.pnpm/hast-util-to-mdast@10.1.2/node_modules/hast-util-to-mdast/lib/handlers/media.js +1 -1
  43. package/dist/node_modules/.pnpm/hast-util-to-mdast@10.1.2/node_modules/hast-util-to-mdast/lib/handlers/table.js +1 -1
  44. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.30/node_modules/libphonenumber-js/metadata.min.json.js +1 -0
  45. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +1 -0
  46. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +1 -0
  47. package/dist/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.js +1 -1
  48. package/dist/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js +1 -1
  49. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/code.js +2 -0
  50. package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +1 -1
  51. package/dist/node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js +1 -0
  52. package/dist/node_modules/.pnpm/remark-rehype@11.1.2/node_modules/remark-rehype/lib/index.js +1 -1
  53. package/dist/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js +1 -1
  54. package/dist/node_modules/.pnpm/storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/storybook/dist/_browser-chunks/chunk-A242L54C.js +1 -0
  55. package/dist/node_modules/.pnpm/storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/storybook/dist/_browser-chunks/chunk-EZSQOHRI.js +1 -0
  56. package/dist/node_modules/.pnpm/storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/storybook/dist/_browser-chunks/chunk-JP7NCOJX.js +6 -0
  57. package/dist/node_modules/.pnpm/storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/storybook/dist/_browser-chunks/chunk-RP5RXKFU.js +48 -0
  58. package/dist/node_modules/.pnpm/storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/storybook/dist/client-logger/index.js +1 -0
  59. package/dist/node_modules/.pnpm/{storybook@10.0.8_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5_e2791259526ede65857ac65f52302a74 → storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/storybook/dist/core-events/index.js +1 -1
  60. package/dist/node_modules/.pnpm/storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/storybook/dist/instrumenter/index.js +1 -0
  61. package/dist/node_modules/.pnpm/storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/storybook/dist/test/index.js +152 -0
  62. package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +1 -0
  63. package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +1 -0
  64. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/index.js +1 -1
  65. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/client.js +3 -3
  66. package/dist/node_modules/.pnpm/unist-util-find-after@5.0.0/node_modules/unist-util-find-after/lib/index.js +1 -1
  67. package/dist/node_modules/.pnpm/{unist-util-visit-parents@6.0.1 → unist-util-visit-parents@6.0.2}/node_modules/unist-util-visit-parents/lib/index.js +1 -1
  68. package/dist/node_modules/.pnpm/unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.js +1 -1
  69. package/dist/node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js +1 -1
  70. package/dist/node_modules/.pnpm/util@0.12.5/node_modules/util/util.js +3 -3
  71. package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.0_@vitest_browser@3.2.4_@vitest_ui@3_10880c0a9445bba638204ee93166eaed → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.1_@vitest_browser@3.2.4_@vitest_ui@3_6e27007ba0535c26eedf5a22febb1842}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
  72. package/dist/packages/styles/src/gator/tokens/semantic.tokens.css.js +1 -1
  73. package/dist/packages/web-components/src/components/badge/gator/badge.gator.scss.js +1 -1
  74. package/dist/packages/web-components/src/components/chip/gator/chip.gator.scss.js +1 -1
  75. package/dist/packages/web-components/src/components/input/gator/input-date/input-date.gator.scss.js +1 -1
  76. package/dist/packages/web-components/src/components/modal/gator/modal.gator.scss.js +1 -1
  77. package/dist/packages/web-components/src/index.slds.scss.js +1 -1
  78. package/dist/types/components/badge/gator/badge.gator.d.ts +8 -1
  79. package/dist/types/components/input/base/input-base.d.ts +1 -1
  80. package/dist/types/components/input/gator/dropdown/input-dropdown.gator.d.ts +10 -7
  81. package/dist/types/components/modal/modal.d.ts +4 -0
  82. package/dist/types/components/progress-stepper/index.d.ts +1 -0
  83. package/dist/types/index.d.ts +1 -0
  84. package/dist/types/index.gator.d.ts +1 -0
  85. package/dist/utils/vitest-a11y-utils.js +1 -1
  86. package/package.json +18 -18
  87. package/web-types.json +183 -172
  88. package/dist/design-tokens.source.json +0 -1
  89. package/dist/generated/locale-codes.js +0 -1
  90. package/dist/generated/locales/es-419.js +0 -10
  91. package/dist/generated/locales/fr-CA.js +0 -10
  92. package/dist/generated/locales/zh-Hans.js +0 -11
  93. package/dist/node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js +0 -2
  94. package/dist/node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js +0 -1
  95. package/dist/node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js +0 -1
  96. package/dist/node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js +0 -1
  97. package/dist/node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js +0 -1
  98. package/dist/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js +0 -1
  99. package/dist/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js +0 -1
  100. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.26/node_modules/libphonenumber-js/metadata.min.json.js +0 -1
  101. package/dist/node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/index.js +0 -1
  102. package/dist/node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/promise.js +0 -1
  103. package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -2
  104. package/dist/node_modules/.pnpm/possible-typed-array-names@1.0.0/node_modules/possible-typed-array-names/index.js +0 -1
  105. package/dist/node_modules/.pnpm/storybook@10.0.8_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5_e2791259526ede65857ac65f52302a74/node_modules/storybook/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -48
  106. package/dist/node_modules/.pnpm/storybook@10.0.8_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5_e2791259526ede65857ac65f52302a74/node_modules/storybook/dist/_browser-chunks/chunk-MM7DTO55.js +0 -1
  107. package/dist/node_modules/.pnpm/storybook@10.0.8_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5_e2791259526ede65857ac65f52302a74/node_modules/storybook/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -6
  108. package/dist/node_modules/.pnpm/storybook@10.0.8_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5_e2791259526ede65857ac65f52302a74/node_modules/storybook/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -1
  109. package/dist/node_modules/.pnpm/storybook@10.0.8_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5_e2791259526ede65857ac65f52302a74/node_modules/storybook/dist/client-logger/index.js +0 -1
  110. package/dist/node_modules/.pnpm/storybook@10.0.8_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5_e2791259526ede65857ac65f52302a74/node_modules/storybook/dist/instrumenter/index.js +0 -1
  111. package/dist/node_modules/.pnpm/storybook@10.0.8_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5_e2791259526ede65857ac65f52302a74/node_modules/storybook/dist/test/index.js +0 -152
  112. package/dist/node_modules/.pnpm/strip-literal@3.0.0/node_modules/strip-literal/dist/index.js +0 -1
  113. package/dist/node_modules/.pnpm/tinyspy@4.0.3/node_modules/tinyspy/dist/index.js +0 -1
  114. package/dist/types/generated/locale-codes.d.ts +0 -13
  115. package/dist/types/generated/locales/es-419.d.ts +0 -65
  116. package/dist/types/generated/locales/fr-CA.d.ts +0 -65
  117. package/dist/types/generated/locales/zh-Hans.d.ts +0 -65
  118. /package/dist/node_modules/.pnpm/{@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.10.0_typescript@5.9.3__playwright@1.56.1_fa5be4b0345b48b65ec4b7072214c2b3 → @vitest_browser@3.2.4_msw@2.7.3_@types_node@24.10.1_typescript@5.9.3__playwright@1.57.0_4c7b68e67853c98910921d3bcdc3c508}/node_modules/@vitest/browser/context.js +0 -0
  119. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/ParseError.js +0 -0
  120. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/PhoneNumber.js +0 -0
  121. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/constants.js +0 -0
  122. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/format.js +0 -0
  123. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -0
  124. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -0
  125. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -0
  126. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -0
  127. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -0
  128. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -0
  129. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -0
  130. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -0
  131. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -0
  132. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -0
  133. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +0 -0
  134. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -0
  135. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -0
  136. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +0 -0
  137. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -0
  138. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +0 -0
  139. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -0
  140. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/isObject.js +0 -0
  141. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -0
  142. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -0
  143. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +0 -0
  144. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -0
  145. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/isPossible.js +0 -0
  146. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/isValid.js +0 -0
  147. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/metadata.js +0 -0
  148. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -0
  149. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/parse.js +0 -0
  150. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -0
  151. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -0
  152. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -0
  153. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -0
  154. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/es6/tools/semver-compare.js +0 -0
  155. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -0
  156. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.26 → libphonenumber-js@1.12.30}/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -0
  157. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/arguments.js +0 -0
  158. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/array.js +0 -0
  159. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/bigint.js +0 -0
  160. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/class.js +0 -0
  161. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/date.js +0 -0
  162. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/error.js +0 -0
  163. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/function.js +0 -0
  164. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/helpers.js +0 -0
  165. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/html.js +0 -0
  166. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/map.js +0 -0
  167. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/number.js +0 -0
  168. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/object.js +0 -0
  169. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/regexp.js +0 -0
  170. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/set.js +0 -0
  171. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/string.js +0 -0
  172. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/symbol.js +0 -0
  173. /package/dist/node_modules/.pnpm/{loupe@3.1.4 → loupe@3.2.1}/node_modules/loupe/lib/typedarray.js +0 -0
  174. /package/dist/node_modules/.pnpm/{magic-string@0.30.19 → magic-string@0.30.21}/node_modules/magic-string/dist/magic-string.es.js +0 -0
  175. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/footer.js +0 -0
  176. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -0
  177. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -0
  178. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -0
  179. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -0
  180. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -0
  181. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -0
  182. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -0
  183. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -0
  184. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -0
  185. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -0
  186. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -0
  187. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -0
  188. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -0
  189. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -0
  190. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -0
  191. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -0
  192. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -0
  193. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -0
  194. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -0
  195. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -0
  196. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -0
  197. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -0
  198. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -0
  199. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/index.js +0 -0
  200. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/revert.js +0 -0
  201. /package/dist/node_modules/.pnpm/{mdast-util-to-hast@13.2.0 → mdast-util-to-hast@13.2.1}/node_modules/mdast-util-to-hast/lib/state.js +0 -0
  202. /package/dist/node_modules/.pnpm/{storybook@10.0.8_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5_e2791259526ede65857ac65f52302a74/node_modules/storybook/dist/_browser-chunks/chunk-SN4J4IQ3.js → storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/storybook/dist/_browser-chunks/chunk-ZUWEVLDX.js} +0 -0
  203. /package/dist/node_modules/.pnpm/{unist-util-is@6.0.0 → unist-util-is@6.0.1}/node_modules/unist-util-is/lib/index.js +0 -0
  204. /package/dist/node_modules/.pnpm/{unist-util-visit-parents@6.0.1 → unist-util-visit-parents@6.0.2}/node_modules/unist-util-visit-parents/lib/color.js +0 -0
  205. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.0_@vitest_browser@3.2.4_@vitest_ui@3_10880c0a9445bba638204ee93166eaed → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.1_@vitest_browser@3.2.4_@vitest_ui@3_6e27007ba0535c26eedf5a22febb1842}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
  206. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.0_@vitest_browser@3.2.4_@vitest_ui@3_10880c0a9445bba638204ee93166eaed → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.1_@vitest_browser@3.2.4_@vitest_ui@3_6e27007ba0535c26eedf5a22febb1842}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -0
  207. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.0_@vitest_browser@3.2.4_@vitest_ui@3_10880c0a9445bba638204ee93166eaed → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.1_@vitest_browser@3.2.4_@vitest_ui@3_6e27007ba0535c26eedf5a22febb1842}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +0 -0
@@ -1 +1 @@
1
- import{__exports as L}from"../../../../../_virtual/index8.js";import{__require as sr}from"../../../base64-js@1.5.1/node_modules/base64-js/index.js";import{__require as xr}from"../../../ieee754@1.2.1/node_modules/ieee754/index.js";var H;function Fr(){return H?L:(H=1,(function(B){var I=sr(),m=xr(),D=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;B.Buffer=u,B.SlowBuffer=Q,B.INSPECT_MAX_BYTES=50;var F=2147483647;B.kMaxLength=F,u.TYPED_ARRAY_SUPPORT=V(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function V(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function x(t){if(t>F)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,i){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(t)}return k(t,r,i)}u.poolSize=8192;function k(t,r,i){if(typeof t=="string")return Z(t,r);if(ArrayBuffer.isView(t))return $(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(s(t,ArrayBuffer)||t&&s(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(s(t,SharedArrayBuffer)||t&&s(t.buffer,SharedArrayBuffer)))return v(t,r,i);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return u.from(n,r,i);var e=O(t);if(e)return e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return u.from(t[Symbol.toPrimitive]("string"),r,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}u.from=function(t,r,i){return k(t,r,i)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function _(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function K(t,r,i){return _(t),t<=0?x(t):r!==void 0?typeof i=="string"?x(t).fill(r,i):x(t).fill(r):x(t)}u.alloc=function(t,r,i){return K(t,r,i)};function g(t){return _(t),x(t<0?0:S(t)|0)}u.allocUnsafe=function(t){return g(t)},u.allocUnsafeSlow=function(t){return g(t)};function Z(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var i=b(t,r)|0,n=x(i),e=n.write(t,r);return e!==i&&(n=n.slice(0,e)),n}function T(t){for(var r=t.length<0?0:S(t.length)|0,i=x(r),n=0;n<r;n+=1)i[n]=t[n]&255;return i}function $(t){if(s(t,Uint8Array)){var r=new Uint8Array(t);return v(r.buffer,r.byteOffset,r.byteLength)}return T(t)}function v(t,r,i){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(i||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&i===void 0?n=new Uint8Array(t):i===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,i),Object.setPrototypeOf(n,u.prototype),n}function O(t){if(u.isBuffer(t)){var r=S(t.length)|0,i=x(r);return i.length===0||t.copy(i,0,0,r),i}if(t.length!==void 0)return typeof t.length!="number"||C(t.length)?x(0):T(t);if(t.type==="Buffer"&&Array.isArray(t.data))return T(t.data)}function S(t){if(t>=F)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+F.toString(16)+" bytes");return t|0}function Q(t){return+t!=t&&(t=0),u.alloc(+t)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype},u.compare=function(r,i){if(s(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),s(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),!u.isBuffer(r)||!u.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;for(var n=r.length,e=i.length,o=0,h=Math.min(n,e);o<h;++o)if(r[o]!==i[o]){n=r[o],e=i[o];break}return n<e?-1:e<n?1:0},u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(r,i){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var n;if(i===void 0)for(i=0,n=0;n<r.length;++n)i+=r[n].length;var e=u.allocUnsafe(i),o=0;for(n=0;n<r.length;++n){var h=r[n];if(s(h,Uint8Array))o+h.length>e.length?u.from(h).copy(e,o):Uint8Array.prototype.set.call(e,h,o);else if(u.isBuffer(h))h.copy(e,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=h.length}return e};function b(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||s(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&i===0)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return G(t).length;default:if(e)return n?-1:R(t).length;r=(""+r).toLowerCase(),e=!0}}u.byteLength=b;function P(t,r,i){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return fr(this,r,i);case"utf8":case"utf-8":return d(this,r,i);case"ascii":return or(this,r,i);case"latin1":case"binary":return hr(this,r,i);case"base64":return er(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pr(this,r,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function E(t,r,i){var n=t[r];t[r]=t[i],t[i]=n}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<r;i+=2)E(this,i,i+1);return this},u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<r;i+=4)E(this,i,i+3),E(this,i+1,i+2);return this},u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<r;i+=8)E(this,i,i+7),E(this,i+1,i+6),E(this,i+2,i+5),E(this,i+3,i+4);return this},u.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?d(this,0,r):P.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0},u.prototype.inspect=function(){var r="",i=B.INSPECT_MAX_BYTES;return r=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(r+=" ... "),"<Buffer "+r+">"},D&&(u.prototype[D]=u.prototype.inspect),u.prototype.compare=function(r,i,n,e,o){if(s(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),n===void 0&&(n=r?r.length:0),e===void 0&&(e=0),o===void 0&&(o=this.length),i<0||n>r.length||e<0||o>this.length)throw new RangeError("out of range index");if(e>=o&&i>=n)return 0;if(e>=o)return-1;if(i>=n)return 1;if(i>>>=0,n>>>=0,e>>>=0,o>>>=0,this===r)return 0;for(var h=o-e,f=n-i,p=Math.min(h,f),a=this.slice(e,o),w=r.slice(i,n),c=0;c<p;++c)if(a[c]!==w[c]){h=a[c],f=w[c];break}return h<f?-1:f<h?1:0};function M(t,r,i,n,e){if(t.length===0)return-1;if(typeof i=="string"?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,C(i)&&(i=e?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(e)return-1;i=t.length-1}else if(i<0)if(e)i=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),u.isBuffer(r))return r.length===0?-1:N(t,r,i,n,e);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?e?Uint8Array.prototype.indexOf.call(t,r,i):Uint8Array.prototype.lastIndexOf.call(t,r,i):N(t,[r],i,n,e);throw new TypeError("val must be string, number or Buffer")}function N(t,r,i,n,e){var o=1,h=t.length,f=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,h/=2,f/=2,i/=2}function p(J,z){return o===1?J[z]:J.readUInt16BE(z*o)}var a;if(e){var w=-1;for(a=i;a<h;a++)if(p(t,a)===p(r,w===-1?0:a-w)){if(w===-1&&(w=a),a-w+1===f)return w*o}else w!==-1&&(a-=a-w),w=-1}else for(i+f>h&&(i=h-f),a=i;a>=0;a--){for(var c=!0,A=0;A<f;A++)if(p(t,a+A)!==p(r,A)){c=!1;break}if(c)return a}return-1}u.prototype.includes=function(r,i,n){return this.indexOf(r,i,n)!==-1},u.prototype.indexOf=function(r,i,n){return M(this,r,i,n,!0)},u.prototype.lastIndexOf=function(r,i,n){return M(this,r,i,n,!1)};function j(t,r,i,n){i=Number(i)||0;var e=t.length-i;n?(n=Number(n),n>e&&(n=e)):n=e;var o=r.length;n>o/2&&(n=o/2);for(var h=0;h<n;++h){var f=parseInt(r.substr(h*2,2),16);if(C(f))return h;t[i+h]=f}return h}function rr(t,r,i,n){return U(R(r,t.length-i),t,i,n)}function ir(t,r,i,n){return U(lr(r),t,i,n)}function tr(t,r,i,n){return U(G(r),t,i,n)}function nr(t,r,i,n){return U(wr(r,t.length-i),t,i,n)}u.prototype.write=function(r,i,n,e){if(i===void 0)e="utf8",n=this.length,i=0;else if(n===void 0&&typeof i=="string")e=i,n=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(n)?(n=n>>>0,e===void 0&&(e="utf8")):(e=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-i;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var h=!1;;)switch(e){case"hex":return j(this,r,i,n);case"utf8":case"utf-8":return rr(this,r,i,n);case"ascii":case"latin1":case"binary":return ir(this,r,i,n);case"base64":return tr(this,r,i,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nr(this,r,i,n);default:if(h)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),h=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function er(t,r,i){return r===0&&i===t.length?I.fromByteArray(t):I.fromByteArray(t.slice(r,i))}function d(t,r,i){i=Math.min(t.length,i);for(var n=[],e=r;e<i;){var o=t[e],h=null,f=o>239?4:o>223?3:o>191?2:1;if(e+f<=i){var p,a,w,c;switch(f){case 1:o<128&&(h=o);break;case 2:p=t[e+1],(p&192)===128&&(c=(o&31)<<6|p&63,c>127&&(h=c));break;case 3:p=t[e+1],a=t[e+2],(p&192)===128&&(a&192)===128&&(c=(o&15)<<12|(p&63)<<6|a&63,c>2047&&(c<55296||c>57343)&&(h=c));break;case 4:p=t[e+1],a=t[e+2],w=t[e+3],(p&192)===128&&(a&192)===128&&(w&192)===128&&(c=(o&15)<<18|(p&63)<<12|(a&63)<<6|w&63,c>65535&&c<1114112&&(h=c))}}h===null?(h=65533,f=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|h&1023),n.push(h),e+=f}return ur(n)}var q=4096;function ur(t){var r=t.length;if(r<=q)return String.fromCharCode.apply(String,t);for(var i="",n=0;n<r;)i+=String.fromCharCode.apply(String,t.slice(n,n+=q));return i}function or(t,r,i){var n="";i=Math.min(t.length,i);for(var e=r;e<i;++e)n+=String.fromCharCode(t[e]&127);return n}function hr(t,r,i){var n="";i=Math.min(t.length,i);for(var e=r;e<i;++e)n+=String.fromCharCode(t[e]);return n}function fr(t,r,i){var n=t.length;(!r||r<0)&&(r=0),(!i||i<0||i>n)&&(i=n);for(var e="",o=r;o<i;++o)e+=yr[t[o]];return e}function pr(t,r,i){for(var n=t.slice(r,i),e="",o=0;o<n.length-1;o+=2)e+=String.fromCharCode(n[o]+n[o+1]*256);return e}u.prototype.slice=function(r,i){var n=this.length;r=~~r,i=i===void 0?n:~~i,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),i<0?(i+=n,i<0&&(i=0)):i>n&&(i=n),i<r&&(i=r);var e=this.subarray(r,i);return Object.setPrototypeOf(e,u.prototype),e};function l(t,r,i){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>i)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,i,n){r=r>>>0,i=i>>>0,n||l(r,i,this.length);for(var e=this[r],o=1,h=0;++h<i&&(o*=256);)e+=this[r+h]*o;return e},u.prototype.readUintBE=u.prototype.readUIntBE=function(r,i,n){r=r>>>0,i=i>>>0,n||l(r,i,this.length);for(var e=this[r+--i],o=1;i>0&&(o*=256);)e+=this[r+--i]*o;return e},u.prototype.readUint8=u.prototype.readUInt8=function(r,i){return r=r>>>0,i||l(r,1,this.length),this[r]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,i){return r=r>>>0,i||l(r,2,this.length),this[r]|this[r+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,i){return r=r>>>0,i||l(r,2,this.length),this[r]<<8|this[r+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,i){return r=r>>>0,i||l(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,i){return r=r>>>0,i||l(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},u.prototype.readIntLE=function(r,i,n){r=r>>>0,i=i>>>0,n||l(r,i,this.length);for(var e=this[r],o=1,h=0;++h<i&&(o*=256);)e+=this[r+h]*o;return o*=128,e>=o&&(e-=Math.pow(2,8*i)),e},u.prototype.readIntBE=function(r,i,n){r=r>>>0,i=i>>>0,n||l(r,i,this.length);for(var e=i,o=1,h=this[r+--e];e>0&&(o*=256);)h+=this[r+--e]*o;return o*=128,h>=o&&(h-=Math.pow(2,8*i)),h},u.prototype.readInt8=function(r,i){return r=r>>>0,i||l(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},u.prototype.readInt16LE=function(r,i){r=r>>>0,i||l(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},u.prototype.readInt16BE=function(r,i){r=r>>>0,i||l(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},u.prototype.readInt32LE=function(r,i){return r=r>>>0,i||l(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},u.prototype.readInt32BE=function(r,i){return r=r>>>0,i||l(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},u.prototype.readFloatLE=function(r,i){return r=r>>>0,i||l(r,4,this.length),m.read(this,r,!0,23,4)},u.prototype.readFloatBE=function(r,i){return r=r>>>0,i||l(r,4,this.length),m.read(this,r,!1,23,4)},u.prototype.readDoubleLE=function(r,i){return r=r>>>0,i||l(r,8,this.length),m.read(this,r,!0,52,8)},u.prototype.readDoubleBE=function(r,i){return r=r>>>0,i||l(r,8,this.length),m.read(this,r,!1,52,8)};function y(t,r,i,n,e,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>e||r<o)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,i,n,e){if(r=+r,i=i>>>0,n=n>>>0,!e){var o=Math.pow(2,8*n)-1;y(this,r,i,n,o,0)}var h=1,f=0;for(this[i]=r&255;++f<n&&(h*=256);)this[i+f]=r/h&255;return i+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,i,n,e){if(r=+r,i=i>>>0,n=n>>>0,!e){var o=Math.pow(2,8*n)-1;y(this,r,i,n,o,0)}var h=n-1,f=1;for(this[i+h]=r&255;--h>=0&&(f*=256);)this[i+h]=r/f&255;return i+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,1,255,0),this[i]=r&255,i+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,2,65535,0),this[i]=r&255,this[i+1]=r>>>8,i+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=r&255,i+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255,i+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4},u.prototype.writeIntLE=function(r,i,n,e){if(r=+r,i=i>>>0,!e){var o=Math.pow(2,8*n-1);y(this,r,i,n,o-1,-o)}var h=0,f=1,p=0;for(this[i]=r&255;++h<n&&(f*=256);)r<0&&p===0&&this[i+h-1]!==0&&(p=1),this[i+h]=(r/f>>0)-p&255;return i+n},u.prototype.writeIntBE=function(r,i,n,e){if(r=+r,i=i>>>0,!e){var o=Math.pow(2,8*n-1);y(this,r,i,n,o-1,-o)}var h=n-1,f=1,p=0;for(this[i+h]=r&255;--h>=0&&(f*=256);)r<0&&p===0&&this[i+h+1]!==0&&(p=1),this[i+h]=(r/f>>0)-p&255;return i+n},u.prototype.writeInt8=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=r&255,i+1},u.prototype.writeInt16LE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,2,32767,-32768),this[i]=r&255,this[i+1]=r>>>8,i+2},u.prototype.writeInt16BE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=r&255,i+2},u.prototype.writeInt32LE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,4,2147483647,-2147483648),this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4},u.prototype.writeInt32BE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};function W(t,r,i,n,e,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Y(t,r,i,n,e){return r=+r,i=i>>>0,e||W(t,r,i,4),m.write(t,r,i,n,23,4),i+4}u.prototype.writeFloatLE=function(r,i,n){return Y(this,r,i,!0,n)},u.prototype.writeFloatBE=function(r,i,n){return Y(this,r,i,!1,n)};function X(t,r,i,n,e){return r=+r,i=i>>>0,e||W(t,r,i,8),m.write(t,r,i,n,52,8),i+8}u.prototype.writeDoubleLE=function(r,i,n){return X(this,r,i,!0,n)},u.prototype.writeDoubleBE=function(r,i,n){return X(this,r,i,!1,n)},u.prototype.copy=function(r,i,n,e){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!e&&e!==0&&(e=this.length),i>=r.length&&(i=r.length),i||(i=0),e>0&&e<n&&(e=n),e===n||r.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),r.length-i<e-n&&(e=r.length-i+n);var o=e-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,n,e):Uint8Array.prototype.set.call(r,this.subarray(n,e),i),o},u.prototype.fill=function(r,i,n,e){if(typeof r=="string"){if(typeof i=="string"?(e=i,i=0,n=this.length):typeof n=="string"&&(e=n,n=this.length),e!==void 0&&typeof e!="string")throw new TypeError("encoding must be a string");if(typeof e=="string"&&!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);if(r.length===1){var o=r.charCodeAt(0);(e==="utf8"&&o<128||e==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(i<0||this.length<i||this.length<n)throw new RangeError("Out of range index");if(n<=i)return this;i=i>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var h;if(typeof r=="number")for(h=i;h<n;++h)this[h]=r;else{var f=u.isBuffer(r)?r:u.from(r,e),p=f.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(h=0;h<n-i;++h)this[h+i]=f[h%p]}return this};var ar=/[^+/0-9A-Za-z-_]/g;function cr(t){if(t=t.split("=")[0],t=t.trim().replace(ar,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function R(t,r){r=r||1/0;for(var i,n=t.length,e=null,o=[],h=0;h<n;++h){if(i=t.charCodeAt(h),i>55295&&i<57344){if(!e){if(i>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(h+1===n){(r-=3)>-1&&o.push(239,191,189);continue}e=i;continue}if(i<56320){(r-=3)>-1&&o.push(239,191,189),e=i;continue}i=(e-55296<<10|i-56320)+65536}else e&&(r-=3)>-1&&o.push(239,191,189);if(e=null,i<128){if((r-=1)<0)break;o.push(i)}else if(i<2048){if((r-=2)<0)break;o.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;o.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return o}function lr(t){for(var r=[],i=0;i<t.length;++i)r.push(t.charCodeAt(i)&255);return r}function wr(t,r){for(var i,n,e,o=[],h=0;h<t.length&&!((r-=2)<0);++h)i=t.charCodeAt(h),n=i>>8,e=i%256,o.push(e),o.push(n);return o}function G(t){return I.toByteArray(cr(t))}function U(t,r,i,n){for(var e=0;e<n&&!(e+i>=r.length||e>=t.length);++e)r[e+i]=t[e];return e}function s(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function C(t){return t!==t}var yr=(function(){for(var t="0123456789abcdef",r=new Array(256),i=0;i<16;++i)for(var n=i*16,e=0;e<16;++e)r[n+e]=t[i]+t[e];return r})()})(L),L)}export{Fr as __require};
1
+ import{__exports as L}from"../../../../../_virtual/index8.js";import{__require as sr}from"../../../base64-js@1.5.1/node_modules/base64-js/index.js";import{__require as xr}from"../../../ieee754@1.2.1/node_modules/ieee754/index.js";var H;function Fr(){return H?L:(H=1,(function(B){var I=sr(),m=xr(),D=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;B.Buffer=u,B.SlowBuffer=$,B.INSPECT_MAX_BYTES=50;var F=2147483647;B.kMaxLength=F,u.TYPED_ARRAY_SUPPORT=V(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function V(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function x(t){if(t>F)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,i){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(t)}return k(t,r,i)}u.poolSize=8192;function k(t,r,i){if(typeof t=="string")return Z(t,r);if(ArrayBuffer.isView(t))return O(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(s(t,ArrayBuffer)||t&&s(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(s(t,SharedArrayBuffer)||t&&s(t.buffer,SharedArrayBuffer)))return v(t,r,i);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return u.from(n,r,i);var e=Q(t);if(e)return e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return u.from(t[Symbol.toPrimitive]("string"),r,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}u.from=function(t,r,i){return k(t,r,i)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function _(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function K(t,r,i){return _(t),t<=0?x(t):r!==void 0?typeof i=="string"?x(t).fill(r,i):x(t).fill(r):x(t)}u.alloc=function(t,r,i){return K(t,r,i)};function g(t){return _(t),x(t<0?0:S(t)|0)}u.allocUnsafe=function(t){return g(t)},u.allocUnsafeSlow=function(t){return g(t)};function Z(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var i=b(t,r)|0,n=x(i),e=n.write(t,r);return e!==i&&(n=n.slice(0,e)),n}function T(t){for(var r=t.length<0?0:S(t.length)|0,i=x(r),n=0;n<r;n+=1)i[n]=t[n]&255;return i}function O(t){if(s(t,Uint8Array)){var r=new Uint8Array(t);return v(r.buffer,r.byteOffset,r.byteLength)}return T(t)}function v(t,r,i){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(i||0))throw new RangeError('"length" is outside of buffer bounds');var n;return r===void 0&&i===void 0?n=new Uint8Array(t):i===void 0?n=new Uint8Array(t,r):n=new Uint8Array(t,r,i),Object.setPrototypeOf(n,u.prototype),n}function Q(t){if(u.isBuffer(t)){var r=S(t.length)|0,i=x(r);return i.length===0||t.copy(i,0,0,r),i}if(t.length!==void 0)return typeof t.length!="number"||C(t.length)?x(0):T(t);if(t.type==="Buffer"&&Array.isArray(t.data))return T(t.data)}function S(t){if(t>=F)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+F.toString(16)+" bytes");return t|0}function $(t){return+t!=t&&(t=0),u.alloc(+t)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype},u.compare=function(r,i){if(s(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),s(i,Uint8Array)&&(i=u.from(i,i.offset,i.byteLength)),!u.isBuffer(r)||!u.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;for(var n=r.length,e=i.length,o=0,h=Math.min(n,e);o<h;++o)if(r[o]!==i[o]){n=r[o],e=i[o];break}return n<e?-1:e<n?1:0},u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(r,i){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var n;if(i===void 0)for(i=0,n=0;n<r.length;++n)i+=r[n].length;var e=u.allocUnsafe(i),o=0;for(n=0;n<r.length;++n){var h=r[n];if(s(h,Uint8Array))o+h.length>e.length?u.from(h).copy(e,o):Uint8Array.prototype.set.call(e,h,o);else if(u.isBuffer(h))h.copy(e,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=h.length}return e};function b(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||s(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&i===0)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return G(t).length;default:if(e)return n?-1:R(t).length;r=(""+r).toLowerCase(),e=!0}}u.byteLength=b;function P(t,r,i){var n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return fr(this,r,i);case"utf8":case"utf-8":return d(this,r,i);case"ascii":return or(this,r,i);case"latin1":case"binary":return hr(this,r,i);case"base64":return er(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pr(this,r,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function E(t,r,i){var n=t[r];t[r]=t[i],t[i]=n}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<r;i+=2)E(this,i,i+1);return this},u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<r;i+=4)E(this,i,i+3),E(this,i+1,i+2);return this},u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<r;i+=8)E(this,i,i+7),E(this,i+1,i+6),E(this,i+2,i+5),E(this,i+3,i+4);return this},u.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?d(this,0,r):P.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0},u.prototype.inspect=function(){var r="",i=B.INSPECT_MAX_BYTES;return r=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(r+=" ... "),"<Buffer "+r+">"},D&&(u.prototype[D]=u.prototype.inspect),u.prototype.compare=function(r,i,n,e,o){if(s(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),n===void 0&&(n=r?r.length:0),e===void 0&&(e=0),o===void 0&&(o=this.length),i<0||n>r.length||e<0||o>this.length)throw new RangeError("out of range index");if(e>=o&&i>=n)return 0;if(e>=o)return-1;if(i>=n)return 1;if(i>>>=0,n>>>=0,e>>>=0,o>>>=0,this===r)return 0;for(var h=o-e,f=n-i,p=Math.min(h,f),a=this.slice(e,o),w=r.slice(i,n),c=0;c<p;++c)if(a[c]!==w[c]){h=a[c],f=w[c];break}return h<f?-1:f<h?1:0};function M(t,r,i,n,e){if(t.length===0)return-1;if(typeof i=="string"?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,C(i)&&(i=e?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(e)return-1;i=t.length-1}else if(i<0)if(e)i=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),u.isBuffer(r))return r.length===0?-1:N(t,r,i,n,e);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?e?Uint8Array.prototype.indexOf.call(t,r,i):Uint8Array.prototype.lastIndexOf.call(t,r,i):N(t,[r],i,n,e);throw new TypeError("val must be string, number or Buffer")}function N(t,r,i,n,e){var o=1,h=t.length,f=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,h/=2,f/=2,i/=2}function p(J,z){return o===1?J[z]:J.readUInt16BE(z*o)}var a;if(e){var w=-1;for(a=i;a<h;a++)if(p(t,a)===p(r,w===-1?0:a-w)){if(w===-1&&(w=a),a-w+1===f)return w*o}else w!==-1&&(a-=a-w),w=-1}else for(i+f>h&&(i=h-f),a=i;a>=0;a--){for(var c=!0,A=0;A<f;A++)if(p(t,a+A)!==p(r,A)){c=!1;break}if(c)return a}return-1}u.prototype.includes=function(r,i,n){return this.indexOf(r,i,n)!==-1},u.prototype.indexOf=function(r,i,n){return M(this,r,i,n,!0)},u.prototype.lastIndexOf=function(r,i,n){return M(this,r,i,n,!1)};function j(t,r,i,n){i=Number(i)||0;var e=t.length-i;n?(n=Number(n),n>e&&(n=e)):n=e;var o=r.length;n>o/2&&(n=o/2);for(var h=0;h<n;++h){var f=parseInt(r.substr(h*2,2),16);if(C(f))return h;t[i+h]=f}return h}function rr(t,r,i,n){return U(R(r,t.length-i),t,i,n)}function ir(t,r,i,n){return U(lr(r),t,i,n)}function tr(t,r,i,n){return U(G(r),t,i,n)}function nr(t,r,i,n){return U(wr(r,t.length-i),t,i,n)}u.prototype.write=function(r,i,n,e){if(i===void 0)e="utf8",n=this.length,i=0;else if(n===void 0&&typeof i=="string")e=i,n=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(n)?(n=n>>>0,e===void 0&&(e="utf8")):(e=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-i;if((n===void 0||n>o)&&(n=o),r.length>0&&(n<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var h=!1;;)switch(e){case"hex":return j(this,r,i,n);case"utf8":case"utf-8":return rr(this,r,i,n);case"ascii":case"latin1":case"binary":return ir(this,r,i,n);case"base64":return tr(this,r,i,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nr(this,r,i,n);default:if(h)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),h=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function er(t,r,i){return r===0&&i===t.length?I.fromByteArray(t):I.fromByteArray(t.slice(r,i))}function d(t,r,i){i=Math.min(t.length,i);for(var n=[],e=r;e<i;){var o=t[e],h=null,f=o>239?4:o>223?3:o>191?2:1;if(e+f<=i){var p,a,w,c;switch(f){case 1:o<128&&(h=o);break;case 2:p=t[e+1],(p&192)===128&&(c=(o&31)<<6|p&63,c>127&&(h=c));break;case 3:p=t[e+1],a=t[e+2],(p&192)===128&&(a&192)===128&&(c=(o&15)<<12|(p&63)<<6|a&63,c>2047&&(c<55296||c>57343)&&(h=c));break;case 4:p=t[e+1],a=t[e+2],w=t[e+3],(p&192)===128&&(a&192)===128&&(w&192)===128&&(c=(o&15)<<18|(p&63)<<12|(a&63)<<6|w&63,c>65535&&c<1114112&&(h=c))}}h===null?(h=65533,f=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|h&1023),n.push(h),e+=f}return ur(n)}var q=4096;function ur(t){var r=t.length;if(r<=q)return String.fromCharCode.apply(String,t);for(var i="",n=0;n<r;)i+=String.fromCharCode.apply(String,t.slice(n,n+=q));return i}function or(t,r,i){var n="";i=Math.min(t.length,i);for(var e=r;e<i;++e)n+=String.fromCharCode(t[e]&127);return n}function hr(t,r,i){var n="";i=Math.min(t.length,i);for(var e=r;e<i;++e)n+=String.fromCharCode(t[e]);return n}function fr(t,r,i){var n=t.length;(!r||r<0)&&(r=0),(!i||i<0||i>n)&&(i=n);for(var e="",o=r;o<i;++o)e+=yr[t[o]];return e}function pr(t,r,i){for(var n=t.slice(r,i),e="",o=0;o<n.length-1;o+=2)e+=String.fromCharCode(n[o]+n[o+1]*256);return e}u.prototype.slice=function(r,i){var n=this.length;r=~~r,i=i===void 0?n:~~i,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),i<0?(i+=n,i<0&&(i=0)):i>n&&(i=n),i<r&&(i=r);var e=this.subarray(r,i);return Object.setPrototypeOf(e,u.prototype),e};function l(t,r,i){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>i)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,i,n){r=r>>>0,i=i>>>0,n||l(r,i,this.length);for(var e=this[r],o=1,h=0;++h<i&&(o*=256);)e+=this[r+h]*o;return e},u.prototype.readUintBE=u.prototype.readUIntBE=function(r,i,n){r=r>>>0,i=i>>>0,n||l(r,i,this.length);for(var e=this[r+--i],o=1;i>0&&(o*=256);)e+=this[r+--i]*o;return e},u.prototype.readUint8=u.prototype.readUInt8=function(r,i){return r=r>>>0,i||l(r,1,this.length),this[r]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,i){return r=r>>>0,i||l(r,2,this.length),this[r]|this[r+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,i){return r=r>>>0,i||l(r,2,this.length),this[r]<<8|this[r+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,i){return r=r>>>0,i||l(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,i){return r=r>>>0,i||l(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},u.prototype.readIntLE=function(r,i,n){r=r>>>0,i=i>>>0,n||l(r,i,this.length);for(var e=this[r],o=1,h=0;++h<i&&(o*=256);)e+=this[r+h]*o;return o*=128,e>=o&&(e-=Math.pow(2,8*i)),e},u.prototype.readIntBE=function(r,i,n){r=r>>>0,i=i>>>0,n||l(r,i,this.length);for(var e=i,o=1,h=this[r+--e];e>0&&(o*=256);)h+=this[r+--e]*o;return o*=128,h>=o&&(h-=Math.pow(2,8*i)),h},u.prototype.readInt8=function(r,i){return r=r>>>0,i||l(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},u.prototype.readInt16LE=function(r,i){r=r>>>0,i||l(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},u.prototype.readInt16BE=function(r,i){r=r>>>0,i||l(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},u.prototype.readInt32LE=function(r,i){return r=r>>>0,i||l(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},u.prototype.readInt32BE=function(r,i){return r=r>>>0,i||l(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},u.prototype.readFloatLE=function(r,i){return r=r>>>0,i||l(r,4,this.length),m.read(this,r,!0,23,4)},u.prototype.readFloatBE=function(r,i){return r=r>>>0,i||l(r,4,this.length),m.read(this,r,!1,23,4)},u.prototype.readDoubleLE=function(r,i){return r=r>>>0,i||l(r,8,this.length),m.read(this,r,!0,52,8)},u.prototype.readDoubleBE=function(r,i){return r=r>>>0,i||l(r,8,this.length),m.read(this,r,!1,52,8)};function y(t,r,i,n,e,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>e||r<o)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,i,n,e){if(r=+r,i=i>>>0,n=n>>>0,!e){var o=Math.pow(2,8*n)-1;y(this,r,i,n,o,0)}var h=1,f=0;for(this[i]=r&255;++f<n&&(h*=256);)this[i+f]=r/h&255;return i+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,i,n,e){if(r=+r,i=i>>>0,n=n>>>0,!e){var o=Math.pow(2,8*n)-1;y(this,r,i,n,o,0)}var h=n-1,f=1;for(this[i+h]=r&255;--h>=0&&(f*=256);)this[i+h]=r/f&255;return i+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,1,255,0),this[i]=r&255,i+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,2,65535,0),this[i]=r&255,this[i+1]=r>>>8,i+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=r&255,i+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255,i+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4},u.prototype.writeIntLE=function(r,i,n,e){if(r=+r,i=i>>>0,!e){var o=Math.pow(2,8*n-1);y(this,r,i,n,o-1,-o)}var h=0,f=1,p=0;for(this[i]=r&255;++h<n&&(f*=256);)r<0&&p===0&&this[i+h-1]!==0&&(p=1),this[i+h]=(r/f>>0)-p&255;return i+n},u.prototype.writeIntBE=function(r,i,n,e){if(r=+r,i=i>>>0,!e){var o=Math.pow(2,8*n-1);y(this,r,i,n,o-1,-o)}var h=n-1,f=1,p=0;for(this[i+h]=r&255;--h>=0&&(f*=256);)r<0&&p===0&&this[i+h+1]!==0&&(p=1),this[i+h]=(r/f>>0)-p&255;return i+n},u.prototype.writeInt8=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=r&255,i+1},u.prototype.writeInt16LE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,2,32767,-32768),this[i]=r&255,this[i+1]=r>>>8,i+2},u.prototype.writeInt16BE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=r&255,i+2},u.prototype.writeInt32LE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,4,2147483647,-2147483648),this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4},u.prototype.writeInt32BE=function(r,i,n){return r=+r,i=i>>>0,n||y(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};function W(t,r,i,n,e,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Y(t,r,i,n,e){return r=+r,i=i>>>0,e||W(t,r,i,4),m.write(t,r,i,n,23,4),i+4}u.prototype.writeFloatLE=function(r,i,n){return Y(this,r,i,!0,n)},u.prototype.writeFloatBE=function(r,i,n){return Y(this,r,i,!1,n)};function X(t,r,i,n,e){return r=+r,i=i>>>0,e||W(t,r,i,8),m.write(t,r,i,n,52,8),i+8}u.prototype.writeDoubleLE=function(r,i,n){return X(this,r,i,!0,n)},u.prototype.writeDoubleBE=function(r,i,n){return X(this,r,i,!1,n)},u.prototype.copy=function(r,i,n,e){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!e&&e!==0&&(e=this.length),i>=r.length&&(i=r.length),i||(i=0),e>0&&e<n&&(e=n),e===n||r.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),r.length-i<e-n&&(e=r.length-i+n);var o=e-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,n,e):Uint8Array.prototype.set.call(r,this.subarray(n,e),i),o},u.prototype.fill=function(r,i,n,e){if(typeof r=="string"){if(typeof i=="string"?(e=i,i=0,n=this.length):typeof n=="string"&&(e=n,n=this.length),e!==void 0&&typeof e!="string")throw new TypeError("encoding must be a string");if(typeof e=="string"&&!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);if(r.length===1){var o=r.charCodeAt(0);(e==="utf8"&&o<128||e==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(i<0||this.length<i||this.length<n)throw new RangeError("Out of range index");if(n<=i)return this;i=i>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var h;if(typeof r=="number")for(h=i;h<n;++h)this[h]=r;else{var f=u.isBuffer(r)?r:u.from(r,e),p=f.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(h=0;h<n-i;++h)this[h+i]=f[h%p]}return this};var ar=/[^+/0-9A-Za-z-_]/g;function cr(t){if(t=t.split("=")[0],t=t.trim().replace(ar,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function R(t,r){r=r||1/0;for(var i,n=t.length,e=null,o=[],h=0;h<n;++h){if(i=t.charCodeAt(h),i>55295&&i<57344){if(!e){if(i>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(h+1===n){(r-=3)>-1&&o.push(239,191,189);continue}e=i;continue}if(i<56320){(r-=3)>-1&&o.push(239,191,189),e=i;continue}i=(e-55296<<10|i-56320)+65536}else e&&(r-=3)>-1&&o.push(239,191,189);if(e=null,i<128){if((r-=1)<0)break;o.push(i)}else if(i<2048){if((r-=2)<0)break;o.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;o.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return o}function lr(t){for(var r=[],i=0;i<t.length;++i)r.push(t.charCodeAt(i)&255);return r}function wr(t,r){for(var i,n,e,o=[],h=0;h<t.length&&!((r-=2)<0);++h)i=t.charCodeAt(h),n=i>>8,e=i%256,o.push(e),o.push(n);return o}function G(t){return I.toByteArray(cr(t))}function U(t,r,i,n){for(var e=0;e<n&&!(e+i>=r.length||e>=t.length);++e)r[e+i]=t[e];return e}function s(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function C(t){return t!==t}var yr=(function(){for(var t="0123456789abcdef",r=new Array(256),i=0;i<16;++i)for(var n=i*16,e=0;e<16;++e)r[n+e]=t[i]+t[e];return r})()})(L),L)}export{Fr as __require};
@@ -0,0 +1,2 @@
1
+ var St=Object.defineProperty,f=(e,t)=>St(e,"name",{value:t,configurable:!0}),Te=(e,t)=>{for(var n in t)St(e,n,{get:t[n],enumerable:!0})},J={};Te(J,{addChainableMethod:()=>Ge,addLengthGuard:()=>R,addMethod:()=>ke,addProperty:()=>Fe,checkError:()=>j,compareByInspect:()=>H,eql:()=>Jt,expectTypes:()=>At,flag:()=>b,getActual:()=>oe,getMessage:()=>qe,getName:()=>ae,getOperator:()=>Ue,getOwnEnumerableProperties:()=>Re,getOwnEnumerablePropertySymbols:()=>Le,getPathInfo:()=>Be,hasProperty:()=>ie,inspect:()=>w,isNaN:()=>ee,isNumeric:()=>N,isProxyEnabled:()=>L,isRegExp:()=>te,objDisplay:()=>$,overwriteChainableMethod:()=>We,overwriteMethod:()=>Ke,overwriteProperty:()=>Ve,proxify:()=>V,test:()=>De,transferFlags:()=>A,type:()=>v});var j={};Te(j,{compatibleConstructor:()=>Pt,compatibleInstance:()=>Nt,compatibleMessage:()=>Et,getConstructorName:()=>jt,getMessage:()=>Ot});function re(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}f(re,"isErrorInstance");function Mt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}f(Mt,"isRegExp");function Nt(e,t){return re(t)&&e===t}f(Nt,"compatibleInstance");function Pt(e,t){return re(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}f(Pt,"compatibleConstructor");function Et(e,t){const n=typeof e=="string"?e:e.message;return Mt(t)?t.test(n):typeof t=="string"?n.indexOf(t)!==-1:!1}f(Et,"compatibleMessage");function jt(e){let t=e;return re(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}f(jt,"getConstructorName");function Ot(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}f(Ot,"getMessage");function b(e,t,n){let s=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)s[t]=n;else return s[t]}f(b,"flag");function De(e,t){let n=b(e,"negate"),s=t[0];return n?!s:s}f(De,"test");function v(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}f(v,"type");var hn="captureStackTrace"in Error,z,x=(z=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(t="Unspecified AssertionError",n,s){super(t),this.message=t,hn&&Error.captureStackTrace(this,s||z);for(const r in n)r in this||(this[r]=n[r])}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:t!==!1?this.stack:void 0}}},f(z,"AssertionError"),z);function At(e,t){let n=b(e,"message"),s=b(e,"ssfi");n=n?n+": ":"",e=b(e,"object"),t=t.map(function(a){return a.toLowerCase()}),t.sort();let r=t.map(function(a,l){let h=~["a","e","i","o","u"].indexOf(a.charAt(0))?"an":"a";return(t.length>1&&l===t.length-1?"or ":"")+h+" "+a}).join(", "),u=v(e).toLowerCase();if(!t.some(function(a){return u===a}))throw new x(n+"object tested must be "+r+", but "+u+" given",void 0,s)}f(At,"expectTypes");function oe(e,t){return t.length>4?t[4]:e._obj}f(oe,"getActual");var dt={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},dn={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},F="…";function Ct(e,t){const n=dt[dn[t]]||dt[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}f(Ct,"colorise");function Tt({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:s=!0,showProxy:r=!1,maxArrayLength:u=1/0,breakLength:a=1/0,seen:l=[],truncate:h=1/0,stylize:d=String}={},p){const g={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!s,showProxy:!!r,maxArrayLength:Number(u),breakLength:Number(a),truncate:Number(h),seen:l,inspect:p,stylize:d};return g.colors&&(g.stylize=Ct),g}f(Tt,"normaliseOptions");function Dt(e){return e>="\uD800"&&e<="\uDBFF"}f(Dt,"isHighSurrogate");function D(e,t,n=F){e=String(e);const s=n.length,r=e.length;if(s>t&&r>s)return n;if(r>t&&r>s){let u=t-s;return u>0&&Dt(e[u-1])&&(u=u-1),`${e.slice(0,u)}${n}`}return e}f(D,"truncate");function O(e,t,n,s=", "){n=n||t.inspect;const r=e.length;if(r===0)return"";const u=t.truncate;let a="",l="",h="";for(let d=0;d<r;d+=1){const p=d+1===e.length,g=d+2===e.length;h=`${F}(${e.length-d})`;const m=e[d];t.truncate=u-a.length-(p?0:s.length);const S=l||n(m,t)+(p?"":s),y=a.length+S.length,M=y+h.length;if(p&&y>u&&a.length+h.length<=u||!p&&!g&&M>u||(l=p?"":n(e[d+1],t)+(g?"":s),!p&&g&&M>u&&y+l.length>u))break;if(a+=S,!p&&!g&&y+l.length>=u){h=`${F}(${e.length-d-1})`;break}h=""}return`${a}${h}`}f(O,"inspectList");function It(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}f(It,"quoteComplexKey");function k([e,t],n){return n.truncate-=2,typeof e=="string"?e=It(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}f(k,"inspectProperty");function qt(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const s=O(e,t);t.truncate-=s.length;let r="";return n.length&&(r=O(n.map(u=>[u,e[u]]),t,k)),`[ ${s}${r?`, ${r}`:""} ]`}f(qt,"inspectArray");var pn=f(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function C(e,t){const n=pn(e);t.truncate-=n.length+4;const s=Object.keys(e).slice(e.length);if(!e.length&&!s.length)return`${n}[]`;let r="";for(let a=0;a<e.length;a++){const l=`${t.stylize(D(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=l.length,e[a]!==e.length&&t.truncate<=3){r+=`${F}(${e.length-e[a]+1})`;break}r+=l}let u="";return s.length&&(u=O(s.map(a=>[a,e[a]]),t,k)),`${n}[ ${r}${u?`, ${u}`:""} ]`}f(C,"inspectTypedArray");function $t(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const s=n.split("T"),r=s[0];return t.stylize(`${r}T${D(s[1],t.truncate-r.length-1)}`,"date")}f($t,"inspectDate");function ye(e,t){const n=e[Symbol.toStringTag]||"Function",s=e.name;return s?t.stylize(`[${n} ${D(s,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}f(ye,"inspectFunction");function zt([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}f(zt,"inspectMapEntry");function _t(e){const t=[];return e.forEach((n,s)=>{t.push([s,n])}),t}f(_t,"mapToEntries");function Bt(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${O(_t(e),t,zt)} }`)}f(Bt,"inspectMap");var gn=Number.isNaN||(e=>e!==e);function me(e,t){return gn(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(D(String(e),t.truncate),"number")}f(me,"inspectNumber");function we(e,t){let n=D(e.toString(),t.truncate-1);return n!==F&&(n+="n"),t.stylize(n,"bigint")}f(we,"inspectBigInt");function Ft(e,t){const n=e.toString().split("/")[2],s=t.truncate-(2+n.length),r=e.source;return t.stylize(`/${D(r,s)}/${n}`,"regexp")}f(Ft,"inspectRegExp");function kt(e){const t=[];return e.forEach(n=>{t.push(n)}),t}f(kt,"arrayFromSet");function Vt(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${O(kt(e),t)} }`)}f(Vt,"inspectSet");var pt=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),bn={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},yn=16;function Kt(e){return bn[e]||`\\u${`0000${e.charCodeAt(0).toString(yn)}`.slice(-4)}`}f(Kt,"escape");function xe(e,t){return pt.test(e)&&(e=e.replace(pt,Kt)),t.stylize(`'${D(e,t.truncate-2)}'`,"string")}f(xe,"inspectString");function ve(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}f(ve,"inspectSymbol");var mn=f(()=>"Promise{…}","getPromiseValue"),wn=mn;function G(e,t){const n=Object.getOwnPropertyNames(e),s=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&s.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const r=O(n.map(l=>[l,e[l]]),t,k),u=O(s.map(l=>[l,e[l]]),t,k);t.seen.pop();let a="";return r&&u&&(a=", "),`{ ${r}${a}${u} }`}f(G,"inspectObject");var pe=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Gt(e,t){let n="";return pe&&pe in e&&(n=e[pe]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${G(e,t)}`}f(Gt,"inspectClass");function Wt(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${O(e,t)} ]`)}f(Wt,"inspectArguments");var xn=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Lt(e,t){const n=Object.getOwnPropertyNames(e).filter(a=>xn.indexOf(a)===-1),s=e.name;t.truncate-=s.length;let r="";if(typeof e.message=="string"?r=D(e.message,t.truncate):n.unshift("message"),r=r?`: ${r}`:"",t.truncate-=r.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const u=O(n.map(a=>[a,e[a]]),t,k);return`${s}${r}${u?` { ${u} }`:""}`}f(Lt,"inspectObject");function Rt([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}f(Rt,"inspectAttribute");function Y(e,t){return O(e,t,Ut,`
2
+ `)}f(Y,"inspectNodeCollection");function Ut(e,t){switch(e.nodeType){case 1:return Ie(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}f(Ut,"inspectNode");function Ie(e,t){const n=e.getAttributeNames(),s=e.tagName.toLowerCase(),r=t.stylize(`<${s}`,"special"),u=t.stylize(">","special"),a=t.stylize(`</${s}>`,"special");t.truncate-=s.length*2+5;let l="";n.length>0&&(l+=" ",l+=O(n.map(p=>[p,e.getAttribute(p)]),t,Rt," ")),t.truncate-=l.length;const h=t.truncate;let d=Y(e.children,t);return d&&d.length>h&&(d=`${F}(${e.children.length})`),`${r}${l}${u}${d}${a}`}f(Ie,"inspectHTML");var vn=typeof Symbol=="function"&&typeof Symbol.for=="function",ge=vn?Symbol.for("chai/inspect"):"@@chai/inspect",be=Symbol.for("nodejs.util.inspect.custom"),gt=new WeakMap,bt={},yt={undefined:f((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:f((e,t)=>t.stylize("null","null"),"null"),boolean:f((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:f((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:me,Number:me,bigint:we,BigInt:we,string:xe,String:xe,function:ye,Function:ye,symbol:ve,Symbol:ve,Array:qt,Date:$t,Map:Bt,Set:Vt,RegExp:Ft,Promise:wn,WeakSet:f((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:f((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:Wt,Int8Array:C,Uint8Array:C,Uint8ClampedArray:C,Int16Array:C,Uint16Array:C,Int32Array:C,Uint32Array:C,Float32Array:C,Float64Array:C,Generator:f(()=>"","Generator"),DataView:f(()=>"","DataView"),ArrayBuffer:f(()=>"","ArrayBuffer"),Error:Lt,HTMLCollection:Y,NodeList:Y},Sn=f((e,t,n)=>ge in e&&typeof e[ge]=="function"?e[ge](t):be in e&&typeof e[be]=="function"?e[be](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&gt.has(e.constructor)?gt.get(e.constructor)(e,t):bt[n]?bt[n](e,t):"","inspectCustom"),Mn=Object.prototype.toString;function Q(e,t={}){const n=Tt(t,Q),{customInspect:s}=n;let r=e===null?"null":typeof e;if(r==="object"&&(r=Mn.call(e).slice(8,-1)),r in yt)return yt[r](e,n);if(s&&e){const a=Sn(e,n,r);if(a)return typeof a=="string"?a:Q(a,n)}const u=e?Object.getPrototypeOf(e):!1;return u===Object.prototype||u===null?G(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Ie(e,n):"constructor"in e?e.constructor!==Object?Gt(e,n):G(e,n):e===Object(e)?G(e,n):n.stylize(String(e),r)}f(Q,"inspect");var E={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function w(e,t,n,s){let r={colors:s,depth:typeof n>"u"?2:n,showHidden:t,truncate:E.truncateThreshold?E.truncateThreshold:1/0};return Q(e,r)}f(w,"inspect");function $(e){let t=w(e),n=Object.prototype.toString.call(e);if(E.truncateThreshold&&t.length>=E.truncateThreshold){if(n==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(n==="[object Array]")return"[ Array("+e.length+") ]";if(n==="[object Object]"){let s=Object.keys(e);return"{ Object ("+(s.length>2?s.splice(0,2).join(", ")+", ...":s.join(", "))+") }"}else return t}else return t}f($,"objDisplay");function qe(e,t){let n=b(e,"negate"),s=b(e,"object"),r=t[3],u=oe(e,t),a=n?t[2]:t[1],l=b(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return $(s)}).replace(/#\{act\}/g,function(){return $(u)}).replace(/#\{exp\}/g,function(){return $(r)}),l?l+": "+a:a}f(qe,"getMessage");function A(e,t,n){let s=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),n=arguments.length===3?n:!0;for(let r in s)(n||r!=="object"&&r!=="ssfi"&&r!=="lockSsfi"&&r!="message")&&(t.__flags[r]=s[r])}f(A,"transferFlags");function Se(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}f(Se,"type");function $e(){this._key="chai/deep-eql__"+Math.random()+Date.now()}f($e,"FakeMap");$e.prototype={get:f(function(t){return t[this._key]},"get"),set:f(function(t,n){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:n,configurable:!0})},"set")};var Zt=typeof WeakMap=="function"?WeakMap:$e;function Me(e,t,n){if(!n||B(e)||B(t))return null;var s=n.get(e);if(s){var r=s.get(t);if(typeof r=="boolean")return r}return null}f(Me,"memoizeCompare");function K(e,t,n,s){if(!(!n||B(e)||B(t))){var r=n.get(e);r?r.set(t,s):(r=new Zt,r.set(t,s),n.set(e,r))}}f(K,"memoizeSet");var Jt=W;function W(e,t,n){if(n&&n.comparator)return Ne(e,t,n);var s=ze(e,t);return s!==null?s:Ne(e,t,n)}f(W,"deepEqual");function ze(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:B(e)||B(t)?!1:null}f(ze,"simpleEqual");function Ne(e,t,n){n=n||{},n.memoize=n.memoize===!1?!1:n.memoize||new Zt;var s=n&&n.comparator,r=Me(e,t,n.memoize);if(r!==null)return r;var u=Me(t,e,n.memoize);if(u!==null)return u;if(s){var a=s(e,t);if(a===!1||a===!0)return K(e,t,n.memoize,a),a;var l=ze(e,t);if(l!==null)return l}var h=Se(e);if(h!==Se(t))return K(e,t,n.memoize,!1),!1;K(e,t,n.memoize,!0);var d=Yt(e,t,h,n);return K(e,t,n.memoize,d),d}f(Ne,"extensiveDeepEqual");function Yt(e,t,n,s){switch(n){case"String":case"Number":case"Boolean":case"Date":return W(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return _e(e,t,["name","message","code"],s);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return q(e,t,s);case"RegExp":return Qt(e,t);case"Generator":return Xt(e,t,s);case"DataView":return q(new Uint8Array(e.buffer),new Uint8Array(t.buffer),s);case"ArrayBuffer":return q(new Uint8Array(e),new Uint8Array(t),s);case"Set":return Pe(e,t,s);case"Map":return Pe(e,t,s);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return en(e,t,s)}}f(Yt,"extensiveDeepEqualByType");function Qt(e,t){return e.toString()===t.toString()}f(Qt,"regexpEqual");function Pe(e,t,n){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var s=[],r=[];return e.forEach(f(function(a,l){s.push([a,l])},"gatherEntries")),t.forEach(f(function(a,l){r.push([a,l])},"gatherEntries")),q(s.sort(),r.sort(),n)}f(Pe,"entriesEqual");function q(e,t,n){var s=e.length;if(s!==t.length)return!1;if(s===0)return!0;for(var r=-1;++r<s;)if(W(e[r],t[r],n)===!1)return!1;return!0}f(q,"iterableEqual");function Xt(e,t,n){return q(X(e),X(t),n)}f(Xt,"generatorEqual");function Ht(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}f(Ht,"hasIteratorFunction");function Ee(e){if(Ht(e))try{return X(e[Symbol.iterator]())}catch{return[]}return[]}f(Ee,"getIteratorEntries");function X(e){for(var t=e.next(),n=[t.value];t.done===!1;)t=e.next(),n.push(t.value);return n}f(X,"getGeneratorEntries");function je(e){var t=[];for(var n in e)t.push(n);return t}f(je,"getEnumerableKeys");function Oe(e){for(var t=[],n=Object.getOwnPropertySymbols(e),s=0;s<n.length;s+=1){var r=n[s];Object.getOwnPropertyDescriptor(e,r).enumerable&&t.push(r)}return t}f(Oe,"getEnumerableSymbols");function _e(e,t,n,s){var r=n.length;if(r===0)return!0;for(var u=0;u<r;u+=1)if(W(e[n[u]],t[n[u]],s)===!1)return!1;return!0}f(_e,"keysEqual");function en(e,t,n){var s=je(e),r=je(t),u=Oe(e),a=Oe(t);if(s=s.concat(u),r=r.concat(a),s.length&&s.length===r.length)return q(Ae(s).sort(),Ae(r).sort())===!1?!1:_e(e,t,s,n);var l=Ee(e),h=Ee(t);return l.length&&l.length===h.length?(l.sort(),h.sort(),q(l,h,n)):s.length===0&&l.length===0&&r.length===0&&h.length===0}f(en,"objectEqual");function B(e){return e===null||typeof e!="object"}f(B,"isPrimitive");function Ae(e){return e.map(f(function(n){return typeof n=="symbol"?n.toString():n},"mapSymbol"))}f(Ae,"mapSymbols");function ie(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}f(ie,"hasProperty");function tn(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(s=>{if(s==="constructor"||s==="__proto__"||s==="prototype")return{};const u=/^\[(\d+)\]$/.exec(s);let a=null;return u?a={i:parseFloat(u[1])}:a={p:s.replace(/\\([.[\]])/g,"$1")},a})}f(tn,"parsePath");function Ce(e,t,n){let s=e,r=null;n=typeof n>"u"?t.length:n;for(let u=0;u<n;u++){const a=t[u];s&&(typeof a.p>"u"?s=s[a.i]:s=s[a.p],u===n-1&&(r=s))}return r}f(Ce,"internalGetPathValue");function Be(e,t){const n=tn(t),s=n[n.length-1],r={parent:n.length>1?Ce(e,n,n.length-1):e,name:s.p||s.i,value:Ce(e,n)};return r.exists=ie(r.parent,r.name),r}f(Be,"getPathInfo");var _,i=(_=class{__flags={};constructor(t,n,s,r){return b(this,"ssfi",s||_),b(this,"lockSsfi",r),b(this,"object",t),b(this,"message",n),b(this,"eql",E.deepEqual||Jt),V(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),E.includeStack}static set includeStack(t){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),E.includeStack=t}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),E.showDiff}static set showDiff(t){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),E.showDiff=t}static addProperty(t,n){Fe(this.prototype,t,n)}static addMethod(t,n){ke(this.prototype,t,n)}static addChainableMethod(t,n,s){Ge(this.prototype,t,n,s)}static overwriteProperty(t,n){Ve(this.prototype,t,n)}static overwriteMethod(t,n){Ke(this.prototype,t,n)}static overwriteChainableMethod(t,n,s){We(this.prototype,t,n,s)}assert(t,n,s,r,u,a){const l=De(this,arguments);if(a!==!1&&(a=!0),r===void 0&&u===void 0&&(a=!1),E.showDiff!==!0&&(a=!1),!l){n=qe(this,arguments);const d={actual:oe(this,arguments),expected:r,showDiff:a},p=Ue(this,arguments);throw p&&(d.operator=p),new x(n,d,E.includeStack?this.assert:b(this,"ssfi"))}}get _obj(){return b(this,"object")}set _obj(t){b(this,"object",t)}},f(_,"Assertion"),_);function L(){return E.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}f(L,"isProxyEnabled");function Fe(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:f(function s(){!L()&&!b(this,"lockSsfi")&&b(this,"ssfi",s);let r=n.call(this);if(r!==void 0)return r;let u=new i;return A(this,u),u},"propertyGetter"),configurable:!0})}f(Fe,"addProperty");var Nn=Object.getOwnPropertyDescriptor(function(){},"length");function R(e,t,n){return Nn.configurable&&Object.defineProperty(e,"length",{get:f(function(){throw Error(n?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}f(R,"addLengthGuard");function nn(e){let t=Object.getOwnPropertyNames(e);function n(r){t.indexOf(r)===-1&&t.push(r)}f(n,"addProperty");let s=Object.getPrototypeOf(e);for(;s!==null;)Object.getOwnPropertyNames(s).forEach(n),s=Object.getPrototypeOf(s);return t}f(nn,"getProperties");var mt=["__flags","__methods","_obj","assert"];function V(e,t){return L()?new Proxy(e,{get:f(function n(s,r){if(typeof r=="string"&&E.proxyExcludedKeys.indexOf(r)===-1&&!Reflect.has(s,r)){if(t)throw Error("Invalid Chai property: "+t+"."+r+'. See docs for proper usage of "'+t+'".');let u=null,a=4;throw nn(s).forEach(function(l){if(!Object.prototype.hasOwnProperty(l)&&mt.indexOf(l)===-1){let h=sn(r,l,a);h<a&&(u=l,a=h)}}),Error(u!==null?"Invalid Chai property: "+r+'. Did you mean "'+u+'"?':"Invalid Chai property: "+r)}return mt.indexOf(r)===-1&&!b(s,"lockSsfi")&&b(s,"ssfi",n),Reflect.get(s,r)},"proxyGetter")}):e}f(V,"proxify");function sn(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let s=[];for(let r=0;r<=e.length;r++)s[r]=Array(t.length+1).fill(0),s[r][0]=r;for(let r=0;r<t.length;r++)s[0][r]=r;for(let r=1;r<=e.length;r++){let u=e.charCodeAt(r-1);for(let a=1;a<=t.length;a++){if(Math.abs(r-a)>=n){s[r][a]=n;continue}s[r][a]=Math.min(s[r-1][a]+1,s[r][a-1]+1,s[r-1][a-1]+(u===t.charCodeAt(a-1)?0:1))}}return s[e.length][t.length]}f(sn,"stringDistanceCapped");function ke(e,t,n){let s=f(function(){b(this,"lockSsfi")||b(this,"ssfi",s);let r=n.apply(this,arguments);if(r!==void 0)return r;let u=new i;return A(this,u),u},"methodWrapper");R(s,t,!1),e[t]=V(s,t)}f(ke,"addMethod");function Ve(e,t,n){let s=Object.getOwnPropertyDescriptor(e,t),r=f(function(){},"_super");s&&typeof s.get=="function"&&(r=s.get),Object.defineProperty(e,t,{get:f(function u(){!L()&&!b(this,"lockSsfi")&&b(this,"ssfi",u);let a=b(this,"lockSsfi");b(this,"lockSsfi",!0);let l=n(r).call(this);if(b(this,"lockSsfi",a),l!==void 0)return l;let h=new i;return A(this,h),h},"overwritingPropertyGetter"),configurable:!0})}f(Ve,"overwriteProperty");function Ke(e,t,n){let s=e[t],r=f(function(){throw new Error(t+" is not a function")},"_super");s&&typeof s=="function"&&(r=s);let u=f(function(){b(this,"lockSsfi")||b(this,"ssfi",u);let a=b(this,"lockSsfi");b(this,"lockSsfi",!0);let l=n(r).apply(this,arguments);if(b(this,"lockSsfi",a),l!==void 0)return l;let h=new i;return A(this,h),h},"overwritingMethodWrapper");R(u,t,!1),e[t]=V(u,t)}f(Ke,"overwriteMethod");var Pn=typeof Object.setPrototypeOf=="function",wt=f(function(){},"testFn"),En=Object.getOwnPropertyNames(wt).filter(function(e){let t=Object.getOwnPropertyDescriptor(wt,e);return typeof t!="object"?!0:!t.configurable}),jn=Function.prototype.call,On=Function.prototype.apply;function Ge(e,t,n,s){typeof s!="function"&&(s=f(function(){},"chainingBehavior"));let r={method:n,chainingBehavior:s};e.__methods||(e.__methods={}),e.__methods[t]=r,Object.defineProperty(e,t,{get:f(function(){r.chainingBehavior.call(this);let a=f(function(){b(this,"lockSsfi")||b(this,"ssfi",a);let l=r.method.apply(this,arguments);if(l!==void 0)return l;let h=new i;return A(this,h),h},"chainableMethodWrapper");if(R(a,t,!0),Pn){let l=Object.create(this);l.call=jn,l.apply=On,Object.setPrototypeOf(a,l)}else Object.getOwnPropertyNames(e).forEach(function(h){if(En.indexOf(h)!==-1)return;let d=Object.getOwnPropertyDescriptor(e,h);Object.defineProperty(a,h,d)});return A(this,a),V(a)},"chainableMethodGetter"),configurable:!0})}f(Ge,"addChainableMethod");function We(e,t,n,s){let r=e.__methods[t],u=r.chainingBehavior;r.chainingBehavior=f(function(){let h=s(u).call(this);if(h!==void 0)return h;let d=new i;return A(this,d),d},"overwritingChainableMethodGetter");let a=r.method;r.method=f(function(){let h=n(a).apply(this,arguments);if(h!==void 0)return h;let d=new i;return A(this,d),d},"overwritingChainableMethodWrapper")}f(We,"overwriteChainableMethod");function H(e,t){return w(e)<w(t)?-1:1}f(H,"compareByInspect");function Le(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}f(Le,"getOwnEnumerablePropertySymbols");function Re(e){return Object.keys(e).concat(Le(e))}f(Re,"getOwnEnumerableProperties");var ee=Number.isNaN;function rn(e){let t=v(e);return["Array","Object","Function"].indexOf(t)!==-1}f(rn,"isObjectType");function Ue(e,t){let n=b(e,"operator"),s=b(e,"negate"),r=t[3],u=s?t[2]:t[1];if(n)return n;if(typeof u=="function"&&(u=u()),u=u||"",!u||/\shave\s/.test(u))return;let a=rn(r);return/\snot\s/.test(u)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}f(Ue,"getOperator");function ae(e){return e.name}f(ae,"getName");function te(e){return Object.prototype.toString.call(e)==="[object RegExp]"}f(te,"isRegExp");function N(e){return["Number","BigInt"].includes(v(e))}f(N,"isNumeric");var{flag:c}=J;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){i.addProperty(e)});i.addProperty("not",function(){c(this,"negate",!0)});i.addProperty("deep",function(){c(this,"deep",!0)});i.addProperty("nested",function(){c(this,"nested",!0)});i.addProperty("own",function(){c(this,"own",!0)});i.addProperty("ordered",function(){c(this,"ordered",!0)});i.addProperty("any",function(){c(this,"any",!0),c(this,"all",!1)});i.addProperty("all",function(){c(this,"all",!0),c(this,"any",!1)});var xt={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Ze(e,t){t&&c(this,"message",t),e=e.toLowerCase();let n=c(this,"object"),s=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";const r=v(n).toLowerCase();xt.function.includes(e)?this.assert(xt[e].includes(r),"expected #{this} to be "+s+e,"expected #{this} not to be "+s+e):this.assert(e===r,"expected #{this} to be "+s+e,"expected #{this} not to be "+s+e)}f(Ze,"an");i.addChainableMethod("an",Ze);i.addChainableMethod("a",Ze);function on(e,t){return ee(e)&&ee(t)||e===t}f(on,"SameValueZero");function U(){c(this,"contains",!0)}f(U,"includeChainingBehavior");function Z(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=v(n).toLowerCase(),r=c(this,"message"),u=c(this,"negate"),a=c(this,"ssfi"),l=c(this,"deep"),h=l?"deep ":"",d=l?c(this,"eql"):on;r=r?r+": ":"";let p=!1;switch(s){case"string":p=n.indexOf(e)!==-1;break;case"weakset":if(l)throw new x(r+"unable to use .deep.include with WeakSet",void 0,a);p=n.has(e);break;case"map":n.forEach(function(g){p=p||d(g,e)});break;case"set":l?n.forEach(function(g){p=p||d(g,e)}):p=n.has(e);break;case"array":l?p=n.some(function(g){return d(g,e)}):p=n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new x(r+"the given combination of arguments ("+s+" and "+v(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+v(e).toLowerCase(),void 0,a);let g=Object.keys(e),m=null,S=0;if(g.forEach(function(y){let M=new i(n);if(A(this,M,!0),c(M,"lockSsfi",!0),!u||g.length===1){M.property(y,e[y]);return}try{M.property(y,e[y])}catch(I){if(!j.compatibleConstructor(I,x))throw I;m===null&&(m=I),S++}},this),u&&g.length>1&&S===g.length)throw m;return}}this.assert(p,"expected #{this} to "+h+"include "+w(e),"expected #{this} to not "+h+"include "+w(e))}f(Z,"include");i.addChainableMethod("include",Z,U);i.addChainableMethod("contain",Z,U);i.addChainableMethod("contains",Z,U);i.addChainableMethod("includes",Z,U);i.addProperty("ok",function(){this.assert(c(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});i.addProperty("true",function(){this.assert(c(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!c(this,"negate"))});i.addProperty("numeric",function(){const e=c(this,"object");this.assert(["Number","BigInt"].includes(v(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!c(this,"negate"))});i.addProperty("callable",function(){const e=c(this,"object"),t=c(this,"ssfi"),n=c(this,"message"),s=n?`${n}: `:"",r=c(this,"negate"),u=r?`${s}expected ${w(e)} not to be a callable function`:`${s}expected ${w(e)} to be a callable function`,a=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(v(e));if(a&&r||!a&&!r)throw new x(u,void 0,t)});i.addProperty("false",function(){this.assert(c(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!c(this,"negate"))});i.addProperty("null",function(){this.assert(c(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});i.addProperty("undefined",function(){this.assert(c(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});i.addProperty("NaN",function(){this.assert(ee(c(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function Je(){let e=c(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}f(Je,"assertExist");i.addProperty("exist",Je);i.addProperty("exists",Je);i.addProperty("empty",function(){let e=c(this,"object"),t=c(this,"ssfi"),n=c(this,"message"),s;switch(n=n?n+": ":"",v(e).toLowerCase()){case"array":case"string":s=e.length;break;case"map":case"set":s=e.size;break;case"weakmap":case"weakset":throw new x(n+".empty was passed a weak collection",void 0,t);case"function":{const r=n+".empty was passed a function "+ae(e);throw new x(r.trim(),void 0,t)}default:if(e!==Object(e))throw new x(n+".empty was passed non-string primitive "+w(e),void 0,t);s=Object.keys(e).length}this.assert(s===0,"expected #{this} to be empty","expected #{this} not to be empty")});function Ye(){let e=c(this,"object"),t=v(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}f(Ye,"checkArguments");i.addProperty("arguments",Ye);i.addProperty("Arguments",Ye);function ue(e,t){t&&c(this,"message",t);let n=c(this,"object");if(c(this,"deep")){let s=c(this,"lockSsfi");c(this,"lockSsfi",!0),this.eql(e),c(this,"lockSsfi",s)}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}f(ue,"assertEqual");i.addMethod("equal",ue);i.addMethod("equals",ue);i.addMethod("eq",ue);function Qe(e,t){t&&c(this,"message",t);let n=c(this,"eql");this.assert(n(e,c(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}f(Qe,"assertEql");i.addMethod("eql",Qe);i.addMethod("eqls",Qe);function ce(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"doLength"),r=c(this,"message"),u=r?r+": ":"",a=c(this,"ssfi"),l=v(n).toLowerCase(),h=v(e).toLowerCase();if(s&&l!=="map"&&l!=="set"&&new i(n,r,a,!0).to.have.property("length"),!s&&l==="date"&&h!=="date")throw new x(u+"the argument to above must be a date",void 0,a);if(!N(e)&&(s||N(n)))throw new x(u+"the argument to above must be a number",void 0,a);if(!s&&l!=="date"&&!N(n)){let d=l==="string"?"'"+n+"'":n;throw new x(u+"expected "+d+" to be a number or a date",void 0,a)}if(s){let d="length",p;l==="map"||l==="set"?(d="size",p=n.size):p=n.length,this.assert(p>e,"expected #{this} to have a "+d+" above #{exp} but got #{act}","expected #{this} to not have a "+d+" above #{exp}",e,p)}else this.assert(n>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}f(ce,"assertAbove");i.addMethod("above",ce);i.addMethod("gt",ce);i.addMethod("greaterThan",ce);function le(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"doLength"),r=c(this,"message"),u=r?r+": ":"",a=c(this,"ssfi"),l=v(n).toLowerCase(),h=v(e).toLowerCase(),d,p=!0;if(s&&l!=="map"&&l!=="set"&&new i(n,r,a,!0).to.have.property("length"),!s&&l==="date"&&h!=="date")d=u+"the argument to least must be a date";else if(!N(e)&&(s||N(n)))d=u+"the argument to least must be a number";else if(!s&&l!=="date"&&!N(n)){let g=l==="string"?"'"+n+"'":n;d=u+"expected "+g+" to be a number or a date"}else p=!1;if(p)throw new x(d,void 0,a);if(s){let g="length",m;l==="map"||l==="set"?(g="size",m=n.size):m=n.length,this.assert(m>=e,"expected #{this} to have a "+g+" at least #{exp} but got #{act}","expected #{this} to have a "+g+" below #{exp}",e,m)}else this.assert(n>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}f(le,"assertLeast");i.addMethod("least",le);i.addMethod("gte",le);i.addMethod("greaterThanOrEqual",le);function fe(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"doLength"),r=c(this,"message"),u=r?r+": ":"",a=c(this,"ssfi"),l=v(n).toLowerCase(),h=v(e).toLowerCase(),d,p=!0;if(s&&l!=="map"&&l!=="set"&&new i(n,r,a,!0).to.have.property("length"),!s&&l==="date"&&h!=="date")d=u+"the argument to below must be a date";else if(!N(e)&&(s||N(n)))d=u+"the argument to below must be a number";else if(!s&&l!=="date"&&!N(n)){let g=l==="string"?"'"+n+"'":n;d=u+"expected "+g+" to be a number or a date"}else p=!1;if(p)throw new x(d,void 0,a);if(s){let g="length",m;l==="map"||l==="set"?(g="size",m=n.size):m=n.length,this.assert(m<e,"expected #{this} to have a "+g+" below #{exp} but got #{act}","expected #{this} to not have a "+g+" below #{exp}",e,m)}else this.assert(n<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}f(fe,"assertBelow");i.addMethod("below",fe);i.addMethod("lt",fe);i.addMethod("lessThan",fe);function he(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"doLength"),r=c(this,"message"),u=r?r+": ":"",a=c(this,"ssfi"),l=v(n).toLowerCase(),h=v(e).toLowerCase(),d,p=!0;if(s&&l!=="map"&&l!=="set"&&new i(n,r,a,!0).to.have.property("length"),!s&&l==="date"&&h!=="date")d=u+"the argument to most must be a date";else if(!N(e)&&(s||N(n)))d=u+"the argument to most must be a number";else if(!s&&l!=="date"&&!N(n)){let g=l==="string"?"'"+n+"'":n;d=u+"expected "+g+" to be a number or a date"}else p=!1;if(p)throw new x(d,void 0,a);if(s){let g="length",m;l==="map"||l==="set"?(g="size",m=n.size):m=n.length,this.assert(m<=e,"expected #{this} to have a "+g+" at most #{exp} but got #{act}","expected #{this} to have a "+g+" above #{exp}",e,m)}else this.assert(n<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}f(he,"assertMost");i.addMethod("most",he);i.addMethod("lte",he);i.addMethod("lessThanOrEqual",he);i.addMethod("within",function(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"doLength"),u=c(this,"message"),a=u?u+": ":"",l=c(this,"ssfi"),h=v(s).toLowerCase(),d=v(e).toLowerCase(),p=v(t).toLowerCase(),g,m=!0,S=d==="date"&&p==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(r&&h!=="map"&&h!=="set"&&new i(s,u,l,!0).to.have.property("length"),!r&&h==="date"&&(d!=="date"||p!=="date"))g=a+"the arguments to within must be dates";else if((!N(e)||!N(t))&&(r||N(s)))g=a+"the arguments to within must be numbers";else if(!r&&h!=="date"&&!N(s)){let y=h==="string"?"'"+s+"'":s;g=a+"expected "+y+" to be a number or a date"}else m=!1;if(m)throw new x(g,void 0,l);if(r){let y="length",M;h==="map"||h==="set"?(y="size",M=s.size):M=s.length,this.assert(M>=e&&M<=t,"expected #{this} to have a "+y+" within "+S,"expected #{this} to not have a "+y+" within "+S)}else this.assert(s>=e&&s<=t,"expected #{this} to be within "+S,"expected #{this} to not be within "+S)});function Xe(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"ssfi"),r=c(this,"message"),u;try{u=n instanceof e}catch(l){throw l instanceof TypeError?(r=r?r+": ":"",new x(r+"The instanceof assertion needs a constructor but "+v(e)+" was given.",void 0,s)):l}let a=ae(e);a==null&&(a="an unnamed constructor"),this.assert(u,"expected #{this} to be an instance of "+a,"expected #{this} to not be an instance of "+a)}f(Xe,"assertInstanceOf");i.addMethod("instanceof",Xe);i.addMethod("instanceOf",Xe);function He(e,t,n){n&&c(this,"message",n);let s=c(this,"nested"),r=c(this,"own"),u=c(this,"message"),a=c(this,"object"),l=c(this,"ssfi"),h=typeof e;if(u=u?u+": ":"",s){if(h!=="string")throw new x(u+"the argument to property must be a string when using nested syntax",void 0,l)}else if(h!=="string"&&h!=="number"&&h!=="symbol")throw new x(u+"the argument to property must be a string, number, or symbol",void 0,l);if(s&&r)throw new x(u+'The "nested" and "own" flags cannot be combined.',void 0,l);if(a==null)throw new x(u+"Target cannot be null or undefined.",void 0,l);let d=c(this,"deep"),p=c(this,"negate"),g=s?Be(a,e):null,m=s?g.value:a[e],S=d?c(this,"eql"):(I,P)=>I===P,y="";d&&(y+="deep "),r&&(y+="own "),s&&(y+="nested "),y+="property ";let M;r?M=Object.prototype.hasOwnProperty.call(a,e):s?M=g.exists:M=ie(a,e),(!p||arguments.length===1)&&this.assert(M,"expected #{this} to have "+y+w(e),"expected #{this} to not have "+y+w(e)),arguments.length>1&&this.assert(M&&S(t,m),"expected #{this} to have "+y+w(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+y+w(e)+" of #{act}",t,m),c(this,"object",m)}f(He,"assertProperty");i.addMethod("property",He);function et(e,t,n){c(this,"own",!0),He.apply(this,arguments)}f(et,"assertOwnProperty");i.addMethod("ownProperty",et);i.addMethod("haveOwnProperty",et);function tt(e,t,n){typeof t=="string"&&(n=t,t=null),n&&c(this,"message",n);let s=c(this,"object"),r=Object.getOwnPropertyDescriptor(Object(s),e),u=c(this,"eql");r&&t?this.assert(u(t,r),"expected the own property descriptor for "+w(e)+" on #{this} to match "+w(t)+", got "+w(r),"expected the own property descriptor for "+w(e)+" on #{this} to not match "+w(t),t,r,!0):this.assert(r,"expected #{this} to have an own property descriptor for "+w(e),"expected #{this} to not have an own property descriptor for "+w(e)),c(this,"object",r)}f(tt,"assertOwnPropertyDescriptor");i.addMethod("ownPropertyDescriptor",tt);i.addMethod("haveOwnPropertyDescriptor",tt);function nt(){c(this,"doLength",!0)}f(nt,"assertLengthChain");function st(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=v(n).toLowerCase(),r=c(this,"message"),u=c(this,"ssfi"),a="length",l;switch(s){case"map":case"set":a="size",l=n.size;break;default:new i(n,r,u,!0).to.have.property("length"),l=n.length}this.assert(l==e,"expected #{this} to have a "+a+" of #{exp} but got #{act}","expected #{this} to not have a "+a+" of #{act}",e,l)}f(st,"assertLength");i.addChainableMethod("length",st,nt);i.addChainableMethod("lengthOf",st,nt);function rt(e,t){t&&c(this,"message",t);let n=c(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e)}f(rt,"assertMatch");i.addMethod("match",rt);i.addMethod("matches",rt);i.addMethod("string",function(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"message"),r=c(this,"ssfi");new i(n,s,r,!0).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+w(e),"expected #{this} to not contain "+w(e))});function ot(e){let t=c(this,"object"),n=v(t),s=v(e),r=c(this,"ssfi"),u=c(this,"deep"),a,l="",h,d=!0,p=c(this,"message");p=p?p+": ":"";let g=p+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(n==="Map"||n==="Set")l=u?"deeply ":"",h=[],t.forEach(function(P,T){h.push(T)}),s!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(h=Re(t),s){case"Array":if(arguments.length>1)throw new x(g,void 0,r);break;case"Object":if(arguments.length>1)throw new x(g,void 0,r);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(P){return typeof P=="symbol"?P:String(P)})}if(!e.length)throw new x(p+"keys required",void 0,r);let m=e.length,S=c(this,"any"),y=c(this,"all"),M=e,I=u?c(this,"eql"):(P,T)=>P===T;if(!S&&!y&&(y=!0),S&&(d=M.some(function(P){return h.some(function(T){return I(P,T)})})),y&&(d=M.every(function(P){return h.some(function(T){return I(P,T)})}),c(this,"contains")||(d=d&&e.length==h.length)),m>1){e=e.map(function(T){return w(T)});let P=e.pop();y&&(a=e.join(", ")+", and "+P),S&&(a=e.join(", ")+", or "+P)}else a=w(e[0]);a=(m>1?"keys ":"key ")+a,a=(c(this,"contains")?"contain ":"have ")+a,this.assert(d,"expected #{this} to "+l+a,"expected #{this} to not "+l+a,M.slice(0).sort(H),h.sort(H),!0)}f(ot,"assertKeys");i.addMethod("keys",ot);i.addMethod("key",ot);function de(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"ssfi"),u=c(this,"message"),a=c(this,"negate")||!1;new i(s,u,r,!0).is.a("function"),(te(e)||typeof e=="string")&&(t=e,e=null);let l,h=!1;try{s()}catch(S){h=!0,l=S}let d=e===void 0&&t===void 0,p=!!(e&&t),g=!1,m=!1;if(d||!d&&!a){let S="an error";e instanceof Error?S="#{exp}":e&&(S=j.getConstructorName(e));let y=l;if(l instanceof Error)y=l.toString();else if(typeof l=="string")y=l;else if(l&&(typeof l=="object"||typeof l=="function"))try{y=j.getConstructorName(l)}catch{}this.assert(h,"expected #{this} to throw "+S,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),y)}if(e&&l&&(e instanceof Error&&j.compatibleInstance(l,e)===a&&(p&&a?g=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l&&!a?" but #{act} was thrown":""),e.toString(),l.toString())),j.compatibleConstructor(l,e)===a&&(p&&a?g=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&j.getConstructorName(e),l instanceof Error?l.toString():l&&j.getConstructorName(l)))),l&&t!==void 0&&t!==null){let S="including";te(t)&&(S="matching"),j.compatibleMessage(l,t)===a&&(p&&a?m=!0:this.assert(a,"expected #{this} to throw error "+S+" #{exp} but got #{act}","expected #{this} to throw error not "+S+" #{exp}",t,j.getMessage(l)))}g&&m&&this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&j.getConstructorName(e),l instanceof Error?l.toString():l&&j.getConstructorName(l)),c(this,"object",l)}f(de,"assertThrows");i.addMethod("throw",de);i.addMethod("throws",de);i.addMethod("Throw",de);function it(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"itself"),r=typeof n=="function"&&!s?n.prototype[e]:n[e];this.assert(typeof r=="function","expected #{this} to respond to "+w(e),"expected #{this} to not respond to "+w(e))}f(it,"respondTo");i.addMethod("respondTo",it);i.addMethod("respondsTo",it);i.addProperty("itself",function(){c(this,"itself",!0)});function at(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=e(n);this.assert(s,"expected #{this} to satisfy "+$(e),"expected #{this} to not satisfy"+$(e),!c(this,"negate"),s)}f(at,"satisfy");i.addMethod("satisfy",at);i.addMethod("satisfies",at);function ut(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"message"),u=c(this,"ssfi");new i(s,r,u,!0).is.numeric;let a="A `delta` value is required for `closeTo`";if(t==null)throw new x(r?`${r}: ${a}`:a,void 0,u);if(new i(t,r,u,!0).is.numeric,a="A `expected` value is required for `closeTo`",e==null)throw new x(r?`${r}: ${a}`:a,void 0,u);new i(e,r,u,!0).is.numeric;const l=f(d=>d<0n?-d:d,"abs"),h=f(d=>parseFloat(parseFloat(d).toPrecision(12)),"strip");this.assert(h(l(s-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}f(ut,"closeTo");i.addMethod("closeTo",ut);i.addMethod("approximately",ut);function an(e,t,n,s,r){let u=Array.from(t),a=Array.from(e);if(!s){if(a.length!==u.length)return!1;u=u.slice()}return a.every(function(l,h){if(r)return n?n(l,u[h]):l===u[h];if(!n){let d=u.indexOf(l);return d===-1?!1:(s||u.splice(d,1),!0)}return u.some(function(d,p){return n(l,d)?(s||u.splice(p,1),!0):!1})})}f(an,"isSubsetOf");i.addMethod("members",function(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"message"),r=c(this,"ssfi");new i(n,s,r,!0).to.be.iterable,new i(e,s,r,!0).to.be.iterable;let u=c(this,"contains"),a=c(this,"ordered"),l,h,d;u?(l=a?"an ordered superset":"a superset",h="expected #{this} to be "+l+" of #{exp}",d="expected #{this} to not be "+l+" of #{exp}"):(l=a?"ordered members":"members",h="expected #{this} to have the same "+l+" as #{exp}",d="expected #{this} to not have the same "+l+" as #{exp}");let p=c(this,"deep")?c(this,"eql"):void 0;this.assert(an(e,n,p,u,a),h,d,e,n,!0)});i.addProperty("iterable",function(e){e&&c(this,"message",e);let t=c(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function un(e,t){t&&c(this,"message",t);let n=c(this,"object"),s=c(this,"message"),r=c(this,"ssfi"),u=c(this,"contains"),a=c(this,"deep"),l=c(this,"eql");new i(e,s,r,!0).to.be.an("array"),u?this.assert(e.some(function(h){return n.indexOf(h)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,n):a?this.assert(e.some(function(h){return l(n,h)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,n):this.assert(e.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,n)}f(un,"oneOf");i.addMethod("oneOf",un);function ct(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"message"),u=c(this,"ssfi");new i(s,r,u,!0).is.a("function");let a;t?(new i(e,r,u,!0).to.have.property(t),a=e[t]):(new i(e,r,u,!0).is.a("function"),a=e()),s();let l=t==null?e():e[t],h=t==null?a:"."+t;c(this,"deltaMsgObj",h),c(this,"initialDeltaValue",a),c(this,"finalDeltaValue",l),c(this,"deltaBehavior","change"),c(this,"realDelta",l!==a),this.assert(a!==l,"expected "+h+" to change","expected "+h+" to not change")}f(ct,"assertChanges");i.addMethod("change",ct);i.addMethod("changes",ct);function lt(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"message"),u=c(this,"ssfi");new i(s,r,u,!0).is.a("function");let a;t?(new i(e,r,u,!0).to.have.property(t),a=e[t]):(new i(e,r,u,!0).is.a("function"),a=e()),new i(a,r,u,!0).is.a("number"),s();let l=t==null?e():e[t],h=t==null?a:"."+t;c(this,"deltaMsgObj",h),c(this,"initialDeltaValue",a),c(this,"finalDeltaValue",l),c(this,"deltaBehavior","increase"),c(this,"realDelta",l-a),this.assert(l-a>0,"expected "+h+" to increase","expected "+h+" to not increase")}f(lt,"assertIncreases");i.addMethod("increase",lt);i.addMethod("increases",lt);function ft(e,t,n){n&&c(this,"message",n);let s=c(this,"object"),r=c(this,"message"),u=c(this,"ssfi");new i(s,r,u,!0).is.a("function");let a;t?(new i(e,r,u,!0).to.have.property(t),a=e[t]):(new i(e,r,u,!0).is.a("function"),a=e()),new i(a,r,u,!0).is.a("number"),s();let l=t==null?e():e[t],h=t==null?a:"."+t;c(this,"deltaMsgObj",h),c(this,"initialDeltaValue",a),c(this,"finalDeltaValue",l),c(this,"deltaBehavior","decrease"),c(this,"realDelta",a-l),this.assert(l-a<0,"expected "+h+" to decrease","expected "+h+" to not decrease")}f(ft,"assertDecreases");i.addMethod("decrease",ft);i.addMethod("decreases",ft);function cn(e,t){t&&c(this,"message",t);let n=c(this,"deltaMsgObj"),s=c(this,"initialDeltaValue"),r=c(this,"finalDeltaValue"),u=c(this,"deltaBehavior"),a=c(this,"realDelta"),l;u==="change"?l=Math.abs(r-s)===Math.abs(e):l=a===Math.abs(e),this.assert(l,"expected "+n+" to "+u+" by "+e,"expected "+n+" to not "+u+" by "+e)}f(cn,"assertDelta");i.addMethod("by",cn);i.addProperty("extensible",function(){let e=c(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});i.addProperty("sealed",function(){let e=c(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});i.addProperty("frozen",function(){let e=c(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});i.addProperty("finite",function(e){let t=c(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function ne(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(n){return t.some(function(s){return ne(n,s)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(n){let s=e[n],r=t[n];return typeof s=="object"&&s!==null&&r!==null?ne(s,r):typeof s=="function"?s(r):r===s}):!1}f(ne,"compareSubset");i.addMethod("containSubset",function(e){const t=b(this,"object"),n=E.showDiff;this.assert(ne(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,n)});function se(e,t){return new i(e,t)}f(se,"expect");se.fail=function(e,t,n,s){throw arguments.length<2&&(n=e,e=void 0),n=n||"expect.fail()",new x(n,{actual:e,expected:t,operator:s},se.fail)};var ln={};Te(ln,{Should:()=>Cn,should:()=>An});function ht(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new i(this.valueOf(),null,e):new i(this,null,e)}f(e,"shouldGetter");function t(s){Object.defineProperty(this,"should",{value:s,enumerable:!0,configurable:!0,writable:!0})}f(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let n={};return n.fail=function(s,r,u,a){throw arguments.length<2&&(u=s,s=void 0),u=u||"should.fail()",new x(u,{actual:s,expected:r,operator:a},n.fail)},n.equal=function(s,r,u){new i(s,u).to.equal(r)},n.Throw=function(s,r,u,a){new i(s,a).to.Throw(r,u)},n.exist=function(s,r){new i(s,r).to.exist},n.not={},n.not.equal=function(s,r,u){new i(s,u).to.not.equal(r)},n.not.Throw=function(s,r,u,a){new i(s,a).to.not.Throw(r,u)},n.not.exist=function(s,r){new i(s,r).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}f(ht,"loadShould");var An=ht,Cn=ht;function o(e,t){new i(null,null,o,!0).assert(e,t,"[ negation message unavailable ]")}f(o,"assert");o.fail=function(e,t,n,s){throw arguments.length<2&&(n=e,e=void 0),n=n||"assert.fail()",new x(n,{actual:e,expected:t,operator:s},o.fail)};o.isOk=function(e,t){new i(e,t,o.isOk,!0).is.ok};o.isNotOk=function(e,t){new i(e,t,o.isNotOk,!0).is.not.ok};o.equal=function(e,t,n){let s=new i(e,n,o.equal,!0);s.assert(t==b(s,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};o.notEqual=function(e,t,n){let s=new i(e,n,o.notEqual,!0);s.assert(t!=b(s,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};o.strictEqual=function(e,t,n){new i(e,n,o.strictEqual,!0).to.equal(t)};o.notStrictEqual=function(e,t,n){new i(e,n,o.notStrictEqual,!0).to.not.equal(t)};o.deepEqual=o.deepStrictEqual=function(e,t,n){new i(e,n,o.deepEqual,!0).to.eql(t)};o.notDeepEqual=function(e,t,n){new i(e,n,o.notDeepEqual,!0).to.not.eql(t)};o.isAbove=function(e,t,n){new i(e,n,o.isAbove,!0).to.be.above(t)};o.isAtLeast=function(e,t,n){new i(e,n,o.isAtLeast,!0).to.be.least(t)};o.isBelow=function(e,t,n){new i(e,n,o.isBelow,!0).to.be.below(t)};o.isAtMost=function(e,t,n){new i(e,n,o.isAtMost,!0).to.be.most(t)};o.isTrue=function(e,t){new i(e,t,o.isTrue,!0).is.true};o.isNotTrue=function(e,t){new i(e,t,o.isNotTrue,!0).to.not.equal(!0)};o.isFalse=function(e,t){new i(e,t,o.isFalse,!0).is.false};o.isNotFalse=function(e,t){new i(e,t,o.isNotFalse,!0).to.not.equal(!1)};o.isNull=function(e,t){new i(e,t,o.isNull,!0).to.equal(null)};o.isNotNull=function(e,t){new i(e,t,o.isNotNull,!0).to.not.equal(null)};o.isNaN=function(e,t){new i(e,t,o.isNaN,!0).to.be.NaN};o.isNotNaN=function(e,t){new i(e,t,o.isNotNaN,!0).not.to.be.NaN};o.exists=function(e,t){new i(e,t,o.exists,!0).to.exist};o.notExists=function(e,t){new i(e,t,o.notExists,!0).to.not.exist};o.isUndefined=function(e,t){new i(e,t,o.isUndefined,!0).to.equal(void 0)};o.isDefined=function(e,t){new i(e,t,o.isDefined,!0).to.not.equal(void 0)};o.isCallable=function(e,t){new i(e,t,o.isCallable,!0).is.callable};o.isNotCallable=function(e,t){new i(e,t,o.isNotCallable,!0).is.not.callable};o.isObject=function(e,t){new i(e,t,o.isObject,!0).to.be.a("object")};o.isNotObject=function(e,t){new i(e,t,o.isNotObject,!0).to.not.be.a("object")};o.isArray=function(e,t){new i(e,t,o.isArray,!0).to.be.an("array")};o.isNotArray=function(e,t){new i(e,t,o.isNotArray,!0).to.not.be.an("array")};o.isString=function(e,t){new i(e,t,o.isString,!0).to.be.a("string")};o.isNotString=function(e,t){new i(e,t,o.isNotString,!0).to.not.be.a("string")};o.isNumber=function(e,t){new i(e,t,o.isNumber,!0).to.be.a("number")};o.isNotNumber=function(e,t){new i(e,t,o.isNotNumber,!0).to.not.be.a("number")};o.isNumeric=function(e,t){new i(e,t,o.isNumeric,!0).is.numeric};o.isNotNumeric=function(e,t){new i(e,t,o.isNotNumeric,!0).is.not.numeric};o.isFinite=function(e,t){new i(e,t,o.isFinite,!0).to.be.finite};o.isBoolean=function(e,t){new i(e,t,o.isBoolean,!0).to.be.a("boolean")};o.isNotBoolean=function(e,t){new i(e,t,o.isNotBoolean,!0).to.not.be.a("boolean")};o.typeOf=function(e,t,n){new i(e,n,o.typeOf,!0).to.be.a(t)};o.notTypeOf=function(e,t,n){new i(e,n,o.notTypeOf,!0).to.not.be.a(t)};o.instanceOf=function(e,t,n){new i(e,n,o.instanceOf,!0).to.be.instanceOf(t)};o.notInstanceOf=function(e,t,n){new i(e,n,o.notInstanceOf,!0).to.not.be.instanceOf(t)};o.include=function(e,t,n){new i(e,n,o.include,!0).include(t)};o.notInclude=function(e,t,n){new i(e,n,o.notInclude,!0).not.include(t)};o.deepInclude=function(e,t,n){new i(e,n,o.deepInclude,!0).deep.include(t)};o.notDeepInclude=function(e,t,n){new i(e,n,o.notDeepInclude,!0).not.deep.include(t)};o.nestedInclude=function(e,t,n){new i(e,n,o.nestedInclude,!0).nested.include(t)};o.notNestedInclude=function(e,t,n){new i(e,n,o.notNestedInclude,!0).not.nested.include(t)};o.deepNestedInclude=function(e,t,n){new i(e,n,o.deepNestedInclude,!0).deep.nested.include(t)};o.notDeepNestedInclude=function(e,t,n){new i(e,n,o.notDeepNestedInclude,!0).not.deep.nested.include(t)};o.ownInclude=function(e,t,n){new i(e,n,o.ownInclude,!0).own.include(t)};o.notOwnInclude=function(e,t,n){new i(e,n,o.notOwnInclude,!0).not.own.include(t)};o.deepOwnInclude=function(e,t,n){new i(e,n,o.deepOwnInclude,!0).deep.own.include(t)};o.notDeepOwnInclude=function(e,t,n){new i(e,n,o.notDeepOwnInclude,!0).not.deep.own.include(t)};o.match=function(e,t,n){new i(e,n,o.match,!0).to.match(t)};o.notMatch=function(e,t,n){new i(e,n,o.notMatch,!0).to.not.match(t)};o.property=function(e,t,n){new i(e,n,o.property,!0).to.have.property(t)};o.notProperty=function(e,t,n){new i(e,n,o.notProperty,!0).to.not.have.property(t)};o.propertyVal=function(e,t,n,s){new i(e,s,o.propertyVal,!0).to.have.property(t,n)};o.notPropertyVal=function(e,t,n,s){new i(e,s,o.notPropertyVal,!0).to.not.have.property(t,n)};o.deepPropertyVal=function(e,t,n,s){new i(e,s,o.deepPropertyVal,!0).to.have.deep.property(t,n)};o.notDeepPropertyVal=function(e,t,n,s){new i(e,s,o.notDeepPropertyVal,!0).to.not.have.deep.property(t,n)};o.ownProperty=function(e,t,n){new i(e,n,o.ownProperty,!0).to.have.own.property(t)};o.notOwnProperty=function(e,t,n){new i(e,n,o.notOwnProperty,!0).to.not.have.own.property(t)};o.ownPropertyVal=function(e,t,n,s){new i(e,s,o.ownPropertyVal,!0).to.have.own.property(t,n)};o.notOwnPropertyVal=function(e,t,n,s){new i(e,s,o.notOwnPropertyVal,!0).to.not.have.own.property(t,n)};o.deepOwnPropertyVal=function(e,t,n,s){new i(e,s,o.deepOwnPropertyVal,!0).to.have.deep.own.property(t,n)};o.notDeepOwnPropertyVal=function(e,t,n,s){new i(e,s,o.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,n)};o.nestedProperty=function(e,t,n){new i(e,n,o.nestedProperty,!0).to.have.nested.property(t)};o.notNestedProperty=function(e,t,n){new i(e,n,o.notNestedProperty,!0).to.not.have.nested.property(t)};o.nestedPropertyVal=function(e,t,n,s){new i(e,s,o.nestedPropertyVal,!0).to.have.nested.property(t,n)};o.notNestedPropertyVal=function(e,t,n,s){new i(e,s,o.notNestedPropertyVal,!0).to.not.have.nested.property(t,n)};o.deepNestedPropertyVal=function(e,t,n,s){new i(e,s,o.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,n)};o.notDeepNestedPropertyVal=function(e,t,n,s){new i(e,s,o.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,n)};o.lengthOf=function(e,t,n){new i(e,n,o.lengthOf,!0).to.have.lengthOf(t)};o.hasAnyKeys=function(e,t,n){new i(e,n,o.hasAnyKeys,!0).to.have.any.keys(t)};o.hasAllKeys=function(e,t,n){new i(e,n,o.hasAllKeys,!0).to.have.all.keys(t)};o.containsAllKeys=function(e,t,n){new i(e,n,o.containsAllKeys,!0).to.contain.all.keys(t)};o.doesNotHaveAnyKeys=function(e,t,n){new i(e,n,o.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};o.doesNotHaveAllKeys=function(e,t,n){new i(e,n,o.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};o.hasAnyDeepKeys=function(e,t,n){new i(e,n,o.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};o.hasAllDeepKeys=function(e,t,n){new i(e,n,o.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};o.containsAllDeepKeys=function(e,t,n){new i(e,n,o.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};o.doesNotHaveAnyDeepKeys=function(e,t,n){new i(e,n,o.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};o.doesNotHaveAllDeepKeys=function(e,t,n){new i(e,n,o.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};o.throws=function(e,t,n,s){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null);let r=new i(e,s,o.throws,!0).to.throw(t,n);return b(r,"object")};o.doesNotThrow=function(e,t,n,s){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null),new i(e,s,o.doesNotThrow,!0).to.not.throw(t,n)};o.operator=function(e,t,n,s){let r;switch(t){case"==":r=e==n;break;case"===":r=e===n;break;case">":r=e>n;break;case">=":r=e>=n;break;case"<":r=e<n;break;case"<=":r=e<=n;break;case"!=":r=e!=n;break;case"!==":r=e!==n;break;default:throw s=s&&s+": ",new x(s+'Invalid operator "'+t+'"',void 0,o.operator)}let u=new i(r,s,o.operator,!0);u.assert(b(u,"object")===!0,"expected "+w(e)+" to be "+t+" "+w(n),"expected "+w(e)+" to not be "+t+" "+w(n))};o.closeTo=function(e,t,n,s){new i(e,s,o.closeTo,!0).to.be.closeTo(t,n)};o.approximately=function(e,t,n,s){new i(e,s,o.approximately,!0).to.be.approximately(t,n)};o.sameMembers=function(e,t,n){new i(e,n,o.sameMembers,!0).to.have.same.members(t)};o.notSameMembers=function(e,t,n){new i(e,n,o.notSameMembers,!0).to.not.have.same.members(t)};o.sameDeepMembers=function(e,t,n){new i(e,n,o.sameDeepMembers,!0).to.have.same.deep.members(t)};o.notSameDeepMembers=function(e,t,n){new i(e,n,o.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};o.sameOrderedMembers=function(e,t,n){new i(e,n,o.sameOrderedMembers,!0).to.have.same.ordered.members(t)};o.notSameOrderedMembers=function(e,t,n){new i(e,n,o.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};o.sameDeepOrderedMembers=function(e,t,n){new i(e,n,o.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};o.notSameDeepOrderedMembers=function(e,t,n){new i(e,n,o.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};o.includeMembers=function(e,t,n){new i(e,n,o.includeMembers,!0).to.include.members(t)};o.notIncludeMembers=function(e,t,n){new i(e,n,o.notIncludeMembers,!0).to.not.include.members(t)};o.includeDeepMembers=function(e,t,n){new i(e,n,o.includeDeepMembers,!0).to.include.deep.members(t)};o.notIncludeDeepMembers=function(e,t,n){new i(e,n,o.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};o.includeOrderedMembers=function(e,t,n){new i(e,n,o.includeOrderedMembers,!0).to.include.ordered.members(t)};o.notIncludeOrderedMembers=function(e,t,n){new i(e,n,o.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};o.includeDeepOrderedMembers=function(e,t,n){new i(e,n,o.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};o.notIncludeDeepOrderedMembers=function(e,t,n){new i(e,n,o.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};o.oneOf=function(e,t,n){new i(e,n,o.oneOf,!0).to.be.oneOf(t)};o.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${w(e)} to be an iterable`:`expected ${w(e)} to be an iterable`,new x(t,void 0,o.isIterable)};o.changes=function(e,t,n,s){arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.changes,!0).to.change(t,n)};o.changesBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.changesBy,!0).to.change(t,n).by(s)};o.doesNotChange=function(e,t,n,s){return arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.doesNotChange,!0).to.not.change(t,n)};o.changesButNotBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.changesButNotBy,!0).to.change(t,n).but.not.by(s)};o.increases=function(e,t,n,s){return arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.increases,!0).to.increase(t,n)};o.increasesBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.increasesBy,!0).to.increase(t,n).by(s)};o.doesNotIncrease=function(e,t,n,s){return arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.doesNotIncrease,!0).to.not.increase(t,n)};o.increasesButNotBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.increasesButNotBy,!0).to.increase(t,n).but.not.by(s)};o.decreases=function(e,t,n,s){return arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.decreases,!0).to.decrease(t,n)};o.decreasesBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.decreasesBy,!0).to.decrease(t,n).by(s)};o.doesNotDecrease=function(e,t,n,s){return arguments.length===3&&typeof t=="function"&&(s=n,n=null),new i(e,s,o.doesNotDecrease,!0).to.not.decrease(t,n)};o.doesNotDecreaseBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);return new i(e,r,o.doesNotDecreaseBy,!0).to.not.decrease(t,n).by(s)};o.decreasesButNotBy=function(e,t,n,s,r){if(arguments.length===4&&typeof t=="function"){let u=s;s=n,r=u}else arguments.length===3&&(s=n,n=null);new i(e,r,o.decreasesButNotBy,!0).to.decrease(t,n).but.not.by(s)};o.ifError=function(e){if(e)throw e};o.isExtensible=function(e,t){new i(e,t,o.isExtensible,!0).to.be.extensible};o.isNotExtensible=function(e,t){new i(e,t,o.isNotExtensible,!0).to.not.be.extensible};o.isSealed=function(e,t){new i(e,t,o.isSealed,!0).to.be.sealed};o.isNotSealed=function(e,t){new i(e,t,o.isNotSealed,!0).to.not.be.sealed};o.isFrozen=function(e,t){new i(e,t,o.isFrozen,!0).to.be.frozen};o.isNotFrozen=function(e,t){new i(e,t,o.isNotFrozen,!0).to.not.be.frozen};o.isEmpty=function(e,t){new i(e,t,o.isEmpty,!0).to.be.empty};o.isNotEmpty=function(e,t){new i(e,t,o.isNotEmpty,!0).to.not.be.empty};o.containsSubset=function(e,t,n){new i(e,n).to.containSubset(t)};o.doesNotContainSubset=function(e,t,n){new i(e,n).to.not.containSubset(t)};var Tn=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(const[e,t]of Tn)o[t]=o[e];var vt=[];function fn(e){const t={use:fn,AssertionError:x,util:J,config:E,expect:se,assert:o,Assertion:i,...ln};return~vt.indexOf(e)||(e(t,J),vt.push(e)),t}f(fn,"use");export{i as Assertion,x as AssertionError,Cn as Should,o as assert,E as config,se as expect,An as should,fn as use,J as util};
@@ -1 +1 @@
1
- import g from"../../../color-name@2.0.2/node_modules/color-name/index.js";const M={};for(const n of Object.keys(g))M[g[n]]=n;const a={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},f=(6/29)**3;function b(n){const o=n>.0031308?1.055*n**.4166666666666667-.055:n*12.92;return Math.min(Math.max(0,o),1)}function m(n){return n>.04045?((n+.055)/1.055)**2.4:n/12.92}for(const n of Object.keys(a)){if(!("channels"in a[n]))throw new Error("missing channels property: "+n);if(!("labels"in a[n]))throw new Error("missing channel labels property: "+n);if(a[n].labels.length!==a[n].channels)throw new Error("channel and label counts mismatch: "+n);const{channels:o,labels:s}=a[n];delete a[n].channels,delete a[n].labels,Object.defineProperty(a[n],"channels",{value:o}),Object.defineProperty(a[n],"labels",{value:s})}a.rgb.hsl=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(o,s,c),e=Math.max(o,s,c),r=e-t;let l,_;switch(e){case t:{l=0;break}case o:{l=(s-c)/r;break}case s:{l=2+(c-o)/r;break}case c:{l=4+(o-s)/r;break}}l=Math.min(l*60,360),l<0&&(l+=360);const i=(t+e)/2;return e===t?_=0:i<=.5?_=r/(e+t):_=r/(2-e-t),[l,_*100,i*100]};a.rgb.hsv=function(n){let o,s,c,t,e;const r=n[0]/255,l=n[1]/255,_=n[2]/255,i=Math.max(r,l,_),u=i-Math.min(r,l,_),h=function(k){return(i-k)/6/u+1/2};if(u===0)t=0,e=0;else{switch(e=u/i,o=h(r),s=h(l),c=h(_),i){case r:{t=c-s;break}case l:{t=1/3+o-c;break}case _:{t=2/3+s-o;break}}t<0?t+=1:t>1&&(t-=1)}return[t*360,e*100,i*100]};a.rgb.hwb=function(n){const o=n[0],s=n[1];let c=n[2];const t=a.rgb.hsl(n)[0],e=1/255*Math.min(o,Math.min(s,c));return c=1-1/255*Math.max(o,Math.max(s,c)),[t,e*100,c*100]};a.rgb.oklab=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=Math.cbrt(.4122214708*o+.5363325363*s+.0514459929*c),e=Math.cbrt(.2119034982*o+.6806995451*s+.1073969566*c),r=Math.cbrt(.0883024619*o+.2817188376*s+.6299787005*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.rgb.cmyk=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(1-o,1-s,1-c),e=(1-o-t)/(1-t)||0,r=(1-s-t)/(1-t)||0,l=(1-c-t)/(1-t)||0;return[e*100,r*100,l*100,t*100]};function y(n,o){return(n[0]-o[0])**2+(n[1]-o[1])**2+(n[2]-o[2])**2}a.rgb.keyword=function(n){const o=M[n];if(o)return o;let s=Number.POSITIVE_INFINITY,c;for(const t of Object.keys(g)){const e=g[t],r=y(n,e);r<s&&(s=r,c=t)}return c};a.keyword.rgb=function(n){return g[n]};a.rgb.xyz=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=o*.4124564+s*.3575761+c*.1804375,e=o*.2126729+s*.7151522+c*.072175,r=o*.0193339+s*.119192+c*.9503041;return[t*100,e*100,r*100]};a.rgb.lab=function(n){const o=a.rgb.xyz(n);let s=o[0],c=o[1],t=o[2];s/=95.047,c/=100,t/=108.883,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116,t=t>f?t**(1/3):7.787*t+16/116;const e=116*c-16,r=500*(s-c),l=200*(c-t);return[e,r,l]};a.hsl.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;let t,e;if(s===0)return e=c*255,[e,e,e];const r=c<.5?c*(1+s):c+s-c*s,l=2*c-r,_=[0,0,0];for(let i=0;i<3;i++)t=o+1/3*-(i-1),t<0&&t++,t>1&&t--,6*t<1?e=l+(r-l)*6*t:2*t<1?e=r:3*t<2?e=l+(r-l)*(2/3-t)*6:e=l,_[i]=e*255;return _};a.hsl.hsv=function(n){const o=n[0];let s=n[1]/100,c=n[2]/100,t=s;const e=Math.max(c,.01);c*=2,s*=c<=1?c:2-c,t*=e<=1?e:2-e;const r=(c+s)/2,l=c===0?2*t/(e+t):2*s/(c+s);return[o,l*100,r*100]};a.hsv.rgb=function(n){const o=n[0]/60,s=n[1]/100;let c=n[2]/100;const t=Math.floor(o)%6,e=o-Math.floor(o),r=255*c*(1-s),l=255*c*(1-s*e),_=255*c*(1-s*(1-e));switch(c*=255,t){case 0:return[c,_,r];case 1:return[l,c,r];case 2:return[r,c,_];case 3:return[r,l,c];case 4:return[_,r,c];case 5:return[c,r,l]}};a.hsv.hsl=function(n){const o=n[0],s=n[1]/100,c=n[2]/100,t=Math.max(c,.01);let e,r;r=(2-s)*c;const l=(2-s)*t;return e=s*t,e/=l<=1?l:2-l,e=e||0,r/=2,[o,e*100,r*100]};a.hwb.rgb=function(n){const o=n[0]/360;let s=n[1]/100,c=n[2]/100;const t=s+c;let e;t>1&&(s/=t,c/=t);const r=Math.floor(6*o),l=1-c;e=6*o-r,(r&1)!==0&&(e=1-e);const _=s+e*(l-s);let i,u,h;switch(r){default:case 6:case 0:{i=l,u=_,h=s;break}case 1:{i=_,u=l,h=s;break}case 2:{i=s,u=l,h=_;break}case 3:{i=s,u=_,h=l;break}case 4:{i=_,u=s,h=l;break}case 5:{i=l,u=s,h=_;break}}return[i*255,u*255,h*255]};a.cmyk.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=n[3]/100,e=1-Math.min(1,o*(1-t)+t),r=1-Math.min(1,s*(1-t)+t),l=1-Math.min(1,c*(1-t)+t);return[e*255,r*255,l*255]};a.xyz.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100;let t,e,r;return t=o*3.2404542+s*-1.5371385+c*-.4985314,e=o*-.969266+s*1.8760108+c*.041556,r=o*.0556434+s*-.2040259+c*1.0572252,t=b(t),e=b(e),r=b(r),[t*255,e*255,r*255]};a.xyz.lab=function(n){let o=n[0],s=n[1],c=n[2];o/=95.047,s/=100,c/=108.883,o=o>f?o**(1/3):7.787*o+16/116,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116;const t=116*s-16,e=500*(o-s),r=200*(s-c);return[t,e,r]};a.xyz.oklab=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=Math.cbrt(.8189330101*o+.3618667424*s-.1288597137*c),e=Math.cbrt(.0329845436*o+.9293118715*s+.0361456387*c),r=Math.cbrt(.0482003018*o+.2643662691*s+.633851707*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.oklab.oklch=function(n){return a.lab.lch(n)};a.oklab.xyz=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(.999999998*o+.396337792*s+.215803758*c)**3,e=(1.000000008*o-.105561342*s-.063854175*c)**3,r=(1.000000055*o-.089484182*s-1.291485538*c)**3,l=1.227013851*t-.55779998*e+.281256149*r,_=-.040580178*t+1.11225687*e-.071676679*r,i=-.076381285*t-.421481978*e+1.58616322*r;return[l*100,_*100,i*100]};a.oklab.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(o+.3963377774*s+.2158037573*c)**3,e=(o-.1055613458*s-.0638541728*c)**3,r=(o-.0894841775*s-1.291485548*c)**3,l=b(4.0767416621*t-3.3077115913*e+.2309699292*r),_=b(-1.2684380046*t+2.6097574011*e-.3413193965*r),i=b(-.0041960863*t-.7034186147*e+1.707614701*r);return[l*255,_*255,i*255]};a.oklch.oklab=function(n){return a.lch.lab(n)};a.lab.xyz=function(n){const o=n[0],s=n[1],c=n[2];let t,e,r;e=(o+16)/116,t=s/500+e,r=e-c/200;const l=e**3,_=t**3,i=r**3;return e=l>f?l:(e-16/116)/7.787,t=_>f?_:(t-16/116)/7.787,r=i>f?i:(r-16/116)/7.787,t*=95.047,e*=100,r*=108.883,[t,e,r]};a.lab.lch=function(n){const o=n[0],s=n[1],c=n[2];let t;t=Math.atan2(c,s)*360/2/Math.PI,t<0&&(t+=360);const r=Math.sqrt(s*s+c*c);return[o,r,t]};a.lch.lab=function(n){const o=n[0],s=n[1],t=n[2]/360*2*Math.PI,e=s*Math.cos(t),r=s*Math.sin(t);return[o,e,r]};a.rgb.ansi16=function(n,o=null){const[s,c,t]=n;let e=o===null?a.rgb.hsv(n)[2]:o;if(e=Math.round(e/50),e===0)return 30;let r=30+(Math.round(t/255)<<2|Math.round(c/255)<<1|Math.round(s/255));return e===2&&(r+=60),r};a.hsv.ansi16=function(n){return a.rgb.ansi16(a.hsv.rgb(n),n[2])};a.rgb.ansi256=function(n){const o=n[0],s=n[1],c=n[2];return o>>4===s>>4&&s>>4===c>>4?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(c/255*5)};a.ansi16.rgb=function(n){n=n[0];let o=n%10;if(o===0||o===7)return n>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const s=(Math.trunc(n>50)+1)*.5,c=(o&1)*s*255,t=(o>>1&1)*s*255,e=(o>>2&1)*s*255;return[c,t,e]};a.ansi256.rgb=function(n){if(n=n[0],n>=232){const e=(n-232)*10+8;return[e,e,e]}n-=16;let o;const s=Math.floor(n/36)/5*255,c=Math.floor((o=n%36)/6)/5*255,t=o%6/5*255;return[s,c,t]};a.rgb.hex=function(n){const s=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".slice(s.length)+s};a.hex.rgb=function(n){const o=n.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=[...s].map(l=>l+l).join(""));const c=Number.parseInt(s,16),t=c>>16&255,e=c>>8&255,r=c&255;return[t,e,r]};a.rgb.hcg=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.max(Math.max(o,s),c),e=Math.min(Math.min(o,s),c),r=t-e;let l;const _=r<1?e/(1-r):0;return r<=0?l=0:t===o?l=(s-c)/r%6:t===s?l=2+(c-o)/r:l=4+(o-s)/r,l/=6,l%=1,[l*360,r*100,_*100]};a.hsl.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=s<.5?2*o*s:2*o*(1-s);let t=0;return c<1&&(t=(s-.5*c)/(1-c)),[n[0],c*100,t*100]};a.hsv.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=o*s;let t=0;return c<1&&(t=(s-c)/(1-c)),[n[0],c*100,t*100]};a.hcg.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;if(s===0)return[c*255,c*255,c*255];const t=[0,0,0],e=o%1*6,r=e%1,l=1-r;let _=0;switch(Math.floor(e)){case 0:{t[0]=1,t[1]=r,t[2]=0;break}case 1:{t[0]=l,t[1]=1,t[2]=0;break}case 2:{t[0]=0,t[1]=1,t[2]=r;break}case 3:{t[0]=0,t[1]=l,t[2]=1;break}case 4:{t[0]=r,t[1]=0,t[2]=1;break}default:t[0]=1,t[1]=0,t[2]=l}return _=(1-s)*c,[(s*t[0]+_)*255,(s*t[1]+_)*255,(s*t[2]+_)*255]};a.hcg.hsv=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);let t=0;return c>0&&(t=o/c),[n[0],t*100,c*100]};a.hcg.hsl=function(n){const o=n[1]/100,c=n[2]/100*(1-o)+.5*o;let t=0;return c>0&&c<.5?t=o/(2*c):c>=.5&&c<1&&(t=o/(2*(1-c))),[n[0],t*100,c*100]};a.hcg.hwb=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);return[n[0],(c-o)*100,(1-c)*100]};a.hwb.hcg=function(n){const o=n[1]/100,c=1-n[2]/100,t=c-o;let e=0;return t<1&&(e=(c-t)/(1-t)),[n[0],t*100,e*100]};a.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]};a.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]};a.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};a.gray.hsl=function(n){return[0,0,n[0]]};a.gray.hsv=a.gray.hsl;a.gray.hwb=function(n){return[0,100,n[0]]};a.gray.cmyk=function(n){return[0,0,0,n[0]]};a.gray.lab=function(n){return[n[0],0,0]};a.gray.hex=function(n){const o=Math.round(n[0]/100*255)&255,c=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".slice(c.length)+c};a.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]};export{a as default};
1
+ import g from"../../../color-name@2.1.0/node_modules/color-name/index.js";const M={};for(const n of Object.keys(g))M[g[n]]=n;const a={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},f=(6/29)**3;function b(n){const o=n>.0031308?1.055*n**.4166666666666667-.055:n*12.92;return Math.min(Math.max(0,o),1)}function m(n){return n>.04045?((n+.055)/1.055)**2.4:n/12.92}for(const n of Object.keys(a)){if(!("channels"in a[n]))throw new Error("missing channels property: "+n);if(!("labels"in a[n]))throw new Error("missing channel labels property: "+n);if(a[n].labels.length!==a[n].channels)throw new Error("channel and label counts mismatch: "+n);const{channels:o,labels:s}=a[n];delete a[n].channels,delete a[n].labels,Object.defineProperty(a[n],"channels",{value:o}),Object.defineProperty(a[n],"labels",{value:s})}a.rgb.hsl=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(o,s,c),e=Math.max(o,s,c),r=e-t;let l,_;switch(e){case t:{l=0;break}case o:{l=(s-c)/r;break}case s:{l=2+(c-o)/r;break}case c:{l=4+(o-s)/r;break}}l=Math.min(l*60,360),l<0&&(l+=360);const i=(t+e)/2;return e===t?_=0:i<=.5?_=r/(e+t):_=r/(2-e-t),[l,_*100,i*100]};a.rgb.hsv=function(n){let o,s,c,t,e;const r=n[0]/255,l=n[1]/255,_=n[2]/255,i=Math.max(r,l,_),u=i-Math.min(r,l,_),h=function(k){return(i-k)/6/u+1/2};if(u===0)t=0,e=0;else{switch(e=u/i,o=h(r),s=h(l),c=h(_),i){case r:{t=c-s;break}case l:{t=1/3+o-c;break}case _:{t=2/3+s-o;break}}t<0?t+=1:t>1&&(t-=1)}return[t*360,e*100,i*100]};a.rgb.hwb=function(n){const o=n[0],s=n[1];let c=n[2];const t=a.rgb.hsl(n)[0],e=1/255*Math.min(o,Math.min(s,c));return c=1-1/255*Math.max(o,Math.max(s,c)),[t,e*100,c*100]};a.rgb.oklab=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=Math.cbrt(.4122214708*o+.5363325363*s+.0514459929*c),e=Math.cbrt(.2119034982*o+.6806995451*s+.1073969566*c),r=Math.cbrt(.0883024619*o+.2817188376*s+.6299787005*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.rgb.cmyk=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(1-o,1-s,1-c),e=(1-o-t)/(1-t)||0,r=(1-s-t)/(1-t)||0,l=(1-c-t)/(1-t)||0;return[e*100,r*100,l*100,t*100]};function y(n,o){return(n[0]-o[0])**2+(n[1]-o[1])**2+(n[2]-o[2])**2}a.rgb.keyword=function(n){const o=M[n];if(o)return o;let s=Number.POSITIVE_INFINITY,c;for(const t of Object.keys(g)){const e=g[t],r=y(n,e);r<s&&(s=r,c=t)}return c};a.keyword.rgb=function(n){return g[n]};a.rgb.xyz=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=o*.4124564+s*.3575761+c*.1804375,e=o*.2126729+s*.7151522+c*.072175,r=o*.0193339+s*.119192+c*.9503041;return[t*100,e*100,r*100]};a.rgb.lab=function(n){const o=a.rgb.xyz(n);let s=o[0],c=o[1],t=o[2];s/=95.047,c/=100,t/=108.883,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116,t=t>f?t**(1/3):7.787*t+16/116;const e=116*c-16,r=500*(s-c),l=200*(c-t);return[e,r,l]};a.hsl.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;let t,e;if(s===0)return e=c*255,[e,e,e];const r=c<.5?c*(1+s):c+s-c*s,l=2*c-r,_=[0,0,0];for(let i=0;i<3;i++)t=o+1/3*-(i-1),t<0&&t++,t>1&&t--,6*t<1?e=l+(r-l)*6*t:2*t<1?e=r:3*t<2?e=l+(r-l)*(2/3-t)*6:e=l,_[i]=e*255;return _};a.hsl.hsv=function(n){const o=n[0];let s=n[1]/100,c=n[2]/100,t=s;const e=Math.max(c,.01);c*=2,s*=c<=1?c:2-c,t*=e<=1?e:2-e;const r=(c+s)/2,l=c===0?2*t/(e+t):2*s/(c+s);return[o,l*100,r*100]};a.hsv.rgb=function(n){const o=n[0]/60,s=n[1]/100;let c=n[2]/100;const t=Math.floor(o)%6,e=o-Math.floor(o),r=255*c*(1-s),l=255*c*(1-s*e),_=255*c*(1-s*(1-e));switch(c*=255,t){case 0:return[c,_,r];case 1:return[l,c,r];case 2:return[r,c,_];case 3:return[r,l,c];case 4:return[_,r,c];case 5:return[c,r,l]}};a.hsv.hsl=function(n){const o=n[0],s=n[1]/100,c=n[2]/100,t=Math.max(c,.01);let e,r;r=(2-s)*c;const l=(2-s)*t;return e=s*t,e/=l<=1?l:2-l,e=e||0,r/=2,[o,e*100,r*100]};a.hwb.rgb=function(n){const o=n[0]/360;let s=n[1]/100,c=n[2]/100;const t=s+c;let e;t>1&&(s/=t,c/=t);const r=Math.floor(6*o),l=1-c;e=6*o-r,(r&1)!==0&&(e=1-e);const _=s+e*(l-s);let i,u,h;switch(r){default:case 6:case 0:{i=l,u=_,h=s;break}case 1:{i=_,u=l,h=s;break}case 2:{i=s,u=l,h=_;break}case 3:{i=s,u=_,h=l;break}case 4:{i=_,u=s,h=l;break}case 5:{i=l,u=s,h=_;break}}return[i*255,u*255,h*255]};a.cmyk.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=n[3]/100,e=1-Math.min(1,o*(1-t)+t),r=1-Math.min(1,s*(1-t)+t),l=1-Math.min(1,c*(1-t)+t);return[e*255,r*255,l*255]};a.xyz.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100;let t,e,r;return t=o*3.2404542+s*-1.5371385+c*-.4985314,e=o*-.969266+s*1.8760108+c*.041556,r=o*.0556434+s*-.2040259+c*1.0572252,t=b(t),e=b(e),r=b(r),[t*255,e*255,r*255]};a.xyz.lab=function(n){let o=n[0],s=n[1],c=n[2];o/=95.047,s/=100,c/=108.883,o=o>f?o**(1/3):7.787*o+16/116,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116;const t=116*s-16,e=500*(o-s),r=200*(s-c);return[t,e,r]};a.xyz.oklab=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=Math.cbrt(.8189330101*o+.3618667424*s-.1288597137*c),e=Math.cbrt(.0329845436*o+.9293118715*s+.0361456387*c),r=Math.cbrt(.0482003018*o+.2643662691*s+.633851707*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.oklab.oklch=function(n){return a.lab.lch(n)};a.oklab.xyz=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(.999999998*o+.396337792*s+.215803758*c)**3,e=(1.000000008*o-.105561342*s-.063854175*c)**3,r=(1.000000055*o-.089484182*s-1.291485538*c)**3,l=1.227013851*t-.55779998*e+.281256149*r,_=-.040580178*t+1.11225687*e-.071676679*r,i=-.076381285*t-.421481978*e+1.58616322*r;return[l*100,_*100,i*100]};a.oklab.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(o+.3963377774*s+.2158037573*c)**3,e=(o-.1055613458*s-.0638541728*c)**3,r=(o-.0894841775*s-1.291485548*c)**3,l=b(4.0767416621*t-3.3077115913*e+.2309699292*r),_=b(-1.2684380046*t+2.6097574011*e-.3413193965*r),i=b(-.0041960863*t-.7034186147*e+1.707614701*r);return[l*255,_*255,i*255]};a.oklch.oklab=function(n){return a.lch.lab(n)};a.lab.xyz=function(n){const o=n[0],s=n[1],c=n[2];let t,e,r;e=(o+16)/116,t=s/500+e,r=e-c/200;const l=e**3,_=t**3,i=r**3;return e=l>f?l:(e-16/116)/7.787,t=_>f?_:(t-16/116)/7.787,r=i>f?i:(r-16/116)/7.787,t*=95.047,e*=100,r*=108.883,[t,e,r]};a.lab.lch=function(n){const o=n[0],s=n[1],c=n[2];let t;t=Math.atan2(c,s)*360/2/Math.PI,t<0&&(t+=360);const r=Math.sqrt(s*s+c*c);return[o,r,t]};a.lch.lab=function(n){const o=n[0],s=n[1],t=n[2]/360*2*Math.PI,e=s*Math.cos(t),r=s*Math.sin(t);return[o,e,r]};a.rgb.ansi16=function(n,o=null){const[s,c,t]=n;let e=o===null?a.rgb.hsv(n)[2]:o;if(e=Math.round(e/50),e===0)return 30;let r=30+(Math.round(t/255)<<2|Math.round(c/255)<<1|Math.round(s/255));return e===2&&(r+=60),r};a.hsv.ansi16=function(n){return a.rgb.ansi16(a.hsv.rgb(n),n[2])};a.rgb.ansi256=function(n){const o=n[0],s=n[1],c=n[2];return o>>4===s>>4&&s>>4===c>>4?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(c/255*5)};a.ansi16.rgb=function(n){n=n[0];let o=n%10;if(o===0||o===7)return n>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const s=(Math.trunc(n>50)+1)*.5,c=(o&1)*s*255,t=(o>>1&1)*s*255,e=(o>>2&1)*s*255;return[c,t,e]};a.ansi256.rgb=function(n){if(n=n[0],n>=232){const e=(n-232)*10+8;return[e,e,e]}n-=16;let o;const s=Math.floor(n/36)/5*255,c=Math.floor((o=n%36)/6)/5*255,t=o%6/5*255;return[s,c,t]};a.rgb.hex=function(n){const s=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".slice(s.length)+s};a.hex.rgb=function(n){const o=n.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=[...s].map(l=>l+l).join(""));const c=Number.parseInt(s,16),t=c>>16&255,e=c>>8&255,r=c&255;return[t,e,r]};a.rgb.hcg=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.max(Math.max(o,s),c),e=Math.min(Math.min(o,s),c),r=t-e;let l;const _=r<1?e/(1-r):0;return r<=0?l=0:t===o?l=(s-c)/r%6:t===s?l=2+(c-o)/r:l=4+(o-s)/r,l/=6,l%=1,[l*360,r*100,_*100]};a.hsl.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=s<.5?2*o*s:2*o*(1-s);let t=0;return c<1&&(t=(s-.5*c)/(1-c)),[n[0],c*100,t*100]};a.hsv.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=o*s;let t=0;return c<1&&(t=(s-c)/(1-c)),[n[0],c*100,t*100]};a.hcg.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;if(s===0)return[c*255,c*255,c*255];const t=[0,0,0],e=o%1*6,r=e%1,l=1-r;let _=0;switch(Math.floor(e)){case 0:{t[0]=1,t[1]=r,t[2]=0;break}case 1:{t[0]=l,t[1]=1,t[2]=0;break}case 2:{t[0]=0,t[1]=1,t[2]=r;break}case 3:{t[0]=0,t[1]=l,t[2]=1;break}case 4:{t[0]=r,t[1]=0,t[2]=1;break}default:t[0]=1,t[1]=0,t[2]=l}return _=(1-s)*c,[(s*t[0]+_)*255,(s*t[1]+_)*255,(s*t[2]+_)*255]};a.hcg.hsv=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);let t=0;return c>0&&(t=o/c),[n[0],t*100,c*100]};a.hcg.hsl=function(n){const o=n[1]/100,c=n[2]/100*(1-o)+.5*o;let t=0;return c>0&&c<.5?t=o/(2*c):c>=.5&&c<1&&(t=o/(2*(1-c))),[n[0],t*100,c*100]};a.hcg.hwb=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);return[n[0],(c-o)*100,(1-c)*100]};a.hwb.hcg=function(n){const o=n[1]/100,c=1-n[2]/100,t=c-o;let e=0;return t<1&&(e=(c-t)/(1-t)),[n[0],t*100,e*100]};a.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]};a.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]};a.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};a.gray.hsl=function(n){return[0,0,n[0]]};a.gray.hsv=a.gray.hsl;a.gray.hwb=function(n){return[0,100,n[0]]};a.gray.cmyk=function(n){return[0,0,0,n[0]]};a.gray.lab=function(n){return[n[0],0,0]};a.gray.hex=function(n){const o=Math.round(n[0]/100*255)&255,c=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".slice(c.length)+c};a.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]};export{a as default};
@@ -1 +1 @@
1
- import g from"../../../color-name@2.0.2/node_modules/color-name/index.js";const M={};for(const n of Object.keys(g))M[g[n]]=n;const a={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},f=(6/29)**3;function b(n){const o=n>.0031308?1.055*n**.4166666666666667-.055:n*12.92;return Math.min(Math.max(0,o),1)}function m(n){return n>.04045?((n+.055)/1.055)**2.4:n/12.92}for(const n of Object.keys(a)){if(!("channels"in a[n]))throw new Error("missing channels property: "+n);if(!("labels"in a[n]))throw new Error("missing channel labels property: "+n);if(a[n].labels.length!==a[n].channels)throw new Error("channel and label counts mismatch: "+n);const{channels:o,labels:s}=a[n];delete a[n].channels,delete a[n].labels,Object.defineProperty(a[n],"channels",{value:o}),Object.defineProperty(a[n],"labels",{value:s})}a.rgb.hsl=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(o,s,c),e=Math.max(o,s,c),r=e-t;let l,_;switch(e){case t:{l=0;break}case o:{l=(s-c)/r;break}case s:{l=2+(c-o)/r;break}case c:{l=4+(o-s)/r;break}}l=Math.min(l*60,360),l<0&&(l+=360);const i=(t+e)/2;return e===t?_=0:i<=.5?_=r/(e+t):_=r/(2-e-t),[l,_*100,i*100]};a.rgb.hsv=function(n){let o,s,c,t,e;const r=n[0]/255,l=n[1]/255,_=n[2]/255,i=Math.max(r,l,_),u=i-Math.min(r,l,_),h=function(k){return(i-k)/6/u+1/2};if(u===0)t=0,e=0;else{switch(e=u/i,o=h(r),s=h(l),c=h(_),i){case r:{t=c-s;break}case l:{t=1/3+o-c;break}case _:{t=2/3+s-o;break}}t<0?t+=1:t>1&&(t-=1)}return[t*360,e*100,i*100]};a.rgb.hwb=function(n){const o=n[0],s=n[1];let c=n[2];const t=a.rgb.hsl(n)[0],e=1/255*Math.min(o,Math.min(s,c));return c=1-1/255*Math.max(o,Math.max(s,c)),[t,e*100,c*100]};a.rgb.oklab=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=Math.cbrt(.4122214708*o+.5363325363*s+.0514459929*c),e=Math.cbrt(.2119034982*o+.6806995451*s+.1073969566*c),r=Math.cbrt(.0883024619*o+.2817188376*s+.6299787005*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.rgb.cmyk=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(1-o,1-s,1-c),e=(1-o-t)/(1-t)||0,r=(1-s-t)/(1-t)||0,l=(1-c-t)/(1-t)||0;return[e*100,r*100,l*100,t*100]};function y(n,o){return(n[0]-o[0])**2+(n[1]-o[1])**2+(n[2]-o[2])**2}a.rgb.keyword=function(n){const o=M[n];if(o)return o;let s=Number.POSITIVE_INFINITY,c;for(const t of Object.keys(g)){const e=g[t],r=y(n,e);r<s&&(s=r,c=t)}return c};a.keyword.rgb=function(n){return[...g[n]]};a.rgb.xyz=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=o*.4124564+s*.3575761+c*.1804375,e=o*.2126729+s*.7151522+c*.072175,r=o*.0193339+s*.119192+c*.9503041;return[t*100,e*100,r*100]};a.rgb.lab=function(n){const o=a.rgb.xyz(n);let s=o[0],c=o[1],t=o[2];s/=95.047,c/=100,t/=108.883,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116,t=t>f?t**(1/3):7.787*t+16/116;const e=116*c-16,r=500*(s-c),l=200*(c-t);return[e,r,l]};a.hsl.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;let t,e;if(s===0)return e=c*255,[e,e,e];const r=c<.5?c*(1+s):c+s-c*s,l=2*c-r,_=[0,0,0];for(let i=0;i<3;i++)t=o+1/3*-(i-1),t<0&&t++,t>1&&t--,6*t<1?e=l+(r-l)*6*t:2*t<1?e=r:3*t<2?e=l+(r-l)*(2/3-t)*6:e=l,_[i]=e*255;return _};a.hsl.hsv=function(n){const o=n[0];let s=n[1]/100,c=n[2]/100,t=s;const e=Math.max(c,.01);c*=2,s*=c<=1?c:2-c,t*=e<=1?e:2-e;const r=(c+s)/2,l=c===0?2*t/(e+t):2*s/(c+s);return[o,l*100,r*100]};a.hsv.rgb=function(n){const o=n[0]/60,s=n[1]/100;let c=n[2]/100;const t=Math.floor(o)%6,e=o-Math.floor(o),r=255*c*(1-s),l=255*c*(1-s*e),_=255*c*(1-s*(1-e));switch(c*=255,t){case 0:return[c,_,r];case 1:return[l,c,r];case 2:return[r,c,_];case 3:return[r,l,c];case 4:return[_,r,c];case 5:return[c,r,l]}};a.hsv.hsl=function(n){const o=n[0],s=n[1]/100,c=n[2]/100,t=Math.max(c,.01);let e,r;r=(2-s)*c;const l=(2-s)*t;return e=s*t,e/=l<=1?l:2-l,e=e||0,r/=2,[o,e*100,r*100]};a.hwb.rgb=function(n){const o=n[0]/360;let s=n[1]/100,c=n[2]/100;const t=s+c;let e;t>1&&(s/=t,c/=t);const r=Math.floor(6*o),l=1-c;e=6*o-r,(r&1)!==0&&(e=1-e);const _=s+e*(l-s);let i,u,h;switch(r){default:case 6:case 0:{i=l,u=_,h=s;break}case 1:{i=_,u=l,h=s;break}case 2:{i=s,u=l,h=_;break}case 3:{i=s,u=_,h=l;break}case 4:{i=_,u=s,h=l;break}case 5:{i=l,u=s,h=_;break}}return[i*255,u*255,h*255]};a.cmyk.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=n[3]/100,e=1-Math.min(1,o*(1-t)+t),r=1-Math.min(1,s*(1-t)+t),l=1-Math.min(1,c*(1-t)+t);return[e*255,r*255,l*255]};a.xyz.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100;let t,e,r;return t=o*3.2404542+s*-1.5371385+c*-.4985314,e=o*-.969266+s*1.8760108+c*.041556,r=o*.0556434+s*-.2040259+c*1.0572252,t=b(t),e=b(e),r=b(r),[t*255,e*255,r*255]};a.xyz.lab=function(n){let o=n[0],s=n[1],c=n[2];o/=95.047,s/=100,c/=108.883,o=o>f?o**(1/3):7.787*o+16/116,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116;const t=116*s-16,e=500*(o-s),r=200*(s-c);return[t,e,r]};a.xyz.oklab=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=Math.cbrt(.8189330101*o+.3618667424*s-.1288597137*c),e=Math.cbrt(.0329845436*o+.9293118715*s+.0361456387*c),r=Math.cbrt(.0482003018*o+.2643662691*s+.633851707*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.oklab.oklch=function(n){return a.lab.lch(n)};a.oklab.xyz=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(.999999998*o+.396337792*s+.215803758*c)**3,e=(1.000000008*o-.105561342*s-.063854175*c)**3,r=(1.000000055*o-.089484182*s-1.291485538*c)**3,l=1.227013851*t-.55779998*e+.281256149*r,_=-.040580178*t+1.11225687*e-.071676679*r,i=-.076381285*t-.421481978*e+1.58616322*r;return[l*100,_*100,i*100]};a.oklab.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(o+.3963377774*s+.2158037573*c)**3,e=(o-.1055613458*s-.0638541728*c)**3,r=(o-.0894841775*s-1.291485548*c)**3,l=b(4.0767416621*t-3.3077115913*e+.2309699292*r),_=b(-1.2684380046*t+2.6097574011*e-.3413193965*r),i=b(-.0041960863*t-.7034186147*e+1.707614701*r);return[l*255,_*255,i*255]};a.oklch.oklab=function(n){return a.lch.lab(n)};a.lab.xyz=function(n){const o=n[0],s=n[1],c=n[2];let t,e,r;e=(o+16)/116,t=s/500+e,r=e-c/200;const l=e**3,_=t**3,i=r**3;return e=l>f?l:(e-16/116)/7.787,t=_>f?_:(t-16/116)/7.787,r=i>f?i:(r-16/116)/7.787,t*=95.047,e*=100,r*=108.883,[t,e,r]};a.lab.lch=function(n){const o=n[0],s=n[1],c=n[2];let t;t=Math.atan2(c,s)*360/2/Math.PI,t<0&&(t+=360);const r=Math.sqrt(s*s+c*c);return[o,r,t]};a.lch.lab=function(n){const o=n[0],s=n[1],t=n[2]/360*2*Math.PI,e=s*Math.cos(t),r=s*Math.sin(t);return[o,e,r]};a.rgb.ansi16=function(n,o=null){const[s,c,t]=n;let e=o===null?a.rgb.hsv(n)[2]:o;if(e=Math.round(e/50),e===0)return 30;let r=30+(Math.round(t/255)<<2|Math.round(c/255)<<1|Math.round(s/255));return e===2&&(r+=60),r};a.hsv.ansi16=function(n){return a.rgb.ansi16(a.hsv.rgb(n),n[2])};a.rgb.ansi256=function(n){const o=n[0],s=n[1],c=n[2];return o>>4===s>>4&&s>>4===c>>4?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(c/255*5)};a.ansi16.rgb=function(n){n=n[0];let o=n%10;if(o===0||o===7)return n>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const s=(Math.trunc(n>50)+1)*.5,c=(o&1)*s*255,t=(o>>1&1)*s*255,e=(o>>2&1)*s*255;return[c,t,e]};a.ansi256.rgb=function(n){if(n=n[0],n>=232){const e=(n-232)*10+8;return[e,e,e]}n-=16;let o;const s=Math.floor(n/36)/5*255,c=Math.floor((o=n%36)/6)/5*255,t=o%6/5*255;return[s,c,t]};a.rgb.hex=function(n){const s=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".slice(s.length)+s};a.hex.rgb=function(n){const o=n.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=[...s].map(l=>l+l).join(""));const c=Number.parseInt(s,16),t=c>>16&255,e=c>>8&255,r=c&255;return[t,e,r]};a.rgb.hcg=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.max(Math.max(o,s),c),e=Math.min(Math.min(o,s),c),r=t-e;let l;const _=r<1?e/(1-r):0;return r<=0?l=0:t===o?l=(s-c)/r%6:t===s?l=2+(c-o)/r:l=4+(o-s)/r,l/=6,l%=1,[l*360,r*100,_*100]};a.hsl.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=s<.5?2*o*s:2*o*(1-s);let t=0;return c<1&&(t=(s-.5*c)/(1-c)),[n[0],c*100,t*100]};a.hsv.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=o*s;let t=0;return c<1&&(t=(s-c)/(1-c)),[n[0],c*100,t*100]};a.hcg.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;if(s===0)return[c*255,c*255,c*255];const t=[0,0,0],e=o%1*6,r=e%1,l=1-r;let _=0;switch(Math.floor(e)){case 0:{t[0]=1,t[1]=r,t[2]=0;break}case 1:{t[0]=l,t[1]=1,t[2]=0;break}case 2:{t[0]=0,t[1]=1,t[2]=r;break}case 3:{t[0]=0,t[1]=l,t[2]=1;break}case 4:{t[0]=r,t[1]=0,t[2]=1;break}default:t[0]=1,t[1]=0,t[2]=l}return _=(1-s)*c,[(s*t[0]+_)*255,(s*t[1]+_)*255,(s*t[2]+_)*255]};a.hcg.hsv=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);let t=0;return c>0&&(t=o/c),[n[0],t*100,c*100]};a.hcg.hsl=function(n){const o=n[1]/100,c=n[2]/100*(1-o)+.5*o;let t=0;return c>0&&c<.5?t=o/(2*c):c>=.5&&c<1&&(t=o/(2*(1-c))),[n[0],t*100,c*100]};a.hcg.hwb=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);return[n[0],(c-o)*100,(1-c)*100]};a.hwb.hcg=function(n){const o=n[1]/100,c=1-n[2]/100,t=c-o;let e=0;return t<1&&(e=(c-t)/(1-t)),[n[0],t*100,e*100]};a.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]};a.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]};a.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};a.gray.hsl=function(n){return[0,0,n[0]]};a.gray.hsv=a.gray.hsl;a.gray.hwb=function(n){return[0,100,n[0]]};a.gray.cmyk=function(n){return[0,0,0,n[0]]};a.gray.lab=function(n){return[n[0],0,0]};a.gray.hex=function(n){const o=Math.round(n[0]/100*255)&255,c=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".slice(c.length)+c};a.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]};export{a as default};
1
+ import g from"../../../color-name@2.1.0/node_modules/color-name/index.js";const M={};for(const n of Object.keys(g))M[g[n]]=n;const a={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},f=(6/29)**3;function b(n){const o=n>.0031308?1.055*n**.4166666666666667-.055:n*12.92;return Math.min(Math.max(0,o),1)}function m(n){return n>.04045?((n+.055)/1.055)**2.4:n/12.92}for(const n of Object.keys(a)){if(!("channels"in a[n]))throw new Error("missing channels property: "+n);if(!("labels"in a[n]))throw new Error("missing channel labels property: "+n);if(a[n].labels.length!==a[n].channels)throw new Error("channel and label counts mismatch: "+n);const{channels:o,labels:s}=a[n];delete a[n].channels,delete a[n].labels,Object.defineProperty(a[n],"channels",{value:o}),Object.defineProperty(a[n],"labels",{value:s})}a.rgb.hsl=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(o,s,c),e=Math.max(o,s,c),r=e-t;let l,_;switch(e){case t:{l=0;break}case o:{l=(s-c)/r;break}case s:{l=2+(c-o)/r;break}case c:{l=4+(o-s)/r;break}}l=Math.min(l*60,360),l<0&&(l+=360);const i=(t+e)/2;return e===t?_=0:i<=.5?_=r/(e+t):_=r/(2-e-t),[l,_*100,i*100]};a.rgb.hsv=function(n){let o,s,c,t,e;const r=n[0]/255,l=n[1]/255,_=n[2]/255,i=Math.max(r,l,_),u=i-Math.min(r,l,_),h=function(k){return(i-k)/6/u+1/2};if(u===0)t=0,e=0;else{switch(e=u/i,o=h(r),s=h(l),c=h(_),i){case r:{t=c-s;break}case l:{t=1/3+o-c;break}case _:{t=2/3+s-o;break}}t<0?t+=1:t>1&&(t-=1)}return[t*360,e*100,i*100]};a.rgb.hwb=function(n){const o=n[0],s=n[1];let c=n[2];const t=a.rgb.hsl(n)[0],e=1/255*Math.min(o,Math.min(s,c));return c=1-1/255*Math.max(o,Math.max(s,c)),[t,e*100,c*100]};a.rgb.oklab=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=Math.cbrt(.4122214708*o+.5363325363*s+.0514459929*c),e=Math.cbrt(.2119034982*o+.6806995451*s+.1073969566*c),r=Math.cbrt(.0883024619*o+.2817188376*s+.6299787005*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.rgb.cmyk=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(1-o,1-s,1-c),e=(1-o-t)/(1-t)||0,r=(1-s-t)/(1-t)||0,l=(1-c-t)/(1-t)||0;return[e*100,r*100,l*100,t*100]};function y(n,o){return(n[0]-o[0])**2+(n[1]-o[1])**2+(n[2]-o[2])**2}a.rgb.keyword=function(n){const o=M[n];if(o)return o;let s=Number.POSITIVE_INFINITY,c;for(const t of Object.keys(g)){const e=g[t],r=y(n,e);r<s&&(s=r,c=t)}return c};a.keyword.rgb=function(n){return[...g[n]]};a.rgb.xyz=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=o*.4124564+s*.3575761+c*.1804375,e=o*.2126729+s*.7151522+c*.072175,r=o*.0193339+s*.119192+c*.9503041;return[t*100,e*100,r*100]};a.rgb.lab=function(n){const o=a.rgb.xyz(n);let s=o[0],c=o[1],t=o[2];s/=95.047,c/=100,t/=108.883,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116,t=t>f?t**(1/3):7.787*t+16/116;const e=116*c-16,r=500*(s-c),l=200*(c-t);return[e,r,l]};a.hsl.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;let t,e;if(s===0)return e=c*255,[e,e,e];const r=c<.5?c*(1+s):c+s-c*s,l=2*c-r,_=[0,0,0];for(let i=0;i<3;i++)t=o+1/3*-(i-1),t<0&&t++,t>1&&t--,6*t<1?e=l+(r-l)*6*t:2*t<1?e=r:3*t<2?e=l+(r-l)*(2/3-t)*6:e=l,_[i]=e*255;return _};a.hsl.hsv=function(n){const o=n[0];let s=n[1]/100,c=n[2]/100,t=s;const e=Math.max(c,.01);c*=2,s*=c<=1?c:2-c,t*=e<=1?e:2-e;const r=(c+s)/2,l=c===0?2*t/(e+t):2*s/(c+s);return[o,l*100,r*100]};a.hsv.rgb=function(n){const o=n[0]/60,s=n[1]/100;let c=n[2]/100;const t=Math.floor(o)%6,e=o-Math.floor(o),r=255*c*(1-s),l=255*c*(1-s*e),_=255*c*(1-s*(1-e));switch(c*=255,t){case 0:return[c,_,r];case 1:return[l,c,r];case 2:return[r,c,_];case 3:return[r,l,c];case 4:return[_,r,c];case 5:return[c,r,l]}};a.hsv.hsl=function(n){const o=n[0],s=n[1]/100,c=n[2]/100,t=Math.max(c,.01);let e,r;r=(2-s)*c;const l=(2-s)*t;return e=s*t,e/=l<=1?l:2-l,e=e||0,r/=2,[o,e*100,r*100]};a.hwb.rgb=function(n){const o=n[0]/360;let s=n[1]/100,c=n[2]/100;const t=s+c;let e;t>1&&(s/=t,c/=t);const r=Math.floor(6*o),l=1-c;e=6*o-r,(r&1)!==0&&(e=1-e);const _=s+e*(l-s);let i,u,h;switch(r){default:case 6:case 0:{i=l,u=_,h=s;break}case 1:{i=_,u=l,h=s;break}case 2:{i=s,u=l,h=_;break}case 3:{i=s,u=_,h=l;break}case 4:{i=_,u=s,h=l;break}case 5:{i=l,u=s,h=_;break}}return[i*255,u*255,h*255]};a.cmyk.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=n[3]/100,e=1-Math.min(1,o*(1-t)+t),r=1-Math.min(1,s*(1-t)+t),l=1-Math.min(1,c*(1-t)+t);return[e*255,r*255,l*255]};a.xyz.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100;let t,e,r;return t=o*3.2404542+s*-1.5371385+c*-.4985314,e=o*-.969266+s*1.8760108+c*.041556,r=o*.0556434+s*-.2040259+c*1.0572252,t=b(t),e=b(e),r=b(r),[t*255,e*255,r*255]};a.xyz.lab=function(n){let o=n[0],s=n[1],c=n[2];o/=95.047,s/=100,c/=108.883,o=o>f?o**(1/3):7.787*o+16/116,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116;const t=116*s-16,e=500*(o-s),r=200*(s-c);return[t,e,r]};a.xyz.oklab=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=Math.cbrt(.8189330101*o+.3618667424*s-.1288597137*c),e=Math.cbrt(.0329845436*o+.9293118715*s+.0361456387*c),r=Math.cbrt(.0482003018*o+.2643662691*s+.633851707*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.oklab.oklch=function(n){return a.lab.lch(n)};a.oklab.xyz=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(.999999998*o+.396337792*s+.215803758*c)**3,e=(1.000000008*o-.105561342*s-.063854175*c)**3,r=(1.000000055*o-.089484182*s-1.291485538*c)**3,l=1.227013851*t-.55779998*e+.281256149*r,_=-.040580178*t+1.11225687*e-.071676679*r,i=-.076381285*t-.421481978*e+1.58616322*r;return[l*100,_*100,i*100]};a.oklab.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(o+.3963377774*s+.2158037573*c)**3,e=(o-.1055613458*s-.0638541728*c)**3,r=(o-.0894841775*s-1.291485548*c)**3,l=b(4.0767416621*t-3.3077115913*e+.2309699292*r),_=b(-1.2684380046*t+2.6097574011*e-.3413193965*r),i=b(-.0041960863*t-.7034186147*e+1.707614701*r);return[l*255,_*255,i*255]};a.oklch.oklab=function(n){return a.lch.lab(n)};a.lab.xyz=function(n){const o=n[0],s=n[1],c=n[2];let t,e,r;e=(o+16)/116,t=s/500+e,r=e-c/200;const l=e**3,_=t**3,i=r**3;return e=l>f?l:(e-16/116)/7.787,t=_>f?_:(t-16/116)/7.787,r=i>f?i:(r-16/116)/7.787,t*=95.047,e*=100,r*=108.883,[t,e,r]};a.lab.lch=function(n){const o=n[0],s=n[1],c=n[2];let t;t=Math.atan2(c,s)*360/2/Math.PI,t<0&&(t+=360);const r=Math.sqrt(s*s+c*c);return[o,r,t]};a.lch.lab=function(n){const o=n[0],s=n[1],t=n[2]/360*2*Math.PI,e=s*Math.cos(t),r=s*Math.sin(t);return[o,e,r]};a.rgb.ansi16=function(n,o=null){const[s,c,t]=n;let e=o===null?a.rgb.hsv(n)[2]:o;if(e=Math.round(e/50),e===0)return 30;let r=30+(Math.round(t/255)<<2|Math.round(c/255)<<1|Math.round(s/255));return e===2&&(r+=60),r};a.hsv.ansi16=function(n){return a.rgb.ansi16(a.hsv.rgb(n),n[2])};a.rgb.ansi256=function(n){const o=n[0],s=n[1],c=n[2];return o>>4===s>>4&&s>>4===c>>4?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(c/255*5)};a.ansi16.rgb=function(n){n=n[0];let o=n%10;if(o===0||o===7)return n>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const s=(Math.trunc(n>50)+1)*.5,c=(o&1)*s*255,t=(o>>1&1)*s*255,e=(o>>2&1)*s*255;return[c,t,e]};a.ansi256.rgb=function(n){if(n=n[0],n>=232){const e=(n-232)*10+8;return[e,e,e]}n-=16;let o;const s=Math.floor(n/36)/5*255,c=Math.floor((o=n%36)/6)/5*255,t=o%6/5*255;return[s,c,t]};a.rgb.hex=function(n){const s=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".slice(s.length)+s};a.hex.rgb=function(n){const o=n.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=[...s].map(l=>l+l).join(""));const c=Number.parseInt(s,16),t=c>>16&255,e=c>>8&255,r=c&255;return[t,e,r]};a.rgb.hcg=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.max(Math.max(o,s),c),e=Math.min(Math.min(o,s),c),r=t-e;let l;const _=r<1?e/(1-r):0;return r<=0?l=0:t===o?l=(s-c)/r%6:t===s?l=2+(c-o)/r:l=4+(o-s)/r,l/=6,l%=1,[l*360,r*100,_*100]};a.hsl.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=s<.5?2*o*s:2*o*(1-s);let t=0;return c<1&&(t=(s-.5*c)/(1-c)),[n[0],c*100,t*100]};a.hsv.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=o*s;let t=0;return c<1&&(t=(s-c)/(1-c)),[n[0],c*100,t*100]};a.hcg.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;if(s===0)return[c*255,c*255,c*255];const t=[0,0,0],e=o%1*6,r=e%1,l=1-r;let _=0;switch(Math.floor(e)){case 0:{t[0]=1,t[1]=r,t[2]=0;break}case 1:{t[0]=l,t[1]=1,t[2]=0;break}case 2:{t[0]=0,t[1]=1,t[2]=r;break}case 3:{t[0]=0,t[1]=l,t[2]=1;break}case 4:{t[0]=r,t[1]=0,t[2]=1;break}default:t[0]=1,t[1]=0,t[2]=l}return _=(1-s)*c,[(s*t[0]+_)*255,(s*t[1]+_)*255,(s*t[2]+_)*255]};a.hcg.hsv=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);let t=0;return c>0&&(t=o/c),[n[0],t*100,c*100]};a.hcg.hsl=function(n){const o=n[1]/100,c=n[2]/100*(1-o)+.5*o;let t=0;return c>0&&c<.5?t=o/(2*c):c>=.5&&c<1&&(t=o/(2*(1-c))),[n[0],t*100,c*100]};a.hcg.hwb=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);return[n[0],(c-o)*100,(1-c)*100]};a.hwb.hcg=function(n){const o=n[1]/100,c=1-n[2]/100,t=c-o;let e=0;return t<1&&(e=(c-t)/(1-t)),[n[0],t*100,e*100]};a.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]};a.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]};a.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};a.gray.hsl=function(n){return[0,0,n[0]]};a.gray.hsv=a.gray.hsl;a.gray.hwb=function(n){return[0,100,n[0]]};a.gray.cmyk=function(n){return[0,0,0,n[0]]};a.gray.lab=function(n){return[n[0],0,0]};a.gray.hex=function(n){const o=Math.round(n[0]/100*255)&255,c=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".slice(c.length)+c};a.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]};export{a as default};
@@ -1 +1 @@
1
- const e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};export{e as default};
1
+ const e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const r in e)Object.freeze(e[r]);const l=Object.freeze(e);export{l as default};
@@ -1 +1 @@
1
- import p from"../../../color-name@2.0.2/node_modules/color-name/index.js";var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function v(n){var i,a=[],l=1,e;if(typeof n=="number")return{space:"rgb",values:[n>>>16,(n&65280)>>>8,n&255],alpha:1};if(typeof n=="number")return{space:"rgb",values:[n>>>16,(n&65280)>>>8,n&255],alpha:1};if(n=String(n).toLowerCase(),p[n])a=p[n].slice(),e="rgb";else if(n==="transparent")l=0,e="rgb",a=[0,0,0];else if(n[0]==="#"){var t=n.slice(1),u=t.length,h=u<=4;l=1,h?(a=[parseInt(t[0]+t[0],16),parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16)],u===4&&(l=parseInt(t[3]+t[3],16)/255)):(a=[parseInt(t[0]+t[1],16),parseInt(t[2]+t[3],16),parseInt(t[4]+t[5],16)],u===8&&(l=parseInt(t[6]+t[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),e="rgb"}else if(i=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(n)){var g=i[1];e=g.replace(/a$/,"");var s=e==="cmyk"?4:e==="gray"?1:3;a=i[2].trim().split(/\s*[,\/]\s*|\s+/),e==="color"&&(e=a.shift()),a=a.map(function(r,f){if(r[r.length-1]==="%")return r=parseFloat(r)/100,f===3?r:e==="rgb"?r*255:e[0]==="h"||e[0]==="l"&&!f?r*100:e==="lab"?r*125:e==="lch"?f<2?r*150:r*360:e[0]==="o"&&!f?r:e==="oklab"?r*.4:e==="oklch"?f<2?r*.4:r*360:r;if(e[f]==="h"||f===2&&e[e.length-1]==="h"){if(o[r]!==void 0)return o[r];if(r.endsWith("deg"))return parseFloat(r);if(r.endsWith("turn"))return parseFloat(r)*360;if(r.endsWith("grad"))return parseFloat(r)*360/400;if(r.endsWith("rad"))return parseFloat(r)*180/Math.PI}return r==="none"?0:parseFloat(r)}),l=a.length>s?a.pop():1}else/[0-9](?:\s|\/|,)/.test(n)&&(a=n.match(/([0-9]+)/g).map(function(r){return parseFloat(r)}),e=n.match(/([a-z])/ig)?.join("")?.toLowerCase()||"rgb");return{space:e,values:a,alpha:l}}export{v as default};
1
+ import p from"../../../color-name@2.1.0/node_modules/color-name/index.js";var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function v(n){var i,a=[],l=1,e;if(typeof n=="number")return{space:"rgb",values:[n>>>16,(n&65280)>>>8,n&255],alpha:1};if(typeof n=="number")return{space:"rgb",values:[n>>>16,(n&65280)>>>8,n&255],alpha:1};if(n=String(n).toLowerCase(),p[n])a=p[n].slice(),e="rgb";else if(n==="transparent")l=0,e="rgb",a=[0,0,0];else if(n[0]==="#"){var t=n.slice(1),u=t.length,h=u<=4;l=1,h?(a=[parseInt(t[0]+t[0],16),parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16)],u===4&&(l=parseInt(t[3]+t[3],16)/255)):(a=[parseInt(t[0]+t[1],16),parseInt(t[2]+t[3],16),parseInt(t[4]+t[5],16)],u===8&&(l=parseInt(t[6]+t[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),e="rgb"}else if(i=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(n)){var g=i[1];e=g.replace(/a$/,"");var s=e==="cmyk"?4:e==="gray"?1:3;a=i[2].trim().split(/\s*[,\/]\s*|\s+/),e==="color"&&(e=a.shift()),a=a.map(function(r,f){if(r[r.length-1]==="%")return r=parseFloat(r)/100,f===3?r:e==="rgb"?r*255:e[0]==="h"||e[0]==="l"&&!f?r*100:e==="lab"?r*125:e==="lch"?f<2?r*150:r*360:e[0]==="o"&&!f?r:e==="oklab"?r*.4:e==="oklch"?f<2?r*.4:r*360:r;if(e[f]==="h"||f===2&&e[e.length-1]==="h"){if(o[r]!==void 0)return o[r];if(r.endsWith("deg"))return parseFloat(r);if(r.endsWith("turn"))return parseFloat(r)*360;if(r.endsWith("grad"))return parseFloat(r)*360/400;if(r.endsWith("rad"))return parseFloat(r)*180/Math.PI}return r==="none"?0:parseFloat(r)}),l=a.length>s?a.pop():1}else/[0-9](?:\s|\/|,)/.test(n)&&(a=n.match(/([0-9]+)/g).map(function(r){return parseFloat(r)}),e=n.match(/([a-z])/ig)?.join("")?.toLowerCase()||"rgb");return{space:e,values:a,alpha:l}}export{v as default};
@@ -1 +1 @@
1
- import f from"../../../color-name@2.0.2/node_modules/color-name/index.js";const b=Object.create(null);for(const e in f)Object.hasOwn(f,e)&&(b[f[e]]=e);const a={to:{},get:{}};a.get=function(e){const o=e.slice(0,3).toLowerCase();let s,u;switch(o){case"hsl":{s=a.get.hsl(e),u="hsl";break}case"hwb":{s=a.get.hwb(e),u="hwb";break}default:{s=a.get.rgb(e),u="rgb";break}}return s?{model:u,value:s}:null};a.get.rgb=function(e){if(!e)return null;const o=/^#([a-f\d]{3,4})$/i,s=/^#([a-f\d]{6})([a-f\d]{2})?$/i,u=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,d=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,h=/^(\w+)$/;let n=[0,0,0,1],t,r,l;if(t=e.match(s)){for(l=t[2],t=t[1],r=0;r<3;r++){const m=r*2;n[r]=Number.parseInt(t.slice(m,m+2),16)}l&&(n[3]=Number.parseInt(l,16)/255)}else if(t=e.match(o)){for(t=t[1],l=t[3],r=0;r<3;r++)n[r]=Number.parseInt(t[r]+t[r],16);l&&(n[3]=Number.parseInt(l+l,16)/255)}else if(t=e.match(u)){for(r=0;r<3;r++)n[r]=Number.parseFloat(t[r+1]);t[4]&&(n[3]=t[5]?Number.parseFloat(t[4])*.01:Number.parseFloat(t[4]))}else if(t=e.match(d)){for(r=0;r<3;r++)n[r]=Math.round(Number.parseFloat(t[r+1])*2.55);t[4]&&(n[3]=t[5]?Number.parseFloat(t[4])*.01:Number.parseFloat(t[4]))}else return(t=e.toLowerCase().match(h))?t[1]==="transparent"?[0,0,0,0]:Object.hasOwn(f,t[1])?(n=f[t[1]].slice(),n[3]=1,n):null:null;for(r=0;r<3;r++)n[r]=c(n[r],0,255);return n[3]=c(n[3],0,1),n};a.get.hsl=function(e){if(!e)return null;const o=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,s=e.match(o);if(s){const u=Number.parseFloat(s[4]),d=(Number.parseFloat(s[1])%360+360)%360,h=c(Number.parseFloat(s[2]),0,100),n=c(Number.parseFloat(s[3]),0,100),t=c(Number.isNaN(u)?1:u,0,1);return[d,h,n,t]}return null};a.get.hwb=function(e){if(!e)return null;const o=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,s=e.match(o);if(s){const u=Number.parseFloat(s[4]),d=(Number.parseFloat(s[1])%360+360)%360,h=c(Number.parseFloat(s[2]),0,100),n=c(Number.parseFloat(s[3]),0,100),t=c(Number.isNaN(u)?1:u,0,1);return[d,h,n,t]}return null};a.to.hex=function(...e){return"#"+i(e[0])+i(e[1])+i(e[2])+(e[3]<1?i(Math.round(e[3]*255)):"")};a.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};a.to.rgb.percent=function(...e){const o=Math.round(e[0]/255*100),s=Math.round(e[1]/255*100),u=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+o+"%, "+s+"%, "+u+"%)":"rgba("+o+"%, "+s+"%, "+u+"%, "+e[3]+")"};a.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};a.to.hwb=function(...e){let o="";return e.length>=4&&e[3]!==1&&(o=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+o+")"};a.to.keyword=function(...e){return b[e.slice(0,3)]};function c(e,o,s){return Math.min(Math.max(o,e),s)}function i(e){const o=Math.round(e).toString(16).toUpperCase();return o.length<2?"0"+o:o}export{a as default};
1
+ import f from"../../../color-name@2.1.0/node_modules/color-name/index.js";const b=Object.create(null);for(const e in f)Object.hasOwn(f,e)&&(b[f[e]]=e);const a={to:{},get:{}};a.get=function(e){const o=e.slice(0,3).toLowerCase();let s,u;switch(o){case"hsl":{s=a.get.hsl(e),u="hsl";break}case"hwb":{s=a.get.hwb(e),u="hwb";break}default:{s=a.get.rgb(e),u="rgb";break}}return s?{model:u,value:s}:null};a.get.rgb=function(e){if(!e)return null;const o=/^#([a-f\d]{3,4})$/i,s=/^#([a-f\d]{6})([a-f\d]{2})?$/i,u=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,d=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,h=/^(\w+)$/;let n=[0,0,0,1],t,r,l;if(t=e.match(s)){for(l=t[2],t=t[1],r=0;r<3;r++){const m=r*2;n[r]=Number.parseInt(t.slice(m,m+2),16)}l&&(n[3]=Number.parseInt(l,16)/255)}else if(t=e.match(o)){for(t=t[1],l=t[3],r=0;r<3;r++)n[r]=Number.parseInt(t[r]+t[r],16);l&&(n[3]=Number.parseInt(l+l,16)/255)}else if(t=e.match(u)){for(r=0;r<3;r++)n[r]=Number.parseFloat(t[r+1]);t[4]&&(n[3]=t[5]?Number.parseFloat(t[4])*.01:Number.parseFloat(t[4]))}else if(t=e.match(d)){for(r=0;r<3;r++)n[r]=Math.round(Number.parseFloat(t[r+1])*2.55);t[4]&&(n[3]=t[5]?Number.parseFloat(t[4])*.01:Number.parseFloat(t[4]))}else return(t=e.toLowerCase().match(h))?t[1]==="transparent"?[0,0,0,0]:Object.hasOwn(f,t[1])?(n=f[t[1]].slice(),n[3]=1,n):null:null;for(r=0;r<3;r++)n[r]=c(n[r],0,255);return n[3]=c(n[3],0,1),n};a.get.hsl=function(e){if(!e)return null;const o=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,s=e.match(o);if(s){const u=Number.parseFloat(s[4]),d=(Number.parseFloat(s[1])%360+360)%360,h=c(Number.parseFloat(s[2]),0,100),n=c(Number.parseFloat(s[3]),0,100),t=c(Number.isNaN(u)?1:u,0,1);return[d,h,n,t]}return null};a.get.hwb=function(e){if(!e)return null;const o=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,s=e.match(o);if(s){const u=Number.parseFloat(s[4]),d=(Number.parseFloat(s[1])%360+360)%360,h=c(Number.parseFloat(s[2]),0,100),n=c(Number.parseFloat(s[3]),0,100),t=c(Number.isNaN(u)?1:u,0,1);return[d,h,n,t]}return null};a.to.hex=function(...e){return"#"+i(e[0])+i(e[1])+i(e[2])+(e[3]<1?i(Math.round(e[3]*255)):"")};a.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};a.to.rgb.percent=function(...e){const o=Math.round(e[0]/255*100),s=Math.round(e[1]/255*100),u=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+o+"%, "+s+"%, "+u+"%)":"rgba("+o+"%, "+s+"%, "+u+"%, "+e[3]+")"};a.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};a.to.hwb=function(...e){let o="";return e.length>=4&&e[3]!==1&&(o=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+o+")"};a.to.keyword=function(...e){return b[e.slice(0,3)]};function c(e,o,s){return Math.min(Math.max(o,e),s)}function i(e){const o=Math.round(e).toString(16).toUpperCase();return o.length<2?"0"+o:o}export{a as default};
@@ -1 +1 @@
1
- import{__require as p}from"../../../es-define-property@1.0.0/node_modules/es-define-property/index.js";import{__require as y}from"../../../es-errors@1.3.0/node_modules/es-errors/syntax.js";import{__require as d}from"../../../es-errors@1.3.0/node_modules/es-errors/type.js";import{__require as h}from"../../../gopd@1.0.1/node_modules/gopd/index.js";var l,m;function D(){if(m)return l;m=1;var i=p(),g=y(),e=d(),s=h();return l=function(r,o,f){if(!r||typeof r!="object"&&typeof r!="function")throw new e("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new e("`loose`, if provided, must be a boolean");var t=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,b=arguments.length>6?arguments[6]:!1,n=!!s&&s(r,o);if(i)i(r,o,{configurable:u===null&&n?n.configurable:!u,enumerable:t===null&&n?n.enumerable:!t,value:f,writable:a===null&&n?n.writable:!a});else if(b||!t&&!a&&!u)r[o]=f;else throw new g("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},l}export{D as __require};
1
+ import{__require as p}from"../../../es-define-property@1.0.1/node_modules/es-define-property/index.js";import{__require as y}from"../../../es-errors@1.3.0/node_modules/es-errors/syntax.js";import{__require as d}from"../../../es-errors@1.3.0/node_modules/es-errors/type.js";import{__require as h}from"../../../gopd@1.2.0/node_modules/gopd/index.js";var l,m;function D(){if(m)return l;m=1;var i=p(),g=y(),e=d(),s=h();return l=function(r,o,f){if(!r||typeof r!="object"&&typeof r!="function")throw new e("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new e("`loose`, if provided, must be a boolean");var t=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,b=arguments.length>6?arguments[6]:!1,n=!!s&&s(r,o);if(i)i(r,o,{configurable:u===null&&n?n.configurable:!u,enumerable:t===null&&n?n.enumerable:!t,value:f,writable:a===null&&n?n.writable:!a});else if(b||!t&&!a&&!u)r[o]=f;else throw new g("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},l}export{D as __require};
@@ -1 +1 @@
1
- import{__require as i}from"../../../es-define-property@1.0.0/node_modules/es-define-property/index.js";var e,n;function o(){if(n)return e;n=1;var r=i(),t=function(){return!!r};return t.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},e=t,e}export{o as __require};
1
+ import{__require as i}from"../../../es-define-property@1.0.1/node_modules/es-define-property/index.js";var e,n;function o(){if(n)return e;n=1;var r=i(),t=function(){return!!r};return t.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},e=t,e}export{o as __require};
@@ -1 +1 @@
1
- import{__require as s}from"../../../has-symbols@1.0.3/node_modules/has-symbols/shams.js";var r,a;function u(){if(a)return r;a=1;var e=s();return r=function(){return e()&&!!Symbol.toStringTag},r}export{u as __require};
1
+ import{__require as s}from"../../../has-symbols@1.1.0/node_modules/has-symbols/shams.js";var r,a;function u(){if(a)return r;a=1;var e=s();return r=function(){return e()&&!!Symbol.toStringTag},r}export{u as __require};
@@ -1,2 +1,2 @@
1
- import{blocks as w}from"./block.js";import{content as g}from"./content.js";import{skippable as b}from"./skippable.js";import{convert as y}from"../../../../unist-util-is@6.0.0/node_modules/unist-util-is/lib/index.js";import{isElement as c}from"../../../../hast-util-is-element@3.0.0/node_modules/hast-util-is-element/lib/index.js";import{embedded as v}from"../../../../hast-util-embedded@3.0.0/node_modules/hast-util-embedded/lib/index.js";import{whitespace as x}from"../../../../hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js";const A={},f=y(["comment","doctype"]);function G(e,r){p(e,{collapse:E((r||A).newlines?B:$),whitespace:"normal"})}function p(e,r){if("children"in e){const t={...r};return(e.type==="root"||h(e))&&(t.before=!0,t.after=!0),t.whitespace=F(e,r),k(e,t)}if(e.type==="text"){if(r.whitespace==="normal")return S(e,r);r.whitespace==="nowrap"&&(e.value=r.collapse(e.value))}return{ignore:f(e),stripAtStart:!1,remove:!1}}function S(e,r){const t=r.collapse(e.value),n={ignore:!1,stripAtStart:!1,remove:!1};let i=0,l=t.length;return r.before&&o(t.charAt(0))&&i++,i!==l&&o(t.charAt(l-1))&&(r.after?l--:n.stripAtStart=!0),i===l?n.remove=!0:e.value=t.slice(i,l),n}function k(e,r){let t=r.before;const n=r.after,i=e.children;let l=i.length,a=-1;for(;++a<l;){const s=p(i[a],{...r,after:u(i,a,n),before:t});s.remove?(i.splice(a,1),a--,l--):s.ignore||(t=s.stripAtStart),m(i[a])&&(t=!1)}return{ignore:!1,stripAtStart:!!(t||n),remove:!1}}function u(e,r,t){for(;++r<e.length;){const n=e[r];let i=N(n);if(i===void 0&&"children"in n&&!W(n)&&(i=u(n.children,-1)),typeof i=="boolean")return i}return t}function N(e){if(e.type==="element"){if(m(e))return!1;if(h(e))return!0}else if(e.type==="text"){if(!x(e))return!1}else if(!f(e))return!1}function m(e){return v(e)||c(e,g)}function h(e){return c(e,w)}function W(e){return!!(e.type==="element"&&e.properties.hidden)||f(e)||c(e,b)}function o(e){return e===" "||e===`
1
+ import{blocks as w}from"./block.js";import{content as g}from"./content.js";import{skippable as b}from"./skippable.js";import{convert as y}from"../../../../unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js";import{isElement as c}from"../../../../hast-util-is-element@3.0.0/node_modules/hast-util-is-element/lib/index.js";import{embedded as v}from"../../../../hast-util-embedded@3.0.0/node_modules/hast-util-embedded/lib/index.js";import{whitespace as x}from"../../../../hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js";const A={},f=y(["comment","doctype"]);function G(e,r){p(e,{collapse:E((r||A).newlines?B:$),whitespace:"normal"})}function p(e,r){if("children"in e){const t={...r};return(e.type==="root"||h(e))&&(t.before=!0,t.after=!0),t.whitespace=F(e,r),k(e,t)}if(e.type==="text"){if(r.whitespace==="normal")return S(e,r);r.whitespace==="nowrap"&&(e.value=r.collapse(e.value))}return{ignore:f(e),stripAtStart:!1,remove:!1}}function S(e,r){const t=r.collapse(e.value),n={ignore:!1,stripAtStart:!1,remove:!1};let i=0,l=t.length;return r.before&&o(t.charAt(0))&&i++,i!==l&&o(t.charAt(l-1))&&(r.after?l--:n.stripAtStart=!0),i===l?n.remove=!0:e.value=t.slice(i,l),n}function k(e,r){let t=r.before;const n=r.after,i=e.children;let l=i.length,a=-1;for(;++a<l;){const s=p(i[a],{...r,after:u(i,a,n),before:t});s.remove?(i.splice(a,1),a--,l--):s.ignore||(t=s.stripAtStart),m(i[a])&&(t=!1)}return{ignore:!1,stripAtStart:!!(t||n),remove:!1}}function u(e,r,t){for(;++r<e.length;){const n=e[r];let i=N(n);if(i===void 0&&"children"in n&&!W(n)&&(i=u(n.children,-1)),typeof i=="boolean")return i}return t}function N(e){if(e.type==="element"){if(m(e))return!1;if(h(e))return!0}else if(e.type==="text"){if(!x(e))return!1}else if(!f(e))return!1}function m(e){return v(e)||c(e,g)}function h(e){return c(e,w)}function W(e){return!!(e.type==="element"&&e.properties.hidden)||f(e)||c(e,b)}function o(e){return e===" "||e===`
2
2
  `}function B(e){const r=/\r?\n|\r/.exec(e);return r?r[0]:" "}function $(){return" "}function E(e){return r;function r(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}function F(e,r){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":r.whitespace;case"textarea":return"pre-wrap"}return r.whitespace}export{G as minifyWhitespace};
@@ -1 +1 @@
1
- import{wrapNeeded as a}from"../util/wrap.js";import{visit as f}from"../../../../../unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.js";import{toString as u}from"../../../../../mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.js";import{EXIT as g}from"../../../../../unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/index.js";function v(i,e){const l=e.properties||{},o=e.tagName==="video"?String(l.poster||""):"";let n=String(l.src||""),p=-1,c=!1,r=i.all(e);if(f({type:"root",children:r},function(t){if(t.type==="link")return c=!0,g}),c||a(r))return r;for(;!n&&++p<e.children.length;){const t=e.children[p];t.type==="element"&&t.tagName==="source"&&t.properties&&(n=String(t.properties.src||""))}if(o){const t={type:"image",title:null,url:i.resolve(o),alt:u(r)};i.patch(e,t),r=[t]}const m=r,s={type:"link",title:l.title?String(l.title):null,url:i.resolve(n),children:m};return i.patch(e,s),s}export{v as media};
1
+ import{wrapNeeded as a}from"../util/wrap.js";import{visit as f}from"../../../../../unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.js";import{toString as u}from"../../../../../mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.js";import{EXIT as g}from"../../../../../unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js";function v(i,e){const l=e.properties||{},o=e.tagName==="video"?String(l.poster||""):"";let n=String(l.src||""),p=-1,c=!1,r=i.all(e);if(f({type:"root",children:r},function(t){if(t.type==="link")return c=!0,g}),c||a(r))return r;for(;!n&&++p<e.children.length;){const t=e.children[p];t.type==="element"&&t.tagName==="source"&&t.properties&&(n=String(t.properties.src||""))}if(o){const t={type:"image",title:null,url:i.resolve(o),alt:u(r)};i.patch(e,t),r=[t]}const m=r,s={type:"link",title:l.title?String(l.title):null,url:i.resolve(n),children:m};return i.patch(e,s),s}export{v as media};
@@ -1 +1 @@
1
- import{toText as b}from"../../../../../hast-util-to-text@4.0.2/node_modules/hast-util-to-text/lib/index.js";import{visit as y}from"../../../../../unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.js";import{SKIP as S}from"../../../../../unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/index.js";function R(a,n){if(a.inTable){const l={type:"text",value:b(n)};return a.patch(n,l),l}a.inTable=!0;const{align:o,headless:s}=x(n),e=a.toSpecificContent(a.all(n),w);s&&e.unshift(w());let t=-1;for(;++t<e.length;){const l=e[t],i=a.toSpecificContent(l.children,I);l.children=i}let c=1;for(t=-1;++t<e.length;){const l=e[t].children;let i=-1;for(;++i<l.length;){const r=l[i];if(r.data){const d=r.data,u=Number.parseInt(String(d.hastUtilToMdastTemporaryColSpan),10)||1,g=Number.parseInt(String(d.hastUtilToMdastTemporaryRowSpan),10)||1;if(u>1||g>1){let h=t-1;for(;++h<t+g;){let p=i-1;for(;++p<i+u&&e[h];){const m=[];(h!==t||p!==i)&&m.push({type:"tableCell",children:[]}),e[h].children.splice(p,0,...m)}}}"hastUtilToMdastTemporaryColSpan"in r.data&&delete r.data.hastUtilToMdastTemporaryColSpan,"hastUtilToMdastTemporaryRowSpan"in r.data&&delete r.data.hastUtilToMdastTemporaryRowSpan,Object.keys(r.data).length===0&&delete r.data}}l.length>c&&(c=l.length)}for(t=-1;++t<e.length;){const l=e[t].children;let i=l.length-1;for(;++i<c;)l.push({type:"tableCell",children:[]})}let T=o.length-1;for(;++T<c;)o.push(null);a.inTable=!1;const f={type:"table",align:o,children:e};return a.patch(n,f),f}function x(a){const n={align:[null],headless:!0};let o=0,s=0;return y(a,function(e){if(e.type==="element"){if(e.tagName==="table"&&a!==e)return S;if((e.tagName==="th"||e.tagName==="td")&&e.properties){if(!n.align[s]){const t=String(e.properties.align||"")||null;(t==="center"||t==="left"||t==="right"||t===null)&&(n.align[s]=t)}n.headless&&o<2&&e.tagName==="th"&&(n.headless=!1),s++}else e.tagName==="thead"?n.headless=!1:e.tagName==="tr"&&(o++,s=0)}}),n}function I(){return{type:"tableCell",children:[]}}function w(){return{type:"tableRow",children:[]}}export{R as table};
1
+ import{toText as b}from"../../../../../hast-util-to-text@4.0.2/node_modules/hast-util-to-text/lib/index.js";import{visit as y}from"../../../../../unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.js";import{SKIP as S}from"../../../../../unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js";function R(a,n){if(a.inTable){const l={type:"text",value:b(n)};return a.patch(n,l),l}a.inTable=!0;const{align:o,headless:s}=x(n),e=a.toSpecificContent(a.all(n),w);s&&e.unshift(w());let t=-1;for(;++t<e.length;){const l=e[t],i=a.toSpecificContent(l.children,I);l.children=i}let c=1;for(t=-1;++t<e.length;){const l=e[t].children;let i=-1;for(;++i<l.length;){const r=l[i];if(r.data){const d=r.data,u=Number.parseInt(String(d.hastUtilToMdastTemporaryColSpan),10)||1,g=Number.parseInt(String(d.hastUtilToMdastTemporaryRowSpan),10)||1;if(u>1||g>1){let h=t-1;for(;++h<t+g;){let p=i-1;for(;++p<i+u&&e[h];){const m=[];(h!==t||p!==i)&&m.push({type:"tableCell",children:[]}),e[h].children.splice(p,0,...m)}}}"hastUtilToMdastTemporaryColSpan"in r.data&&delete r.data.hastUtilToMdastTemporaryColSpan,"hastUtilToMdastTemporaryRowSpan"in r.data&&delete r.data.hastUtilToMdastTemporaryRowSpan,Object.keys(r.data).length===0&&delete r.data}}l.length>c&&(c=l.length)}for(t=-1;++t<e.length;){const l=e[t].children;let i=l.length-1;for(;++i<c;)l.push({type:"tableCell",children:[]})}let T=o.length-1;for(;++T<c;)o.push(null);a.inTable=!1;const f={type:"table",align:o,children:e};return a.patch(n,f),f}function x(a){const n={align:[null],headless:!0};let o=0,s=0;return y(a,function(e){if(e.type==="element"){if(e.tagName==="table"&&a!==e)return S;if((e.tagName==="th"||e.tagName==="td")&&e.properties){if(!n.align[s]){const t=String(e.properties.align||"")||null;(t==="center"||t==="left"||t==="right"||t===null)&&(n.align[s]=t)}n.headless&&o<2&&e.tagName==="th"&&(n.headless=!1),s++}else e.tagName==="thead"?n.headless=!1:e.tagName==="tr"&&(o++,s=0)}}),n}function I(){return{type:"tableCell",children:[]}}function w(){return{type:"tableRow",children:[]}}export{R as table};