@mintlify/cli 4.0.1812 → 4.1.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 (274) hide show
  1. package/dist/assets/export-scripts/README.classic.md +15 -0
  2. package/dist/assets/export-scripts/README.md +14 -0
  3. package/dist/assets/export-scripts/serve.js +114 -0
  4. package/dist/assets/export-scripts/start-docs.bat +10 -0
  5. package/dist/assets/export-scripts/start-docs.sh +9 -0
  6. package/dist/assets/og/Inter-Bold.ttf +0 -0
  7. package/dist/assets/og/Inter-Medium.ttf +0 -0
  8. package/dist/assets/og/Inter-Regular.ttf +0 -0
  9. package/dist/assets/og/Inter-SemiBold.ttf +0 -0
  10. package/dist/assets/og/PaperMono-Regular.ttf +0 -0
  11. package/dist/assets/og/index_bg.wasm +0 -0
  12. package/dist/assets/openChrome.applescript +94 -0
  13. package/dist/assets/socket.io/socket.io.esm.min.js +7 -0
  14. package/dist/assets/socket.io/socket.io.esm.min.js.map +1 -0
  15. package/dist/assets/socket.io/socket.io.js +4907 -0
  16. package/dist/assets/socket.io/socket.io.js.map +1 -0
  17. package/dist/assets/socket.io/socket.io.min.js +7 -0
  18. package/dist/assets/socket.io/socket.io.min.js.map +1 -0
  19. package/dist/assets/socket.io/socket.io.msgpack.min.js +7 -0
  20. package/dist/assets/socket.io/socket.io.msgpack.min.js.map +1 -0
  21. package/dist/assets/xdg-open +1066 -0
  22. package/dist/assets/yargs-locales/be.json +46 -0
  23. package/dist/assets/yargs-locales/cs.json +51 -0
  24. package/dist/assets/yargs-locales/de.json +46 -0
  25. package/dist/assets/yargs-locales/en.json +55 -0
  26. package/dist/assets/yargs-locales/es.json +46 -0
  27. package/dist/assets/yargs-locales/fi.json +49 -0
  28. package/dist/assets/yargs-locales/fr.json +53 -0
  29. package/dist/assets/yargs-locales/hi.json +49 -0
  30. package/dist/assets/yargs-locales/hu.json +46 -0
  31. package/dist/assets/yargs-locales/id.json +50 -0
  32. package/dist/assets/yargs-locales/it.json +46 -0
  33. package/dist/assets/yargs-locales/ja.json +51 -0
  34. package/dist/assets/yargs-locales/ko.json +49 -0
  35. package/dist/assets/yargs-locales/nb.json +44 -0
  36. package/dist/assets/yargs-locales/nl.json +49 -0
  37. package/dist/assets/yargs-locales/nn.json +44 -0
  38. package/dist/assets/yargs-locales/pirate.json +13 -0
  39. package/dist/assets/yargs-locales/pl.json +49 -0
  40. package/dist/assets/yargs-locales/pt.json +45 -0
  41. package/dist/assets/yargs-locales/pt_BR.json +48 -0
  42. package/dist/assets/yargs-locales/ru.json +51 -0
  43. package/dist/assets/yargs-locales/th.json +46 -0
  44. package/dist/assets/yargs-locales/tr.json +48 -0
  45. package/dist/assets/yargs-locales/uk_UA.json +51 -0
  46. package/dist/assets/yargs-locales/uz.json +52 -0
  47. package/dist/assets/yargs-locales/zh_CN.json +48 -0
  48. package/dist/assets/yargs-locales/zh_TW.json +51 -0
  49. package/dist/converter-d8O3xkdU.js +102 -0
  50. package/dist/devtools-CGNZQKFV.js +24 -0
  51. package/dist/index.js +8 -0
  52. package/dist/rolldown-runtime-CEAe2Uac.js +7 -0
  53. package/dist/schemas-CBsmCNpK.js +372 -0
  54. package/dist/start.js +2310 -0
  55. package/package.json +43 -36
  56. package/.oxlintrc.json +0 -5
  57. package/.prettierignore +0 -2
  58. package/.turbo/turbo-build.log +0 -1
  59. package/CONTRIBUTING.md +0 -45
  60. package/__test__/agent-auth.test.ts +0 -114
  61. package/__test__/agent-claim.test.ts +0 -164
  62. package/__test__/agent-credentials.test.ts +0 -149
  63. package/__test__/agent-deployment.test.ts +0 -106
  64. package/__test__/agent-setup-config.test.ts +0 -324
  65. package/__test__/agent-setup.test.ts +0 -207
  66. package/__test__/agent.test.ts +0 -64
  67. package/__test__/analytics/client.test.ts +0 -180
  68. package/__test__/analytics/dates.test.ts +0 -12
  69. package/__test__/analytics/filters.test.ts +0 -116
  70. package/__test__/analytics/format.test.ts +0 -137
  71. package/__test__/authenticatedFetch.test.ts +0 -182
  72. package/__test__/brokenLinks.test.ts +0 -283
  73. package/__test__/checkPort.test.ts +0 -92
  74. package/__test__/deploy-github-actions.test.ts +0 -202
  75. package/__test__/deploy-github-setup.test.ts +0 -240
  76. package/__test__/deploy-instructions.test.ts +0 -155
  77. package/__test__/deploy.test.ts +0 -202
  78. package/__test__/feedback.test.ts +0 -34
  79. package/__test__/foreignSyntax.test.ts +0 -73
  80. package/__test__/format.test.ts +0 -72
  81. package/__test__/helpers.test.ts +0 -52
  82. package/__test__/init.test.ts +0 -119
  83. package/__test__/instructions.test.ts +0 -53
  84. package/__test__/keyring.test.ts +0 -82
  85. package/__test__/mdxAccessibility.test.ts +0 -81
  86. package/__test__/migrate.test.ts +0 -186
  87. package/__test__/openApiCheck.test.ts +0 -185
  88. package/__test__/pathValidation.test.ts +0 -25
  89. package/__test__/resolveFiles.test.ts +0 -70
  90. package/__test__/sessionId.test.ts +0 -46
  91. package/__test__/signup.test.ts +0 -36
  92. package/__test__/update.test.ts +0 -117
  93. package/__test__/utils.ts +0 -25
  94. package/__test__/validateCommand.test.ts +0 -647
  95. package/__test__/validateEngine.test.ts +0 -245
  96. package/__test__/validateRules.test.ts +0 -1275
  97. package/__test__/welcome.test.ts +0 -15
  98. package/__test__/workflows/client.test.ts +0 -126
  99. package/bin/accessibility.js +0 -111
  100. package/bin/accessibilityCheck.js +0 -82
  101. package/bin/addDomain.js +0 -130
  102. package/bin/agent-auth.js +0 -104
  103. package/bin/agent-claim.js +0 -97
  104. package/bin/agent-credentials.js +0 -124
  105. package/bin/agent-deployment.js +0 -96
  106. package/bin/agent-http.js +0 -45
  107. package/bin/agent-setup-config.js +0 -141
  108. package/bin/agent-setup.js +0 -146
  109. package/bin/agent.js +0 -42
  110. package/bin/analytics/client.js +0 -60
  111. package/bin/analytics/dates.js +0 -6
  112. package/bin/analytics/filters.js +0 -27
  113. package/bin/analytics/format.js +0 -13
  114. package/bin/analytics/index.js +0 -496
  115. package/bin/analytics/output.js +0 -75
  116. package/bin/analytics/types.js +0 -1
  117. package/bin/authenticatedFetch.js +0 -46
  118. package/bin/brokenLinks.js +0 -122
  119. package/bin/callbackServer.js +0 -65
  120. package/bin/cli.js +0 -813
  121. package/bin/comingSoon.js +0 -26
  122. package/bin/config.js +0 -78
  123. package/bin/constants.js +0 -16
  124. package/bin/deploy-base.js +0 -20
  125. package/bin/deploy-github-actions.js +0 -102
  126. package/bin/deploy-github-setup.js +0 -165
  127. package/bin/deploy-instructions.js +0 -71
  128. package/bin/deploy.js +0 -123
  129. package/bin/feedback.js +0 -36
  130. package/bin/format.js +0 -121
  131. package/bin/helpers.js +0 -238
  132. package/bin/idToken.js +0 -14
  133. package/bin/index.js +0 -102
  134. package/bin/init.js +0 -182
  135. package/bin/instructions.js +0 -101
  136. package/bin/keyring.js +0 -78
  137. package/bin/login.js +0 -123
  138. package/bin/logout.js +0 -18
  139. package/bin/mdxAccessibility.js +0 -113
  140. package/bin/mdxLinter.js +0 -55
  141. package/bin/middlewares/subdomainMiddleware.js +0 -28
  142. package/bin/middlewares/telemetryMiddleware.js +0 -61
  143. package/bin/migrate.js +0 -54
  144. package/bin/og.js +0 -145
  145. package/bin/openApiCheck.js +0 -99
  146. package/bin/resolveFiles.js +0 -114
  147. package/bin/score/client.js +0 -40
  148. package/bin/score/index.js +0 -211
  149. package/bin/score/types.js +0 -1
  150. package/bin/signup.js +0 -118
  151. package/bin/start.js +0 -36
  152. package/bin/status.js +0 -106
  153. package/bin/telemetry/client.js +0 -53
  154. package/bin/telemetry/distinctId.js +0 -68
  155. package/bin/telemetry/sessionId.js +0 -36
  156. package/bin/telemetry/track.js +0 -149
  157. package/bin/templates.js +0 -127
  158. package/bin/tokenRefresh.js +0 -50
  159. package/bin/tsconfig.build.tsbuildinfo +0 -1
  160. package/bin/update.js +0 -65
  161. package/bin/validate/command.js +0 -127
  162. package/bin/validate/engine.js +0 -154
  163. package/bin/validate/files.js +0 -163
  164. package/bin/validate/mdx.js +0 -238
  165. package/bin/validate/output.js +0 -44
  166. package/bin/validate/report.js +0 -11
  167. package/bin/validate/rules/build.js +0 -102
  168. package/bin/validate/rules/content/duplicateH1.js +0 -57
  169. package/bin/validate/rules/content/foreignSyntax.js +0 -120
  170. package/bin/validate/rules/content/katex.js +0 -34
  171. package/bin/validate/rules/content/missingSnippet.js +0 -34
  172. package/bin/validate/rules/content/undefinedVariable.js +0 -13
  173. package/bin/validate/rules/content/unknownComponent.js +0 -121
  174. package/bin/validate/rules/content/voidTags.js +0 -38
  175. package/bin/validate/rules/index.js +0 -21
  176. package/bin/validate/rules/openapi.js +0 -50
  177. package/bin/validate/rules/parseError.js +0 -7
  178. package/bin/validate/site.js +0 -57
  179. package/bin/validate/types.js +0 -1
  180. package/bin/vendor/converter.js +0 -30882
  181. package/bin/welcome.js +0 -108
  182. package/bin/workflows/client.js +0 -34
  183. package/bin/workflows/index.js +0 -269
  184. package/bin/workflows/types.js +0 -11
  185. package/scripts/bundle-converter.mjs +0 -26
  186. package/scripts/generate-logo.mjs +0 -79
  187. package/src/accessibility.ts +0 -180
  188. package/src/accessibilityCheck.tsx +0 -150
  189. package/src/addDomain.tsx +0 -206
  190. package/src/agent-auth.ts +0 -119
  191. package/src/agent-claim.ts +0 -124
  192. package/src/agent-credentials.ts +0 -104
  193. package/src/agent-deployment.ts +0 -116
  194. package/src/agent-http.ts +0 -34
  195. package/src/agent-setup-config.ts +0 -144
  196. package/src/agent-setup.ts +0 -165
  197. package/src/agent.ts +0 -56
  198. package/src/analytics/client.ts +0 -153
  199. package/src/analytics/dates.ts +0 -6
  200. package/src/analytics/filters.ts +0 -50
  201. package/src/analytics/format.ts +0 -13
  202. package/src/analytics/index.tsx +0 -599
  203. package/src/analytics/output.ts +0 -99
  204. package/src/analytics/types.ts +0 -145
  205. package/src/authenticatedFetch.ts +0 -42
  206. package/src/brokenLinks.tsx +0 -152
  207. package/src/callbackServer.ts +0 -64
  208. package/src/cli.tsx +0 -1105
  209. package/src/comingSoon.tsx +0 -29
  210. package/src/config.ts +0 -75
  211. package/src/constants.ts +0 -28
  212. package/src/deploy-base.ts +0 -18
  213. package/src/deploy-github-actions.ts +0 -139
  214. package/src/deploy-github-setup.ts +0 -189
  215. package/src/deploy-instructions.ts +0 -76
  216. package/src/deploy.ts +0 -165
  217. package/src/feedback.tsx +0 -31
  218. package/src/format.tsx +0 -82
  219. package/src/helpers.tsx +0 -279
  220. package/src/idToken.ts +0 -17
  221. package/src/index.ts +0 -109
  222. package/src/init.tsx +0 -237
  223. package/src/instructions.ts +0 -99
  224. package/src/keyring.ts +0 -65
  225. package/src/login.tsx +0 -166
  226. package/src/logout.tsx +0 -8
  227. package/src/mdxAccessibility.ts +0 -134
  228. package/src/mdxLinter.tsx +0 -88
  229. package/src/middlewares/subdomainMiddleware.ts +0 -20
  230. package/src/middlewares/telemetryMiddleware.ts +0 -55
  231. package/src/migrate.ts +0 -76
  232. package/src/og.tsx +0 -185
  233. package/src/openApiCheck.tsx +0 -125
  234. package/src/resolveFiles.ts +0 -101
  235. package/src/score/client.ts +0 -36
  236. package/src/score/index.tsx +0 -205
  237. package/src/score/types.ts +0 -15
  238. package/src/signup.tsx +0 -172
  239. package/src/start.ts +0 -27
  240. package/src/status.tsx +0 -129
  241. package/src/telemetry/client.ts +0 -46
  242. package/src/telemetry/distinctId.ts +0 -70
  243. package/src/telemetry/sessionId.ts +0 -40
  244. package/src/telemetry/track.ts +0 -163
  245. package/src/templates.tsx +0 -143
  246. package/src/tokenRefresh.ts +0 -53
  247. package/src/update.tsx +0 -89
  248. package/src/validate/command.tsx +0 -135
  249. package/src/validate/engine.ts +0 -210
  250. package/src/validate/files.ts +0 -249
  251. package/src/validate/mdx.ts +0 -290
  252. package/src/validate/output.tsx +0 -76
  253. package/src/validate/report.ts +0 -40
  254. package/src/validate/rules/build.ts +0 -146
  255. package/src/validate/rules/content/duplicateH1.ts +0 -78
  256. package/src/validate/rules/content/foreignSyntax.ts +0 -144
  257. package/src/validate/rules/content/katex.ts +0 -33
  258. package/src/validate/rules/content/missingSnippet.ts +0 -36
  259. package/src/validate/rules/content/undefinedVariable.ts +0 -20
  260. package/src/validate/rules/content/unknownComponent.ts +0 -130
  261. package/src/validate/rules/content/voidTags.ts +0 -43
  262. package/src/validate/rules/index.ts +0 -23
  263. package/src/validate/rules/openapi.ts +0 -59
  264. package/src/validate/rules/parseError.ts +0 -9
  265. package/src/validate/site.ts +0 -53
  266. package/src/validate/types.ts +0 -102
  267. package/src/vendor/converter.ts +0 -1
  268. package/src/welcome.ts +0 -154
  269. package/src/workflows/client.ts +0 -39
  270. package/src/workflows/index.tsx +0 -287
  271. package/src/workflows/types.ts +0 -73
  272. package/tsconfig.build.json +0 -4
  273. package/tsconfig.json +0 -10
  274. package/vitest.config.ts +0 -9
@@ -0,0 +1,102 @@
1
+ import { createRequire as __mintCreateRequire } from 'node:module';
2
+ import { fileURLToPath as __mintFileURLToPath } from 'node:url';
3
+ import { dirname as __mintDirname } from 'node:path';
4
+ const require = __mintCreateRequire(import.meta.url);
5
+ const __filename = __mintFileURLToPath(import.meta.url);
6
+ const __dirname = __mintDirname(__filename);
7
+ import{Ct as e,G as t,J as n,K as r,Mt as i,Q as a,St as o,T as s,X as c,Y as l,Z as u,ct as d,dt as f,et as p,ft as m,gt as h,i as g,it as _,jt as v,k as y,kt as b,lt as x,n as S,ot as C,pt as ee,q as te,r as ne,t as re,tt as ie,v as ae}from"./schemas-CBsmCNpK.js";function oe(){return[ee(),m(),f(),x(),d()]}var se=b();function ce(e,t){let n=e.position?.start.offset,r=e.position?.end.offset;return typeof n==`number`&&typeof r==`number`?t.slice(n,r):``}function le(e,t){if(!t)return;let n=e.at(-1);n?.type===`text`?n.value+=t:e.push({type:`text`,value:t})}function ue(e,t){let n=ce(e,t),r=e.url.trim();return n.startsWith(`[`)&&r.length>0&&(/^(?:https?:\/\/|mailto:|tel:|\/|#|\.\.?\/)/i.test(r)||r.includes(`/`)||/^[^\s@]+\.[^\s]+$/u.test(r))}function de(e,t){let n=[];for(let r of e)switch(r.type){case`text`:le(n,r.value.replace(/\n/g,` `));break;case`inlineCode`:n.push({type:`inlineCode`,value:r.value});break;case`strong`:case`emphasis`:case`delete`:n.push(Object.assign(Object.assign({},r),{children:de(r.children,t)}));break;case`link`:ue(r,t)?n.push(Object.assign(Object.assign({},r),{children:de(r.children,t)})):le(n,ce(r,t));break;default:le(n,ce(r,t))}return n}const fe=/[\\&*_`[\]!<>~@\0\t\n\r]|:\/\/|www\.|\s$/i;function pe(e){if(!e)return[];if(!fe.test(e))return[{type:`text`,value:e}];try{let t=`title: `,n=`${t}${e.replace(/\n/g,` `)}`,r=h(n,{extensions:[C()],mdastExtensions:[oe()]}),i=r.children.length===1?r.children[0]:void 0;if(i?.type!==`paragraph`)return[{type:`text`,value:e}];let a=de(i.children,n),o=a[0];return o?.type!==`text`||!o.value.startsWith(t)?[{type:`text`,value:e}]:(o.value=o.value.slice(7),o.value||a.shift(),a)}catch{return[{type:`text`,value:e}]}}function me(e){return y({type:`paragraph`,children:pe(e)})}function he(e){this.content=e}he.prototype={constructor:he,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new he(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new he(n)},addToStart:function(e,t){return new he([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new he(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new he(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=he.from(e),e.size?new he(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=he.from(e),e.size?new he(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=he.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},he.from=function(e){if(e instanceof he)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new he(t)};function ge(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)n++;return n}if(i.content.size||a.content.size){let e=ge(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function _e(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=0,t=Math.min(o.text.length,s.text.length);for(;e<t&&o.text[o.text.length-e-1]==s.text[s.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(o.content.size||s.content.size){let e=_e(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}var ve=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return ge(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return _e(this,e,t,n)}findIndex(e){if(e==0)return be(0,e);if(e==this.size)return be(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?be(t+1,i):be(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return new e(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};ve.empty=new ve([],0);const ye={index:0,offset:0};function be(e,t){return ye.index=e,ye.offset=t,ye}function xe(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!xe(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!xe(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var Se=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&xe(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};Se.none=[];var Ce=class extends Error{},we=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Ee(this.content,t+this.openStart,n);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(Te(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(ve.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};we.empty=new we(ve.empty,0,0);function Te(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(Te(a.content,t-i-1,n-i-1)))}function Ee(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i);if(a==t||o.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=Ee(o.content,t-a-1,n,o);return s&&e.replaceChild(i,o.copy(s))}function De(e,t,n){if(n.openStart>e.depth)throw new Ce(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Ce(`Inconsistent open depths`);return Oe(e,t,n,0)}function Oe(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=Oe(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return Ne(a,Fe(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return Ne(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=Ie(n,e);return Ne(a,Pe(e,i,o,t,r))}}function ke(e,t){if(!t.type.compatibleContent(e.type))throw new Ce(`Cannot join `+t.type.name+` onto `+e.type.name)}function Ae(e,t,n){let r=e.node(n);return ke(r,t.node(n)),r}function je(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Me(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(je(e.nodeAfter,r),a++));for(let e=a;e<o;e++)je(i.child(e),r);t&&t.depth==n&&t.textOffset&&je(t.nodeBefore,r)}function Ne(e,t){return e.type.checkContent(t),e.copy(t)}function Pe(e,t,n,r,i){let a=e.depth>i&&Ae(e,t,i+1),o=r.depth>i&&Ae(n,r,i+1),s=[];return Me(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(ke(a,o),je(Ne(a,Pe(e,t,n,r,i+1)),s)):(a&&je(Ne(a,Fe(e,t,i+1)),s),Me(t,n,i,s),o&&je(Ne(o,Fe(n,r,i+1)),s)),Me(r,null,i,s),new ve(s)}function Fe(e,t,n){let r=[];return Me(null,e,n,r),e.depth>n&&je(Ne(Ae(e,t,n+1),Fe(e,t,n+1)),r),Me(t,null,n,r),new ve(r)}function Ie(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(ve.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Le=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Se.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Be(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=w.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else w.set(t,r=new Re);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%ze,i}},Re=class{constructor(){this.elts=[],this.i=0}};const ze=12,w=/* @__PURE__ */ new WeakMap;var Be=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};const Ve=Object.create(null);var He=class e{constructor(e,t,n,r=Se.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||ve.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&xe(this.attrs,t||e.defaultAttrs||Ve)&&Se.sameSet(this.marks,n||Se.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return we.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new we(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return De(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Le.resolveCached(this,e)}resolveNoCache(e){return Le.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),We(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=ve.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Se.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!Se.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=ve.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};He.prototype.text=void 0;var Ue=class e extends He{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):We(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function We(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Ge=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Ke(t,n);if(r.next==null)return e.empty;let i=qe(r);r.next&&r.err(`Unexpected trailing text`);let a=tt(Qe(i));return nt(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return ve.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
8
+ `)}};Ge.empty=new Ge(!0);var Ke=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function qe(e){let t=[];do t.push(Je(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Je(e){let t=[];do t.push(Ye(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ye(e){let t=Ze(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=Xe(e,t);else break;return t}function T(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Xe(e,t){let n=T(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:T(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function E(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Ze(e){if(e.eat(`(`)){let t=qe(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=E(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function Qe(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function $e(e,t){return t-e}function et(e,t){let n=[];return r(t),n.sort($e);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function tt(e){let t=Object.create(null);return n(et(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);et(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ge(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort($e);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function nt(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function rt(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function it(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function at(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function ot(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new lt(e,r,t[r]);return n}var st=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=ot(e,n.attrs),this.defaultAttrs=rt(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ge.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:it(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new He(this,this.computeAttrs(e),ve.from(t),Se.setFrom(n))}createChecked(e=null,t,n){return t=ve.from(t),this.checkContent(t),new He(this,this.computeAttrs(e),t,Se.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=ve.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(ve.empty,!0);return i?new He(this,e,t.append(i),Se.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){at(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:Se.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function ct(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var lt=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?ct(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},ut=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=ot(e,r.attrs),this.excluded=null;let i=rt(this.attrs);this.instance=i?new Se(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Se(this,it(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){at(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},dt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=he.from(e.nodes),t.marks=he.from(e.marks||{}),this.nodes=st.compile(this.spec.nodes,this),this.marks=ut.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Ge.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?ft(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:ft(this,n.split(` `))}this.nodeFromJSON=e=>He.fromJSON(this,e),this.markFromJSON=e=>Se.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof st))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Ue(n,n.defaultAttrs,e,Se.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function ft(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}const pt={};function mt(e){let t=this,n=e||pt,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(C(n)),a.push(c()),o.push(u(n))}const ht={};function gt(e){let t=this,i=e||ht,a=t.data(),o=a.micromarkExtensions||=[],s=a.fromMarkdownExtensions||=[],c=a.toMarkdownExtensions||=[];o.push(r(i)),s.push(te()),c.push(n(i))}var _t=Object.create,vt=Object.defineProperty,yt=Object.getOwnPropertyDescriptor,bt=Object.getOwnPropertyNames,xt=Object.getPrototypeOf,St=Object.prototype.hasOwnProperty,D=(e,t)=>function(){return t||(0,e[bt(e)[0]])((t={exports:{}}).exports,t),t.exports},Ct=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of bt(t))!St.call(e,i)&&i!==n&&vt(e,i,{get:()=>t[i],enumerable:!(r=yt(t,i))||r.enumerable});return e},wt=(e,t,n)=>(n=e==null?{}:_t(xt(e)),Ct(t||!e||!e.__esModule?vt(n,`default`,{value:e,enumerable:!0}):n,e)),Tt=D({"../../node_modules/acorn-jsx/xhtml.js"(e,t){t.exports={quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`}}}),Et=D({"../../node_modules/acorn/dist/acorn.js"(e,t){(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.acorn={}))})(e,(function(e){var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],n=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],r=`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_`,i=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,a={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},o=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,s={5:o,"5module":o+` export import`,6:o+` const class extends export import super`},c=/^in(stanceof)?$/,l=RegExp(`[`+i+`]`),u=RegExp(`[`+i+r+`]`);function d(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function f(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&l.test(String.fromCharCode(e)):t!==!1&&d(e,n)}function p(e,r){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&u.test(String.fromCharCode(e)):r===!1?!1:d(e,n)||d(e,t)}var m=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function h(e,t){return new m(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},_={startsExpr:!0},v={};function y(e,t){return t===void 0&&(t={}),t.keyword=e,v[e]=new m(e,t)}var b={num:new m(`num`,_),regexp:new m(`regexp`,_),string:new m(`string`,_),name:new m(`name`,_),privateId:new m(`privateId`,_),eof:new m(`eof`),bracketL:new m(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new m(`]`),braceL:new m(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new m(`}`),parenL:new m(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new m(`)`),comma:new m(`,`,g),semi:new m(`;`,g),colon:new m(`:`,g),dot:new m(`.`),question:new m(`?`,g),questionDot:new m(`?.`),arrow:new m(`=>`,g),template:new m(`template`),invalidTemplate:new m(`invalidTemplate`),ellipsis:new m(`...`,g),backQuote:new m("`",_),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m(`=`,{beforeExpr:!0,isAssign:!0}),assign:new m(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new m(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:h(`||`,1),logicalAND:h(`&&`,2),bitwiseOR:h(`|`,3),bitwiseXOR:h(`^`,4),bitwiseAND:h(`&`,5),equality:h(`==/!=/===/!==`,6),relational:h(`</>/<=/>=`,7),bitShift:h(`<</>>/>>>`,8),plusMin:new m(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:h(`%`,10),star:h(`*`,10),slash:h(`/`,10),starstar:new m(`**`,{beforeExpr:!0}),coalesce:h(`??`,1),_break:y(`break`),_case:y(`case`,g),_catch:y(`catch`),_continue:y(`continue`),_debugger:y(`debugger`),_default:y(`default`,g),_do:y(`do`,{isLoop:!0,beforeExpr:!0}),_else:y(`else`,g),_finally:y(`finally`),_for:y(`for`,{isLoop:!0}),_function:y(`function`,_),_if:y(`if`),_return:y(`return`,g),_switch:y(`switch`),_throw:y(`throw`,g),_try:y(`try`),_var:y(`var`),_const:y(`const`),_while:y(`while`,{isLoop:!0}),_with:y(`with`),_new:y(`new`,{beforeExpr:!0,startsExpr:!0}),_this:y(`this`,_),_super:y(`super`,_),_class:y(`class`,_),_extends:y(`extends`,g),_export:y(`export`),_import:y(`import`,_),_null:y(`null`,_),_true:y(`true`,_),_false:y(`false`,_),_in:y(`in`,{beforeExpr:!0,binop:7}),_instanceof:y(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:y(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(x.source,`g`);function C(e){return e===10||e===13||e===8232||e===8233}function ee(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(C(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var te=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ne=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,re=Object.prototype,ie=re.hasOwnProperty,ae=re.toString,oe=Object.hasOwn||(function(e,t){return ie.call(e,t)}),se=Array.isArray||(function(e){return ae.call(e)===`[object Array]`});function ce(e){return RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`)}function le(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var ue=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,de=function(e,t){this.line=e,this.column=t};de.prototype.offset=function(e){return new de(this.line,this.column+e)};var fe=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function pe(e,t){for(var n=1,r=0;;){var i=ee(e,r,t);if(i<0)return new de(n,t-r);++n,r=i}}var me={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},he=!1;function ge(e){var t={};for(var n in me)t[n]=e&&oe(e,n)?e[n]:me[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!he&&typeof console==`object`&&console.warn&&(he=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
9
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),se(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return se(t.onComment)&&(t.onComment=_e(t,t.onComment)),t}function _e(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new fe(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var ve=1,ye=2,be=4,xe=8,Se=16,Ce=32,we=64,Te=128,Ee=256,De=ve|ye|Ee;function Oe(e,t){return ye|(e?be:0)|(t?xe:0)}var ke=0,Ae=1,je=2,Me=3,Ne=4,Pe=5,Fe=function(e,t,n){this.options=e=ge(e),this.sourceFile=e.sourceFile,this.keywords=ce(s[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=a[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=ce(r);var i=(r?r+` `:``)+a.strict;this.reservedWordsStrict=ce(i),this.reservedWordsStrictBind=ce(i+` `+a.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
10
+ `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=/* @__PURE__ */ Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ve),this.regexpState=null,this.privateNameStack=[]},Ie={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Fe.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Ie.inFunction.get=function(){return(this.currentVarScope().flags&ye)>0},Ie.inGenerator.get=function(){return(this.currentVarScope().flags&xe)>0&&!this.currentVarScope().inClassFieldInit},Ie.inAsync.get=function(){return(this.currentVarScope().flags&be)>0&&!this.currentVarScope().inClassFieldInit},Ie.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Ee)return!1;if(t.flags&ye)return(t.flags&be)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ie.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&we)>0||n||this.options.allowSuperOutsideMethod},Ie.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Te)>0},Ie.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ie.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&(ye|Ee))>0||n},Ie.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ee)>0},Fe.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},Fe.parse=function(e,t){return new this(t,e).parse()},Fe.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},Fe.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Fe.prototype,Ie);var Le=Fe.prototype,Re=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Le.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){ne.lastIndex=e,e+=ne.exec(this.input)[0].length;var t=Re.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){ne.lastIndex=e+t[0].length;var n=ne.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,ne.lastIndex=e,e+=ne.exec(this.input)[0].length,this.input[e]===`;`&&e++}},Le.eat=function(e){return this.type===e&&(this.next(),!0)},Le.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},Le.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},Le.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Le.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},Le.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Le.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()},Le.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Le.expect=function(e){this.eat(e)||this.unexpected()},Le.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var ze=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Le.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},Le.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},Le.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},Le.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var w=Fe.prototype;w.parseTopLevel=function(e){var t=/* @__PURE__ */ Object.create(null);for(e.body||=[];this.type!==b.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var Be={kind:`loop`},Ve={kind:`switch`};w.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;ne.lastIndex=this.pos;var t=ne.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(f(r,!0)){for(var i=n+1;p(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!c.test(a))return!0}return!1},w.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;ne.lastIndex=this.pos;var e=ne.exec(this.input),t=this.pos+e[0].length,n;return!x.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(p(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))},w.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=b._var,a=`let`),r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._const:case b._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock(!0,i);case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){ne.lastIndex=this.pos;var o=ne.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===b._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,u=this.parseExpression();return r===b.name&&u.type===`Identifier`&&this.eat(b.colon)?this.parseLabeledStatement(i,l,u,e):this.parseExpressionStatement(i,u)}},w.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type===b.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},w.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},w.parseDoStatement=function(e){return this.next(),this.labels.push(Be),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},w.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(Be),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual(`let`),o=!1,s=new ze,c=this.parseExpression(t>-1?`await`:!0,s);return this.type===b._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&o&&this.raise(c.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(c,!1,s),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},w.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Ue|(n?0:We),!1,t)},w.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(b._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},w.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},w.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(Ve),this.enterScope(0);for(var t,n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},w.parseThrowStatement=function(e){return this.next(),x.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var He=[];w.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();if(this.next(),this.eat(b.parenL)){t.param=this.parseBindingAtom();var n=t.param.type===`Identifier`;this.enterScope(n?Ce:0),this.checkLValPattern(t.param,n?Ne:je),this.expect(b.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},w.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},w.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Be),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},w.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},w.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},w.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===b._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},w.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},w.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},w.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},w.parseForIn=function(e,t){var n=this.type===b._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},w.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(b.eq)?r.init=this.parseMaybeAssign(t):n===`const`&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():r.id.type!==`Identifier`&&(!t||this.type!==b._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):r.init=null,e.declarations.push(this.finishNode(r,`VariableDeclarator`)),!this.eat(b.comma))break}return e},w.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?Ae:je,!1)};var Ue=1,We=2,Ge=4;w.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&We&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Ue&&(e.id=t&Ge&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&We)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Ae:je:Me));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Oe(e.async,e.generator)),t&Ue||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Ue?`FunctionDeclaration`:`FunctionExpression`)},w.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},w.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(b.braceL);this.type!==b.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raise(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&Ke(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},w.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===b.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===b.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(b.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===b.parenL||o!==`method`||i||a){var l=!n.static&&qe(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},w.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},w.parseClassElementName=function(e){this.type===b.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},w.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&qe(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},w.parseClassField=function(e){if(qe(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&qe(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(b.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,`PropertyDefinition`)},w.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Ee|we);this.type!==b.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},w.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,je,!1)):(t===!0&&this.unexpected(),e.id=null)},w.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},w.enterClassBody=function(){var e={declared:/* @__PURE__ */ Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},w.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];oe(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function Ke(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function qe(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}w.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`);if(this.eat(b._default)){this.checkExport(t,`default`,this.lastTokStart);var n;if(this.type===b._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,Ue|Ge,!1,n)}else if(this.type===b._class){var i=this.startNode();e.declaration=this.parseClass(i,`nullableID`)}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,`ExportDefaultDeclaration`)}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type===`Literal`&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},w.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),oe(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},w.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`?this.checkPatternExport(e,t.argument):n===`ParenthesizedExpression`&&this.checkPatternExport(e,t.expression)},w.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},w.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},w.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual(`as`)?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,`ExportSpecifier`))}return t},w.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=He,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},w.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,je),e.push(this.finishNode(n,`ImportDefaultSpecifier`)),!this.eat(b.comma))return e}if(this.type===b.star){var r=this.startNode();return this.next(),this.expectContextual(`as`),r.local=this.parseIdent(),this.checkLValSimple(r.local,je),e.push(this.finishNode(r,`ImportNamespaceSpecifier`)),e}for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual(`as`)?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,je),e.push(this.finishNode(i,`ImportSpecifier`))}return e},w.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return ue.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},w.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},w.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var Je=Fe.prototype;Je.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},Je.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},Je.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},Je.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},Je.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case b.braceL:return this.parseObj(!0)}return this.parseIdent()},Je.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(b.comma),t&&this.type===b.comma)r.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===b.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},Je.parseBindingListItem=function(e){return e},Je.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},Je.checkLValSimple=function(e,t,n){t===void 0&&(t=ke);var r=t!==ke;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===je&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(oe(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==Pe&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},Je.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=ke),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},Je.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=ke),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Ye=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},T={b_stat:new Ye(`{`,!1),b_expr:new Ye(`{`,!0),b_tmpl:new Ye("${",!1),p_stat:new Ye(`(`,!1),p_expr:new Ye(`(`,!0),q_tmpl:new Ye("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ye(`function`,!1),f_expr:new Ye(`function`,!0),f_expr_gen:new Ye(`function`,!0,!1,null,!0),f_gen:new Ye(`function`,!1,!1,null,!0)},Xe=Fe.prototype;Xe.initialContext=function(){return[T.b_stat]},Xe.curContext=function(){return this.context[this.context.length-1]},Xe.braceIsBlock=function(e){var t=this.curContext();return t===T.f_expr||t===T.f_stat?!0:e===b.colon&&(t===T.b_stat||t===T.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===T.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},Xe.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},Xe.updateContext=function(e){var t,n=this.type;n.keyword&&e===b.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Xe.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===T.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?T.b_stat:T.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(T.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?T.p_stat:T.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b._else&&(e!==b.semi||this.curContext()===T.p_stat)&&!(e===b._return&&x.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==b.colon&&e!==b.braceL||this.curContext()!==T.b_stat)?this.context.push(T.f_expr):this.context.push(T.f_stat),this.exprAllowed=!1},b.backQuote.updateContext=function(){this.curContext()===T.q_tmpl?this.context.pop():this.context.push(T.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===T.f_expr?this.context[t]=T.f_expr_gen:this.context[t]=T.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var E=Fe.prototype;E.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},E.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===b.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(b.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},E.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ze,r=!0);var s=this.start,c=this.startLoc;(this.type===b.parenL||this.type===b.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===b.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},E.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(b.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},E.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},E.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==b._in)&&a>r){var o=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(a=b.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},E.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},E.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===b.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&s.argument.type===`Identifier`?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&Ze(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===b.privateId)(r||this.privateNameStack.length===0)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(b.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function Ze(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&Ze(e.expression)}E.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},E.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},E.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(b.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(b.bracketL);if(l||c&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(b.bracketR)):u.property=this.type===b.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(b.parenL)){var d=new ze,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseArrowExpression(this.startNodeAt(t,n),h,!0,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===b.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},E.parseExprAtom=function(e,t){this.type===b.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),n=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(n.start,`super() call outside constructor of a subclass`),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(n,`Super`);case b._this:return n=this.startNode(),this.next(),this.finishNode(n,`ThisExpression`);case b.name:var i=this.start,a=this.startLoc,o=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&s.name===`async`&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(T.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[s],!1,t);if(this.options.ecmaVersion>=8&&s.name===`async`&&this.type===b.name&&!o&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return s=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[s],!0,t)}return s;case b.regexp:var c=this.value;return n=this.parseLiteral(c.value),n.regex={pattern:c.pattern,flags:c.flags},n;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return n=this.startNode(),n.value=this.type===b._null?null:this.type===b._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,`Literal`);case b.parenL:var l=this.start,u=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),u;case b.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(n,`ArrayExpression`);case b.braceL:return this.overrideContext(T.b_expr),this.parseObj(!1,e);case b._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},E.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`);var t=this.parseIdent(!0);switch(this.type){case b.parenL:return this.parseDynamicImport(e);case b.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},E.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},E.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},E.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,``)),this.next(),this.finishNode(t,`Literal`)},E.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},E.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new ze,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(l?l=!1:this.expect(b.comma),a&&this.afterTrailingComma(b.parenR,!0)){u=!0;break}if(this.type===b.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),e&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},E.parseParenItem=function(e){return e},E.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Qe=[];E.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(b.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc,a=this.type===b._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),a&&e.callee.type===`ImportExpression`&&this.raise(r,`Cannot use new with import()`),e.arguments=this.eat(b.parenL)?this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):Qe,this.finishNode(e,`NewExpression`)},E.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
11
+ `),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},E.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},E.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},E.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},E.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},E.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===b.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},E.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},E.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},E.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Oe(t,r.generator)|we|(n?Te:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},E.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Oe(n,!1)|Se),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},E.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==b.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Pe),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},E.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},E.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,Ae,t?null:n)}},E.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},E.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.currentThisScope().inClassFieldInit&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},E.parseIdent=function(e){var t=this.startNode();return this.type===b.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name===`class`||t.name===`function`)&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},E.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},E.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},E.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var $e=Fe.prototype;$e.raise=function(e,t){var n=pe(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},$e.raiseRecoverable=$e.raise,$e.curPosition=function(){if(this.options.locations)return new de(this.curLine,this.pos-this.lineStart)};var et=Fe.prototype,tt=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};et.enterScope=function(e){this.scopeStack.push(new tt(e))},et.exitScope=function(){this.scopeStack.pop()},et.treatFunctionsAsVarInScope=function(e){return e.flags&ye||!this.inModule&&e.flags&ve},et.declareName=function(e,t,n){var r=!1;if(t===je){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&ve&&delete this.undefinedExports[e]}else if(t===Ne)this.currentScope().lexical.push(e);else if(t===Me){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&Ce&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&ve&&delete this.undefinedExports[e],s.flags&De)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},et.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},et.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},et.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&De)return t}},et.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&De&&!(t.flags&Se))return t}};var nt=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new fe(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},rt=Fe.prototype;rt.startNode=function(){return new nt(this,this.start,this.startLoc)},rt.startNodeAt=function(e,t){return new nt(this,e,t)};function it(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}rt.finishNode=function(e,t){return it.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},rt.finishNodeAt=function(e,t,n,r){return it.call(this,e,t,n,r)},rt.copyNode=function(e){var t=new nt(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var at=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,ot=at+` Extended_Pictographic`,st=ot,ct=st+` EBase EComp EMod EPres ExtPict`,lt=ct,ut={9:at,10:ot,11:st,12:ct,13:lt,14:lt},dt=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,ft=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,pt=ft+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,mt=pt+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,ht=mt+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,gt=ht+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,_t={9:ft,10:pt,11:mt,12:ht,13:gt,14:gt+` Kawi Nag_Mundari Nagm`},vt={};function yt(e){var t=vt[e]={binary:ce(ut[e]+` `+dt),nonBinary:{General_Category:ce(dt),Script:ce(_t[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var bt=0,xt=[9,10,11,12,13,14];bt<xt.length;bt+=1){var St=xt[bt];yt(St)}var D=Fe.prototype,Ct=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``),this.unicodeProperties=vt[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Ct.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Ct.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Ct.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Ct.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Ct.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Ct.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ct.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ct.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},D.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},D.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},D.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},D.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},D.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},D.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},D.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},D.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},D.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},D.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},D.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},D.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},D.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},D.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},D.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},D.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},D.regexp_eatSyntaxCharacter=function(e){var t=e.current();return wt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function wt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}D.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!wt(n);)e.advance();return e.pos!==t},D.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},D.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},D.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},D.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=le(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=le(e.lastIntValue);return!0}return!1},D.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Tt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Tt(e){return f(e,!0)||e===36||e===95}D.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Et(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Et(e){return p(e,!0)||e===36||e===95||e===8204||e===8205}D.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},D.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},D.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},D.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},D.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},D.regexp_eatZero=function(e){return e.current()===48&&!jt(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},D.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},D.regexp_eatControlLetter=function(e){var t=e.current();return Dt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Dt(e){return e>=65&&e<=90||e>=97&&e<=122}D.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&O(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function O(e){return e>=0&&e<=1114111}D.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},D.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},D.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ot(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function Ot(e){return e===100||e===68||e===115||e===83||e===119||e===87}D.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},D.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){oe(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},D.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},D.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;kt(t=e.current());)e.lastStringValue+=le(t),e.advance();return e.lastStringValue!==``};function kt(e){return Dt(e)||e===95}D.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;At(t=e.current());)e.lastStringValue+=le(t),e.advance();return e.lastStringValue!==``};function At(e){return kt(e)||jt(e)}D.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},D.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},D.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},D.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Pt(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},D.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},D.regexp_eatClassControlLetter=function(e){var t=e.current();return jt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},D.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},D.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;jt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function jt(e){return e>=48&&e<=57}D.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Mt(n=e.current());)e.lastIntValue=16*e.lastIntValue+Nt(n),e.advance();return e.pos!==t};function Mt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Nt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}D.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},D.regexp_eatOctalDigit=function(e){var t=e.current();return Pt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Pt(e){return e>=48&&e<=55}D.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Mt(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Nt(i),e.advance()}return!0};var Ft=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new fe(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},k=Fe.prototype;k.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new Ft(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},k.getToken=function(){return this.next(),new Ft(this)},typeof Symbol<`u`&&(k[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),k.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},k.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},k.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},k.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=ee(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},k.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!C(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},k.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&te.test(String.fromCharCode(e)))++this.pos;else break loop}}},k.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},k.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},k.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},k.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},k.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},k.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},k.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},k.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},k.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},k.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},k.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),f(t,!0)||t===92))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+le(t)+`'`)},k.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+le(e)+`'`)},k.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},k.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Ct(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},k.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function It(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function Lt(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}k.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Lt(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},k.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=Lt(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=It(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},k.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},k.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(C(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var Rt={};k.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Rt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},k.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Rt;this.raise(e,t)},k.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(C(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
12
+ `;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},k.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(b.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,`Unterminated template`)},k.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
13
+ `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return le(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return C(t)?``:String.fromCharCode(t)}},k.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},k.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(p(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?f:p)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=le(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},k.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)};var zt=`8.8.2`;Fe.acorn={Parser:Fe,version:zt,defaultOptions:me,Position:de,SourceLocation:fe,getLineInfo:pe,Node:nt,TokenType:m,tokTypes:b,keywordTypes:v,TokContext:Ye,tokContexts:T,isIdentifierChar:p,isIdentifierStart:f,Token:Ft,isNewLine:C,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:te};function Bt(e,t){return Fe.parse(e,t)}function Vt(e,t,n){return Fe.parseExpressionAt(e,t,n)}function Ht(e,t){return Fe.tokenizer(e,t)}e.Node=nt,e.Parser=Fe,e.Position=de,e.SourceLocation=fe,e.TokContext=Ye,e.Token=Ft,e.TokenType=m,e.defaultOptions=me,e.getLineInfo=pe,e.isIdentifierChar=p,e.isIdentifierStart=f,e.isNewLine=C,e.keywordTypes=v,e.lineBreak=x,e.lineBreakG=S,e.nonASCIIwhitespace=te,e.parse=Bt,e.parseExpressionAt=Vt,e.tokContexts=T,e.tokTypes=b,e.tokenizer=Ht,e.version=zt}))}}),Dt=D({"../../node_modules/acorn-jsx/index.js"(e,t){var n=Tt(),r=/^[\da-fA-F]+$/,i=/^\d+$/,a=/* @__PURE__ */ new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new i(`jsxName`),jsxText:new i(`jsxText`,{beforeExpr:!0}),jsxTagStart:new i(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new i(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},a.set(e,t)}return t}function s(e){if(!e)return e;if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return s(e.object)+`.`+s(e.property)}t.exports=function(e){return e||={},function(t){return c({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return o(Et()).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||Et(),c=o(a),l=a.tokTypes,u=c.tokTypes,d=a.tokContexts,f=c.tokContexts.tc_oTag,p=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,h=a.isNewLine,g=a.isIdentifierStart,_=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e=``,t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated JSX contents`);let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(n===62?`&gt;`:`&rbrace;`)+'` or `{"'+this.input[this.pos]+'"}`?');default:h(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
14
+ `:`\r
15
+ `):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}jsx_readString(e){let t=``,n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);let r=this.input.charCodeAt(this.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):h(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e=``,t=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=n[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(_(e)||e===45);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,`JSXNamespacedName`)}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return``;let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,`JSXMemberExpression`)}return r}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,`JSX value should be either an expression or a quoted JSX text`)}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXOpeningElement`:`JSXOpeningFragment`)}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXClosingElement`:`JSXClosingFragment`)}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){contents:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break contents}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+s(i.name)+`>`)}let o=i.name?`Element`:`Fragment`;return n[`opening`+o]=i,n[`closing`+o]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type=`JSXText`,e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===f||t===p){if(g(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==f)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(e)}}}}}),O={callout:`Callout`,accordion:`Accordion`,accordionGroup:`AccordionGroup`,accordionTitle:`AccordionTitle`,accordionBody:`AccordionBody`,card:`Card`,cardTitle:`CardTitle`,cardBody:`CardBody`,columns:`Columns`,column:`Column`,update:`Update`,tab:`Tab`,tabs:`Tabs`,step:`Step`,stepTitle:`StepTitle`,stepBody:`StepBody`,steps:`Steps`,icon:`Icon`,codeBlock:`CodeBlock`,codeGroup:`CodeGroup`,frame:`Frame`,paramField:`ParamField`,responseField:`ResponseField`,requestExample:`RequestExample`,responseExample:`ResponseExample`,expandable:`Expandable`,customComponent:`CustomComponent`,staticHTML:`StaticHTML`,inlineStaticHTML:`InlineStaticHTML`,image:`Image`,inlineImage:`InlineImage`,video:`Video`,unknownTag:`UnknownTag`,inlineUnknownTag:`InlineUnknownTag`,mdxJsEsm:`MdxJsEsm`,inlineMath:`InlineMath`,blockMath:`BlockMath`,badge:`Badge`,tooltip:`Tooltip`,mermaidBlock:`MermaidBlock`,promptBlock:`PromptBlock`,promptDescription:`PromptDescription`,color:`Color`,tree:`Tree`,visibility:`Visibility`,database:`Database`},Ot=[`Info`,`Check`,`Note`,`Tip`,`Warning`,`Danger`,`Callout`],kt=/* @__PURE__ */ new Set(/* @__PURE__ */ `a.b.br.button.div.form.h1.h2.h3.h4.head.iframe.img.input.label.li.link.ol.p.path.picture.script.section.source.span.svg.table.tbody.td.th.thead.tr.ul.code.pre.zapier-zap-templates.kbd`.split(`.`)),At=/* @__PURE__ */ new Set(/* @__PURE__ */ `Accordion.AccordionGroup.Badge.Heading.Card.CardGroup.Callout.Color.Panel.Tree.View.Tile.Column.Columns.Check.CodeGroup.CodeBlock.CustomCode.CustomComponent.DynamicCustomComponent.Expandable.Frame.Info.Icon.Link.MDXContentController.Note.ParamField.RequestExample.ResponseExample.ResponseField.Step.Steps.Tab.Tabs.Tip.Danger.Tooltip.SnippetGroup.Warning.Latex.Update.ZoomImage.Prompt.Mermaid`.split(`.`)),jt=/* @__PURE__ */ new Set([`Badge`,`Icon`,`Tooltip`]),Mt=`commentThreadIds`,Nt=/* @__PURE__ */ new Set([Mt,`__childIndex`,`__isLastInGroup`,`__hasGroupParent`,`__isHidden`,`__editorOpen`]),Pt=/* @__PURE__ */ new Set([`mdxJsxNode`,`mdastNode`]),Ft=/* @__PURE__ */ new Set([Mt,`__isHidden`,`__hasGroupParent`,`__childIndex`,`__isLastInGroup`,`__expressionAttributes`,`__namedExpressionAttributes`,`__editorOpen`,`__mintlifyExtraAttrs`,`__jsxImage`,`__closingTag`]),k=`__jsxImage`,It=`__closingTag`,Lt={left:`mr-auto`,center:`mx-auto`,right:`ml-auto`},Rt=`bottom-right`,zt=`text`,Bt=`bottom-right`,Vt=`Font Awesome, Lucide or Tabler icon name, URL, path to an icon file, or SVG code.`,Ht=`Font Awesome icon style. Ignored for other icon libraries.`,Ut=`#FF6B6B`,Wt=`https://example.com/page`,Gt=[`gray`,`blue`,`green`,`orange`,`yellow`,`red`,`purple`,`white`,`surface`,`white-destructive`,`surface-destructive`],Kt=[`rounded`,`pill`],qt=[`xs`,`sm`,`md`,`lg`],Jt=[`info`,`warning`,`note`,`tip`,`check`,`danger`],Yt=[{name:`icon`,type:`expression`,description:Vt},{name:`iconType`,type:`string`,description:Ht},{name:`stepNumber`,type:`number`,placeholder:`1`},{name:`titleSize`,type:`string`},{name:`isLast`,type:`boolean`}],Xt=[{name:`type`,type:`string`,options:Jt,description:`Callout-style theme for the background, border and default icon.`},{name:`color`,type:`string`,placeholder:Ut,description:`Color of the card icon.`},{name:`icon`,type:`expression`,description:Vt},{name:`iconType`,type:`string`,description:Ht},{name:`horizontal`,type:`boolean`,description:`Compact horizontal layout.`},{name:`href`,type:`string`,placeholder:Wt},{name:`img`,type:`string`,placeholder:`/images/hero.png`,description:`Shown at the top of the card.`},{name:`cta`,type:`string`,placeholder:`Learn more`}],Zt=[{name:`cols`,type:`number`}],Qt=[{name:`description`,type:`string`,placeholder:`Shown below the title`},{name:`defaultOpen`,type:`boolean`},{name:`icon`,type:`expression`,description:Vt},{name:`iconType`,type:`string`,description:Ht}],$t=[{name:`type`,type:`string`},{name:`icon`,type:`expression`,description:Vt},{name:`iconType`,type:`string`,description:Ht},{name:`color`,type:`string`,placeholder:`#FFC107`,description:`Border, background tint and text color.`}],en=[{name:`title`,type:`string`,required:!0,placeholder:`macOS`,description:`Tabs with matching titles sync their selection.`},{name:`icon`,type:`expression`,description:Vt},{name:`iconType`,type:`string`,description:Ht}],tn=[{name:`defaultTabIndex`,type:`number`,placeholder:`0`,description:`Zero-based index of the tab shown on page load.`}],nn=[{name:`color`,type:`string`,default:`gray`,options:Gt},{name:`size`,type:`string`,default:`md`,options:qt},{name:`shape`,type:`string`,default:`rounded`,options:Kt},{name:`stroke`,type:`boolean`,default:!1,description:`Outline instead of a filled background.`},{name:`disabled`,type:`boolean`,default:!1},{name:`icon`,type:`expression`,description:Vt},{name:`iconType`,type:`string`,description:Ht}],rn=[{name:`tip`,type:`string`,default:``,required:!0,placeholder:`Application Programming Interface`},{name:`headline`,type:`string`,default:``,placeholder:`Did you know?`,description:`Shown above the tip text.`},{name:`cta`,type:`string`,default:``,placeholder:`Learn more`},{name:`href`,type:`string`,default:``,placeholder:Wt,description:`Required when a call to action is set.`}],an=[{name:`caption`,type:`string`,placeholder:`Figure 1: request flow`,description:`Centered below the content. Supports Markdown.`}],on=[{name:`title`,type:`string`,required:!0,placeholder:`user`},{name:`defaultOpen`,type:`boolean`}],sn=[{name:`for`,type:`string`,required:!0,options:[`humans`,`agents`,`signed-in`,`signed-out`],description:`Humans: visible on the web, excluded from Markdown output. Agents: hidden on the web, included in Markdown output. Signed in / signed out: shown on the web by login state; signed-in content is excluded from Markdown output. { groups: [...] }: shown to signed-in users in any listed group. { groups: { excludes: [...] } }: hidden from users in any excluded group.`}],cn=[`table`,`board`,`calendar`],ln=[{name:`id`,type:`string`,required:!0,placeholder:`00000000-0000-0000-0000-000000000000`,description:`UUID of the database.`},{name:`view`,type:`string`,options:cn,description:`Table, board or calendar. Omitted or unknown means table.`},{name:`sort`,type:`string`,placeholder:`-Due, Name`,description:`Comma-separated property names. A leading - sorts descending.`},{name:`filter`,type:`string`,placeholder:`Status != "Done" and Points > 3`,description:`Formula that keeps the rows it is true for.`},{name:`groupBy`,type:`string`,placeholder:`Status`,description:`Property name to group rows by.`},{name:`calendarBy`,type:`string`,placeholder:`Launch date`,description:`Date property that places rows on the calendar.`},{name:`sql`,type:`string`,placeholder:`SELECT * FROM roadmap LIMIT 50`,description:`A read-only SQL query. When set, the block shows its results instead of the view.`}],un=[{name:`label`,type:`string`,required:!0,placeholder:`v1.2.0`,description:`Shown next to the update and used as its anchor link. Keep labels unique.`},{name:`tags`,type:`expression`,placeholder:`["feature", "fix"]`,description:`Shown as filters in the side panel.`},{name:`description`,type:`string`,placeholder:`Short summary of the update`},{name:`rss`,type:`expression`,description:`Creates a single RSS feed entry with a custom title and description.`}],dn=[{name:`name`,type:`string`},{name:`icon`,type:`expression`,description:Vt},{name:`iconType`,type:`string`,description:Ht},{name:`color`,type:`string`,placeholder:Ut},{name:`size`,type:`number`,placeholder:`16`,description:`In pixels.`}],fn=[{name:`language`,type:`string`,placeholder:`typescript`},{name:`filename`,type:`string`,placeholder:`index.ts`},{name:`filenameSyntax`,type:`string`},{name:`expandable`,type:`boolean`},{name:`icon`,type:`expression`,description:Vt},{name:`lang`,type:`string`},{name:`lines`,type:`boolean`,description:`Show line numbers.`},{name:`wrap`,type:`boolean`,description:`Wrap long lines.`},{name:`highlight`,type:`expression`,placeholder:`[1, 3, 4]`,description:`Line numbers to highlight.`},{name:`focus`,type:`expression`,placeholder:`[1, 3, 4]`,description:`Line numbers to focus on.`},{name:`add`,type:`expression`},{name:`remove`,type:`expression`},{name:`twoslash`,type:`boolean`,description:`Interactive type information for JavaScript and TypeScript.`},{name:`nocopy`,type:`boolean`}],pn=[{name:`icon`,type:`expression`,description:Vt},{name:`iconType`,type:`string`,description:Ht},{name:`actions`,type:`expression`,default:[`copy`],placeholder:`["copy", "cursor"]`,description:`Available actions: copy (clipboard) and cursor (open in Cursor).`}],mn=[{name:`placement`,type:`string`,default:Bt,placeholder:Bt,description:`Position of the controls: top-left, top-right, bottom-left or bottom-right.`},{name:`actions`,type:`boolean`,description:`Force the controls on or off. By default they appear when the diagram is taller than 120px.`}],hn=[{name:`query`,type:`string`,placeholder:`limit`},{name:`path`,type:`string`,placeholder:`userId`},{name:`body`,type:`string`,placeholder:`email`},{name:`header`,type:`string`,placeholder:`Authorization`},{name:`default`,type:`string`,placeholder:`10`,description:`Used when the request value is empty.`},{name:`type`,type:`string`,placeholder:`string`,description:`number, string, boolean or object. Arrays use the [] suffix, for example string[].`},{name:`required`,type:`boolean`},{name:`deprecated`,type:`boolean`},{name:`placeholder`,type:`string`,placeholder:`sk_live_...`,description:`Shown in the API playground input.`}],gn=[{name:`name`,type:`string`,required:!0,placeholder:`id`},{name:`type`,type:`string`,placeholder:`string`},{name:`default`,type:`string`,placeholder:`null`},{name:`required`,type:`boolean`},{name:`deprecated`,type:`boolean`}];function _n(e){return`default`in e?e.default:null}function vn(e){return Object.fromEntries(e.map(e=>[e.name,{default:_n(e)}]))}function yn(e){return Object.fromEntries(e.map(e=>[e.name,_n(e)]))}function A(e){let t={};for(let[n,r]of Object.entries(e))t[n]={default:r};return t}var j={__isHidden:null,__hasGroupParent:null,__childIndex:null,__isLastInGroup:null,__mintlifyExtraAttrs:null},bn={doc:{content:`block*`},text:{group:`inline`},paragraph:{content:`inline*`,group:`block`},heading:{content:`inline*`,group:`block`,attrs:A({level:1,customId:null})},blockquote:{content:`block*`,group:`block`},bulletList:{content:`listItem*`,group:`block`},orderedList:{content:`listItem*`,group:`block`,attrs:A({start:1})},listItem:{content:`block*`,attrs:A({checked:null})},hardBreak:{group:`inline`,inline:!0},horizontalRule:{group:`block`},table:{content:`tableRow*`,group:`block`},tableRow:{content:`(tableHeader | tableCell)*`},tableHeader:{content:`block*`,attrs:A({align:null,colwidth:null})},tableCell:{content:`block*`,attrs:A({align:null,colwidth:null})},[O.codeBlock]:{content:`text*`,group:`block`,code:!0,attrs:Object.assign(Object.assign({},vn(fn)),A(Object.assign({__isMermaidChild:null,__isPromptChild:null},j)))},[O.codeGroup]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.callout]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},vn($t)),A(j))},[O.accordion]:{content:`${O.accordionTitle} ${O.accordionBody}`,group:`block`,attrs:Object.assign(Object.assign({},vn(Qt)),A(j))},[O.accordionGroup]:{content:`(${O.accordion} | block)*`,group:`block`,attrs:A(Object.assign({},j))},[O.accordionTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.accordionBody]:{content:`block*`,isolating:!0},[O.card]:{content:`${O.cardTitle} ${O.cardBody}`,group:`block`,attrs:Object.assign(Object.assign({},vn(Xt)),A(j))},[O.cardTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.cardBody]:{content:`block*`,isolating:!0},[O.columns]:{content:`(${O.card} | ${O.column} | block)*`,group:`block`,attrs:Object.assign(Object.assign({},vn(Zt)),A(j))},[O.column]:{content:`block*`,isolating:!0},[O.update]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},vn(un)),A(j))},[O.tab]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},vn(en)),A(j))},[O.tabs]:{content:`${O.tab}*`,group:`block`,attrs:Object.assign(Object.assign({},vn(tn)),A(j))},[O.step]:{content:`${O.stepTitle} ${O.stepBody}`,group:`block`,attrs:Object.assign(Object.assign({},vn(Yt)),A(j))},[O.stepTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.stepBody]:{content:`block*`,isolating:!0},[O.steps]:{content:`${O.step}*`,group:`block`,attrs:A(Object.assign({},j))},[O.frame]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},vn(an)),A(j))},[O.icon]:{group:`inline`,inline:!0,atom:!0,attrs:Object.assign(Object.assign({},vn(dn)),A(j))},[O.badge]:{content:`text*`,group:`inline`,inline:!0,attrs:Object.assign(Object.assign({},vn(nn)),A(j))},[O.tooltip]:{content:`text*`,group:`inline`,inline:!0,attrs:Object.assign(Object.assign({},vn(rn)),A(Object.assign({isNewlyCreated:null},j)))},[O.image]:{group:`block`,atom:!0,attrs:A(Object.assign({imgAttributes:null,lightSrc:null,darkSrc:null,width:null,align:null},j))},[O.inlineImage]:{group:`inline`,inline:!0,atom:!0,attrs:A(Object.assign({imgAttributes:null,width:null,height:null},j))},[O.video]:{group:`block`,atom:!0,attrs:A(Object.assign({videoAttributes:null,sources:null,width:null},j))},[O.staticHTML]:{content:`block*`,group:`block`,attrs:A({tagName:`div`,attributes:null,mdxJsxNode:null})},[O.inlineStaticHTML]:{content:`inline*`,group:`inline`,inline:!0,attrs:A({tagName:`span`,attributes:null,mdxJsxNode:null})},[O.unknownTag]:{group:`block`,atom:!0,attrs:A({mdxJsxNode:null,__isHidden:null})},[O.inlineUnknownTag]:{group:`inline`,inline:!0,atom:!0,attrs:A({mdxJsxNode:null,__isHidden:null})},[O.mdxJsEsm]:{group:`block`,atom:!0,attrs:A({mdastNode:null})},[O.inlineMath]:{group:`inline`,inline:!0,atom:!0,attrs:A({expression:null})},[O.blockMath]:{group:`block`,atom:!0,attrs:A({expression:null})},[O.mermaidBlock]:{content:O.codeBlock,group:`block`,attrs:Object.assign(Object.assign({},vn(mn)),A(j))},[O.promptBlock]:{content:`${O.promptDescription} ${O.codeBlock}`,group:`block`,attrs:Object.assign(Object.assign({},vn(pn)),A(j))},[O.promptDescription]:{content:`block*`,isolating:!0},[O.expandable]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},vn(on)),A(j))},[O.visibility]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},vn(sn)),A(j))},[O.paramField]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},vn(hn)),A(j))},[O.responseField]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},vn(gn)),A(j))},[O.requestExample]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.responseExample]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.customComponent]:{content:`block*`,group:`block`,attrs:A(Object.assign({name:null,attributes:null},j))},[O.color]:{group:`block`,atom:!0,attrs:A(Object.assign({variant:null,colorData:[]},j))},[O.tree]:{group:`block`,atom:!0,attrs:A(Object.assign({treeData:[]},j))},[O.database]:{group:`block`,atom:!0,attrs:Object.assign(Object.assign({},vn(ln)),A(j))}},xn={bold:{},italic:{},strike:{},code:{},link:{attrs:A({href:null,title:null,referenceLabel:null,mdxLinkAttributes:null,mdxLinkId:null})},underline:{},subscript:{},superscript:{},kbd:{}};function Sn(e,t){return e!==`doc`&&!t.inline&&t.group!==`inline`}function Cn(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Sn(e,t)?Object.assign(Object.assign({},t),{attrs:Object.assign(Object.assign({},t.attrs),{[Mt]:{default:null}})}):t]))}var wn=new dt({nodes:Cn(bn),marks:xn});function Tn(e){return new dt({nodes:Cn(Object.assign(Object.assign({},bn),e?.nodes)),marks:Object.assign(Object.assign({},xn),e?.marks)})}var En=`table`,Dn=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,On=e=>typeof e==`string`&&Dn.test(e),kn=e=>cn.some(t=>t===e),An=e=>kn(e)?e:En,jn=`sql`,Mn=Symbol(`invalid-database-sql`),Nn=/&(?=#?[A-Za-z0-9]+;)|<(?=[A-Za-z/!?])|[`~\0\r\n]/,Pn=/[\\`~\0\r\n]|\$\{|<(?=!|\/|MDX)/g,Fn={"\\":`\\\\`,"`":"\\`","~":`\\x7E`,"\0":`\\x00`,"\r":`\\r`,"\n":`\\n`,"${":"\\${","<":`\\x3C`},In=e=>{if(!Nn.test(e)){if(!e.includes(`"`))return`${jn}="${e}"`;if(!e.includes(`'`))return`${jn}='${e}'`}return`${jn}={\`${e.replace(Pn,e=>Fn[e]??e)}\`}`},Ln=e=>e.type===`mdxJsxAttribute`&&e.name===jn,Rn=e=>{let{value:t}=e;if(typeof t==`string`)return t;let n=(t?.data?.estree)?.body[0];if(n?.type!==`ExpressionStatement`)return null;let{expression:r}=n;return r.type===`Literal`?typeof r.value==`string`?r.value:null:r.type!==`TemplateLiteral`||r.expressions.length>0?null:r.quasis[0]?.value.cooked??null},zn=e=>{let t=e.filter(Ln),[n]=t;return n?t.length>1?Mn:Rn(n)??Mn:null},Bn=e=>e.filter(e=>!Ln(e));function Vn(e){return typeof e==`string`?e.split(` `).filter(Boolean):[]}function Hn(e){let t=[...new Set(e.filter(Boolean))];return t.length>0?t.join(` `):null}var Un=/* @__PURE__ */ new Set([O.staticHTML,O.inlineStaticHTML]);function Wn(e,t){return!t||e===`svg`}function Gn(e){let t=[],n=(e,r,i)=>{let a=Un.has(e.type.name)&&e.attrs.mdxJsxNode!=null;a&&i&&!Wn(e.attrs.tagName,!0)&&t.push(r),e.forEach((e,t)=>n(e,r+1+t,i||a))};return e.forEach((e,t)=>n(e,t,!1)),t}function Kn(e){try{let t=(0,se.parse)(e);if(t&&typeof t==`object`&&!Array.isArray(t))return t}catch{}return{}}function qn(e){let t=e.children.find(e=>e.type===`yaml`);return!t||!(`value`in t)?{}:Kn(t.value)}function Jn(e,t=[]){return e?Object.assign({type:`text`,text:e},t.length>0&&{marks:t}):{type:`text`,text:``}}function Yn(e){if(!e)return{text:``,marks:[]};if(e.type===`text`||e.type===`inlineCode`)return{text:(`value`in e?e.value:``)||``,marks:Xn(e)};if(`children`in e&&Array.isArray(e.children)){let t=``,n=Xn(e);for(let r of e.children){let{text:e,marks:i}=Yn(r);t+=e,n.push(...i)}return{text:t,marks:n}}return{text:``,marks:[]}}function Xn(e){let t=[];if(!e)return t;switch(e.type){case`link`:t.push({type:`link`,attrs:{href:e.url,title:e.title||void 0}});break;case`inlineCode`:t.push({type:`code`});break;case`emphasis`:t.push({type:`italic`});break;case`strong`:t.push({type:`bold`});break;case`delete`:t.push({type:`strike`});break;case`mdxJsxTextElement`:e.name===`u`?t.push({type:`underline`}):e.name===`sub`?t.push({type:`subscript`}):e.name===`sup`&&t.push({type:`superscript`})}return t}function Zn(e,t){return t.nodes[e.type]?.isInline===!0}function Qn(e,t){let n=[],r=[],i=()=>{r.length!==0&&(n.push({type:`paragraph`,content:r}),r=[])};for(let a of e)Zn(a,t)?r.push(a):(i(),n.push(a));return i(),n}function $n(e,t){return Wn(e.name,t.hasStaticHtmlParent===!0)?e:null}var er={AElig:`Æ`,AMP:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:`⁡`,Aring:`Å`,Ascr:`𝒜`,Assign:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,Barv:`⫧`,Barwed:`⌆`,Bcy:`Б`,Because:`∵`,Bernoullis:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,Bscr:`ℬ`,Bumpeq:`≎`,CHcy:`Ч`,COPY:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,Cayleys:`ℭ`,Ccaron:`Č`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,CenterDot:`·`,Cfr:`ℭ`,Chi:`Χ`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,Colon:`∷`,Colone:`⩴`,Congruent:`≡`,Conint:`∯`,ContourIntegral:`∮`,Copf:`ℂ`,Coproduct:`∐`,CounterClockwiseContourIntegral:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,DD:`ⅅ`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,Darr:`↡`,Dashv:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,Diamond:`⋄`,DifferentialD:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DotDot:`⃜`,DotEqual:`≐`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,Downarrow:`⇓`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,Equilibrium:`⇌`,Escr:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,ExponentialE:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,Fopf:`𝔽`,ForAll:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,GT:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,Gt:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,HilbertSpace:`ℋ`,Hopf:`ℍ`,HorizontalLine:`─`,Hscr:`ℋ`,Hstrok:`Ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Igrave:`Ì`,Im:`ℑ`,Imacr:`Ī`,ImaginaryI:`ⅈ`,Implies:`⇒`,Int:`∬`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,LT:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Larr:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,LessTilde:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lopf:`𝕃`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,Lscr:`ℒ`,Lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,Mopf:`𝕄`,Mscr:`ℳ`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
16
+ `,Nfr:`𝔑`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,Not:`⫬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,Nscr:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Poincareplane:`ℌ`,Popf:`ℙ`,Pr:`⪻`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Prime:`″`,Product:`∏`,Proportion:`∷`,Proportional:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,Qfr:`𝔔`,Qopf:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,REG:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,Rfr:`ℜ`,Rho:`Ρ`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,Rightarrow:`⇒`,Ropf:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,Rscr:`ℛ`,Rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,ShortRightArrow:`→`,ShortUpArrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,Sopf:`𝕊`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Sscr:`𝒮`,Star:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Sup:`⋑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,THORN:`Þ`,TRADE:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,Theta:`Θ`,ThickSpace:`  `,ThinSpace:` `,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,Topf:`𝕋`,TripleDot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,UpEquilibrium:`⥮`,UpTee:`⊥`,UpTeeArrow:`↥`,Uparrow:`⇑`,Updownarrow:`⇕`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,ZeroWidthSpace:`​`,Zeta:`Ζ`,Zfr:`ℨ`,Zopf:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acute:`´`,acy:`а`,aelig:`æ`,af:`⁡`,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,amp:`&`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,ap:`≈`,apE:`⩰`,apacir:`⩯`,ape:`≊`,apid:`≋`,apos:`'`,approx:`≈`,approxeq:`≊`,aring:`å`,ascr:`𝒶`,ast:`*`,asymp:`≈`,asympeq:`≍`,atilde:`ã`,auml:`ä`,awconint:`∳`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,beta:`β`,beth:`ℶ`,between:`≬`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxDL:`╗`,boxDR:`╔`,boxDl:`╖`,boxDr:`╓`,boxH:`═`,boxHD:`╦`,boxHU:`╩`,boxHd:`╤`,boxHu:`╧`,boxUL:`╝`,boxUR:`╚`,boxUl:`╜`,boxUr:`╙`,boxV:`║`,boxVH:`╬`,boxVL:`╣`,boxVR:`╠`,boxVh:`╫`,boxVl:`╢`,boxVr:`╟`,boxbox:`⧉`,boxdL:`╕`,boxdR:`╒`,boxdl:`┐`,boxdr:`┌`,boxh:`─`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,bprime:`‵`,breve:`˘`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,bumpeq:`≏`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,ccaps:`⩍`,ccaron:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cedil:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,conint:`∮`,copf:`𝕔`,coprod:`∐`,copy:`©`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dArr:`⇓`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,darr:`↓`,dash:`‐`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,dcaron:`ď`,dcy:`д`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,ddotseq:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,dharl:`⇃`,dharr:`⇂`,diam:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,dot:`˙`,doteq:`≐`,doteqdot:`≑`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,downarrow:`↓`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eDDot:`⩷`,eDot:`≑`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,ecirc:`ê`,ecolon:`≕`,ecy:`э`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,efr:`𝔢`,eg:`⪚`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,equals:`=`,equest:`≟`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,erarr:`⥱`,escr:`ℯ`,esdot:`≐`,esim:`≂`,eta:`η`,eth:`ð`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,forall:`∀`,fork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,gE:`≧`,gEl:`⪌`,gacute:`ǵ`,gamma:`γ`,gammad:`ϝ`,gap:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,ge:`≥`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,gjcy:`ѓ`,gl:`≷`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,gopf:`𝕘`,grave:"`",gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,hArr:`⇔`,hairsp:` `,half:`½`,hamilt:`ℋ`,hardcy:`ъ`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,hbar:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hslash:`ℏ`,hstrok:`ħ`,hybull:`⁃`,hyphen:`‐`,iacute:`í`,ic:`⁣`,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,image:`ℑ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,int:`∫`,intcal:`⊺`,integers:`ℤ`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:`𝒾`,isin:`∈`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,itilde:`ĩ`,iukcy:`і`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAarr:`⇚`,lArr:`⇐`,lAtail:`⤛`,lBarr:`⤎`,lE:`≦`,lEg:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,lambda:`λ`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,laquo:`«`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leftarrow:`←`,leftarrowtail:`↢`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,leftthreetimes:`⋋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,lessgtr:`≶`,lesssim:`≲`,lfisht:`⥼`,lfloor:`⌊`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,longleftrightarrow:`⟷`,longmapsto:`⟼`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,lstrok:`ł`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,measuredangle:`∡`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,mstpos:`∾`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nGtv:`≫̸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nLtv:`≪̸`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nabla:`∇`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,ne:`≠`,neArr:`⇗`,nearhk:`⤤`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,nexist:`∄`,nexists:`∄`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,ngsim:`≵`,ngt:`≯`,ngtr:`≯`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,njcy:`њ`,nlArr:`⇍`,nlE:`≦̸`,nlarr:`↚`,nldr:`‥`,nle:`≰`,nleftarrow:`↚`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nlsim:`≴`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nmid:`∤`,nopf:`𝕟`,not:`¬`,notin:`∉`,notinE:`⋹̸`,notindot:`⋵̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,oS:`Ⓢ`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,ocirc:`ô`,ocy:`о`,odash:`⊝`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,oplus:`⊕`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oscr:`ℴ`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimes:`⊗`,otimesas:`⨶`,ouml:`ö`,ovbar:`⌽`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,pointint:`⨕`,popf:`𝕡`,pound:`£`,pr:`≺`,prE:`⪳`,prap:`⪷`,prcue:`≼`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,prime:`′`,primes:`ℙ`,prnE:`⪵`,prnap:`⪹`,prnsim:`⋨`,prod:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qint:`⨌`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,rAarr:`⇛`,rArr:`⇒`,rAtail:`⤜`,rBarr:`⤏`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,reg:`®`,rfisht:`⥽`,rfloor:`⌋`,rfr:`𝔯`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,rightarrow:`→`,rightarrowtail:`↣`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,rightthreetimes:`⋌`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:`‏`,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,rsaquo:`›`,rscr:`𝓇`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,sbquo:`‚`,sc:`≻`,scE:`⪴`,scap:`⪸`,scaron:`š`,sccue:`≽`,sce:`⪰`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,seArr:`⇘`,searhk:`⤥`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shortmid:`∣`,shortparallel:`∥`,shy:`­`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,square:`□`,squarf:`▪`,squf:`▪`,srarr:`→`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,subE:`⫅`,subdot:`⪽`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,supE:`⫆`,supdot:`⪾`,supdsub:`⫘`,supe:`⊇`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swarhk:`⤦`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tbrk:`⎴`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,thinsp:` `,thkap:`≈`,thksim:`∼`,thorn:`þ`,tilde:`˜`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,uArr:`⇑`,uHar:`⥣`,uacute:`ú`,uarr:`↑`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udarr:`⇅`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uml:`¨`,uogon:`ų`,uopf:`𝕦`,uparrow:`↑`,updownarrow:`↕`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,upsi:`υ`,upsih:`ϒ`,upsilon:`υ`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,uuml:`ü`,uwangle:`⦧`,vArr:`⇕`,vBar:`⫨`,vBarv:`⫩`,vDash:`⊨`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vcy:`в`,vdash:`⊢`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,vert:`|`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeetrf:`ℨ`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`},tr=/* @__PURE__ */ `AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),nr=new Uint32Array([161,169,171,172,174,177,180,180,182,184,187,187,191,191,215,215,247,247,706,709,722,735,741,747,749,749,751,767,885,885,894,894,900,901,903,903,1014,1014,1154,1154,1370,1375,1417,1418,1421,1423,1470,1470,1472,1472,1475,1475,1478,1478,1523,1524,1542,1551,1563,1563,1565,1567,1642,1645,1748,1748,1758,1758,1769,1769,1789,1790,1792,1805,2038,2041,2046,2047,2096,2110,2142,2142,2184,2184,2404,2405,2416,2416,2546,2547,2554,2555,2557,2557,2678,2678,2800,2801,2928,2928,3059,3066,3191,3191,3199,3199,3204,3204,3407,3407,3449,3449,3572,3572,3647,3647,3663,3663,3674,3675,3841,3863,3866,3871,3892,3892,3894,3894,3896,3896,3898,3901,3973,3973,4030,4037,4039,4044,4046,4058,4170,4175,4254,4255,4347,4347,4960,4968,5008,5017,5120,5120,5741,5742,5787,5788,5867,5869,5941,5942,6100,6102,6104,6107,6144,6154,6464,6464,6468,6469,6622,6655,6686,6687,6816,6822,6824,6829,7002,7018,7028,7038,7164,7167,7227,7231,7294,7295,7360,7367,7379,7379,8125,8125,8127,8129,8141,8143,8157,8159,8173,8175,8189,8190,8208,8231,8240,8286,8314,8318,8330,8334,8352,8384,8448,8449,8451,8454,8456,8457,8468,8468,8470,8472,8478,8483,8485,8485,8487,8487,8489,8489,8494,8494,8506,8507,8512,8516,8522,8525,8527,8527,8586,8587,8592,9254,9280,9290,9372,9449,9472,10101,10132,11123,11126,11157,11159,11263,11493,11498,11513,11516,11518,11519,11632,11632,11776,11822,11824,11869,11904,11929,11931,12019,12032,12245,12272,12287,12289,12292,12296,12320,12336,12336,12342,12343,12349,12351,12443,12444,12448,12448,12539,12539,12688,12689,12694,12703,12736,12771,12783,12783,12800,12830,12842,12871,12880,12880,12896,12927,12938,12976,12992,13311,19904,19967,42128,42182,42238,42239,42509,42511,42611,42611,42622,42622,42738,42743,42752,42774,42784,42785,42889,42890,43048,43051,43062,43065,43124,43127,43214,43215,43256,43258,43260,43260,43310,43311,43359,43359,43457,43469,43486,43487,43612,43615,43639,43641,43742,43743,43760,43761,43867,43867,43882,43883,44011,44011,64297,64297,64434,64450,64830,64847,64975,64975,65020,65023,65040,65049,65072,65106,65108,65126,65128,65131,65281,65295,65306,65312,65339,65344,65371,65381,65504,65510,65512,65518,65532,65533,65792,65794,65847,65855,65913,65929,65932,65934,65936,65948,65952,65952,66e3,66044,66463,66463,66512,66512,66927,66927,67671,67671,67703,67704,67871,67871,67903,67903,68176,68184,68223,68223,68296,68296,68336,68342,68409,68415,68505,68508,69293,69293,69461,69465,69510,69513,69703,69709,69819,69820,69822,69825,69952,69955,70004,70005,70085,70088,70093,70093,70107,70107,70109,70111,70200,70205,70313,70313,70731,70735,70746,70747,70749,70749,70854,70854,71105,71127,71233,71235,71264,71276,71353,71353,71484,71487,71739,71739,72004,72006,72162,72162,72255,72262,72346,72348,72350,72354,72448,72457,72769,72773,72816,72817,73463,73464,73539,73551,73685,73713,73727,73727,74864,74868,77809,77810,92782,92783,92917,92917,92983,92991,92996,92997,93847,93850,94178,94178,113820,113820,113823,113823,118608,118723,118784,119029,119040,119078,119081,119140,119146,119148,119171,119172,119180,119209,119214,119274,119296,119361,119365,119365,119552,119638,120513,120513,120539,120539,120571,120571,120597,120597,120629,120629,120655,120655,120687,120687,120713,120713,120745,120745,120771,120771,120832,121343,121399,121402,121453,121460,121462,121475,121477,121483,123215,123215,123647,123647,125278,125279,126124,126124,126128,126128,126254,126254,126704,126705,126976,127019,127024,127123,127136,127150,127153,127167,127169,127183,127185,127221,127245,127405,127462,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,128727,128732,128748,128752,128764,128768,128886,128891,128985,128992,129003,129008,129008,129024,129035,129040,129095,129104,129113,129120,129159,129168,129197,129200,129201,129280,129619,129632,129645,129648,129660,129664,129672,129680,129725,129727,129733,129742,129755,129760,129768,129776,129784,129792,129938,129940,129994]),rr=128,ir=4,ar=6,or=7,sr=31,cr=1114111,lr=55296,ur=57343,dr=64976,fr=65007,pr=65535,mr=65534,hr=65533,gr=6,_r=128,vr=159,yr=`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ`,br=new Set(tr),xr=1024,Sr=4,Cr=new Uint8Array(rr);for(let e=0;e<rr;e++)(e>=9&&e<=13||e===32)&&(Cr[e]|=1),(e>=33&&e<=47||e>=58&&e<=64||e>=91&&e<=96||e>=123&&e<=126)&&(Cr[e]|=2),e>=48&&e<=57&&(Cr[e]|=4),(e>=65&&e<=90||e>=97&&e<=122)&&(Cr[e]|=8);function wr(e){return e<rr?!!(Cr[e]&1):e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}function Tr(e){if(e<rr)return!!(Cr[e]&2);let t=0,n=nr.length>>1;for(;t<n;){let r=t+n>>>1;if(e<nr[r*2])n=r;else if(e>nr[r*2+1])t=r+1;else return!0}return!1}function M(e){return e===32||e===9}function Er(e){return e>=48&&e<=57}function Dr(e){return e>=65&&e<=90||e>=97&&e<=122}function Or(e,t,n){let r=t+1;if(e.charCodeAt(r)===35){r++;let t=e.charCodeAt(r)===120||e.charCodeAt(r)===88;t&&r++;let i=r,a=0;for(;r<n&&r-i<(t?ar:or);){let n=e.charCodeAt(r),i=Er(n)?n-48:t&&n>=65&&n<=70?n-55:t&&n>=97&&n<=102?n-87:-1;if(i<0)break;a=a*(t?16:10)+i,r++}return r===i||e.charCodeAt(r)!==59?void 0:((a<9||a===11||a>13&&a<32||a>126&&a<160||a>cr||a>=lr&&a<=ur||a>=dr&&a<=fr||(a&pr)>=mr)&&(a=hr),{value:String.fromCodePoint(a),end:r+1})}let i=r;for(;r<n&&r-i<sr&&(Dr(e.charCodeAt(r))||Er(e.charCodeAt(r)));)r++;if(e.charCodeAt(r)!==59)return;let a=e.slice(i,r),o=Object.hasOwn(er,a)?er[a]:void 0;if(o!==void 0)return{value:o,end:r+1}}function kr(e,t,n){let r=t+1;if(e.charCodeAt(r)===35){r++;let t=e.charCodeAt(r)===120||e.charCodeAt(r)===88;t&&r++;let i=r;for(;r<n;){let n=e.charCodeAt(r);if(!Er(n)&&!(t&&(n>=65&&n<=70||n>=97&&n<=102)))break;r++}if(r===i||e.charCodeAt(r)!==59)return;let a=Number.parseInt(e.slice(i,r),t?16:10);return{value:a>cr||a>=lr&&a<=ur||a===0?String.fromCharCode(hr):a>=_r&&a<=vr?yr[a-_r]:String.fromCodePoint(a),end:r+1}}let i=r,a=0;for(;r<n&&(Dr(e.charCodeAt(r))||Er(e.charCodeAt(r)));)r++,r-i<=gr&&br.has(e.slice(i,r))&&(a=r);if(e.charCodeAt(r)!==59)return;let o=e.slice(i,r);if(Object.hasOwn(er,o))return{value:er[o],end:r+1};if(a)return{value:er[e.slice(i,a)],end:a}}var Ar=/[\\&\0]/;function jr(e){if(!Ar.test(e))return e;let t=``,n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i===92&&e.charCodeAt(r+1)<rr&&Tr(e.charCodeAt(r+1)))t+=e.slice(n,r)+e[r+1],n=++r+1;else if(i===38){let i=Or(e,r,e.length);i&&(t+=e.slice(n,r)+i.value,n=i.end,r=i.end-1)}else i===0&&(t+=e.slice(n,r)+`�`,n=r+1)}return t?t+e.slice(n):e}function Mr(e){let t=``,n=!1;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);M(i)||i===10||i===13?n=t.length>0:(n&&(t+=` `),t+=e[r],n=!1)}return t.toLowerCase().toUpperCase().toLowerCase()}var Nr=new Int32Array(xr),Pr=0,Fr=0,Ir=0,Lr=!0;function Rr(e,t){Lr=t,Fr=1,Ir=0,Nr[0]=0,Pr=0;let n=e.indexOf(`
17
+ `),r=e.indexOf(`\r`);for(;n>=0||r>=0;){let t=n<0?r:r<0?n:Math.min(n,r);if(t===r&&(n===r+1&&t++,r=e.indexOf(`\r`,t+1)),t===n&&(n=e.indexOf(`
18
+ `,t+1)),Fr===Nr.length){let e=new Int32Array(Fr*2);e.set(Nr),Nr=e}Nr[Fr++]=t+1}Pr=Fr-+(Nr[Fr-1]===e.length)}function zr(e){if(e<Nr[Ir]||Ir+1<Fr&&e>=Nr[Ir+1]){let t=0;for(;Ir+1<Fr&&e>=Nr[Ir+1]&&t++<Sr;)Ir++;for(;Ir&&e<Nr[Ir]&&t++<Sr;)Ir--;if(e<Nr[Ir]||Ir+1<Fr&&e>=Nr[Ir+1]){let t=0,n=Fr;for(;t+1<n;){let r=t+n>>>1;Nr[r]<=e?t=r:n=r}Ir=t}}return{line:Ir+1,column:e-Nr[Ir]+1,offset:e}}function Br(e,t,n){return Lr?{start:n??zr(e),end:zr(t)}:void 0}var N;(function(e){e[e.Root=0]=`Root`,e[e.Paragraph=1]=`Paragraph`,e[e.Heading=2]=`Heading`,e[e.ThematicBreak=3]=`ThematicBreak`,e[e.Blockquote=4]=`Blockquote`,e[e.List=5]=`List`,e[e.ListItem=6]=`ListItem`,e[e.Html=7]=`Html`,e[e.Code=8]=`Code`,e[e.Definition=9]=`Definition`,e[e.Text=10]=`Text`,e[e.Emphasis=11]=`Emphasis`,e[e.Strong=12]=`Strong`,e[e.InlineCode=13]=`InlineCode`,e[e.Break=14]=`Break`,e[e.Link=15]=`Link`,e[e.Image=16]=`Image`,e[e.LinkReference=17]=`LinkReference`,e[e.ImageReference=18]=`ImageReference`,e[e.Delete=19]=`Delete`,e[e.Table=20]=`Table`,e[e.TableRow=21]=`TableRow`,e[e.TableCell=22]=`TableCell`,e[e.FootnoteDefinition=23]=`FootnoteDefinition`,e[e.FootnoteReference=24]=`FootnoteReference`,e[e.Yaml=25]=`Yaml`,e[e.Toml=26]=`Toml`,e[e.Mdx=27]=`Mdx`,e[e.IdString=28]=`IdString`,e[e.Math=29]=`Math`,e[e.InlineMath=30]=`InlineMath`})(N||={});var Vr=/* @__PURE__ */ new Uint8Array(31);for(let e of[N.Root,N.Paragraph,N.Heading,N.Blockquote,N.List,N.ListItem,N.Emphasis,N.Strong,N.Link,N.LinkReference,N.Delete,N.Table,N.TableRow,N.TableCell,N.FootnoteDefinition])Vr[e]=1;var Hr=[1,1,2,3,4,5,6],Ur=[],Wr=[],Gr=2048,P={count:0,kind:new Uint8Array(Gr),start:new Int32Array(Gr),end:new Int32Array(Gr),child:new Int32Array(Gr),next:new Int32Array(Gr),prev:new Int32Array(Gr),last:new Int32Array(Gr),a:new Int32Array(Gr),b:new Int32Array(Gr),positionless:new Uint8Array(Gr),value:Ur,extra:Wr};function Kr(){P.count=0,P.value.length=0,P.extra.length=0}function F(e,t,n,r=0){let i=++P.count;if(i>=Gr){Gr*=2;let e=new Uint8Array(Gr);e.set(P.kind),P.kind=e;let t=new Uint8Array(Gr);t.set(P.positionless),P.positionless=t;for(let e of[`start`,`end`,`child`,`next`,`prev`,`last`,`a`,`b`]){let t=P[e],n=new Int32Array(Gr);n.set(t),P[e]=n}}return P.kind[i]=e,P.positionless[i]=0,P.start[i]=t,P.end[i]=n,P.child[i]=P.next[i]=P.prev[i]=P.last[i]=P.a[i]=P.b[i]=0,r&&qr(r,i),i}function qr(e,t){P.prev[t]=P.last[e],P.last[e]?P.next[P.last[e]]=t:P.child[e]=t,P.last[e]=t}function Jr(e){let t=Vr[P.kind[e]]||P.kind[e]===N.Mdx&&P.extra[e]?.children?[]:void 0;for(let n=P.child[e];n;n=P.next[n])t.push(Jr(n));let n=P.value[e]??``,r=P.extra[e],i=P.positionless[e]?void 0:Br(P.start[e],P.end[e],r?.positionStart);switch(P.kind[e]){case N.Mdx:{let e={...r};return t&&(e.children=t),i&&(e.position=i),e}case N.Paragraph:return i?{type:`paragraph`,children:t,position:i}:{type:`paragraph`,children:t};case N.Heading:return i?{type:`heading`,depth:Hr[P.a[e]],children:t,position:i}:{type:`heading`,depth:Hr[P.a[e]],children:t};case N.ThematicBreak:return i?{type:`thematicBreak`,position:i}:{type:`thematicBreak`};case N.Blockquote:return i?{type:`blockquote`,children:t,position:i}:{type:`blockquote`,children:t};case N.List:return i?{type:`list`,ordered:!!P.a[e],start:P.a[e]?P.b[e]:null,spread:!!r,children:t,position:i}:{type:`list`,ordered:!!P.a[e],start:P.a[e]?P.b[e]:null,spread:!!r,children:t};case N.ListItem:return i?{type:`listItem`,spread:!!P.a[e],checked:P.b[e]?P.b[e]===2:null,children:t,position:i}:{type:`listItem`,spread:!!P.a[e],checked:P.b[e]?P.b[e]===2:null,children:t};case N.Html:return i?{type:`html`,value:n,position:i}:{type:`html`,value:n};case N.Code:return i?{type:`code`,lang:r?.lang??null,meta:r?.meta??null,value:n,position:i}:{type:`code`,lang:r?.lang??null,meta:r?.meta??null,value:n};case N.Definition:return i?{type:`definition`,identifier:r.identifier,label:r.label,title:r.title,url:r.url,position:i}:{type:`definition`,identifier:r.identifier,label:r.label,title:r.title,url:r.url};case N.Text:return i?{type:`text`,value:n,position:i}:{type:`text`,value:n};case N.IdString:return i?{type:`idString`,value:n,position:i}:{type:`idString`,value:n};case N.Emphasis:return i?{type:`emphasis`,children:t,position:i}:{type:`emphasis`,children:t};case N.Strong:return i?{type:`strong`,children:t,position:i}:{type:`strong`,children:t};case N.InlineCode:return i?{type:`inlineCode`,value:n,position:i}:{type:`inlineCode`,value:n};case N.Break:return i?{type:`break`,position:i}:{type:`break`};case N.Delete:return i?{type:`delete`,children:t,position:i}:{type:`delete`,children:t};case N.Link:return i?{type:`link`,title:r.title,url:r.url,children:t,position:i}:{type:`link`,title:r.title,url:r.url,children:t};case N.Image:return i?{type:`image`,title:r.title,url:r.url,alt:n,position:i}:{type:`image`,title:r.title,url:r.url,alt:n};case N.LinkReference:return i?{type:`linkReference`,children:t,position:i,label:r.label,identifier:r.identifier,referenceType:r.referenceType}:{type:`linkReference`,children:t,label:r.label,identifier:r.identifier,referenceType:r.referenceType};case N.ImageReference:return i?{type:`imageReference`,alt:n,position:i,label:r.label,identifier:r.identifier,referenceType:r.referenceType}:{type:`imageReference`,alt:n,label:r.label,identifier:r.identifier,referenceType:r.referenceType};case N.Table:return i?{type:`table`,align:r,children:t,position:i}:{type:`table`,align:r,children:t};case N.TableRow:return i?{type:`tableRow`,children:t,position:i}:{type:`tableRow`,children:t};case N.TableCell:return i?{type:`tableCell`,children:t,position:i}:{type:`tableCell`,children:t};case N.FootnoteDefinition:return i?{type:`footnoteDefinition`,identifier:r.identifier,label:r.label,children:t,position:i}:{type:`footnoteDefinition`,identifier:r.identifier,label:r.label,children:t};case N.FootnoteReference:return i?{type:`footnoteReference`,identifier:r.identifier,label:r.label,position:i}:{type:`footnoteReference`,identifier:r.identifier,label:r.label};case N.Math:{let e={hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[{type:`text`,value:n}]}]};return i?{type:`math`,meta:r??null,value:n,data:e,position:i}:{type:`math`,meta:r??null,value:n,data:e}}case N.InlineMath:{let e={hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[{type:`text`,value:n}]};return i?{type:`inlineMath`,value:n,data:e,position:i}:{type:`inlineMath`,value:n,data:e}}case N.Yaml:return i?{type:`yaml`,value:n,position:i}:{type:`yaml`,value:n};case N.Toml:return i?{type:`toml`,value:n,position:i}:{type:`toml`,value:n};default:throw Error(`Unknown parser node kind`)}}function Yr(e){let t=[];for(let n=P.child[e];n;n=P.next[n])t.push(Jr(n));let n=Br(P.start[e],P.end[e]);return n?{type:`root`,children:t,position:n}:{type:`root`,children:t}}var Xr=32,Zr=7,Qr=8,$r=4,ei=3;function ti(e){return Dr(e)||Er(e)||e===43||e===45||e===46||e===95}function ni(e,t,n){for(let r=0;r<n.length;r++)if((e.charCodeAt(t+r)|Xr)!==n.charCodeAt(r))return!1;return!0}function ri(e,t,n){for(let r=t;r<n;r++){let t=e.charCodeAt(r);if(wr(t)||t===60)return!0;if(t!==33&&t!==34&&t!==39&&t!==41&&t!==42&&t!==44&&t!==46&&t!==58&&t!==59&&t!==63&&t!==95&&t!==126){if(t===93){let t=e.charCodeAt(r+1);if(r+1===n||t===40||t===91||wr(t))return!0}else if(t===38){let t=r+1;for(;t<n&&Dr(e.charCodeAt(t));)t++;if(t===r+1||e.charCodeAt(t)!==59)return!1;r=t}else return!1}}return!0}function ii(e,t,n){let r=!1,i=!1,a=!1,o=t;for(;o<n;o++){let t=e.charCodeAt(o);if(t===46||t===95){if(ri(e,o,n))break;t===95?r=!0:(i=r,r=!1)}else{if(wr(t)||t!==45&&Tr(t))break;a=!0}}return a&&!r&&!i?o:-1}function ai(e,t,n){let r=0,i=0,a=t;for(;a<n;a++){let t=e.charCodeAt(a);if(wr(t))break;if(t===40)r++;else if(t===41&&i<r)i++;else{if(`!"&')*,.:;<?]_~`.includes(e[a])&&ri(e,a,n))break;t===41&&i++}}return a}function oi(e,t,n,r,i=!0){let a=e.charCodeAt(t);if(i&&ti(a)&&r!==47&&!ti(r)){let r=t;for(;r<n&&ti(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===64){r++;let t=!1,i=!1;for(;r<n;r++){let n=e.charCodeAt(r);if(n===46&&(Dr(e.charCodeAt(r+1))||Er(e.charCodeAt(r+1))))t=!0;else if(Dr(n)||Er(n)||n===45||n===95)i=!0;else break}if(t&&i&&Dr(e.charCodeAt(r-1)))return{end:r,prefix:`mailto:`}}}if((a===72||a===104)&&!Dr(r)){let r=ni(e,t,`http://`)?Zr:ni(e,t,`https://`)?Qr:0;if(r){let i=e.charCodeAt(t+r);if(t+r<n&&i>32&&!Tr(i)&&!wr(i)){let i=ii(e,t+r,n);if(i>t+r)return{end:ai(e,i,n),prefix:``}}}}if((a===87||a===119)&&ni(e,t,`www.`)&&t+$r<n&&(r===-1||r===40||r===42||r===95||r===91||r===93||r===126||r===32||r===9||r===10||r===13)){let r=ii(e,t,n);if(r>t)return{end:ai(e,r,n),prefix:`http://`}}}function si(e,t,n){let r=0,i=t,a=!0,o=!0;for(let s=t;s<=n;s++){if(s!==n&&e.charCodeAt(s)!==46)continue;a=o,o=!0;let t=!1;for(let n=i;n<s;n++)e.charCodeAt(n)===95&&(o=!1),(Dr(e.charCodeAt(n))||Er(e.charCodeAt(n)))&&(t=!0);s>i&&!t&&(o=!1),r++,i=s+1}return r>=2&&o&&a}function ci(e,t,n){let r=n;for(;r>t&&`!"&'),.:;<>?]}`.includes(e[r-1]);)r--;if(r===n)return n;let i=0,a=0;for(let n=t;n<r;n++)e.charCodeAt(n)===40?i++:e.charCodeAt(n)===41&&a++;let o=r;for(let t=r;t<n&&i>a;t++)e.charCodeAt(t)===41&&(o=t+1,a++);return o}function li(e,t){let n=t?e.charCodeAt(t-1):-1;if(t&&!wr(n)&&!Tr(n))return;let r=ni(e,t,`http://`)?Zr:ni(e,t,`https://`)?Qr:ni(e,t,`www.`)?ei:0;if(!r)return;let i=t+r,a=i;for(;i<e.length&&(Dr(e.charCodeAt(i))||Er(e.charCodeAt(i))||e.charCodeAt(i)===95||e.charCodeAt(i)===45||e.charCodeAt(i)===46);)i++;if(i===a||!si(e,r===ei?t:a,i))return;for(;i<e.length&&e.charCodeAt(i)!==32&&e.charCodeAt(i)!==9&&e.charCodeAt(i)!==10&&e.charCodeAt(i)!==13;)i++;let o=ci(e,t+r,i);if(o>t+r||r===ei&&o===t+r)return{end:o,prefix:r===ei?`http://`:``}}function ui(e,t){let n=t?e.charCodeAt(t-1):-1;if(n===47||t&&!wr(n)&&!Tr(n))return;let r=t;for(;r<e.length&&ti(e.charCodeAt(r));)r++;if(r===t||e.charCodeAt(r)!==64)return;let i=++r,a=!1,o=!1;for(;r<e.length;){let t=e.charCodeAt(r);if(Dr(t)||Er(t)||t===95||t===45)o=!0,r++;else if(t===46&&o&&(Dr(e.charCodeAt(r+1))||Er(e.charCodeAt(r+1))||e.charCodeAt(r+1)===95||e.charCodeAt(r+1)===45))a=!0,o=!1,r++;else break}if(a&&r>i&&Dr(e.charCodeAt(r-1)))return{end:r,prefix:`mailto:`}}var di=/https?:\/\/|www\./gi;function fi(e,t){let n=e.indexOf(`@`,t);if(n<0)return-1;let r=n;for(;r>t&&ti(e.charCodeAt(r-1));)r--;return r}function pi(e,t,n){let r=P.value[t]??``;if(r.indexOf(n?`@`:`.`)<0)return;let i=0,a=0,o=0;di.lastIndex=0;let s=n?fi(r,0):di.exec(r)?.index??-1;for(;s>=0;){let e=s,t=n?ui(r,e):li(r,e);if(!t){s=n?fi(r,e+1):di.exec(r)?.index??-1;continue}if(i<e){let t=F(N.Text,0,0);P.value[t]=r.slice(i,e),P.positionless[t]=1,o?(P.next[o]=t,P.prev[t]=o):a=t,o=t}let c=F(N.Link,0,0);P.extra[c]={title:null,url:t.prefix+r.slice(e,t.end)},P.positionless[c]=1;let l=F(N.Text,0,0,c);P.value[l]=r.slice(e,t.end),P.positionless[l]=1,o?(P.next[o]=c,P.prev[c]=o):a=c,o=c,i=t.end,n?s=fi(r,t.end):(di.lastIndex=t.end,s=di.exec(r)?.index??-1)}if(!a)return;if(i<r.length){let e=F(N.Text,0,0);P.value[e]=r.slice(i),P.positionless[e]=1,P.next[o]=e,P.prev[e]=o,o=e}let c=P.prev[t],l=P.next[t];c?P.next[c]=a:P.child[e]=a,P.prev[a]=c,P.next[o]=l,l?P.prev[l]=o:P.last[e]=o}function mi(e){for(let t=P.child[e];t;){let n=P.next[t];P.kind[t]===N.Text?pi(e,t,!1):P.kind[t]!==N.Link&&P.kind[t]!==N.LinkReference&&P.child[t]&&mi(t),t=n}for(let t=P.child[e];t;){let n=P.next[t];P.kind[t]===N.Text&&pi(e,t,!0),t=n}}function I(e,t){return e.map?e.map[t]:e.base+t}var hi=new Uint8Array(rr);for(let e of[10,13,33,42,60,91,92,93,95,96,123,126])hi[e]=1;var gi=hi.slice();for(let e of[72,104,87,119])gi[e]=1;var _i=gi.slice();for(let e=0;e<rr;e++)(Cr[e]&12||e===43||e===45||e===46)&&(_i[e]=1);var vi=_i.slice();vi[36]=1;var yi=/[\n\r!*<[\]\\_`{~]/g,bi=/[\n\r!*<[\]\\_`{~]|https?:\/\/|www\./gi,xi=/[\n\r!$*<[\]\\_`{~]/g,Si=/[\n\r!$*<[\]\\_`{~]|https?:\/\/|www\./gi,Ci=1024,wi=32,Ti=2,Ei=32,Di=63,Oi=3,ki=0,Ai=Ci,ji=new Int32Array(Ai),Mi=new Int32Array(Ai),Ni=new Int32Array(Ai),Pi=new Int32Array(Ai),Fi=new Uint8Array(Ai),Ii=new Uint8Array(Ai),Li=0,Ri=0,zi=/* @__PURE__ */ new Map,Bi=yi,Vi=bi,Hi=_i,Ui=0,Wi=/* @__PURE__ */ new Int32Array,Gi=/* @__PURE__ */ new Int32Array,Ki=/* @__PURE__ */ new Int32Array(64),qi=``,Ji,Yi,Xi=-1,Zi=``,Qi=[],$i=[],ea=1/0,ta=0;function na(e,t){Zi=t,ki=0,Ji=Yi=void 0,zi.clear(),Ri=e.math?e.math.singleDollarTextMath?1:2:0,Bi=Ri?xi:yi,Vi=Ri?Si:bi,Hi=Ri?vi:_i}function ra(e,t,n,r,i,a){if(ki===Ai){Ai*=2;let e=new Int32Array(Ai);e.set(ji),ji=e;let t=new Int32Array(Ai);t.set(Mi),Mi=t;let n=new Int32Array(Ai);n.set(Ni),Ni=n;let r=new Int32Array(Ai);r.set(Pi),Pi=r;let i=new Uint8Array(Ai);i.set(Fi),Fi=i;let a=new Uint8Array(Ai);a.set(Ii),Ii=a}ji[ki]=e,Mi[ki]=t,Ni[ki]=n,Pi[ki]=r,Fi[ki]=i,Ii[ki++]=a}function ia(e,t){let n=P.prev[t],r=P.next[t];n?P.next[n]=r:P.child[e]=r,r?P.prev[r]=n:P.last[e]=n}function aa(e,t,n,r,i,a=3){let o=i?2:1;a&o&&oa(e,t,n,r,i,a),a&~o&&oa(e,t,n,r,!i,a&~o)}function oa(e,t,n,r,i,a){for(let o=n;o<r;o++)if(Mi[o]===t&&Fi[o]===126===i&&Ii[o]&2)for(;Pi[o];){let r=o-1;for(;r>=n;r--){if(Mi[r]!==t||!Pi[r]||!(Ii[r]&1)||Fi[r]!==Fi[o])continue;let e=Pi[r],n=Pi[o];if(Fi[r]===126){if(e!==n)continue}else if((Ii[r]&2||Ii[o]&1)&&(e+n)%3==0&&(e%3!=0||n%3!=0))continue;break}if(r<n)break;let i=Fi[r]===126?Pi[r]:Pi[r]>=2&&Pi[o]>=2?2:1,s=ji[r],c=ji[o],l=Ni[r]+Pi[r],u=Ni[o],d=F(Fi[r]===126?N.Delete:i===2?N.Strong:N.Emphasis,I(e,l-i),I(e,u+i));P.child[d]=P.next[s],P.last[d]=P.prev[c],P.prev[P.child[d]]=0,P.next[P.last[d]]=0,P.next[s]=d,P.prev[d]=s,P.next[d]=c,P.prev[c]=d,Pi[r]-=i,Pi[o]-=i,Ni[o]+=i,P.end[s]=I(e,l-i),P.start[c]=I(e,u+i),P.value[s]=e.source.slice(Ni[r],l-i),P.value[c]=e.source.slice(u+i,u+i+Pi[o]);for(let e=r+1;e<o;e++)Mi[e]===t&&(Mi[e]=d);aa(e,d,r+1,o,!0,a),Pi[r]||ia(t,s),Pi[o]||ia(t,c)}}function sa(e,t,n){let r=ca(e,t,n);if(!(r<0))return{end:r,value:jr(e.charCodeAt(t)===60?e.slice(t+1,r-1):e.slice(t,r))}}function ca(e,t,n){let r=t;if(e.charCodeAt(r)===60){for(r++;r<n;r++){let t=e.charCodeAt(r);if(t===62)return r+1;if(t===60||t===10||t===13)return-1;t===92&&Tr(e.charCodeAt(r+1))&&r++}return-1}let i=0;for(;r<n;r++){let t=e.charCodeAt(r);if(t!==0&&t<=32||t===127)break;if(t===92&&r+1<e.length&&Tr(e.charCodeAt(r+1)))r++;else if(t===40){if(++i>wi)return-1}else if(t===41){if(!i)break;i--}}return i?-1:r}function la(e,t,n){let r=ua(e,t,n);if(r>=0)return{end:r,value:jr(fa(e.slice(t+1,r-1)))}}function ua(e,t,n){let r=e.charCodeAt(t);if(r!==34&&r!==39&&r!==40)return-1;let i=r===40?41:r;for(let r=t+1;r<n;r++){let t=e.charCodeAt(r);if(t===i)return r+1;if(t===92&&Tr(e.charCodeAt(r+1))&&r++,t===13&&e.charCodeAt(r+1)===10)r++;else if((t===10||t===13)&&(e.charCodeAt(r+1)===10||e.charCodeAt(r+1)===13))return-1}return-1}function da(e,t,n){for(;t<n&&(M(e.charCodeAt(t))||e.charCodeAt(t)===10||e.charCodeAt(t)===13);)t++;return t}function fa(e,t=1/0){let n=``,r=0;for(let i=0;i<e.length;i++){let a=e.charCodeAt(i);if(a!==10&&a!==13)continue;a===13&&e.charCodeAt(i+1)===10&&i++;let o=i+1,s=0;for(;M(e.charCodeAt(o))&&s<t;)s+=e.charCodeAt(o)===9?ir-s%ir:1,o++;o>i+1&&(n+=e.slice(r,i+1)+(s>t?` `.repeat(s-t):``),r=o,i=o-1)}return n+e.slice(r)}function pa(e,t,n){let r=da(e,t+1,n),i=sa(e,r,n);if(!i)return;r=da(e,i.end,n);let a=null;if(r>i.end&&e.charCodeAt(r)!==41){let t=la(e,r,n);if(!t)return;a=t.value||null,r=da(e,t.end,n)}if(e.charCodeAt(r)===41)return{end:r+1,url:i.value,title:a}}function ma(e,t,n){let r=da(e,t+1,n),i=ca(e,r,n);if(i<0)return-1;if(r=da(e,i,n),r>i&&e.charCodeAt(r)!==41){let t=ua(e,r,n);if(t<0)return-1;r=da(e,t,n)}return e.charCodeAt(r)===41?r+1:-1}function ha(e,t,n,r,i){if(r===Ji&&e===qi&&i===Yi&&n<=Xi&&Wi[t]===Ui){let e=Gi[t];if(e>=0?e<n:n===Xi)return e}Wi.length<=e.length&&(Wi=new Int32Array(e.length+1),Gi=new Int32Array(e.length+1),Ui=0),Ui++,qi=e,Ji=r,Yi=i,Xi=n;let a,o=0,s=0,c=-1;for(let l=t;l<n;l++){let t=e.charCodeAt(l);if((t===123||t===60)&&i.inline){let e=i.inline(r,l,n,i);if(e){l=e.end-1;continue}}if(t===92&&Tr(e.charCodeAt(l+1)))l++;else if(t===60||t===96||t===36&&Ri)l=ga(e,l,n,t);else if(t===91||t===33&&e.charCodeAt(l+1)===91){if(t===33&&(a||=[],a.push(o),l++),o===Ki.length){let e=new Int32Array(o*2);e.set(Ki),Ki=e}Ki[o]=l+1,Wi[l+1]=Ui,Gi[l+1]=-1,o++,c=l}else if(t===93){if(!o)return l;o--,Gi[Ki[o]]=l;let t=a!==void 0&&a[a.length-1]===o;t&&a.pop();let r=c+1;if(c=-1,o<s&&(s=o,!t))continue;let u=_a(e,r,l,n,i,t);if(u<0)continue;t||(s=o),l=u-1}}return-1}function ga(e,t,n,r){if(r===60)return Math.max(t,(Ea(e,t,n)?.end??Ta(e,t,n))-1);let i=t+1;for(;e.charCodeAt(i)===r;)i++;let a=ya(e,i,n,i-t,r);return a>=0?a+i-t-1:i-1}function _a(e,t,n,r,i,a){let o=e.charCodeAt(n+1),s=t>0;if(o!==40&&o!==91&&!(s&&i.definitions.size))return-1;if(s&&!a&&e.charCodeAt(t)===94&&i.config.gfm){let r=e.slice(t+1,n);if(r&&!La(r)&&i.footnotes.has(Mr(r)))return-1}return Ba(e,t,n,r,i,s)}function va(e,t,n,r,i=96){for(let a=t;a<n;){if(e.charCodeAt(a)!==i){a++;continue}let t=a+1;for(;e.charCodeAt(t)===i;)t++;if(t-a===r)return a;a=t}return-1}function ya(e,t,n,r,i){if(i!==36)return va(e,t,n,r,i);if(r<Ri)return-1;let a=zi.get(e);if(!a){a=/* @__PURE__ */ new Map;for(let t=e.indexOf(`$`);t!==-1;){let n=t+1;for(;e.charCodeAt(n)===36;)n++;let r=n-t,i=a.get(r);i?i.push(t):a.set(r,[t]),t=e.indexOf(`$`,n)}zi.set(e,a)}let o=a.get(r);if(!o)return-1;let s=0,c=o.length;for(;s<c;){let e=s+c>>>1;o[e]<t?s=e+1:c=e}let l=o[s];return l<n?l:-1}function ba(e,t,n){let r=e.source,i=!0;for(let a=t;a<n;a++){let t=r.charCodeAt(a);(t!==32&&t!==10&&t!==13||xa(e,a))&&(i=!1)}let a=r.charCodeAt(t),o=r.charCodeAt(n-1);return!i&&(a===32||a===10||a===13)&&(o===32||o===10||o===13)&&!xa(e,n-1)&&(t+=a===13&&r.charCodeAt(t+1)===10?2:1,n-=o===10&&r.charCodeAt(n-2)===13?2:1),r.slice(t,n)}function xa(e,t){return!!e.map&&e.source.charCodeAt(t)===32&&Zi.charCodeAt(e.map[t])===9}var Sa=0;function Ca(e,t,n,r){let i=t;for(;;){let t=e.charCodeAt(i);if(i>=n||t===60||t===61||t===62||t===96)return wa(i);if(t===34||t===39){let t=e.indexOf(e[i],i+1);return t<0||t>=n?wa(n):t+1}let a=i;for(r||i++;i<n&&!wr(e.charCodeAt(i))&&!`"'=/<>\``.includes(e[i]);)i++;if(i===a)return wa(i);if(!r||e.charCodeAt(i)!==61)return i;for(i++;M(e.charCodeAt(i));)i++}}function wa(e){return Sa=e,-1}function Ta(e,t,n,r=!1){let i=t+1;if(Sa=i,e.startsWith(`<!--`,t)){if(e.charCodeAt(t+4)===62)return t+5;if(e.charCodeAt(t+4)===45&&e.charCodeAt(t+5)===62)return t+6;let r=e.indexOf(`-->`,t+4);return r<0||r+3>n?wa(n):r+3}if(e.startsWith(`<![CDATA[`,t)){let r=e.indexOf(`]]>`,t+9);return r<0||r+3>n?wa(n):r+3}if(e.charCodeAt(i)===63){let t=e.indexOf(`?>`,i+1);return t<0||t+2>n?wa(n):t+2}if(e.charCodeAt(i)===33){if(!Dr(e.charCodeAt(i+1)))return-1;let t=e.indexOf(`>`,i+2);return t<0||t>=n?wa(n):t+1}let a=e.charCodeAt(i)===47;if(a&&i++,!Dr(e.charCodeAt(i)))return-1;for(i++;i<n&&(Dr(e.charCodeAt(i))||Er(e.charCodeAt(i))||e.charCodeAt(i)===45);i++);for(;i<n;){let t=i;if(i=da(e,i,n),e.charCodeAt(i)===62)return i+1;if(e.charCodeAt(i)===47&&e.charCodeAt(i+1)===62&&!a)return i+2;if(a||i===t)return wa(i);let o=e.charCodeAt(i);if(!Dr(o)&&o!==95&&o!==58)return wa(i);for(i++;i<n&&(Dr(e.charCodeAt(i))||Er(e.charCodeAt(i))||`-._:`.includes(e[i]));)i++;let s=i;if(i=da(e,i,n),e.charCodeAt(i)!==61)i=s;else if(i=da(e,i+1,n),i=Ca(e,i,n,r),i<0)return-1}return wa(n)}function Ea(e,t,n){let r=t+1;for(;r<n&&e.charCodeAt(r)!==62&&e.charCodeAt(r)>32&&e.charCodeAt(r)!==127&&e.charCodeAt(r)!==60;)r++;if(e.charCodeAt(r)!==62)return;let i=e.slice(t+1,r),a=t+1;for(;a<r&&e.charCodeAt(a)!==58;)a++;if(a<r&&a-t>=Ti+1&&a-t<=Ei+1&&Dr(e.charCodeAt(t+1))){let n=!0;for(let r=t+2;r<a;r++)!Dr(e.charCodeAt(r))&&!Er(e.charCodeAt(r))&&!`+-.`.includes(e[r])&&(n=!1);if(n)return{end:r+1,url:i,value:i}}if(Da(i))return{end:r+1,url:`mailto:`+i,value:i}}function Da(e){let t=-1;for(let n=0;n<e.length;n++)if(e.charCodeAt(n)===64){if(t>=0)return!1;t=n}if(t<=0||t===e.length-1)return!1;for(let n=0;n<t;n++)if(!Dr(e.charCodeAt(n))&&!Er(e.charCodeAt(n))&&!".#$%&'*+-/=?^_`{|}~".includes(e[n]))return!1;let n=0;for(let r=t+1;r<=e.length;r++){let t=e.charCodeAt(r);if(r===e.length||t===46){if(!n||n>Di||e.charCodeAt(r-1)===45)return!1;n=0}else{if(!Dr(t)&&!Er(t)&&t!==45||!n&&t===45)return!1;n++}}return!0}function Oa(e,t,n,r,i){let a=e.source.charCodeAt(n-1),o=F(N.Text,I(e,t),a===10||a===13?Aa(e,n):I(e,n),r);return P.value[o]=i??jr(e.source.slice(t,n)),o}function ka(e,t){t>=ta?ea=Math.min(ea,e):(Qi.push(e),$i.push(t))}function Aa(e,t){if(!e.map||!ja(t))return I(e,t-1)+1;let n=I(e,t);return e.source.charCodeAt(t)===32&&Zi.charCodeAt(n)===9?n+1:n}function ja(e){if(ea<e)return!0;let t=0,n=!1;for(let r=0;r<Qi.length;r++)$i[r]<e||(Qi[r]<e&&(n=!0),Qi[t]=Qi[r],$i[t++]=$i[r]);return Qi.length=$i.length=t,n}function Ma(e,t,n){let r=da(e,t+1,n),i=ca(e,r,n);if(i<0){if(e.charCodeAt(r)===60){for(r++;r<n;r++){let t=e.charCodeAt(r);if(t===60||t===10||t===13)return r;t===92&&Tr(e.charCodeAt(r+1))&&r++}return n}let t=0;for(;r<n;r++){let n=e.charCodeAt(r);if(n!==0&&n<=32||n===127)return r;if(n===92&&Tr(e.charCodeAt(r+1)))r++;else if(n===40&&++t>wi)return r;else n===41&&t--}return n}if(r=da(e,i,n),r>i&&e.charCodeAt(r)!==41){let t=ua(e,r,n);if(t<0)return Na(e.charCodeAt(r))?n:r;r=da(e,t,n)}return r}function Na(e){return e===34||e===39||e===40}function Pa(e){let t=0;for(let n=P.child[e];n;){let r=P.next[n];P.kind[n]===N.Text&&t&&P.kind[t]===N.Text?(P.value[t]=(P.value[t]??``)+(P.value[n]??``),P.end[t]=P.end[n],ia(e,n)):(P.child[n]&&Pa(n),t=n),n=r}}function Fa(e){let t=``;for(let n=P.child[e];n;n=P.next[n])t+=P.child[n]?Fa(n):P.value[n]??``;return t}function Ia(e,t,n,r,i,a=!1,o=!0,s=!a){let c=e.source,l=ki;o&&(Li=0,Qi.length=$i.length=0,ea=1/0,ta=n);let u=t,d=i.config.gfm&&s?c.indexOf(`@`,t):-1,f=d>=0&&d<n,p=f?Hi:i.config.gfm&&s?gi:hi,m=!i.inline||i.inlineMarkers,h=i.config.gfm&&s?Vi:Bi,g=t,_=0;for(;g<n;){if(m){if(f)for(;g<n&&!p[c.charCodeAt(g)];)g++;else{h.lastIndex=g;let e=h.exec(c);g=e&&e.index<n?e.index:n}if(g===n)break}let l=c.charCodeAt(g);if(i.inline){let t=i.inline(e,g,n,i);if(t){u<g&&Oa(e,u,g,r),qr(r,t.node),g=u=t.end;continue}}let d=g>t?c.charCodeAt(g-1):-1,v=!(Cr[d]&12)&&d!==43&&d!==45&&d!==46&&d!==95&&d!==47||(l===72||l===104||l===87||l===119)&&!(Cr[d]&8);if(i.config.gfm&&s&&!_&&v&&(f&&(Cr[l]&12||l===43||l===45||l===46||l===95)||l===72||l===104||l===87||l===119)){let t=oi(c,g,n,d,f);if(t){u<g&&Oa(e,u,g,r);let n=F(N.Link,I(e,g),I(e,t.end),r),i=c.slice(g,t.end);P.extra[n]={title:null,url:t.prefix+i},Oa(e,g,t.end,n,i),g=u=t.end;continue}}if(l===92){let t=c.charCodeAt(g+1);if(t<rr&&Tr(t)){g+=2;continue}if(t===10||t===13){u<g&&Oa(e,u,g,r);let n=g+2;for(t===13&&c.charCodeAt(n)===10&&n++,F(N.Break,I(e,g),Aa(e,n),r);M(c.charCodeAt(n));)n++;g=u=n;continue}}if(l===10||l===13){let t=g;for(;t>u&&M(c.charCodeAt(t-1));)t--;let n=g+1;l===13&&c.charCodeAt(n)===10&&n++;let i=!1;for(let e=t;e<g;e++)c.charCodeAt(e)===9&&(i=!0);if(!i&&g-t>=2&&c.charCodeAt(g-1)===32&&c.charCodeAt(g-2)===32){for(u<t&&Oa(e,u,t,r),F(N.Break,I(e,t),Aa(e,n),r);M(c.charCodeAt(n));)n++;g=u=n}else{for(u<t&&Oa(e,u,t,r),Oa(e,g,n,r);M(c.charCodeAt(n));)n++;g=u=n}}else if(l===96){let t=g+1;for(;c.charCodeAt(t)===96;)t++;let i=va(c,t,n,t-g);if(i>=0){u<g&&Oa(e,u,g,r);let n=i+t-g,a=F(N.InlineCode,I(e,g),I(e,n),r);P.value[a]=ba(e,t,i),e.table&&(P.value[a]=Ra(P.value[a])),g=u=n;continue}ka(g,1/0),g=t}else if(l===36&&Ri){let t=g+1;for(;c.charCodeAt(t)===36;)t++;let i=ya(c,t,n,t-g,l);if(i>=0){u<g&&Oa(e,u,g,r);let n=i+t-g,a=F(N.InlineMath,I(e,g),I(e,n),r);P.value[a]=ba(e,t,i),g=u=n;continue}t-g>=Ri&&ka(g,1/0),g=t}else if(l===42||l===95||l===126&&i.config.gfm){let a=g+1;for(;c.charCodeAt(a)===l;)a++;let s=a-g;if(l===126&&(s>2||s===1&&!i.config.gfm?.singleTilde)){g=a;continue}u<g&&Oa(e,u,g,r);let d=Oa(e,g,a,r),f=g>t||!o?c.charCodeAt(g-1):32,p=a<n||!o?c.charCodeAt(a):32,m=wr(f),h=wr(p),_=Tr(f),v=Tr(p),y=!h&&(!v||m||_)||l!==126&&i.config.gfm!==void 0&&p===126,b=!m&&(!_||h||v)||l!==126&&i.config.gfm!==void 0&&f===126,x=l===95?y&&(!b||_):y,S=l===95?b&&(!y||v):b;Li||=l,ra(d,r,g,s,l,!!x|(S?2:0)),g=u=a}else{if(l===91||l===33&&c.charCodeAt(g+1)===91){let t=l===33,o=g+(t?2:1),s=ha(c,o,n,e,i);if(s>=0){let l=s+1,d=c.slice(o,s),f,p=!1,m=!1;if(!t&&d.charCodeAt(0)===94&&d.length>1&&!La(d)&&i.config.gfm&&i.footnotes.has(Mr(d.slice(1))))f={label:jr(d.slice(1)),identifier:Mr(d.slice(1))},m=!0;else if(t||!a){if(c.charCodeAt(l)===40&&(f=pa(c,l,n),!f&&e.map&&ka(l,Ma(c,l,n))),f)l=f.end;else{let e=d,t=`shortcut`;if(c.charCodeAt(l)===91){e=``;let r=l+1;for(;r<n&&c.charCodeAt(r)!==93&&c.charCodeAt(r)!==91;)c.charCodeAt(r)===92&&r++,r++;c.charCodeAt(r)===93&&(e=c.slice(l+1,r),t=e?`full`:`collapsed`,e||=d,i.definitions.has(Mr(e))?l=r+1:e=``),l<=r&&ka(l,c.charCodeAt(r)===93?r+1:r)}e&&i.definitions.has(Mr(e))&&(f={label:jr(e),identifier:Mr(e),referenceType:t},p=!0)}}else e.map&&c.charCodeAt(l)===40&&ka(l,Ma(c,l,n));if(f&&!t&&!m&&za(e,o,s,i)&&(f=void 0),f){u<g&&Oa(e,u,g,r);let n=F(m?N.FootnoteReference:t?p?N.ImageReference:N.Image:p?N.LinkReference:N.Link,I(e,g),I(e,l),r);P.extra[n]=f,m||(Ia(e,o,s,n,i,!t,!1,!1),t&&!i.config.mdx&&(P.value[n]=Fa(n),P.child[n]=P.last[n]=0)),g=u=l;continue}}t||_++}if(l===93&&_&&_--,l===60&&!i.config.mdx){let t=Ea(c,g,n),i=t?.end??Ta(c,g,n);if(i>g){u<g&&Oa(e,u,g,r);let n=F(t?N.Link:N.Html,I(e,g),I(e,i),r);t?(P.extra[n]={url:t.url,title:null},Oa(e,g+1,i-1,n,t.value)):P.value[n]=fa(c.slice(g,i),Oi),g=u=i;continue}t||ka(g,Sa)}g++}}for(;o&&n>u&&M(c.charCodeAt(n-1));)n--;u<n&&Oa(e,u,n,r),aa(e,r,l,ki,!o||Li===126),ki=l,Pa(r)}function La(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(M(n)||n===10||n===13)return!0}return!1}function Ra(e){let t=``,n=0;for(let r=0;r+1<e.length;r++)e.charCodeAt(r)===92&&e.charCodeAt(r+1)===124&&(t+=e.slice(n,r),n=r+1,r++);return t+e.slice(n)}function za(e,t,n,r){let i=e.source;for(let a=t;a<n;a++){let t=i.charCodeAt(a);if((t===123||t===60)&&r.inline){let t=r.inline(e,a,n,r);if(t){a=t.end-1;continue}}if(t===92){a++;continue}if(t===96||t===36&&Ri){let e=a+1;for(;i.charCodeAt(e)===t;)e++;let r=ya(i,e,n,e-a,t);if(r>=0){a=r+e-a-1;continue}a=e-1}if(t===60){let e=Ea(i,a,n)?.end??Ta(i,a,n);if(e>a){a=e-1;continue}}if(t===33&&i.charCodeAt(a+1)===91){let t=ha(i,a+2,n,e,r);if(t>=0){if(za(e,a+2,t,r))return!0;let o=Ba(i,a+2,t,n,r);a=(o<0?t+1:o)-1;continue}}if(t!==91)continue;let o=ha(i,a+1,n,e,r);if(!(o<0)){if(i.charCodeAt(a+1)===94&&o>a+2&&r.config.gfm&&r.footnotes.has(Mr(i.slice(a+2,o)))&&!La(i.slice(a+2,o)))a=o;else if(Ba(i,a+1,o,n,r)>=0)return!0}}return!1}function Ba(e,t,n,r,i,a=!0){let o=n+1,s=e.charCodeAt(o),c=a&&i.definitions.size>0;if(s===91){let a=o+1;for(;a<r&&e.charCodeAt(a)!==93&&e.charCodeAt(a)!==91;)e.charCodeAt(a)===92&&a++,a++;return e.charCodeAt(a)===93?a>o+1?i.definitions.has(Mr(e.slice(o+1,a)))?a+1:-1:c&&i.definitions.has(Mr(e.slice(t,n)))?a+1:-1:-1}if(s===40){let t=ma(e,o,r);if(t>=0)return t}return c&&i.definitions.has(Mr(e.slice(t,n)))?o:-1}var Va=3,Ha=4,Ua=4,Wa=6,Ga=3,Ka=3,qa=2,Ja=9,Ya=4,Xa=999,Za=100,Qa=1024,$a=1,eo=!1,to=!1,no=!1,ro=0,io,ao,oo=!1,so,co=0,lo=new Int32Array(Qa),uo=new Int32Array(Qa),fo=[],po,mo=0,ho=0;function go(){no=!1,po=void 0,ro=0,io=void 0,ao=void 0,so=void 0,co=0,fo.length=0}function _o(e,t){if(co===lo.length){let e=new Int32Array(co*2);e.set(lo),lo=e;let t=new Int32Array(co*2);t.set(uo),uo=t}fo[co]=e,lo[co]=t,uo[co++]=0}function vo(e,t=0){let n=[],r=0;for(;r<Pr&&Nr[r]<t;)r++;for(let t=r;t<Pr;t++){let r=Nr[t],i=t+1<Pr?Nr[t+1]:e.length,a=i;e.charCodeAt(a-1)===10&&a--,e.charCodeAt(a-1)===13&&a--,n.push({start:r,end:a,next:i})}return n}function L(e,t){let n=t.start,r=t.padding??0;for(;n<t.end&&M(e.charCodeAt(n));)r+=e.charCodeAt(n)===9?So(e,n):1,n++;return{start:n,indent:r}}function R(e,t){return L(e,t).start===t.end}function yo(e,t,n,r){if(R(e,t[0])&&M(e.charCodeAt(n-1)))return!1;for(let n=1;n<t.length&&t[n].start<r;n++)if(R(e,t[n]))return!1;return!0}function bo(e,t,n){for(;n>t&&M(e.charCodeAt(n-1));)n--;return n}function xo(e,t,n){let r=t.start,i=t.padding??0;if(i>=n)return{...t,padding:i-n};for(;r<t.end&&i<n&&M(e.charCodeAt(r));)i+=e.charCodeAt(r)===9?So(e,r):1,r++;return{start:r,end:t.end,next:t.next,padding:Math.max(0,i-n),lazy:t.lazy}}function So(e,t){let n=t;for(;n&&e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13;)n--;let r=0;for(let i=n;i<t;i++)r+=e.charCodeAt(i)===9?ir-r%ir:1;return ir-r%ir}function Co(e,t,n=eo){let r=L(e,t);if(!n&&r.indent>Va)return!1;let i=e.charCodeAt(r.start);if(i!==42&&i!==45&&i!==95)return!1;let a=0;for(let n=r.start;n<t.end;n++){let t=e.charCodeAt(n);if(t===i)a++;else if(!M(t))return!1}return a>=Ga}function wo(e,t,n=eo){let r=L(e,t);if(!n&&r.indent>Va||e.charCodeAt(r.start)!==35)return;let i=r.start;for(;e.charCodeAt(i)===35;)i++;let a=i-r.start;if(a>Wa||i<t.end&&!M(e.charCodeAt(i)))return;for(;M(e.charCodeAt(i));)i++;let o=i,s=bo(e,o,t.end),c=s;for(;c>o&&e.charCodeAt(c-1)===35;)c--;return(c===o||c<s&&M(e.charCodeAt(c-1)))&&(s=bo(e,o,c)),{start:r.start,content:o,end:s,depth:a}}function To(e,t,n=eo){let r=L(e,t);if(!n&&r.indent>Va)return 0;let i=e.charCodeAt(r.start);if(i!==45&&i!==61)return 0;let a=r.start;for(;e.charCodeAt(a)===i;)a++;if(a===r.start)return 0;for(;M(e.charCodeAt(a));)a++;return a===t.end?i===61?1:2:0}function Eo(e,t,n=eo){let r=L(e,t);if(!n&&r.indent>Va)return;let i=e.charCodeAt(r.start),a=i===36;if(i!==96&&i!==126&&!(a&&to))return;let o=r.start;for(;e.charCodeAt(o)===i;)o++;if(!(o-r.start<(a?qa:Ka))){if(i!==126){for(let n=o;n<t.end;n++)if(e.charCodeAt(n)===i)return}return{start:r.start,content:o,char:i,length:o-r.start,indent:r.indent}}}function Do(e,t,n=eo){let r=L(e,t);if(no||!n&&r.indent>Va)return;let i=r.start,a=e.charCodeAt(i),o=0,s=!1;if(Er(a)){for(s=!0;Er(e.charCodeAt(i))&&i-r.start<Ja;)o=o*10+e.charCodeAt(i++)-48;if(e.charCodeAt(i)!==46&&e.charCodeAt(i)!==41)return;i++}else if(a===42||a===43||a===45)i++;else return;if(i<t.end&&!M(e.charCodeAt(i)))return;let c=i,l=0;for(;i<t.end&&M(e.charCodeAt(i));)l+=e.charCodeAt(i)===9?So(e,i):1,i++;let u=0,d=i===t.end;return(!n&&l>Ya||d)&&(u=e.charCodeAt(c)===9?So(e,c)-1:0,i=c<t.end?c+1:c,l=1),{start:r.start,content:i,prefix:d?c:i,indent:r.indent+c-r.start+(l||1),ordered:s,number:o,char:e.charCodeAt(c-1),padding:u}}function Oo(e,t,n=eo){let r=L(e,t);if(no||!n&&r.indent>Va||e.charCodeAt(r.start)!==62)return-1;let i=r.start+1;return M(e.charCodeAt(i))&&i++,i}var ko=/* @__PURE__ */ new Set(/* @__PURE__ */ `address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`)),Ao=/<\/(?:script|pre|style|textarea)>/i;function jo(e,t,n){let r=L(e,t),i=r.start;if(r.indent>Va||e.charCodeAt(i)!==60)return;if(e.startsWith(`<!--`,i))return{start:i,until:`-->`};if(e.startsWith(`<?`,i))return{start:i,until:`?>`};if(e.startsWith(`<![CDATA[`,i))return{start:i,until:`]]>`};if(e.charCodeAt(i+1)===33&&Dr(e.charCodeAt(i+2)))return{start:i,until:`>`};let a=i+1;e.charCodeAt(a)===47&&a++;let o=a;for(;Dr(e.charCodeAt(a))||Er(e.charCodeAt(a));)a++;let s=e.slice(o,a).toLowerCase();if(M(e.charCodeAt(a))||e.charCodeAt(a)===62||e.charCodeAt(a)===47&&e.charCodeAt(a+1)===62||a===t.end){if(e.charCodeAt(i+1)!==47&&e.charCodeAt(a)!==47&&(s===`script`||s===`pre`||s===`style`||s===`textarea`))return{start:i,until:Ao};if(ko.has(s))return{start:i,until:null}}if(!n){let n=Ta(e,i,t.end,!0);if(n>0&&bo(e,n,t.end)===n)return{start:i,until:null}}}function Mo(e,t){let n=e.source;return e.interrupt?.(t)||R(n,t)||Co(n,t)||wo(n,t)||Eo(n,t)?!0:!e.config.mdx&&!!jo(n,t,!0)}function No(e,t){let n=e.source;if(Mo(e,t)||Oo(n,t)>=0||e.config.gfm&&Fo(n,t))return!0;let r=Do(n,t);return!!r&&(!r.ordered||n.charCodeAt(r.start)===49&&(n.charCodeAt(r.start+1)===46||n.charCodeAt(r.start+1)===41))&&!R(n,{start:r.content,end:t.end,next:t.next,padding:r.padding})}function Po(e,t){return!!e.interrupt?.(t)&&(e.continuationEnd?.(t)??t.end)>t.end}function Fo(e,t){let n=L(e,t);if(no||!eo&&n.indent>Va||!e.startsWith(`[^`,n.start))return;let r=n.start+2;for(;r<t.end;r++){let t=e.charCodeAt(r);if(M(t)||t===91)return;if(t===93)break;t===92&&e.charCodeAt(r+1)<rr&&Tr(e.charCodeAt(r+1))&&r++}if(!(r===n.start+2||r-n.start>Xa+2||e.charCodeAt(r)!==93||e.charCodeAt(r+1)!==58))return{end:r+2,raw:e.slice(n.start+2,r)}}function Io(){return ro>0}function Lo(e,t){let n=e.source;return Oo(n,t)>=0||!!Do(n,t)&&!Co(n,t)||!!e.config.gfm&&!!Fo(n,t)}function Ro(e,t,n,r){let i=e.source,a=n<t.length?t[n]:r;return!a||a===io||a.lazy||!Xo(i,a)&&!zo(i,a)?!1:R(i,a)?a.start===a.end&&!a.padding&&a.end===i.length:Lo(e,a)}function zo(e,t){let n=so;if(!n||!t||t.lazy)return!1;let r=1,i=n.length-1;for(;r<=i;){let a=r+i>>1,o=n[a];if(o.next<t.next)r=a+1;else if(o.next>t.next)i=a-1;else return!o.lazy&&!R(e,o)}return!1}function Bo(e,t,n,r,i,a,o,s){if(!so)return!1;let c=e.source,l=o?zo(c,t[n])&&o.prefix:Ro(e,t,n,s)?zo(c,t[n]??s)&&(t[n]??s).start:n>r+1&&Xo(c,t[n-1])&&zo(c,t[n-1])&&t[n-1].end;if(l===!1)return!1;if(P.end[i]<=t[r].end)for(let e=r+1;e<n;e++)t[e].end<l&&R(c,t[e])&&(P.a[i]=1);return P.end[i]=l,P.end[a]=l,!0}function Vo(e,t){return e.config.mdx||!jo(e.source,t,!1)?1:t.next===t.end?0:2}function Ho(e,t,n){let r=e.source,i=!1;for(let a=0;a<Za;a++){let a=Oo(r,t),o=a<0?Do(r,t):void 0,s=a<0&&!o&&e.config.gfm?Fo(r,t):void 0;if(a<0&&!o&&!s)break;i=!!o;let c=o?{start:o.content,end:t.end,next:t.next,padding:o.padding}:s?{start:s.end,end:t.end,next:t.next}:{start:a,end:t.end,next:t.next,padding:Uo(r,a)};if(n.start===t.start)n={...c,end:n.end,next:n.next};else if(o||s){let e=o?o.indent:Ua;if(L(r,n).indent<e)return{line:n,lazy:!0,list:i};n=xo(r,n,e)}else{let e=Oo(r,n);if(e<0)return{line:n,lazy:!0,list:i};n={start:e,end:n.end,next:n.next,padding:Uo(r,e)}}t=c}return{line:n,lazy:!1,list:i}}function Uo(e,t){return e.charCodeAt(t-1)===9?So(e,t-1)-1:0}function Wo(e,t,n,r,i){let a=e.source,o=i.start;for(;o<i.end&&a.charCodeAt(o)!==45;)o++;if(o===i.end)return!1;let s=Jo(e,t,n,i);if(s.lazy)return!1;let c=Jo(e,t,n,r).line;return R(a,c)||e.interrupt?.(c)?!1:!!as(e,[c,s.line],0)}function Go(e,t,n,r){let i=Jo(e,t,n,r);return!i.lazy&&!R(e.source,i.line)&&!No(e,i.line)&&!Do(e.source,i.line)}function Ko(e,t){let n=t.start;for(;M(e.charCodeAt(n));)n++;let r=e.charCodeAt(n);return r===62||r===45||r===42||r===43||r===91||r>=48&&r<=57}function qo(e,t,n,r){let i=e.source;if(!r){if(t!==n){let r=Ho(e,t,t);if(r.list&&R(i,r.line)&&!Ho(e,t,n).lazy)return t}return n}return No(e,Ho(e,t,n).line)?n:t}function Jo(e,t,n,r){if(t&&t!==n&&Ko(e.source,t)){let i=Ho(e,t,n);if(!i.lazy&&i.line.start!==n.start){let n=Ho(e,t,r);return n.lazy||!Ko(e.source,i.line)?n:Ho(e,i.line,n.line)}}return Ho(e,n,r)}function Yo(e,t,n=!1,r=0,i=!1){let a=e.source,o=t;oo=!1;for(let s=0;s<Za;s++){let c=s===0&&r===3;if(R(a,o))return c?3:0;if(!e.config.mdx&&L(a,o).indent>=Ha)return s===0&&!i&&r!==1?3:0;if(Co(a,o)||wo(a,o)||Eo(a,o)||e.interrupt?.(o)||!e.config.mdx&&jo(a,o,!1))return 0;let l=Oo(a,o),u=l<0?Do(a,o):void 0;if(u&&(oo=!0),u&&(n||c)&&(R(a,{start:u.content,end:t.end,next:t.next})||u.ordered&&(a.charCodeAt(u.start)!==49||a.charCodeAt(u.start+1)!==46&&a.charCodeAt(u.start+1)!==41)))return 1;let d=l>=0?l:u?.content;if(d===void 0)return 1;o={start:d,end:t.end,next:t.next}}return 0}function Xo(e,t){for(let n=t.start-1;n>=0&&e.charCodeAt(n)!==10&&e.charCodeAt(n)!==13;n--)if(e.charCodeAt(n)===62)return!0;return!1}function Zo(e,t,n=!0){let r=!0;for(let e=0;e<t.length;e++)if((!n||e>0)&&t[e].padding||e>0&&t[e].start!==t[e-1].next){r=!1;break}if(r&&t.length){let r=t[0],i=n?L(e,r).start:r.start;return{source:e.slice(i,t[t.length-1].end),base:i}}if(t.length===1&&(n||!t[0].padding)){let r=t[0],i=n?L(e,r).start:r.start;return{source:e.slice(i,r.end),base:i}}let i=0;for(let r=0;r<t.length;r++){let a=t[r],o=n&&r===0?L(e,a).start:a.start;i+=a.end-o+(n&&r===0?0:a.padding??0)+(r+1<t.length?a.next-a.end:0)}let a=new Int32Array(i+1),o=``,s=0;for(let r=0;r<t.length;r++){let i=t[r],c=n&&r===0?L(e,i).start:i.start,l=r+1<t.length?i.next:i.end;if((!n||r>0)&&i.padding){o+=` `.repeat(i.padding);for(let e=0;e<i.padding;e++)a[s++]=c-1}o+=e.slice(c,l);for(let e=c;e<l;e++)a[s++]=e;a[s]=l}return{source:o,base:0,map:a}}function Qo(e,t,n){_o(Zo(e.source,n),t)}function $o(e,t,n,r,i=!1){let a=e.source,o=t[n],s=L(a,o);if(!i&&!eo&&s.indent>Va||a.charCodeAt(s.start)!==91)return 0;for(let e=s.start+1;e<o.end;e++){let t=a.charCodeAt(e);if(t===92)e++;else{if(t===91)return 0;if(t===93){if(a.charCodeAt(e+1)!==58)return 0;break}}}if(as(e,t,n))return 0;let c=n+1;if(t===po&&n>=mo&&n<ho)c=ho;else{for(po=t,mo=n;c<t.length&&!R(a,t[c])&&!No(e,t[c])&&!To(a,t[c])&&!as(e,t,c,!0);)c++;ho=c}for(let i=2;;i*=2){let a=es(e,t,n,Math.min(c,n+i),c,r,s);if(a>=0)return a}}function es(e,t,n,r,i,a,o){let s=e.source,c=t[n],l=Zo(s,t.slice(n,r),!1),u=l.source,d=r<i,f=o.start-c.start+(c.padding??0)+1,p=f;for(;f<u.length&&f-p<=Xa&&u.charCodeAt(f)!==93&&u.charCodeAt(f)!==91;)u.charCodeAt(f)===92&&f++,f++;if(d&&f+1>=u.length)return-1;if(f-p>Xa||f===p||u.charCodeAt(f)!==93||u.charCodeAt(f+1)!==58)return 0;let m=u.slice(p,f),h=Mr(m);if(!h)return 0;for(f+=2;M(u.charCodeAt(f));)f++;if(u.charCodeAt(f)===10||u.charCodeAt(f)===13)for(u.charCodeAt(f++)===13&&u.charCodeAt(f)===10&&f++;M(u.charCodeAt(f));)f++;if(d&&!ts(u,f))return-1;let g=sa(u,f,u.length);if(!g||g.end===f)return 0;f=g.end;let _=f;for(;M(u.charCodeAt(f));)f++;let v=null,y=f,b=u.charCodeAt(f)===10||u.charCodeAt(f)===13;if(b){for(u.charCodeAt(f++)===13&&u.charCodeAt(f)===10&&f++;M(u.charCodeAt(f));)f++;if(d&&f>=u.length)return-1}if(f>_){let e=la(u,f,u.length);if(e){let t=e.end;for(;M(u.charCodeAt(t));)t++;if(d&&t>=u.length)return-1;if(t===u.length||u.charCodeAt(t)===10||u.charCodeAt(t)===13)v=e.value||null,y=t;else if(!b)return 0}else{let e=u.charCodeAt(f);if(d&&(e===34||e===39||e===40))return-1;if(!b&&f<u.length)return 0}}else if(f<u.length)return 0;let x=I(l,y),S=1;for(;n+S<t.length&&t[n+S-1].end<x;)S++;if(S>i-n)return 0;let C={identifier:h,label:jr(m),url:g.value,title:v},ee=F(N.Definition,o.start,x,a);return P.extra[ee]=C,e.definitions.has(h)||e.definitions.set(h,C),S}function ts(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function ns(e,t){let n=L(e,t).start,r=bo(e,n,t.end);if(e.charCodeAt(n)===124&&n++,e.charCodeAt(r-1)===124){let t=0;for(let i=r-2;i>=n&&e.charCodeAt(i)===92;i--)t++;t&1||r--}let i=[],a=n;for(let t=n;t<r;t++)e.charCodeAt(t)===92&&(e.charCodeAt(t+1)===124||e.charCodeAt(t+1)===92)?t++:e.charCodeAt(t)===124&&(i.push([a,t]),a=t+1);return i.push([a,r]),i}function rs(e,t){let n=L(e,t);if(!eo&&n.indent>Va)return;let r=e.charCodeAt(n.start);if(r!==45&&r!==58&&r!==124)return;let i=ns(e,t),a=[];for(let t of i){let n=t[0],r=bo(e,n,t[1]);for(;M(e.charCodeAt(n));)n++;let i=e.charCodeAt(n)===58;i&&n++;let o=n;for(;e.charCodeAt(n)===45;)n++;if(n===o)return;let s=e.charCodeAt(n)===58;if(s&&n++,n!==r)return;a.push(i?s?`center`:`left`:s?`right`:null)}return a}function is(e,t,n){let r=e.source,i=F(N.TableRow,L(r,t).start,t.end,n),a=ns(r,t);for(let e=0;e<a.length;e++){let[n,o]=a[e],s=F(N.TableCell,e===0?L(r,t).start:n-1,e+1===a.length?t.end:o,i),c=n;for(;M(r.charCodeAt(c));)c++;let l=bo(r,c,o);_o({source:r.slice(c,l),base:c,table:!0},s)}}function as(e,t,n,r=!1){if(!e.config.gfm||!t[n+1]||t[n+1].lazy||t[n]===ao)return;let i=e.source,a=rs(i,t[n+1]);if(!a)return;let o=t[n];if(!eo&&L(i,o).indent>=Ha||Do(i,o)&&(!r||No(e,o))||Oo(i,o)>=0||Fo(i,o)||!r&&!eo&&jo(i,o,!1)||To(e.source,t[n+1])||Do(e.source,t[n+1]))return;let s=ns(e.source,t[n]);if(s.length===a.length&&!(s.length===1&&s[0][0]>s[0][1]))return a}function os(e,t){let n=P.last[e];for(;n&&(P.kind[n]===N.Blockquote||P.kind[n]===N.List||P.kind[n]===N.ListItem||P.kind[n]===N.FootnoteDefinition);)n=P.last[n];return!!n&&P.kind[n]===N.Table&&P.end[n]===t}function ss(e,t,n,r,i){let a=as(e,t,n,i);if(!a||!eo&&jo(e.source,t[n],!1))return 0;let o=e.source,s=F(N.Table,L(o,t[n]).start,t[n+1].end,r);P.extra[s]=a,is(e,t[n],s);let c=n+2;for(;c<t.length&&!t[c].lazy&&!No(e,t[c])&&!e.esm?.(t[c])&&!Do(o,t[c])&&(eo||L(o,t[c]).indent<Ha)&&(e.config.mdx||!jo(o,t[c],!1));c++)is(e,t[c],s),P.end[s]=t[c].end;return c-n}function cs(e,t,n){let r=e.config.frontmatter;if(!r||!t.length)return 0;let i=e.source,a=t[0],o=i.charCodeAt(a.start),s=o===45&&r.yaml,c=o===43&&r.toml;if(!s&&!c||bo(i,a.start,a.end)-a.start!==3||i.charCodeAt(a.start+1)!==o||i.charCodeAt(a.start+2)!==o)return 0;for(let e=1;e<t.length;e++){let r=t[e];if(bo(i,r.start,r.end)-r.start!==3||i.charCodeAt(r.start)!==o||i.charCodeAt(r.start+1)!==o||i.charCodeAt(r.start+2)!==o)continue;let c=F(s?N.Yaml:N.Toml,a.start,r.end,n);return P.value[c]=i.slice(a.next,e===1?a.next:t[e-1].end),e+1}return no=!0,0}function ls(e,t,n,r,i,a){let o=e.source,s=t[n],c=n+1,l=!1,u=[];for(;c<t.length;c++){let e=t[c];if(e.lazy)break;let n=L(o,e),r=n.start;for(;o.charCodeAt(r)===i.char;)r++;if((eo||n.indent<=Va)&&r-n.start>=i.length&&bo(o,r,e.end)===r){l=!0;break}u.push(xo(o,e,i.indent))}let d=l?t[c]:t[Math.max(n,c-1)],f=!t[c]?.lazy&&a&&Lo(e,a),p=P.kind[r]===N.Root||!!f||(P.kind[r]===N.ListItem||P.kind[r]===N.FootnoteDefinition)&&d.next===o.length&&!ro,m=!l&&c>n+1&&d.start===d.end&&d.end===o.length&&!d.padding,h=i.char===36,g=F(h?N.Math:N.Code,i.start,m?t[c-2].next:l||!p?d.end:d.next,r);m&&(P.end[r]=Math.max(P.end[r],d.end));let _=i.content;for(;M(o.charCodeAt(_));)_++;let v=_;for(;v<s.end&&!M(o.charCodeAt(v));)v++;let y=v;for(;M(o.charCodeAt(y));)y++;P.extra[g]=h?_===s.end?null:jr(o.slice(_,s.end)):{lang:_===s.end?null:jr(o.slice(_,v)),meta:y===s.end?null:jr(o.slice(y,s.end))},P.value[g]=u.length?Zo(o,u,!1).source:``;let b=u[u.length-1];if(!l&&b&&(!p&&R(o,d)||b.start===b.end&&b.end===o.length)){let e=P.value[g];e.charCodeAt(e.length-1)===10?P.value[g]=e.slice(0,e.charCodeAt(e.length-2)===13?-2:-1):e.charCodeAt(e.length-1)===13&&(P.value[g]=e.slice(0,-1))}let x=u[0];return x&&x.start===x.end&&!x.padding&&o.charCodeAt(s.end)===13&&s.next===s.end+1&&P.value[g].charCodeAt(0)===10&&(P.value[g]=P.value[g].slice(1)),(l||p)&&u.length>1&&b.start===b.end&&!b.padding&&o.charCodeAt(b.end)===10&&P.value[g].charCodeAt(P.value[g].length-1)===13&&(P.value[g]=P.value[g].slice(0,-1)),c-n+ +!!l}function us(e,t,n,r,i,a){let o=e.source,s=t[n],c=n,l=!1;for(;c<t.length&&!(c>n&&(s.lazy||t[c].lazy)||!i.until&&R(o,t[c]));c++)if(i.until){let e=o.slice(t[c].start,t[c].end);if(typeof i.until==`string`?e.includes(i.until):i.until.test(e)){l=!0,c++;break}}let u=t[c-1],d=a&&Lo(e,a),f=i.until&&!l&&(P.kind[r]===N.Root||d||u.next===o.length)&&c===t.length,p=F(N.Html,s.start,f?u.next:u.end,r),m=t.slice(n,c);return P.value[p]=Zo(o,m,!1).source,f&&(P.value[p]+=o.slice(u.end,u.next)),c-n}function ds(e,t,n,r,i,a,o,s,c){let l=e.source,u=t[n],d=i.raw,f=Mr(d),p=i.end;for(;M(l.charCodeAt(p));)p++;let m=[{start:p,end:u.end,next:u.next}],h=n+1,g=n,_=Yo(e,m[0],o>0),v=oo,y=m[0],b,x=!1,S;for(;h<t.length;h++){let n=L(l,t[h]),r=n.indent;if(n.start===t[h].end)m.push(t[h]),_!==3&&(_=0),x=!1;else if(!t[h].lazy&&(r>=Ua||s&&r===0)){let n=r>=Ua?xo(l,t[h],Ua):t[h];if(x?(x=Go(e,b,y,n),x||(S=n)):e.config.gfm&&m[m.length-1]!==S&&Wo(e,b,y,m[m.length-1],n)&&(x=!0),!x){let t=qo(e,y,n,_===1);t!==y&&(b=y,y=t)}m.push(n),g=h,_=x?0:Yo(e,n,_===1,_,v),v||=oo}else if(_===1&&(!No(e,t[h])&&!Do(l,t[h])||Po(e,t[h]))){let n=Vo(e,t[h]);if(n===0)break;if(m.push({...t[h],lazy:!0}),g=h,n===2){h++;break}}else break}let C=t[g].end;h>g+1&&Xo(l,t[h-1])&&(C=t[h-1].end),Ro(e,t,h,c)&&(C=(t[h]??c).start);let ee=F(N.FootnoteDefinition,a,C,r);P.extra[ee]={identifier:f,label:jr(d)},e.footnotes.add(f);let te=so;so??=m;let ne=hs(e,m,ee,!1,o,t[h]??c);return so=te,ne<m.length&&(h=n+ne,P.end[ee]=t[h-1].end),as(e,t,h)&&os(ee,t[h-1].end)&&(ao=t[h]),P.last[ee]&&(P.end[ee]=Math.max(P.end[ee],P.end[P.last[ee]])),h-n}function fs(e,t,n){for(let r=P.child[n];r;r=P.next[r]){let n,i;if(P.kind[r]===N.Mdx&&P.extra[r]?.type===`mdxJsxFlowElement`)n=P.a[r],i=P.b[r];else if(P.kind[r]===N.FootnoteDefinition){let t=P.child[r]?P.start[P.child[r]]:P.end[r];for(let n=P.start[r];n<t;n++)if(e.charCodeAt(n)===10||e.charCodeAt(n)===13)return!0;n=P.start[r],i=P.end[r]}else continue;for(let i=P.child[r];i;i=P.next[i]){for(let r of t)if(r.end>n&&r.end<=P.start[i]&&R(e,r))return!0;n=P.end[i]}for(let a of t)if(a.end>n&&(P.kind[r]===N.FootnoteDefinition?a.end<a.next&&a.next<=i:a.end<=i)&&R(e,a))return!0;if(fs(e,t,r))return!0}return!1}function ps(e,t,n,r,i){let a=e.source,o=n,s=0,c=!1,l=!1,u,d,f;for(;o<t.length;o++){let p=t[o],m=Oo(a,p);if(m>=0){let t={start:m,end:p.end,next:p.next,padding:Uo(a,m),lazy:p.lazy};if(l&&d?(l=Go(e,f,d,t),l||(u=t)):e.config.gfm&&d&&i[i.length-1]!==u&&Wo(e,f,d,i[i.length-1],t)&&(l=!0),!l){let n=qo(e,d??t,t,s===1);n!==d&&(f=d,d=n)}i.push(t),s=l?0:Yo(e,t,s===1||o===n&&r>0,s,c),c||=oo}else if(s===1&&(!No(e,p)&&!Do(a,p)||Po(e,p))){let t=Vo(e,p);if(t===0)break;if(i.push({...p,lazy:!0}),t===2){o++;break}}else break}return o}function ms(e,t,n,r){let i=t[n],a=P.last[r];if(!a||!Xo(e,i)||!(P.kind[a]===N.Blockquote&&i.next===e.length&&i.end===i.next&&i.start===i.end&&!i.padding&&n>0&&!R(e,t[n-1])||P.kind[a]===N.List||P.kind[a]===N.FootnoteDefinition))return;let o=P.kind[a]===N.List?P.last[a]:0;if(o&&zo(e,i)){let r=P.last[o];n>0&&R(e,t[n-1])&&(r?P.end[r]:P.start[o])<t[n-1].end&&(P.a[o]=1),P.end[o]=i.end}else o&&n>0&&R(e,t[n-1])&&P.end[o]<t[n-1].end&&(P.extra[a]=!0);P.end[a]=i.end}function hs(e,t,n,r=!1,i=0,a){eo=!!e.config.mdx,to=!!e.config.math;let o=n,s=e.source,c=r?cs(e,t,n):0,l=i===2?1:i,u=!1,d=0;for(;c<t.length;){n=e.flowParent?.(o)??o;let r=t[c];if(R(s,r)){ms(s,t,c,n),l!==3&&(l=0),c++;continue}let i=L(s,r);if(e.flow){let n=e.flow(e,t,c,o,a);if(n){if(l=0,c+=n,t[c]?.lazy)return c;continue}}let f=wo(s,r);if(f){let t=F(N.Heading,f.start,r.end,n);P.a[t]=f.depth,Qo(e,t,[{start:f.content,end:f.end,next:f.end}]),l=0,c++;continue}let p=Eo(s,r);if(p){if(c+=ls(e,t,c,n,p,a),t[c]?.lazy)return c;l=0;continue}if(!r.lazy&&Co(s,r)){F(N.ThematicBreak,i.start,r.end,n),l=0,c++;continue}let m=r.start<d;if((m?-1:Oo(s,r))>=0){let o=P.last[n];if(o&&P.kind[o]===N.List&&Xo(s,r)){let e=P.last[o];c>0&&R(s,t[c-1])&&P.child[e]&&P.end[e]<=t[c-1].start&&(P.extra[o]=!0),P.end[o]=r.start}let d=[],f=ps(e,t,c,l,d),p=F(N.Blockquote,i.start,t[f-1].end,n);ro++;let m=hs(e,d,p,!1,l,t[f]??a);if(ro--,m<d.length&&(f=c+m,P.end[p]=t[f-1].end),as(e,t,f)&&os(p,t[f-1].end)&&(ao=t[f]),t[f]?.lazy)return f;let h=P.last[p];(Ro(e,t,f,a)||h&&(t[f]??a)&&(t[f]??a)!==io&&P.end[h]>t[f-1].end)&&(P.end[p]=(t[f]??a).start),P.last[p]&&(P.end[p]=Math.max(P.end[p],P.end[P.last[p]])),u=f<t.length&&!R(s,t[f]),l=0,c=f;continue}let h=e.config.gfm&&!m&&Fo(s,r);if(h){if(c+=ds(e,t,c,n,h,i.start,l,P.kind[o]===N.FootnoteDefinition,a),t[c]?.lazy)return c;l=0;continue}let g=ss(e,t,c,n,l===1||l===2);if(g){c+=g,l=0;continue}let _=r.lazy||m?void 0:Do(s,r);if(_&&l&&(R(s,{start:_.content,end:r.end,next:r.next})||_.ordered&&(s.charCodeAt(_.start)!==49||s.charCodeAt(_.start+1)!==46&&s.charCodeAt(_.start+1)!==41))&&(_=void 0),_){let i=F(N.List,_.start,r.end,n);P.a[i]=+!!_.ordered,P.b[i]=_.number;let o=c,d=!1;for(;o<t.length;){let n=Do(s,t[o]);if(!n||n.ordered!==_.ordered||n.char!==_.char||Co(s,t[o]))break;let r=o,c=[{start:n.content,end:t[o].end,next:t[o].next,padding:n.padding}];o++;let u=Yo(e,c[0],l>0),f=oo,p=c[0],m,h=!1,g=r,v=!1,y=!1,b;for(;o<t.length;o++){let i=t[o];if(R(s,i)){if(g===r&&R(s,c[0])){let n=o+1;for(;n<t.length&&R(s,t[n]);)n++;let r=n<t.length?Do(s,t[n]):void 0;r&&r.char===_.char&&r.ordered===_.ordered?(zo(s,t[n])||(d=!0),o=n):Ro(e,t,n,a)&&(o=n);break}c.push(xo(s,i,n.indent)),h=!0,u!==3&&(u=0),y=!1;continue}let v=L(s,i);if(v.indent<n.indent&&Do(s,i)&&!i.lazy)break;if(!i.lazy&&v.indent>=n.indent){let t=xo(s,i,n.indent);if(y?(y=Go(e,m,p,t),y||(b=t)):e.config.gfm&&c[c.length-1]!==b&&Wo(e,m,p,c[c.length-1],t)&&(y=!0),!y){let n=qo(e,p,t,u===1);n!==p&&(m=p,p=n)}c.push(t),g=o,u=y?0:Yo(e,t,u===1||l>0,u,f),f||=oo,h=!1}else if(u===1&&(i.lazy||!No(e,i)||Po(e,i))){let t=Vo(e,i);if(t===0)break;if(c.push({...i,lazy:!0}),g=o,t===2){o++;break}}else break}let x=F(N.ListItem,n.start,t[g].end,i);P.a[x]=+!!v;let S=co,C=o<t.length?Do(s,t[o]):void 0,ee=io;C&&C.ordered===_.ordered&&C.char===_.char&&!Co(s,t[o])&&(io=t[o]);let te=hs(e,c,x,!1,l,t[o]??a);io=ee,te<c.length&&(o=r+te,g=o-1,P.end[x]=t[g].end),as(e,t,o)&&os(x,t[o-1].end)&&(ao=t[o]),l=0;let ne=o<t.length?Do(s,t[o]):void 0,re=ne&&ne.ordered===_.ordered&&ne.char===_.char&&!Co(s,t[o]);if(e.config.gfm){let e=P.child[x];for(;e&&P.kind[e]===N.Definition;)e=P.next[e];if(e&&P.kind[e]===N.Paragraph)for(let t=S;t<co;t++){if(lo[t]!==e)continue;let r=fo[t].source,i=r.charCodeAt(1),a=i===13&&r.charCodeAt(2)===10?3:2,o=a+1;for(;M(r.charCodeAt(o));)o++;r.charCodeAt(0)===91&&(M(i)||i===10||i===13||i===120||i===88)&&r.charCodeAt(a)===93&&o<r.length&&(M(r.charCodeAt(a+1))||r.charCodeAt(a+1)===10||r.charCodeAt(a+1)===13)&&yo(s,c,n.content,P.start[e])&&(P.b[x]=i===120||i===88?2:1,uo[t]=a+1,P.a[e]=$a);break}}for(let e=P.child[x];e&&P.next[e];e=P.next[e]){let n=P.next[e];for(let i=r;i<g;i++)t[i].end>P.end[e]&&t[i].next<=P.start[n]&&R(s,t[i])&&(v=!0)}if((e.config.mdx||e.config.gfm)&&fs(s,c,x)&&(v=!0),P.a[x]=+!!v,P.last[x]&&(P.end[x]=Math.max(P.end[x],P.end[P.last[x]])),re&&P.last[x]&&(P.end[P.last[x]]===t[o].start||P.end[P.last[x]]===t[o-1].next)&&(P.end[x]=ne.prefix),Bo(e,t,o,g,x,i,re?ne:void 0,a)){if(!re)break;continue}re&&h&&P.end[x]<=t[g].end&&(d=!0),P.end[i]=P.end[x],!re&&o>g+1&&Xo(s,t[o-1])&&(P.end[i]=t[o-1].end),!re&&o>g+2&&Xo(s,t[o-1])&&P.end[x]<=t[g].end&&(d=!0),!re&&Ro(e,t,o,a)&&(P.end[i]=(t[o]??a).start,o>g+1&&P.end[x]<=t[g].end?d=!0:P.end[x]>t[g].end&&(P.end[x]=P.end[i]));let ie=t[o]??a;if(!re&&ie&&ie!==io&&P.end[x]>t[o-1].end&&ie.start>P.end[i]&&(P.end[i]=P.end[x]=ie.start),!re)break}if(P.extra[i]=d,t[o]?.lazy)return o;let f=o;for(;f<t.length&&R(s,t[f]);)f++;u=f<t.length&&L(s,t[f]).indent>=Ha,l=0,c=o;continue}let v=P.last[n];if(v&&P.kind[v]===N.Definition&&c>0&&!R(s,t[c-1])){let r=$o(e,t,c,n,!0);if(r){l=2,c+=r;continue}}if(!e.config.mdx&&i.indent>=Ha&&l!==2){let e=[],i=c,a=c;for(;i<t.length&&!(u&&i>c);i++){let n=t[i];if(R(s,n))e.push(xo(s,n,Ha));else if(L(s,n).indent>=Ha)e.push(xo(s,n,Ha)),a=i;else break}let o=a;for(let e=a+1;e<i;e++)L(s,t[e]).indent>=Ha&&(o=e);e.length=o-c+1;let d=F(N.Code,r.start,t[o].end,n);if(P.value[d]=Zo(s,e,!1).source,R(s,e[e.length-1])){let e=P.value[d];e.charCodeAt(e.length-1)===10?P.value[d]=e.slice(0,e.charCodeAt(e.length-2)===13?-2:-1):e.charCodeAt(e.length-1)===13&&(P.value[d]=e.slice(0,-1))}l=u?0:3,u=!1,c=i;continue}let y=!e.config.mdx&&jo(s,r,l===2&&!r.lazy&&!as(e,t,c,!0));if(y){if(c+=us(e,t,c,n,y,a),t[c]?.lazy)return c;l=0;continue}let b=$o(e,t,c,n);if(b){l=2,c+=b;continue}let x=[r];e.continuationEnd&&(d=Math.max(d,e.continuationEnd(r,e,t,c,a)));let S=c+1,C=0;for(;S<t.length&&(C=t[S].lazy?0:To(s,t[S]),!C);S++){let n=e.continuation?.(e,t,S,a);if(n)break;if(t[S].start<d){if(n===void 0&&Mo(e,t[S]))break}else{if(n===void 0&&!t[S].lazy&&No(e,t[S])||t[S].lazy&&!e.config.mdx&&jo(s,t[S],!1)||n===void 0&&t[S].lazy&&Po(e,t[S]))break;e.continuationEnd&&(d=e.continuationEnd(t[S],e,t,S,a))}if(as(e,t,S,!0))break;x.push(t[S])}let ee=i.start;if(C&&!To(s,r)){let e=P.last[n],r=c-1;for(;e&&P.kind[e]===N.Definition&&r>=0&&!R(s,t[r]);)ee=P.start[e],e=P.prev[e],r--}let te=F(C?N.Heading:N.Paragraph,ee,C?t[S].end:t[S-1].end,n);if(P.a[te]=C,Qo(e,te,x),l=+!C,c=S+ +!!C,C&&t[c]?.lazy)return c}return t.length}function gs(e){for(let t=0;t<co;t++){let n=fo[t],r=lo[t];if(Ia(n,uo[t],n.source.length,r,e),fo[t]=void 0,P.kind[r]===N.Paragraph&&P.a[r]===$a){let t=P.child[r];if(t&&P.kind[t]===N.Text){if(P.value[t]=P.value[t].slice(1),!P.value[t])P.child[r]=P.next[t],P.next[t]?P.prev[P.next[t]]=0:P.last[r]=0;else{if(e.config.positions){let e=zr(P.start[t]),n={line:e.line,column:e.column+1,offset:e.offset+1};P.extra[t]=P.extra[r]={positionStart:n}}P.start[t]++,P.start[r]=P.start[t]}}}}}function _s(e=[],t=!0){let n={gfm:void 0,mdx:void 0,frontmatter:void 0,positions:t};for(let t of e)t.name===`gfm`?n.gfm=t:t.name===`mdx`?n.mdx=t:t.name===`frontmatter`?n.frontmatter=t:t.name===`headingId`?n.headingId=t:t.name===`math`&&(n.math=t);return n}var vs=class extends Error{name;reason;place;line;column;ruleId;source;url;fatal=!0;constructor(e){super(e.reason,{cause:e.cause}),this.name=e.place?`${e.place.line}:${e.place.column}`:`1:1`,this.reason=e.reason,this.place=e.place,this.line=e.place?.line,this.column=e.place?.column,this.ruleId=e.ruleId,this.source=e.source,this.url=e.url}},ys=2024,bs=4,xs=2,Ss=1,Cs=2,ws="Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Ts={ecmaVersion:ys,sourceType:`module`,locations:!0,preserveParens:!0};function Es(e){let t=0,n=``;for(;;){let r=e.indexOf(`/*`,t);if(r<0)break;let i=e.indexOf(`*/`,r+2);if(i<0)break;n+=e.slice(t,r),t=i+2}t&&(e=n+e.slice(t));for(let t=0;t<e.length;){let n=e.charCodeAt(t);if(wr(n))t++;else{if(n!==47)return!1;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&e.charCodeAt(t)!==10&&e.charCodeAt(t)!==13;)t++;if(t===e.length)return!1}else return!1}}return!0}function Ds(e,t,n,r=`micromark-extension-mdx-expression`){throw new vs({reason:e,place:zr(t),ruleId:n,source:r})}function Os(e,t){if(e&&typeof e==`object`){if(typeof e.type==`string`&&typeof e.start==`number`){let n=zr(t(e.start)),r=zr(t(e.end));e.start=n.offset,e.end=r.offset,e.loc={start:{line:n.line,column:n.column-1,offset:n.offset},end:{line:r.line,column:r.column-1,offset:r.offset}},e.range=[n.offset,r.offset]}for(let n of Object.keys(e)){if(n===`loc`||n===`range`)continue;let r=e[n];if(Array.isArray(r))for(let e=0;e<r.length;e++)Os(r[e],t),r[e]?.type===`ParenthesizedExpression`&&(r[e]=r[e].expression);else r&&typeof r==`object`&&(Os(r,t),r.type===`ParenthesizedExpression`&&(e[n]=r.expression))}}}function ks(e,t,n,r=!1,i=!1,a=!0){let o=[],s=i?`({`:``,c=i?`})`:``,l=s+e+c,u=r&&Es(e);u&&!a&&Ds(`Unexpected empty expression`,n(0),`unexpected-empty-expression`);let d=t=>n(Math.max(0,Math.min(e.length,t-s.length))),f;try{f=r&&!u?t.acorn.parseExpressionAt(l,0,{...Ts,onComment:o}):t.acorn.parse(l,{...Ts,onComment:o})}catch(t){return{error:{cause:t,at:d(t.pos)},swallow:t.raisedAt>=s.length+e.length||t.message.startsWith(`Unterminated comment`)}}if(r&&!u){let n=l.slice(f.end,l.length-c.length);if(!Es(n))return{error:{at:d(f.end)},swallow:n.trimStart()[0]===`/`};if(!t.estree&&!i)return{program:f};f={type:`Program`,start:0,end:s.length+e.length,body:[{type:`ExpressionStatement`,expression:f,start:0,end:s.length+e.length}],sourceType:`module`,comments:[]}}if(f.comments=o,(t.estree||i||!r)&&Os(f,d),i){let e=f.body[0];(e.type!==`ExpressionStatement`||e.expression.type!==`ObjectExpression`)&&Ds("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",e.start,`non-spread`);let t=e.expression.properties;t[1]&&Ds(`Unexpected extra content in spread: only a single spread is supported`,t[1].start,`spread-extra`),t[0]&&t[0].type!==`SpreadElement`&&Ds("Unexpected `"+t[0].type+"` in code: only spread elements are supported",t[0].start,`non-spread`)}return{program:f}}function As(e,t,n){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t===125)return n;if(t===123||t===34||t===39||t===96||t===47)break}try{let r=n.acorn.tokenizer(e.slice(t),Ts),i=0;for(;;){let e=r.getToken(),n=e.type.label;if(n===`eof`)return-1;if(n===`{`||n==="${")i++;else if(n===`}`){if(!i)return t+e.start;i--}}}catch{return-1}}var js=/* @__PURE__ */ new WeakMap;function Ms(e,t){let n=js.get(e);return n?(t<n.from||n.at>=0&&t>n.at)&&(n.at=e.source.indexOf(`}`,t)):js.set(e,n={from:t,at:e.source.indexOf(`}`,t)}),n.from=t,n.at}function Ns(e,t,n,r){let i=e.source,a=t+1,o=0;for(let s=2;;s*=2,a++){for(;a<n;a++){let e=i.charCodeAt(a);if((e===10||e===13&&i.charCodeAt(a+1)!==10)&&++o===s)break}if(a>=n||2*(a-t)>n-t)return;let c=Bs(e,t+1,a,!0,!1),l=ks(c.value,r,c.map,!0,!1,!0);if(l.error&&!l.swallow)return l.error}}var Ps=/* @__PURE__ */ new WeakMap,Fs=``;function Is(e){Fs=e}function Ls(e,t){return e.source.charCodeAt(t)===32&&Fs.charCodeAt(I(e,t))===9}function Rs(e,t){return I(e,t)+ +!!Ls(e,t)}function zs(e,t,n,r,i=!1,a=!0){let o=t*bs+(i?xs:0)+(a?Ss:0),s=Ps.get(e)?.get(o);if(s&&s.end<=n)return s;let c=e.source,l,u=Ms(e,t+1),d=u>=0&&u<n;if(d&&!i&&(l=Ns(e,t,u,r)),d&&!l){let s=As(c.slice(0,n),t+1,r),d=s>=0?s:u;for(let s=d;s<n;s++){if(c.charCodeAt(s)!==125)continue;let n=Bs(e,t+1,s,!0),u=n.virtual?Bs(e,t+1,s,!0,!1):n,d=ks(u.value,r,u.map,!0,i,a);if(d.program){let t={end:s+1,value:n.value};r.estree&&(t.data={estree:d.program});let i=Ps.get(e);return i||(i=/* @__PURE__ */ new Map,Ps.set(e,i)),i.set(o,t),t}if(l=d.error,!d.swallow)break}}let f=-1;for(let r of e.lazy??[])r>t&&r<n&&(f<0||r<f)&&(f=r);f>=0&&Ds(ws,Rs(e,f),`unexpected-lazy`),e.boundary!==void 0&&Ds(ws,e.boundary,`unexpected-lazy`),l&&Ds(`Could not parse expression with acorn`,l.at,`acorn`),Ds("Unexpected end of file in expression, expected a corresponding closing brace for `{`",I(e,n),`unexpected-eof`)}function Bs(e,t,n,r,i=!0){let a=[],o=``,s=!1,c=I(e,t);for(let l=t;l<=n&&(e.lazy?.has(l)&&Ds(ws,Rs(e,l),`unexpected-lazy`),l!==n);l++){let t=e.source.charCodeAt(l);if(a.push(I(e,l)),o+=e.source[l],c=I(e,l)+1,r&&(t===10||t===13&&e.source.charCodeAt(l+1)!==10)){e.lazy?.has(l+1)&&Ds(ws,Rs(e,l+1),`unexpected-lazy`);let t=0,r=0,u=0;for(;l+1<n&&M(e.source.charCodeAt(l+1));){let n=I(e,l+1),i=e.source.charCodeAt(l+1)===9,a=Ls(e,l+1);if(t>=Cs){if(!a)break;r++}else t+=i?So(Fs,n):1,t>Cs&&(r=t-Cs);l++,u=n+1}if(r&&(s=!0,c=u,i)){o+=` `.repeat(r);for(let e=0;e<r;e++)a.push(u)}}}return a.push(c),{value:o,map:e=>a[e],virtual:s}}var Vs=e=>Dr(e)||e===36||e===95||e>127&&(/* @__PURE__ */ RegExp(`\\p{ID_Start}`,`u`)).test(String.fromCharCode(e)),Hs=e=>Vs(e)||Er(e)||e===45||e>127&&(/* @__PURE__ */ RegExp(`\\p{ID_Continue}`,`u`)).test(String.fromCharCode(e)),Us="a character that can start a name, such as a letter, `$`, or `_`",Ws="a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag",Gs="a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag",Ks="an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag",qs="a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag";function Js(e,t,n,r){let i=e.source;if(M(i.charCodeAt(t+1))||i.charCodeAt(t+1)===10||i.charCodeAt(t+1)===13)return;let a=t+1,o=()=>{e.lazy?.has(a)&&Ds("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Rs(e,a),`unexpected-lazy`,`micromark-extension-mdx-jsx`)},s=()=>{for(;a<n&&wr(i.charCodeAt(a));)o(),a++;o()},c=(t,r)=>{a>=n&&e.boundary!==void 0&&Ds("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",e.boundary,`unexpected-lazy`,`micromark-extension-mdx-jsx`);let o=i.charCodeAt(a),s=a>=n,c=o===96?"` ` `":i[a];Ds(`Unexpected `+(s?`end of file`:"character `"+c+"` (U+"+o.toString(16).toUpperCase().padStart(4,`0`)+`)`)+` `+t+`, expected `+r,I(e,a),s?`unexpected-eof`:`unexpected-character`,`micromark-extension-mdx-jsx`)};s();let l=i.charCodeAt(a)===47;l&&(a++,s());let u=(e,t)=>{Vs(i.charCodeAt(a))||c(`before `+e,t);let r=a++;for(;a<n&&Hs(i.charCodeAt(a));)a++;return i.slice(r,a)},d=null;if(i.charCodeAt(a)!==62){let e=i.charCodeAt(a);d=u(`name`,Us+(e===33?" (note: to create a comment in MDX, use `{/* text */}`)":l&&(e===42||e===47)?` (note: JS comments in JSX tags are not supported in MDX)`:``));let t=`name`;for(;;){let e=i.charCodeAt(a);!wr(e)&&(e===46&&t===`local name`||e===58&&t!==`name`||e!==46&&e!==58&&e!==47&&e!==62&&e!==123)&&c(`in `+t,Gs+(e===64&&t!==`local name`?" (note: to create a link in MDX, use `[text](url)`)":``)),s();let n=i.charCodeAt(a);if(n===46&&t!==`local name`||n===58&&t===`name`)a++,s(),t=n===46?`member name`:`local name`,d+=(n===46?`.`:`:`)+u(t,n===46?Ws:Us+(i.charCodeAt(a)===43||i.charCodeAt(a)>46&&i.charCodeAt(a)<58?" (note: to create a link in MDX, use `[text](url)`)":``));else{n!==47&&n!==62&&n!==123&&!Vs(n)&&c(`after `+t,Ws);break}}}let f=[],p=!1;for(;a<n&&i.charCodeAt(a)!==62;){s();let t=i.charCodeAt(a);if(t===62)break;if(t===47){l&&Ds("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",I(e,a),`unexpected-self-closing-slash`,`mdast-util-mdx-jsx`),p=!0,a++,s(),i.charCodeAt(a)!==62&&c(`after self-closing slash`,"`>` to end the tag"+(i.charCodeAt(a)===42||i.charCodeAt(a)===47?` (note: JS comments in JSX tags are not supported in MDX)`:``));break}let d=a;if(l&&Ds(`Unexpected attribute in closing tag, expected the end of the tag`,I(e,a),`unexpected-attribute`,`mdast-util-mdx-jsx`),t===123){let t=zs(e,a,n,r,!0,!1);a=t.end;let i={type:`mdxJsxExpressionAttribute`,value:t.value};t.data&&(i.data=t.data);let o=Br(I(e,d),I(e,a));o&&(i.position=o),f.push(i);continue}let m=u(`attribute name`,Ws),h=!1,g=i.charCodeAt(a);!wr(g)&&g!==47&&g!==58&&g!==61&&g!==62&&g!==123&&c(`in attribute name`,Ks);let _=a;if(s(),i.charCodeAt(a)===58){h=!0,a++,s(),m+=`:`+u(`local attribute name`,qs),_=a;let e=i.charCodeAt(a);!wr(e)&&e!==47&&e!==61&&e!==62&&e!==123&&c(`in local attribute name`,Ks),s()}let v=null;if(i.charCodeAt(a)===61){a++,s();let t=i.charCodeAt(a);if(t===34||t===39){for(a++,v=``;a<n&&i.charCodeAt(a)!==t;){o();let e=i.charCodeAt(a);if(e===38){let e=kr(i,a,n);if(e){v+=e.value,a=e.end;continue}}if(v+=i[a++],e===10||e===13&&i.charCodeAt(a)!==10)for(o();wr(i.charCodeAt(a))&&i.charCodeAt(a)!==10&&i.charCodeAt(a)!==13;)a++}a>=n&&c(`in attribute value`,"a corresponding closing quote `"+String.fromCharCode(t)+"`"),a++,_=a}else if(t===123){let t=zs(e,a,n,r,!1,!1);v={type:`mdxJsxAttributeValueExpression`,value:t.value},t.data&&(v.data=t.data),a=_=t.end}else c(`before attribute value`,"a character that can start an attribute value, such as `\"`, `'`, or `{`"+(t===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":``))}else i.charCodeAt(a)!==47&&i.charCodeAt(a)!==62&&i.charCodeAt(a)!==123&&!Vs(i.charCodeAt(a))&&c(h?`after local attribute name`:`after attribute name`,qs);let y=Br(I(e,d),I(e,_)),b={type:`mdxJsxAttribute`,name:m,value:v};y&&(b.position=y),f.push(b),s()}return a>=n&&c(d===null?`before name`:`before attribute name`,d===null?Us:Ws),{type:`tag`,start:t,end:a+1,name:d,attributes:f,close:l,selfClosing:p}}function Ys(e,t=e.close){return`<`+(t?`/`:``)+(e.name??``)+`>`}function Xs(e,t){let n=zr(e),r=t===void 0?void 0:zr(t);return n.line+`:`+n.column+(r?`-`+r.line+`:`+r.column:``)}function Zs(e){let t=``;for(let n=P.child[e];n;n=P.next[n])t+=P.value[n]??(P.extra[n]?.type===`mdxTextExpression`?P.extra[n].value:Zs(n));return t}function Qs(e,t){let n={source:e,base:0};Is(e);let r=/* @__PURE__ */ new Map,i=[],a=/* @__PURE__ */ new WeakMap,o=e=>r.get(e)?.at(-1)?.node??e,s,c=0,l=e=>e.start===e.next&&!e.padding,u=()=>Math.max(e.lastIndexOf(`
19
+ `),e.lastIndexOf(`\r`))+1;function d(t,r,i){let o=a.get(r);if(o)return o;let s=new Int32Array(r.length),c=!0;for(let e=1;e<r.length;e++)r[e].start!==r[e-1].next&&(c=!1);let d=0,f=/* @__PURE__ */ new Set;for(let e=0;e<r.length;e++)r[e].lazy&&f.add(d),c||(d+=r[e].padding??0),s[e]=d,d+=r[e].next-r[e].start;let p;if(c)p=r[0].start===0&&r.at(-1).next===e.length?n:{source:e.slice(r[0].start,r.at(-1).next),base:r[0].start,lazy:f};else{let t=new Int32Array(d+1),n=[],i=0;for(let a of r){for(let e=0;e<(a.padding??0);e++)n.push(` `),t[i++]=a.start-1;n.push(e.slice(a.start,a.next));for(let e=a.start;e<a.next;e++)t[i++]=e}t[i]=l(r.at(-1))?u():r.at(-1).next,p={source:n.join(``),base:0,map:t,lazy:f}}i&&!Lo(t,i)?p.boundary=l(i)?u():i.start:!i&&Io()&&(e.charCodeAt(e.length-1)===10||e.charCodeAt(e.length-1)===13)&&(p.boundary=e.length);let m={view:p,starts:s};return a.set(r,m),m}function f(e,t,n){t&&Ds("Unexpected closing tag `"+Ys(e)+"`, expected corresponding closing tag for `"+Ys(t,!1)+"` ("+Xs(t.start,t.end)+`)`,I(n,e.start),`end-tag-mismatch`,`mdast-util-mdx-jsx`),Ds("Unexpected closing slash `/` in tag, expected an open tag first",I(n,e.start+1),`unexpected-closing-slash`,`mdast-util-mdx-jsx`)}function p(e,n,r){let i=e.source.charCodeAt(n);if(i===123){let i=zs(e,n,r,t),a=F(N.Mdx,I(e,n),I(e,i.end));return P.extra[a]={type:`mdxTextExpression`,value:i.value},i.data&&(P.extra[a].data=i.data),{end:i.end,node:a}}if(i!==60)return;let a=Js(e,n,r,t);if(!a)return;let o=F(N.Mdx,I(e,n),I(e,a.end));return P.extra[o]={type:`mdxJsxTextElement`,name:a.name,attributes:a.attributes,children:[],tag:{...a,start:I(e,a.start),end:I(e,a.end)}},{end:a.end,node:o}}function m(n,r,a,s){let c=r;for(;;){for(;c+1<n.length&&!R(e,n[c+1]);)c++;let l=n[c].end,u=e.slice(a,l),d=i.length?`var `+i.join(`,`)+`
20
+ `:``,f=ks(d+u,t,e=>a+Math.max(0,e-d.length));if(!f.program){if(c+1<n.length&&f.swallow){c++;continue}Ds(`Could not parse import/exports with acorn`,f.error.at,`acorn`,`micromark-extension-mdxjs-esm`)}let p=f.program;d&&p.body.shift();for(let e of p.body)if([`ExportAllDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`,`ImportDeclaration`].includes(e.type)||Ds("Unexpected `"+e.type+"` in code: only import/exports are supported",e.start,`non-esm`,`micromark-extension-mdxjs-esm`),e.type===`ImportDeclaration`)for(let t of e.specifiers)i.push(t.local.name);let m=F(N.Mdx,a,l,o(s));return P.extra[m]={type:`mdxjsEsm`,value:u},t.estree&&(P.extra[m].data={estree:p}),c-r+1}}function h(t){return(e.startsWith(`import `,t.start)||e.startsWith(`export `,t.start))&&zr(t.start).column===1}function g(e,n){let r=e.source,i=[];for(;;){let a=r.charCodeAt(n);try{if(a===60){let a=Js(e,n,r.length,t);if(!a)break;i.push(a),n=a.end}else if(a===123){let a=zs(e,n,r.length,t);i.push({type:`expression`,start:n,end:a.end,result:a}),n=a.end}else break}catch(e){return{found:i,end:n,complete:!1,error:e}}for(;M(r.charCodeAt(n));)n++;if(n>=r.length||r.charCodeAt(n)===10||r.charCodeAt(n)===13)return{found:i,end:n,complete:!0};if(r.charCodeAt(n)===123&&i.at(-1).type===`expression`||r.charCodeAt(n)!==60&&r.charCodeAt(n)!==123)break}return{found:i,end:n,complete:!1}}function _(t,n,i,a,l){let u=n[i],p=u.start;for(;M(e.charCodeAt(p));)p++;let _=i&&!R(e,n[i-1])&&P.kind[P.last[o(a)]]===N.Definition;if(h(u)&&!_)return m(n,i,p,a);if(e.charCodeAt(p)!==60&&e.charCodeAt(p)!==123)return 0;let v=d(t,n,l),y=v.view,b=g(y,v.starts[i]+p-u.start);if(b.error)throw b.error;if(!b.complete)return 0;let{found:x,end:S}=b;for(let e of x){if(e.type===`expression`){let t=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.extra[t]={type:`mdxFlowExpression`,value:e.result.value},e.result.data&&(P.extra[t].data=e.result.data);continue}let t=r.get(a)??[];if(r.set(a,t),e.close){let n=t.at(-1);if(!n){let t=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.extra[t]={type:`mdxJsxFlowElement`,name:e.name,attributes:[],children:[],tag:{...e,start:I(y,e.start),end:I(y,e.end)}};continue}n.tag.name!==e.name&&!s&&(s=()=>f(e,n.tag,y),c=I(y,e.end)),P.end[n.node]=I(y,e.end),P.b[n.node]=I(y,e.start),t.pop()}else{let n=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.a[n]=I(y,e.end),P.extra[n]={type:`mdxJsxFlowElement`,name:e.name,attributes:e.attributes,children:[]},e.selfClosing||t.push({node:n,tag:{...e,start:I(y,e.start),end:I(y,e.end)}})}}let C=I(y,S),ee=i;for(;ee<n.length&&n[ee].end<C;)ee++;return ee-i+1}return{inline:p,flow:_,flowParent:o,esm:h,hasImports:()=>i.length>0,continuation(t,r,i,a){let o=r[i],s=o.start;for(;M(e.charCodeAt(s));)s++;if(e.charCodeAt(s)!==60&&e.charCodeAt(s)!==123)return;let{view:c,starts:l}=d(t,r,a);if(c.lazy?.size){let e=g(c,l[i]+s-o.start);if(e.error)throw e.error;return e.complete}if(c!==n){let e=g(c,l[i]+s-o.start);return!!e.error||e.complete}},interrupt(t){let r=t.start;for(;M(e.charCodeAt(r));)r++;if(e.charCodeAt(r)!==60&&e.charCodeAt(r)!==123)return!1;let i=g(n,r);return!!i.error||i.complete},continuationEnd(t,r,i,a=0,o){let s=t.start;for(;M(e.charCodeAt(s));)s++;let c=e.charCodeAt(s);if(c!==60&&c!==123)return t.end;let l=n,u=s;if(r&&i){let e=d(r,i,o);l=e.view,u=e.starts[a]+s-t.start}let f=g(l,u);if(f.error){if(f.error.ruleId===`unexpected-eof`){if(r&&o&&Lo(r,o))throw f.error;return e.length}return l.source.charCodeAt(f.end)===123?e.length:Math.max(f.error.place?.offset??I(l,f.end),t.end)}return Math.max(I(l,f.end),t.end)},finish(){let t={[N.Root]:`root`,[N.Paragraph]:`paragraph`,[N.Heading]:`heading`,[N.Blockquote]:`blockQuote`,[N.List]:`list`,[N.ListItem]:`listItem`,[N.Emphasis]:`emphasis`,[N.Strong]:`strong`,[N.Delete]:`strikethrough`,[N.Link]:`link`,[N.LinkReference]:`link`,[N.Image]:`image`,[N.ImageReference]:`image`,[N.FootnoteDefinition]:`gfmFootnoteDefinition`};function n(n,r){return P.kind[n]===N.Heading?/[\n\r]/.test(e.slice(P.start[n],P.end[n]))?`setextHeading`:`atxHeading`:P.kind[n]===N.TableCell?r?`tableHeader`:`tableData`:t[P.kind[n]]??`paragraph`}function i(e){s&&c<=e&&s()}function a(t,o,s=!1){let c=[],l=[];for(let e=P.child[t];e;e=P.next[e])l.push(e);P.child[t]=P.last[t]=0;for(let r of l){P.next[r]=P.prev[r]=0;let u=P.extra[r],d=u?.tag;if(d){if(delete u.tag,d.close){let r=c.at(-1);if(!r){if(i(d.end),o){o.name!==d.name&&f(d,o,{source:e,base:0});let r=n(t,s);Ds("Expected the closing tag `"+Ys(d)+"` either after the end of `"+r+"` ("+Xs(P.end[t])+") or another opening tag after the start of `"+r+"` ("+Xs(P.start[t])+`)`,d.start,`end-tag-mismatch`,`mdast-util-mdx-jsx`)}f(d,void 0,{source:e,base:0})}r.tag.name!==d.name&&(i(d.end),f(d,r.tag,{source:e,base:0})),P.end[r.node]=d.end,c.pop()}else qr(c.at(-1)?.node??t,r),d.selfClosing||c.push({tag:d,node:r})}else{let e=c.at(-1)?.tag??o,n=u?.type===`mdxJsxFlowElement`?{type:`tag`,start:P.start[r],end:P.a[r],name:u.name,attributes:u.attributes,close:!1,selfClosing:!1}:void 0,i=P.kind[t]===N.Table?r===l[0]:s;P.child[r]&&a(r,n??e,i),(P.kind[r]===N.Image||P.kind[r]===N.ImageReference)&&(P.value[r]=Zs(r),P.child[r]=P.last[r]=0),qr(c.at(-1)?.node??t,r)}}let u=c.at(-1);u&&(i(P.end[t]),Ds("Expected a closing tag for `"+Ys(u.tag,!1)+"` ("+Xs(u.tag.start,u.tag.end)+") before the end of `"+n(t,s)+"`",P.start[t],`end-tag-mismatch`,`mdast-util-mdx-jsx`));let d=r.get(t)?.at(-1);if(d){i(P.end[t]);let e="Expected a closing tag for `"+Ys(d.tag,!1)+"` ("+Xs(d.tag.start,d.tag.end)+`)`;if(P.kind[t]===N.Root)throw new vs({reason:e,ruleId:`end-tag-mismatch`,source:`mdast-util-mdx-jsx`});Ds(e+" before the end of `"+n(t,s)+"`",P.start[t],`end-tag-mismatch`,`mdast-util-mdx-jsx`)}}a(1),s?.()}}}function $s(e,t,n){let r=e.source;if(r.charCodeAt(t)===123&&r.charCodeAt(t+1)===35)for(let i=t+2;i<n;i++){let n=r.charCodeAt(i);if(n===10||n===13||n===92||n===123)return;if(n===125){let n=F(N.IdString,I(e,t+2),I(e,i));return P.value[n]=jr(r.slice(t+2,i)),{node:n,end:i+1}}}}function ec({source:e,config:t,hooks:n,from:r=0}){e.charCodeAt(0)===65279&&(e=e.slice(1)),e.indexOf(`\0`)>=0&&(e=e.replaceAll(`\0`,`�`)),Rr(e,t.positions),Kr(),go(),na(t,e);let i=F(N.Root,0,e.length),a=t.mdx?Qs(e,t.mdx):void 0,o=t.headingId?(e,t,n)=>$s(e,t,n)??a?.inline(e,t,n):a?.inline,s={source:e,config:t,definitions:/* @__PURE__ */ new Map,footnotes:/* @__PURE__ */ new Set,...a,flow:n?.flow??a?.flow,inline:n?.inline??o};return s.inlineMarkers=!!o&&!n?.inline,hs(s,vo(e,r),i,r===0),gs(s),a?.finish(),t.gfm&&mi(i),s.definitions.size>0||s.footnotes.size>0||a?.hasImports(),Yr(i)}var tc=4;function nc(e,t){let n=t.join(`/`),r=e.scopes.get(n);if(!r){let i=e.characters.map(e=>e?.filter(e=>rc(t,e.pattern))),a=[],o=[];for(let e=0;e<i.length;e++){let t=i[e];if(!t?.length)continue;let n=`\\u`+e.toString(16).padStart(tc,`0`);if(t.some(e=>!e.before&&!e.after&&!e.pattern.atBreak))a.push(n);else for(let{pattern:e}of t){let t=(e.atBreak?`[\\r\\n][\\t ]*`:``)+(e.before||``);o.push((t?`(?<=`+t+`)`:``)+n+(e.after?`(?=`+e.after+`)`:``))}}a.length&&o.unshift(`[`+a.join(``)+`]`),r={characters:i,expression:new RegExp(o.join(`|`)||`(?!)`,`g`)},e.scopes.set(n,r)}return r}function rc(e,t){return ic(e,t.inConstruct,!0)&&!ic(e,t.notInConstruct,!1)}function ic(e,t,n){if(typeof t==`string`)return e.includes(t);if(!t?.length)return n;for(let n of t)if(e.includes(n))return!0;return!1}function ac(e,t,n){if(n.digits){let n=t;for(;n&&e.charCodeAt(n-1)>=48&&e.charCodeAt(n-1)<=57;)n--;return n===t?-1:n}if(n.characters)return t&&n.characters[e.charCodeAt(t-1)]?t-1:-1;let r=n.literal||``;return t>=r.length&&e.startsWith(r,t-r.length)?t-r.length:-1}function oc(e,t,n){if(n.end&&t===e.length)return t;if(n.characters)return n.characters[e.charCodeAt(t)]?t+1:-1;let r=n.literal||``;return e.startsWith(r,t)?t+r.length:-1}function sc(e){return e>=33&&e<=47||e>=58&&e<=64||e>=91&&e<=96||e>=123&&e<=126}function cc(e,t=``){let n=0,r=``;for(let i=e.indexOf(`\\`);i!==-1;i=e.indexOf(`\\`,i+1))sc(i+1<e.length?e.charCodeAt(i+1):t.charCodeAt(0))&&(r+=e.slice(n,i)+`\\`,n=i);return r+e.slice(n)}function lc(e,t,n){let r=n.before||``,i=n.after||``,a=r+(t||``)+i,o=e.rules,s=e.scopedRules||nc(o,e.stack);e.customHandlers||(e.scopedRules=s);let{characters:c,expression:l}=s;l.lastIndex=0;let u=o.custom?null:l.exec(a);if(!o.custom&&!u)return cc(t||``,i);let d=o.next;d.fill(0);let f=[],p=[];if(o.custom){for(let{pattern:t,expression:n}of o.custom){if(!rc(e.stack,t))continue;n.lastIndex=0;let r;for(;r=n.exec(a);){let e=`before`in t||!!t.atBreak,n=r.index+(e?r[1].length:0),i=4|!!e|(`after`in t?2:0);f[n]=f[n]?f[n]&i:i}}for(let e=0;e<f.length;e++)f[e]&&p.push(e)}for(;u;u=l.exec(a)){let e=u.index,t=c[a.charCodeAt(e)];if(!t)continue;let n=0;for(let r of t){let t=r.before?ac(a,e,r.before):e;if(t<0)continue;if(r.pattern.atBreak){for(;t&&(a.charCodeAt(t-1)===32||a.charCodeAt(t-1)===9);)t--;if(!t||a.charCodeAt(t-1)!==10&&a.charCodeAt(t-1)!==13)continue;t--}if(t<d[r.index])continue;let i=r.after?oc(a,e+1,r.after):e+1;if(i<0)continue;d[r.index]=i;let o=4|(`before`in r.pattern||r.pattern.atBreak?1:0)|(`after`in r.pattern?2:0);n=n?n&o:o}n&&(f[e]=n,p.push(e))}let m=r.length,h=a.length-i.length,g=``;for(let e of p){if(e<m||e>=h)continue;let t=f[e];if(e+1<h&&t&2&&f[e+1]===4||t&1&&e&&f[e-1]===4)continue;m!==e&&(g+=cc(a.slice(m,e),`\\`)),m=e;let r=a.charCodeAt(e);sc(r)&&!n.encode?.includes(a[e])?g+=`\\`:(g+=`&#x`+r.toString(16).toUpperCase()+`;`,m++)}return g+cc(a.slice(m,h),i)}dc.peek=uc;function uc(){return`[`}function dc(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}fc.peek=pc;function fc(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function pc(){return`~`}function mc(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function hc(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function gc(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function _c(e){return e<0||e===32}var vc=bc(/* @__PURE__ */ RegExp(`\\p{P}|\\p{S}`,`u`)),yc=bc(/\s/);function bc(e){return t;function t(t){return t>-1&&e.test(String.fromCharCode(t))}}function xc(e){if(_c(e)||yc(e))return 1;if(vc(e))return 2}function Sc(e,t,n){let r=xc(e),i=xc(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Cc.peek=wc;function Cc(e,t,n,r){let i=hc(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Sc(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=gc(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Sc(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+gc(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function wc(e,t,n){return n.options.emphasis||`*`}function Tc(e){return e.value?e.value||``:e.alt?e.alt||``:e.children?e.children.map(Tc).join(``):``}Ec.peek=Dc;function Ec(e){return e.value||``}function Dc(){return`<`}Oc.peek=kc;function Oc(e,t,n,r){let i=mc(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function kc(){return`!`}Ac.peek=jc;function Ac(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function jc(){return`!`}Mc.peek=Fc;function Mc(e,t,n){let r=e.value||``,i=Nc(r,"`",1);return/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `),i+Pc(r,n)+i}function Nc(e,t,n){let r=t.charCodeAt(0),i=/* @__PURE__ */ new Set;for(let n=e.indexOf(t);n!==-1;n=e.indexOf(t,n+1)){let t=n;for(;e.charCodeAt(n+1)===r;)n++;i.add(n-t+1)}let a=n;for(;i.has(a);)a++;return t.repeat(a)}function Pc(e,t){if(!e.includes(`
21
+ `)&&!e.includes(`\r`))return e;for(let n of t.rules.breaks){n.lastIndex=0;let t;for(;t=n.exec(e);){let n=t.index;e.charCodeAt(n)===10&&e.charCodeAt(n-1)===13&&n--,e=e.slice(0,n)+` `+e.slice(t.index+1)}}return e}function Fc(){return"`"}function Ic(e,t){let n=Tc(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][a-z+.-]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}Lc.peek=Rc;function Lc(e,t,n,r){let i=mc(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(Ic(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function Rc(e,t,n){return Ic(e,n)?`<`:`[`}zc.peek=Bc;function zc(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Bc(){return`[`}function Vc(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Hc.peek=Uc;function Hc(e,t,n,r){let i=Vc(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Sc(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=gc(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Sc(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+gc(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Uc(e,t,n){return n.options.strong||`*`}Gc.peek=Wc;function Wc(e,t,n,r){let i=e.value||``,a=i.charCodeAt(0);return!n.rules.custom&&a!==92&&!n.rules.characters[a]?i.charAt(0):n.rules.custom?Gc(e,t,n,r):lc(n,i.slice(0,2),{before:r.before,after:i.length>2?i.charAt(2):r.after}).charAt(0)}function Gc(e,t,n,r){return n.safe(e.value,r)}function Kc(e,t={}){return qc({source:e,config:_s(t.syntax,t.positions??!0)})}function qc({source:e,config:t,from:n=0}){try{return ec({source:e,config:t,from:n})}catch(e){if(e instanceof vs)return e;throw e}}function Jc(e=[`yaml`,`toml`]){return{name:`frontmatter`,yaml:e.includes(`yaml`),toml:e.includes(`toml`)}}function Yc(e={}){return{name:`gfm`,singleTilde:e.singleTilde??!0}}function Xc(e={}){return{name:`math`,singleDollarTextMath:e.singleDollarTextMath??!0}}var Zc=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Qc=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],$c=`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,el=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,tl={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},nl=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,rl={5:nl,"5module":nl+` export import`,6:nl+` const class extends export import super`},il=/^in(stanceof)?$/,al=RegExp(`[`+el+`]`),ol=RegExp(`[`+el+$c+`]`);function sl(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function cl(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&al.test(String.fromCharCode(e)):t!==!1&&sl(e,Qc)}function ll(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&ol.test(String.fromCharCode(e)):t===!1?!1:sl(e,Qc)||sl(e,Zc)}var z=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function ul(e,t){return new z(e,{beforeExpr:!0,binop:t})}var dl={beforeExpr:!0},fl={startsExpr:!0},pl={};function B(e,t){return t===void 0&&(t={}),t.keyword=e,pl[e]=new z(e,t)}var V={num:new z(`num`,fl),regexp:new z(`regexp`,fl),string:new z(`string`,fl),name:new z(`name`,fl),privateId:new z(`privateId`,fl),eof:new z(`eof`),bracketL:new z(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new z(`]`),braceL:new z(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new z(`}`),parenL:new z(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new z(`)`),comma:new z(`,`,dl),semi:new z(`;`,dl),colon:new z(`:`,dl),dot:new z(`.`),question:new z(`?`,dl),questionDot:new z(`?.`),arrow:new z(`=>`,dl),template:new z(`template`),invalidTemplate:new z(`invalidTemplate`),ellipsis:new z(`...`,dl),backQuote:new z("`",fl),dollarBraceL:new z("${",{beforeExpr:!0,startsExpr:!0}),eq:new z(`=`,{beforeExpr:!0,isAssign:!0}),assign:new z(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new z(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new z(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ul(`||`,1),logicalAND:ul(`&&`,2),bitwiseOR:ul(`|`,3),bitwiseXOR:ul(`^`,4),bitwiseAND:ul(`&`,5),equality:ul(`==/!=/===/!==`,6),relational:ul(`</>/<=/>=`,7),bitShift:ul(`<</>>/>>>`,8),plusMin:new z(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ul(`%`,10),star:ul(`*`,10),slash:ul(`/`,10),starstar:new z(`**`,{beforeExpr:!0}),coalesce:ul(`??`,1),_break:B(`break`),_case:B(`case`,dl),_catch:B(`catch`),_continue:B(`continue`),_debugger:B(`debugger`),_default:B(`default`,dl),_do:B(`do`,{isLoop:!0,beforeExpr:!0}),_else:B(`else`,dl),_finally:B(`finally`),_for:B(`for`,{isLoop:!0}),_function:B(`function`,fl),_if:B(`if`),_return:B(`return`,dl),_switch:B(`switch`),_throw:B(`throw`,dl),_try:B(`try`),_var:B(`var`),_const:B(`const`),_while:B(`while`,{isLoop:!0}),_with:B(`with`),_new:B(`new`,{beforeExpr:!0,startsExpr:!0}),_this:B(`this`,fl),_super:B(`super`,fl),_class:B(`class`,fl),_extends:B(`extends`,dl),_export:B(`export`),_import:B(`import`,fl),_null:B(`null`,fl),_true:B(`true`,fl),_false:B(`false`,fl),_in:B(`in`,{beforeExpr:!0,binop:7}),_instanceof:B(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:B(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:B(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:B(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},ml=/\r\n?|\n|\u2028|\u2029/,hl=new RegExp(ml.source,`g`);function gl(e){return e===10||e===13||e===8232||e===8233}function _l(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(gl(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var vl=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,yl=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,bl=Object.prototype,xl=bl.hasOwnProperty,Sl=bl.toString,Cl=Object.hasOwn||(function(e,t){return xl.call(e,t)}),wl=Array.isArray||(function(e){return Sl.call(e)===`[object Array]`}),Tl=/* @__PURE__ */ Object.create(null);function El(e){return Tl[e]||(Tl[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function Dl(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Ol=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,kl=function(e,t){this.line=e,this.column=t};kl.prototype.offset=function(e){return new kl(this.line,this.column+e)};var Al=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function jl(e,t){for(var n=1,r=0;;){var i=_l(e,r,t);if(i<0)return new kl(n,t-r);++n,r=i}}var Ml={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Nl=!1;function Pl(e){var t={};for(var n in Ml)t[n]=e&&Cl(e,n)?e[n]:Ml[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Nl&&typeof console==`object`&&console.warn&&(Nl=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
22
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),wl(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}if(wl(t.onComment)&&(t.onComment=Fl(t,t.onComment)),t.sourceType===`commonjs`&&t.allowAwaitOutsideFunction)throw Error(`Cannot use allowAwaitOutsideFunction with sourceType: commonjs`);return t}function Fl(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new Al(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var Il=1,Ll=2,Rl=4,zl=8,Bl=16,Vl=32,Hl=64,Ul=128,Wl=256,Gl=512,Kl=1024,ql=Il|Ll|Wl;function Jl(e,t){return Ll|(e?Rl:0)|(t?zl:0)}var Yl=0,Xl=1,Zl=2,Ql=3,$l=4,eu=5,tu=function(e,t,n){this.options=e=Pl(e),this.sourceFile=e.sourceFile,this.keywords=El(rl[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=tl[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=El(r);var i=(r?r+` `:``)+tl.strict;this.reservedWordsStrict=El(i),this.reservedWordsStrictBind=El(i+` `+tl.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
23
+ `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ml).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=V.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=/* @__PURE__ */ Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType===`commonjs`?Ll:Il),this.regexpState=null,this.privateNameStack=[]},nu={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};tu.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},nu.inFunction.get=function(){return(this.currentVarScope().flags&Ll)>0},nu.inGenerator.get=function(){return(this.currentVarScope().flags&zl)>0},nu.inAsync.get=function(){return(this.currentVarScope().flags&Rl)>0},nu.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(Wl|Gl))return!1;if(t&Ll)return(t&Rl)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},nu.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Il)},nu.allowSuper.get=function(){return(this.currentThisScope().flags&Hl)>0||this.options.allowSuperOutsideMethod},nu.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ul)>0},nu.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},nu.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(Wl|Gl)||t&Ll&&!(t&Bl))return!0}return!1},nu.allowUsing.get=function(){var e=this.currentScope().flags;return!(e&Kl||!this.inModule&&e&Il)},nu.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Wl)>0},tu.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},tu.parse=function(e,t){return new this(t,e).parse()},tu.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},tu.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(tu.prototype,nu);var ru=tu.prototype,iu=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ru.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){yl.lastIndex=e,e+=yl.exec(this.input)[0].length;var t=iu.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){yl.lastIndex=e+t[0].length;var n=yl.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||ml.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,yl.lastIndex=e,e+=yl.exec(this.input)[0].length,this.input[e]===`;`&&e++}},ru.eat=function(e){return this.type===e&&(this.next(),!0)},ru.isContextual=function(e){return this.type===V.name&&this.value===e&&!this.containsEsc},ru.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},ru.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ru.canInsertSemicolon=function(){return this.type===V.eof||this.type===V.braceR||ml.test(this.input.slice(this.lastTokEnd,this.start))},ru.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ru.semicolon=function(){!this.eat(V.semi)&&!this.insertSemicolon()&&this.unexpected()},ru.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},ru.expect=function(e){this.eat(e)||this.unexpected()},ru.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var au=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ru.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},ru.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},ru.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},ru.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var H=tu.prototype;H.parseTopLevel=function(e){var t=/* @__PURE__ */ Object.create(null);for(e.body||=[];this.type!==V.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType===`commonjs`?`script`:this.options.sourceType,this.finishNode(e,`Program`)};var ou={kind:`loop`},su={kind:`switch`};H.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;yl.lastIndex=this.pos;var t=yl.exec(this.input),n=this.pos+t[0].length,r=this.fullCharCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123)return!0;if(cl(r)){var i=n;do n+=r<=65535?1:2;while(ll(r=this.fullCharCodeAt(n)));if(r===92)return!0;var a=this.input.slice(i,n);if(!il.test(a))return!0}return!1},H.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;yl.lastIndex=this.pos;var e=yl.exec(this.input),t=this.pos+e[0].length,n;return!ml.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(ll(n=this.fullCharCodeAt(t+8))||n===92))},H.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?`await`:`using`))return!1;yl.lastIndex=this.pos;var n=yl.exec(this.input),r=this.pos+n[0].length;if(ml.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,a;if(this.input.slice(r,i)!==`using`||i===this.input.length||ll(a=this.fullCharCodeAt(i))||a===92)return!1;yl.lastIndex=i;var o=yl.exec(this.input);if(r=i+o[0].length,o&&ml.test(this.input.slice(i,r)))return!1}var s=this.fullCharCodeAt(r);if(!cl(s)&&s!==92)return!1;var c=r;do r+=s<=65535?1:2;while(ll(s=this.fullCharCodeAt(r)));if(s===92)return!0;var l=this.input.slice(c,r);return!(il.test(l)||t&&l===`of`)},H.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},H.isUsing=function(e){return this.isUsingKeyword(!1,e)},H.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=V._var,a=`let`),r){case V._break:case V._continue:return this.parseBreakContinueStatement(i,r.keyword);case V._debugger:return this.parseDebuggerStatement(i);case V._do:return this.parseDoStatement(i);case V._for:return this.parseForStatement(i);case V._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case V._class:return e&&this.unexpected(),this.parseClass(i,!0);case V._if:return this.parseIfStatement(i);case V._return:return this.parseReturnStatement(i);case V._switch:return this.parseSwitchStatement(i);case V._throw:return this.parseThrowStatement(i);case V._try:return this.parseTryStatement(i);case V._const:case V._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case V._while:return this.parseWhileStatement(i);case V._with:return this.parseWithStatement(i);case V.braceL:return this.parseBlock(!0,i);case V.semi:return this.parseEmptyStatement(i);case V._export:case V._import:if(this.options.ecmaVersion>10&&r===V._import){yl.lastIndex=this.pos;var o=yl.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===V._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.isAwaitUsing(!1)?`await using`:this.isUsing(!1)?`using`:null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),l===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.next(),this.parseVar(i,!1,l),this.semicolon(),this.finishNode(i,`VariableDeclaration`);var u=this.value,d=this.parseExpression();return r===V.name&&d.type===`Identifier`&&this.eat(V.colon)?this.parseLabeledStatement(i,u,d,e):this.parseExpressionStatement(i,d)}},H.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(V.semi)||this.insertSemicolon()?e.label=null:this.type===V.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},H.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},H.parseDoStatement=function(e){return this.next(),this.labels.push(ou),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(V._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(V.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},H.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(ou),this.enterScope(0),this.expect(V.parenL),this.type===V.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===V._var||this.type===V._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),this.parseForAfterInit(e,r,t)}var a=this.isContextual(`let`),o=!1,s=this.isUsing(!0)?`using`:this.isAwaitUsing(!0)?`await using`:null;if(s){var c=this.startNode();return this.next(),s===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new au,d=this.start,f=t>-1?this.parseExprSubscripts(u,`await`):this.parseExpression(!0,u);return this.type===V._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(t>-1?(this.type===V._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===d&&!l&&f.type===`Identifier`&&f.name===`async`?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&o&&this.raise(f.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(f,!1,u),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))},H.parseForAfterInit=function(e,t,n){return(this.type===V._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===V._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},H.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,lu|(n?0:uu),!1,t)},H.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(V._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},H.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,`'return' outside of function`),this.next(),this.eat(V.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},H.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(V.braceL),this.labels.push(su),this.enterScope(Kl);for(var t,n=!1;this.type!==V.braceR;)if(this.type===V._case||this.type===V._default){var r=this.type===V._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(V.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},H.parseThrowStatement=function(e){return this.next(),ml.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var cu=[];H.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?Vl:0),this.checkLValPattern(e,t?$l:Zl),this.expect(V.parenR),e},H.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===V._catch){var t=this.startNode();this.next(),this.eat(V.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(V._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},H.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},H.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ou),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},H.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},H.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},H.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===V._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},H.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},H.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(V.braceL),e&&this.enterScope(0);this.type!==V.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},H.parseFor=function(e,t){return e.init=t,this.expect(V.semi),e.test=this.type===V.semi?null:this.parseExpression(),this.expect(V.semi),e.update=this.type===V.parenR?null:this.parseExpression(),this.expect(V.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},H.parseForIn=function(e,t){var n=this.type===V._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(V.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},H.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(V.eq)?i.init=this.parseMaybeAssign(t):!r&&n===`const`&&!(this.type===V._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():!r&&(n===`using`||n===`await using`)&&this.options.ecmaVersion>=17&&this.type!==V._in&&!this.isContextual(`of`)?this.raise(this.lastTokEnd,`Missing initializer in `+n+` declaration`):!r&&i.id.type!==`Identifier`&&(!t||this.type!==V._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):i.init=null,e.declarations.push(this.finishNode(i,`VariableDeclarator`)),!this.eat(V.comma))break}return e},H.parseVarId=function(e,t){e.id=t===`using`||t===`await using`?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?Xl:Zl,!1)};var lu=1,uu=2,du=4;H.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===V.star&&t&uu&&this.unexpected(),e.generator=this.eat(V.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&lu&&(e.id=t&du&&this.type!==V.name?null:this.parseIdent(),e.id&&!(t&uu)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Xl:Zl:Ql));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Jl(e.async,e.generator)),t&lu||(e.id=this.type===V.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&lu?`FunctionDeclaration`:`FunctionExpression`)},H.parseFunctionParams=function(e){this.expect(V.parenL),e.params=this.parseBindingList(V.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},H.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(V.braceL);this.type!==V.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raiseRecoverable(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&fu(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},H.parseClassElement=function(e){if(this.eat(V.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(V.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===V.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===V.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(V.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===V.parenL||o!==`method`||i||a){var l=!n.static&&pu(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},H.isClassElementNameStart=function(){return this.type===V.name||this.type===V.privateId||this.type===V.num||this.type===V.string||this.type===V.bracketL||this.type.keyword},H.parseClassElementName=function(e){this.type===V.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},H.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&pu(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},H.parseClassField=function(e){return pu(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&pu(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(V.eq)?(this.enterScope(Gl|Hl),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,`PropertyDefinition`)},H.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Wl|Hl);this.type!==V.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},H.parseClassId=function(e,t){this.type===V.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Zl,!1)):(t===!0&&this.unexpected(),e.id=null)},H.parseClassSuper=function(e){e.superClass=this.eat(V._extends)?this.parseExprSubscripts(null,!1):null},H.enterClassBody=function(){var e={declared:/* @__PURE__ */ Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},H.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];Cl(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function fu(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function pu(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}H.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==V.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`)},H.parseExport=function(e,t){if(this.next(),this.eat(V.star))return this.parseExportAllDeclaration(e,t);if(this.eat(V._default))return this.checkExport(t,`default`,this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,`ExportDefaultDeclaration`);if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==V.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type===`Literal`&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},H.parseExportDeclaration=function(e){return this.parseStatement(null)},H.parseExportDefaultDeclaration=function(){var e;if(this.type===V._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,lu|du,!1,e)}if(this.type===V._class){var n=this.startNode();return this.parseClass(n,`nullableID`)}var r=this.parseMaybeAssign();return this.semicolon(),r},H.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),Cl(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},H.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`&&this.checkPatternExport(e,t.argument)},H.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},H.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},H.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual(`as`)?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,`ExportSpecifier`)},H.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(V.braceL);!this.eat(V.braceR);){if(n)n=!1;else if(this.expect(V.comma),this.afterTrailingComma(V.braceR))break;t.push(this.parseExportSpecifier(e))}return t},H.parseImport=function(e){return this.next(),this.type===V.string?(e.specifiers=cu,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===V.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},H.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual(`as`)?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Zl),this.finishNode(e,`ImportSpecifier`)},H.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Zl),this.finishNode(e,`ImportDefaultSpecifier`)},H.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual(`as`),e.local=this.parseIdent(),this.checkLValSimple(e.local,Zl),this.finishNode(e,`ImportNamespaceSpecifier`)},H.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===V.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(V.comma)))return e;if(this.type===V.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(V.braceL);!this.eat(V.braceR);){if(t)t=!1;else if(this.expect(V.comma),this.afterTrailingComma(V.braceR))break;e.push(this.parseImportSpecifier())}return e},H.parseWithClause=function(){var e=[];if(!this.eat(V._with))return e;this.expect(V.braceL);for(var t={},n=!0;!this.eat(V.braceR);){if(n)n=!1;else if(this.expect(V.comma),this.afterTrailingComma(V.braceR))break;var r=this.parseImportAttribute(),i=r.key.type===`Identifier`?r.key.name:r.key.value;Cl(t,i)&&this.raiseRecoverable(r.key.start,`Duplicate attribute key '`+i+`'`),t[i]=!0,e.push(r)}return e},H.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===V.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`),this.expect(V.colon),this.type!==V.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,`ImportAttribute`)},H.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===V.string){var e=this.parseLiteral(this.value);return Ol.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},H.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},H.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var mu=tu.prototype;mu.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},mu.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},mu.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},mu.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==V.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},mu.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case V.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(V.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case V.braceL:return this.parseObj(!0)}return this.parseIdent()},mu.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(V.comma),t&&this.type===V.comma)i.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===V.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===V.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},mu.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},mu.parseBindingListItem=function(e){return e},mu.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(V.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},mu.checkLValSimple=function(e,t,n){t===void 0&&(t=Yl);var r=t!==Yl;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===Zl&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(Cl(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==eu&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},mu.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=Yl),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},mu.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=Yl),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var hu=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},gu={b_stat:new hu(`{`,!1),b_expr:new hu(`{`,!0),b_tmpl:new hu("${",!1),p_stat:new hu(`(`,!1),p_expr:new hu(`(`,!0),q_tmpl:new hu("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new hu(`function`,!1),f_expr:new hu(`function`,!0),f_expr_gen:new hu(`function`,!0,!1,null,!0),f_gen:new hu(`function`,!1,!1,null,!0)},_u=tu.prototype;_u.initialContext=function(){return[gu.b_stat]},_u.curContext=function(){return this.context[this.context.length-1]},_u.braceIsBlock=function(e){var t=this.curContext();return t===gu.f_expr||t===gu.f_stat?!0:e===V.colon&&(t===gu.b_stat||t===gu.b_expr)?!t.isExpr:e===V._return||e===V.name&&this.exprAllowed?ml.test(this.input.slice(this.lastTokEnd,this.start)):e===V._else||e===V.semi||e===V.eof||e===V.parenR||e===V.arrow?!0:e===V.braceL?t===gu.b_stat:e===V._var||e===V._const||e===V.name?!1:!this.exprAllowed},_u.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},_u.updateContext=function(e){var t,n=this.type;n.keyword&&e===V.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},_u.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},V.parenR.updateContext=V.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===gu.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},V.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?gu.b_stat:gu.b_expr),this.exprAllowed=!0},V.dollarBraceL.updateContext=function(){this.context.push(gu.b_tmpl),this.exprAllowed=!0},V.parenL.updateContext=function(e){var t=e===V._if||e===V._for||e===V._with||e===V._while;this.context.push(t?gu.p_stat:gu.p_expr),this.exprAllowed=!0},V.incDec.updateContext=function(){},V._function.updateContext=V._class.updateContext=function(e){e.beforeExpr&&e!==V._else&&(e!==V.semi||this.curContext()===gu.p_stat)&&!(e===V._return&&ml.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==V.colon&&e!==V.braceL||this.curContext()!==gu.b_stat)?this.context.push(gu.f_expr):this.context.push(gu.f_stat),this.exprAllowed=!1},V.colon.updateContext=function(){this.curContext().token===`function`&&this.context.pop(),this.exprAllowed=!0},V.backQuote.updateContext=function(){this.curContext()===gu.q_tmpl?this.context.pop():this.context.push(gu.q_tmpl),this.exprAllowed=!1},V.star.updateContext=function(e){if(e===V._function){var t=this.context.length-1;this.context[t]===gu.f_expr?this.context[t]=gu.f_expr_gen:this.context[t]=gu.f_gen}this.exprAllowed=!0},V.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==V.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var U=tu.prototype;U.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},U.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===V.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(V.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},U.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new au,r=!0);var s=this.start,c=this.startLoc;(this.type===V.parenL||this.type===V.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===V.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===V.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},U.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(V.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(V.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},U.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},U.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==V._in)&&a>r){var o=this.type===V.logicalOR||this.type===V.logicalAND,s=this.type===V.coalesce;s&&(a=V.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===V.coalesce||s&&(this.type===V.logicalOR||this.type===V.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},U.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},U.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===V.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&vu(s.argument)?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&yu(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===V.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==V._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(V.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function vu(e){return e.type===`Identifier`||e.type===`ParenthesizedExpression`&&vu(e.expression)}function yu(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&yu(e.expression)||e.type===`ParenthesizedExpression`&&yu(e.expression)}U.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},U.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},U.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(V.arrow)},U.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},U.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(V.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(V.bracketL);if(l||c&&this.type!==V.parenL&&this.type!==V.backQuote||this.eat(V.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(V.bracketR)):u.property=this.type===V.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(V.parenL)){var d=new au,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(V.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===V.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},U.parseExprAtom=function(e,t,n){this.type===V.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case V._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),r=this.startNode(),this.next(),this.type===V.parenL&&!this.allowDirectSuper&&this.raise(r.start,`super() call outside constructor of a subclass`),this.type!==V.dot&&this.type!==V.bracketL&&this.type!==V.parenL&&this.unexpected(),this.finishNode(r,`Super`);case V._this:return r=this.startNode(),this.next(),this.finishNode(r,`ThisExpression`);case V.name:var a=this.start,o=this.startLoc,s=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&c.name===`async`&&!this.canInsertSemicolon()&&this.eat(V._function))return this.overrideContext(gu.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(V.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name===`async`&&this.type===V.name&&!s&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(V.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case V.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case V.num:case V.string:return this.parseLiteral(this.value);case V._null:case V._true:case V._false:return r=this.startNode(),r.value=this.type===V._null?null:this.type===V._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,`Literal`);case V.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case V.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(V.bracketR,!0,!0,e),this.finishNode(r,`ArrayExpression`);case V.braceL:return this.overrideContext(gu.b_expr),this.parseObj(!1,e);case V._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case V._class:return this.parseClass(this.startNode(),!1);case V._new:return this.parseNew();case V.backQuote:return this.parseTemplate();case V._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},U.parseExprAtomDefault=function(){this.unexpected()},U.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`),this.next(),this.type===V.parenL&&!e)return this.parseDynamicImport(t);if(this.type===V.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name=`import`,t.meta=this.finishNode(n,`Identifier`),this.parseImportMeta(t)}this.unexpected()},U.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(V.parenR)?e.options=null:(this.expect(V.comma),this.afterTrailingComma(V.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(V.parenR)||(this.expect(V.comma),this.afterTrailingComma(V.parenR)||this.unexpected())));else if(!this.eat(V.parenR)){var t=this.start;this.eat(V.comma)&&this.eat(V.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},U.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},U.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value==null?t.raw.slice(0,-1).replace(/_/g,``):t.value.toString()),this.next(),this.finishNode(t,`Literal`)},U.parseParenExpression=function(){this.expect(V.parenL);var e=this.parseExpression();return this.expect(V.parenR),e},U.shouldParseArrow=function(e){return!this.canInsertSemicolon()},U.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new au,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==V.parenR;){if(l?l=!1:this.expect(V.comma),a&&this.afterTrailingComma(V.parenR,!0)){u=!0;break}if(this.type===V.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===V.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(V.parenR),e&&this.shouldParseArrow(c)&&this.eat(V.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},U.parseParenItem=function(e){return e},U.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var bu=[];U.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===V.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name=`new`,e.meta=this.finishNode(t,`Identifier`),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),e.arguments=this.eat(V.parenL)?this.parseExprList(V.parenR,this.options.ecmaVersion>=8,!1):bu,this.finishNode(e,`NewExpression`)},U.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===V.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value.replace(/\r\n?/g,`
24
+ `),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
25
+ `),cooked:this.value},this.next(),n.tail=this.type===V.backQuote,this.finishNode(n,`TemplateElement`)},U.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===V.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(V.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(V.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},U.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===V.name||this.type===V.num||this.type===V.string||this.type===V.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===V.star)&&!ml.test(this.input.slice(this.lastTokEnd,this.start))},U.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(V.braceR);){if(r)r=!1;else if(this.expect(V.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(V.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},U.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(V.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===V.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===V.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(V.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(V.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},U.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind===`get`?0:1;if(e.value.params.length!==n){var r=e.value.start;e.kind===`get`?this.raiseRecoverable(r,`getter should have no params`):this.raiseRecoverable(r,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)},U.parsePropertyValue=function(e,t,n,r,i,a,o,s){(n||r)&&this.type===V.colon&&this.unexpected(),this.eat(V.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`):this.options.ecmaVersion>=6&&this.type===V.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind=`init`):!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==V.comma&&this.type!==V.braceR&&this.type!==V.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===V.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind=`init`,e.shorthand=!0):this.unexpected()},U.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(V.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(V.bracketR),e.key;e.computed=!1}return e.key=this.type===V.num||this.type===V.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},U.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},U.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Jl(t,r.generator)|Hl|(n?Ul:0)),this.expect(V.parenL),r.params=this.parseBindingList(V.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},U.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Jl(n,!1)|Bl),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},U.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==V.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,eu),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},U.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},U.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,Xl,t?null:n)}},U.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(V.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===V.comma?o=null:this.type===V.ellipsis?(o=this.parseSpread(r),r&&this.type===V.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},U.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),!(this.currentThisScope().flags&ql)&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},U.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},U.parseIdentNode=function(){var e=this.startNode();return this.type===V.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name===`class`||e.name===`function`)&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=V.name):this.unexpected(),e},U.parsePrivateIdent=function(){var e=this.startNode();return this.type===V.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},U.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===V.semi||this.canInsertSemicolon()||this.type!==V.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(V.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},U.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var xu=tu.prototype;xu.raise=function(e,t){var n=jl(this.input,e);t+=` (`+n.line+`:`+n.column+`)`,this.sourceFile&&(t+=` in `+this.sourceFile);var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},xu.raiseRecoverable=xu.raise,xu.curPosition=function(){if(this.options.locations)return new kl(this.curLine,this.pos-this.lineStart)};var Su=tu.prototype,Cu=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};Su.enterScope=function(e){this.scopeStack.push(new Cu(e))},Su.exitScope=function(){this.scopeStack.pop()},Su.treatFunctionsAsVarInScope=function(e){return e.flags&Ll||!this.inModule&&e.flags&Il},Su.declareName=function(e,t,n){var r=!1;if(t===Zl){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&Il&&delete this.undefinedExports[e]}else if(t===$l)this.currentScope().lexical.push(e);else if(t===Ql){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&Vl&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&Il&&delete this.undefinedExports[e],s.flags&ql)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},Su.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Su.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Su.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ql|Gl|Wl))return t}},Su.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ql|Gl|Wl)&&!(t.flags&Bl))return t}};var wu=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new Al(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Tu=tu.prototype;Tu.startNode=function(){return new wu(this,this.start,this.startLoc)},Tu.startNodeAt=function(e,t){return new wu(this,e,t)};function Eu(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Tu.finishNode=function(e,t){return Eu.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Tu.finishNodeAt=function(e,t,n,r){return Eu.call(this,e,t,n,r)},Tu.copyNode=function(e){var t=new wu(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Du=`Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz`,Ou=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,ku=Ou+` Extended_Pictographic`,Au=ku,ju=Au+` EBase EComp EMod EPres ExtPict`,Mu=ju,Nu={9:Ou,10:ku,11:Au,12:ju,13:Mu,14:Mu},Pu={9:``,10:``,11:``,12:``,13:``,14:`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji`},Fu=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,Iu=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,Lu=Iu+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,Ru=Lu+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,zu=Ru+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,Bu=zu+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,Vu={9:Iu,10:Lu,11:Ru,12:zu,13:Bu,14:Bu+` `+Du},Hu={};function Uu(e){var t=Hu[e]={binary:El(Nu[e]+` `+Fu),binaryOfStrings:El(Pu[e]),nonBinary:{General_Category:El(Fu),Script:El(Vu[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Gu=0,Ku=[9,10,11,12,13,14];Gu<Ku.length;Gu+=1)Wu=Ku[Gu],Uu(Wu);var Wu,Gu,Ku,W=tu.prototype,qu=function(e,t){this.parent=e,this.base=t||this};qu.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},qu.prototype.sibling=function(){return new qu(this.parent,this.base)};var Ju=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``)+(e.options.ecmaVersion>=15?`v`:``),this.unicodeProperties=Hu[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=/* @__PURE__ */ Object.create(null),this.backReferenceNames=[],this.branchID=null};Ju.prototype.reset=function(e,t,n){var r=n.indexOf(`v`)!==-1,i=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},Ju.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Ju.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Ju.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Ju.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Ju.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ju.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ju.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Ju.prototype.eatChars=function(e,t){t===void 0&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var a=i[r],o=this.at(n,t);if(o===-1||o!==a)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},W.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,a=0;a<n.length;a++){var o=n.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(o,a+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`),o===`u`&&(r=!0),o===`v`&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,`Invalid regular expression flag`)};function Yu(e){for(var t in e)return!0;return!1}W.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Yu(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},W.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=/* @__PURE__ */ Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise(`Invalid named capture referenced`)}},W.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new qu(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},W.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},W.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},W.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},W.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},W.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},W.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},W.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},W.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},W.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var a=n.charAt(i);n.indexOf(a,i+1)>-1&&e.raise(`Duplicate regular expression modifiers`)}if(r){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise(`Invalid regular expression modifiers`);for(var s=0;s<o.length;s++){var c=o.charAt(s);(o.indexOf(c,s+1)>-1||n.indexOf(c)>-1)&&e.raise(`Duplicate regular expression modifiers`)}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}}e.pos=t}return!1},W.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},W.regexp_eatModifiers=function(e){for(var t=``,n=0;(n=e.current())!==-1&&Xu(n);)t+=Dl(n),e.advance();return t};function Xu(e){return e===105||e===109||e===115}W.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},W.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},W.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Zu(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Zu(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}W.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Zu(n);)e.advance();return e.pos!==t},W.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},W.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise(`Invalid group`);var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n){if(t)for(var r=0,i=n;r<i.length;r+=1)i[r].separatedFrom(e.branchID)||e.raise(`Duplicate capture group name`);else e.raise(`Duplicate capture group name`)}t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},W.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},W.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Dl(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Dl(e.lastIntValue);return!0}return!1},W.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Qu(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Qu(e){return cl(e,!0)||e===36||e===95}W.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),$u(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function $u(e){return ll(e,!0)||e===36||e===95||e===8204||e===8205}W.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},W.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},W.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},W.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},W.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},W.regexp_eatZero=function(e){return e.current()===48&&!dd(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},W.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},W.regexp_eatControlLetter=function(e){var t=e.current();return ed(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function ed(e){return e>=65&&e<=90||e>=97&&e<=122}W.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&td(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function td(e){return e>=0&&e<=1114111}W.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},W.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var nd=0,rd=1,id=2;W.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(ad(t))return e.lastIntValue=-1,e.advance(),rd;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===id&&e.raise(`Invalid property name`),r;e.raise(`Invalid property name`)}return nd};function ad(e){return e===100||e===68||e===115||e===83||e===119||e===87}W.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),rd}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return nd},W.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Cl(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},W.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return rd;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return id;e.raise(`Invalid property name`)},W.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;od(t=e.current());)e.lastStringValue+=Dl(t),e.advance();return e.lastStringValue!==``};function od(e){return ed(e)||e===95}W.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;sd(t=e.current());)e.lastStringValue+=Dl(t),e.advance();return e.lastStringValue!==``};function sd(e){return od(e)||dd(e)}W.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},W.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise(`Unterminated character class`),t&&n===id&&e.raise(`Negated character class may contain strings`),!0}return!1},W.regexp_classContents=function(e){return e.current()===93?rd:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),rd)},W.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},W.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||md(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},W.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},W.regexp_classSetExpression=function(e){var t=rd,n;if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e)){n===id&&(t=id);for(var r=e.pos;e.eatChars([38,38]);)e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))?n!==id&&(t=rd):e.raise(`Invalid character in character class`);if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise(`Invalid character in character class`);if(r!==e.pos)return t}else e.raise(`Invalid character in character class`)}for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===id&&(t=id)}},W.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return n!==-1&&r!==-1&&n>r&&e.raise(`Range out of order in character class`),!0}e.pos=t}return!1},W.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?rd:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},W.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===id&&e.raise(`Negated character class may contain strings`),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},W.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise(`Invalid escape`);e.pos=t}return null},W.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===id&&(t=id);return t},W.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?rd:id},W.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&cd(n)||ld(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function cd(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function ld(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}W.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return ud(t)?(e.lastIntValue=t,e.advance(),!0):!1};function ud(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}W.regexp_eatClassControlLetter=function(e){var t=e.current();return dd(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},W.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},W.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;dd(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function dd(e){return e>=48&&e<=57}W.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;fd(n=e.current());)e.lastIntValue=16*e.lastIntValue+pd(n),e.advance();return e.pos!==t};function fd(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function pd(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}W.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},W.regexp_eatOctalDigit=function(e){var t=e.current();return md(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function md(e){return e>=48&&e<=55}W.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!fd(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+pd(i),e.advance()}return!0};var hd=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Al(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},G=tu.prototype;G.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new hd(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},G.getToken=function(){return this.next(),new hd(this)},typeof Symbol<`u`&&(G[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===V.eof,value:t}}}}),G.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(V.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},G.readToken=function(e){return cl(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},G.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888},G.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},G.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=_l(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},G.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!gl(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},G.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&vl.test(String.fromCharCode(e)))++this.pos;else break loop}}},G.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},G.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(V.ellipsis)):(++this.pos,this.finishToken(V.dot))},G.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(V.assign,2):this.finishOp(V.slash,1)},G.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?V.star:V.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=V.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(V.assign,n+1):this.finishOp(r,n)},G.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(V.assign,3):this.finishOp(e===124?V.logicalOR:V.logicalAND,2):t===61?this.finishOp(V.assign,2):this.finishOp(e===124?V.bitwiseOR:V.bitwiseAND,1)},G.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(V.assign,2):this.finishOp(V.bitwiseXOR,1)},G.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ml.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(V.incDec,2):t===61?this.finishOp(V.assign,2):this.finishOp(V.plusMin,1)},G.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(V.assign,n+1):this.finishOp(V.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(V.relational,n))},G.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(V.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(V.arrow)):this.finishOp(e===61?V.eq:V.prefix,1)},G.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(V.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(V.assign,3):this.finishOp(V.coalesce,2)}return this.finishOp(V.question,1)},G.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),cl(t,!0)||t===92))return this.finishToken(V.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+Dl(t)+`'`)},G.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(V.parenL);case 41:return++this.pos,this.finishToken(V.parenR);case 59:return++this.pos,this.finishToken(V.semi);case 44:return++this.pos,this.finishToken(V.comma);case 91:return++this.pos,this.finishToken(V.bracketL);case 93:return++this.pos,this.finishToken(V.bracketR);case 123:return++this.pos,this.finishToken(V.braceL);case 125:return++this.pos,this.finishToken(V.braceR);case 58:return++this.pos,this.finishToken(V.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(V.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(V.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+Dl(e)+`'`)},G.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},G.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(ml.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Ju(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(V.regexp,{pattern:i,flags:o,value:c})},G.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function gd(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function _d(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}G.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=_d(this.input.slice(t,this.pos)),++this.pos):cl(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(V.num,n)},G.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=_d(this.input.slice(t,this.pos));return++this.pos,cl(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(V.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),cl(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=gd(this.input.slice(t,this.pos),n);return this.finishToken(V.num,a)},G.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},G.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(gl(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(V.string,t)};var vd={};G.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===vd)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},G.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw vd;this.raise(e,t)},G.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===V.template||this.type===V.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(V.dollarBraceL)):(++this.pos,this.finishToken(V.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(V.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(gl(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
26
+ `;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},G.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(V.invalidTemplate,this.input.slice(this.start,this.pos));case`\r`:this.input[this.pos+1]===`
27
+ `&&++this.pos;case`
28
+ `:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,`Unterminated template`)},G.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
29
+ `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Dl(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return gl(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},G.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},G.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(ll(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?cl:ll)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=Dl(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},G.readWord=function(){var e=this.readWord1(),t=V.name;return this.keywords.test(e)&&(t=pl[e]),this.finishToken(t,e)},tu.acorn={Parser:tu,version:`8.16.0`,defaultOptions:Ml,Position:kl,SourceLocation:Al,getLineInfo:jl,Node:wu,TokenType:z,tokTypes:V,keywordTypes:pl,TokContext:hu,tokContexts:gu,isIdentifierChar:ll,isIdentifierStart:cl,Token:hd,isNewLine:gl,lineBreak:ml,lineBreakG:hl,nonASCIIwhitespace:vl};var yd=wt(Dt(),1),bd=tu.extend((0,yd.default)());function xd(e={}){return{name:`mdx`,acorn:bd,estree:e.estree??!0}}var Sd=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],Cd=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],wd=`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_`,Td=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,Ed={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},Dd=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,Od={5:Dd,"5module":Dd+` export import`,6:Dd+` const class extends export import super`},kd=/^in(stanceof)?$/,Ad=RegExp(`[`+Td+`]`),jd=RegExp(`[`+Td+wd+`]`);function Md(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function Nd(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Ad.test(String.fromCharCode(e)):t!==!1&&Md(e,Cd)}function Pd(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&jd.test(String.fromCharCode(e)):t===!1?!1:Md(e,Cd)||Md(e,Sd)}var K=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function Fd(e,t){return new K(e,{beforeExpr:!0,binop:t})}var Id={beforeExpr:!0},Ld={startsExpr:!0},Rd={};function q(e,t){return t===void 0&&(t={}),t.keyword=e,Rd[e]=new K(e,t)}var J={num:new K(`num`,Ld),regexp:new K(`regexp`,Ld),string:new K(`string`,Ld),name:new K(`name`,Ld),privateId:new K(`privateId`,Ld),eof:new K(`eof`),bracketL:new K(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new K(`]`),braceL:new K(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new K(`}`),parenL:new K(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new K(`)`),comma:new K(`,`,Id),semi:new K(`;`,Id),colon:new K(`:`,Id),dot:new K(`.`),question:new K(`?`,Id),questionDot:new K(`?.`),arrow:new K(`=>`,Id),template:new K(`template`),invalidTemplate:new K(`invalidTemplate`),ellipsis:new K(`...`,Id),backQuote:new K("`",Ld),dollarBraceL:new K("${",{beforeExpr:!0,startsExpr:!0}),eq:new K(`=`,{beforeExpr:!0,isAssign:!0}),assign:new K(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new K(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new K(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Fd(`||`,1),logicalAND:Fd(`&&`,2),bitwiseOR:Fd(`|`,3),bitwiseXOR:Fd(`^`,4),bitwiseAND:Fd(`&`,5),equality:Fd(`==/!=/===/!==`,6),relational:Fd(`</>/<=/>=`,7),bitShift:Fd(`<</>>/>>>`,8),plusMin:new K(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Fd(`%`,10),star:Fd(`*`,10),slash:Fd(`/`,10),starstar:new K(`**`,{beforeExpr:!0}),coalesce:Fd(`??`,1),_break:q(`break`),_case:q(`case`,Id),_catch:q(`catch`),_continue:q(`continue`),_debugger:q(`debugger`),_default:q(`default`,Id),_do:q(`do`,{isLoop:!0,beforeExpr:!0}),_else:q(`else`,Id),_finally:q(`finally`),_for:q(`for`,{isLoop:!0}),_function:q(`function`,Ld),_if:q(`if`),_return:q(`return`,Id),_switch:q(`switch`),_throw:q(`throw`,Id),_try:q(`try`),_var:q(`var`),_const:q(`const`),_while:q(`while`,{isLoop:!0}),_with:q(`with`),_new:q(`new`,{beforeExpr:!0,startsExpr:!0}),_this:q(`this`,Ld),_super:q(`super`,Ld),_class:q(`class`,Ld),_extends:q(`extends`,Id),_export:q(`export`),_import:q(`import`,Ld),_null:q(`null`,Ld),_true:q(`true`,Ld),_false:q(`false`,Ld),_in:q(`in`,{beforeExpr:!0,binop:7}),_instanceof:q(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:q(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:q(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:q(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},zd=/\r\n?|\n|\u2028|\u2029/,Bd=new RegExp(zd.source,`g`);function Vd(e){return e===10||e===13||e===8232||e===8233}function Hd(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(Vd(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var Ud=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Wd=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Gd=Object.prototype,Kd=Gd.hasOwnProperty,qd=Gd.toString,Jd=Object.hasOwn||(function(e,t){return Kd.call(e,t)}),Yd=Array.isArray||(function(e){return qd.call(e)===`[object Array]`});function Xd(e){return RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`)}function Zd(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Qd=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,$d=function(e,t){this.line=e,this.column=t};$d.prototype.offset=function(e){return new $d(this.line,this.column+e)};var ef=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function tf(e,t){for(var n=1,r=0;;){var i=Hd(e,r,t);if(i<0)return new $d(n,t-r);++n,r=i}}var nf={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},rf=!1;function af(e){var t={};for(var n in nf)t[n]=e&&Jd(e,n)?e[n]:nf[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!rf&&typeof console==`object`&&console.warn&&(rf=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
30
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),Yd(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return Yd(t.onComment)&&(t.onComment=of(t,t.onComment)),t}function of(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new ef(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var sf=1,cf=2,lf=4,uf=8,df=16,ff=32,pf=64,mf=128,hf=256,gf=sf|cf|hf;function _f(e,t){return cf|(e?lf:0)|(t?uf:0)}var vf=0,yf=1,bf=2,xf=3,Sf=4,Cf=5,wf=function(e,t,n){this.options=e=af(e),this.sourceFile=e.sourceFile,this.keywords=Xd(Od[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=Ed[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=Xd(r);var i=(r?r+` `:``)+Ed.strict;this.reservedWordsStrict=Xd(i),this.reservedWordsStrictBind=Xd(i+` `+Ed.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
31
+ `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(zd).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=J.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=/* @__PURE__ */ Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(sf),this.regexpState=null,this.privateNameStack=[]},Tf={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};wf.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Tf.inFunction.get=function(){return(this.currentVarScope().flags&cf)>0},Tf.inGenerator.get=function(){return(this.currentVarScope().flags&uf)>0&&!this.currentVarScope().inClassFieldInit},Tf.inAsync.get=function(){return(this.currentVarScope().flags&lf)>0&&!this.currentVarScope().inClassFieldInit},Tf.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&hf)return!1;if(t.flags&cf)return(t.flags&lf)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Tf.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&pf)>0||n||this.options.allowSuperOutsideMethod},Tf.allowDirectSuper.get=function(){return(this.currentThisScope().flags&mf)>0},Tf.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Tf.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&(cf|hf))>0||n},Tf.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&hf)>0},wf.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},wf.parse=function(e,t){return new this(t,e).parse()},wf.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},wf.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(wf.prototype,Tf);var Ef=wf.prototype,Df=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Ef.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Wd.lastIndex=e,e+=Wd.exec(this.input)[0].length;var t=Df.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){Wd.lastIndex=e+t[0].length;var n=Wd.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||zd.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,Wd.lastIndex=e,e+=Wd.exec(this.input)[0].length,this.input[e]===`;`&&e++}},Ef.eat=function(e){return this.type===e&&(this.next(),!0)},Ef.isContextual=function(e){return this.type===J.name&&this.value===e&&!this.containsEsc},Ef.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},Ef.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Ef.canInsertSemicolon=function(){return this.type===J.eof||this.type===J.braceR||zd.test(this.input.slice(this.lastTokEnd,this.start))},Ef.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ef.semicolon=function(){!this.eat(J.semi)&&!this.insertSemicolon()&&this.unexpected()},Ef.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Ef.expect=function(e){this.eat(e)||this.unexpected()},Ef.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var Of=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ef.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},Ef.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},Ef.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},Ef.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var Y=wf.prototype;Y.parseTopLevel=function(e){var t=/* @__PURE__ */ Object.create(null);for(e.body||=[];this.type!==J.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var kf={kind:`loop`},Af={kind:`switch`};Y.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;Wd.lastIndex=this.pos;var t=Wd.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(Nd(r,!0)){for(var i=n+1;Pd(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!kd.test(a))return!0}return!1},Y.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;Wd.lastIndex=this.pos;var e=Wd.exec(this.input),t=this.pos+e[0].length,n;return!zd.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(Pd(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))},Y.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=J._var,a=`let`),r){case J._break:case J._continue:return this.parseBreakContinueStatement(i,r.keyword);case J._debugger:return this.parseDebuggerStatement(i);case J._do:return this.parseDoStatement(i);case J._for:return this.parseForStatement(i);case J._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case J._class:return e&&this.unexpected(),this.parseClass(i,!0);case J._if:return this.parseIfStatement(i);case J._return:return this.parseReturnStatement(i);case J._switch:return this.parseSwitchStatement(i);case J._throw:return this.parseThrowStatement(i);case J._try:return this.parseTryStatement(i);case J._const:case J._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case J._while:return this.parseWhileStatement(i);case J._with:return this.parseWithStatement(i);case J.braceL:return this.parseBlock(!0,i);case J.semi:return this.parseEmptyStatement(i);case J._export:case J._import:if(this.options.ecmaVersion>10&&r===J._import){Wd.lastIndex=this.pos;var o=Wd.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===J._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,u=this.parseExpression();return r===J.name&&u.type===`Identifier`&&this.eat(J.colon)?this.parseLabeledStatement(i,l,u,e):this.parseExpressionStatement(i,u)}},Y.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(J.semi)||this.insertSemicolon()?e.label=null:this.type===J.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},Y.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},Y.parseDoStatement=function(e){return this.next(),this.labels.push(kf),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(J._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(J.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},Y.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(kf),this.enterScope(0),this.expect(J.parenL),this.type===J.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===J._var||this.type===J._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),(this.type===J._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===J._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual(`let`),o=!1,s=new Of,c=this.parseExpression(t>-1?`await`:!0,s);return this.type===J._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(this.options.ecmaVersion>=9&&(this.type===J._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&o&&this.raise(c.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(c,!1,s),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},Y.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Mf|(n?0:Nf),!1,t)},Y.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(J._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},Y.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(J.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},Y.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(J.braceL),this.labels.push(Af),this.enterScope(0);for(var t,n=!1;this.type!==J.braceR;)if(this.type===J._case||this.type===J._default){var r=this.type===J._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(J.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},Y.parseThrowStatement=function(e){return this.next(),zd.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var jf=[];Y.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===J._catch){var t=this.startNode();if(this.next(),this.eat(J.parenL)){t.param=this.parseBindingAtom();var n=t.param.type===`Identifier`;this.enterScope(n?ff:0),this.checkLValPattern(t.param,n?Sf:bf),this.expect(J.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(J._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},Y.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},Y.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(kf),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},Y.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},Y.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},Y.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===J._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},Y.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},Y.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(J.braceL),e&&this.enterScope(0);this.type!==J.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},Y.parseFor=function(e,t){return e.init=t,this.expect(J.semi),e.test=this.type===J.semi?null:this.parseExpression(),this.expect(J.semi),e.update=this.type===J.parenR?null:this.parseExpression(),this.expect(J.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},Y.parseForIn=function(e,t){var n=this.type===J._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(J.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},Y.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(J.eq)?r.init=this.parseMaybeAssign(t):n===`const`&&!(this.type===J._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():r.id.type!==`Identifier`&&(!t||this.type!==J._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):r.init=null,e.declarations.push(this.finishNode(r,`VariableDeclarator`)),!this.eat(J.comma))break}return e},Y.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?yf:bf,!1)};var Mf=1,Nf=2,Pf=4;Y.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===J.star&&t&Nf&&this.unexpected(),e.generator=this.eat(J.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Mf&&(e.id=t&Pf&&this.type!==J.name?null:this.parseIdent(),e.id&&!(t&Nf)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?yf:bf:xf));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_f(e.async,e.generator)),t&Mf||(e.id=this.type===J.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Mf?`FunctionDeclaration`:`FunctionExpression`)},Y.parseFunctionParams=function(e){this.expect(J.parenL),e.params=this.parseBindingList(J.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Y.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(J.braceL);this.type!==J.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raise(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&Ff(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},Y.parseClassElement=function(e){if(this.eat(J.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(J.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===J.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===J.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(J.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===J.parenL||o!==`method`||i||a){var l=!n.static&&If(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},Y.isClassElementNameStart=function(){return this.type===J.name||this.type===J.privateId||this.type===J.num||this.type===J.string||this.type===J.bracketL||this.type.keyword},Y.parseClassElementName=function(e){this.type===J.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},Y.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&If(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},Y.parseClassField=function(e){if(If(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&If(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(J.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,`PropertyDefinition`)},Y.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(hf|pf);this.type!==J.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},Y.parseClassId=function(e,t){this.type===J.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,bf,!1)):(t===!0&&this.unexpected(),e.id=null)},Y.parseClassSuper=function(e){e.superClass=this.eat(J._extends)?this.parseExprSubscripts(null,!1):null},Y.enterClassBody=function(){var e={declared:/* @__PURE__ */ Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},Y.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];Jd(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function Ff(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function If(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}Y.parseExport=function(e,t){if(this.next(),this.eat(J.star))return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==J.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`);if(this.eat(J._default)){this.checkExport(t,`default`,this.lastTokStart);var n;if(this.type===J._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,Mf|Pf,!1,n)}else if(this.type===J._class){var i=this.startNode();e.declaration=this.parseClass(i,`nullableID`)}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,`ExportDefaultDeclaration`)}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==J.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type===`Literal`&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},Y.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),Jd(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},Y.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`?this.checkPatternExport(e,t.argument):n===`ParenthesizedExpression`&&this.checkPatternExport(e,t.expression)},Y.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},Y.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},Y.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(J.braceL);!this.eat(J.braceR);){if(n)n=!1;else if(this.expect(J.comma),this.afterTrailingComma(J.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual(`as`)?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,`ExportSpecifier`))}return t},Y.parseImport=function(e){return this.next(),this.type===J.string?(e.specifiers=jf,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===J.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},Y.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===J.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,bf),e.push(this.finishNode(n,`ImportDefaultSpecifier`)),!this.eat(J.comma))return e}if(this.type===J.star){var r=this.startNode();return this.next(),this.expectContextual(`as`),r.local=this.parseIdent(),this.checkLValSimple(r.local,bf),e.push(this.finishNode(r,`ImportNamespaceSpecifier`)),e}for(this.expect(J.braceL);!this.eat(J.braceR);){if(t)t=!1;else if(this.expect(J.comma),this.afterTrailingComma(J.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual(`as`)?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,bf),e.push(this.finishNode(i,`ImportSpecifier`))}return e},Y.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===J.string){var e=this.parseLiteral(this.value);return Qd.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},Y.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Y.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var Lf=wf.prototype;Lf.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},Lf.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},Lf.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},Lf.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==J.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},Lf.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case J.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(J.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case J.braceL:return this.parseObj(!0)}return this.parseIdent()},Lf.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(J.comma),t&&this.type===J.comma)r.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===J.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===J.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},Lf.parseBindingListItem=function(e){return e},Lf.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(J.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},Lf.checkLValSimple=function(e,t,n){t===void 0&&(t=vf);var r=t!==vf;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===bf&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(Jd(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==Cf&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},Lf.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=vf),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},Lf.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=vf),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Rf=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},zf={b_stat:new Rf(`{`,!1),b_expr:new Rf(`{`,!0),b_tmpl:new Rf("${",!1),p_stat:new Rf(`(`,!1),p_expr:new Rf(`(`,!0),q_tmpl:new Rf("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Rf(`function`,!1),f_expr:new Rf(`function`,!0),f_expr_gen:new Rf(`function`,!0,!1,null,!0),f_gen:new Rf(`function`,!1,!1,null,!0)},Bf=wf.prototype;Bf.initialContext=function(){return[zf.b_stat]},Bf.curContext=function(){return this.context[this.context.length-1]},Bf.braceIsBlock=function(e){var t=this.curContext();return t===zf.f_expr||t===zf.f_stat?!0:e===J.colon&&(t===zf.b_stat||t===zf.b_expr)?!t.isExpr:e===J._return||e===J.name&&this.exprAllowed?zd.test(this.input.slice(this.lastTokEnd,this.start)):e===J._else||e===J.semi||e===J.eof||e===J.parenR||e===J.arrow?!0:e===J.braceL?t===zf.b_stat:e===J._var||e===J._const||e===J.name?!1:!this.exprAllowed},Bf.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},Bf.updateContext=function(e){var t,n=this.type;n.keyword&&e===J.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Bf.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},J.parenR.updateContext=J.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===zf.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},J.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?zf.b_stat:zf.b_expr),this.exprAllowed=!0},J.dollarBraceL.updateContext=function(){this.context.push(zf.b_tmpl),this.exprAllowed=!0},J.parenL.updateContext=function(e){var t=e===J._if||e===J._for||e===J._with||e===J._while;this.context.push(t?zf.p_stat:zf.p_expr),this.exprAllowed=!0},J.incDec.updateContext=function(){},J._function.updateContext=J._class.updateContext=function(e){e.beforeExpr&&e!==J._else&&(e!==J.semi||this.curContext()===zf.p_stat)&&!(e===J._return&&zd.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==J.colon&&e!==J.braceL||this.curContext()!==zf.b_stat)?this.context.push(zf.f_expr):this.context.push(zf.f_stat),this.exprAllowed=!1},J.backQuote.updateContext=function(){this.curContext()===zf.q_tmpl?this.context.pop():this.context.push(zf.q_tmpl),this.exprAllowed=!1},J.star.updateContext=function(e){if(e===J._function){var t=this.context.length-1;this.context[t]===zf.f_expr?this.context[t]=zf.f_expr_gen:this.context[t]=zf.f_gen}this.exprAllowed=!0},J.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==J.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var X=wf.prototype;X.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},X.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===J.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(J.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},X.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Of,r=!0);var s=this.start,c=this.startLoc;(this.type===J.parenL||this.type===J.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===J.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===J.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},X.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(J.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(J.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},X.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},X.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==J._in)&&a>r){var o=this.type===J.logicalOR||this.type===J.logicalAND,s=this.type===J.coalesce;s&&(a=J.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===J.coalesce||s&&(this.type===J.logicalOR||this.type===J.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},X.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},X.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===J.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&s.argument.type===`Identifier`?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&Vf(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===J.privateId)(r||this.privateNameStack.length===0)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==J._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(J.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function Vf(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&Vf(e.expression)}X.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},X.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},X.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(J.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(J.bracketL);if(l||c&&this.type!==J.parenL&&this.type!==J.backQuote||this.eat(J.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(J.bracketR)):u.property=this.type===J.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(J.parenL)){var d=new Of,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(J.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&!this.canInsertSemicolon()&&this.eat(J.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseArrowExpression(this.startNodeAt(t,n),h,!0,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===J.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},X.parseExprAtom=function(e,t){this.type===J.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case J._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),n=this.startNode(),this.next(),this.type===J.parenL&&!this.allowDirectSuper&&this.raise(n.start,`super() call outside constructor of a subclass`),this.type!==J.dot&&this.type!==J.bracketL&&this.type!==J.parenL&&this.unexpected(),this.finishNode(n,`Super`);case J._this:return n=this.startNode(),this.next(),this.finishNode(n,`ThisExpression`);case J.name:var i=this.start,a=this.startLoc,o=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&s.name===`async`&&!this.canInsertSemicolon()&&this.eat(J._function))return this.overrideContext(zf.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(J.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[s],!1,t);if(this.options.ecmaVersion>=8&&s.name===`async`&&this.type===J.name&&!o&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return s=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(J.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[s],!0,t)}return s;case J.regexp:var c=this.value;return n=this.parseLiteral(c.value),n.regex={pattern:c.pattern,flags:c.flags},n;case J.num:case J.string:return this.parseLiteral(this.value);case J._null:case J._true:case J._false:return n=this.startNode(),n.value=this.type===J._null?null:this.type===J._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,`Literal`);case J.parenL:var l=this.start,u=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),u;case J.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(J.bracketR,!0,!0,e),this.finishNode(n,`ArrayExpression`);case J.braceL:return this.overrideContext(zf.b_expr),this.parseObj(!1,e);case J._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case J._class:return this.parseClass(this.startNode(),!1);case J._new:return this.parseNew();case J.backQuote:return this.parseTemplate();case J._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},X.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`);var t=this.parseIdent(!0);switch(this.type){case J.parenL:return this.parseDynamicImport(e);case J.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},X.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(J.parenR)){var t=this.start;this.eat(J.comma)&&this.eat(J.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},X.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},X.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,``)),this.next(),this.finishNode(t,`Literal`)},X.parseParenExpression=function(){this.expect(J.parenL);var e=this.parseExpression();return this.expect(J.parenR),e},X.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new Of,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==J.parenR;){if(l?l=!1:this.expect(J.comma),a&&this.afterTrailingComma(J.parenR,!0)){u=!0;break}if(this.type===J.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===J.comma&&this.raise(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(J.parenR),e&&!this.canInsertSemicolon()&&this.eat(J.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},X.parseParenItem=function(e){return e},X.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Hf=[];X.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(J.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc,a=this.type===J._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),a&&e.callee.type===`ImportExpression`&&this.raise(r,`Cannot use new with import()`),e.arguments=this.eat(J.parenL)?this.parseExprList(J.parenR,this.options.ecmaVersion>=8,!1):Hf,this.finishNode(e,`NewExpression`)},X.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===J.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
32
+ `),cooked:this.value},this.next(),n.tail=this.type===J.backQuote,this.finishNode(n,`TemplateElement`)},X.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===J.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(J.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(J.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},X.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===J.name||this.type===J.num||this.type===J.string||this.type===J.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===J.star)&&!zd.test(this.input.slice(this.lastTokEnd,this.start))},X.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(J.braceR);){if(r)r=!1;else if(this.expect(J.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(J.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},X.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(J.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===J.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===J.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(J.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(J.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},X.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===J.colon&&this.unexpected(),this.eat(J.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===J.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==J.comma&&this.type!==J.braceR&&this.type!==J.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===J.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},X.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(J.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(J.bracketR),e.key;e.computed=!1}return e.key=this.type===J.num||this.type===J.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},X.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},X.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_f(t,r.generator)|pf|(n?mf:0)),this.expect(J.parenL),r.params=this.parseBindingList(J.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},X.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(_f(n,!1)|df),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},X.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==J.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Cf),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},X.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},X.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,yf,t?null:n)}},X.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(J.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===J.comma?o=null:this.type===J.ellipsis?(o=this.parseSpread(r),r&&this.type===J.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},X.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.currentThisScope().inClassFieldInit&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},X.parseIdent=function(e){var t=this.startNode();return this.type===J.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name===`class`||t.name===`function`)&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},X.parsePrivateIdent=function(){var e=this.startNode();return this.type===J.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},X.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===J.semi||this.canInsertSemicolon()||this.type!==J.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(J.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},X.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var Uf=wf.prototype;Uf.raise=function(e,t){var n=tf(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},Uf.raiseRecoverable=Uf.raise,Uf.curPosition=function(){if(this.options.locations)return new $d(this.curLine,this.pos-this.lineStart)};var Wf=wf.prototype,Gf=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};Wf.enterScope=function(e){this.scopeStack.push(new Gf(e))},Wf.exitScope=function(){this.scopeStack.pop()},Wf.treatFunctionsAsVarInScope=function(e){return e.flags&cf||!this.inModule&&e.flags&sf},Wf.declareName=function(e,t,n){var r=!1;if(t===bf){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&sf&&delete this.undefinedExports[e]}else if(t===Sf)this.currentScope().lexical.push(e);else if(t===xf){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&ff&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&sf&&delete this.undefinedExports[e],s.flags&gf)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},Wf.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Wf.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Wf.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&gf)return t}},Wf.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&gf&&!(t.flags&df))return t}};var Kf=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new ef(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},qf=wf.prototype;qf.startNode=function(){return new Kf(this,this.start,this.startLoc)},qf.startNodeAt=function(e,t){return new Kf(this,e,t)};function Jf(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}qf.finishNode=function(e,t){return Jf.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},qf.finishNodeAt=function(e,t,n,r){return Jf.call(this,e,t,n,r)},qf.copyNode=function(e){var t=new Kf(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Yf=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,Xf=Yf+` Extended_Pictographic`,Zf=Xf,Qf=Zf+` EBase EComp EMod EPres ExtPict`,$f=Qf,ep={9:Yf,10:Xf,11:Zf,12:Qf,13:$f,14:$f},tp=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,np=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,rp=np+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,ip=rp+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,ap=ip+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,op=ap+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,sp={9:np,10:rp,11:ip,12:ap,13:op,14:op+` Kawi Nag_Mundari Nagm`},cp={};function lp(e){var t=cp[e]={binary:Xd(ep[e]+` `+tp),nonBinary:{General_Category:Xd(tp),Script:Xd(sp[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Gu=0,Ku=[9,10,11,12,13,14];Gu<Ku.length;Gu+=1)Wu=Ku[Gu],lp(Wu);var Wu,Gu,Ku,Z=wf.prototype,up=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``),this.unicodeProperties=cp[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};up.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},up.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},up.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},up.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},up.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},up.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},up.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},up.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Z.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},Z.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Z.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},Z.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},Z.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Z.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},Z.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Z.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},Z.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Z.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},Z.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Z.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Z.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},Z.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},Z.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Z.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},Z.regexp_eatSyntaxCharacter=function(e){var t=e.current();return dp(t)?(e.lastIntValue=t,e.advance(),!0):!1};function dp(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Z.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!dp(n);)e.advance();return e.pos!==t},Z.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},Z.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},Z.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},Z.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Zd(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Zd(e.lastIntValue);return!0}return!1},Z.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),fp(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function fp(e){return Nd(e,!0)||e===36||e===95}Z.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),pp(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function pp(e){return Pd(e,!0)||e===36||e===95||e===8204||e===8205}Z.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},Z.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Z.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},Z.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Z.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Z.regexp_eatZero=function(e){return e.current()===48&&!yp(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Z.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},Z.regexp_eatControlLetter=function(e){var t=e.current();return mp(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function mp(e){return e>=65&&e<=90||e>=97&&e<=122}Z.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&hp(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function hp(e){return e>=0&&e<=1114111}Z.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},Z.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},Z.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(gp(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function gp(e){return e===100||e===68||e===115||e===83||e===119||e===87}Z.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},Z.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Jd(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},Z.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},Z.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;_p(t=e.current());)e.lastStringValue+=Zd(t),e.advance();return e.lastStringValue!==``};function _p(e){return mp(e)||e===95}Z.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;vp(t=e.current());)e.lastStringValue+=Zd(t),e.advance();return e.lastStringValue!==``};function vp(e){return _p(e)||yp(e)}Z.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Z.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},Z.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},Z.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Sp(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},Z.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Z.regexp_eatClassControlLetter=function(e){var t=e.current();return yp(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},Z.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},Z.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;yp(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function yp(e){return e>=48&&e<=57}Z.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;bp(n=e.current());)e.lastIntValue=16*e.lastIntValue+xp(n),e.advance();return e.pos!==t};function bp(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function xp(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Z.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},Z.regexp_eatOctalDigit=function(e){var t=e.current();return Sp(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Sp(e){return e>=48&&e<=55}Z.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!bp(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+xp(i),e.advance()}return!0};var Cp=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ef(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Q=wf.prototype;Q.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new Cp(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Q.getToken=function(){return this.next(),new Cp(this)},typeof Symbol<`u`&&(Q[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===J.eof,value:t}}}}),Q.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(J.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},Q.readToken=function(e){return Nd(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},Q.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Q.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=Hd(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},Q.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Vd(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Q.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&Ud.test(String.fromCharCode(e)))++this.pos;else break loop}}},Q.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Q.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(J.ellipsis)):(++this.pos,this.finishToken(J.dot))},Q.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(J.assign,2):this.finishOp(J.slash,1)},Q.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?J.star:J.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=J.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(J.assign,n+1):this.finishOp(r,n)},Q.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(J.assign,3):this.finishOp(e===124?J.logicalOR:J.logicalAND,2):t===61?this.finishOp(J.assign,2):this.finishOp(e===124?J.bitwiseOR:J.bitwiseAND,1)},Q.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(J.assign,2):this.finishOp(J.bitwiseXOR,1)},Q.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||zd.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(J.incDec,2):t===61?this.finishOp(J.assign,2):this.finishOp(J.plusMin,1)},Q.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(J.assign,n+1):this.finishOp(J.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(J.relational,n))},Q.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(J.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(J.arrow)):this.finishOp(e===61?J.eq:J.prefix,1)},Q.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(J.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(J.assign,3):this.finishOp(J.coalesce,2)}return this.finishOp(J.question,1)},Q.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Nd(t,!0)||t===92))return this.finishToken(J.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+Zd(t)+`'`)},Q.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(J.parenL);case 41:return++this.pos,this.finishToken(J.parenR);case 59:return++this.pos,this.finishToken(J.semi);case 44:return++this.pos,this.finishToken(J.comma);case 91:return++this.pos,this.finishToken(J.bracketL);case 93:return++this.pos,this.finishToken(J.bracketR);case 123:return++this.pos,this.finishToken(J.braceL);case 125:return++this.pos,this.finishToken(J.braceR);case 58:return++this.pos,this.finishToken(J.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(J.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(J.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+Zd(e)+`'`)},Q.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Q.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(zd.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new up(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(J.regexp,{pattern:i,flags:o,value:c})},Q.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function wp(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function Tp(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}Q.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Tp(this.input.slice(t,this.pos)),++this.pos):Nd(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(J.num,n)},Q.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=Tp(this.input.slice(t,this.pos));return++this.pos,Nd(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(J.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),Nd(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=wp(this.input.slice(t,this.pos),n);return this.finishToken(J.num,a)},Q.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},Q.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Vd(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(J.string,t)};var Ep={};Q.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Ep)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},Q.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ep;this.raise(e,t)},Q.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===J.template||this.type===J.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(J.dollarBraceL)):(++this.pos,this.finishToken(J.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(J.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Vd(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
33
+ `;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Q.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(J.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,`Unterminated template`)},Q.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
34
+ `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Zd(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return Vd(t)?``:String.fromCharCode(t)}},Q.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},Q.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Pd(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?Nd:Pd)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=Zd(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},Q.readWord=function(){var e=this.readWord1(),t=J.name;return this.keywords.test(e)&&(t=Rd[e]),this.finishToken(t,e)},wf.acorn={Parser:wf,version:`8.8.2`,defaultOptions:nf,Position:$d,SourceLocation:ef,getLineInfo:tf,Node:Kf,TokenType:K,tokTypes:J,keywordTypes:Rd,TokContext:Rf,tokContexts:zf,isIdentifierChar:Pd,isIdentifierStart:Nd,Token:Cp,isNewLine:Vd,lineBreak:zd,lineBreakG:Bd,nonASCIIwhitespace:Ud};var Dp=wt(Dt(),1),Op=wf.extend((0,Dp.default)()),kp=1024;function Ap(e,t){let n=e.type===`CallExpression`&&`callee`in e&&e.callee instanceof Kf?e.callee:e;return n.type===`ParenthesizedExpression`&&n.start===t?n.end:void 0}function jp(e){let t,n=``,r=``,i=e.length*2,a=``;return{parse(e,t={}){return Op.parse(e,Object.assign(Object.assign({},t),{ecmaVersion:t.ecmaVersion??`latest`}))},parseExpressionAt(o,s,c={}){let l=Object.assign(Object.assign({},c),{ecmaVersion:c.ecmaVersion??`latest`}),u=JSON.stringify(Object.assign(Object.assign({},l),{onComment:void 0,onToken:void 0}));if(u!==a&&(r=``,n=``,a=u),s===0&&r.length>o.length&&r.startsWith(o))throw Object.assign(/* @__PURE__ */ SyntaxError(`Unexpected end of expression`),{pos:o.length,raisedAt:o.length});try{let e=Op.parseExpressionAt(o,s,l);return r=``,n=``,e}catch(a){if(s!==0||o.length<kp||!o.trimStart().startsWith(`(`)||!(a instanceof SyntaxError)||!(`raisedAt`in a)||typeof a.raisedAt!=`number`||a.raisedAt<o.length||n!==``&&o.startsWith(n))throw a;n=o,r=``,t??=e.replace(/(\r\n|\r|\n) {1,2}/g,`$1`);let c=t.indexOf(o);if(c>=1&&t[c-1]===`{`&&t[c+o.length]===`}`&&t.indexOf(o,c+1)===-1)try{let e=t.slice(c);if(e.length>i)throw a;i-=e.length;let n=Ap(Op.parseExpressionAt(e,s,Object.assign(Object.assign({},l),{onComment:void 0,onToken:void 0,preserveParens:!0})),o.search(/\S/));n!==void 0&&n>o.length&&(r=e.slice(0,n))}catch{r=``}throw a}}}}var Mp=p().use(gt).use(mt).use(a,[`yaml`,`toml`]).freeze(),Np=Mp().use(l).freeze();function Pp(e){return e.split(/(```[\s\S]*?```|~~~[\s\S]*?~~~)/).map((e,t)=>t%2==0?e.replace(/<!--([\s\S]*?)-->/g,(e,t)=>`{/* ${t} */}`):e).join(``)}function Fp(e,n={}){let r=n.omitHtmlComments??!0?Pp(e):e;return{sanitized:r,preprocessed:t(r,{preserveOriginal:!0})}}var Ip=e=>e.children.length===0||e.name===`video`;function Lp(e,t){o(e,e=>{if(!s(e)||!Ip(e))return;let n=e.position?.end.offset;n===void 0||t.endsWith(`/>`,n)||(e.data=Object.assign(Object.assign({},e.data),{closingTag:!0}))})}var Rp=[Yc({singleTilde:!0}),xd({estree:!0}),Jc([`yaml`,`toml`])],zp=[...Rp,Xc({singleDollarTextMath:!0})];function Bp(e,t){let n=Kc(e,{syntax:t?zp:Rp});if(n instanceof Error)return;let r=n;return o(r,[`mdxJsxFlowElement`,`mdxJsxTextElement`],e=>{if(`attributes`in e)for(let t of e.attributes)delete t.position}),r}function Vp(e,t=!0){let n={acorn:jp(e)},r=Bp(e,t)??(t?Np:Mp)().use(gt,n).parse(e);return Lp(r,e),t&&ae(r,e),r}function Hp(e,t={omitHtmlComments:!0}){return Vp(Fp(e,t).preprocessed,t.math)}var Up=`__expressionAttributes`,Wp=`__namedExpressionAttributes`,Gp=`__mintlifyExtraAttrs`,Kp=Symbol(`unsupported-estree`);function qp(e,t){if(!e)return Kp;switch(e.type){case`Literal`:return e.value;case`TemplateLiteral`:return e.expressions.length===0?e.quasis[0]?.value.cooked??``:Kp;case`Identifier`:return t?Kp:e.name===`undefined`?void 0:e.name;case`UnaryExpression`:{let n=qp(e.argument,t);return typeof n==`number`?e.operator===`-`?-n:e.operator===`+`?n:Kp:Kp}case`ArrayExpression`:{let n=[];for(let r of e.elements){if(!r||r.type===`SpreadElement`)return Kp;let e=qp(r,t);if(e===Kp)return Kp;n.push(e)}return n}case`ObjectExpression`:{let n={};for(let r of e.properties){if(r.type!==`Property`||r.computed||r.method||r.kind!==`init`)return Kp;let e=r,i=e.key.type===`Identifier`?e.key.name:e.key.type===`Literal`&&(typeof e.key.value==`string`||typeof e.key.value==`number`)?String(e.key.value):void 0;if(!i)return Kp;let a=e.shorthand?e.key.type===`Identifier`?qp(e.key,t):Kp:qp(e.value,t);if(a===Kp)return Kp;n[i]=a}return n}default:return Kp}}function Jp(e,t,n){let r=t?.body[0],i=qp(r?.type===`ExpressionStatement`?r.expression:void 0,n);return i===Kp?e.trim()!==``&&!Number.isNaN(Number(e))?Number(e):e:i}function Yp(e=[]){let t=$(e,{staticOnly:!0}).start;return typeof t==`number`?Number.isInteger(t)?t:1:typeof t==`string`&&/^\s*-?\d+\s*$/.test(t)?Number(t):1}function $(e=[],t={}){let n={},r=[],i={};for(let a of e){if(a.type===`mdxJsxExpressionAttribute`){r.push(a.value);continue}let e=a.value;if(typeof e==`object`&&e){let r=e.value;typeof r==`string`?(i[a.name]=r,n[a.name]=Jp(r,`data`in e?e.data?.estree??void 0:void 0,t.staticOnly??!1)):n[a.name]=r}else e==null?n[a.name]=!0:n[a.name]=e}return r.length>0&&(n[Up]=r),Object.keys(i).length>0&&(n[Wp]=i),n}function Xp(e){try{let[t]=Vp(`<X value={${e}} />`,!1).children;return t?.type!==`mdxJsxFlowElement`||t.attributes.length!==1?e:$(t.attributes).value}catch{return e}}var Zp=/* @__PURE__ */ new Set([`ref`,`key`,`dangerouslySetInnerHTML`]);function Qp(e){let t=e[Wp],n=t&&typeof t==`object`?t:{},r={};for(let[t,i]of Object.entries(e))t!==Up&&t!==Wp&&t!==Gp&&(Zp.has(t)||Ft.has(t)||t in n&&i===n[t]||(r[t]=i));return r}function $p(e,t,n=[]){let r={},i={};for(let[a,o]of Object.entries(e))n.includes(a)||(a===Up||a===Wp||t.some(e=>e.name===a)?r[a]=o:i[a]=o);return Object.keys(i).length>0&&(r[Gp]=i),r}var em=$t.filter(e=>e.name!==`type`);function tm(e){return typeof e==`string`?Ot.find(t=>t.toLowerCase()===e.toLowerCase())??null:null}function nm(e,t){if(e!==`Callout`)return Object.assign({type:e},$p(t,em));let n=tm(t.type);return Object.assign({type:n},$p(t,em,n?[`type`]:[]))}function rm(e){let t=e.split(` `).reverse();for(let[e,n]of Object.entries(Lt))if(t.includes(n))return e}function im(e){if(e&&typeof e==`object`&&`width`in e){let t=e.width;if(typeof t==`string`&&t.endsWith(`%`)){let e=parseInt(t.slice(0,-1),10);if(!isNaN(e))return e}}}var am=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function om(e,t=!1){let n=$(e.attributes),r=n.className,i;typeof r==`string`&&(i=rm(r));let a=n.style,o;am(a)&&(o=im(a));let s=Object.assign(Object.assign({},t?Object.assign({},n):n),{[k]:!0});return{type:O.image,attrs:{imgAttributes:s,align:i,width:o}}}function sm(e){return(e.type===`mdxJsxTextElement`||e.type===`mdxJsxFlowElement`)&&e.name===`source`}function cm(e){if(!e.children.every(e=>sm(e)||e.type===`text`&&e.value.trim()===``))return{type:e.type===`mdxJsxTextElement`?O.inlineUnknownTag:O.unknownTag,attrs:{mdxJsxNode:e}};let t=e.children.filter(sm).map(e=>$(e.attributes)),n=$(e.attributes);return{type:O.video,attrs:{videoAttributes:e.data?.closingTag===!0?Object.assign(Object.assign({},n),{[It]:!0}):n,sources:t.length>0?t:null}}}var lm=/* @__PURE__ */ new Set([`hidden`,`dark:block`]),um=/* @__PURE__ */ new Set([`dark:hidden`]);function dm(e){let t=e.attrs?.imgAttributes;return am(t)?t:null}function fm(e){let t=dm(e)?.className;return typeof t==`string`?t:void 0}function pm(e){if(e.type!==O.image)return!1;let t=fm(e);if(!t)return!1;let n=t.split(/\s+/);return n.includes(`hidden`)&&n.includes(`dark:block`)}function mm(e){if(e.type!==O.image)return!1;let t=fm(e);return t?t.split(/\s+/).includes(`dark:hidden`):!1}function hm(e,t){if(!e)return;let n=t===`dark`?lm:um;return e.split(/\s+/).filter(e=>!n.has(e)).join(` `).trim()||void 0}function gm(e){return Object.entries(e).filter(([e])=>e!==`src`&&e!==`className`).sort(([e],[t])=>e<t?-1:+(e>t))}function _m(e,t,n,r){let i=hm(n,`light`),a=hm(r,`dark`),o=i?.split(/\s+/).filter(e=>e!==`block`).join(` `).trim()||void 0;if(a!==i&&a!==o)return!1;let s=gm(e),c=gm(t);return s.length===c.length&&JSON.stringify(s)===JSON.stringify(c)}function vm(e){let t=[],n=0;for(;n<e.length;){let r=e[n],i=e[n+1];if(r&&i){let e,a;pm(r)&&mm(i)?(e=r,a=i):mm(r)&&pm(i)&&(a=r,e=i);let o=e?dm(e):null,s=a?dm(a):null,c=o?.src,l=s?.src;if(e&&a&&o&&s&&typeof c==`string`&&typeof l==`string`&&_m(s,o,fm(a),fm(e))){let r=hm(fm(a),`light`),i=Object.assign({},s);delete i.src,r?i.className=r:delete i.className,t.push({type:O.image,attrs:{imgAttributes:i,lightSrc:l,darkSrc:c,align:a.attrs?.align??e.attrs?.align,width:a.attrs?.width??e.attrs?.width}}),n+=2;continue}}r&&t.push(r),n++}return t}function ym(e){if(!e)return null;if(e.type===`image`)return{type:O.inlineImage,attrs:{imgAttributes:{src:e.url,alt:e.alt??void 0,title:e.title??void 0},width:100}};if(e.type===`mdxJsxTextElement`&&e.name===`img`){let t=$(e.attributes),n=100;if(t.width&&typeof t.width==`number`)n=t.width;else if(am(t.style)){let e=im(t.style);e&&(n=e)}return{type:O.inlineImage,attrs:{imgAttributes:Object.assign(Object.assign({},t),{[k]:!0}),width:n}}}return null}function bm(e,t,n){let r=xm(e,`icon`),i=xm(e,`iconType`),a=Sm(e),o=xm(e,`description`)??``,s=[{type:`paragraph`}];if(o)try{let e=Hp(o);Cm(e);let r=n(e,t),i=!Array.isArray(r)&&r.type===`doc`&&Array.isArray(r.content)?r.content:Array.isArray(r)?r:[r];i.length>0&&(s=i)}catch{s=[{type:`paragraph`,content:[Jn(o)]}]}let c=wm(e,t.source),l=$p($(e.attributes),pn,[`description`])[Gp];return{type:O.promptBlock,attrs:Object.assign({icon:r,iconType:i,actions:a},l?{[Gp]:l}:{}),content:[{type:O.promptDescription,content:s},{type:O.codeBlock,attrs:{language:`text`,__hasGroupParent:!0,__isPromptChild:!0,wrap:!0},content:c?[Jn(c)]:[]}]}}function xm(e,t){let n=$(e.attributes)[t];if(typeof n!=`string`)return;let r=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===t);if(r?.type===`mdxJsxAttribute`&&r.value!==null&&typeof r.value==`object`&&n===r.value.value){let e=n.trim();if(e.startsWith("`")&&e.endsWith("`"))return e.slice(1,-1).replace(/\\`/g,"`").replace(/\\\$/g,`$`).replace(/\\\\/g,`\\`)}return n}function Sm(e){let t=$(e.attributes,{staticOnly:!0}).actions;return Array.isArray(t)?t.filter(e=>typeof e==`string`):[`copy`]}function Cm(t){o(t,`link`,(t,n,r)=>{if(r&&typeof n==`number`&&t.children.length===1&&t.children[0]?.type===`text`&&t.children[0].value===t.url)return r.children[n]={type:`text`,value:t.url},e})}function wm(e,t){if(!e.position||!t)return``;let n=e.position.start.offset,r=e.position.end.offset;if(n===void 0||r===void 0)return``;let i=t.slice(n,r),a=i.match(/<\/\s*Prompt\s*>$/);if(!a)return``;let o=-1,s=0,c=!1,l=!1;for(let e=1;e<i.length;e++){let t=i[e]??``,n=i[e-1]??``;if(l)t==="`"&&n!==`\\`&&(l=!1);else if(c)t===c&&n!==`\\`&&(c=!1);else if(t==="`"&&s>0)l=!0;else if(t===`"`||t===`'`)c=t;else if(t===`{`)s++;else if(t===`}`)s--;else if(t===`>`&&s===0){o=e+1;break}}if(o===-1)return``;let u=i.length-a[0].length;return i.slice(o,u).trim()}var Tm={[O.accordion]:Qt,[O.badge]:nn,[O.card]:Xt,[O.codeBlock]:fn,[O.columns]:Zt,[O.expandable]:on,[O.frame]:an,[O.icon]:dn,[O.mermaidBlock]:mn,[O.paramField]:hn,[O.promptBlock]:pn,[O.responseField]:gn,[O.step]:Yt,[O.tab]:en,[O.tabs]:tn,[O.tooltip]:rn,[O.update]:un,[O.visibility]:sn};function Em(e,t){return $p(e,Tm[t]??[])}var Dm=/* @__PURE__ */ new Map([[O.callout,!0],[O.column,!0],[O.expandable,!0],[O.frame,!0],[O.paramField,!0],[`Prompt`,!1],[O.responseField,!0],[O.tab,!0],[O.update,!0],[O.visibility,!1],[O.accordion,!1],[O.accordionGroup,!1],[O.card,!1],[O.codeGroup,!1],[O.columns,!1],[O.requestExample,!1],[O.responseExample,!1],[O.steps,!1],[O.tabs,!1]]);function Om(e,t){let n=t.nodes[e];return!!n&&!n.isInline&&!(n.spec.group??``).split(` `).includes(`block`)}var km=(e,t)=>Dm.get(e)&&t.length===0?[{type:`paragraph`}]:t;function Am(e,t,n,r){if(!e.name)return[];try{return jm(e,t,n,r)}catch{return[]}}function jm(e,t,n,r){if(!e.name)return[];if(/^h[1-6]$/.test(e.name)){let r=$(e.attributes),i=Object.keys(r);if(i.length===1&&i[0]===`id`){let i=parseInt(e.name[1]??`1`,10),a=e.children.flatMap(e=>e.type===`paragraph`?e.children:[e]);return{type:`heading`,attrs:{level:i,customId:r.id},content:a.flatMap(e=>n(e,t)).filter(Boolean)}}}if(e.name===`img`)return om(e);if(e.name===`video`)return cm(e);if(e.name===`Frame`){let n=$(e.attributes);return{type:O.frame,attrs:$p(n,an),content:km(O.frame,r(e,t))}}let i=Ot.includes(e.name);if(e.name===O.steps)return Lm(e,t,n,r);if(e.name===O.accordion)return zm(e,t,n,r);if(e.name===O.accordionGroup)return{type:O.accordionGroup,attrs:Object.assign(Object.assign({},Em($(e.attributes),O.accordionGroup)),t.hasGroupParent&&{__hasGroupParent:!0}),content:r(e,Object.assign(Object.assign({},t),{hasGroupParent:!0}))};if(e.name===O.card)return Bm(e,t,n,r);if([O.tabs,O.codeGroup,O.requestExample,O.responseExample].includes(e.name))return Vm(e,t,n,r);if(e.name===O.columns)return Hm(e,t,r);if(e.name===O.color)return Wm(e);if(e.name===O.tree)return Km(e);if(e.name===O.database)return Jm(e,t);let a=i?O.callout:e.name;if((i||e.name!==O.step&&Object.values(O).includes(e.name))&&(t.hasGroupParent||!Om(a,t.schema??wn))){let n=$(e.attributes);return{type:a,attrs:Object.assign(Object.assign({},i?nm(e.name,n):Em(n,a)),t.hasGroupParent&&{__hasGroupParent:!0}),content:km(a,r(e,t))}}return e.name===`table`&&!$m(e)&&!Zm(e)&&!Qm(e)?eh(e,t,n,r):kt.has(e.name)?{type:O.staticHTML,attrs:{tagName:e.name,attributes:$(e.attributes),mdxJsxNode:$n(e,t)},content:r(e,Object.assign(Object.assign({},t),{hasStaticHtmlParent:!0}))}:e.name===`Prompt`?bm(e,t,n):At.has(e.name)?{type:O.customComponent,attrs:{name:e.name,attributes:$(e.attributes)},content:r(e,t)}:{type:O.unknownTag,attrs:{mdxJsxNode:e}}}function Mm(e){let t=e.children.flatMap(e=>e.type!==`paragraph`||!Pm(e.children)?e:e.children.filter(e=>e.type===`mdxJsxTextElement`).map(e=>Object.assign(Object.assign({},e),{type:`mdxJsxFlowElement`})));return Object.assign(Object.assign({},e),{children:t})}function Nm(e,t){return Mm(e).children.filter(e=>e.type===`mdxJsxFlowElement`&&(t===void 0||e.name===t))}function Pm(e){return e.every(e=>e.type===`mdxJsxTextElement`&&Fm(e.name)||e.type===`text`&&e.value.trim()===``)}function Fm(e){return!!e&&!kt.has(e)&&!jt.has(e)}function Im(e,t,n,r){let i=typeof t==`string`&&t?pe(t).flatMap(e=>r(e,n)):[];return Object.assign({type:e},i.length>0?{content:i}:{})}function Lm(e,t,n,r){let i=Mm(e).children,a=[];for(let t of i)if(t.type!==`text`||t.value.trim()!==``){if(t.type!==`mdxJsxFlowElement`||t.name!==O.step)return{type:O.unknownTag,attrs:{mdxJsxNode:e}};a.push(t)}let o=a.map((e,i)=>Rm(e,t,n,r,{index:i,isLast:i===a.length-1}));return{type:O.steps,attrs:Object.assign(Object.assign({},$p($(e.attributes),[])),t.hasGroupParent&&{__hasGroupParent:!0}),content:o}}function Rm(e,t,n,r,i){let a=$(e.attributes),o=a.title,s=r(e,t);return{type:O.step,attrs:Object.assign(Object.assign(Object.assign({},$p(a,Yt,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),{__childIndex:i.index,__isLastInGroup:i.isLast}),content:[Im(O.stepTitle,o,t,n),{type:O.stepBody,content:s.length>0?s:[{type:`paragraph`}]}]}}function zm(e,t,n,r){let i=$(e.attributes),a=i.title,o=r(e,t),s=Im(O.accordionTitle,a,t,n),c={type:O.accordionBody,content:o.length>0?o:[{type:`paragraph`}]};return{type:O.accordion,attrs:Object.assign(Object.assign({},$p(i,Qt,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),content:[s,c]}}function Bm(e,t,n,r){let i=$(e.attributes),a=i.title,o=r(e,t),s=Im(O.cardTitle,a,t,n),c={type:O.cardBody,content:o.length>0?o:[{type:`paragraph`}]};return{type:O.card,attrs:Object.assign(Object.assign({},$p(i,Xt,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),content:[s,c]}}function Vm(e,t,n,r){let i={[O.tabs]:O.tab,[O.codeGroup]:O.codeBlock,[O.requestExample]:O.codeBlock,[O.responseExample]:O.codeBlock},a=e.children.filter(e=>e.type===`code`),o=t=>e.name===O.tabs?$p(t,tn):$p(t,[]);if(a.length>0)return{type:e.name??O.codeGroup,attrs:Object.assign(Object.assign({},o($(e.attributes))),t.hasGroupParent&&{__hasGroupParent:!0}),content:a.map((e,r)=>{let i=n(e,Object.assign(Object.assign({},t),{hasGroupParent:!0,isHidden:r!==0}));return Array.isArray(i)?i[0]??{type:`paragraph`}:i})};let s=Nm(e);if(s.length>0){let n=i[e.name??``]??O.tab,a=e=>n===O.tab?$p(e,en):e,c=s.map((i,o)=>({type:n,attrs:Object.assign(Object.assign({},a($(i.attributes))),{__isHidden:o!==0,__hasGroupParent:!0}),content:km(n,r(i,Object.assign(Object.assign({},t),{hasGroupParent:e.name!==O.tabs,isHidden:e.name!==O.tabs&&o!==0})))}));return{type:e.name??O.tabs,attrs:Object.assign(Object.assign({},o($(e.attributes))),t.hasGroupParent&&{__hasGroupParent:!0}),content:c}}return r(e,t).length>0?{type:O.unknownTag,attrs:{mdxJsxNode:e}}:{type:e.name??O.tabs,attrs:o($(e.attributes)),content:[]}}function Hm(e,t,n){let r=$p($(e.attributes),Zt),i=n(e,Object.assign(Object.assign({},t),{hasGroupParent:!0})).map(e=>e.type===O.column?Object.assign(Object.assign({},e),{content:km(O.column,e.content??[])}):e);return{type:O.columns,attrs:Object.assign(Object.assign({},r),t.hasGroupParent&&{__hasGroupParent:!0}),content:i}}function Um(e){let t=$(e.attributes),n=t.__namedExpressionAttributes;return{type:`item`,name:typeof t.name==`string`?t.name:void 0,value:t.value,rawValueExpr:n?.value}}function Wm(e){let t=$(e.attributes),n=typeof t.variant==`string`?t.variant:null,r=$p(t,[],[`variant`]),i=Nm(e).map(e=>{if(e.name===`Color.Item`)return Um(e);if(e.name===`Color.Row`){let t=$(e.attributes),n=Nm(e,`Color.Item`).map(Um);return{type:`row`,title:typeof t.title==`string`?t.title:void 0,items:n}}return null}).filter(e=>e!==null);return{type:O.color,attrs:Object.assign({variant:n,colorData:i},r)}}function Gm(e){return Nm(e).map(e=>{if(e.name===`Tree.File`){let t=$(e.attributes);return{type:`file`,name:typeof t.name==`string`?t.name:void 0}}if(e.name===`Tree.Folder`){let t=$(e.attributes);return{type:`folder`,name:typeof t.name==`string`?t.name:void 0,defaultOpen:typeof t.defaultOpen==`boolean`?t.defaultOpen:void 0,openable:typeof t.openable==`boolean`?t.openable:void 0,children:Gm(e)}}return null}).filter(e=>e!==null)}function Km(e){let t=$p($(e.attributes),[]);return{type:O.tree,attrs:Object.assign({treeData:Gm(e)},t)}}var qm=[`view`,`sort`,`filter`,`groupBy`,`calendarBy`];function Jm(e,t){let n=zn(e.attributes),r=$(Bn(e.attributes));return t.databases===!0&&n!==Mn&&(t.schema??wn).nodes[O.database]&&e.children.length===0&&!(Up in r)&&!(Wp in r)&&On(r.id)&&qm.every(e=>r[e]===void 0||typeof r[e]==`string`)?{type:O.database,attrs:Object.assign(Object.assign({},$p(r,ln)),{sql:n})}:{type:O.unknownTag,attrs:{mdxJsxNode:e}}}var Ym=/* @__PURE__ */ new Set([`colspan`,`colSpan`,`rowspan`,`rowSpan`]),Xm=/* @__PURE__ */ new Set([`class`,`className`]);function Zm(e){return e.attributes.some(e=>e.type===`mdxJsxAttribute`&&Xm.has(e.name))}function Qm(e){return nh(e.children).some(e=>(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&(e.name===`tfoot`||e.name===`caption`||e.name===`thead`&&rh(e.children,`tr`).length>1))}function $m(e){return uh(e)&&e.attributes.some(e=>e.type===`mdxJsxAttribute`&&Ym.has(e.name))?!0:`children`in e&&e.children.some(e=>$m(e))}function eh(e,t,n,r){let i=[];for(let t of nh(e.children))ch(t)?i.push(t):(th(t,`thead`)||th(t,`tbody`))&&i.push(...nh(t.children).filter(ch));if(i.length===0)return{type:`table`,content:[]};let a=oh(e);return{type:`table`,content:i.map((e,i)=>({type:`tableRow`,content:lh(e).map((e,o)=>{let s=e.name===`th`||i===0,c=a[o],l=$(e.attributes).style,u=(typeof l==`string`?l:l&&typeof l==`object`?Object.entries(l).map(([e,t])=>`${e}: ${String(t)}`).join(`; `):``).match(/text(?:-align|Align):\s*(left|center|right)/i),d=dh(e,t,n,r);return{type:s?`tableHeader`:`tableCell`,attrs:{align:u?.[1]??null,colwidth:c?[c]:null},content:d.length>0?d:[{type:`paragraph`}]}})}))}}function th(e,t){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===t}function nh(e){return e.flatMap(e=>e.type===`paragraph`?e.children:[e])}function rh(e,t){return nh(e).filter(e=>th(e,t))}function ih(e){let t=$(e.attributes),n=t.style,r=typeof n==`string`?n.match(/(?:^|;)\s*width:\s*([^;]+)/i)?.[1]:n&&typeof n==`object`?n.width:void 0,i=t.width??r;if(typeof i==`number`)return i>0?i:null;if(typeof i!=`string`)return null;let a=i.trim().match(/^(\d+(?:\.\d+)?)(?:px)?$/),o=a?.[1]?Number(a[1]):NaN;return o>0?o:null}function ah(e){let t=Number($(e.attributes).span);return Number.isInteger(t)&&t>0?t:1}function oh(e){let t=rh(e.children,`col`);for(let n of rh(e.children,`colgroup`))t.push(...rh(n.children,`col`));return t.flatMap(e=>Array(ah(e)).fill(ih(e)))}function sh(e){return Array.isArray(e)?e.filter(Boolean):[e]}function ch(e){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===`tr`}function lh(e){let t=[];for(let n of e.children)if(uh(n))t.push(n);else if(n.type===`paragraph`)for(let e of n.children)uh(e)&&t.push(e);return t}function uh(e){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&(e.name===`td`||e.name===`th`)}function dh(e,t,n,r){let i=[];for(let a of e.children)if(a.type!==`mdxJsxFlowElement`&&a.type!==`mdxJsxTextElement`)i.push(...sh(n(a,t)));else if(a.name===`p`)i.push({type:`paragraph`,content:fh(a,t,n,r)});else if(a.name&&/^h[1-6]$/.test(a.name)){let e=parseInt(a.name[1]??`1`,10),o=$(a.attributes);i.push({type:`heading`,attrs:{level:e,id:o.id??null},content:fh(a,t,n,r)})}else if(a.name===`ul`||a.name===`ol`){let e=a.children.filter(e=>(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===`li`).map(e=>({type:`listItem`,content:[{type:`paragraph`,content:fh(e,t,n,r)}]}));e.length>0&&i.push({type:a.name===`ol`?`orderedList`:`bulletList`,attrs:a.name===`ol`?{start:Yp(a.attributes)}:{},content:e})}else i.push(...sh(n(a,t)));return Qn(i,t.schema??wn)}function fh(e,t,n,r){return e.type===`mdxJsxFlowElement`?r(e,t).flatMap(e=>e.type===`paragraph`?e.content??[]:[e]):e.children.flatMap(e=>sh(n(e,t)))}function ph(e,t,n){if(e.name===`Tooltip`){let r=$p($(e.attributes),rn),i=n(e,t);return{type:O.tooltip,attrs:r,content:i.length>0?i:[]}}if(e.name===`img`)return om(e,!0);if(e.name===`video`)return cm(e);if(e.name===`br`)return{type:`hardBreak`};if(e.name===`kbd`){let{text:t}=Yn(e);return Jn(t,[{type:`kbd`}])}if(e.name===`Icon`)return{type:O.icon,attrs:$p($(e.attributes),dn)};if(e.name===`Badge`){let t=$p($(e.attributes),nn),{text:n}=Yn(e);return{type:O.badge,attrs:t,content:n?[{type:`text`,text:n}]:[]}}if(e.name===`u`||e.name===`sub`||e.name===`sup`){let{text:t}=Yn(e);return{type:`text`,text:t,marks:Xn(e)}}if(e.name&&Ot.includes(e.name))return{type:O.callout,attrs:nm(e.name,$(e.attributes)),content:[{type:`paragraph`,content:n(e,t)}]};if(e.name&&At.has(e.name))return{type:O.customComponent,attrs:{name:e.name,attributes:$(e.attributes)},content:Qn(n(e,t),t.schema??wn)};if(e.name&&kt.has(e.name)){let r=t.schema??wn,i=n(e,Object.assign(Object.assign({},t),{hasStaticHtmlParent:!0})),a=i.some(e=>!Zn(e,r));return{type:a?O.staticHTML:O.inlineStaticHTML,attrs:{tagName:e.name,attributes:$(e.attributes),mdxJsxNode:$n(e,t)},content:a?Qn(i,r):i}}return e.name?{type:O.inlineUnknownTag,attrs:{mdxJsxNode:e}}:{type:`paragraph`,content:n(e,t)}}var mh=e=>{let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&/\s/.test(e[r]);)r++;if(r>=n)break;let i=``;for(;r<n&&!/\s/.test(e[r]);){let t=e[r];if(t===`"`||t===`'`){let a=t;for(i+=t,r++;r<n&&e[r]!==a;)e[r]===`\\`&&r+1<n?(i+=e[r]+e[r+1],r+=2):(i+=e[r],r++);r<n&&(i+=e[r],r++)}else if(t===`{`){for(;r<n&&e[r]!==`}`;)i+=e[r],r++;r<n&&(i+=e[r],r++)}else i+=t,r++}i&&t.push(i)}return t},hh=e=>{let t=e.match(/^\{(.*)\}$/);return t?t[1]??``:_h(e)},gh=e=>e.replace(/\\(["'\\])/g,`$1`),_h=e=>{let t=e.match(/^(['"])(.*)\1$/);return t?gh(t[2]??``):e.startsWith(`"`)||e.startsWith(`'`)?e.slice(1):e},vh=e=>{if(!e)return{};let t={},n=mh(e.trim()),r=[];for(let e of n){let n=e.match(/^highlight=(.+)$/);if(n){let e=hh(n[1]??``);e&&(t.highlight=e);continue}let i=e.match(/^\{([\d,\-]+)\}$/);if(i){t.highlight=i[1]??``;continue}let a=e.match(/^focus=(.+)$/);if(a){let e=hh(a[1]??``);e&&(t.focus=e);continue}let o=e.match(/^icon=(.+)$/);if(o){t.icon=_h(o[1]??``);continue}let s=e.match(/^title=(.+)$/);if(s){let e=_h(s[1]??``);e&&(t.filename=e,t.filenameSyntax=`title`)}else e===`expandable`||e===`lines`||e===`wrap`||e===`twoslash`||e===`nocopy`?t[e]=!0:e.includes(`=`)||r.push(e)}return t.filename===void 0&&r.length>0&&(t.filename=r.join(` `)),t};function yh(e){let t=e.split(`
35
+ `),n=[],r=[],i=[];for(let e=0;e<t.length;e++){let a=t[e]??``,o=a.match(/^(.*?)\s*(?:\/\/|\/\*|#|--|<!--)\s*\[!code \+\+\]\s*(?:\*\/|-->)?\s*$/),s=a.match(/^(.*?)\s*(?:\/\/|\/\*|#|--|<!--)\s*\[!code --\]\s*(?:\*\/|-->)?\s*$/);o?(n.push(e+1),i.push(o[1]??``)):s?(r.push(e+1),i.push(s[1]??``)):i.push(a)}return{cleanedCode:i.join(`
36
+ `),addLines:n,removeLines:r}}function bh(e){if(!e)return[];let t=[],n=e.replace(/[{}[\]]/g,``).split(`,`);for(let e of n){let n=e.trim(),r=n.match(/^(\d+)-(\d+)$/);if(r){let e=parseInt(r[1]??`0`,10),n=parseInt(r[2]??`0`,10);for(let r=e;r<=n;r++)t.push(r)}else{let e=parseInt(n,10);isNaN(e)||t.push(e)}}return t}function xh(e){if(e.length===0)return``;let t=[...new Set(e)].sort((e,t)=>e-t),n=[],r=t[0]??0,i=r;for(let e=1;e<t.length;e++){let a=t[e]??0;a===i+1||(n.push(r===i?String(r):`${r}-${i}`),r=a),i=a}return n.push(r===i?String(r):`${r}-${i}`),n.join(`,`)}function Sh(e){let t=/* @__PURE__ */ new Set([`html`,`xml`,`svg`,`mdx`,`md`,`markdown`]),n=/* @__PURE__ */ new Set([`python`,`ruby`,`bash`,`sh`,`shell`,`zsh`,`yaml`,`yml`,`toml`,`perl`,`r`,`elixir`,`dockerfile`,`makefile`,`cmake`]),r=/* @__PURE__ */ new Set([`sql`,`lua`,`haskell`,`elm`]),i=/* @__PURE__ */ new Set([`css`,`scss`,`sass`,`less`,`stylus`]);return t.has(e)?{open:`<!--`,close:`-->`}:n.has(e)?{open:`#`,close:``}:r.has(e)?{open:`--`,close:``}:i.has(e)?{open:`/*`,close:`*/`}:{open:`//`,close:``}}var Ch=/* @__PURE__ */ new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`ul`,`ol`]);function wh(e){return e.type!==`text`||`value`in e&&typeof e.value==`string`&&e.value.trim()!==``}function Th(e){return e?Array.isArray(e)?e.filter(Boolean):[e]:[]}function Eh(e,t,n){return e.flatMap(e=>{if(e.type===`text`){let{text:t,marks:n}=Yn(e);return[Jn(t,n)]}if(e.type===`image`||e.type===`mdxJsxTextElement`&&e.name===`img`){let t=ym(e);return t?[t]:[]}return Th(n(e,t))}).filter(Boolean)}function Dh(e,t,n){let r=e.findIndex(wh);if(r===-1)return null;let i=e.length-1;for(;i>r&&!wh(e[i]);)i--;return{type:`paragraph`,content:Eh(e.slice(r,i+1),t,n)}}function Oh(e,t,n){if(e.some(e=>e.type===`mdxJsxTextElement`&&e.name!=null&&Ch.has(e.name))){let r=[],i=[],a=()=>{let e=Dh(i,t,n);e&&r.push(e),i=[]};for(let o of e){if(o.type===`mdxJsxTextElement`&&o.name!=null&&Ch.has(o.name)){if(a(),/^h[1-6]$/.test(o.name)){let e=parseInt(o.name[1]??`1`,10);r.push({type:`heading`,attrs:{level:e},content:Eh(o.children,t,n)});continue}if(o.name===`ul`||o.name===`ol`){let e=o.children.filter(e=>e.type===`mdxJsxTextElement`&&e.name===`li`).map(e=>({type:`listItem`,content:[{type:`paragraph`,content:Eh(e.children,t,n)}]}));e.length>0&&r.push({type:o.name===`ol`?`orderedList`:`bulletList`,attrs:o.name===`ol`?{start:Yp(o.attributes)}:{},content:e});continue}}i.push(o)}return a(),r}if(e.every(e=>e.type===`text`||e.type===`emphasis`||e.type===`strong`||e.type===`link`||e.type===`linkReference`||e.type===`inlineCode`||e.type===`delete`||e.type===`image`||e.type===`break`||e.type===`inlineMath`||e.type===`footnoteReference`||e.type===`mdxTextExpression`||e.type===`mdxJsxTextElement`)){let r=Dh(e,t,n);return r?[r]:[]}return e.flatMap(e=>Th(n(e,t)))}function kh(e,t,n,r){let i=t.schema??wn;if(e.children.some(e=>e.type===`image`||e.type===`mdxJsxTextElement`&&e.name===`img`)){if(e.children.some(e=>e.type===`text`||e.type===`emphasis`||e.type===`strong`||e.type===`link`||e.type===`linkReference`||e.type===`inlineCode`||e.type===`delete`||e.type===`mdxJsxTextElement`&&e.name!==`img`)){let r=[];for(let i of e.children)if(i.type===`image`||i.type===`mdxJsxTextElement`&&i.name===`img`){let e=ym(i);e&&r.push(e)}else{let e=n(i,t);Array.isArray(e)?r.push(...e):r.push(e)}return Ah(r,i)}let r=[];for(let i of e.children)if(i.type===`image`||i.type===`mdxJsxTextElement`&&i.name===`img`){let e=n(i,t);Array.isArray(e)?r.push(...e):r.push(e)}return r.length>0?r:[]}let a=r(e,t);return a.every(e=>Zn(e,i))?{type:`paragraph`,content:a}:Ah(a,i)}function Ah(e,t){return Qn(vm(e),t).map(e=>e.type===`paragraph`?jh(e):e).filter(e=>e.type!==`paragraph`||(e.content?.length??0)>0)}function jh(e){let t=[...e.content??[]],n=t[0];n?.type===`text`&&n.text&&!n.marks?.some(e=>e.type===`code`)&&(t[0]=Object.assign(Object.assign({},n),{text:n.text.replace(/^\s+/,``)}));let r=t.length-1,i=t[r];return i?.type===`text`&&i.text&&!i.marks?.some(e=>e.type===`code`)&&(t[r]=Object.assign(Object.assign({},i),{text:i.text.replace(/\s+$/,``)})),Object.assign(Object.assign({},e),{content:t.filter(e=>e.type!==`text`||e.text!==``)})}function Mh(e,t,n){let r=e.children,i=e.align||[],a=r[0]?.children.length??0;return{type:`table`,content:r.map((e,r)=>{let o=e.children.reduce((e,t,n)=>t.children.length>0?Math.max(e,n+1):e,a);return{type:`tableRow`,content:e.children.slice(0,o).map((e,a)=>{let o=Oh(e.children,t,n),s=i[a];return{type:r===0?`tableHeader`:`tableCell`,attrs:{align:s??null},content:o.length>0?o:[{type:`paragraph`,content:[]}]}})}})}}function Nh(e,t){if(e.lang===`mermaid`&&!t.hasGroupParent){if(!e.value)return[];let t=e.meta||``,n=t.match(/placement=["']([^"']+)["']/),r=t.match(/actions=\{(true|false)\}/);return{type:O.mermaidBlock,attrs:{placement:n?.[1]||`bottom-right`,actions:r?r[1]===`true`:null},content:[{type:O.codeBlock,attrs:{language:`text`,__hasGroupParent:!0,__isMermaidChild:!0},content:[Jn(e.value)]}]}}let n=vh(e.meta||``),r=e.lang===`nocopy`;r&&n.nocopy===void 0&&(n.nocopy=!0);let{cleanedCode:i,addLines:a,removeLines:o}=yh(e.value||``),s={};return a.length>0&&(s.add=a),o.length>0&&(s.remove=o),Object.assign({type:O.codeBlock,attrs:Object.assign(Object.assign(Object.assign({language:r?`text`:e.lang||null},n),s),{__isHidden:t.isHidden,__hasGroupParent:t.hasGroupParent})},i?{content:[Jn(i)]}:{})}function Ph(e,t=``,n){let r=n?.schema??wn,i=qn(e),a=/* @__PURE__ */ new Map;o(e,e=>{e.type===`definition`&&!a.has(e.identifier)&&a.set(e.identifier,e);let t=e.type===`mdxJsxTextElement`&&e.name===`Prompt`;e.type!==`list`&&e.type!==`mdxJsxFlowElement`&&!t&&delete e.position});let s=Fh(e,{source:t,frontmatter:i,schema:r,definitions:a,databases:n?.databases===!0}),c=Qn(Array.isArray(s)?s:s.content??[],r),l={type:`doc`,content:c.length>0?c:[]};return{doc:He.fromJSON(r,l),frontmatter:i}}function Fh(e,t){if(!e)return[];switch(e.type){case`root`:return{type:`doc`,content:Bh(e,t)};case`heading`:return{type:`heading`,attrs:{level:e.depth},content:Bh(e,t)};case`paragraph`:return kh(e,t,Fh,Bh);case`text`:return e.value?{type:`text`,text:e.value.replace(/\n/g,` `)}:[];case`blockquote`:{let n=Bh(e,t);return{type:`blockquote`,content:n.length?n:[{type:`paragraph`}]}}case`list`:{let n=e.ordered?{start:e.start??1}:{},r=e.children.map(e=>Fh(e,t));return{type:e.ordered?`orderedList`:`bulletList`,attrs:n,content:r.flat()}}case`listItem`:{let n=Bh(e,t);return{type:`listItem`,attrs:{checked:e.checked??null},content:n[0]?.type===`paragraph`?n:[{type:`paragraph`,content:[]},...n]}}case`table`:return Mh(e,t,Fh);case`tableRow`:case`tableCell`:return[];case`thematicBreak`:return{type:`horizontalRule`};case`break`:return{type:`hardBreak`};case`image`:return{type:O.image,attrs:{imgAttributes:{src:e.url,alt:e.alt??void 0,title:e.title??void 0}}};case`code`:return Nh(e,t);case`emphasis`:case`strong`:case`link`:case`delete`:return Ih(e.children,Xn(e),t);case`linkReference`:{let n=Lh(e,t);return n?Ih(e.children,[n],t):{type:O.inlineUnknownTag,attrs:{mdxJsxNode:e}}}case`inlineCode`:{let{text:t,marks:n}=Yn(e);return Jn(t,n)}case`math`:return e.value?{type:O.blockMath,attrs:{expression:e.value}}:[];case`inlineMath`:return e.value?{type:O.inlineMath,attrs:{expression:e.value}}:[];case`yaml`:return[];case`mdxJsxTextElement`:{let n=Rh(e,[],t);if(n)return n;if(!e.name||!Dm.has(e.name)||Om(e.name,t.schema??wn))return ph(e,t,Bh);let r=Am(Object.assign(Object.assign({},e),{type:`mdxJsxFlowElement`,children:e.children.length>0?[{type:`paragraph`,children:e.children}]:[]}),t,Fh,Vh);return(Array.isArray(r)?r:[r]).length>0?r:ph(e,t,Bh)}case`mdxJsxFlowElement`:return Am(e,t,Fh,Vh);case`mdxjsEsm`:return{type:O.mdxJsEsm,attrs:{mdastNode:e}};case`mdxFlowExpression`:return{type:O.unknownTag,attrs:{mdxJsxNode:e,__isHidden:!0}};case`mdxTextExpression`:case`footnoteReference`:return{type:O.inlineUnknownTag,attrs:{mdxJsxNode:e}};case`definition`:return{type:O.unknownTag,attrs:{mdxJsxNode:e,__isHidden:!0}};default:return{type:O.unknownTag,attrs:{mdxJsxNode:e}}}}function Ih(e,t,n){let r=[];for(let i of e)if(i.type===`text`)i.value&&r.push(Jn(i.value.replace(/\n/g,` `),t));else if(i.type===`break`)r.push({type:`hardBreak`});else if(i.type===`inlineCode`)r.push(Jn(i.value||``,[...t,{type:`code`}]));else if(i.type===`linkReference`){let e=Lh(i,n);if(e)r.push(...Ih(i.children,[...t,e],n));else{let e=Fh(i,n);r.push(...Array.isArray(e)?e:[e])}}else if(i.type===`emphasis`||i.type===`strong`||i.type===`link`||i.type===`delete`)r.push(...Ih(i.children,[...t,...Xn(i)],n));else if(i.type===`mdxJsxTextElement`&&i.name===`Link`){let e=Rh(i,t,n);if(e)r.push(...e);else{let e=Fh(i,n);r.push(...Array.isArray(e)?e:[e])}}else if(i.type===`mdxJsxTextElement`&&(i.name===`u`||i.name===`sub`||i.name===`sup`))r.push(...Ih(i.children,[...t,...Xn(i)],n));else if(i.type===`mdxJsxTextElement`&&i.name===`kbd`){let{text:e}=Yn(i);e&&r.push(Jn(e,[...t,{type:`kbd`}]))}else if(i.type===`image`||i.type===`mdxJsxTextElement`&&i.name===`img`){let e=ym(i);e&&r.push(t.length>0?Object.assign(Object.assign({},e),{marks:t}):e)}else{let e=Fh(i,n),a=Array.isArray(e)?e:[e],o=i.type===`mdxTextExpression`&&t.length>0?a.map(e=>Object.assign(Object.assign({},e),{marks:t})):a;r.push(...o)}return r}function Lh(e,t){let n=t.definitions?.get(e.identifier);if(n)return{type:`link`,attrs:{href:n.url,title:n.title??void 0,referenceLabel:e.label??n.label??e.identifier}}}function Rh(e,t,n){let r=zh(e,n);if(!r)return;let i=Ih(e.children,[...t,r],n),a=n.schema??wn,o=i.every(e=>{if(!Zn(e,a)||e.type!==`text`&&e.type!==O.inlineImage&&e.type!==O.inlineUnknownTag)return!1;let t=e.marks?.filter(e=>e.type===`link`)??[];return t.length===1&&t[0]?.attrs?.mdxLinkAttributes!==void 0});return i.length>0&&o?i:void 0}function zh(e,t){if(e.name!==`Link`||e.attributes.some(e=>e.type===`mdxJsxExpressionAttribute`))return;let n=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===`href`);if(!n||typeof n.value!=`string`)return;let r=$(e.attributes),i=t.nextMdxLinkId??0;return t.nextMdxLinkId=i+1,{type:`link`,attrs:{href:n.value,title:typeof r.title==`string`?r.title:void 0,mdxLinkAttributes:r,mdxLinkId:i}}}function Bh(e,t){return vm(e.children.flatMap(e=>Fh(e,t)).filter(Boolean))}function Vh(e,t){return Qn(vm(Mm({children:e.children}).children.flatMap(e=>e.type===`mdxJsxFlowElement`?Am(e,t,Fh,Vh):Fh(e,t)).filter(Boolean)),t.schema??wn)}function Hh(e,t){return Ph(Hp(e,t),e,t)}var Uh=p().use(mt).use(a,[`yaml`,`toml`]).use(l).freeze(),Wh=/(<\/?(?:aside|details)\b[^>]*>|<summary\b[^>]*>[\s\S]*?<\/summary>)/i,Gh=/^<summary\b[^>]*>([\s\S]*?)<\/summary>$/i,Kh=/<(area|br|col|embed|hr|img|input|source|track|wbr)\b((?:[^>"']|"[^"]*"|'[^']*')*?)\s*\/?>/gi,qh=/^<([a-z][\w-]*)\b[^>]*(?<!\/)>$/i,Jh=/<\/?[a-z][^>]*>/gi,Yh=/* @__PURE__ */ new Set([`paragraph`,`heading`,`tableCell`,`emphasis`,`strong`,`delete`,`link`,`linkReference`]),Xh=e=>`open`in e||`close`in e||`summary`in e,Zh=e=>(e?.type===`mdxJsxFlowElement`||e?.type===`mdxJsxTextElement`)&&e.name===`summary`,Qh=({tag:e,title:t,children:n})=>({type:`mdxJsxFlowElement`,name:e===`aside`?`Callout`:`Accordion`,attributes:e===`details`?[{type:`mdxJsxAttribute`,name:`title`,value:t??``}]:[],children:n});function $h(e){let[t]=e;if(Zh(t))return e.shift(),Yn(t).text.trim();if(t?.type!==`paragraph`||!Zh(t.children[0]))return;let n=t.children.shift();return Yn(t).text.trim()||e.shift(),Yn(n).text.trim()}function eg(e){o(e,`mdxJsxFlowElement`,(e,t,n)=>{if(!n||t===void 0||e.name!==`aside`&&e.name!==`details`)return;let r=e.children,i=e.name===`details`?$h(r):void 0;n.children[t]=Qh({tag:e.name,title:i,children:r})})}var tg=/^\s*\/\*[\s\S]*\*\/\s*$/;function ng(e){o(e,(e,t,n)=>{if(e.type!==`mdxTextExpression`&&e.type!==`mdxFlowExpression`||!n||t===void 0||tg.test(e.value))return;let r={type:`text`,value:`{${e.value}}`};n.children[t]=e.type===`mdxFlowExpression`?{type:`paragraph`,children:[r]}:r})}function rg(e){try{return Hp(e.replace(Kh,`<$1$2 />`)).children}catch{let t=e.replace(Jh,``).trim();return t?[{type:`paragraph`,children:[{type:`text`,value:t}]}]:[]}}function ig(e){return rg(e).flatMap(e=>e.type===`paragraph`?e.children:e.type===`mdxJsxFlowElement`?[Object.assign(Object.assign({},e),{type:`mdxJsxTextElement`})]:[])}function ag(e){let t=e.split(Wh);return t.length===1?rg(e):t.flatMap((e,t)=>{if(t%2==0)return e.trim()?lg(e).children:[];let n=Gh.exec(e);return n?[{summary:(n[1]??``).replace(Jh,``).trim()}]:e.startsWith(`</`)?[{close:!0}]:[{open:/^<aside/i.test(e)?`aside`:`details`}]})}function og(e){let t=[],n=[],r=()=>n.at(-1)?.children??t,i=()=>{let e=n.pop();e&&r().push(Qh(e))};for(let a of e)if(!Xh(a))r().push(a);else if(`open`in a)n.push({tag:a.open,children:[]});else if(`close`in a)i();else{let e=n.at(-1);e?e.title=a.summary:t.push({type:`paragraph`,children:[{type:`text`,value:a.summary}]})}for(;n.length>0;)i();return t}function sg(e,t,n){let r=e[t],i=r?.type===`html`?qh.exec(r.value)?.[1]:void 0,a=(r?.position)?.start.offset;if(!i||a===void 0)return;let o=e.findIndex((e,n)=>n>t&&e.type===`html`&&e.value.toLowerCase()===`</${i}>`.toLowerCase()),s=(e[o]?.position)?.end.offset;if(o!==-1&&s!==void 0)return{nodes:ig(n.slice(a,s)),skip:o-t}}function cg(e,t){let n=Yh.has(e.type),r=[];for(let i=0;i<e.children.length;i++){let a=e.children[i];if(a.type!==`html`)`children`in a&&cg(a,t),r.push(a);else if(!n)r.push(...ag(a.value));else{let n=sg(e.children,i,t);r.push(...n?.nodes??ig(a.value)),i+=n?.skip??0}}e.children=r.some(Xh)?og(r):r}function lg(e){let t=Uh.parse(e);return ae(t,e),cg(t,e),t}function ug(e){try{let t=Hp(e);return eg(t),ng(t),t}catch{return lg(e)}}function dg(e,t){return Ph(ug(e),e,t)}function fg(e){return e!==void 0&&e!==``}function pg(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>fg(t)))}function mg(){let e=/* @__PURE__ */ new Set,t=/* @__PURE__ */ new Set,n=i.shape;for(let[r,i]of Object.entries(n)){let n=i instanceof ne?i.unwrap():i;n instanceof S&&e.add(r),n instanceof re&&t.add(r),n instanceof g&&n.options.every(e=>e instanceof re)&&t.add(r)}return{booleanKeys:e,arrayKeys:t}}var{booleanKeys:hg,arrayKeys:gg}=mg(),_g=Array.from(hg),vg=Array.from(gg);function yg(e){try{return JSON.parse(e)}catch{return e}}var bg=/* @__PURE__ */ new Set([`automerge`]);function xg(e,t){if(hg.has(e)||bg.has(e))return t===`true`;if(gg.has(e)){let e=yg(t);return Array.isArray(e)?e:t}return t}var Sg={lineWidth:-1,quotingType:`"`,forceQuotes:!0},Cg=/* @__PURE__ */ new Set([`background`,`eyebrow`]);function wg(e,t){return Array.isArray(e)?e.map(e=>wg(e)):typeof e==`object`&&e&&!(e instanceof Date)?Object.fromEntries(Object.entries(e).filter(([e,n])=>fg(n)||n===``&&!!t?.has(e)).map(([e,t])=>[e,wg(t)])):e}function Tg(e,t){let n=hg.has(e),r=t;n&&(r===`true`||r===`false`)&&(r=r===`true`),r===void 0&&(r=null);let i=e===`thumbnail`?Cg:void 0;return v.dump({[e]:wg(r,i)},Sg).trimEnd()}function Eg(e){if(!e||!e.startsWith(`<`)||!e.endsWith(`>`))return!1;try{let t=jp(e).parseExpressionAt(e,0,{sourceType:`module`});return t.type===`JSXElement`&&t.end===e.length}catch{return!1}}function Dg(e){return e.textContent}var Og=/^[A-Za-z_$][\w$]*$/;function kg(e){return e==null?null:typeof e==`object`?`{${Array.isArray(e)?Ag(e):jg(e,!0)}}`:typeof e==`string`?e===``?`""`:Eg(e)?`{${e}}`:e.includes(`&`)||e.includes(`"`)&&e.includes(`'`)?`{${JSON.stringify(e)}}`:e.includes(`"`)?`'${e}'`:`"${e}"`:typeof e==`number`||typeof e==`boolean`?`{${e}}`:`{${JSON.stringify(e)}}`}function Ag(e){return e==null?`null`:typeof e==`string`?JSON.stringify(e):typeof e==`number`||typeof e==`boolean`?String(e):Array.isArray(e)?`[${e.map(Ag).join(`,`)}]`:typeof e==`object`?jg(e,!1):JSON.stringify(e)??`null`}function jg(e,t){let n=Object.entries(e).filter(([,e])=>e!==void 0).map(([e,t])=>`${Og.test(e)?e:JSON.stringify(e)}:${Ag(t)}`);return t?`{ ${n.join(`,`)} }`:`{${n.join(`,`)}}`}function Mg(e,t,n){let r=Bg(e,t);if(r!==void 0)return`${t}={${r}}`;if(n===!0)return t;let i=kg(n);return i?`${t}=${i}`:null}var Ng={"&":`&amp;`,'"':`&quot;`,"<":`&lt;`,">":`&gt;`,"\n":`&#xA;`,"\r":`&#xD;`,"`":`&#x60;`,"~":`&#x7E;`},Pg=e=>e.replace(/[&"<>\n\r`~]/g,e=>Ng[e]??e),Fg=Object.assign(Object.assign({},Ng),{"'":`&#x27;`,"*":`&#x2A;`,"{":`&#x7B;`,"}":`&#x7D;`}),Ig=/&(?=#?[A-Za-z0-9]+;)|<(?=[A-Za-z/!?])|(?<=\/)\*|\*(?=\/)|[\n\r`~{}]/g;function Lg(e,t){if(typeof t!=`string`)return null;let n=t.includes(`"`)?`'`:`"`;return`${e}=${n}${t.replace(RegExp(`${Ig.source}|${n}`,`g`),e=>Fg[e]??e)}${n}`}function Rg(e,t,n){return typeof n==`string`?`${t}="${Pg(n)}"`:Mg(e,t,n)}var zg=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function Bg(e,t){let n=e[Wp];if(!zg(n))return;let r=n[t];return typeof r==`string`?r:void 0}var Vg=/* @__PURE__ */ new Set([`\\`,"`",`*`,`{`,`}`,`<`,`$`]),Hg=/* @__PURE__ */ new Set([`|`,`_`,`[`,`]`,`>`,`+`,`&`]),Ug=RegExp(`[${[...Vg,...Hg].map(e=>`\\${e}`).join(``)}]`),Wg=/[\p{L}\p{N}]/u,Gg=/^\[[ xX]\]/,Kg=/\][([]/,qg=/\]:/,Jg=/^&(?:#[0-9]{1,7}|#x[0-9a-f]{1,6}|[a-z][a-z0-9]{1,31});/i;function Yg(e){return e!==void 0&&Wg.test(e)}var Xg=class{constructor(e={}){this.chunks=[],this.chunkStarts=[],this.outLength=0,this.tail=``,this.trailingSpaces=0,this.topLevelLead=null,this.delim=``,this.closed=!1,this.inTable=!1,this.inHtmlTable=!1,this.inCodeSection=!1,this.keptBlankLines=/* @__PURE__ */ new Set,this.hasReferenceDefinitions=!1,this.indentSize=2,this.sourceMap=null,this.nodePath=[],this.options={tightLists:e.tightLists??!1,indentSize:e.indentSize??2,listIndentSize:e.listIndentSize??0,removeTrailingNewline:e.removeTrailingNewline??!0,hasReferenceDefinitions:e.hasReferenceDefinitions??!1,emphasisMarker:e.emphasisMarker??`_`},this.indentSize=this.options.indentSize,this.hasReferenceDefinitions=this.options.hasReferenceDefinitions}get out(){if(this.chunks.length>1){let e=this.chunks.join(``);this.chunks=[e],this.chunkStarts=[0]}return this.chunks[0]??``}set out(e){this.chunks=[],this.chunkStarts=[],this.outLength=0,this.tail=``,this.trailingSpaces=0,this.append(e)}get length(){return this.outLength}get trailingSpaceCount(){return this.trailingSpaces}sliceFrom(e){let t=0,n=this.chunkStarts.length-1;for(;t<n;){let r=t+n+1>>1;(this.chunkStarts[r]??0)<=e?t=r:n=r-1}let r=this.chunks[t];return r===void 0?``:r.slice(e-(this.chunkStarts[t]??0))+this.chunks.slice(t+1).join(``)}truncate(e){let t=e;for(;t>0&&this.chunks.length>0;){let e=this.chunks[this.chunks.length-1]??``;e.length<=t?(t-=e.length,this.chunks.pop(),this.chunkStarts.pop()):(this.chunks[this.chunks.length-1]=e.slice(0,e.length-t),t=0)}this.outLength-=e-t,this.tail=``,this.trailingSpaces=0;for(let e=this.chunks.length-1;e>=0&&this.tail.length<2;e--)this.tail=((this.chunks[e]??``)+this.tail).slice(-2);for(let e=this.chunks.length-1;e>=0;e--){let t=this.chunks[e]??``,n=t.length;for(;n>0&&t.charCodeAt(n-1)===32;)n--;if(this.trailingSpaces+=t.length-n,n>0)break}}append(e){if(e.length===0)return;this.chunkStarts.push(this.outLength),this.chunks.push(e),this.outLength+=e.length,this.tail=(this.tail+e).slice(-2);let t=e.length;for(;t>0&&e.charCodeAt(t-1)===32;)t--;this.trailingSpaces=t===0?this.trailingSpaces+e.length:e.length-t;let n=this.topLevelLead;if(n&&!n.content){let t=0;for(;t<e.length&&e.charCodeAt(t)===10;)t++;n.lead+=t,t<e.length&&(n.content=!0)}}beginBlock(e){return this.sourceMap?(this.nodePath.push(e),this.nodePath.length===1&&(this.topLevelLead={lead:0,content:!1}),this.outLength):0}endBlock(e){if(this.sourceMap){if(this.nodePath.length===1){let t=this.topLevelLead?.lead??0;this.topLevelLead=null,this.sourceMap.push({path:[...this.nodePath],start:e+t,end:this.outLength,kind:`block`})}this.nodePath.pop()}}recordTextSuffix(e,t,n,r){this.sourceMap&&!this.inTable&&this.sourceMap.push({path:[...this.nodePath,e],start:this.outLength-t,end:this.outLength,kind:`text`,pmStart:n,pmEnd:r})}takeTextSuffix(e){if(!this.sourceMap||e===0)return null;let t=this.sourceMap.at(-1);if(t?.kind!==`text`||t.end!==this.outLength||t.end-t.start<e||t.pmEnd-t.pmStart<e)return null;let n=Object.assign({path:[...t.path],kind:`text`,pmStart:t.pmEnd-e,pmEnd:t.pmEnd},t.offsetEncoding&&{offsetEncoding:t.offsetEncoding});return t.end-=e,t.pmEnd-=e,t.start===t.end&&this.sourceMap.pop(),n}recordTextRange(e,t,n){this.sourceMap&&!this.inTable&&this.sourceMap.push(Object.assign(Object.assign({},e),{start:t,end:n}))}withNodePath(e,t){if(!this.sourceMap)return t();this.nodePath.push(e);try{return t()}finally{this.nodePath.pop()}}recordLiteralTextRange(e,t,n,r=0){this.sourceMap&&!this.inTable&&this.sourceMap.push({path:[...this.nodePath,...e],start:t,end:n,kind:`text`,pmStart:r,pmEnd:r+n-t,offsetEncoding:`identity`})}importTextEntries(e,t,n){if(this.sourceMap)for(let r of e)r.kind===`text`&&this.sourceMap.push(Object.assign({path:[...this.nodePath,...t,...r.path],start:n(r.start),end:n(r.end),kind:`text`,pmStart:r.pmStart,pmEnd:r.pmEnd},r.offsetEncoding&&{offsetEncoding:r.offsetEncoding}))}write(e){this.closed&&=(this.append(`
37
+ `),!1),this.delim&&this.tail.endsWith(`
38
+ `)&&e.length>0&&e[0]!==`
39
+ `&&this.append(this.delim),this.append(e)}ensureNewLine(){this.tail.endsWith(`
40
+ `)||this.append(`
41
+ `)}ensureBlankLine(){this.tail.endsWith(`
42
+
43
+ `)||this.append(this.tail.endsWith(`
44
+ `)?`
45
+ `:`
46
+
47
+ `)}closeBlock(){this.closed=!0}text(e,t=!0){t&&!this.inCodeSection&&!this.inTable&&(e=this.esc(e)),this.write(e)}get escapesPipes(){return this.inTable&&!this.inHtmlTable}escCodeText(e){return this.escapesPipes?e.replace(/\|/g,`\\|`):e}esc(e,t={}){return this.escRange(e,0,e.length,t)}escRange(e,t,n,r={}){let i=e.slice(t,n);if(!Ug.test(i))return i;let a=``;for(let i=t;i<n;i++){let t=e[i];this.needsEscape(e,i,r)&&(a+=`\\`),a+=t}return a}needsEscape(e,t,{inLinkText:n=!1}){let r=e[t],i=e[t-1],a=e[t+1];if(Vg.has(r))return!0;switch(r){case`&`:return Jg.test(e.slice(t));case`|`:return this.escapesPipes;case`_`:return!(Yg(i)&&Yg(a));case`[`:return n||this.hasReferenceDefinitions||a===`^`||t===0&&(Gg.test(e)||qg.test(e))||Kg.test(e.slice(t+1));case`]`:return n||this.hasReferenceDefinitions||a===`(`||a===`[`||a===`:`&&e[0]===`[`;case`>`:return t===0;case`+`:return t===0&&(a===void 0||a===` `||a===` `);default:return!1}}},Zg=[`bold`,`italic`,`strike`];function Qg(e){return Zg.includes(e.type.name)}var $g=/* @__PURE__ */ new Set([`text`,O.inlineImage,O.inlineUnknownTag]),e_=e=>e.filter(e=>{let{open:t,close:n}=a_(e);return t.length>0||n.length>0});function t_(e,t,n){if(e.length<2)return e;let r=e.find(e=>e.type.name===`link`);if(!r)return e;let i=n;for(let e=n+1;e<t.childCount;e++){let n=t.child(e);if(!$g.has(n.type.name)||!n.marks.some(e=>e.eq(r)))break;i=e}let a=i+1<t.childCount?t.child(i+1):null,o=a&&$g.has(a.type.name)?a.marks:[],s=e.filter(e=>!e.eq(r));return s.some(e=>o.some(t=>t.eq(e)))?e:[r,...s]}function n_(e,t,n,r){let i=[],a=t=>{let n=/* @__PURE__ */ new Set;for(let e=0;e<i.length;e++){let r=i[e];r&&!t.some(e=>e.eq(r))&&n.add(e)}let r=[];for(let e of t)i.some(t=>t.eq(e))||r.push(e);if(n.size===0&&r.length===0)return;let a=i.findIndex(e=>e.type.name===`code`),o=r.length>0&&a!==-1&&!n.has(a),s;if(n.size>0||o){let t=i.length;for(let e of n)t=Math.min(t,e);o&&(t=Math.min(t,a));let r=``,c=null;if([...n].some(e=>{let t=i[e];return t!==void 0&&Qg(t)})){let t=e.trailingSpaceCount;t>0&&(r=` `.repeat(t),c=e.takeTextSuffix(t),e.truncate(t))}for(let n=i.length-1;n>=t;n--){let t=i[n];t&&e.write(a_(t,e.options.emphasisMarker).close)}let l=[];for(let e=t;e<i.length;e++)if(!n.has(e)){let t=i[e];t&&l.push(t)}if(i=i.slice(0,t),r){let t=e.length;e.write(r),c&&e.recordTextRange(c,t,e.length)}for(let t of l)t.type.name===`code`?s=t:(e.write(a_(t,e.options.emphasisMarker).open),i.push(t))}for(let t of r)t.type.name===`code`?s=t:(e.write(a_(t,e.options.emphasisMarker).open),i.push(t));s&&(e.write(a_(s,e.options.emphasisMarker).open),i.push(s))};for(let o=0;o<t.childCount;o++){let s=t.child(o),c=s.type.name;if(c===`text`){let n=s.text||``;if(!n)continue;let r=n.length,c=0,l=e_(s.marks);if(l.some(e=>Qg(e)&&!i.some(t=>t.eq(e)))){let t=n.match(/^( +)/);if(t&&(e.write(t[0]),e.recordTextSuffix(o,t[0].length,0,t[0].length),c=t[0].length,n=n.slice(t[0].length),!n))continue}a(t_(l,t,o));let u=i.some(e=>e.type.name===`code`)?e.escCodeText(n):e.esc(n,{inLinkText:i.some(e=>e.type.name===`link`)});e.write(u),e.recordTextSuffix(o,u.length,c,r)}else{if(c===O.inlineImage){a(t_(e_(s.marks),t,o)),r.renderInlineImage(e,s);continue}if(c===O.inlineUnknownTag){a(t_(e_(s.marks),t,o)),e.withNodePath(o,()=>r.renderUnknownTag(e,s));continue}a([]),c===`hardBreak`?e.write(`<br />`):c===O.icon?r.renderIcon(e,s):c===O.badge?r.renderBadge(e,s):c===O.tooltip?e.withNodePath(o,()=>r.renderTooltip(e,s)):c===O.inlineMath?s.attrs.expression&&e.write(`$$${s.attrs.expression}$$`):n(e,s,t,0)}}a([])}function r_(e,t){let n=t.text||``;if(!n)return;let r=e_(t.marks),i=``,a=``;for(let t of r){let{open:n,close:r}=a_(t,e.options.emphasisMarker);i+=n,a=r+a}if(r.length>0){let t=n,o=``,s=``;if(r.some(Qg)){let r=t.match(/^( +)/);r&&(o=r[0],t=t.slice(o.length));let i=t.match(/( +)$/);if(i&&(s=i[0],t=t.slice(0,-s.length)),!t){e.text(n);return}}o&&e.write(o),e.write(i),e.write(r.some(e=>e.type.name===`code`)?e.escCodeText(t):e.esc(t,{inLinkText:r.some(e=>e.type.name===`link`)})),e.write(a),s&&e.write(s)}else e.text(n)}function i_(e){return e.replace(/\\(?=[\u0021-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u007E]|$)/g,`\\\\`).replace(/[\[\]]/g,`\\$&`)}function a_(e,t=`_`){switch(e.type.name){case`bold`:return{open:`**`,close:`**`};case`italic`:return{open:t,close:t};case`strike`:return{open:`~~`,close:`~~`};case`code`:return{open:"`",close:"`"};case`link`:{let t=o_(e);if(t)return t;let n=e.attrs.referenceLabel;if(typeof n==`string`&&n)return{open:`[`,close:`][${i_(n)}]`};let r=e.attrs.href||``,i=e.attrs.title,a=i?` "${Pg(i)}"`:``;return{open:`[`,close:`](${Pg(r).replace(/[()]/g,`\\$&`)}${a})`}}case`underline`:return{open:`<u>`,close:`</u>`};case`subscript`:return{open:`<sub>`,close:`</sub>`};case`superscript`:return{open:`<sup>`,close:`</sup>`};case`kbd`:return{open:`<kbd>`,close:`</kbd>`};default:return{open:``,close:``}}}function o_(e){let t=e.attrs.mdxLinkAttributes,n=e.attrs.href;if(!s_(t)||typeof n!=`string`)return;let r=Object.assign(Object.assign({},t),{href:n});e.attrs.title===null||e.attrs.title===void 0?delete r.title:r.title=e.attrs.title;let i=Object.entries(r).filter(([e])=>e!==Wp).map(([e,t])=>Mg(r,e,t)).filter(e=>e!==null).join(` `);return{open:`<Link${i?` ${i}`:``}>`,close:`</Link>`}}function s_(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function c_(e){let{imgAttributes:t}=e.attrs;return s_(t)?t:{}}function l_(e){let{lightSrc:t,darkSrc:n,width:r,align:i}=e.attrs,a=c_(e);if(t&&n)return{kind:`lightDarkPair`};let o=t||a.src;return o?typeof o!=`string`||a[k]===!0||Object.keys(a).some(e=>e!==`src`&&e!==`alt`&&e!==`title`)||r||i||!v_(Object.assign(Object.assign({},a),{src:o}))?{kind:`jsx`}:{kind:`markdown`,src:o}:{kind:`none`}}function u_(e){return l_(e).kind===`markdown`}function d_(e,t){let n=c_(t),r=t.attrs.lightSrc,i=t.attrs.darkSrc,a=t.attrs.width,o=t.attrs.align,s=l_(t);if(s.kind===`lightDarkPair`){let t=n.className;m_(e,Object.assign(Object.assign({},n),{src:r,className:f_(t,o,`dark:hidden`)})),e.ensureNewLine(),m_(e,Object.assign(Object.assign({},n),{src:i,className:f_(p_(t),o,`hidden dark:block`)}))}else if(s.kind!==`none`){let t=r||n.src;if(s.kind===`jsx`){let r=Object.assign(Object.assign({},n),{src:t});o&&(r.className=f_(r.className,o)),a&&a!==100&&(r.style=Object.assign(Object.assign({},typeof r.style==`object`?r.style:{}),{width:`${a}%`})),m_(e,r)}else h_(e,n,s.src)}e.closeBlock()}function f_(e,t,n){let r=e?e.trim():``;if(t&&t in Lt){r=r.split(` `).filter(e=>!e.match(/mr-auto|ml-auto|mx-auto/)).join(` `);let e=Lt[t]??``;r=r?`${r} ${e}`:e}return n&&(r=r?`${r} ${n}`:n),r||void 0}function p_(e){if(e)return e.split(/\s+/).filter(e=>e!==`block`).join(` `).trim()||void 0}function m_(e,t){e.write(`<img`),e.ensureNewLine();for(let[n,r]of Object.entries(t)){if(r==null||Ft.has(n))continue;let i=Mg(t,n,r);i&&(e.write(` ${i}`),e.ensureNewLine())}e.write(`/>`)}function h_(e,t,n){let r=e.esc(String(t.alt||``),{inLinkText:!0}),i=Pg(n).replace(/[()]/g,`\\$&`),a=t.title;typeof a==`string`&&a?e.write(`![${r}](${i} "${Pg(a)}")`):e.write(`![${r}](${i})`)}var g_=/[\s<>\u0000-\u001F]/,__=/[\r\n]/;function v_(e){let t=e.src;if(typeof t!=`string`||!t||g_.test(t))return!1;let n=e.alt;if(typeof n==`string`&&__.test(n))return!1;let r=e.title;return!(typeof r==`string`&&__.test(r))}function y_(e,t){return!e.marks.some(e=>e.type.name===`link`)||typeof t.src!=`string`||!t.src||!v_(t)?!1:Object.entries(t).every(([e,t])=>e===`src`||e===`alt`||e===`title`||t==null)}function b_(e,t){let n=t.attrs.imgAttributes??{};if(y_(t,n))h_(e,n,n.src);else{e.write(`<img`);for(let[t,r]of Object.entries(n)){if(r==null||Ft.has(t))continue;let i=Mg(n,t,r);i&&e.write(` ${i}`)}e.write(` />`)}}function x_(e,t){let n=t.attrs.videoAttributes??{},r=t.attrs.sources??[];if(e.write(`<video`),S_(e,n),r.length===0&&n[It]===!0)e.write(`></video>`);else if(r.length===0)e.write(` />`);else{e.write(`>`),e.ensureNewLine();for(let t of r)e.write(` <source`),S_(e,t),e.write(` />`),e.ensureNewLine();e.write(`</video>`)}e.closeBlock()}function S_(e,t){for(let[n,r]of Object.entries(t)){if(r==null||Ft.has(n))continue;let i=Mg(t,n,r);i&&e.write(` ${i}`)}}var C_=(e,t)=>{let n=[0];for(let t=0;t<e.length;t++)e[t]===`
48
+ `&&n.push(t+1);return r=>{let i=Math.min(Math.max(r,0),e.length),a=n.length-1;for(;a>0&&(n[a]??0)>i;)a--;let o=n[a]??0;return(t[a]??t.at(-1)??0)+i-o}};function w_(e,t,n){for(let r=0;r<t.childCount;r++){let i=t.child(r),a=new Xg(e.options);a.sourceMap=e.sourceMap?[]:null,n(a,i,t,r);let o=a.out.replace(/\n+$/,``),s=o.split(`
49
+ `),c=[];for(let t=0;t<s.length;t++){let n=s[t]??``;e.write(n.length>0?`> `:`>`),c.push(e.length),e.write(n),e.ensureNewLine()}e.importTextEntries(a.sourceMap??[],[r],C_(o,c)),r<t.childCount-1&&(e.write(`>`),e.ensureNewLine())}e.closeBlock()}function T_(e,t,n,r){let i=typeof t.attrs.start==`number`?t.attrs.start:1,a=typeof t.attrs.tight==`boolean`?t.attrs.tight:e.options.tightLists;for(let o=0;o<t.childCount;o++){let s=t.child(o),c=s.attrs.checked,l=c==null?``:c?`[x] `:`[ ] `,u=(n?`${i+o}. `:`- `)+l,d=` `.repeat(Math.max(u.length,e.options.listIndentSize)),f=new Xg(e.options);f.sourceMap=e.sourceMap?[]:null,r(f,s);let p=f.out,m=p.split(`
50
+ `),h=[],g=0;for(let t=0;t<m.length;t++){let n=m[t]??``,r=!a||f.keptBlankLines.has(g);g+=n.length+1,t===0?(e.write(u),h.push(e.length),e.write(n)):n.length>0?(e.ensureNewLine(),e.write(d),h.push(e.length),e.write(n)):(r&&t<m.length-1&&(e.ensureBlankLine(),e.keptBlankLines.add(e.length-1)),h.push(e.length))}e.importTextEntries(f.sourceMap??[],[o],C_(p,h)),e.ensureNewLine()}e.closeBlock()}function E_(e,t,n,r){if(e.inTable=!0,t.childCount===0)e.inTable=!1;else if(!D_(t))e.inHtmlTable=!0,k_(e,t,n,r),e.inHtmlTable=!1,e.inTable=!1;else{for(let i=0;i<t.childCount;i++){let a=t.child(i);e.write(`|`);for(let t=0;t<a.childCount;t++){let i=a.child(t);e.write(` `);let o=A_(i,e.options,n,r);e.write(o),e.write(` |`)}if(e.ensureNewLine(),i===0){e.write(`|`);for(let t=0;t<a.childCount;t++){let n=a.child(t).attrs.align,r=`---`;(n===`left`||n===`center`)&&(r=`:`+r.slice(1)),(n===`right`||n===`center`)&&(r=r.slice(0,-1)+`:`),e.write(` ${r} |`)}e.ensureNewLine()}}e.closeBlock(),e.inTable=!1}}function D_(e){return O_(e).every(e=>e===null)}function O_(e){var t;let n=[];return(t=e.firstChild)==null||t.forEach(e=>{let t=e.attrs.colwidth,r=e.attrs.colspan??1;for(let e=0;e<r;e++){let r=t?.[e];n.push(typeof r==`number`&&r>0?r:null)}}),n}function k_(e,t,n,r){let i=t=>{e.write(t),e.ensureNewLine()},a=(t,a)=>{i(`${a}<tr>`),t.forEach(t=>{let o=t.type.name===`tableHeader`?`th`:`td`,s=t.attrs.align,c=s&&s!==`left`?` style={{ textAlign: "${s}" }}`:``,l=A_(t,e.options,n,r,!0);i(`${a} <${o}${c}>${l}</${o}>`)}),i(`${a}</tr>`)};i(`<table>`),i(` <colgroup>`);for(let e of O_(t))i(e===null?` <col />`:` <col width="${Math.round(e)}" />`);i(` </colgroup>`);let o=t.firstChild;if(o&&(i(` <thead>`),a(o,` `),i(` </thead>`)),t.childCount>1){i(` <tbody>`);for(let e=1;e<t.childCount;e++)a(t.child(e),` `);i(` </tbody>`)}i(`</table>`),e.closeBlock()}function A_(e,t,n,r,i=!1){let a=[];return e.forEach(e=>{if(e.type.name===`paragraph`){let r=j_(e,t,n,i);r&&a.push(r);return}if(e.type.name===`heading`){let r=j_(e,t,n,i),o=e.attrs.level||1;r&&a.push(`<h${o}>${r}</h${o}>`);return}let o=N_(e,t,n,r,i);o&&a.push(o)}),a.join(` `)}function j_(e,t,n,r=!1){let i=new Xg(t);return i.inTable=!0,i.inHtmlTable=r,n(i,e),i.out.replace(/\n/g,` `).trim()}function M_(e,t,n,r=!1){let i=new Xg(t);return i.inTable=!0,i.inHtmlTable=r,n(i,e,e,0),i.out.replace(/\n+/g,` `).replace(/\s+/g,` `).trim()}function N_(e,t,n,r,i=!1){if(e.type.name===`image`||e.type.name===O.image)return P_(e);if(e.type.name===O.frame){let a=[];if(e.forEach(e=>{let o=N_(e,t,n,r,i);o&&a.push(o)}),a.length===0)return``;let o=Object.entries(e.attrs).filter(([e,t])=>!Ft.has(e)&&t!=null).map(([t,n])=>Mg(e.attrs,t,n)).filter(Boolean).join(` `);return`${o?`<Frame ${o}>`:`<Frame>`} ${a.join(` `)} </Frame>`}if(e.type.name===`bulletList`||e.type.name===`orderedList`){let a=e.type.name===`orderedList`?`ol`:`ul`,o=[];e.forEach(e=>{let a=[];e.forEach(e=>{if(e.type.name===`paragraph`){let r=j_(e,t,n,i);r&&a.push(r);return}if(e.type.name===`heading`){let r=j_(e,t,n,i),o=e.attrs.level||1;r&&a.push(`<h${o}>${r}</h${o}>`);return}let o=N_(e,t,n,r,i);o&&a.push(o)}),o.push(`<li>${a.join(` `)}</li>`)});let s=e.attrs.start;return`${a===`ol`&&typeof s==`number`&&s!==1?`<ol start="${s}">`:`<${a}>`}${o.join(``)}</${a}>`}return M_(e,t,r,i)}function P_(e){let t=e.attrs.imgAttributes??{},n=e.attrs.lightSrc,r=e.attrs.darkSrc,i=e.attrs.width,a=e.attrs.align,o=(e,n)=>{let r=Object.assign(Object.assign({},t),{src:e}),o=r.className;return(a||n)&&(r.className=f_(o,a,n)),i&&i!==100&&(r.style=Object.assign(Object.assign({},typeof r.style==`object`?r.style:{}),{width:`${i}%`})),r};if(n&&r)return[F_(o(r,`hidden dark:block`)),F_(o(n,`dark:hidden`))].filter(Boolean).join(` `);let s=n||t.src;return s?F_(o(s)):``}function F_(e){let t=Object.entries(e).filter(([e,t])=>t!=null&&!Ft.has(e)).map(([t,n])=>Mg(e,t,n)).filter(Boolean);return t.length>0?`<img ${t.join(` `)} />`:`<img />`}function I_(e,t,n,r){let i=r,a=0;for(let r of n.split(`
51
+ `))e.recordLiteralTextRange(t,i,i+r.length,a),i+=r.length+1+e.delim.length,a+=r.length+1}function L_(e,t,n){e.inCodeSection=!0;let r=Dg(t),i=t.attrs.language||`text`,a=t.attrs.add,o=t.attrs.remove,s=Array.isArray(a)?a:typeof a==`string`&&a?bh(a):[],c=Array.isArray(o)?o:typeof o==`string`&&o?bh(o):[];if(s.length>0||c.length>0){let{open:e,close:t}=Sh(i),n=t?` ${t}`:``;r=r.split(`
52
+ `).map((t,r)=>{let i=r+1;return s.includes(i)?`${t} ${e} [!code ++]${n}`:c.includes(i)?`${t} ${e} [!code --]${n}`:t}).join(`
53
+ `)}let l=r.match(/`{3,}/g),u=l?Math.max(...l.map(e=>e.length))+1:3,d="`".repeat(u),f=``;if(t.attrs.filename){let e=String(t.attrs.filename);f=t.attrs.filenameSyntax===`title`?` title="${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`:` `+e}if(t.attrs.expandable&&(f+=` expandable`),t.attrs.highlight){let e=xh(Array.isArray(t.attrs.highlight)?t.attrs.highlight:bh(String(t.attrs.highlight)));e&&(f+=` highlight={${e}}`)}if(t.attrs.icon&&(f+=` icon=${t.attrs.icon}`),t.attrs.lines&&(f+=` lines`),t.attrs.wrap&&(f+=` wrap`),t.attrs.focus){let e=xh(Array.isArray(t.attrs.focus)?t.attrs.focus:bh(String(t.attrs.focus)));e&&(f+=` focus={${e}}`)}t.attrs.twoslash&&(f+=` twoslash`),t.attrs.nocopy&&(f+=` nocopy`),e.write(d+i+f+`
54
+ `);let p=e.delim?r.replace(/\n/g,`
55
+ `+e.delim):r;e.write(p);let m=r.endsWith(`
56
+ `);n&&t.childCount===1&&s.length===0&&c.length===0&&!m&&I_(e,n,r,e.length-p.length),e.ensureNewLine(),e.write(d),e.closeBlock(),e.inCodeSection=!1}var R_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},z_=/[\\`*_[\]~&]/g;function B_(e){for(let t=0;t<e.childCount;t+=1)if(e.child(t).marks.length>0)return!0;return!1}var V_=yn(nn),H_=yn(rn);function U_(e,t,n){let r=t.attrs,{type:i}=r,a=R_(r,[`type`]);K_(e,t,Ot.find(e=>e===i)??`Callout`,a,n)}function W_(e,t,n,r,i,a=[]){let o=t.childCount>0?t.child(0):null,s=``;if(o){if(B_(o)){let t=new Xg(e.options);i(t,o),s=t.out}else{let e=Dg(o),t=e.replace(z_,`\\$&`);s=t===e||me(e)===e?e:t}}let c=Eg(s)?s.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`):s,l=Object.assign(c?{title:c}:{},t.attrs),u=e.length;K_(e,t,n,l,r,a);let d=o?.firstChild;if(!d?.isText||d.text!==s)return;let f=e.sliceFrom(u),p=f.indexOf(`<${n}`),m=f.indexOf(`
57
+ `,p),h=f.indexOf(`title=`,p),g=f.indexOf(s,h+6);p<0||m<0||h<0||g<0||h>=m||g+s.length>m||e.recordLiteralTextRange([0,0],u+g,u+g+s.length)}function G_(e,t,n,r,i=[]){K_(e,t,n,t.attrs,r,i)}function K_(e,t,n,r,i,a=[]){let o=Ov(r),s=Object.entries(o).map(([e,t])=>Ft.has(e)||a.includes(e)?null:Mg(o,e,t)).filter(Boolean),c=Dv(o),l=[...s,...c].join(` `);e.write(`<${n}${l?` ${l}`:``}>`),e.ensureNewLine();let u=e.delim;e.delim+=` `.repeat(e.indentSize),i(e,t),e.delim=u,e.closed=!1,e.ensureNewLine(),e.write(`</${n}>`)}function q_(e,t,n){e.write(`<${n}${kv(t.attrs)}>
58
+
59
+ `);for(let n=0;n<t.childCount;n++){let r=t.child(n);r.type.name===O.codeBlock&&(L_(e,r,[n,0]),n<t.childCount-1&&e.ensureNewLine())}e.ensureNewLine(),e.write(`</${n}>`),e.closeBlock()}function J_(e,t,n){let r=t.attrs.name||`CustomComponent`;r===`CodeBlock`?L_(e,t):K_(e,t,r,t.attrs.attributes??{},n)}function Y_(e,t){let n=Ov(t.attrs),r=Object.assign({},n);r.icon===!0&&delete r.icon;let i=Object.entries(r).map(([e,t])=>!t||Ft.has(e)?null:Mg(r,e,t)).filter(Boolean).join(` `);e.write(`<Icon ${i} />`)}function X_(e,t){let n=Ov(t.attrs),r=Object.entries(n).filter(([e,t])=>Ft.has(e)||t==null?!1:t!==V_[e]).map(([e,t])=>Mg(n,e,t)).filter(Boolean).join(` `),i=Dg(t);i?e.write(`<${O.badge}${r?` ${r}`:``}>${e.esc(i)}</${O.badge}>`):e.write(`<${O.badge}${r?` ${r}`:``} />`)}function Z_(e,t,n){let r=Ov(t.attrs),i=Object.entries(r).filter(([e,t])=>Ft.has(e)||e===`isNewlyCreated`||t==null||t===``?!1:t!==H_[e]).map(([e,t])=>Mg(r,e,t)).filter(Boolean).join(` `);t.childCount>0?(e.write(`<${O.tooltip}${i?` ${i}`:``}>`),n(e,t),e.write(`</${O.tooltip}>`)):e.write(`<${O.tooltip}${i?` ${i}`:``} />`)}var Q_=/* @__PURE__ */ new WeakMap;function $_(e,t){try{let n;return Hh(t,{schema:e.type.schema}).doc.descendants(e=>(n===void 0&&Un.has(e.type.name)&&(n=e.textContent),n===void 0)),n}catch{return}}function ev(e,t,n){return Q_.has(t)||Q_.set(t,$_(e,n)),Q_.get(t)}function tv(e,t,n){if(e.childCount===0&&!e.inlineContent)return!1;let r=ev(e,t,n);return r!==void 0&&r!==e.textContent}function nv(e){return vv([Object.assign(Object.assign({},e),{children:[],data:void 0})]).trim().replace(/^<|\s*\/>$/g,``)}function rv(e,t,n,r){let i=e.inTable||t.type.name===O.inlineStaticHTML,a=t=>e.escapesPipes?t.replace(/\|/g,`&#124;`):t,o=e=>a(e.replace(/\s*\n\s*/g,` `).trim()),s=t.attrs.mdxJsxNode,c;if(s)try{let n=vv([s]);if(!tv(t,s,n)){i?e.write(o(n)):(e.write(n),e.closeBlock());return}s.name&&(c=nv(s),i&&(c=o(c)))}catch{}let l=t.attrs.tagName||`div`,u=t.attrs.attributes??{},d=Object.entries(u).filter(([e,t])=>t!=null).map(([e,t])=>Ft.has(e)?null:Mg(u,e,t)).filter(Boolean),f=Dv(u),p=[...d,...f].join(` `),m=c??(p?`${l} ${p}`:l);t.childCount>0?(e.write(`<${m}>`),i||e.ensureNewLine(),t.inlineContent?r(e,t):n(e,t),e.write(`</${c?s.name:l}>`)):e.write(`<${m} />`),i||e.closeBlock()}var iv=2,av=2,ov=(e,t)=>e.split(`
60
+ `).map((e,n)=>{if(n===0||e===``)return e;if(t>=0)return`${` `.repeat(t)}${e}`;let r=Math.min(-t,e.match(/^ */)?.[0].length??0);return e.slice(r)}).join(`
61
+ `),sv=(e,t)=>{if(e.type===`mdxFlowExpression`){e.value=ov(e.value,iv-av*t);return}if(!(`children`in e))return;let n=e.type===`mdxJsxFlowElement`?t+1:t;for(let t of e.children)sv(t,n)},cv=e=>typeof e==`object`&&!!e&&(e.type===`mdxFlowExpression`||e.type===`mdxTextExpression`)&&typeof e.value==`string`;function lv(e,t){let n=t.attrs.mdxJsxNode;if(cv(n))e.write(`{${ov(n.value,iv)}}`),t.type.name===O.unknownTag&&e.closeBlock();else{if(n)try{let r=vv([n]),i=t.type.name===O.inlineUnknownTag?r.replace(/\n$/,``):r;e.write(i)}catch{e.write(`<!-- unknown tag -->`)}t.type.name===O.unknownTag&&e.closeBlock()}}function uv(e,t){let n=t.attrs.mdastNode;if(n)try{let t=vv([n]);e.write(t)}catch{e.write(`<!-- esm node -->`)}e.closeBlock()}var dv=/[\p{L}\p{N}]/u;function fv(e){return e.replace(/\\_/g,(t,n)=>{let r=e[n-1],i=e[n+2];return r!==void 0&&dv.test(r)&&i!==void 0&&dv.test(i)?`_`:t})}var pv=e=>{for(let t of e){let e=t.handlers?.mdxJsxFlowElement??pv(t.extensions??[]);if(e)return e}},mv=e=>s(e)&&e.name!==null&&e.children.length===0&&e.data?.closingTag===!0,hv=e=>(t,n,r,i)=>{let a=e(t,n,r,i);return mv(t)?a.replace(/ ?\/>$/,`></${t.name}>`):a},gv=pv(ie().use(gt).freeze().data(`toMarkdownExtensions`)??[]),_v=Object.assign({text:(e,t,n,r)=>fv(n.safe(e.value,r)),inlineMath:e=>`$$${e.value}$$`},gv&&{mdxJsxFlowElement:hv(gv),mdxJsxTextElement:hv(gv)});function vv(e){let t=structuredClone(e).map(e=>e?.type===`mdxJsxTextElement`?{type:`paragraph`,children:[e]}:e);for(let e of t)sv(e,0);let n=ie().use(gt).use(mt).use(l).use(_,{handlers:_v}).stringify({type:`root`,children:t});return typeof n==`string`?n:String(n)}function yv(e,t){let n=Dg(t),r=n.match(/`{3,}/g),i=r?Math.max(...r.map(e=>e.length))+1:3,a="`".repeat(i),o=``;t.attrs.placement&&t.attrs.placement!==`bottom-right`&&(o+=` placement="${t.attrs.placement}"`),t.attrs.actions===!0?o+=` actions={true}`:t.attrs.actions===!1&&(o+=` actions={false}`),e.write(a+`mermaid`+o+`
62
+ `),e.write(n),e.ensureNewLine(),e.write(a),e.closeBlock()}function bv(e,t,n){let r=t.childCount>0?t.child(0):null,i=t.childCount>1?t.child(1):null,a=``;if(r){let t=new Xg(e.options);n(t,r),a=t.out.trim()}let o=i?Dg(i):``,s=[];if(a){if(a.includes(`&`)){let e=Rg(t.attrs,`description`,a);e&&s.push(e)}else if(a.includes(`"`)){let e=a.replace(/\\/g,`\\\\`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${");s.push(`description={\`${e}\`}`)}else s.push(`description="${a}"`)}t.attrs.icon&&s.push(`icon="${t.attrs.icon}"`),t.attrs.iconType&&s.push(`iconType="${t.attrs.iconType}"`);let c=Array.isArray(t.attrs.actions)?t.attrs.actions:[`copy`];s.push(`actions={[${c.map(e=>`"${e}"`).join(`, `)}]}`);let l=s.length>0?` `+s.join(` `):``;e.write(`<Prompt${l}${kv(t.attrs)}>`),o&&(e.ensureNewLine(),e.write(o)),e.ensureNewLine(),e.write(`</Prompt>`),e.closeBlock()}function xv(e){let t=[];if(e.name){let n=Mg({},`name`,e.name);n&&t.push(n)}if(e.rawValueExpr!==void 0)t.push(`value={${e.rawValueExpr}}`);else if(e.value!==void 0&&e.value!==null){let n=Mg({},`value`,e.value);n&&t.push(n)}return`<Color.Item${t.length?` `+t.join(` `):``} />`}function Sv(e,t){let n=t.attrs.variant,r=t.attrs.colorData??[],i=n?` variant="${n}"`:``;e.write(`<Color${i}${kv(t.attrs)}>`),e.ensureNewLine();let a=e.delim;e.delim+=` `.repeat(e.indentSize);for(let t of r)if(t.type===`row`){let n=t.title?Mg({},`title`,t.title):null;e.write(`<Color.Row${n?` ${n}`:``}>`),e.ensureNewLine();let r=e.delim;e.delim+=` `.repeat(e.indentSize);for(let n of t.items)e.write(xv(n)),e.ensureNewLine();e.delim=r,e.closed=!1,e.ensureNewLine(),e.write(`</Color.Row>`),e.ensureNewLine()}else e.write(xv(t)),e.ensureNewLine();e.delim=a,e.closed=!1,e.ensureNewLine(),e.write(`</Color>`),e.closeBlock()}function Cv(e){let t=[];for(let[n,r]of Object.entries(e)){if(r===void 0)continue;let e=Mg({},n,r);e&&t.push(e)}return t.length?` `+t.join(` `):``}function wv(e,t){if(t.type===`file`){let n=Cv({name:t.name});e.write(`<Tree.File${n} />`),e.ensureNewLine();return}let n=Cv({name:t.name,defaultOpen:t.defaultOpen,openable:t.openable});if(t.children.length===0){e.write(`<Tree.Folder${n} />`),e.ensureNewLine();return}e.write(`<Tree.Folder${n}>`),e.ensureNewLine();let r=e.delim;e.delim+=` `.repeat(e.indentSize);for(let n of t.children)wv(e,n);e.delim=r,e.closed=!1,e.ensureNewLine(),e.write(`</Tree.Folder>`),e.ensureNewLine()}function Tv(e,t){let n=[Mg(t.attrs,`id`,t.attrs.id),...[`view`,`sort`,`filter`,`groupBy`,`calendarBy`].map(e=>Lg(e,t.attrs[e])),typeof t.attrs.sql==`string`?In(t.attrs.sql):null].filter(Boolean),r=n.length>0?` ${n.join(` `)}`:``;e.write(`<Database${r}${kv(t.attrs,Rg)} />`),e.closeBlock()}function Ev(e,t){let n=t.attrs.treeData??[],r=kv(t.attrs);if(n.length===0){e.write(`<Tree${r} />`),e.closeBlock();return}e.write(`<Tree${r}>`),e.ensureNewLine();let i=e.delim;e.delim+=` `.repeat(e.indentSize);for(let t of n)wv(e,t);e.delim=i,e.closed=!1,e.ensureNewLine(),e.write(`</Tree>`),e.closeBlock()}function Dv(e){let t=e[Up];return Array.isArray(t)?t.map(e=>`{${e}}`):[]}function Ov(e){let t=e[Gp];return!t||typeof t!=`object`?e:Object.assign(Object.assign({},e),t)}function kv(e,t=Mg){let n=e[Gp];if(!n||typeof n!=`object`)return``;let r=Object.entries(n);if(r.length===0)return``;let i=r.map(([e,r])=>t(n,e,r)).filter(Boolean);return i.length>0?` `+i.join(` `):``}var Av=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},jv={tightLists:!0,indentSize:2,removeTrailingNewline:!0},Mv=/* @__PURE__ */ new Set([`paragraph`,`heading`,`blockquote`,`bulletList`,`orderedList`,`table`,`horizontalRule`,O.codeBlock,O.image,O.video,O.callout,O.accordion,O.accordionGroup,O.card,O.steps,O.tabs,O.codeGroup,O.columns,O.frame,O.expandable,O.paramField,O.responseField,O.requestExample,O.responseExample,O.customComponent,O.staticHTML,O.unknownTag,O.mdxJsEsm,O.blockMath,O.mermaidBlock,O.promptBlock,O.color,O.tree,O.visibility,O.database]),Nv=/* @__PURE__ */ new Set([`blockquote`,`bulletList`,`orderedList`]),Pv=/* @__PURE__ */ new Set([`image`,O.image]),Fv=/* @__PURE__ */ new Set([`definition`,`footnoteDefinition`]);function Iv(e){let t=!1;return e.descendants(e=>{if(t)return!1;let n=e.attrs.mdxJsxNode;return n?.type&&Fv.has(n.type)&&(t=!0),!t}),t}function Lv(e,t={}){return zv(Bv(e,t,null)).mdx}function Rv(e,t,n){let r=new Xg(t);return r.delim=n,Qv(r,e,e,0),r.out.replace(/(\n[ \t]*)+$/,``)}function zv(e){let t=e.next();for(;!t.done;)t=e.next();return t.value}function*Bv(e,t,n){let{frontmatter:r}=t,i=Av(t,[`frontmatter`]),a=new Xg(Object.assign(Object.assign({},i),{hasReferenceDefinitions:i.hasReferenceDefinitions??Iv(e)}));if(a.sourceMap=n,r&&Object.keys(r).length>0){let e=Object.entries(pg(r));if(e.length>0){a.write(`---
63
+ `);for(let[t,n]of e)a.write(`${Tg(t,n)}
64
+ `);a.write(`---
65
+
66
+ `)}}for(let t=0;t<e.childCount;t++)Hv(a,e,t),yield t+1;let o=a.out;t.removeTrailingNewline!==!1&&o.endsWith(`
67
+ `)&&(o=o.replace(/\n+$/,``));for(let e of n??[])e.end=Math.min(e.end,o.length),e.start=Math.min(e.start,e.end);return{mdx:o,sourceMap:n??[]}}function Vv(e,t,n=0){for(let r=n;r<t.childCount;r++)Hv(e,t,r,n)}function Hv(e,t,n,r=0){let i=t.child(n);if(n>r){e.ensureNewLine();let r=t.child(n-1);Yv(r,i)&&e.ensureNewLine(),Uv(r,i)&&e.keptBlankLines.add(e.length)}let a=e.beginBlock(n);Qv(e,i,t,n),e.endBlock(a)}function Uv(e,t){return Wv(t)?e.type.name===`paragraph`?Wv(e):Pv.has(e.type.name)?u_(e):e.type.name===`table`?D_(e):Nv.has(e.type.name):!1}function Wv(e){return e.type.name===`paragraph`&&e.content.size>0}function Gv(e,t){Vv(e,t,+!!qv(t))}function Kv(e){let t=e.firstChild,n=e.maybeChild(1);return e.type.name===`listItem`&&t?.type.name===`paragraph`&&t.childCount===0&&n!==null&&n.type.name!==`paragraph`}function qv(e){let t=e.maybeChild(1);return Kv(e)&&t!==null&&Jv(e,t)}var Jv=(e,t)=>e.attrs.checked==null||t.type.name===O.image;function Yv(e,t){return Mv.has(e.type.name)||Mv.has(t.type.name)}var Xv={renderInlineImage:(e,t)=>b_(e,t),renderIcon:(e,t)=>Y_(e,t),renderBadge:(e,t)=>X_(e,t),renderTooltip:(e,t)=>Z_(e,t,Zv),renderUnknownTag:(e,t)=>lv(e,t)};function Zv(e,t){n_(e,t,Qv,Xv)}function Qv(e,t,n,r){let i=t.type.name;switch(i){case`doc`:Vv(e,t);break;case`paragraph`:Zv(e,t),e.closeBlock();break;case`heading`:{let n=t.attrs.level||1,r=t.attrs.customId;r&&e.delim?(e.write(`<h${n} id="${r}">`),e.ensureNewLine(),Zv(e,t),e.ensureNewLine(),e.write(`</h${n}>`)):(e.write(`#`.repeat(n)+` `),Zv(e,t),r&&e.write(` {#${r}}`)),e.closeBlock();break}case`blockquote`:w_(e,t,Qv);break;case`bulletList`:T_(e,t,!1,Gv);break;case`orderedList`:T_(e,t,!0,Gv);break;case`horizontalRule`:e.write(`---`),e.closeBlock();break;case`hardBreak`:e.write(`<br />`);break;case`text`:r_(e,t);break;case`table`:E_(e,t,Zv,Qv);break;case O.codeBlock:L_(e,t,[0]);break;case`image`:case O.image:d_(e,t);break;case O.inlineImage:b_(e,t);break;case O.video:x_(e,t);break;case O.callout:U_(e,t,Vv),e.closeBlock();break;case O.card:W_(e,t,`Card`,Vv,Zv),e.closeBlock();break;case O.cardTitle:break;case O.cardBody:Vv(e,t);break;case O.accordion:W_(e,t,`Accordion`,Vv,Zv),e.closeBlock();break;case O.accordionTitle:break;case O.accordionBody:Vv(e,t);break;case O.step:W_(e,t,`Step`,Vv,Zv,[`isLast`]);break;case O.stepTitle:break;case O.stepBody:Vv(e,t);break;case O.column:case O.tab:G_(e,t,i,Vv);break;case O.columns:case O.accordionGroup:case O.steps:case O.tabs:case O.update:case O.frame:case O.expandable:case O.paramField:case O.responseField:case O.visibility:G_(e,t,i,Vv),e.closeBlock();break;case O.codeGroup:case O.requestExample:case O.responseExample:q_(e,t,i);break;case O.customComponent:J_(e,t,Vv),e.closeBlock();break;case O.icon:Y_(e,t);break;case O.badge:X_(e,t);break;case O.tooltip:Z_(e,t,Zv);break;case O.staticHTML:case O.inlineStaticHTML:rv(e,t,Vv,Zv);break;case O.unknownTag:case O.inlineUnknownTag:lv(e,t);break;case O.mdxJsEsm:uv(e,t);break;case O.inlineMath:t.attrs.expression&&e.write(`$$${t.attrs.expression}$$`);break;case O.blockMath:t.attrs.expression&&(e.write(`$$`),e.ensureNewLine(),e.write(String(t.attrs.expression)),e.ensureNewLine(),e.write(`$$`),e.closeBlock());break;case O.color:Sv(e,t);break;case O.tree:Ev(e,t);break;case O.database:Tv(e,t);break;case O.mermaidBlock:yv(e,t);break;case O.promptBlock:bv(e,t,Vv);break;case O.promptDescription:break;case`listItem`:Gv(e,t);break;default:Vv(e,t)}}var $v=(e,t)=>{if(e===t)return!0;if(e.type!==t.type||e.text!==t.text||!ey(e.attrs,t.attrs)||!oy(e.marks,t.marks))return!1;let n=e.content,r=t.content;if(!n&&!r)return!0;if(!n||!r||n.length!==r.length)return!1;for(let e=0;e<n.length;e++)if(!$v(n[e],r[e]))return!1;return!0},ey=(e,t)=>{if(e===t||!e&&!t)return!0;if(!e||!t)return!1;let n=Object.keys(e).filter(e=>!Nt.has(e)),r=Object.keys(t).filter(e=>!Nt.has(e));if(n.length!==r.length)return!1;for(let r of n)if(!(r===`mdxJsxNode`&&`tagName`in e&&ny(e[r],t[r]))&&ay(r,e[r])!==ay(r,t[r]))return!1;return!0},ty=e=>s(e)&&!!e.name&&kt.has(e.name),ny=(e,t)=>e===null&&ty(t)||t===null&&ty(e),ry=e=>typeof e==`object`&&!!e&&`start`in e&&`end`in e,iy=e=>typeof e==`object`&&!!e&&`start`in e&&`end`in e,ay=(e,t)=>Pt.has(e)?JSON.stringify(t,function(e,t){if(!(e===`position`&&ry(t))&&!(e===`loc`&&iy(t))&&(e!==`start`&&e!==`end`||typeof t!=`number`||typeof this.start!=`number`||typeof this.end!=`number`)&&!(e===`range`&&Array.isArray(t)))return t}):JSON.stringify(t),oy=(e,t)=>{if(e===t||!e&&!t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.type!==i.type||!ey(r.attrs,i.attrs))return!1}return!0},sy=(e,t)=>{if(e.text!=null)return e.text.length;let n=t.nodes[e.type];if(!n)return 1;if(!e.content||e.content.length===0)return n.spec.content&&n.spec.content.length>0?2:1;let r=2;for(let n of e.content)r+=sy(n,t);return r},cy=e=>e.text==null?e.content?e.content.map(cy).join(``):``:e.text,ly=(e,t)=>{if(e===t||e.length===0&&t.length===0)return 1;if(e.length===0||t.length===0)return 0;let n=Math.min(e.length,t.length),r=Math.max(e.length,t.length),i=0;for(;i<n&&e[i]===t[i];)i++;let a=i/r,o=new Set(e.toLowerCase().split(/\s+/)),s=new Set(t.toLowerCase().split(/\s+/)),c=0;for(let e of o)s.has(e)&&c++;let l=(/* @__PURE__ */ new Set([...o,...s])).size,u=l>0?c/l:0;return Math.max(a,u)},uy=(e,t,n)=>{if(e.type!==t.type)return!1;if(e.text!=null)return!0;let r=e.type?n.nodes[e.type]:void 0;if(r?.isLeaf)return!0;if(r?.isTextblock){let n=cy(e),r=cy(t);if(n.length===0||r.length===0)return!0;let i=e.type===`heading`&&e.attrs?.level===t.attrs?.level?.15:.3;return ly(n,r)>i}let i=cy(e),a=cy(t);return i.length===0||a.length===0||ly(i,a)>.15},dy=(e,t)=>t.nodes[e]?.isTextblock??!1,fy=(e,t)=>t.nodes[e]?.isLeaf??!1,py=(e,t)=>t.nodes[e]?.spec.code??!1,my=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},hy=/^\s*<h[1-6] id="/,gy=/^\s*<\/h[1-6]>$/,_y=25e6,vy=/^([-*+]|(\d+)([.)]))[ \t]+/,yy=/* @__PURE__ */ new Set([O.card,O.accordion,O.step]),by=/* @__PURE__ */ new Set([`bulletList`,`orderedList`]),xy=/* @__PURE__ */ new Set([O.callout,O.card,O.accordion,O.accordionGroup,O.step,O.steps,O.tab,O.tabs,O.column,O.columns,O.update,O.frame,O.expandable,O.paramField,O.responseField,O.visibility,O.customComponent,O.codeGroup,O.requestExample,O.responseExample]);function Sy(e,t){let{source:n,parseOptions:r,onFallback:i,frontmatter:a}=t,o=my(t,[`source`,`parseOptions`,`onFallback`,`frontmatter`]),s=Object.assign(Object.assign({},o),{frontmatter:a}),c=(t,n,r)=>(i?.(t,n,r),Lv(e,s));try{let t=Ty.create(e,n,r??{},o);if(!t)return c(`unmappable`);let i=t.run(a);return i===null?c(`alignment`):t.roundTrips(i)?i:c(`roundtrip`,i)}catch(e){return c(`error`,void 0,e)}}var Cy=class e{constructor(e,t,n){this.source=e,this.lineMap=n,this.lineStarts=Hy(e),this.origLines=e.split(`
68
+ `),this.preLines=t.split(`
69
+ `)}static create(t,n,r){let i=Uy(n,r);return i?new e(t,r,i):null}lineStart(e){return this.source.lastIndexOf(`
70
+ `,e-1)+1}lineEnd(e){return e+1<this.lineStarts.length?this.lineStarts[e+1]-1:this.source.length}exact(e,t){return this.preLines[e]===this.origLines[t]}span(e){let t=e.position;if(!t)return null;let n=this.lineMap[t.start.line-1],r=this.lineMap[t.end.line-1];if(n===void 0||r===void 0)return null;let i=this.exact(t.start.line-1,n)?this.lineStarts[n]+t.start.column-1:this.lineStarts[n],a=this.exact(t.end.line-1,r)?this.lineStarts[r]+t.end.column-1:this.lineEnd(r);return i>a||a>this.source.length?null:{start:i,end:a}}},wy=class{constructor(e,t,n){this.source=e,this.src=t,this.frame=n,this.out=``,this.first=!0,this.prevSrc=null,this.prevType=null}sep(e,t,n){let{frame:r}=this;if(this.first){this.out+=r.open,n&&r.kind===`jsx`&&!/\n[ \t]*$/.test(r.open)&&(this.out+=`
71
+ ${r.indent}`),this.first=!1;return}if(e!==null&&this.prevSrc!==null&&e===this.prevSrc+1){this.out+=this.source.slice(this.src[this.prevSrc].end,this.src[e].start);return}let i=r.kind===`item`&&r.sepBody===`
72
+ `&&this.prevType===`paragraph`&&t===`paragraph`;this.out+=(i?`
73
+
74
+ `:r.sepBody)+this.indentFor(e)}indentFor(e){if(e===null)return this.frame.indent;let t=this.src[e].start,n=this.source.slice(this.source.lastIndexOf(`
75
+ `,t-1)+1,t);return/^[ \t]*$/.test(n)?n:this.frame.indent}verbatim(e){let t=this.src[e];this.sep(e,t.node?.type.name??null,!1),this.out+=this.source.slice(t.start,t.end),this.prevSrc=e,this.prevType=t.node?.type.name??null}recursed(e,t,n){this.sep(e,n,!1),this.out+=t,this.prevSrc=e,this.prevType=n}canonical(e,t){this.sep(null,t,e.includes(`
76
+ `)),this.out+=e,this.prevSrc=null,this.prevType=t}raw(e){this.out+=e,this.first=!1,this.prevSrc=null,this.prevType=null}finish(){let{frame:e}=this;return this.first?e.kind===`top`?``:e.open.replace(/[ \t]+$/,``)+e.close:this.src.length>0&&this.prevSrc===this.src.length-1?this.out+e.close:e.kind===`top`?this.source.endsWith(`
77
+ `)&&!this.out.endsWith(`
78
+ `)?`${this.out}
79
+ `:this.out:e.close?e.close.startsWith(`
80
+ `)||!this.out.slice(e.open.length).includes(`
81
+ `)?this.out+e.close:`${this.out}
82
+ ${e.containerIndent}${e.close}`:this.out}},Ty=class e{constructor(e,t,n,r,i){this.doc=e,this.coords=t,this.root=n,this.parseOptions=r,this.ser=i,this.keyIds=/* @__PURE__ */ new Map,this.source=t.source,this.schema=e.type.schema,this.emptyParagraph=this.schema.nodes.paragraph.create()}static create(t,n,r,i){let{sanitized:a,preprocessed:o}=Fp(n,r),s=Cy.create(n,a,o);if(!s)return null;let c=Vp(o),l=Object.assign(Object.assign({},i),{removeTrailingNewline:!0,hasReferenceDefinitions:Iv(t)});return new e(t,s,c,r,l)}roundTrips(e){let t=e=>Lv(Hh(e,Object.assign(Object.assign({},this.parseOptions),{schema:this.schema})).doc,this.ser),n=Lv(this.doc,this.ser),r=t(e);return r===n||r===t(n)}run(e){let t=this.buildSrcChildren(this.root.children);if(!t)return null;let n=Ey(this.doc),r=this.frontmatterText(e),i=e===void 0||r===``,a=i?{kind:`rewrite`}:Ay(qn(this.root),e),o={omitted:i,unchanged:a.kind===`same`,appended:a.kind===`append`?a.lines:null,record:e,canonical:r,hasYaml:t.some(e=>e.mdast.type===`yaml`)};if(t.length===0&&n.length===0&&o.omitted)return this.source;let s={kind:`top`,open:t.length>0&&!(o.omitted&&o.hasYaml)?this.source.slice(0,t[0].start):``,close:t.length>0?this.source.slice(t[t.length-1].end):``,indent:``,containerIndent:``,sepBody:`
83
+
84
+ `,list:null};return this.emitLevel({outerOpen:``,innerOpen:``,close:``,chain:[]},n,t,s,o)}frontmatterText(e){let t=this.schema.topNodeType.createAndFill();return t?Lv(t,Object.assign(Object.assign({},this.ser),{frontmatter:e})):``}keyOf(e){let t=Vy(e,this.ser),n=this.keyIds.get(t);return n===void 0&&(n=this.keyIds.size,this.keyIds.set(t,n)),n}buildSrcChildren(e){let t=[];for(let n of e)for(let e of Fy(n)){let n=this.coords.span(e);if(!n)return null;t.push({mdast:e,start:n.start,end:n.end,keys:null,node:null,nodes:null})}return t}linePrefix(e){return this.source.slice(this.coords.lineStart(e),e)}wrapperOpen(e,t,n){let r=this.linePrefix(t),i=e.outerOpen+e.innerOpen;if(!/^[ \t]*$/.test(r))return i;if(/^[ \t]*$/.test(i))return r;if(n)return i;let a=i.lastIndexOf(`
85
+ `),o=i.slice(a+1);return/^[ \t]*$/.test(o)?i.slice(0,a+1)+r:`${i.trimEnd()}
86
+ ${r}`}parseInContext(e,t,n,r){return this.parseText(e,this.source.slice(t,n),t,r)}parseText(e,t,n,r){let i;try{i=Hh(this.wrapperOpen(e,n,r)+t+e.close,Object.assign(Object.assign({},this.parseOptions),{schema:this.schema})).doc}catch{return null}let a=i;for(let t of e.chain){let e=Dy(a);if(e.length!==1||e[0].type.name!==t)return null;a=e[0]}return Dy(a)}fillKeys(e,t,n){if(t.mdast.type===`yaml`)return;let r=this.parseInContext(e,t.start,t.end,n);t.keys=r?r.map(e=>this.keyOf(e)):null,t.node=r&&r.length===1?r[0]:null,t.nodes=r}coalesce(e,t,n){let r=!1;for(let i=t.length-2;i>=0;i--){let a=t[i],o=t[i+1];if(!a.keys?.length||!o.keys?.length||n[i]!==null||n[i+1]!==null)continue;let s=this.parseInContext(e,a.start,o.end,i===0);if(!s)continue;let c=s.map(e=>this.keyOf(e));Oy(c,[...a.keys,...o.keys])||(t.splice(i,2,{mdast:a.mdast,start:a.start,end:o.end,keys:c,node:s.length===1?s[0]:null,nodes:s}),r=!0)}return r}emitLevel(e,t,n,r,i){let a=t.map(e=>this.keyOf(e));n.forEach((t,n)=>this.fillKeys(e,t,n===0));let o=Wy(n,a);if(!o||this.coalesce(e,n,o)&&(o=Wy(n,a),!o))return null;Ny(n,t,o);let s=new wy(this.source,n,r),c=[],l=0,u=e=>{for(let t=0;t<e;t++){let e=c[t];n[e].keys?.length===0&&s.verbatim(e)}},d=t=>{let i=t.type.name,a=c.findIndex(e=>{let t=n[e];return t.keys!==null&&t.keys.length>0&&t.node?.type.name===i});if(a===-1){s.canonical(this.renderCanonical(t,l,r),i);return}u(a);let o=c[a];c.splice(0,a+1);let d=this.tryRecurse(e,t,n[o],r)??this.tryPatchParagraph(e,t,n[o],o===0);d===null?s.canonical(this.renderCanonical(t,l,r),i):s.recursed(o,d,i)},f=e=>{for(;l<e;)d(t[l]),l++},p=()=>{u(c.length),c.length=0};i&&!i.omitted&&!i.hasYaml&&s.raw(i.canonical);for(let e=0;e<n.length;e++){let t=n[e];if(t.mdast.type===`yaml`){if(!i)return null;let n=i.appended===null?null:My(this.source.slice(t.start,t.end),i.appended,i.record);i.unchanged?s.verbatim(e):n===null?i.omitted||s.raw(i.canonical):s.recursed(e,n,`yaml`);continue}let r=o[e];r==null?c.push(e):(f(r),p(),l=r+t.keys.length,s.verbatim(e))}return f(t.length),p(),s.finish()}tryRecurse(e,t,n,r){let i=n.node;if(!i||i.type.name!==t.type.name)return null;let a=t.type.name;if(a===`table`)return this.emitTable(t,n);if(!xy.has(a)&&!by.has(a)&&a!==`listItem`||a===O.customComponent&&t.attrs.name===`CodeBlock`)return null;let o=by.has(a)?`list`:a===`listItem`?`item`:`jsx`,s=o===`jsx`?this.resolveElement(n):n;if(!s)return null;let c=s.mdast.children;if(!c||c.length===0)return null;let l=this.buildSrcChildren(c);if(!l)return null;let u=l[0],d=l[l.length-1];if(u.start<s.start||d.end>s.end)return null;let f=this.source.slice(s.start,u.start),p=this.source.slice(d.end,s.end);if(this.shellKey(i)===this.shellKey(t)){if(!Py(this.hollow(i),this.hollow(t)))return null}else{if(o!==`jsx`)return null;let e=Vy(this.hollow(t),this.ser).split(`
87
+ `)[0],n=f.split(`
88
+ `)[0];if(!e.endsWith(`>`)||!/>[ \t]*$/.test(n)||n.slice(1).includes(`<`))return null;f=e+f.slice(n.trimEnd().length)}let m=this.linePrefix(u.start),h=this.linePrefix(s.start),g=o===`list`?this.listMarker(t,l):null;if(o===`list`&&!g)return null;let _=/^[ \t]*$/.test(h)?h:r.indent,v=o===`item`?this.continuationIndent([s]):null,y={kind:o,open:f,close:p,indent:v??(o===`jsx`&&!/^[ \t]*$/.test(m)?_+` `.repeat(this.ser.indentSize??2):m.replace(/\S/g,` `)),containerIndent:_,sepBody:this.separatorBody(l,o),list:g},b={outerOpen:e.outerOpen+e.innerOpen,innerOpen:f,close:p+e.close,chain:[...e.chain,a]};return this.emitLevel(b,Dy(t),l,y,null)}tryPatchParagraph(e,t,n,r){let i=n.node;if(!i||t.type.name!==`paragraph`||i.type.name!==`paragraph`||n.mdast.type!==`paragraph`||i.childCount!==t.childCount)return null;let a=-1;for(let e=0;e<t.childCount;e++){let n=i.child(e),r=t.child(e);if(!n.eq(r)){if(a!==-1||!n.isText||!r.isText||!n.sameMarkup(r))return null;a=e}}if(a===-1)return null;let o=t.child(a);if(o.marks.some(e=>e.type.name===`code`||e.type.name===`link`))return null;let s=Ry(n.mdast.children),c=s[a];if(s.length!==i.childCount||c?.type!==`text`)return null;let l=this.coords.span(c);if(!l||l.start<n.start||l.end>n.end)return null;let u=i.child(a).text,d=o.text,f=By(this.source,l.start,l.end,u);if(!f)return null;let p=0;for(;p<u.length&&p<d.length&&u[p]===d[p];)p++;let m=0;for(;m<u.length-p&&m<d.length-p&&u[u.length-1-m]===d[d.length-1-m];)m++;let h=new Xg(this.ser).escRange(d,p,d.length-m),g=this.source.slice(n.start,f[p])+h+this.source.slice(f[u.length-m],n.end),_=this.parseText(e,g,n.start,r);return!_||_.length!==1||!Py(_[0],t)?null:g}resolveElement(e){if(e.mdast.type===`mdxJsxFlowElement`||e.mdast.type===`mdxJsxTextElement`)return e;if(e.mdast.type!==`paragraph`)return null;let t=e.mdast.children.filter(e=>e.type!==`text`||e.value.trim()!==``),n=t[0];if(t.length!==1||n?.type!==`mdxJsxTextElement`)return null;let r=this.coords.span(n);return r?Object.assign(Object.assign({mdast:n},r),{keys:e.keys,node:e.node,nodes:e.nodes}):null}separatorBody(e,t){if(e.length>=2){let t=this.source.slice(e[0].end,e[1].start).match(/\n/g)?.length??0;if(t>=1)return t>=2?`
89
+
90
+ `:`
91
+ `}return t===`list`||t===`item`?`
92
+ `:`
93
+
94
+ `}listMarker(e,t){let n=e.type.name===`orderedList`,r=[],i=n?`.`:`-`;for(let e of t){let t=vy.exec(this.source.slice(e.start,e.start+12));if(t){if(n!==(t[2]!==void 0))return null;i=n?t[3]:t[1],n&&r.push(Number(t[2]))}}let a=n&&r.length>=2&&r.every(e=>e===r[0])?r[0]:null;return{ordered:n,start:typeof e.attrs.start==`number`?e.attrs.start:1,delimiter:i,fixedNumber:a,contentIndent:this.continuationIndent(t)}}continuationIndent(e){for(let t of e){let e=t.mdast.children;if(!e||e.length<2)continue;let n=this.coords.span(e[1]);if(!n||this.coords.lineStart(n.start)<=t.start)continue;let r=this.linePrefix(n.start);if(/^[ \t]*$/.test(r))return r}return null}renderCanonical(e,t,n){if(!n.list)return Rv(e,this.ser,n.indent);let{list:r}=n,i=r.fixedNumber??r.start+t,a=e.attrs.checked,o=a==null?``:a?`[x] `:`[ ] `,s=(r.ordered?`${i}${r.delimiter} `:`${r.delimiter} `)+o,c=n.indent+` `.repeat(s.length),l=r.contentIndent&&r.contentIndent.length>=c.length?r.contentIndent:c;return s+Rv(e,this.ser,l)}emitTable(e,t){let n=t.node,r=t.mdast.children;if(!r||r.length===0||r.length!==n.childCount||e.childCount===0)return null;let i=this.buildSrcChildren(r);if(!i)return null;let a=n.child(0).childCount;for(let t=0;t<e.childCount;t++)if(e.child(t).childCount!==a)return null;let o=t=>this.keyOf(e.type.create(null,[t]));i.forEach((e,t)=>{e.keys=[o(n.child(t))]});let s=Ey(e),c=Wy(i,s.map(o));if(!c||c[0]!==0&&c[0]!==null)return null;c.forEach((e,t)=>{e!==null&&!Py(n.child(t),s[e])&&(c[t]=null)});let l=/* @__PURE__ */ new Map;if(c.forEach((e,t)=>{e!==null&&l.set(e,t)}),c[0]===null&&l.has(0))return null;let u=i[0],d=this.linePrefix(u.start).replace(/\S/g,` `),f=this.source.slice(u.end,i.length>=2?i[1].start:t.end),p=/^\n[^\n]*/.exec(f)?.[0];if(!p)return null;let m=u.end+p.length,h=this.source.slice(t.start,u.start);if(c[0]===0)h+=this.source.slice(u.start,u.end)+p;else{let t=Vy(e.type.create(null,[s[0]]),this.ser);h+=t.split(`
95
+ `).slice(0,2).join(`
96
+ ${d}`)}let g=null;for(let t=1;t<s.length;t++){let n=l.get(t);n!==void 0&&t===1&&n===1?h+=this.source.slice(m,i[1].start):n!==void 0&&g!==null&&n===g+1?h+=this.source.slice(i[g].end,i[n].start):h+=`
97
+ ${d}`,n===void 0?(h+=Vy(e.type.create(null,[s[t]]),this.ser).split(`
98
+ `)[0],g=null):(h+=this.source.slice(i[n].start,i[n].end),g=n)}return i.length>=2&&g===i.length-1&&(h+=this.source.slice(i[g].end,t.end)),h}shellKey(e){let t=e.type.name;return`${t}|${by.has(t)||t===`listItem`?JSON.stringify(e.attrs):``}|${Vy(this.hollow(e),this.ser)}`}hollow(e){let t=e.type.name;if(yy.has(t)&&e.childCount>=2)return e.copy(ve.from([e.child(0),e.child(1).copy(ve.from(this.emptyParagraph))]));if(by.has(t)){let t=this.schema.nodes.listItem.create(null,this.emptyParagraph);return e.copy(ve.from(t))}return e.copy(ve.from(this.emptyParagraph))}};function Ey(e){let t=[];return e.forEach(e=>t.push(e)),t}function Dy(e){if(yy.has(e.type.name))return e.childCount>=2?Ey(e.child(1)):[];let t=Ey(e);return Kv(e)?t.slice(1):t}function Oy(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function ky(e){return new Map(Object.entries(pg(e)).map(([e,t])=>[e,Tg(e,t)]))}function Ay(e,t){let n=ky(e),r=ky(t);for(let[e,t]of n)if(r.get(e)!==t)return{kind:`rewrite`};let i=[...r].filter(([e])=>!n.has(e)).map(([,e])=>e);return i.length===0?{kind:`same`}:{kind:`append`,lines:i.join(`
99
+ `)}}function jy(e,t){let n=/(\r?\n)---[ \t]*$/.exec(e);if(!n)return null;let r=n[1];return`${e.slice(0,n.index)}${r}${t.replace(/\n/g,r)}${e.slice(n.index)}`}function My(e,t,n){let r=jy(e,t);if(r===null||n===void 0)return null;let i=/^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*$/.exec(r)?.[1];if(i===void 0)return null;let a;try{a=(0,se.parse)(i)}catch{return null}if(!a||typeof a!=`object`||Array.isArray(a))return null;let o=ky(a),s=ky(n);if(o.size!==s.size)return null;for(let[e,t]of s)if(o.get(e)!==t)return null;return r}function Ny(e,t,n){n.forEach((r,i)=>{if(r===null)return;let a=e[i].nodes;(!a||a.some((e,n)=>!Py(e,t[r+n])))&&(n[i]=null)})}function Py(e,t){return e.eq(t)||$v(e.toJSON(),t.toJSON())}function Fy(e){if(e.type!==`paragraph`)return[e];let t=e.children.filter(e=>e.type!==`text`||e.value.trim()!==``);return t.length>0&&t.every(e=>e.type===`mdxJsxTextElement`&&Fm(e.name))?t:[e]}var Iy=/* @__PURE__ */ new Set([`emphasis`,`strong`,`delete`,`link`]),Ly=/* @__PURE__ */ new Set([`u`,`sub`,`sup`]);function Ry(e){let t=[];for(let n of e)Iy.has(n.type)&&`children`in n||n.type===`mdxJsxTextElement`&&n.name!==null&&Ly.has(n.name)?t.push(...Ry(n.children)):t.push(n);return t}var zy=/[!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]/;function By(e,t,n,r){let i=[],a=t;for(let t=0;t<r.length;t++){if(i.push(a),a>=n)return null;let o=/^[ \t]*\n[ \t\n]*/.exec(e.slice(a,n));if(o){if(r[t]!==` `)return null;a+=o[0].length}else{if(e[a]===`\\`&&a+1<n&&zy.test(e[a+1])&&a++,e[a]!==r[t])return null;a++}}return i.push(a),/^[ \t]*$/.test(e.slice(a,n))?i:null}function Vy(e,t){try{return Lv(e.type.schema.topNodeType.create(null,[e]),Object.assign(Object.assign({},t),{removeTrailingNewline:!0}))}catch{return JSON.stringify(e.toJSON())}}function Hy(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
100
+ `&&t.push(n+1);return t}function Uy(e,t){let n=e.split(`
101
+ `),r=t.split(`
102
+ `),i=[],a=0;for(let e=0;e<r.length;)if(r[e]===n[a])i.push(a),a++,e++;else if(hy.test(r[e]??``)&&gy.test(r[e+2]??``))i.push(a,a,a),a++,e+=3;else return null;return a===n.length?i:null}function Wy(e,t){let n=[];e.forEach((e,t)=>{e.keys&&e.keys.length>0&&n.push(t)});let r=n.length,i=t.length;if((r+1)*(i+1)>_y)return null;let a=(e,n)=>{if(n+e.length>i)return!1;for(let r=0;r<e.length;r++)if(t[n+r]!==e[r])return!1;return!0},o=Array.from({length:r+1},()=>new Int32Array(i+1));for(let t=r-1;t>=0;t--){let r=e[n[t]].keys,s=o[t],c=o[t+1];for(let e=i-1;e>=0;e--){let t=Math.max(c[e],s[e+1]);a(r,e)&&(t=Math.max(t,r.length+c[e+r.length])),s[e]=t}}let s=e.map(()=>null),c=0,l=0;for(;c<r&&l<i;){let t=e[n[c]].keys;a(t,l)&&o[c][l]===t.length+o[c+1][l+t.length]?(s[n[c]]=l,c++,l+=t.length):o[c][l]===o[c+1][l]?c++:l++}return s}function Gy(e,t){throw Error(`pmJsonToMdast is not yet implemented — use pmToMdx instead for direct MDX output`)}function Ky(e){let t=ie().use(gt).use(mt).use(l).use(_).stringify(e);return typeof t==`string`?t:String(t)}var qy=(e,t,n)=>$v(e,t)?[]:Qy(Jy(e.content??[],t.content??[],0,n)),Jy=(e,t,n,r)=>{let i=0,a=Math.min(e.length,t.length);for(;i<a&&$v(e[i],t[i]);)i++;if(i===e.length&&i===t.length)return[];let o=0;for(;o<a-i&&$v(e[e.length-1-o],t[t.length-1-o]);)o++;let s=e.slice(i,e.length-o),c=t.slice(i,t.length-o),l=0;for(let t=0;t<i;t++)l+=sy(e[t],r);let u=n+l;if(s.length===0&&c.length===0)return[];if(s.length===0)return[{from:u,to:u,insert:c}];if(c.length===0){let e=0;for(let t of s)e+=sy(t,r);return[{from:u,to:u+e,insert:[]}]}return Yy(Zy(s,c,r),s,c,u,r)},Yy=(e,t,n,r,i)=>{let a=[],o=[],s=0;for(let e of t)o.push(s),s+=sy(e,i);let c=0;for(;c<e.length;){let s=e[c];if(s.type===`matched`){let e=t[s.oldIdx],l=n[s.newIdx];if($v(e,l)){c++;continue}let u=r+o[s.oldIdx],d=Xy(e,l,u,i);if(d)a.push(...d);else{let t=sy(e,i);a.push({from:u,to:u+t,insert:[l]})}c++;continue}let l=c,u=[],d=[];for(;c<e.length&&e[c].type!==`matched`;){let t=e[c];t.type===`deleted`?u.push(t.oldIdx):t.type===`inserted`&&d.push(n[t.newIdx]),c++}if(u.length===0&&d.length===0)continue;let f,p;if(u.length>0){let e=u[0],n=u[u.length-1];f=r+o[e],p=r+o[n]+sy(t[n],i)}else{let n=l>0?e[l-1]:void 0;f=n?.type===`matched`?r+o[n.oldIdx]+sy(t[n.oldIdx],i):r,p=f}a.push({from:f,to:p,insert:d})}return a.sort((e,t)=>t.from-e.from),a},Xy=(e,t,n,r)=>{if(e.type!==t.type||fy(e.type,r)||dy(e.type,r))return null;let i=e.content??[],a=t.content??[];if(!ey(e.attrs,t.attrs))return null;let o=Jy(i,a,n+1,r);return o.length===0?null:o},Zy=(e,t,n)=>{let r=e.length,i=t.length,a=Array.from({length:r+1},()=>Array(i+1).fill(0)),o=(e,t)=>a[e]?.[t]??0;for(let s=1;s<=r;s++){let r=a[s];for(let a=1;a<=i;a++)uy(e[s-1],t[a-1],n)?r[a]=o(s-1,a-1)+1:r[a]=Math.max(o(s-1,a),o(s,a-1))}let s=[],c=r,l=i;for(;c>0||l>0;)c>0&&l>0&&uy(e[c-1],t[l-1],n)&&o(c,l-1)<o(c,l)?(s.push({type:`matched`,oldIdx:c-1,newIdx:l-1}),c--,l--):l>0&&(c===0||o(c,l-1)>=o(c-1,l))?(s.push({type:`inserted`,newIdx:l-1}),l--):(s.push({type:`deleted`,oldIdx:c-1}),c--);return s.reverse(),s},Qy=e=>{if(e.length<=1)return e;e.sort((e,t)=>e.from-t.from);let t=[e[0]];for(let n=1;n<e.length;n++){let r=t[t.length-1],i=e[n];r.to===i.from?t[t.length-1]={from:r.from,to:i.to,insert:[...r.insert,...i.insert]}:t.push(i)}return t.sort((e,t)=>t.from-e.from),t};function $y(e){return Object.assign(Object.assign({},e),{attrs:e.attrs?Object.assign({},e.attrs):void 0,marks:e.marks?.map(e=>Object.assign(Object.assign({},e),{attrs:e.attrs?Object.assign({},e.attrs):void 0})),content:e.content?.map(e=>$y(e))})}function eb(e){return Object.assign({type:e.type,attrs:e.attrs?Object.assign({},e.attrs):void 0,marks:e.marks?.map(e=>Object.assign(Object.assign({},e),{attrs:e.attrs?Object.assign({},e.attrs):void 0}))},e.text==null?{}:{text:e.text})}function tb(e,t){return ly(cy(e),cy(t))}function nb(e,t,n){if($v(e,t))return 1e4;if(!uy(e,t,n))return-1/0;let r=100;return ey(e.attrs,t.attrs)&&(r+=25),r+=tb(e,t),r}function rb(e,t,n,r){let i=null,a=-1/0;for(let o=n;o<t.length;o+=1){let s=t[o];if(!s)continue;let c=nb(e,s,r);if(!Number.isFinite(c))continue;let l=c-(o-n)*.1;if(l>a&&(a=l,i=o),c>=1e4)break}return i}function ib(e,t,n){return{node:$y(e),annotations:[Object.assign({path:[],type:t},n?{hunk:n}:{})]}}function ab(e,t,n){return{baseNode:e?$y(e):null,localNode:t?$y(t):null,remoteNode:n?$y(n):null}}function ob(e){return e.reduce((e,t)=>({appliedCount:e.appliedCount+ +(t.type===`applied`),conflictCount:e.conflictCount+ +(t.type===`conflict`)}),{appliedCount:0,conflictCount:0})}function sb(e,t){return e.map(e=>Object.assign({path:[t,...e.path],type:e.type},e.hunk?{hunk:e.hunk}:{}))}function cb(e,t,n){let r=t.content?.map(e=>$y(e))??[],i=n.content?.map(e=>$y(e))??[],a=cy(t),o=cy(n);if(a.length>0&&o.length>0){if(o.length>a.length&&o.includes(a))return{node:Object.assign(Object.assign({},eb(n)),{content:i}),annotations:[{path:[],type:`applied`}]};if(a.length>o.length&&a.includes(o))return{node:Object.assign(Object.assign({},eb(t)),{content:r}),annotations:[]}}let s=r.length>0&&i.length>0&&cy(t).length>0&&cy(n).length>0?[...r,{type:`text`,text:` `},...i]:[...r,...i];return{node:Object.assign(Object.assign({},eb(t)),{content:s}),annotations:[{path:[],type:`conflict`,hunk:ab(e,t,n)}]}}function lb(e,t,n,r){if(!t&&!n)return[];if(!t)return!n||$v(e,n)?[]:[ib(n,`conflict`,ab(e,null,n))];if(!n)return $v(e,t)?[]:[ib(t,`conflict`,ab(e,t,null))];let i=!$v(e,t),a=!$v(e,n);if(!i&&!a)return[{node:$y(t),annotations:[]}];if(!i&&a)return[ib(n,`applied`)];if(i&&!a||$v(t,n))return[{node:$y(t),annotations:[]}];if(t.type===n.type&&t.type===e.type&&ey(t.attrs,n.attrs)&&ey(e.attrs,t.attrs)){if(dy(t.type,r)&&!py(t.type,r))return[cb(e,t,n)];if(!fy(t.type,r)&&!py(t.type,r)&&t.content&&n.content&&e.content){let i=gb(e.content,t.content,n.content,r);return[{node:Object.assign(Object.assign({},eb(t)),{content:i.nodes}),annotations:i.annotations.map(e=>Object.assign({path:e.path,type:e.type},e.hunk?{hunk:e.hunk}:{}))}]}}return[{node:$y(t),annotations:[]},ib(n,`conflict`,ab(e,t,n))]}function ub(e,t,n){let r=[],i=0;for(let a of e){let e=rb(a,t,i,n);r.push(e),e!=null&&(i=e+1)}return r}function db(e,t){return Array.from({length:e},()=>Array(t).fill(0))}function fb(e,t,n){let r=n.get(e);if(r!==void 0)return r;let i;try{i=Lv(t.nodeFromJSON({type:`doc`,content:[e]}))}catch{i=JSON.stringify(e)}return n.set(e,i),i}function pb(e,t,n,r){return $v(e,t)?!0:fb(e,n,r)===fb(t,n,r)}function mb(e,t,n,r){let i=db(e.length+1,t.length+1);for(let a=e.length-1;a>=0;--a){let o=e[a],s=i[a],c=i[a+1];for(let e=t.length-1;e>=0;--e){let i=t[e],a=c[e],l=s[e+1];if(pb(o,i,n,r)){let t=c[e+1]+1;s[e]=t}else s[e]=Math.max(a,l)}}return i}function hb(e,t,n){return(e[t+1]?.[n]??0)>=(e[t]?.[n+1]??0)}function gb(e,t,n,r){let i=[],a=[],o=/* @__PURE__ */ new Map,s=ub(e,t,r),c=ub(e,n,r),l=e=>{let t=i.length;i.push(e.node),a.push(...sb(e.annotations,t))},u=(e,n)=>{for(let r=e;r<n;r+=1){let e=t[r];e&&l({node:$y(e),annotations:[]})}},d=(e,t,r)=>{for(let i=e;i<t;i+=1){let e=n[i];e&&l(ib(e,r))}},f=(e,i,a,s)=>{let c=t.slice(e,i),f=n.slice(a,s);if(c.length===0){d(a,s,`applied`);return}if(f.length===0){u(e,i);return}let p=mb(c,f,r,o),m=0,h=0;for(;m<c.length&&h<f.length;){let e=c[m],t=f[h];e&&t&&pb(e,t,r,o)?(l({node:$y(e),annotations:[]}),m+=1,h+=1):hb(p,m,h)?(l({node:$y(e),annotations:[]}),m+=1):(l(ib(t,`applied`)),h+=1)}u(e+m,i),d(a+h,s,`applied`)},p=0,m=0;for(let i=0;i<e.length;i+=1){let a=e[i],o=s[i]??null,u=c[i]??null;f(p,o??p,m,u??m);let d=o==null?void 0:t[o],h=u==null?void 0:n[u];for(let e of lb(a,d,h,r))l(e);o!=null&&(p=o+1),u!=null&&(m=u+1)}return f(p,t.length,m,n.length),{nodes:i,annotations:a}}function _b(e){let{baseDoc:t,localDoc:n,remoteDoc:r,schema:i}=e,a=gb(t.content??[],n.content??[],r.content??[],i),o=!ey(t.attrs,n.attrs),s=!ey(t.attrs,r.attrs),c=Object.assign(Object.assign({},eb(!o&&s?r:n)),{content:a.nodes}),l=[],u=a.annotations.map(e=>(e.type===`conflict`&&e.hunk&&l.push(Object.assign({path:e.path},e.hunk)),{path:e.path,type:e.type}));return{mergedDoc:c,annotations:u,conflicts:l,summary:ob(u)}}export{O as BLOCK_TYPES,Ot as CALLOUT_TYPES,Mt as COMMENT_THREAD_IDS_ATTR,zt as DEFAULT_CODE_BLOCK_LANGUAGE,En as DEFAULT_DATABASE_VIEW,Rt as DEFAULT_MERMAID_PLACEMENT,At as EDITOR_COMPONENT_NAMES,vg as FRONTMATTER_ATTRIBUTES_WITH_ARRAY_VALUES,_g as FRONTMATTER_ATTRIBUTES_WITH_BOOLEAN_VALUES,Ft as HIDDEN_NODE_ATTRS,kt as HTML_ELEMENTS,Lt as IMAGE_ALIGN_CLASSES,ey as attrsEqual,jv as canonicalPmToMdxOptions,Tn as createSchema,$v as deepEqual,qy as diffDocs,yh as extractDiffMarkers,qn as extractFrontmatter,cy as extractText,pg as filterFrontmatterRecord,Gn as findRedundantStaticHtmlSources,Tg as formatFrontmatterValue,xh as formatLineRanges,Sh as getDiffMarkerComment,rm as getImageAlignFromClassName,im as getImageWidthFromStyle,On as isDatabaseId,kn as isDatabaseView,Eg as isJSXContent,fg as isNonEmptyFrontmatterValue,dg as mdToPm,Ky as mdastToMdx,Ph as mdastToPm,Hp as mdxToMdast,Hh as mdxToPm,_b as mergeRemoteIntoLiveDoc,wn as mintlifySchema,sy as nodeSize,uy as nodesMatch,Vn as parseCommentThreadIds,Xp as parseExpressionAttribute,Kn as parseFrontmatterYaml,bh as parseLineRanges,$ as parseMdxAttributes,vh as parseMetaString,Gy as pmJsonToMdast,Lv as pmToMdx,Sy as pmToMdxPreservingSource,zn as readDatabaseSql,An as resolveDatabaseView,yg as safeJsonParse,Qp as sanitizeDomAttrs,Hn as serializeCommentThreadIds,In as serializeDatabaseSql,kg as serializePropValue,qv as startsWithPlaceholderParagraph,xg as storedValueToTyped,ly as textSimilarity};