svelte-on-rails 0.0.1

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 (1361) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +114 -0
  3. data/lib/mount-svelte.rb +13 -0
  4. data/lib/mount_svelte/compile.js +185 -0
  5. data/lib/mount_svelte/configuration.rb +69 -0
  6. data/lib/mount_svelte/node_modules/@ampproject/remapping/LICENSE +202 -0
  7. data/lib/mount_svelte/node_modules/@ampproject/remapping/README.md +218 -0
  8. data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/remapping.mjs +197 -0
  9. data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/remapping.mjs.map +1 -0
  10. data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/remapping.umd.js +202 -0
  11. data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/remapping.umd.js.map +1 -0
  12. data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/types/build-source-map-tree.d.ts +14 -0
  13. data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/types/remapping.d.ts +20 -0
  14. data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts +45 -0
  15. data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/types/source-map.d.ts +18 -0
  16. data/lib/mount_svelte/node_modules/@ampproject/remapping/dist/types/types.d.ts +15 -0
  17. data/lib/mount_svelte/node_modules/@ampproject/remapping/package.json +75 -0
  18. data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/LICENSE +19 -0
  19. data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/README.md +227 -0
  20. data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +230 -0
  21. data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +1 -0
  22. data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +246 -0
  23. data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +1 -0
  24. data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
  25. data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
  26. data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +36 -0
  27. data/lib/mount_svelte/node_modules/@jridgewell/gen-mapping/package.json +76 -0
  28. data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
  29. data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/README.md +40 -0
  30. data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
  31. data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
  32. data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
  33. data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
  34. data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
  35. data/lib/mount_svelte/node_modules/@jridgewell/resolve-uri/package.json +69 -0
  36. data/lib/mount_svelte/node_modules/@jridgewell/set-array/LICENSE +19 -0
  37. data/lib/mount_svelte/node_modules/@jridgewell/set-array/README.md +37 -0
  38. data/lib/mount_svelte/node_modules/@jridgewell/set-array/dist/set-array.mjs +69 -0
  39. data/lib/mount_svelte/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +1 -0
  40. data/lib/mount_svelte/node_modules/@jridgewell/set-array/dist/set-array.umd.js +83 -0
  41. data/lib/mount_svelte/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +1 -0
  42. data/lib/mount_svelte/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts +32 -0
  43. data/lib/mount_svelte/node_modules/@jridgewell/set-array/package.json +65 -0
  44. data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
  45. data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
  46. data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +424 -0
  47. data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
  48. data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +439 -0
  49. data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
  50. data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
  51. data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +8 -0
  52. data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
  53. data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
  54. data/lib/mount_svelte/node_modules/@jridgewell/sourcemap-codec/package.json +75 -0
  55. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
  56. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/README.md +257 -0
  57. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +580 -0
  58. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
  59. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +600 -0
  60. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
  61. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
  62. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
  63. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
  64. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
  65. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
  66. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
  67. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
  68. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +79 -0
  69. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +99 -0
  70. data/lib/mount_svelte/node_modules/@jridgewell/trace-mapping/package.json +77 -0
  71. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/LICENSE +21 -0
  72. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/README.md +475 -0
  73. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/dist/cjs/index.js +2331 -0
  74. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/dist/es/index.js +2326 -0
  75. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/dist/es/package.json +1 -0
  76. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/CHANGELOG.md +37 -0
  77. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/README.md +61 -0
  78. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/dist/is-reference.es.js +31 -0
  79. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/dist/is-reference.js +39 -0
  80. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/dist/types/index.d.ts +2 -0
  81. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/node_modules/is-reference/package.json +49 -0
  82. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/package.json +91 -0
  83. data/lib/mount_svelte/node_modules/@rollup/plugin-commonjs/types/index.d.ts +233 -0
  84. data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/LICENSE +21 -0
  85. data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/README.md +296 -0
  86. data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js +1377 -0
  87. data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/dist/es/index.js +1370 -0
  88. data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/dist/es/package.json +1 -0
  89. data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/package.json +89 -0
  90. data/lib/mount_svelte/node_modules/@rollup/plugin-node-resolve/types/index.d.ts +122 -0
  91. data/lib/mount_svelte/node_modules/@rollup/plugin-url/README.md +137 -0
  92. data/lib/mount_svelte/node_modules/@rollup/plugin-url/dist/cjs/index.js +127 -0
  93. data/lib/mount_svelte/node_modules/@rollup/plugin-url/dist/es/index.js +122 -0
  94. data/lib/mount_svelte/node_modules/@rollup/plugin-url/dist/es/package.json +1 -0
  95. data/lib/mount_svelte/node_modules/@rollup/plugin-url/package.json +80 -0
  96. data/lib/mount_svelte/node_modules/@rollup/plugin-url/types/index.d.ts +66 -0
  97. data/lib/mount_svelte/node_modules/@rollup/pluginutils/LICENSE +21 -0
  98. data/lib/mount_svelte/node_modules/@rollup/pluginutils/README.md +262 -0
  99. data/lib/mount_svelte/node_modules/@rollup/pluginutils/dist/cjs/index.js +377 -0
  100. data/lib/mount_svelte/node_modules/@rollup/pluginutils/dist/es/index.js +365 -0
  101. data/lib/mount_svelte/node_modules/@rollup/pluginutils/dist/es/package.json +1 -0
  102. data/lib/mount_svelte/node_modules/@rollup/pluginutils/package.json +99 -0
  103. data/lib/mount_svelte/node_modules/@rollup/pluginutils/types/index.d.ts +98 -0
  104. data/lib/mount_svelte/node_modules/@rollup/rollup-darwin-arm64/README.md +3 -0
  105. data/lib/mount_svelte/node_modules/@rollup/rollup-darwin-arm64/package.json +19 -0
  106. data/lib/mount_svelte/node_modules/@rollup/rollup-darwin-arm64/rollup.darwin-arm64.node +0 -0
  107. data/lib/mount_svelte/node_modules/@sveltejs/acorn-typescript/LICENSE.md +22 -0
  108. data/lib/mount_svelte/node_modules/@sveltejs/acorn-typescript/README.md +70 -0
  109. data/lib/mount_svelte/node_modules/@sveltejs/acorn-typescript/index.d.ts +12 -0
  110. data/lib/mount_svelte/node_modules/@sveltejs/acorn-typescript/index.js +4999 -0
  111. data/lib/mount_svelte/node_modules/@sveltejs/acorn-typescript/package.json +55 -0
  112. data/lib/mount_svelte/node_modules/@types/estree/LICENSE +21 -0
  113. data/lib/mount_svelte/node_modules/@types/estree/README.md +15 -0
  114. data/lib/mount_svelte/node_modules/@types/estree/flow.d.ts +167 -0
  115. data/lib/mount_svelte/node_modules/@types/estree/index.d.ts +694 -0
  116. data/lib/mount_svelte/node_modules/@types/estree/package.json +27 -0
  117. data/lib/mount_svelte/node_modules/@types/resolve/LICENSE +21 -0
  118. data/lib/mount_svelte/node_modules/@types/resolve/README.md +16 -0
  119. data/lib/mount_svelte/node_modules/@types/resolve/index.d.ts +175 -0
  120. data/lib/mount_svelte/node_modules/@types/resolve/package.json +35 -0
  121. data/lib/mount_svelte/node_modules/acorn/CHANGELOG.md +940 -0
  122. data/lib/mount_svelte/node_modules/acorn/LICENSE +21 -0
  123. data/lib/mount_svelte/node_modules/acorn/README.md +282 -0
  124. data/lib/mount_svelte/node_modules/acorn/bin/acorn +4 -0
  125. data/lib/mount_svelte/node_modules/acorn/dist/acorn.d.mts +866 -0
  126. data/lib/mount_svelte/node_modules/acorn/dist/acorn.d.ts +866 -0
  127. data/lib/mount_svelte/node_modules/acorn/dist/acorn.js +6183 -0
  128. data/lib/mount_svelte/node_modules/acorn/dist/acorn.mjs +6154 -0
  129. data/lib/mount_svelte/node_modules/acorn/dist/bin.js +90 -0
  130. data/lib/mount_svelte/node_modules/acorn/package.json +50 -0
  131. data/lib/mount_svelte/node_modules/aria-query/LICENSE +201 -0
  132. data/lib/mount_svelte/node_modules/aria-query/README.md +195 -0
  133. data/lib/mount_svelte/node_modules/aria-query/lib/ariaPropsMap.js +168 -0
  134. data/lib/mount_svelte/node_modules/aria-query/lib/domMap.js +311 -0
  135. data/lib/mount_svelte/node_modules/aria-query/lib/elementRoleMap.js +152 -0
  136. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/commandRole.js +22 -0
  137. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js +25 -0
  138. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/inputRole.js +29 -0
  139. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js +22 -0
  140. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js +26 -0
  141. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js +50 -0
  142. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js +37 -0
  143. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js +22 -0
  144. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/selectRole.js +24 -0
  145. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/structureRole.js +22 -0
  146. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js +22 -0
  147. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/abstract/windowRole.js +24 -0
  148. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js +21 -0
  149. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js +50 -0
  150. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js +12 -0
  151. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js +92 -0
  152. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js +33 -0
  153. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js +33 -0
  154. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js +33 -0
  155. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js +33 -0
  156. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js +30 -0
  157. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js +33 -0
  158. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js +33 -0
  159. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js +30 -0
  160. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js +33 -0
  161. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js +33 -0
  162. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js +33 -0
  163. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js +33 -0
  164. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js +33 -0
  165. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js +33 -0
  166. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js +33 -0
  167. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js +33 -0
  168. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js +33 -0
  169. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js +33 -0
  170. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js +33 -0
  171. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js +33 -0
  172. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js +28 -0
  173. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js +33 -0
  174. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js +33 -0
  175. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js +33 -0
  176. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js +30 -0
  177. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js +33 -0
  178. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js +33 -0
  179. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js +30 -0
  180. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js +33 -0
  181. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js +32 -0
  182. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js +30 -0
  183. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js +30 -0
  184. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js +33 -0
  185. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js +33 -0
  186. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js +33 -0
  187. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js +33 -0
  188. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js +27 -0
  189. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js +33 -0
  190. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js +33 -0
  191. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js +33 -0
  192. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js +33 -0
  193. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js +43 -0
  194. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js +47 -0
  195. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js +28 -0
  196. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/alertRole.js +30 -0
  197. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js +27 -0
  198. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/applicationRole.js +33 -0
  199. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/articleRole.js +30 -0
  200. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/bannerRole.js +28 -0
  201. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js +27 -0
  202. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/buttonRole.js +73 -0
  203. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/captionRole.js +27 -0
  204. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/cellRole.js +33 -0
  205. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js +45 -0
  206. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/codeRole.js +27 -0
  207. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js +47 -0
  208. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js +124 -0
  209. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js +48 -0
  210. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js +28 -0
  211. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/definitionRole.js +27 -0
  212. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/deletionRole.js +27 -0
  213. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/dialogRole.js +27 -0
  214. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/directoryRole.js +24 -0
  215. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/documentRole.js +31 -0
  216. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js +27 -0
  217. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/feedRole.js +22 -0
  218. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/figureRole.js +27 -0
  219. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/formRole.js +49 -0
  220. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/genericRole.js +119 -0
  221. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/graphicsDocumentRole.js +43 -0
  222. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/graphicsObjectRole.js +47 -0
  223. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/graphicsSymbolRole.js +28 -0
  224. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/gridRole.js +25 -0
  225. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js +37 -0
  226. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/groupRole.js +45 -0
  227. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/headingRole.js +56 -0
  228. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/imgRole.js +45 -0
  229. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/insertionRole.js +27 -0
  230. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/linkRole.js +44 -0
  231. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/listRole.js +37 -0
  232. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/listboxRole.js +63 -0
  233. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/listitemRole.js +37 -0
  234. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/logRole.js +24 -0
  235. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/mainRole.js +27 -0
  236. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/markRole.js +31 -0
  237. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js +22 -0
  238. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/mathRole.js +27 -0
  239. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/menuRole.js +44 -0
  240. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/menubarRole.js +29 -0
  241. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js +43 -0
  242. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js +29 -0
  243. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js +29 -0
  244. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/meterRole.js +33 -0
  245. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/navigationRole.js +27 -0
  246. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/noneRole.js +22 -0
  247. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/noteRole.js +22 -0
  248. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/optionRole.js +44 -0
  249. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js +27 -0
  250. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/presentationRole.js +31 -0
  251. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js +34 -0
  252. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/radioRole.js +37 -0
  253. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js +32 -0
  254. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/regionRole.js +44 -0
  255. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/rowRole.js +35 -0
  256. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js +37 -0
  257. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js +42 -0
  258. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js +31 -0
  259. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/searchRole.js +22 -0
  260. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js +35 -0
  261. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/separatorRole.js +34 -0
  262. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/sliderRole.js +42 -0
  263. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js +38 -0
  264. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/statusRole.js +30 -0
  265. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/strongRole.js +27 -0
  266. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js +27 -0
  267. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js +27 -0
  268. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/switchRole.js +29 -0
  269. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/tabRole.js +29 -0
  270. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/tableRole.js +30 -0
  271. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/tablistRole.js +31 -0
  272. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js +22 -0
  273. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/termRole.js +32 -0
  274. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/textboxRole.js +107 -0
  275. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/timeRole.js +27 -0
  276. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/timerRole.js +22 -0
  277. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js +29 -0
  278. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js +22 -0
  279. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/treeRole.js +28 -0
  280. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/treegridRole.js +22 -0
  281. data/lib/mount_svelte/node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js +27 -0
  282. data/lib/mount_svelte/node_modules/aria-query/lib/index.js +17 -0
  283. data/lib/mount_svelte/node_modules/aria-query/lib/roleElementMap.js +75 -0
  284. data/lib/mount_svelte/node_modules/aria-query/lib/rolesMap.js +113 -0
  285. data/lib/mount_svelte/node_modules/aria-query/lib/util/iterationDecorator.js +17 -0
  286. data/lib/mount_svelte/node_modules/aria-query/lib/util/iteratorProxy.js +32 -0
  287. data/lib/mount_svelte/node_modules/aria-query/package.json +70 -0
  288. data/lib/mount_svelte/node_modules/axobject-query/LICENSE +201 -0
  289. data/lib/mount_svelte/node_modules/axobject-query/README.md +404 -0
  290. data/lib/mount_svelte/node_modules/axobject-query/lib/AXObjectElementMap.js +92 -0
  291. data/lib/mount_svelte/node_modules/axobject-query/lib/AXObjectRoleMap.js +92 -0
  292. data/lib/mount_svelte/node_modules/axobject-query/lib/AXObjectsMap.js +178 -0
  293. data/lib/mount_svelte/node_modules/axobject-query/lib/elementAXObjectMap.js +128 -0
  294. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/AbbrRole.js +17 -0
  295. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/AlertDialogRole.js +17 -0
  296. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/AlertRole.js +17 -0
  297. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/AnnotationRole.js +12 -0
  298. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ApplicationRole.js +17 -0
  299. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ArticleRole.js +22 -0
  300. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/AudioRole.js +17 -0
  301. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/BannerRole.js +17 -0
  302. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/BlockquoteRole.js +17 -0
  303. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/BusyIndicatorRole.js +20 -0
  304. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ButtonRole.js +22 -0
  305. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/CanvasRole.js +17 -0
  306. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/CaptionRole.js +17 -0
  307. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/CellRole.js +27 -0
  308. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/CheckBoxRole.js +26 -0
  309. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ColorWellRole.js +21 -0
  310. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ColumnHeaderRole.js +22 -0
  311. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ColumnRole.js +12 -0
  312. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ComboBoxRole.js +22 -0
  313. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ComplementaryRole.js +17 -0
  314. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ContentInfoRole.js +17 -0
  315. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DateRole.js +21 -0
  316. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DateTimeRole.js +21 -0
  317. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DefinitionRole.js +17 -0
  318. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DescriptionListDetailRole.js +17 -0
  319. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DescriptionListRole.js +17 -0
  320. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DescriptionListTermRole.js +17 -0
  321. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DetailsRole.js +17 -0
  322. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DialogRole.js +22 -0
  323. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DirectoryRole.js +22 -0
  324. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DisclosureTriangleRole.js +18 -0
  325. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DivRole.js +17 -0
  326. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/DocumentRole.js +17 -0
  327. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/EmbeddedObjectRole.js +17 -0
  328. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/FeedRole.js +17 -0
  329. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/FigcaptionRole.js +17 -0
  330. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/FigureRole.js +22 -0
  331. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/FooterRole.js +17 -0
  332. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/FormRole.js +22 -0
  333. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/GridRole.js +17 -0
  334. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/GroupRole.js +17 -0
  335. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/HeadingRole.js +47 -0
  336. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/IframePresentationalRole.js +12 -0
  337. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/IframeRole.js +17 -0
  338. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/IgnoredRole.js +12 -0
  339. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ImageMapLinkRole.js +12 -0
  340. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ImageMapRole.js +20 -0
  341. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ImageRole.js +22 -0
  342. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/InlineTextBoxRole.js +17 -0
  343. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/InputTimeRole.js +21 -0
  344. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/LabelRole.js +17 -0
  345. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/LegendRole.js +17 -0
  346. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/LineBreakRole.js +17 -0
  347. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/LinkRole.js +25 -0
  348. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ListBoxOptionRole.js +22 -0
  349. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ListBoxRole.js +27 -0
  350. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ListItemRole.js +22 -0
  351. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ListMarkerRole.js +12 -0
  352. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ListRole.js +27 -0
  353. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/LogRole.js +17 -0
  354. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MainRole.js +22 -0
  355. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MarkRole.js +17 -0
  356. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MarqueeRole.js +22 -0
  357. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MathRole.js +17 -0
  358. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuBarRole.js +17 -0
  359. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuButtonRole.js +12 -0
  360. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuItemCheckBoxRole.js +17 -0
  361. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuItemRadioRole.js +17 -0
  362. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuItemRole.js +22 -0
  363. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuListOptionRole.js +12 -0
  364. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuListPopupRole.js +12 -0
  365. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MenuRole.js +22 -0
  366. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/MeterRole.js +17 -0
  367. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/NavigationRole.js +22 -0
  368. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/NoneRole.js +17 -0
  369. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/NoteRole.js +17 -0
  370. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/OutlineRole.js +12 -0
  371. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ParagraphRole.js +17 -0
  372. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/PopUpButtonRole.js +12 -0
  373. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/PreRole.js +17 -0
  374. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/PresentationalRole.js +17 -0
  375. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ProgressIndicatorRole.js +22 -0
  376. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RadioButtonRole.js +26 -0
  377. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RadioGroupRole.js +17 -0
  378. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RegionRole.js +17 -0
  379. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RootWebAreaRole.js +12 -0
  380. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RowHeaderRole.js +26 -0
  381. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RowRole.js +22 -0
  382. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RubyRole.js +17 -0
  383. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/RulerRole.js +12 -0
  384. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SVGRootRole.js +12 -0
  385. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ScrollAreaRole.js +12 -0
  386. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ScrollBarRole.js +17 -0
  387. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SeamlessWebAreaRole.js +12 -0
  388. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SearchBoxRole.js +26 -0
  389. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SearchRole.js +17 -0
  390. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SliderRole.js +26 -0
  391. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SliderThumbRole.js +12 -0
  392. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SpinButtonPartRole.js +12 -0
  393. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SpinButtonRole.js +26 -0
  394. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SplitterRole.js +17 -0
  395. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/StaticTextRole.js +12 -0
  396. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/StatusRole.js +17 -0
  397. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/SwitchRole.js +26 -0
  398. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TabGroupRole.js +17 -0
  399. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TabListRole.js +17 -0
  400. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TabPanelRole.js +17 -0
  401. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TabRole.js +17 -0
  402. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TableHeaderContainerRole.js +12 -0
  403. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TableRole.js +22 -0
  404. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TermRole.js +17 -0
  405. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TextAreaRole.js +26 -0
  406. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TextFieldRole.js +31 -0
  407. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TimeRole.js +17 -0
  408. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TimerRole.js +17 -0
  409. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ToggleButtonRole.js +19 -0
  410. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/ToolbarRole.js +17 -0
  411. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TreeGridRole.js +17 -0
  412. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TreeItemRole.js +17 -0
  413. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/TreeRole.js +17 -0
  414. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/UserInterfaceTooltipRole.js +17 -0
  415. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/VideoRole.js +17 -0
  416. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/WebAreaRole.js +12 -0
  417. data/lib/mount_svelte/node_modules/axobject-query/lib/etc/objects/WindowRole.js +12 -0
  418. data/lib/mount_svelte/node_modules/axobject-query/lib/index.js +19 -0
  419. data/lib/mount_svelte/node_modules/axobject-query/lib/util/iterationDecorator.js +17 -0
  420. data/lib/mount_svelte/node_modules/axobject-query/lib/util/iteratorProxy.js +33 -0
  421. data/lib/mount_svelte/node_modules/axobject-query/package.json +69 -0
  422. data/lib/mount_svelte/node_modules/clsx/clsx.d.mts +6 -0
  423. data/lib/mount_svelte/node_modules/clsx/clsx.d.ts +10 -0
  424. data/lib/mount_svelte/node_modules/clsx/dist/clsx.js +1 -0
  425. data/lib/mount_svelte/node_modules/clsx/dist/clsx.min.js +1 -0
  426. data/lib/mount_svelte/node_modules/clsx/dist/clsx.mjs +1 -0
  427. data/lib/mount_svelte/node_modules/clsx/dist/lite.js +1 -0
  428. data/lib/mount_svelte/node_modules/clsx/dist/lite.mjs +1 -0
  429. data/lib/mount_svelte/node_modules/clsx/license +9 -0
  430. data/lib/mount_svelte/node_modules/clsx/package.json +60 -0
  431. data/lib/mount_svelte/node_modules/clsx/readme.md +154 -0
  432. data/lib/mount_svelte/node_modules/commondir/LICENSE +24 -0
  433. data/lib/mount_svelte/node_modules/commondir/example/dir.js +3 -0
  434. data/lib/mount_svelte/node_modules/commondir/index.js +29 -0
  435. data/lib/mount_svelte/node_modules/commondir/package.json +34 -0
  436. data/lib/mount_svelte/node_modules/commondir/readme.markdown +48 -0
  437. data/lib/mount_svelte/node_modules/commondir/test/dirs.js +55 -0
  438. data/lib/mount_svelte/node_modules/deepmerge/changelog.md +167 -0
  439. data/lib/mount_svelte/node_modules/deepmerge/dist/cjs.js +133 -0
  440. data/lib/mount_svelte/node_modules/deepmerge/dist/umd.js +139 -0
  441. data/lib/mount_svelte/node_modules/deepmerge/index.d.ts +20 -0
  442. data/lib/mount_svelte/node_modules/deepmerge/index.js +106 -0
  443. data/lib/mount_svelte/node_modules/deepmerge/license.txt +21 -0
  444. data/lib/mount_svelte/node_modules/deepmerge/package.json +42 -0
  445. data/lib/mount_svelte/node_modules/deepmerge/readme.md +264 -0
  446. data/lib/mount_svelte/node_modules/deepmerge/rollup.config.js +22 -0
  447. data/lib/mount_svelte/node_modules/esm-env/CHANGELOG.md +19 -0
  448. data/lib/mount_svelte/node_modules/esm-env/LICENSE +7 -0
  449. data/lib/mount_svelte/node_modules/esm-env/README.md +27 -0
  450. data/lib/mount_svelte/node_modules/esm-env/browser-fallback.js +1 -0
  451. data/lib/mount_svelte/node_modules/esm-env/dev-fallback.js +2 -0
  452. data/lib/mount_svelte/node_modules/esm-env/false.js +1 -0
  453. data/lib/mount_svelte/node_modules/esm-env/index.d.ts +3 -0
  454. data/lib/mount_svelte/node_modules/esm-env/index.js +3 -0
  455. data/lib/mount_svelte/node_modules/esm-env/package.json +33 -0
  456. data/lib/mount_svelte/node_modules/esm-env/true.js +1 -0
  457. data/lib/mount_svelte/node_modules/esrap/LICENSE +7 -0
  458. data/lib/mount_svelte/node_modules/esrap/README.md +78 -0
  459. data/lib/mount_svelte/node_modules/esrap/package.json +48 -0
  460. data/lib/mount_svelte/node_modules/esrap/src/handlers.js +1647 -0
  461. data/lib/mount_svelte/node_modules/esrap/src/index.js +159 -0
  462. data/lib/mount_svelte/node_modules/esrap/src/public.d.ts +2 -0
  463. data/lib/mount_svelte/node_modules/esrap/src/types.d.ts +77 -0
  464. data/lib/mount_svelte/node_modules/esrap/types/index.d.ts +23 -0
  465. data/lib/mount_svelte/node_modules/esrap/types/index.d.ts.map +18 -0
  466. data/lib/mount_svelte/node_modules/estree-walker/CHANGELOG.md +92 -0
  467. data/lib/mount_svelte/node_modules/estree-walker/LICENSE +7 -0
  468. data/lib/mount_svelte/node_modules/estree-walker/README.md +48 -0
  469. data/lib/mount_svelte/node_modules/estree-walker/dist/esm/estree-walker.js +333 -0
  470. data/lib/mount_svelte/node_modules/estree-walker/dist/esm/package.json +1 -0
  471. data/lib/mount_svelte/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  472. data/lib/mount_svelte/node_modules/estree-walker/package.json +37 -0
  473. data/lib/mount_svelte/node_modules/estree-walker/src/async.js +118 -0
  474. data/lib/mount_svelte/node_modules/estree-walker/src/index.js +35 -0
  475. data/lib/mount_svelte/node_modules/estree-walker/src/package.json +1 -0
  476. data/lib/mount_svelte/node_modules/estree-walker/src/sync.js +118 -0
  477. data/lib/mount_svelte/node_modules/estree-walker/src/walker.js +61 -0
  478. data/lib/mount_svelte/node_modules/estree-walker/types/async.d.ts +53 -0
  479. data/lib/mount_svelte/node_modules/estree-walker/types/index.d.ts +56 -0
  480. data/lib/mount_svelte/node_modules/estree-walker/types/sync.d.ts +53 -0
  481. data/lib/mount_svelte/node_modules/estree-walker/types/tsconfig.tsbuildinfo +345 -0
  482. data/lib/mount_svelte/node_modules/estree-walker/types/walker.d.ts +37 -0
  483. data/lib/mount_svelte/node_modules/fdir/LICENSE +7 -0
  484. data/lib/mount_svelte/node_modules/fdir/README.md +91 -0
  485. data/lib/mount_svelte/node_modules/fdir/dist/api/async.d.ts +3 -0
  486. data/lib/mount_svelte/node_modules/fdir/dist/api/async.js +19 -0
  487. data/lib/mount_svelte/node_modules/fdir/dist/api/counter.d.ts +12 -0
  488. data/lib/mount_svelte/node_modules/fdir/dist/api/counter.js +27 -0
  489. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/get-array.d.ts +3 -0
  490. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/get-array.js +13 -0
  491. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/group-files.d.ts +3 -0
  492. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/group-files.js +11 -0
  493. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/invoke-callback.d.ts +3 -0
  494. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/invoke-callback.js +57 -0
  495. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/is-recursive-symlink.d.ts +5 -0
  496. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/is-recursive-symlink.js +35 -0
  497. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/join-path.d.ts +5 -0
  498. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/join-path.js +36 -0
  499. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/push-directory.d.ts +3 -0
  500. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/push-directory.js +37 -0
  501. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/push-file.d.ts +3 -0
  502. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/push-file.js +33 -0
  503. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/resolve-symlink.d.ts +5 -0
  504. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/resolve-symlink.js +67 -0
  505. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/walk-directory.d.ts +5 -0
  506. data/lib/mount_svelte/node_modules/fdir/dist/api/functions/walk-directory.js +40 -0
  507. data/lib/mount_svelte/node_modules/fdir/dist/api/queue.d.ts +15 -0
  508. data/lib/mount_svelte/node_modules/fdir/dist/api/queue.js +23 -0
  509. data/lib/mount_svelte/node_modules/fdir/dist/api/sync.d.ts +2 -0
  510. data/lib/mount_svelte/node_modules/fdir/dist/api/sync.js +9 -0
  511. data/lib/mount_svelte/node_modules/fdir/dist/api/walker.d.ts +18 -0
  512. data/lib/mount_svelte/node_modules/fdir/dist/api/walker.js +124 -0
  513. data/lib/mount_svelte/node_modules/fdir/dist/builder/api-builder.d.ts +9 -0
  514. data/lib/mount_svelte/node_modules/fdir/dist/builder/api-builder.js +23 -0
  515. data/lib/mount_svelte/node_modules/fdir/dist/builder/index.d.ts +41 -0
  516. data/lib/mount_svelte/node_modules/fdir/dist/builder/index.js +136 -0
  517. data/lib/mount_svelte/node_modules/fdir/dist/index.d.ts +4 -0
  518. data/lib/mount_svelte/node_modules/fdir/dist/index.js +20 -0
  519. data/lib/mount_svelte/node_modules/fdir/dist/optimizer.d.ts +3 -0
  520. data/lib/mount_svelte/node_modules/fdir/dist/optimizer.js +54 -0
  521. data/lib/mount_svelte/node_modules/fdir/dist/types.d.ts +60 -0
  522. data/lib/mount_svelte/node_modules/fdir/dist/types.js +2 -0
  523. data/lib/mount_svelte/node_modules/fdir/dist/utils.d.ts +8 -0
  524. data/lib/mount_svelte/node_modules/fdir/dist/utils.js +32 -0
  525. data/lib/mount_svelte/node_modules/fdir/package.json +88 -0
  526. data/lib/mount_svelte/node_modules/fsevents/LICENSE +22 -0
  527. data/lib/mount_svelte/node_modules/fsevents/README.md +89 -0
  528. data/lib/mount_svelte/node_modules/fsevents/fsevents.d.ts +46 -0
  529. data/lib/mount_svelte/node_modules/fsevents/fsevents.js +83 -0
  530. data/lib/mount_svelte/node_modules/fsevents/fsevents.node +0 -0
  531. data/lib/mount_svelte/node_modules/fsevents/package.json +62 -0
  532. data/lib/mount_svelte/node_modules/function-bind/CHANGELOG.md +136 -0
  533. data/lib/mount_svelte/node_modules/function-bind/LICENSE +20 -0
  534. data/lib/mount_svelte/node_modules/function-bind/README.md +46 -0
  535. data/lib/mount_svelte/node_modules/function-bind/implementation.js +84 -0
  536. data/lib/mount_svelte/node_modules/function-bind/index.js +5 -0
  537. data/lib/mount_svelte/node_modules/function-bind/package.json +87 -0
  538. data/lib/mount_svelte/node_modules/function-bind/test/index.js +252 -0
  539. data/lib/mount_svelte/node_modules/hasown/CHANGELOG.md +40 -0
  540. data/lib/mount_svelte/node_modules/hasown/LICENSE +21 -0
  541. data/lib/mount_svelte/node_modules/hasown/README.md +40 -0
  542. data/lib/mount_svelte/node_modules/hasown/index.d.ts +3 -0
  543. data/lib/mount_svelte/node_modules/hasown/index.js +8 -0
  544. data/lib/mount_svelte/node_modules/hasown/package.json +92 -0
  545. data/lib/mount_svelte/node_modules/hasown/tsconfig.json +6 -0
  546. data/lib/mount_svelte/node_modules/is-core-module/CHANGELOG.md +218 -0
  547. data/lib/mount_svelte/node_modules/is-core-module/LICENSE +20 -0
  548. data/lib/mount_svelte/node_modules/is-core-module/README.md +40 -0
  549. data/lib/mount_svelte/node_modules/is-core-module/core.json +162 -0
  550. data/lib/mount_svelte/node_modules/is-core-module/index.js +69 -0
  551. data/lib/mount_svelte/node_modules/is-core-module/package.json +76 -0
  552. data/lib/mount_svelte/node_modules/is-core-module/test/index.js +157 -0
  553. data/lib/mount_svelte/node_modules/is-module/README.md +41 -0
  554. data/lib/mount_svelte/node_modules/is-module/component.json +11 -0
  555. data/lib/mount_svelte/node_modules/is-module/index.js +11 -0
  556. data/lib/mount_svelte/node_modules/is-module/package.json +20 -0
  557. data/lib/mount_svelte/node_modules/is-reference/README.md +61 -0
  558. data/lib/mount_svelte/node_modules/is-reference/package.json +48 -0
  559. data/lib/mount_svelte/node_modules/is-reference/src/index.js +51 -0
  560. data/lib/mount_svelte/node_modules/is-reference/types/index.d.ts +8 -0
  561. data/lib/mount_svelte/node_modules/is-reference/types/index.d.ts.map +9 -0
  562. data/lib/mount_svelte/node_modules/locate-character/README.md +66 -0
  563. data/lib/mount_svelte/node_modules/locate-character/package.json +44 -0
  564. data/lib/mount_svelte/node_modules/locate-character/src/index.js +72 -0
  565. data/lib/mount_svelte/node_modules/locate-character/src/types.d.ts +17 -0
  566. data/lib/mount_svelte/node_modules/locate-character/types/index.d.ts +19 -0
  567. data/lib/mount_svelte/node_modules/locate-character/types/index.d.ts.map +19 -0
  568. data/lib/mount_svelte/node_modules/magic-string/LICENSE +7 -0
  569. data/lib/mount_svelte/node_modules/magic-string/README.md +324 -0
  570. data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.cjs.d.ts +289 -0
  571. data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.cjs.js +1575 -0
  572. data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.cjs.js.map +1 -0
  573. data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
  574. data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.es.mjs +1569 -0
  575. data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
  576. data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.umd.js +1672 -0
  577. data/lib/mount_svelte/node_modules/magic-string/dist/magic-string.umd.js.map +1 -0
  578. data/lib/mount_svelte/node_modules/magic-string/package.json +63 -0
  579. data/lib/mount_svelte/node_modules/make-dir/index.d.ts +66 -0
  580. data/lib/mount_svelte/node_modules/make-dir/index.js +156 -0
  581. data/lib/mount_svelte/node_modules/make-dir/license +9 -0
  582. data/lib/mount_svelte/node_modules/make-dir/package.json +59 -0
  583. data/lib/mount_svelte/node_modules/make-dir/readme.md +125 -0
  584. data/lib/mount_svelte/node_modules/mime/CHANGELOG.md +312 -0
  585. data/lib/mount_svelte/node_modules/mime/LICENSE +21 -0
  586. data/lib/mount_svelte/node_modules/mime/Mime.js +97 -0
  587. data/lib/mount_svelte/node_modules/mime/README.md +178 -0
  588. data/lib/mount_svelte/node_modules/mime/cli.js +46 -0
  589. data/lib/mount_svelte/node_modules/mime/index.js +4 -0
  590. data/lib/mount_svelte/node_modules/mime/lite.js +4 -0
  591. data/lib/mount_svelte/node_modules/mime/package.json +52 -0
  592. data/lib/mount_svelte/node_modules/mime/types/other.js +1 -0
  593. data/lib/mount_svelte/node_modules/mime/types/standard.js +1 -0
  594. data/lib/mount_svelte/node_modules/path-parse/LICENSE +21 -0
  595. data/lib/mount_svelte/node_modules/path-parse/README.md +42 -0
  596. data/lib/mount_svelte/node_modules/path-parse/index.js +75 -0
  597. data/lib/mount_svelte/node_modules/path-parse/package.json +33 -0
  598. data/lib/mount_svelte/node_modules/picomatch/LICENSE +21 -0
  599. data/lib/mount_svelte/node_modules/picomatch/README.md +738 -0
  600. data/lib/mount_svelte/node_modules/picomatch/index.js +17 -0
  601. data/lib/mount_svelte/node_modules/picomatch/lib/constants.js +179 -0
  602. data/lib/mount_svelte/node_modules/picomatch/lib/parse.js +1085 -0
  603. data/lib/mount_svelte/node_modules/picomatch/lib/picomatch.js +341 -0
  604. data/lib/mount_svelte/node_modules/picomatch/lib/scan.js +391 -0
  605. data/lib/mount_svelte/node_modules/picomatch/lib/utils.js +72 -0
  606. data/lib/mount_svelte/node_modules/picomatch/package.json +83 -0
  607. data/lib/mount_svelte/node_modules/picomatch/posix.js +3 -0
  608. data/lib/mount_svelte/node_modules/resolve/LICENSE +21 -0
  609. data/lib/mount_svelte/node_modules/resolve/SECURITY.md +3 -0
  610. data/lib/mount_svelte/node_modules/resolve/async.js +3 -0
  611. data/lib/mount_svelte/node_modules/resolve/bin/resolve +50 -0
  612. data/lib/mount_svelte/node_modules/resolve/example/async.js +5 -0
  613. data/lib/mount_svelte/node_modules/resolve/example/sync.js +3 -0
  614. data/lib/mount_svelte/node_modules/resolve/index.js +6 -0
  615. data/lib/mount_svelte/node_modules/resolve/lib/async.js +329 -0
  616. data/lib/mount_svelte/node_modules/resolve/lib/caller.js +8 -0
  617. data/lib/mount_svelte/node_modules/resolve/lib/core.js +12 -0
  618. data/lib/mount_svelte/node_modules/resolve/lib/core.json +162 -0
  619. data/lib/mount_svelte/node_modules/resolve/lib/homedir.js +24 -0
  620. data/lib/mount_svelte/node_modules/resolve/lib/is-core.js +5 -0
  621. data/lib/mount_svelte/node_modules/resolve/lib/node-modules-paths.js +42 -0
  622. data/lib/mount_svelte/node_modules/resolve/lib/normalize-options.js +10 -0
  623. data/lib/mount_svelte/node_modules/resolve/lib/sync.js +208 -0
  624. data/lib/mount_svelte/node_modules/resolve/package.json +75 -0
  625. data/lib/mount_svelte/node_modules/resolve/readme.markdown +301 -0
  626. data/lib/mount_svelte/node_modules/resolve/sync.js +3 -0
  627. data/lib/mount_svelte/node_modules/resolve/test/core.js +88 -0
  628. data/lib/mount_svelte/node_modules/resolve/test/dotdot/abc/index.js +2 -0
  629. data/lib/mount_svelte/node_modules/resolve/test/dotdot/index.js +1 -0
  630. data/lib/mount_svelte/node_modules/resolve/test/dotdot.js +29 -0
  631. data/lib/mount_svelte/node_modules/resolve/test/faulty_basedir.js +29 -0
  632. data/lib/mount_svelte/node_modules/resolve/test/filter.js +34 -0
  633. data/lib/mount_svelte/node_modules/resolve/test/filter_sync.js +33 -0
  634. data/lib/mount_svelte/node_modules/resolve/test/home_paths.js +127 -0
  635. data/lib/mount_svelte/node_modules/resolve/test/home_paths_sync.js +114 -0
  636. data/lib/mount_svelte/node_modules/resolve/test/mock.js +315 -0
  637. data/lib/mount_svelte/node_modules/resolve/test/mock_sync.js +214 -0
  638. data/lib/mount_svelte/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
  639. data/lib/mount_svelte/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
  640. data/lib/mount_svelte/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
  641. data/lib/mount_svelte/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
  642. data/lib/mount_svelte/node_modules/resolve/test/module_dir.js +56 -0
  643. data/lib/mount_svelte/node_modules/resolve/test/node-modules-paths.js +143 -0
  644. data/lib/mount_svelte/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
  645. data/lib/mount_svelte/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
  646. data/lib/mount_svelte/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
  647. data/lib/mount_svelte/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
  648. data/lib/mount_svelte/node_modules/resolve/test/node_path.js +70 -0
  649. data/lib/mount_svelte/node_modules/resolve/test/nonstring.js +9 -0
  650. data/lib/mount_svelte/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  651. data/lib/mount_svelte/node_modules/resolve/test/pathfilter.js +75 -0
  652. data/lib/mount_svelte/node_modules/resolve/test/precedence/aaa/index.js +1 -0
  653. data/lib/mount_svelte/node_modules/resolve/test/precedence/aaa/main.js +1 -0
  654. data/lib/mount_svelte/node_modules/resolve/test/precedence/aaa.js +1 -0
  655. data/lib/mount_svelte/node_modules/resolve/test/precedence/bbb/main.js +1 -0
  656. data/lib/mount_svelte/node_modules/resolve/test/precedence/bbb.js +1 -0
  657. data/lib/mount_svelte/node_modules/resolve/test/precedence.js +23 -0
  658. data/lib/mount_svelte/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  659. data/lib/mount_svelte/node_modules/resolve/test/resolver/baz/package.json +4 -0
  660. data/lib/mount_svelte/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  661. data/lib/mount_svelte/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
  662. data/lib/mount_svelte/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
  663. data/lib/mount_svelte/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
  664. data/lib/mount_svelte/node_modules/resolve/test/resolver/cup.coffee +1 -0
  665. data/lib/mount_svelte/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
  666. data/lib/mount_svelte/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
  667. data/lib/mount_svelte/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
  668. data/lib/mount_svelte/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
  669. data/lib/mount_svelte/node_modules/resolve/test/resolver/false_main/index.js +0 -0
  670. data/lib/mount_svelte/node_modules/resolve/test/resolver/false_main/package.json +4 -0
  671. data/lib/mount_svelte/node_modules/resolve/test/resolver/foo.js +1 -0
  672. data/lib/mount_svelte/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
  673. data/lib/mount_svelte/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
  674. data/lib/mount_svelte/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
  675. data/lib/mount_svelte/node_modules/resolve/test/resolver/mug.coffee +0 -0
  676. data/lib/mount_svelte/node_modules/resolve/test/resolver/mug.js +0 -0
  677. data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
  678. data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
  679. data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
  680. data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
  681. data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
  682. data/lib/mount_svelte/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
  683. data/lib/mount_svelte/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
  684. data/lib/mount_svelte/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
  685. data/lib/mount_svelte/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
  686. data/lib/mount_svelte/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  687. data/lib/mount_svelte/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  688. data/lib/mount_svelte/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
  689. data/lib/mount_svelte/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
  690. data/lib/mount_svelte/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
  691. data/lib/mount_svelte/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
  692. data/lib/mount_svelte/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
  693. data/lib/mount_svelte/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
  694. data/lib/mount_svelte/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
  695. data/lib/mount_svelte/node_modules/resolve/test/resolver.js +597 -0
  696. data/lib/mount_svelte/node_modules/resolve/test/resolver_sync.js +730 -0
  697. data/lib/mount_svelte/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
  698. data/lib/mount_svelte/node_modules/resolve/test/shadowed_core.js +54 -0
  699. data/lib/mount_svelte/node_modules/resolve/test/subdirs.js +13 -0
  700. data/lib/mount_svelte/node_modules/resolve/test/symlinks.js +176 -0
  701. data/lib/mount_svelte/node_modules/resolve.exports/dist/index.js +1 -0
  702. data/lib/mount_svelte/node_modules/resolve.exports/dist/index.mjs +1 -0
  703. data/lib/mount_svelte/node_modules/resolve.exports/index.d.ts +100 -0
  704. data/lib/mount_svelte/node_modules/resolve.exports/license +21 -0
  705. data/lib/mount_svelte/node_modules/resolve.exports/package.json +50 -0
  706. data/lib/mount_svelte/node_modules/resolve.exports/readme.md +458 -0
  707. data/lib/mount_svelte/node_modules/rollup/LICENSE.md +681 -0
  708. data/lib/mount_svelte/node_modules/rollup/README.md +134 -0
  709. data/lib/mount_svelte/node_modules/rollup/dist/bin/rollup +1856 -0
  710. data/lib/mount_svelte/node_modules/rollup/dist/es/getLogFilter.js +64 -0
  711. data/lib/mount_svelte/node_modules/rollup/dist/es/package.json +1 -0
  712. data/lib/mount_svelte/node_modules/rollup/dist/es/parseAst.js +12 -0
  713. data/lib/mount_svelte/node_modules/rollup/dist/es/rollup.js +17 -0
  714. data/lib/mount_svelte/node_modules/rollup/dist/es/shared/node-entry.js +23644 -0
  715. data/lib/mount_svelte/node_modules/rollup/dist/es/shared/parseAst.js +2073 -0
  716. data/lib/mount_svelte/node_modules/rollup/dist/es/shared/watch.js +9297 -0
  717. data/lib/mount_svelte/node_modules/rollup/dist/getLogFilter.d.ts +5 -0
  718. data/lib/mount_svelte/node_modules/rollup/dist/getLogFilter.js +69 -0
  719. data/lib/mount_svelte/node_modules/rollup/dist/loadConfigFile.d.ts +20 -0
  720. data/lib/mount_svelte/node_modules/rollup/dist/loadConfigFile.js +29 -0
  721. data/lib/mount_svelte/node_modules/rollup/dist/native.js +110 -0
  722. data/lib/mount_svelte/node_modules/rollup/dist/parseAst.d.ts +4 -0
  723. data/lib/mount_svelte/node_modules/rollup/dist/parseAst.js +22 -0
  724. data/lib/mount_svelte/node_modules/rollup/dist/rollup.d.ts +1104 -0
  725. data/lib/mount_svelte/node_modules/rollup/dist/rollup.js +99 -0
  726. data/lib/mount_svelte/node_modules/rollup/dist/shared/fsevents-importer.js +37 -0
  727. data/lib/mount_svelte/node_modules/rollup/dist/shared/index.js +9003 -0
  728. data/lib/mount_svelte/node_modules/rollup/dist/shared/loadConfigFile.js +559 -0
  729. data/lib/mount_svelte/node_modules/rollup/dist/shared/parseAst.js +2301 -0
  730. data/lib/mount_svelte/node_modules/rollup/dist/shared/rollup.js +23581 -0
  731. data/lib/mount_svelte/node_modules/rollup/dist/shared/watch-cli.js +542 -0
  732. data/lib/mount_svelte/node_modules/rollup/dist/shared/watch.js +324 -0
  733. data/lib/mount_svelte/node_modules/rollup/package.json +268 -0
  734. data/lib/mount_svelte/node_modules/rollup-plugin-css-only/LICENSE.md +21 -0
  735. data/lib/mount_svelte/node_modules/rollup-plugin-css-only/README.md +103 -0
  736. data/lib/mount_svelte/node_modules/rollup-plugin-css-only/dist/index.cjs +92 -0
  737. data/lib/mount_svelte/node_modules/rollup-plugin-css-only/dist/index.mjs +90 -0
  738. data/lib/mount_svelte/node_modules/rollup-plugin-css-only/package.json +61 -0
  739. data/lib/mount_svelte/node_modules/rollup-plugin-string/CHANGELOG.md +22 -0
  740. data/lib/mount_svelte/node_modules/rollup-plugin-string/LICENSE +22 -0
  741. data/lib/mount_svelte/node_modules/rollup-plugin-string/README.md +38 -0
  742. data/lib/mount_svelte/node_modules/rollup-plugin-string/index.js +24 -0
  743. data/lib/mount_svelte/node_modules/rollup-plugin-string/package.json +36 -0
  744. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/LICENSE +7 -0
  745. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/README.md +135 -0
  746. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/index.d.ts +43 -0
  747. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/index.js +196 -0
  748. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/CHANGELOG.md +389 -0
  749. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/README.md +255 -0
  750. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/dist/cjs/index.js +475 -0
  751. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/dist/es/index.js +460 -0
  752. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/dist/es/package.json +1 -0
  753. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/package.json +92 -0
  754. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils/types/index.d.ts +93 -0
  755. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/CHANGELOG.md +136 -0
  756. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/LICENSE +21 -0
  757. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/README.md +708 -0
  758. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/index.js +3 -0
  759. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/lib/constants.js +179 -0
  760. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/lib/parse.js +1091 -0
  761. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/lib/picomatch.js +342 -0
  762. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/lib/scan.js +391 -0
  763. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/lib/utils.js +64 -0
  764. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/node_modules/picomatch/package.json +81 -0
  765. data/lib/mount_svelte/node_modules/rollup-plugin-svelte/package.json +48 -0
  766. data/lib/mount_svelte/node_modules/rollup-pluginutils/CHANGELOG.md +125 -0
  767. data/lib/mount_svelte/node_modules/rollup-pluginutils/README.md +169 -0
  768. data/lib/mount_svelte/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +3292 -0
  769. data/lib/mount_svelte/node_modules/rollup-pluginutils/dist/pluginutils.d.ts +39 -0
  770. data/lib/mount_svelte/node_modules/rollup-pluginutils/dist/pluginutils.es.js +3280 -0
  771. data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/CHANGELOG.md +55 -0
  772. data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/README.md +45 -0
  773. data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js +65 -0
  774. data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/dist/estree-walker.umd.js.map +1 -0
  775. data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/index.d.ts +27 -0
  776. data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/package.json +30 -0
  777. data/lib/mount_svelte/node_modules/rollup-pluginutils/node_modules/estree-walker/src/estree-walker.js +51 -0
  778. data/lib/mount_svelte/node_modules/rollup-pluginutils/package.json +57 -0
  779. data/lib/mount_svelte/node_modules/rollup-pluginutils/src/addExtension.ts +9 -0
  780. data/lib/mount_svelte/node_modules/rollup-pluginutils/src/attachScopes.ts +125 -0
  781. data/lib/mount_svelte/node_modules/rollup-pluginutils/src/createFilter.ts +52 -0
  782. data/lib/mount_svelte/node_modules/rollup-pluginutils/src/dataToEsm.ts +92 -0
  783. data/lib/mount_svelte/node_modules/rollup-pluginutils/src/extractAssignedNames.ts +46 -0
  784. data/lib/mount_svelte/node_modules/rollup-pluginutils/src/index.ts +6 -0
  785. data/lib/mount_svelte/node_modules/rollup-pluginutils/src/makeLegalIdentifier.ts +21 -0
  786. data/lib/mount_svelte/node_modules/rollup-pluginutils/src/pluginutils.d.ts +39 -0
  787. data/lib/mount_svelte/node_modules/rollup-pluginutils/src/utils/ensureArray.ts +5 -0
  788. data/lib/mount_svelte/node_modules/semver/LICENSE +15 -0
  789. data/lib/mount_svelte/node_modules/semver/README.md +443 -0
  790. data/lib/mount_svelte/node_modules/semver/bin/semver.js +174 -0
  791. data/lib/mount_svelte/node_modules/semver/package.json +38 -0
  792. data/lib/mount_svelte/node_modules/semver/range.bnf +16 -0
  793. data/lib/mount_svelte/node_modules/semver/semver.js +1643 -0
  794. data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
  795. data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
  796. data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
  797. data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
  798. data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
  799. data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
  800. data/lib/mount_svelte/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
  801. data/lib/mount_svelte/node_modules/svelte/LICENSE.md +7 -0
  802. data/lib/mount_svelte/node_modules/svelte/README.md +41 -0
  803. data/lib/mount_svelte/node_modules/svelte/action.d.ts +1 -0
  804. data/lib/mount_svelte/node_modules/svelte/animate.d.ts +1 -0
  805. data/lib/mount_svelte/node_modules/svelte/compiler/index.js +1 -0
  806. data/lib/mount_svelte/node_modules/svelte/compiler/package.json +3 -0
  807. data/lib/mount_svelte/node_modules/svelte/compiler.d.ts +1 -0
  808. data/lib/mount_svelte/node_modules/svelte/easing.d.ts +1 -0
  809. data/lib/mount_svelte/node_modules/svelte/elements.d.ts +2067 -0
  810. data/lib/mount_svelte/node_modules/svelte/index.d.ts +1 -0
  811. data/lib/mount_svelte/node_modules/svelte/legacy.d.ts +1 -0
  812. data/lib/mount_svelte/node_modules/svelte/motion.d.ts +1 -0
  813. data/lib/mount_svelte/node_modules/svelte/package.json +164 -0
  814. data/lib/mount_svelte/node_modules/svelte/src/animate/index.js +78 -0
  815. data/lib/mount_svelte/node_modules/svelte/src/compiler/errors.js +1622 -0
  816. data/lib/mount_svelte/node_modules/svelte/src/compiler/index.js +169 -0
  817. data/lib/mount_svelte/node_modules/svelte/src/compiler/legacy.js +628 -0
  818. data/lib/mount_svelte/node_modules/svelte/src/compiler/migrate/index.js +1992 -0
  819. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/acorn.js +171 -0
  820. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/index.js +312 -0
  821. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/read/context.js +187 -0
  822. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/read/expression.js +81 -0
  823. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/read/options.js +261 -0
  824. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/read/script.js +90 -0
  825. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/read/style.js +627 -0
  826. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/remove_typescript_nodes.js +157 -0
  827. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/state/element.js +823 -0
  828. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/state/fragment.js +17 -0
  829. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/state/tag.js +715 -0
  830. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/state/text.js +23 -0
  831. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/utils/bracket.js +164 -0
  832. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/utils/create.js +16 -0
  833. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/utils/entities.js +2234 -0
  834. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/utils/fuzzymatch.js +280 -0
  835. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/1-parse/utils/html.js +120 -0
  836. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/css/css-analyze.js +327 -0
  837. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/css/css-prune.js +1086 -0
  838. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/css/css-warn.js +47 -0
  839. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/css/utils.js +177 -0
  840. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/index.js +895 -0
  841. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/utils/check_graph_for_cycles.js +46 -0
  842. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ArrowFunctionExpression.js +11 -0
  843. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AssignmentExpression.js +27 -0
  844. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Attribute.js +239 -0
  845. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AwaitBlock.js +45 -0
  846. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js +254 -0
  847. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/CallExpression.js +272 -0
  848. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassBody.js +30 -0
  849. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassDeclaration.js +25 -0
  850. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassDirective.js +13 -0
  851. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Component.js +20 -0
  852. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ConstTag.js +36 -0
  853. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/DebugTag.js +15 -0
  854. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/EachBlock.js +42 -0
  855. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportDefaultDeclaration.js +20 -0
  856. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportNamedDeclaration.js +61 -0
  857. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportSpecifier.js +30 -0
  858. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExpressionStatement.js +38 -0
  859. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExpressionTag.js +26 -0
  860. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/FunctionDeclaration.js +16 -0
  861. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/FunctionExpression.js +11 -0
  862. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/HtmlTag.js +19 -0
  863. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js +153 -0
  864. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/IfBlock.js +21 -0
  865. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ImportDeclaration.js +31 -0
  866. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/KeyBlock.js +20 -0
  867. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/LabeledStatement.js +95 -0
  868. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/LetDirective.js +24 -0
  869. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/MemberExpression.js +30 -0
  870. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/NewExpression.js +17 -0
  871. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/OnDirective.js +28 -0
  872. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/RegularElement.js +195 -0
  873. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/RenderTag.js +68 -0
  874. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SlotElement.js +42 -0
  875. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SnippetBlock.js +113 -0
  876. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SpreadAttribute.js +13 -0
  877. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SpreadElement.js +16 -0
  878. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/StyleDirective.js +37 -0
  879. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteBody.js +22 -0
  880. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteBoundary.js +27 -0
  881. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteComponent.js +18 -0
  882. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteDocument.js +24 -0
  883. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteElement.js +66 -0
  884. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteFragment.js +27 -0
  885. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteHead.js +18 -0
  886. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteSelf.js +36 -0
  887. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteWindow.js +24 -0
  888. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TaggedTemplateExpression.js +16 -0
  889. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Text.js +20 -0
  890. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TitleElement.js +21 -0
  891. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TransitionDirective.js +14 -0
  892. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/UpdateExpression.js +25 -0
  893. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/UseDirective.js +12 -0
  894. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/VariableDeclarator.js +120 -0
  895. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y.js +1188 -0
  896. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/attribute.js +125 -0
  897. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/component.js +160 -0
  898. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/element.js +160 -0
  899. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/fragment.js +15 -0
  900. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/function.js +21 -0
  901. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/snippets.js +17 -0
  902. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/special-element.js +16 -0
  903. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js +262 -0
  904. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/transform-client.js +693 -0
  905. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/utils.js +296 -0
  906. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AnimateDirective.js +28 -0
  907. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ArrowFunctionExpression.js +11 -0
  908. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AssignmentExpression.js +195 -0
  909. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Attribute.js +14 -0
  910. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AwaitBlock.js +104 -0
  911. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BinaryExpression.js +34 -0
  912. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BindDirective.js +260 -0
  913. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BlockStatement.js +32 -0
  914. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BreakStatement.js +20 -0
  915. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/CallExpression.js +63 -0
  916. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ClassBody.js +186 -0
  917. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Comment.js +11 -0
  918. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Component.js +32 -0
  919. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ConstTag.js +76 -0
  920. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/DebugTag.js +28 -0
  921. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js +361 -0
  922. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ExportNamedDeclaration.js +19 -0
  923. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ExpressionStatement.js +30 -0
  924. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Fragment.js +284 -0
  925. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/FunctionDeclaration.js +23 -0
  926. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/FunctionExpression.js +11 -0
  927. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/HtmlTag.js +27 -0
  928. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Identifier.js +41 -0
  929. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/IfBlock.js +77 -0
  930. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ImportDeclaration.js +16 -0
  931. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/KeyBlock.js +19 -0
  932. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/LabeledStatement.js +66 -0
  933. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/LetDirective.js +54 -0
  934. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/MemberExpression.js +21 -0
  935. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/OnDirective.js +38 -0
  936. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Program.js +141 -0
  937. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js +730 -0
  938. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/RenderTag.js +56 -0
  939. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SlotElement.js +75 -0
  940. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SnippetBlock.js +91 -0
  941. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SpreadAttribute.js +10 -0
  942. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBody.js +11 -0
  943. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBoundary.js +95 -0
  944. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteComponent.js +12 -0
  945. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteDocument.js +11 -0
  946. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteElement.js +140 -0
  947. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteFragment.js +17 -0
  948. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteHead.js +20 -0
  949. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteSelf.js +12 -0
  950. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteWindow.js +11 -0
  951. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/TitleElement.js +24 -0
  952. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/TransitionDirective.js +29 -0
  953. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/UpdateExpression.js +55 -0
  954. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/UseDirective.js +37 -0
  955. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js +322 -0
  956. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js +452 -0
  957. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/declarations.js +53 -0
  958. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js +271 -0
  959. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/events.js +197 -0
  960. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/fragment.js +173 -0
  961. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/function.js +30 -0
  962. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/special_element.js +22 -0
  963. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js +354 -0
  964. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/css/index.js +461 -0
  965. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/index.js +110 -0
  966. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/transform-server.js +410 -0
  967. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/AssignmentExpression.js +68 -0
  968. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/AwaitBlock.js +29 -0
  969. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/CallExpression.js +41 -0
  970. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ClassBody.js +121 -0
  971. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Component.js +12 -0
  972. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ConstTag.js +16 -0
  973. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/DebugTag.js +24 -0
  974. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/EachBlock.js +66 -0
  975. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ExpressionStatement.js +23 -0
  976. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Fragment.js +46 -0
  977. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/HtmlTag.js +13 -0
  978. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Identifier.js +19 -0
  979. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/IfBlock.js +38 -0
  980. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/KeyBlock.js +16 -0
  981. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/LabeledStatement.js +24 -0
  982. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/MemberExpression.js +23 -0
  983. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/PropertyDefinition.js +36 -0
  984. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/RegularElement.js +104 -0
  985. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/RenderTag.js +35 -0
  986. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SlotElement.js +54 -0
  987. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SnippetBlock.js +28 -0
  988. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SpreadAttribute.js +10 -0
  989. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteBoundary.js +17 -0
  990. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteComponent.js +12 -0
  991. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteElement.js +75 -0
  992. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteFragment.js +11 -0
  993. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteHead.js +16 -0
  994. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteSelf.js +12 -0
  995. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/TitleElement.js +17 -0
  996. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/UpdateExpression.js +26 -0
  997. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js +193 -0
  998. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js +310 -0
  999. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js +445 -0
  1000. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/utils.js +243 -0
  1001. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/shared/assignments.js +74 -0
  1002. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/3-transform/utils.js +488 -0
  1003. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/bindings.js +227 -0
  1004. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/css.js +14 -0
  1005. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/nodes.js +66 -0
  1006. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/patterns.js +23 -0
  1007. data/lib/mount_svelte/node_modules/svelte/src/compiler/phases/scope.js +826 -0
  1008. data/lib/mount_svelte/node_modules/svelte/src/compiler/preprocess/decode_sourcemap.js +96 -0
  1009. data/lib/mount_svelte/node_modules/svelte/src/compiler/preprocess/index.js +368 -0
  1010. data/lib/mount_svelte/node_modules/svelte/src/compiler/preprocess/replace_in_code.js +72 -0
  1011. data/lib/mount_svelte/node_modules/svelte/src/compiler/state.js +107 -0
  1012. data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/assert.js +9 -0
  1013. data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/ast.js +584 -0
  1014. data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/builders.js +660 -0
  1015. data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/compile_diagnostic.js +107 -0
  1016. data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/extract_svelte_ignore.js +104 -0
  1017. data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/mapped_code.js +451 -0
  1018. data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/push_array.js +13 -0
  1019. data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/sanitize_template_string.js +7 -0
  1020. data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/slot.js +20 -0
  1021. data/lib/mount_svelte/node_modules/svelte/src/compiler/utils/string.js +9 -0
  1022. data/lib/mount_svelte/node_modules/svelte/src/compiler/validate-options.js +335 -0
  1023. data/lib/mount_svelte/node_modules/svelte/src/compiler/warnings.js +815 -0
  1024. data/lib/mount_svelte/node_modules/svelte/src/constants.js +58 -0
  1025. data/lib/mount_svelte/node_modules/svelte/src/easing/index.js +286 -0
  1026. data/lib/mount_svelte/node_modules/svelte/src/escaping.js +26 -0
  1027. data/lib/mount_svelte/node_modules/svelte/src/events/index.js +1 -0
  1028. data/lib/mount_svelte/node_modules/svelte/src/html-tree-validation.js +240 -0
  1029. data/lib/mount_svelte/node_modules/svelte/src/index-client.js +214 -0
  1030. data/lib/mount_svelte/node_modules/svelte/src/index-server.js +40 -0
  1031. data/lib/mount_svelte/node_modules/svelte/src/internal/client/constants.js +27 -0
  1032. data/lib/mount_svelte/node_modules/svelte/src/internal/client/context.js +206 -0
  1033. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/assign.js +78 -0
  1034. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/console-log.js +35 -0
  1035. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/css.js +31 -0
  1036. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/elements.js +60 -0
  1037. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/equality.js +101 -0
  1038. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/hmr.js +78 -0
  1039. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/inspect.js +36 -0
  1040. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/legacy.js +25 -0
  1041. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/ownership.js +80 -0
  1042. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/tracing.js +179 -0
  1043. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dev/validation.js +15 -0
  1044. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/await.js +190 -0
  1045. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/boundary.js +133 -0
  1046. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/css-props.js +33 -0
  1047. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/each.js +609 -0
  1048. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/html.js +122 -0
  1049. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/if.js +130 -0
  1050. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/key.js +43 -0
  1051. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/slot.js +44 -0
  1052. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/snippet.js +114 -0
  1053. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js +43 -0
  1054. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/svelte-element.js +165 -0
  1055. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/blocks/svelte-head.js +67 -0
  1056. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/css.js +32 -0
  1057. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/actions.js +43 -0
  1058. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/attributes.js +550 -0
  1059. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/document.js +17 -0
  1060. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/input.js +275 -0
  1061. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/media.js +217 -0
  1062. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/navigator.js +11 -0
  1063. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/props.js +22 -0
  1064. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/select.js +146 -0
  1065. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js +76 -0
  1066. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js +108 -0
  1067. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js +61 -0
  1068. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/universal.js +75 -0
  1069. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/bindings/window.js +66 -0
  1070. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/class.js +51 -0
  1071. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/custom-element.js +338 -0
  1072. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/events.js +329 -0
  1073. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/misc.js +58 -0
  1074. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/style.js +57 -0
  1075. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/elements/transitions.js +471 -0
  1076. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/hydration.js +105 -0
  1077. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/legacy/event-modifiers.js +128 -0
  1078. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/legacy/lifecycle.js +82 -0
  1079. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/legacy/misc.js +68 -0
  1080. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/operations.js +206 -0
  1081. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/reconciler.js +6 -0
  1082. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/task.js +60 -0
  1083. data/lib/mount_svelte/node_modules/svelte/src/internal/client/dom/template.js +273 -0
  1084. data/lib/mount_svelte/node_modules/svelte/src/internal/client/errors.js +322 -0
  1085. data/lib/mount_svelte/node_modules/svelte/src/internal/client/index.js +163 -0
  1086. data/lib/mount_svelte/node_modules/svelte/src/internal/client/loop.js +48 -0
  1087. data/lib/mount_svelte/node_modules/svelte/src/internal/client/proxy.js +319 -0
  1088. data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/deriveds.js +184 -0
  1089. data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/effects.js +618 -0
  1090. data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/equality.js +30 -0
  1091. data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/props.js +427 -0
  1092. data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/sources.js +291 -0
  1093. data/lib/mount_svelte/node_modules/svelte/src/internal/client/reactivity/store.js +198 -0
  1094. data/lib/mount_svelte/node_modules/svelte/src/internal/client/render.js +306 -0
  1095. data/lib/mount_svelte/node_modules/svelte/src/internal/client/runtime.js +1140 -0
  1096. data/lib/mount_svelte/node_modules/svelte/src/internal/client/timing.js +16 -0
  1097. data/lib/mount_svelte/node_modules/svelte/src/internal/client/validate.js +83 -0
  1098. data/lib/mount_svelte/node_modules/svelte/src/internal/client/warnings.js +183 -0
  1099. data/lib/mount_svelte/node_modules/svelte/src/internal/disclose-version.js +6 -0
  1100. data/lib/mount_svelte/node_modules/svelte/src/internal/flags/index.js +10 -0
  1101. data/lib/mount_svelte/node_modules/svelte/src/internal/flags/legacy.js +3 -0
  1102. data/lib/mount_svelte/node_modules/svelte/src/internal/flags/tracing.js +3 -0
  1103. data/lib/mount_svelte/node_modules/svelte/src/internal/index.js +5 -0
  1104. data/lib/mount_svelte/node_modules/svelte/src/internal/server/blocks/html.js +11 -0
  1105. data/lib/mount_svelte/node_modules/svelte/src/internal/server/blocks/snippet.js +22 -0
  1106. data/lib/mount_svelte/node_modules/svelte/src/internal/server/context.js +96 -0
  1107. data/lib/mount_svelte/node_modules/svelte/src/internal/server/dev.js +111 -0
  1108. data/lib/mount_svelte/node_modules/svelte/src/internal/server/errors.js +13 -0
  1109. data/lib/mount_svelte/node_modules/svelte/src/internal/server/hydration.js +6 -0
  1110. data/lib/mount_svelte/node_modules/svelte/src/internal/server/index.js +515 -0
  1111. data/lib/mount_svelte/node_modules/svelte/src/internal/server/payload.js +64 -0
  1112. data/lib/mount_svelte/node_modules/svelte/src/internal/shared/attributes.js +219 -0
  1113. data/lib/mount_svelte/node_modules/svelte/src/internal/shared/clone.js +128 -0
  1114. data/lib/mount_svelte/node_modules/svelte/src/internal/shared/errors.js +80 -0
  1115. data/lib/mount_svelte/node_modules/svelte/src/internal/shared/utils.js +83 -0
  1116. data/lib/mount_svelte/node_modules/svelte/src/internal/shared/validate.js +37 -0
  1117. data/lib/mount_svelte/node_modules/svelte/src/internal/shared/warnings.js +36 -0
  1118. data/lib/mount_svelte/node_modules/svelte/src/legacy/legacy-client.js +276 -0
  1119. data/lib/mount_svelte/node_modules/svelte/src/legacy/legacy-server.js +66 -0
  1120. data/lib/mount_svelte/node_modules/svelte/src/motion/index.js +32 -0
  1121. data/lib/mount_svelte/node_modules/svelte/src/motion/spring.js +358 -0
  1122. data/lib/mount_svelte/node_modules/svelte/src/motion/tweened.js +298 -0
  1123. data/lib/mount_svelte/node_modules/svelte/src/motion/utils.js +7 -0
  1124. data/lib/mount_svelte/node_modules/svelte/src/reactivity/create-subscriber.js +81 -0
  1125. data/lib/mount_svelte/node_modules/svelte/src/reactivity/date.js +79 -0
  1126. data/lib/mount_svelte/node_modules/svelte/src/reactivity/index-client.js +7 -0
  1127. data/lib/mount_svelte/node_modules/svelte/src/reactivity/index-server.js +23 -0
  1128. data/lib/mount_svelte/node_modules/svelte/src/reactivity/map.js +192 -0
  1129. data/lib/mount_svelte/node_modules/svelte/src/reactivity/media-query.js +37 -0
  1130. data/lib/mount_svelte/node_modules/svelte/src/reactivity/reactive-value.js +24 -0
  1131. data/lib/mount_svelte/node_modules/svelte/src/reactivity/set.js +158 -0
  1132. data/lib/mount_svelte/node_modules/svelte/src/reactivity/url-search-params.js +146 -0
  1133. data/lib/mount_svelte/node_modules/svelte/src/reactivity/url.js +165 -0
  1134. data/lib/mount_svelte/node_modules/svelte/src/reactivity/utils.js +7 -0
  1135. data/lib/mount_svelte/node_modules/svelte/src/reactivity/window/index.js +156 -0
  1136. data/lib/mount_svelte/node_modules/svelte/src/server/index.js +1 -0
  1137. data/lib/mount_svelte/node_modules/svelte/src/store/index-client.js +169 -0
  1138. data/lib/mount_svelte/node_modules/svelte/src/store/index-server.js +101 -0
  1139. data/lib/mount_svelte/node_modules/svelte/src/store/shared/index.js +209 -0
  1140. data/lib/mount_svelte/node_modules/svelte/src/store/utils.js +36 -0
  1141. data/lib/mount_svelte/node_modules/svelte/src/transition/index.js +300 -0
  1142. data/lib/mount_svelte/node_modules/svelte/src/utils.js +474 -0
  1143. data/lib/mount_svelte/node_modules/svelte/src/version.js +8 -0
  1144. data/lib/mount_svelte/node_modules/svelte/store.d.ts +1 -0
  1145. data/lib/mount_svelte/node_modules/svelte/svelte-html.d.ts +256 -0
  1146. data/lib/mount_svelte/node_modules/svelte/transition.d.ts +1 -0
  1147. data/lib/mount_svelte/node_modules/svelte/types/compiler/interfaces.d.ts +1 -0
  1148. data/lib/mount_svelte/node_modules/svelte/types/compiler/preprocess.d.ts +1 -0
  1149. data/lib/mount_svelte/node_modules/svelte/types/index.d.ts +3182 -0
  1150. data/lib/mount_svelte/node_modules/svelte/types/index.d.ts.map +254 -0
  1151. data/lib/mount_svelte/node_modules/svelte-preprocess/LICENSE +7 -0
  1152. data/lib/mount_svelte/node_modules/svelte-preprocess/README.md +207 -0
  1153. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/autoProcess.d.ts +3 -0
  1154. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/autoProcess.js +202 -0
  1155. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/index.d.ts +15 -0
  1156. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/index.js +35 -0
  1157. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/errors.d.ts +2 -0
  1158. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/errors.js +11 -0
  1159. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/globalifySelector.d.ts +1 -0
  1160. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/globalifySelector.js +42 -0
  1161. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/language.d.ts +11 -0
  1162. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/language.js +94 -0
  1163. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/markup.d.ts +9 -0
  1164. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/markup.js +53 -0
  1165. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/prepareContent.d.ts +4 -0
  1166. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/prepareContent.js +34 -0
  1167. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/tagInfo.d.ts +10 -0
  1168. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/tagInfo.js +58 -0
  1169. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/utils.d.ts +17 -0
  1170. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/modules/utils.js +104 -0
  1171. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/babel.d.ts +4 -0
  1172. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/babel.js +50 -0
  1173. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/coffeescript.d.ts +4 -0
  1174. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/coffeescript.js +59 -0
  1175. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/globalStyle.d.ts +4 -0
  1176. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/globalStyle.js +41 -0
  1177. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/less.d.ts +4 -0
  1178. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/less.js +53 -0
  1179. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/postcss.d.ts +5 -0
  1180. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/postcss.js +50 -0
  1181. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/pug.d.ts +4 -0
  1182. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/pug.js +45 -0
  1183. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/replace.d.ts +4 -0
  1184. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/replace.js +36 -0
  1185. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/scss.d.ts +4 -0
  1186. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/scss.js +61 -0
  1187. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/stylus.d.ts +4 -0
  1188. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/stylus.js +59 -0
  1189. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/typescript.d.ts +4 -0
  1190. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/processors/typescript.js +54 -0
  1191. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/babel.d.ts +3 -0
  1192. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/babel.js +38 -0
  1193. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/coffeescript.d.ts +3 -0
  1194. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/coffeescript.js +24 -0
  1195. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/globalStyle.d.ts +3 -0
  1196. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/globalStyle.js +69 -0
  1197. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/less.d.ts +3 -0
  1198. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/less.js +27 -0
  1199. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/postcss.d.ts +4 -0
  1200. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/postcss.js +84 -0
  1201. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/pug.d.ts +3 -0
  1202. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/pug.js +121 -0
  1203. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/replace.d.ts +3 -0
  1204. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/replace.js +16 -0
  1205. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/scss.d.ts +3 -0
  1206. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/scss.js +106 -0
  1207. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/stylus.d.ts +3 -0
  1208. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/stylus.js +39 -0
  1209. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/typescript.d.ts +11 -0
  1210. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/transformers/typescript.js +145 -0
  1211. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/types/index.d.ts +63 -0
  1212. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/types/index.js +28 -0
  1213. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/types/options.d.ts +58 -0
  1214. data/lib/mount_svelte/node_modules/svelte-preprocess/dist/types/options.js +2 -0
  1215. data/lib/mount_svelte/node_modules/svelte-preprocess/package.json +132 -0
  1216. data/lib/mount_svelte/node_modules/typescript/LICENSE.txt +55 -0
  1217. data/lib/mount_svelte/node_modules/typescript/README.md +50 -0
  1218. data/lib/mount_svelte/node_modules/typescript/SECURITY.md +41 -0
  1219. data/lib/mount_svelte/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  1220. data/lib/mount_svelte/node_modules/typescript/bin/tsc +2 -0
  1221. data/lib/mount_svelte/node_modules/typescript/bin/tsserver +2 -0
  1222. data/lib/mount_svelte/node_modules/typescript/lib/_tsc.js +132810 -0
  1223. data/lib/mount_svelte/node_modules/typescript/lib/_tsserver.js +659 -0
  1224. data/lib/mount_svelte/node_modules/typescript/lib/_typingsInstaller.js +222 -0
  1225. data/lib/mount_svelte/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2105 -0
  1226. data/lib/mount_svelte/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2105 -0
  1227. data/lib/mount_svelte/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2105 -0
  1228. data/lib/mount_svelte/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2105 -0
  1229. data/lib/mount_svelte/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2105 -0
  1230. data/lib/mount_svelte/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2105 -0
  1231. data/lib/mount_svelte/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2105 -0
  1232. data/lib/mount_svelte/node_modules/typescript/lib/lib.d.ts +22 -0
  1233. data/lib/mount_svelte/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
  1234. data/lib/mount_svelte/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
  1235. data/lib/mount_svelte/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
  1236. data/lib/mount_svelte/node_modules/typescript/lib/lib.dom.d.ts +29610 -0
  1237. data/lib/mount_svelte/node_modules/typescript/lib/lib.dom.iterable.d.ts +493 -0
  1238. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
  1239. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
  1240. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
  1241. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
  1242. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
  1243. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
  1244. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
  1245. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
  1246. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
  1247. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  1248. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
  1249. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
  1250. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
  1251. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
  1252. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
  1253. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
  1254. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
  1255. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
  1256. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
  1257. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
  1258. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
  1259. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
  1260. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
  1261. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  1262. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
  1263. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
  1264. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
  1265. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
  1266. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
  1267. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
  1268. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
  1269. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
  1270. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
  1271. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
  1272. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
  1273. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
  1274. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
  1275. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
  1276. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
  1277. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
  1278. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
  1279. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
  1280. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
  1281. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
  1282. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
  1283. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
  1284. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  1285. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
  1286. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
  1287. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
  1288. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
  1289. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
  1290. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
  1291. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
  1292. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
  1293. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
  1294. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
  1295. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.intl.d.ts +121 -0
  1296. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
  1297. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
  1298. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
  1299. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
  1300. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
  1301. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
  1302. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
  1303. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
  1304. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
  1305. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
  1306. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
  1307. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
  1308. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
  1309. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
  1310. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
  1311. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
  1312. data/lib/mount_svelte/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
  1313. data/lib/mount_svelte/node_modules/typescript/lib/lib.es5.d.ts +4594 -0
  1314. data/lib/mount_svelte/node_modules/typescript/lib/lib.es6.d.ts +23 -0
  1315. data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
  1316. data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
  1317. data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.d.ts +27 -0
  1318. data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
  1319. data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
  1320. data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.float16.d.ts +443 -0
  1321. data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
  1322. data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
  1323. data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
  1324. data/lib/mount_svelte/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
  1325. data/lib/mount_svelte/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
  1326. data/lib/mount_svelte/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
  1327. data/lib/mount_svelte/node_modules/typescript/lib/lib.webworker.d.ts +9894 -0
  1328. data/lib/mount_svelte/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
  1329. data/lib/mount_svelte/node_modules/typescript/lib/lib.webworker.iterable.d.ts +287 -0
  1330. data/lib/mount_svelte/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2105 -0
  1331. data/lib/mount_svelte/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2105 -0
  1332. data/lib/mount_svelte/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2105 -0
  1333. data/lib/mount_svelte/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2105 -0
  1334. data/lib/mount_svelte/node_modules/typescript/lib/tsc.js +8 -0
  1335. data/lib/mount_svelte/node_modules/typescript/lib/tsserver.js +8 -0
  1336. data/lib/mount_svelte/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
  1337. data/lib/mount_svelte/node_modules/typescript/lib/tsserverlibrary.js +21 -0
  1338. data/lib/mount_svelte/node_modules/typescript/lib/typesMap.json +497 -0
  1339. data/lib/mount_svelte/node_modules/typescript/lib/typescript.d.ts +11399 -0
  1340. data/lib/mount_svelte/node_modules/typescript/lib/typescript.js +199120 -0
  1341. data/lib/mount_svelte/node_modules/typescript/lib/typingsInstaller.js +8 -0
  1342. data/lib/mount_svelte/node_modules/typescript/lib/watchGuard.js +53 -0
  1343. data/lib/mount_svelte/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2105 -0
  1344. data/lib/mount_svelte/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2105 -0
  1345. data/lib/mount_svelte/node_modules/typescript/package.json +120 -0
  1346. data/lib/mount_svelte/node_modules/zimmerframe/LICENSE +21 -0
  1347. data/lib/mount_svelte/node_modules/zimmerframe/README.md +180 -0
  1348. data/lib/mount_svelte/node_modules/zimmerframe/package.json +34 -0
  1349. data/lib/mount_svelte/node_modules/zimmerframe/src/index.d.ts +2 -0
  1350. data/lib/mount_svelte/node_modules/zimmerframe/src/types.d.ts +21 -0
  1351. data/lib/mount_svelte/node_modules/zimmerframe/src/walk.js +159 -0
  1352. data/lib/mount_svelte/node_modules/zimmerframe/types/index.d.ts +28 -0
  1353. data/lib/mount_svelte/node_modules/zimmerframe/types/index.d.ts.map +19 -0
  1354. data/lib/mount_svelte/package-lock.json +949 -0
  1355. data/lib/mount_svelte/package.json +15 -0
  1356. data/lib/mount_svelte/railtie.rb +21 -0
  1357. data/lib/mount_svelte/render.js +42 -0
  1358. data/lib/mount_svelte/render_server_side.rb +126 -0
  1359. data/lib/mount_svelte/view_helpers.rb +85 -0
  1360. data/lib/tasks/mount_svelte_tasks.rake +41 -0
  1361. metadata +1434 -0
@@ -0,0 +1,3292 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
+
7
+ var path = require('path');
8
+ var path__default = _interopDefault(path);
9
+ var estreeWalker = require('estree-walker');
10
+ var util = _interopDefault(require('util'));
11
+
12
+ const addExtension = function addExtension(filename, ext = '.js') {
13
+ if (!path.extname(filename))
14
+ filename += ext;
15
+ return filename;
16
+ };
17
+
18
+ const extractors = {
19
+ ArrayPattern(names, param) {
20
+ for (const element of param.elements) {
21
+ if (element)
22
+ extractors[element.type](names, element);
23
+ }
24
+ },
25
+ AssignmentPattern(names, param) {
26
+ extractors[param.left.type](names, param.left);
27
+ },
28
+ Identifier(names, param) {
29
+ names.push(param.name);
30
+ },
31
+ MemberExpression() { },
32
+ ObjectPattern(names, param) {
33
+ for (const prop of param.properties) {
34
+ if (prop.type === 'RestElement') {
35
+ extractors.RestElement(names, prop);
36
+ }
37
+ else {
38
+ extractors[prop.value.type](names, prop.value);
39
+ }
40
+ }
41
+ },
42
+ RestElement(names, param) {
43
+ extractors[param.argument.type](names, param.argument);
44
+ }
45
+ };
46
+ const extractAssignedNames = function extractAssignedNames(param) {
47
+ const names = [];
48
+ extractors[param.type](names, param);
49
+ return names;
50
+ };
51
+
52
+ const blockDeclarations = {
53
+ const: true,
54
+ let: true
55
+ };
56
+ class Scope {
57
+ constructor(options = {}) {
58
+ this.parent = options.parent;
59
+ this.isBlockScope = !!options.block;
60
+ this.declarations = Object.create(null);
61
+ if (options.params) {
62
+ options.params.forEach(param => {
63
+ extractAssignedNames(param).forEach(name => {
64
+ this.declarations[name] = true;
65
+ });
66
+ });
67
+ }
68
+ }
69
+ addDeclaration(node, isBlockDeclaration, isVar) {
70
+ if (!isBlockDeclaration && this.isBlockScope) {
71
+ // it's a `var` or function node, and this
72
+ // is a block scope, so we need to go up
73
+ this.parent.addDeclaration(node, isBlockDeclaration, isVar);
74
+ }
75
+ else if (node.id) {
76
+ extractAssignedNames(node.id).forEach(name => {
77
+ this.declarations[name] = true;
78
+ });
79
+ }
80
+ }
81
+ contains(name) {
82
+ return this.declarations[name] || (this.parent ? this.parent.contains(name) : false);
83
+ }
84
+ }
85
+ const attachScopes = function attachScopes(ast, propertyName = 'scope') {
86
+ let scope = new Scope();
87
+ estreeWalker.walk(ast, {
88
+ enter(node, parent) {
89
+ // function foo () {...}
90
+ // class Foo {...}
91
+ if (/(Function|Class)Declaration/.test(node.type)) {
92
+ scope.addDeclaration(node, false, false);
93
+ }
94
+ // var foo = 1
95
+ if (node.type === 'VariableDeclaration') {
96
+ const kind = node.kind;
97
+ const isBlockDeclaration = blockDeclarations[kind];
98
+ node.declarations.forEach((declaration) => {
99
+ scope.addDeclaration(declaration, isBlockDeclaration, true);
100
+ });
101
+ }
102
+ let newScope;
103
+ // create new function scope
104
+ if (/Function/.test(node.type)) {
105
+ newScope = new Scope({
106
+ parent: scope,
107
+ block: false,
108
+ params: node.params
109
+ });
110
+ // named function expressions - the name is considered
111
+ // part of the function's scope
112
+ if (node.type === 'FunctionExpression' && node.id) {
113
+ newScope.addDeclaration(node, false, false);
114
+ }
115
+ }
116
+ // create new block scope
117
+ if (node.type === 'BlockStatement' && !/Function/.test(parent.type)) {
118
+ newScope = new Scope({
119
+ parent: scope,
120
+ block: true
121
+ });
122
+ }
123
+ // catch clause has its own block scope
124
+ if (node.type === 'CatchClause') {
125
+ newScope = new Scope({
126
+ parent: scope,
127
+ params: node.param ? [node.param] : [],
128
+ block: true
129
+ });
130
+ }
131
+ if (newScope) {
132
+ Object.defineProperty(node, propertyName, {
133
+ value: newScope,
134
+ configurable: true
135
+ });
136
+ scope = newScope;
137
+ }
138
+ },
139
+ leave(node) {
140
+ if (node[propertyName])
141
+ scope = scope.parent;
142
+ }
143
+ });
144
+ return scope;
145
+ };
146
+
147
+ function createCommonjsModule(fn, module) {
148
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
149
+ }
150
+
151
+ var utils = createCommonjsModule(function (module, exports) {
152
+ exports.isInteger = num => {
153
+ if (typeof num === 'number') {
154
+ return Number.isInteger(num);
155
+ }
156
+ if (typeof num === 'string' && num.trim() !== '') {
157
+ return Number.isInteger(Number(num));
158
+ }
159
+ return false;
160
+ };
161
+ /**
162
+ * Find a node of the given type
163
+ */
164
+ exports.find = (node, type) => node.nodes.find(node => node.type === type);
165
+ /**
166
+ * Find a node of the given type
167
+ */
168
+ exports.exceedsLimit = (min, max, step = 1, limit) => {
169
+ if (limit === false)
170
+ return false;
171
+ if (!exports.isInteger(min) || !exports.isInteger(max))
172
+ return false;
173
+ return ((Number(max) - Number(min)) / Number(step)) >= limit;
174
+ };
175
+ /**
176
+ * Escape the given node with '\\' before node.value
177
+ */
178
+ exports.escapeNode = (block, n = 0, type) => {
179
+ let node = block.nodes[n];
180
+ if (!node)
181
+ return;
182
+ if ((type && node.type === type) || node.type === 'open' || node.type === 'close') {
183
+ if (node.escaped !== true) {
184
+ node.value = '\\' + node.value;
185
+ node.escaped = true;
186
+ }
187
+ }
188
+ };
189
+ /**
190
+ * Returns true if the given brace node should be enclosed in literal braces
191
+ */
192
+ exports.encloseBrace = node => {
193
+ if (node.type !== 'brace')
194
+ return false;
195
+ if ((node.commas >> 0 + node.ranges >> 0) === 0) {
196
+ node.invalid = true;
197
+ return true;
198
+ }
199
+ return false;
200
+ };
201
+ /**
202
+ * Returns true if a brace node is invalid.
203
+ */
204
+ exports.isInvalidBrace = block => {
205
+ if (block.type !== 'brace')
206
+ return false;
207
+ if (block.invalid === true || block.dollar)
208
+ return true;
209
+ if ((block.commas >> 0 + block.ranges >> 0) === 0) {
210
+ block.invalid = true;
211
+ return true;
212
+ }
213
+ if (block.open !== true || block.close !== true) {
214
+ block.invalid = true;
215
+ return true;
216
+ }
217
+ return false;
218
+ };
219
+ /**
220
+ * Returns true if a node is an open or close node
221
+ */
222
+ exports.isOpenOrClose = node => {
223
+ if (node.type === 'open' || node.type === 'close') {
224
+ return true;
225
+ }
226
+ return node.open === true || node.close === true;
227
+ };
228
+ /**
229
+ * Reduce an array of text nodes.
230
+ */
231
+ exports.reduce = nodes => nodes.reduce((acc, node) => {
232
+ if (node.type === 'text')
233
+ acc.push(node.value);
234
+ if (node.type === 'range')
235
+ node.type = 'text';
236
+ return acc;
237
+ }, []);
238
+ /**
239
+ * Flatten an array
240
+ */
241
+ exports.flatten = (...args) => {
242
+ const result = [];
243
+ const flat = arr => {
244
+ for (let i = 0; i < arr.length; i++) {
245
+ let ele = arr[i];
246
+ Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele);
247
+ }
248
+ return result;
249
+ };
250
+ flat(args);
251
+ return result;
252
+ };
253
+ });
254
+ var utils_1 = utils.isInteger;
255
+ var utils_2 = utils.find;
256
+ var utils_3 = utils.exceedsLimit;
257
+ var utils_4 = utils.escapeNode;
258
+ var utils_5 = utils.encloseBrace;
259
+ var utils_6 = utils.isInvalidBrace;
260
+ var utils_7 = utils.isOpenOrClose;
261
+ var utils_8 = utils.reduce;
262
+ var utils_9 = utils.flatten;
263
+
264
+ var stringify = (ast, options = {}) => {
265
+ let stringify = (node, parent = {}) => {
266
+ let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
267
+ let invalidNode = node.invalid === true && options.escapeInvalid === true;
268
+ let output = '';
269
+ if (node.value) {
270
+ if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
271
+ return '\\' + node.value;
272
+ }
273
+ return node.value;
274
+ }
275
+ if (node.value) {
276
+ return node.value;
277
+ }
278
+ if (node.nodes) {
279
+ for (let child of node.nodes) {
280
+ output += stringify(child);
281
+ }
282
+ }
283
+ return output;
284
+ };
285
+ return stringify(ast);
286
+ };
287
+
288
+ /*!
289
+ * is-number <https://github.com/jonschlinkert/is-number>
290
+ *
291
+ * Copyright (c) 2014-present, Jon Schlinkert.
292
+ * Released under the MIT License.
293
+ */
294
+ var isNumber = function (num) {
295
+ if (typeof num === 'number') {
296
+ return num - num === 0;
297
+ }
298
+ if (typeof num === 'string' && num.trim() !== '') {
299
+ return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
300
+ }
301
+ return false;
302
+ };
303
+
304
+ const toRegexRange = (min, max, options) => {
305
+ if (isNumber(min) === false) {
306
+ throw new TypeError('toRegexRange: expected the first argument to be a number');
307
+ }
308
+ if (max === void 0 || min === max) {
309
+ return String(min);
310
+ }
311
+ if (isNumber(max) === false) {
312
+ throw new TypeError('toRegexRange: expected the second argument to be a number.');
313
+ }
314
+ let opts = Object.assign({ relaxZeros: true }, options);
315
+ if (typeof opts.strictZeros === 'boolean') {
316
+ opts.relaxZeros = opts.strictZeros === false;
317
+ }
318
+ let relax = String(opts.relaxZeros);
319
+ let shorthand = String(opts.shorthand);
320
+ let capture = String(opts.capture);
321
+ let wrap = String(opts.wrap);
322
+ let cacheKey = min + ':' + max + '=' + relax + shorthand + capture + wrap;
323
+ if (toRegexRange.cache.hasOwnProperty(cacheKey)) {
324
+ return toRegexRange.cache[cacheKey].result;
325
+ }
326
+ let a = Math.min(min, max);
327
+ let b = Math.max(min, max);
328
+ if (Math.abs(a - b) === 1) {
329
+ let result = min + '|' + max;
330
+ if (opts.capture) {
331
+ return `(${result})`;
332
+ }
333
+ if (opts.wrap === false) {
334
+ return result;
335
+ }
336
+ return `(?:${result})`;
337
+ }
338
+ let isPadded = hasPadding(min) || hasPadding(max);
339
+ let state = { min, max, a, b };
340
+ let positives = [];
341
+ let negatives = [];
342
+ if (isPadded) {
343
+ state.isPadded = isPadded;
344
+ state.maxLen = String(state.max).length;
345
+ }
346
+ if (a < 0) {
347
+ let newMin = b < 0 ? Math.abs(b) : 1;
348
+ negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
349
+ a = state.a = 0;
350
+ }
351
+ if (b >= 0) {
352
+ positives = splitToPatterns(a, b, state, opts);
353
+ }
354
+ state.negatives = negatives;
355
+ state.positives = positives;
356
+ state.result = collatePatterns(negatives, positives, opts);
357
+ if (opts.capture === true) {
358
+ state.result = `(${state.result})`;
359
+ }
360
+ else if (opts.wrap !== false && (positives.length + negatives.length) > 1) {
361
+ state.result = `(?:${state.result})`;
362
+ }
363
+ toRegexRange.cache[cacheKey] = state;
364
+ return state.result;
365
+ };
366
+ function collatePatterns(neg, pos, options) {
367
+ let onlyNegative = filterPatterns(neg, pos, '-', false, options) || [];
368
+ let onlyPositive = filterPatterns(pos, neg, '', false, options) || [];
369
+ let intersected = filterPatterns(neg, pos, '-?', true, options) || [];
370
+ let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
371
+ return subpatterns.join('|');
372
+ }
373
+ function splitToRanges(min, max) {
374
+ let nines = 1;
375
+ let zeros = 1;
376
+ let stop = countNines(min, nines);
377
+ let stops = new Set([max]);
378
+ while (min <= stop && stop <= max) {
379
+ stops.add(stop);
380
+ nines += 1;
381
+ stop = countNines(min, nines);
382
+ }
383
+ stop = countZeros(max + 1, zeros) - 1;
384
+ while (min < stop && stop <= max) {
385
+ stops.add(stop);
386
+ zeros += 1;
387
+ stop = countZeros(max + 1, zeros) - 1;
388
+ }
389
+ stops = [...stops];
390
+ stops.sort(compare);
391
+ return stops;
392
+ }
393
+ /**
394
+ * Convert a range to a regex pattern
395
+ * @param {Number} `start`
396
+ * @param {Number} `stop`
397
+ * @return {String}
398
+ */
399
+ function rangeToPattern(start, stop, options) {
400
+ if (start === stop) {
401
+ return { pattern: start, count: [], digits: 0 };
402
+ }
403
+ let zipped = zip(start, stop);
404
+ let digits = zipped.length;
405
+ let pattern = '';
406
+ let count = 0;
407
+ for (let i = 0; i < digits; i++) {
408
+ let [startDigit, stopDigit] = zipped[i];
409
+ if (startDigit === stopDigit) {
410
+ pattern += startDigit;
411
+ }
412
+ else if (startDigit !== '0' || stopDigit !== '9') {
413
+ pattern += toCharacterClass(startDigit, stopDigit, options);
414
+ }
415
+ else {
416
+ count++;
417
+ }
418
+ }
419
+ if (count) {
420
+ pattern += options.shorthand === true ? '\\d' : '[0-9]';
421
+ }
422
+ return { pattern, count: [count], digits };
423
+ }
424
+ function splitToPatterns(min, max, tok, options) {
425
+ let ranges = splitToRanges(min, max);
426
+ let tokens = [];
427
+ let start = min;
428
+ let prev;
429
+ for (let i = 0; i < ranges.length; i++) {
430
+ let max = ranges[i];
431
+ let obj = rangeToPattern(String(start), String(max), options);
432
+ let zeros = '';
433
+ if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
434
+ if (prev.count.length > 1) {
435
+ prev.count.pop();
436
+ }
437
+ prev.count.push(obj.count[0]);
438
+ prev.string = prev.pattern + toQuantifier(prev.count);
439
+ start = max + 1;
440
+ continue;
441
+ }
442
+ if (tok.isPadded) {
443
+ zeros = padZeros(max, tok, options);
444
+ }
445
+ obj.string = zeros + obj.pattern + toQuantifier(obj.count);
446
+ tokens.push(obj);
447
+ start = max + 1;
448
+ prev = obj;
449
+ }
450
+ return tokens;
451
+ }
452
+ function filterPatterns(arr, comparison, prefix, intersection, options) {
453
+ let result = [];
454
+ for (let ele of arr) {
455
+ let { string } = ele;
456
+ // only push if _both_ are negative...
457
+ if (!intersection && !contains(comparison, 'string', string)) {
458
+ result.push(prefix + string);
459
+ }
460
+ // or _both_ are positive
461
+ if (intersection && contains(comparison, 'string', string)) {
462
+ result.push(prefix + string);
463
+ }
464
+ }
465
+ return result;
466
+ }
467
+ /**
468
+ * Zip strings
469
+ */
470
+ function zip(a, b) {
471
+ let arr = [];
472
+ for (let i = 0; i < a.length; i++)
473
+ arr.push([a[i], b[i]]);
474
+ return arr;
475
+ }
476
+ function compare(a, b) {
477
+ return a > b ? 1 : b > a ? -1 : 0;
478
+ }
479
+ function contains(arr, key, val) {
480
+ return arr.some(ele => ele[key] === val);
481
+ }
482
+ function countNines(min, len) {
483
+ return Number(String(min).slice(0, -len) + '9'.repeat(len));
484
+ }
485
+ function countZeros(integer, zeros) {
486
+ return integer - (integer % Math.pow(10, zeros));
487
+ }
488
+ function toQuantifier(digits) {
489
+ let [start = 0, stop = ''] = digits;
490
+ if (stop || start > 1) {
491
+ return `{${start + (stop ? ',' + stop : '')}}`;
492
+ }
493
+ return '';
494
+ }
495
+ function toCharacterClass(a, b, options) {
496
+ return `[${a}${(b - a === 1) ? '' : '-'}${b}]`;
497
+ }
498
+ function hasPadding(str) {
499
+ return /^-?(0+)\d/.test(str);
500
+ }
501
+ function padZeros(value, tok, options) {
502
+ if (!tok.isPadded) {
503
+ return value;
504
+ }
505
+ let diff = Math.abs(tok.maxLen - String(value).length);
506
+ let relax = options.relaxZeros !== false;
507
+ switch (diff) {
508
+ case 0:
509
+ return '';
510
+ case 1:
511
+ return relax ? '0?' : '0';
512
+ case 2:
513
+ return relax ? '0{0,2}' : '00';
514
+ default: {
515
+ return relax ? `0{0,${diff}}` : `0{${diff}}`;
516
+ }
517
+ }
518
+ }
519
+ /**
520
+ * Cache
521
+ */
522
+ toRegexRange.cache = {};
523
+ toRegexRange.clearCache = () => (toRegexRange.cache = {});
524
+ /**
525
+ * Expose `toRegexRange`
526
+ */
527
+ var toRegexRange_1 = toRegexRange;
528
+
529
+ const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
530
+ const transform = toNumber => {
531
+ return value => toNumber === true ? Number(value) : String(value);
532
+ };
533
+ const isValidValue = value => {
534
+ return typeof value === 'number' || (typeof value === 'string' && value !== '');
535
+ };
536
+ const isNumber$1 = num => Number.isInteger(+num);
537
+ const zeros = input => {
538
+ let value = `${input}`;
539
+ let index = -1;
540
+ if (value[0] === '-')
541
+ value = value.slice(1);
542
+ if (value === '0')
543
+ return false;
544
+ while (value[++index] === '0')
545
+ ;
546
+ return index > 0;
547
+ };
548
+ const stringify$1 = (start, end, options) => {
549
+ if (typeof start === 'string' || typeof end === 'string') {
550
+ return true;
551
+ }
552
+ return options.stringify === true;
553
+ };
554
+ const pad = (input, maxLength, toNumber) => {
555
+ if (maxLength > 0) {
556
+ let dash = input[0] === '-' ? '-' : '';
557
+ if (dash)
558
+ input = input.slice(1);
559
+ input = (dash + input.padStart(dash ? maxLength - 1 : maxLength, '0'));
560
+ }
561
+ if (toNumber === false) {
562
+ return String(input);
563
+ }
564
+ return input;
565
+ };
566
+ const toMaxLen = (input, maxLength) => {
567
+ let negative = input[0] === '-' ? '-' : '';
568
+ if (negative) {
569
+ input = input.slice(1);
570
+ maxLength--;
571
+ }
572
+ while (input.length < maxLength)
573
+ input = '0' + input;
574
+ return negative ? ('-' + input) : input;
575
+ };
576
+ const toSequence = (parts, options) => {
577
+ parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
578
+ parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
579
+ let prefix = options.capture ? '' : '?:';
580
+ let positives = '';
581
+ let negatives = '';
582
+ let result;
583
+ if (parts.positives.length) {
584
+ positives = parts.positives.join('|');
585
+ }
586
+ if (parts.negatives.length) {
587
+ negatives = `-(${prefix}${parts.negatives.join('|')})`;
588
+ }
589
+ if (positives && negatives) {
590
+ result = `${positives}|${negatives}`;
591
+ }
592
+ else {
593
+ result = positives || negatives;
594
+ }
595
+ if (options.wrap) {
596
+ return `(${prefix}${result})`;
597
+ }
598
+ return result;
599
+ };
600
+ const toRange = (a, b, isNumbers, options) => {
601
+ if (isNumbers) {
602
+ return toRegexRange_1(a, b, Object.assign({ wrap: false }, options));
603
+ }
604
+ let start = String.fromCharCode(a);
605
+ if (a === b)
606
+ return start;
607
+ let stop = String.fromCharCode(b);
608
+ return `[${start}-${stop}]`;
609
+ };
610
+ const toRegex = (start, end, options) => {
611
+ if (Array.isArray(start)) {
612
+ let wrap = options.wrap === true;
613
+ let prefix = options.capture ? '' : '?:';
614
+ return wrap ? `(${prefix}${start.join('|')})` : start.join('|');
615
+ }
616
+ return toRegexRange_1(start, end, options);
617
+ };
618
+ const rangeError = (...args) => {
619
+ return new RangeError('Invalid range arguments: ' + util.inspect(...args));
620
+ };
621
+ const invalidRange = (start, end, options) => {
622
+ if (options.strictRanges === true)
623
+ throw rangeError([start, end]);
624
+ return [];
625
+ };
626
+ const invalidStep = (step, options) => {
627
+ if (options.strictRanges === true) {
628
+ throw new TypeError(`Expected step "${step}" to be a number`);
629
+ }
630
+ return [];
631
+ };
632
+ const fillNumbers = (start, end, step = 1, options = {}) => {
633
+ let a = Number(start);
634
+ let b = Number(end);
635
+ if (!Number.isInteger(a) || !Number.isInteger(b)) {
636
+ if (options.strictRanges === true)
637
+ throw rangeError([start, end]);
638
+ return [];
639
+ }
640
+ // fix negative zero
641
+ if (a === 0)
642
+ a = 0;
643
+ if (b === 0)
644
+ b = 0;
645
+ let descending = a > b;
646
+ let startString = String(start);
647
+ let endString = String(end);
648
+ let stepString = String(step);
649
+ step = Math.max(Math.abs(step), 1);
650
+ let padded = zeros(startString) || zeros(endString) || zeros(stepString);
651
+ let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
652
+ let toNumber = padded === false && stringify$1(start, end, options) === false;
653
+ let format = options.transform || transform(toNumber);
654
+ if (options.toRegex && step === 1) {
655
+ return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
656
+ }
657
+ let parts = { negatives: [], positives: [] };
658
+ let push = num => parts[num < 0 ? 'negatives' : 'positives'].push(Math.abs(num));
659
+ let range = [];
660
+ let index = 0;
661
+ while (descending ? a >= b : a <= b) {
662
+ if (options.toRegex === true && step > 1) {
663
+ push(a);
664
+ }
665
+ else {
666
+ range.push(pad(format(a, index), maxLen, toNumber));
667
+ }
668
+ a = descending ? a - step : a + step;
669
+ index++;
670
+ }
671
+ if (options.toRegex === true) {
672
+ return step > 1
673
+ ? toSequence(parts, options)
674
+ : toRegex(range, null, Object.assign({ wrap: false }, options));
675
+ }
676
+ return range;
677
+ };
678
+ const fillLetters = (start, end, step = 1, options = {}) => {
679
+ if ((!isNumber$1(start) && start.length > 1) || (!isNumber$1(end) && end.length > 1)) {
680
+ return invalidRange(start, end, options);
681
+ }
682
+ let format = options.transform || (val => String.fromCharCode(val));
683
+ let a = `${start}`.charCodeAt(0);
684
+ let b = `${end}`.charCodeAt(0);
685
+ let descending = a > b;
686
+ let min = Math.min(a, b);
687
+ let max = Math.max(a, b);
688
+ if (options.toRegex && step === 1) {
689
+ return toRange(min, max, false, options);
690
+ }
691
+ let range = [];
692
+ let index = 0;
693
+ while (descending ? a >= b : a <= b) {
694
+ range.push(format(a, index));
695
+ a = descending ? a - step : a + step;
696
+ index++;
697
+ }
698
+ if (options.toRegex === true) {
699
+ return toRegex(range, null, { wrap: false, options });
700
+ }
701
+ return range;
702
+ };
703
+ const fill = (start, end, step, options = {}) => {
704
+ if (end == null && isValidValue(start)) {
705
+ return [start];
706
+ }
707
+ if (!isValidValue(start) || !isValidValue(end)) {
708
+ return invalidRange(start, end, options);
709
+ }
710
+ if (typeof step === 'function') {
711
+ return fill(start, end, 1, { transform: step });
712
+ }
713
+ if (isObject(step)) {
714
+ return fill(start, end, 0, step);
715
+ }
716
+ let opts = Object.assign({}, options);
717
+ if (opts.capture === true)
718
+ opts.wrap = true;
719
+ step = step || opts.step || 1;
720
+ if (!isNumber$1(step)) {
721
+ if (step != null && !isObject(step))
722
+ return invalidStep(step, opts);
723
+ return fill(start, end, 1, step);
724
+ }
725
+ if (isNumber$1(start) && isNumber$1(end)) {
726
+ return fillNumbers(start, end, step, opts);
727
+ }
728
+ return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
729
+ };
730
+ var fillRange = fill;
731
+
732
+ const compile = (ast, options = {}) => {
733
+ let walk = (node, parent = {}) => {
734
+ let invalidBlock = utils.isInvalidBrace(parent);
735
+ let invalidNode = node.invalid === true && options.escapeInvalid === true;
736
+ let invalid = invalidBlock === true || invalidNode === true;
737
+ let prefix = options.escapeInvalid === true ? '\\' : '';
738
+ let output = '';
739
+ if (node.isOpen === true) {
740
+ return prefix + node.value;
741
+ }
742
+ if (node.isClose === true) {
743
+ return prefix + node.value;
744
+ }
745
+ if (node.type === 'open') {
746
+ return invalid ? (prefix + node.value) : '(';
747
+ }
748
+ if (node.type === 'close') {
749
+ return invalid ? (prefix + node.value) : ')';
750
+ }
751
+ if (node.type === 'comma') {
752
+ return node.prev.type === 'comma' ? '' : (invalid ? node.value : '|');
753
+ }
754
+ if (node.value) {
755
+ return node.value;
756
+ }
757
+ if (node.nodes && node.ranges > 0) {
758
+ let args = utils.reduce(node.nodes);
759
+ let range = fillRange(...args, Object.assign({}, options, { wrap: false, toRegex: true }));
760
+ if (range.length !== 0) {
761
+ return args.length > 1 && range.length > 1 ? `(${range})` : range;
762
+ }
763
+ }
764
+ if (node.nodes) {
765
+ for (let child of node.nodes) {
766
+ output += walk(child, node);
767
+ }
768
+ }
769
+ return output;
770
+ };
771
+ return walk(ast);
772
+ };
773
+ var compile_1 = compile;
774
+
775
+ const append = (queue = '', stash = '', enclose = false) => {
776
+ let result = [];
777
+ queue = [].concat(queue);
778
+ stash = [].concat(stash);
779
+ if (!stash.length)
780
+ return queue;
781
+ if (!queue.length) {
782
+ return enclose ? utils.flatten(stash).map(ele => `{${ele}}`) : stash;
783
+ }
784
+ for (let item of queue) {
785
+ if (Array.isArray(item)) {
786
+ for (let value of item) {
787
+ result.push(append(value, stash, enclose));
788
+ }
789
+ }
790
+ else {
791
+ for (let ele of stash) {
792
+ if (enclose === true && typeof ele === 'string')
793
+ ele = `{${ele}}`;
794
+ result.push(Array.isArray(ele) ? append(item, ele, enclose) : (item + ele));
795
+ }
796
+ }
797
+ }
798
+ return utils.flatten(result);
799
+ };
800
+ const expand = (ast, options = {}) => {
801
+ let rangeLimit = options.rangeLimit === void 0 ? 1000 : options.rangeLimit;
802
+ let walk = (node, parent = {}) => {
803
+ node.queue = [];
804
+ let p = parent;
805
+ let q = parent.queue;
806
+ while (p.type !== 'brace' && p.type !== 'root' && p.parent) {
807
+ p = p.parent;
808
+ q = p.queue;
809
+ }
810
+ if (node.invalid || node.dollar) {
811
+ q.push(append(q.pop(), stringify(node, options)));
812
+ return;
813
+ }
814
+ if (node.type === 'brace' && node.invalid !== true && node.nodes.length === 2) {
815
+ q.push(append(q.pop(), ['{}']));
816
+ return;
817
+ }
818
+ if (node.nodes && node.ranges > 0) {
819
+ let args = utils.reduce(node.nodes);
820
+ if (utils.exceedsLimit(...args, options.step, rangeLimit)) {
821
+ throw new RangeError('expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.');
822
+ }
823
+ let range = fillRange(...args, options);
824
+ if (range.length === 0) {
825
+ range = stringify(node, options);
826
+ }
827
+ q.push(append(q.pop(), range));
828
+ node.nodes = [];
829
+ return;
830
+ }
831
+ let enclose = utils.encloseBrace(node);
832
+ let queue = node.queue;
833
+ let block = node;
834
+ while (block.type !== 'brace' && block.type !== 'root' && block.parent) {
835
+ block = block.parent;
836
+ queue = block.queue;
837
+ }
838
+ for (let i = 0; i < node.nodes.length; i++) {
839
+ let child = node.nodes[i];
840
+ if (child.type === 'comma' && node.type === 'brace') {
841
+ if (i === 1)
842
+ queue.push('');
843
+ queue.push('');
844
+ continue;
845
+ }
846
+ if (child.type === 'close') {
847
+ q.push(append(q.pop(), queue, enclose));
848
+ continue;
849
+ }
850
+ if (child.value && child.type !== 'open') {
851
+ queue.push(append(queue.pop(), child.value));
852
+ continue;
853
+ }
854
+ if (child.nodes) {
855
+ walk(child, node);
856
+ }
857
+ }
858
+ return queue;
859
+ };
860
+ return utils.flatten(walk(ast));
861
+ };
862
+ var expand_1 = expand;
863
+
864
+ var constants = {
865
+ MAX_LENGTH: 1024 * 64,
866
+ // Digits
867
+ CHAR_0: '0',
868
+ CHAR_9: '9',
869
+ // Alphabet chars.
870
+ CHAR_UPPERCASE_A: 'A',
871
+ CHAR_LOWERCASE_A: 'a',
872
+ CHAR_UPPERCASE_Z: 'Z',
873
+ CHAR_LOWERCASE_Z: 'z',
874
+ CHAR_LEFT_PARENTHESES: '(',
875
+ CHAR_RIGHT_PARENTHESES: ')',
876
+ CHAR_ASTERISK: '*',
877
+ // Non-alphabetic chars.
878
+ CHAR_AMPERSAND: '&',
879
+ CHAR_AT: '@',
880
+ CHAR_BACKSLASH: '\\',
881
+ CHAR_BACKTICK: '`',
882
+ CHAR_CARRIAGE_RETURN: '\r',
883
+ CHAR_CIRCUMFLEX_ACCENT: '^',
884
+ CHAR_COLON: ':',
885
+ CHAR_COMMA: ',',
886
+ CHAR_DOLLAR: '$',
887
+ CHAR_DOT: '.',
888
+ CHAR_DOUBLE_QUOTE: '"',
889
+ CHAR_EQUAL: '=',
890
+ CHAR_EXCLAMATION_MARK: '!',
891
+ CHAR_FORM_FEED: '\f',
892
+ CHAR_FORWARD_SLASH: '/',
893
+ CHAR_HASH: '#',
894
+ CHAR_HYPHEN_MINUS: '-',
895
+ CHAR_LEFT_ANGLE_BRACKET: '<',
896
+ CHAR_LEFT_CURLY_BRACE: '{',
897
+ CHAR_LEFT_SQUARE_BRACKET: '[',
898
+ CHAR_LINE_FEED: '\n',
899
+ CHAR_NO_BREAK_SPACE: '\u00A0',
900
+ CHAR_PERCENT: '%',
901
+ CHAR_PLUS: '+',
902
+ CHAR_QUESTION_MARK: '?',
903
+ CHAR_RIGHT_ANGLE_BRACKET: '>',
904
+ CHAR_RIGHT_CURLY_BRACE: '}',
905
+ CHAR_RIGHT_SQUARE_BRACKET: ']',
906
+ CHAR_SEMICOLON: ';',
907
+ CHAR_SINGLE_QUOTE: '\'',
908
+ CHAR_SPACE: ' ',
909
+ CHAR_TAB: '\t',
910
+ CHAR_UNDERSCORE: '_',
911
+ CHAR_VERTICAL_LINE: '|',
912
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF' /* \uFEFF */
913
+ };
914
+
915
+ /**
916
+ * Constants
917
+ */
918
+ const { MAX_LENGTH, CHAR_BACKSLASH, /* \ */ CHAR_BACKTICK, /* ` */ CHAR_COMMA, /* , */ CHAR_DOT, /* . */ CHAR_LEFT_PARENTHESES, /* ( */ CHAR_RIGHT_PARENTHESES, /* ) */ CHAR_LEFT_CURLY_BRACE, /* { */ CHAR_RIGHT_CURLY_BRACE, /* } */ CHAR_LEFT_SQUARE_BRACKET, /* [ */ CHAR_RIGHT_SQUARE_BRACKET, /* ] */ CHAR_DOUBLE_QUOTE, /* " */ CHAR_SINGLE_QUOTE, /* ' */ CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = constants;
919
+ /**
920
+ * parse
921
+ */
922
+ const parse = (input, options = {}) => {
923
+ if (typeof input !== 'string') {
924
+ throw new TypeError('Expected a string');
925
+ }
926
+ let opts = options || {};
927
+ let max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
928
+ if (input.length > max) {
929
+ throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
930
+ }
931
+ let ast = { type: 'root', input, nodes: [] };
932
+ let stack = [ast];
933
+ let block = ast;
934
+ let prev = ast;
935
+ let brackets = 0;
936
+ let length = input.length;
937
+ let index = 0;
938
+ let depth = 0;
939
+ let value;
940
+ /**
941
+ * Helpers
942
+ */
943
+ const advance = () => input[index++];
944
+ const push = node => {
945
+ if (node.type === 'text' && prev.type === 'dot') {
946
+ prev.type = 'text';
947
+ }
948
+ if (prev && prev.type === 'text' && node.type === 'text') {
949
+ prev.value += node.value;
950
+ return;
951
+ }
952
+ block.nodes.push(node);
953
+ node.parent = block;
954
+ node.prev = prev;
955
+ prev = node;
956
+ return node;
957
+ };
958
+ push({ type: 'bos' });
959
+ while (index < length) {
960
+ block = stack[stack.length - 1];
961
+ value = advance();
962
+ /**
963
+ * Invalid chars
964
+ */
965
+ if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) {
966
+ continue;
967
+ }
968
+ /**
969
+ * Escaped chars
970
+ */
971
+ if (value === CHAR_BACKSLASH) {
972
+ push({ type: 'text', value: (options.keepEscaping ? value : '') + advance() });
973
+ continue;
974
+ }
975
+ /**
976
+ * Right square bracket (literal): ']'
977
+ */
978
+ if (value === CHAR_RIGHT_SQUARE_BRACKET) {
979
+ push({ type: 'text', value: '\\' + value });
980
+ continue;
981
+ }
982
+ /**
983
+ * Left square bracket: '['
984
+ */
985
+ if (value === CHAR_LEFT_SQUARE_BRACKET) {
986
+ brackets++;
987
+ let next;
988
+ while (index < length && (next = advance())) {
989
+ value += next;
990
+ if (next === CHAR_LEFT_SQUARE_BRACKET) {
991
+ brackets++;
992
+ continue;
993
+ }
994
+ if (next === CHAR_BACKSLASH) {
995
+ value += advance();
996
+ continue;
997
+ }
998
+ if (next === CHAR_RIGHT_SQUARE_BRACKET) {
999
+ brackets--;
1000
+ if (brackets === 0) {
1001
+ break;
1002
+ }
1003
+ }
1004
+ }
1005
+ push({ type: 'text', value });
1006
+ continue;
1007
+ }
1008
+ /**
1009
+ * Parentheses
1010
+ */
1011
+ if (value === CHAR_LEFT_PARENTHESES) {
1012
+ block = push({ type: 'paren', nodes: [] });
1013
+ stack.push(block);
1014
+ push({ type: 'text', value });
1015
+ continue;
1016
+ }
1017
+ if (value === CHAR_RIGHT_PARENTHESES) {
1018
+ if (block.type !== 'paren') {
1019
+ push({ type: 'text', value });
1020
+ continue;
1021
+ }
1022
+ block = stack.pop();
1023
+ push({ type: 'text', value });
1024
+ block = stack[stack.length - 1];
1025
+ continue;
1026
+ }
1027
+ /**
1028
+ * Quotes: '|"|`
1029
+ */
1030
+ if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
1031
+ let open = value;
1032
+ let next;
1033
+ if (options.keepQuotes !== true) {
1034
+ value = '';
1035
+ }
1036
+ while (index < length && (next = advance())) {
1037
+ if (next === CHAR_BACKSLASH) {
1038
+ value += next + advance();
1039
+ continue;
1040
+ }
1041
+ if (next === open) {
1042
+ if (options.keepQuotes === true)
1043
+ value += next;
1044
+ break;
1045
+ }
1046
+ value += next;
1047
+ }
1048
+ push({ type: 'text', value });
1049
+ continue;
1050
+ }
1051
+ /**
1052
+ * Left curly brace: '{'
1053
+ */
1054
+ if (value === CHAR_LEFT_CURLY_BRACE) {
1055
+ depth++;
1056
+ let dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true;
1057
+ let brace = {
1058
+ type: 'brace',
1059
+ open: true,
1060
+ close: false,
1061
+ dollar,
1062
+ depth,
1063
+ commas: 0,
1064
+ ranges: 0,
1065
+ nodes: []
1066
+ };
1067
+ block = push(brace);
1068
+ stack.push(block);
1069
+ push({ type: 'open', value });
1070
+ continue;
1071
+ }
1072
+ /**
1073
+ * Right curly brace: '}'
1074
+ */
1075
+ if (value === CHAR_RIGHT_CURLY_BRACE) {
1076
+ if (block.type !== 'brace') {
1077
+ push({ type: 'text', value });
1078
+ continue;
1079
+ }
1080
+ let type = 'close';
1081
+ block = stack.pop();
1082
+ block.close = true;
1083
+ push({ type, value });
1084
+ depth--;
1085
+ block = stack[stack.length - 1];
1086
+ continue;
1087
+ }
1088
+ /**
1089
+ * Comma: ','
1090
+ */
1091
+ if (value === CHAR_COMMA && depth > 0) {
1092
+ if (block.ranges > 0) {
1093
+ block.ranges = 0;
1094
+ let open = block.nodes.shift();
1095
+ block.nodes = [open, { type: 'text', value: stringify(block) }];
1096
+ }
1097
+ push({ type: 'comma', value });
1098
+ block.commas++;
1099
+ continue;
1100
+ }
1101
+ /**
1102
+ * Dot: '.'
1103
+ */
1104
+ if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
1105
+ let siblings = block.nodes;
1106
+ if (depth === 0 || siblings.length === 0) {
1107
+ push({ type: 'text', value });
1108
+ continue;
1109
+ }
1110
+ if (prev.type === 'dot') {
1111
+ block.range = [];
1112
+ prev.value += value;
1113
+ prev.type = 'range';
1114
+ if (block.nodes.length !== 3 && block.nodes.length !== 5) {
1115
+ block.invalid = true;
1116
+ block.ranges = 0;
1117
+ prev.type = 'text';
1118
+ continue;
1119
+ }
1120
+ block.ranges++;
1121
+ block.args = [];
1122
+ continue;
1123
+ }
1124
+ if (prev.type === 'range') {
1125
+ siblings.pop();
1126
+ let before = siblings[siblings.length - 1];
1127
+ before.value += prev.value + value;
1128
+ prev = before;
1129
+ block.ranges--;
1130
+ continue;
1131
+ }
1132
+ push({ type: 'dot', value });
1133
+ continue;
1134
+ }
1135
+ /**
1136
+ * Text
1137
+ */
1138
+ push({ type: 'text', value });
1139
+ }
1140
+ // Mark imbalanced braces and brackets as invalid
1141
+ do {
1142
+ block = stack.pop();
1143
+ if (block.type !== 'root') {
1144
+ block.nodes.forEach(node => {
1145
+ if (!node.nodes) {
1146
+ if (node.type === 'open')
1147
+ node.isOpen = true;
1148
+ if (node.type === 'close')
1149
+ node.isClose = true;
1150
+ if (!node.nodes)
1151
+ node.type = 'text';
1152
+ node.invalid = true;
1153
+ }
1154
+ });
1155
+ // get the location of the block on parent.nodes (block's siblings)
1156
+ let parent = stack[stack.length - 1];
1157
+ let index = parent.nodes.indexOf(block);
1158
+ // replace the (invalid) block with it's nodes
1159
+ parent.nodes.splice(index, 1, ...block.nodes);
1160
+ }
1161
+ } while (stack.length > 0);
1162
+ push({ type: 'eos' });
1163
+ return ast;
1164
+ };
1165
+ var parse_1 = parse;
1166
+
1167
+ /**
1168
+ * Expand the given pattern or create a regex-compatible string.
1169
+ *
1170
+ * ```js
1171
+ * const braces = require('braces');
1172
+ * console.log(braces('{a,b,c}', { compile: true })); //=> ['(a|b|c)']
1173
+ * console.log(braces('{a,b,c}')); //=> ['a', 'b', 'c']
1174
+ * ```
1175
+ * @param {String} `str`
1176
+ * @param {Object} `options`
1177
+ * @return {String}
1178
+ * @api public
1179
+ */
1180
+ const braces = (input, options = {}) => {
1181
+ let output = [];
1182
+ if (Array.isArray(input)) {
1183
+ for (let pattern of input) {
1184
+ let result = braces.create(pattern, options);
1185
+ if (Array.isArray(result)) {
1186
+ output.push(...result);
1187
+ }
1188
+ else {
1189
+ output.push(result);
1190
+ }
1191
+ }
1192
+ }
1193
+ else {
1194
+ output = [].concat(braces.create(input, options));
1195
+ }
1196
+ if (options && options.expand === true && options.nodupes === true) {
1197
+ output = [...new Set(output)];
1198
+ }
1199
+ return output;
1200
+ };
1201
+ /**
1202
+ * Parse the given `str` with the given `options`.
1203
+ *
1204
+ * ```js
1205
+ * // braces.parse(pattern, [, options]);
1206
+ * const ast = braces.parse('a/{b,c}/d');
1207
+ * console.log(ast);
1208
+ * ```
1209
+ * @param {String} pattern Brace pattern to parse
1210
+ * @param {Object} options
1211
+ * @return {Object} Returns an AST
1212
+ * @api public
1213
+ */
1214
+ braces.parse = (input, options = {}) => parse_1(input, options);
1215
+ /**
1216
+ * Creates a braces string from an AST, or an AST node.
1217
+ *
1218
+ * ```js
1219
+ * const braces = require('braces');
1220
+ * let ast = braces.parse('foo/{a,b}/bar');
1221
+ * console.log(stringify(ast.nodes[2])); //=> '{a,b}'
1222
+ * ```
1223
+ * @param {String} `input` Brace pattern or AST.
1224
+ * @param {Object} `options`
1225
+ * @return {Array} Returns an array of expanded values.
1226
+ * @api public
1227
+ */
1228
+ braces.stringify = (input, options = {}) => {
1229
+ if (typeof input === 'string') {
1230
+ return stringify(braces.parse(input, options), options);
1231
+ }
1232
+ return stringify(input, options);
1233
+ };
1234
+ /**
1235
+ * Compiles a brace pattern into a regex-compatible, optimized string.
1236
+ * This method is called by the main [braces](#braces) function by default.
1237
+ *
1238
+ * ```js
1239
+ * const braces = require('braces');
1240
+ * console.log(braces.compile('a/{b,c}/d'));
1241
+ * //=> ['a/(b|c)/d']
1242
+ * ```
1243
+ * @param {String} `input` Brace pattern or AST.
1244
+ * @param {Object} `options`
1245
+ * @return {Array} Returns an array of expanded values.
1246
+ * @api public
1247
+ */
1248
+ braces.compile = (input, options = {}) => {
1249
+ if (typeof input === 'string') {
1250
+ input = braces.parse(input, options);
1251
+ }
1252
+ return compile_1(input, options);
1253
+ };
1254
+ /**
1255
+ * Expands a brace pattern into an array. This method is called by the
1256
+ * main [braces](#braces) function when `options.expand` is true. Before
1257
+ * using this method it's recommended that you read the [performance notes](#performance))
1258
+ * and advantages of using [.compile](#compile) instead.
1259
+ *
1260
+ * ```js
1261
+ * const braces = require('braces');
1262
+ * console.log(braces.expand('a/{b,c}/d'));
1263
+ * //=> ['a/b/d', 'a/c/d'];
1264
+ * ```
1265
+ * @param {String} `pattern` Brace pattern
1266
+ * @param {Object} `options`
1267
+ * @return {Array} Returns an array of expanded values.
1268
+ * @api public
1269
+ */
1270
+ braces.expand = (input, options = {}) => {
1271
+ if (typeof input === 'string') {
1272
+ input = braces.parse(input, options);
1273
+ }
1274
+ let result = expand_1(input, options);
1275
+ // filter out empty strings if specified
1276
+ if (options.noempty === true) {
1277
+ result = result.filter(Boolean);
1278
+ }
1279
+ // filter out duplicates if specified
1280
+ if (options.nodupes === true) {
1281
+ result = [...new Set(result)];
1282
+ }
1283
+ return result;
1284
+ };
1285
+ /**
1286
+ * Processes a brace pattern and returns either an expanded array
1287
+ * (if `options.expand` is true), a highly optimized regex-compatible string.
1288
+ * This method is called by the main [braces](#braces) function.
1289
+ *
1290
+ * ```js
1291
+ * const braces = require('braces');
1292
+ * console.log(braces.create('user-{200..300}/project-{a,b,c}-{1..10}'))
1293
+ * //=> 'user-(20[0-9]|2[1-9][0-9]|300)/project-(a|b|c)-([1-9]|10)'
1294
+ * ```
1295
+ * @param {String} `pattern` Brace pattern
1296
+ * @param {Object} `options`
1297
+ * @return {Array} Returns an array of expanded values.
1298
+ * @api public
1299
+ */
1300
+ braces.create = (input, options = {}) => {
1301
+ if (input === '' || input.length < 3) {
1302
+ return [input];
1303
+ }
1304
+ return options.expand !== true
1305
+ ? braces.compile(input, options)
1306
+ : braces.expand(input, options);
1307
+ };
1308
+ /**
1309
+ * Expose "braces"
1310
+ */
1311
+ var braces_1 = braces;
1312
+
1313
+ const WIN_SLASH = '\\\\/';
1314
+ const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
1315
+ /**
1316
+ * Posix glob regex
1317
+ */
1318
+ const DOT_LITERAL = '\\.';
1319
+ const PLUS_LITERAL = '\\+';
1320
+ const QMARK_LITERAL = '\\?';
1321
+ const SLASH_LITERAL = '\\/';
1322
+ const ONE_CHAR = '(?=.)';
1323
+ const QMARK = '[^/]';
1324
+ const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
1325
+ const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
1326
+ const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
1327
+ const NO_DOT = `(?!${DOT_LITERAL})`;
1328
+ const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
1329
+ const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
1330
+ const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
1331
+ const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
1332
+ const STAR = `${QMARK}*?`;
1333
+ const POSIX_CHARS = {
1334
+ DOT_LITERAL,
1335
+ PLUS_LITERAL,
1336
+ QMARK_LITERAL,
1337
+ SLASH_LITERAL,
1338
+ ONE_CHAR,
1339
+ QMARK,
1340
+ END_ANCHOR,
1341
+ DOTS_SLASH,
1342
+ NO_DOT,
1343
+ NO_DOTS,
1344
+ NO_DOT_SLASH,
1345
+ NO_DOTS_SLASH,
1346
+ QMARK_NO_DOT,
1347
+ STAR,
1348
+ START_ANCHOR
1349
+ };
1350
+ /**
1351
+ * Windows glob regex
1352
+ */
1353
+ const WINDOWS_CHARS = Object.assign({}, POSIX_CHARS, { SLASH_LITERAL: `[${WIN_SLASH}]`, QMARK: WIN_NO_SLASH, STAR: `${WIN_NO_SLASH}*?`, DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`, NO_DOT: `(?!${DOT_LITERAL})`, NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`, NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, QMARK_NO_DOT: `[^.${WIN_SLASH}]`, START_ANCHOR: `(?:^|[${WIN_SLASH}])`, END_ANCHOR: `(?:[${WIN_SLASH}]|$)` });
1354
+ /**
1355
+ * POSIX Bracket Regex
1356
+ */
1357
+ const POSIX_REGEX_SOURCE = {
1358
+ alnum: 'a-zA-Z0-9',
1359
+ alpha: 'a-zA-Z',
1360
+ ascii: '\\x00-\\x7F',
1361
+ blank: ' \\t',
1362
+ cntrl: '\\x00-\\x1F\\x7F',
1363
+ digit: '0-9',
1364
+ graph: '\\x21-\\x7E',
1365
+ lower: 'a-z',
1366
+ print: '\\x20-\\x7E ',
1367
+ punct: '\\-!"#$%&\'()\\*+,./:;<=>?@[\\]^_`{|}~',
1368
+ space: ' \\t\\r\\n\\v\\f',
1369
+ upper: 'A-Z',
1370
+ word: 'A-Za-z0-9_',
1371
+ xdigit: 'A-Fa-f0-9'
1372
+ };
1373
+ var constants$1 = {
1374
+ MAX_LENGTH: 1024 * 64,
1375
+ POSIX_REGEX_SOURCE,
1376
+ // regular expressions
1377
+ REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
1378
+ REGEX_NON_SPECIAL_CHAR: /^[^@![\].,$*+?^{}()|\\/]+/,
1379
+ REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
1380
+ REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
1381
+ REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
1382
+ REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
1383
+ // Replace globs with equivalent patterns to reduce parsing time.
1384
+ REPLACEMENTS: {
1385
+ '***': '*',
1386
+ '**/**': '**',
1387
+ '**/**/**': '**'
1388
+ },
1389
+ // Digits
1390
+ CHAR_0: 48,
1391
+ CHAR_9: 57,
1392
+ // Alphabet chars.
1393
+ CHAR_UPPERCASE_A: 65,
1394
+ CHAR_LOWERCASE_A: 97,
1395
+ CHAR_UPPERCASE_Z: 90,
1396
+ CHAR_LOWERCASE_Z: 122,
1397
+ CHAR_LEFT_PARENTHESES: 40,
1398
+ CHAR_RIGHT_PARENTHESES: 41,
1399
+ CHAR_ASTERISK: 42,
1400
+ // Non-alphabetic chars.
1401
+ CHAR_AMPERSAND: 38,
1402
+ CHAR_AT: 64,
1403
+ CHAR_BACKWARD_SLASH: 92,
1404
+ CHAR_CARRIAGE_RETURN: 13,
1405
+ CHAR_CIRCUMFLEX_ACCENT: 94,
1406
+ CHAR_COLON: 58,
1407
+ CHAR_COMMA: 44,
1408
+ CHAR_DOT: 46,
1409
+ CHAR_DOUBLE_QUOTE: 34,
1410
+ CHAR_EQUAL: 61,
1411
+ CHAR_EXCLAMATION_MARK: 33,
1412
+ CHAR_FORM_FEED: 12,
1413
+ CHAR_FORWARD_SLASH: 47,
1414
+ CHAR_GRAVE_ACCENT: 96,
1415
+ CHAR_HASH: 35,
1416
+ CHAR_HYPHEN_MINUS: 45,
1417
+ CHAR_LEFT_ANGLE_BRACKET: 60,
1418
+ CHAR_LEFT_CURLY_BRACE: 123,
1419
+ CHAR_LEFT_SQUARE_BRACKET: 91,
1420
+ CHAR_LINE_FEED: 10,
1421
+ CHAR_NO_BREAK_SPACE: 160,
1422
+ CHAR_PERCENT: 37,
1423
+ CHAR_PLUS: 43,
1424
+ CHAR_QUESTION_MARK: 63,
1425
+ CHAR_RIGHT_ANGLE_BRACKET: 62,
1426
+ CHAR_RIGHT_CURLY_BRACE: 125,
1427
+ CHAR_RIGHT_SQUARE_BRACKET: 93,
1428
+ CHAR_SEMICOLON: 59,
1429
+ CHAR_SINGLE_QUOTE: 39,
1430
+ CHAR_SPACE: 32,
1431
+ CHAR_TAB: 9,
1432
+ CHAR_UNDERSCORE: 95,
1433
+ CHAR_VERTICAL_LINE: 124,
1434
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
1435
+ SEP: path__default.sep,
1436
+ /**
1437
+ * Create EXTGLOB_CHARS
1438
+ */
1439
+ extglobChars(chars) {
1440
+ return {
1441
+ '!': { type: 'negate', open: '(?:(?!(?:', close: `))${chars.STAR})` },
1442
+ '?': { type: 'qmark', open: '(?:', close: ')?' },
1443
+ '+': { type: 'plus', open: '(?:', close: ')+' },
1444
+ '*': { type: 'star', open: '(?:', close: ')*' },
1445
+ '@': { type: 'at', open: '(?:', close: ')' }
1446
+ };
1447
+ },
1448
+ /**
1449
+ * Create GLOB_CHARS
1450
+ */
1451
+ globChars(win32) {
1452
+ return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
1453
+ }
1454
+ };
1455
+
1456
+ var utils$1 = createCommonjsModule(function (module, exports) {
1457
+ const win32 = process.platform === 'win32';
1458
+ const { REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL, REGEX_REMOVE_BACKSLASH } = constants$1;
1459
+ exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
1460
+ exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
1461
+ exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
1462
+ exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
1463
+ exports.toPosixSlashes = str => str.replace(/\\/g, '/');
1464
+ exports.removeBackslashes = str => {
1465
+ return str.replace(REGEX_REMOVE_BACKSLASH, match => {
1466
+ return match === '\\' ? '' : match;
1467
+ });
1468
+ };
1469
+ exports.supportsLookbehinds = () => {
1470
+ let segs = process.version.slice(1).split('.');
1471
+ if (segs.length === 3 && +segs[0] >= 9 || (+segs[0] === 8 && +segs[1] >= 10)) {
1472
+ return true;
1473
+ }
1474
+ return false;
1475
+ };
1476
+ exports.isWindows = options => {
1477
+ if (options && typeof options.windows === 'boolean') {
1478
+ return options.windows;
1479
+ }
1480
+ return win32 === true || path__default.sep === '\\';
1481
+ };
1482
+ exports.escapeLast = (input, char, lastIdx) => {
1483
+ let idx = input.lastIndexOf(char, lastIdx);
1484
+ if (idx === -1)
1485
+ return input;
1486
+ if (input[idx - 1] === '\\')
1487
+ return exports.escapeLast(input, char, idx - 1);
1488
+ return input.slice(0, idx) + '\\' + input.slice(idx);
1489
+ };
1490
+ });
1491
+ var utils_1$1 = utils$1.isObject;
1492
+ var utils_2$1 = utils$1.hasRegexChars;
1493
+ var utils_3$1 = utils$1.isRegexChar;
1494
+ var utils_4$1 = utils$1.escapeRegex;
1495
+ var utils_5$1 = utils$1.toPosixSlashes;
1496
+ var utils_6$1 = utils$1.removeBackslashes;
1497
+ var utils_7$1 = utils$1.supportsLookbehinds;
1498
+ var utils_8$1 = utils$1.isWindows;
1499
+ var utils_9$1 = utils$1.escapeLast;
1500
+
1501
+ const { CHAR_ASTERISK, /* * */ CHAR_AT, /* @ */ CHAR_BACKWARD_SLASH, /* \ */ CHAR_COMMA: CHAR_COMMA$1, /* , */ CHAR_DOT: CHAR_DOT$1, /* . */ CHAR_EXCLAMATION_MARK, /* ! */ CHAR_FORWARD_SLASH, /* / */ CHAR_LEFT_CURLY_BRACE: CHAR_LEFT_CURLY_BRACE$1, /* { */ CHAR_LEFT_PARENTHESES: CHAR_LEFT_PARENTHESES$1, /* ( */ CHAR_LEFT_SQUARE_BRACKET: CHAR_LEFT_SQUARE_BRACKET$1, /* [ */ CHAR_PLUS, /* + */ CHAR_QUESTION_MARK, /* ? */ CHAR_RIGHT_CURLY_BRACE: CHAR_RIGHT_CURLY_BRACE$1, /* } */ CHAR_RIGHT_PARENTHESES: CHAR_RIGHT_PARENTHESES$1, /* ) */ CHAR_RIGHT_SQUARE_BRACKET: CHAR_RIGHT_SQUARE_BRACKET$1 /* ] */ } = constants$1;
1502
+ const isPathSeparator = code => {
1503
+ return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
1504
+ };
1505
+ /**
1506
+ * Quickly scans a glob pattern and returns an object with a handful of
1507
+ * useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
1508
+ * `glob` (the actual pattern), and `negated` (true if the path starts with `!`).
1509
+ *
1510
+ * ```js
1511
+ * const pm = require('picomatch');
1512
+ * console.log(pm.scan('foo/bar/*.js'));
1513
+ * { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' }
1514
+ * ```
1515
+ * @param {String} `str`
1516
+ * @param {Object} `options`
1517
+ * @return {Object} Returns an object with tokens and regex source string.
1518
+ * @api public
1519
+ */
1520
+ var scan = (input, options) => {
1521
+ let opts = options || {};
1522
+ let length = input.length - 1;
1523
+ let index = -1;
1524
+ let start = 0;
1525
+ let lastIndex = 0;
1526
+ let isGlob = false;
1527
+ let backslashes = false;
1528
+ let negated = false;
1529
+ let braces = 0;
1530
+ let prev;
1531
+ let code;
1532
+ let braceEscaped = false;
1533
+ let eos = () => index >= length;
1534
+ let advance = () => {
1535
+ prev = code;
1536
+ return input.charCodeAt(++index);
1537
+ };
1538
+ while (index < length) {
1539
+ code = advance();
1540
+ let next;
1541
+ if (code === CHAR_BACKWARD_SLASH) {
1542
+ backslashes = true;
1543
+ next = advance();
1544
+ if (next === CHAR_LEFT_CURLY_BRACE$1) {
1545
+ braceEscaped = true;
1546
+ }
1547
+ continue;
1548
+ }
1549
+ if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE$1) {
1550
+ braces++;
1551
+ while (!eos() && (next = advance())) {
1552
+ if (next === CHAR_BACKWARD_SLASH) {
1553
+ backslashes = true;
1554
+ next = advance();
1555
+ continue;
1556
+ }
1557
+ if (next === CHAR_LEFT_CURLY_BRACE$1) {
1558
+ braces++;
1559
+ continue;
1560
+ }
1561
+ if (!braceEscaped && next === CHAR_DOT$1 && (next = advance()) === CHAR_DOT$1) {
1562
+ isGlob = true;
1563
+ break;
1564
+ }
1565
+ if (!braceEscaped && next === CHAR_COMMA$1) {
1566
+ isGlob = true;
1567
+ break;
1568
+ }
1569
+ if (next === CHAR_RIGHT_CURLY_BRACE$1) {
1570
+ braces--;
1571
+ if (braces === 0) {
1572
+ braceEscaped = false;
1573
+ break;
1574
+ }
1575
+ }
1576
+ }
1577
+ }
1578
+ if (code === CHAR_FORWARD_SLASH) {
1579
+ if (prev === CHAR_DOT$1 && index === (start + 1)) {
1580
+ start += 2;
1581
+ continue;
1582
+ }
1583
+ lastIndex = index + 1;
1584
+ continue;
1585
+ }
1586
+ if (code === CHAR_ASTERISK) {
1587
+ isGlob = true;
1588
+ break;
1589
+ }
1590
+ if (code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK) {
1591
+ isGlob = true;
1592
+ break;
1593
+ }
1594
+ if (code === CHAR_LEFT_SQUARE_BRACKET$1) {
1595
+ while (!eos() && (next = advance())) {
1596
+ if (next === CHAR_BACKWARD_SLASH) {
1597
+ backslashes = true;
1598
+ next = advance();
1599
+ continue;
1600
+ }
1601
+ if (next === CHAR_RIGHT_SQUARE_BRACKET$1) {
1602
+ isGlob = true;
1603
+ break;
1604
+ }
1605
+ }
1606
+ }
1607
+ let isExtglobChar = code === CHAR_PLUS
1608
+ || code === CHAR_AT
1609
+ || code === CHAR_EXCLAMATION_MARK;
1610
+ if (isExtglobChar && input.charCodeAt(index + 1) === CHAR_LEFT_PARENTHESES$1) {
1611
+ isGlob = true;
1612
+ break;
1613
+ }
1614
+ if (code === CHAR_EXCLAMATION_MARK && index === start) {
1615
+ negated = true;
1616
+ start++;
1617
+ continue;
1618
+ }
1619
+ if (code === CHAR_LEFT_PARENTHESES$1) {
1620
+ while (!eos() && (next = advance())) {
1621
+ if (next === CHAR_BACKWARD_SLASH) {
1622
+ backslashes = true;
1623
+ next = advance();
1624
+ continue;
1625
+ }
1626
+ if (next === CHAR_RIGHT_PARENTHESES$1) {
1627
+ isGlob = true;
1628
+ break;
1629
+ }
1630
+ }
1631
+ }
1632
+ if (isGlob) {
1633
+ break;
1634
+ }
1635
+ }
1636
+ let prefix = '';
1637
+ let orig = input;
1638
+ let base = input;
1639
+ let glob = '';
1640
+ if (start > 0) {
1641
+ prefix = input.slice(0, start);
1642
+ input = input.slice(start);
1643
+ lastIndex -= start;
1644
+ }
1645
+ if (base && isGlob === true && lastIndex > 0) {
1646
+ base = input.slice(0, lastIndex);
1647
+ glob = input.slice(lastIndex);
1648
+ }
1649
+ else if (isGlob === true) {
1650
+ base = '';
1651
+ glob = input;
1652
+ }
1653
+ else {
1654
+ base = input;
1655
+ }
1656
+ if (base && base !== '' && base !== '/' && base !== input) {
1657
+ if (isPathSeparator(base.charCodeAt(base.length - 1))) {
1658
+ base = base.slice(0, -1);
1659
+ }
1660
+ }
1661
+ if (opts.unescape === true) {
1662
+ if (glob)
1663
+ glob = utils$1.removeBackslashes(glob);
1664
+ if (base && backslashes === true) {
1665
+ base = utils$1.removeBackslashes(base);
1666
+ }
1667
+ }
1668
+ return { prefix, input: orig, base, glob, negated, isGlob };
1669
+ };
1670
+
1671
+ /**
1672
+ * Constants
1673
+ */
1674
+ const { MAX_LENGTH: MAX_LENGTH$1, POSIX_REGEX_SOURCE: POSIX_REGEX_SOURCE$1, REGEX_NON_SPECIAL_CHAR, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants$1;
1675
+ /**
1676
+ * Helpers
1677
+ */
1678
+ const expandRange = (args, options) => {
1679
+ if (typeof options.expandRange === 'function') {
1680
+ return options.expandRange(...args, options);
1681
+ }
1682
+ args.sort();
1683
+ let value = `[${args.join('-')}]`;
1684
+ try {
1685
+ }
1686
+ catch (ex) {
1687
+ return args.map(v => utils$1.escapeRegex(v)).join('..');
1688
+ }
1689
+ return value;
1690
+ };
1691
+ const negate = state => {
1692
+ let count = 1;
1693
+ while (state.peek() === '!' && (state.peek(2) !== '(' || state.peek(3) === '?')) {
1694
+ state.advance();
1695
+ state.start++;
1696
+ count++;
1697
+ }
1698
+ if (count % 2 === 0) {
1699
+ return false;
1700
+ }
1701
+ state.negated = true;
1702
+ state.start++;
1703
+ return true;
1704
+ };
1705
+ /**
1706
+ * Create the message for a syntax error
1707
+ */
1708
+ const syntaxError = (type, char) => {
1709
+ return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
1710
+ };
1711
+ /**
1712
+ * Parse the given input string.
1713
+ * @param {String} input
1714
+ * @param {Object} options
1715
+ * @return {Object}
1716
+ */
1717
+ const parse$1 = (input, options) => {
1718
+ if (typeof input !== 'string') {
1719
+ throw new TypeError('Expected a string');
1720
+ }
1721
+ input = REPLACEMENTS[input] || input;
1722
+ let opts = Object.assign({}, options);
1723
+ let max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
1724
+ let len = input.length;
1725
+ if (len > max) {
1726
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
1727
+ }
1728
+ let bos = { type: 'bos', value: '', output: opts.prepend || '' };
1729
+ let tokens = [bos];
1730
+ let capture = opts.capture ? '' : '?:';
1731
+ let win32 = utils$1.isWindows(options);
1732
+ // create constants based on platform, for windows or posix
1733
+ const PLATFORM_CHARS = constants$1.globChars(win32);
1734
+ const EXTGLOB_CHARS = constants$1.extglobChars(PLATFORM_CHARS);
1735
+ const { DOT_LITERAL, PLUS_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK, QMARK_NO_DOT, STAR, START_ANCHOR } = PLATFORM_CHARS;
1736
+ const globstar = (opts) => {
1737
+ return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
1738
+ };
1739
+ let nodot = opts.dot ? '' : NO_DOT;
1740
+ let star = opts.bash === true ? globstar(opts) : STAR;
1741
+ let qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
1742
+ if (opts.capture) {
1743
+ star = `(${star})`;
1744
+ }
1745
+ // minimatch options support
1746
+ if (typeof opts.noext === 'boolean') {
1747
+ opts.noextglob = opts.noext;
1748
+ }
1749
+ let state = {
1750
+ index: -1,
1751
+ start: 0,
1752
+ consumed: '',
1753
+ output: '',
1754
+ backtrack: false,
1755
+ brackets: 0,
1756
+ braces: 0,
1757
+ parens: 0,
1758
+ quotes: 0,
1759
+ tokens
1760
+ };
1761
+ let extglobs = [];
1762
+ let stack = [];
1763
+ let prev = bos;
1764
+ let value;
1765
+ /**
1766
+ * Tokenizing helpers
1767
+ */
1768
+ const eos = () => state.index === len - 1;
1769
+ const peek = state.peek = (n = 1) => input[state.index + n];
1770
+ const advance = state.advance = () => input[++state.index];
1771
+ const append = token => {
1772
+ state.output += token.output != null ? token.output : token.value;
1773
+ state.consumed += token.value || '';
1774
+ };
1775
+ const increment = type => {
1776
+ state[type]++;
1777
+ stack.push(type);
1778
+ };
1779
+ const decrement = type => {
1780
+ state[type]--;
1781
+ stack.pop();
1782
+ };
1783
+ /**
1784
+ * Push tokens onto the tokens array. This helper speeds up
1785
+ * tokenizing by 1) helping us avoid backtracking as much as possible,
1786
+ * and 2) helping us avoid creating extra tokens when consecutive
1787
+ * characters are plain text. This improves performance and simplifies
1788
+ * lookbehinds.
1789
+ */
1790
+ const push = tok => {
1791
+ if (prev.type === 'globstar') {
1792
+ let isBrace = state.braces > 0 && (tok.type === 'comma' || tok.type === 'brace');
1793
+ let isExtglob = extglobs.length && (tok.type === 'pipe' || tok.type === 'paren');
1794
+ if (tok.type !== 'slash' && tok.type !== 'paren' && !isBrace && !isExtglob) {
1795
+ state.output = state.output.slice(0, -prev.output.length);
1796
+ prev.type = 'star';
1797
+ prev.value = '*';
1798
+ prev.output = star;
1799
+ state.output += prev.output;
1800
+ }
1801
+ }
1802
+ if (extglobs.length && tok.type !== 'paren' && !EXTGLOB_CHARS[tok.value]) {
1803
+ extglobs[extglobs.length - 1].inner += tok.value;
1804
+ }
1805
+ if (tok.value || tok.output)
1806
+ append(tok);
1807
+ if (prev && prev.type === 'text' && tok.type === 'text') {
1808
+ prev.value += tok.value;
1809
+ return;
1810
+ }
1811
+ tok.prev = prev;
1812
+ tokens.push(tok);
1813
+ prev = tok;
1814
+ };
1815
+ const extglobOpen = (type, value) => {
1816
+ let token = Object.assign({}, EXTGLOB_CHARS[value], { conditions: 1, inner: '' });
1817
+ token.prev = prev;
1818
+ token.parens = state.parens;
1819
+ token.output = state.output;
1820
+ let output = (opts.capture ? '(' : '') + token.open;
1821
+ push({ type, value, output: state.output ? '' : ONE_CHAR });
1822
+ push({ type: 'paren', extglob: true, value: advance(), output });
1823
+ increment('parens');
1824
+ extglobs.push(token);
1825
+ };
1826
+ const extglobClose = token => {
1827
+ let output = token.close + (opts.capture ? ')' : '');
1828
+ if (token.type === 'negate') {
1829
+ let extglobStar = star;
1830
+ if (token.inner && token.inner.length > 1 && token.inner.includes('/')) {
1831
+ extglobStar = globstar(opts);
1832
+ }
1833
+ if (extglobStar !== star || eos() || /^\)+$/.test(input.slice(state.index + 1))) {
1834
+ output = token.close = ')$))' + extglobStar;
1835
+ }
1836
+ if (token.prev.type === 'bos' && eos()) {
1837
+ state.negatedExtglob = true;
1838
+ }
1839
+ }
1840
+ push({ type: 'paren', extglob: true, value, output });
1841
+ decrement('parens');
1842
+ };
1843
+ if (opts.fastpaths !== false && !/(^[*!]|[/{[()\]}"])/.test(input)) {
1844
+ let backslashes = false;
1845
+ let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
1846
+ if (first === '\\') {
1847
+ backslashes = true;
1848
+ return m;
1849
+ }
1850
+ if (first === '?') {
1851
+ if (esc) {
1852
+ return esc + first + (rest ? QMARK.repeat(rest.length) : '');
1853
+ }
1854
+ if (index === 0) {
1855
+ return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : '');
1856
+ }
1857
+ return QMARK.repeat(chars.length);
1858
+ }
1859
+ if (first === '.') {
1860
+ return DOT_LITERAL.repeat(chars.length);
1861
+ }
1862
+ if (first === '*') {
1863
+ if (esc) {
1864
+ return esc + first + (rest ? star : '');
1865
+ }
1866
+ return star;
1867
+ }
1868
+ return esc ? m : '\\' + m;
1869
+ });
1870
+ if (backslashes === true) {
1871
+ if (opts.unescape === true) {
1872
+ output = output.replace(/\\/g, '');
1873
+ }
1874
+ else {
1875
+ output = output.replace(/\\+/g, m => {
1876
+ return m.length % 2 === 0 ? '\\\\' : (m ? '\\' : '');
1877
+ });
1878
+ }
1879
+ }
1880
+ state.output = output;
1881
+ return state;
1882
+ }
1883
+ /**
1884
+ * Tokenize input until we reach end-of-string
1885
+ */
1886
+ while (!eos()) {
1887
+ value = advance();
1888
+ if (value === '\u0000') {
1889
+ continue;
1890
+ }
1891
+ /**
1892
+ * Escaped characters
1893
+ */
1894
+ if (value === '\\') {
1895
+ let next = peek();
1896
+ if (next === '/' && opts.bash !== true) {
1897
+ continue;
1898
+ }
1899
+ if (next === '.' || next === ';') {
1900
+ continue;
1901
+ }
1902
+ if (!next) {
1903
+ value += '\\';
1904
+ push({ type: 'text', value });
1905
+ continue;
1906
+ }
1907
+ // collapse slashes to reduce potential for exploits
1908
+ let match = /^\\+/.exec(input.slice(state.index + 1));
1909
+ let slashes = 0;
1910
+ if (match && match[0].length > 2) {
1911
+ slashes = match[0].length;
1912
+ state.index += slashes;
1913
+ if (slashes % 2 !== 0) {
1914
+ value += '\\';
1915
+ }
1916
+ }
1917
+ if (opts.unescape === true) {
1918
+ value = advance() || '';
1919
+ }
1920
+ else {
1921
+ value += advance() || '';
1922
+ }
1923
+ if (state.brackets === 0) {
1924
+ push({ type: 'text', value });
1925
+ continue;
1926
+ }
1927
+ }
1928
+ /**
1929
+ * If we're inside a regex character class, continue
1930
+ * until we reach the closing bracket.
1931
+ */
1932
+ if (state.brackets > 0 && (value !== ']' || prev.value === '[' || prev.value === '[^')) {
1933
+ if (opts.posix !== false && value === ':') {
1934
+ let inner = prev.value.slice(1);
1935
+ if (inner.includes('[')) {
1936
+ prev.posix = true;
1937
+ if (inner.includes(':')) {
1938
+ let idx = prev.value.lastIndexOf('[');
1939
+ let pre = prev.value.slice(0, idx);
1940
+ let rest = prev.value.slice(idx + 2);
1941
+ let posix = POSIX_REGEX_SOURCE$1[rest];
1942
+ if (posix) {
1943
+ prev.value = pre + posix;
1944
+ state.backtrack = true;
1945
+ advance();
1946
+ if (!bos.output && tokens.indexOf(prev) === 1) {
1947
+ bos.output = ONE_CHAR;
1948
+ }
1949
+ continue;
1950
+ }
1951
+ }
1952
+ }
1953
+ }
1954
+ if ((value === '[' && peek() !== ':') || (value === '-' && peek() === ']')) {
1955
+ value = '\\' + value;
1956
+ }
1957
+ if (value === ']' && (prev.value === '[' || prev.value === '[^')) {
1958
+ value = '\\' + value;
1959
+ }
1960
+ if (opts.posix === true && value === '!' && prev.value === '[') {
1961
+ value = '^';
1962
+ }
1963
+ prev.value += value;
1964
+ append({ value });
1965
+ continue;
1966
+ }
1967
+ /**
1968
+ * If we're inside a quoted string, continue
1969
+ * until we reach the closing double quote.
1970
+ */
1971
+ if (state.quotes === 1 && value !== '"') {
1972
+ value = utils$1.escapeRegex(value);
1973
+ prev.value += value;
1974
+ append({ value });
1975
+ continue;
1976
+ }
1977
+ /**
1978
+ * Double quotes
1979
+ */
1980
+ if (value === '"') {
1981
+ state.quotes = state.quotes === 1 ? 0 : 1;
1982
+ if (opts.keepQuotes === true) {
1983
+ push({ type: 'text', value });
1984
+ }
1985
+ continue;
1986
+ }
1987
+ /**
1988
+ * Parentheses
1989
+ */
1990
+ if (value === '(') {
1991
+ push({ type: 'paren', value });
1992
+ increment('parens');
1993
+ continue;
1994
+ }
1995
+ if (value === ')') {
1996
+ if (state.parens === 0 && opts.strictBrackets === true) {
1997
+ throw new SyntaxError(syntaxError('opening', '('));
1998
+ }
1999
+ let extglob = extglobs[extglobs.length - 1];
2000
+ if (extglob && state.parens === extglob.parens + 1) {
2001
+ extglobClose(extglobs.pop());
2002
+ continue;
2003
+ }
2004
+ push({ type: 'paren', value, output: state.parens ? ')' : '\\)' });
2005
+ decrement('parens');
2006
+ continue;
2007
+ }
2008
+ /**
2009
+ * Brackets
2010
+ */
2011
+ if (value === '[') {
2012
+ if (opts.nobracket === true || !input.slice(state.index + 1).includes(']')) {
2013
+ if (opts.nobracket !== true && opts.strictBrackets === true) {
2014
+ throw new SyntaxError(syntaxError('closing', ']'));
2015
+ }
2016
+ value = '\\' + value;
2017
+ }
2018
+ else {
2019
+ increment('brackets');
2020
+ }
2021
+ push({ type: 'bracket', value });
2022
+ continue;
2023
+ }
2024
+ if (value === ']') {
2025
+ if (opts.nobracket === true || (prev && prev.type === 'bracket' && prev.value.length === 1)) {
2026
+ push({ type: 'text', value, output: '\\' + value });
2027
+ continue;
2028
+ }
2029
+ if (state.brackets === 0) {
2030
+ if (opts.strictBrackets === true) {
2031
+ throw new SyntaxError(syntaxError('opening', '['));
2032
+ }
2033
+ push({ type: 'text', value, output: '\\' + value });
2034
+ continue;
2035
+ }
2036
+ decrement('brackets');
2037
+ let prevValue = prev.value.slice(1);
2038
+ if (prev.posix !== true && prevValue[0] === '^' && !prevValue.includes('/')) {
2039
+ value = '/' + value;
2040
+ }
2041
+ prev.value += value;
2042
+ append({ value });
2043
+ // when literal brackets are explicitly disabled
2044
+ // assume we should match with a regex character class
2045
+ if (opts.literalBrackets === false || utils$1.hasRegexChars(prevValue)) {
2046
+ continue;
2047
+ }
2048
+ let escaped = utils$1.escapeRegex(prev.value);
2049
+ state.output = state.output.slice(0, -prev.value.length);
2050
+ // when literal brackets are explicitly enabled
2051
+ // assume we should escape the brackets to match literal characters
2052
+ if (opts.literalBrackets === true) {
2053
+ state.output += escaped;
2054
+ prev.value = escaped;
2055
+ continue;
2056
+ }
2057
+ // when the user specifies nothing, try to match both
2058
+ prev.value = `(${capture}${escaped}|${prev.value})`;
2059
+ state.output += prev.value;
2060
+ continue;
2061
+ }
2062
+ /**
2063
+ * Braces
2064
+ */
2065
+ if (value === '{' && opts.nobrace !== true) {
2066
+ push({ type: 'brace', value, output: '(' });
2067
+ increment('braces');
2068
+ continue;
2069
+ }
2070
+ if (value === '}') {
2071
+ if (opts.nobrace === true || state.braces === 0) {
2072
+ push({ type: 'text', value, output: '\\' + value });
2073
+ continue;
2074
+ }
2075
+ let output = ')';
2076
+ if (state.dots === true) {
2077
+ let arr = tokens.slice();
2078
+ let range = [];
2079
+ for (let i = arr.length - 1; i >= 0; i--) {
2080
+ tokens.pop();
2081
+ if (arr[i].type === 'brace') {
2082
+ break;
2083
+ }
2084
+ if (arr[i].type !== 'dots') {
2085
+ range.unshift(arr[i].value);
2086
+ }
2087
+ }
2088
+ output = expandRange(range, opts);
2089
+ state.backtrack = true;
2090
+ }
2091
+ push({ type: 'brace', value, output });
2092
+ decrement('braces');
2093
+ continue;
2094
+ }
2095
+ /**
2096
+ * Pipes
2097
+ */
2098
+ if (value === '|') {
2099
+ if (extglobs.length > 0) {
2100
+ extglobs[extglobs.length - 1].conditions++;
2101
+ }
2102
+ push({ type: 'text', value });
2103
+ continue;
2104
+ }
2105
+ /**
2106
+ * Commas
2107
+ */
2108
+ if (value === ',') {
2109
+ let output = value;
2110
+ if (state.braces > 0 && stack[stack.length - 1] === 'braces') {
2111
+ output = '|';
2112
+ }
2113
+ push({ type: 'comma', value, output });
2114
+ continue;
2115
+ }
2116
+ /**
2117
+ * Slashes
2118
+ */
2119
+ if (value === '/') {
2120
+ // if the beginning of the glob is "./", advance the start
2121
+ // to the current index, and don't add the "./" characters
2122
+ // to the state. This greatly simplifies lookbehinds when
2123
+ // checking for BOS characters like "!" and "." (not "./")
2124
+ if (prev.type === 'dot' && state.index === 1) {
2125
+ state.start = state.index + 1;
2126
+ state.consumed = '';
2127
+ state.output = '';
2128
+ tokens.pop();
2129
+ prev = bos; // reset "prev" to the first token
2130
+ continue;
2131
+ }
2132
+ push({ type: 'slash', value, output: SLASH_LITERAL });
2133
+ continue;
2134
+ }
2135
+ /**
2136
+ * Dots
2137
+ */
2138
+ if (value === '.') {
2139
+ if (state.braces > 0 && prev.type === 'dot') {
2140
+ if (prev.value === '.')
2141
+ prev.output = DOT_LITERAL;
2142
+ prev.type = 'dots';
2143
+ prev.output += value;
2144
+ prev.value += value;
2145
+ state.dots = true;
2146
+ continue;
2147
+ }
2148
+ push({ type: 'dot', value, output: DOT_LITERAL });
2149
+ continue;
2150
+ }
2151
+ /**
2152
+ * Question marks
2153
+ */
2154
+ if (value === '?') {
2155
+ if (prev && prev.type === 'paren') {
2156
+ let next = peek();
2157
+ let output = value;
2158
+ if (next === '<' && !utils$1.supportsLookbehinds()) {
2159
+ throw new Error('Node.js v10 or higher is required for regex lookbehinds');
2160
+ }
2161
+ if (prev.value === '(' && !/[!=<:]/.test(next) || (next === '<' && !/[!=]/.test(peek(2)))) {
2162
+ output = '\\' + value;
2163
+ }
2164
+ push({ type: 'text', value, output });
2165
+ continue;
2166
+ }
2167
+ if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') {
2168
+ extglobOpen('qmark', value);
2169
+ continue;
2170
+ }
2171
+ if (opts.dot !== true && (prev.type === 'slash' || prev.type === 'bos')) {
2172
+ push({ type: 'qmark', value, output: QMARK_NO_DOT });
2173
+ continue;
2174
+ }
2175
+ push({ type: 'qmark', value, output: QMARK });
2176
+ continue;
2177
+ }
2178
+ /**
2179
+ * Exclamation
2180
+ */
2181
+ if (value === '!') {
2182
+ if (opts.noextglob !== true && peek() === '(') {
2183
+ if (peek(2) !== '?' || !/[!=<:]/.test(peek(3))) {
2184
+ extglobOpen('negate', value);
2185
+ continue;
2186
+ }
2187
+ }
2188
+ if (opts.nonegate !== true && state.index === 0) {
2189
+ negate(state);
2190
+ continue;
2191
+ }
2192
+ }
2193
+ /**
2194
+ * Plus
2195
+ */
2196
+ if (value === '+') {
2197
+ if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') {
2198
+ extglobOpen('plus', value);
2199
+ continue;
2200
+ }
2201
+ if (prev && (prev.type === 'bracket' || prev.type === 'paren' || prev.type === 'brace')) {
2202
+ let output = prev.extglob === true ? '\\' + value : value;
2203
+ push({ type: 'plus', value, output });
2204
+ continue;
2205
+ }
2206
+ // use regex behavior inside parens
2207
+ if (state.parens > 0 && opts.regex !== false) {
2208
+ push({ type: 'plus', value });
2209
+ continue;
2210
+ }
2211
+ push({ type: 'plus', value: PLUS_LITERAL });
2212
+ continue;
2213
+ }
2214
+ /**
2215
+ * Plain text
2216
+ */
2217
+ if (value === '@') {
2218
+ if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') {
2219
+ push({ type: 'at', value, output: '' });
2220
+ continue;
2221
+ }
2222
+ push({ type: 'text', value });
2223
+ continue;
2224
+ }
2225
+ /**
2226
+ * Plain text
2227
+ */
2228
+ if (value !== '*') {
2229
+ if (value === '$' || value === '^') {
2230
+ value = '\\' + value;
2231
+ }
2232
+ let match = REGEX_NON_SPECIAL_CHAR.exec(input.slice(state.index + 1));
2233
+ if (match) {
2234
+ value += match[0];
2235
+ state.index += match[0].length;
2236
+ }
2237
+ push({ type: 'text', value });
2238
+ continue;
2239
+ }
2240
+ /**
2241
+ * Stars
2242
+ */
2243
+ if (prev && (prev.type === 'globstar' || prev.star === true)) {
2244
+ prev.type = 'star';
2245
+ prev.star = true;
2246
+ prev.value += value;
2247
+ prev.output = star;
2248
+ state.backtrack = true;
2249
+ state.consumed += value;
2250
+ continue;
2251
+ }
2252
+ if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') {
2253
+ extglobOpen('star', value);
2254
+ continue;
2255
+ }
2256
+ if (prev.type === 'star') {
2257
+ if (opts.noglobstar === true) {
2258
+ state.consumed += value;
2259
+ continue;
2260
+ }
2261
+ let prior = prev.prev;
2262
+ let before = prior.prev;
2263
+ let isStart = prior.type === 'slash' || prior.type === 'bos';
2264
+ let afterStar = before && (before.type === 'star' || before.type === 'globstar');
2265
+ if (opts.bash === true && (!isStart || (!eos() && peek() !== '/'))) {
2266
+ push({ type: 'star', value, output: '' });
2267
+ continue;
2268
+ }
2269
+ let isBrace = state.braces > 0 && (prior.type === 'comma' || prior.type === 'brace');
2270
+ let isExtglob = extglobs.length && (prior.type === 'pipe' || prior.type === 'paren');
2271
+ if (!isStart && prior.type !== 'paren' && !isBrace && !isExtglob) {
2272
+ push({ type: 'star', value, output: '' });
2273
+ continue;
2274
+ }
2275
+ // strip consecutive `/**/`
2276
+ while (input.slice(state.index + 1, state.index + 4) === '/**') {
2277
+ let after = input[state.index + 4];
2278
+ if (after && after !== '/') {
2279
+ break;
2280
+ }
2281
+ state.consumed += '/**';
2282
+ state.index += 3;
2283
+ }
2284
+ if (prior.type === 'bos' && eos()) {
2285
+ prev.type = 'globstar';
2286
+ prev.value += value;
2287
+ prev.output = globstar(opts);
2288
+ state.output = prev.output;
2289
+ state.consumed += value;
2290
+ continue;
2291
+ }
2292
+ if (prior.type === 'slash' && prior.prev.type !== 'bos' && !afterStar && eos()) {
2293
+ state.output = state.output.slice(0, -(prior.output + prev.output).length);
2294
+ prior.output = '(?:' + prior.output;
2295
+ prev.type = 'globstar';
2296
+ prev.output = globstar(opts) + '|$)';
2297
+ prev.value += value;
2298
+ state.output += prior.output + prev.output;
2299
+ state.consumed += value;
2300
+ continue;
2301
+ }
2302
+ let next = peek();
2303
+ if (prior.type === 'slash' && prior.prev.type !== 'bos' && next === '/') {
2304
+ let end = peek(2) !== void 0 ? '|$' : '';
2305
+ state.output = state.output.slice(0, -(prior.output + prev.output).length);
2306
+ prior.output = '(?:' + prior.output;
2307
+ prev.type = 'globstar';
2308
+ prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`;
2309
+ prev.value += value;
2310
+ state.output += prior.output + prev.output;
2311
+ state.consumed += value + advance();
2312
+ push({ type: 'slash', value, output: '' });
2313
+ continue;
2314
+ }
2315
+ if (prior.type === 'bos' && next === '/') {
2316
+ prev.type = 'globstar';
2317
+ prev.value += value;
2318
+ prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`;
2319
+ state.output = prev.output;
2320
+ state.consumed += value + advance();
2321
+ push({ type: 'slash', value, output: '' });
2322
+ continue;
2323
+ }
2324
+ // remove single star from output
2325
+ state.output = state.output.slice(0, -prev.output.length);
2326
+ // reset previous token to globstar
2327
+ prev.type = 'globstar';
2328
+ prev.output = globstar(opts);
2329
+ prev.value += value;
2330
+ // reset output with globstar
2331
+ state.output += prev.output;
2332
+ state.consumed += value;
2333
+ continue;
2334
+ }
2335
+ let token = { type: 'star', value, output: star };
2336
+ if (opts.bash === true) {
2337
+ token.output = '.*?';
2338
+ if (prev.type === 'bos' || prev.type === 'slash') {
2339
+ token.output = nodot + token.output;
2340
+ }
2341
+ push(token);
2342
+ continue;
2343
+ }
2344
+ if (prev && (prev.type === 'bracket' || prev.type === 'paren') && opts.regex === true) {
2345
+ token.output = value;
2346
+ push(token);
2347
+ continue;
2348
+ }
2349
+ if (state.index === state.start || prev.type === 'slash' || prev.type === 'dot') {
2350
+ if (prev.type === 'dot') {
2351
+ state.output += NO_DOT_SLASH;
2352
+ prev.output += NO_DOT_SLASH;
2353
+ }
2354
+ else if (opts.dot === true) {
2355
+ state.output += NO_DOTS_SLASH;
2356
+ prev.output += NO_DOTS_SLASH;
2357
+ }
2358
+ else {
2359
+ state.output += nodot;
2360
+ prev.output += nodot;
2361
+ }
2362
+ if (peek() !== '*') {
2363
+ state.output += ONE_CHAR;
2364
+ prev.output += ONE_CHAR;
2365
+ }
2366
+ }
2367
+ push(token);
2368
+ }
2369
+ while (state.brackets > 0) {
2370
+ if (opts.strictBrackets === true)
2371
+ throw new SyntaxError(syntaxError('closing', ']'));
2372
+ state.output = utils$1.escapeLast(state.output, '[');
2373
+ decrement('brackets');
2374
+ }
2375
+ while (state.parens > 0) {
2376
+ if (opts.strictBrackets === true)
2377
+ throw new SyntaxError(syntaxError('closing', ')'));
2378
+ state.output = utils$1.escapeLast(state.output, '(');
2379
+ decrement('parens');
2380
+ }
2381
+ while (state.braces > 0) {
2382
+ if (opts.strictBrackets === true)
2383
+ throw new SyntaxError(syntaxError('closing', '}'));
2384
+ state.output = utils$1.escapeLast(state.output, '{');
2385
+ decrement('braces');
2386
+ }
2387
+ if (opts.strictSlashes !== true && (prev.type === 'star' || prev.type === 'bracket')) {
2388
+ push({ type: 'maybe_slash', value: '', output: `${SLASH_LITERAL}?` });
2389
+ }
2390
+ // rebuild the output if we had to backtrack at any point
2391
+ if (state.backtrack === true) {
2392
+ state.output = '';
2393
+ for (let token of state.tokens) {
2394
+ state.output += token.output != null ? token.output : token.value;
2395
+ if (token.suffix) {
2396
+ state.output += token.suffix;
2397
+ }
2398
+ }
2399
+ }
2400
+ return state;
2401
+ };
2402
+ /**
2403
+ * Fast paths for creating regular expressions for common glob patterns.
2404
+ * This can significantly speed up processing and has very little downside
2405
+ * impact when none of the fast paths match.
2406
+ */
2407
+ parse$1.fastpaths = (input, options) => {
2408
+ let opts = Object.assign({}, options);
2409
+ let max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
2410
+ let len = input.length;
2411
+ if (len > max) {
2412
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
2413
+ }
2414
+ input = REPLACEMENTS[input] || input;
2415
+ let win32 = utils$1.isWindows(options);
2416
+ // create constants based on platform, for windows or posix
2417
+ const { DOT_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR } = constants$1.globChars(win32);
2418
+ let capture = opts.capture ? '' : '?:';
2419
+ let star = opts.bash === true ? '.*?' : STAR;
2420
+ let nodot = opts.dot ? NO_DOTS : NO_DOT;
2421
+ let slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
2422
+ if (opts.capture) {
2423
+ star = `(${star})`;
2424
+ }
2425
+ const globstar = (opts) => {
2426
+ return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
2427
+ };
2428
+ const create = str => {
2429
+ switch (str) {
2430
+ case '*':
2431
+ return `${nodot}${ONE_CHAR}${star}`;
2432
+ case '.*':
2433
+ return `${DOT_LITERAL}${ONE_CHAR}${star}`;
2434
+ case '*.*':
2435
+ return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
2436
+ case '*/*':
2437
+ return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`;
2438
+ case '**':
2439
+ return nodot + globstar(opts);
2440
+ case '**/*':
2441
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`;
2442
+ case '**/*.*':
2443
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
2444
+ case '**/.*':
2445
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
2446
+ default: {
2447
+ let match = /^(.*?)\.(\w+)$/.exec(str);
2448
+ if (!match)
2449
+ return;
2450
+ let source = create(match[1], options);
2451
+ if (!source)
2452
+ return;
2453
+ return source + DOT_LITERAL + match[2];
2454
+ }
2455
+ }
2456
+ };
2457
+ let output = create(input);
2458
+ if (output && opts.strictSlashes !== true) {
2459
+ output += `${SLASH_LITERAL}?`;
2460
+ }
2461
+ return output;
2462
+ };
2463
+ var parse_1$1 = parse$1;
2464
+
2465
+ /**
2466
+ * Creates a matcher function from one or more glob patterns. The
2467
+ * returned function takes a string to match as its first argument,
2468
+ * and returns true if the string is a match. The returned matcher
2469
+ * function also takes a boolean as the second argument that, when true,
2470
+ * returns an object with additional information.
2471
+ *
2472
+ * ```js
2473
+ * const picomatch = require('picomatch');
2474
+ * // picomatch(glob[, options]);
2475
+ *
2476
+ * const isMatch = picomatch('*.!(*a)');
2477
+ * console.log(isMatch('a.a')); //=> false
2478
+ * console.log(isMatch('a.b')); //=> true
2479
+ * ```
2480
+ * @name picomatch
2481
+ * @param {String|Array} `globs` One or more glob patterns.
2482
+ * @param {Object=} `options`
2483
+ * @return {Function=} Returns a matcher function.
2484
+ * @api public
2485
+ */
2486
+ const picomatch = (glob, options, returnState = false) => {
2487
+ if (Array.isArray(glob)) {
2488
+ let fns = glob.map(input => picomatch(input, options, returnState));
2489
+ return str => {
2490
+ for (let isMatch of fns) {
2491
+ let state = isMatch(str);
2492
+ if (state)
2493
+ return state;
2494
+ }
2495
+ return false;
2496
+ };
2497
+ }
2498
+ if (typeof glob !== 'string' || glob === '') {
2499
+ throw new TypeError('Expected pattern to be a non-empty string');
2500
+ }
2501
+ let opts = options || {};
2502
+ let posix = utils$1.isWindows(options);
2503
+ let regex = picomatch.makeRe(glob, options, false, true);
2504
+ let state = regex.state;
2505
+ delete regex.state;
2506
+ let isIgnored = () => false;
2507
+ if (opts.ignore) {
2508
+ let ignoreOpts = Object.assign({}, options, { ignore: null, onMatch: null, onResult: null });
2509
+ isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
2510
+ }
2511
+ const matcher = (input, returnObject = false) => {
2512
+ let { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
2513
+ let result = { glob, state, regex, posix, input, output, match, isMatch };
2514
+ if (typeof opts.onResult === 'function') {
2515
+ opts.onResult(result);
2516
+ }
2517
+ if (isMatch === false) {
2518
+ result.isMatch = false;
2519
+ return returnObject ? result : false;
2520
+ }
2521
+ if (isIgnored(input)) {
2522
+ if (typeof opts.onIgnore === 'function') {
2523
+ opts.onIgnore(result);
2524
+ }
2525
+ result.isMatch = false;
2526
+ return returnObject ? result : false;
2527
+ }
2528
+ if (typeof opts.onMatch === 'function') {
2529
+ opts.onMatch(result);
2530
+ }
2531
+ return returnObject ? result : true;
2532
+ };
2533
+ if (returnState) {
2534
+ matcher.state = state;
2535
+ }
2536
+ return matcher;
2537
+ };
2538
+ /**
2539
+ * Test `input` with the given `regex`. This is used by the main
2540
+ * `picomatch()` function to test the input string.
2541
+ *
2542
+ * ```js
2543
+ * const picomatch = require('picomatch');
2544
+ * // picomatch.test(input, regex[, options]);
2545
+ *
2546
+ * console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/));
2547
+ * // { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' }
2548
+ * ```
2549
+ * @param {String} `input` String to test.
2550
+ * @param {RegExp} `regex`
2551
+ * @return {Object} Returns an object with matching info.
2552
+ * @api public
2553
+ */
2554
+ picomatch.test = (input, regex, options, { glob, posix } = {}) => {
2555
+ if (typeof input !== 'string') {
2556
+ throw new TypeError('Expected input to be a string');
2557
+ }
2558
+ if (input === '') {
2559
+ return { isMatch: false, output: '' };
2560
+ }
2561
+ let opts = options || {};
2562
+ let format = opts.format || (posix ? utils$1.toPosixSlashes : null);
2563
+ let match = input === glob;
2564
+ let output = (match && format) ? format(input) : input;
2565
+ if (match === false) {
2566
+ output = format ? format(input) : input;
2567
+ match = output === glob;
2568
+ }
2569
+ if (match === false || opts.capture === true) {
2570
+ if (opts.matchBase === true || opts.basename === true) {
2571
+ match = picomatch.matchBase(input, regex, options, posix);
2572
+ }
2573
+ else {
2574
+ match = regex.exec(output);
2575
+ }
2576
+ }
2577
+ return { isMatch: !!match, match, output };
2578
+ };
2579
+ /**
2580
+ * Match the basename of a filepath.
2581
+ *
2582
+ * ```js
2583
+ * const picomatch = require('picomatch');
2584
+ * // picomatch.matchBase(input, glob[, options]);
2585
+ * console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true
2586
+ * ```
2587
+ * @param {String} `input` String to test.
2588
+ * @param {RegExp|String} `glob` Glob pattern or regex created by [.makeRe](#makeRe).
2589
+ * @return {Boolean}
2590
+ * @api public
2591
+ */
2592
+ picomatch.matchBase = (input, glob, options, posix = utils$1.isWindows(options)) => {
2593
+ let regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
2594
+ return regex.test(path__default.basename(input));
2595
+ };
2596
+ /**
2597
+ * Returns true if **any** of the given glob `patterns` match the specified `string`.
2598
+ *
2599
+ * ```js
2600
+ * const picomatch = require('picomatch');
2601
+ * // picomatch.isMatch(string, patterns[, options]);
2602
+ *
2603
+ * console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true
2604
+ * console.log(picomatch.isMatch('a.a', 'b.*')); //=> false
2605
+ * ```
2606
+ * @param {String|Array} str The string to test.
2607
+ * @param {String|Array} patterns One or more glob patterns to use for matching.
2608
+ * @param {Object} [options] See available [options](#options).
2609
+ * @return {Boolean} Returns true if any patterns match `str`
2610
+ * @api public
2611
+ */
2612
+ picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
2613
+ /**
2614
+ * Parse a glob pattern to create the source string for a regular
2615
+ * expression.
2616
+ *
2617
+ * ```js
2618
+ * const picomatch = require('picomatch');
2619
+ * const result = picomatch.parse(glob[, options]);
2620
+ * ```
2621
+ * @param {String} `glob`
2622
+ * @param {Object} `options`
2623
+ * @return {Object} Returns an object with useful properties and output to be used as a regex source string.
2624
+ * @api public
2625
+ */
2626
+ picomatch.parse = (glob, options) => parse_1$1(glob, options);
2627
+ /**
2628
+ * Scan a glob pattern to separate the pattern into segments.
2629
+ *
2630
+ * ```js
2631
+ * const picomatch = require('picomatch');
2632
+ * // picomatch.scan(input[, options]);
2633
+ *
2634
+ * const result = picomatch.scan('!./foo/*.js');
2635
+ * console.log(result);
2636
+ * // { prefix: '!./',
2637
+ * // input: '!./foo/*.js',
2638
+ * // base: 'foo',
2639
+ * // glob: '*.js',
2640
+ * // negated: true,
2641
+ * // isGlob: true }
2642
+ * ```
2643
+ * @param {String} `input` Glob pattern to scan.
2644
+ * @param {Object} `options`
2645
+ * @return {Object} Returns an object with
2646
+ * @api public
2647
+ */
2648
+ picomatch.scan = (input, options) => scan(input, options);
2649
+ /**
2650
+ * Create a regular expression from a glob pattern.
2651
+ *
2652
+ * ```js
2653
+ * const picomatch = require('picomatch');
2654
+ * // picomatch.makeRe(input[, options]);
2655
+ *
2656
+ * console.log(picomatch.makeRe('*.js'));
2657
+ * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
2658
+ * ```
2659
+ * @param {String} `input` A glob pattern to convert to regex.
2660
+ * @param {Object} `options`
2661
+ * @return {RegExp} Returns a regex created from the given pattern.
2662
+ * @api public
2663
+ */
2664
+ picomatch.makeRe = (input, options, returnOutput = false, returnState = false) => {
2665
+ if (!input || typeof input !== 'string') {
2666
+ throw new TypeError('Expected a non-empty string');
2667
+ }
2668
+ let opts = options || {};
2669
+ let prepend = opts.contains ? '' : '^';
2670
+ let append = opts.contains ? '' : '$';
2671
+ let state = { negated: false, fastpaths: true };
2672
+ let prefix = '';
2673
+ let output;
2674
+ if (input.startsWith('./')) {
2675
+ input = input.slice(2);
2676
+ prefix = state.prefix = './';
2677
+ }
2678
+ if (opts.fastpaths !== false && (input[0] === '.' || input[0] === '*')) {
2679
+ output = parse_1$1.fastpaths(input, options);
2680
+ }
2681
+ if (output === void 0) {
2682
+ state = picomatch.parse(input, options);
2683
+ state.prefix = prefix + (state.prefix || '');
2684
+ output = state.output;
2685
+ }
2686
+ if (returnOutput === true) {
2687
+ return output;
2688
+ }
2689
+ let source = `${prepend}(?:${output})${append}`;
2690
+ if (state && state.negated === true) {
2691
+ source = `^(?!${source}).*$`;
2692
+ }
2693
+ let regex = picomatch.toRegex(source, options);
2694
+ if (returnState === true) {
2695
+ regex.state = state;
2696
+ }
2697
+ return regex;
2698
+ };
2699
+ /**
2700
+ * Create a regular expression from the given regex source string.
2701
+ *
2702
+ * ```js
2703
+ * const picomatch = require('picomatch');
2704
+ * // picomatch.toRegex(source[, options]);
2705
+ *
2706
+ * const { output } = picomatch.parse('*.js');
2707
+ * console.log(picomatch.toRegex(output));
2708
+ * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
2709
+ * ```
2710
+ * @param {String} `source` Regular expression source string.
2711
+ * @param {Object} `options`
2712
+ * @return {RegExp}
2713
+ * @api public
2714
+ */
2715
+ picomatch.toRegex = (source, options) => {
2716
+ try {
2717
+ let opts = options || {};
2718
+ return new RegExp(source, opts.flags || (opts.nocase ? 'i' : ''));
2719
+ }
2720
+ catch (err) {
2721
+ if (options && options.debug === true)
2722
+ throw err;
2723
+ return /$^/;
2724
+ }
2725
+ };
2726
+ /**
2727
+ * Picomatch constants.
2728
+ * @return {Object}
2729
+ */
2730
+ picomatch.constants = constants$1;
2731
+ /**
2732
+ * Expose "picomatch"
2733
+ */
2734
+ var picomatch_1 = picomatch;
2735
+
2736
+ var picomatch$1 = picomatch_1;
2737
+
2738
+ const isEmptyString = val => typeof val === 'string' && (val === '' || val === './');
2739
+ /**
2740
+ * Returns an array of strings that match one or more glob patterns.
2741
+ *
2742
+ * ```js
2743
+ * const mm = require('micromatch');
2744
+ * // mm(list, patterns[, options]);
2745
+ *
2746
+ * console.log(mm(['a.js', 'a.txt'], ['*.js']));
2747
+ * //=> [ 'a.js' ]
2748
+ * ```
2749
+ * @param {String|Array<string>} list List of strings to match.
2750
+ * @param {String|Array<string>} patterns One or more glob patterns to use for matching.
2751
+ * @param {Object} options See available [options](#options)
2752
+ * @return {Array} Returns an array of matches
2753
+ * @summary false
2754
+ * @api public
2755
+ */
2756
+ const micromatch = (list, patterns, options) => {
2757
+ patterns = [].concat(patterns);
2758
+ list = [].concat(list);
2759
+ let omit = new Set();
2760
+ let keep = new Set();
2761
+ let items = new Set();
2762
+ let negatives = 0;
2763
+ let onResult = state => {
2764
+ items.add(state.output);
2765
+ if (options && options.onResult) {
2766
+ options.onResult(state);
2767
+ }
2768
+ };
2769
+ for (let i = 0; i < patterns.length; i++) {
2770
+ let isMatch = picomatch$1(String(patterns[i]), Object.assign({}, options, { onResult }), true);
2771
+ let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
2772
+ if (negated)
2773
+ negatives++;
2774
+ for (let item of list) {
2775
+ let matched = isMatch(item, true);
2776
+ let match = negated ? !matched.isMatch : matched.isMatch;
2777
+ if (!match)
2778
+ continue;
2779
+ if (negated) {
2780
+ omit.add(matched.output);
2781
+ }
2782
+ else {
2783
+ omit.delete(matched.output);
2784
+ keep.add(matched.output);
2785
+ }
2786
+ }
2787
+ }
2788
+ let result = negatives === patterns.length ? [...items] : [...keep];
2789
+ let matches = result.filter(item => !omit.has(item));
2790
+ if (options && matches.length === 0) {
2791
+ if (options.failglob === true) {
2792
+ throw new Error(`No matches found for "${patterns.join(', ')}"`);
2793
+ }
2794
+ if (options.nonull === true || options.nullglob === true) {
2795
+ return options.unescape ? patterns.map(p => p.replace(/\\/g, '')) : patterns;
2796
+ }
2797
+ }
2798
+ return matches;
2799
+ };
2800
+ /**
2801
+ * Backwards compatibility
2802
+ */
2803
+ micromatch.match = micromatch;
2804
+ /**
2805
+ * Returns a matcher function from the given glob `pattern` and `options`.
2806
+ * The returned function takes a string to match as its only argument and returns
2807
+ * true if the string is a match.
2808
+ *
2809
+ * ```js
2810
+ * const mm = require('micromatch');
2811
+ * // mm.matcher(pattern[, options]);
2812
+ *
2813
+ * const isMatch = mm.matcher('*.!(*a)');
2814
+ * console.log(isMatch('a.a')); //=> false
2815
+ * console.log(isMatch('a.b')); //=> true
2816
+ * ```
2817
+ * @param {String} `pattern` Glob pattern
2818
+ * @param {Object} `options`
2819
+ * @return {Function} Returns a matcher function.
2820
+ * @api public
2821
+ */
2822
+ micromatch.matcher = (pattern, options) => picomatch$1(pattern, options);
2823
+ /**
2824
+ * Returns true if **any** of the given glob `patterns` match the specified `string`.
2825
+ *
2826
+ * ```js
2827
+ * const mm = require('micromatch');
2828
+ * // mm.isMatch(string, patterns[, options]);
2829
+ *
2830
+ * console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
2831
+ * console.log(mm.isMatch('a.a', 'b.*')); //=> false
2832
+ * ```
2833
+ * @param {String} str The string to test.
2834
+ * @param {String|Array} patterns One or more glob patterns to use for matching.
2835
+ * @param {Object} [options] See available [options](#options).
2836
+ * @return {Boolean} Returns true if any patterns match `str`
2837
+ * @api public
2838
+ */
2839
+ micromatch.isMatch = (str, patterns, options) => picomatch$1(patterns, options)(str);
2840
+ /**
2841
+ * Backwards compatibility
2842
+ */
2843
+ micromatch.any = micromatch.isMatch;
2844
+ /**
2845
+ * Returns a list of strings that _**do not match any**_ of the given `patterns`.
2846
+ *
2847
+ * ```js
2848
+ * const mm = require('micromatch');
2849
+ * // mm.not(list, patterns[, options]);
2850
+ *
2851
+ * console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a'));
2852
+ * //=> ['b.b', 'c.c']
2853
+ * ```
2854
+ * @param {Array} `list` Array of strings to match.
2855
+ * @param {String|Array} `patterns` One or more glob pattern to use for matching.
2856
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
2857
+ * @return {Array} Returns an array of strings that **do not match** the given patterns.
2858
+ * @api public
2859
+ */
2860
+ micromatch.not = (list, patterns, options = {}) => {
2861
+ patterns = [].concat(patterns).map(String);
2862
+ let result = new Set();
2863
+ let items = [];
2864
+ let onResult = state => {
2865
+ if (options.onResult)
2866
+ options.onResult(state);
2867
+ items.push(state.output);
2868
+ };
2869
+ let matches = micromatch(list, patterns, Object.assign({}, options, { onResult }));
2870
+ for (let item of items) {
2871
+ if (!matches.includes(item)) {
2872
+ result.add(item);
2873
+ }
2874
+ }
2875
+ return [...result];
2876
+ };
2877
+ /**
2878
+ * Returns true if the given `string` contains the given pattern. Similar
2879
+ * to [.isMatch](#isMatch) but the pattern can match any part of the string.
2880
+ *
2881
+ * ```js
2882
+ * var mm = require('micromatch');
2883
+ * // mm.contains(string, pattern[, options]);
2884
+ *
2885
+ * console.log(mm.contains('aa/bb/cc', '*b'));
2886
+ * //=> true
2887
+ * console.log(mm.contains('aa/bb/cc', '*d'));
2888
+ * //=> false
2889
+ * ```
2890
+ * @param {String} `str` The string to match.
2891
+ * @param {String|Array} `patterns` Glob pattern to use for matching.
2892
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
2893
+ * @return {Boolean} Returns true if the patter matches any part of `str`.
2894
+ * @api public
2895
+ */
2896
+ micromatch.contains = (str, pattern, options) => {
2897
+ if (typeof str !== 'string') {
2898
+ throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
2899
+ }
2900
+ if (Array.isArray(pattern)) {
2901
+ return pattern.some(p => micromatch.contains(str, p, options));
2902
+ }
2903
+ if (typeof pattern === 'string') {
2904
+ if (isEmptyString(str) || isEmptyString(pattern)) {
2905
+ return false;
2906
+ }
2907
+ if (str.includes(pattern) || (str.startsWith('./') && str.slice(2).includes(pattern))) {
2908
+ return true;
2909
+ }
2910
+ }
2911
+ return micromatch.isMatch(str, pattern, Object.assign({}, options, { contains: true }));
2912
+ };
2913
+ /**
2914
+ * Filter the keys of the given object with the given `glob` pattern
2915
+ * and `options`. Does not attempt to match nested keys. If you need this feature,
2916
+ * use [glob-object][] instead.
2917
+ *
2918
+ * ```js
2919
+ * const mm = require('micromatch');
2920
+ * // mm.matchKeys(object, patterns[, options]);
2921
+ *
2922
+ * const obj = { aa: 'a', ab: 'b', ac: 'c' };
2923
+ * console.log(mm.matchKeys(obj, '*b'));
2924
+ * //=> { ab: 'b' }
2925
+ * ```
2926
+ * @param {Object} `object` The object with keys to filter.
2927
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
2928
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
2929
+ * @return {Object} Returns an object with only keys that match the given patterns.
2930
+ * @api public
2931
+ */
2932
+ micromatch.matchKeys = (obj, patterns, options) => {
2933
+ if (!utils$1.isObject(obj)) {
2934
+ throw new TypeError('Expected the first argument to be an object');
2935
+ }
2936
+ let keys = micromatch(Object.keys(obj), patterns, options);
2937
+ let res = {};
2938
+ for (let key of keys)
2939
+ res[key] = obj[key];
2940
+ return res;
2941
+ };
2942
+ /**
2943
+ * Returns true if some of the strings in the given `list` match any of the given glob `patterns`.
2944
+ *
2945
+ * ```js
2946
+ * const mm = require('micromatch');
2947
+ * // mm.some(list, patterns[, options]);
2948
+ *
2949
+ * console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
2950
+ * // true
2951
+ * console.log(mm.some(['foo.js'], ['*.js', '!foo.js']));
2952
+ * // false
2953
+ * ```
2954
+ * @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
2955
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
2956
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
2957
+ * @return {Boolean} Returns true if any patterns match `str`
2958
+ * @api public
2959
+ */
2960
+ micromatch.some = (list, patterns, options) => {
2961
+ let items = [].concat(list);
2962
+ for (let pattern of [].concat(patterns)) {
2963
+ let isMatch = picomatch$1(String(pattern), options);
2964
+ if (items.some(item => isMatch(item))) {
2965
+ return true;
2966
+ }
2967
+ }
2968
+ return false;
2969
+ };
2970
+ /**
2971
+ * Returns true if every string in the given `list` matches
2972
+ * any of the given glob `patterns`.
2973
+ *
2974
+ * ```js
2975
+ * const mm = require('micromatch');
2976
+ * // mm.every(list, patterns[, options]);
2977
+ *
2978
+ * console.log(mm.every('foo.js', ['foo.js']));
2979
+ * // true
2980
+ * console.log(mm.every(['foo.js', 'bar.js'], ['*.js']));
2981
+ * // true
2982
+ * console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
2983
+ * // false
2984
+ * console.log(mm.every(['foo.js'], ['*.js', '!foo.js']));
2985
+ * // false
2986
+ * ```
2987
+ * @param {String|Array} `list` The string or array of strings to test.
2988
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
2989
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
2990
+ * @return {Boolean} Returns true if any patterns match `str`
2991
+ * @api public
2992
+ */
2993
+ micromatch.every = (list, patterns, options) => {
2994
+ let items = [].concat(list);
2995
+ for (let pattern of [].concat(patterns)) {
2996
+ let isMatch = picomatch$1(String(pattern), options);
2997
+ if (!items.every(item => isMatch(item))) {
2998
+ return false;
2999
+ }
3000
+ }
3001
+ return true;
3002
+ };
3003
+ /**
3004
+ * Returns true if **all** of the given `patterns` match
3005
+ * the specified string.
3006
+ *
3007
+ * ```js
3008
+ * const mm = require('micromatch');
3009
+ * // mm.all(string, patterns[, options]);
3010
+ *
3011
+ * console.log(mm.all('foo.js', ['foo.js']));
3012
+ * // true
3013
+ *
3014
+ * console.log(mm.all('foo.js', ['*.js', '!foo.js']));
3015
+ * // false
3016
+ *
3017
+ * console.log(mm.all('foo.js', ['*.js', 'foo.js']));
3018
+ * // true
3019
+ *
3020
+ * console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js']));
3021
+ * // true
3022
+ * ```
3023
+ * @param {String|Array} `str` The string to test.
3024
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
3025
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
3026
+ * @return {Boolean} Returns true if any patterns match `str`
3027
+ * @api public
3028
+ */
3029
+ micromatch.all = (str, patterns, options) => {
3030
+ if (typeof str !== 'string') {
3031
+ throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
3032
+ }
3033
+ return [].concat(patterns).every(p => picomatch$1(p, options)(str));
3034
+ };
3035
+ /**
3036
+ * Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
3037
+ *
3038
+ * ```js
3039
+ * const mm = require('micromatch');
3040
+ * // mm.capture(pattern, string[, options]);
3041
+ *
3042
+ * console.log(mm.capture('test/*.js', 'test/foo.js'));
3043
+ * //=> ['foo']
3044
+ * console.log(mm.capture('test/*.js', 'foo/bar.css'));
3045
+ * //=> null
3046
+ * ```
3047
+ * @param {String} `glob` Glob pattern to use for matching.
3048
+ * @param {String} `input` String to match
3049
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
3050
+ * @return {Boolean} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
3051
+ * @api public
3052
+ */
3053
+ micromatch.capture = (glob, input, options) => {
3054
+ let posix = utils$1.isWindows(options);
3055
+ let regex = picomatch$1.makeRe(String(glob), Object.assign({}, options, { capture: true }));
3056
+ let match = regex.exec(posix ? utils$1.toPosixSlashes(input) : input);
3057
+ if (match) {
3058
+ return match.slice(1).map(v => v === void 0 ? '' : v);
3059
+ }
3060
+ };
3061
+ /**
3062
+ * Create a regular expression from the given glob `pattern`.
3063
+ *
3064
+ * ```js
3065
+ * const mm = require('micromatch');
3066
+ * // mm.makeRe(pattern[, options]);
3067
+ *
3068
+ * console.log(mm.makeRe('*.js'));
3069
+ * //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
3070
+ * ```
3071
+ * @param {String} `pattern` A glob pattern to convert to regex.
3072
+ * @param {Object} `options`
3073
+ * @return {RegExp} Returns a regex created from the given pattern.
3074
+ * @api public
3075
+ */
3076
+ micromatch.makeRe = (...args) => picomatch$1.makeRe(...args);
3077
+ /**
3078
+ * Scan a glob pattern to separate the pattern into segments. Used
3079
+ * by the [split](#split) method.
3080
+ *
3081
+ * ```js
3082
+ * const mm = require('micromatch');
3083
+ * const state = mm.scan(pattern[, options]);
3084
+ * ```
3085
+ * @param {String} `pattern`
3086
+ * @param {Object} `options`
3087
+ * @return {Object} Returns an object with
3088
+ * @api public
3089
+ */
3090
+ micromatch.scan = (...args) => picomatch$1.scan(...args);
3091
+ /**
3092
+ * Parse a glob pattern to create the source string for a regular
3093
+ * expression.
3094
+ *
3095
+ * ```js
3096
+ * const mm = require('micromatch');
3097
+ * const state = mm(pattern[, options]);
3098
+ * ```
3099
+ * @param {String} `glob`
3100
+ * @param {Object} `options`
3101
+ * @return {Object} Returns an object with useful properties and output to be used as regex source string.
3102
+ * @api public
3103
+ */
3104
+ micromatch.parse = (patterns, options) => {
3105
+ let res = [];
3106
+ for (let pattern of [].concat(patterns || [])) {
3107
+ for (let str of braces_1(String(pattern), options)) {
3108
+ res.push(picomatch$1.parse(str, options));
3109
+ }
3110
+ }
3111
+ return res;
3112
+ };
3113
+ /**
3114
+ * Process the given brace `pattern`.
3115
+ *
3116
+ * ```js
3117
+ * const { braces } = require('micromatch');
3118
+ * console.log(braces('foo/{a,b,c}/bar'));
3119
+ * //=> [ 'foo/(a|b|c)/bar' ]
3120
+ *
3121
+ * console.log(braces('foo/{a,b,c}/bar', { expand: true }));
3122
+ * //=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ]
3123
+ * ```
3124
+ * @param {String} `pattern` String with brace pattern to process.
3125
+ * @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
3126
+ * @return {Array}
3127
+ * @api public
3128
+ */
3129
+ micromatch.braces = (pattern, options) => {
3130
+ if (typeof pattern !== 'string')
3131
+ throw new TypeError('Expected a string');
3132
+ if ((options && options.nobrace === true) || !/\{.*\}/.test(pattern)) {
3133
+ return [pattern];
3134
+ }
3135
+ return braces_1(pattern, options);
3136
+ };
3137
+ /**
3138
+ * Expand braces
3139
+ */
3140
+ micromatch.braceExpand = (pattern, options) => {
3141
+ if (typeof pattern !== 'string')
3142
+ throw new TypeError('Expected a string');
3143
+ return micromatch.braces(pattern, Object.assign({}, options, { expand: true }));
3144
+ };
3145
+ /**
3146
+ * Expose micromatch
3147
+ */
3148
+ var micromatch_1 = micromatch;
3149
+
3150
+ function ensureArray(thing) {
3151
+ if (Array.isArray(thing))
3152
+ return thing;
3153
+ if (thing == undefined)
3154
+ return [];
3155
+ return [thing];
3156
+ }
3157
+
3158
+ function getMatcherString(id, resolutionBase) {
3159
+ if (resolutionBase === false) {
3160
+ return id;
3161
+ }
3162
+ return path.resolve(...(typeof resolutionBase === 'string' ? [resolutionBase, id] : [id]));
3163
+ }
3164
+ const createFilter = function createFilter(include, exclude, options) {
3165
+ const resolutionBase = options && options.resolve;
3166
+ const getMatcher = (id) => {
3167
+ return id instanceof RegExp
3168
+ ? id
3169
+ : {
3170
+ test: micromatch_1.matcher(getMatcherString(id, resolutionBase)
3171
+ .split(path.sep)
3172
+ .join('/'), { dot: true })
3173
+ };
3174
+ };
3175
+ const includeMatchers = ensureArray(include).map(getMatcher);
3176
+ const excludeMatchers = ensureArray(exclude).map(getMatcher);
3177
+ return function (id) {
3178
+ if (typeof id !== 'string')
3179
+ return false;
3180
+ if (/\0/.test(id))
3181
+ return false;
3182
+ id = id.split(path.sep).join('/');
3183
+ for (let i = 0; i < excludeMatchers.length; ++i) {
3184
+ const matcher = excludeMatchers[i];
3185
+ if (matcher.test(id))
3186
+ return false;
3187
+ }
3188
+ for (let i = 0; i < includeMatchers.length; ++i) {
3189
+ const matcher = includeMatchers[i];
3190
+ if (matcher.test(id))
3191
+ return true;
3192
+ }
3193
+ return !includeMatchers.length;
3194
+ };
3195
+ };
3196
+
3197
+ const reservedWords = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public';
3198
+ const builtins = 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl';
3199
+ const forbiddenIdentifiers = new Set(`${reservedWords} ${builtins}`.split(' '));
3200
+ forbiddenIdentifiers.add('');
3201
+ const makeLegalIdentifier = function makeLegalIdentifier(str) {
3202
+ str = str.replace(/-(\w)/g, (_, letter) => letter.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g, '_');
3203
+ if (/\d/.test(str[0]) || forbiddenIdentifiers.has(str)) {
3204
+ str = `_${str}`;
3205
+ }
3206
+ return str || '_';
3207
+ };
3208
+
3209
+ function stringify$2(obj) {
3210
+ return (JSON.stringify(obj) || 'undefined').replace(/[\u2028\u2029]/g, char => `\\u${('000' + char.charCodeAt(0).toString(16)).slice(-4)}`);
3211
+ }
3212
+ function serializeArray(arr, indent, baseIndent) {
3213
+ let output = '[';
3214
+ const separator = indent ? '\n' + baseIndent + indent : '';
3215
+ for (let i = 0; i < arr.length; i++) {
3216
+ const key = arr[i];
3217
+ output += `${i > 0 ? ',' : ''}${separator}${serialize(key, indent, baseIndent + indent)}`;
3218
+ }
3219
+ return output + `${indent ? '\n' + baseIndent : ''}]`;
3220
+ }
3221
+ function serializeObject(obj, indent, baseIndent) {
3222
+ let output = '{';
3223
+ const separator = indent ? '\n' + baseIndent + indent : '';
3224
+ const keys = Object.keys(obj);
3225
+ for (let i = 0; i < keys.length; i++) {
3226
+ const key = keys[i];
3227
+ const stringKey = makeLegalIdentifier(key) === key ? key : stringify$2(key);
3228
+ output += `${i > 0 ? ',' : ''}${separator}${stringKey}:${indent ? ' ' : ''}${serialize(obj[key], indent, baseIndent + indent)}`;
3229
+ }
3230
+ return output + `${indent ? '\n' + baseIndent : ''}}`;
3231
+ }
3232
+ function serialize(obj, indent, baseIndent) {
3233
+ if (obj === Infinity)
3234
+ return 'Infinity';
3235
+ if (obj === -Infinity)
3236
+ return '-Infinity';
3237
+ if (obj === 0 && 1 / obj === -Infinity)
3238
+ return '-0';
3239
+ if (obj instanceof Date)
3240
+ return 'new Date(' + obj.getTime() + ')';
3241
+ if (obj instanceof RegExp)
3242
+ return obj.toString();
3243
+ if (obj !== obj)
3244
+ return 'NaN';
3245
+ if (Array.isArray(obj))
3246
+ return serializeArray(obj, indent, baseIndent);
3247
+ if (obj === null)
3248
+ return 'null';
3249
+ if (typeof obj === 'object')
3250
+ return serializeObject(obj, indent, baseIndent);
3251
+ return stringify$2(obj);
3252
+ }
3253
+ const dataToEsm = function dataToEsm(data, options = {}) {
3254
+ const t = options.compact ? '' : 'indent' in options ? options.indent : '\t';
3255
+ const _ = options.compact ? '' : ' ';
3256
+ const n = options.compact ? '' : '\n';
3257
+ const declarationType = options.preferConst ? 'const' : 'var';
3258
+ if (options.namedExports === false ||
3259
+ typeof data !== 'object' ||
3260
+ Array.isArray(data) ||
3261
+ data instanceof Date ||
3262
+ data instanceof RegExp ||
3263
+ data === null) {
3264
+ const code = serialize(data, options.compact ? null : t, '');
3265
+ const __ = _ || (/^[{[\-\/]/.test(code) ? '' : ' ');
3266
+ return `export default${__}${code};`;
3267
+ }
3268
+ let namedExportCode = '';
3269
+ const defaultExportRows = [];
3270
+ const dataKeys = Object.keys(data);
3271
+ for (let i = 0; i < dataKeys.length; i++) {
3272
+ const key = dataKeys[i];
3273
+ if (key === makeLegalIdentifier(key)) {
3274
+ if (options.objectShorthand)
3275
+ defaultExportRows.push(key);
3276
+ else
3277
+ defaultExportRows.push(`${key}:${_}${key}`);
3278
+ namedExportCode += `export ${declarationType} ${key}${_}=${_}${serialize(data[key], options.compact ? null : t, '')};${n}`;
3279
+ }
3280
+ else {
3281
+ defaultExportRows.push(`${stringify$2(key)}:${_}${serialize(data[key], options.compact ? null : t, '')}`);
3282
+ }
3283
+ }
3284
+ return (namedExportCode + `export default${_}{${n}${t}${defaultExportRows.join(`,${n}${t}`)}${n}};${n}`);
3285
+ };
3286
+
3287
+ exports.addExtension = addExtension;
3288
+ exports.attachScopes = attachScopes;
3289
+ exports.createFilter = createFilter;
3290
+ exports.dataToEsm = dataToEsm;
3291
+ exports.extractAssignedNames = extractAssignedNames;
3292
+ exports.makeLegalIdentifier = makeLegalIdentifier;