appos 0.2.1 → 0.2.3-0

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 (232) hide show
  1. package/dist/bin/auth-schema-7KeUwlcd.mjs +2 -0
  2. package/dist/bin/concurrently.mjs +2 -0
  3. package/dist/bin/event-v2sCJkNd.mjs +2 -0
  4. package/dist/bin/extract-blob-metadata-TqNd9w-6.mjs +2 -0
  5. package/dist/bin/generate-image-variant-D8H9FxgD.mjs +2 -0
  6. package/dist/bin/generate-preview-5jLZLX6I.mjs +2 -0
  7. package/dist/bin/main.mjs +362 -0
  8. package/dist/bin/purge-attachment-CMlJMNOk.mjs +2 -0
  9. package/dist/bin/purge-audit-logs-hd6q6vnR.mjs +2 -0
  10. package/dist/bin/purge-unattached-blobs-BYv5b9R9.mjs +2 -0
  11. package/dist/bin/track-db-changes-q0Vl7Htm.mjs +2 -0
  12. package/dist/bin/vite.mjs +2 -0
  13. package/dist/bin/vitest.mjs +2 -0
  14. package/dist/bin/workflow-BagSlsMp.mjs +2 -0
  15. package/dist/bin/youch-handler-Jj6i1XIT.mjs +2 -0
  16. package/dist/exports/api/_virtual/rolldown_runtime.mjs +1 -0
  17. package/dist/exports/api/app-context.d.mts +115 -0
  18. package/dist/exports/api/app-context.mjs +1 -0
  19. package/dist/exports/api/auth-schema.d.mts +4248 -0
  20. package/dist/exports/api/auth-schema.mjs +1 -0
  21. package/dist/exports/api/auth.d.mts +398 -0
  22. package/dist/exports/api/auth.mjs +1 -0
  23. package/dist/exports/api/cache.d.mts +44 -0
  24. package/dist/exports/api/cache.mjs +1 -0
  25. package/dist/exports/api/config.d.mts +28 -0
  26. package/dist/exports/api/config.mjs +1 -0
  27. package/dist/exports/api/container.d.mts +210 -0
  28. package/dist/exports/api/container.mjs +1 -0
  29. package/dist/exports/api/database.d.mts +99 -0
  30. package/dist/exports/api/database.mjs +1 -0
  31. package/dist/exports/api/event.d.mts +235 -0
  32. package/dist/exports/api/event.mjs +1 -0
  33. package/dist/exports/api/i18n.d.mts +34 -0
  34. package/dist/exports/api/i18n.mjs +1 -0
  35. package/dist/exports/api/index.d.mts +21 -0
  36. package/dist/exports/api/index.mjs +1 -0
  37. package/dist/exports/api/logger.d.mts +21 -0
  38. package/dist/exports/api/logger.mjs +1 -0
  39. package/dist/exports/api/mailer.d.mts +70 -0
  40. package/dist/exports/api/mailer.mjs +1 -0
  41. package/dist/exports/api/middleware/request-logger.d.mts +24 -0
  42. package/dist/exports/api/middleware.d.mts +39 -0
  43. package/dist/exports/api/middleware.mjs +1 -0
  44. package/dist/exports/api/node_modules/.bun/change-case@5.4.4/node_modules/change-case/dist/index.mjs +1 -0
  45. package/dist/exports/api/openapi.d.mts +271 -0
  46. package/dist/exports/api/openapi.mjs +1 -0
  47. package/dist/exports/api/orm.d.mts +13 -0
  48. package/dist/exports/api/orm.mjs +1 -0
  49. package/dist/exports/api/otel.d.mts +40 -0
  50. package/dist/exports/api/otel.mjs +1 -0
  51. package/dist/exports/api/packages/appos/src/constants.mjs +1 -0
  52. package/dist/exports/api/packages/appos/src/instrumentation.d.mts +7 -0
  53. package/dist/exports/api/packages/appos/src/instrumentation.mjs +1 -0
  54. package/dist/exports/api/packages/appos/src/web/auth.mjs +1 -0
  55. package/dist/exports/api/redis.d.mts +34 -0
  56. package/dist/exports/api/redis.mjs +1 -0
  57. package/dist/exports/api/storage-schema.d.mts +707 -0
  58. package/dist/exports/api/storage-schema.mjs +1 -0
  59. package/dist/exports/api/storage.d.mts +506 -0
  60. package/dist/exports/api/storage.mjs +1 -0
  61. package/dist/exports/api/workflow.d.mts +250 -0
  62. package/dist/exports/api/workflow.mjs +1 -0
  63. package/dist/exports/api/workflows/_virtual/rolldown_runtime.mjs +1 -0
  64. package/dist/exports/api/workflows/auth-schema.mjs +1 -0
  65. package/dist/exports/api/workflows/auth.d.mts +375 -0
  66. package/dist/exports/api/workflows/cache.d.mts +44 -0
  67. package/dist/exports/api/workflows/config.d.mts +18 -0
  68. package/dist/exports/api/workflows/container.d.mts +167 -0
  69. package/dist/exports/api/workflows/database.d.mts +46 -0
  70. package/dist/exports/api/workflows/event.d.mts +68 -0
  71. package/dist/exports/api/workflows/event.mjs +1 -0
  72. package/dist/exports/api/workflows/extract-blob-metadata.mjs +1 -0
  73. package/dist/exports/api/workflows/generate-image-variant.d.mts +63 -0
  74. package/dist/exports/api/workflows/generate-image-variant.mjs +1 -0
  75. package/dist/exports/api/workflows/generate-preview.mjs +1 -0
  76. package/dist/exports/api/workflows/index.d.mts +2 -0
  77. package/dist/exports/api/workflows/index.mjs +1 -0
  78. package/dist/exports/api/workflows/logger.d.mts +21 -0
  79. package/dist/exports/api/workflows/mailer.d.mts +70 -0
  80. package/dist/exports/api/workflows/orm.d.mts +13 -0
  81. package/dist/exports/api/workflows/purge-attachment.mjs +1 -0
  82. package/dist/exports/api/workflows/purge-audit-logs.mjs +1 -0
  83. package/dist/exports/api/workflows/purge-unattached-blobs.mjs +1 -0
  84. package/dist/exports/api/workflows/redis.mjs +1 -0
  85. package/dist/exports/api/workflows/storage-schema.d.mts +699 -0
  86. package/dist/exports/api/workflows/storage.d.mts +396 -0
  87. package/dist/exports/api/workflows/track-db-changes.d.mts +72 -0
  88. package/dist/exports/api/workflows/track-db-changes.mjs +1 -0
  89. package/dist/exports/api/workflows/workflow.d.mts +24 -0
  90. package/dist/exports/api/workflows/workflow.mjs +1 -0
  91. package/dist/exports/cli/_virtual/rolldown_runtime.mjs +1 -0
  92. package/dist/exports/cli/api/auth-schema.mjs +1 -0
  93. package/dist/exports/cli/api/auth.d.mts +375 -0
  94. package/dist/exports/cli/api/cache.d.mts +44 -0
  95. package/dist/exports/cli/api/config.d.mts +18 -0
  96. package/dist/exports/cli/api/container.d.mts +167 -0
  97. package/dist/exports/cli/api/database.d.mts +46 -0
  98. package/dist/exports/cli/api/event.d.mts +68 -0
  99. package/dist/exports/cli/api/event.mjs +1 -0
  100. package/dist/exports/cli/api/logger.d.mts +21 -0
  101. package/dist/exports/cli/api/mailer.d.mts +70 -0
  102. package/dist/exports/cli/api/orm.d.mts +13 -0
  103. package/dist/exports/cli/api/redis.mjs +1 -0
  104. package/dist/exports/cli/api/storage-schema.d.mts +699 -0
  105. package/dist/exports/cli/api/storage.d.mts +396 -0
  106. package/dist/exports/cli/api/workflow.d.mts +2 -0
  107. package/dist/exports/cli/api/workflow.mjs +1 -0
  108. package/dist/exports/cli/api/workflows/extract-blob-metadata.mjs +1 -0
  109. package/dist/exports/cli/api/workflows/generate-image-variant.d.mts +63 -0
  110. package/dist/exports/cli/api/workflows/generate-image-variant.mjs +1 -0
  111. package/dist/exports/cli/api/workflows/generate-preview.mjs +1 -0
  112. package/dist/exports/cli/api/workflows/purge-attachment.mjs +1 -0
  113. package/dist/exports/cli/api/workflows/purge-audit-logs.mjs +1 -0
  114. package/dist/exports/cli/api/workflows/purge-unattached-blobs.mjs +1 -0
  115. package/dist/exports/cli/api/workflows/track-db-changes.mjs +1 -0
  116. package/dist/exports/cli/command.d.mts +54 -0
  117. package/dist/exports/cli/command.mjs +1 -0
  118. package/dist/exports/cli/context.d.mts +170 -0
  119. package/dist/exports/cli/index.d.mts +3 -0
  120. package/dist/exports/cli/index.mjs +1 -0
  121. package/dist/exports/devtools/index.d.ts +3 -0
  122. package/dist/exports/devtools/index.js +1 -0
  123. package/dist/exports/instrumentation.d.mts +1 -0
  124. package/dist/exports/instrumentation.mjs +1 -0
  125. package/dist/exports/tests/_virtual/rolldown_runtime.mjs +1 -0
  126. package/dist/exports/tests/api.d.mts +86 -0
  127. package/dist/exports/tests/api.mjs +1 -0
  128. package/dist/exports/tests/mock.d.mts +1 -0
  129. package/dist/exports/tests/mock.mjs +1 -0
  130. package/dist/exports/tests/node_modules/.bun/change-case@5.4.4/node_modules/change-case/dist/index.mjs +1 -0
  131. package/dist/exports/tests/node_modules/.bun/rate-limit-redis@4.3.1_f1fa5524233c9c60/node_modules/rate-limit-redis/dist/index.mjs +25 -0
  132. package/dist/exports/tests/packages/appos/src/api/app-context.d.mts +115 -0
  133. package/dist/exports/tests/packages/appos/src/api/auth-schema.d.mts +4248 -0
  134. package/dist/exports/tests/packages/appos/src/api/auth-schema.mjs +1 -0
  135. package/dist/exports/tests/packages/appos/src/api/auth.d.mts +398 -0
  136. package/dist/exports/tests/packages/appos/src/api/cache.d.mts +44 -0
  137. package/dist/exports/tests/packages/appos/src/api/config.d.mts +28 -0
  138. package/dist/exports/tests/packages/appos/src/api/container.d.mts +210 -0
  139. package/dist/exports/tests/packages/appos/src/api/database.d.mts +99 -0
  140. package/dist/exports/tests/packages/appos/src/api/database.mjs +1 -0
  141. package/dist/exports/tests/packages/appos/src/api/event.d.mts +235 -0
  142. package/dist/exports/tests/packages/appos/src/api/event.mjs +1 -0
  143. package/dist/exports/tests/packages/appos/src/api/i18n.d.mts +34 -0
  144. package/dist/exports/tests/packages/appos/src/api/index.d.mts +27 -0
  145. package/dist/exports/tests/packages/appos/src/api/logger.d.mts +21 -0
  146. package/dist/exports/tests/packages/appos/src/api/mailer.d.mts +70 -0
  147. package/dist/exports/tests/packages/appos/src/api/middleware/error-handler.mjs +1 -0
  148. package/dist/exports/tests/packages/appos/src/api/middleware/health.mjs +1 -0
  149. package/dist/exports/tests/packages/appos/src/api/middleware/i18n.mjs +1 -0
  150. package/dist/exports/tests/packages/appos/src/api/middleware/request-logger.d.mts +24 -0
  151. package/dist/exports/tests/packages/appos/src/api/middleware/request-logger.mjs +1 -0
  152. package/dist/exports/tests/packages/appos/src/api/middleware/shutdown.mjs +1 -0
  153. package/dist/exports/tests/packages/appos/src/api/middleware/timeout.mjs +1 -0
  154. package/dist/exports/tests/packages/appos/src/api/middleware/youch-handler.mjs +1 -0
  155. package/dist/exports/tests/packages/appos/src/api/middleware.d.mts +39 -0
  156. package/dist/exports/tests/packages/appos/src/api/middleware.mjs +1 -0
  157. package/dist/exports/tests/packages/appos/src/api/openapi.d.mts +271 -0
  158. package/dist/exports/tests/packages/appos/src/api/orm.d.mts +13 -0
  159. package/dist/exports/tests/packages/appos/src/api/otel.d.mts +40 -0
  160. package/dist/exports/tests/packages/appos/src/api/redis.d.mts +34 -0
  161. package/dist/exports/tests/packages/appos/src/api/redis.mjs +1 -0
  162. package/dist/exports/tests/packages/appos/src/api/server.mjs +1 -0
  163. package/dist/exports/tests/packages/appos/src/api/storage-schema.d.mts +707 -0
  164. package/dist/exports/tests/packages/appos/src/api/storage.d.mts +506 -0
  165. package/dist/exports/tests/packages/appos/src/api/workflow.d.mts +250 -0
  166. package/dist/exports/tests/packages/appos/src/api/workflow.mjs +1 -0
  167. package/dist/exports/tests/packages/appos/src/api/workflows/extract-blob-metadata.mjs +1 -0
  168. package/dist/exports/tests/packages/appos/src/api/workflows/generate-image-variant.d.mts +99 -0
  169. package/dist/exports/tests/packages/appos/src/api/workflows/generate-image-variant.mjs +1 -0
  170. package/dist/exports/tests/packages/appos/src/api/workflows/generate-preview.mjs +1 -0
  171. package/dist/exports/tests/packages/appos/src/api/workflows/purge-attachment.mjs +1 -0
  172. package/dist/exports/tests/packages/appos/src/api/workflows/purge-audit-logs.mjs +1 -0
  173. package/dist/exports/tests/packages/appos/src/api/workflows/purge-unattached-blobs.mjs +1 -0
  174. package/dist/exports/tests/packages/appos/src/api/workflows/track-db-changes.mjs +1 -0
  175. package/dist/exports/tests/packages/appos/src/constants.mjs +1 -0
  176. package/dist/exports/tests/packages/appos/src/instrumentation.d.mts +7 -0
  177. package/dist/exports/tests/packages/appos/src/instrumentation.mjs +1 -0
  178. package/dist/exports/tests/react.d.mts +2 -0
  179. package/dist/exports/tests/react.mjs +1 -0
  180. package/dist/exports/tests/setup.d.mts +1 -0
  181. package/dist/exports/tests/setup.mjs +1 -0
  182. package/dist/exports/vendors/date.js +1 -0
  183. package/dist/exports/vendors/toolkit.js +1 -0
  184. package/dist/exports/vendors/zod.d.ts +1 -0
  185. package/dist/exports/vendors/zod.js +1 -0
  186. package/dist/exports/vite/index.d.mts +19 -0
  187. package/dist/exports/vite/index.mjs +1 -0
  188. package/dist/exports/vitest/config.d.mts +1 -0
  189. package/dist/exports/vitest/config.mjs +1 -0
  190. package/dist/exports/vitest/globals.d.mts +1 -0
  191. package/dist/exports/vitest/globals.mjs +1 -0
  192. package/dist/exports/vitest/index.d.mts +1 -0
  193. package/dist/exports/vitest/index.mjs +1 -0
  194. package/dist/exports/web/api/auth.d.ts +125 -0
  195. package/dist/exports/web/api/database.d.ts +4 -0
  196. package/dist/exports/web/api/logger.d.ts +1 -0
  197. package/dist/exports/web/auth.d.ts +2388 -0
  198. package/dist/exports/web/auth.js +1 -0
  199. package/dist/exports/web/i18n.d.ts +42 -0
  200. package/dist/exports/web/i18n.js +1 -0
  201. package/dist/exports/web/index.d.ts +6 -0
  202. package/dist/exports/web/index.js +1 -0
  203. package/package.json +138 -98
  204. package/build/bin/main.mjs +0 -2
  205. package/build/exports/cli/index.d.mts +0 -325
  206. package/build/exports/cli/index.mjs +0 -1
  207. package/build/exports/instrumentation/execAsync-DaIUcs6_.mjs +0 -1
  208. package/build/exports/instrumentation/getMachineId-bsd-bB6ipDhm.mjs +0 -1
  209. package/build/exports/instrumentation/getMachineId-darwin-D1Bx5aCe.mjs +0 -2
  210. package/build/exports/instrumentation/getMachineId-linux-D_R9Tla0.mjs +0 -1
  211. package/build/exports/instrumentation/getMachineId-unsupported-BZKPE_Ev.mjs +0 -1
  212. package/build/exports/instrumentation/getMachineId-win-CmPvIqHL.mjs +0 -1
  213. package/build/exports/instrumentation/instrumentation.d.mts +0 -1
  214. package/build/exports/instrumentation/instrumentation.mjs +0 -80
  215. package/build/exports/server/index.d.mts +0 -327
  216. package/build/exports/server/index.mjs +0 -219
  217. package/build/exports/server/react-gPO8Jsy-.mjs +0 -13
  218. package/build/exports/server/server.node-D_9RYjm9.mjs +0 -210
  219. package/build/exports/store/index.d.mts +0 -58
  220. package/build/exports/store/index.mjs +0 -15
  221. package/build/exports/support/datetime.js +0 -1
  222. package/build/exports/support/utils.js +0 -1
  223. package/build/exports/support/zod.d.ts +0 -2
  224. package/build/exports/support/zod.js +0 -23
  225. package/build/exports/test/dist-DAsoCGWk.mjs +0 -348
  226. package/build/exports/test/index.d.mts +0 -3
  227. package/build/exports/test/index.mjs +0 -1
  228. package/build/exports/test/magic-string.es-BWgiB2kd.mjs +0 -14
  229. package/build/exports/test/setup.d.mts +0 -1
  230. package/build/exports/test/setup.mjs +0 -329
  231. /package/{build/exports/support/datetime.d.ts → dist/exports/vendors/date.d.ts} +0 -0
  232. /package/{build/exports/support/utils.d.ts → dist/exports/vendors/toolkit.d.ts} +0 -0
@@ -1,219 +0,0 @@
1
- import{a as e,i as t,n,o as r,r as i,t as a}from"./react-gPO8Jsy-.mjs";import{lstatSync as o,readdirSync as s,watch as c}from"node:fs";import{join as l}from"node:path";import{Writable as u}from"node:stream";import{getCallSites as d}from"node:util";Object.freeze({status:`aborted`});function f(e,t,n){function r(n,r){var i;for(let a in Object.defineProperty(n,`_zod`,{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r),o.prototype)a in n||Object.defineProperty(n,a,{value:o.prototype[a].bind(n)});n._zod.constr=o,n._zod.def=r}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var p=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},m=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};const h={};function g(e){return e&&Object.assign(h,e),h}function _(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function v(e,t){return typeof t==`bigint`?t.toString():t}function y(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function b(e){return e==null}function x(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}const S=Symbol(`evaluating`);function C(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==S)return r===void 0&&(r=S,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function w(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function T(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function E(e){return JSON.stringify(e)}const D=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function O(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const k=y(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function A(e){if(O(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(O(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function ee(e){return A(e)?{...e}:Array.isArray(e)?[...e]:e}const te=new Set([`string`,`number`,`symbol`]);function ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function re(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function j(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function ie(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function ae(e,t){let n=e._zod.def;return re(e,T(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return w(this,`shape`,e),e},checks:[]}))}function oe(e,t){let n=e._zod.def;return re(e,T(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return w(this,`shape`,r),r},checks:[]}))}function se(e,t){if(!A(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");return re(e,T(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return w(this,`shape`,n),n},checks:[]}))}function ce(e,t){if(!A(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return re(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return w(this,`shape`,n),n},checks:e._zod.def.checks})}function le(e,t){return re(e,T(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return w(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function ue(e,t,n){return re(t,T(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return w(this,`shape`,i),i},checks:[]}))}function de(e,t,n){return re(t,T(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return w(this,`shape`,i),i},checks:[]}))}function fe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function pe(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function me(e){return typeof e==`string`?e:e?.message}function he(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=me(e.inst?._zod.def?.error?.(e))??me(t?.error?.(e))??me(n.customError?.(e))??me(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function ge(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function _e(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const ve=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,v,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},ye=f(`$ZodError`,ve),be=f(`$ZodError`,ve,{Parent:Error});function xe(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Se(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}const Ce=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new p;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>he(e,a,g())));throw D(t,i?.callee),t}return o.value},we=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>he(e,a,g())));throw D(t,i?.callee),t}return o.value},Te=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new p;return a.issues.length?{success:!1,error:new(e??ye)(a.issues.map(e=>he(e,i,g())))}:{success:!0,data:a.value}},Ee=Te(be),De=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>he(e,i,g())))}:{success:!0,data:a.value}},Oe=De(be),ke=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ce(e)(t,n,i)},Ae=e=>(t,n,r)=>Ce(e)(t,n,r),je=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return we(e)(t,n,i)},Me=e=>async(t,n,r)=>we(e)(t,n,r),Ne=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Te(e)(t,n,i)},Pe=e=>(t,n,r)=>Te(e)(t,n,r),Fe=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return De(e)(t,n,i)},Ie=e=>async(t,n,r)=>De(e)(t,n,r),Le=/^[cC][^\s-]{8,}$/,Re=/^[0-9a-z]+$/,ze=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Be=/^[0-9a-vA-V]{20}$/,Ve=/^[A-Za-z0-9]{27}$/,He=/^[a-zA-Z0-9_-]{21}$/,Ue=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,We=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ge=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ke=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function qe(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const Je=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ye=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Xe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ze=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Qe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,$e=/^[A-Za-z0-9_-]*$/,et=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,tt=/^\+(?:[0-9]){6,14}[0-9]$/,nt=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,rt=RegExp(`^${nt}$`);function it(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function at(e){return RegExp(`^${it(e)}$`)}function ot(e){let t=it({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${nt}T(?:${r})$`)}const st=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},ct=/^[^A-Z]*$/,lt=/^[^a-z]*$/,ut=f(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),dt=f(`$ZodCheckMaxLength`,(e,t)=>{var n;ut.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!b(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=ge(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ft=f(`$ZodCheckMinLength`,(e,t)=>{var n;ut.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!b(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=ge(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),pt=f(`$ZodCheckLengthEquals`,(e,t)=>{var n;ut.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!b(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=ge(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),mt=f(`$ZodCheckStringFormat`,(e,t)=>{var n,r;ut.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ht=f(`$ZodCheckRegex`,(e,t)=>{mt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),gt=f(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=ct,mt.init(e,t)}),_t=f(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=lt,mt.init(e,t)}),vt=f(`$ZodCheckIncludes`,(e,t)=>{ut.init(e,t);let n=ne(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),yt=f(`$ZodCheckStartsWith`,(e,t)=>{ut.init(e,t);let n=RegExp(`^${ne(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),bt=f(`$ZodCheckEndsWith`,(e,t)=>{ut.init(e,t);let n=RegExp(`.*${ne(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),xt=f(`$ZodCheckOverwrite`,(e,t)=>{ut.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});var St=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
2
- `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
3
- `))}};const Ct={major:4,minor:1,patch:12},wt=f(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ct;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=fe(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new p;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=fe(e,t))});else{if(e.issues.length===t)continue;r||=fe(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(fe(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new p;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new p;return o.then(e=>t(e,r,a))}return t(o,r,a)}}e[`~standard`]={validate:t=>{try{let n=Ee(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Oe(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}}),Tt=f(`$ZodString`,(e,t)=>{wt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??st(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),M=f(`$ZodStringFormat`,(e,t)=>{mt.init(e,t),Tt.init(e,t)}),Et=f(`$ZodGUID`,(e,t)=>{t.pattern??=We,M.init(e,t)}),Dt=f(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Ge(e)}else t.pattern??=Ge();M.init(e,t)}),Ot=f(`$ZodEmail`,(e,t)=>{t.pattern??=Ke,M.init(e,t)}),kt=f(`$ZodURL`,(e,t)=>{M.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:et.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),At=f(`$ZodEmoji`,(e,t)=>{t.pattern??=qe(),M.init(e,t)}),jt=f(`$ZodNanoID`,(e,t)=>{t.pattern??=He,M.init(e,t)}),Mt=f(`$ZodCUID`,(e,t)=>{t.pattern??=Le,M.init(e,t)}),Nt=f(`$ZodCUID2`,(e,t)=>{t.pattern??=Re,M.init(e,t)}),Pt=f(`$ZodULID`,(e,t)=>{t.pattern??=ze,M.init(e,t)}),Ft=f(`$ZodXID`,(e,t)=>{t.pattern??=Be,M.init(e,t)}),It=f(`$ZodKSUID`,(e,t)=>{t.pattern??=Ve,M.init(e,t)}),Lt=f(`$ZodISODateTime`,(e,t)=>{t.pattern??=ot(t),M.init(e,t)}),Rt=f(`$ZodISODate`,(e,t)=>{t.pattern??=rt,M.init(e,t)}),zt=f(`$ZodISOTime`,(e,t)=>{t.pattern??=at(t),M.init(e,t)}),Bt=f(`$ZodISODuration`,(e,t)=>{t.pattern??=Ue,M.init(e,t)}),Vt=f(`$ZodIPv4`,(e,t)=>{t.pattern??=Je,M.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv4`})}),Ht=f(`$ZodIPv6`,(e,t)=>{t.pattern??=Ye,M.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv6`}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Ut=f(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Xe,M.init(e,t)}),Wt=f(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Ze,M.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Gt(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const Kt=f(`$ZodBase64`,(e,t)=>{t.pattern??=Qe,M.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64`}),e._zod.check=n=>{Gt(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function qt(e){if(!$e.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Gt(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const Jt=f(`$ZodBase64URL`,(e,t)=>{t.pattern??=$e,M.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64url`}),e._zod.check=n=>{qt(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Yt=f(`$ZodE164`,(e,t)=>{t.pattern??=tt,M.init(e,t)});function Xt(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}const Zt=f(`$ZodJWT`,(e,t)=>{M.init(e,t),e._zod.check=n=>{Xt(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Qt=f(`$ZodUnknown`,(e,t)=>{wt.init(e,t),e._zod.parse=e=>e}),$t=f(`$ZodNever`,(e,t)=>{wt.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function en(e,t,n){e.issues.length&&t.issues.push(...pe(n,e.issues)),t.value[n]=e.value}const tn=f(`$ZodArray`,(e,t)=>{wt.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>en(t,n,e))):en(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function nn(e,t,n,r){e.issues.length&&t.issues.push(...pe(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function rn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=ie(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function an(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type;for(let i of Object.keys(t)){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>nn(e,n,i,t))):nn(a,n,i,t)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const on=f(`$ZodObject`,(e,t)=>{if(wt.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=y(()=>rn(t));C(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=O,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e]._zod.run({value:s[e],issues:[]},o);n instanceof Promise?c.push(n.then(n=>nn(n,t,e,s))):nn(n,t,e,s)}return i?an(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),sn=f(`$ZodObjectJIT`,(e,t)=>{on.init(e,t);let n=e._zod.parse,r=y(()=>rn(t)),i=e=>{let t=new St([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=E(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let e of n.keys){let n=a[e],r=E(e);t.write(`const ${n} = ${i(e)};`),t.write(`
4
- if (${n}.issues.length) {
5
- payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
6
- ...iss,
7
- path: iss.path ? [${r}, ...iss.path] : [${r}]
8
- })));
9
- }
10
-
11
-
12
- if (${n}.value === undefined) {
13
- if (${r} in input) {
14
- newResult[${r}] = undefined;
15
- }
16
- } else {
17
- newResult[${r}] = ${n}.value;
18
- }
19
-
20
- `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=O,s=!h.jitless,c=s&&k.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?an([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function cn(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!fe(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>he(e,r,g())))}),t)}const ln=f(`$ZodUnion`,(e,t)=>{wt.init(e,t),C(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),C(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),C(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),C(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>x(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>cn(t,i,e,a)):cn(s,i,e,a)}}),un=f(`$ZodIntersection`,(e,t)=>{wt.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>fn(e,t,n)):fn(e,i,a)}});function dn(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(A(e)&&A(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=dn(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=dn(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function fn(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),fe(e))return e;let r=dn(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const pn=f(`$ZodEnum`,(e,t)=>{wt.init(e,t);let n=_(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>te.has(typeof e)).map(e=>typeof e==`string`?ne(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),mn=f(`$ZodTransform`,(e,t)=>{wt.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new m(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new p;return n.value=i,n}});function hn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const gn=f(`$ZodOptional`,(e,t)=>{wt.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,C(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),C(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${x(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>hn(t,e.value)):hn(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),_n=f(`$ZodNullable`,(e,t)=>{wt.init(e,t),C(e._zod,`optin`,()=>t.innerType._zod.optin),C(e._zod,`optout`,()=>t.innerType._zod.optout),C(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${x(e.source)}|null)$`):void 0}),C(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),vn=f(`$ZodDefault`,(e,t)=>{wt.init(e,t),e._zod.optin=`optional`,C(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>yn(e,t)):yn(r,t)}});function yn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const bn=f(`$ZodPrefault`,(e,t)=>{wt.init(e,t),e._zod.optin=`optional`,C(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),xn=f(`$ZodNonOptional`,(e,t)=>{wt.init(e,t),C(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Sn(t,e)):Sn(i,e)}});function Sn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const Cn=f(`$ZodCatch`,(e,t)=>{wt.init(e,t),C(e._zod,`optin`,()=>t.innerType._zod.optin),C(e._zod,`optout`,()=>t.innerType._zod.optout),C(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>he(e,n,g()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>he(e,n,g()))},input:e.value}),e.issues=[]),e)}}),wn=f(`$ZodPipe`,(e,t)=>{wt.init(e,t),C(e._zod,`values`,()=>t.in._zod.values),C(e._zod,`optin`,()=>t.in._zod.optin),C(e._zod,`optout`,()=>t.out._zod.optout),C(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Tn(e,t.in,n)):Tn(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Tn(e,t.out,n)):Tn(r,t.out,n)}});function Tn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const En=f(`$ZodReadonly`,(e,t)=>{wt.init(e,t),C(e._zod,`propValues`,()=>t.innerType._zod.propValues),C(e._zod,`values`,()=>t.innerType._zod.values),C(e._zod,`optin`,()=>t.innerType._zod.optin),C(e._zod,`optout`,()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Dn):Dn(r)}});function Dn(e){return e.value=Object.freeze(e.value),e}const On=f(`$ZodCustom`,(e,t)=>{ut.init(e,t),wt.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>kn(t,n,r,e));kn(i,n,r,e)}});function kn(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(_e(e))}}var An=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function jn(){return new An}const Mn=jn();function Nn(e,t){return new e({type:`string`,...j(t)})}function Pn(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...j(t)})}function Fn(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...j(t)})}function In(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...j(t)})}function Ln(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...j(t)})}function Rn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...j(t)})}function zn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...j(t)})}function Bn(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...j(t)})}function Vn(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...j(t)})}function Hn(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...j(t)})}function Un(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...j(t)})}function Wn(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...j(t)})}function Gn(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...j(t)})}function Kn(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...j(t)})}function qn(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...j(t)})}function Jn(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...j(t)})}function Yn(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...j(t)})}function Xn(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...j(t)})}function Zn(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...j(t)})}function Qn(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...j(t)})}function $n(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...j(t)})}function er(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...j(t)})}function tr(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...j(t)})}function nr(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...j(t)})}function rr(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...j(t)})}function ir(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...j(t)})}function ar(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...j(t)})}function or(e){return new e({type:`unknown`})}function sr(e,t){return new e({type:`never`,...j(t)})}function cr(e,t){return new dt({check:`max_length`,...j(t),maximum:e})}function lr(e,t){return new ft({check:`min_length`,...j(t),minimum:e})}function ur(e,t){return new pt({check:`length_equals`,...j(t),length:e})}function dr(e,t){return new ht({check:`string_format`,format:`regex`,...j(t),pattern:e})}function fr(e){return new gt({check:`string_format`,format:`lowercase`,...j(e)})}function pr(e){return new _t({check:`string_format`,format:`uppercase`,...j(e)})}function mr(e,t){return new vt({check:`string_format`,format:`includes`,...j(t),includes:e})}function hr(e,t){return new yt({check:`string_format`,format:`starts_with`,...j(t),prefix:e})}function gr(e,t){return new bt({check:`string_format`,format:`ends_with`,...j(t),suffix:e})}function _r(e){return new xt({check:`overwrite`,tx:e})}function vr(e){return _r(t=>t.normalize(e))}function yr(){return _r(e=>e.trim())}function br(){return _r(e=>e.toLowerCase())}function xr(){return _r(e=>e.toUpperCase())}function Sr(e,t,n){return new e({type:`array`,element:t,...j(n)})}function Cr(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...j(n)})}function wr(e){let t=Tr(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(_e(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(_e(r))}},e(n.value,n)));return t}function Tr(e,t){let n=new ut({check:`custom`,...j(t)});return n._zod.check=e,n}const Er=f(`ZodISODateTime`,(e,t)=>{Lt.init(e,t),N.init(e,t)});function Dr(e){return nr(Er,e)}const Or=f(`ZodISODate`,(e,t)=>{Rt.init(e,t),N.init(e,t)});function kr(e){return rr(Or,e)}const Ar=f(`ZodISOTime`,(e,t)=>{zt.init(e,t),N.init(e,t)});function jr(e){return ir(Ar,e)}const Mr=f(`ZodISODuration`,(e,t)=>{Bt.init(e,t),N.init(e,t)});function Nr(e){return ar(Mr,e)}const Pr=(e,t)=>{ye.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Se(e,t)},flatten:{value:t=>xe(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,v,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,v,2)}},isEmpty:{get(){return e.issues.length===0}}})};f(`ZodError`,Pr);const Fr=f(`ZodError`,Pr,{Parent:Error}),Ir=Ce(Fr),Lr=we(Fr),Rr=Te(Fr),zr=De(Fr),Br=ke(Fr),Vr=Ae(Fr),Hr=je(Fr),Ur=Me(Fr),Wr=Ne(Fr),Gr=Pe(Fr),Kr=Fe(Fr),qr=Ie(Fr),Jr=f(`ZodType`,(e,t)=>(wt.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(T(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>re(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Ir(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Rr(e,t,n),e.parseAsync=async(t,n)=>Lr(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>zr(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Br(e,t,n),e.decode=(t,n)=>Vr(e,t,n),e.encodeAsync=async(t,n)=>Hr(e,t,n),e.decodeAsync=async(t,n)=>Ur(e,t,n),e.safeEncode=(t,n)=>Wr(e,t,n),e.safeDecode=(t,n)=>Gr(e,t,n),e.safeEncodeAsync=async(t,n)=>Kr(e,t,n),e.safeDecodeAsync=async(t,n)=>qr(e,t,n),e.refine=(t,n)=>e.check(Xi(t,n)),e.superRefine=t=>e.check(Zi(t)),e.overwrite=t=>e.check(_r(t)),e.optional=()=>Pi(e),e.nullable=()=>Ii(e),e.nullish=()=>Pi(Ii(e)),e.nonoptional=t=>Hi(e,t),e.array=()=>Si(e),e.or=t=>Ei([e,t]),e.and=t=>Oi(e,t),e.transform=t=>Ki(e,Mi(t)),e.default=t=>Ri(e,t),e.prefault=t=>Bi(e,t),e.catch=t=>Wi(e,t),e.pipe=t=>Ki(e,t),e.readonly=()=>Ji(e),e.describe=t=>{let n=e.clone();return Mn.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return Mn.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Mn.get(e);let n=e.clone();return Mn.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Yr=f(`_ZodString`,(e,t)=>{Tt.init(e,t),Jr.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(dr(...t)),e.includes=(...t)=>e.check(mr(...t)),e.startsWith=(...t)=>e.check(hr(...t)),e.endsWith=(...t)=>e.check(gr(...t)),e.min=(...t)=>e.check(lr(...t)),e.max=(...t)=>e.check(cr(...t)),e.length=(...t)=>e.check(ur(...t)),e.nonempty=(...t)=>e.check(lr(1,...t)),e.lowercase=t=>e.check(fr(t)),e.uppercase=t=>e.check(pr(t)),e.trim=()=>e.check(yr()),e.normalize=(...t)=>e.check(vr(...t)),e.toLowerCase=()=>e.check(br()),e.toUpperCase=()=>e.check(xr())}),Xr=f(`ZodString`,(e,t)=>{Tt.init(e,t),Yr.init(e,t),e.email=t=>e.check(Pn(Qr,t)),e.url=t=>e.check(Bn(ti,t)),e.jwt=t=>e.check(tr(gi,t)),e.emoji=t=>e.check(Vn(ni,t)),e.guid=t=>e.check(Fn($r,t)),e.uuid=t=>e.check(In(ei,t)),e.uuidv4=t=>e.check(Ln(ei,t)),e.uuidv6=t=>e.check(Rn(ei,t)),e.uuidv7=t=>e.check(zn(ei,t)),e.nanoid=t=>e.check(Hn(ri,t)),e.guid=t=>e.check(Fn($r,t)),e.cuid=t=>e.check(Un(ii,t)),e.cuid2=t=>e.check(Wn(ai,t)),e.ulid=t=>e.check(Gn(oi,t)),e.base64=t=>e.check(Qn(pi,t)),e.base64url=t=>e.check($n(mi,t)),e.xid=t=>e.check(Kn(si,t)),e.ksuid=t=>e.check(qn(ci,t)),e.ipv4=t=>e.check(Jn(li,t)),e.ipv6=t=>e.check(Yn(ui,t)),e.cidrv4=t=>e.check(Xn(di,t)),e.cidrv6=t=>e.check(Zn(fi,t)),e.e164=t=>e.check(er(hi,t)),e.datetime=t=>e.check(Dr(t)),e.date=t=>e.check(kr(t)),e.time=t=>e.check(jr(t)),e.duration=t=>e.check(Nr(t))});function Zr(e){return Nn(Xr,e)}const N=f(`ZodStringFormat`,(e,t)=>{M.init(e,t),Yr.init(e,t)}),Qr=f(`ZodEmail`,(e,t)=>{Ot.init(e,t),N.init(e,t)}),$r=f(`ZodGUID`,(e,t)=>{Et.init(e,t),N.init(e,t)}),ei=f(`ZodUUID`,(e,t)=>{Dt.init(e,t),N.init(e,t)}),ti=f(`ZodURL`,(e,t)=>{kt.init(e,t),N.init(e,t)}),ni=f(`ZodEmoji`,(e,t)=>{At.init(e,t),N.init(e,t)}),ri=f(`ZodNanoID`,(e,t)=>{jt.init(e,t),N.init(e,t)}),ii=f(`ZodCUID`,(e,t)=>{Mt.init(e,t),N.init(e,t)}),ai=f(`ZodCUID2`,(e,t)=>{Nt.init(e,t),N.init(e,t)}),oi=f(`ZodULID`,(e,t)=>{Pt.init(e,t),N.init(e,t)}),si=f(`ZodXID`,(e,t)=>{Ft.init(e,t),N.init(e,t)}),ci=f(`ZodKSUID`,(e,t)=>{It.init(e,t),N.init(e,t)}),li=f(`ZodIPv4`,(e,t)=>{Vt.init(e,t),N.init(e,t)}),ui=f(`ZodIPv6`,(e,t)=>{Ht.init(e,t),N.init(e,t)}),di=f(`ZodCIDRv4`,(e,t)=>{Ut.init(e,t),N.init(e,t)}),fi=f(`ZodCIDRv6`,(e,t)=>{Wt.init(e,t),N.init(e,t)}),pi=f(`ZodBase64`,(e,t)=>{Kt.init(e,t),N.init(e,t)}),mi=f(`ZodBase64URL`,(e,t)=>{Jt.init(e,t),N.init(e,t)}),hi=f(`ZodE164`,(e,t)=>{Yt.init(e,t),N.init(e,t)}),gi=f(`ZodJWT`,(e,t)=>{Zt.init(e,t),N.init(e,t)}),_i=f(`ZodUnknown`,(e,t)=>{Qt.init(e,t),Jr.init(e,t)});function vi(){return or(_i)}const yi=f(`ZodNever`,(e,t)=>{$t.init(e,t),Jr.init(e,t)});function bi(e){return sr(yi,e)}const xi=f(`ZodArray`,(e,t)=>{tn.init(e,t),Jr.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(lr(t,n)),e.nonempty=t=>e.check(lr(1,t)),e.max=(t,n)=>e.check(cr(t,n)),e.length=(t,n)=>e.check(ur(t,n)),e.unwrap=()=>e.element});function Si(e,t){return Sr(xi,e,t)}const Ci=f(`ZodObject`,(e,t)=>{sn.init(e,t),Jr.init(e,t),C(e,`shape`,()=>t.shape),e.keyof=()=>Ai(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:vi()}),e.loose=()=>e.clone({...e._zod.def,catchall:vi()}),e.strict=()=>e.clone({...e._zod.def,catchall:bi()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>se(e,t),e.safeExtend=t=>ce(e,t),e.merge=t=>le(e,t),e.pick=t=>ae(e,t),e.omit=t=>oe(e,t),e.partial=(...t)=>ue(Ni,e,t[0]),e.required=(...t)=>de(Vi,e,t[0])});function wi(e,t){return new Ci({type:`object`,shape:e??{},...j(t)})}const Ti=f(`ZodUnion`,(e,t)=>{ln.init(e,t),Jr.init(e,t),e.options=t.options});function Ei(e,t){return new Ti({type:`union`,options:e,...j(t)})}const Di=f(`ZodIntersection`,(e,t)=>{un.init(e,t),Jr.init(e,t)});function Oi(e,t){return new Di({type:`intersection`,left:e,right:t})}const ki=f(`ZodEnum`,(e,t)=>{pn.init(e,t),Jr.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new ki({...t,checks:[],...j(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new ki({...t,checks:[],...j(r),entries:i})}});function Ai(e,t){return new ki({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...j(t)})}const ji=f(`ZodTransform`,(e,t)=>{mn.init(e,t),Jr.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new m(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(_e(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(_e(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Mi(e){return new ji({type:`transform`,transform:e})}const Ni=f(`ZodOptional`,(e,t)=>{gn.init(e,t),Jr.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Pi(e){return new Ni({type:`optional`,innerType:e})}const Fi=f(`ZodNullable`,(e,t)=>{_n.init(e,t),Jr.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ii(e){return new Fi({type:`nullable`,innerType:e})}const Li=f(`ZodDefault`,(e,t)=>{vn.init(e,t),Jr.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ri(e,t){return new Li({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ee(t)}})}const zi=f(`ZodPrefault`,(e,t)=>{bn.init(e,t),Jr.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Bi(e,t){return new zi({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ee(t)}})}const Vi=f(`ZodNonOptional`,(e,t)=>{xn.init(e,t),Jr.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Hi(e,t){return new Vi({type:`nonoptional`,innerType:e,...j(t)})}const Ui=f(`ZodCatch`,(e,t)=>{Cn.init(e,t),Jr.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Wi(e,t){return new Ui({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const Gi=f(`ZodPipe`,(e,t)=>{wn.init(e,t),Jr.init(e,t),e.in=t.in,e.out=t.out});function Ki(e,t){return new Gi({type:`pipe`,in:e,out:t})}const qi=f(`ZodReadonly`,(e,t)=>{En.init(e,t),Jr.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ji(e){return new qi({type:`readonly`,innerType:e})}const Yi=f(`ZodCustom`,(e,t)=>{On.init(e,t),Jr.init(e,t)});function Xi(e,t={}){return Cr(Yi,e,t)}function Zi(e){return wr(e)}const Qi=wi({APP_NAME:Zr().default(`AppOS`),APP_DESC:Zr().default(`The app operating system to build your business.`)});function $i(e){let t={...e},n=new Set;function r(e,i){if(n.has(e))throw Error(`Circular reference detected in environment variable: ${e}`);n.add(e);let a=i.replace(/\{\{([^}]+)\}\}/g,(e,n)=>{let i=n.trim();if(!i)return e;let a=t[i];return a===void 0?e:a.includes(`{{`)?r(i,a):a});return n.delete(e),a}for(let[e,n]of Object.entries(t))n?.includes(`{{`)&&(t[e]=r(e,n));return t}function ea(e){let t=Qi.extend(e.shape),n={};for(let[e,r]of Object.entries(t.shape)){let t=r;for(;t;){let r=t.def;if(r.defaultValue!==void 0){let t=typeof r.defaultValue==`function`?r.defaultValue():r.defaultValue;typeof t==`string`&&(n[e]=t);break}t=r.innerType||r.schema}}let r={...n};for(let[e,t]of Object.entries(process.env))t!==void 0&&(r[e]=t);return t.parse($i(r))}function ta(e){return e}const P=e=>typeof e==`string`,na=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},ra=e=>e==null?``:``+e,ia=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},aa=/###/g,oa=e=>e&&e.indexOf(`###`)>-1?e.replace(aa,`.`):e,sa=e=>!e||P(e),ca=(e,t,n)=>{let r=P(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(sa(e))return{};let t=oa(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return sa(e)?{}:{obj:e,k:oa(r[i])}},la=(e,t,n)=>{let{obj:r,k:i}=ca(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=ca(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=ca(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},ua=(e,t,n,r)=>{let{obj:i,k:a}=ca(e,t,Object);i[a]=i[a]||[],i[a].push(n)},da=(e,t)=>{let{obj:n,k:r}=ca(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},fa=(e,t,n)=>{let r=da(e,n);return r===void 0?da(t,n):r},pa=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?P(e[r])||e[r]instanceof String||P(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):pa(e[r],t[r],n):e[r]=t[r]);return e},ma=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`);var ha={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`};const ga=e=>P(e)?e.replace(/[&<>"'\/]/g,e=>ha[e]):e;var _a=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}};const va=[` `,`,`,`?`,`!`,`;`],ya=new _a(20),ba=(e,t,n)=>{t||=``,n||=``;let r=va.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=ya.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},xa=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Sa=e=>e?.replace(`_`,`-`),Ca={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}};var wa=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||Ca,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(P(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Ta=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},Ea=class extends Ta{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):P(n)&&i?o.push(...n.split(i)):o.push(n)));let s=da(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!P(n)?s:xa(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),la(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(P(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=da(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?pa(s,n,i):s={...s,...n},la(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},Da={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}};const Oa=Symbol(`i18next/PATH_KEY`);function ka(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===Oa?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Aa(e,t){let{[Oa]:n}=e(ka());return n.join(t?.keySeparator??`.`)}const ja={},Ma=e=>!P(e)&&typeof e!=`boolean`&&typeof e!=`number`;var Na=class e extends Ta{constructor(e,t={}){super(),ia([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=wa.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=Ma(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ba(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:P(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:P(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=Aa(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]);let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!P(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=Ma(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(P(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:Ma(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&P(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=P(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!P(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=P(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=Da.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return P(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!P(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(P(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!ja[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(ja[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!P(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},Pa=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=wa.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Sa(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Sa(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(P(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),P(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return P(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):P(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}};const Fa={zero:0,one:1,two:2,few:3,many:4,other:5},Ia={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})};var La=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=wa.create(`pluralResolver`),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Sa(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!Intl)return this.logger.error(`No Intl support, please use an Intl polyfill!`),Ia;if(!e.match(/-|_/))return Ia;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Fa[e]-Fa[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}};const Ra=(e,t,n,r=`.`,i=!0)=>{let a=fa(e,t,n);return!a&&i&&P(n)&&(a=xa(e,n,r),a===void 0&&(a=xa(t,n,r))),a},za=e=>e.replace(/\$/g,`$$$$`);var Ba=class{constructor(e={}){this.logger=wa.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?ga:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?ma(i):a||`{{`,this.suffix=o?ma(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?ma(d):f||ma(`$t(`),this.nestingSuffix=p?ma(p):m||ma(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=Ra(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(Ra(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>za(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?za(this.escape(e)):za(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=P(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !P(a)&&!this.useRawValueToEscape&&(a=ra(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!P(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!P(i))return i;P(i)||(i=ra(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}};const Va=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Ha=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Sa(r),i),t[o]=s),s(n)}},Ua=e=>(t,n,r)=>e(Sa(n),r)(t);var Wa=class{constructor(e={}){this.logger=wa.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Ha:Ua;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ha(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Va(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}};const Ga=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};var Ka=class extends Ta{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=wa.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{ua(n.loaded,[i],a),Ga(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();P(e)&&(e=this.languageUtils.toResolveHierarchy(e)),P(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}};const qa=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),P(e[1])&&(t.defaultValue=e[1]),P(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ja=e=>(P(e.ns)&&(e.ns=[e.ns]),P(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),P(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),Ya=()=>{},Xa=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Za=class e extends Ta{constructor(e={},t){if(super(),this.options=Ja(e),this.services={},this.logger=wa,this.modules={external:[]},Xa(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(P(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=qa();this.options={...n,...this.options,...Ja(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?wa.init(r(this.modules.logger),this.options):wa.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Wa;let t=new Pa(this.options);this.store=new Ea(this.options.resources,this.options);let i=this.services;i.logger=wa,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new La(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new Ba(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Ka(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Na(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=Ya,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=na(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Ya){let n=t,r=P(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=na();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Ya,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&Da.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=na();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=P(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(P(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o=this.options.keySeparator||`.`,s;return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>(typeof e==`function`&&(e=Aa(e,{...this.options,...t})),`${a.keyPrefix}${o}${e}`)):(typeof e==`function`&&(e=Aa(e,{...this.options,...t})),s=a.keyPrefix?`${a.keyPrefix}${o}${e}`:e),this.t(s,a)};return P(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=na();return this.options.ns?(P(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=na();P(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new Pa(qa());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Ya){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Ea(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),a.translator=new Na(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance(),Qa=Za.createInstance;Za.dir,Za.init,Za.loadResources,Za.reloadResources,Za.use,Za.changeLanguage,Za.getFixedT,Za.t,Za.exists,Za.setDefaultNamespace,Za.hasLoadedNamespace,Za.loadNamespaces,Za.loadLanguages;var $a=[],eo=$a.forEach,to=$a.slice;function no(e){return eo.call(to.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function ro(e,t,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||e.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,t),s&&e.apply(i,a)}}function io(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}for(var i=typeof t==`string`?t.split(`.`):[].concat(t);i.length>1;){if(!e)return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return e?{obj:e,k:r(i.shift())}:{}}function ao(e,t,n){var r=io(e,t,Object),i=r.obj,a=r.k;if(Array.isArray(i)&&isNaN(a))throw Error(`Cannot create property "${a}" here since object is an array`);i[a]=n}function oo(e,t,n,r){var i=io(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],r&&(a[o]=a[o].concat(n)),r||a[o].push(n)}function so(e,t){var n=io(e,t),r=n.obj,i=n.k;if(r)return r[i]}function co(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=lo(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
21
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function lo(e,t){if(e){if(typeof e==`string`)return uo(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uo(e,t):void 0}}function uo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fo(e){"@babel/helpers - typeof";return fo=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},fo(e)}var po={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},F={isSpaceSeparator:function(e){return typeof e==`string`&&po.Space_Separator.test(e)},isIdStartChar:function(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`$`||e===`_`||po.ID_Start.test(e))},isIdContinueChar:function(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e>=`0`&&e<=`9`||e===`$`||e===`_`||e===`‌`||e===`‍`||po.ID_Continue.test(e))},isDigit:function(e){return typeof e==`string`&&/[0-9]/.test(e)},isHexDigit:function(e){return typeof e==`string`&&/[0-9A-Fa-f]/.test(e)}},mo,ho,go,_o,vo,yo,bo,xo,So,Co=function(e,t){mo=String(e),ho=`start`,go=[],_o=0,vo=1,yo=0,bo=void 0,xo=void 0,So=void 0;do bo=Do(),Po[ho]();while(bo.type!==`eof`);return typeof t==`function`?wo({"":So},``,t):So};function wo(e,t,n){var r=e[t];if(r!=null&&fo(r)===`object`)if(Array.isArray(r))for(var i=0;i<r.length;i++){var a=String(i),o=wo(r,a,n);o===void 0?delete r[a]:Object.defineProperty(r,a,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(var s in r){var c=wo(r,s,n);c===void 0?delete r[s]:Object.defineProperty(r,s,{value:c,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,r)}var I,L,To,Eo,R;function Do(){for(I=`default`,L=``,To=!1,Eo=1;;){R=Oo();var e=ko[I]();if(e)return e}}function Oo(){if(mo[_o])return String.fromCodePoint(mo.codePointAt(_o))}function z(){var e=Oo();return e===`
22
- `?(vo++,yo=0):e?yo+=e.length:yo++,e&&(_o+=e.length),e}var ko={default:function(){switch(R){case` `:case`\v`:case`\f`:case` `:case`\xA0`:case``:case`
23
- `:case`\r`:case`\u2028`:case`\u2029`:z();return;case`/`:z(),I=`comment`;return;case void 0:return z(),B(`eof`)}if(F.isSpaceSeparator(R)){z();return}return ko[ho]()},comment:function(){switch(R){case`*`:z(),I=`multiLineComment`;return;case`/`:z(),I=`singleLineComment`;return}throw V(z())},multiLineComment:function(){switch(R){case`*`:z(),I=`multiLineCommentAsterisk`;return;case void 0:throw V(z())}z()},multiLineCommentAsterisk:function(){switch(R){case`*`:z();return;case`/`:z(),I=`default`;return;case void 0:throw V(z())}z(),I=`multiLineComment`},singleLineComment:function(){switch(R){case`
24
- `:case`\r`:case`\u2028`:case`\u2029`:z(),I=`default`;return;case void 0:return z(),B(`eof`)}z()},value:function(){switch(R){case`{`:case`[`:return B(`punctuator`,z());case`n`:return z(),Ao(`ull`),B(`null`,null);case`t`:return z(),Ao(`rue`),B(`boolean`,!0);case`f`:return z(),Ao(`alse`),B(`boolean`,!1);case`-`:case`+`:z()===`-`&&(Eo=-1),I=`sign`;return;case`.`:L=z(),I=`decimalPointLeading`;return;case`0`:L=z(),I=`zero`;return;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:L=z(),I=`decimalInteger`;return;case`I`:return z(),Ao(`nfinity`),B(`numeric`,1/0);case`N`:return z(),Ao(`aN`),B(`numeric`,NaN);case`"`:case`'`:To=z()===`"`,L=``,I=`string`;return}throw V(z())},identifierNameStartEscape:function(){if(R!==`u`)throw V(z());z();var e=No();switch(e){case`$`:case`_`:break;default:if(!F.isIdStartChar(e))throw Ro();break}L+=e,I=`identifierName`},identifierName:function(){switch(R){case`$`:case`_`:case`‌`:case`‍`:L+=z();return;case`\\`:z(),I=`identifierNameEscape`;return}if(F.isIdContinueChar(R)){L+=z();return}return B(`identifier`,L)},identifierNameEscape:function(){if(R!==`u`)throw V(z());z();var e=No();switch(e){case`$`:case`_`:case`‌`:case`‍`:break;default:if(!F.isIdContinueChar(e))throw Ro();break}L+=e,I=`identifierName`},sign:function(){switch(R){case`.`:L=z(),I=`decimalPointLeading`;return;case`0`:L=z(),I=`zero`;return;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:L=z(),I=`decimalInteger`;return;case`I`:return z(),Ao(`nfinity`),B(`numeric`,Eo*(1/0));case`N`:return z(),Ao(`aN`),B(`numeric`,NaN)}throw V(z())},zero:function(){switch(R){case`.`:L+=z(),I=`decimalPoint`;return;case`e`:case`E`:L+=z(),I=`decimalExponent`;return;case`x`:case`X`:L+=z(),I=`hexadecimal`;return}return B(`numeric`,Eo*0)},decimalInteger:function(){switch(R){case`.`:L+=z(),I=`decimalPoint`;return;case`e`:case`E`:L+=z(),I=`decimalExponent`;return}if(F.isDigit(R)){L+=z();return}return B(`numeric`,Eo*Number(L))},decimalPointLeading:function(){if(F.isDigit(R)){L+=z(),I=`decimalFraction`;return}throw V(z())},decimalPoint:function(){switch(R){case`e`:case`E`:L+=z(),I=`decimalExponent`;return}if(F.isDigit(R)){L+=z(),I=`decimalFraction`;return}return B(`numeric`,Eo*Number(L))},decimalFraction:function(){switch(R){case`e`:case`E`:L+=z(),I=`decimalExponent`;return}if(F.isDigit(R)){L+=z();return}return B(`numeric`,Eo*Number(L))},decimalExponent:function(){switch(R){case`+`:case`-`:L+=z(),I=`decimalExponentSign`;return}if(F.isDigit(R)){L+=z(),I=`decimalExponentInteger`;return}throw V(z())},decimalExponentSign:function(){if(F.isDigit(R)){L+=z(),I=`decimalExponentInteger`;return}throw V(z())},decimalExponentInteger:function(){if(F.isDigit(R)){L+=z();return}return B(`numeric`,Eo*Number(L))},hexadecimal:function(){if(F.isHexDigit(R)){L+=z(),I=`hexadecimalInteger`;return}throw V(z())},hexadecimalInteger:function(){if(F.isHexDigit(R)){L+=z();return}return B(`numeric`,Eo*Number(L))},string:function(){switch(R){case`\\`:z(),L+=jo();return;case`"`:if(To)return z(),B(`string`,L);L+=z();return;case`'`:if(!To)return z(),B(`string`,L);L+=z();return;case`
25
- `:case`\r`:throw V(z());case`\u2028`:case`\u2029`:zo(R);break;case void 0:throw V(z())}L+=z()},start:function(){switch(R){case`{`:case`[`:return B(`punctuator`,z())}I=`value`},beforePropertyName:function(){switch(R){case`$`:case`_`:L=z(),I=`identifierName`;return;case`\\`:z(),I=`identifierNameStartEscape`;return;case`}`:return B(`punctuator`,z());case`"`:case`'`:To=z()===`"`,I=`string`;return}if(F.isIdStartChar(R)){L+=z(),I=`identifierName`;return}throw V(z())},afterPropertyName:function(){if(R===`:`)return B(`punctuator`,z());throw V(z())},beforePropertyValue:function(){I=`value`},afterPropertyValue:function(){switch(R){case`,`:case`}`:return B(`punctuator`,z())}throw V(z())},beforeArrayValue:function(){if(R===`]`)return B(`punctuator`,z());I=`value`},afterArrayValue:function(){switch(R){case`,`:case`]`:return B(`punctuator`,z())}throw V(z())},end:function(){throw V(z())}};function B(e,t){return{type:e,value:t,line:vo,column:yo}}function Ao(e){var t=co(e),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(Oo()!==r)throw V(z());z()}}catch(e){t.e(e)}finally{t.f()}}function jo(){switch(Oo()){case`b`:return z(),`\b`;case`f`:return z(),`\f`;case`n`:return z(),`
26
- `;case`r`:return z(),`\r`;case`t`:return z(),` `;case`v`:return z(),`\v`;case`0`:if(z(),F.isDigit(Oo()))throw V(z());return`\0`;case`x`:return z(),Mo();case`u`:return z(),No();case`
27
- `:case`\u2028`:case`\u2029`:return z(),``;case`\r`:return z(),Oo()===`
28
- `&&z(),``;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:throw V(z());case void 0:throw V(z())}return z()}function Mo(){var e=``,t=Oo();if(!F.isHexDigit(t)||(e+=z(),t=Oo(),!F.isHexDigit(t)))throw V(z());return e+=z(),String.fromCodePoint(parseInt(e,16))}function No(){for(var e=``,t=4;t-- >0;){var n=Oo();if(!F.isHexDigit(n))throw V(z());e+=z()}return String.fromCodePoint(parseInt(e,16))}var Po={start:function(){if(bo.type===`eof`)throw Lo();Fo()},beforePropertyName:function(){switch(bo.type){case`identifier`:case`string`:xo=bo.value,ho=`afterPropertyName`;return;case`punctuator`:Io();return;case`eof`:throw Lo()}},afterPropertyName:function(){if(bo.type===`eof`)throw Lo();ho=`beforePropertyValue`},beforePropertyValue:function(){if(bo.type===`eof`)throw Lo();Fo()},beforeArrayValue:function(){if(bo.type===`eof`)throw Lo();if(bo.type===`punctuator`&&bo.value===`]`){Io();return}Fo()},afterPropertyValue:function(){if(bo.type===`eof`)throw Lo();switch(bo.value){case`,`:ho=`beforePropertyName`;return;case`}`:Io()}},afterArrayValue:function(){if(bo.type===`eof`)throw Lo();switch(bo.value){case`,`:ho=`beforeArrayValue`;return;case`]`:Io()}},end:function(){}};function Fo(){var e;switch(bo.type){case`punctuator`:switch(bo.value){case`{`:e={};break;case`[`:e=[];break}break;case`null`:case`boolean`:case`numeric`:case`string`:e=bo.value;break}if(So===void 0)So=e;else{var t=go[go.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,xo,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&fo(e)===`object`)go.push(e),ho=Array.isArray(e)?`beforeArrayValue`:`beforePropertyName`;else{var n=go[go.length-1];ho=n==null?`end`:Array.isArray(n)?`afterArrayValue`:`afterPropertyValue`}}function Io(){go.pop();var e=go[go.length-1];ho=e==null?`end`:Array.isArray(e)?`afterArrayValue`:`afterPropertyValue`}function V(e){return Vo(e===void 0?`JSON5: invalid end of input at ${vo}:${yo}`:`JSON5: invalid character '${Bo(e)}' at ${vo}:${yo}`)}function Lo(){return Vo(`JSON5: invalid end of input at ${vo}:${yo}`)}function Ro(){return yo-=5,Vo(`JSON5: invalid identifier character at ${vo}:${yo}`)}function zo(e){console.warn(`JSON5: '${Bo(e)}' in strings is not valid ECMAScript; consider escaping`)}function Bo(e){var t={"'":`\\'`,'"':`\\"`,"\\":`\\\\`,"\b":`\\b`,"\f":`\\f`,"\n":`\\n`,"\r":`\\r`," ":`\\t`,"\v":`\\v`,"\0":`\\0`,"\u2028":`\\u2028`,"\u2029":`\\u2029`};if(t[e])return t[e];if(e<` `){var n=e.charCodeAt(0).toString(16);return`\\x`+(`00`+n).substring(n.length)}return e}function Vo(e){var t=SyntaxError(e);return t.lineNumber=vo,t.columnNumber=yo,t}var Ho={parse:Co,stringify:function(e,t,n){var r=[],i=``,a,o,s=``,c;if(t!=null&&fo(t)===`object`&&!Array.isArray(t)&&(n=t.space,c=t.quote,t=t.replacer),typeof t==`function`)o=t;else if(Array.isArray(t)){a=[];var l=co(t),u;try{for(l.s();!(u=l.n()).done;){var d=u.value,f=void 0;typeof d==`string`?f=d:(typeof d==`number`||d instanceof String||d instanceof Number)&&(f=String(d)),f!==void 0&&a.indexOf(f)<0&&a.push(f)}}catch(e){l.e(e)}finally{l.f()}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n==`number`?n>0&&(n=Math.min(10,Math.floor(n)),s=` `.substr(0,n)):typeof n==`string`&&(s=n.substr(0,10)),p(``,{"":e});function p(e,t){var n=t[e];switch(n!=null&&(typeof n.toJSON5==`function`?n=n.toJSON5(e):typeof n.toJSON==`function`&&(n=n.toJSON(e))),o&&(n=o.call(t,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return`null`;case!0:return`true`;case!1:return`false`}if(typeof n==`string`)return m(n,!1);if(typeof n==`number`)return String(n);if(fo(n)===`object`)return Array.isArray(n)?_(n):h(n)}function m(e){for(var t={"'":.1,'"':.2},n={"'":`\\'`,'"':`\\"`,"\\":`\\\\`,"\b":`\\b`,"\f":`\\f`,"\n":`\\n`,"\r":`\\r`," ":`\\t`,"\v":`\\v`,"\0":`\\0`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},r=``,i=0;i<e.length;i++){var a=e[i];switch(a){case`'`:case`"`:t[a]++,r+=a;continue;case`\0`:if(F.isDigit(e[i+1])){r+=`\\x00`;continue}}if(n[a]){r+=n[a];continue}if(a<` `){var o=a.charCodeAt(0).toString(16);r+=`\\x`+(`00`+o).substring(o.length);continue}r+=a}var s=c||Object.keys(t).reduce(function(e,n){return t[e]<t[n]?e:n});return r=r.replace(new RegExp(s,`g`),n[s]),s+r+s}function h(e){if(r.indexOf(e)>=0)throw TypeError(`Converting circular structure to JSON5`);r.push(e);var t=i;i+=s;var n=a||Object.keys(e),o=[],c=co(n),l;try{for(c.s();!(l=c.n()).done;){var u=l.value,d=p(u,e);if(d!==void 0){var f=g(u)+`:`;s!==``&&(f+=` `),f+=d,o.push(f)}}}catch(e){c.e(e)}finally{c.f()}var m;if(o.length===0)m=`{}`;else{var h;if(s===``)h=o.join(`,`),m=`{`+h+`}`;else{var _=`,
29
- `+i;h=o.join(_),m=`{
30
- `+i+h+`,
31
- `+t+`}`}}return r.pop(),i=t,m}function g(e){if(e.length===0)return m(e,!0);var t=String.fromCodePoint(e.codePointAt(0));if(!F.isIdStartChar(t))return m(e,!0);for(var n=t.length;n<e.length;n++)if(!F.isIdContinueChar(String.fromCodePoint(e.codePointAt(n))))return m(e,!0);return e}function _(e){if(r.indexOf(e)>=0)throw TypeError(`Converting circular structure to JSON5`);r.push(e);var t=i;i+=s;for(var n=[],a=0;a<e.length;a++){var o=p(String(a),e);n.push(o===void 0?`null`:o)}var c;if(n.length===0)c=`[]`;else if(s===``)c=`[`+n.join(`,`)+`]`;else{var l=`,
32
- `+i,u=n.join(l);c=`[
33
- `+i+u+`,
34
- `+t+`]`}return r.pop(),i=t,c}}};function Uo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.length,r=0,i=``,a=0,o=16,s=0,c=0,l=0,u=0,d=0;function f(t,n){for(var i=0,a=0;i<t||!n;){var o=e.charCodeAt(r);if(o>=48&&o<=57)a=a*16+o-48;else if(o>=65&&o<=70)a=a*16+o-65+10;else if(o>=97&&o<=102)a=a*16+o-97+10;else break;r++,i++}return i<t&&(a=-1),a}function p(e){r=e,i=``,a=0,o=16,d=0}function m(){var t=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Ko(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Ko(e.charCodeAt(r)))for(r++;r<e.length&&Ko(e.charCodeAt(r));)r++;else return d=3,e.substring(t,r);var n=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Ko(e.charCodeAt(r))){for(r++;r<e.length&&Ko(e.charCodeAt(r));)r++;n=r}else d=3;return e.substring(t,n)}function h(){for(var t=``,i=r;;){if(r>=n){t+=e.substring(i,r),d=2;break}var a=e.charCodeAt(r);if(a===34){t+=e.substring(i,r),r++;break}if(a===92){if(t+=e.substring(i,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:t+=`"`;break;case 92:t+=`\\`;break;case 47:t+=`/`;break;case 98:t+=`\b`;break;case 102:t+=`\f`;break;case 110:t+=`
35
- `;break;case 114:t+=`\r`;break;case 116:t+=` `;break;case 117:var o=f(4,!0);o>=0?t+=String.fromCharCode(o):d=4;break;default:d=5}i=r;continue}if(a>=0&&a<=31)if(Go(a)){t+=e.substring(i,r),d=2;break}else d=6;r++}return t}function g(){if(i=``,d=0,a=r,c=s,u=l,r>=n)return a=n,o=17;var t=e.charCodeAt(r);if(Wo(t)){do r++,i+=String.fromCharCode(t),t=e.charCodeAt(r);while(Wo(t));return o=15}if(Go(t))return r++,i+=String.fromCharCode(t),t===13&&e.charCodeAt(r)===10&&(r++,i+=`
36
- `),s++,l=r,o=14;switch(t){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=h(),o=10;case 47:var f=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Go(e.charCodeAt(r));)r++;return i=e.substring(f,r),o=12}if(e.charCodeAt(r+1)===42){r+=2;for(var p=n-1,g=!1;r<p;){var v=e.charCodeAt(r);if(v===42&&e.charCodeAt(r+1)===47){r+=2,g=!0;break}r++,Go(v)&&(v===13&&e.charCodeAt(r)===10&&r++,s++,l=r)}return g||(r++,d=1),i=e.substring(f,r),o=13}return i+=String.fromCharCode(t),r++,o=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!Ko(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=m(),o=11;default:for(;r<n&&_(t);)r++,t=e.charCodeAt(r);if(a!==r){switch(i=e.substring(a,r),i){case`true`:return o=8;case`false`:return o=9;case`null`:return o=7}return o=16}return i+=String.fromCharCode(t),r++,o=16}}function _(e){if(Wo(e)||Go(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function v(){var e;do e=g();while(e>=12&&e<=15);return e}return{setPosition:p,getPosition:function(){return r},scan:t?v:g,getToken:function(){return o},getTokenValue:function(){return i},getTokenOffset:function(){return a},getTokenLength:function(){return r-a},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return a-u},getTokenError:function(){return d}}}function Wo(e){return e===32||e===9}function Go(e){return e===10||e===13}function Ko(e){return e>=48&&e<=57}var qo;(function(e){e[e.lineFeed=10]=`lineFeed`,e[e.carriageReturn=13]=`carriageReturn`,e[e.space=32]=`space`,e[e._0=48]=`_0`,e[e._1=49]=`_1`,e[e._2=50]=`_2`,e[e._3=51]=`_3`,e[e._4=52]=`_4`,e[e._5=53]=`_5`,e[e._6=54]=`_6`,e[e._7=55]=`_7`,e[e._8=56]=`_8`,e[e._9=57]=`_9`,e[e.a=97]=`a`,e[e.b=98]=`b`,e[e.c=99]=`c`,e[e.d=100]=`d`,e[e.e=101]=`e`,e[e.f=102]=`f`,e[e.g=103]=`g`,e[e.h=104]=`h`,e[e.i=105]=`i`,e[e.j=106]=`j`,e[e.k=107]=`k`,e[e.l=108]=`l`,e[e.m=109]=`m`,e[e.n=110]=`n`,e[e.o=111]=`o`,e[e.p=112]=`p`,e[e.q=113]=`q`,e[e.r=114]=`r`,e[e.s=115]=`s`,e[e.t=116]=`t`,e[e.u=117]=`u`,e[e.v=118]=`v`,e[e.w=119]=`w`,e[e.x=120]=`x`,e[e.y=121]=`y`,e[e.z=122]=`z`,e[e.A=65]=`A`,e[e.B=66]=`B`,e[e.C=67]=`C`,e[e.D=68]=`D`,e[e.E=69]=`E`,e[e.F=70]=`F`,e[e.G=71]=`G`,e[e.H=72]=`H`,e[e.I=73]=`I`,e[e.J=74]=`J`,e[e.K=75]=`K`,e[e.L=76]=`L`,e[e.M=77]=`M`,e[e.N=78]=`N`,e[e.O=79]=`O`,e[e.P=80]=`P`,e[e.Q=81]=`Q`,e[e.R=82]=`R`,e[e.S=83]=`S`,e[e.T=84]=`T`,e[e.U=85]=`U`,e[e.V=86]=`V`,e[e.W=87]=`W`,e[e.X=88]=`X`,e[e.Y=89]=`Y`,e[e.Z=90]=`Z`,e[e.asterisk=42]=`asterisk`,e[e.backslash=92]=`backslash`,e[e.closeBrace=125]=`closeBrace`,e[e.closeBracket=93]=`closeBracket`,e[e.colon=58]=`colon`,e[e.comma=44]=`comma`,e[e.dot=46]=`dot`,e[e.doubleQuote=34]=`doubleQuote`,e[e.minus=45]=`minus`,e[e.openBrace=123]=`openBrace`,e[e.openBracket=91]=`openBracket`,e[e.plus=43]=`plus`,e[e.slash=47]=`slash`,e[e.formFeed=12]=`formFeed`,e[e.tab=9]=`tab`})(qo||={}),Array(20).fill(0).map(function(e,t){return` `.repeat(t)});var Jo=200;Array(Jo).fill(0).map(function(e,t){return`
37
- `+` `.repeat(t)}),Array(Jo).fill(0).map(function(e,t){return`\r`+` `.repeat(t)}),Array(Jo).fill(0).map(function(e,t){return`\r
38
- `+` `.repeat(t)}),Array(Jo).fill(0).map(function(e,t){return`
39
- `+` `.repeat(t)}),Array(Jo).fill(0).map(function(e,t){return`\r`+` `.repeat(t)}),Array(Jo).fill(0).map(function(e,t){return`\r
40
- `+` `.repeat(t)});var Yo;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Yo||={});function Xo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yo.DEFAULT,r=null,i=[],a=[];function o(e){Array.isArray(i)?i.push(e):r!==null&&(i[r]=e)}return Zo(e,{onObjectBegin:function(){var e={};o(e),a.push(i),i=e,r=null},onObjectProperty:function(e){r=e},onObjectEnd:function(){i=a.pop()},onArrayBegin:function(){var e=[];o(e),a.push(i),i=e,r=null},onArrayEnd:function(){i=a.pop()},onLiteralValue:o,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),i[0]}function Zo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yo.DEFAULT,r=Uo(e,!1),i=[],a=0;function o(e){return e?function(){return a===0&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function s(e){return e?function(t){return a===0&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function c(e){return e?function(t){return a===0&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),function(){return i.slice()})}:function(){return!0}}function l(e){return e?function(){a>0?a++:e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),function(){return i.slice()})===!1&&(a=1)}:function(){return!0}}function u(e){return e?function(){a>0&&a--,a===0&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var d=l(t.onObjectBegin),f=c(t.onObjectProperty),p=u(t.onObjectEnd),m=l(t.onArrayBegin),h=u(t.onArrayEnd),g=c(t.onLiteralValue),_=s(t.onSeparator),v=o(t.onComment),y=s(t.onError),b=n&&n.disallowComments,x=n&&n.allowTrailingComma;function S(){for(;;){var e=r.scan();switch(r.getTokenError()){case 4:C(14);break;case 5:C(15);break;case 3:C(13);break;case 1:b||C(11);break;case 2:C(12);break;case 6:C(16);break}switch(e){case 12:case 13:b?C(10):v();break;case 16:C(1);break;case 15:case 14:break;default:return e}}}function C(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(y(e),t.length+n.length>0)for(var i=r.getToken();i!==17;){if(t.indexOf(i)!==-1){S();break}else if(n.indexOf(i)!==-1)break;i=S()}}function w(e){var t=r.getTokenValue();return e?g(t):(f(t),i.push(t)),S(),!0}function T(){switch(r.getToken()){case 11:var e=r.getTokenValue(),t=Number(e);isNaN(t)&&(C(2),t=0),g(t);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return S(),!0}function E(){return r.getToken()===10?(w(!1),r.getToken()===6?(_(`:`),S(),k()||C(4,[],[2,5])):C(5,[],[2,5]),i.pop(),!0):(C(3,[],[2,5]),!1)}function D(){d(),S();for(var e=!1;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(e||C(4,[],[]),_(`,`),S(),r.getToken()===2&&x)break}else e&&C(6,[],[]);E()||C(4,[],[2,5]),e=!0}return p(),r.getToken()===2?S():C(7,[2],[]),!0}function O(){m(),S();for(var e=!0,t=!1;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(t||C(4,[],[]),_(`,`),S(),r.getToken()===4&&x)break}else t&&C(6,[],[]);e?(i.push(0),e=!1):i[i.length-1]++,k()||C(4,[],[4,5]),t=!0}return h(),e||i.pop(),r.getToken()===4?S():C(8,[4],[]),!0}function k(){switch(r.getToken()){case 3:return O();case 1:return D();case 10:return w(!0);default:return T()}}return S(),r.getToken()===17?n.allowEmptyContent?!0:(C(4,[],[]),!1):k()?(r.getToken()!==17&&C(9,[],[]),!0):(C(4,[],[]),!1)}var Qo;(function(e){e[e.None=0]=`None`,e[e.UnexpectedEndOfComment=1]=`UnexpectedEndOfComment`,e[e.UnexpectedEndOfString=2]=`UnexpectedEndOfString`,e[e.UnexpectedEndOfNumber=3]=`UnexpectedEndOfNumber`,e[e.InvalidUnicode=4]=`InvalidUnicode`,e[e.InvalidEscapeCharacter=5]=`InvalidEscapeCharacter`,e[e.InvalidCharacter=6]=`InvalidCharacter`})(Qo||={});var $o;(function(e){e[e.OpenBraceToken=1]=`OpenBraceToken`,e[e.CloseBraceToken=2]=`CloseBraceToken`,e[e.OpenBracketToken=3]=`OpenBracketToken`,e[e.CloseBracketToken=4]=`CloseBracketToken`,e[e.CommaToken=5]=`CommaToken`,e[e.ColonToken=6]=`ColonToken`,e[e.NullKeyword=7]=`NullKeyword`,e[e.TrueKeyword=8]=`TrueKeyword`,e[e.FalseKeyword=9]=`FalseKeyword`,e[e.StringLiteral=10]=`StringLiteral`,e[e.NumericLiteral=11]=`NumericLiteral`,e[e.LineCommentTrivia=12]=`LineCommentTrivia`,e[e.BlockCommentTrivia=13]=`BlockCommentTrivia`,e[e.LineBreakTrivia=14]=`LineBreakTrivia`,e[e.Trivia=15]=`Trivia`,e[e.Unknown=16]=`Unknown`,e[e.EOF=17]=`EOF`})($o||={});var es=Xo,ts;(function(e){e[e.InvalidSymbol=1]=`InvalidSymbol`,e[e.InvalidNumberFormat=2]=`InvalidNumberFormat`,e[e.PropertyNameExpected=3]=`PropertyNameExpected`,e[e.ValueExpected=4]=`ValueExpected`,e[e.ColonExpected=5]=`ColonExpected`,e[e.CommaExpected=6]=`CommaExpected`,e[e.CloseBraceExpected=7]=`CloseBraceExpected`,e[e.CloseBracketExpected=8]=`CloseBracketExpected`,e[e.EndOfFileExpected=9]=`EndOfFileExpected`,e[e.InvalidCommentToken=10]=`InvalidCommentToken`,e[e.UnexpectedEndOfComment=11]=`UnexpectedEndOfComment`,e[e.UnexpectedEndOfString=12]=`UnexpectedEndOfString`,e[e.UnexpectedEndOfNumber=13]=`UnexpectedEndOfNumber`,e[e.InvalidUnicode=14]=`InvalidUnicode`,e[e.InvalidEscapeCharacter=15]=`InvalidEscapeCharacter`,e[e.InvalidCharacter=16]=`InvalidCharacter`})(ts||={});function ns(e){"@babel/helpers - typeof";return ns=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ns(e)}
41
- /*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
42
- function rs(e){return e==null}function is(e){return ns(e)===`object`&&e!==null}function as(e){return Array.isArray(e)?e:rs(e)?[]:[e]}function os(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function ss(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function cs(e){return e===0&&1/e==-1/0}var ls={isNothing:rs,isObject:is,toArray:as,repeat:ss,isNegativeZero:cs,extend:os};function us(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
43
-
44
- `+e.mark.snippet),r+` `+n):r}function ds(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=us(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}ds.prototype=Object.create(Error.prototype),ds.prototype.constructor=ds,ds.prototype.toString=function(e){return this.name+`: `+us(this,e)};var fs=ds;function ps(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function ms(e,t){return ls.repeat(` `,t-e.length)+e}function hs(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s=``,c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=ps(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=ls.repeat(` `,t.indent)+ms((e.line-c+1).toString(),u)+` | `+l.str+`
45
- `+s;for(l=ps(e.buffer,r[o],i[o],e.position,d),s+=ls.repeat(` `,t.indent)+ms((e.line+1).toString(),u)+` | `+l.str+`
46
- `,s+=ls.repeat(`-`,t.indent+u+3+l.pos)+`^
47
- `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=ps(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=ls.repeat(` `,t.indent)+ms((e.line+c+1).toString(),u)+` | `+l.str+`
48
- `;return s.replace(/\n$/,``)}var gs=hs,_s=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],vs=[`scalar`,`sequence`,`mapping`];function ys(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function bs(e,t){if(t||={},Object.keys(t).forEach(function(t){if(_s.indexOf(t)===-1)throw new fs(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=ys(t.styleAliases||null),vs.indexOf(this.kind)===-1)throw new fs(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var xs=bs;function Ss(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function Cs(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function ws(e){return this.extend(e)}ws.prototype.extend=function(e){var t=[],n=[];if(e instanceof xs)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new fs(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof xs))throw new fs(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new fs(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new fs(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof xs))throw new fs(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(ws.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=Ss(r,`implicit`),r.compiledExplicit=Ss(r,`explicit`),r.compiledTypeMap=Cs(r.compiledImplicit,r.compiledExplicit),r};var Ts=ws,Es=new xs(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),Ds=new xs(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),Os=new xs(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}}),ks=new Ts({explicit:[Es,Ds,Os]});function As(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function js(){return null}function Ms(e){return e===null}var Ns=new xs(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:As,construct:js,predicate:Ms,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`});function Ps(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function Fs(e){return e===`true`||e===`True`||e===`TRUE`}function Is(e){return Object.prototype.toString.call(e)===`[object Boolean]`}var Ls=new xs(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:Ps,construct:Fs,predicate:Is,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`});function Rs(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function zs(e){return 48<=e&&e<=55}function Bs(e){return 48<=e&&e<=57}function Vs(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!Rs(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!zs(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!Bs(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}function Hs(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function Us(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!ls.isNegativeZero(e)}var Ws=new xs(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:Vs,construct:Hs,predicate:Us,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),Gs=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function Ks(e){return!(e===null||!Gs.test(e)||e[e.length-1]===`_`)}function qs(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var Js=/^[-+]?[0-9]+e/;function Ys(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(ls.isNegativeZero(e))return`-0.0`;return n=e.toString(10),Js.test(n)?n.replace(`e`,`.e`):n}function Xs(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||ls.isNegativeZero(e))}var Zs=new xs(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:Ks,construct:qs,predicate:Xs,represent:Ys,defaultStyle:`lowercase`}),Qs=ks.extend({implicit:[Ns,Ls,Ws,Zs]}),$s=Qs,ec=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),tc=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function nc(e){return e===null?!1:ec.exec(e)!==null||tc.exec(e)!==null}function rc(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=ec.exec(e),t===null&&(t=tc.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}function ic(e){return e.toISOString()}var ac=new xs(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:nc,construct:rc,instanceOf:Date,represent:ic});function oc(e){return e===`<<`||e===null}var sc=new xs(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:oc}),cc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
49
- \r`;function lc(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=cc;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function uc(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=cc,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function dc(e){var t=``,n=0,r,i,a=e.length,o=cc;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function fc(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var pc=new xs(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:lc,construct:uc,predicate:fc,represent:dc}),mc=Object.prototype.hasOwnProperty,hc=Object.prototype.toString;function gc(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,hc.call(i)!==`[object Object]`)return!1;for(a in i)if(mc.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function _c(e){return e===null?[]:e}var vc=new xs(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:gc,construct:_c}),yc=Object.prototype.toString;function bc(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],yc.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function xc(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var Sc=new xs(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:bc,construct:xc}),Cc=Object.prototype.hasOwnProperty;function wc(e){if(e===null)return!0;var t,n=e;for(t in n)if(Cc.call(n,t)&&n[t]!==null)return!1;return!0}function Tc(e){return e===null?{}:e}var Ec=new xs(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:wc,construct:Tc}),Dc=$s.extend({implicit:[ac,sc],explicit:[pc,vc,Sc,Ec]}),Oc=Object.prototype.hasOwnProperty,kc=1,Ac=2,jc=3,Mc=4,Nc=1,Pc=2,Fc=3,Ic=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Lc=/[\x85\u2028\u2029]/,Rc=/[,\[\]\{\}]/,zc=/^(?:!|!!|![a-z\-]+!)$/i,Bc=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Vc(e){return Object.prototype.toString.call(e)}function Hc(e){return e===10||e===13}function Uc(e){return e===9||e===32}function Wc(e){return e===9||e===32||e===10||e===13}function Gc(e){return e===44||e===91||e===93||e===123||e===125}function Kc(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function qc(e){return e===120?2:e===117?4:e===85?8:0}function Jc(e){return 48<=e&&e<=57?e-48:-1}function Yc(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
50
- `:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`…`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function Xc(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Zc(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var Qc=Array(256),$c=Array(256),el=0;el<256;el++)Qc[el]=Yc(el)?1:0,$c[el]=Yc(el);function tl(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Dc,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function nl(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=gs(n),new fs(t,n)}function H(e,t){throw nl(e,t)}function rl(e,t){e.onWarning&&e.onWarning.call(null,nl(e,t))}var il={YAML:function(e,t,n){var r,i,a;e.version!==null&&H(e,`duplication of %YAML directive`),n.length!==1&&H(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&H(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&H(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&rl(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&H(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],zc.test(r)||H(e,`ill-formed tag handle (first argument) of the TAG directive`),Oc.call(e.tagMap,r)&&H(e,`there is a previously declared suffix for "`+r+`" tag handle`),Bc.test(i)||H(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{H(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function al(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||H(e,`expected valid JSON character`);else Ic.test(s)&&H(e,`the stream contains non-printable characters`);e.result+=s}}function ol(e,t,n,r){var i,a,o,s;for(ls.isObject(n)||H(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],Oc.call(t,a)||(Zc(t,a,n[a]),r[a]=!0)}function sl(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&H(e,`nested arrays are not supported inside keys`),ns(i)===`object`&&Vc(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(ns(i)===`object`&&Vc(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)ol(e,t,a[l],n);else ol(e,t,a,n);else !e.json&&!Oc.call(n,i)&&Oc.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,H(e,`duplicated mapping key`)),Zc(t,i,a),delete n[i];return t}function cl(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):H(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function U(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Uc(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Hc(i))for(cl(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&rl(e,`deficient indentation`),r}function ll(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||Wc(n)))}function ul(e,t){t===1?e.result+=` `:t>1&&(e.result+=ls.repeat(`
51
- `,t-1))}function dl(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(Wc(p)||Gc(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),Wc(i)||n&&Gc(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),Wc(i)||n&&Gc(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Wc(r))break}else if(e.position===e.lineStart&&ll(e)||n&&Gc(p))break;else if(Hc(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,U(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(al(e,a,o,!1),ul(e,e.line-c),a=o=e.position,!1),Uc(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return al(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function fl(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(al(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else Hc(n)?(al(e,r,i,!0),ul(e,U(e,!1,t)),r=i=e.position):e.position===e.lineStart&&ll(e)?H(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);H(e,`unexpected end of the stream within a single quoted scalar`)}function pl(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return al(e,n,e.position,!0),e.position++,!0;else if(s===92){if(al(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),Hc(s))U(e,!1,t);else if(s<256&&Qc[s])e.result+=$c[s],e.position++;else if((o=qc(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=Kc(s))>=0?a=(a<<4)+o:H(e,`expected hexadecimal character`);e.result+=Xc(a),e.position++}else H(e,`unknown escape sequence`);n=r=e.position}else Hc(s)?(al(e,n,r,!0),ul(e,U(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ll(e)?H(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);H(e,`unexpected end of the stream within a double quoted scalar`)}function ml(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(U(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&H(e,`expected the node content, but found ','`):H(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),Wc(l)&&(d=f=!0,e.position++,U(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,xl(e,t,kc,!1,!0),g=e.tag,h=e.result,U(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),U(e,!0,t),xl(e,t,kc,!1,!0),_=e.result),p?sl(e,s,m,g,h,_,r,i,a):d?s.push(sl(e,null,m,g,h,_,r,i,a)):s.push(h),U(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}H(e,`unexpected end of the stream within a flow collection`)}function hl(e,t){var n,r,i=Nc,a=!1,o=!1,s=t,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Nc===i?i=d===43?Fc:Pc:H(e,`repeat of a chomping mode identifier`);else if((u=Jc(d))>=0)u===0?H(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?H(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(Uc(d)){do d=e.input.charCodeAt(++e.position);while(Uc(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!Hc(d)&&d!==0)}for(;d!==0;){for(cl(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),Hc(d)){c++;continue}if(e.lineIndent<s){i===Fc?e.result+=ls.repeat(`
52
- `,a?1+c:c):i===Nc&&a&&(e.result+=`
53
- `);break}for(r?Uc(d)?(l=!0,e.result+=ls.repeat(`
54
- `,a?1+c:c)):l?(l=!1,e.result+=ls.repeat(`
55
- `,c+1)):c===0?a&&(e.result+=` `):e.result+=ls.repeat(`
56
- `,c):e.result+=ls.repeat(`
57
- `,a?1+c:c),a=!0,o=!0,c=0,n=e.position;!Hc(d)&&d!==0;)d=e.input.charCodeAt(++e.position);al(e,n,e.position,!1)}return!0}function gl(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,H(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!Wc(o))));){if(s=!0,e.position++,U(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,xl(e,t,jc,!1,!0),a.push(e.result),U(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)H(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind=`sequence`,e.result=a,!0):!1}function _l(e,t,n){var r,i,a,o,s,c,l=e.tag,u=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,H(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&Wc(r))v===63?(g&&(sl(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):H(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=r;else{if(o=e.line,s=e.lineStart,c=e.position,!xl(e,n,Ac,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);Uc(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),Wc(v)||H(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(sl(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!1,i=!1,p=e.tag,m=e.result;else if(_)H(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)H(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=l,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,c=e.position),xl(e,t,Mc,!0,i)&&(g?m=e.result:h=e.result),g||(sl(e,d,f,p,m,h,o,s,c),p=m=h=null),U(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)H(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&sl(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}function vl(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&H(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i=`!!`,o=e.input.charCodeAt(++e.position)):i=`!`,t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):H(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!Wc(o);)o===33&&(r?H(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),zc.test(i)||H(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),Rc.test(a)&&H(e,`tag suffix cannot contain flow indicator characters`)}a&&!Bc.test(a)&&H(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{H(e,`tag name is malformed: `+a)}return n?e.tag=a:Oc.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:H(e,`undeclared tag handle "`+i+`"`),!0}function yl(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&H(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Wc(n)&&!Gc(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&H(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}function bl(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Wc(r)&&!Gc(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&H(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),Oc.call(e.anchorMap,n)||H(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],U(e,!0,-1),!0}function xl(e,t,n,r,i){var a,o,s,c=1,l=!1,u=!1,d,f,p,m,h,g;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=Mc===n||jc===n,r&&U(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;vl(e)||yl(e);)U(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&=l||i,(c===1||Mc===n)&&(h=kc===n||Ac===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(gl(e,g)||_l(e,g,h))||ml(e,h)?u=!0:(o&&hl(e,h)||fl(e,h)||pl(e,h)?u=!0:bl(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&H(e,`alias node should not have any properties`)):dl(e,h,kc===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&gl(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&H(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d<f;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(Oc.call(e.typeMap[e.kind||`fallback`],e.tag))m=e.typeMap[e.kind||`fallback`][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||`fallback`],d=0,f=p.length;d<f;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||H(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&H(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):H(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}function Sl(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(U(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Wc(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&H(e,`directive name must not be less than one character in length`);o!==0;){for(;Uc(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Hc(o));break}if(Hc(o))break;for(n=e.position;o!==0&&!Wc(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&cl(e),Oc.call(il,r)?il[r](e,r,i):rl(e,`unknown document directive "`+r+`"`)}if(U(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,U(e,!0,-1)):a&&H(e,`directives end mark is expected`),xl(e,e.lineIndent-1,Mc,!1,!0),U(e,!0,-1),e.checkLineBreaks&&Lc.test(e.input.slice(t,e.position))&&rl(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&ll(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,U(e,!0,-1));return}if(e.position<e.length-1)H(e,`end of the stream or a document separator is expected`);else return}function Cl(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
58
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new tl(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,H(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Sl(n);return n.documents}function wl(e,t,n){t!==null&&ns(t)===`object`&&n===void 0&&(n=t,t=null);var r=Cl(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function Tl(e,t){var n=Cl(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new fs(`expected a single document in the stream, but found more`)}}var El={loadAll:wl,load:Tl},Dl=Object.prototype.toString,Ol=Object.prototype.hasOwnProperty,kl=65279,Al=9,jl=10,Ml=13,Nl=32,Pl=33,Fl=34,Il=35,Ll=37,Rl=38,zl=39,Bl=42,Vl=44,Hl=45,Ul=58,Wl=61,Gl=62,Kl=63,ql=64,Jl=91,Yl=93,Xl=96,Zl=123,Ql=124,$l=125,eu={};eu[0]=`\\0`,eu[7]=`\\a`,eu[8]=`\\b`,eu[9]=`\\t`,eu[10]=`\\n`,eu[11]=`\\v`,eu[12]=`\\f`,eu[13]=`\\r`,eu[27]=`\\e`,eu[34]=`\\"`,eu[92]=`\\\\`,eu[133]=`\\N`,eu[160]=`\\_`,eu[8232]=`\\L`,eu[8233]=`\\P`;var tu=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],nu=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ru(e,t){var n,r,i,a,o,s,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&Ol.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}function iu(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new fs(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+ls.repeat(`0`,r-t.length)+t}var au=1,ou=2;function su(e){this.schema=e.schema||Dc,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ls.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=ru(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?ou:au,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function cu(e,t){for(var n=ls.repeat(` `,t),r=0,i=-1,a=``,o,s=e.length;r<s;)i=e.indexOf(`
59
- `,r),i===-1?(o=e.slice(r),r=s):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
60
- `&&(a+=n),a+=o;return a}function lu(e,t){return`
61
- `+ls.repeat(` `,e.indent*t)}function uu(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function du(e){return e===Nl||e===Al}function fu(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==kl||65536<=e&&e<=1114111}function pu(e){return fu(e)&&e!==kl&&e!==Ml&&e!==jl}function mu(e,t,n){var r=pu(e),i=r&&!du(e);return(n?r:r&&e!==Vl&&e!==Jl&&e!==Yl&&e!==Zl&&e!==$l)&&e!==Il&&!(t===Ul&&!i)||pu(t)&&!du(t)&&e===Il||t===Ul&&i}function hu(e){return fu(e)&&e!==kl&&!du(e)&&e!==Hl&&e!==Kl&&e!==Ul&&e!==Vl&&e!==Jl&&e!==Yl&&e!==Zl&&e!==$l&&e!==Il&&e!==Rl&&e!==Bl&&e!==Pl&&e!==Ql&&e!==Wl&&e!==Gl&&e!==zl&&e!==Fl&&e!==Ll&&e!==ql&&e!==Xl}function gu(e){return!du(e)&&e!==Ul}function _u(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function vu(e){return/^\n* /.test(e)}var yu=1,bu=2,xu=3,Su=4,Cu=5;function wu(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=hu(_u(e,0))&&gu(_u(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=_u(e,c),!fu(l))return Cu;h&&=mu(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=_u(e,c),l===jl)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!fu(l))return Cu;h&&=mu(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?yu:a===ou?Cu:bu:n>9&&vu(e)?Cu:o?a===ou?Cu:bu:f?Su:xu}function Tu(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===ou?`""`:`''`;if(!e.noCompatMode&&(tu.indexOf(t)!==-1||nu.test(t)))return e.quotingType===ou?`"`+t+`"`:`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return uu(e,t)}switch(wu(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case yu:return t;case bu:return`'`+t.replace(/'/g,`''`)+`'`;case xu:return`|`+Eu(t,e.indent)+Du(cu(t,a));case Su:return`>`+Eu(t,e.indent)+Du(cu(Ou(t,o),a));case Cu:return`"`+Au(t)+`"`;default:throw new fs(`impossible error: invalid scalar style`)}}()}function Eu(e,t){var n=vu(e)?String(t):``,r=e[e.length-1]===`
62
- `;return n+(r&&(e[e.length-2]===`
63
- `||e===`
64
- `)?`+`:r?``:`-`)+`
65
- `}function Du(e){return e[e.length-1]===`
66
- `?e.slice(0,-1):e}function Ou(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(`
67
- `);return r=r===-1?e.length:r,n.lastIndex=r,ku(e.slice(0,r),t)}(),i=e[0]===`
68
- `||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?`
69
- `:``)+ku(c,t),i=a}return r}function ku(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
70
- `+e.slice(i,a),i=a+1),o=s;return c+=`
71
- `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
72
- `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Au(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=_u(e,i),r=eu[n],!r&&fu(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||iu(n);return t}function ju(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(Iu(e,t,s,!1,!1)||s===void 0&&Iu(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}function Mu(e,t,n,r){var i=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(Iu(e,t+1,c,!0,!0,!1,!0)||c===void 0&&Iu(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=lu(e,t)),e.dump&&jl===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}function Nu(e,t,n){var r=``,i=e.tag,a=Object.keys(n),o,s,c,l,u;for(o=0,s=a.length;o<s;o+=1)u=``,r!==``&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),Iu(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),Iu(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function Pu(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,u,d,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new fs(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)f=``,(!r||i!==``)&&(f+=lu(e,t)),l=o[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),Iu(e,t+1,l,!0,!0,!0)&&(d=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,d&&(e.dump&&jl===e.dump.charCodeAt(0)?f+=`?`:f+=`? `),f+=e.dump,d&&(f+=lu(e,t)),Iu(e,t+1,u,!0,d)&&(e.dump&&jl===e.dump.charCodeAt(0)?f+=`:`:f+=`: `,f+=e.dump,i+=f));e.tag=a,e.dump=i||`{}`}function Fu(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||ns(t)===`object`&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag=`?`,s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,Dl.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(Ol.call(s.represent,c))r=s.represent[c](t,c);else throw new fs(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}function Iu(e,t,n,r,i,a,o){e.tag=null,e.dump=n,Fu(e,n,!1)||Fu(e,n,!0);var s=Dl.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var u=s===`[object Object]`||s===`[object Array]`,d,f;if(u&&(d=e.duplicates.indexOf(n),f=d!==-1),(e.tag!==null&&e.tag!==`?`||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[d])e.dump=`*ref_`+d;else{if(u&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(Pu(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(Nu(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Mu(e,t-1,e.dump,i):Mu(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(ju(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&Tu(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new fs(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}function Lu(e,t){var n=[],r=[],i,a;for(Ru(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}function Ru(e,t,n){var r,i,a;if(e!==null&&ns(e)===`object`)if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)Ru(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)Ru(e[r[i]],t,n)}function zu(e,t){t||={};var n=new su(t);n.noRefs||Lu(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),Iu(n,0,r,!0,!0)?n.dump+`
73
- `:``}var Bu={dump:zu};function Vu(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}var Hu={Type:xs,Schema:Ts,FAILSAFE_SCHEMA:ks,JSON_SCHEMA:Qs,CORE_SCHEMA:$s,DEFAULT_SCHEMA:Dc,load:El.load,loadAll:El.loadAll,dump:Bu.dump,YAMLException:fs,types:{binary:pc,float:Zs,map:Os,null:Ns,pairs:Sc,set:Ec,timestamp:ac,bool:Ls,int:Ws,merge:sc,omap:vc,seq:Ds,str:Es},safeLoad:Vu(`safeLoad`,`load`),safeLoadAll:Vu(`safeLoadAll`,`loadAll`),safeDump:Vu(`safeDump`,`dump`)},Uu=(function(e){if(!(e.indexOf(`.`)<0))return`.${e.split(`.`).pop()}`}),Wu=typeof Deno<`u`,Gu=typeof Bun<`u`,Ku=Hu!==void 0&&Hu.load?Hu:void 0,qu=Wu?void 0:(await import(`node:fs`)).default,Ju=eval,Yu=function(e){var t=qu.readFileSync(e,`utf8`),n;try{n=qu.statSync(e)}catch{}return{data:t,stat:n}},Xu=function(e){return new Promise(function(t,n){qu.readFile(e,`utf8`,function(r,i){if(r)return n(r);qu.stat(e,function(e,n){return t(e?{data:i}:{data:i,stat:n})})})})},Zu=function(e){var t=new TextDecoder(`utf-8`),n=Deno.readFileSync(e),r=t.decode(n),i;try{i=Deno.statSync(e)}catch{}return{data:r,stat:i}},Qu=function(e){return new Promise(function(t,n){var r=new TextDecoder(`utf-8`);Deno.readFile(e).then(function(n){var i=r.decode(n);Deno.stat(e).then(function(e){return t({data:i,stat:e})}).catch(function(){return t({data:i})})}).catch(n)})},$u=Yu,ed=Xu,td=function(e,t,n){var r=e.lastIndexOf(t);return r>-1?e.substring(0,r)+n+e.substring(r+t.length):e.toString()},nd=function(e,t,n){t=t.replace(/^\uFEFF/,``);var r={};switch(e){case`.js`:case`.ts`:typeof module>`u`&&(t.indexOf(`exports`)>-1?t=`(${td(t.substring(t.indexOf(`=`)+1),`};`,``)})`:t.indexOf(`export default `)>-1&&(t=`(${td(t.substring(t.indexOf(`export default `)+15),`};`,``)})`)),r=Ju(t);break;case`.json5`:r=Ho.parse(t);break;case`.jsonc`:r=es(t);break;case`.yml`:case`.yaml`:r=Ku.load(t);break;default:r=n.parse(t)}return r};function rd(e,t){var n=Uu(e),r,i;if(Gu){var a=$u(e);r=a.data,i=a.stat}else if(Wu){var o=Zu(e);r=o.data,i=o.stat}else{var s=Yu(e);r=s.data,i=s.stat}return{data:nd(n,r,t),stat:i}}function id(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{parse:JSON.parse},n=Uu(e),r=Gu?ed:Wu?Qu:Xu;return new Promise(function(i,a){r(e).then(function(r){var o=r.data,s=r.stat;try{i({data:nd(n,o,t),stat:s})}catch(t){t.message=`error parsing `+e+`: `+t.message,a(t)}}).catch(a)})}var ad=typeof Deno<`u`,od=typeof Bun<`u`,sd=Hu!==void 0&&Hu.load?Hu:void 0,cd=ad?void 0:(await import(`node:fs`)).default;function ld(e){if(e.length===0)return`.`;for(var t=e.charCodeAt(0),n=t===47,r=-1,i=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!i){r=a;break}}else i=!1;return r===-1?n?`/`:`.`:n&&r===1?`//`:e.slice(0,r)}var ud=function(e,t){return new Promise(function(n,r){cd.mkdir(ld(e),{recursive:!0},function(){cd.writeFile(e,t,`utf8`,function(e,t){return e?r(e):n(t)})})})},dd=function(e){return new Promise(function(t,n){return cd.unlink(e,function(e){return e?n(e):t()})})},fd=function(e,t){var n=new TextEncoder().encode(t);return new Promise(function(t,r){Deno.mkdir(ld(e),{recursive:!0}).then(function(){Deno.writeFile(e,n).then(t,r)}).catch(function(){Deno.writeFile(e,n).then(t,r)})})},pd=function(e){return Deno.remove(e)},md=ud,hd=dd,gd=function(e,t,n){var r=``;switch(e){case`.js`:case`.ts`:r=typeof module>`u`?`export default ${n.stringify(t,null,n.ident)}`:`module.exports = ${n.stringify(t,null,n.ident)}`;break;case`.json5`:r=Ho.stringify(t,null,n.ident);break;case`.yml`:case`.yaml`:r=sd.dump(t,{ident:n.indent});break;default:r=n.stringify(t,null,n.ident)}return r};function _d(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{stringify:JSON.stringify,ident:2},r=Uu(e),i;try{i=gd(r,t,n)}catch(t){throw t.message=`error stringifying `+e+`: `+t.message,t}return(od?md:ad?fd:ud)(e,i)}function vd(e){return(od?hd:ad?pd:dd)(e)}function yd(e){"@babel/helpers - typeof";return yd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yd(e)}function bd(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function xd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Cd(r.key),r)}}function Sd(e,t,n){return t&&xd(e.prototype,t),n&&xd(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Cd(e){var t=wd(e,`string`);return yd(t)==`symbol`?t:t+``}function wd(e,t){if(yd(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yd(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Td=function(){return{loadPath:`/locales/{{lng}}/{{ns}}.json`,addPath:`/locales/{{lng}}/{{ns}}.missing.json`,ident:2,parse:JSON.parse,stringify:JSON.stringify}},Ed=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};bd(this,e),this.services=t,this.options=n,this.allOptions=r,this.type=`backend`,this.init(t,n,r)}return Sd(e,[{key:`init`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=no(t,this.options||{},Td()),this.allOptions=n,this.queuedWrites={},this.debouncedWrite=ro(this.write,250)}},{key:`read`,value:function(e,t,n){var r=this,i=this.options.loadPath;typeof this.options.loadPath==`function`&&(i=this.options.loadPath(e,t));var a=this.services.interpolator.interpolate(i,{lng:e,ns:t});if(this.allOptions.initAsync===!1||this.allOptions.initImmediate===!1){try{var o=rd(a,this.options),s=o.data,c=o.stat,l=c&&c.mtime&&c.mtime.getTime();if(this.options.expirationTime&&l&&l+this.options.expirationTime<Date.now())return this.removeFile(e,t),n(Error(`File expired!`),!1);n(null,s,l)}catch(e){n(e,!1)}return}id(a,this.options).then(function(i){var a=i.data,o=i.stat,s=o&&o.mtime&&o.mtime.getTime();if(r.options.expirationTime&&s&&s+r.options.expirationTime<Date.now())return r.removeFile(e,t),n(Error(`File expired!`),!1);n(null,a,s)}).catch(function(e){return n(e,!1)})}},{key:`create`,value:function(e,t,n,r,i){var a=this;typeof i!=`function`&&(i=function(){}),typeof e==`string`&&(e=[e]);var o=e.length,s=function(){--o||i()};e.forEach(function(e){a.queue.call(a,e,t,n,r,s)})}},{key:`save`,value:function(e,t,n,r){var i=this;r||=function(){};var a=Object.keys(n),o=a.length,s=function(){--o||r()};a.forEach(function(r){i.queue.call(i,e,t,r,n[r],s)})}},{key:`removeFile`,value:function(e,t){var n=this.options.addPath;typeof this.options.addPath==`function`&&(n=this.options.addPath(e,t)),vd(this.services.interpolator.interpolate(n,{lng:e,ns:t}),this.options).then(function(){}).catch(function(){})}},{key:`write`,value:function(){for(var e in this.queuedWrites){var t=this.queuedWrites[e];if(e!==`locks`)for(var n in t)this.writeFile(e,n)}}},{key:`writeFile`,value:function(e,t){var n=this;if(!so(this.queuedWrites,[`locks`,e,t])){var r=this.options.addPath;typeof this.options.addPath==`function`&&(r=this.options.addPath(e,t));var i=this.services.interpolator.interpolate(r,{lng:e,ns:t}),a=so(this.queuedWrites,[e,t]);if(ao(this.queuedWrites,[e,t],[]),a.length){ao(this.queuedWrites,[`locks`,e,t],!0);var o=function(r){var o=r.data;a.forEach(function(e){var t=n.allOptions.keySeparator===!1?[e.key]:e.key.split(n.allOptions.keySeparator||`.`);try{ao(o,t,e.fallbackValue)}catch(n){if(t.length<2||!n.message||n.message.indexOf(`Cannot create property`)<0)throw n;ao(o,[e.key],e.fallbackValue)}});var s=function(){ao(n.queuedWrites,[`locks`,e,t],!1),a.forEach(function(e){e.callback&&e.callback()}),n.debouncedWrite()};_d(i,o,n.options).then(s).catch(s)};id(i,this.options).then(o).catch(function(){return o({data:{}})})}}}},{key:`queue`,value:function(e,t,n,r,i){oo(this.queuedWrites,[e,t],{key:n,fallbackValue:r||``,callback:i}),this.debouncedWrite()}}])}();Ed.type=`backend`;var Dd=Ed;const Od=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,kd={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},Ad=e=>kd[e];let jd={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(Od,Ad)};const Md=(e={})=>{jd={...jd,...e}},Nd={type:`3rdParty`,init(e){Md(e.options.react)}};async function Pd(e){let t=l(`appos`,`public`,`locales`),n=Qa();return process.env.NODE_ENV!==`production`&&c(t,{recursive:!0},async(t,r)=>{await n.reloadResources(e.supportedLngs||[])}).unref(),await n.use(Dd).use(Nd).init({...e,backend:{loadPath:`${t}/{{lng}}/{{ns}}.json`},initAsync:!1,preload:s(t).filter(e=>o(l(t,e)).isDirectory())}),n}var Fd=n(((e,t)=>{let n=e=>e&&typeof e.message==`string`,r=e=>{if(!e)return;let t=e.cause;if(typeof t==`function`){let t=e.cause();return n(t)?t:void 0}else return n(t)?t:void 0},i=(e,t)=>{if(!n(e))return``;let a=e.stack||``;if(t.has(e))return a+`
74
- causes have become circular...`;let o=r(e);return o?(t.add(e),a+`
75
- caused by: `+i(o,t)):a},a=e=>i(e,new Set),o=(e,t,i)=>{if(!n(e))return``;let a=i?``:e.message||``;if(t.has(e))return a+`: ...`;let s=r(e);if(s){t.add(e);let n=typeof e.cause==`function`;return a+(n?``:`: `)+o(s,t,n)}else return a};t.exports={isErrorLike:n,getErrorCause:r,stackWithCauses:a,messageWithCauses:e=>o(e,new Set)}})),Id=n(((e,t)=>{let n=Symbol(`circular-ref-tag`),r=Symbol(`pino-raw-err-ref`),i=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[r]},set:function(e){this[r]=e}}});Object.defineProperty(i,r,{writable:!0,value:{}}),t.exports={pinoErrProto:i,pinoErrorSymbols:{seen:n,rawSymbol:r}}})),Ld=n(((e,t)=>{t.exports=l;let{messageWithCauses:n,stackWithCauses:r,isErrorLike:i}=Fd(),{pinoErrProto:a,pinoErrorSymbols:o}=Id(),{seen:s}=o,{toString:c}=Object.prototype;function l(e){if(!i(e))return e;e[s]=void 0;let t=Object.create(a);for(let a in t.type=c.call(e.constructor)===`[object Function]`?e.constructor.name:e.name,t.message=n(e),t.stack=r(e),Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(e=>l(e))),e)if(t[a]===void 0){let n=e[a];i(n)?a!==`cause`&&!Object.prototype.hasOwnProperty.call(n,s)&&(t[a]=l(n)):t[a]=n}return delete e[s],t.raw=e,t}})),Rd=n(((e,t)=>{t.exports=s;let{isErrorLike:n}=Fd(),{pinoErrProto:r,pinoErrorSymbols:i}=Id(),{seen:a}=i,{toString:o}=Object.prototype;function s(e){if(!n(e))return e;e[a]=void 0;let t=Object.create(r);for(let r in t.type=o.call(e.constructor)===`[object Function]`?e.constructor.name:e.name,t.message=e.message,t.stack=e.stack,Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(e=>s(e))),n(e.cause)&&!Object.prototype.hasOwnProperty.call(e.cause,a)&&(t.cause=s(e.cause)),e)if(t[r]===void 0){let i=e[r];n(i)?Object.prototype.hasOwnProperty.call(i,a)||(t[r]=s(i)):t[r]=i}return delete e[a],t.raw=e,t}})),zd=n(((e,t)=>{t.exports={mapHttpRequest:a,reqSerializer:i};let n=Symbol(`pino-raw-req-ref`),r=Object.create({},{id:{enumerable:!0,writable:!0,value:``},method:{enumerable:!0,writable:!0,value:``},url:{enumerable:!0,writable:!0,value:``},query:{enumerable:!0,writable:!0,value:``},params:{enumerable:!0,writable:!0,value:``},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:``},remotePort:{enumerable:!0,writable:!0,value:``},raw:{enumerable:!1,get:function(){return this[n]},set:function(e){this[n]=e}}});Object.defineProperty(r,n,{writable:!0,value:{}});function i(e){let t=e.info||e.socket,n=Object.create(r);if(n.id=typeof e.id==`function`?e.id():e.id||(e.info?e.info.id:void 0),n.method=e.method,e.originalUrl)n.url=e.originalUrl;else{let t=e.path;n.url=typeof t==`string`?t:e.url?e.url.path||e.url:void 0}return e.query&&(n.query=e.query),e.params&&(n.params=e.params),n.headers=e.headers,n.remoteAddress=t&&t.remoteAddress,n.remotePort=t&&t.remotePort,n.raw=e.raw||e,n}function a(e){return{req:i(e)}}})),Bd=n(((e,t)=>{t.exports={mapHttpResponse:a,resSerializer:i};let n=Symbol(`pino-raw-res-ref`),r=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:``},raw:{enumerable:!1,get:function(){return this[n]},set:function(e){this[n]=e}}});Object.defineProperty(r,n,{writable:!0,value:{}});function i(e){let t=Object.create(r);return t.statusCode=e.headersSent?e.statusCode:null,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}function a(e){return{res:i(e)}}})),Vd=n(((e,t)=>{let n=Ld(),r=Rd(),i=zd(),a=Bd();t.exports={err:n,errWithCause:r,mapHttpRequest:i.mapHttpRequest,mapHttpResponse:a.mapHttpResponse,req:i.reqSerializer,res:a.resSerializer,wrapErrorSerializer:function(e){return e===n?e:function(t){return e(n(t))}},wrapRequestSerializer:function(e){return e===i.reqSerializer?e:function(t){return e(i.reqSerializer(t))}},wrapResponseSerializer:function(e){return e===a.resSerializer?e:function(t){return e(a.resSerializer(t))}}}})),Hd=n(((e,t)=>{function n(e,t){return t}t.exports=function(){let e=Error.prepareStackTrace;Error.prepareStackTrace=n;let t=Error().stack;if(Error.prepareStackTrace=e,!Array.isArray(t))return;let r=t.slice(2),i=[];for(let e of r)e&&i.push(e.getFileName());return i}})),Ud=n(((e,t)=>{function n(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array){let t=[];for(let r=0;r<e.length;r++)t[r]=n(e[r]);return t}if(typeof e==`object`){let t=Object.create(Object.getPrototypeOf(e));for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=n(e[r]));return t}return e}function r(e){let t=[],n=``,r=!1,i=!1,a=``;for(let o=0;o<e.length;o++){let s=e[o];!r&&s===`.`?n&&=(t.push(n),``):s===`[`?(n&&=(t.push(n),``),r=!0):s===`]`&&r?(t.push(n),n=``,r=!1,i=!1):(s===`"`||s===`'`)&&r?i?s===a?(i=!1,a=``):n+=s:(i=!0,a=s):n+=s}return n&&t.push(n),t}function i(e,t,n){let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(typeof r!=`object`||!r||!(n in r)||typeof r[n]!=`object`||r[n]===null)return!1;r=r[n]}let i=t[t.length-1];if(i===`*`){if(Array.isArray(r))for(let e=0;e<r.length;e++)r[e]=n;else if(typeof r==`object`&&r)for(let e in r)Object.prototype.hasOwnProperty.call(r,e)&&(r[e]=n)}else typeof r==`object`&&r&&i in r&&Object.prototype.hasOwnProperty.call(r,i)&&(r[i]=n);return!0}function a(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(typeof n!=`object`||!n||!(r in n)||typeof n[r]!=`object`||n[r]===null)return!1;n=n[r]}let r=t[t.length-1];if(r===`*`){if(Array.isArray(n))for(let e=0;e<n.length;e++)n[e]=void 0;else if(typeof n==`object`&&n)for(let e in n)Object.prototype.hasOwnProperty.call(n,e)&&delete n[e]}else typeof n==`object`&&n&&r in n&&Object.prototype.hasOwnProperty.call(n,r)&&delete n[r];return!0}let o=Symbol(`PATH_NOT_FOUND`);function s(e,t){let n=e;for(let e of t){if(typeof n!=`object`||!n||!n||!(e in n))return o;n=n[e]}return n}function c(e,t){let n=e;for(let e of t){if(typeof n!=`object`||!n||!n)return;n=n[e]}return n}function l(e,t,n,c=!1){for(let l of t){let t=r(l);if(t.includes(`*`))u(e,t,n,l,c);else if(c)a(e,t);else{let r=s(e,t);if(r===o)continue;i(e,t,typeof n==`function`?n(r,t):n)}}}function u(e,t,n,r,i=!1){let a=t.indexOf(`*`);if(a===t.length-1){let r=t.slice(0,-1),a=e;for(let e of r){if(typeof a!=`object`||!a||!a)return;a=a[e]}if(Array.isArray(a))if(i)for(let e=0;e<a.length;e++)a[e]=void 0;else for(let e=0;e<a.length;e++){let t=[...r,e.toString()];a[e]=typeof n==`function`?n(a[e],t):n}else if(typeof a==`object`&&a)if(i){let e=[];for(let t in a)Object.prototype.hasOwnProperty.call(a,t)&&e.push(t);for(let t of e)delete a[t]}else for(let e in a){let t=[...r,e];a[e]=typeof n==`function`?n(a[e],t):n}}else d(e,t,n,a,r,i)}function d(e,t,n,r,o,s=!1){let l=t.slice(0,r),d=t.slice(r+1),f=[];function p(e,t){if(t===l.length){if(Array.isArray(e))for(let n=0;n<e.length;n++)f[t]=n.toString(),p(e[n],t+1);else if(typeof e==`object`&&e)for(let n in e)f[t]=n,p(e[n],t+1)}else if(t<l.length){let n=l[t];e&&typeof e==`object`&&e&&n in e&&(f[t]=n,p(e[n],t+1))}else d.includes(`*`)?u(e,d,typeof n==`function`?(e,r)=>n(e,[...f.slice(0,t),...r]):n,o,s):s?a(e,d):i(e,d,typeof n==`function`?n(c(e,d),[...f.slice(0,t),...d]):n)}if(l.length===0)p(e,0);else{let t=e;for(let e=0;e<l.length;e++){let n=l[e];if(typeof t!=`object`||!t||!t)return;t=t[n],f[e]=n}t!=null&&p(t,l.length)}}function f(e){if(e.length===0)return null;let t=new Map;for(let n of e){let e=r(n),i=t;for(let t=0;t<e.length;t++){let n=e[t];i.has(n)||i.set(n,new Map),i=i.get(n)}}return t}function p(e,t){if(!t)return e;function n(e,t,r=0){if(!t||t.size===0||typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e)){let r=[];for(let i=0;i<e.length;i++){let a=i.toString();t.has(a)||t.has(`*`)?r[i]=n(e[i],t.get(a)||t.get(`*`)):r[i]=e[i]}return r}let i=Object.create(Object.getPrototypeOf(e));for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t.has(r)||t.has(`*`)?i[r]=n(e[r],t.get(r)||t.get(`*`)):i[r]=e[r]);return i}return n(e,t)}function m(e){if(typeof e!=`string`)throw Error(`Paths must be (non-empty) strings`);if(e===``)throw Error(`Invalid redaction path ()`);if(e.includes(`..`)||e.includes(`,`))throw Error(`Invalid redaction path (${e})`);let t=0,n=!1,r=``;for(let i=0;i<e.length;i++){let a=e[i];if((a===`"`||a===`'`)&&t>0)n?a===r&&(n=!1,r=``):(n=!0,r=a);else if(a===`[`&&!n)t++;else if(a===`]`&&!n&&(t--,t<0))throw Error(`Invalid redaction path (${e})`)}if(t!==0)throw Error(`Invalid redaction path (${e})`)}function h(e){if(!Array.isArray(e))throw TypeError(`paths must be an array`);for(let t of e)m(t)}function g(e={}){let{paths:t=[],censor:r=`[REDACTED]`,serialize:i=JSON.stringify,strict:a=!0,remove:o=!1}=e;h(t);let s=f(t);return function(e){if(a&&(typeof e!=`object`||!e)&&(typeof e!=`object`||!e))return i?i(e):e;let c=p(e,s),u=e,d=r;return typeof r==`function`&&(d=r),l(c,t,d,o),i===!1?(c.restore=function(){return n(u)},c):typeof i==`function`?i(c):JSON.stringify(c)}}t.exports=g})),Wd=n(((e,t)=>{let n=Symbol(`pino.setLevel`),r=Symbol(`pino.getLevel`),i=Symbol(`pino.levelVal`),a=Symbol(`pino.levelComp`),o=Symbol(`pino.useLevelLabels`),s=Symbol(`pino.useOnlyCustomLevels`),c=Symbol(`pino.mixin`),l=Symbol(`pino.lsCache`),u=Symbol(`pino.chindings`),d=Symbol(`pino.asJson`),f=Symbol(`pino.write`),p=Symbol(`pino.redactFmt`),m=Symbol(`pino.time`),h=Symbol(`pino.timeSliceIndex`),g=Symbol(`pino.stream`),_=Symbol(`pino.stringify`),v=Symbol(`pino.stringifySafe`),y=Symbol(`pino.stringifiers`),b=Symbol(`pino.end`),x=Symbol(`pino.formatOpts`),S=Symbol(`pino.messageKey`),C=Symbol(`pino.errorKey`),w=Symbol(`pino.nestedKey`),T=Symbol(`pino.nestedKeyStr`),E=Symbol(`pino.mixinMergeStrategy`),D=Symbol(`pino.msgPrefix`),O=Symbol(`pino.wildcardFirst`),k=Symbol.for(`pino.serializers`),A=Symbol.for(`pino.formatters`),ee=Symbol.for(`pino.hooks`);t.exports={setLevelSym:n,getLevelSym:r,levelValSym:i,levelCompSym:a,useLevelLabelsSym:o,mixinSym:c,lsCacheSym:l,chindingsSym:u,asJsonSym:d,writeSym:f,serializersSym:k,redactFmtSym:p,timeSym:m,timeSliceIndexSym:h,streamSym:g,stringifySym:_,stringifySafeSym:v,stringifiersSym:y,endSym:b,formatOptsSym:x,messageKeySym:S,errorKeySym:C,nestedKeySym:w,wildcardFirstSym:O,needsMetadataGsym:Symbol.for(`pino.metadata`),useOnlyCustomLevelsSym:s,formattersSym:A,hooksSym:ee,nestedKeyStrSym:T,mixinMergeStrategySym:E,msgPrefixSym:D}})),Gd=n(((e,t)=>{let n=Ud(),{redactFmtSym:r,wildcardFirstSym:i}=Wd(),a=/[^.[\]]+|\[([^[\]]*?)\]/g,o=`[Redacted]`;function s(e,t){let{paths:o,censor:s,remove:l}=c(e),u=o.reduce((e,t)=>{a.lastIndex=0;let n=a.exec(t),r=a.exec(t),o=n[1]===void 0?n[0]:n[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,`$1`);if(o===`*`&&(o=i),r===null)return e[o]=null,e;if(e[o]===null)return e;let{index:s}=r,c=`${t.substr(s,t.length-1)}`;return e[o]=e[o]||[],o!==i&&e[o].length===0&&e[o].push(...e[i]||[]),o===i&&Object.keys(e).forEach(function(t){e[t]&&e[t].push(c)}),e[o].push(c),e},{}),d={[r]:n({paths:o,censor:s,serialize:t,strict:!1,remove:l})},f=(...e)=>t(typeof s==`function`?s(...e):s);return[...Object.keys(u),...Object.getOwnPropertySymbols(u)].reduce((e,r)=>{if(u[r]===null)e[r]=e=>f(e,[r]);else{let i=typeof s==`function`?(e,t)=>s(e,[r,...t]):s;e[r]=n({paths:u[r],censor:i,serialize:t,strict:!1,remove:l})}return e},d)}function c(e){if(Array.isArray(e))return e={paths:e,censor:o},e;let{paths:t,censor:n=o,remove:r}=e;if(Array.isArray(t)===!1)throw Error(`pino – redact must contain an array of strings`);return r===!0&&(n=void 0),{paths:t,censor:n,remove:r}}t.exports=s})),Kd=n(((e,t)=>{let n=()=>``,r=()=>`,"time":${Date.now()}`,i=()=>`,"time":${Math.round(Date.now()/1e3)}`,a=()=>`,"time":"${new Date(Date.now()).toISOString()}"`,o=1000000000n,s=BigInt(Date.now())*1000000n,c=process.hrtime.bigint();t.exports={nullTime:n,epochTime:r,unixTime:i,isoTime:a,isoTimeNano:()=>{let e=s+(process.hrtime.bigint()-c),t=e/o,n=e%o,r=Number(t*1000n+n/1000000n),i=new Date(r);return`,"time":"${i.getUTCFullYear()}-${(i.getUTCMonth()+1).toString().padStart(2,`0`)}-${i.getUTCDate().toString().padStart(2,`0`)}T${i.getUTCHours().toString().padStart(2,`0`)}:${i.getUTCMinutes().toString().padStart(2,`0`)}:${i.getUTCSeconds().toString().padStart(2,`0`)}.${n.toString().padStart(9,`0`)}Z"`}}})),qd=n(((e,t)=>{function n(e){try{return JSON.stringify(e)}catch{return`"[Circular]"`}}t.exports=r;function r(e,t,r){var i=r&&r.stringify||n,a=1;if(typeof e==`object`&&e){var o=t.length+a;if(o===1)return e;var s=Array(o);s[0]=i(e);for(var c=1;c<o;c++)s[c]=i(t[c]);return s.join(` `)}if(typeof e!=`string`)return e;var l=t.length;if(l===0)return e;for(var u=``,d=1-a,f=-1,p=e&&e.length||0,m=0;m<p;){if(e.charCodeAt(m)===37&&m+1<p){switch(f=f>-1?f:0,e.charCodeAt(m+1)){case 100:case 102:if(d>=l||t[d]==null)break;f<m&&(u+=e.slice(f,m)),u+=Number(t[d]),f=m+2,m++;break;case 105:if(d>=l||t[d]==null)break;f<m&&(u+=e.slice(f,m)),u+=Math.floor(Number(t[d])),f=m+2,m++;break;case 79:case 111:case 106:if(d>=l||t[d]===void 0)break;f<m&&(u+=e.slice(f,m));var h=typeof t[d];if(h===`string`){u+=`'`+t[d]+`'`,f=m+2,m++;break}if(h===`function`){u+=t[d].name||`<anonymous>`,f=m+2,m++;break}u+=i(t[d]),f=m+2,m++;break;case 115:if(d>=l)break;f<m&&(u+=e.slice(f,m)),u+=String(t[d]),f=m+2,m++;break;case 37:f<m&&(u+=e.slice(f,m)),u+=`%`,f=m+2,m++,d--;break}++d}++m}return f===-1?e:(f<p&&(u+=e.slice(f)),u)}})),Jd=n(((e,t)=>{if(typeof SharedArrayBuffer<`u`&&typeof Atomics<`u`){let e=new Int32Array(new SharedArrayBuffer(4));function n(t){if(!(t>0&&t<1/0))throw typeof t!=`number`&&typeof t!=`bigint`?TypeError(`sleep: ms must be a number`):RangeError(`sleep: ms must be a number that is greater than 0 but less than Infinity`);Atomics.wait(e,0,0,Number(t))}t.exports=n}else{function e(e){if(!(e>0&&e<1/0))throw typeof e!=`number`&&typeof e!=`bigint`?TypeError(`sleep: ms must be a number`):RangeError(`sleep: ms must be a number that is greater than 0 but less than Infinity`);let t=Date.now()+Number(e);for(;t>Date.now(););}t.exports=e}})),Yd=n(((e,n)=>{let r=t(`fs`),i=t(`events`),a=t(`util`).inherits,o=t(`path`),s=Jd(),c=t(`assert`),l=Buffer.allocUnsafe(0),u=`buffer`,d=`utf8`,[f,p]=(process.versions.node||`0.0`).split(`.`).map(Number),m=f>=22&&p>=7;function h(e,t){t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;function n(n,r){if(n){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount(`error`)>0&&t.emit(`error`,n)}):t.emit(`error`,n);return}let i=t._reopening;t.fd=r,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit(`ready`)):t.emit(`ready`),!t.destroyed&&(!t._writing&&t._len>t.minLength||t._flushPending?t._actualWrite():i&&process.nextTick(()=>t.emit(`drain`)))}let i=t.append?`a`:`w`,a=t.mode;if(t.sync)try{t.mkdir&&r.mkdirSync(o.dirname(e),{recursive:!0}),n(null,r.openSync(e,i,a))}catch(e){throw n(e),e}else t.mkdir?r.mkdir(o.dirname(e),{recursive:!0},t=>{if(t)return n(t);r.open(e,i,a,n)}):r.open(e,i,a,n)}function g(e){if(!(this instanceof g))return new g(e);let{fd:t,dest:n,minLength:i,maxLength:a,maxWrite:o,periodicFlush:c,sync:f,append:p=!0,mkdir:m,retryEAGAIN:y,fsync:S,contentMode:A,mode:ee}=e||{};t||=n,this._len=0,this.fd=-1,this._bufs=[],this._lens=[],this._writing=!1,this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._flushPending=!1,this._hwm=Math.max(i||0,16387),this.file=null,this.destroyed=!1,this.minLength=i||0,this.maxLength=a||0,this.maxWrite=o||16384,this._periodicFlush=c||0,this._periodicFlushTimer=void 0,this.sync=f||!1,this.writable=!0,this._fsync=S||!1,this.append=p||!1,this.mode=ee,this.retryEAGAIN=y||(()=>!0),this.mkdir=m||!1;let te,ne;if(A===u)this._writingBuf=l,this.write=x,this.flush=w,this.flushSync=E,this._actualWrite=O,te=()=>r.writeSync(this.fd,this._writingBuf),ne=()=>r.write(this.fd,this._writingBuf,this.release);else if(A===void 0||A===d)this._writingBuf=``,this.write=b,this.flush=C,this.flushSync=T,this._actualWrite=D,te=()=>r.writeSync(this.fd,this._writingBuf,`utf8`),ne=()=>r.write(this.fd,this._writingBuf,`utf8`,this.release);else throw Error(`SonicBoom supports "${d}" and "${u}", but passed ${A}`);if(typeof t==`number`)this.fd=t,process.nextTick(()=>this.emit(`ready`));else if(typeof t==`string`)h(t,this);else throw Error(`SonicBoom supports only file descriptors and files`);if(this.minLength>=this.maxWrite)throw Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);this.release=(e,t)=>{if(e){if((e.code===`EAGAIN`||e.code===`EBUSY`)&&this.retryEAGAIN(e,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{s(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(ne,100);else this._writing=!1,this.emit(`error`,e);return}this.emit(`write`,t);let n=_(this._writingBuf,this._len,t);if(this._len=n.len,this._writingBuf=n.writingBuf,this._writingBuf.length){if(!this.sync){ne();return}try{do{let e=te(),t=_(this._writingBuf,this._len,e);this._len=t.len,this._writingBuf=t.writingBuf}while(this._writingBuf.length)}catch(e){this.release(e);return}}this._fsync&&r.fsyncSync(this.fd);let i=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):i>this.minLength?this._actualWrite():this._ending?i>0?this._actualWrite():(this._writing=!1,k(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(v,this)):this.emit(`drain`))},this.on(`newListener`,function(e){e===`drain`&&(this._asyncDrainScheduled=!1)}),this._periodicFlush!==0&&(this._periodicFlushTimer=setInterval(()=>this.flush(null),this._periodicFlush),this._periodicFlushTimer.unref())}function _(e,t,n){return typeof e==`string`&&Buffer.byteLength(e)!==n&&(n=Buffer.from(e).subarray(0,n).toString().length),t=Math.max(t-n,0),e=e.slice(n),{writingBuf:e,len:t}}function v(e){e.listenerCount(`drain`)>0&&(e._asyncDrainScheduled=!1,e.emit(`drain`))}a(g,i);function y(e,t){return e.length===0?l:e.length===1?e[0]:Buffer.concat(e,t)}function b(e){if(this.destroyed)throw Error(`SonicBoom destroyed`);let t=this._len+e.length,n=this._bufs;return this.maxLength&&t>this.maxLength?(this.emit(`drop`,e),this._len<this._hwm):(n.length===0||n[n.length-1].length+e.length>this.maxWrite?n.push(``+e):n[n.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function x(e){if(this.destroyed)throw Error(`SonicBoom destroyed`);let t=this._len+e.length,n=this._bufs,r=this._lens;return this.maxLength&&t>this.maxLength?(this.emit(`drop`,e),this._len<this._hwm):(n.length===0||r[r.length-1]+e.length>this.maxWrite?(n.push([e]),r.push(e.length)):(n[n.length-1].push(e),r[r.length-1]+=e.length),this._len=t,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function S(e){this._flushPending=!0;let t=()=>{if(this._fsync)this._flushPending=!1,e();else try{r.fsync(this.fd,t=>{this._flushPending=!1,e(t)})}catch(t){e(t)}this.off(`error`,n)},n=n=>{this._flushPending=!1,e(n),this.off(`drain`,t)};this.once(`drain`,t),this.once(`error`,n)}function C(e){if(e!=null&&typeof e!=`function`)throw Error(`flush cb must be a function`);if(this.destroyed){let t=Error(`SonicBoom destroyed`);if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&S.call(this,e),!this._writing&&(this._bufs.length===0&&this._bufs.push(``),this._actualWrite())}function w(e){if(e!=null&&typeof e!=`function`)throw Error(`flush cb must be a function`);if(this.destroyed){let t=Error(`SonicBoom destroyed`);if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&S.call(this,e),!this._writing&&(this._bufs.length===0&&(this._bufs.push([]),this._lens.push(0)),this._actualWrite())}g.prototype.reopen=function(e){if(this.destroyed)throw Error(`SonicBoom destroyed`);if(this._opening){this.once(`ready`,()=>{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error(`Unable to reopen a file descriptor, you must pass a file to SonicBoom`);if(e&&(this.file=e),this._reopening=!0,this._writing)return;let t=this.fd;this.once(`ready`,()=>{t!==this.fd&&r.close(t,e=>{if(e)return this.emit(`error`,e)})}),h(this.file,this)},g.prototype.end=function(){if(this.destroyed)throw Error(`SonicBoom destroyed`);if(this._opening){this.once(`ready`,()=>{this.end()});return}this._ending||(this._ending=!0,!this._writing&&(this._len>0&&this.fd>=0?this._actualWrite():k(this)))};function T(){if(this.destroyed)throw Error(`SonicBoom destroyed`);if(this.fd<0)throw Error(`sonic boom is not ready yet`);!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf=``);let e=``;for(;this._bufs.length||e;){e.length<=0&&(e=this._bufs[0]);try{let t=r.writeSync(this.fd,e,`utf8`),n=_(e,this._len,t);e=n.writingBuf,this._len=n.len,e.length<=0&&this._bufs.shift()}catch(t){if((t.code===`EAGAIN`||t.code===`EBUSY`)&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;s(100)}}try{r.fsyncSync(this.fd)}catch{}}function E(){if(this.destroyed)throw Error(`SonicBoom destroyed`);if(this.fd<0)throw Error(`sonic boom is not ready yet`);!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift([this._writingBuf]),this._writingBuf=l);let e=l;for(;this._bufs.length||e.length;){e.length<=0&&(e=y(this._bufs[0],this._lens[0]));try{let t=r.writeSync(this.fd,e);e=e.subarray(t),this._len=Math.max(this._len-t,0),e.length<=0&&(this._bufs.shift(),this._lens.shift())}catch(t){if((t.code===`EAGAIN`||t.code===`EBUSY`)&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;s(100)}}}g.prototype.destroy=function(){this.destroyed||k(this)};function D(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf||this._bufs.shift()||``,this.sync)try{e(null,r.writeSync(this.fd,this._writingBuf,`utf8`))}catch(t){e(t)}else r.write(this.fd,this._writingBuf,`utf8`,e)}function O(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:y(this._bufs.shift(),this._lens.shift()),this.sync)try{e(null,r.writeSync(this.fd,this._writingBuf))}catch(t){e(t)}else m&&(this._writingBuf=Buffer.from(this._writingBuf)),r.write(this.fd,this._writingBuf,e)}function k(e){if(e.fd===-1){e.once(`ready`,k.bind(null,e));return}e._periodicFlushTimer!==void 0&&clearInterval(e._periodicFlushTimer),e.destroyed=!0,e._bufs=[],e._lens=[],c(typeof e.fd==`number`,`sonic.fd must be a number, got ${typeof e.fd}`);try{r.fsync(e.fd,t)}catch{}function t(){e.fd!==1&&e.fd!==2?r.close(e.fd,n):n()}function n(t){if(t){e.emit(`error`,t);return}e._ending&&!e._writing&&e.emit(`finish`),e.emit(`close`)}}g.SonicBoom=g,g.default=g,n.exports=g})),Xd=n(((e,t)=>{let n={exit:[],beforeExit:[]},r={exit:c,beforeExit:l},i;function a(){i===void 0&&(i=new FinalizationRegistry(d))}function o(e){n[e].length>0||process.on(e,r[e])}function s(e){n[e].length>0||(process.removeListener(e,r[e]),n.exit.length===0&&n.beforeExit.length===0&&(i=void 0))}function c(){u(`exit`)}function l(){u(`beforeExit`)}function u(e){for(let t of n[e]){let n=t.deref(),r=t.fn;n!==void 0&&r(n,e)}n[e]=[]}function d(e){for(let t of[`exit`,`beforeExit`]){let r=n[t].indexOf(e);n[t].splice(r,r+1),s(t)}}function f(e,t,r){if(t===void 0)throw Error(`the object can't be undefined`);o(e);let s=new WeakRef(t);s.fn=r,a(),i.register(t,s),n[e].push(s)}function p(e,t){f(`exit`,e,t)}function m(e,t){f(`beforeExit`,e,t)}function h(e){if(i!==void 0){i.unregister(e);for(let t of[`exit`,`beforeExit`])n[t]=n[t].filter(t=>{let n=t.deref();return n&&n!==e}),s(t)}}t.exports={register:p,registerBeforeExit:m,unregister:h}})),Zd=n(((e,t)=>{t.exports={name:`thread-stream`,version:`3.1.0`,description:`A streaming way to send data to a Node.js Worker Thread`,main:`index.js`,types:`index.d.ts`,dependencies:{"real-require":`^0.2.0`},devDependencies:{"@types/node":`^20.1.0`,"@types/tap":`^15.0.0`,"@yao-pkg/pkg":`^5.11.5`,desm:`^1.3.0`,fastbench:`^1.0.1`,husky:`^9.0.6`,"pino-elasticsearch":`^8.0.0`,"sonic-boom":`^4.0.1`,standard:`^17.0.0`,tap:`^16.2.0`,"ts-node":`^10.8.0`,typescript:`^5.3.2`,"why-is-node-running":`^2.2.2`},scripts:{build:`tsc --noEmit`,test:`standard && npm run build && npm run transpile && tap "test/**/*.test.*js" && tap --ts test/*.test.*ts`,"test:ci":`standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts`,"test:ci:js":`tap --no-check-coverage --timeout=120 --coverage-report=lcovonly "test/**/*.test.*js"`,"test:ci:ts":`tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"`,"test:yarn":`npm run transpile && tap "test/**/*.test.js" --no-check-coverage`,transpile:`sh ./test/ts/transpile.sh`,prepare:`husky install`},standard:{ignore:[`test/ts/**/*`,`test/syntax-error.mjs`]},repository:{type:`git`,url:`git+https://github.com/mcollina/thread-stream.git`},keywords:[`worker`,`thread`,`threads`,`stream`],author:`Matteo Collina <hello@matteocollina.com>`,license:`MIT`,bugs:{url:`https://github.com/mcollina/thread-stream/issues`},homepage:`https://github.com/mcollina/thread-stream#readme`}})),Qd=n(((e,t)=>{let n=1e3;function r(e,t,r,i,a){let o=Date.now()+i,s=Atomics.load(e,t);if(s===r){a(null,`ok`);return}let c=s,l=i=>{Date.now()>o?a(null,`timed-out`):setTimeout(()=>{c=s,s=Atomics.load(e,t),s===c?l(i>=n?n:i*2):s===r?a(null,`ok`):a(null,`not-equal`)},i)};l(1)}function i(e,t,r,i,a){let o=Date.now()+i,s=Atomics.load(e,t);if(s!==r){a(null,`ok`);return}let c=i=>{Date.now()>o?a(null,`timed-out`):setTimeout(()=>{s=Atomics.load(e,t),s===r?c(i>=n?n:i*2):a(null,`ok`)},i)};c(1)}t.exports={wait:r,waitDiff:i}})),$d=n(((e,t)=>{t.exports={WRITE_INDEX:4,READ_INDEX:8}})),ef=n(((e,n)=>{let{version:r}=Zd(),{EventEmitter:i}=t(`events`),{Worker:a}=t(`worker_threads`),{join:o}=t(`path`),{pathToFileURL:s}=t(`url`),{wait:c}=Qd(),{WRITE_INDEX:l,READ_INDEX:u}=$d(),d=t(`buffer`),f=t(`assert`),p=Symbol(`kImpl`),m=d.constants.MAX_STRING_LENGTH;var h=class{constructor(e){this._value=e}deref(){return this._value}},g=class{register(){}unregister(){}};let _=process.env.NODE_V8_COVERAGE?g:global.FinalizationRegistry||g,v=process.env.NODE_V8_COVERAGE?h:global.WeakRef||h,y=new _(e=>{e.exited||e.terminate()});function b(e,t){let{filename:n,workerData:i}=t,c=new a((`__bundlerPathsOverrides`in globalThis?globalThis.__bundlerPathsOverrides:{})[`thread-stream-worker`]||o(__dirname,`lib`,`worker.js`),{...t.workerOpts,trackUnmanagedFds:!1,workerData:{filename:n.indexOf(`file://`)===0?n:s(n).href,dataBuf:e[p].dataBuf,stateBuf:e[p].stateBuf,workerData:{$context:{threadStreamVersion:r},...i}}});return c.stream=new h(e),c.on(`message`,C),c.on(`exit`,w),y.register(e,c),c}function x(e){f(!e[p].sync),e[p].needDrain&&(e[p].needDrain=!1,e.emit(`drain`))}function S(e){let t=Atomics.load(e[p].state,l),n=e[p].data.length-t;if(n>0){if(e[p].buf.length===0){e[p].flushing=!1,e[p].ending?k(e):e[p].needDrain&&process.nextTick(x,e);return}let t=e[p].buf.slice(0,n),r=Buffer.byteLength(t);r<=n?(e[p].buf=e[p].buf.slice(n),O(e,t,S.bind(null,e))):e.flush(()=>{if(!e.destroyed){for(Atomics.store(e[p].state,u,0),Atomics.store(e[p].state,l,0);r>e[p].data.length;)n/=2,t=e[p].buf.slice(0,n),r=Buffer.byteLength(t);e[p].buf=e[p].buf.slice(n),O(e,t,S.bind(null,e))}})}else if(n===0){if(t===0&&e[p].buf.length===0)return;e.flush(()=>{Atomics.store(e[p].state,u,0),Atomics.store(e[p].state,l,0),S(e)})}else D(e,Error(`overwritten`))}function C(e){let t=this.stream.deref();if(t===void 0){this.exited=!0,this.terminate();return}switch(e.code){case`READY`:this.stream=new v(t),t.flush(()=>{t[p].ready=!0,t.emit(`ready`)});break;case`ERROR`:D(t,e.err);break;case`EVENT`:Array.isArray(e.args)?t.emit(e.name,...e.args):t.emit(e.name,e.args);break;case`WARNING`:process.emitWarning(e.err);break;default:D(t,Error(`this should not happen: `+e.code))}}function w(e){let t=this.stream.deref();t!==void 0&&(y.unregister(t),t.worker.exited=!0,t.worker.off(`exit`,w),D(t,e===0?null:Error(`the worker thread exited`)))}var T=class extends i{constructor(e={}){if(super(),e.bufferSize<4)throw Error(`bufferSize must at least fit a 4-byte utf-8 char`);this[p]={},this[p].stateBuf=new SharedArrayBuffer(128),this[p].state=new Int32Array(this[p].stateBuf),this[p].dataBuf=new SharedArrayBuffer(e.bufferSize||4*1024*1024),this[p].data=Buffer.from(this[p].dataBuf),this[p].sync=e.sync||!1,this[p].ending=!1,this[p].ended=!1,this[p].needDrain=!1,this[p].destroyed=!1,this[p].flushing=!1,this[p].ready=!1,this[p].finished=!1,this[p].errored=null,this[p].closed=!1,this[p].buf=``,this.worker=b(this,e),this.on(`message`,(e,t)=>{this.worker.postMessage(e,t)})}write(e){if(this[p].destroyed)return E(this,Error(`the worker has exited`)),!1;if(this[p].ending)return E(this,Error(`the worker is ending`)),!1;if(this[p].flushing&&this[p].buf.length+e.length>=m)try{A(this),this[p].flushing=!0}catch(e){return D(this,e),!1}if(this[p].buf+=e,this[p].sync)try{return A(this),!0}catch(e){return D(this,e),!1}return this[p].flushing||(this[p].flushing=!0,setImmediate(S,this)),this[p].needDrain=this[p].data.length-this[p].buf.length-Atomics.load(this[p].state,l)<=0,!this[p].needDrain}end(){this[p].destroyed||(this[p].ending=!0,k(this))}flush(e){if(this[p].destroyed){typeof e==`function`&&process.nextTick(e,Error(`the worker has exited`));return}let t=Atomics.load(this[p].state,l);c(this[p].state,u,t,1/0,(t,n)=>{if(t){D(this,t),process.nextTick(e,t);return}if(n===`not-equal`){this.flush(e);return}process.nextTick(e)})}flushSync(){this[p].destroyed||(A(this),ee(this))}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[p].ready}get destroyed(){return this[p].destroyed}get closed(){return this[p].closed}get writable(){return!this[p].destroyed&&!this[p].ending}get writableEnded(){return this[p].ending}get writableFinished(){return this[p].finished}get writableNeedDrain(){return this[p].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[p].errored}};function E(e,t){setImmediate(()=>{e.emit(`error`,t)})}function D(e,t){e[p].destroyed||(e[p].destroyed=!0,t&&(e[p].errored=t,E(e,t)),e.worker.exited?setImmediate(()=>{e[p].closed=!0,e.emit(`close`)}):e.worker.terminate().catch(()=>{}).then(()=>{e[p].closed=!0,e.emit(`close`)}))}function O(e,t,n){let r=Atomics.load(e[p].state,l),i=Buffer.byteLength(t);return e[p].data.write(t,r),Atomics.store(e[p].state,l,r+i),Atomics.notify(e[p].state,l),n(),!0}function k(e){if(!(e[p].ended||!e[p].ending||e[p].flushing)){e[p].ended=!0;try{e.flushSync();let t=Atomics.load(e[p].state,u);Atomics.store(e[p].state,l,-1),Atomics.notify(e[p].state,l);let n=0;for(;t!==-1;){if(Atomics.wait(e[p].state,u,t,1e3),t=Atomics.load(e[p].state,u),t===-2){D(e,Error(`end() failed`));return}if(++n===10){D(e,Error(`end() took too long (10s)`));return}}process.nextTick(()=>{e[p].finished=!0,e.emit(`finish`)})}catch(t){D(e,t)}}}function A(e){let t=()=>{e[p].ending?k(e):e[p].needDrain&&process.nextTick(x,e)};for(e[p].flushing=!1;e[p].buf.length!==0;){let n=Atomics.load(e[p].state,l),r=e[p].data.length-n;if(r===0){ee(e),Atomics.store(e[p].state,u,0),Atomics.store(e[p].state,l,0);continue}else if(r<0)throw Error(`overwritten`);let i=e[p].buf.slice(0,r),a=Buffer.byteLength(i);if(a<=r)e[p].buf=e[p].buf.slice(r),O(e,i,t);else{for(ee(e),Atomics.store(e[p].state,u,0),Atomics.store(e[p].state,l,0);a>e[p].buf.length;)r/=2,i=e[p].buf.slice(0,r),a=Buffer.byteLength(i);e[p].buf=e[p].buf.slice(r),O(e,i,t)}}}function ee(e){if(e[p].flushing)throw Error(`unable to flush while flushing`);let t=Atomics.load(e[p].state,l),n=0;for(;;){let r=Atomics.load(e[p].state,u);if(r===-2)throw Error(`_flushSync failed`);if(r!==t)Atomics.wait(e[p].state,u,r,1e3);else break;if(++n===10)throw Error(`_flushSync took too long (10s)`)}}n.exports=T})),tf=n(((e,n)=>{let{createRequire:r}=t(`module`),i=Hd(),{join:a,isAbsolute:o,sep:s}=t(`node:path`),c=Jd(),l=Xd(),u=ef();function d(e){l.register(e,p),l.registerBeforeExit(e,m),e.on(`close`,function(){l.unregister(e)})}function f(e,t,n,r){let i=new u({filename:e,workerData:t,workerOpts:n,sync:r});i.on(`ready`,a),i.on(`close`,function(){process.removeListener(`exit`,o)}),process.on(`exit`,o);function a(){process.removeListener(`exit`,o),i.unref(),n.autoEnd!==!1&&d(i)}function o(){i.closed||(i.flushSync(),c(100),i.end())}return i}function p(e){e.ref(),e.flushSync(),e.end(),e.once(`close`,function(){e.unref()})}function m(e){e.flushSync()}function h(e){let{pipeline:t,targets:n,levels:c,dedupe:l,worker:u={},caller:d=i(),sync:p=!1}=e,m={...e.options},h=typeof d==`string`?[d]:d,g=`__bundlerPathsOverrides`in globalThis?globalThis.__bundlerPathsOverrides:{},_=e.target;if(_&&n)throw Error(`only one of target or targets can be specified`);return n?(_=g[`pino-worker`]||a(__dirname,`worker.js`),m.targets=n.filter(e=>e.target).map(e=>({...e,target:v(e.target)})),m.pipelines=n.filter(e=>e.pipeline).map(e=>e.pipeline.map(t=>({...t,level:e.level,target:v(t.target)})))):t&&(_=g[`pino-worker`]||a(__dirname,`worker.js`),m.pipelines=[t.map(e=>({...e,target:v(e.target)}))]),c&&(m.levels=c),l&&(m.dedupe=l),m.pinoWillSendConfig=!0,f(v(_),m,u,p);function v(e){if(e=g[e]||e,o(e)||e.indexOf(`file://`)===0)return e;if(e===`pino/file`)return a(__dirname,`..`,`file.js`);let t;for(let n of h)try{t=r(n===`node:repl`?process.cwd()+s:n).resolve(e);break}catch{continue}if(!t)throw Error(`unable to determine transport target for "${e}"`);return t}}n.exports=h})),nf=n(((e,n)=>{let r=t(`node:diagnostics_channel`),i=qd(),{mapHttpRequest:a,mapHttpResponse:o}=Vd(),s=Yd(),c=Xd(),{lsCacheSym:l,chindingsSym:u,writeSym:d,serializersSym:f,formatOptsSym:p,endSym:m,stringifiersSym:h,stringifySym:g,stringifySafeSym:_,wildcardFirstSym:v,nestedKeySym:y,formattersSym:b,messageKeySym:x,errorKeySym:S,nestedKeyStrSym:C,msgPrefixSym:w}=Wd(),{isMainThread:T}=t(`worker_threads`),E=tf(),D=r.tracingChannel(`pino_asJson`);function O(){}function k(e,t){if(!t)return n;return function(...r){t.call(this,r,n,e)};function n(t,...n){if(typeof t==`object`){let r=t;t!==null&&(t.method&&t.headers&&t.socket?t=a(t):typeof t.setHeader==`function`&&(t=o(t)));let s;r===null&&n.length===0?s=[null]:(r=n.shift(),s=n),typeof this[w]==`string`&&r!=null&&(r=this[w]+r),this[d](t,i(r,s,this[p]),e)}else{let r=t===void 0?n.shift():t;typeof this[w]==`string`&&r!=null&&(r=this[w]+r),this[d](null,i(r,n,this[p]),e)}}}function A(e){let t=``,n=0,r=!1,i=255,a=e.length;if(a>100)return JSON.stringify(e);for(var o=0;o<a&&i>=32;o++)i=e.charCodeAt(o),(i===34||i===92)&&(t+=e.slice(n,o)+`\\`,n=o,r=!0);return r?t+=e.slice(n):t=e,i<32?JSON.stringify(e):`"`+t+`"`}function ee(e,t,n,r){if(D.hasSubscribers===!1)return te.call(this,e,t,n,r);let i={instance:this,arguments};return D.traceSync(te,i,this,e,t,n,r)}function te(e,t,n,r){let i=this[g],a=this[_],o=this[h],s=this[m],c=this[u],d=this[f],p=this[b],w=this[x],T=this[S],E=this[l][n]+r;E+=c;let D;p.log&&(e=p.log(e));let O=o[v],k=``;for(let t in e)if(D=e[t],Object.prototype.hasOwnProperty.call(e,t)&&D!==void 0){d[t]?D=d[t](D):t===T&&d.err&&(D=d.err(D));let e=o[t]||O;switch(typeof D){case`undefined`:case`function`:continue;case`number`:Number.isFinite(D)===!1&&(D=null);case`boolean`:e&&(D=e(D));break;case`string`:D=(e||A)(D);break;default:D=(e||i)(D,a)}if(D===void 0)continue;let n=A(t);k+=`,`+n+`:`+D}let ee=``;if(t!==void 0){D=d[w]?d[w](t):t;let e=o[w]||O;switch(typeof D){case`function`:break;case`number`:Number.isFinite(D)===!1&&(D=null);case`boolean`:e&&(D=e(D)),ee=`,"`+w+`":`+D;break;case`string`:D=(e||A)(D),ee=`,"`+w+`":`+D;break;default:D=(e||i)(D,a),ee=`,"`+w+`":`+D}}return this[y]&&k?E+this[C]+k.slice(1)+`}`+ee+s:E+k+ee+s}function ne(e,t){let n,r=e[u],i=e[g],a=e[_],o=e[h],s=o[v],c=e[f],l=e[b].bindings;for(let e in t=l(t),t)if(n=t[e],((e.length<5||e!==`level`&&e!==`serializers`&&e!==`formatters`&&e!==`customLevels`)&&t.hasOwnProperty(e)&&n!==void 0)===!0){if(n=c[e]?c[e](n):n,n=(o[e]||s||i)(n,a),n===void 0)continue;r+=`,"`+e+`":`+n}return r}function re(e){return e.write!==e.constructor.prototype.write}function j(e){let t=new s(e);return t.on(`error`,n),!e.sync&&T&&(c.register(t,ie),t.on(`close`,function(){c.unregister(t)})),t;function n(e){if(e.code===`EPIPE`){t.write=O,t.end=O,t.flushSync=O,t.destroy=O;return}t.removeListener(`error`,n),t.emit(`error`,e)}}function ie(e,t){e.destroyed||(t===`beforeExit`?(e.flush(),e.on(`drain`,function(){e.end()})):e.flushSync())}function ae(e){return function(t,n,r={},i){if(typeof r==`string`)i=j({dest:r}),r={};else if(typeof i==`string`){if(r&&r.transport)throw Error(`only one of option.transport or stream can be specified`);i=j({dest:i})}else if(r instanceof s||r.writable||r._writableState)i=r,r={};else if(r.transport){if(r.transport instanceof s||r.transport.writable||r.transport._writableState)throw Error(`option.transport do not allow stream, please pass to option directly. e.g. pino(transport)`);if(r.transport.targets&&r.transport.targets.length&&r.formatters&&typeof r.formatters.level==`function`)throw Error(`option.transport.targets do not allow custom level formatters`);let e;r.customLevels&&(e=r.useOnlyCustomLevels?r.customLevels:Object.assign({},r.levels,r.customLevels)),i=E({caller:n,...r.transport,levels:e})}if(r=Object.assign({},e,r),r.serializers=Object.assign({},e.serializers,r.serializers),r.formatters=Object.assign({},e.formatters,r.formatters),r.prettyPrint)throw Error(`prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)`);let{enabled:a,onChild:o}=r;return a===!1&&(r.level=`silent`),o||(r.onChild=O),i||=re(process.stdout)?process.stdout:j({fd:process.stdout.fd||1}),{opts:r,stream:i}}}function oe(e,t){try{return JSON.stringify(e)}catch{try{return(t||this[_])(e)}catch{return`"[unable to serialize, circular reference is too complex to analyze]"`}}}function se(e,t,n){return{level:e,bindings:t,log:n}}function ce(e){let t=Number(e);return typeof e==`string`&&Number.isFinite(t)?t:e===void 0?1:e}n.exports={noop:O,buildSafeSonicBoom:j,asChindings:ne,asJson:ee,genLog:k,createArgsNormalizer:ae,stringify:oe,buildFormatters:se,normalizeDestFileDescriptor:ce}})),rf=n(((e,t)=>{t.exports={DEFAULT_LEVELS:{trace:10,debug:20,info:30,warn:40,error:50,fatal:60},SORTING_ORDER:{ASC:`ASC`,DESC:`DESC`}}})),af=n(((e,t)=>{let{lsCacheSym:n,levelValSym:r,useOnlyCustomLevelsSym:i,streamSym:a,formattersSym:o,hooksSym:s,levelCompSym:c}=Wd(),{noop:l,genLog:u}=nf(),{DEFAULT_LEVELS:d,SORTING_ORDER:f}=rf(),p={fatal:e=>{let t=u(d.fatal,e);return function(...e){let n=this[a];if(t.call(this,...e),typeof n.flushSync==`function`)try{n.flushSync()}catch{}}},error:e=>u(d.error,e),warn:e=>u(d.warn,e),info:e=>u(d.info,e),debug:e=>u(d.debug,e),trace:e=>u(d.trace,e)},m=Object.keys(d).reduce((e,t)=>(e[d[t]]=t,e),{}),h=Object.keys(m).reduce((e,t)=>(e[t]=`{"level":`+Number(t),e),{});function g(e){let t=e[o].level,{labels:r}=e.levels,i={};for(let e in r){let n=t(r[e],Number(e));i[e]=JSON.stringify(n).slice(0,-1)}return e[n]=i,e}function _(e,t){if(t)return!1;switch(e){case`fatal`:case`error`:case`warn`:case`info`:case`debug`:case`trace`:return!0;default:return!1}}function v(e){let{labels:t,values:n}=this.levels;if(typeof e==`number`){if(t[e]===void 0)throw Error(`unknown level value`+e);e=t[e]}if(n[e]===void 0)throw Error(`unknown level `+e);let a=this[r],o=this[r]=n[e],d=this[i],f=this[c],m=this[s].logMethod;for(let e in n){if(f(n[e],o)===!1){this[e]=l;continue}this[e]=_(e,d)?p[e](m):u(n[e],m)}this.emit(`level-change`,e,o,t[a],a,this)}function y(e){let{levels:t,levelVal:n}=this;return t&&t.labels?t.labels[n]:``}function b(e){let{values:t}=this.levels,n=t[e];return n!==void 0&&this[c](n,this[r])}function x(e,t,n){return e===f.DESC?t<=n:t>=n}function S(e){return typeof e==`string`?x.bind(null,e):e}function C(e=null,t=!1){let n=e?Object.keys(e).reduce((t,n)=>(t[e[n]]=n,t),{}):null;return{labels:Object.assign(Object.create(Object.prototype,{Infinity:{value:`silent`}}),t?null:m,n),values:Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:d,e)}}function w(e,t,n){if(typeof e==`number`){if(![].concat(Object.keys(t||{}).map(e=>t[e]),n?[]:Object.keys(m).map(e=>+e),1/0).includes(e))throw Error(`default level:${e} must be included in custom levels`);return}if(!(e in Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),n?null:d,t)))throw Error(`default level:${e} must be included in custom levels`)}function T(e,t){let{labels:n,values:r}=e;for(let e in t){if(e in r)throw Error(`levels cannot be overridden`);if(t[e]in n)throw Error(`pre-existing level values cannot be used for new levels`)}}function E(e){if(typeof e!=`function`&&!(typeof e==`string`&&Object.values(f).includes(e)))throw Error(`Levels comparison should be one of "ASC", "DESC" or "function" type`)}t.exports={initialLsCache:h,genLsCache:g,levelMethods:p,getLevel:y,setLevel:v,isLevelEnabled:b,mappings:C,assertNoLevelCollisions:T,assertDefaultLevelFound:w,genLevelComparison:S,assertLevelComparison:E}})),of=n(((e,t)=>{t.exports={version:`10.1.0`}})),sf=n(((e,n)=>{let{EventEmitter:r}=t(`node:events`),{lsCacheSym:i,levelValSym:a,setLevelSym:o,getLevelSym:s,chindingsSym:c,mixinSym:l,asJsonSym:u,writeSym:d,mixinMergeStrategySym:f,timeSym:p,timeSliceIndexSym:m,streamSym:h,serializersSym:g,formattersSym:_,errorKeySym:v,messageKeySym:y,useOnlyCustomLevelsSym:b,needsMetadataGsym:x,redactFmtSym:S,stringifySym:C,formatOptsSym:w,stringifiersSym:T,msgPrefixSym:E,hooksSym:D}=Wd(),{getLevel:O,setLevel:k,isLevelEnabled:A,mappings:ee,initialLsCache:te,genLsCache:ne,assertNoLevelCollisions:re}=af(),{asChindings:j,asJson:ie,buildFormatters:ae,stringify:oe,noop:se}=nf(),{version:ce}=of(),le=Gd(),ue={constructor:class{},child:fe,bindings:pe,setBindings:me,flush:_e,isLevelEnabled:A,version:ce,get level(){return this[s]()},set level(e){this[o](e)},get levelVal(){return this[a]},set levelVal(e){throw Error(`levelVal is read-only`)},get msgPrefix(){return this[E]},get[Symbol.toStringTag](){return`Pino`},[i]:te,[d]:ge,[u]:ie,[s]:O,[o]:k};Object.setPrototypeOf(ue,r.prototype),n.exports=function(){return Object.create(ue)};let de=e=>e;function fe(e,t){if(!e)throw Error(`missing bindings for child Pino`);let n=this[g],r=this[_],i=Object.create(this);if(t==null)return i[_].bindings!==de&&(i[_]=ae(r.level,de,r.log)),i[c]=j(i,e),this.onChild!==se&&this.onChild(i),i;if(t.hasOwnProperty(`serializers`)===!0){for(let e in i[g]=Object.create(null),n)i[g][e]=n[e];let e=Object.getOwnPropertySymbols(n);for(var a=0;a<e.length;a++){let t=e[a];i[g][t]=n[t]}for(let e in t.serializers)i[g][e]=t.serializers[e];let r=Object.getOwnPropertySymbols(t.serializers);for(var s=0;s<r.length;s++){let e=r[s];i[g][e]=t.serializers[e]}}else i[g]=n;if(t.hasOwnProperty(`formatters`)){let{level:e,bindings:n,log:a}=t.formatters;i[_]=ae(e||r.level,n||de,a||r.log)}else i[_]=ae(r.level,de,r.log);if(t.hasOwnProperty(`customLevels`)===!0&&(re(this.levels,t.customLevels),i.levels=ee(t.customLevels,i[b]),ne(i)),typeof t.redact==`object`&&t.redact!==null||Array.isArray(t.redact)){i.redact=t.redact;let e=le(i.redact,oe),n={stringify:e[S]};i[C]=oe,i[T]=e,i[w]=n}if(typeof t.msgPrefix==`string`&&(i[E]=(this[E]||``)+t.msgPrefix),i[c]=j(i,e),t.level!==void 0&&t.level!==this.level||t.hasOwnProperty(`customLevels`)){let e=t.level||this.level;i[o](e)}return this.onChild(i),i}function pe(){let e=`{${this[c].substr(1)}}`,t=JSON.parse(e);return delete t.pid,delete t.hostname,t}function me(e){this[c]=j(this,e)}function he(e,t){return Object.assign(t,e)}function ge(e,t,n){let r=this[p](),i=this[l],a=this[v],o=this[y],s=this[f]||he,c,d=this[D].streamWrite;e==null?c={}:e instanceof Error?(c={[a]:e},t===void 0&&(t=e.message)):(c=e,t===void 0&&e[o]===void 0&&e[a]&&(t=e[a].message)),i&&(c=s(c,i(c,n,this)));let g=this[u](c,t,n,r),_=this[h];_[x]===!0&&(_.lastLevel=n,_.lastObj=c,_.lastMsg=t,_.lastTime=r.slice(this[m]),_.lastLogger=this),_.write(d?d(g):g)}function _e(e){if(e!=null&&typeof e!=`function`)throw Error(`callback must be a function`);let t=this[h];typeof t.flush==`function`?t.flush(e||se):e&&e()}})),cf=n(((e,t)=>{let{hasOwnProperty:n}=Object.prototype,r=_();r.configure=_,r.stringify=r,r.default=r,e.stringify=r,e.configure=_,t.exports=r;let i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function a(e){return e.length<5e3&&!i.test(e)?`"${e}"`:JSON.stringify(e)}function o(e,t){if(e.length>200||t)return e.sort(t);for(let t=1;t<e.length;t++){let n=e[t],r=t;for(;r!==0&&e[r-1]>n;)e[r]=e[r-1],r--;e[r]=n}return e}let s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(e){return s.call(e)!==void 0&&e.length!==0}function l(e,t,n){e.length<n&&(n=e.length);let r=t===`,`?``:` `,i=`"0":${r}${e[0]}`;for(let a=1;a<n;a++)i+=`${t}"${a}":${r}${e[a]}`;return i}function u(e){if(n.call(e,`circularValue`)){let t=e.circularValue;if(typeof t==`string`)return`"${t}"`;if(t==null)return t;if(t===Error||t===TypeError)return{toString(){throw TypeError(`Converting circular structure to JSON`)}};throw TypeError(`The "circularValue" argument must be of type string or the value null or undefined`)}return`"[Circular]"`}function d(e){let t;if(n.call(e,`deterministic`)&&(t=e.deterministic,typeof t!=`boolean`&&typeof t!=`function`))throw TypeError(`The "deterministic" argument must be of type boolean or comparator function`);return t===void 0?!0:t}function f(e,t){let r;if(n.call(e,t)&&(r=e[t],typeof r!=`boolean`))throw TypeError(`The "${t}" argument must be of type boolean`);return r===void 0?!0:r}function p(e,t){let r;if(n.call(e,t)){if(r=e[t],typeof r!=`number`)throw TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(r))throw TypeError(`The "${t}" argument must be an integer`);if(r<1)throw RangeError(`The "${t}" argument must be >= 1`)}return r===void 0?1/0:r}function m(e){return e===1?`1 item`:`${e} items`}function h(e){let t=new Set;for(let n of e)(typeof n==`string`||typeof n==`number`)&&t.add(String(n));return t}function g(e){if(n.call(e,`strict`)){let t=e.strict;if(typeof t!=`boolean`)throw TypeError(`The "strict" argument must be of type boolean`);if(t)return e=>{let t=`Object can not safely be stringified. Received type ${typeof e}`;throw typeof e!=`function`&&(t+=` (${e.toString()})`),Error(t)}}}function _(e){e={...e};let t=g(e);t&&(e.bigint===void 0&&(e.bigint=!1),`circularValue`in e||(e.circularValue=Error));let n=u(e),r=f(e,`bigint`),i=d(e),s=typeof i==`function`?i:void 0,_=p(e,`maximumDepth`),v=p(e,`maximumBreadth`);function y(e,l,u,d,f,p){let h=l[e];switch(typeof h==`object`&&h&&typeof h.toJSON==`function`&&(h=h.toJSON(e)),h=d.call(l,e,h),typeof h){case`string`:return a(h);case`object`:{if(h===null)return`null`;if(u.indexOf(h)!==-1)return n;let e=``,t=`,`,r=p;if(Array.isArray(h)){if(h.length===0)return`[]`;if(_<u.length+1)return`"[Array]"`;u.push(h),f!==``&&(p+=f,e+=`\n${p}`,t=`,\n${p}`);let n=Math.min(h.length,v),i=0;for(;i<n-1;i++){let n=y(String(i),h,u,d,f,p);e+=n===void 0?`null`:n,e+=t}let a=y(String(i),h,u,d,f,p);if(e+=a===void 0?`null`:a,h.length-1>v){let n=h.length-v-1;e+=`${t}"... ${m(n)} not stringified"`}return f!==``&&(e+=`\n${r}`),u.pop(),`[${e}]`}let l=Object.keys(h),g=l.length;if(g===0)return`{}`;if(_<u.length+1)return`"[Object]"`;let b=``,x=``;f!==``&&(p+=f,t=`,\n${p}`,b=` `);let S=Math.min(g,v);i&&!c(h)&&(l=o(l,s)),u.push(h);for(let n=0;n<S;n++){let r=l[n],i=y(r,h,u,d,f,p);i!==void 0&&(e+=`${x}${a(r)}:${b}${i}`,x=t)}if(g>v){let n=g-v;e+=`${x}"...":${b}"${m(n)} not stringified"`,x=t}return f!==``&&x.length>1&&(e=`\n${p}${e}\n${r}`),u.pop(),`{${e}}`}case`number`:return isFinite(h)?String(h):t?t(h):`null`;case`boolean`:return h===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(r)return String(h);default:return t?t(h):void 0}}function b(e,i,o,s,c,l){switch(typeof i==`object`&&i&&typeof i.toJSON==`function`&&(i=i.toJSON(e)),typeof i){case`string`:return a(i);case`object`:{if(i===null)return`null`;if(o.indexOf(i)!==-1)return n;let e=l,t=``,r=`,`;if(Array.isArray(i)){if(i.length===0)return`[]`;if(_<o.length+1)return`"[Array]"`;o.push(i),c!==``&&(l+=c,t+=`\n${l}`,r=`,\n${l}`);let n=Math.min(i.length,v),a=0;for(;a<n-1;a++){let e=b(String(a),i[a],o,s,c,l);t+=e===void 0?`null`:e,t+=r}let u=b(String(a),i[a],o,s,c,l);if(t+=u===void 0?`null`:u,i.length-1>v){let e=i.length-v-1;t+=`${r}"... ${m(e)} not stringified"`}return c!==``&&(t+=`\n${e}`),o.pop(),`[${t}]`}o.push(i);let u=``;c!==``&&(l+=c,r=`,\n${l}`,u=` `);let d=``;for(let e of s){let n=b(e,i[e],o,s,c,l);n!==void 0&&(t+=`${d}${a(e)}:${u}${n}`,d=r)}return c!==``&&d.length>1&&(t=`\n${l}${t}\n${e}`),o.pop(),`{${t}}`}case`number`:return isFinite(i)?String(i):t?t(i):`null`;case`boolean`:return i===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(r)return String(i);default:return t?t(i):void 0}}function x(e,u,d,f,p){switch(typeof u){case`string`:return a(u);case`object`:{if(u===null)return`null`;if(typeof u.toJSON==`function`){if(u=u.toJSON(e),typeof u!=`object`)return x(e,u,d,f,p);if(u===null)return`null`}if(d.indexOf(u)!==-1)return n;let t=p;if(Array.isArray(u)){if(u.length===0)return`[]`;if(_<d.length+1)return`"[Array]"`;d.push(u),p+=f;let e=`\n${p}`,n=`,\n${p}`,r=Math.min(u.length,v),i=0;for(;i<r-1;i++){let t=x(String(i),u[i],d,f,p);e+=t===void 0?`null`:t,e+=n}let a=x(String(i),u[i],d,f,p);if(e+=a===void 0?`null`:a,u.length-1>v){let t=u.length-v-1;e+=`${n}"... ${m(t)} not stringified"`}return e+=`\n${t}`,d.pop(),`[${e}]`}let r=Object.keys(u),h=r.length;if(h===0)return`{}`;if(_<d.length+1)return`"[Object]"`;p+=f;let g=`,\n${p}`,y=``,b=``,S=Math.min(h,v);c(u)&&(y+=l(u,g,v),r=r.slice(u.length),S-=u.length,b=g),i&&(r=o(r,s)),d.push(u);for(let e=0;e<S;e++){let t=r[e],n=x(t,u[t],d,f,p);n!==void 0&&(y+=`${b}${a(t)}: ${n}`,b=g)}if(h>v){let e=h-v;y+=`${b}"...": "${m(e)} not stringified"`,b=g}return b!==``&&(y=`\n${p}${y}\n${t}`),d.pop(),`{${y}}`}case`number`:return isFinite(u)?String(u):t?t(u):`null`;case`boolean`:return u===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(r)return String(u);default:return t?t(u):void 0}}function S(e,u,d){switch(typeof u){case`string`:return a(u);case`object`:{if(u===null)return`null`;if(typeof u.toJSON==`function`){if(u=u.toJSON(e),typeof u!=`object`)return S(e,u,d);if(u===null)return`null`}if(d.indexOf(u)!==-1)return n;let t=``,r=u.length!==void 0;if(r&&Array.isArray(u)){if(u.length===0)return`[]`;if(_<d.length+1)return`"[Array]"`;d.push(u);let e=Math.min(u.length,v),n=0;for(;n<e-1;n++){let e=S(String(n),u[n],d);t+=e===void 0?`null`:e,t+=`,`}let r=S(String(n),u[n],d);if(t+=r===void 0?`null`:r,u.length-1>v){let e=u.length-v-1;t+=`,"... ${m(e)} not stringified"`}return d.pop(),`[${t}]`}let f=Object.keys(u),p=f.length;if(p===0)return`{}`;if(_<d.length+1)return`"[Object]"`;let h=``,g=Math.min(p,v);r&&c(u)&&(t+=l(u,`,`,v),f=f.slice(u.length),g-=u.length,h=`,`),i&&(f=o(f,s)),d.push(u);for(let e=0;e<g;e++){let n=f[e],r=S(n,u[n],d);r!==void 0&&(t+=`${h}${a(n)}:${r}`,h=`,`)}if(p>v){let e=p-v;t+=`${h}"...":"${m(e)} not stringified"`}return d.pop(),`{${t}}`}case`number`:return isFinite(u)?String(u):t?t(u):`null`;case`boolean`:return u===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(r)return String(u);default:return t?t(u):void 0}}function C(e,t,n){if(arguments.length>1){let r=``;if(typeof n==`number`?r=` `.repeat(Math.min(n,10)):typeof n==`string`&&(r=n.slice(0,10)),t!=null){if(typeof t==`function`)return y(``,{"":e},[],t,r,``);if(Array.isArray(t))return b(``,e,[],h(t),r,``)}if(r.length!==0)return x(``,e,[],r,``)}return S(``,e,[])}return C}})),lf=n(((e,t)=>{let n=Symbol.for(`pino.metadata`),{DEFAULT_LEVELS:r}=rf(),i=r.info;function a(e,t){e||=[],t||={dedupe:!1};let a=Object.create(r);a.silent=1/0,t.levels&&typeof t.levels==`object`&&Object.keys(t.levels).forEach(e=>{a[e]=t.levels[e]});let u={write:d,add:m,remove:h,emit:f,flushSync:p,end:g,minLevel:0,lastId:0,streams:[],clone:_,[n]:!0,streamLevels:a};return Array.isArray(e)?e.forEach(m,u):m.call(u,e),e=null,u;function d(e){let r,i=this.lastLevel,{streams:a}=this,o=0,u;for(let d=s(a.length,t.dedupe);l(d,a.length,t.dedupe);d=c(d,t.dedupe))if(r=a[d],r.level<=i){if(o!==0&&o!==r.level)break;if(u=r.stream,u[n]){let{lastTime:e,lastMsg:t,lastObj:n,lastLogger:r}=this;u.lastLevel=i,u.lastTime=e,u.lastMsg=t,u.lastObj=n,u.lastLogger=r}u.write(e),t.dedupe&&(o=r.level)}else if(!t.dedupe)break}function f(...e){for(let{stream:t}of this.streams)typeof t.emit==`function`&&t.emit(...e)}function p(){for(let{stream:e}of this.streams)typeof e.flushSync==`function`&&e.flushSync()}function m(e){if(!e)return u;let t=typeof e.write==`function`||e.stream,n=e.write?e:e.stream;if(!t)throw Error(`stream object needs to implement either StreamEntry or DestinationStream interface`);let{streams:r,streamLevels:a}=this,s;s=typeof e.levelVal==`number`?e.levelVal:typeof e.level==`string`?a[e.level]:typeof e.level==`number`?e.level:i;let c={stream:n,level:s,levelVal:void 0,id:++u.lastId};return r.unshift(c),r.sort(o),this.minLevel=r[0].level,u}function h(e){let{streams:t}=this,n=t.findIndex(t=>t.id===e);return n>=0&&(t.splice(n,1),t.sort(o),this.minLevel=t.length>0?t[0].level:-1),u}function g(){for(let{stream:e}of this.streams)typeof e.flushSync==`function`&&e.flushSync(),e.end()}function _(e){let t=Array(this.streams.length);for(let n=0;n<t.length;n++)t[n]={level:e,stream:this.streams[n].stream};return{write:d,add:m,remove:h,minLevel:e,streams:t,clone:_,emit:f,flushSync:p,[n]:!0}}}function o(e,t){return e.level-t.level}function s(e,t){return t?e-1:0}function c(e,t){return t?e-1:e+1}function l(e,t,n){return n?e>=0:e<t}t.exports=a})),uf=n(((e,n)=>{let r=t(`node:os`),i=Vd(),a=Hd(),o=Gd(),s=Kd(),c=sf(),l=Wd(),{configure:u}=cf(),{assertDefaultLevelFound:d,mappings:f,genLsCache:p,genLevelComparison:m,assertLevelComparison:h}=af(),{DEFAULT_LEVELS:g,SORTING_ORDER:_}=rf(),{createArgsNormalizer:v,asChindings:y,buildSafeSonicBoom:b,buildFormatters:x,stringify:S,normalizeDestFileDescriptor:C,noop:w}=nf(),{version:T}=of(),{chindingsSym:E,redactFmtSym:D,serializersSym:O,timeSym:k,timeSliceIndexSym:A,streamSym:ee,stringifySym:te,stringifySafeSym:ne,stringifiersSym:re,setLevelSym:j,endSym:ie,formatOptsSym:ae,messageKeySym:oe,errorKeySym:se,nestedKeySym:ce,mixinSym:le,levelCompSym:ue,useOnlyCustomLevelsSym:de,formattersSym:fe,hooksSym:pe,nestedKeyStrSym:me,mixinMergeStrategySym:he,msgPrefixSym:ge}=l,{epochTime:_e,nullTime:ve}=s,{pid:ye}=process,be=r.hostname(),xe=i.err,Se=v({level:`info`,levelComparison:_.ASC,levels:g,messageKey:`msg`,errorKey:`err`,nestedKey:null,enabled:!0,base:{pid:ye,hostname:be},serializers:Object.assign(Object.create(null),{err:xe}),formatters:Object.assign(Object.create(null),{bindings(e){return e},level(e,t){return{level:t}}}),hooks:{logMethod:void 0,streamWrite:void 0},timestamp:_e,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100}),Ce=Object.assign(Object.create(null),i);function we(...e){let t={},{opts:n,stream:r}=Se(t,a(),...e);n.level&&typeof n.level==`string`&&g[n.level.toLowerCase()]!==void 0&&(n.level=n.level.toLowerCase());let{redact:i,crlf:s,serializers:l,timestamp:_,messageKey:v,errorKey:b,nestedKey:C,base:T,name:ye,level:be,customLevels:xe,levelComparison:Ce,mixin:we,mixinMergeStrategy:Te,useOnlyCustomLevels:Ee,formatters:De,hooks:Oe,depthLimit:ke,edgeLimit:Ae,onChild:je,msgPrefix:Me}=n,Ne=u({maximumDepth:ke,maximumBreadth:Ae}),Pe=x(De.level,De.bindings,De.log),Fe=S.bind({[ne]:Ne}),Ie=i?o(i,Fe):{},Le=i?{stringify:Ie[D]}:{stringify:Fe},Re=`}`+(s?`\r
76
- `:`
77
- `),ze=y.bind(null,{[E]:``,[O]:l,[re]:Ie,[te]:S,[ne]:Ne,[fe]:Pe}),Be=``;T!==null&&(Be=ze(ye===void 0?T:Object.assign({},T,{name:ye})));let Ve=_ instanceof Function?_:_?_e:ve,He=Ve().indexOf(`:`)+1;if(Ee&&!xe)throw Error(`customLevels is required if useOnlyCustomLevels is set true`);if(we&&typeof we!=`function`)throw Error(`Unknown mixin type "${typeof we}" - expected "function"`);if(Me&&typeof Me!=`string`)throw Error(`Unknown msgPrefix type "${typeof Me}" - expected "string"`);d(be,xe,Ee);let Ue=f(xe,Ee);typeof r.emit==`function`&&r.emit(`message`,{code:`PINO_CONFIG`,config:{levels:Ue,messageKey:v,errorKey:b}}),h(Ce);let We=m(Ce);return Object.assign(t,{levels:Ue,[ue]:We,[de]:Ee,[ee]:r,[k]:Ve,[A]:He,[te]:S,[ne]:Ne,[re]:Ie,[ie]:Re,[ae]:Le,[oe]:v,[se]:b,[ce]:C,[me]:C?`,${JSON.stringify(C)}:{`:``,[O]:l,[le]:we,[he]:Te,[E]:Be,[fe]:Pe,[pe]:Oe,silent:w,onChild:je,[ge]:Me}),Object.setPrototypeOf(t,c()),p(t),t[j](be),t}n.exports=we,n.exports.destination=(e=process.stdout.fd)=>typeof e==`object`?(e.dest=C(e.dest||process.stdout.fd),b(e)):b({dest:C(e),minLength:0}),n.exports.transport=tf(),n.exports.multistream=lf(),n.exports.levels=f(),n.exports.stdSerializers=Ce,n.exports.stdTimeFunctions=Object.assign({},s),n.exports.symbols=l,n.exports.version=T,n.exports.default=we,n.exports.pino=we})),df=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=t(`tty`);function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!==`default`){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var i=r(n);let{env:a={},argv:o=[],platform:s=``}=typeof process>`u`?{}:process,c=`NO_COLOR`in a||o.includes(`--no-color`),l=`FORCE_COLOR`in a||o.includes(`--color`),u=s===`win32`,d=a.TERM===`dumb`,f=i&&i.isatty&&i.isatty(1)&&a.TERM&&!d,p=`CI`in a&&(`GITHUB_ACTIONS`in a||`GITLAB_CI`in a||`CIRCLECI`in a),m=!c&&(l||u&&!d||f||p),h=(e,t,n,r,i=t.substring(0,e)+r,a=t.substring(e+n.length),o=a.indexOf(n))=>i+(o<0?a:h(o,a,n,r)),g=(e,t,n,r,i)=>e<0?n+t+r:n+h(e,t,r,i)+r,_=(e,t,n=e,r=e.length+1)=>i=>i||!(i===``||i===void 0)?g((``+i).indexOf(t,r),i,e,t,n):``,v=(e,t,n)=>_(`\x1b[${e}m`,`\x1b[${t}m`,n),y={reset:v(0,0),bold:v(1,22,`\x1B[22m\x1B[1m`),dim:v(2,22,`\x1B[22m\x1B[2m`),italic:v(3,23),underline:v(4,24),inverse:v(7,27),hidden:v(8,28),strikethrough:v(9,29),black:v(30,39),red:v(31,39),green:v(32,39),yellow:v(33,39),blue:v(34,39),magenta:v(35,39),cyan:v(36,39),white:v(37,39),gray:v(90,39),bgBlack:v(40,49),bgRed:v(41,49),bgGreen:v(42,49),bgYellow:v(43,49),bgBlue:v(44,49),bgMagenta:v(45,49),bgCyan:v(46,49),bgWhite:v(47,49),blackBright:v(90,39),redBright:v(91,39),greenBright:v(92,39),yellowBright:v(93,39),blueBright:v(94,39),magentaBright:v(95,39),cyanBright:v(96,39),whiteBright:v(97,39),bgBlackBright:v(100,49),bgRedBright:v(101,49),bgGreenBright:v(102,49),bgYellowBright:v(103,49),bgBlueBright:v(104,49),bgMagentaBright:v(105,49),bgCyanBright:v(106,49),bgWhiteBright:v(107,49)},b=({useColor:e=m}={})=>e?y:Object.keys(y).reduce((e,t)=>({...e,[t]:String}),{}),{reset:x,bold:S,dim:C,italic:w,underline:T,inverse:E,hidden:D,strikethrough:O,black:k,red:A,green:ee,yellow:te,blue:ne,magenta:re,cyan:j,white:ie,gray:ae,bgBlack:oe,bgRed:se,bgGreen:ce,bgYellow:le,bgBlue:ue,bgMagenta:de,bgCyan:fe,bgWhite:pe,blackBright:me,redBright:he,greenBright:ge,yellowBright:_e,blueBright:ve,magentaBright:ye,cyanBright:be,whiteBright:xe,bgBlackBright:Se,bgRedBright:Ce,bgGreenBright:we,bgYellowBright:Te,bgBlueBright:Ee,bgMagentaBright:De,bgCyanBright:Oe,bgWhiteBright:ke}=b();e.bgBlack=oe,e.bgBlackBright=Se,e.bgBlue=ue,e.bgBlueBright=Ee,e.bgCyan=fe,e.bgCyanBright=Oe,e.bgGreen=ce,e.bgGreenBright=we,e.bgMagenta=de,e.bgMagentaBright=De,e.bgRed=se,e.bgRedBright=Ce,e.bgWhite=pe,e.bgWhiteBright=ke,e.bgYellow=le,e.bgYellowBright=Te,e.black=k,e.blackBright=me,e.blue=ne,e.blueBright=ve,e.bold=S,e.createColors=b,e.cyan=j,e.cyanBright=be,e.dim=C,e.gray=ae,e.green=ee,e.greenBright=ge,e.hidden=D,e.inverse=E,e.isColorSupported=m,e.italic=w,e.magenta=re,e.magentaBright=ye,e.red=A,e.redBright=he,e.reset=x,e.strikethrough=O,e.underline=T,e.white=ie,e.whiteBright=xe,e.yellow=te,e.yellowBright=_e})),ff=n(((e,t)=>{t.exports=n;function n(e,t){if(e&&t)return n(e)(t);if(typeof e!=`function`)throw TypeError(`need wrapper function`);return Object.keys(e).forEach(function(t){r[t]=e[t]}),r;function r(){for(var t=Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var r=e.apply(this,t),i=t[t.length-1];return typeof r==`function`&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}}})),pf=n(((e,t)=>{var n=ff();t.exports=n(r),t.exports.strict=n(i),r.proto=r(function(){Object.defineProperty(Function.prototype,`once`,{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,`onceStrict`,{value:function(){return i(this)},configurable:!0})});function r(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+` shouldn't be called more than once`,t.called=!1,t}})),mf=n(((e,t)=>{var n=pf(),r=function(){},i=global.Bare?queueMicrotask:process.nextTick.bind(process),a=function(e){return e.setHeader&&typeof e.abort==`function`},o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},s=function(e,t,c){if(typeof t==`function`)return s(e,null,t);t||={},c=n(c||r);var l=e._writableState,u=e._readableState,d=t.readable||t.readable!==!1&&e.readable,f=t.writable||t.writable!==!1&&e.writable,p=!1,m=function(){e.writable||h()},h=function(){f=!1,d||c.call(e)},g=function(){d=!1,f||c.call(e)},_=function(t){c.call(e,t?Error(`exited with error code: `+t):null)},v=function(t){c.call(e,t)},y=function(){i(b)},b=function(){if(!p&&(d&&!(u&&u.ended&&!u.destroyed)||f&&!(l&&l.ended&&!l.destroyed)))return c.call(e,Error(`premature close`))},x=function(){e.req.on(`finish`,h)};return a(e)?(e.on(`complete`,h),e.on(`abort`,y),e.req?x():e.on(`request`,x)):f&&!l&&(e.on(`end`,m),e.on(`close`,m)),o(e)&&e.on(`exit`,_),e.on(`end`,g),e.on(`finish`,h),t.error!==!1&&e.on(`error`,v),e.on(`close`,y),function(){p=!0,e.removeListener(`complete`,h),e.removeListener(`abort`,y),e.removeListener(`request`,x),e.req&&e.req.removeListener(`finish`,h),e.removeListener(`end`,m),e.removeListener(`close`,m),e.removeListener(`finish`,h),e.removeListener(`exit`,_),e.removeListener(`end`,g),e.removeListener(`error`,v),e.removeListener(`close`,y)}};t.exports=s})),hf=n(((e,n)=>{var r=pf(),i=mf(),a;try{a=t(`fs`)}catch{}var o=function(){},s=typeof process>`u`?!1:/^v?\.0/.test(process.version),c=function(e){return typeof e==`function`},l=function(e){return!s||!a?!1:(e instanceof(a.ReadStream||o)||e instanceof(a.WriteStream||o))&&c(e.close)},u=function(e){return e.setHeader&&c(e.abort)},d=function(e,t,n,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),i(e,{readable:t,writable:n},function(e){if(e)return a(e);s=!0,a()});var d=!1;return function(t){if(!s&&!d){if(d=!0,l(e))return e.close(o);if(u(e))return e.abort();if(c(e.destroy))return e.destroy();a(t||Error(`stream was destroyed`))}}},f=function(e){e()},p=function(e,t){return e.pipe(t)};n.exports=function(){var e=Array.prototype.slice.call(arguments),t=c(e[e.length-1]||o)&&e.pop()||o;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw Error(`pump requires two streams per minimum`);var n,r=e.map(function(i,a){var o=a<e.length-1;return d(i,o,a>0,function(e){n||=e,e&&r.forEach(f),!o&&(r.forEach(f),t(n))})});return e.reduce(p)}})),gf=n(((e,n)=>{let{Transform:r}=t(`stream`),{StringDecoder:i}=t(`string_decoder`),a=Symbol(`last`),o=Symbol(`decoder`);function s(e,t,n){let r;if(this.overflow){if(r=this[o].write(e).split(this.matcher),r.length===1)return n();r.shift(),this.overflow=!1}else this[a]+=this[o].write(e),r=this[a].split(this.matcher);this[a]=r.pop();for(let e=0;e<r.length;e++)try{l(this,this.mapper(r[e]))}catch(e){return n(e)}if(this.overflow=this[a].length>this.maxLength,this.overflow&&!this.skipOverflow){n(Error(`maximum buffer reached`));return}n()}function c(e){if(this[a]+=this[o].end(),this[a])try{l(this,this.mapper(this[a]))}catch(t){return e(t)}e()}function l(e,t){t!==void 0&&e.push(t)}function u(e){return e}function d(e,t,n){switch(e||=/\r?\n/,t||=u,n||={},arguments.length){case 1:typeof e==`function`?(t=e,e=/\r?\n/):typeof e==`object`&&!(e instanceof RegExp)&&!e[Symbol.split]&&(n=e,e=/\r?\n/);break;case 2:typeof e==`function`?(n=t,t=e,e=/\r?\n/):typeof t==`object`&&(n=t,t=u)}n=Object.assign({},n),n.autoDestroy=!0,n.transform=s,n.flush=c,n.readableObjectMode=!0;let l=new r(n);return l[a]=``,l[o]=new i(`utf8`),l.matcher=e,l.mapper=t,l.maxLength=n.maxLength,l.skipOverflow=n.skipOverflow||!1,l.overflow=!1,l._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},l}n.exports=d})),_f=n(((e,n)=>{let r=Symbol.for(`pino.metadata`),i=gf(),{Duplex:a}=t(`stream`),{parentPort:o,workerData:s}=t(`worker_threads`);function c(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}n.exports=function(e,t={}){let n=t.expectPinoConfig===!0&&s?.workerData?.pinoWillSendConfig===!0,u=t.parse===`lines`,d=typeof t.parseLine==`function`?t.parseLine:JSON.parse,f=t.close||l,p=i(function(e){let t;try{t=d(e)}catch(t){this.emit(`unknown`,e,t);return}if(t===null){this.emit(`unknown`,e,`Null value ignored`);return}return typeof t!=`object`&&(t={data:t,time:Date.now()}),p[r]&&(p.lastTime=t.time,p.lastLevel=t.level,p.lastObj=t),u?e:t},{autoDestroy:!0});if(p._destroy=function(e,t){let n=f(e,t);n&&typeof n.then==`function`&&n.then(t,t)},t.expectPinoConfig===!0&&s?.workerData?.pinoWillSendConfig!==!0&&setImmediate(()=>{p.emit(`error`,Error(`This transport is not compatible with the current version of pino. Please upgrade pino to the latest version.`))}),t.metadata!==!1&&(p[r]=!0,p.lastTime=0,p.lastLevel=0,p.lastObj=null),n){let e={},t=c();return o.on(`message`,function n(r){r.code===`PINO_CONFIG`&&(e=r.config,t.resolve(),o.off(`message`,n))}),Object.defineProperties(p,{levels:{get(){return e.levels}},messageKey:{get(){return e.messageKey}},errorKey:{get(){return e.errorKey}}}),t.then(m)}return m();function m(){let n=e(p);if(n&&typeof n.catch==`function`)n.catch(e=>{p.destroy(e)}),n=null;else if(t.enablePipelining&&n)return a.from({writable:p,readable:n});return p}};function l(e,t){process.nextTick(t,e)}})),vf=n(((e,t)=>{t.exports={DATE_FORMAT:`yyyy-mm-dd HH:MM:ss.l o`,DATE_FORMAT_SIMPLE:`HH:MM:ss.l`,ERROR_LIKE_KEYS:[`err`,`error`],MESSAGE_KEY:`msg`,LEVEL_KEY:`level`,LEVEL_LABEL:`levelLabel`,TIMESTAMP_KEY:`time`,LEVELS:{default:`USERLVL`,60:`FATAL`,50:`ERROR`,40:`WARN`,30:`INFO`,20:`DEBUG`,10:`TRACE`},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:[`pid`,`hostname`,`name`,`level`,`time`,`timestamp`,`caller`]}})),yf=n(((e,t)=>{t.exports=i;let{LEVELS:n,LEVEL_NAMES:r}=vf();function i(e,t,i){let a=e?t||n:Object.assign({},n,t),o=e?i||r:Object.assign({},r,i);return function(e){let t=`default`;return t=Number.isInteger(+e)?Object.prototype.hasOwnProperty.call(a,e)?e:t:Object.prototype.hasOwnProperty.call(o,e.toLowerCase())?o[e.toLowerCase()]:t,[a[t],t]}}})),bf=n(((e,t)=>{let n=e=>e,r={default:n,60:n,50:n,40:n,30:n,20:n,10:n,message:n,greyMessage:n,property:n},{createColors:i}=df(),a=yf(),o=i({useColor:!0}),{white:s,bgRed:c,red:l,yellow:u,green:d,blue:f,gray:p,cyan:m,magenta:h}=o,g={default:s,60:c,50:l,40:u,30:d,20:f,10:p,message:m,greyMessage:p,property:h};function _(e){return e.reduce(function(e,[t,n]){return e[t]=typeof o[n]==`function`?o[n]:s,e},{default:s,message:m,greyMessage:p,property:h})}function v(e){return function(t,n,{customLevels:r,customLevelNames:i}={}){let[o,s]=a(e,r,i)(t);return Object.prototype.hasOwnProperty.call(n,s)?n[s](o):n.default(o)}}function y(e){let t=v(e),n=function(e,n){return t(e,r,n)};return n.message=r.message,n.greyMessage=r.greyMessage,n.property=r.property,n.colors=i({useColor:!1}),n}function b(e){let t=v(e),n=function(e,n){return t(e,g,n)};return n.message=g.message,n.property=g.property,n.greyMessage=g.greyMessage,n.colors=o,n}function x(e,t){let n=_(e),r=t?n:Object.assign({},g,n),i=v(t),a=function(e,t){return i(e,r,t)};return a.colors=o,a.message=a.message||r.message,a.property=a.property||r.property,a.greyMessage=a.greyMessage||r.greyMessage,a}t.exports=function(e=!1,t,n){return e&&t!==void 0?x(t,n):e?b(n):y(n)}})),xf=n(((e,t)=>{t.exports=function(){}})),Sf=n(((e,n)=>{n.exports=o;let{isMainThread:r}=t(`node:worker_threads`),i=Yd(),a=xf();function o(e){let t=new i(e);return t.on(`error`,n),!e.sync&&r&&s(t),t;function n(e){if(e.code===`EPIPE`){t.write=a,t.end=a,t.flushSync=a,t.destroy=a;return}t.removeListener(`error`,n)}}function s(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=Xd();t.register(e,c),e.on(`close`,function(){t.unregister(e)})}}function c(e,t){e.destroyed||(t===`beforeExit`?(e.flush(),e.on(`drain`,function(){e.end()})):e.flushSync())}})),Cf=n(((e,t)=>{t.exports=n;function n(e){return e instanceof Date&&!Number.isNaN(e.getTime())}})),wf=n(((e,t)=>{t.exports=r;let n=Cf();function r(e){let t=new Date(e);return n(t)||(t=new Date(+e)),t}})),Tf=n(((e,t)=>{t.exports=n;function n(e){let t=[],n=!1,r=``;for(let i=0;i<e.length;i++){let a=e.charAt(i);if(a===`\\`){n=!0;continue}if(n){n=!1,r+=a;continue}if(a===`.`){t.push(r),r=``;continue}r+=a}return r.length&&t.push(r),t}})),Ef=n(((e,t)=>{t.exports=r;let n=Tf();function r(e,t){let r=Array.isArray(t)?t:n(t);for(let t of r){if(!Object.prototype.hasOwnProperty.call(e,t))return;e=e[t]}return e}})),Df=n(((e,t)=>{t.exports=i;let n=Ef(),r=Tf();function i(e,t){let i=r(t),a=i.pop();e=n(e,i),typeof e==`object`&&e&&Object.prototype.hasOwnProperty.call(e,a)&&delete e[a]}})),Of=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Function.prototype.toString,n=Object.create,r=Object.prototype.toString,i=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}();function a(){return new i}function o(){return new WeakMap}var s=typeof WeakMap<`u`?o:a;function c(e){if(!e)return n(null);var r=e.constructor;if(r===Object)return e===Object.prototype?{}:n(e);if(r&&~t.call(r).indexOf(`[native code]`))try{return new r}catch{}return n(e)}function l(e){var t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t}function u(e){return e.flags}var d=/test/g.flags===`g`?u:l;function f(e){var t=r.call(e);return t.substring(8,t.length-1)}function p(e){return e[Symbol.toStringTag]||f(e)}var m=typeof Symbol<`u`?p:f,h=Object.defineProperty,g=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,y=Object.prototype,b=y.hasOwnProperty,x=y.propertyIsEnumerable,S=typeof v==`function`;function C(e){return _(e).concat(v(e))}var w=S?C:_;function T(e,t,n){for(var r=w(e),i=0,a=r.length,o=void 0,s=void 0;i<a;++i)if(o=r[i],!(o===`callee`||o===`caller`)){if(s=g(e,o),!s){t[o]=n.copier(e[o],n);continue}!s.get&&!s.set&&(s.value=n.copier(s.value,n));try{h(t,o,s)}catch{t[o]=s.value}}return t}function E(e,t){var n=new t.Constructor;t.cache.set(e,n);for(var r=0,i=e.length;r<i;++r)n[r]=t.copier(e[r],t);return n}function D(e,t){var n=new t.Constructor;return t.cache.set(e,n),T(e,n,t)}function O(e,t){return e.slice(0)}function k(e,t){return e.slice(0,e.size,e.type)}function A(e,t){return new t.Constructor(O(e.buffer))}function ee(e,t){return new t.Constructor(e.getTime())}function te(e,t){var n=new t.Constructor;return t.cache.set(e,n),e.forEach(function(e,r){n.set(r,t.copier(e,t))}),n}function ne(e,t){return T(e,te(e,t),t)}function re(e,t){var n=c(t.prototype);for(var r in t.cache.set(e,n),e)b.call(e,r)&&(n[r]=t.copier(e[r],t));return n}function j(e,t){var n=c(t.prototype);for(var r in t.cache.set(e,n),e)b.call(e,r)&&(n[r]=t.copier(e[r],t));for(var i=v(e),a=0,o=i.length,s=void 0;a<o;++a)s=i[a],x.call(e,s)&&(n[s]=t.copier(e[s],t));return n}var ie=S?j:re;function ae(e,t){var n=c(t.prototype);return t.cache.set(e,n),T(e,n,t)}function oe(e,t){return new t.Constructor(e.valueOf())}function se(e,t){var n=new t.Constructor(e.source,d(e));return n.lastIndex=e.lastIndex,n}function ce(e,t){return e}function le(e,t){var n=new t.Constructor;return t.cache.set(e,n),e.forEach(function(e){n.add(t.copier(e,t))}),n}function ue(e,t){return T(e,le(e,t),t)}var de=Array.isArray,fe=Object.assign,pe=Object.getPrototypeOf||(function(e){return e.__proto__}),me={array:E,arrayBuffer:O,blob:k,dataView:A,date:ee,error:ce,map:te,object:ie,regExp:se,set:le},he=fe({},me,{array:D,map:ne,object:ae,set:ue});function ge(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:oe,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:oe,Object:e.object,Promise:ce,RegExp:e.regExp,Set:e.set,String:oe,WeakMap:ce,WeakSet:ce,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}function _e(e){var t=ge(fe({},me,e)),n=t.Array,r=t.Object;function i(e,i){if(i.prototype=i.Constructor=void 0,!e||typeof e!=`object`)return e;if(i.cache.has(e))return i.cache.get(e);if(i.prototype=pe(e),i.Constructor=i.prototype&&i.prototype.constructor,!i.Constructor||i.Constructor===Object)return r(e,i);if(de(e))return n(e,i);var a=t[m(e)];return a?a(e,i):typeof e.then==`function`?e:r(e,i)}return function(e){return i(e,{Constructor:void 0,cache:s(),copier:i,prototype:void 0})}}function ve(e){return _e(fe({},he,e))}var ye=ve({}),be=_e({});e.copyStrict=ye,e.createCopier=_e,e.createStrictCopier=ve,e.default=be})),kf=n(((e,t)=>{t.exports=a;let{createCopier:n}=Of(),r=n({}),i=Df();function a({log:e,context:t}){let{ignoreKeys:n,includeKeys:a}=t,o=r(e);if(a){let e={};return a.forEach(t=>{e[t]=o[t]}),e}return n.forEach(e=>{i(o,e)}),o}})),Af=n(((e,t)=>{function n(e){"@babel/helpers - typeof";return n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n(e)}(function(r){var i=arguments,a=function(){var e=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(r,d,f,p){if(i.length===1&&u(r)===`string`&&!/\d/.test(r)&&(d=r,r=void 0),r=r||r===0?r:new Date,r instanceof Date||(r=new Date(r)),isNaN(r))throw TypeError(`Invalid date`);d=String(a.masks[d]||d||a.masks.default);var m=d.slice(0,4);(m===`UTC:`||m===`GMT:`)&&(d=d.slice(4),f=!0,m===`GMT:`&&(p=!0));var h=function(){return f?`getUTC`:`get`},g=function(){return r[h()+`Date`]()},_=function(){return r[h()+`Day`]()},v=function(){return r[h()+`Month`]()},y=function(){return r[h()+`FullYear`]()},b=function(){return r[h()+`Hours`]()},x=function(){return r[h()+`Minutes`]()},S=function(){return r[h()+`Seconds`]()},C=function(){return r[h()+`Milliseconds`]()},w=function(){return f?0:r.getTimezoneOffset()},T=function(){return c(r)},E=function(){return l(r)},D={d:function(){return g()},dd:function(){return o(g())},ddd:function(){return a.i18n.dayNames[_()]},DDD:function(){return s({y:y(),m:v(),d:g(),_:h(),dayName:a.i18n.dayNames[_()],short:!0})},dddd:function(){return a.i18n.dayNames[_()+7]},DDDD:function(){return s({y:y(),m:v(),d:g(),_:h(),dayName:a.i18n.dayNames[_()+7]})},m:function(){return v()+1},mm:function(){return o(v()+1)},mmm:function(){return a.i18n.monthNames[v()]},mmmm:function(){return a.i18n.monthNames[v()+12]},yy:function(){return String(y()).slice(2)},yyyy:function(){return o(y(),4)},h:function(){return b()%12||12},hh:function(){return o(b()%12||12)},H:function(){return b()},HH:function(){return o(b())},M:function(){return x()},MM:function(){return o(x())},s:function(){return S()},ss:function(){return o(S())},l:function(){return o(C(),3)},L:function(){return o(Math.floor(C()/10))},t:function(){return b()<12?a.i18n.timeNames[0]:a.i18n.timeNames[1]},tt:function(){return b()<12?a.i18n.timeNames[2]:a.i18n.timeNames[3]},T:function(){return b()<12?a.i18n.timeNames[4]:a.i18n.timeNames[5]},TT:function(){return b()<12?a.i18n.timeNames[6]:a.i18n.timeNames[7]},Z:function(){return p?`GMT`:f?`UTC`:(String(r).match(t)||[``]).pop().replace(n,``).replace(/GMT\+0000/g,`UTC`)},o:function(){return(w()>0?`-`:`+`)+o(Math.floor(Math.abs(w())/60)*100+Math.abs(w())%60,4)},p:function(){return(w()>0?`-`:`+`)+o(Math.floor(Math.abs(w())/60),2)+`:`+o(Math.floor(Math.abs(w())%60),2)},S:function(){return[`th`,`st`,`nd`,`rd`][g()%10>3?0:(g()%100-g()%10!=10)*g()%10]},W:function(){return T()},WW:function(){return o(T())},N:function(){return E()}};return d.replace(e,function(e){return e in D?D[e]():e.slice(1,e.length-1)})}}();a.masks={default:`ddd mmm dd yyyy HH:MM:ss`,shortDate:`m/d/yy`,paddedShortDate:`mm/dd/yyyy`,mediumDate:`mmm d, yyyy`,longDate:`mmmm d, yyyy`,fullDate:`dddd, mmmm d, yyyy`,shortTime:`h:MM TT`,mediumTime:`h:MM:ss TT`,longTime:`h:MM:ss TT Z`,isoDate:`yyyy-mm-dd`,isoTime:`HH:MM:ss`,isoDateTime:`yyyy-mm-dd'T'HH:MM:sso`,isoUtcDateTime:`UTC:yyyy-mm-dd'T'HH:MM:ss'Z'`,expiresHeaderFormat:`ddd, dd mmm yyyy HH:MM:ss Z`},a.i18n={dayNames:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],monthNames:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`,`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],timeNames:[`a`,`p`,`am`,`pm`,`A`,`P`,`AM`,`PM`]};var o=function(e,t){for(e=String(e),t||=2;e.length<t;)e=`0`+e;return e},s=function(e){var t=e.y,n=e.m,r=e.d,i=e._,a=e.dayName,o=e.short,s=o===void 0?!1:o,c=new Date,l=new Date;l.setDate(l[i+`Date`]()-1);var u=new Date;return u.setDate(u[i+`Date`]()+1),function(){return c[i+`FullYear`]()}()===t&&function(){return c[i+`Month`]()}()===n&&function(){return c[i+`Date`]()}()===r?s?`Tdy`:`Today`:function(){return l[i+`FullYear`]()}()===t&&function(){return l[i+`Month`]()}()===n&&function(){return l[i+`Date`]()}()===r?s?`Ysd`:`Yesterday`:function(){return u[i+`FullYear`]()}()===t&&function(){return u[i+`Month`]()}()===n&&function(){return u[i+`Date`]()}()===r?s?`Tmw`:`Tomorrow`:a},c=function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-r);var i=(t-n)/(864e5*7);return 1+Math.floor(i)},l=function(e){var t=e.getDay();return t===0&&(t=7),t},u=function(e){return e===null?`null`:e===void 0?`undefined`:n(e)===`object`?Array.isArray(e)?`array`:{}.toString.call(e).slice(8,-1).toLowerCase():n(e)};typeof define==`function`&&define.amd?define(function(){return a}):(e===void 0?`undefined`:n(e))===`object`?t.exports=a:r.dateFormat=a})(void 0)})),jf=n(((e,t)=>{t.exports=s;let{DATE_FORMAT:n,DATE_FORMAT_SIMPLE:r}=vf(),i=Af(),a=wf(),o=Cf();function s(e,t=!1){if(t===!1)return e;let s=a(e);if(!o(s))return e;if(t===!0)return i(s,r);let c=t.toUpperCase();if(c===`SYS:STANDARD`)return i(s,n);let l=c.substr(0,4);return l===`SYS:`||l===`UTC:`?l===`UTC:`?i(s,t):i(s,t.slice(4)):i(s,`UTC:${t}`)}})),Mf=n(((e,t)=>{t.exports=n;function n(e){return e?typeof e==`string`?e.split(`,`).reduce((e,t,n)=>{let[r,i=n]=t.split(`:`);return e[r.toLowerCase()]=i,e},{}):Object.prototype.toString.call(e)===`[object Object]`?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}:{}}})),Nf=n(((e,t)=>{t.exports=n;function n(e){return e?typeof e==`string`?e.split(`,`).reduce((e,t,n)=>{let[r,i=n]=t.split(`:`);return e[i]=r.toUpperCase(),e},{default:`USERLVL`}):Object.prototype.toString.call(e)===`[object Object]`?Object.keys(e).reduce((t,n)=>(t[e[n]]=n.toUpperCase(),t),{default:`USERLVL`}):{}:{}}})),Pf=n(((e,t)=>{t.exports=r;let n=Ef();function r(e,t){return e=e.replace(/{if (.*?)}(.*?){end}/g,r),e=e.replace(/{if (.*?)}/g,``),e=e.replace(/{end}/g,``),e.replace(/\s+/g,` `).trim();function r(e,r,i){let a=n(t,r);return a&&i.includes(r)?i.replace(RegExp(`{`+r+`}`,`g`),a):``}}})),Ff=n(((e,t)=>{t.exports=n;function n(e){return Object.prototype.toString.apply(e)===`[object Object]`}})),If=n(((e,t)=>{t.exports=n;function n({input:e,ident:t=` `,eol:n=`
78
- `}){let r=e.split(/\r?\n/);for(let e=1;e<r.length;e+=1)r[e]=t+r[e];return r.join(n)}})),Lf=n(((e,t)=>{t.exports=s;let{LEVEL_NAMES:n}=vf(),r=bf(),i=Nf(),a=Mf(),o=yf();function s(e){let t=e.crlf?`\r
79
- `:`
80
- `,{customPrettifiers:s,errorLikeObjectKeys:c,hideObject:l,levelFirst:u,levelKey:d,levelLabel:f,messageFormat:p,messageKey:m,minimumLevel:h,singleLine:g,timestampKey:_,translateTime:v}=e,y=e.errorProps.split(`,`),b=typeof e.useOnlyCustomProps==`boolean`?e.useOnlyCustomProps:e.useOnlyCustomProps===`true`,x=i(e.customLevels),S=a(e.customLevels),C=o(b,x,S),w;if(e.customColors)if(typeof e.customColors==`string`)w=e.customColors.split(`,`).reduce((t,r)=>{let[i,a]=r.split(`:`),o=(b?e.customLevels:S[i]!==void 0)?S[i]:n[i],s=o===void 0?i:o;return t.push([s,a]),t},[]);else if(typeof e.customColors==`object`)w=Object.keys(e.customColors).reduce((t,r)=>{let[i,a]=[r,e.customColors[r]],o=(b?e.customLevels:S[i]!==void 0)?S[i]:n[i],s=o===void 0?i:o;return t.push([s,a]),t},[]);else throw Error(`options.customColors must be of type string or object.`);let T={customLevels:x,customLevelNames:S};b===!0&&!e.customLevels&&(T.customLevels=void 0,T.customLevelNames=void 0);let E=e.include===void 0?void 0:new Set(e.include.split(`,`)),D=!E&&e.ignore?new Set(e.ignore.split(`,`)):void 0,O=r(e.colorize,w,b),k=e.colorizeObjects?O:r(!1,[],!1);return{EOL:t,IDENT:` `,colorizer:O,customColors:w,customLevelNames:S,customLevels:x,customPrettifiers:s,customProperties:T,errorLikeObjectKeys:c,errorProps:y,getLevelLabelData:C,hideObject:l,ignoreKeys:D,includeKeys:E,levelFirst:u,levelKey:d,levelLabel:f,messageFormat:p,messageKey:m,minimumLevel:h,objectColorizer:k,singleLine:g,timestampKey:_,translateTime:v,useOnlyCustomProps:b}}})),Rf=n(((e,t)=>{t.exports=s,s.default=s,s.stable=d,s.stableStringify=d;var n=`[...]`,r=`[Circular]`,i=[],a=[];function o(){return{depthLimit:2**53-1,edgesLimit:2**53-1}}function s(e,t,n,r){r===void 0&&(r=o()),l(e,``,0,[],void 0,0,r);var s;try{s=a.length===0?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var c=i.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function c(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get===void 0?(r[n]=e,i.push([r,n,t])):o.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,o])):a.push([t,n,e])}function l(e,t,i,a,o,s,u){s+=1;var d;if(typeof e==`object`&&e){for(d=0;d<a.length;d++)if(a[d]===e){c(r,e,t,o);return}if(u.depthLimit!==void 0&&s>u.depthLimit){c(n,e,t,o);return}if(u.edgesLimit!==void 0&&i+1>u.edgesLimit){c(n,e,t,o);return}if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,a,e,s,u);else{var f=Object.keys(e);for(d=0;d<f.length;d++){var p=f[d];l(e[p],p,d,a,e,s,u)}}a.pop()}}function u(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){r===void 0&&(r=o());var s=f(e,``,0,[],void 0,0,r)||e,c;try{c=a.length===0?JSON.stringify(s,t,n):JSON.stringify(s,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var l=i.pop();l.length===4?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return c}function f(e,t,a,o,s,l,d){l+=1;var p;if(typeof e==`object`&&e){for(p=0;p<o.length;p++)if(o[p]===e){c(r,e,t,s);return}try{if(typeof e.toJSON==`function`)return}catch{return}if(d.depthLimit!==void 0&&l>d.depthLimit){c(n,e,t,s);return}if(d.edgesLimit!==void 0&&a+1>d.edgesLimit){c(n,e,t,s);return}if(o.push(e),Array.isArray(e))for(p=0;p<e.length;p++)f(e[p],p,p,o,e,l,d);else{var m={},h=Object.keys(e).sort(u);for(p=0;p<h.length;p++){var g=h[p];f(e[g],g,p,o,e,l,d),m[g]=e[g]}if(s!==void 0)i.push([s,t,e]),s[t]=m;else return m}o.pop()}}function p(e){return e=e===void 0?function(e,t){return t}:e,function(t,n){if(a.length>0)for(var r=0;r<a.length;r++){var i=a[r];if(i[1]===t&&i[0]===n){n=i[2],a.splice(r,1);break}}return e.call(this,t,n)}}})),zf=n(((e,t)=>{t.exports=r;let n=If();function r({keyName:e,lines:t,eol:r,ident:i}){let a=``,o=`${i}${e}: ${n({input:t,ident:i,eol:r})}${r}`.split(r);for(let e=0;e<o.length;e+=1){e!==0&&(a+=r);let t=o[e];if(/^\s*"stack"/.test(t)){let e=/^(\s*"stack":)\s*(".*"),?$/.exec(t);if(e&&e.length===3){let n=/^\s*/.exec(t)[0].length+4,i=` `.repeat(n),o=e[2];a+=e[1]+r+i+JSON.parse(o).replace(/\n/g,r+i)}else a+=t}else a+=t}return a}})),Bf=n(((e,t)=>{t.exports=o;let{LOGGER_KEYS:n}=vf(),r=Rf(),i=If(),a=zf();function o({log:e,excludeLoggerKeys:t=!0,skipKeys:o=[],context:s}){let{EOL:c,IDENT:l,customPrettifiers:u,errorLikeObjectKeys:d,objectColorizer:f,singleLine:p,colorizer:m}=s,h=[].concat(o);t===!0&&Array.prototype.push.apply(h,n);let g=``,{plain:_,errors:v}=Object.entries(e).reduce(({plain:t,errors:n},[r,i])=>{if(h.includes(r)===!1){let a=typeof u[r]==`function`?u[r](i,r,e,{colors:m.colors}):i;d.includes(r)?n[r]=a:t[r]=a}return{plain:t,errors:n}},{plain:{},errors:{}});return p?(Object.keys(_).length>0&&(g+=f.greyMessage(r(_))),g+=c,g=g.replace(/\\\\/gi,`\\`)):Object.entries(_).forEach(([e,t])=>{let n=typeof u[e]==`function`?t:r(t,null,2);if(n===void 0)return;n=n.replace(/\\\\/gi,`\\`);let a=i({input:n,ident:l,eol:c});g+=`${l}${f.property(e)}:${a.startsWith(c)?``:` `}${a}${c}`}),Object.entries(v).forEach(([e,t])=>{let n=typeof u[e]==`function`?t:r(t,null,2);n!==void 0&&(g+=a({keyName:e,lines:n,eol:c,ident:l}))}),g}})),Vf=n(((e,t)=>{t.exports=o;let{LOGGER_KEYS:n}=vf(),r=Ff(),i=If(),a=Bf();function o({log:e,context:t}){let{EOL:o,IDENT:s,errorProps:c,messageKey:l}=t,u=e.stack,d=`${s}${i({input:u,ident:s,eol:o})}${o}`;if(c.length>0){let i=n.concat(l,`type`,`stack`),u;u=c[0]===`*`?Object.keys(e).filter(e=>i.includes(e)===!1):c.filter(e=>i.includes(e)===!1);for(let n=0;n<u.length;n+=1){let i=u[n];if(i in e){if(r(e[i])){let n=a({log:e[i],excludeLoggerKeys:!1,context:{...t,IDENT:s+s}});d=`${d}${s}${i}: {${o}${n}${s}}${o}`;continue}d=`${d}${s}${i}: ${e[i]}${o}`}}}return d}})),Hf=n(((e,t)=>{t.exports=r;let n=Ef();function r({log:e,context:t}){let{colorizer:r,customLevels:i,customLevelNames:a,levelKey:o,getLevelLabelData:s}=t,c=t.customPrettifiers?.level,l=n(e,o);if(l===void 0)return;let u=r(l,{customLevels:i,customLevelNames:a});if(c){let[t]=s(l);return c(l,o,e,{label:t,labelColorized:u,colors:r.colors})}return u}})),Uf=n(((e,t)=>{t.exports=a;let{LEVELS:n}=vf(),r=Ef(),i=Pf();function a({log:e,context:t}){let{colorizer:a,customLevels:o,levelKey:s,levelLabel:c,messageFormat:l,messageKey:u,useOnlyCustomProps:d}=t;if(l&&typeof l==`string`){let t=i(l,e),u=String(t).replace(/{([^{}]+)}/g,function(t,i){let a;return i===c&&(a=r(e,s))!==void 0?(d?o===void 0:o[a]===void 0)?n[a]:o[a]:r(e,i)||``});return a.message(u)}if(l&&typeof l==`function`){let t=l(e,u,c,{colors:a.colors});return a.message(t)}if(u in e&&!(typeof e[u]!=`string`&&typeof e[u]!=`number`&&typeof e[u]!=`boolean`))return a.message(e[u])}})),Wf=n(((e,t)=>{t.exports=n;function n({log:e,context:t}){let{customPrettifiers:n,colorizer:r}=t,i=``;if(e.name||e.pid||e.hostname){if(i+=`(`,e.name&&(i+=n.name?n.name(e.name,`name`,e,{colors:r.colors}):e.name),e.pid){let t=n.pid?n.pid(e.pid,`pid`,e,{colors:r.colors}):e.pid;e.name&&e.pid?i+=`/`+t:i+=t}if(e.hostname){let t=n.hostname?n.hostname(e.hostname,`hostname`,e,{colors:r.colors}):e.hostname;i+=`${i===`(`?`on`:` on`} ${t}`}i+=`)`}if(e.caller){let t=n.caller?n.caller(e.caller,`caller`,e,{colors:r.colors}):e.caller;i+=`${i===``?``:` `}<${t}>`}if(i!==``)return i}})),Gf=n(((e,t)=>{t.exports=r;let n=jf();function r({log:e,context:t}){let{timestampKey:r,translateTime:i}=t,a=t.customPrettifiers?.time,o=null;if(r in e?o=e[r]:`timestamp`in e&&(o=e.timestamp),o===null)return;let s=i?n(o,i):o;return a?a(s):`[${s}]`}})),Kf=n(((e,t)=>{t.exports={buildSafeSonicBoom:Sf(),createDate:wf(),deleteLogProperty:Df(),filterLog:kf(),formatTime:jf(),getPropertyValue:Ef(),handleCustomLevelsNamesOpts:Mf(),handleCustomLevelsOpts:Nf(),interpretConditionals:Pf(),isObject:Ff(),isValidDate:Cf(),joinLinesWithIndentation:If(),noop:xf(),parseFactoryOptions:Lf(),prettifyErrorLog:Vf(),prettifyError:zf(),prettifyLevel:Hf(),prettifyMessage:Uf(),prettifyMetadata:Wf(),prettifyObject:Bf(),prettifyTime:Gf(),splitPropertyKey:Tf(),getLevelLabelData:yf()}})),qf=n(((e,t)=>{let n=typeof Buffer<`u`,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function a(e,t,a){a==null&&typeof t==`object`&&t&&(a=t,t=void 0),n&&Buffer.isBuffer(e)&&(e=e.toString()),e&&e.charCodeAt(0)===65279&&(e=e.slice(1));let s=JSON.parse(e,t);if(typeof s!=`object`||!s)return s;let c=a&&a.protoAction||`error`,l=a&&a.constructorAction||`error`;if(c===`ignore`&&l===`ignore`)return s;if(c!==`ignore`&&l!==`ignore`){if(r.test(e)===!1&&i.test(e)===!1)return s}else if(c!==`ignore`&&l===`ignore`){if(r.test(e)===!1)return s}else if(i.test(e)===!1)return s;return o(s,{protoAction:c,constructorAction:l,safe:a&&a.safe})}function o(e,{protoAction:t=`error`,constructorAction:n=`error`,safe:r}={}){let i=[e];for(;i.length;){let e=i;i=[];for(let a of e){if(t!==`ignore`&&Object.prototype.hasOwnProperty.call(a,`__proto__`)){if(r===!0)return null;if(t===`error`)throw SyntaxError(`Object contains forbidden prototype property`);delete a.__proto__}if(n!==`ignore`&&Object.prototype.hasOwnProperty.call(a,`constructor`)&&a.constructor!==null&&typeof a.constructor==`object`&&Object.prototype.hasOwnProperty.call(a.constructor,`prototype`)){if(r===!0)return null;if(n===`error`)throw SyntaxError(`Object contains forbidden prototype property`);delete a.constructor}for(let e in a){let t=a[e];t&&typeof t==`object`&&i.push(t)}}}return e}function s(e,t,n){let{stackTraceLimit:r}=Error;Error.stackTraceLimit=0;try{return a(e,t,n)}finally{Error.stackTraceLimit=r}}function c(e,t){let{stackTraceLimit:n}=Error;Error.stackTraceLimit=0;try{return a(e,t,{safe:!0})}catch{return}finally{Error.stackTraceLimit=n}}t.exports=s,t.exports.default=s,t.exports.parse=s,t.exports.safeParse=c,t.exports.scan=o})),Jf=n(((e,t)=>{t.exports=h;let n=qf(),r=Ff(),i=Vf(),a=Hf(),o=Uf(),s=Wf(),c=Bf(),l=Gf(),u=kf(),{LEVELS:d,LEVEL_KEY:f,LEVEL_NAMES:p}=vf(),m=e=>{try{return{value:n.parse(e,{protoAction:`remove`})}}catch(e){return{err:e}}};function h(e){let t;if(r(e))t=e;else{let n=m(e);if(n.err||!r(n.value))return e+this.EOL;t=n.value}if(this.minimumLevel){let e;e=this.useOnlyCustomProps?this.customLevels:this.customLevelNames[this.minimumLevel]!==void 0;let n;if(n=e?this.customLevelNames[this.minimumLevel]:p[this.minimumLevel],n||=typeof this.minimumLevel==`string`?p[this.minimumLevel]:p[d[this.minimumLevel].toLowerCase()],t[this.levelKey===void 0?f:this.levelKey]<n)return}let n=o({log:t,context:this.context});(this.ignoreKeys||this.includeKeys)&&(t=u({log:t,context:this.context}));let h=a({log:t,context:{...this.context,...this.context.customProperties}}),g=s({log:t,context:this.context}),_=l({log:t,context:this.context}),v=``;if(this.levelFirst&&h&&(v=`${h}`),_&&v===``?v=`${_}`:_&&(v=`${v} ${_}`),!this.levelFirst&&h&&(v=v.length>0?`${v} ${h}`:h),g&&(v=v.length>0?`${v} ${g}:`:g),v.endsWith(`:`)===!1&&v!==``&&(v+=`:`),n!==void 0&&(v=v.length>0?`${v} ${n}`:n),v.length>0&&!this.singleLine&&(v+=this.EOL),t.type===`Error`&&typeof t.stack==`string`){let e=i({log:t,context:this.context});this.singleLine&&(v+=this.EOL),v+=e}else if(this.hideObject===!1){let e=[this.messageKey,this.levelKey,this.timestampKey].map(e=>e.replaceAll(/\\/g,``)).filter(e=>typeof t[e]==`string`||typeof t[e]==`number`||typeof t[e]==`boolean`),n=c({log:t,skipKeys:e,context:this.context});this.singleLine&&!/^\s$/.test(n)&&(v+=` `),v+=n}return v}})),Yf=n(((e,n)=>{let{isColorSupported:r}=df(),i=hf(),{Transform:a}=t(`node:stream`),o=_f(),s=bf(),{ERROR_LIKE_KEYS:c,LEVEL_KEY:l,LEVEL_LABEL:u,MESSAGE_KEY:d,TIMESTAMP_KEY:f}=vf(),{buildSafeSonicBoom:p,parseFactoryOptions:m}=Kf(),h=Jf(),g={colorize:r,colorizeObjects:!0,crlf:!1,customColors:null,customLevels:null,customPrettifiers:{},errorLikeObjectKeys:c,errorProps:``,hideObject:!1,ignore:`hostname`,include:void 0,levelFirst:!1,levelKey:l,levelLabel:u,messageFormat:null,messageKey:d,minimumLevel:void 0,outputStream:process.stdout,singleLine:!1,timestampKey:f,translateTime:!0,useOnlyCustomProps:!0};function _(e){let t=m(Object.assign({},g,e));return h.bind({...t,context:t})}function v(e={}){let t=_(e),n;return o(function(r){r.on(`message`,function n(i){!i||i.code!==`PINO_CONFIG`||(Object.assign(e,{messageKey:i.config.messageKey,errorLikeObjectKeys:Array.from(new Set([...e.errorLikeObjectKeys||c,i.config.errorKey])),customLevels:i.config.levels.values}),t=_(e),r.off(`message`,n))});let o=new a({objectMode:!0,autoDestroy:!0,transform(e,n,r){r(null,t(e))}});return n=typeof e.destination==`object`&&typeof e.destination.write==`function`?e.destination:p({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),r.on(`unknown`,function(e){n.write(e+`
81
- `)}),i(r,o,n),o},{parse:`lines`,close(e,t){n.on(`close`,()=>{t(e)})}})}n.exports=v,n.exports.build=v,n.exports.PinoPretty=v,n.exports.prettyFactory=_,n.exports.colorizerFactory=s,n.exports.isColorSupported=r,n.exports.default=v})),Xf=r(uf(),1),Zf=r(Yf(),1);async function Qf(e){let t=[],n={level:e.level||`info`,redact:e.redact||[],...t.length>0&&{transport:t.length===1?t[0]:{targets:t}}};try{return(0,Xf.default)(n,process.env.NODE_ENV!==`production`&&!process.env.VITEST?(0,Zf.default)():void 0)}catch{return(0,Xf.default)(n)}}var $f=i({default:()=>hb,languages:()=>tv,options:()=>iv,parsers:()=>av,printers:()=>mb}),ep=Object.defineProperty,tp=e=>{throw TypeError(e)},np=(e,t,n)=>t in e?ep(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rp=(e,t)=>{for(var n in t)ep(e,n,{get:t[n],enumerable:!0})},ip=(e,t,n)=>np(e,typeof t==`symbol`?t:t+``,n),ap=(e,t,n)=>t.has(e)||tp(`Cannot `+n),op=(e,t,n)=>(ap(e,t,`read from private field`),n?n.call(e):t.get(e)),sp=(e,t,n)=>t.has(e)?tp(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),cp=(e,t,n,r)=>(ap(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),lp={};rp(lp,{languages:()=>tv,options:()=>iv,parsers:()=>av,printers:()=>mb});var up=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},dp=`string`,fp=`array`,pp=`cursor`,mp=`indent`,hp=`align`,gp=`trim`,_p=`group`,vp=`fill`,yp=`if-break`,bp=`indent-if-break`,xp=`line-suffix`,Sp=`line-suffix-boundary`,Cp=`line`,wp=`label`,Tp=`break-parent`,Ep=new Set([pp,mp,hp,gp,_p,vp,yp,bp,xp,Sp,Cp,wp,Tp]),Dp=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t==`string`?t[n<0?t.length+n:n]:t.at(n)};function Op(e){if(typeof e==`string`)return dp;if(Array.isArray(e))return fp;if(!e)return;let{type:t}=e;if(Ep.has(t))return t}var kp=Op,Ap=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function jp(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
82
- Expected it to be 'string' or 'object'.`;if(kp(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=Ap([...Ep].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
83
- Expected it to be ${r}.`}var Mp=class extends Error{name=`InvalidDocError`;constructor(e){super(jp(e)),this.doc=e}};function Np(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(kp(e)){case fp:return t(e.map(r));case vp:return t({...e,parts:e.parts.map(r)});case yp:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case _p:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case hp:case mp:case bp:case wp:case xp:return t({...e,contents:r(e.contents)});case dp:case pp:case gp:case Sp:case Cp:case Tp:return t(e);default:throw new Mp(e)}}}function Pp(e,t=Zp){return Np(e,e=>typeof e==`string`?Qp(t,e.split(`
84
- `)):e)}var Fp=()=>{},Ip=Fp,Lp=Fp,Rp=Fp;function zp(e){return Ip(e),{type:mp,contents:e}}function Bp(e,t){return Ip(t),{type:hp,contents:t,n:e}}function Vp(e,t={}){return Ip(e),Lp(t.expandedStates,!0),{type:_p,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Hp(e){return Bp(-1/0,e)}function Up(e){return Bp({type:`root`},e)}function Wp(e){return Rp(e),{type:vp,parts:e}}function Gp(e,t=``,n={}){return Ip(e),t!==``&&Ip(t),{type:yp,breakContents:e,flatContents:t,groupId:n.groupId}}function Kp(e,t){return Ip(e),{type:bp,contents:e,groupId:t.groupId,negate:t.negate}}var qp={type:Tp},Jp={type:Cp,hard:!0},Yp={type:Cp,hard:!0,literal:!0},W={type:Cp},Xp={type:Cp,soft:!0},G=[Jp,qp],Zp=[Yp,qp];function Qp(e,t){Ip(e),Lp(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}var $p=`'`,em=`"`;function tm(e,t){let n=t===!0||t===$p?$p:em,r=n===$p?em:$p,i=0,a=0;for(let t of e)t===n?i++:t===r&&a++;return i>a?r:n}var nm=tm;function rm(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var im,am=class{constructor(e){sp(this,im),cp(this,im,new Set(e))}getLeadingWhitespaceCount(e){let t=op(this,im),n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=op(this,im),n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return op(this,im).has(e.charAt(0))}hasTrailingWhitespace(e){return op(this,im).has(Dp(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${rm([...op(this,im)].join(``))}]+`,r=new RegExp(t?`(${n})`:n,`u`);return e.split(r)}hasWhitespaceCharacter(e){let t=op(this,im);return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=op(this,im);return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=op(this,im);return Array.prototype.every.call(e,e=>t.has(e))}};im=new WeakMap;var om=new am([` `,`
85
- `,`\f`,`\r`,` `]),sm=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}};function cm(e){return e?.type===`front-matter`}var lm=cm,um=new Set([`sourceSpan`,`startSourceSpan`,`endSourceSpan`,`nameSpan`,`valueSpan`,`keySpan`,`tagDefinition`,`tokens`,`valueTokens`,`switchValueSourceSpan`,`expSourceSpan`,`valueSourceSpan`]),dm=new Set([`if`,`else if`,`for`,`switch`,`case`]);function fm(e,t){var n;if(e.type===`text`||e.type===`comment`||lm(e)||e.type===`yaml`||e.type===`toml`)return null;if(e.type===`attribute`&&delete t.value,e.type===`docType`&&delete t.value,e.type===`angularControlFlowBlock`&&(n=e.parameters)!=null&&n.children)for(let n of t.parameters.children)dm.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.type===`angularIcuExpression`&&(t.switchValue=e.switchValue.trim()),e.type===`angularLetDeclarationInitializer`&&delete t.value}fm.ignoredProperties=um;var pm=fm;async function mm(e,t){if(e.language===`yaml`){let n=e.value.trim(),r=n?await t(n,{parser:`yaml`}):``;return Up([e.startDelimiter,e.explicitLanguage,G,r,r?G:``,e.endDelimiter])}}var hm=mm;function gm(e,t=!0){return[zp([Xp,e]),t?Xp:``]}function _m(e,t){let n=e.type===`NGRoot`?e.node.type===`NGMicrosyntax`&&e.node.body.length===1&&e.node.body[0].type===`NGMicrosyntaxExpression`?e.node.body[0].expression:e.node:e.type===`JsExpressionRoot`?e.node:e;return n&&(n.type===`ObjectExpression`||n.type===`ArrayExpression`||(t.parser===`__vue_expression`||t.parser===`__vue_ts_expression`)&&(n.type===`TemplateLiteral`||n.type===`StringLiteral`))}async function vm(e,t,n,r){n={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...n};let i=!0;r&&(n.__onHtmlBindingRoot=(e,t)=>{i=r(e,t)});let a=await t(e,n,t);return i?Vp(a):gm(a)}function ym(e,t,n,r){let{node:i}=n,a=r.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(a)?``:vm(a,e,{parser:`__ng_directive`,__isInHtmlAttribute:!1},_m)}var bm=ym,xm=(e,t)=>{if(!(e&&t==null))return t.toReversed||!Array.isArray(t)?t.toReversed():[...t].reverse()};function Sm(e){return Array.isArray(e)&&e.length>0}var Cm=Sm,wm=globalThis.Deno?.build.os===`windows`||(globalThis.navigator?.platform)?.startsWith(`Win`)||(globalThis.process?.platform)?.startsWith(`win`)||!1;function Tm(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function Em(e){return e=Tm(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function Dm(e){e=Tm(e);let t=decodeURIComponent(e.pathname.replace(/\//g,`\\`).replace(/%(?![0-9A-Fa-f]{2})/g,`%25`)).replace(/^\\*([A-Za-z]:)(\\|$)/,`$1\\`);return e.hostname!==``&&(t=`\\\\${e.hostname}${t}`),t}function Om(e){return wm?Dm(e):Em(e)}var km=Om,Am=e=>String(e).split(/[/\\]/u).pop();function jm(e,t){if(!t)return;let n=Am(t).toLowerCase();return e.find(({filenames:e})=>e?.some(e=>e.toLowerCase()===n))??e.find(({extensions:e})=>e?.some(e=>n.endsWith(e)))}function Mm(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>e?.includes(t))??e.find(({extensions:e})=>e?.includes(`.${t}`))}function Nm(e,t){if(t){if(String(t).startsWith(`file:`))try{t=km(t)}catch{return}if(typeof t==`string`)return e.find(({isSupported:e})=>e?.({filepath:t}))}}function Pm(e,t){let n=xm(!1,e.plugins).flatMap(e=>e.languages??[]);return(Mm(n,t.language)??jm(n,t.physicalFile)??jm(n,t.file)??Nm(n,t.physicalFile)??Nm(n,t.file)??(t.physicalFile,void 0))?.parsers[0]}var Fm=Pm,Im=`inline`,Lm={area:`none`,base:`none`,basefont:`none`,datalist:`none`,head:`none`,link:`none`,meta:`none`,noembed:`none`,noframes:`none`,param:`block`,rp:`none`,script:`block`,style:`none`,template:`inline`,title:`none`,html:`block`,body:`block`,address:`block`,blockquote:`block`,center:`block`,dialog:`block`,div:`block`,figure:`block`,figcaption:`block`,footer:`block`,form:`block`,header:`block`,hr:`block`,legend:`block`,listing:`block`,main:`block`,p:`block`,plaintext:`block`,pre:`block`,search:`block`,xmp:`block`,slot:`contents`,ruby:`ruby`,rt:`ruby-text`,article:`block`,aside:`block`,h1:`block`,h2:`block`,h3:`block`,h4:`block`,h5:`block`,h6:`block`,hgroup:`block`,nav:`block`,section:`block`,dir:`block`,dd:`block`,dl:`block`,dt:`block`,menu:`block`,ol:`block`,ul:`block`,li:`list-item`,table:`table`,caption:`table-caption`,colgroup:`table-column-group`,col:`table-column`,thead:`table-header-group`,tbody:`table-row-group`,tfoot:`table-footer-group`,tr:`table-row`,td:`table-cell`,th:`table-cell`,input:`inline-block`,button:`inline-block`,fieldset:`block`,details:`block`,summary:`block`,marquee:`inline-block`,source:`block`,track:`block`,meter:`inline-block`,progress:`inline-block`,object:`inline-block`,video:`inline-block`,audio:`inline-block`,select:`inline-block`,option:`block`,optgroup:`block`},Rm=`normal`,zm={listing:`pre`,plaintext:`pre`,pre:`pre`,xmp:`pre`,nobr:`nowrap`,table:`initial`,textarea:`pre-wrap`};function Bm(e){return e.type===`element`&&!e.hasExplicitNamespace&&![`html`,`svg`].includes(e.namespace)}var Vm=Bm,Hm=e=>up(!1,e,/^[\t\f\r ]*\n/gu,``),Um=e=>Hm(om.trimEnd(e)),Wm=e=>{let t=e,n=om.getLeadingWhitespace(t);n&&(t=t.slice(n.length));let r=om.getTrailingWhitespace(t);return r&&(t=t.slice(0,-r.length)),{leadingWhitespace:n,trailingWhitespace:r,text:t}};function Gm(e,t){return!!(e.type===`ieConditionalComment`&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.type===`ieConditionalComment`&&!e.complete||wh(e)&&e.children.some(e=>e.type!==`text`&&e.type!==`interpolation`)||Fh(e,t)&&!Ym(e,t)&&e.type!==`interpolation`)}function Km(e){return e.type===`attribute`||!e.parent||!e.prev?!1:qm(e.prev)}function qm(e){return e.type===`comment`&&e.value.trim()===`prettier-ignore`}function Jm(e){return e.type===`text`||e.type===`comment`}function Ym(e,t){return e.type===`element`&&(e.fullName===`script`||e.fullName===`style`||e.fullName===`svg:style`||e.fullName===`svg:script`||e.fullName===`mj-style`&&t.parser===`mjml`||Vm(e)&&(e.name===`script`||e.name===`style`))}function Xm(e,t){return e.children&&!Ym(e,t)}function Zm(e,t){return Ym(e,t)||e.type===`interpolation`||Qm(e)}function Qm(e){return Dh(e).startsWith(`pre`)}function $m(e,t){var n;let r=i();if(r&&!e.prev&&(n=e.parent?.tagDefinition)!=null&&n.ignoreFirstLf)return e.type===`interpolation`;return r;function i(){return lm(e)||e.type===`angularControlFlowBlock`?!1:(e.type===`text`||e.type===`interpolation`)&&e.prev&&(e.prev.type===`text`||e.prev.type===`interpolation`)?!0:!e.parent||e.parent.cssDisplay===`none`?!1:wh(e.parent)?!0:!(!e.prev&&(e.parent.type===`root`||wh(e)&&e.parent||Ym(e.parent,t)||Nh(e.parent,t)||!yh(e.parent.cssDisplay))||e.prev&&!Sh(e.prev.cssDisplay))}}function eh(e,t){return lm(e)||e.type===`angularControlFlowBlock`?!1:(e.type===`text`||e.type===`interpolation`)&&e.next&&(e.next.type===`text`||e.next.type===`interpolation`)?!0:!e.parent||e.parent.cssDisplay===`none`?!1:wh(e.parent)?!0:!(!e.next&&(e.parent.type===`root`||wh(e)&&e.parent||Ym(e.parent,t)||Nh(e.parent,t)||!bh(e.parent.cssDisplay))||e.next&&!xh(e.next.cssDisplay))}function th(e,t){return Ch(e.cssDisplay)&&!Ym(e,t)}function nh(e){return lm(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function rh(e){return ih(e)||e.type===`element`&&e.children.length>0&&([`body`,`script`,`style`].includes(e.name)||e.children.some(e=>fh(e)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!==`text`&&ch(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||lh(e.lastChild))}function ih(e){return e.type===`element`&&e.children.length>0&&([`html`,`head`,`ul`,`ol`,`select`].includes(e.name)||e.cssDisplay.startsWith(`table`)&&e.cssDisplay!==`table-cell`)}function ah(e){return uh(e)||e.prev&&oh(e.prev)||sh(e)}function oh(e){return uh(e)||e.type===`element`&&e.fullName===`br`||sh(e)}function sh(e){return ch(e)&&lh(e)}function ch(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.type===`root`||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function lh(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.type===`root`||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function uh(e){switch(e.type){case`ieConditionalComment`:case`comment`:case`directive`:return!0;case`element`:return[`script`,`select`].includes(e.name)}return!1}function dh(e){return e.lastChild?dh(e.lastChild):e}function fh(e){return e.children?.some(e=>e.type!==`text`)}function ph(e){if(e)switch(e){case`module`:case`text/javascript`:case`text/babel`:case`text/jsx`:case`application/javascript`:return`babel`;case`application/x-typescript`:return`typescript`;case`text/markdown`:return`markdown`;case`text/html`:return`html`;case`text/x-handlebars-template`:return`glimmer`;default:if(e.endsWith(`json`)||e.endsWith(`importmap`)||e===`speculationrules`)return`json`}}function mh(e,t){let{name:n,attrMap:r}=e;if(n!==`script`||Object.prototype.hasOwnProperty.call(r,`src`))return;let{type:i,lang:a}=e.attrMap;return!a&&!i?`babel`:Fm(t,{language:a})??ph(i)}function hh(e,t){if(!Fh(e,t))return;let{attrMap:n}=e;if(Object.prototype.hasOwnProperty.call(n,`src`))return;let{type:r,lang:i}=n;return Fm(t,{language:i})??ph(r)}function gh(e,t){if(e.name===`style`){let{lang:n}=e.attrMap;return n?Fm(t,{language:n}):`css`}if(e.name===`mj-style`&&t.parser===`mjml`)return`css`}function _h(e,t){return mh(e,t)??gh(e,t)??hh(e,t)}function vh(e){return e===`block`||e===`list-item`||e.startsWith(`table`)}function yh(e){return!vh(e)&&e!==`inline-block`}function bh(e){return!vh(e)&&e!==`inline-block`}function xh(e){return!vh(e)}function Sh(e){return!vh(e)}function Ch(e){return!vh(e)&&e!==`inline-block`}function wh(e){return Dh(e).startsWith(`pre`)}function Th(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.parent}return!1}function Eh(e,t){if(Ph(e,t))return`block`;if(e.prev?.type===`comment`){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(t)return t[1]}let n=!1;if(e.type===`element`&&e.namespace===`svg`)if(Th(e,e=>e.fullName===`svg:foreignObject`))n=!0;else return e.name===`svg`?`inline-block`:`block`;switch(t.htmlWhitespaceSensitivity){case`strict`:return`inline`;case`ignore`:return`block`;default:if(e.type===`element`&&(!e.namespace||n||Vm(e))&&Object.prototype.hasOwnProperty.call(Lm,e.name))return Lm[e.name]}return Im}function Dh(e){return e.type===`element`&&(!e.namespace||Vm(e))&&Object.prototype.hasOwnProperty.call(zm,e.name)?zm[e.name]:Rm}function Oh(e){let t=1/0;for(let n of e.split(`
86
- `)){if(n.length===0)continue;let e=om.getLeadingWhitespaceCount(n);if(e===0)return 0;n.length!==e&&e<t&&(t=e)}return t===1/0?0:t}function kh(e,t=Oh(e)){return t===0?e:e.split(`
87
- `).map(e=>e.slice(t)).join(`
88
- `)}function Ah(e){return up(!1,up(!1,e,`&apos;`,`'`),`&quot;`,`"`)}function jh(e){return Ah(e.value)}var Mh=new Set([`template`,`style`,`script`]);function Nh(e,t){return Ph(e,t)&&!Mh.has(e.fullName)}function Ph(e,t){return t.parser===`vue`&&e.type===`element`&&e.parent.type===`root`&&e.fullName.toLowerCase()!==`html`}function Fh(e,t){return Ph(e,t)&&(Nh(e,t)||e.attrMap.lang&&e.attrMap.lang!==`html`)}function Ih(e){let t=e.fullName;return t.charAt(0)===`#`||t===`slot-scope`||t===`v-slot`||t.startsWith(`v-slot:`)}function Lh(e,t){let n=e.parent;if(!Ph(n,t))return!1;let r=n.fullName,i=e.fullName;return r===`script`&&i===`setup`||r===`style`&&i===`vars`}function Rh(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?Pp(t):Pp(kh(Um(t)),G):Qp(W,om.split(t))}function zh(e,t){return Ph(e,t)&&e.name===`script`}var Bh=/\{\{(.+?)\}\}/su;async function Vh(e,t){let n=[];for(let[r,i]of e.split(Bh).entries())if(r%2==0)n.push(Pp(i));else try{n.push(Vp([`{{`,zp([W,await vm(i,t,{parser:`__ng_interpolation`,__isInHtmlInterpolation:!0})]),W,`}}`]))}catch{n.push(`{{`,Pp(i),`}}`)}return n}function Hh({parser:e}){return(t,n,r)=>vm(jh(r.node),t,{parser:e},_m)}var Uh=Hh({parser:`__ng_action`}),Wh=Hh({parser:`__ng_binding`}),Gh=Hh({parser:`__ng_directive`});function Kh(e,t){if(t.parser!==`angular`)return;let{node:n}=e,r=n.fullName;if(r.startsWith(`(`)&&r.endsWith(`)`)||r.startsWith(`on-`))return Uh;if(r.startsWith(`[`)&&r.endsWith(`]`)||/^bind(?:on)?-/u.test(r)||/^ng-(?:if|show|hide|class|style)$/u.test(r))return Wh;if(r.startsWith(`*`))return Gh;let i=jh(n);if(/^i18n(?:-.+)?$/u.test(r))return()=>gm(Wp(Rh(n,i.trim())),!i.includes(`@@`));if(Bh.test(i))return e=>Vh(i,e)}var qh=Kh;function Jh(e,t){let{node:n}=e,r=jh(n);if(n.fullName===`class`&&!t.parentParser&&!r.includes(`{{`))return()=>r.trim().split(/\s+/u).join(` `)}var Yh=Jh;function Xh(e){return e===` `||e===`
89
- `||e===`\f`||e===`\r`||e===` `}var Zh=/^[ \t\n\r\u000c]+/,Qh=/^[, \t\n\r\u000c]+/,$h=/^[^ \t\n\r\u000c]+/,eg=/[,]+$/,tg=/^\d+$/,ng=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function rg(e){let t=e.length,n,r,i,a,o,s=0,c;function l(t){let n,r=t.exec(e.substring(s));if(r)return[n]=r,s+=n.length,n}let u=[];for(;;){if(l(Qh),s>=t){if(u.length===0)throw Error(`Must contain one or more image candidate strings.`);return u}c=s,n=l($h),r=[],n.slice(-1)===`,`?(n=n.replace(eg,``),f()):d()}function d(){for(l(Zh),i=``,a=`in descriptor`;;){if(o=e.charAt(s),a===`in descriptor`)if(Xh(o))i&&(r.push(i),i=``,a=`after descriptor`);else if(o===`,`){s+=1,i&&r.push(i),f();return}else if(o===`(`)i+=o,a=`in parens`;else if(o===``){i&&r.push(i),f();return}else i+=o;else if(a===`in parens`)if(o===`)`)i+=o,a=`in descriptor`;else if(o===``){r.push(i),f();return}else i+=o;else if(a===`after descriptor`&&!Xh(o))if(o===``){f();return}else a=`in descriptor`,--s;s+=1}}function f(){let t=!1,i,a,o,s,l={},d,f,p,m,h;for(s=0;s<r.length;s++)d=r[s],f=d[d.length-1],p=d.substring(0,d.length-1),m=parseInt(p,10),h=parseFloat(p),tg.test(p)&&f===`w`?((i||a)&&(t=!0),m===0?t=!0:i=m):ng.test(p)&&f===`x`?((i||a||o)&&(t=!0),h<0?t=!0:a=h):tg.test(p)&&f===`h`?((o||a)&&(t=!0),m===0?t=!0:o=m):t=!0;if(!t)l.source={value:n,startOffset:c},i&&(l.width={value:i}),a&&(l.density={value:a}),o&&(l.height={value:o}),u.push(l);else throw Error(`Invalid srcset descriptor found in "${e}" at "${d}".`)}}var ig=rg;function ag(e){if(e.node.fullName===`srcset`&&(e.parent.fullName===`img`||e.parent.fullName===`source`))return()=>cg(jh(e.node))}var og={width:`w`,height:`h`,density:`x`},sg=Object.keys(og);function cg(e){let t=ig(e),n=sg.filter(e=>t.some(t=>Object.prototype.hasOwnProperty.call(t,e)));if(n.length>1)throw Error(`Mixed descriptor in srcset is not supported`);let[r]=n,i=og[r],a=t.map(e=>e.source.value),o=Math.max(...a.map(e=>e.length)),s=t.map(e=>e[r]?String(e[r].value):``),c=s.map(e=>{let t=e.indexOf(`.`);return t===-1?e.length:t}),l=Math.max(...c);return gm(Qp([`,`,W],a.map((e,t)=>{let n=[e],r=s[t];if(r){let a=o-e.length+1,s=l-c[t],u=` `.repeat(a+s);n.push(Gp(u,` `),r+i)}return n})))}var lg=ag;function ug(e,t){let{node:n}=e,r=jh(e.node).trim();if(n.fullName===`style`&&!t.parentParser&&!r.includes(`{{`))return async e=>gm(await e(r,{parser:`css`,__isHTMLStyleAttribute:!0}))}var dg=new WeakMap;function fg(e,t){let{root:n}=e;return dg.has(n)||dg.set(n,n.children.some(e=>zh(e,t)&&[`ts`,`typescript`].includes(e.attrMap.lang))),dg.get(n)}var pg=fg;function mg(e,t,n){let{node:r}=n;return vm(`type T<${jh(r)}> = any`,e,{parser:`babel-ts`,__isEmbeddedTypescriptGenericParameters:!0},_m)}function hg(e,t,{parseWithTs:n}){return vm(`function _(${e}) {}`,t,{parser:n?`babel-ts`:`babel`,__isVueBindings:!0})}async function gg(e,t,n,r){let{left:i,operator:a,right:o}=_g(jh(n.node)),s=pg(n,r);return[Vp(await vm(`function _(${i}) {}`,e,{parser:s?`babel-ts`:`babel`,__isVueForBindingLeft:!0})),` `,a,` `,await vm(o,e,{parser:s?`__ts_expression`:`__js_expression`})]}function _g(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,r=/^\(|\)$/gu,i=e.match(t);if(!i)return;let a={};if(a.for=i[3].trim(),!a.for)return;let o=up(!1,i[1].trim(),r,``),s=o.match(n);s?(a.alias=o.replace(n,``),a.iterator1=s[1].trim(),s[2]&&(a.iterator2=s[2].trim())):a.alias=o;let c=[a.alias,a.iterator1,a.iterator2];if(!c.some((e,t)=>!e&&(t===0||c.slice(t+1).some(Boolean))))return{left:c.filter(Boolean).join(`,`),operator:i[2],right:a.for}}function vg(e,t){if(t.parser!==`vue`)return;let{node:n}=e,r=n.fullName;if(r===`v-for`)return gg;if(r===`generic`&&zh(n.parent,t))return mg;let i=jh(n),a=pg(e,t);if(Ih(n)||Lh(n,t))return e=>hg(i,e,{parseWithTs:a});if(r.startsWith(`@`)||r.startsWith(`v-on:`))return e=>yg(i,e,{parseWithTs:a});if(r.startsWith(`:`)||r.startsWith(`.`)||r.startsWith(`v-bind:`))return e=>bg(i,e,{parseWithTs:a});if(r.startsWith(`v-`))return e=>xg(i,e,{parseWithTs:a})}async function yg(e,t,{parseWithTs:n}){try{return await xg(e,t,{parseWithTs:n})}catch(e){if(e.cause?.code!==`BABEL_PARSER_SYNTAX_ERROR`)throw e}return vm(e,t,{parser:n?`__vue_ts_event_binding`:`__vue_event_binding`},_m)}function bg(e,t,{parseWithTs:n}){return vm(e,t,{parser:n?`__vue_ts_expression`:`__vue_expression`},_m)}function xg(e,t,{parseWithTs:n}){return vm(e,t,{parser:n?`__ts_expression`:`__js_expression`},_m)}var Sg=vg;function Cg(e,t){let{node:n}=e;if(n.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(t.originalText.slice(n.valueSpan.start.offset,n.valueSpan.end.offset))||t.parser===`lwc`&&n.value.startsWith(`{`)&&n.value.endsWith(`}`))return[n.rawName,`=`,n.value];for(let n of[lg,ug,Yh,Sg,qh]){let r=n(e,t);if(r)return wg(r)}}}function wg(e){return async(t,n,r,i)=>{let a=await e(t,n,r,i);if(a)return a=Np(a,e=>typeof e==`string`?up(!1,e,`"`,`&quot;`):e),[r.node.rawName,`="`,Vp(a),`"`]}}var Tg=Cg,Eg=new Proxy(()=>{},{get:()=>Eg});function Dg(e){return e.sourceSpan.start.offset}function Og(e){return e.sourceSpan.end.offset}function kg(e,t){return[e.isSelfClosing?``:Ag(e,t),jg(e,t)]}function Ag(e,t){return e.lastChild&&zg(e.lastChild)?``:[Mg(e,t),Pg(e,t)]}function jg(e,t){return(e.next?Lg(e.next):Rg(e.parent))?``:[Fg(e,t),Ng(e,t)]}function Mg(e,t){return Rg(e)?Fg(e.lastChild,t):``}function Ng(e,t){return zg(e)?Pg(e.parent,t):Bg(e)?Yg(e.next,t):``}function Pg(e,t){if(Ig(e,t))return``;switch(e.type){case`ieConditionalComment`:return`<!`;case`element`:if(e.hasHtmComponentClosingTag)return`<//`;default:return`</${e.rawName}`}}function Fg(e,t){if(Ig(e,t))return``;switch(e.type){case`ieConditionalComment`:case`ieConditionalEndComment`:return`[endif]-->`;case`ieConditionalStartComment`:return`]><!-->`;case`interpolation`:return`}}`;case`angularIcuExpression`:return`}`;case`element`:if(e.isSelfClosing)return`/>`;default:return`>`}}function Ig(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Km(e)||Gm(e.parent,t))}function Lg(e){return e.prev&&e.prev.type!==`docType`&&e.type!==`angularControlFlowBlock`&&!Jm(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Rg(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!Jm(dh(e.lastChild))&&!wh(e)}function zg(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Jm(dh(e))}function Bg(e){return e.next&&!Jm(e.next)&&Jm(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Vg(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function Hg(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Ug(e,t,n){let{node:r}=e;if(!Cm(r.attrs))return r.isSelfClosing?` `:``;let i=r.prev?.type===`comment`&&Vg(r.prev.value),a=typeof i==`boolean`?()=>i:Array.isArray(i)?e=>i.includes(e.rawName):()=>!1,o=e.map(({node:e})=>a(e)?Pp(t.originalText.slice(Dg(e),Og(e))):n(),`attrs`),s=r.type===`element`&&r.fullName===`script`&&r.attrs.length===1&&r.attrs[0].fullName===`src`&&r.children.length===0,c=t.singleAttributePerLine&&r.attrs.length>1&&!Ph(r,t)?G:W,l=[zp([s?` `:W,Qp(c,o)])];return r.firstChild&&Hg(r.firstChild)||r.isSelfClosing&&Rg(r.parent)||s?l.push(r.isSelfClosing?` `:``):l.push(t.bracketSameLine?r.isSelfClosing?` `:``:r.isSelfClosing?W:Xp),l}function Wg(e){return e.firstChild&&Hg(e.firstChild)?``:Xg(e)}function Gg(e,t,n){let{node:r}=e;return[Kg(r,t),Ug(e,t,n),r.isSelfClosing?``:Wg(r)]}function Kg(e,t){return e.prev&&Bg(e.prev)?``:[qg(e,t),Yg(e,t)]}function qg(e,t){return Hg(e)?Xg(e.parent):Lg(e)?Fg(e.prev,t):``}var Jg=`<!doctype`;function Yg(e,t){switch(e.type){case`ieConditionalComment`:case`ieConditionalStartComment`:return`<!--[if ${e.condition}`;case`ieConditionalEndComment`:return`<!--<!`;case`interpolation`:return`{{`;case`docType`:{if(e.value===`html`){let{filepath:e}=t;if(e&&/\.html?$/u.test(e))return Jg}let n=Dg(e);return t.originalText.slice(n,n+Jg.length)}case`angularIcuExpression`:return`{`;case`element`:if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function Xg(e){switch(e.type){case`ieConditionalComment`:return`]>`;case`element`:if(e.condition)return`><!--<![endif]-->`;default:return`>`}}function Zg(e,t){if(!e.endSourceSpan)return``;let n=e.startSourceSpan.end.offset;e.firstChild&&Hg(e.firstChild)&&(n-=Xg(e).length);let r=e.endSourceSpan.start.offset;return e.lastChild&&zg(e.lastChild)?r+=Pg(e,t).length:Rg(e)&&(r-=Fg(e.lastChild,t).length),t.originalText.slice(n,r)}var Qg=Zg,$g=new Set([`if`,`else if`,`for`,`switch`,`case`]);function e_(e,t){let{node:n}=e;switch(n.type){case`element`:if(Ym(n,t)||n.type===`interpolation`)return;if(!n.isSelfClosing&&Fh(n,t)){let r=_h(n,t);return r?async(i,a)=>{let o=Qg(n,t),s=/^\s*$/u.test(o),c=``;return s||=(c=await i(Um(o),{parser:r,__embeddedInHtml:!0}),c===``),[qg(n,t),Vp(Gg(e,t,a)),s?``:G,c,s?``:G,kg(n,t),Ng(n,t)]}:void 0}break;case`text`:if(Ym(n.parent,t)){let e=_h(n.parent,t);if(e)return async r=>{let i=e===`markdown`?kh(n.value.replace(/^[^\S\n]*\n/u,``)):n.value,a={parser:e,__embeddedInHtml:!0};if(t.parser===`html`&&e===`babel`){let e=`script`,{attrMap:t}=n.parent;t&&(t.type===`module`||(t.type===`text/babel`||t.type===`text/jsx`)&&t[`data-type`]===`module`)&&(e=`module`),a.__babelSourceType=e}return[qp,qg(n,t),await r(i,a),Ng(n,t)]}}else if(n.parent.type===`interpolation`)return async r=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser===`angular`?i.parser=`__ng_interpolation`:t.parser===`vue`?i.parser=pg(e,t)?`__vue_ts_expression`:`__vue_expression`:i.parser=`__js_expression`,[zp([W,await r(n.value,i)]),n.parent.next&&Lg(n.parent.next)?` `:W]};break;case`attribute`:return Tg(e,t);case`front-matter`:return e=>hm(n,e);case`angularControlFlowBlockParameters`:return $g.has(e.parent.name)?bm:void 0;case`angularLetDeclarationInitializer`:return e=>vm(n.value,e,{parser:`__ng_binding`,__isInHtmlAttribute:!1})}}var t_=e_,n_=null;function r_(e){if(n_!==null&&typeof n_.property){let e=n_;return n_=r_.prototype=null,e}return n_=r_.prototype=e??Object.create(null),new r_}var i_=10;for(let e=0;e<=i_;e++)r_();function a_(e){return r_(e)}function o_(e,t=`type`){a_(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var s_=o_({"front-matter":[],root:[`children`],element:[`attrs`,`children`],ieConditionalComment:[`children`],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:[`children`],text:[`children`],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:[`children`,`parameters`],angularControlFlowBlockParameters:[`children`],angularControlFlowBlockParameter:[],angularLetDeclaration:[`init`],angularLetDeclarationInitializer:[],angularIcuExpression:[`cases`],angularIcuCase:[`expression`]}),c_=`format`,l_=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,u_=/^\s*<!--\s*@(?:format|prettier)\s*-->/u;function d_(e){return u_.test(e)}function f_(e){return l_.test(e)}function p_(e){return`<!-- @${c_} -->
90
-
91
- ${e}`}var m_=new Map([[`if`,new Set([`else if`,`else`])],[`else if`,new Set([`else if`,`else`])],[`for`,new Set([`empty`])],[`defer`,new Set([`placeholder`,`error`,`loading`])],[`placeholder`,new Set([`placeholder`,`error`,`loading`])],[`error`,new Set([`placeholder`,`error`,`loading`])],[`loading`,new Set([`placeholder`,`error`,`loading`])]]);function h_(e){let t=Og(e);return e.type===`element`&&!e.endSourceSpan&&Cm(e.children)?Math.max(t,h_(Dp(!1,e.children,-1))):t}function g_(e,t,n){let r=e.node;if(Km(r)){let e=h_(r);return[qg(r,t),Pp(om.trimEnd(t.originalText.slice(Dg(r)+(r.prev&&Bg(r.prev)?Yg(r).length:0),e-(r.next&&Lg(r.next)?Fg(r,t).length:0)))),Ng(r,t)]}return n()}function __(e,t){return Jm(e)&&Jm(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?ah(t)?G:W:``:ah(t)?G:Xp:Bg(e)&&(Km(t)||t.firstChild||t.isSelfClosing||t.type===`element`&&t.attrs.length>0)||e.type===`element`&&e.isSelfClosing&&Lg(t)?``:!t.isLeadingSpaceSensitive||ah(t)||Lg(t)&&e.lastChild&&zg(e.lastChild)&&e.lastChild.lastChild&&zg(e.lastChild.lastChild)?G:t.hasLeadingSpaces?W:Xp}function v_(e,t,n){let{node:r}=e;if(ih(r))return[qp,...e.map(e=>{let r=e.node,i=r.prev?__(r.prev,r):``;return[i?[i,nh(r.prev)?G:``]:``,g_(e,t,n)]},`children`)];let i=r.children.map(()=>Symbol(``));return e.map((e,r)=>{let a=e.node;if(Jm(a)){if(a.prev&&Jm(a.prev)){let r=__(a.prev,a);if(r)return nh(a.prev)?[G,G,g_(e,t,n)]:[r,g_(e,t,n)]}return g_(e,t,n)}let o=[],s=[],c=[],l=[],u=a.prev?__(a.prev,a):``,d=a.next?__(a,a.next):``;return u&&(nh(a.prev)?o.push(G,G):u===G?o.push(G):Jm(a.prev)?s.push(u):s.push(Gp(``,Xp,{groupId:i[r-1]}))),d&&(nh(a)?Jm(a.next)&&l.push(G,G):d===G?Jm(a.next)&&l.push(G):c.push(d)),[...o,Vp([...s,Vp([g_(e,t,n),...c],{id:i[r]})]),...l]},`children`)}function y_(e,t,n){let{node:r}=e,i=[];x_(e)&&i.push(`} `),i.push(`@`,r.name),r.parameters&&i.push(` (`,Vp(n(`parameters`)),`)`),i.push(` {`);let a=b_(r);return r.children.length>0?(r.firstChild.hasLeadingSpaces=!0,r.lastChild.hasTrailingSpaces=!0,i.push(zp([G,v_(e,t,n)])),a&&i.push(G,`}`)):a&&i.push(`}`),Vp(i,{shouldBreak:!0})}function b_(e){var t;return!(e.next?.type===`angularControlFlowBlock`&&(t=m_.get(e.name))!=null&&t.has(e.next.name))}function x_(e){let{previous:t}=e;return t?.type===`angularControlFlowBlock`&&!Km(t)&&!b_(t)}function S_(e,t,n){return[zp([Xp,Qp([`;`,W],e.map(n,`children`))]),Xp]}function C_(e,t,n){let{node:r}=e;return[Kg(r,t),Vp([r.switchValue.trim(),`, `,r.clause,r.cases.length>0?[`,`,zp([W,Qp(W,e.map(n,`cases`))])]:``,Xp]),jg(r,t)]}function w_(e,t,n){let{node:r}=e;return[r.value,` {`,Vp([zp([Xp,e.map(({node:e,isLast:t})=>{let r=[n()];return e.type===`text`&&(e.hasLeadingSpaces&&r.unshift(W),e.hasTrailingSpaces&&!t&&r.push(W)),r},`expression`)]),Xp]),`}`]}function T_(e,t,n){let{node:r}=e;if(Gm(r,t))return[qg(r,t),Vp(Gg(e,t,n)),Pp(Qg(r,t)),...kg(r,t),Ng(r,t)];let i=r.children.length===1&&(r.firstChild.type===`interpolation`||r.firstChild.type===`angularIcuExpression`)&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,a=Symbol(`element-attr-group-id`),o=i=>Vp([Vp(Gg(e,t,n),{id:a}),i,kg(r,t)]);return r.children.length===0?o(r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?W:``):o([rh(r)?qp:``,(e=>i?Kp(e,{groupId:a}):(Ym(r,t)||Nh(r,t))&&r.parent.type===`root`&&t.parser===`vue`&&!t.vueIndentScriptAndStyle?e:zp(e))([(()=>i?Gp(Xp,``,{groupId:a}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?W:r.firstChild.type===`text`&&r.isWhitespaceSensitive&&r.isIndentationSensitive?Hp(Xp):Xp)(),v_(e,t,n)]),(()=>(r.next?Lg(r.next):Rg(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?` `:``:i?Gp(Xp,``,{groupId:a}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?W:(r.lastChild.type===`comment`||r.lastChild.type===`text`&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,`u`).test(r.lastChild.value)?``:Xp)()])}function E_(e){return e>=9&&e<=32||e==160}function D_(e){return 48<=e&&e<=57}function O_(e){return e>=97&&e<=122||e>=65&&e<=90}function k_(e){return e>=97&&e<=102||e>=65&&e<=70||D_(e)}function A_(e){return e===10||e===13}function j_(e){return 48<=e&&e<=55}function M_(e){return e===39||e===34||e===96}var N_=/-+([a-z0-9])/g;function P_(e){return e.replace(N_,(...e)=>e[1].toUpperCase())}var F_=class e{constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}toString(){return this.offset==null?this.file.url:`${this.file.url}@${this.line}:${this.col}`}moveBy(t){let n=this.file.content,r=n.length,i=this.offset,a=this.line,o=this.col;for(;i>0&&t<0;)if(i--,t++,n.charCodeAt(i)==10){a--;let e=n.substring(0,i-1).lastIndexOf(`
92
- `);o=e>0?i-e:i}else o--;for(;i<r&&t>0;){let e=n.charCodeAt(i);i++,t--,e==10?(a++,o=0):o++}return new e(this.file,i,a,o)}getContext(e,t){let n=this.file.content,r=this.offset;if(r!=null){r>n.length-1&&(r=n.length-1);let i=r,a=0,o=0;for(;a<e&&r>0&&(r--,a++,!(n[r]==`
93
- `&&++o==t)););for(a=0,o=0;a<e&&i<n.length-1&&(i++,a++,!(n[i]==`
94
- `&&++o==t)););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null}},I_=class{constructor(e,t){this.content=e,this.url=t}},K=class{constructor(e,t,n=e,r=null){this.start=e,this.end=t,this.fullStart=n,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},L_;(function(e){e[e.WARNING=0]=`WARNING`,e[e.ERROR=1]=`ERROR`})(L_||={});var R_=class{constructor(e,t,n=L_.ERROR,r){this.span=e,this.msg=t,this.level=n,this.relatedError=r}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${L_[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:``;return`${this.contextualMessage()}: ${this.span.start}${e}`}},z_=[V_,H_,W_,K_,q_,X_,J_,Y_,Z_,G_];function B_(e,t){for(let n of z_)n(e,t);return e}function V_(e){e.walk(e=>{if(e.type===`element`&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type===`text`&&e.children[0].value[0]===`
95
- `){let t=e.children[0];t.value.length===1?e.removeChild(t):t.value=t.value.slice(1)}})}function H_(e){let t=e=>e.type===`element`&&e.prev?.type===`ieConditionalStartComment`&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild?.type===`ieConditionalEndComment`&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let r=e.children[n];if(!t(r))continue;let i=r.prev,a=r.firstChild;e.removeChild(i),n--;let o=new K(i.sourceSpan.start,a.sourceSpan.end),s=new K(o.start,r.sourceSpan.end);r.condition=i.condition,r.sourceSpan=s,r.startSourceSpan=o,r.removeChild(a)}})}function U_(e,t,n){e.walk(e=>{if(e.children)for(let r=0;r<e.children.length;r++){let i=e.children[r];if(i.type!==`text`&&!t(i))continue;i.type!==`text`&&(i.type=`text`,i.value=n(i));let a=i.prev;!a||a.type!==`text`||(a.value+=i.value,a.sourceSpan=new K(a.sourceSpan.start,i.sourceSpan.end),e.removeChild(i),r--)}})}function W_(e){return U_(e,e=>e.type===`cdata`,e=>`<![CDATA[${e.value}]]>`)}function G_(e){let t=e=>e.type===`element`&&e.attrs.length===0&&e.children.length===1&&e.firstChild.type===`text`&&!om.hasWhitespaceCharacter(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev?.type===`text`&&e.next?.type===`text`;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let r=e.children[n];if(!t(r))continue;let i=r.prev,a=r.next;i.value+=`<${r.rawName}>`+r.firstChild.value+`</${r.rawName}>`+a.value,i.sourceSpan=new K(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,e.removeChild(r),n--,e.removeChild(a)}})}function K_(e,t){if(t.parser===`html`)return;let n=/\{\{(.+?)\}\}/su;e.walk(e=>{if(Xm(e,t))for(let t of e.children){if(t.type!==`text`)continue;let r=t.sourceSpan.start,i=null,a=t.value.split(n);for(let n=0;n<a.length;n++,r=i){let o=a[n];if(n%2==0){i=r.moveBy(o.length),o.length>0&&e.insertChildBefore(t,{type:`text`,value:o,sourceSpan:new K(r,i)});continue}i=r.moveBy(o.length+4),e.insertChildBefore(t,{type:`interpolation`,sourceSpan:new K(r,i),children:o.length===0?[]:[{type:`text`,value:o,sourceSpan:new K(r.moveBy(2),i.moveBy(-2))}]})}e.removeChild(t)}})}function q_(e,t){e.walk(e=>{let n=e.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].type===`text`&&om.trim(n[0].value).length===0){e.hasDanglingSpaces=n.length>0,e.$children=[];return}let r=Zm(e,t),i=Qm(e);if(!r)for(let t=0;t<n.length;t++){let r=n[t];if(r.type!==`text`)continue;let{leadingWhitespace:i,text:a,trailingWhitespace:o}=Wm(r.value),s=r.prev,c=r.next;a?(r.value=a,r.sourceSpan=new K(r.sourceSpan.start.moveBy(i.length),r.sourceSpan.end.moveBy(-o.length)),i&&(s&&(s.hasTrailingSpaces=!0),r.hasLeadingSpaces=!0),o&&(r.hasTrailingSpaces=!0,c&&(c.hasLeadingSpaces=!0))):(e.removeChild(r),t--,(i||o)&&(s&&(s.hasTrailingSpaces=!0),c&&(c.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=r,e.isIndentationSensitive=i})}function J_(e){e.walk(e=>{e.isSelfClosing=!e.children||e.type===`element`&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function Y_(e,t){e.walk(e=>{e.type===`element`&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))})}function X_(e,t){e.walk(e=>{e.cssDisplay=Eh(e,t)})}function Z_(e,t){e.walk(e=>{let{children:n}=e;if(n){if(n.length===0){e.isDanglingSpaceSensitive=th(e,t);return}for(let e of n)e.isLeadingSpaceSensitive=$m(e,t),e.isTrailingSpaceSensitive=eh(e,t);for(let e=0;e<n.length;e++){let t=n[e];t.isLeadingSpaceSensitive=(e===0||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===n.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}})}var Q_=B_;function $_(e,t,n){let{node:r}=e;switch(r.type){case`front-matter`:return Pp(r.raw);case`root`:return t.__onHtmlRoot&&t.__onHtmlRoot(r),[Vp(v_(e,t,n)),G];case`element`:case`ieConditionalComment`:return T_(e,t,n);case`angularControlFlowBlock`:return y_(e,t,n);case`angularControlFlowBlockParameters`:return S_(e,t,n);case`angularControlFlowBlockParameter`:return om.trim(r.expression);case`angularLetDeclaration`:return Vp([`@let `,Vp([r.id,` =`,Vp(zp([W,n(`init`)]))]),`;`]);case`angularLetDeclarationInitializer`:return r.value;case`angularIcuExpression`:return C_(e,t,n);case`angularIcuCase`:return w_(e,t,n);case`ieConditionalStartComment`:case`ieConditionalEndComment`:return[Kg(r),jg(r)];case`interpolation`:return[Kg(r,t),...e.map(n,`children`),jg(r,t)];case`text`:{if(r.parent.type===`interpolation`){let e=/\n[^\S\n]*$/u,t=e.test(r.value);return[Pp(t?r.value.replace(e,``):r.value),t?G:``]}let e=qg(r,t),n=Rh(r),i=Ng(r,t);return n[0]=[e,n[0]],n.push([n.pop(),i]),Wp(n)}case`docType`:return[Vp([Kg(r,t),` `,up(!1,r.value.replace(/^html\b/iu,`html`),/\s+/gu,` `)]),jg(r,t)];case`comment`:return[qg(r,t),Pp(t.originalText.slice(Dg(r),Og(r))),Ng(r,t)];case`attribute`:{if(r.value===null)return r.rawName;let e=Ah(r.value),t=nm(e,`"`);return[r.rawName,`=`,t,Pp(t===`"`?up(!1,e,`"`,`&quot;`):up(!1,e,`'`,`&apos;`)),t]}case`cdata`:default:throw new sm(r,`HTML`)}}var ev={preprocess:Q_,print:$_,insertPragma:p_,massageAstNode:pm,embed:t_,getVisitorKeys:s_},tv=[{name:`Angular`,type:`markup`,extensions:[`.component.html`],tmScope:`text.html.basic`,aceMode:`html`,aliases:[`xhtml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`angular`],vscodeLanguageIds:[`html`],filenames:[],linguistLanguageId:146},{name:`HTML`,type:`markup`,extensions:[`.html`,`.hta`,`.htm`,`.html.hl`,`.inc`,`.xht`,`.xhtml`],tmScope:`text.html.basic`,aceMode:`html`,aliases:[`xhtml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`html`],vscodeLanguageIds:[`html`],linguistLanguageId:146},{name:`Lightning Web Components`,type:`markup`,extensions:[],tmScope:`text.html.basic`,aceMode:`html`,aliases:[`xhtml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`lwc`],vscodeLanguageIds:[`html`],filenames:[],linguistLanguageId:146},{name:`MJML`,type:`markup`,extensions:[`.mjml`],tmScope:`text.mjml.basic`,aceMode:`html`,aliases:[`MJML`,`mjml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`mjml`],filenames:[],vscodeLanguageIds:[`mjml`],linguistLanguageId:146},{name:`Vue`,type:`markup`,extensions:[`.vue`],tmScope:`source.vue`,aceMode:`html`,parsers:[`vue`],vscodeLanguageIds:[`vue`],linguistLanguageId:391}],nv={bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}},rv=`HTML`,iv={bracketSameLine:nv.bracketSameLine,htmlWhitespaceSensitivity:{category:rv,type:`choice`,default:`css`,description:`How to handle whitespaces in HTML.`,choices:[{value:`css`,description:`Respect the default value of CSS display property.`},{value:`strict`,description:`Whitespaces are considered sensitive.`},{value:`ignore`,description:`Whitespaces are considered insensitive.`}]},singleAttributePerLine:nv.singleAttributePerLine,vueIndentScriptAndStyle:{category:rv,type:`boolean`,default:!1,description:`Indent script and style tags in Vue files.`}},av={};rp(av,{angular:()=>db,html:()=>cb,lwc:()=>pb,mjml:()=>ub,vue:()=>fb});var ov;(function(e){e[e.Emulated=0]=`Emulated`,e[e.None=2]=`None`,e[e.ShadowDom=3]=`ShadowDom`})(ov||={});var sv;(function(e){e[e.OnPush=0]=`OnPush`,e[e.Default=1]=`Default`})(sv||={});var cv;(function(e){e[e.None=0]=`None`,e[e.SignalBased=1]=`SignalBased`,e[e.HasDecoratorInputTransform=2]=`HasDecoratorInputTransform`})(cv||={});var lv={name:`custom-elements`},uv={name:`no-errors-schema`},dv;(function(e){e[e.NONE=0]=`NONE`,e[e.HTML=1]=`HTML`,e[e.STYLE=2]=`STYLE`,e[e.SCRIPT=3]=`SCRIPT`,e[e.URL=4]=`URL`,e[e.RESOURCE_URL=5]=`RESOURCE_URL`})(dv||={});var fv;(function(e){e[e.Error=0]=`Error`,e[e.Warning=1]=`Warning`,e[e.Ignore=2]=`Ignore`})(fv||={});var pv;(function(e){e[e.RAW_TEXT=0]=`RAW_TEXT`,e[e.ESCAPABLE_RAW_TEXT=1]=`ESCAPABLE_RAW_TEXT`,e[e.PARSABLE_DATA=2]=`PARSABLE_DATA`})(pv||={});function mv(e,t=!0){if(e[0]!=`:`)return[null,e];let n=e.indexOf(`:`,1);if(n===-1){if(t)throw Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,n),e.slice(n+1)]}function hv(e){return mv(e)[1]===`ng-container`}function gv(e){return mv(e)[1]===`ng-content`}function _v(e){return e===null?null:mv(e)[0]}function vv(e,t){return e?`:${e}:${t}`:t}var yv;function bv(){return yv||(yv={},xv(dv.HTML,[`iframe|srcdoc`,`*|innerHTML`,`*|outerHTML`]),xv(dv.STYLE,[`*|style`]),xv(dv.URL,[`*|formAction`,`area|href`,`area|ping`,`audio|src`,`a|href`,`a|ping`,`blockquote|cite`,`body|background`,`del|cite`,`form|action`,`img|src`,`input|src`,`ins|cite`,`q|cite`,`source|src`,`track|src`,`video|poster`,`video|src`]),xv(dv.RESOURCE_URL,[`applet|code`,`applet|codebase`,`base|href`,`embed|src`,`frame|src`,`head|profile`,`html|manifest`,`iframe|src`,`link|href`,`media|src`,`object|codebase`,`object|data`,`script|src`])),yv}function xv(e,t){for(let n of t)yv[n.toLowerCase()]=e}var Sv=class{},Cv=`boolean`,wv=`number`,Tv=`string`,Ev=`object`,Dv=`[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored.[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy.abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy.media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume.:svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex.:svg:graphics^:svg:|.:svg:animation^:svg:|*begin,*end,*repeat.:svg:geometry^:svg:|.:svg:componentTransferFunction^:svg:|.:svg:gradient^:svg:|.:svg:textContent^:svg:graphics|.:svg:textPositioning^:svg:textContent|.a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username.area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username.audio^media|.br^[HTMLElement]|clear.base^[HTMLElement]|href,target.body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink.button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value.canvas^[HTMLElement]|#height,#width.content^[HTMLElement]|select.dl^[HTMLElement]|!compact.data^[HTMLElement]|value.datalist^[HTMLElement]|.details^[HTMLElement]|!open.dialog^[HTMLElement]|!open,returnValue.dir^[HTMLElement]|!compact.div^[HTMLElement]|align.embed^[HTMLElement]|align,height,name,src,type,width.fieldset^[HTMLElement]|!disabled,name.font^[HTMLElement]|color,face,size.form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target.frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src.frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows.hr^[HTMLElement]|align,color,!noShade,size,width.head^[HTMLElement]|.h1,h2,h3,h4,h5,h6^[HTMLElement]|align.html^[HTMLElement]|version.iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width.img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width.input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width.li^[HTMLElement]|type,#value.label^[HTMLElement]|htmlFor.legend^[HTMLElement]|align.link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type.map^[HTMLElement]|name.marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width.menu^[HTMLElement]|!compact.meta^[HTMLElement]|content,httpEquiv,media,name,scheme.meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value.ins,del^[HTMLElement]|cite,dateTime.ol^[HTMLElement]|!compact,!reversed,#start,type.object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width.optgroup^[HTMLElement]|!disabled,label.option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value.output^[HTMLElement]|defaultValue,%htmlFor,name,value.p^[HTMLElement]|align.param^[HTMLElement]|name,type,value,valueType.picture^[HTMLElement]|.pre^[HTMLElement]|#width.progress^[HTMLElement]|#max,#value.q,blockquote,cite^[HTMLElement]|.script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type.select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value.slot^[HTMLElement]|name.source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width.span^[HTMLElement]|.style^[HTMLElement]|!disabled,media,type.caption^[HTMLElement]|align.th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width.col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width.table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width.tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign.tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign.template^[HTMLElement]|.textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap.time^[HTMLElement]|dateTime.title^[HTMLElement]|text.track^[HTMLElement]|!default,kind,label,src,srclang.ul^[HTMLElement]|!compact,type.unknown^[HTMLElement]|.video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width.:svg:a^:svg:graphics|.:svg:animate^:svg:animation|.:svg:animateMotion^:svg:animation|.:svg:animateTransform^:svg:animation|.:svg:circle^:svg:geometry|.:svg:clipPath^:svg:graphics|.:svg:defs^:svg:graphics|.:svg:desc^:svg:|.:svg:discard^:svg:|.:svg:ellipse^:svg:geometry|.:svg:feBlend^:svg:|.:svg:feColorMatrix^:svg:|.:svg:feComponentTransfer^:svg:|.:svg:feComposite^:svg:|.:svg:feConvolveMatrix^:svg:|.:svg:feDiffuseLighting^:svg:|.:svg:feDisplacementMap^:svg:|.:svg:feDistantLight^:svg:|.:svg:feDropShadow^:svg:|.:svg:feFlood^:svg:|.:svg:feFuncA^:svg:componentTransferFunction|.:svg:feFuncB^:svg:componentTransferFunction|.:svg:feFuncG^:svg:componentTransferFunction|.:svg:feFuncR^:svg:componentTransferFunction|.:svg:feGaussianBlur^:svg:|.:svg:feImage^:svg:|.:svg:feMerge^:svg:|.:svg:feMergeNode^:svg:|.:svg:feMorphology^:svg:|.:svg:feOffset^:svg:|.:svg:fePointLight^:svg:|.:svg:feSpecularLighting^:svg:|.:svg:feSpotLight^:svg:|.:svg:feTile^:svg:|.:svg:feTurbulence^:svg:|.:svg:filter^:svg:|.:svg:foreignObject^:svg:graphics|.:svg:g^:svg:graphics|.:svg:image^:svg:graphics|decoding.:svg:line^:svg:geometry|.:svg:linearGradient^:svg:gradient|.:svg:mpath^:svg:|.:svg:marker^:svg:|.:svg:mask^:svg:|.:svg:metadata^:svg:|.:svg:path^:svg:geometry|.:svg:pattern^:svg:|.:svg:polygon^:svg:geometry|.:svg:polyline^:svg:geometry|.:svg:radialGradient^:svg:gradient|.:svg:rect^:svg:geometry|.:svg:svg^:svg:graphics|#currentScale,#zoomAndPan.:svg:script^:svg:|type.:svg:set^:svg:animation|.:svg:stop^:svg:|.:svg:style^:svg:|!disabled,media,title,type.:svg:switch^:svg:graphics|.:svg:symbol^:svg:|.:svg:tspan^:svg:textPositioning|.:svg:text^:svg:textPositioning|.:svg:textPath^:svg:textContent|.:svg:title^:svg:|.:svg:use^:svg:graphics|.:svg:view^:svg:|#zoomAndPan.data^[HTMLElement]|value.keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name.menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default.summary^[HTMLElement]|.time^[HTMLElement]|dateTime.:svg:cursor^:svg:|.:math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex.:math:math^:math:|.:math:maction^:math:|.:math:menclose^:math:|.:math:merror^:math:|.:math:mfenced^:math:|.:math:mfrac^:math:|.:math:mi^:math:|.:math:mmultiscripts^:math:|.:math:mn^:math:|.:math:mo^:math:|.:math:mover^:math:|.:math:mpadded^:math:|.:math:mphantom^:math:|.:math:mroot^:math:|.:math:mrow^:math:|.:math:ms^:math:|.:math:mspace^:math:|.:math:msqrt^:math:|.:math:mstyle^:math:|.:math:msub^:math:|.:math:msubsup^:math:|.:math:msup^:math:|.:math:mtable^:math:|.:math:mtd^:math:|.:math:mtext^:math:|.:math:mtr^:math:|.:math:munder^:math:|.:math:munderover^:math:|.:math:semantics^:math:|`.split(`.`),Ov=new Map(Object.entries({class:`className`,for:`htmlFor`,formaction:`formAction`,innerHtml:`innerHTML`,readonly:`readOnly`,tabindex:`tabIndex`})),kv=Array.from(Ov).reduce((e,[t,n])=>(e.set(t,n),e),new Map),Av=class extends Sv{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Dv.forEach(e=>{let t=new Map,n=new Set,[r,i]=e.split(`|`),a=i.split(`,`),[o,s]=r.split(`^`);o.split(`,`).forEach(e=>{this._schema.set(e.toLowerCase(),t),this._eventSchema.set(e.toLowerCase(),n)});let c=s&&this._schema.get(s.toLowerCase());if(c){for(let[e,n]of c)t.set(e,n);for(let e of this._eventSchema.get(s.toLowerCase()))n.add(e)}a.forEach(e=>{if(e.length>0)switch(e[0]){case`*`:n.add(e.substring(1));break;case`!`:t.set(e.substring(1),Cv);break;case`#`:t.set(e.substring(1),wv);break;case`%`:t.set(e.substring(1),Ev);break;default:t.set(e,Tv)}})})}hasProperty(e,t,n){if(n.some(e=>e.name===uv.name))return!0;if(e.indexOf(`-`)>-1){if(hv(e)||gv(e))return!1;if(n.some(e=>e.name===lv.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get(`unknown`)).has(t)}hasElement(e,t){return t.some(e=>e.name===uv.name)||e.indexOf(`-`)>-1&&(hv(e)||gv(e)||t.some(e=>e.name===lv.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,n){n&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let r=bv()[e+`|`+t];return r||(r=bv()[`*|`+t],r||dv.NONE)}getMappedPropName(e){return Ov.get(e)??e}getDefaultComponentElementName(){return`ng-component`}validateProperty(e){return e.toLowerCase().startsWith(`on`)?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
96
- If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith(`on`)?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get(`unknown`);return Array.from(t.keys()).map(e=>kv.get(e)??e)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return P_(e)}normalizeAnimationStyleValue(e,t,n){let r=``,i=n.toString().trim(),a=null;if(jv(e)&&n!==0&&n!==`0`)if(typeof n==`number`)r=`px`;else{let e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&e[1].length==0&&(a=`Please provide a CSS unit value for ${t}:${n}`)}return{error:a,value:i+r}}};function jv(e){switch(e){case`width`:case`height`:case`minWidth`:case`minHeight`:case`maxWidth`:case`maxHeight`:case`left`:case`top`:case`bottom`:case`right`:case`fontSize`:case`outlineWidth`:case`outlineOffset`:case`paddingTop`:case`paddingLeft`:case`paddingBottom`:case`paddingRight`:case`marginTop`:case`marginLeft`:case`marginBottom`:case`marginRight`:case`borderRadius`:case`borderWidth`:case`borderTopWidth`:case`borderLeftWidth`:case`borderRightWidth`:case`borderBottomWidth`:case`textIndent`:return!0;default:return!1}}var q=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:n=pv.PARSABLE_DATA,closedByParent:r=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:s=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(e=>this.closedByChildren[e]=!0),this.isVoid=i,this.closedByParent=r||i,this.implicitNamespacePrefix=t||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=s??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType==`object`?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Mv,Nv;function Pv(e){return Nv||(Mv=new q({canSelfClose:!0}),Nv=Object.assign(Object.create(null),{base:new q({isVoid:!0}),meta:new q({isVoid:!0}),area:new q({isVoid:!0}),embed:new q({isVoid:!0}),link:new q({isVoid:!0}),img:new q({isVoid:!0}),input:new q({isVoid:!0}),param:new q({isVoid:!0}),hr:new q({isVoid:!0}),br:new q({isVoid:!0}),source:new q({isVoid:!0}),track:new q({isVoid:!0}),wbr:new q({isVoid:!0}),p:new q({closedByChildren:`address.article.aside.blockquote.div.dl.fieldset.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.main.nav.ol.p.pre.section.table.ul`.split(`.`),closedByParent:!0}),thead:new q({closedByChildren:[`tbody`,`tfoot`]}),tbody:new q({closedByChildren:[`tbody`,`tfoot`],closedByParent:!0}),tfoot:new q({closedByChildren:[`tbody`],closedByParent:!0}),tr:new q({closedByChildren:[`tr`],closedByParent:!0}),td:new q({closedByChildren:[`td`,`th`],closedByParent:!0}),th:new q({closedByChildren:[`td`,`th`],closedByParent:!0}),col:new q({isVoid:!0}),svg:new q({implicitNamespacePrefix:`svg`}),foreignObject:new q({implicitNamespacePrefix:`svg`,preventNamespaceInheritance:!0}),math:new q({implicitNamespacePrefix:`math`}),li:new q({closedByChildren:[`li`],closedByParent:!0}),dt:new q({closedByChildren:[`dt`,`dd`]}),dd:new q({closedByChildren:[`dt`,`dd`],closedByParent:!0}),rb:new q({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),rt:new q({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),rtc:new q({closedByChildren:[`rb`,`rtc`,`rp`],closedByParent:!0}),rp:new q({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),optgroup:new q({closedByChildren:[`optgroup`],closedByParent:!0}),option:new q({closedByChildren:[`option`,`optgroup`],closedByParent:!0}),pre:new q({ignoreFirstLf:!0}),listing:new q({ignoreFirstLf:!0}),style:new q({contentType:pv.RAW_TEXT}),script:new q({contentType:pv.RAW_TEXT}),title:new q({contentType:{default:pv.ESCAPABLE_RAW_TEXT,svg:pv.PARSABLE_DATA}}),textarea:new q({contentType:pv.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Av().allKnownElementNames().forEach(e=>{!Nv[e]&&_v(e)===null&&(Nv[e]=new q({canSelfClose:!1}))})),Nv[e]??Mv}var Fv=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},Iv=class extends Fv{constructor(e,t,n,r){super(t,r),this.value=e,this.tokens=n,this.type=`text`}visit(e,t){return e.visitText(this,t)}},Lv=class extends Fv{constructor(e,t,n,r){super(t,r),this.value=e,this.tokens=n,this.type=`cdata`}visit(e,t){return e.visitCdata(this,t)}},Rv=class extends Fv{constructor(e,t,n,r,i,a){super(r,a),this.switchValue=e,this.type=t,this.cases=n,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}},zv=class{constructor(e,t,n,r,i){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i,this.type=`expansionCase`}visit(e,t){return e.visitExpansionCase(this,t)}},Bv=class extends Fv{constructor(e,t,n,r,i,a,o){super(n,o),this.name=e,this.value=t,this.keySpan=r,this.valueSpan=i,this.valueTokens=a,this.type=`attribute`}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},Vv=class extends Fv{constructor(e,t,n,r,i,a=null,o=null,s){super(r,s),this.name=e,this.attrs=t,this.children=n,this.startSourceSpan=i,this.endSourceSpan=a,this.nameSpan=o,this.type=`element`}visit(e,t){return e.visitElement(this,t)}},Hv=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type=`comment`}visit(e,t){return e.visitComment(this,t)}},Uv=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type=`docType`}visit(e,t){return e.visitDocType(this,t)}},Wv=class extends Fv{constructor(e,t,n,r,i,a,o=null,s){super(r,s),this.name=e,this.parameters=t,this.children=n,this.nameSpan=i,this.startSourceSpan=a,this.endSourceSpan=o,this.type=`block`}visit(e,t){return e.visitBlock(this,t)}},Gv=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.type=`blockParameter`,this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitBlockParameter(this,t)}},Kv=class{constructor(e,t,n,r,i){this.name=e,this.value=t,this.sourceSpan=n,this.nameSpan=r,this.valueSpan=i,this.type=`letDeclaration`,this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitLetDeclaration(this,t)}};function qv(e,t,n=null){let r=[],i=e.visit?t=>e.visit(t,n)||t.visit(e,n):t=>t.visit(e,n);return t.forEach(e=>{let t=i(e);t&&r.push(t)}),r}var Jv=class{constructor(){}visitElement(e,t){this.visitChildren(t,t=>{t(e.attrs),t(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,t=>{t(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,t=>{t(e.parameters),t(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitChildren(e,t){let n=[],r=this;function i(t){t&&n.push(qv(r,t,e))}return t(i),Array.prototype.concat.apply([],n)}},Yv={AElig:`Æ`,AMP:`&`,amp:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:`⁡`,af:`⁡`,Aring:`Å`,angst:`Å`,Ascr:`𝒜`,Assign:`≔`,colone:`≔`,coloneq:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,setminus:`∖`,setmn:`∖`,smallsetminus:`∖`,ssetmn:`∖`,Barv:`⫧`,Barwed:`⌆`,doublebarwedge:`⌆`,Bcy:`Б`,Because:`∵`,becaus:`∵`,because:`∵`,Bernoullis:`ℬ`,Bscr:`ℬ`,bernou:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,breve:`˘`,Bumpeq:`≎`,HumpDownHump:`≎`,bump:`≎`,CHcy:`Ч`,COPY:`©`,copy:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,DD:`ⅅ`,Cayleys:`ℭ`,Cfr:`ℭ`,Ccaron:`Č`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,cedil:`¸`,CenterDot:`·`,centerdot:`·`,middot:`·`,Chi:`Χ`,CircleDot:`⊙`,odot:`⊙`,CircleMinus:`⊖`,ominus:`⊖`,CirclePlus:`⊕`,oplus:`⊕`,CircleTimes:`⊗`,otimes:`⊗`,ClockwiseContourIntegral:`∲`,cwconint:`∲`,CloseCurlyDoubleQuote:`”`,rdquo:`”`,rdquor:`”`,CloseCurlyQuote:`’`,rsquo:`’`,rsquor:`’`,Colon:`∷`,Proportion:`∷`,Colone:`⩴`,Congruent:`≡`,equiv:`≡`,Conint:`∯`,DoubleContourIntegral:`∯`,ContourIntegral:`∮`,conint:`∮`,oint:`∮`,Copf:`ℂ`,complexes:`ℂ`,Coproduct:`∐`,coprod:`∐`,CounterClockwiseContourIntegral:`∳`,awconint:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,asympeq:`≍`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,ddagger:`‡`,Darr:`↡`,Dashv:`⫤`,DoubleLeftTee:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,nabla:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,acute:`´`,DiacriticalDot:`˙`,dot:`˙`,DiacriticalDoubleAcute:`˝`,dblac:`˝`,DiacriticalGrave:"`",grave:"`",DiacriticalTilde:`˜`,tilde:`˜`,Diamond:`⋄`,diam:`⋄`,diamond:`⋄`,DifferentialD:`ⅆ`,dd:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DoubleDot:`¨`,die:`¨`,uml:`¨`,DotDot:`⃜`,DotEqual:`≐`,doteq:`≐`,esdot:`≐`,DoubleDownArrow:`⇓`,Downarrow:`⇓`,dArr:`⇓`,DoubleLeftArrow:`⇐`,Leftarrow:`⇐`,lArr:`⇐`,DoubleLeftRightArrow:`⇔`,Leftrightarrow:`⇔`,hArr:`⇔`,iff:`⇔`,DoubleLongLeftArrow:`⟸`,Longleftarrow:`⟸`,xlArr:`⟸`,DoubleLongLeftRightArrow:`⟺`,Longleftrightarrow:`⟺`,xhArr:`⟺`,DoubleLongRightArrow:`⟹`,Longrightarrow:`⟹`,xrArr:`⟹`,DoubleRightArrow:`⇒`,Implies:`⇒`,Rightarrow:`⇒`,rArr:`⇒`,DoubleRightTee:`⊨`,vDash:`⊨`,DoubleUpArrow:`⇑`,Uparrow:`⇑`,uArr:`⇑`,DoubleUpDownArrow:`⇕`,Updownarrow:`⇕`,vArr:`⇕`,DoubleVerticalBar:`∥`,par:`∥`,parallel:`∥`,shortparallel:`∥`,spar:`∥`,DownArrow:`↓`,ShortDownArrow:`↓`,darr:`↓`,downarrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,duarr:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,leftharpoondown:`↽`,lhard:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,rhard:`⇁`,rightharpoondown:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,top:`⊤`,DownTeeArrow:`↧`,mapstodown:`↧`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,in:`∈`,isin:`∈`,isinv:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,eqsim:`≂`,esim:`≂`,Equilibrium:`⇌`,rightleftharpoons:`⇌`,rlhar:`⇌`,Escr:`ℰ`,expectation:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,exist:`∃`,ExponentialE:`ⅇ`,ee:`ⅇ`,exponentiale:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,blacksquare:`▪`,squarf:`▪`,squf:`▪`,Fopf:`𝔽`,ForAll:`∀`,forall:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,GT:`>`,gt:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,ggg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,ge:`≥`,geq:`≥`,GreaterEqualLess:`⋛`,gel:`⋛`,gtreqless:`⋛`,GreaterFullEqual:`≧`,gE:`≧`,geqq:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,gl:`≷`,gtrless:`≷`,GreaterSlantEqual:`⩾`,geqslant:`⩾`,ges:`⩾`,GreaterTilde:`≳`,gsim:`≳`,gtrsim:`≳`,Gscr:`𝒢`,Gt:`≫`,NestedGreaterGreater:`≫`,gg:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,caron:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,Poincareplane:`ℌ`,HilbertSpace:`ℋ`,Hscr:`ℋ`,hamilt:`ℋ`,Hopf:`ℍ`,quaternions:`ℍ`,HorizontalLine:`─`,boxh:`─`,Hstrok:`Ħ`,HumpEqual:`≏`,bumpe:`≏`,bumpeq:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Im:`ℑ`,image:`ℑ`,imagpart:`ℑ`,Igrave:`Ì`,Imacr:`Ī`,ImaginaryI:`ⅈ`,ii:`ⅈ`,Int:`∬`,Integral:`∫`,int:`∫`,Intersection:`⋂`,bigcap:`⋂`,xcap:`⋂`,InvisibleComma:`⁣`,ic:`⁣`,InvisibleTimes:`⁢`,it:`⁢`,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,imagline:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,LT:`<`,lt:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Lscr:`ℒ`,lagran:`ℒ`,Larr:`↞`,twoheadleftarrow:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,lang:`⟨`,langle:`⟨`,LeftArrow:`←`,ShortLeftArrow:`←`,larr:`←`,leftarrow:`←`,slarr:`←`,LeftArrowBar:`⇤`,larrb:`⇤`,LeftArrowRightArrow:`⇆`,leftrightarrows:`⇆`,lrarr:`⇆`,LeftCeiling:`⌈`,lceil:`⌈`,LeftDoubleBracket:`⟦`,lobrk:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,dharl:`⇃`,downharpoonleft:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,lfloor:`⌊`,LeftRightArrow:`↔`,harr:`↔`,leftrightarrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,dashv:`⊣`,LeftTeeArrow:`↤`,mapstoleft:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,vartriangleleft:`⊲`,vltri:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,ltrie:`⊴`,trianglelefteq:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,uharl:`↿`,upharpoonleft:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,leftharpoonup:`↼`,lharu:`↼`,LeftVectorBar:`⥒`,LessEqualGreater:`⋚`,leg:`⋚`,lesseqgtr:`⋚`,LessFullEqual:`≦`,lE:`≦`,leqq:`≦`,LessGreater:`≶`,lessgtr:`≶`,lg:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,leqslant:`⩽`,les:`⩽`,LessTilde:`≲`,lesssim:`≲`,lsim:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,lAarr:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,longleftarrow:`⟵`,xlarr:`⟵`,LongLeftRightArrow:`⟷`,longleftrightarrow:`⟷`,xharr:`⟷`,LongRightArrow:`⟶`,longrightarrow:`⟶`,xrarr:`⟶`,Lopf:`𝕃`,LowerLeftArrow:`↙`,swarr:`↙`,swarrow:`↙`,LowerRightArrow:`↘`,searr:`↘`,searrow:`↘`,Lsh:`↰`,lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,NestedLessLess:`≪`,ll:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mscr:`ℳ`,phmmat:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,mnplus:`∓`,mp:`∓`,Mopf:`𝕄`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,ZeroWidthSpace:`​`,NewLine:`
97
- `,Nfr:`𝔑`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,nbsp:`\xA0`,Nopf:`ℕ`,naturals:`ℕ`,Not:`⫬`,NotCongruent:`≢`,nequiv:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,npar:`∦`,nparallel:`∦`,nshortparallel:`∦`,nspar:`∦`,NotElement:`∉`,notin:`∉`,notinva:`∉`,NotEqual:`≠`,ne:`≠`,NotEqualTilde:`≂̸`,nesim:`≂̸`,NotExists:`∄`,nexist:`∄`,nexists:`∄`,NotGreater:`≯`,ngt:`≯`,ngtr:`≯`,NotGreaterEqual:`≱`,nge:`≱`,ngeq:`≱`,NotGreaterFullEqual:`≧̸`,ngE:`≧̸`,ngeqq:`≧̸`,NotGreaterGreater:`≫̸`,nGtv:`≫̸`,NotGreaterLess:`≹`,ntgl:`≹`,NotGreaterSlantEqual:`⩾̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,NotGreaterTilde:`≵`,ngsim:`≵`,NotHumpDownHump:`≎̸`,nbump:`≎̸`,NotHumpEqual:`≏̸`,nbumpe:`≏̸`,NotLeftTriangle:`⋪`,nltri:`⋪`,ntriangleleft:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,nltrie:`⋬`,ntrianglelefteq:`⋬`,NotLess:`≮`,nless:`≮`,nlt:`≮`,NotLessEqual:`≰`,nle:`≰`,nleq:`≰`,NotLessGreater:`≸`,ntlg:`≸`,NotLessLess:`≪̸`,nLtv:`≪̸`,NotLessSlantEqual:`⩽̸`,nleqslant:`⩽̸`,nles:`⩽̸`,NotLessTilde:`≴`,nlsim:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,npr:`⊀`,nprec:`⊀`,NotPrecedesEqual:`⪯̸`,npre:`⪯̸`,npreceq:`⪯̸`,NotPrecedesSlantEqual:`⋠`,nprcue:`⋠`,NotReverseElement:`∌`,notni:`∌`,notniva:`∌`,NotRightTriangle:`⋫`,nrtri:`⋫`,ntriangleright:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,nrtrie:`⋭`,ntrianglerighteq:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,nsqsube:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,nsqsupe:`⋣`,NotSubset:`⊂⃒`,nsubset:`⊂⃒`,vnsub:`⊂⃒`,NotSubsetEqual:`⊈`,nsube:`⊈`,nsubseteq:`⊈`,NotSucceeds:`⊁`,nsc:`⊁`,nsucc:`⊁`,NotSucceedsEqual:`⪰̸`,nsce:`⪰̸`,nsucceq:`⪰̸`,NotSucceedsSlantEqual:`⋡`,nsccue:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,nsupset:`⊃⃒`,vnsup:`⊃⃒`,NotSupersetEqual:`⊉`,nsupe:`⊉`,nsupseteq:`⊉`,NotTilde:`≁`,nsim:`≁`,NotTildeEqual:`≄`,nsime:`≄`,nsimeq:`≄`,NotTildeFullEqual:`≇`,ncong:`≇`,NotTildeTilde:`≉`,nap:`≉`,napprox:`≉`,NotVerticalBar:`∤`,nmid:`∤`,nshortmid:`∤`,nsmid:`∤`,Nscr:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,ohm:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,ldquo:`“`,OpenCurlyQuote:`‘`,lsquo:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,oline:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,tbrk:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,part:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,plusmn:`±`,pm:`±`,Popf:`ℙ`,primes:`ℙ`,Pr:`⪻`,Precedes:`≺`,pr:`≺`,prec:`≺`,PrecedesEqual:`⪯`,pre:`⪯`,preceq:`⪯`,PrecedesSlantEqual:`≼`,prcue:`≼`,preccurlyeq:`≼`,PrecedesTilde:`≾`,precsim:`≾`,prsim:`≾`,Prime:`″`,Product:`∏`,prod:`∏`,Proportional:`∝`,prop:`∝`,propto:`∝`,varpropto:`∝`,vprop:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,quot:`"`,Qfr:`𝔔`,Qopf:`ℚ`,rationals:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,drbkarow:`⤐`,REG:`®`,circledR:`®`,reg:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,twoheadrightarrow:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,Rfr:`ℜ`,real:`ℜ`,realpart:`ℜ`,ReverseElement:`∋`,SuchThat:`∋`,ni:`∋`,niv:`∋`,ReverseEquilibrium:`⇋`,leftrightharpoons:`⇋`,lrhar:`⇋`,ReverseUpEquilibrium:`⥯`,duhar:`⥯`,Rho:`Ρ`,RightAngleBracket:`⟩`,rang:`⟩`,rangle:`⟩`,RightArrow:`→`,ShortRightArrow:`→`,rarr:`→`,rightarrow:`→`,srarr:`→`,RightArrowBar:`⇥`,rarrb:`⇥`,RightArrowLeftArrow:`⇄`,rightleftarrows:`⇄`,rlarr:`⇄`,RightCeiling:`⌉`,rceil:`⌉`,RightDoubleBracket:`⟧`,robrk:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,dharr:`⇂`,downharpoonright:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,rfloor:`⌋`,RightTee:`⊢`,vdash:`⊢`,RightTeeArrow:`↦`,map:`↦`,mapsto:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,vartriangleright:`⊳`,vrtri:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,rtrie:`⊵`,trianglerighteq:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,uharr:`↾`,upharpoonright:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,rharu:`⇀`,rightharpoonup:`⇀`,RightVectorBar:`⥓`,Ropf:`ℝ`,reals:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,rAarr:`⇛`,Rscr:`ℛ`,realine:`ℛ`,Rsh:`↱`,rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortUpArrow:`↑`,UpArrow:`↑`,uarr:`↑`,uparrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,compfn:`∘`,Sopf:`𝕊`,Sqrt:`√`,radic:`√`,Square:`□`,squ:`□`,square:`□`,SquareIntersection:`⊓`,sqcap:`⊓`,SquareSubset:`⊏`,sqsub:`⊏`,sqsubset:`⊏`,SquareSubsetEqual:`⊑`,sqsube:`⊑`,sqsubseteq:`⊑`,SquareSuperset:`⊐`,sqsup:`⊐`,sqsupset:`⊐`,SquareSupersetEqual:`⊒`,sqsupe:`⊒`,sqsupseteq:`⊒`,SquareUnion:`⊔`,sqcup:`⊔`,Sscr:`𝒮`,Star:`⋆`,sstarf:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,sube:`⊆`,subseteq:`⊆`,Succeeds:`≻`,sc:`≻`,succ:`≻`,SucceedsEqual:`⪰`,sce:`⪰`,succeq:`⪰`,SucceedsSlantEqual:`≽`,sccue:`≽`,succcurlyeq:`≽`,SucceedsTilde:`≿`,scsim:`≿`,succsim:`≿`,Sum:`∑`,sum:`∑`,Sup:`⋑`,Supset:`⋑`,Superset:`⊃`,sup:`⊃`,supset:`⊃`,SupersetEqual:`⊇`,supe:`⊇`,supseteq:`⊇`,THORN:`Þ`,TRADE:`™`,trade:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,there4:`∴`,therefore:`∴`,Theta:`Θ`,ThickSpace:`  `,ThinSpace:` `,thinsp:` `,Tilde:`∼`,sim:`∼`,thicksim:`∼`,thksim:`∼`,TildeEqual:`≃`,sime:`≃`,simeq:`≃`,TildeFullEqual:`≅`,cong:`≅`,TildeTilde:`≈`,ap:`≈`,approx:`≈`,asymp:`≈`,thickapprox:`≈`,thkap:`≈`,Topf:`𝕋`,TripleDot:`⃛`,tdot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,lowbar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,bbrk:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,bigcup:`⋃`,xcup:`⋃`,UnionPlus:`⊎`,uplus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,udarr:`⇅`,UpDownArrow:`↕`,updownarrow:`↕`,varr:`↕`,UpEquilibrium:`⥮`,udhar:`⥮`,UpTee:`⊥`,bot:`⊥`,bottom:`⊥`,perp:`⊥`,UpTeeArrow:`↥`,mapstoup:`↥`,UpperLeftArrow:`↖`,nwarr:`↖`,nwarrow:`↖`,UpperRightArrow:`↗`,nearr:`↗`,nearrow:`↗`,Upsi:`ϒ`,upsih:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,bigvee:`⋁`,xvee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,mid:`∣`,shortmid:`∣`,smid:`∣`,VerticalLine:`|`,verbar:`|`,vert:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,VeryThinSpace:` `,hairsp:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,bigwedge:`⋀`,xwedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,Zeta:`Ζ`,Zfr:`ℨ`,zeetrf:`ℨ`,Zopf:`ℤ`,integers:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,mstpos:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acy:`а`,aelig:`æ`,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,and:`∧`,wedge:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,angle:`∠`,ange:`⦤`,angmsd:`∡`,measuredangle:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,apE:`⩰`,apacir:`⩯`,ape:`≊`,approxeq:`≊`,apid:`≋`,apos:`'`,aring:`å`,ascr:`𝒶`,ast:`*`,midast:`*`,atilde:`ã`,auml:`ä`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,bcong:`≌`,backepsilon:`϶`,bepsi:`϶`,backprime:`‵`,bprime:`‵`,backsim:`∽`,bsim:`∽`,backsimeq:`⋍`,bsime:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrktbrk:`⎶`,bcy:`б`,bdquo:`„`,ldquor:`„`,bemptyv:`⦰`,beta:`β`,beth:`ℶ`,between:`≬`,twixt:`≬`,bfr:`𝔟`,bigcirc:`◯`,xcirc:`◯`,bigodot:`⨀`,xodot:`⨀`,bigoplus:`⨁`,xoplus:`⨁`,bigotimes:`⨂`,xotime:`⨂`,bigsqcup:`⨆`,xsqcup:`⨆`,bigstar:`★`,starf:`★`,bigtriangledown:`▽`,xdtri:`▽`,bigtriangleup:`△`,xutri:`△`,biguplus:`⨄`,xuplus:`⨄`,bkarow:`⤍`,rbarr:`⤍`,blacklozenge:`⧫`,lozf:`⧫`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,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:`┌`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,minusb:`⊟`,boxplus:`⊞`,plusb:`⊞`,boxtimes:`⊠`,timesb:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bumpE:`⪮`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,ccaps:`⩍`,ccaron:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cemptyv:`⦲`,cent:`¢`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,cire:`≗`,circlearrowleft:`↺`,olarr:`↺`,circlearrowright:`↻`,orarr:`↻`,circledS:`Ⓢ`,oS:`Ⓢ`,circledast:`⊛`,oast:`⊛`,circledcirc:`⊚`,ocir:`⊚`,circleddash:`⊝`,odash:`⊝`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,comma:`,`,commat:`@`,comp:`∁`,complement:`∁`,congdot:`⩭`,copf:`𝕔`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,curlyeqprec:`⋞`,cuesc:`⋟`,curlyeqsucc:`⋟`,cularr:`↶`,curvearrowleft:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curvearrowright:`↷`,curarrm:`⤼`,curlyvee:`⋎`,cuvee:`⋎`,curlywedge:`⋏`,cuwed:`⋏`,curren:`¤`,cwint:`∱`,cylcty:`⌭`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,dash:`‐`,hyphen:`‐`,dbkarow:`⤏`,rBarr:`⤏`,dcaron:`ď`,dcy:`д`,ddarr:`⇊`,downdownarrows:`⇊`,ddotseq:`⩷`,eDDot:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,diamondsuit:`♦`,diams:`♦`,digamma:`ϝ`,gammad:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,llcorner:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,doteqdot:`≑`,eDot:`≑`,dotminus:`∸`,minusd:`∸`,dotplus:`∔`,plusdo:`∔`,dotsquare:`⊡`,sdotb:`⊡`,drcorn:`⌟`,lrcorner:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,triangledown:`▿`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,eqcirc:`≖`,ecirc:`ê`,ecolon:`≕`,eqcolon:`≕`,ecy:`э`,edot:`ė`,efDot:`≒`,fallingdotseq:`≒`,efr:`𝔢`,eg:`⪚`,egrave:`è`,egs:`⪖`,eqslantgtr:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,eqslantless:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,straightepsilon:`ϵ`,varepsilon:`ϵ`,equals:`=`,equest:`≟`,questeq:`≟`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,risingdotseq:`≓`,erarr:`⥱`,escr:`ℯ`,eta:`η`,eth:`ð`,euml:`ë`,euro:`€`,excl:`!`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,fork:`⋔`,pitchfork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,sfrown:`⌢`,fscr:`𝒻`,gEl:`⪌`,gtreqqless:`⪌`,gacute:`ǵ`,gamma:`γ`,gap:`⪆`,gtrapprox:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gimel:`ℷ`,gjcy:`ѓ`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gneqq:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gnsim:`⋧`,gopf:`𝕘`,gscr:`ℊ`,gsime:`⪎`,gsiml:`⪐`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtrdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrarr:`⥸`,gvertneqq:`≩︀`,gvnE:`≩︀`,hardcy:`ъ`,harrcir:`⥈`,harrw:`↭`,leftrightsquigarrow:`↭`,hbar:`ℏ`,hslash:`ℏ`,planck:`ℏ`,plankv:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,mldr:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,searhk:`⤥`,hkswarow:`⤦`,swarhk:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,larrhk:`↩`,hookrightarrow:`↪`,rarrhk:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hstrok:`ħ`,hybull:`⁃`,iacute:`í`,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,ifr:`𝔦`,igrave:`ì`,iiiint:`⨌`,qint:`⨌`,iiint:`∭`,tint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,imath:`ı`,inodot:`ı`,imof:`⊷`,imped:`Ƶ`,incare:`℅`,infin:`∞`,infintie:`⧝`,intcal:`⊺`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iquest:`¿`,iscr:`𝒾`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,itilde:`ĩ`,iukcy:`і`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAtail:`⤛`,lBarr:`⤎`,lEg:`⪋`,lesseqqgtr:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lambda:`λ`,langd:`⦑`,lap:`⪅`,lessapprox:`⪅`,laquo:`«`,larrbfs:`⤟`,larrfs:`⤝`,larrlp:`↫`,looparrowleft:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,leftarrowtail:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lcub:`{`,lbrack:`[`,lsqb:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lcy:`л`,ldca:`⤶`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leq:`≤`,leftleftarrows:`⇇`,llarr:`⇇`,leftthreetimes:`⋋`,lthree:`⋋`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessdot:`⋖`,ltdot:`⋖`,lfisht:`⥼`,lfr:`𝔩`,lgE:`⪑`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lneqq:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,longmapsto:`⟼`,xmap:`⟼`,looparrowright:`↬`,rarrlp:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,loz:`◊`,lozenge:`◊`,lpar:`(`,lparlt:`⦓`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsime:`⪍`,lsimg:`⪏`,lsquor:`‚`,sbquo:`‚`,lstrok:`ł`,ltcc:`⪦`,ltcir:`⩹`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,triangleleft:`◃`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,strns:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,mfr:`𝔪`,mho:`℧`,micro:`µ`,midcir:`⫰`,minus:`−`,minusdu:`⨪`,mlcp:`⫛`,models:`⊧`,mopf:`𝕞`,mscr:`𝓂`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nLeftarrow:`⇍`,nlArr:`⇍`,nLeftrightarrow:`⇎`,nhArr:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nRightarrow:`⇏`,nrArr:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nacute:`ń`,nang:`∠⃒`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,natur:`♮`,natural:`♮`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,neArr:`⇗`,nearhk:`⤤`,nedot:`≐̸`,nesear:`⤨`,toea:`⤨`,nfr:`𝔫`,nharr:`↮`,nleftrightarrow:`↮`,nhpar:`⫲`,nis:`⋼`,nisd:`⋺`,njcy:`њ`,nlE:`≦̸`,nleqq:`≦̸`,nlarr:`↚`,nleftarrow:`↚`,nldr:`‥`,nopf:`𝕟`,not:`¬`,notinE:`⋹̸`,notindot:`⋵̸`,notinvb:`⋷`,notinvc:`⋶`,notnivb:`⋾`,notnivc:`⋽`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,nrarr:`↛`,nrightarrow:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nscr:`𝓃`,nsub:`⊄`,nsubE:`⫅̸`,nsubseteqq:`⫅̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupseteqq:`⫆̸`,ntilde:`ñ`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwnear:`⤧`,oacute:`ó`,ocirc:`ô`,ocy:`о`,odblac:`ő`,odiv:`⨸`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,olcir:`⦾`,olcross:`⦻`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,or:`∨`,vee:`∨`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,oscr:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimesas:`⨶`,ouml:`ö`,ovbar:`⌽`,para:`¶`,parsim:`⫳`,parsl:`⫽`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,straightphi:`ϕ`,varphi:`ϕ`,phone:`☎`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,planckh:`ℎ`,plus:`+`,plusacir:`⨣`,pluscir:`⨢`,plusdu:`⨥`,pluse:`⩲`,plussim:`⨦`,plustwo:`⨧`,pointint:`⨕`,popf:`𝕡`,pound:`£`,prE:`⪳`,prap:`⪷`,precapprox:`⪷`,precnapprox:`⪹`,prnap:`⪹`,precneqq:`⪵`,prnE:`⪵`,precnsim:`⋨`,prnsim:`⋨`,prime:`′`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quatint:`⨖`,quest:`?`,rAtail:`⤜`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,raemptyv:`⦳`,rangd:`⦒`,range:`⦥`,raquo:`»`,rarrap:`⥵`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rightarrowtail:`↣`,rarrw:`↝`,rightsquigarrow:`↝`,ratail:`⤚`,ratio:`∶`,rbbrk:`❳`,rbrace:`}`,rcub:`}`,rbrack:`]`,rsqb:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdsh:`↳`,rect:`▭`,rfisht:`⥽`,rfr:`𝔯`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,rightrightarrows:`⇉`,rrarr:`⇉`,rightthreetimes:`⋌`,rthree:`⋌`,ring:`˚`,rlm:`‏`,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rsaquo:`›`,rscr:`𝓇`,rtimes:`⋊`,rtri:`▹`,triangleright:`▹`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,scE:`⪴`,scap:`⪸`,succapprox:`⪸`,scaron:`š`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,succneqq:`⪶`,scnap:`⪺`,succnapprox:`⪺`,scnsim:`⋩`,succnsim:`⋩`,scpolint:`⨓`,scy:`с`,sdot:`⋅`,sdote:`⩦`,seArr:`⇘`,sect:`§`,semi:`;`,seswar:`⤩`,tosa:`⤩`,sext:`✶`,sfr:`𝔰`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shy:`­`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,simdot:`⩪`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,smashp:`⨳`,smeparsl:`⧤`,smile:`⌣`,ssmile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,sqcaps:`⊓︀`,sqcups:`⊔︀`,sscr:`𝓈`,star:`☆`,sub:`⊂`,subset:`⊂`,subE:`⫅`,subseteqq:`⫅`,subdot:`⪽`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subsetneqq:`⫋`,subne:`⊊`,subsetneq:`⊊`,subplus:`⪿`,subrarr:`⥹`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,supE:`⫆`,supseteqq:`⫆`,supdot:`⪾`,supdsub:`⫘`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supsetneqq:`⫌`,supne:`⊋`,supsetneq:`⊋`,supplus:`⫀`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swnwar:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,telrec:`⌕`,tfr:`𝔱`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,vartheta:`ϑ`,thorn:`þ`,times:`×`,timesbar:`⨱`,timesd:`⨰`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tprime:`‴`,triangle:`▵`,utri:`▵`,triangleq:`≜`,trie:`≜`,tridot:`◬`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,uHar:`⥣`,uacute:`ú`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udblac:`ű`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uogon:`ų`,uopf:`𝕦`,upsi:`υ`,upsilon:`υ`,upuparrows:`⇈`,uuarr:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,uuml:`ü`,uwangle:`⦧`,vBar:`⫨`,vBarv:`⫩`,vangrt:`⦜`,varsubsetneq:`⊊︀`,vsubne:`⊊︀`,varsubsetneqq:`⫋︀`,vsubnE:`⫋︀`,varsupsetneq:`⊋︀`,vsupne:`⊋︀`,varsupsetneqq:`⫌︀`,vsupnE:`⫌︀`,vcy:`в`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,vfr:`𝔳`,vopf:`𝕧`,vscr:`𝓋`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedgeq:`≙`,weierp:`℘`,wp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wscr:`𝓌`,xfr:`𝔵`,xi:`ξ`,xnis:`⋻`,xopf:`𝕩`,xscr:`𝓍`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`};Yv.ngsp=``;var Xv=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Zv(e,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw Error(`Expected '${e}' to be an array, [start, end].`);if(t!=null){let e=t[0],n=t[1];Xv.forEach(t=>{if(t.test(e)||t.test(n))throw Error(`['${e}', '${n}'] contains unusable interpolation symbol.`)})}}var Qv=new class e{static fromArray(t){return t?(Zv(`interpolation`,t),new e(t[0],t[1])):Qv}constructor(e,t){this.start=e,this.end=t}}(`{{`,`}}`),$v=class extends R_{constructor(e,t,n){super(n,e),this.tokenType=t}},ey=class{constructor(e,t,n){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=n}};function ty(e,t,n,r={}){let i=new cy(new I_(e,t),n,r);return i.tokenize(),new ey(vy(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var ny=/\r\n?/g;function ry(e){return`Unexpected character "${e===0?`EOF`:String.fromCharCode(e)}"`}function iy(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function ay(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var oy;(function(e){e.HEX=`hexadecimal`,e.DEC=`decimal`})(oy||={});var sy=class{constructor(e){this.error=e}},cy=class{constructor(e,t,n){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Qv,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(e=>e.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let r=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new by(e,r):new yy(e,r),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0;try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(ny,`
98
- `)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr(`[CDATA[`)?this._consumeCdata(e):this._attemptStr(`--`)?this._consumeComment(e):this._attemptStrCaseInsensitive(`doctype`)?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr(`@let`)?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(e){this.handleError(e)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(t=>E_(t)?!e:gy(t)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._beginToken(25,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(J),this._attemptCharCode(41))this._attemptCharCodeUntilFn(J);else{t.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):t.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(_y);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),t=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let e=this._cursor.peek();if(e===92)this._cursor.advance();else if(e===t)t=null;else if(t===null&&M_(e))t=e;else if(e===40&&t===null)n++;else if(e===41&&t===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(_y)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),E_(this._cursor.peek()))this._attemptCharCodeUntilFn(J);else{let t=this._endToken([this._cursor.getChars(e)]);t.type=33;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(J),!this._attemptCharCode(61)){t.type=33;return}this._attemptCharCodeUntilFn(e=>J(e)&&!A_(e)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(t.type=33,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(e=>O_(e)||e===36||e===95||t&&D_(e)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let e=this._cursor.peek();if(e===59)break;M_(e)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(t=>t===92?(this._cursor.advance(),!1):t===e)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(py(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new $v(`Programming error - attempted to end a token when there was no start to the token`,this._currentTokenType,this._cursor.getSpan(t));if(this._currentTokenType===null)throw new $v(`Programming error - attempted to end a token which has no token type`,null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new $v(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new sy(n)}handleError(e){if(e instanceof xy&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof sy)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return my(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(ry(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let n=this._cursor.clone();for(let r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=n,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(ry(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(ry(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(n)<t)throw this._createError(ry(this._cursor.peek()),this._cursor.getSpan(n))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_consumeEntity(e){this._beginToken(9);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let e=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(dy),this._cursor.peek()!=59){this._cursor.advance();let n=e?oy.HEX:oy.DEC;throw this._createError(ay(n,this._cursor.getChars(t)),this._cursor.getSpan())}let r=this._cursor.getChars(n);this._cursor.advance();try{let n=parseInt(r,e?16:10);this._endToken([String.fromCharCode(n),this._cursor.getChars(t)])}catch{throw this._createError(iy(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(fy),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=n,this._endToken([`&`]);else{let e=this._cursor.getChars(n);this._cursor.advance();let r=Yv[e];if(!r)throw this._createError(iy(e),this._cursor.getSpan(t));this._endToken([r,`&${e};`])}}}_consumeRawText(e,t){this._beginToken(e?6:7);let n=[];for(;;){let r=this._cursor.clone(),i=t();if(this._cursor=r,i)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(n.join(``))]),n.length=0,this._consumeEntity(6),this._beginToken(6)):n.push(this._readChar())}this._endToken([this._processCarriageReturns(n.join(``))])}_consumeComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr(`-->`)),this._beginToken(11),this._requireStr(`-->`),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr(`]]>`)),this._beginToken(13),this._requireStr(`]]>`),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),t=``;for(;this._cursor.peek()!==58&&!uy(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(t=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn(ly,t===``?0:1);let r=this._cursor.getChars(n);return[t,r]}_consumeTagOpen(e){let t,n,r,i=[];try{if(!O_(this._cursor.peek()))throw this._createError(ry(this._cursor.peek()),this._cursor.getSpan(e));for(r=this._consumeTagOpenStart(e),n=r.parts[0],t=r.parts[1],this._attemptCharCodeUntilFn(J);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[e,t]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(J),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(J);let n=this._consumeAttributeValue();i.push({prefix:e,name:t,value:n})}else i.push({prefix:e,name:t});this._attemptCharCodeUntilFn(J)}this._consumeTagOpenEnd()}catch(t){if(t instanceof sy){r?r.type=4:(this._beginToken(5,e),this._endToken([`<`]));return}throw t}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let a=this._getTagContentType(t,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,t),a===pv.RAW_TEXT?this._consumeRawTextWithTagClose(n,t,!1):a===pv.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,t,!0)}_consumeRawTextWithTagClose(e,t,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(J),!this._attemptStrCaseInsensitive(e?`${e}:${t}`:t))?!1:(this._attemptCharCodeUntilFn(J),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(e=>e===62,3),this._cursor.advance(),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(ry(e),this._cursor.getSpan());this._beginToken(14);let t=this._consumePrefixAndName();return this._endToken(t),t}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let n=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(t)}else{let t=()=>ly(this._cursor.peek());e=this._consumeWithInterpolation(16,17,t,t)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(J),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(J),this._requireCharCode(62),this._endToken([]);else{let[e,t]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(J),this._requireCharCode(62),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(J),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(J)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(J),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(J),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(J),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,n,r){this._beginToken(e);let i=[];for(;!n();){let n=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(``))],n),i.length=0,this._consumeInterpolation(t,n,r),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(``))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(``));return this._endToken([a]),a}_consumeInterpolation(e,t,n){let r=[];this._beginToken(e,t),r.push(this._interpolationConfig.start);let i=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let e=this._cursor.clone();if(this._isTagStart()){this._cursor=e,r.push(this._getProcessedChars(i,e)),this._endToken(r);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){r.push(this._getProcessedChars(i,e)),r.push(this._interpolationConfig.end),this._endToken(r);return}else this._attemptStr(`//`)&&(o=!0);let t=this._cursor.peek();this._cursor.advance(),t===92?this._cursor.advance():t===a?a=null:!o&&a===null&&M_(t)&&(a=t)}r.push(this._getProcessedChars(i,this._cursor)),this._endToken(r)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let e=this._cursor.clone();if(e.advance(),gy(e.peek()))return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}_handleFullNameStackForTagOpen(e,t){let n=vv(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,t){let n=vv(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function J(e){return!E_(e)||e===0}function ly(e){return E_(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function uy(e){return(e<97||122<e)&&(e<65||90<e)&&(e<48||e>57)}function dy(e){return e===59||e===0||!k_(e)}function fy(e){return e===59||e===0||!O_(e)}function py(e){return e!==125}function my(e,t){return hy(e)===hy(t)}function hy(e){return e>=97&&e<=122?e-97+65:e}function gy(e){return O_(e)||D_(e)||e===95}function _y(e){return e!==59&&J(e)}function vy(e){let t=[],n;for(let r=0;r<e.length;r++){let i=e[r];n&&n.type===5&&i.type===5||n&&n.type===16&&i.type===16?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,t.push(n))}return t}var yy=class e{constructor(t,n){if(t instanceof e){this.file=t.file,this.input=t.input,this.end=t.end;let e=t.state;this.state={peek:e.peek,offset:e.offset,line:e.line,column:e.column}}else{if(!n)throw Error(`Programming error: the range argument must be provided with a file argument.`);this.file=t,this.input=t.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}clone(){return new e(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){e||=this;let n=e;if(t)for(;this.diff(e)>0&&t.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let r=this.locationFromCursor(e);return new K(r,this.locationFromCursor(this),n===e?r:this.locationFromCursor(n))}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new xy(`Unexpected character "EOF"`,this);let t=this.charAt(e.offset);t===10?(e.line++,e.column=0):A_(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new F_(e.file,e.state.offset,e.state.line,e.state.column)}},by=class e extends yy{constructor(t,n){t instanceof e?(super(t),this.internalState={...t.internalState}):(super(t,n),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new e(this)}getChars(e){let t=e.clone(),n=``;for(;t.internalState.offset<this.internalState.offset;)n+=String.fromCodePoint(t.peek()),t.advance();return n}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let t=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(t,n)}else{let e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}else if(e()===120){this.advanceState(this.internalState);let e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(j_(e())){let t=``,n=0,r=this.clone();for(;j_(e())&&n<3;)r=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(t,8),this.internalState=r.internalState}else A_(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){let n=this.input.slice(e.internalState.offset,e.internalState.offset+t),r=parseInt(n,16);if(isNaN(r))throw e.state=e.internalState,new xy(`Invalid hexadecimal escape sequence`,e);return r}},xy=class{constructor(e,t){this.msg=e,this.cursor=t}},Sy=class e extends R_{static create(t,n,r){return new e(t,n,r)}constructor(e,t,n){super(t,n),this.elementName=e}},Cy=class{constructor(e,t){this.rootNodes=e,this.errors=t}},wy=class{constructor(e){this.getTagDefinition=e}parse(e,t,n,r=!1,i){let a=e=>(t,...n)=>e(t.toLowerCase(),...n),o=r?this.getTagDefinition:a(this.getTagDefinition),s=e=>o(e).getContentType(),c=r?i:a(i),l=ty(e,t,i?(e,t,n,r)=>{let i=c(e,t,n,r);return i===void 0?s(e):i}:s,n),u=n&&n.canSelfClose||!1,d=n&&n.allowHtmComponentClosingTags||!1,f=new Ty(l.tokens,o,u,d,r);return f.build(),new Cy(f.rootNodes,l.errors.concat(f.errors))}},Ty=class e{constructor(e,t,n,r,i){this.tokens=e,this.getTagDefinition=t,this.canSelfClose=n,this.allowHtmComponentClosingTags=r,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof Wv&&this.errors.push(Sy.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){let t=this._advance(),n=this._getText(t),r=this._advanceIf(13);this._addToParent(new Lv(n,new K(e.sourceSpan.start,(r||t).sourceSpan.end),[t]))}_consumeComment(e){let t=this._advanceIf(7),n=this._advanceIf(11),r=t==null?null:t.parts[0].trim(),i=n==null?e.sourceSpan:new K(e.sourceSpan.start,n.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Hv(r,i))}_consumeDocType(e){let t=this._advanceIf(7),n=this._advanceIf(19),r=t==null?null:t.parts[0].trim(),i=new K(e.sourceSpan.start,(n||t||e).sourceSpan.end);this._addToParent(new Uv(r,i))}_consumeExpansion(e){let t=this._advance(),n=this._advance(),r=[];for(;this._peek.type===21;){let e=this._parseExpansionCase();if(!e)return;r.push(e)}if(this._peek.type!==24){this.errors.push(Sy.create(null,this._peek.sourceSpan,`Invalid ICU message. Missing '}'.`));return}let i=new K(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Rv(t.parts[0],n.parts[0],r,i,t.sourceSpan)),this._advance()}_parseExpansionCase(){let t=this._advance();if(this._peek.type!==22)return this.errors.push(Sy.create(null,this._peek.sourceSpan,`Invalid ICU message. Missing '{'.`)),null;let n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;let i=this._advance();r.push({type:34,parts:[],sourceSpan:i.sourceSpan});let a=new e(r,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(a.build(),a.errors.length>0)return this.errors=this.errors.concat(a.errors),null;let o=new K(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),s=new K(n.sourceSpan.start,i.sourceSpan.end,n.sourceSpan.fullStart);return new zv(t.parts[0],a.rootNodes,o,t.sourceSpan,s)}_collectExpansionExpTokens(e){let t=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(Ey(n,22)){if(n.pop(),n.length===0)return t}else return this.errors.push(Sy.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null;if(this._peek.type===24)if(Ey(n,20))n.pop();else return this.errors.push(Sy.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null;if(this._peek.type===34)return this.errors.push(Sy.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null;t.push(this._advance())}}_getText(e){let t=e.parts[0];if(t.length>0&&t[0]==`
99
- `){let e=this._getClosestParentElement();e!=null&&e.children.length==0&&this.getTagDefinition(e.name).ignoreFirstLf&&(t=t.substring(1))}return t}_consumeText(e){let t=[e],n=e.sourceSpan,r=e.parts[0];if(r.length>0&&r[0]===`
100
- `){let n=this._getContainer();n!=null&&n.children.length===0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[r]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),t.push(e),e.type===8?r+=e.parts.join(``).replace(/&([^;]+);/g,Dy):e.type===9?r+=e.parts[0]:r+=e.parts.join(``);if(r.length>0){let i=e.sourceSpan;this._addToParent(new Iv(r,new K(n.start,i.end,n.fullStart,n.details),t))}}_closeVoidElement(){let e=this._getContainer();e instanceof Vv&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[t,n]=e.parts,r=[];for(;this._peek.type===14;)r.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(t,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let t=this.getTagDefinition(i);this.canSelfClose||t.canSelfClose||_v(i)!==null||t.isVoid||this.errors.push(Sy.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,s=new K(e.sourceSpan.start,o,e.sourceSpan.fullStart),c=new Vv(i,r,[],s,new K(e.sourceSpan.start,o,e.sourceSpan.fullStart),void 0,new K(e.sourceSpan.start.moveBy(1),e.sourceSpan.end)),l=this._getContainer();this._pushContainer(c,l instanceof Vv&&this.getTagDefinition(l.name).isClosedByChild(c.name)),a?this._popContainer(i,Vv,s):e.type===4&&(this._popContainer(i,Vv,null),this.errors.push(Sy.create(i,s,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let t=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(t&&this.getTagDefinition(t).isVoid)this.errors.push(Sy.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(t,Vv,e.sourceSpan)){let n=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Sy.create(t,e.sourceSpan,n))}}_popContainer(e,t,n){let r=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(_v(a.name)?a.name===e:(e==null||a.name.toLowerCase()===e.toLowerCase())&&a instanceof t)return a.endSourceSpan=n,a.sourceSpan.end=n===null?a.sourceSpan.end:n.end,this._containerStack.splice(i,this._containerStack.length-i),!r;(a instanceof Wv||a instanceof Vv&&!this.getTagDefinition(a.name).closedByParent)&&(r=!0)}return!1}_consumeAttr(e){let t=vv(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r;this._peek.type===15&&(r=this._advance());let i=``,a=[],o,s;if(this._peek.type===16)for(o=this._peek.sourceSpan,s=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let e=this._advance();a.push(e),e.type===17?i+=e.parts.join(``).replace(/&([^;]+);/g,Dy):e.type===9?i+=e.parts[0]:i+=e.parts.join(``),s=n=e.sourceSpan.end}this._peek.type===15&&(s=n=this._advance().sourceSpan.end);let c=o&&s&&new K(r?.sourceSpan.start??o.start,s,r?.sourceSpan.fullStart??o.fullStart);return new Bv(t,i,new K(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,c,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let t=[];for(;this._peek.type===28;){let e=this._advance();t.push(new Gv(e.parts[0],e.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,r=new K(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new K(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new Wv(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,Wv,e.sourceSpan)||this.errors.push(Sy.create(null,e.sourceSpan,`Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.`))}_consumeIncompleteBlock(e){let t=[];for(;this._peek.type===28;){let e=this._advance();t.push(new Gv(e.parts[0],e.sourceSpan))}let n=this._peek.sourceSpan.fullStart,r=new K(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new K(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new Wv(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,Wv,null),this.errors.push(Sy.create(e.parts[0],r,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(e){let t=e.parts[0],n,r;if(this._peek.type!==31){this.errors.push(Sy.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${t}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==32){this.errors.push(Sy.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${t}". Declaration must be terminated with a semicolon.`));return}else r=this._advance();let i=r.sourceSpan.fullStart,a=new K(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(t),s=new K(e.sourceSpan.start.moveBy(o),e.sourceSpan.end),c=new Kv(t,n.parts[0],a,s,n.sourceSpan);this._addToParent(c)}_consumeIncompleteLet(e){let t=e.parts[0]??``,n=t?` "${t}"`:``;if(t.length>0){let n=e.sourceSpan.toString().lastIndexOf(t),r=new K(e.sourceSpan.start.moveBy(n),e.sourceSpan.end),i=new K(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),a=new Kv(t,``,e.sourceSpan,r,i);this._addToParent(a)}this.errors.push(Sy.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof Vv)return this._containerStack[e];return null}_addToParent(e){let t=this._getContainer();t===null?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t,n){if(e===``&&(e=this.getTagDefinition(t).implicitNamespacePrefix||``,e===``&&n!=null)){let t=mv(n.name)[1];this.getTagDefinition(t).preventNamespaceInheritance||(e=_v(n.name))}return vv(e,t)}};function Ey(e,t){return e.length>0&&e[e.length-1]===t}function Dy(e,t){return Yv[t]===void 0?/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e:Yv[t]||e}var Oy=class extends wy{constructor(){super(Pv)}parse(e,t,n,r=!1,i){return super.parse(e,t,n,r,i)}},ky=null,Ay=()=>(ky||=new Oy,ky);function jy(e,t={}){let{canSelfClose:n=!1,allowHtmComponentClosingTags:r=!1,isTagNameCaseSensitive:i=!1,getTagContentType:a,tokenizeAngularBlocks:o=!1,tokenizeAngularLetDeclaration:s=!1}=t;return Ay().parse(e,`angular-html-parser`,{tokenizeExpansionForms:o,interpolationConfig:void 0,canSelfClose:n,allowHtmComponentClosingTags:r,tokenizeBlocks:o,tokenizeLet:s},i,a)}function My(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var Ny=My,Py=3;function Fy(e){let t=e.slice(0,Py);if(t!==`---`&&t!==`+++`)return;let n=e.indexOf(`
101
- `,Py);if(n===-1)return;let r=e.slice(Py,n).trim(),i=e.indexOf(`
102
- ${t}`,n),a=r;if(a||=t===`+++`?`toml`:`yaml`,i===-1&&t===`---`&&a===`yaml`&&(i=e.indexOf(`
103
- ...`,n)),i===-1)return;let o=i+1+Py,s=e.charAt(o+1);if(!/\s?/u.test(s))return;let c=e.slice(0,o);return{type:`front-matter`,language:a,explicitLanguage:r,value:e.slice(n+1,i),startDelimiter:t,endDelimiter:c.slice(-Py),raw:c}}function Iy(e){let t=Fy(e);if(!t)return{content:e};let{raw:n}=t;return{frontMatter:t,content:up(!1,n,/[^\n]/gu,` `)+e.slice(n.length)}}var Ly=Iy,Ry={attrs:!0,children:!0,cases:!0,expression:!0},zy=new Set([`parent`]),By,Vy,Hy,Uy=class e{constructor(e={}){sp(this,By),ip(this,`type`),ip(this,`parent`);for(let t of new Set([...zy,...Object.keys(e)]))this.setProperty(t,e[t])}setProperty(e,t){if(this[e]!==t){if(e in Ry&&(t=t.map(e=>this.createChild(e))),!zy.has(e)){this[e]=t;return}Object.defineProperty(this,e,{value:t,enumerable:!1,configurable:!0})}}map(t){let n;for(let r in Ry){let i=this[r];if(i){let a=Gy(i,e=>e.map(t));n!==i&&(n||=new e({parent:this.parent}),n.setProperty(r,a))}}if(n)for(let e in this)e in Ry||(n[e]=this[e]);return t(n||this)}walk(e){for(let t in Ry){let n=this[t];if(n)for(let t=0;t<n.length;t++)n[t].walk(e)}e(this)}createChild(t){let n=t instanceof e?t.clone():new e(t);return n.setProperty(`parent`,this),n}insertChildBefore(e,t){let n=this.$children;n.splice(n.indexOf(e),0,this.createChild(t))}removeChild(e){let t=this.$children;t.splice(t.indexOf(e),1)}replaceChild(e,t){let n=this.$children;n[n.indexOf(e)]=this.createChild(t)}clone(){return new e(this)}get $children(){return this[op(this,By,Vy)]}set $children(e){this[op(this,By,Vy)]=e}get firstChild(){return this.$children?.[0]}get lastChild(){return Dp(!0,this.$children,-1)}get prev(){let e=op(this,By,Hy);return e[e.indexOf(this)-1]}get next(){let e=op(this,By,Hy);return e[e.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+`:`+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(e=>[e.fullName,e.value]))}};By=new WeakSet,Vy=function(){return this.type===`angularIcuCase`?`expression`:this.type===`angularIcuExpression`?`cases`:`children`},Hy=function(){return this.parent?.$children??[]};var Wy=Uy;function Gy(e,t){let n=e.map(t);return n.some((t,n)=>t!==e[n])?n:e}var Ky=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Jy},{regex:/^\[if([^\]]*)\]><!$/u,parse:Yy},{regex:/^<!\s*\[endif\]$/u,parse:Xy}];function qy(e,t){if(e.value)for(let{regex:n,parse:r}of Ky){let i=e.value.match(n);if(i)return r(e,t,i)}return null}function Jy(e,t,n){let[,r,i,a]=n,o=4+r.length,s=e.sourceSpan.start.moveBy(o),c=s.moveBy(a.length),[l,u]=(()=>{try{return[!0,t(a,s).children]}catch{return[!1,[{type:`text`,value:a,sourceSpan:new K(s,c)}]]}})();return{type:`ieConditionalComment`,complete:l,children:u,condition:up(!1,i.trim(),/\s+/gu,` `),sourceSpan:e.sourceSpan,startSourceSpan:new K(e.sourceSpan.start,s),endSourceSpan:new K(c,e.sourceSpan.end)}}function Yy(e,t,n){let[,r]=n;return{type:`ieConditionalStartComment`,condition:up(!1,r.trim(),/\s+/gu,` `),sourceSpan:e.sourceSpan}}function Xy(e){return{type:`ieConditionalEndComment`,sourceSpan:e.sourceSpan}}var Zy=new Map([[`*`,new Set(`accesskey.autocapitalize.autofocus.class.contenteditable.dir.draggable.enterkeyhint.hidden.id.inert.inputmode.is.itemid.itemprop.itemref.itemscope.itemtype.lang.nonce.popover.slot.spellcheck.style.tabindex.title.translate.writingsuggestions`.split(`.`))],[`a`,new Set([`charset`,`coords`,`download`,`href`,`hreflang`,`name`,`ping`,`referrerpolicy`,`rel`,`rev`,`shape`,`target`,`type`])],[`applet`,new Set([`align`,`alt`,`archive`,`code`,`codebase`,`height`,`hspace`,`name`,`object`,`vspace`,`width`])],[`area`,new Set([`alt`,`coords`,`download`,`href`,`hreflang`,`nohref`,`ping`,`referrerpolicy`,`rel`,`shape`,`target`,`type`])],[`audio`,new Set([`autoplay`,`controls`,`crossorigin`,`loop`,`muted`,`preload`,`src`])],[`base`,new Set([`href`,`target`])],[`basefont`,new Set([`color`,`face`,`size`])],[`blockquote`,new Set([`cite`])],[`body`,new Set([`alink`,`background`,`bgcolor`,`link`,`text`,`vlink`])],[`br`,new Set([`clear`])],[`button`,new Set([`disabled`,`form`,`formaction`,`formenctype`,`formmethod`,`formnovalidate`,`formtarget`,`name`,`popovertarget`,`popovertargetaction`,`type`,`value`])],[`canvas`,new Set([`height`,`width`])],[`caption`,new Set([`align`])],[`col`,new Set([`align`,`char`,`charoff`,`span`,`valign`,`width`])],[`colgroup`,new Set([`align`,`char`,`charoff`,`span`,`valign`,`width`])],[`data`,new Set([`value`])],[`del`,new Set([`cite`,`datetime`])],[`details`,new Set([`name`,`open`])],[`dialog`,new Set([`open`])],[`dir`,new Set([`compact`])],[`div`,new Set([`align`])],[`dl`,new Set([`compact`])],[`embed`,new Set([`height`,`src`,`type`,`width`])],[`fieldset`,new Set([`disabled`,`form`,`name`])],[`font`,new Set([`color`,`face`,`size`])],[`form`,new Set([`accept`,`accept-charset`,`action`,`autocomplete`,`enctype`,`method`,`name`,`novalidate`,`target`])],[`frame`,new Set([`frameborder`,`longdesc`,`marginheight`,`marginwidth`,`name`,`noresize`,`scrolling`,`src`])],[`frameset`,new Set([`cols`,`rows`])],[`h1`,new Set([`align`])],[`h2`,new Set([`align`])],[`h3`,new Set([`align`])],[`h4`,new Set([`align`])],[`h5`,new Set([`align`])],[`h6`,new Set([`align`])],[`head`,new Set([`profile`])],[`hr`,new Set([`align`,`noshade`,`size`,`width`])],[`html`,new Set([`manifest`,`version`])],[`iframe`,new Set([`align`,`allow`,`allowfullscreen`,`allowpaymentrequest`,`allowusermedia`,`frameborder`,`height`,`loading`,`longdesc`,`marginheight`,`marginwidth`,`name`,`referrerpolicy`,`sandbox`,`scrolling`,`src`,`srcdoc`,`width`])],[`img`,new Set([`align`,`alt`,`border`,`crossorigin`,`decoding`,`fetchpriority`,`height`,`hspace`,`ismap`,`loading`,`longdesc`,`name`,`referrerpolicy`,`sizes`,`src`,`srcset`,`usemap`,`vspace`,`width`])],[`input`,new Set(`accept.align.alt.autocomplete.checked.dirname.disabled.form.formaction.formenctype.formmethod.formnovalidate.formtarget.height.ismap.list.max.maxlength.min.minlength.multiple.name.pattern.placeholder.popovertarget.popovertargetaction.readonly.required.size.src.step.type.usemap.value.width`.split(`.`))],[`ins`,new Set([`cite`,`datetime`])],[`isindex`,new Set([`prompt`])],[`label`,new Set([`for`,`form`])],[`legend`,new Set([`align`])],[`li`,new Set([`type`,`value`])],[`link`,new Set([`as`,`blocking`,`charset`,`color`,`crossorigin`,`disabled`,`fetchpriority`,`href`,`hreflang`,`imagesizes`,`imagesrcset`,`integrity`,`media`,`referrerpolicy`,`rel`,`rev`,`sizes`,`target`,`type`])],[`map`,new Set([`name`])],[`menu`,new Set([`compact`])],[`meta`,new Set([`charset`,`content`,`http-equiv`,`media`,`name`,`scheme`])],[`meter`,new Set([`high`,`low`,`max`,`min`,`optimum`,`value`])],[`object`,new Set([`align`,`archive`,`border`,`classid`,`codebase`,`codetype`,`data`,`declare`,`form`,`height`,`hspace`,`name`,`standby`,`type`,`typemustmatch`,`usemap`,`vspace`,`width`])],[`ol`,new Set([`compact`,`reversed`,`start`,`type`])],[`optgroup`,new Set([`disabled`,`label`])],[`option`,new Set([`disabled`,`label`,`selected`,`value`])],[`output`,new Set([`for`,`form`,`name`])],[`p`,new Set([`align`])],[`param`,new Set([`name`,`type`,`value`,`valuetype`])],[`pre`,new Set([`width`])],[`progress`,new Set([`max`,`value`])],[`q`,new Set([`cite`])],[`script`,new Set([`async`,`blocking`,`charset`,`crossorigin`,`defer`,`fetchpriority`,`integrity`,`language`,`nomodule`,`referrerpolicy`,`src`,`type`])],[`select`,new Set([`autocomplete`,`disabled`,`form`,`multiple`,`name`,`required`,`size`])],[`slot`,new Set([`name`])],[`source`,new Set([`height`,`media`,`sizes`,`src`,`srcset`,`type`,`width`])],[`style`,new Set([`blocking`,`media`,`type`])],[`table`,new Set([`align`,`bgcolor`,`border`,`cellpadding`,`cellspacing`,`frame`,`rules`,`summary`,`width`])],[`tbody`,new Set([`align`,`char`,`charoff`,`valign`])],[`td`,new Set([`abbr`,`align`,`axis`,`bgcolor`,`char`,`charoff`,`colspan`,`headers`,`height`,`nowrap`,`rowspan`,`scope`,`valign`,`width`])],[`template`,new Set([`shadowrootclonable`,`shadowrootdelegatesfocus`,`shadowrootmode`])],[`textarea`,new Set([`autocomplete`,`cols`,`dirname`,`disabled`,`form`,`maxlength`,`minlength`,`name`,`placeholder`,`readonly`,`required`,`rows`,`wrap`])],[`tfoot`,new Set([`align`,`char`,`charoff`,`valign`])],[`th`,new Set([`abbr`,`align`,`axis`,`bgcolor`,`char`,`charoff`,`colspan`,`headers`,`height`,`nowrap`,`rowspan`,`scope`,`valign`,`width`])],[`thead`,new Set([`align`,`char`,`charoff`,`valign`])],[`time`,new Set([`datetime`])],[`tr`,new Set([`align`,`bgcolor`,`char`,`charoff`,`valign`])],[`track`,new Set([`default`,`kind`,`label`,`src`,`srclang`])],[`ul`,new Set([`compact`,`type`])],[`video`,new Set([`autoplay`,`controls`,`crossorigin`,`height`,`loop`,`muted`,`playsinline`,`poster`,`preload`,`src`,`width`])]]),Qy=new Set(`a.abbr.acronym.address.applet.area.article.aside.audio.b.base.basefont.bdi.bdo.bgsound.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.command.content.data.datalist.dd.del.details.dfn.dialog.dir.div.dl.dt.em.embed.fieldset.figcaption.figure.font.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.image.img.input.ins.isindex.kbd.keygen.label.legend.li.link.listing.main.map.mark.marquee.math.menu.menuitem.meta.meter.multicol.nav.nextid.nobr.noembed.noframes.noscript.object.ol.optgroup.option.output.p.param.picture.plaintext.pre.progress.q.rb.rbc.rp.rt.rtc.ruby.s.samp.script.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.tt.u.ul.var.video.wbr.xmp`.split(`.`));function $y(e){if(e.type===`block`){if(e.name=up(!1,e.name.toLowerCase(),/\s+/gu,` `).trim(),e.type=`angularControlFlowBlock`,!Cm(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.type=`angularControlFlowBlockParameter`;e.parameters={type:`angularControlFlowBlockParameters`,children:e.parameters,sourceSpan:new K(e.parameters[0].sourceSpan.start,Dp(!1,e.parameters,-1).sourceSpan.end)}}}function eb(e){e.type===`letDeclaration`&&(e.type=`angularLetDeclaration`,e.id=e.name,e.init={type:`angularLetDeclarationInitializer`,sourceSpan:new K(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function tb(e){(e.type===`plural`||e.type===`select`)&&(e.clause=e.type,e.type=`angularIcuExpression`),e.type===`expansionCase`&&(e.type=`angularIcuCase`)}function nb(e,t,n){let{name:r,canSelfClose:i=!0,normalizeTagName:a=!1,normalizeAttributeName:o=!1,allowHtmComponentClosingTags:s=!1,isTagNameCaseSensitive:c=!1,shouldParseAsRawText:l}=t,{rootNodes:u,errors:d}=jy(e,{canSelfClose:i,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:c,getTagContentType:l?(...e)=>l(...e)?pv.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:r===`angular`?!0:void 0,tokenizeAngularLetDeclaration:r===`angular`?!0:void 0});if(r===`vue`){if(u.some(e=>e.type===`docType`&&e.value===`html`||e.type===`element`&&e.name.toLowerCase()===`html`))return nb(e,sb,n);let t,r=()=>t??=jy(e,{canSelfClose:i,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:c}),a=e=>r().rootNodes.find(({startSourceSpan:t})=>t&&t.start.offset===e.startSourceSpan.start.offset)??e;for(let[e,t]of u.entries()){let{endSourceSpan:i,startSourceSpan:o}=t;if(i===null)d=r().errors,u[e]=a(t);else if(rb(t,n)){let n=r().errors.find(e=>e.span.start.offset>o.start.offset&&e.span.start.offset<i.end.offset);n&&ib(n),u[e]=a(t)}}}d.length>0&&ib(d[0]);let f=e=>{let t=e.name.startsWith(`:`)?e.name.slice(1).split(`:`)[0]:null,n=e.nameSpan.toString(),r=t!==null&&n.startsWith(`${t}:`);e.name=r?n.slice(t.length+1):n,e.namespace=t,e.hasExplicitNamespace=r},p=e=>{switch(e.type){case`element`:f(e);for(let t of e.attrs)f(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/u.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case`comment`:e.value=e.sourceSpan.toString().slice(4,-3);break;case`text`:e.value=e.sourceSpan.toString();break}},m=(e,t)=>{let n=e.toLowerCase();return t(n)?n:e},h=e=>{if(e.type===`element`&&(a&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||Vm(e))&&(e.name=m(e.name,e=>Qy.has(e))),o))for(let t of e.attrs)t.namespace||(t.name=m(t.name,t=>Zy.has(e.name)&&(Zy.get(`*`).has(t)||Zy.get(e.name).has(t))))},g=e=>{e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new K(e.sourceSpan.start,e.endSourceSpan.end))},_=e=>{if(e.type===`element`){let t=Pv(c?e.name:e.name.toLowerCase());!e.namespace||e.namespace===t.implicitNamespacePrefix||Vm(e)?e.tagDefinition=t:e.tagDefinition=Pv(``)}};return qv(new class extends Jv{visitExpansionCase(e,t){r===`angular`&&this.visitChildren(t,t=>{t(e.expression)})}visit(e){p(e),_(e),h(e),g(e)}},u),u}function rb(e,t){if(e.type!==`element`||e.name!==`template`)return!1;let n=e.attrs.find(e=>e.name===`lang`)?.value;return!n||Fm(t,{language:n})===`html`}function ib(e){let{msg:t,span:{start:n,end:r}}=e;throw Ny(t,{loc:{start:{line:n.line+1,column:n.col+1},end:{line:r.line+1,column:r.col+1}},cause:e})}function ab(e,t,n={},r=!0){let{frontMatter:i,content:a}=r?Ly(e):{frontMatter:null,content:e},o=new I_(e,n.filepath),s=new F_(o,0,0,0),c={type:`root`,sourceSpan:new K(s,s.moveBy(e.length)),children:nb(a,t,n)};if(i){let e=new F_(o,0,0,0);i.sourceSpan=new K(e,e.moveBy(i.raw.length)),c.children.unshift(i)}let l=new Wy(c),u=(r,i)=>{let{offset:a}=i,o=ab(up(!1,e.slice(0,a),/[^\n\r]/gu,` `)+r,t,n,!1);o.sourceSpan=new K(i,Dp(!1,o.children,-1).sourceSpan.end);let s=o.children[0];return s.length===a?o.children.shift():(s.sourceSpan=new K(s.sourceSpan.start.moveBy(a),s.sourceSpan.end),s.value=s.value.slice(a)),o};return l.walk(e=>{if(e.type===`comment`){let t=qy(e,u);t&&e.parent.replaceChild(e,t)}$y(e),eb(e),tb(e)}),l}function ob(e){return{parse:(t,n)=>ab(t,e,n),hasPragma:d_,hasIgnorePragma:f_,astFormat:`html`,locStart:Dg,locEnd:Og}}var sb={name:`html`,normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},cb=ob(sb),lb=new Set([`mj-style`,`mj-raw`]),ub=ob({...sb,name:`mjml`,shouldParseAsRawText:e=>lb.has(e)}),db=ob({name:`angular`}),fb=ob({name:`vue`,isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,n,r){return e.toLowerCase()!==`html`&&!n&&(e!==`template`||r.some(({name:e,value:t})=>e===`lang`&&t!==`html`&&t!==``&&t!==void 0))}}),pb=ob({name:`lwc`,canSelfClose:!1}),mb={html:ev},hb=lp,gb=Object.create,_b=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,yb=Object.getOwnPropertyNames,bb=Object.getPrototypeOf,xb=Object.prototype.hasOwnProperty,Sb=e=>{throw TypeError(e)},Cb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wb=(e,t)=>{for(var n in t)_b(e,n,{get:t[n],enumerable:!0})},Tb=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of yb(t))!xb.call(e,i)&&i!==n&&_b(e,i,{get:()=>t[i],enumerable:!(r=vb(t,i))||r.enumerable});return e},Eb=(e,t,n)=>(n=e==null?{}:gb(bb(e)),Tb(t||!e||!e.__esModule?_b(n,`default`,{value:e,enumerable:!0}):n,e)),Db=(e,t,n)=>t.has(e)||Sb(`Cannot `+n),Ob=(e,t,n)=>t.has(e)?Sb(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),kb=(e,t,n)=>(Db(e,t,`access private method`),n),Ab=Cb(e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(){return new Proxy({},{get:()=>e=>e})}var n=/\r\n|[\n\r\u2028\u2029]/;function r(e,t,n){let r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:a=2,linesBelow:o=3}=n||{},s=r.line,c=r.column,l=i.line,u=i.column,d=Math.max(s-(a+1),0),f=Math.min(t.length,l+o);s===-1&&(d=0),l===-1&&(f=t.length);let p=l-s,m={};if(p)for(let e=0;e<=p;e++){let n=e+s;c?e===0?m[n]=[c,t[n-1].length-c+1]:e===p?m[n]=[0,u]:m[n]=[0,t[n-e].length]:m[n]=!0}else c===u?c?m[s]=[c,0]:m[s]=!0:m[s]=[c,u-c];return{start:d,end:f,markerLines:m}}function i(e,i,a={}){let o=t(!1),{start:s,end:c,markerLines:l}=r(i,e.split(n),a),u=i.start&&typeof i.start.column==`number`,d=String(c).length,f=e.split(n,c).slice(s,c).map((e,t)=>{let n=s+1+t,r=` ${` ${n}`.slice(-d)} |`,i=l[n],c=!l[n+1];if(i){let t=``;if(Array.isArray(i)){let n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g,` `),s=i[1]||1;t=[`
104
- `,o.gutter(r.replace(/\d/g,` `)),` `,n,o.marker(`^`).repeat(s)].join(``),c&&a.message&&(t+=` `+o.message(a.message))}return[o.marker(`>`),o.gutter(r),e.length>0?` ${e}`:``,t].join(``)}else return` ${o.gutter(r)}${e.length>0?` ${e}`:``}`}).join(`
105
- `);return a.message&&!u&&(f=`${` `.repeat(d+1)}${a.message}
106
- ${f}`),f}e.codeFrameColumns=i});wb({},{__debug:()=>wE,check:()=>SE,doc:()=>IT,format:()=>xE,formatWithCursor:()=>bE,getSupportInfo:()=>CE,util:()=>VT,version:()=>BT});var jb=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Mb=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}},Nb=new class extends Mb{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function Pb(e,t,n){return Nb.diff(e,t,n)}function Fb(e){let t=e.indexOf(`\r`);return t===-1?`lf`:e.charAt(t+1)===`
107
- `?`crlf`:`cr`}function Ib(e){switch(e){case`cr`:return`\r`;case`crlf`:return`\r
108
- `;default:return`
109
- `}}function Lb(e,t){let n;switch(t){case`
110
- `:n=/\n/gu;break;case`\r`:n=/\r/gu;break;case`\r
111
- `:n=/\r\n/gu;break;default:throw Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let r=e.match(n);return r?r.length:0}function Rb(e){return jb(!1,e,/\r\n?/gu,`
112
- `)}var zb=`string`,Bb=`array`,Vb=`cursor`,Hb=`indent`,Ub=`align`,Wb=`trim`,Gb=`group`,Kb=`fill`,qb=`if-break`,Jb=`indent-if-break`,Yb=`line-suffix`,Xb=`line-suffix-boundary`,Zb=`line`,Qb=`label`,$b=`break-parent`,ex=new Set([Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b]),tx=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t==`string`?t[n<0?t.length+n:n]:t.at(n)};function nx(e){let t=e.length;for(;t>0&&(e[t-1]===`\r`||e[t-1]===`
113
- `);)t--;return t<e.length?e.slice(0,t):e}function rx(e){if(typeof e==`string`)return zb;if(Array.isArray(e))return Bb;if(!e)return;let{type:t}=e;if(ex.has(t))return t}var ix=rx,ax=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function ox(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
114
- Expected it to be 'string' or 'object'.`;if(ix(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=ax([...ex].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
115
- Expected it to be ${r}.`}var sx=class extends Error{name=`InvalidDocError`;constructor(e){super(ox(e)),this.doc=e}},cx={};function lx(e,t,n,r){let i=[e];for(;i.length>0;){let e=i.pop();if(e===cx){n(i.pop());continue}n&&i.push(e,cx);let a=ix(e);if(!a)throw new sx(e);if(t?.(e)!==!1)switch(a){case Bb:case Kb:{let t=a===Bb?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case qb:i.push(e.flatContents,e.breakContents);break;case Gb:if(r&&e.expandedStates)for(let t=e.expandedStates.length,n=t-1;n>=0;--n)i.push(e.expandedStates[n]);else i.push(e.contents);break;case Ub:case Hb:case Jb:case Qb:case Yb:i.push(e.contents);break;case zb:case Vb:case Wb:case Xb:case Zb:case $b:break;default:throw new sx(e)}}}var ux=lx;function dx(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(ix(e)){case Bb:return t(e.map(r));case Kb:return t({...e,parts:e.parts.map(r)});case qb:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case Gb:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case Ub:case Hb:case Jb:case Qb:case Yb:return t({...e,contents:r(e.contents)});case zb:case Vb:case Wb:case Xb:case Zb:case $b:return t(e);default:throw new sx(e)}}}function fx(e,t,n){let r=n,i=!1;function a(e){if(i)return!1;let n=t(e);n!==void 0&&(i=!0,r=n)}return ux(e,a),r}function px(e){if(e.type===Gb&&e.break||e.type===Zb&&e.hard||e.type===$b)return!0}function mx(e){return fx(e,px,!1)}function hx(e){if(e.length>0){let t=tx(!1,e,-1);!t.expandedStates&&!t.break&&(t.break=`propagated`)}return null}function gx(e){let t=new Set,n=[];function r(e){if(e.type===$b&&hx(n),e.type===Gb){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){e.type===Gb&&n.pop().break&&hx(n)}ux(e,r,i,!0)}function _x(e){return e.type===Zb&&!e.hard?e.soft?``:` `:e.type===qb?e.flatContents:e}function vx(e){return dx(e,_x)}function yx(e){for(e=[...e];e.length>=2&&tx(!1,e,-2).type===Zb&&tx(!1,e,-1).type===$b;)e.length-=2;if(e.length>0){let t=bx(tx(!1,e,-1));e[e.length-1]=t}return e}function bx(e){switch(ix(e)){case Hb:case Jb:case Gb:case Yb:case Qb:{let t=bx(e.contents);return{...e,contents:t}}case qb:return{...e,breakContents:bx(e.breakContents),flatContents:bx(e.flatContents)};case Kb:return{...e,parts:yx(e.parts)};case Bb:return yx(e);case zb:return nx(e);case Ub:case Vb:case Wb:case Xb:case Zb:case $b:break;default:throw new sx(e)}return e}function xx(e){return bx(Cx(e))}function Sx(e){switch(ix(e)){case Kb:if(e.parts.every(e=>e===``))return``;break;case Gb:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return``;if(e.contents.type===Gb&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ub:case Hb:case Jb:case Yb:if(!e.contents)return``;break;case qb:if(!e.flatContents&&!e.breakContents)return``;break;case Bb:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];typeof e==`string`&&typeof tx(!1,t,-1)==`string`?t[t.length-1]+=e:t.push(e),t.push(...r)}return t.length===0?``:t.length===1?t[0]:t}case zb:case Vb:case Wb:case Xb:case Zb:case Qb:case $b:break;default:throw new sx(e)}return e}function Cx(e){return dx(e,e=>Sx(e))}function wx(e,t=Zx){return dx(e,e=>typeof e==`string`?$x(t,e.split(`
116
- `)):e)}function Tx(e){if(e.type===Zb)return!0}function Ex(e){return fx(e,Tx,!1)}function Dx(e,t){return e.type===Qb?{...e,contents:t(e.contents)}:t(e)}var Ox=()=>{},kx=Ox,Ax=Ox,jx=Ox;function Mx(e){return kx(e),{type:Hb,contents:e}}function Nx(e,t){return kx(t),{type:Ub,contents:t,n:e}}function Px(e,t={}){return kx(e),Ax(t.expandedStates,!0),{type:Gb,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Fx(e){return Nx(-1/0,e)}function Ix(e){return Nx({type:`root`},e)}function Lx(e){return Nx(-1,e)}function Rx(e,t){return Px(e[0],{...t,expandedStates:e})}function zx(e){return jx(e),{type:Kb,parts:e}}function Bx(e,t=``,n={}){return kx(e),t!==``&&kx(t),{type:qb,breakContents:e,flatContents:t,groupId:n.groupId}}function Vx(e,t){return kx(e),{type:Jb,contents:e,groupId:t.groupId,negate:t.negate}}function Hx(e){return kx(e),{type:Yb,contents:e}}var Ux={type:Xb},Wx={type:$b},Gx={type:Wb},Kx={type:Zb,hard:!0},qx={type:Zb,hard:!0,literal:!0},Jx={type:Zb},Yx={type:Zb,soft:!0},Xx=[Kx,Wx],Zx=[qx,Wx],Qx={type:Vb};function $x(e,t){kx(e),Ax(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function eS(e,t,n){kx(e);let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=Mx(r);r=Nx(t%n,r),r=Nx(-1/0,r)}return r}function tS(e,t){return kx(t),e?{type:Qb,label:e,contents:t}:t}function nS(e){if(!e)return``;if(Array.isArray(e)){let t=[];for(let n of e)if(Array.isArray(n))t.push(...nS(n));else{let e=nS(n);e!==``&&t.push(e)}return t}return e.type===qb?{...e,breakContents:nS(e.breakContents),flatContents:nS(e.flatContents)}:e.type===Gb?{...e,contents:nS(e.contents),expandedStates:e.expandedStates?.map(nS)}:e.type===Kb?{type:`fill`,parts:e.parts.map(nS)}:e.contents?{...e,contents:nS(e.contents)}:e}function rS(e){let t=Object.create(null),n=new Set;return r(nS(e));function r(e,t,n){if(typeof e==`string`)return JSON.stringify(e);if(Array.isArray(e)){let t=e.map(r).filter(Boolean);return t.length===1?t[0]:`[${t.join(`, `)}]`}if(e.type===Zb){let r=n?.[t+1]?.type===$b;return e.literal?r?`literalline`:`literallineWithoutBreakParent`:e.hard?r?`hardline`:`hardlineWithoutBreakParent`:e.soft?`softline`:`line`}if(e.type===$b)return n?.[t-1]?.type===Zb&&n[t-1].hard?void 0:`breakParent`;if(e.type===Wb)return`trim`;if(e.type===Hb)return`indent(`+r(e.contents)+`)`;if(e.type===Ub)return e.n===-1/0?`dedentToRoot(`+r(e.contents)+`)`:e.n<0?`dedent(`+r(e.contents)+`)`:e.n.type===`root`?`markAsRoot(`+r(e.contents)+`)`:`align(`+JSON.stringify(e.n)+`, `+r(e.contents)+`)`;if(e.type===qb)return`ifBreak(`+r(e.breakContents)+(e.flatContents?`, `+r(e.flatContents):``)+(e.groupId?(e.flatContents?``:`, ""`)+`, { groupId: ${i(e.groupId)} }`:``)+`)`;if(e.type===Jb){let t=[];e.negate&&t.push(`negate: true`),e.groupId&&t.push(`groupId: ${i(e.groupId)}`);let n=t.length>0?`, { ${t.join(`, `)} }`:``;return`indentIfBreak(${r(e.contents)}${n})`}if(e.type===Gb){let t=[];e.break&&e.break!==`propagated`&&t.push(`shouldBreak: true`),e.id&&t.push(`id: ${i(e.id)}`);let n=t.length>0?`, { ${t.join(`, `)} }`:``;return e.expandedStates?`conditionalGroup([${e.expandedStates.map(e=>r(e)).join(`,`)}]${n})`:`group(${r(e.contents)}${n})`}if(e.type===Kb)return`fill([${e.parts.map(e=>r(e)).join(`, `)}])`;if(e.type===Yb)return`lineSuffix(`+r(e.contents)+`)`;if(e.type===Xb)return`lineSuffixBoundary`;if(e.type===Qb)return`label(${JSON.stringify(e.label)}, ${r(e.contents)})`;if(e.type===Vb)return`cursor`;throw Error(`Unknown doc type `+e.type)}function i(e){if(typeof e!=`symbol`)return JSON.stringify(String(e));if(e in t)return t[e];let r=e.description||`symbol`;for(let i=0;;i++){let a=r+(i>0?` #${i}`:``);if(!n.has(a))return n.add(a),t[e]=`Symbol.for(${JSON.stringify(a)})`}}}var iS=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function aS(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function oS(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var sS=e=>!(aS(e)||oS(e)),cS=/[^\x20-\x7F]/u;function lS(e){if(!e)return 0;if(!cS.test(e))return e.length;e=e.replace(iS(),` `);let t=0;for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=sS(e)?1:2)}return t}var uS=lS,dS=Symbol(`MODE_BREAK`),fS=Symbol(`MODE_FLAT`),pS=Symbol(`cursor`),mS=Symbol(`DOC_FILL_PRINTED_LENGTH`);function hS(){return{value:``,length:0,queue:[]}}function gS(e,t){return vS(e,{type:`indent`},t)}function _S(e,t,n){return t===-1/0?e.root||hS():t<0?vS(e,{type:`dedent`},n):t?t.type===`root`?{...e,root:e}:vS(e,{type:typeof t==`string`?`stringAlign`:`numberAlign`,n:t},n):e}function vS(e,t,n){let r=t.type===`dedent`?e.queue.slice(0,-1):[...e.queue,t],i=``,a=0,o=0,s=0;for(let e of r)switch(e.type){case`indent`:u(),n.useTabs?c(1):l(n.tabWidth);break;case`stringAlign`:u(),i+=e.n,a+=e.n.length;break;case`numberAlign`:o+=1,s+=e.n;break;default:throw Error(`Unexpected type '${e.type}'`)}return f(),{...e,value:i,length:a,queue:r};function c(e){i+=` `.repeat(e),a+=n.tabWidth*e}function l(e){i+=` `.repeat(e),a+=e}function u(){n.useTabs?d():f()}function d(){o>0&&c(o),p()}function f(){s>0&&l(s),p()}function p(){o=0,s=0}}function yS(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===pS){n++;continue}for(let n=i.length-1;n>=0;n--){let a=i[n];if(a===` `||a===` `)t++;else{e[r]=i.slice(0,n+1);break e}}}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(pS);return t}function bS(e,t,n,r,i,a){if(n===1/0)return!0;let o=t.length,s=[e],c=[];for(;n>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:e,doc:l}=s.pop(),u=ix(l);switch(u){case zb:c.push(l),n-=uS(l);break;case Bb:case Kb:{let t=u===Bb?l:l.parts,n=l[mS]??0;for(let r=t.length-1;r>=n;r--)s.push({mode:e,doc:t[r]});break}case Hb:case Ub:case Jb:case Qb:s.push({mode:e,doc:l.contents});break;case Wb:n+=yS(c);break;case Gb:{if(a&&l.break)return!1;let t=l.break?dS:e,n=l.expandedStates&&t===dS?tx(!1,l.expandedStates,-1):l.contents;s.push({mode:t,doc:n});break}case qb:{let t=(l.groupId?i[l.groupId]||fS:e)===dS?l.breakContents:l.flatContents;t&&s.push({mode:e,doc:t});break}case Zb:if(e===dS||l.hard)return!0;l.soft||(c.push(` `),n--);break;case Yb:r=!0;break;case Xb:if(r)return!1;break}}return!1}function xS(e,t){let n={},r=t.printWidth,i=Ib(t.endOfLine),a=0,o=[{ind:hS(),mode:dS,doc:e}],s=[],c=!1,l=[],u=0;for(gx(e);o.length>0;){let{ind:e,mode:d,doc:f}=o.pop();switch(ix(f)){case zb:{let e=i===`
117
- `?f:jb(!1,f,`
118
- `,i);s.push(e),o.length>0&&(a+=uS(e));break}case Bb:for(let t=f.length-1;t>=0;t--)o.push({ind:e,mode:d,doc:f[t]});break;case Vb:if(u>=2)throw Error(`There are too many 'cursor' in doc.`);s.push(pS),u++;break;case Hb:o.push({ind:gS(e,t),mode:d,doc:f.contents});break;case Ub:o.push({ind:_S(e,f.n,t),mode:d,doc:f.contents});break;case Wb:a-=yS(s);break;case Gb:switch(d){case fS:if(!c){o.push({ind:e,mode:f.break?dS:fS,doc:f.contents});break}case dS:{c=!1;let t={ind:e,mode:fS,doc:f.contents},i=r-a,s=l.length>0;if(!f.break&&bS(t,o,i,s,n))o.push(t);else if(f.expandedStates){let t=tx(!1,f.expandedStates,-1);if(f.break){o.push({ind:e,mode:dS,doc:t});break}else for(let r=1;r<f.expandedStates.length+1;r++)if(r>=f.expandedStates.length){o.push({ind:e,mode:dS,doc:t});break}else{let t={ind:e,mode:fS,doc:f.expandedStates[r]};if(bS(t,o,i,s,n)){o.push(t);break}}}else o.push({ind:e,mode:dS,doc:f.contents});break}}f.id&&(n[f.id]=tx(!1,o,-1).mode);break;case Kb:{let t=r-a,i=f[mS]??0,{parts:s}=f,c=s.length-i;if(c===0)break;let u=s[i+0],p=s[i+1],m={ind:e,mode:fS,doc:u},h={ind:e,mode:dS,doc:u},g=bS(m,[],t,l.length>0,n,!0);if(c===1){g?o.push(m):o.push(h);break}let _={ind:e,mode:fS,doc:p},v={ind:e,mode:dS,doc:p};if(c===2){g?o.push(_,m):o.push(v,h);break}let y=s[i+2],b={ind:e,mode:d,doc:{...f,[mS]:i+2}};bS({ind:e,mode:fS,doc:[u,p,y]},[],t,l.length>0,n,!0)?o.push(b,_,m):g?o.push(b,v,m):o.push(b,v,h);break}case qb:case Jb:{let t=f.groupId?n[f.groupId]:d;if(t===dS){let t=f.type===qb?f.breakContents:f.negate?f.contents:Mx(f.contents);t&&o.push({ind:e,mode:d,doc:t})}if(t===fS){let t=f.type===qb?f.flatContents:f.negate?Mx(f.contents):f.contents;t&&o.push({ind:e,mode:d,doc:t})}break}case Yb:l.push({ind:e,mode:d,doc:f.contents});break;case Xb:l.length>0&&o.push({ind:e,mode:d,doc:Kx});break;case Zb:switch(d){case fS:if(f.hard)c=!0;else{f.soft||(s.push(` `),a+=1);break}case dS:if(l.length>0){o.push({ind:e,mode:d,doc:f},...l.reverse()),l.length=0;break}f.literal?e.root?(s.push(i,e.root.value),a=e.root.length):(s.push(i),a=0):(a-=yS(s),s.push(i+e.value),a=e.length);break}break;case Qb:o.push({ind:e,mode:d,doc:f.contents});break;case $b:break;default:throw new sx(f)}o.length===0&&l.length>0&&(o.push(...l.reverse()),l.length=0)}let d=s.indexOf(pS);if(d!==-1){let e=s.indexOf(pS,d+1);if(e===-1)return{formatted:s.filter(e=>e!==pS).join(``)};let t=s.slice(0,d).join(``),n=s.slice(d+1,e).join(``),r=s.slice(e+1).join(``);return{formatted:t+n+r,cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:s.join(``)}}function SS(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===` `?r=r+t-r%t:r++;return r}var CS=SS,wS,TS,ES,DS=class{constructor(e){Ob(this,wS),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return tx(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:tx(!1,this.stack,-2)}get node(){return tx(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=tx(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...kb(this,wS,ES).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?tx(!1,e,-2):null}getValue(){return tx(!1,this.stack,-1)}getNode(e=0){let t=kb(this,wS,TS).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:n}=this,{length:r}=n,i=tx(!1,n,-1);for(let e of t)i=i[e],n.push(e,i);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=kb(this,wS,TS).call(this,t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,i=tx(!1,n,-1);for(let e of t)i=i[e],n.push(e,i);try{for(let t=0;t<i.length;++t)n.push(t,i[t]),e(this,t,i),n.length-=2}finally{n.length=r}}map(e,...t){let n=[];return this.each((t,r,i)=>{n[r]=e(t,r,i)},...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let i of e){if(r===void 0)return!1;let e=null;if(typeof n==`number`&&(e=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,e))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of kb(this,wS,ES).call(this))if(e(t))return t}hasAncestor(e){for(let t of kb(this,wS,ES).call(this))if(e(t))return!0;return!1}};wS=new WeakSet,TS=function(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1},ES=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}};var OS=DS,kS=new Proxy(()=>{},{get:()=>kS}),AS=kS;function jS(e){return typeof e==`object`&&!!e}var MS=jS;function*NS(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=e=>MS(e)&&r(e);for(let t of n(e)){let n=e[t];if(Array.isArray(n))for(let e of n)i(e)&&(yield e);else i(n)&&(yield n)}}function*PS(e,t){let n=[e];for(let e=0;e<n.length;e++){let r=n[e];for(let e of NS(r,t))yield e,n.push(e)}}function FS(e,t){return NS(e,t).next().done}function IS(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}var LS=IS(/\s/u),RS=IS(` `),zS=IS(`,; `),BS=IS(/[^\n\r]/u);function VS(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
119
- `)return t-2;if(i===`
120
- `||i===`\r`||i===`\u2028`||i===`\u2029`)return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
121
- `)return t+2;if(i===`
122
- `||i===`\r`||i===`\u2028`||i===`\u2029`)return t+1}return t}var HS=VS;function US(e,t,n={}){let r=RS(e,n.backwards?t-1:t,n);return r!==HS(e,r,n)}var WS=US;function GS(e){return Array.isArray(e)&&e.length>0}var KS=GS,qS=new Set([`tokens`,`comments`,`parent`,`enclosingNode`,`precedingNode`,`followingNode`]),JS=e=>Object.keys(e).filter(e=>!qS.has(e));function YS(e){return e?t=>e(t,qS):JS}var XS=YS;function ZS(e){let t=e.type||e.kind||`(unknown type)`,n=String(e.name||e.id&&(typeof e.id==`object`?e.id.name:e.id)||e.key&&(typeof e.key==`object`?e.key.name:e.key)||e.value&&(typeof e.value==`object`?``:String(e.value))||e.operator||``);return n.length>20&&(n=n.slice(0,19)+`…`),t+(n?` `+n:``)}function QS(e,t){(e.comments??=[]).push(t),t.printed=!1,t.nodeDescription=ZS(e)}function $S(e,t){t.leading=!0,t.trailing=!1,QS(e,t)}function eC(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),QS(e,t)}function tC(e,t){t.leading=!1,t.trailing=!0,QS(e,t)}var nC=new WeakMap;function rC(e,t){if(nC.has(e))return nC.get(e);let{printer:{getCommentChildNodes:n,canAttachComment:r,getVisitorKeys:i},locStart:a,locEnd:o}=t;if(!r)return[];let s=(n?.(e,t)??[...NS(e,{getVisitorKeys:XS(i)})]).flatMap(e=>r(e)?[e]:rC(e,t));return s.sort((e,t)=>a(e)-a(t)||o(e)-o(t)),nC.set(e,s),s}function iC(e,t,n,r){let{locStart:i,locEnd:a}=n,o=i(t),s=a(t),c=rC(e,n),l,u,d=0,f=c.length;for(;d<f;){let e=d+f>>1,r=c[e],p=i(r),m=a(r);if(p<=o&&s<=m)return iC(r,t,n,r);if(m<=o){l=r,d=e+1;continue}if(s<=p){u=r,f=e;continue}throw Error(`Comment location overlaps with node location`)}if(r?.type===`TemplateLiteral`){let{quasis:e}=r,i=dC(e,t,n);l&&dC(e,l,n)!==i&&(l=null),u&&dC(e,u,n)!==i&&(u=null)}return{enclosingNode:r,precedingNode:l,followingNode:u}}var aC=()=>!1;function oC(e,t){let{comments:n}=e;if(delete e.comments,!KS(n)||!t.printer.canAttachComment)return;let r=[],{printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:a={}},originalText:o}=t,{ownLine:s=aC,endOfLine:c=aC,remaining:l=aC}=a,u=n.map((r,i)=>({...iC(e,r,t),comment:r,text:o,options:t,ast:e,isLastComment:n.length-1===i}));for(let[e,t]of u.entries()){let{comment:n,precedingNode:a,enclosingNode:o,followingNode:d,text:f,options:p,ast:m,isLastComment:h}=t,g;if(i?g=[t]:(n.enclosingNode=o,n.precedingNode=a,n.followingNode=d,g=[n,f,p,m,h]),cC(f,p,u,e))n.placement=`ownLine`,s(...g)||(d?$S(d,n):a?tC(a,n):eC(o||m,n));else if(lC(f,p,u,e))n.placement=`endOfLine`,c(...g)||(a?tC(a,n):d?$S(d,n):eC(o||m,n));else if(n.placement=`remaining`,!l(...g))if(a&&d){let e=r.length;e>0&&r[e-1].followingNode!==d&&uC(r,p),r.push(t)}else a?tC(a,n):d?$S(d,n):eC(o||m,n)}if(uC(r,t),!i)for(let e of n)delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}var sC=e=>!/[\S\n\u2028\u2029]/u.test(e);function cC(e,t,n,r){let{comment:i,precedingNode:a}=n[r],{locStart:o,locEnd:s}=t,c=o(i);if(a)for(let t=r-1;t>=0;t--){let{comment:r,precedingNode:i}=n[t];if(i!==a||!sC(e.slice(s(r),c)))break;c=o(r)}return WS(e,c,{backwards:!0})}function lC(e,t,n,r){let{comment:i,followingNode:a}=n[r],{locStart:o,locEnd:s}=t,c=s(i);if(a)for(let t=r+1;t<n.length;t++){let{comment:r,followingNode:i}=n[t];if(i!==a||!sC(e.slice(c,o(r))))break;c=s(r)}return WS(e,c)}function uC(e,t){var n;let r=e.length;if(r===0)return;let{precedingNode:i,followingNode:a}=e[0],o=t.locStart(a),s;for(s=r;s>0;--s){let{comment:r,precedingNode:c,followingNode:l}=e[s-1];AS.strictEqual(c,i),AS.strictEqual(l,a);let u=t.originalText.slice(t.locEnd(r),o);if((n=t.printer).isGap?.call(n,u,t)??/^[\s(]*$/u.test(u))o=t.locStart(r);else break}for(let[t,{comment:n}]of e.entries())t<s?tC(i,n):$S(a,n);for(let e of[i,a])e.comments&&e.comments.length>1&&e.comments.sort((e,n)=>t.locStart(e)-t.locStart(n));e.length=0}function dC(e,t,n){let r=n.locStart(t)-1;for(let t=1;t<e.length;++t)if(r<n.locStart(e[t]))return t-1;return 0}function fC(e,t){let n=t-1;n=RS(e,n,{backwards:!0}),n=HS(e,n,{backwards:!0}),n=RS(e,n,{backwards:!0});let r=HS(e,n,{backwards:!0});return n!==r}var pC=fC;function mC(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function hC(e,t){let n=e.node,r=[mC(e,t)],{printer:i,originalText:a,locStart:o,locEnd:s}=t;if(i.isBlockComment?.call(i,n)){let e=WS(a,s(n))?WS(a,o(n),{backwards:!0})?Xx:Jx:` `;r.push(e)}else r.push(Xx);let c=HS(a,RS(a,s(n)));return c!==!1&&WS(a,c)&&r.push(Xx),r}function gC(e,t,n){let r=e.node,i=mC(e,t),{printer:a,originalText:o,locStart:s}=t,c=a.isBlockComment?.call(a,r);return n!=null&&n.hasLineSuffix&&!(n!=null&&n.isBlock)||WS(o,s(r),{backwards:!0})?{doc:Hx([Xx,pC(o,s(r))?Xx:``,i]),isBlock:c,hasLineSuffix:!0}:!c||n!=null&&n.hasLineSuffix?{doc:[Hx([` `,i]),Wx],isBlock:c,hasLineSuffix:!0}:{doc:[` `,i],isBlock:c,hasLineSuffix:!1}}function _C(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for(`printedComments`)];if((n.comments||[]).filter(e=>!r.has(e)).length===0)return{leading:``,trailing:``};let i=[],a=[],o;return e.each(()=>{let n=e.node;if(r!=null&&r.has(n))return;let{leading:s,trailing:c}=n;s?i.push(hC(e,t)):c&&(o=gC(e,t,o),a.push(o.doc))},`comments`),{leading:i,trailing:a}}function vC(e,t,n){let{leading:r,trailing:i}=_C(e,n);return!r&&!i?t:Dx(t,e=>[r,e,i])}function yC(e){let{[Symbol.for(`comments`)]:t,[Symbol.for(`printedComments`)]:n}=e;for(let e of t){if(!e.printed&&!n.has(e))throw Error(`Comment "`+e.value.trim()+`" was not printed. Please report this error!`);delete e.printed}}function bC(e){return()=>{}}var xC=bC,SC=class extends Error{name=`ConfigError`},CC=class extends Error{name=`UndefinedParserError`},wC={checkIgnorePragma:{category:`Special`,type:`boolean`,default:!1,description:`Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.`,cliCategory:`Other`},cursorOffset:{category:`Special`,type:`int`,default:-1,range:{start:-1,end:1/0,step:1},description:`Print (to stderr) where a cursor at the given position would move to after formatting.`,cliCategory:`Editor`},endOfLine:{category:`Global`,type:`choice`,default:`lf`,description:`Which end of line characters to apply.`,choices:[{value:`lf`,description:`Line Feed only (\\n), common on Linux and macOS as well as inside git repos`},{value:`crlf`,description:`Carriage Return + Line Feed characters (\\r\\n), common on Windows`},{value:`cr`,description:`Carriage Return character only (\\r), used very rarely`},{value:`auto`,description:`Maintain existing
123
- (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:`Special`,type:`path`,description:`Specify the input filepath. This will be used to do parser inference.`,cliName:`stdin-filepath`,cliCategory:`Other`,cliDescription:`Path to the file to pretend that stdin comes from.`},insertPragma:{category:`Special`,type:`boolean`,default:!1,description:`Insert @format pragma into file's first docblock comment.`,cliCategory:`Other`},parser:{category:`Global`,type:`choice`,default:void 0,description:`Which parser to use.`,exception:e=>typeof e==`string`||typeof e==`function`,choices:[{value:`flow`,description:`Flow`},{value:`babel`,description:`JavaScript`},{value:`babel-flow`,description:`Flow`},{value:`babel-ts`,description:`TypeScript`},{value:`typescript`,description:`TypeScript`},{value:`acorn`,description:`JavaScript`},{value:`espree`,description:`JavaScript`},{value:`meriyah`,description:`JavaScript`},{value:`css`,description:`CSS`},{value:`less`,description:`Less`},{value:`scss`,description:`SCSS`},{value:`json`,description:`JSON`},{value:`json5`,description:`JSON5`},{value:`jsonc`,description:`JSON with Comments`},{value:`json-stringify`,description:`JSON.stringify`},{value:`graphql`,description:`GraphQL`},{value:`markdown`,description:`Markdown`},{value:`mdx`,description:`MDX`},{value:`vue`,description:`Vue`},{value:`yaml`,description:`YAML`},{value:`glimmer`,description:`Ember / Handlebars`},{value:`html`,description:`HTML`},{value:`angular`,description:`Angular`},{value:`lwc`,description:`Lightning Web Components`},{value:`mjml`,description:`MJML`}]},plugins:{type:`path`,array:!0,default:[{value:[]}],category:`Global`,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e==`string`||typeof e==`object`,cliName:`plugin`,cliCategory:`Config`},printWidth:{category:`Global`,type:`int`,default:80,description:`The line length where Prettier will try wrap.`,range:{start:0,end:1/0,step:1}},rangeEnd:{category:`Special`,type:`int`,default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
124
- The range will extend forwards to the end of the selected statement.`,cliCategory:`Editor`},rangeStart:{category:`Special`,type:`int`,default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
125
- The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:`Editor`},requirePragma:{category:`Special`,type:`boolean`,default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.`,cliCategory:`Other`},tabWidth:{type:`int`,category:`Global`,default:2,description:`Number of spaces per indentation level.`,range:{start:0,end:1/0,step:1}},useTabs:{category:`Global`,type:`boolean`,default:!1,description:`Indent with tabs instead of spaces.`},embeddedLanguageFormatting:{category:`Global`,type:`choice`,default:`auto`,description:`Control how Prettier formats quoted code embedded in the file.`,choices:[{value:`auto`,description:`Format embedded code if Prettier can automatically identify it.`},{value:`off`,description:`Never automatically format embedded code.`}]}};function TC({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(e=>e.languages??[]),r=[];for(let i of DC(Object.assign({},...e.map(({options:e})=>e),wC)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(e=>!e.deprecated)),i.name===`parser`&&(i.choices=[...i.choices,...EC(i.choices,n,e)])),i.pluginDefaults=Object.fromEntries(e.filter(e=>e.defaultOptions?.[i.name]!==void 0).map(e=>[e.name,e.defaultOptions[i.name]])),r.push(i));return{languages:n,options:r}}function*EC(e,t,n){let r=new Set(e.map(e=>e.value));for(let e of t)if(e.parsers){for(let t of e.parsers)if(!r.has(t)){r.add(t);let i=n.find(e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t)),a=e.name;i!=null&&i.name&&(a+=` (plugin: ${i.name})`),yield{value:t,description:a}}}}function DC(e){let t=[];for(let[n,r]of Object.entries(e)){let e={name:n,...r};Array.isArray(e.default)&&(e.default=tx(!1,e.default,-1).value),t.push(e)}return t}var OC=(e,t)=>{if(!(e&&t==null))return t.toReversed||!Array.isArray(t)?t.toReversed():[...t].reverse()},kC=globalThis.Deno?.build.os===`windows`||(globalThis.navigator?.platform)?.startsWith(`Win`)||(globalThis.process?.platform)?.startsWith(`win`)||!1;function AC(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function jC(e){return e=AC(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function MC(e){e=AC(e);let t=decodeURIComponent(e.pathname.replace(/\//g,`\\`).replace(/%(?![0-9A-Fa-f]{2})/g,`%25`)).replace(/^\\*([A-Za-z]:)(\\|$)/,`$1\\`);return e.hostname!==``&&(t=`\\\\${e.hostname}${t}`),t}function NC(e){return kC?MC(e):jC(e)}var PC=NC,FC=e=>String(e).split(/[/\\]/u).pop();function IC(e,t){if(!t)return;let n=FC(t).toLowerCase();return e.find(({filenames:e})=>e?.some(e=>e.toLowerCase()===n))??e.find(({extensions:e})=>e?.some(e=>n.endsWith(e)))}function LC(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>e?.includes(t))??e.find(({extensions:e})=>e?.includes(`.${t}`))}function RC(e,t){if(t){if(String(t).startsWith(`file:`))try{t=PC(t)}catch{return}if(typeof t==`string`)return e.find(({isSupported:e})=>e?.({filepath:t}))}}function zC(e,t){let n=OC(!1,e.plugins).flatMap(e=>e.languages??[]);return(LC(n,t.language)??IC(n,t.physicalFile)??IC(n,t.file)??RC(n,t.physicalFile)??RC(n,t.file)??(t.physicalFile,void 0))?.parsers[0]}var BC=zC,VC={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(typeof e!=`object`||!e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(e=>VC.value(e)).join(`, `)}]`;let t=Object.keys(e);return t.length===0?`{}`:`{ ${t.map(t=>`${VC.key(t)}: ${VC.value(e[t])}`).join(`, `)} }`},pair:({key:e,value:t})=>VC.value({[e]:t})},HC=new Proxy(String,{get:()=>HC}),UC=HC,WC=(e,t,{descriptor:n})=>{let r=[`${UC.yellow(typeof e==`string`?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${UC.blue(typeof t==`string`?n.key(t):n.pair(t))}`),r.join(`; `)+`.`},GC=Symbol.for(`vnopts.VALUE_NOT_EXIST`),KC=Symbol.for(`vnopts.VALUE_UNCHANGED`),qC=` `.repeat(2),JC=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),a=[];return r&&a.push(YC(e,t,r,n.descriptor)),i&&a.push([YC(e,t,i.title,n.descriptor)].concat(i.values.map(e=>XC(e,n.loggerPrintWidth))).join(`
126
- `)),ZC(a,n.loggerPrintWidth)};function YC(e,t,n,r){return[`Invalid ${UC.red(r.key(e))} value.`,`Expected ${UC.blue(n)},`,`but received ${t===GC?UC.gray(`nothing`):UC.red(r.value(t))}.`].join(` `)}function XC({text:e,list:t},n){let r=[];return e&&r.push(`- ${UC.blue(e)}`),t&&r.push([`- ${UC.blue(t.title)}:`].concat(t.values.map(e=>XC(e,n-qC.length).replace(/^|\n/g,`$&${qC}`))).join(`
127
- `)),ZC(r,n)}function ZC(e,t){if(e.length===1)return e[0];let[n,r]=e,[i,a]=e.map(e=>e.split(`
128
- `,1)[0].length);return i>t&&i>a?r:n}var QC=[],$C=[];function ew(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let a=0;for(;a<r&&e.charCodeAt(a)===t.charCodeAt(a);)a++;if(r-=a,i-=a,r===0)return i;let o,s,c,l,u=0,d=0;for(;u<r;)$C[u]=e.charCodeAt(a+u),QC[u]=++u;for(;d<i;)for(o=t.charCodeAt(a+d),c=d++,s=d,u=0;u<r;u++)l=o===$C[u]?c:c+1,c=QC[u],s=QC[u]=c>s?l>s?s+1:l:l>c?c+1:l;return s}var tw=(e,t,{descriptor:n,logger:r,schemas:i})=>{let a=[`Ignored unknown option ${UC.yellow(n.pair({key:e,value:t}))}.`],o=Object.keys(i).sort().find(t=>ew(e,t)<3);o&&a.push(`Did you mean ${UC.blue(n.key(o))}?`),r.warn(a.join(` `))},nw=[`default`,`expected`,`validate`,`deprecated`,`forward`,`redirect`,`overlap`,`preprocess`,`postprocess`];function rw(e,t){let n=new e(t),r=Object.create(n);for(let e of nw)e in t&&(r[e]=aw(t[e],n,iw.prototype[e].length));return r}var iw=class{static create(e){return rw(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return`nothing`}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return KC}};function aw(e,t,n){return typeof e==`function`?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var ow=class extends iw{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},sw=class extends iw{expected(){return`anything`}validate(){return!0}},cw=class extends iw{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:`an array of the following values`,values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);e!==!0&&n.push(e.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let r of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);e!==!1&&n.push(...e.map(({value:e})=>({value:[e]})))}return n}forward(e,t){let n=[];for(let r of e){let e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...e.map(lw))}return n}redirect(e,t){let n=[],r=[];for(let i of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);`remain`in e&&n.push(e.remain),r.push(...e.redirect.map(lw))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function lw({from:e,to:t}){return{from:[e],to:t}}var uw=class extends iw{expected(){return`true or false`}validate(e){return typeof e==`boolean`}};function dw(e,t){let n=Object.create(null);for(let r of e){let e=r[t];if(n[e])throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);n[e]=r}return n}function fw(e,t){let n=new Map;for(let r of e){let e=r[t];if(n.has(e))throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);n.set(e,r)}return n}function pw(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function mw(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function hw(e){return e===Math.floor(e)}function gw(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,i=[`undefined`,`object`,`boolean`,`number`,`string`];return n===r?n===`string`?e.localeCompare(t):Number(e)-Number(t):i.indexOf(n)-i.indexOf(r)}function _w(e){return(...t)=>{let n=e(...t);return typeof n==`string`?Error(n):n}}function vw(e){return e===void 0?{}:e}function yw(e){if(typeof e==`string`)return{text:e};let{text:t,list:n}=e;return Tw((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(yw)}}:{text:t}}function bw(e,t){return e===!0?!0:e===!1?{value:t}:e}function xw(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:`value`in e?[e]:e.length===0?!1:e}function Sw(e,t){return typeof e==`string`||`key`in e?{from:t,to:e}:`from`in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Cw(e,t){return e===void 0?[]:Array.isArray(e)?e.map(e=>Sw(e,t)):[Sw(e,t)]}function ww(e,t){let n=Cw(typeof e==`object`&&`redirect`in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e==`object`&&`remain`in e?{remain:e.remain,redirect:n}:{redirect:n}}function Tw(e,t){if(!e)throw Error(t)}var Ew=class extends iw{constructor(e){super(e),this._choices=fw(e.choices.map(e=>e&&typeof e==`object`?e:{value:e}),`value`)}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(({hidden:e})=>!e).map(e=>e.value).sort(gw).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(` or `)).join(`, `),list:{title:`one of the following values`,values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Dw=class extends iw{expected(){return`a number`}validate(e,t){return typeof e==`number`}},Ow=class extends Dw{expected(){return`an integer`}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&hw(e)}},kw=class extends iw{expected(){return`a string`}validate(e){return typeof e==`string`}},Aw=VC,jw=tw,Mw=JC,Nw=WC,Pw=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=Aw,unknown:a=jw,invalid:o=Mw,deprecated:s=Nw,missing:c=()=>!1,required:l=()=>!1,preprocess:u=e=>e,postprocess:d=()=>KC}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:dw(e,`name`),normalizeDefaultResult:vw,normalizeExpectedResult:yw,normalizeDeprecatedResult:xw,normalizeForwardResult:Cw,normalizeRedirectResult:ww,normalizeValidateResult:bw},this._unknownHandler=a,this._invalidHandler=_w(o),this._deprecatedHandler=s,this._identifyMissing=(e,t)=>!(e in t)||c(e,t),this._identifyRequired=l,this._preprocess=u,this._postprocess=d,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=pw()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;n.length!==0;){let e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(let e of Object.keys(this._utils.schemas)){let r=this._utils.schemas[e];if(!(e in t)){let t=vw(r.default(this._utils));`value`in t&&n.push({[e]:t.value})}}r();for(let e of Object.keys(this._utils.schemas)){if(!(e in t))continue;let n=this._utils.schemas[e],r=t[e],i=n.postprocess(r,this._utils);i!==KC&&(this._applyValidation(i,e,n),t[e]=i)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(e);for(let i of r){let r=this._utils.schemas[i],a=r.preprocess(e[i],this._utils);this._applyValidation(a,i,r);let o=({from:e,to:t})=>{n.push(typeof t==`string`?{[t]:e}:{[t.key]:t.value})},s=({value:e,redirectTo:t})=>{let n=xw(r.deprecated(e,this._utils),a,!0);if(n!==!1)if(n===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,t,this._utils));else for(let{value:e}of n){let n={key:i,value:e};if(!this._hasDeprecationWarned(n)){let r=typeof t==`string`?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(n,r,this._utils))}}};Cw(r.forward(a,this._utils),a).forEach(o);let c=ww(r.redirect(a,this._utils),a);if(c.redirect.forEach(o),`remain`in c){let e=c.remain;t[i]=i in t?r.overlap(t[i],e,this._utils):e,s({value:e})}for(let{from:e,to:t}of c.redirect)s({value:e,redirectTo:t})}for(let r of i){let i=e[r];this._applyUnknownHandler(r,i,t,(e,t)=>{n.push({[e]:t})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,GC,this._utils)}_partitionOptionKeys(e){let[t,n]=mw(Object.keys(e).filter(t=>!this._identifyMissing(t,e)),e=>e in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=bw(n.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let i=this._unknownHandler(e,t,this._utils);if(i)for(let e of Object.keys(i)){if(this._identifyMissing(e,i))continue;let t=i[e];e in this._utils.schemas?r(e,t):n[e]=t}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==KC){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let r of n){let n=t.override[r];this._applyValidation(n,r,this._utils.schemas[r]),e[r]=n}for(let n of r){let r=t.override[n];this._applyUnknownHandler(n,r,e,(t,n)=>{let r=this._utils.schemas[t];this._applyValidation(n,t,r),e[t]=n})}}}}},Fw;function Iw(e,t,{logger:n=!1,isCLI:r=!1,passThrough:i=!1,FlagSchema:a,descriptor:o}={}){if(r){if(!a)throw Error(`'FlagSchema' option is required.`);if(!o)throw Error(`'descriptor' option is required.`)}else o=VC;let s=i?Array.isArray(i)?(e,t)=>i.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,n)=>{let{_:r,...i}=n.schemas;return tw(e,t,{...n,schemas:i})},c=new Pw(Lw(t,{isCLI:r,FlagSchema:a}),{logger:n,unknown:s,descriptor:o}),l=n!==!1;l&&Fw&&(c._hasDeprecationWarned=Fw);let u=c.normalize(e);return l&&(Fw=c._hasDeprecationWarned),u}function Lw(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(sw.create({name:`_`}));for(let i of e)r.push(Rw(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(ow.create({name:i.alias,sourceName:i.name}));return r}function Rw(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,a={name:i},o,s={};switch(e.type){case`int`:o=Ow,t&&(a.preprocess=Number);break;case`string`:o=kw;break;case`choice`:o=Ew,a.choices=e.choices.map(t=>t!=null&&t.redirect?{...t,redirect:{to:{key:e.name,value:t.redirect}}}:t);break;case`boolean`:o=uw;break;case`flag`:o=r,a.flags=n.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean));break;case`path`:o=kw;break;default:throw Error(`Unexpected type ${e.type}`)}if(e.exception?a.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):a.validate=(e,t,n)=>e===void 0||t.validate(e,n),e.redirect&&(s.redirect=t=>t?{to:typeof e.redirect==`string`?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let e=a.preprocess||(e=>e);a.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?tx(!1,t,-1):t),r)}return e.array?cw.create({...t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},...s,valueSchema:o.create(a)}):o.create({...a,...s})}var zw=Iw,Bw=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let e=t.length-1;e>=0;e--){let r=t[e];if(n(r,e,t))return r}}};function Vw(e,t){if(!t)throw Error(`parserName is required.`);let n=Bw(!1,e,e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t));if(n)return n;let r=`Couldn't resolve parser "${t}".`;throw r+=` Plugins must be explicitly added to the standalone bundle.`,new SC(r)}function Hw(e,t){if(!t)throw Error(`astFormat is required.`);let n=Bw(!1,e,e=>e.printers&&Object.prototype.hasOwnProperty.call(e.printers,t));if(n)return n;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=` Plugins must be explicitly added to the standalone bundle.`,new SC(r)}function Uw({plugins:e,parser:t}){return Ww(Vw(e,t),t)}function Ww(e,t){let n=e.parsers[t];return typeof n==`function`?n():n}function Gw(e,t){let n=e.printers[t];return typeof n==`function`?n():n}var Kw={astFormat:`estree`,printer:{},originalText:void 0,locStart:null,locEnd:null};async function qw(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=BC(r,{physicalFile:r.filepath}),!r.parser)throw new CC(`No parser could be inferred for file "${r.filepath}".`)}else throw new CC(`No parser and no file path given, couldn't infer a parser.`);let i=TC({plugins:e.plugins,showDeprecated:!0}).options,a={...Kw,...Object.fromEntries(i.filter(e=>e.default!==void 0).map(e=>[e.name,e.default]))},o=Vw(r.plugins,r.parser),s=await Ww(o,r.parser);r.astFormat=s.astFormat,r.locEnd=s.locEnd,r.locStart=s.locStart;let c=(n=o.printers)!=null&&n[s.astFormat]?o:Hw(r.plugins,s.astFormat);r.printer=await Gw(c,s.astFormat);let l=c.defaultOptions?Object.fromEntries(Object.entries(c.defaultOptions).filter(([,e])=>e!==void 0)):{},u={...a,...l};for(let[e,t]of Object.entries(u))(r[e]===null||r[e]===void 0)&&(r[e]=t);return r.parser===`json`&&(r.trailingComma=`none`),zw(r,i,{passThrough:Object.keys(Kw),...t})}var Jw=qw,Yw=Eb(Ab(),1);async function Xw(e,t){let n=await Uw(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(t){Zw(t,e)}return{text:r,ast:i}}function Zw(e,t){let{loc:n}=e;if(n){let r=(0,Yw.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
129
- `+r,e.codeFrame=r,e}throw e}var Qw=Xw;async function $w(e,t,n,r,i){let{embeddedLanguageFormatting:a,printer:{embed:o,hasPrettierIgnore:s=()=>!1,getVisitorKeys:c}}=n;if(!o||a!==`auto`)return;if(o.length>2)throw Error(`printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed`);let l=XS(o.getVisitorKeys??c),u=[];p();let d=e.stack;for(let{print:r,node:a,pathStack:o}of u)try{e.stack=o;let s=await r(f,t,e,n);s&&i.set(a,s)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}e.stack=d;function f(e,t){return eT(e,t,n,r)}function p(){let{node:t}=e;if(typeof t!=`object`||!t||s(e))return;for(let n of l(t))Array.isArray(t[n])?e.each(p,n):e.call(p,n);let r=o(e,n);if(r){if(typeof r==`function`){u.push({print:r,node:t,pathStack:[...e.stack]});return}i.set(t,r)}}}async function eT(e,t,n,r){let i=await Jw({...n,...t,parentParser:n.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:a}=await Qw(e,i);return xx(await r(a,i))}function tT(e,t){let{originalText:n,[Symbol.for(`comments`)]:r,locStart:i,locEnd:a,[Symbol.for(`printedComments`)]:o}=t,{node:s}=e,c=i(s),l=a(s);for(let e of r)i(e)>=c&&a(e)<=l&&o.add(e);return n.slice(c,l)}var nT=tT;async function rT(e,t){({ast:e}=await aT(e,t));let n=new Map,r=new OS(e),i=xC(t),a=new Map;await $w(r,s,t,rT,a);let o=await iT(r,t,s,void 0,a);if(yC(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Qx,o];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[o,Qx]}return o;function s(e,t){return e===void 0||e===r?c(t):Array.isArray(e)?r.call(()=>c(t),...e):r.call(()=>c(t),e)}function c(e){i(r);let o=r.node;if(o==null)return``;let c=o&&typeof o==`object`&&e===void 0;if(c&&n.has(o))return n.get(o);let l=iT(r,t,s,e,a);return c&&n.set(o,l),l}}function iT(e,t,n,r,i){var a;let{node:o}=e,{printer:s}=t,c;switch(c=(a=s.hasPrettierIgnore)!=null&&a.call(s,e)?nT(e,t):i.has(o)?i.get(o):s.print(e,t,n,r),o){case t.cursorNode:c=Dx(c,e=>[Qx,e,Qx]);break;case t.nodeBeforeCursor:c=Dx(c,e=>[e,Qx]);break;case t.nodeAfterCursor:c=Dx(c,e=>[Qx,e]);break}return s.printComment&&(!s.willPrintOwnComments||!s.willPrintOwnComments(e,t))&&(c=vC(e,c,t)),c}async function aT(e,t){let n=e.comments??[];t[Symbol.for(`comments`)]=n,t[Symbol.for(`printedComments`)]=new Set,oC(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function oT(e,t){let{cursorOffset:n,locStart:r,locEnd:i}=t,a=XS(t.printer.getVisitorKeys),o=e=>r(e)<=n&&i(e)>=n,s=e,c=[e];for(let t of PS(e,{getVisitorKeys:a,filter:o}))c.push(t),s=t;if(FS(s,{getVisitorKeys:a}))return{cursorNode:s};let l,u,d=-1,f=1/0;for(;c.length>0&&(l===void 0||u===void 0);){s=c.pop();let e=l!==void 0,t=u!==void 0;for(let o of NS(s,{getVisitorKeys:a})){if(!e){let e=i(o);e<=n&&e>d&&(l=o,d=e)}if(!t){let e=r(o);e>=n&&e<f&&(u=o,f=e)}}}return{nodeBeforeCursor:l,nodeAfterCursor:u}}var sT=oT;function cT(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let i=XS(r),a=n.ignoredProperties??new Set;return o(e);function o(e,t){if(!(typeof e==`object`&&e))return e;if(Array.isArray(e))return e.map(e=>o(e,t)).filter(Boolean);let r={},s=new Set(i(e));for(let t in e)!Object.prototype.hasOwnProperty.call(e,t)||a.has(t)||(s.has(t)?r[t]=o(e[t],e):r[t]=e[t]);let c=n(e,r,t);if(c!==null)return c??r}}var lT=cT,uT=(e,t,n)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(n);for(let e=t.length-1;e>=0;e--){let r=t[e];if(n(r,e,t))return e}return-1}},dT=({parser:e})=>e===`json`||e===`json5`||e===`jsonc`||e===`json-stringify`;function fT(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(e=>_T.has(e.type)&&r.has(e))}function pT(e){let t=uT(!1,e,e=>e.type!==`Program`&&e.type!==`File`);return t===-1?e:e.slice(0,t+1)}function mT(e,t,{locStart:n,locEnd:r}){let i=e.node,a=t.node;if(i===a)return{startNode:i,endNode:a};let o=n(e.node);for(let e of pT(t.parentNodes))if(n(e)>=o)a=e;else break;let s=r(t.node);for(let t of pT(e.parentNodes)){if(r(t)<=s)i=t;else break;if(i===a)break}return{startNode:i,endNode:a}}function hT(e,t,n,r,i=[],a){let{locStart:o,locEnd:s}=n,c=o(e),l=s(e);if(!(t>l||t<c||a===`rangeEnd`&&t===c||a===`rangeStart`&&t===l)){for(let o of rC(e,n)){let s=hT(o,t,n,r,[e,...i],a);if(s)return s}if(!r||r(e,i[0]))return{node:e,parentNodes:i}}}function gT(e,t){return t!==`DeclareExportDeclaration`&&e!==`TypeParameterDeclaration`&&(e===`Directive`||e===`TypeAlias`||e===`TSExportAssignment`||e.startsWith(`Declare`)||e.startsWith(`TSDeclare`)||e.endsWith(`Statement`)||e.endsWith(`Declaration`))}var _T=new Set([`JsonRoot`,`ObjectExpression`,`ArrayExpression`,`StringLiteral`,`NumericLiteral`,`BooleanLiteral`,`NullLiteral`,`UnaryExpression`,`TemplateLiteral`]),vT=new Set([`OperationDefinition`,`FragmentDefinition`,`VariableDefinition`,`TypeExtensionDefinition`,`ObjectTypeDefinition`,`FieldDefinition`,`DirectiveDefinition`,`EnumTypeDefinition`,`EnumValueDefinition`,`InputValueDefinition`,`InputObjectTypeDefinition`,`SchemaDefinition`,`OperationTypeDefinition`,`InterfaceTypeDefinition`,`UnionTypeDefinition`,`ScalarTypeDefinition`]);function yT(e,t,n){if(!t)return!1;switch(e.parser){case`flow`:case`hermes`:case`babel`:case`babel-flow`:case`babel-ts`:case`typescript`:case`acorn`:case`espree`:case`meriyah`:case`oxc`:case`oxc-ts`:case`__babel_estree`:return gT(t.type,n?.type);case`json`:case`json5`:case`jsonc`:case`json-stringify`:return _T.has(t.type);case`graphql`:return vT.has(t.kind);case`vue`:return t.tag!==`root`}return!1}function bT(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:a,locEnd:o}=t;AS.ok(i>r);let s=e.slice(r,i).search(/\S/u),c=s===-1;if(!c)for(r+=s;i>r&&!/\S/u.test(e[i-1]);--i);let l=hT(n,r,t,(e,n)=>yT(t,e,n),[],`rangeStart`),u=c?l:hT(n,i,t,e=>yT(t,e),[],`rangeEnd`);if(!l||!u)return{rangeStart:0,rangeEnd:0};let d,f;if(dT(t)){let e=fT(l,u);d=e,f=e}else ({startNode:d,endNode:f}=mT(l,u,t));return{rangeStart:Math.min(a(d),a(f)),rangeEnd:Math.max(o(d),o(f))}}var xT=``,ST=Symbol(`cursor`);async function CT(e,t,n=0){if(!e||e.trim().length===0)return{formatted:``,cursorOffset:-1,comments:[]};let{ast:r,text:i}=await Qw(e,t);t.cursorOffset>=0&&(t={...t,...sT(r,t)});let a=await rT(r,t,n);n>0&&(a=eS([Xx,a],n,t.tabWidth));let o=xS(a,t);if(n>0){let e=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(e),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>e.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=e+Ib(t.endOfLine)}let s=t[Symbol.for(`comments`)];if(t.cursorOffset>=0){let e,n,r,a;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&o.cursorNodeText)if(r=o.cursorNodeStart,a=o.cursorNodeText,t.cursorNode)e=t.locStart(t.cursorNode),n=i.slice(e,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw Error(`Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor`);e=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let r=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):i.length;n=i.slice(e,r)}else e=0,n=i,r=0,a=o.formatted;let c=t.cursorOffset-e;if(n===a)return{formatted:o.formatted,cursorOffset:r+c,comments:s};let l=n.split(``);l.splice(c,0,ST);let u=Pb(l,a.split(``)),d=r;for(let e of u)if(e.removed){if(e.value.includes(ST))break}else d+=e.count;return{formatted:o.formatted,cursorOffset:d,comments:s}}return{formatted:o.formatted,cursorOffset:-1,comments:s}}async function wT(e,t){let{ast:n,text:r}=await Qw(e,t),{rangeStart:i,rangeEnd:a}=bT(r,t,n),o=r.slice(i,a),s=Math.min(i,r.lastIndexOf(`
130
- `,i)+1),c=r.slice(s,i).match(/^\s*/u)[0],l=CS(c,t.tabWidth),u=await CT(o,{...t,rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=a?t.cursorOffset-i:-1,endOfLine:`lf`},l),d=u.formatted.trimEnd(),{cursorOffset:f}=t;f>a?f+=d.length-o.length:u.cursorOffset>=0&&(f=u.cursorOffset+i);let p=r.slice(0,i)+d+r.slice(a);if(t.endOfLine!==`lf`){let e=Ib(t.endOfLine);f>=0&&e===`\r
131
- `&&(f+=Lb(p.slice(0,f),`
132
- `)),p=jb(!1,p,`
133
- `,e)}return{formatted:p,cursorOffset:f,comments:u.comments}}function TT(e,t,n){return typeof t!=`number`||Number.isNaN(t)||t<0||t>e.length?n:t}function ET(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=TT(e,n,-1),r=TT(e,r,0),i=TT(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function DT(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:a}=ET(e,t),o=e.charAt(0)===xT;if(o&&(e=e.slice(1),n--,r--,i--),a===`auto`&&(a=Fb(e)),e.includes(`\r`)){let t=t=>Lb(e.slice(0,Math.max(t,0)),`\r
134
- `);n-=t(n),r-=t(r),i-=t(i),e=Rb(e)}return{hasBOM:o,text:e,options:ET(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:a})}}async function OT(e,t){let n=await Uw(t);return!n.hasPragma||n.hasPragma(e)}async function kT(e,t){let n=await Uw(t);return n.hasIgnorePragma?.call(n,e)}async function AT(e,t){let{hasBOM:n,text:r,options:i}=DT(e,await Jw(t));if(i.rangeStart>=i.rangeEnd&&r!==``||i.requirePragma&&!await OT(r,i)||i.checkIgnorePragma&&await kT(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let a;return i.rangeStart>0||i.rangeEnd<r.length?a=await wT(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await OT(r,i)&&(r=i.printer.insertPragma(r)),a=await CT(r,i)),n&&(a.formatted=xT+a.formatted,a.cursorOffset>=0&&a.cursorOffset++),a}async function jT(e,t,n){let{text:r,options:i}=DT(e,await Jw(t)),a=await Qw(r,i);return n&&(n.preprocessForPrint&&(a.ast=await aT(a.ast,i)),n.massage&&(a.ast=lT(a.ast,i))),a}async function MT(e,t){return t=await Jw(t),xS(await rT(e,t),t)}async function NT(e,t){let{formatted:n}=await AT(rS(e),{...t,parser:`__js_expression`});return n}async function PT(e,t){t=await Jw(t);let{ast:n}=await Qw(e,t);return t.cursorOffset>=0&&(t={...t,...sT(n,t)}),rT(n,t)}async function FT(e,t){return xS(e,await Jw(t))}var IT={};wb(IT,{builders:()=>LT,printer:()=>RT,utils:()=>zT});var LT={join:$x,line:Jx,softline:Yx,hardline:Xx,literalline:Zx,group:Px,conditionalGroup:Rx,fill:zx,lineSuffix:Hx,lineSuffixBoundary:Ux,cursor:Qx,breakParent:Wx,ifBreak:Bx,trim:Gx,indent:Mx,indentIfBreak:Vx,align:Nx,addAlignmentToDoc:eS,markAsRoot:Ix,dedentToRoot:Fx,dedent:Lx,hardlineWithoutBreakParent:Kx,literallineWithoutBreakParent:qx,label:tS,concat:e=>e},RT={printDocToString:xS},zT={willBreak:mx,traverseDoc:ux,findInDoc:fx,mapDoc:dx,removeLines:vx,stripTrailingHardline:xx,replaceEndOfLine:wx,canBreak:Ex},BT=`3.6.2`,VT={};wb(VT,{addDanglingComment:()=>eC,addLeadingComment:()=>$S,addTrailingComment:()=>tC,getAlignmentSize:()=>CS,getIndentSize:()=>ZT,getMaxContinuousCount:()=>eE,getNextNonSpaceNonCommentCharacter:()=>nE,getNextNonSpaceNonCommentCharacterIndex:()=>mE,getPreferredQuote:()=>oE,getStringWidth:()=>uS,hasNewline:()=>WS,hasNewlineInRange:()=>cE,hasSpaces:()=>uE,isNextLineEmpty:()=>vE,isNextLineEmptyAfterIndex:()=>YT,isPreviousLineEmpty:()=>gE,makeString:()=>fE,skip:()=>IS,skipEverythingButNewLine:()=>BS,skipInlineComment:()=>UT,skipNewline:()=>HS,skipSpaces:()=>RS,skipToLineEnd:()=>zS,skipTrailingComment:()=>GT,skipWhitespace:()=>LS});function HT(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var UT=HT;function WT(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?BS(e,t):t}var GT=WT;function KT(e,t){let n=null,r=t;for(;r!==n;)n=r,r=RS(e,r),r=UT(e,r),r=GT(e,r),r=HS(e,r);return r}var qT=KT;function JT(e,t){let n=null,r=t;for(;r!==n;)n=r,r=zS(e,r),r=UT(e,r),r=RS(e,r);return r=GT(e,r),r=HS(e,r),r!==!1&&WS(e,r)}var YT=JT;function XT(e,t){let n=e.lastIndexOf(`
135
- `);return n===-1?0:CS(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var ZT=XT;function QT(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function $T(e,t){let n=e.match(RegExp(`(${QT(t)})+`,`gu`));return n===null?0:n.reduce((e,n)=>Math.max(e,n.length/t.length),0)}var eE=$T;function tE(e,t){let n=qT(e,t);return n===!1?``:e.charAt(n)}var nE=tE,rE=`'`,iE=`"`;function aE(e,t){let n=t===!0||t===rE?rE:iE,r=n===rE?iE:rE,i=0,a=0;for(let t of e)t===n?i++:t===r&&a++;return i>a?r:n}var oE=aE;function sE(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
136
- `)return!0;return!1}var cE=sE;function lE(e,t,n={}){return RS(e,n.backwards?t-1:t,n)!==t}var uE=lE;function dE(e,t,n){let r=t===`"`?`'`:`"`;return t+jb(!1,e,/\\(.)|(["'])/gsu,(e,i,a)=>i===r?i:a===t?`\\`+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:`\\`+i))+t}var fE=dE;function pE(e,t,n){return qT(e,n(t))}function mE(e,t){return arguments.length===2||typeof t==`number`?qT(e,t):pE(...arguments)}function hE(e,t,n){return pC(e,n(t))}function gE(e,t){return arguments.length===2||typeof t==`number`?pC(e,t):hE(...arguments)}function _E(e,t,n){return YT(e,n(t))}function vE(e,t){return arguments.length===2||typeof t==`number`?YT(e,t):_E(...arguments)}function yE(e,t=1){return async(...n)=>{let r=n[t]??{},i=r.plugins??[];return n[t]={...r,plugins:Array.isArray(i)?i:Object.values(i)},e(...n)}}var bE=yE(AT);async function xE(e,t){let{formatted:n}=await bE(e,{...t,cursorOffset:-1});return n}async function SE(e,t){return await xE(e,t)===e}var CE=yE(TC,0),wE={parse:yE(jT),formatAST:yE(MT),formatDoc:yE(NT),printToDoc:yE(PT),printDocToString:yE(FT)},Y;(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(Y||={});function TE(e){return e.type===Y.Tag||e.type===Y.Script||e.type===Y.Style}const EE=Y.Root,DE=Y.Text,OE=Y.Directive,kE=Y.Comment,AE=Y.Script,jE=Y.Style,ME=Y.Tag,NE=Y.CDATA,PE=Y.Doctype;var FE=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return XE(this,e)}},IE=class extends FE{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},LE=class extends IE{constructor(){super(...arguments),this.type=Y.Text}get nodeType(){return 3}},RE=class extends IE{constructor(){super(...arguments),this.type=Y.Comment}get nodeType(){return 8}},zE=class extends IE{constructor(e,t){super(t),this.name=e,this.type=Y.Directive}get nodeType(){return 1}},BE=class extends FE{constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},VE=class extends BE{constructor(){super(...arguments),this.type=Y.CDATA}get nodeType(){return 4}},HE=class extends BE{constructor(){super(...arguments),this.type=Y.Root}get nodeType(){return 9}},UE=class extends BE{constructor(e,t,n=[],r=e===`script`?Y.Script:e===`style`?Y.Style:Y.Tag){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this[`x-attribsNamespace`]?.[e],prefix:this[`x-attribsPrefix`]?.[e]}))}};function WE(e){return TE(e)}function GE(e){return e.type===Y.CDATA}function KE(e){return e.type===Y.Text}function qE(e){return e.type===Y.Comment}function JE(e){return e.type===Y.Directive}function YE(e){return e.type===Y.Root}function XE(e,t=!1){let n;if(KE(e))n=new LE(e.data);else if(qE(e))n=new RE(e.data);else if(WE(e)){let r=t?ZE(e.children):[],i=new UE(e.name,{...e.attribs},r);r.forEach(e=>e.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e[`x-attribsNamespace`]&&(i[`x-attribsNamespace`]={...e[`x-attribsNamespace`]}),e[`x-attribsPrefix`]&&(i[`x-attribsPrefix`]={...e[`x-attribsPrefix`]}),n=i}else if(GE(e)){let r=t?ZE(e.children):[],i=new VE(r);r.forEach(e=>e.parent=i),n=i}else if(YE(e)){let r=t?ZE(e.children):[],i=new HE(r);r.forEach(e=>e.parent=i),e[`x-mode`]&&(i[`x-mode`]=e[`x-mode`]),n=i}else if(JE(e)){let t=new zE(e.name,e.data);e[`x-name`]!=null&&(t[`x-name`]=e[`x-name`],t[`x-publicId`]=e[`x-publicId`],t[`x-systemId`]=e[`x-systemId`]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function ZE(e){let t=e.map(e=>XE(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}const QE={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};var $E=class{constructor(e,t,n){this.dom=[],this.root=new HE(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof t==`function`&&(n=t,t=QE),typeof e==`object`&&(t=e,e=void 0),this.callback=e??null,this.options=t??QE,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new HE(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){let n=new UE(e,t,void 0,this.options.xmlMode?Y.Tag:void 0);this.addNode(n),this.tagStack.push(n)}ontext(e){let{lastNode:t}=this;if(t&&t.type===Y.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{let t=new LE(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===Y.Comment){this.lastNode.data+=e;return}let t=new RE(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){let e=new LE(``),t=new VE([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let n=new zE(e,t);this.addNode(n)}handleCallback(e){if(typeof this.callback==`function`)this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}};const eD=/\n/g;function tD(e){let t=[...e.matchAll(eD)].map((e=>e.index||0));t.unshift(-1);let n=nD(t,0,t.length);return e=>rD(n,e)}function nD(e,t,n){if(n-t==1)return{offset:e[t],index:t+1};let r=Math.ceil((t+n)/2),i=nD(e,t,r),a=nD(e,r,n);return{offset:i.offset,low:i,high:a}}function rD(e,t){return function(e){return Object.prototype.hasOwnProperty.call(e,`index`)}(e)?{line:e.index,column:t-e.offset}:rD(e.high.offset<t?e.high:e.low,t)}function iD(e,t=``,n={}){let r=typeof t==`string`?n:t,i=typeof t==`string`?t:``,a=e.map(aD),o=!!r.lineNumbers;return function(e,t=0){let n=o?tD(e):()=>({line:0,column:0}),r=t,s=[];e:for(;r<e.length;){let t=!1;for(let o of a){o.regex.lastIndex=r;let a=o.regex.exec(e);if(a&&a[0].length>0){if(!o.discard){let e=n(r),t=typeof o.replace==`string`?a[0].replace(new RegExp(o.regex.source,o.regex.flags),o.replace):a[0];s.push({state:i,name:o.name,text:t,offset:r,len:a[0].length,line:e.line,column:e.column})}if(r=o.regex.lastIndex,t=!0,o.push){let t=o.push(e,r);s.push(...t.tokens),r=t.offset}if(o.pop)break e;break}}if(!t)break}return{tokens:s,offset:r,complete:e.length<=r}}}function aD(e,t){return{...e,regex:oD(e,t)}}function oD(e,t){if(e.name.length===0)throw Error(`Rule #${t} has empty name, which is not allowed.`);if(function(e){return Object.prototype.hasOwnProperty.call(e,`regex`)}(e))return function(e){if(e.global)throw Error(`Regular expression /${e.source}/${e.flags} contains the global flag, which is not allowed.`);return e.sticky?e:new RegExp(e.source,e.flags+`y`)}(e.regex);if(function(e){return Object.prototype.hasOwnProperty.call(e,`str`)}(e)){if(e.str.length===0)throw Error(`Rule #${t} ("${e.name}") has empty "str" property, which is not allowed.`);return new RegExp(sD(e.str),`y`)}return new RegExp(sD(e.name),`y`)}function sD(e){return e.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,`\\$&`)}function cD(e,t){return(n,r)=>{let i=r,a;return r<n.tokens.length?(a=e(n.tokens[r],n,r),a!==void 0&&i++):t?.(n,r),a===void 0?{matched:!1}:{matched:!0,position:i,value:a}}}function lD(e,t){return e.matched?{matched:!0,position:e.position,value:t(e.value,e.position)}:e}function uD(e,t){return e.matched?t(e):e}function dD(e,t){return(n,r)=>lD(e(n,r),(e,i)=>t(e,n,r,i))}function fD(e,t){return(n,r)=>{let i=e(n,r);return i.matched?i:{matched:!0,position:r,value:t}}}function pD(...e){return(t,n)=>{for(let r of e){let e=r(t,n);if(e.matched)return e}return{matched:!1}}}function mD(e,t){return(n,r)=>{let i=e(n,r);return i.matched?i:t(n,r)}}function hD(e,t){return(n,r)=>{let i=[],a=!0;do{let o=e(n,r);o.matched&&t(o.value,i.length+1,n,r,o.position)?(i.push(o.value),r=o.position):a=!1}while(a);return{matched:!0,position:r,value:i}}}function gD(e){return hD(e,()=>!0)}function _D(e){return vD(e,gD(e),(e,t)=>[e,...t])}function vD(e,t,n){return(r,i)=>uD(e(r,i),e=>lD(t(r,e.position),(t,a)=>n(e.value,t,r,i,a)))}function yD(e,t){return vD(e,t,e=>e)}function bD(e,t){return vD(e,t,(e,t)=>t)}function xD(e,t,n,r){return(i,a)=>uD(e(i,a),e=>uD(t(i,e.position),t=>lD(n(i,t.position),(n,o)=>r(e.value,t.value,n,i,a,o))))}function SD(e,t,n){return xD(e,t,n,(e,t)=>t)}function CD(...e){return(t,n)=>{let r=[],i=n;for(let n of e){let e=n(t,i);if(e.matched)r.push(e.value),i=e.position;else return{matched:!1}}return{matched:!0,position:i,value:r}}}function wD(...e){return TD(CD(...e))}function TD(e){return dD(e,e=>e.flatMap(e=>e))}function ED(e,t){return(n,r)=>{let i=!0,a=e,o=r;do{let e=t(a,n,o)(n,o);e.matched?(a=e.value,o=e.position):i=!1}while(i);return{matched:!0,position:o,value:a}}}function DD(e,t,n){return ED(e,e=>dD(t,(t,r,i,a)=>n(e,t,r,i,a)))}function OD(e,t,n){return kD(e,e=>DD(e,vD(t,n,(e,t)=>[e,t]),(e,[t,n])=>t(e,n)))}function kD(e,t){return(n,r)=>uD(e(n,r),e=>t(e.value,n,r,e.position)(n,e.position))}const AD=`(?:\\n|\\r\\n|\\r|\\f)`,jD=`[^\\x00-\\x7F]`,MD=`(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)`,ND=`(?:\\\\[^\\n\\r\\f0-9a-f])`,PD=`(?:[_a-z]|${jD}|${MD}|${ND})`,FD=`(?:[_a-z0-9-]|${jD}|${MD}|${ND})`,ID=`(?:${FD}+)`,LD=`(?:[-]?${PD}${FD}*)`,RD=`'([^\\n\\r\\f\\\\']|\\\\${AD}|${jD}|${MD}|${ND})*'`,zD=`"([^\\n\\r\\f\\\\"]|\\\\${AD}|${jD}|${MD}|${ND})*"`,BD=iD([{name:`ws`,regex:RegExp(`(?:[ \\t\\r\\n\\f]*)`)},{name:`hash`,regex:RegExp(`#${ID}`,`i`)},{name:`ident`,regex:new RegExp(LD,`i`)},{name:`str1`,regex:new RegExp(RD,`i`)},{name:`str2`,regex:new RegExp(zD,`i`)},{name:`*`},{name:`.`},{name:`,`},{name:`[`},{name:`]`},{name:`=`},{name:`>`},{name:`|`},{name:`+`},{name:`~`},{name:`^`},{name:`$`}]),VD=iD([{name:`unicode`,regex:new RegExp(MD,`i`)},{name:`escape`,regex:new RegExp(ND,`i`)},{name:`any`,regex:RegExp(`[\\s\\S]`,`i`)}]);function HD([e,t,n],[r,i,a]){return[e+r,t+i,n+a]}function UD(e){return e.reduce(HD,[0,0,0])}const WD=dD(gD(pD(cD(e=>e.name===`unicode`?String.fromCodePoint(parseInt(e.text.slice(1),16)):void 0),cD(e=>e.name===`escape`?e.text.slice(1):void 0),cD(e=>e.name===`any`?e.text:void 0))),e=>e.join(``));function GD(e){return WD({tokens:VD(e).tokens,options:void 0},0).value}function X(e){return cD(t=>t.name===e?!0:void 0)}const KD=cD(e=>e.name===`ws`?null:void 0),qD=fD(KD,null);function JD(e){return SD(qD,e,qD)}const YD=cD(e=>e.name===`ident`?GD(e.text):void 0),XD=cD(e=>e.name===`hash`?GD(e.text.slice(1)):void 0),ZD=cD(e=>e.name.startsWith(`str`)?GD(e.text.slice(1,-1)):void 0),QD=yD(fD(YD,``),X(`|`)),$D=mD(vD(QD,YD,(e,t)=>({name:t,namespace:e})),dD(YD,e=>({name:e,namespace:null}))),eO=mD(vD(QD,X(`*`),e=>({type:`universal`,namespace:e,specificity:[0,0,0]})),dD(X(`*`),()=>({type:`universal`,namespace:null,specificity:[0,0,0]}))),tO=dD($D,({name:e,namespace:t})=>({type:`tag`,name:e,namespace:t,specificity:[0,0,1]})),nO=vD(X(`.`),YD,(e,t)=>({type:`class`,name:t,specificity:[0,1,0]})),rO=dD(XD,e=>({type:`id`,name:e,specificity:[1,0,0]})),iO=cD(e=>{if(e.name===`ident`){if(e.text===`i`||e.text===`I`)return`i`;if(e.text===`s`||e.text===`S`)return`s`}}),aO=mD(vD(ZD,fD(bD(qD,iO),null),(e,t)=>({value:e,modifier:t})),vD(YD,fD(bD(KD,iO),null),(e,t)=>({value:e,modifier:t}))),oO=pD(dD(X(`=`),()=>`=`),vD(X(`~`),X(`=`),()=>`~=`),vD(X(`|`),X(`=`),()=>`|=`),vD(X(`^`),X(`=`),()=>`^=`),vD(X(`$`),X(`=`),()=>`$=`),vD(X(`*`),X(`=`),()=>`*=`)),sO=mD(xD(X(`[`),JD($D),X(`]`),(e,{name:t,namespace:n})=>({type:`attrPresence`,name:t,namespace:n,specificity:[0,1,0]})),SD(X(`[`),xD(JD($D),oO,JD(aO),({name:e,namespace:t},n,{value:r,modifier:i})=>({type:`attrValue`,name:e,namespace:t,matcher:n,value:r,modifier:i,specificity:[0,1,0]})),X(`]`))),cO=mD(eO,tO),lO=pD(rO,nO,sO),uO=dD(mD(wD(cO,gD(lO)),_D(lO)),e=>({type:`compound`,list:e,specificity:UD(e.map(e=>e.specificity))})),dO=OD(uO,dD(mD(JD(pD(dD(X(`>`),()=>`>`),dD(X(`+`),()=>`+`),dD(X(`~`),()=>`~`),vD(X(`|`),X(`|`),()=>`||`))),dD(KD,()=>` `)),e=>(t,n)=>({type:`compound`,list:[...n.list,{type:`combinator`,combinator:e,left:t,specificity:t.specificity}],specificity:HD(t.specificity,n.specificity)})),uO);OD(dD(dO,e=>({type:`list`,list:[e]})),dD(JD(X(`,`)),()=>(e,t)=>({type:`list`,list:[...e.list,t]})),dO);function fO(e,t){if(!(typeof t==`string`||t instanceof String))throw Error(`Expected a selector string. Actual input is not a string!`);let n=BD(t);if(!n.complete)throw Error(`The input "${t}" was only partially tokenized, stopped at offset ${n.offset}!\n`+pO(t,n.offset));let r=JD(e)({tokens:n.tokens,options:void 0},0);if(!r.matched)throw Error(`No match for "${t}" input!`);if(r.position<n.tokens.length){let e=n.tokens[r.position];throw Error(`The input "${t}" was only partially parsed, stopped at offset ${e.offset}!\n`+pO(t,e.offset,e.len))}return r.value}function pO(e,t,n=1){return`${e.replace(/(\t)|(\r)|(\n)/g,(e,t,n)=>t?`␉`:n?`␍`:`␊`)}\n${``.padEnd(t)}${`^`.repeat(n)}`}function mO(e){return fO(dO,e)}function hO(e){if(!e.type)throw Error(`This is not an AST node.`);switch(e.type){case`universal`:return gO(e.namespace)+`*`;case`tag`:return gO(e.namespace)+vO(e.name);case`class`:return`.`+vO(e.name);case`id`:return`#`+vO(e.name);case`attrPresence`:return`[${gO(e.namespace)}${vO(e.name)}]`;case`attrValue`:return`[${gO(e.namespace)}${vO(e.name)}${e.matcher}"${yO(e.value)}"${e.modifier?e.modifier:``}]`;case`combinator`:return hO(e.left)+e.combinator;case`compound`:return e.list.reduce((e,t)=>t.type===`combinator`?hO(t)+e:e+hO(t),``);case`list`:return e.list.map(hO).join(`,`)}}function gO(e){return e||e===``?vO(e)+`|`:``}function _O(e){return`\\${e.codePointAt(0).toString(16)} `}function vO(e){return e.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(e,t,n,r,i,a,o,s)=>t?_O(t):n?`-`+_O(n.slice(1)):r?`\\-`:i||(a?`�`:o?_O(o):`\\`+s))}function yO(e){return e.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(e,t,n,r,i)=>t?`\\"`:n?`\\\\`:r?`�`:_O(i))}function bO(e){if(!e.type)throw Error(`This is not an AST node.`);switch(e.type){case`compound`:e.list.forEach(bO),e.list.sort((e,t)=>CO(xO(e),xO(t)));break;case`combinator`:bO(e.left);break;case`list`:e.list.forEach(bO),e.list.sort((e,t)=>hO(e)<hO(t)?-1:1);break}return e}function xO(e){switch(e.type){case`universal`:return[1];case`tag`:return[1];case`id`:return[2];case`class`:return[3,e.name];case`attrPresence`:return[4,hO(e)];case`attrValue`:return[5,hO(e)];case`combinator`:return[15,hO(e)]}}function SO(e,t){return CO(e,t)}function CO(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw Error(`Arguments must be arrays.`);let n=e.length<t.length?e.length:t.length;for(let r=0;r<n;r++)if(e[r]!==t[r])return e[r]<t[r]?-1:1;return e.length-t.length}var wO=class{constructor(e){this.branches=OO(TO(e))}build(e){return e(this.branches)}};function TO(e){let t=e.length,n=Array(t);for(let r=0;r<t;r++){let[t,i]=e[r],a=EO(mO(t));n[r]={ast:a,terminal:{type:`terminal`,valueContainer:{index:r,value:i,specificity:a.specificity}}}}return n}function EO(e){return DO(e),bO(e),e}function DO(e){let t=[];e.list.forEach(e=>{switch(e.type){case`class`:t.push({matcher:`~=`,modifier:null,name:`class`,namespace:null,specificity:e.specificity,type:`attrValue`,value:e.name});break;case`id`:t.push({matcher:`=`,modifier:null,name:`id`,namespace:null,specificity:e.specificity,type:`attrValue`,value:e.name});break;case`combinator`:DO(e.left),t.push(e);break;case`universal`:break;default:t.push(e);break}}),e.list=t}function OO(e){let t=[];for(;e.length;){let n=BO(e,e=>!0,jO),{matches:r,nonmatches:i,empty:a}=AO(e,n);e=i,r.length&&t.push(MO(n,r)),a.length&&t.push(...kO(a))}return t}function kO(e){let t=[];for(let n of e){let e=n.terminal;if(e.type===`terminal`)t.push(e);else{let{matches:n,rest:r}=VO(e.cont,e=>e.type===`terminal`);n.forEach(e=>t.push(e)),r.length&&(e.cont=r,t.push(e))}}return t}function AO(e,t){let n=[],r=[],i=[];for(let a of e){let e=a.ast.list;e.length?(e.some(e=>jO(e)===t)?n:r).push(a):i.push(a)}return{matches:n,nonmatches:r,empty:i}}function jO(e){switch(e.type){case`attrPresence`:return`attrPresence ${e.name}`;case`attrValue`:return`attrValue ${e.name}`;case`combinator`:return`combinator ${e.combinator}`;default:return e.type}}function MO(e,t){if(e===`tag`)return NO(t);if(e.startsWith(`attrValue `))return FO(e.substring(10),t);if(e.startsWith(`attrPresence `))return PO(e.substring(13),t);if(e===`combinator >`)return LO(`>`,t);if(e===`combinator +`)return LO(`+`,t);throw Error(`Unsupported selector kind: ${e}`)}function NO(e){let t=RO(e,e=>e.type===`tag`,e=>e.name);return{type:`tagName`,variants:Object.entries(t).map(([e,t])=>({type:`variant`,value:e,cont:OO(t.items)}))}}function PO(e,t){for(let n of t)zO(n,t=>t.type===`attrPresence`&&t.name===e);return{type:`attrPresence`,name:e,cont:OO(t)}}function FO(e,t){let n=RO(t,t=>t.type===`attrValue`&&t.name===e,e=>`${e.matcher} ${e.modifier||``} ${e.value}`),r=[];for(let e of Object.values(n)){let t=e.oneSimpleSelector,n=IO(t),i=OO(e.items);r.push({type:`matcher`,matcher:t.matcher,modifier:t.modifier,value:t.value,predicate:n,cont:i})}return{type:`attrValue`,name:e,matchers:r}}function IO(e){if(e.modifier===`i`){let t=e.value.toLowerCase();switch(e.matcher){case`=`:return e=>t===e.toLowerCase();case`~=`:return e=>e.toLowerCase().split(/[ \t]+/).includes(t);case`^=`:return e=>e.toLowerCase().startsWith(t);case`$=`:return e=>e.toLowerCase().endsWith(t);case`*=`:return e=>e.toLowerCase().includes(t);case`|=`:return e=>{let n=e.toLowerCase();return t===n||n.startsWith(t)&&n[t.length]===`-`}}}else{let t=e.value;switch(e.matcher){case`=`:return e=>t===e;case`~=`:return e=>e.split(/[ \t]+/).includes(t);case`^=`:return e=>e.startsWith(t);case`$=`:return e=>e.endsWith(t);case`*=`:return e=>e.includes(t);case`|=`:return e=>t===e||e.startsWith(t)&&e[t.length]===`-`}}}function LO(e,t){let n=RO(t,t=>t.type===`combinator`&&t.combinator===e,e=>hO(e.left)),r=[];for(let e of Object.values(n)){let t=OO(e.items),n=e.oneSimpleSelector.left;r.push({ast:n,terminal:{type:`popElement`,cont:t}})}return{type:`pushElement`,combinator:e,cont:OO(r)}}function RO(e,t,n){let r={};for(;e.length;){let i=BO(e,t,n),a=e=>t(e)&&n(e)===i,{matches:o,rest:s}=HO(e,e=>e.ast.list.some(a)),c=null;for(let e of o){let t=zO(e,a);c||=t}if(c==null)throw Error(`No simple selector is found.`);r[i]={oneSimpleSelector:c,items:o},e=s}return r}function zO(e,t){let n=e.ast.list,r=Array(n.length),i=-1;for(let e=n.length;e-- >0;)t(n[e])&&(r[e]=!0,i=e);if(i==-1)throw Error(`Couldn't find the required simple selector.`);let a=n[i];return e.ast.list=n.filter((e,t)=>!r[t]),a}function BO(e,t,n){let r={};for(let i of e){let e={};for(let r of i.ast.list.filter(t))e[n(r)]=!0;for(let t of Object.keys(e))r[t]?r[t]++:r[t]=1}let i=``,a=0;for(let e of Object.entries(r))e[1]>a&&(i=e[0],a=e[1]);return i}function VO(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}function HO(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}var UO=class{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,t=!1){let n=this.f(e),r=n.length;if(r===0)return null;if(r===1)return n[0].value;let i=t?WO:GO,a=n[0];for(let e=1;e<r;e++){let t=n[e];i(a,t)&&(a=t)}return a.value}};function WO(e,t){let n=SO(t.specificity,e.specificity);return n>0||n===0&&t.index<e.index}function GO(e,t){let n=SO(t.specificity,e.specificity);return n>0||n===0&&t.index>e.index}function KO(e){return new UO(qO(e))}function qO(e){let t=e.map(JO);return(e,...n)=>t.flatMap(t=>t(e,...n))}function JO(e){switch(e.type){case`terminal`:{let t=[e.valueContainer];return(e,...n)=>t}case`tagName`:return YO(e);case`attrValue`:return ZO(e);case`attrPresence`:return XO(e);case`pushElement`:return QO(e);case`popElement`:return tk(e)}}function YO(e){let t={};for(let n of e.variants)t[n.value]=qO(n.cont);return(e,...n)=>{let r=t[e.name];return r?r(e,...n):[]}}function XO(e){let t=e.name,n=qO(e.cont);return(e,...r)=>Object.prototype.hasOwnProperty.call(e.attribs,t)?n(e,...r):[]}function ZO(e){let t=[];for(let n of e.matchers){let e=n.predicate,r=qO(n.cont);t.push((t,n,...i)=>e(t)?r(n,...i):[])}let n=e.name;return(e,...r)=>{let i=e.attribs[n];return i||i===``?t.flatMap(t=>t(i,e,...r)):[]}}function QO(e){let t=qO(e.cont),n=e.combinator===`+`?$O:ek;return(e,...r)=>{let i=n(e);return i===null?[]:t(i,e,...r)}}const $O=e=>{let t=e.prev;return t===null?null:WE(t)?t:$O(t)},ek=e=>{let t=e.parent;return t&&WE(t)?t:null};function tk(e){let t=qO(e.cont);return(e,n,...r)=>t(n,...r)}var nk=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),rk=new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0)));const ik=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ak=String.fromCodePoint??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function ok(e){return e>=55296&&e<=57343||e>1114111?65533:ik.get(e)??e}var sk;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(sk||={});var ck;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(ck||={});function lk(e){return e>=sk.ZERO&&e<=sk.NINE}function uk(e){return e>=sk.UPPER_A&&e<=sk.UPPER_F||e>=sk.LOWER_A&&e<=sk.LOWER_F}function dk(e){return e>=sk.UPPER_A&&e<=sk.UPPER_Z||e>=sk.LOWER_A&&e<=sk.LOWER_Z||lk(e)}function fk(e){return e===sk.EQUALS||dk(e)}var pk;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(pk||={});var mk;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(mk||={});var hk=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=pk.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=mk.Strict}startEntity(e){this.decodeMode=e,this.state=pk.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case pk.EntityStart:return e.charCodeAt(t)===sk.NUM?(this.state=pk.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=pk.NamedEntity,this.stateNamedEntity(e,t));case pk.NumericStart:return this.stateNumericStart(e,t);case pk.NumericDecimal:return this.stateNumericDecimal(e,t);case pk.NumericHex:return this.stateNumericHex(e,t);case pk.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|32)===sk.LOWER_X?(this.state=pk.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=pk.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(lk(r)||uk(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(lk(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===sk.SEMI)this.consumed+=1;else if(this.decodeMode===mk.Strict)return 0;return this.emitCodePoint(ok(this.result),this.consumed),this.errors&&(e!==sk.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&ck.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=_k(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===mk.Attribute&&(i===0||fk(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&ck.VALUE_LENGTH)>>14,i!==0){if(a===sk.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==mk.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&ck.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~ck.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case pk.NamedEntity:return this.result!==0&&(this.decodeMode!==mk.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case pk.NumericDecimal:return this.emitNumericEntity(0,2);case pk.NumericHex:return this.emitNumericEntity(0,3);case pk.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case pk.EntityStart:return 0}}};function gk(e){let t=``,n=new hk(e,e=>t+=ak(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function _k(e,t,n,r){let i=(t&ck.BRANCH_LENGTH)>>7,a=t&ck.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}gk(nk),gk(rk);var Z;(function(e){e[e.Tab=9]=`Tab`,e[e.NewLine=10]=`NewLine`,e[e.FormFeed=12]=`FormFeed`,e[e.CarriageReturn=13]=`CarriageReturn`,e[e.Space=32]=`Space`,e[e.ExclamationMark=33]=`ExclamationMark`,e[e.Number=35]=`Number`,e[e.Amp=38]=`Amp`,e[e.SingleQuote=39]=`SingleQuote`,e[e.DoubleQuote=34]=`DoubleQuote`,e[e.Dash=45]=`Dash`,e[e.Slash=47]=`Slash`,e[e.Zero=48]=`Zero`,e[e.Nine=57]=`Nine`,e[e.Semi=59]=`Semi`,e[e.Lt=60]=`Lt`,e[e.Eq=61]=`Eq`,e[e.Gt=62]=`Gt`,e[e.Questionmark=63]=`Questionmark`,e[e.UpperA=65]=`UpperA`,e[e.LowerA=97]=`LowerA`,e[e.UpperF=70]=`UpperF`,e[e.LowerF=102]=`LowerF`,e[e.UpperZ=90]=`UpperZ`,e[e.LowerZ=122]=`LowerZ`,e[e.LowerX=120]=`LowerX`,e[e.OpeningSquareBracket=91]=`OpeningSquareBracket`})(Z||={});var Q;(function(e){e[e.Text=1]=`Text`,e[e.BeforeTagName=2]=`BeforeTagName`,e[e.InTagName=3]=`InTagName`,e[e.InSelfClosingTag=4]=`InSelfClosingTag`,e[e.BeforeClosingTagName=5]=`BeforeClosingTagName`,e[e.InClosingTagName=6]=`InClosingTagName`,e[e.AfterClosingTagName=7]=`AfterClosingTagName`,e[e.BeforeAttributeName=8]=`BeforeAttributeName`,e[e.InAttributeName=9]=`InAttributeName`,e[e.AfterAttributeName=10]=`AfterAttributeName`,e[e.BeforeAttributeValue=11]=`BeforeAttributeValue`,e[e.InAttributeValueDq=12]=`InAttributeValueDq`,e[e.InAttributeValueSq=13]=`InAttributeValueSq`,e[e.InAttributeValueNq=14]=`InAttributeValueNq`,e[e.BeforeDeclaration=15]=`BeforeDeclaration`,e[e.InDeclaration=16]=`InDeclaration`,e[e.InProcessingInstruction=17]=`InProcessingInstruction`,e[e.BeforeComment=18]=`BeforeComment`,e[e.CDATASequence=19]=`CDATASequence`,e[e.InSpecialComment=20]=`InSpecialComment`,e[e.InCommentLike=21]=`InCommentLike`,e[e.BeforeSpecialS=22]=`BeforeSpecialS`,e[e.SpecialStartSequence=23]=`SpecialStartSequence`,e[e.InSpecialTag=24]=`InSpecialTag`,e[e.BeforeEntity=25]=`BeforeEntity`,e[e.BeforeNumericEntity=26]=`BeforeNumericEntity`,e[e.InNamedEntity=27]=`InNamedEntity`,e[e.InNumericEntity=28]=`InNumericEntity`,e[e.InHexEntity=29]=`InHexEntity`})(Q||={});function vk(e){return e===Z.Space||e===Z.NewLine||e===Z.Tab||e===Z.FormFeed||e===Z.CarriageReturn}function yk(e){return e===Z.Slash||e===Z.Gt||vk(e)}function bk(e){return e>=Z.Zero&&e<=Z.Nine}function xk(e){return e>=Z.LowerA&&e<=Z.LowerZ||e>=Z.UpperA&&e<=Z.UpperZ}function Sk(e){return e>=Z.UpperA&&e<=Z.UpperF||e>=Z.LowerA&&e<=Z.LowerF}var Ck;(function(e){e[e.NoValue=0]=`NoValue`,e[e.Unquoted=1]=`Unquoted`,e[e.Single=2]=`Single`,e[e.Double=3]=`Double`})(Ck||={});const wk={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};var Tk=class{constructor({xmlMode:e=!1,decodeEntities:t=!0},n){this.cbs=n,this.state=Q.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=Q.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=t,this.entityTrie=e?rk:nk}reset(){this.state=Q.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=Q.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(e){e===Z.Lt||!this.decodeEntities&&this.fastForwardTo(Z.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=Q.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===Z.Amp&&(this.state=Q.BeforeEntity)}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?yk(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=Q.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===Z.Gt||vk(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===wk.TitleEnd?this.decodeEntities&&e===Z.Amp&&(this.state=Q.BeforeEntity):this.fastForwardTo(Z.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===Z.Lt)}stateCDATASequence(e){e===wk.Cdata[this.sequenceIndex]?++this.sequenceIndex===wk.Cdata.length&&(this.state=Q.InCommentLike,this.currentSequence=wk.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=Q.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===wk.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=Q.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!yk(e):xk(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=Q.SpecialStartSequence}stateBeforeTagName(e){if(e===Z.ExclamationMark)this.state=Q.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===Z.Questionmark)this.state=Q.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let t=e|32;this.sectionStart=this.index,!this.xmlMode&&t===wk.TitleEnd[2]?this.startSpecial(wk.TitleEnd,3):this.state=!this.xmlMode&&t===wk.ScriptEnd[2]?Q.BeforeSpecialS:Q.InTagName}else e===Z.Slash?this.state=Q.BeforeClosingTagName:(this.state=Q.Text,this.stateText(e))}stateInTagName(e){yk(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){vk(e)||(e===Z.Gt?this.state=Q.Text:(this.state=this.isTagStartChar(e)?Q.InClosingTagName:Q.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===Z.Gt||vk(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=Q.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===Z.Gt||this.fastForwardTo(Z.Gt))&&(this.state=Q.Text,this.baseState=Q.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===Z.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=Q.InSpecialTag,this.sequenceIndex=0):this.state=Q.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===Z.Slash?this.state=Q.InSelfClosingTag:vk(e)||(this.state=Q.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===Z.Gt?(this.cbs.onselfclosingtag(this.index),this.state=Q.Text,this.baseState=Q.Text,this.sectionStart=this.index+1,this.isSpecial=!1):vk(e)||(this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===Z.Eq||yk(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=Q.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===Z.Eq?this.state=Q.BeforeAttributeValue:e===Z.Slash||e===Z.Gt?(this.cbs.onattribend(Ck.NoValue,this.index),this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e)):vk(e)||(this.cbs.onattribend(Ck.NoValue,this.index),this.state=Q.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===Z.DoubleQuote?(this.state=Q.InAttributeValueDq,this.sectionStart=this.index+1):e===Z.SingleQuote?(this.state=Q.InAttributeValueSq,this.sectionStart=this.index+1):vk(e)||(this.sectionStart=this.index,this.state=Q.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===Z.DoubleQuote?Ck.Double:Ck.Single,this.index),this.state=Q.BeforeAttributeName):this.decodeEntities&&e===Z.Amp&&(this.baseState=this.state,this.state=Q.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,Z.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,Z.SingleQuote)}stateInAttributeValueNoQuotes(e){vk(e)||e===Z.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Ck.Unquoted,this.index),this.state=Q.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===Z.Amp&&(this.baseState=this.state,this.state=Q.BeforeEntity)}stateBeforeDeclaration(e){e===Z.OpeningSquareBracket?(this.state=Q.CDATASequence,this.sequenceIndex=0):this.state=e===Z.Dash?Q.BeforeComment:Q.InDeclaration}stateInDeclaration(e){(e===Z.Gt||this.fastForwardTo(Z.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=Q.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===Z.Gt||this.fastForwardTo(Z.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=Q.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===Z.Dash?(this.state=Q.InCommentLike,this.currentSequence=wk.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=Q.InDeclaration}stateInSpecialComment(e){(e===Z.Gt||this.fastForwardTo(Z.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Q.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let t=e|32;t===wk.ScriptEnd[3]?this.startSpecial(wk.ScriptEnd,4):t===wk.StyleEnd[3]?this.startSpecial(wk.StyleEnd,4):(this.state=Q.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===Z.Number?this.state=Q.BeforeNumericEntity:e===Z.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=Q.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=_k(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let t=this.trieCurrent&ck.VALUE_LENGTH;if(t){let n=(t>>14)-1;if(!this.allowLegacyEntity()&&e!==Z.Semi)this.trieIndex+=n;else{let e=this.index-this.entityExcess+1;e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,n===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult!==0)switch((this.entityTrie[this.entityResult]&ck.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~ck.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(e|32)===Z.LowerX?(this.entityExcess++,this.state=Q.InHexEntity):(this.state=Q.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){let t=this.index-this.entityExcess-1;t+2+Number(this.state===Q.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint(ok(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===Z.Semi?this.emitNumericEntity(!0):bk(e)?(this.entityResult=this.entityResult*10+(e-Z.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===Z.Semi?this.emitNumericEntity(!0):bk(e)?(this.entityResult=this.entityResult*16+(e-Z.Zero),this.entityExcess++):Sk(e)?(this.entityResult=this.entityResult*16+((e|32)-Z.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===Q.Text||this.baseState===Q.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===Q.Text||this.state===Q.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===Q.InAttributeValueDq||this.state===Q.InAttributeValueSq||this.state===Q.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case Q.Text:this.stateText(e);break;case Q.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case Q.InSpecialTag:this.stateInSpecialTag(e);break;case Q.CDATASequence:this.stateCDATASequence(e);break;case Q.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case Q.InAttributeName:this.stateInAttributeName(e);break;case Q.InCommentLike:this.stateInCommentLike(e);break;case Q.InSpecialComment:this.stateInSpecialComment(e);break;case Q.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case Q.InTagName:this.stateInTagName(e);break;case Q.InClosingTagName:this.stateInClosingTagName(e);break;case Q.BeforeTagName:this.stateBeforeTagName(e);break;case Q.AfterAttributeName:this.stateAfterAttributeName(e);break;case Q.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case Q.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case Q.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case Q.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case Q.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case Q.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case Q.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case Q.InDeclaration:this.stateInDeclaration(e);break;case Q.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case Q.BeforeComment:this.stateBeforeComment(e);break;case Q.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case Q.InNamedEntity:this.stateInNamedEntity(e);break;case Q.BeforeEntity:this.stateBeforeEntity(e);break;case Q.InHexEntity:this.stateInHexEntity(e);break;case Q.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()}finish(){this.state===Q.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.state===Q.InCommentLike?this.currentSequence===wk.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===Q.InNumericEntity&&this.allowLegacyEntity()||this.state===Q.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===Q.InTagName||this.state===Q.BeforeAttributeName||this.state===Q.BeforeAttributeValue||this.state===Q.AfterAttributeName||this.state===Q.InAttributeName||this.state===Q.InAttributeValueSq||this.state===Q.InAttributeValueDq||this.state===Q.InAttributeValueNq||this.state===Q.InClosingTagName||this.cbs.ontext(this.sectionStart,e)}emitPartial(e,t){this.baseState!==Q.Text&&this.baseState!==Q.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)}emitCodePoint(e){this.baseState!==Q.Text&&this.baseState!==Q.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)}};const Ek=new Set([`input`,`option`,`optgroup`,`select`,`button`,`datalist`,`textarea`]),$=new Set([`p`]),Dk=new Set([`thead`,`tbody`]),Ok=new Set([`dd`,`dt`]),kk=new Set([`rt`,`rp`]),Ak=new Map([[`tr`,new Set([`tr`,`th`,`td`])],[`th`,new Set([`th`])],[`td`,new Set([`thead`,`th`,`td`])],[`body`,new Set([`head`,`link`,`script`])],[`li`,new Set([`li`])],[`p`,$],[`h1`,$],[`h2`,$],[`h3`,$],[`h4`,$],[`h5`,$],[`h6`,$],[`select`,Ek],[`input`,Ek],[`output`,Ek],[`button`,Ek],[`datalist`,Ek],[`textarea`,Ek],[`option`,new Set([`option`])],[`optgroup`,new Set([`optgroup`,`option`])],[`dd`,Ok],[`dt`,Ok],[`address`,$],[`article`,$],[`aside`,$],[`blockquote`,$],[`details`,$],[`div`,$],[`dl`,$],[`fieldset`,$],[`figcaption`,$],[`figure`,$],[`footer`,$],[`form`,$],[`header`,$],[`hr`,$],[`main`,$],[`nav`,$],[`ol`,$],[`pre`,$],[`section`,$],[`table`,$],[`ul`,$],[`rt`,kk],[`rp`,kk],[`tbody`,Dk],[`tfoot`,Dk]]),jk=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),Mk=new Set([`math`,`svg`]),Nk=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignobject`,`desc`,`title`]),Pk=/\s|\//;var Fk=class{constructor(e,t={}){var n,r;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname=``,this.attribname=``,this.attribvalue=``,this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=t.lowerCaseTags??!t.xmlMode,this.lowerCaseAttributeNames=t.lowerCaseAttributeNames??!t.xmlMode,this.tokenizer=new(t.Tokenizer??Tk)(this.options,this),(r=(n=this.cbs).onparserinit)==null||r.call(n,this)}ontext(e,t){var n,r;let i=this.getSlice(e,t);this.endIndex=t-1,(r=(n=this.cbs).ontext)==null||r.call(n,i),this.startIndex=t}ontextentity(e){var t,n;let r=this.tokenizer.getSectionStart();this.endIndex=r-1,(n=(t=this.cbs).ontext)==null||n.call(t,ak(e)),this.startIndex=r}isVoidElement(e){return!this.options.xmlMode&&jk.has(e)}onopentagname(e,t){this.endIndex=t;let n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;let a=!this.options.xmlMode&&Ak.get(e);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){let e=this.stack.pop();(n=(t=this.cbs).onclosetag)==null||n.call(t,e,!0)}this.isVoidElement(e)||(this.stack.push(e),Mk.has(e)?this.foreignContext.push(!0):Nk.has(e)&&this.foreignContext.push(!1)),(i=(r=this.cbs).onopentagname)==null||i.call(r,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&=((n=(t=this.cbs).onopentag)==null||n.call(t,this.tagname,this.attribs,e),null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=``}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var n,r,i,a,o,s;this.endIndex=t;let c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(Mk.has(c)||Nk.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c===`br`&&((r=(n=this.cbs).onopentagname)==null||r.call(n,`br`),(a=(i=this.cbs).onopentag)==null||a.call(i,`br`,{},!0),(s=(o=this.cbs).onclosetag)==null||s.call(o,`br`,!1));else{let e=this.stack.lastIndexOf(c);if(e!==-1)if(this.cbs.onclosetag){let t=this.stack.length-e;for(;t--;)this.cbs.onclosetag(this.stack.pop(),t!==0)}else this.stack.length=e;else !this.options.xmlMode&&c===`p`&&(this.emitOpenTag(`p`),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,n;let r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&((n=(t=this.cbs).onclosetag)==null||n.call(t,r,!e),this.stack.pop())}onattribname(e,t){this.startIndex=e;let n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=ak(e)}onattribend(e,t){var n,r;this.endIndex=t,(r=(n=this.cbs).onattribute)==null||r.call(n,this.attribname,this.attribvalue,e===Ck.Double?`"`:e===Ck.Single?`'`:e===Ck.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=``}getInstructionName(e){let t=e.search(Pk),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){var r,i,a,o;this.endIndex=t,(i=(r=this.cbs).oncomment)==null||i.call(r,this.getSlice(e,t-n)),(o=(a=this.cbs).oncommentend)==null||o.call(a),this.startIndex=t+1}oncdata(e,t,n){var r,i,a,o,s,c,l,u,d,f;this.endIndex=t;let p=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?((i=(r=this.cbs).oncdatastart)==null||i.call(r),(o=(a=this.cbs).ontext)==null||o.call(a,p),(c=(s=this.cbs).oncdataend)==null||c.call(s)):((u=(l=this.cbs).oncomment)==null||u.call(l,`[CDATA[${p}]]`),(f=(d=this.cbs).oncommentend)==null||f.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=this.stack.length;e>0;this.cbs.onclosetag(this.stack[--e],!0));}(t=(e=this.cbs).onend)==null||t.call(e)}reset(){var e,t,n,r;(t=(e=this.cbs).onreset)==null||t.call(e),this.tokenizer.reset(),this.tagname=``,this.attribname=``,this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(r=(n=this.cbs).onparserinit)==null||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,n;if(this.ended){(n=(t=this.cbs).onerror)==null||n.call(t,Error(`.write() after done!`));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,n;if(this.ended){(n=(t=this.cbs).onerror)==null||n.call(t,Error(`.end() after done!`));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}};const Ik=/["&'<>$\x80-\uFFFF]/g,Lk=new Map([[34,`&quot;`],[38,`&amp;`],[39,`&apos;`],[60,`&lt;`],[62,`&gt;`]]),Rk=String.prototype.codePointAt==null?(e,t)=>(e.charCodeAt(t)&64512)==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t):(e,t)=>e.codePointAt(t);function zk(e){let t=``,n=0,r;for(;(r=Ik.exec(e))!==null;){let i=r.index,a=e.charCodeAt(i),o=Lk.get(a);o===void 0?(t+=`${e.substring(n,i)}&#x${Rk(e,i).toString(16)};`,n=Ik.lastIndex+=Number((a&64512)==55296)):(t+=e.substring(n,i)+o,n=i+1)}return t+e.substr(n)}function Bk(e,t){return function(n){let r,i=0,a=``;for(;r=e.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=t.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}const Vk=Bk(/["&\u00A0]/g,new Map([[34,`&quot;`],[38,`&amp;`],[160,`&nbsp;`]])),Hk=Bk(/[&<>\u00A0]/g,new Map([[38,`&amp;`],[60,`&lt;`],[62,`&gt;`],[160,`&nbsp;`]])),Uk=new Map(`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.textPath`.split(`.`).map(e=>[e.toLowerCase(),e])),Wk=new Map(`definitionURL.attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan`.split(`.`).map(e=>[e.toLowerCase(),e])),Gk=new Set([`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`]);function Kk(e){return e.replace(/"/g,`&quot;`)}function qk(e,t){if(!e)return;let n=(t.encodeEntities??t.decodeEntities)===!1?Kk:t.xmlMode||t.encodeEntities!==`utf8`?zk:Vk;return Object.keys(e).map(r=>{let i=e[r]??``;return t.xmlMode===`foreign`&&(r=Wk.get(r)??r),!t.emptyAttrs&&!t.xmlMode&&i===``?r:`${r}="${n(i)}"`}).join(` `)}const Jk=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function Yk(e,t={}){let n=`length`in e?e:[e],r=``;for(let e=0;e<n.length;e++)r+=Xk(n[e],t);return r}function Xk(e,t){switch(e.type){case EE:return Yk(e.children,t);case PE:case OE:return eA(e);case kE:return rA(e);case NE:return nA(e);case AE:case jE:case ME:return $k(e,t);case DE:return tA(e,t)}}const Zk=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignObject`,`desc`,`title`]),Qk=new Set([`svg`,`math`]);function $k(e,t){t.xmlMode===`foreign`&&(e.name=Uk.get(e.name)??e.name,e.parent&&Zk.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&Qk.has(e.name)&&(t={...t,xmlMode:`foreign`});let n=`<${e.name}`,r=qk(e.attribs,t);return r&&(n+=` ${r}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Jk.has(e.name))?(t.xmlMode||(n+=` `),n+=`/>`):(n+=`>`,e.children.length>0&&(n+=Yk(e.children,t)),(t.xmlMode||!Jk.has(e.name))&&(n+=`</${e.name}>`)),n}function eA(e){return`<${e.data}>`}function tA(e,t){let n=e.data||``;return(t.encodeEntities??t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&Gk.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!==`utf8`?zk(n):Hk(n)),n}function nA(e){return`<![CDATA[${e.children[0].data}]]>`}function rA(e){return`<!--${e.data}-->`}function iA(e,t){let n=new $E(void 0,t);return new Fk(n,t).end(e),n.root}var aA=r(n(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g}))(),1);function oA(e,t,n=()=>void 0){if(e===void 0){let e=function(...n){return t(e,...n)};return e}return e>=0?function(...r){return t(oA(e-1,t,n),...r)}:n}function sA(e,t){let n=0,r=e.length;for(;n<r&&e[n]===t;)++n;for(;r>n&&e[r-1]===t;)--r;return n>0||r<e.length?e.substring(n,r):e}function cA(e,t){let n=e.length;for(;n>0&&e[n-1]===t;)--n;return n<e.length?e.substring(0,n):e}function lA(e){return e.replace(/[\s\S]/g,e=>`\\u`+e.charCodeAt().toString(16).padStart(4,`0`))}function uA(e,t){let n=new Map;for(let r=e.length;r-- >0;){let i=e[r],a=t(i);n.set(a,n.has(a)?(0,aA.default)(i,n.get(a),{arrayMerge:dA}):i)}return[...n.values()].reverse()}const dA=(e,t,n)=>[...t];function fA(e,t){for(let n of t){if(!e)return;e=e[n]}return e}function pA(e,t=`a`,n=26){let r=[];do--e,r.push(e%n),e=e/n>>0;while(e>0);let i=t.charCodeAt(0);return r.reverse().map(e=>String.fromCharCode(i+e)).join(``)}const mA=[`I`,`X`,`C`,`M`],hA=[`V`,`L`,`D`];function gA(e){return[...e+``].map(e=>+e).reverse().map((e,t)=>e%5<4?(e<5?``:hA[t])+mA[t].repeat(e%5):mA[t]+(e<5?hA[t]:mA[t+1])).reverse().join(``)}var _A=class{constructor(e,t=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=fA(e,[`longWordSplit`,`wrapCharacters`])||[],this.forceWrapOnLimit=fA(e,[`longWordSplit`,`forceWrapOnLimit`])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,t=!1){this.nextLineAvailableChars<=0&&!t&&this.startNewLine();let n=this.nextLineWords.length===0,r=e.length+(n?0:1);if(r<=this.nextLineAvailableChars||t)this.nextLineWords.push(e),this.nextLineAvailableChars-=r;else{let[t,...r]=this.splitLongWord(e);n||this.startNewLine(),this.nextLineWords.push(t),this.nextLineAvailableChars-=t.length;for(let e of r)this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){let e=this.nextLineWords.pop();if(e!==void 0){let t=this.nextLineWords.length===0,n=e.length+(t?0:1);this.nextLineAvailableChars+=n}return e}concatWord(e,t=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,t),this.wordBreakOpportunity=!1;else{let n=this.popWord();this.pushWord(n?n.concat(e):e,t)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(e=>e.join(` `)).join(`
137
- `)}splitLongWord(e){let t=[],n=0;for(;e.length>this.maxLineLength;){let r=e.substring(0,this.maxLineLength),i=e.substring(this.maxLineLength),a=r.lastIndexOf(this.wrapCharacters[n]);if(a>-1)e=r.substring(a+1)+i,t.push(r.substring(0,a+1));else if(n++,n<this.wrapCharacters.length)e=r+i;else{if(this.forceWrapOnLimit){if(t.push(r),e=i,e.length>this.maxLineLength)continue}else e=r+i;break}}return t.push(e),t}},vA=class{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}},yA=class extends vA{constructor(e,t=null,n=1,r=void 0){super(t),this.leadingLineBreaks=n,this.inlineTextBuilder=new _A(e,r),this.rawText=``,this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}},bA=class extends yA{constructor(e,t=null,{interRowLineBreaks:n=1,leadingLineBreaks:r=2,maxLineLength:i=void 0,maxPrefixLength:a=0,prefixAlign:o=`left`}={}){super(e,t,r,i),this.maxPrefixLength=a,this.prefixAlign=o,this.interRowLineBreaks=n}},xA=class extends yA{constructor(e,t=null,{leadingLineBreaks:n=1,maxLineLength:r=void 0,prefix:i=``}={}){super(e,t,n,r),this.prefix=i}},SA=class extends vA{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}},CA=class extends vA{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}},wA=class extends vA{constructor(e,t=null,n=void 0){super(t),this.inlineTextBuilder=new _A(e,n),this.rawText=``,this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}},TA=class extends vA{constructor(e=null,t){super(e),this.transform=t}};function EA(e){return[...e].map(e=>`\\u`+e.charCodeAt(0).toString(16).padStart(4,`0`)).join(``)}var DA=class{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,``):e.whitespaceCharacters;let t=EA(this.whitespaceChars);if(this.leadingWhitespaceRe=RegExp(`^[${t}]`),this.trailingWhitespaceRe=RegExp(`[${t}]$`),this.allWhitespaceOrEmptyRe=RegExp(`^[${t}]*$`),this.newlineOrNonWhitespaceRe=RegExp(`(\\n|[^\\n${t}])`,`g`),this.newlineOrNonNewlineStringRe=RegExp(`(\\n|[^\\n]+)`,`g`),e.preserveNewlines){let e=RegExp(`\\n|[^\\n${t}]+`,`gm`);this.shrinkWrapAdd=function(t,n,r=(e=>e),i=!1){if(!t)return;let a=n.stashedSpace,o=!1,s=e.exec(t);if(s)for(o=!0,s[0]===`
138
- `?n.startNewLine():a||this.testLeadingWhitespace(t)?n.pushWord(r(s[0]),i):n.concatWord(r(s[0]),i);(s=e.exec(t))!==null;)s[0]===`
139
- `?n.startNewLine():n.pushWord(r(s[0]),i);n.stashedSpace=a&&!o||this.testTrailingWhitespace(t)}}else{let e=RegExp(`[^${t}]+`,`g`);this.shrinkWrapAdd=function(t,n,r=(e=>e),i=!1){if(!t)return;let a=n.stashedSpace,o=!1,s=e.exec(t);if(s)for(o=!0,a||this.testLeadingWhitespace(t)?n.pushWord(r(s[0]),i):n.concatWord(r(s[0]),i);(s=e.exec(t))!==null;)n.pushWord(r(s[0]),i);n.stashedSpace=a&&!o||this.testTrailingWhitespace(t)}}}addLiteral(e,t,n=!0){if(!e)return;let r=t.stashedSpace,i=!1,a=this.newlineOrNonNewlineStringRe.exec(e);if(a)for(i=!0,a[0]===`
140
- `?t.startNewLine():r?t.pushWord(a[0],n):t.concatWord(a[0],n);(a=this.newlineOrNonNewlineStringRe.exec(e))!==null;)a[0]===`
141
- `?t.startNewLine():t.pushWord(a[0],n);t.stashedSpace=r&&!i}testLeadingWhitespace(e){return this.leadingWhitespaceRe.test(e)}testTrailingWhitespace(e){return this.trailingWhitespaceRe.test(e)}testContainsWords(e){return!this.allWhitespaceOrEmptyRe.test(e)}countNewlinesNoWords(e){this.newlineOrNonWhitespaceRe.lastIndex=0;let t=0,n;for(;(n=this.newlineOrNonWhitespaceRe.exec(e))!==null;)if(n[0]===`
142
- `)t++;else return 0;return t}},OA=class{constructor(e,t,n=void 0){this.options=e,this.picker=t,this.metadata=n,this.whitespaceProcessor=new DA(e),this._stackItem=new yA(e),this._wordTransformer=void 0}pushWordTransform(e){this._wordTransformer=new TA(this._wordTransformer,e)}popWordTransform(){if(!this._wordTransformer)return;let e=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,e}startNoWrap(){this._stackItem.isNoWrap=!0}stopNoWrap(){this._stackItem.isNoWrap=!1}_getCombinedWordTransformer(){let e=this._wordTransformer?(e=>jA(e,this._wordTransformer)):void 0,t=this.options.encodeCharacters;return e?t?n=>t(e(n)):e:t}_popStackItem(){let e=this._stackItem;return this._stackItem=e.next,e}addLineBreak(){(this._stackItem instanceof yA||this._stackItem instanceof xA||this._stackItem instanceof wA)&&(this._stackItem.isPre?this._stackItem.rawText+=`
143
- `:this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof yA||this._stackItem instanceof xA||this._stackItem instanceof wA)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof yA||this._stackItem instanceof xA||this._stackItem instanceof wA){if(this._stackItem.isPre){this._stackItem.rawText+=e;return}if(!(e.length===0||this._stackItem.stashedLineBreaks&&!this.whitespaceProcessor.testContainsWords(e))){if(this.options.preserveNewlines){let t=this.whitespaceProcessor.countNewlinesNoWords(e);if(t>0){this._stackItem.inlineTextBuilder.startNewLine(t);return}}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(e,this._stackItem.inlineTextBuilder,t?void 0:this._getCombinedWordTransformer(),this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}}addLiteral(e){if((this._stackItem instanceof yA||this._stackItem instanceof xA||this._stackItem instanceof wA)&&e.length!==0){if(this._stackItem.isPre){this._stackItem.rawText+=e;return}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.addLiteral(e,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}openBlock({leadingLineBreaks:e=1,reservedLineLength:t=0,isPre:n=!1}={}){let r=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-t);this._stackItem=new yA(this.options,this._stackItem,e,r),n&&(this._stackItem.isPre=!0)}closeBlock({trailingLineBreaks:e=1,blockTransform:t=void 0}={}){let n=this._popStackItem(),r=t?t(kA(n)):kA(n);AA(this._stackItem,r,n.leadingLineBreaks,Math.max(n.stashedLineBreaks,e))}openList({maxPrefixLength:e=0,prefixAlign:t=`left`,interRowLineBreaks:n=1,leadingLineBreaks:r=2}={}){this._stackItem=new bA(this.options,this._stackItem,{interRowLineBreaks:n,leadingLineBreaks:r,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:e,prefixAlign:t})}openListItem({prefix:e=``}={}){if(!(this._stackItem instanceof bA))throw Error(`Can't add a list item to something that is not a list! Check the formatter.`);let t=this._stackItem,n=Math.max(e.length,t.maxPrefixLength),r=Math.max(20,t.inlineTextBuilder.maxLineLength-n);this._stackItem=new xA(this.options,t,{prefix:e,maxLineLength:r,leadingLineBreaks:t.interRowLineBreaks})}closeListItem(){let e=this._popStackItem(),t=e.next,n=Math.max(e.prefix.length,t.maxPrefixLength),r=`
144
- `+` `.repeat(n);AA(t,(t.prefixAlign===`right`?e.prefix.padStart(n):e.prefix.padEnd(n))+kA(e).replace(/\n/g,r),e.leadingLineBreaks,Math.max(e.stashedLineBreaks,t.interRowLineBreaks))}closeList({trailingLineBreaks:e=2}={}){let t=this._popStackItem(),n=kA(t);n&&AA(this._stackItem,n,t.leadingLineBreaks,e)}openTable(){this._stackItem=new SA(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof SA))throw Error(`Can't add a table row to something that is not a table! Check the formatter.`);this._stackItem=new CA(this._stackItem)}openTableCell({maxColumnWidth:e=void 0}={}){if(!(this._stackItem instanceof CA))throw Error(`Can't add a table cell to something that is not a table row! Check the formatter.`);this._stackItem=new wA(this.options,this._stackItem,e)}closeTableCell({colspan:e=1,rowspan:t=1}={}){let n=this._popStackItem(),r=sA(kA(n),`
145
- `);n.next.cells.push({colspan:e,rowspan:t,text:r})}closeTableRow(){let e=this._popStackItem();e.next.rows.push(e.cells)}closeTable({tableToString:e,leadingLineBreaks:t=2,trailingLineBreaks:n=2}){let r=e(this._popStackItem().rows);r&&AA(this._stackItem,r,t,n)}toString(){return kA(this._stackItem.getRoot())}};function kA(e){if(!(e instanceof yA||e instanceof xA||e instanceof wA))throw Error(`Only blocks, list items and table cells can be requested for text contents.`);return e.inlineTextBuilder.isEmpty()?e.rawText:e.rawText+e.inlineTextBuilder.toString()}function AA(e,t,n,r){if(!(e instanceof yA||e instanceof xA||e instanceof wA))throw Error(`Only blocks, list items and table cells can contain text.`);let i=kA(e),a=Math.max(e.stashedLineBreaks,n);e.inlineTextBuilder.clear(),i?e.rawText=i+`
146
- `.repeat(a)+t:(e.rawText=t,e.leadingLineBreaks=a),e.stashedLineBreaks=r}function jA(e,t){return t?jA(t.transform(e),t.next):e}function MA(e={}){let t=e.selectors.filter(e=>!e.format);if(t.length)throw Error(`Following selectors have no specified format: `+t.map(e=>`\`${e.selector}\``).join(`, `));let n=new wO(e.selectors.map(e=>[e.selector,e])).build(KO);typeof e.encodeCharacters!=`function`&&(e.encodeCharacters=IA(e.encodeCharacters));let r=new wO(e.baseElements.selectors.map((e,t)=>[e,t+1])).build(KO);function i(t){return PA(t,e,r)}let a=oA(e.limits.maxDepth,FA,function(t,n){n.addInline(e.limits.ellipsis||``)});return function(t,r=void 0){return NA(t,r,e,n,i,a)}}function NA(e,t,n,r,i,a){let o=n.limits.maxInputLength;o&&e&&e.length>o&&(console.warn(`Input length ${e.length} is above allowed limit of ${o}. Truncating without ellipsis.`),e=e.substring(0,o));let s=i(iA(e,{decodeEntities:n.decodeEntities}).children),c=new OA(n,r,t);return a(s,c),c.toString()}function PA(e,t,n){let r=[];function i(e,i){i=i.slice(0,t.limits.maxChildNodes);for(let a of i){if(a.type!==`tag`)continue;let i=n.pick1(a);if(i>0?r.push({selectorIndex:i,element:a}):a.children&&e(a.children),r.length>=t.limits.maxBaseElements)return}}return oA(t.limits.maxDepth,i)(e),t.baseElements.orderBy!==`occurrence`&&r.sort((e,t)=>e.selectorIndex-t.selectorIndex),t.baseElements.returnDomByDefault&&r.length===0?e:r.map(e=>e.element)}function FA(e,t,n){if(!t)return;let r=n.options;t.length>r.limits.maxChildNodes&&(t=t.slice(0,r.limits.maxChildNodes),t.push({data:r.limits.ellipsis,type:`text`}));for(let i of t)switch(i.type){case`text`:n.addInline(i.data);break;case`tag`:{let t=n.picker.pick1(i),a=r.formatters[t.format];a(i,e,n,t.options||{});break}}}function IA(e){if(!e||Object.keys(e).length===0)return;let t=Object.entries(e).filter(([,e])=>e!==!1),n=new RegExp(t.map(([e])=>`(${lA([...e][0])})`).join(`|`),`g`),r=t.map(([,e])=>e),i=(e,...t)=>r[t.findIndex(e=>e)];return e=>e.replace(n,i)}function LA(e,t,n,r){}function RA(e,t,n,r){n.addLiteral(r.string||``)}function zA(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.addLiteral(r.string||``),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function BA(e,t,n,r){t(e.children,n)}function VA(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function HA(e){let t=e.attribs&&e.attribs.length?` `+Object.entries(e.attribs).map(([e,t])=>t===``?e:`${e}=${t.replace(/"/g,`&quot;`)}`).join(` `):``;return`<${e.name}${t}>`}function UA(e){return`</${e.name}>`}function WA(e,t,n,r){n.startNoWrap(),n.addLiteral(HA(e)),n.stopNoWrap(),t(e.children,n),n.startNoWrap(),n.addLiteral(UA(e)),n.stopNoWrap()}function GA(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(HA(e)),n.stopNoWrap(),t(e.children,n),n.startNoWrap(),n.addLiteral(UA(e)),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function KA(e,t,n,r){n.startNoWrap(),n.addLiteral(Yk(e,{decodeEntities:n.options.decodeEntities})),n.stopNoWrap()}function qA(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(Yk(e,{decodeEntities:n.options.decodeEntities})),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function JA(e,t,n,r){n.addLiteral(r.prefix||``),t(e.children,n),n.addLiteral(r.suffix||``)}var YA=Object.freeze({__proto__:null,block:VA,blockHtml:qA,blockString:zA,blockTag:GA,inline:BA,inlineHtml:KA,inlineString:RA,inlineSurround:JA,inlineTag:WA,skip:LA});function XA(e,t){return e[t]||(e[t]=[]),e[t]}function ZA(e,t=0){for(;e[t];)t++;return t}function QA(e,t){for(let n=0;n<t;n++){let t=XA(e,n);for(let r=0;r<n;r++){let i=XA(e,r);if(t[r]||i[n]){let e=t[r];t[r]=i[n],i[n]=e}}}}function $A(e,t,n,r){for(let i=0;i<e.rowspan;i++){let a=XA(t,n+i);for(let t=0;t<e.colspan;t++)a[r+t]=e}}function ej(e,t){return e[t]===void 0&&(e[t]=t===0?0:1+ej(e,t-1)),e[t]}function tj(e,t,n,r){e[t+n]=Math.max(ej(e,t+n),ej(e,t)+r)}function nj(e,t,n){let r=[],i=0,a=e.length,o=[0];for(let n=0;n<a;n++){let a=XA(r,n),s=e[n],c=0;for(let e=0;e<s.length;e++){let i=s[e];c=ZA(a,c),$A(i,r,n,c),c+=i.colspan,i.lines=i.text.split(`
147
- `);let l=i.lines.length;tj(o,n,i.rowspan,l+t)}i=a.length>i?a.length:i}QA(r,a>i?a:i);let s=[],c=[0];for(let e=0;e<i;e++){let t=0,i,l=Math.min(a,r[e].length);for(;t<l;)if(i=r[e][t],i){if(!i.rendered){let r=0;for(let n=0;n<i.lines.length;n++){let a=i.lines[n],l=o[t]+n;s[l]=(s[l]||``).padEnd(c[e])+a,r=a.length>r?a.length:r}tj(c,e,i.colspan,r+n),i.rendered=!0}t+=i.rowspan}else{let e=o[t];s[e]=s[e]||``,t++}}return s.join(`
148
- `)}function rj(e,t,n,r){n.addLineBreak()}function ij(e,t,n,r){n.addWordBreakOpportunity()}function aj(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.addInline(`-`.repeat(r.length||n.options.wordwrap||40)),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function oj(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function sj(e,t,n,r){n.openBlock({isPre:!0,leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function cj(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),r.uppercase===!1?t(e.children,n):(n.pushWordTransform(e=>e.toUpperCase()),t(e.children,n),n.popWordTransform()),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function lj(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2,reservedLineLength:2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2,blockTransform:e=>(r.trimEmptyLines===!1?e:sA(e,`
149
- `)).split(`
150
- `).map(e=>`> `+e).join(`
151
- `)})}function uj(e,t){if(!t)return e;let n=typeof t[0]==`string`?t[0]:`[`,r=typeof t[1]==`string`?t[1]:`]`;return n+e+r}function dj(e,t,n,r,i){let a=typeof t==`function`?t(e,r,i):e;return a[0]===`/`&&n?cA(n,`/`)+a:a}function fj(e,t,n,r){let i=e.attribs||{},a=i.alt?i.alt:``,o=i.src?dj(i.src,r.pathRewrite,r.baseUrl,n.metadata,e):``,s=o?a?a+` `+uj(o,r.linkBrackets):uj(o,r.linkBrackets):a;n.addInline(s,{noWordTransform:!0})}function pj(e,t,n,r){function i(){if(r.ignoreHref||!e.attribs||!e.attribs.href)return``;let t=e.attribs.href.replace(/^mailto:/,``);return r.noAnchorUrl&&t[0]===`#`?``:(t=dj(t,r.pathRewrite,r.baseUrl,n.metadata,e),t)}let a=i();if(!a)t(e.children,n);else{let i=``;n.pushWordTransform(e=>(e&&(i+=e),e)),t(e.children,n),n.popWordTransform(),r.hideLinkHrefIfSameAsText&&a===i||n.addInline(i?` `+uj(a,r.linkBrackets):a,{noWordTransform:!0})}}function mj(e,t,n,r,i){let a=fA(e,[`parent`,`name`])===`li`,o=0,s=(e.children||[]).filter(e=>e.type!==`text`||!/^\s*$/.test(e.data)).map(function(e){if(e.name!==`li`)return{node:e,prefix:``};let t=a?i().trimStart():i();return t.length>o&&(o=t.length),{node:e,prefix:t}});if(s.length){n.openList({interRowLineBreaks:1,leadingLineBreaks:a?1:r.leadingLineBreaks||2,maxPrefixLength:o,prefixAlign:`left`});for(let{node:e,prefix:r}of s)n.openListItem({prefix:r}),t([e],n),n.closeListItem();n.closeList({trailingLineBreaks:a?1:r.trailingLineBreaks||2})}}function hj(e,t,n,r){let i=r.itemPrefix||` * `;return mj(e,t,n,r,()=>i)}function gj(e,t,n,r){let i=Number(e.attribs.start||`1`),a=_j(e.attribs.type);return mj(e,t,n,r,()=>` `+a(i++)+`. `)}function _j(e=`1`){switch(e){case`a`:return e=>pA(e,`a`);case`A`:return e=>pA(e,`A`);case`i`:return e=>gA(e).toLowerCase();case`I`:return e=>gA(e);case`1`:default:return e=>e.toString()}}function vj(e){let t=[],n=[];for(let r of e)r.startsWith(`.`)?t.push(r.substring(1)):r.startsWith(`#`)&&n.push(r.substring(1));return{classes:t,ids:n}}function yj(e,t){if(t===!0)return!0;if(!e)return!1;let{classes:n,ids:r}=vj(t),i=(e.class||``).split(` `),a=(e.id||``).split(` `);return i.some(e=>n.includes(e))||a.some(e=>r.includes(e))}function bj(e,t,n,r){return yj(e.attribs,n.options.tables)?Sj(e,t,n,r):xj(e,t,n,r)}function xj(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks})}function Sj(e,t,n,r){n.openTable(),e.children.forEach(a),n.closeTable({tableToString:e=>nj(e,r.rowSpacing??0,r.colSpacing??3),leadingLineBreaks:r.leadingLineBreaks,trailingLineBreaks:r.trailingLineBreaks});function i(e){let i=+fA(e,[`attribs`,`colspan`])||1,a=+fA(e,[`attribs`,`rowspan`])||1;n.openTableCell({maxColumnWidth:r.maxColumnWidth}),t(e.children,n),n.closeTableCell({colspan:i,rowspan:a})}function a(e){if(e.type!==`tag`)return;let t=r.uppercaseHeaderCells===!1?i:e=>{n.pushWordTransform(e=>e.toUpperCase()),i(e),n.popWordTransform()};switch(e.name){case`thead`:case`tbody`:case`tfoot`:case`center`:e.children.forEach(a);return;case`tr`:n.openTableRow();for(let n of e.children)if(n.type===`tag`)switch(n.name){case`th`:t(n);break;case`td`:i(n);break}n.closeTableRow();break}}}var Cj=Object.freeze({__proto__:null,anchor:pj,blockquote:lj,dataTable:Sj,heading:cj,horizontalLine:aj,image:fj,lineBreak:rj,orderedList:gj,paragraph:oj,pre:sj,table:bj,unorderedList:hj,wbr:ij});const wj={baseElements:{selectors:[`body`],orderBy:`selectors`,returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:`...`,maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:`*`,format:`inline`},{selector:`a`,format:`anchor`,options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:[`[`,`]`],noAnchorUrl:!0}},{selector:`article`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`aside`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`blockquote`,format:`blockquote`,options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:`br`,format:`lineBreak`},{selector:`div`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`footer`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`form`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`h1`,format:`heading`,options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:`h2`,format:`heading`,options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:`h3`,format:`heading`,options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:`h4`,format:`heading`,options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:`h5`,format:`heading`,options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:`h6`,format:`heading`,options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:`header`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`hr`,format:`horizontalLine`,options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:`img`,format:`image`,options:{baseUrl:null,linkBrackets:[`[`,`]`]}},{selector:`main`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`nav`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`ol`,format:`orderedList`,options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`p`,format:`paragraph`,options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`pre`,format:`pre`,options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`section`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`table`,format:`table`,options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:`ul`,format:`unorderedList`,options:{itemPrefix:` * `,leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`wbr`,format:`wbr`}],tables:[],whitespaceCharacters:` \r
152
- \f​`,wordwrap:80},Tj=(e,t,n)=>[...e,...t],Ej=(e,t,n)=>[...t],Dj=(e,t,n)=>e.some(e=>typeof e==`object`)?Tj(e,t):Ej(e,t);function Oj(e={}){return e=(0,aA.default)(wj,e,{arrayMerge:Ej,customMerge:e=>e===`selectors`?Dj:void 0}),e.formatters=Object.assign({},YA,Cj,e.formatters),e.selectors=uA(e.selectors,(e=>e.selector)),Aj(e),MA(e)}function kj(e,t={},n=void 0){return Oj(t)(e,n)}function Aj(e){if(e.tags){let t=Object.entries(e.tags).map(([e,t])=>({...t,selector:e||`*`}));e.selectors.push(...t),e.selectors=uA(e.selectors,(e=>e.selector))}function t(e,t,n){let r=t.pop();for(let n of t){let t=e[n];t||(t={},e[n]=t),e=t}e[r]=n}if(e.baseElement){let n=e.baseElement;t(e,[`baseElements`,`selectors`],Array.isArray(n)?n:[n])}e.returnDomByDefault!==void 0&&t(e,[`baseElements`,`returnDomByDefault`],e.returnDomByDefault);for(let n of e.selectors)n.format===`anchor`&&fA(n,[`options`,`noLinkBrackets`])&&t(n,[`options`,`linkBrackets`],!1)}
153
- /**
154
- * @license React
155
- * react-jsx-runtime.production.js
156
- *
157
- * Copyright (c) Meta Platforms, Inc. and affiliates.
158
- *
159
- * This source code is licensed under the MIT license found in the
160
- * LICENSE file in the root directory of this source tree.
161
- */
162
- var jj=n((e=>{var t=Symbol.for(`react.transitional.element`);function n(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.jsx=n})),Mj=n((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case D:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===D)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function o(){var e=A.A;return e===null?null:e.getOwner()}function s(){return Error(`react-stack-top-frame`)}function c(e){if(ee.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function l(e,t){function n(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function u(){var e=t(this.type);return j[e]||(j[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function d(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:u}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,n,i,a,s,u){var f=n.children;if(f!==void 0)if(a)if(te(f)){for(a=0;a<f.length;a++)p(f[a]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(ee.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});a=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,oe[f+a]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
163
- let props = %s;
164
- <%s {...props} />
165
- React keys must be passed directly to JSX without using spread:
166
- let props = %s;
167
- <%s key={someKey} {...props} />`,a,f,m,f),oe[f+a]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),c(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&l(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),d(e,f,i,o(),s,u)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===D&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=a(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),E=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),k=Symbol.for(`react.client.reference`),A=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=Object.prototype.hasOwnProperty,te=Array.isArray,ne=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var re,j={},ie=h.react_stack_bottom_frame.bind(h,s)(),ae=ne(i(s)),oe={};e.Fragment=v,e.jsx=function(e,t,n){var r=1e4>A.recentlyCreatedOwnerStacks++;return f(e,t,n,!1,r?Error(`react-stack-top-frame`):ie,r?ne(i(e)):ae)},e.jsxs=function(e,t,n){var r=1e4>A.recentlyCreatedOwnerStacks++;return f(e,t,n,!0,r?Error(`react-stack-top-frame`):ie,r?ne(i(e)):ae)}})()})),Nj=n(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=jj():t.exports=Mj()})),Pj=a(),Fj=Nj();function Ij(e,t){if(Array.isArray(e))return e.map(e=>Ij(e,t));if(typeof e==`object`){if(e.type===`group`)return{...e,contents:Ij(e.contents,t),expandedStates:Ij(e.expandedStates,t)};if(`contents`in e)return{...e,contents:Ij(e.contents,t)};if(`parts`in e)return{...e,parts:Ij(e.parts,t)};if(e.type===`if-break`)return{...e,breakContents:Ij(e.breakContents,t),flatContents:Ij(e.flatContents,t)}}return t(e)}const Lj={...$f};if(Lj.printers){let e=Lj.printers.html.print;Lj.printers.html.print=(t,n,r,i)=>{let a=t.getNode(),o=e(t,n,r,i);return a.type===`ieConditionalComment`?Ij(o,e=>typeof e==`object`&&e.type===`line`?e.soft?``:` `:e):o}}const Rj={endOfLine:`lf`,tabWidth:2,plugins:[Lj],bracketSameLine:!0,parser:`html`},zj=(e,t={})=>xE(e.replaceAll(`\0`,``),{...Rj,...t}),Bj=[{selector:`img`,format:`skip`},{selector:`[data-skip-in-text=true]`,format:`skip`},{selector:`a`,options:{linkBrackets:!1,hideLinkHrefIfSameAsText:!0}}];function Vj(e,t){return kj(e,{selectors:Bj,wordwrap:!1,...t})}const Hj=async e=>{let t=``,n=new TextDecoder(`utf-8`);if(`pipeTo`in e){let r=new WritableStream({write(e){t+=n.decode(e,{stream:!0})},close(){t+=n.decode()}});await e.pipeTo(r)}else{let r=new u({write(e,r,i){t+=n.decode(e,{stream:!0}),i()},final(e){t+=n.decode(),e()}});e.pipe(r),await new Promise((e,t)=>{r.on(`error`,t),r.on(`close`,()=>{e()})})}return t},Uj=async(t,n)=>{let r=(0,Fj.jsx)(Pj.Suspense,{children:t}),i=await import(`./server.node-D_9RYjm9.mjs`).then(e(1)).then(e=>e.default),a;if(Object.hasOwn(i,`renderToReadableStream`)&&typeof WritableStream<`u`?a=await Hj(await i.renderToReadableStream(r,{progressiveChunkSize:1/0})):await new Promise((e,t)=>{let n=i.renderToPipeableStream(r,{async onAllReady(){a=await Hj(n),e()},onError(e){t(e)},progressiveChunkSize:1/0})}),n?.plainText)return Vj(a,n.htmlToTextOptions);let o=`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">${a.replace(/<!DOCTYPE.*?>/,``)}`;return n?.pretty?zj(o):o};var Wj=n(((e,n)=>{let r=t(`url`),i=1800;n.exports=class{constructor(e){this.options=e||{},this.cookies=[]}set(e,t){let n=r.parse(t||``),a=this.parse(e),o;return a.domain?(o=a.domain.replace(/^\./,``),(n.hostname.length<o.length||(`.`+n.hostname).substr(-o.length+1)!==`.`+o)&&(a.domain=n.hostname)):a.domain=n.hostname,a.path||=this.getPath(n.pathname),a.expires||=new Date(Date.now()+(Number(this.options.sessionTimeout||i)||i)*1e3),this.add(a)}get(e){return this.list(e).map(e=>e.name+`=`+e.value).join(`; `)}list(e){let t=[],n,r;for(n=this.cookies.length-1;n>=0;n--){if(r=this.cookies[n],this.isExpired(r)){this.cookies.splice(n,n);continue}this.match(r,e)&&t.unshift(r)}return t}parse(e){let t={};return(e||``).toString().split(`;`).forEach(e=>{let n=e.split(`=`),r=n.shift().trim().toLowerCase(),i=n.join(`=`).trim(),a;if(r)switch(r){case`expires`:i=new Date(i),i.toString()!==`Invalid Date`&&(t.expires=i);break;case`path`:t.path=i;break;case`domain`:a=i.toLowerCase(),a.length&&a.charAt(0)!==`.`&&(a=`.`+a),t.domain=a;break;case`max-age`:t.expires=new Date(Date.now()+(Number(i)||0)*1e3);break;case`secure`:t.secure=!0;break;case`httponly`:t.httponly=!0;break;default:t.name||(t.name=r,t.value=i)}}),t}match(e,t){let n=r.parse(t||``);return!(n.hostname!==e.domain&&(e.domain.charAt(0)!==`.`||(`.`+n.hostname).substr(-e.domain.length)!==e.domain)||this.getPath(n.pathname).substr(0,e.path.length)!==e.path||e.secure&&n.protocol!==`https:`)}add(e){let t,n;if(!e||!e.name)return!1;for(t=0,n=this.cookies.length;t<n;t++)if(this.compare(this.cookies[t],e))return this.isExpired(e)?(this.cookies.splice(t,1),!1):(this.cookies[t]=e,!0);return this.isExpired(e)||this.cookies.push(e),!0}compare(e,t){return e.name===t.name&&e.path===t.path&&e.domain===t.domain&&e.secure===t.secure&&e.httponly===e.httponly}isExpired(e){return e.expires&&e.expires<new Date||!e.value}getPath(e){let t=(e||`/`).split(`/`);return t.pop(),t=t.join(`/`).trim(),t.charAt(0)!==`/`&&(t=`/`+t),t.substr(-1)!==`/`&&(t+=`/`),t}}})),Gj=n(((e,t)=>{t.exports={name:`nodemailer`,version:`7.0.10`,description:`Easy as cake e-mail sending from your Node.js applications`,main:`lib/nodemailer.js`,scripts:{test:`node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js`,"test:coverage":`c8 node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js`,format:`prettier --write "**/*.{js,json,md}"`,"format:check":`prettier --check "**/*.{js,json,md}"`,lint:`eslint .`,"lint:fix":`eslint . --fix`,update:`rm -rf node_modules/ package-lock.json && ncu -u && npm install`},repository:{type:`git`,url:`https://github.com/nodemailer/nodemailer.git`},keywords:[`Nodemailer`],author:`Andris Reinman`,license:`MIT-0`,bugs:{url:`https://github.com/nodemailer/nodemailer/issues`},homepage:`https://nodemailer.com/`,devDependencies:{"@aws-sdk/client-sesv2":`3.914.0`,bunyan:`1.8.15`,c8:`10.1.3`,eslint:`9.38.0`,"eslint-config-prettier":`10.1.8`,globals:`16.4.0`,libbase64:`1.3.0`,libmime:`5.3.7`,libqp:`2.1.1`,"nodemailer-ntlm-auth":`1.0.4`,prettier:`3.6.2`,proxy:`1.0.2`,"proxy-test-server":`1.0.0`,"smtp-server":`3.15.0`},engines:{node:`>=6.0.0`}}})),Kj=n(((e,n)=>{let r=t(`http`),i=t(`https`),a=t(`url`),o=t(`zlib`),s=t(`stream`).PassThrough,c=Wj(),l=Gj(),u=t(`net`);n.exports=function(e,t){return d(e,t)},n.exports.Cookies=c;function d(e,t){t||={},t.fetchRes=t.fetchRes||new s,t.cookies=t.cookies||new c,t.redirects=t.redirects||0,t.maxRedirects=isNaN(t.maxRedirects)?5:t.maxRedirects,t.cookie&&=([].concat(t.cookie||[]).forEach(n=>{t.cookies.set(n,e)}),!1);let n=t.fetchRes,f=a.parse(e),p=(t.method||``).toString().trim().toUpperCase()||`GET`,m=!1,h,g,_=f.protocol===`https:`?i:r,v={"accept-encoding":`gzip,deflate`,"user-agent":`nodemailer/`+l.version};if(Object.keys(t.headers||{}).forEach(e=>{v[e.toLowerCase().trim()]=t.headers[e]}),t.userAgent&&(v[`user-agent`]=t.userAgent),f.auth&&(v.Authorization=`Basic `+Buffer.from(f.auth).toString(`base64`)),(h=t.cookies.get(e))&&(v.cookie=h),t.body){if(t.contentType!==!1&&(v[`Content-Type`]=t.contentType||`application/x-www-form-urlencoded`),typeof t.body.pipe==`function`)v[`Transfer-Encoding`]=`chunked`,g=t.body,g.on(`error`,t=>{m||(m=!0,t.type=`FETCH`,t.sourceUrl=e,n.emit(`error`,t))});else{if(t.body instanceof Buffer)g=t.body;else if(typeof t.body==`object`)try{g=Buffer.from(Object.keys(t.body).map(e=>{let n=t.body[e].toString().trim();return encodeURIComponent(e)+`=`+encodeURIComponent(n)}).join(`&`))}catch(t){if(m)return;m=!0,t.type=`FETCH`,t.sourceUrl=e,n.emit(`error`,t);return}else g=Buffer.from(t.body.toString().trim());v[`Content-Type`]=t.contentType||`application/x-www-form-urlencoded`,v[`Content-Length`]=g.length}p=(t.method||``).toString().trim().toUpperCase()||`POST`}let y,b={method:p,host:f.hostname,path:f.path,port:f.port?f.port:f.protocol===`https:`?443:80,headers:v,rejectUnauthorized:!1,agent:!1};t.tls&&Object.keys(t.tls).forEach(e=>{b[e]=t.tls[e]}),f.protocol===`https:`&&f.hostname&&f.hostname!==b.host&&!u.isIP(f.hostname)&&!b.servername&&(b.servername=f.hostname);try{y=_.request(b)}catch(t){return m=!0,setImmediate(()=>{t.type=`FETCH`,t.sourceUrl=e,n.emit(`error`,t)}),n}return t.timeout&&y.setTimeout(t.timeout,()=>{if(m)return;m=!0,y.abort();let t=Error(`Request Timeout`);t.type=`FETCH`,t.sourceUrl=e,n.emit(`error`,t)}),y.on(`error`,t=>{m||(m=!0,t.type=`FETCH`,t.sourceUrl=e,n.emit(`error`,t))}),y.on(`response`,r=>{let i;if(!m){switch(r.headers[`content-encoding`]){case`gzip`:case`deflate`:i=o.createUnzip();break}if(r.headers[`set-cookie`]&&[].concat(r.headers[`set-cookie`]||[]).forEach(n=>{t.cookies.set(n,e)}),[301,302,303,307,308].includes(r.statusCode)&&r.headers.location){if(t.redirects++,t.redirects>t.maxRedirects){m=!0;let t=Error(`Maximum redirect count exceeded`);t.type=`FETCH`,t.sourceUrl=e,n.emit(`error`,t),y.abort();return}return t.method=`GET`,t.body=!1,d(a.resolve(e,r.headers.location),t)}if(n.statusCode=r.statusCode,n.headers=r.headers,r.statusCode>=300&&!t.allowErrorResponse){m=!0;let t=Error(`Invalid status code `+r.statusCode);t.type=`FETCH`,t.sourceUrl=e,n.emit(`error`,t),y.abort();return}r.on(`error`,t=>{m||(m=!0,t.type=`FETCH`,t.sourceUrl=e,n.emit(`error`,t),y.abort())}),i?(r.pipe(i).pipe(n),i.on(`error`,t=>{m||(m=!0,t.type=`FETCH`,t.sourceUrl=e,n.emit(`error`,t),y.abort())})):r.pipe(n)}}),setImmediate(()=>{if(g)try{if(typeof g.pipe==`function`)return g.pipe(y);y.write(g)}catch(t){m=!0,t.type=`FETCH`,t.sourceUrl=e,n.emit(`error`,t);return}y.end()}),n}})),qj=n(((e,n)=>{let r=t(`url`),i=t(`util`),a=t(`fs`),o=Kj(),s=t(`dns`),c=t(`net`),l=t(`os`),u=300*1e3,d=1e3,f=0;n.exports._lastCacheCleanup=()=>f,n.exports._resetCacheCleanup=()=>{f=0};let p;try{p=l.networkInterfaces()}catch{}n.exports.networkInterfaces=p;let m=(e,t)=>{let r=n.exports.networkInterfaces;return r?Object.keys(r).map(e=>r[e]).reduce((e,t)=>e.concat(t),[]).filter(e=>!e.internal||t).filter(t=>t.family===`IPv`+e||t.family===e).length>0:!0},h=(e,t,n,r)=>{if(n||={},!m(e,n.allowInternalNetworkInterfaces))return r(null,[]);(s.Resolver?new s.Resolver(n):s)[`resolve`+e](t,(e,t)=>{if(e){switch(e.code){case s.NODATA:case s.NOTFOUND:case s.NOTIMP:case s.SERVFAIL:case s.CONNREFUSED:case s.REFUSED:case`EAI_AGAIN`:return r(null,[])}return r(e)}return r(null,Array.isArray(t)?t:[].concat(t||[]))})},g=n.exports.dnsCache=new Map,_=(e,t)=>e?Object.assign({servername:e.servername,host:!e.addresses||!e.addresses.length?null:e.addresses.length===1?e.addresses[0]:e.addresses[Math.floor(Math.random()*e.addresses.length)]},t||{}):Object.assign({},t||{});n.exports.resolveHostname=(e,t)=>{if(e||={},!e.host&&e.servername&&(e.host=e.servername),!e.host||c.isIP(e.host))return t(null,_({addresses:[e.host],servername:e.servername||!1},{cached:!1}));let n;if(g.has(e.host)){n=g.get(e.host);let r=Date.now();if(r-f>3e4){f=r;for(let[e,t]of g.entries())t.expires&&t.expires<r&&g.delete(e);if(g.size>d){let e=Math.floor(d*.1);Array.from(g.keys()).slice(0,e).forEach(e=>g.delete(e))}}if(!n.expires||n.expires>=r)return t(null,_(n.value,{cached:!0}))}h(4,e.host,e,(r,i)=>{if(r)return n?(g.set(e.host,{value:n.value,expires:Date.now()+(e.dnsTtl||u)}),t(null,_(n.value,{cached:!0,error:r}))):t(r);if(i&&i.length){let n={addresses:i,servername:e.servername||e.host};return g.set(e.host,{value:n,expires:Date.now()+(e.dnsTtl||u)}),t(null,_(n,{cached:!1}))}h(6,e.host,e,(r,i)=>{if(r)return n?(g.set(e.host,{value:n.value,expires:Date.now()+(e.dnsTtl||u)}),t(null,_(n.value,{cached:!0,error:r}))):t(r);if(i&&i.length){let n={addresses:i,servername:e.servername||e.host};return g.set(e.host,{value:n,expires:Date.now()+(e.dnsTtl||u)}),t(null,_(n,{cached:!1}))}try{s.lookup(e.host,{all:!0},(r,i)=>{if(r)return n?(g.set(e.host,{value:n.value,expires:Date.now()+(e.dnsTtl||u)}),t(null,_(n.value,{cached:!0,error:r}))):t(r);let a=i?i.filter(e=>m(e.family)).map(e=>e.address).shift():!1;if(i&&i.length&&!a&&console.warn(`Failed to resolve IPv${i[0].family} addresses with current network`),!a&&n)return t(null,_(n.value,{cached:!0}));let o={addresses:a?[a]:[e.host],servername:e.servername||e.host};return g.set(e.host,{value:o,expires:Date.now()+(e.dnsTtl||u)}),t(null,_(o,{cached:!1}))})}catch{return n?(g.set(e.host,{value:n.value,expires:Date.now()+(e.dnsTtl||u)}),t(null,_(n.value,{cached:!0,error:r}))):t(r)}})})},n.exports.parseConnectionUrl=e=>{e||=``;let t={};return[r.parse(e,!0)].forEach(e=>{let n;switch(e.protocol){case`smtp:`:t.secure=!1;break;case`smtps:`:t.secure=!0;break;case`direct:`:t.direct=!0;break}!isNaN(e.port)&&Number(e.port)&&(t.port=Number(e.port)),e.hostname&&(t.host=e.hostname),e.auth&&(n=e.auth.split(`:`),t.auth||={},t.auth.user=n.shift(),t.auth.pass=n.join(`:`)),Object.keys(e.query||{}).forEach(n=>{let r=t,i=n,a=e.query[n];switch(isNaN(a)||(a=Number(a)),a){case`true`:a=!0;break;case`false`:a=!1;break}if(n.indexOf(`tls.`)===0)i=n.substr(4),t.tls||={},r=t.tls;else if(n.indexOf(`.`)>=0)return;i in r||(r[i]=a)})}),t},n.exports._logFunc=(e,t,n,r,i,...a)=>{let o={};Object.keys(n||{}).forEach(e=>{e!==`level`&&(o[e]=n[e])}),Object.keys(r||{}).forEach(e=>{e!==`level`&&(o[e]=r[e])}),e[t](o,i,...a)},n.exports.getLogger=(e,t)=>{e||={};let r={},i=[`trace`,`debug`,`info`,`warn`,`error`,`fatal`];if(!e.logger)return i.forEach(e=>{r[e]=()=>!1}),r;let a=e.logger;return e.logger===!0&&(a=y(i)),i.forEach(e=>{r[e]=(r,i,...o)=>{n.exports._logFunc(a,e,t,r,i,...o)}}),r},n.exports.callbackPromise=(e,t)=>function(){let n=Array.from(arguments),r=n.shift();r?t(r):e(...n)},n.exports.parseDataURI=e=>{if(typeof e!=`string`||!e.startsWith(`data:`))return null;let t=e.indexOf(`,`);if(t===-1)return null;let n=e.substring(t+1),r=e.substring(5,t),i,a=r.split(`;`);if(a.length>0){let e=a[a.length-1].toLowerCase().trim();[`base64`,`utf8`,`utf-8`].includes(e)&&e.indexOf(`=`)===-1&&(i=e,a.pop())}let o=a.length>0?a.shift():`application/octet-stream`,s={};for(let e=0;e<a.length;e++){let t=a[e],n=t.indexOf(`=`);if(n>0){let e=t.substring(0,n).trim(),r=t.substring(n+1).trim();e&&(s[e]=r)}}let c;try{if(i===`base64`)c=Buffer.from(n,`base64`);else try{c=Buffer.from(decodeURIComponent(n))}catch{c=Buffer.from(n)}}catch{c=Buffer.alloc(0)}return{data:c,encoding:i||null,contentType:o||`application/octet-stream`,params:s}},n.exports.resolveContent=(e,t,r)=>{let i;r||(i=new Promise((e,t)=>{r=n.exports.callbackPromise(e,t)}));let s=e&&e[t]&&e[t].content||e[t],c,l=(typeof e[t]==`object`&&e[t].encoding||`utf8`).toString().toLowerCase().replace(/[-_\s]/g,``);if(!s)return r(null,s);if(typeof s==`object`){if(typeof s.pipe==`function`)return v(s,(n,i)=>{if(n)return r(n);e[t].content?e[t].content=i:e[t]=i,r(null,i)});if(/^https?:\/\//i.test(s.path||s.href))return c=o(s.path||s.href),v(c,r);if(/^data:/i.test(s.path||s.href)){let e=n.exports.parseDataURI(s.path||s.href);return!e||!e.data?r(null,Buffer.from(0)):r(null,e.data)}else if(s.path)return v(a.createReadStream(s.path),r)}return typeof e[t].content==`string`&&![`utf8`,`usascii`,`ascii`].includes(l)&&(s=Buffer.from(e[t].content,l)),setImmediate(()=>r(null,s)),i},n.exports.assign=function(){let e=Array.from(arguments),t=e.shift()||{};return e.forEach(e=>{Object.keys(e||{}).forEach(n=>{[`tls`,`auth`].includes(n)&&e[n]&&typeof e[n]==`object`?(t[n]||(t[n]={}),Object.keys(e[n]).forEach(r=>{t[n][r]=e[n][r]})):t[n]=e[n]})}),t},n.exports.encodeXText=e=>{if(!/[^\x21-\x2A\x2C-\x3C\x3E-\x7E]/.test(e))return e;let t=Buffer.from(e),n=``;for(let e=0,r=t.length;e<r;e++){let r=t[e];r<33||r>126||r===43||r===61?n+=`+`+(r<16?`0`:``)+r.toString(16).toUpperCase():n+=String.fromCharCode(r)}return n};function v(e,t){let n=!1,r=[],i=0;e.on(`error`,e=>{n||(n=!0,t(e))}),e.on(`readable`,()=>{let t;for(;(t=e.read())!==null;)r.push(t),i+=t.length}),e.on(`end`,()=>{if(n)return;n=!0;let e;try{e=Buffer.concat(r,i)}catch(e){return t(e)}t(null,e)})}function y(e){let t=0,n=new Map;e.forEach(e=>{e.length>t&&(t=e.length)}),e.forEach(e=>{let r=e.toUpperCase();r.length<t&&(r+=` `.repeat(t-r.length)),n.set(e,r)});let r=(e,t,r,...a)=>{let o=``;t&&(t.tnx===`server`?o=`S: `:t.tnx===`client`&&(o=`C: `),t.sid&&(o=`[`+t.sid+`] `+o),t.cid&&(o=`[#`+t.cid+`] `+o)),r=i.format(r,...a),r.split(/\r?\n/).forEach(t=>{console.log(`[%s] %s %s`,new Date().toISOString().substr(0,19).replace(/T/,` `),n.get(e),o+t)})},a={};return e.forEach(e=>{a[e]=r.bind(null,e)}),a}})),Jj=n(((e,n)=>{let r=t(`path`),i=`application/octet-stream`,a=new Map([[`application/acad`,`dwg`],[`application/applixware`,`aw`],[`application/arj`,`arj`],[`application/atom+xml`,`xml`],[`application/atomcat+xml`,`atomcat`],[`application/atomsvc+xml`,`atomsvc`],[`application/base64`,[`mm`,`mme`]],[`application/binhex`,`hqx`],[`application/binhex4`,`hqx`],[`application/book`,[`book`,`boo`]],[`application/ccxml+xml,`,`ccxml`],[`application/cdf`,`cdf`],[`application/cdmi-capability`,`cdmia`],[`application/cdmi-container`,`cdmic`],[`application/cdmi-domain`,`cdmid`],[`application/cdmi-object`,`cdmio`],[`application/cdmi-queue`,`cdmiq`],[`application/clariscad`,`ccad`],[`application/commonground`,`dp`],[`application/cu-seeme`,`cu`],[`application/davmount+xml`,`davmount`],[`application/drafting`,`drw`],[`application/dsptype`,`tsp`],[`application/dssc+der`,`dssc`],[`application/dssc+xml`,`xdssc`],[`application/dxf`,`dxf`],[`application/ecmascript`,[`js`,`es`]],[`application/emma+xml`,`emma`],[`application/envoy`,`evy`],[`application/epub+zip`,`epub`],[`application/excel`,[`xls`,`xl`,`xla`,`xlb`,`xlc`,`xld`,`xlk`,`xll`,`xlm`,`xlt`,`xlv`,`xlw`]],[`application/exi`,`exi`],[`application/font-tdpfr`,`pfr`],[`application/fractals`,`fif`],[`application/freeloader`,`frl`],[`application/futuresplash`,`spl`],[`application/geo+json`,`geojson`],[`application/gnutar`,`tgz`],[`application/groupwise`,`vew`],[`application/hlp`,`hlp`],[`application/hta`,`hta`],[`application/hyperstudio`,`stk`],[`application/i-deas`,`unv`],[`application/iges`,[`iges`,`igs`]],[`application/inf`,`inf`],[`application/internet-property-stream`,`acx`],[`application/ipfix`,`ipfix`],[`application/java`,`class`],[`application/java-archive`,`jar`],[`application/java-byte-code`,`class`],[`application/java-serialized-object`,`ser`],[`application/java-vm`,`class`],[`application/javascript`,`js`],[`application/json`,`json`],[`application/lha`,`lha`],[`application/lzx`,`lzx`],[`application/mac-binary`,`bin`],[`application/mac-binhex`,`hqx`],[`application/mac-binhex40`,`hqx`],[`application/mac-compactpro`,`cpt`],[`application/macbinary`,`bin`],[`application/mads+xml`,`mads`],[`application/marc`,`mrc`],[`application/marcxml+xml`,`mrcx`],[`application/mathematica`,`ma`],[`application/mathml+xml`,`mathml`],[`application/mbedlet`,`mbd`],[`application/mbox`,`mbox`],[`application/mcad`,`mcd`],[`application/mediaservercontrol+xml`,`mscml`],[`application/metalink4+xml`,`meta4`],[`application/mets+xml`,`mets`],[`application/mime`,`aps`],[`application/mods+xml`,`mods`],[`application/mp21`,`m21`],[`application/mp4`,`mp4`],[`application/mspowerpoint`,[`ppt`,`pot`,`pps`,`ppz`]],[`application/msword`,[`doc`,`dot`,`w6w`,`wiz`,`word`]],[`application/mswrite`,`wri`],[`application/mxf`,`mxf`],[`application/netmc`,`mcp`],[`application/octet-stream`,[`*`]],[`application/oda`,`oda`],[`application/oebps-package+xml`,`opf`],[`application/ogg`,`ogx`],[`application/olescript`,`axs`],[`application/onenote`,`onetoc`],[`application/patch-ops-error+xml`,`xer`],[`application/pdf`,`pdf`],[`application/pgp-encrypted`,`asc`],[`application/pgp-signature`,`pgp`],[`application/pics-rules`,`prf`],[`application/pkcs-12`,`p12`],[`application/pkcs-crl`,`crl`],[`application/pkcs10`,`p10`],[`application/pkcs7-mime`,[`p7c`,`p7m`]],[`application/pkcs7-signature`,`p7s`],[`application/pkcs8`,`p8`],[`application/pkix-attr-cert`,`ac`],[`application/pkix-cert`,[`cer`,`crt`]],[`application/pkix-crl`,`crl`],[`application/pkix-pkipath`,`pkipath`],[`application/pkixcmp`,`pki`],[`application/plain`,`text`],[`application/pls+xml`,`pls`],[`application/postscript`,[`ps`,`ai`,`eps`]],[`application/powerpoint`,`ppt`],[`application/pro_eng`,[`part`,`prt`]],[`application/prs.cww`,`cww`],[`application/pskc+xml`,`pskcxml`],[`application/rdf+xml`,`rdf`],[`application/reginfo+xml`,`rif`],[`application/relax-ng-compact-syntax`,`rnc`],[`application/resource-lists+xml`,`rl`],[`application/resource-lists-diff+xml`,`rld`],[`application/ringing-tones`,`rng`],[`application/rls-services+xml`,`rs`],[`application/rsd+xml`,`rsd`],[`application/rss+xml`,`xml`],[`application/rtf`,[`rtf`,`rtx`]],[`application/sbml+xml`,`sbml`],[`application/scvp-cv-request`,`scq`],[`application/scvp-cv-response`,`scs`],[`application/scvp-vp-request`,`spq`],[`application/scvp-vp-response`,`spp`],[`application/sdp`,`sdp`],[`application/sea`,`sea`],[`application/set`,`set`],[`application/set-payment-initiation`,`setpay`],[`application/set-registration-initiation`,`setreg`],[`application/shf+xml`,`shf`],[`application/sla`,`stl`],[`application/smil`,[`smi`,`smil`]],[`application/smil+xml`,`smi`],[`application/solids`,`sol`],[`application/sounder`,`sdr`],[`application/sparql-query`,`rq`],[`application/sparql-results+xml`,`srx`],[`application/srgs`,`gram`],[`application/srgs+xml`,`grxml`],[`application/sru+xml`,`sru`],[`application/ssml+xml`,`ssml`],[`application/step`,[`step`,`stp`]],[`application/streamingmedia`,`ssm`],[`application/tei+xml`,`tei`],[`application/thraud+xml`,`tfi`],[`application/timestamped-data`,`tsd`],[`application/toolbook`,`tbk`],[`application/vda`,`vda`],[`application/vnd.3gpp.pic-bw-large`,`plb`],[`application/vnd.3gpp.pic-bw-small`,`psb`],[`application/vnd.3gpp.pic-bw-var`,`pvb`],[`application/vnd.3gpp2.tcap`,`tcap`],[`application/vnd.3m.post-it-notes`,`pwn`],[`application/vnd.accpac.simply.aso`,`aso`],[`application/vnd.accpac.simply.imp`,`imp`],[`application/vnd.acucobol`,`acu`],[`application/vnd.acucorp`,`atc`],[`application/vnd.adobe.air-application-installer-package+zip`,`air`],[`application/vnd.adobe.fxp`,`fxp`],[`application/vnd.adobe.xdp+xml`,`xdp`],[`application/vnd.adobe.xfdf`,`xfdf`],[`application/vnd.ahead.space`,`ahead`],[`application/vnd.airzip.filesecure.azf`,`azf`],[`application/vnd.airzip.filesecure.azs`,`azs`],[`application/vnd.amazon.ebook`,`azw`],[`application/vnd.americandynamics.acc`,`acc`],[`application/vnd.amiga.ami`,`ami`],[`application/vnd.android.package-archive`,`apk`],[`application/vnd.anser-web-certificate-issue-initiation`,`cii`],[`application/vnd.anser-web-funds-transfer-initiation`,`fti`],[`application/vnd.antix.game-component`,`atx`],[`application/vnd.apple.installer+xml`,`mpkg`],[`application/vnd.apple.mpegurl`,`m3u8`],[`application/vnd.aristanetworks.swi`,`swi`],[`application/vnd.audiograph`,`aep`],[`application/vnd.blueice.multipass`,`mpm`],[`application/vnd.bmi`,`bmi`],[`application/vnd.businessobjects`,`rep`],[`application/vnd.chemdraw+xml`,`cdxml`],[`application/vnd.chipnuts.karaoke-mmd`,`mmd`],[`application/vnd.cinderella`,`cdy`],[`application/vnd.claymore`,`cla`],[`application/vnd.cloanto.rp9`,`rp9`],[`application/vnd.clonk.c4group`,`c4g`],[`application/vnd.cluetrust.cartomobile-config`,`c11amc`],[`application/vnd.cluetrust.cartomobile-config-pkg`,`c11amz`],[`application/vnd.commonspace`,`csp`],[`application/vnd.contact.cmsg`,`cdbcmsg`],[`application/vnd.cosmocaller`,`cmc`],[`application/vnd.crick.clicker`,`clkx`],[`application/vnd.crick.clicker.keyboard`,`clkk`],[`application/vnd.crick.clicker.palette`,`clkp`],[`application/vnd.crick.clicker.template`,`clkt`],[`application/vnd.crick.clicker.wordbank`,`clkw`],[`application/vnd.criticaltools.wbs+xml`,`wbs`],[`application/vnd.ctc-posml`,`pml`],[`application/vnd.cups-ppd`,`ppd`],[`application/vnd.curl.car`,`car`],[`application/vnd.curl.pcurl`,`pcurl`],[`application/vnd.data-vision.rdz`,`rdz`],[`application/vnd.denovo.fcselayout-link`,`fe_launch`],[`application/vnd.dna`,`dna`],[`application/vnd.dolby.mlp`,`mlp`],[`application/vnd.dpgraph`,`dpg`],[`application/vnd.dreamfactory`,`dfac`],[`application/vnd.dvb.ait`,`ait`],[`application/vnd.dvb.service`,`svc`],[`application/vnd.dynageo`,`geo`],[`application/vnd.ecowin.chart`,`mag`],[`application/vnd.enliven`,`nml`],[`application/vnd.epson.esf`,`esf`],[`application/vnd.epson.msf`,`msf`],[`application/vnd.epson.quickanime`,`qam`],[`application/vnd.epson.salt`,`slt`],[`application/vnd.epson.ssf`,`ssf`],[`application/vnd.eszigno3+xml`,`es3`],[`application/vnd.ezpix-album`,`ez2`],[`application/vnd.ezpix-package`,`ez3`],[`application/vnd.fdf`,`fdf`],[`application/vnd.fdsn.seed`,`seed`],[`application/vnd.flographit`,`gph`],[`application/vnd.fluxtime.clip`,`ftc`],[`application/vnd.framemaker`,`fm`],[`application/vnd.frogans.fnc`,`fnc`],[`application/vnd.frogans.ltf`,`ltf`],[`application/vnd.fsc.weblaunch`,`fsc`],[`application/vnd.fujitsu.oasys`,`oas`],[`application/vnd.fujitsu.oasys2`,`oa2`],[`application/vnd.fujitsu.oasys3`,`oa3`],[`application/vnd.fujitsu.oasysgp`,`fg5`],[`application/vnd.fujitsu.oasysprs`,`bh2`],[`application/vnd.fujixerox.ddd`,`ddd`],[`application/vnd.fujixerox.docuworks`,`xdw`],[`application/vnd.fujixerox.docuworks.binder`,`xbd`],[`application/vnd.fuzzysheet`,`fzs`],[`application/vnd.genomatix.tuxedo`,`txd`],[`application/vnd.geogebra.file`,`ggb`],[`application/vnd.geogebra.tool`,`ggt`],[`application/vnd.geometry-explorer`,`gex`],[`application/vnd.geonext`,`gxt`],[`application/vnd.geoplan`,`g2w`],[`application/vnd.geospace`,`g3w`],[`application/vnd.gmx`,`gmx`],[`application/vnd.google-earth.kml+xml`,`kml`],[`application/vnd.google-earth.kmz`,`kmz`],[`application/vnd.grafeq`,`gqf`],[`application/vnd.groove-account`,`gac`],[`application/vnd.groove-help`,`ghf`],[`application/vnd.groove-identity-message`,`gim`],[`application/vnd.groove-injector`,`grv`],[`application/vnd.groove-tool-message`,`gtm`],[`application/vnd.groove-tool-template`,`tpl`],[`application/vnd.groove-vcard`,`vcg`],[`application/vnd.hal+xml`,`hal`],[`application/vnd.handheld-entertainment+xml`,`zmm`],[`application/vnd.hbci`,`hbci`],[`application/vnd.hhe.lesson-player`,`les`],[`application/vnd.hp-hpgl`,[`hgl`,`hpg`,`hpgl`]],[`application/vnd.hp-hpid`,`hpid`],[`application/vnd.hp-hps`,`hps`],[`application/vnd.hp-jlyt`,`jlt`],[`application/vnd.hp-pcl`,`pcl`],[`application/vnd.hp-pclxl`,`pclxl`],[`application/vnd.hydrostatix.sof-data`,`sfd-hdstx`],[`application/vnd.hzn-3d-crossword`,`x3d`],[`application/vnd.ibm.minipay`,`mpy`],[`application/vnd.ibm.modcap`,`afp`],[`application/vnd.ibm.rights-management`,`irm`],[`application/vnd.ibm.secure-container`,`sc`],[`application/vnd.iccprofile`,`icc`],[`application/vnd.igloader`,`igl`],[`application/vnd.immervision-ivp`,`ivp`],[`application/vnd.immervision-ivu`,`ivu`],[`application/vnd.insors.igm`,`igm`],[`application/vnd.intercon.formnet`,`xpw`],[`application/vnd.intergeo`,`i2g`],[`application/vnd.intu.qbo`,`qbo`],[`application/vnd.intu.qfx`,`qfx`],[`application/vnd.ipunplugged.rcprofile`,`rcprofile`],[`application/vnd.irepository.package+xml`,`irp`],[`application/vnd.is-xpr`,`xpr`],[`application/vnd.isac.fcs`,`fcs`],[`application/vnd.jam`,`jam`],[`application/vnd.jcp.javame.midlet-rms`,`rms`],[`application/vnd.jisp`,`jisp`],[`application/vnd.joost.joda-archive`,`joda`],[`application/vnd.kahootz`,`ktz`],[`application/vnd.kde.karbon`,`karbon`],[`application/vnd.kde.kchart`,`chrt`],[`application/vnd.kde.kformula`,`kfo`],[`application/vnd.kde.kivio`,`flw`],[`application/vnd.kde.kontour`,`kon`],[`application/vnd.kde.kpresenter`,`kpr`],[`application/vnd.kde.kspread`,`ksp`],[`application/vnd.kde.kword`,`kwd`],[`application/vnd.kenameaapp`,`htke`],[`application/vnd.kidspiration`,`kia`],[`application/vnd.kinar`,`kne`],[`application/vnd.koan`,`skp`],[`application/vnd.kodak-descriptor`,`sse`],[`application/vnd.las.las+xml`,`lasxml`],[`application/vnd.llamagraphics.life-balance.desktop`,`lbd`],[`application/vnd.llamagraphics.life-balance.exchange+xml`,`lbe`],[`application/vnd.lotus-1-2-3`,`123`],[`application/vnd.lotus-approach`,`apr`],[`application/vnd.lotus-freelance`,`pre`],[`application/vnd.lotus-notes`,`nsf`],[`application/vnd.lotus-organizer`,`org`],[`application/vnd.lotus-screencam`,`scm`],[`application/vnd.lotus-wordpro`,`lwp`],[`application/vnd.macports.portpkg`,`portpkg`],[`application/vnd.mcd`,`mcd`],[`application/vnd.medcalcdata`,`mc1`],[`application/vnd.mediastation.cdkey`,`cdkey`],[`application/vnd.mfer`,`mwf`],[`application/vnd.mfmp`,`mfm`],[`application/vnd.micrografx.flo`,`flo`],[`application/vnd.micrografx.igx`,`igx`],[`application/vnd.mif`,`mif`],[`application/vnd.mobius.daf`,`daf`],[`application/vnd.mobius.dis`,`dis`],[`application/vnd.mobius.mbk`,`mbk`],[`application/vnd.mobius.mqy`,`mqy`],[`application/vnd.mobius.msl`,`msl`],[`application/vnd.mobius.plc`,`plc`],[`application/vnd.mobius.txf`,`txf`],[`application/vnd.mophun.application`,`mpn`],[`application/vnd.mophun.certificate`,`mpc`],[`application/vnd.mozilla.xul+xml`,`xul`],[`application/vnd.ms-artgalry`,`cil`],[`application/vnd.ms-cab-compressed`,`cab`],[`application/vnd.ms-excel`,[`xls`,`xla`,`xlc`,`xlm`,`xlt`,`xlw`,`xlb`,`xll`]],[`application/vnd.ms-excel.addin.macroenabled.12`,`xlam`],[`application/vnd.ms-excel.sheet.binary.macroenabled.12`,`xlsb`],[`application/vnd.ms-excel.sheet.macroenabled.12`,`xlsm`],[`application/vnd.ms-excel.template.macroenabled.12`,`xltm`],[`application/vnd.ms-fontobject`,`eot`],[`application/vnd.ms-htmlhelp`,`chm`],[`application/vnd.ms-ims`,`ims`],[`application/vnd.ms-lrm`,`lrm`],[`application/vnd.ms-officetheme`,`thmx`],[`application/vnd.ms-outlook`,`msg`],[`application/vnd.ms-pki.certstore`,`sst`],[`application/vnd.ms-pki.pko`,`pko`],[`application/vnd.ms-pki.seccat`,`cat`],[`application/vnd.ms-pki.stl`,`stl`],[`application/vnd.ms-pkicertstore`,`sst`],[`application/vnd.ms-pkiseccat`,`cat`],[`application/vnd.ms-pkistl`,`stl`],[`application/vnd.ms-powerpoint`,[`ppt`,`pot`,`pps`,`ppa`,`pwz`]],[`application/vnd.ms-powerpoint.addin.macroenabled.12`,`ppam`],[`application/vnd.ms-powerpoint.presentation.macroenabled.12`,`pptm`],[`application/vnd.ms-powerpoint.slide.macroenabled.12`,`sldm`],[`application/vnd.ms-powerpoint.slideshow.macroenabled.12`,`ppsm`],[`application/vnd.ms-powerpoint.template.macroenabled.12`,`potm`],[`application/vnd.ms-project`,`mpp`],[`application/vnd.ms-word.document.macroenabled.12`,`docm`],[`application/vnd.ms-word.template.macroenabled.12`,`dotm`],[`application/vnd.ms-works`,[`wks`,`wcm`,`wdb`,`wps`]],[`application/vnd.ms-wpl`,`wpl`],[`application/vnd.ms-xpsdocument`,`xps`],[`application/vnd.mseq`,`mseq`],[`application/vnd.musician`,`mus`],[`application/vnd.muvee.style`,`msty`],[`application/vnd.neurolanguage.nlu`,`nlu`],[`application/vnd.noblenet-directory`,`nnd`],[`application/vnd.noblenet-sealer`,`nns`],[`application/vnd.noblenet-web`,`nnw`],[`application/vnd.nokia.configuration-message`,`ncm`],[`application/vnd.nokia.n-gage.data`,`ngdat`],[`application/vnd.nokia.n-gage.symbian.install`,`n-gage`],[`application/vnd.nokia.radio-preset`,`rpst`],[`application/vnd.nokia.radio-presets`,`rpss`],[`application/vnd.nokia.ringing-tone`,`rng`],[`application/vnd.novadigm.edm`,`edm`],[`application/vnd.novadigm.edx`,`edx`],[`application/vnd.novadigm.ext`,`ext`],[`application/vnd.oasis.opendocument.chart`,`odc`],[`application/vnd.oasis.opendocument.chart-template`,`otc`],[`application/vnd.oasis.opendocument.database`,`odb`],[`application/vnd.oasis.opendocument.formula`,`odf`],[`application/vnd.oasis.opendocument.formula-template`,`odft`],[`application/vnd.oasis.opendocument.graphics`,`odg`],[`application/vnd.oasis.opendocument.graphics-template`,`otg`],[`application/vnd.oasis.opendocument.image`,`odi`],[`application/vnd.oasis.opendocument.image-template`,`oti`],[`application/vnd.oasis.opendocument.presentation`,`odp`],[`application/vnd.oasis.opendocument.presentation-template`,`otp`],[`application/vnd.oasis.opendocument.spreadsheet`,`ods`],[`application/vnd.oasis.opendocument.spreadsheet-template`,`ots`],[`application/vnd.oasis.opendocument.text`,`odt`],[`application/vnd.oasis.opendocument.text-master`,`odm`],[`application/vnd.oasis.opendocument.text-template`,`ott`],[`application/vnd.oasis.opendocument.text-web`,`oth`],[`application/vnd.olpc-sugar`,`xo`],[`application/vnd.oma.dd2+xml`,`dd2`],[`application/vnd.openofficeorg.extension`,`oxt`],[`application/vnd.openxmlformats-officedocument.presentationml.presentation`,`pptx`],[`application/vnd.openxmlformats-officedocument.presentationml.slide`,`sldx`],[`application/vnd.openxmlformats-officedocument.presentationml.slideshow`,`ppsx`],[`application/vnd.openxmlformats-officedocument.presentationml.template`,`potx`],[`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,`xlsx`],[`application/vnd.openxmlformats-officedocument.spreadsheetml.template`,`xltx`],[`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,`docx`],[`application/vnd.openxmlformats-officedocument.wordprocessingml.template`,`dotx`],[`application/vnd.osgeo.mapguide.package`,`mgp`],[`application/vnd.osgi.dp`,`dp`],[`application/vnd.palm`,`pdb`],[`application/vnd.pawaafile`,`paw`],[`application/vnd.pg.format`,`str`],[`application/vnd.pg.osasli`,`ei6`],[`application/vnd.picsel`,`efif`],[`application/vnd.pmi.widget`,`wg`],[`application/vnd.pocketlearn`,`plf`],[`application/vnd.powerbuilder6`,`pbd`],[`application/vnd.previewsystems.box`,`box`],[`application/vnd.proteus.magazine`,`mgz`],[`application/vnd.publishare-delta-tree`,`qps`],[`application/vnd.pvi.ptid1`,`ptid`],[`application/vnd.quark.quarkxpress`,`qxd`],[`application/vnd.realvnc.bed`,`bed`],[`application/vnd.recordare.musicxml`,`mxl`],[`application/vnd.recordare.musicxml+xml`,`musicxml`],[`application/vnd.rig.cryptonote`,`cryptonote`],[`application/vnd.rim.cod`,`cod`],[`application/vnd.rn-realmedia`,`rm`],[`application/vnd.rn-realplayer`,`rnx`],[`application/vnd.route66.link66+xml`,`link66`],[`application/vnd.sailingtracker.track`,`st`],[`application/vnd.seemail`,`see`],[`application/vnd.sema`,`sema`],[`application/vnd.semd`,`semd`],[`application/vnd.semf`,`semf`],[`application/vnd.shana.informed.formdata`,`ifm`],[`application/vnd.shana.informed.formtemplate`,`itp`],[`application/vnd.shana.informed.interchange`,`iif`],[`application/vnd.shana.informed.package`,`ipk`],[`application/vnd.simtech-mindmapper`,`twd`],[`application/vnd.smaf`,`mmf`],[`application/vnd.smart.teacher`,`teacher`],[`application/vnd.solent.sdkm+xml`,`sdkm`],[`application/vnd.spotfire.dxp`,`dxp`],[`application/vnd.spotfire.sfs`,`sfs`],[`application/vnd.stardivision.calc`,`sdc`],[`application/vnd.stardivision.draw`,`sda`],[`application/vnd.stardivision.impress`,`sdd`],[`application/vnd.stardivision.math`,`smf`],[`application/vnd.stardivision.writer`,`sdw`],[`application/vnd.stardivision.writer-global`,`sgl`],[`application/vnd.stepmania.stepchart`,`sm`],[`application/vnd.sun.xml.calc`,`sxc`],[`application/vnd.sun.xml.calc.template`,`stc`],[`application/vnd.sun.xml.draw`,`sxd`],[`application/vnd.sun.xml.draw.template`,`std`],[`application/vnd.sun.xml.impress`,`sxi`],[`application/vnd.sun.xml.impress.template`,`sti`],[`application/vnd.sun.xml.math`,`sxm`],[`application/vnd.sun.xml.writer`,`sxw`],[`application/vnd.sun.xml.writer.global`,`sxg`],[`application/vnd.sun.xml.writer.template`,`stw`],[`application/vnd.sus-calendar`,`sus`],[`application/vnd.svd`,`svd`],[`application/vnd.symbian.install`,`sis`],[`application/vnd.syncml+xml`,`xsm`],[`application/vnd.syncml.dm+wbxml`,`bdm`],[`application/vnd.syncml.dm+xml`,`xdm`],[`application/vnd.tao.intent-module-archive`,`tao`],[`application/vnd.tmobile-livetv`,`tmo`],[`application/vnd.trid.tpt`,`tpt`],[`application/vnd.triscape.mxs`,`mxs`],[`application/vnd.trueapp`,`tra`],[`application/vnd.ufdl`,`ufd`],[`application/vnd.uiq.theme`,`utz`],[`application/vnd.umajin`,`umj`],[`application/vnd.unity`,`unityweb`],[`application/vnd.uoml+xml`,`uoml`],[`application/vnd.vcx`,`vcx`],[`application/vnd.visio`,`vsd`],[`application/vnd.visionary`,`vis`],[`application/vnd.vsf`,`vsf`],[`application/vnd.wap.wbxml`,`wbxml`],[`application/vnd.wap.wmlc`,`wmlc`],[`application/vnd.wap.wmlscriptc`,`wmlsc`],[`application/vnd.webturbo`,`wtb`],[`application/vnd.wolfram.player`,`nbp`],[`application/vnd.wordperfect`,`wpd`],[`application/vnd.wqd`,`wqd`],[`application/vnd.wt.stf`,`stf`],[`application/vnd.xara`,[`web`,`xar`]],[`application/vnd.xfdl`,`xfdl`],[`application/vnd.yamaha.hv-dic`,`hvd`],[`application/vnd.yamaha.hv-script`,`hvs`],[`application/vnd.yamaha.hv-voice`,`hvp`],[`application/vnd.yamaha.openscoreformat`,`osf`],[`application/vnd.yamaha.openscoreformat.osfpvg+xml`,`osfpvg`],[`application/vnd.yamaha.smaf-audio`,`saf`],[`application/vnd.yamaha.smaf-phrase`,`spf`],[`application/vnd.yellowriver-custom-menu`,`cmp`],[`application/vnd.zul`,`zir`],[`application/vnd.zzazz.deck+xml`,`zaz`],[`application/vocaltec-media-desc`,`vmd`],[`application/vocaltec-media-file`,`vmf`],[`application/voicexml+xml`,`vxml`],[`application/widget`,`wgt`],[`application/winhlp`,`hlp`],[`application/wordperfect`,[`wp`,`wp5`,`wp6`,`wpd`]],[`application/wordperfect6.0`,[`w60`,`wp5`]],[`application/wordperfect6.1`,`w61`],[`application/wsdl+xml`,`wsdl`],[`application/wspolicy+xml`,`wspolicy`],[`application/x-123`,`wk1`],[`application/x-7z-compressed`,`7z`],[`application/x-abiword`,`abw`],[`application/x-ace-compressed`,`ace`],[`application/x-aim`,`aim`],[`application/x-authorware-bin`,`aab`],[`application/x-authorware-map`,`aam`],[`application/x-authorware-seg`,`aas`],[`application/x-bcpio`,`bcpio`],[`application/x-binary`,`bin`],[`application/x-binhex40`,`hqx`],[`application/x-bittorrent`,`torrent`],[`application/x-bsh`,[`bsh`,`sh`,`shar`]],[`application/x-bytecode.elisp`,`elc`],[`application/x-bytecode.python`,`pyc`],[`application/x-bzip`,`bz`],[`application/x-bzip2`,[`boz`,`bz2`]],[`application/x-cdf`,`cdf`],[`application/x-cdlink`,`vcd`],[`application/x-chat`,[`cha`,`chat`]],[`application/x-chess-pgn`,`pgn`],[`application/x-cmu-raster`,`ras`],[`application/x-cocoa`,`cco`],[`application/x-compactpro`,`cpt`],[`application/x-compress`,`z`],[`application/x-compressed`,[`tgz`,`gz`,`z`,`zip`]],[`application/x-conference`,`nsc`],[`application/x-cpio`,`cpio`],[`application/x-cpt`,`cpt`],[`application/x-csh`,`csh`],[`application/x-debian-package`,`deb`],[`application/x-deepv`,`deepv`],[`application/x-director`,[`dir`,`dcr`,`dxr`]],[`application/x-doom`,`wad`],[`application/x-dtbncx+xml`,`ncx`],[`application/x-dtbook+xml`,`dtb`],[`application/x-dtbresource+xml`,`res`],[`application/x-dvi`,`dvi`],[`application/x-elc`,`elc`],[`application/x-envoy`,[`env`,`evy`]],[`application/x-esrehber`,`es`],[`application/x-excel`,[`xls`,`xla`,`xlb`,`xlc`,`xld`,`xlk`,`xll`,`xlm`,`xlt`,`xlv`,`xlw`]],[`application/x-font-bdf`,`bdf`],[`application/x-font-ghostscript`,`gsf`],[`application/x-font-linux-psf`,`psf`],[`application/x-font-otf`,`otf`],[`application/x-font-pcf`,`pcf`],[`application/x-font-snf`,`snf`],[`application/x-font-ttf`,`ttf`],[`application/x-font-type1`,`pfa`],[`application/x-font-woff`,`woff`],[`application/x-frame`,`mif`],[`application/x-freelance`,`pre`],[`application/x-futuresplash`,`spl`],[`application/x-gnumeric`,`gnumeric`],[`application/x-gsp`,`gsp`],[`application/x-gss`,`gss`],[`application/x-gtar`,`gtar`],[`application/x-gzip`,[`gz`,`gzip`]],[`application/x-hdf`,`hdf`],[`application/x-helpfile`,[`help`,`hlp`]],[`application/x-httpd-imap`,`imap`],[`application/x-ima`,`ima`],[`application/x-internet-signup`,[`ins`,`isp`]],[`application/x-internett-signup`,`ins`],[`application/x-inventor`,`iv`],[`application/x-ip2`,`ip`],[`application/x-iphone`,`iii`],[`application/x-java-class`,`class`],[`application/x-java-commerce`,`jcm`],[`application/x-java-jnlp-file`,`jnlp`],[`application/x-javascript`,`js`],[`application/x-koan`,[`skd`,`skm`,`skp`,`skt`]],[`application/x-ksh`,`ksh`],[`application/x-latex`,[`latex`,`ltx`]],[`application/x-lha`,`lha`],[`application/x-lisp`,`lsp`],[`application/x-livescreen`,`ivy`],[`application/x-lotus`,`wq1`],[`application/x-lotusscreencam`,`scm`],[`application/x-lzh`,`lzh`],[`application/x-lzx`,`lzx`],[`application/x-mac-binhex40`,`hqx`],[`application/x-macbinary`,`bin`],[`application/x-magic-cap-package-1.0`,`mc$`],[`application/x-mathcad`,`mcd`],[`application/x-meme`,`mm`],[`application/x-midi`,[`mid`,`midi`]],[`application/x-mif`,`mif`],[`application/x-mix-transfer`,`nix`],[`application/x-mobipocket-ebook`,`prc`],[`application/x-mplayer2`,`asx`],[`application/x-ms-application`,`application`],[`application/x-ms-wmd`,`wmd`],[`application/x-ms-wmz`,`wmz`],[`application/x-ms-xbap`,`xbap`],[`application/x-msaccess`,`mdb`],[`application/x-msbinder`,`obd`],[`application/x-mscardfile`,`crd`],[`application/x-msclip`,`clp`],[`application/x-msdownload`,[`exe`,`dll`]],[`application/x-msexcel`,[`xls`,`xla`,`xlw`]],[`application/x-msmediaview`,[`mvb`,`m13`,`m14`]],[`application/x-msmetafile`,`wmf`],[`application/x-msmoney`,`mny`],[`application/x-mspowerpoint`,`ppt`],[`application/x-mspublisher`,`pub`],[`application/x-msschedule`,`scd`],[`application/x-msterminal`,`trm`],[`application/x-mswrite`,`wri`],[`application/x-navi-animation`,`ani`],[`application/x-navidoc`,`nvd`],[`application/x-navimap`,`map`],[`application/x-navistyle`,`stl`],[`application/x-netcdf`,[`cdf`,`nc`]],[`application/x-newton-compatible-pkg`,`pkg`],[`application/x-nokia-9000-communicator-add-on-software`,`aos`],[`application/x-omc`,`omc`],[`application/x-omcdatamaker`,`omcd`],[`application/x-omcregerator`,`omcr`],[`application/x-pagemaker`,[`pm4`,`pm5`]],[`application/x-pcl`,`pcl`],[`application/x-perfmon`,[`pma`,`pmc`,`pml`,`pmr`,`pmw`]],[`application/x-pixclscript`,`plx`],[`application/x-pkcs10`,`p10`],[`application/x-pkcs12`,[`p12`,`pfx`]],[`application/x-pkcs7-certificates`,[`p7b`,`spc`]],[`application/x-pkcs7-certreqresp`,`p7r`],[`application/x-pkcs7-mime`,[`p7m`,`p7c`]],[`application/x-pkcs7-signature`,[`p7s`,`p7a`]],[`application/x-pointplus`,`css`],[`application/x-portable-anymap`,`pnm`],[`application/x-project`,[`mpc`,`mpt`,`mpv`,`mpx`]],[`application/x-qpro`,`wb1`],[`application/x-rar-compressed`,`rar`],[`application/x-rtf`,`rtf`],[`application/x-sdp`,`sdp`],[`application/x-sea`,`sea`],[`application/x-seelogo`,`sl`],[`application/x-sh`,`sh`],[`application/x-shar`,[`shar`,`sh`]],[`application/x-shockwave-flash`,`swf`],[`application/x-silverlight-app`,`xap`],[`application/x-sit`,`sit`],[`application/x-sprite`,[`spr`,`sprite`]],[`application/x-stuffit`,`sit`],[`application/x-stuffitx`,`sitx`],[`application/x-sv4cpio`,`sv4cpio`],[`application/x-sv4crc`,`sv4crc`],[`application/x-tar`,`tar`],[`application/x-tbook`,[`sbk`,`tbk`]],[`application/x-tcl`,`tcl`],[`application/x-tex`,`tex`],[`application/x-tex-tfm`,`tfm`],[`application/x-texinfo`,[`texi`,`texinfo`]],[`application/x-troff`,[`roff`,`t`,`tr`]],[`application/x-troff-man`,`man`],[`application/x-troff-me`,`me`],[`application/x-troff-ms`,`ms`],[`application/x-troff-msvideo`,`avi`],[`application/x-ustar`,`ustar`],[`application/x-visio`,[`vsd`,`vst`,`vsw`]],[`application/x-vnd.audioexplosion.mzz`,`mzz`],[`application/x-vnd.ls-xpix`,`xpix`],[`application/x-vrml`,`vrml`],[`application/x-wais-source`,[`src`,`wsrc`]],[`application/x-winhelp`,`hlp`],[`application/x-wintalk`,`wtk`],[`application/x-world`,[`wrl`,`svr`]],[`application/x-wpwin`,`wpd`],[`application/x-wri`,`wri`],[`application/x-x509-ca-cert`,[`cer`,`crt`,`der`]],[`application/x-x509-user-cert`,`crt`],[`application/x-xfig`,`fig`],[`application/x-xpinstall`,`xpi`],[`application/x-zip-compressed`,`zip`],[`application/xcap-diff+xml`,`xdf`],[`application/xenc+xml`,`xenc`],[`application/xhtml+xml`,`xhtml`],[`application/xml`,`xml`],[`application/xml-dtd`,`dtd`],[`application/xop+xml`,`xop`],[`application/xslt+xml`,`xslt`],[`application/xspf+xml`,`xspf`],[`application/xv+xml`,`mxml`],[`application/yang`,`yang`],[`application/yin+xml`,`yin`],[`application/ynd.ms-pkipko`,`pko`],[`application/zip`,`zip`],[`audio/adpcm`,`adp`],[`audio/aiff`,[`aiff`,`aif`,`aifc`]],[`audio/basic`,[`snd`,`au`]],[`audio/it`,`it`],[`audio/make`,[`funk`,`my`,`pfunk`]],[`audio/make.my.funk`,`pfunk`],[`audio/mid`,[`mid`,`rmi`]],[`audio/midi`,[`midi`,`kar`,`mid`]],[`audio/mod`,`mod`],[`audio/mp4`,`mp4a`],[`audio/mpeg`,[`mpga`,`mp3`,`m2a`,`mp2`,`mpa`,`mpg`]],[`audio/mpeg3`,`mp3`],[`audio/nspaudio`,[`la`,`lma`]],[`audio/ogg`,`oga`],[`audio/s3m`,`s3m`],[`audio/tsp-audio`,`tsi`],[`audio/tsplayer`,`tsp`],[`audio/vnd.dece.audio`,`uva`],[`audio/vnd.digital-winds`,`eol`],[`audio/vnd.dra`,`dra`],[`audio/vnd.dts`,`dts`],[`audio/vnd.dts.hd`,`dtshd`],[`audio/vnd.lucent.voice`,`lvp`],[`audio/vnd.ms-playready.media.pya`,`pya`],[`audio/vnd.nuera.ecelp4800`,`ecelp4800`],[`audio/vnd.nuera.ecelp7470`,`ecelp7470`],[`audio/vnd.nuera.ecelp9600`,`ecelp9600`],[`audio/vnd.qcelp`,`qcp`],[`audio/vnd.rip`,`rip`],[`audio/voc`,`voc`],[`audio/voxware`,`vox`],[`audio/wav`,`wav`],[`audio/webm`,`weba`],[`audio/x-aac`,`aac`],[`audio/x-adpcm`,`snd`],[`audio/x-aiff`,[`aiff`,`aif`,`aifc`]],[`audio/x-au`,`au`],[`audio/x-gsm`,[`gsd`,`gsm`]],[`audio/x-jam`,`jam`],[`audio/x-liveaudio`,`lam`],[`audio/x-mid`,[`mid`,`midi`]],[`audio/x-midi`,[`midi`,`mid`]],[`audio/x-mod`,`mod`],[`audio/x-mpeg`,`mp2`],[`audio/x-mpeg-3`,`mp3`],[`audio/x-mpegurl`,`m3u`],[`audio/x-mpequrl`,`m3u`],[`audio/x-ms-wax`,`wax`],[`audio/x-ms-wma`,`wma`],[`audio/x-nspaudio`,[`la`,`lma`]],[`audio/x-pn-realaudio`,[`ra`,`ram`,`rm`,`rmm`,`rmp`]],[`audio/x-pn-realaudio-plugin`,[`ra`,`rmp`,`rpm`]],[`audio/x-psid`,`sid`],[`audio/x-realaudio`,`ra`],[`audio/x-twinvq`,`vqf`],[`audio/x-twinvq-plugin`,[`vqe`,`vql`]],[`audio/x-vnd.audioexplosion.mjuicemediafile`,`mjf`],[`audio/x-voc`,`voc`],[`audio/x-wav`,`wav`],[`audio/xm`,`xm`],[`chemical/x-cdx`,`cdx`],[`chemical/x-cif`,`cif`],[`chemical/x-cmdf`,`cmdf`],[`chemical/x-cml`,`cml`],[`chemical/x-csml`,`csml`],[`chemical/x-pdb`,[`pdb`,`xyz`]],[`chemical/x-xyz`,`xyz`],[`drawing/x-dwf`,`dwf`],[`i-world/i-vrml`,`ivr`],[`image/bmp`,[`bmp`,`bm`]],[`image/cgm`,`cgm`],[`image/cis-cod`,`cod`],[`image/cmu-raster`,[`ras`,`rast`]],[`image/fif`,`fif`],[`image/florian`,[`flo`,`turbot`]],[`image/g3fax`,`g3`],[`image/gif`,`gif`],[`image/ief`,[`ief`,`iefs`]],[`image/jpeg`,[`jpeg`,`jpe`,`jpg`,`jfif`,`jfif-tbnl`]],[`image/jutvision`,`jut`],[`image/ktx`,`ktx`],[`image/naplps`,[`nap`,`naplps`]],[`image/pict`,[`pic`,`pict`]],[`image/pipeg`,`jfif`],[`image/pjpeg`,[`jfif`,`jpe`,`jpeg`,`jpg`]],[`image/png`,[`png`,`x-png`]],[`image/prs.btif`,`btif`],[`image/svg+xml`,`svg`],[`image/tiff`,[`tif`,`tiff`]],[`image/vasa`,`mcf`],[`image/vnd.adobe.photoshop`,`psd`],[`image/vnd.dece.graphic`,`uvi`],[`image/vnd.djvu`,`djvu`],[`image/vnd.dvb.subtitle`,`sub`],[`image/vnd.dwg`,[`dwg`,`dxf`,`svf`]],[`image/vnd.dxf`,`dxf`],[`image/vnd.fastbidsheet`,`fbs`],[`image/vnd.fpx`,`fpx`],[`image/vnd.fst`,`fst`],[`image/vnd.fujixerox.edmics-mmr`,`mmr`],[`image/vnd.fujixerox.edmics-rlc`,`rlc`],[`image/vnd.ms-modi`,`mdi`],[`image/vnd.net-fpx`,[`fpx`,`npx`]],[`image/vnd.rn-realflash`,`rf`],[`image/vnd.rn-realpix`,`rp`],[`image/vnd.wap.wbmp`,`wbmp`],[`image/vnd.xiff`,`xif`],[`image/webp`,`webp`],[`image/x-cmu-raster`,`ras`],[`image/x-cmx`,`cmx`],[`image/x-dwg`,[`dwg`,`dxf`,`svf`]],[`image/x-freehand`,`fh`],[`image/x-icon`,`ico`],[`image/x-jg`,`art`],[`image/x-jps`,`jps`],[`image/x-niff`,[`niff`,`nif`]],[`image/x-pcx`,`pcx`],[`image/x-pict`,[`pct`,`pic`]],[`image/x-portable-anymap`,`pnm`],[`image/x-portable-bitmap`,`pbm`],[`image/x-portable-graymap`,`pgm`],[`image/x-portable-greymap`,`pgm`],[`image/x-portable-pixmap`,`ppm`],[`image/x-quicktime`,[`qif`,`qti`,`qtif`]],[`image/x-rgb`,`rgb`],[`image/x-tiff`,[`tif`,`tiff`]],[`image/x-windows-bmp`,`bmp`],[`image/x-xbitmap`,`xbm`],[`image/x-xbm`,`xbm`],[`image/x-xpixmap`,[`xpm`,`pm`]],[`image/x-xwd`,`xwd`],[`image/x-xwindowdump`,`xwd`],[`image/xbm`,`xbm`],[`image/xpm`,`xpm`],[`message/rfc822`,[`eml`,`mht`,`mhtml`,`nws`,`mime`]],[`model/iges`,[`iges`,`igs`]],[`model/mesh`,`msh`],[`model/vnd.collada+xml`,`dae`],[`model/vnd.dwf`,`dwf`],[`model/vnd.gdl`,`gdl`],[`model/vnd.gtw`,`gtw`],[`model/vnd.mts`,`mts`],[`model/vnd.vtu`,`vtu`],[`model/vrml`,[`vrml`,`wrl`,`wrz`]],[`model/x-pov`,`pov`],[`multipart/x-gzip`,`gzip`],[`multipart/x-ustar`,`ustar`],[`multipart/x-zip`,`zip`],[`music/crescendo`,[`mid`,`midi`]],[`music/x-karaoke`,`kar`],[`paleovu/x-pv`,`pvu`],[`text/asp`,`asp`],[`text/calendar`,`ics`],[`text/css`,`css`],[`text/csv`,`csv`],[`text/ecmascript`,`js`],[`text/h323`,`323`],[`text/html`,[`html`,`htm`,`stm`,`acgi`,`htmls`,`htx`,`shtml`]],[`text/iuls`,`uls`],[`text/javascript`,`js`],[`text/mcf`,`mcf`],[`text/n3`,`n3`],[`text/pascal`,`pas`],[`text/plain`,`txt.bas.c.h.c++.cc.com.conf.cxx.def.f.f90.for.g.hh.idc.jav.java.list.log.lst.m.mar.pl.sdml.text`.split(`.`)],[`text/plain-bas`,`par`],[`text/prs.lines.tag`,`dsc`],[`text/richtext`,[`rtx`,`rt`,`rtf`]],[`text/scriplet`,`wsc`],[`text/scriptlet`,`sct`],[`text/sgml`,[`sgm`,`sgml`]],[`text/tab-separated-values`,`tsv`],[`text/troff`,`t`],[`text/turtle`,`ttl`],[`text/uri-list`,[`uni`,`unis`,`uri`,`uris`]],[`text/vnd.abc`,`abc`],[`text/vnd.curl`,`curl`],[`text/vnd.curl.dcurl`,`dcurl`],[`text/vnd.curl.mcurl`,`mcurl`],[`text/vnd.curl.scurl`,`scurl`],[`text/vnd.fly`,`fly`],[`text/vnd.fmi.flexstor`,`flx`],[`text/vnd.graphviz`,`gv`],[`text/vnd.in3d.3dml`,`3dml`],[`text/vnd.in3d.spot`,`spot`],[`text/vnd.rn-realtext`,`rt`],[`text/vnd.sun.j2me.app-descriptor`,`jad`],[`text/vnd.wap.wml`,`wml`],[`text/vnd.wap.wmlscript`,`wmls`],[`text/webviewhtml`,`htt`],[`text/x-asm`,[`asm`,`s`]],[`text/x-audiosoft-intra`,`aip`],[`text/x-c`,[`c`,`cc`,`cpp`]],[`text/x-component`,`htc`],[`text/x-fortran`,[`for`,`f`,`f77`,`f90`]],[`text/x-h`,[`h`,`hh`]],[`text/x-java-source`,[`java`,`jav`]],[`text/x-java-source,java`,`java`],[`text/x-la-asf`,`lsx`],[`text/x-m`,`m`],[`text/x-pascal`,`p`],[`text/x-script`,`hlb`],[`text/x-script.csh`,`csh`],[`text/x-script.elisp`,`el`],[`text/x-script.guile`,`scm`],[`text/x-script.ksh`,`ksh`],[`text/x-script.lisp`,`lsp`],[`text/x-script.perl`,`pl`],[`text/x-script.perl-module`,`pm`],[`text/x-script.phyton`,`py`],[`text/x-script.rexx`,`rexx`],[`text/x-script.scheme`,`scm`],[`text/x-script.sh`,`sh`],[`text/x-script.tcl`,`tcl`],[`text/x-script.tcsh`,`tcsh`],[`text/x-script.zsh`,`zsh`],[`text/x-server-parsed-html`,[`shtml`,`ssi`]],[`text/x-setext`,`etx`],[`text/x-sgml`,[`sgm`,`sgml`]],[`text/x-speech`,[`spc`,`talk`]],[`text/x-uil`,`uil`],[`text/x-uuencode`,[`uu`,`uue`]],[`text/x-vcalendar`,`vcs`],[`text/x-vcard`,`vcf`],[`text/xml`,`xml`],[`video/3gpp`,`3gp`],[`video/3gpp2`,`3g2`],[`video/animaflex`,`afl`],[`video/avi`,`avi`],[`video/avs-video`,`avs`],[`video/dl`,`dl`],[`video/fli`,`fli`],[`video/gl`,`gl`],[`video/h261`,`h261`],[`video/h263`,`h263`],[`video/h264`,`h264`],[`video/jpeg`,`jpgv`],[`video/jpm`,`jpm`],[`video/mj2`,`mj2`],[`video/mp4`,`mp4`],[`video/mpeg`,[`mpeg`,`mp2`,`mpa`,`mpe`,`mpg`,`mpv2`,`m1v`,`m2v`,`mp3`]],[`video/msvideo`,`avi`],[`video/ogg`,`ogv`],[`video/quicktime`,[`mov`,`qt`,`moov`]],[`video/vdo`,`vdo`],[`video/vivo`,[`viv`,`vivo`]],[`video/vnd.dece.hd`,`uvh`],[`video/vnd.dece.mobile`,`uvm`],[`video/vnd.dece.pd`,`uvp`],[`video/vnd.dece.sd`,`uvs`],[`video/vnd.dece.video`,`uvv`],[`video/vnd.fvt`,`fvt`],[`video/vnd.mpegurl`,`mxu`],[`video/vnd.ms-playready.media.pyv`,`pyv`],[`video/vnd.rn-realvideo`,`rv`],[`video/vnd.uvvu.mp4`,`uvu`],[`video/vnd.vivo`,[`viv`,`vivo`]],[`video/vosaic`,`vos`],[`video/webm`,`webm`],[`video/x-amt-demorun`,`xdr`],[`video/x-amt-showrun`,`xsr`],[`video/x-atomic3d-feature`,`fmf`],[`video/x-dl`,`dl`],[`video/x-dv`,[`dif`,`dv`]],[`video/x-f4v`,`f4v`],[`video/x-fli`,`fli`],[`video/x-flv`,`flv`],[`video/x-gl`,`gl`],[`video/x-isvideo`,`isu`],[`video/x-la-asf`,[`lsf`,`lsx`]],[`video/x-m4v`,`m4v`],[`video/x-motion-jpeg`,`mjpg`],[`video/x-mpeg`,[`mp3`,`mp2`]],[`video/x-mpeq2a`,`mp2`],[`video/x-ms-asf`,[`asf`,`asr`,`asx`]],[`video/x-ms-asf-plugin`,`asx`],[`video/x-ms-wm`,`wm`],[`video/x-ms-wmv`,`wmv`],[`video/x-ms-wmx`,`wmx`],[`video/x-ms-wvx`,`wvx`],[`video/x-msvideo`,`avi`],[`video/x-qtc`,`qtc`],[`video/x-scm`,`scm`],[`video/x-sgi-movie`,[`movie`,`mv`]],[`windows/metafile`,`wmf`],[`www/mime`,`mime`],[`x-conference/x-cooltalk`,`ice`],[`x-music/x-midi`,[`mid`,`midi`]],[`x-world/x-3dmf`,[`3dm`,`3dmf`,`qd3`,`qd3d`]],[`x-world/x-svr`,`svr`],[`x-world/x-vrml`,[`flr`,`vrml`,`wrl`,`wrz`,`xaf`,`xof`]],[`x-world/x-vrt`,`vrt`],[`xgl/drawing`,`xgz`],[`xgl/movie`,`xmz`]]),o=new Map([[`123`,`application/vnd.lotus-1-2-3`],[`323`,`text/h323`],[`*`,`application/octet-stream`],[`3dm`,`x-world/x-3dmf`],[`3dmf`,`x-world/x-3dmf`],[`3dml`,`text/vnd.in3d.3dml`],[`3g2`,`video/3gpp2`],[`3gp`,`video/3gpp`],[`7z`,`application/x-7z-compressed`],[`a`,`application/octet-stream`],[`aab`,`application/x-authorware-bin`],[`aac`,`audio/x-aac`],[`aam`,`application/x-authorware-map`],[`aas`,`application/x-authorware-seg`],[`abc`,`text/vnd.abc`],[`abw`,`application/x-abiword`],[`ac`,`application/pkix-attr-cert`],[`acc`,`application/vnd.americandynamics.acc`],[`ace`,`application/x-ace-compressed`],[`acgi`,`text/html`],[`acu`,`application/vnd.acucobol`],[`acx`,`application/internet-property-stream`],[`adp`,`audio/adpcm`],[`aep`,`application/vnd.audiograph`],[`afl`,`video/animaflex`],[`afp`,`application/vnd.ibm.modcap`],[`ahead`,`application/vnd.ahead.space`],[`ai`,`application/postscript`],[`aif`,[`audio/aiff`,`audio/x-aiff`]],[`aifc`,[`audio/aiff`,`audio/x-aiff`]],[`aiff`,[`audio/aiff`,`audio/x-aiff`]],[`aim`,`application/x-aim`],[`aip`,`text/x-audiosoft-intra`],[`air`,`application/vnd.adobe.air-application-installer-package+zip`],[`ait`,`application/vnd.dvb.ait`],[`ami`,`application/vnd.amiga.ami`],[`ani`,`application/x-navi-animation`],[`aos`,`application/x-nokia-9000-communicator-add-on-software`],[`apk`,`application/vnd.android.package-archive`],[`application`,`application/x-ms-application`],[`apr`,`application/vnd.lotus-approach`],[`aps`,`application/mime`],[`arc`,`application/octet-stream`],[`arj`,[`application/arj`,`application/octet-stream`]],[`art`,`image/x-jg`],[`asf`,`video/x-ms-asf`],[`asm`,`text/x-asm`],[`aso`,`application/vnd.accpac.simply.aso`],[`asp`,`text/asp`],[`asr`,`video/x-ms-asf`],[`asx`,[`video/x-ms-asf`,`application/x-mplayer2`,`video/x-ms-asf-plugin`]],[`atc`,`application/vnd.acucorp`],[`atomcat`,`application/atomcat+xml`],[`atomsvc`,`application/atomsvc+xml`],[`atx`,`application/vnd.antix.game-component`],[`au`,[`audio/basic`,`audio/x-au`]],[`avi`,[`video/avi`,`video/msvideo`,`application/x-troff-msvideo`,`video/x-msvideo`]],[`avs`,`video/avs-video`],[`aw`,`application/applixware`],[`axs`,`application/olescript`],[`azf`,`application/vnd.airzip.filesecure.azf`],[`azs`,`application/vnd.airzip.filesecure.azs`],[`azw`,`application/vnd.amazon.ebook`],[`bas`,`text/plain`],[`bcpio`,`application/x-bcpio`],[`bdf`,`application/x-font-bdf`],[`bdm`,`application/vnd.syncml.dm+wbxml`],[`bed`,`application/vnd.realvnc.bed`],[`bh2`,`application/vnd.fujitsu.oasysprs`],[`bin`,[`application/octet-stream`,`application/mac-binary`,`application/macbinary`,`application/x-macbinary`,`application/x-binary`]],[`bm`,`image/bmp`],[`bmi`,`application/vnd.bmi`],[`bmp`,[`image/bmp`,`image/x-windows-bmp`]],[`boo`,`application/book`],[`book`,`application/book`],[`box`,`application/vnd.previewsystems.box`],[`boz`,`application/x-bzip2`],[`bsh`,`application/x-bsh`],[`btif`,`image/prs.btif`],[`bz`,`application/x-bzip`],[`bz2`,`application/x-bzip2`],[`c`,[`text/plain`,`text/x-c`]],[`c++`,`text/plain`],[`c11amc`,`application/vnd.cluetrust.cartomobile-config`],[`c11amz`,`application/vnd.cluetrust.cartomobile-config-pkg`],[`c4g`,`application/vnd.clonk.c4group`],[`cab`,`application/vnd.ms-cab-compressed`],[`car`,`application/vnd.curl.car`],[`cat`,[`application/vnd.ms-pkiseccat`,`application/vnd.ms-pki.seccat`]],[`cc`,[`text/plain`,`text/x-c`]],[`ccad`,`application/clariscad`],[`cco`,`application/x-cocoa`],[`ccxml`,`application/ccxml+xml,`],[`cdbcmsg`,`application/vnd.contact.cmsg`],[`cdf`,[`application/cdf`,`application/x-cdf`,`application/x-netcdf`]],[`cdkey`,`application/vnd.mediastation.cdkey`],[`cdmia`,`application/cdmi-capability`],[`cdmic`,`application/cdmi-container`],[`cdmid`,`application/cdmi-domain`],[`cdmio`,`application/cdmi-object`],[`cdmiq`,`application/cdmi-queue`],[`cdx`,`chemical/x-cdx`],[`cdxml`,`application/vnd.chemdraw+xml`],[`cdy`,`application/vnd.cinderella`],[`cer`,[`application/pkix-cert`,`application/x-x509-ca-cert`]],[`cgm`,`image/cgm`],[`cha`,`application/x-chat`],[`chat`,`application/x-chat`],[`chm`,`application/vnd.ms-htmlhelp`],[`chrt`,`application/vnd.kde.kchart`],[`cif`,`chemical/x-cif`],[`cii`,`application/vnd.anser-web-certificate-issue-initiation`],[`cil`,`application/vnd.ms-artgalry`],[`cla`,`application/vnd.claymore`],[`class`,[`application/octet-stream`,`application/java`,`application/java-byte-code`,`application/java-vm`,`application/x-java-class`]],[`clkk`,`application/vnd.crick.clicker.keyboard`],[`clkp`,`application/vnd.crick.clicker.palette`],[`clkt`,`application/vnd.crick.clicker.template`],[`clkw`,`application/vnd.crick.clicker.wordbank`],[`clkx`,`application/vnd.crick.clicker`],[`clp`,`application/x-msclip`],[`cmc`,`application/vnd.cosmocaller`],[`cmdf`,`chemical/x-cmdf`],[`cml`,`chemical/x-cml`],[`cmp`,`application/vnd.yellowriver-custom-menu`],[`cmx`,`image/x-cmx`],[`cod`,[`image/cis-cod`,`application/vnd.rim.cod`]],[`com`,[`application/octet-stream`,`text/plain`]],[`conf`,`text/plain`],[`cpio`,`application/x-cpio`],[`cpp`,`text/x-c`],[`cpt`,[`application/mac-compactpro`,`application/x-compactpro`,`application/x-cpt`]],[`crd`,`application/x-mscardfile`],[`crl`,[`application/pkix-crl`,`application/pkcs-crl`]],[`crt`,[`application/pkix-cert`,`application/x-x509-user-cert`,`application/x-x509-ca-cert`]],[`cryptonote`,`application/vnd.rig.cryptonote`],[`csh`,[`text/x-script.csh`,`application/x-csh`]],[`csml`,`chemical/x-csml`],[`csp`,`application/vnd.commonspace`],[`css`,[`text/css`,`application/x-pointplus`]],[`csv`,`text/csv`],[`cu`,`application/cu-seeme`],[`curl`,`text/vnd.curl`],[`cww`,`application/prs.cww`],[`cxx`,`text/plain`],[`dae`,`model/vnd.collada+xml`],[`daf`,`application/vnd.mobius.daf`],[`davmount`,`application/davmount+xml`],[`dcr`,`application/x-director`],[`dcurl`,`text/vnd.curl.dcurl`],[`dd2`,`application/vnd.oma.dd2+xml`],[`ddd`,`application/vnd.fujixerox.ddd`],[`deb`,`application/x-debian-package`],[`deepv`,`application/x-deepv`],[`def`,`text/plain`],[`der`,`application/x-x509-ca-cert`],[`dfac`,`application/vnd.dreamfactory`],[`dif`,`video/x-dv`],[`dir`,`application/x-director`],[`dis`,`application/vnd.mobius.dis`],[`djvu`,`image/vnd.djvu`],[`dl`,[`video/dl`,`video/x-dl`]],[`dll`,`application/x-msdownload`],[`dms`,`application/octet-stream`],[`dna`,`application/vnd.dna`],[`doc`,`application/msword`],[`docm`,`application/vnd.ms-word.document.macroenabled.12`],[`docx`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`],[`dot`,`application/msword`],[`dotm`,`application/vnd.ms-word.template.macroenabled.12`],[`dotx`,`application/vnd.openxmlformats-officedocument.wordprocessingml.template`],[`dp`,[`application/commonground`,`application/vnd.osgi.dp`]],[`dpg`,`application/vnd.dpgraph`],[`dra`,`audio/vnd.dra`],[`drw`,`application/drafting`],[`dsc`,`text/prs.lines.tag`],[`dssc`,`application/dssc+der`],[`dtb`,`application/x-dtbook+xml`],[`dtd`,`application/xml-dtd`],[`dts`,`audio/vnd.dts`],[`dtshd`,`audio/vnd.dts.hd`],[`dump`,`application/octet-stream`],[`dv`,`video/x-dv`],[`dvi`,`application/x-dvi`],[`dwf`,[`model/vnd.dwf`,`drawing/x-dwf`]],[`dwg`,[`application/acad`,`image/vnd.dwg`,`image/x-dwg`]],[`dxf`,[`application/dxf`,`image/vnd.dwg`,`image/vnd.dxf`,`image/x-dwg`]],[`dxp`,`application/vnd.spotfire.dxp`],[`dxr`,`application/x-director`],[`ecelp4800`,`audio/vnd.nuera.ecelp4800`],[`ecelp7470`,`audio/vnd.nuera.ecelp7470`],[`ecelp9600`,`audio/vnd.nuera.ecelp9600`],[`edm`,`application/vnd.novadigm.edm`],[`edx`,`application/vnd.novadigm.edx`],[`efif`,`application/vnd.picsel`],[`ei6`,`application/vnd.pg.osasli`],[`el`,`text/x-script.elisp`],[`elc`,[`application/x-elc`,`application/x-bytecode.elisp`]],[`eml`,`message/rfc822`],[`emma`,`application/emma+xml`],[`env`,`application/x-envoy`],[`eol`,`audio/vnd.digital-winds`],[`eot`,`application/vnd.ms-fontobject`],[`eps`,`application/postscript`],[`epub`,`application/epub+zip`],[`es`,[`application/ecmascript`,`application/x-esrehber`]],[`es3`,`application/vnd.eszigno3+xml`],[`esf`,`application/vnd.epson.esf`],[`etx`,`text/x-setext`],[`evy`,[`application/envoy`,`application/x-envoy`]],[`exe`,[`application/octet-stream`,`application/x-msdownload`]],[`exi`,`application/exi`],[`ext`,`application/vnd.novadigm.ext`],[`ez2`,`application/vnd.ezpix-album`],[`ez3`,`application/vnd.ezpix-package`],[`f`,[`text/plain`,`text/x-fortran`]],[`f4v`,`video/x-f4v`],[`f77`,`text/x-fortran`],[`f90`,[`text/plain`,`text/x-fortran`]],[`fbs`,`image/vnd.fastbidsheet`],[`fcs`,`application/vnd.isac.fcs`],[`fdf`,`application/vnd.fdf`],[`fe_launch`,`application/vnd.denovo.fcselayout-link`],[`fg5`,`application/vnd.fujitsu.oasysgp`],[`fh`,`image/x-freehand`],[`fif`,[`application/fractals`,`image/fif`]],[`fig`,`application/x-xfig`],[`fli`,[`video/fli`,`video/x-fli`]],[`flo`,[`image/florian`,`application/vnd.micrografx.flo`]],[`flr`,`x-world/x-vrml`],[`flv`,`video/x-flv`],[`flw`,`application/vnd.kde.kivio`],[`flx`,`text/vnd.fmi.flexstor`],[`fly`,`text/vnd.fly`],[`fm`,`application/vnd.framemaker`],[`fmf`,`video/x-atomic3d-feature`],[`fnc`,`application/vnd.frogans.fnc`],[`for`,[`text/plain`,`text/x-fortran`]],[`fpx`,[`image/vnd.fpx`,`image/vnd.net-fpx`]],[`frl`,`application/freeloader`],[`fsc`,`application/vnd.fsc.weblaunch`],[`fst`,`image/vnd.fst`],[`ftc`,`application/vnd.fluxtime.clip`],[`fti`,`application/vnd.anser-web-funds-transfer-initiation`],[`funk`,`audio/make`],[`fvt`,`video/vnd.fvt`],[`fxp`,`application/vnd.adobe.fxp`],[`fzs`,`application/vnd.fuzzysheet`],[`g`,`text/plain`],[`g2w`,`application/vnd.geoplan`],[`g3`,`image/g3fax`],[`g3w`,`application/vnd.geospace`],[`gac`,`application/vnd.groove-account`],[`gdl`,`model/vnd.gdl`],[`geo`,`application/vnd.dynageo`],[`geojson`,`application/geo+json`],[`gex`,`application/vnd.geometry-explorer`],[`ggb`,`application/vnd.geogebra.file`],[`ggt`,`application/vnd.geogebra.tool`],[`ghf`,`application/vnd.groove-help`],[`gif`,`image/gif`],[`gim`,`application/vnd.groove-identity-message`],[`gl`,[`video/gl`,`video/x-gl`]],[`gmx`,`application/vnd.gmx`],[`gnumeric`,`application/x-gnumeric`],[`gph`,`application/vnd.flographit`],[`gqf`,`application/vnd.grafeq`],[`gram`,`application/srgs`],[`grv`,`application/vnd.groove-injector`],[`grxml`,`application/srgs+xml`],[`gsd`,`audio/x-gsm`],[`gsf`,`application/x-font-ghostscript`],[`gsm`,`audio/x-gsm`],[`gsp`,`application/x-gsp`],[`gss`,`application/x-gss`],[`gtar`,`application/x-gtar`],[`gtm`,`application/vnd.groove-tool-message`],[`gtw`,`model/vnd.gtw`],[`gv`,`text/vnd.graphviz`],[`gxt`,`application/vnd.geonext`],[`gz`,[`application/x-gzip`,`application/x-compressed`]],[`gzip`,[`multipart/x-gzip`,`application/x-gzip`]],[`h`,[`text/plain`,`text/x-h`]],[`h261`,`video/h261`],[`h263`,`video/h263`],[`h264`,`video/h264`],[`hal`,`application/vnd.hal+xml`],[`hbci`,`application/vnd.hbci`],[`hdf`,`application/x-hdf`],[`help`,`application/x-helpfile`],[`hgl`,`application/vnd.hp-hpgl`],[`hh`,[`text/plain`,`text/x-h`]],[`hlb`,`text/x-script`],[`hlp`,[`application/winhlp`,`application/hlp`,`application/x-helpfile`,`application/x-winhelp`]],[`hpg`,`application/vnd.hp-hpgl`],[`hpgl`,`application/vnd.hp-hpgl`],[`hpid`,`application/vnd.hp-hpid`],[`hps`,`application/vnd.hp-hps`],[`hqx`,[`application/mac-binhex40`,`application/binhex`,`application/binhex4`,`application/mac-binhex`,`application/x-binhex40`,`application/x-mac-binhex40`]],[`hta`,`application/hta`],[`htc`,`text/x-component`],[`htke`,`application/vnd.kenameaapp`],[`htm`,`text/html`],[`html`,`text/html`],[`htmls`,`text/html`],[`htt`,`text/webviewhtml`],[`htx`,`text/html`],[`hvd`,`application/vnd.yamaha.hv-dic`],[`hvp`,`application/vnd.yamaha.hv-voice`],[`hvs`,`application/vnd.yamaha.hv-script`],[`i2g`,`application/vnd.intergeo`],[`icc`,`application/vnd.iccprofile`],[`ice`,`x-conference/x-cooltalk`],[`ico`,`image/x-icon`],[`ics`,`text/calendar`],[`idc`,`text/plain`],[`ief`,`image/ief`],[`iefs`,`image/ief`],[`ifm`,`application/vnd.shana.informed.formdata`],[`iges`,[`application/iges`,`model/iges`]],[`igl`,`application/vnd.igloader`],[`igm`,`application/vnd.insors.igm`],[`igs`,[`application/iges`,`model/iges`]],[`igx`,`application/vnd.micrografx.igx`],[`iif`,`application/vnd.shana.informed.interchange`],[`iii`,`application/x-iphone`],[`ima`,`application/x-ima`],[`imap`,`application/x-httpd-imap`],[`imp`,`application/vnd.accpac.simply.imp`],[`ims`,`application/vnd.ms-ims`],[`inf`,`application/inf`],[`ins`,[`application/x-internet-signup`,`application/x-internett-signup`]],[`ip`,`application/x-ip2`],[`ipfix`,`application/ipfix`],[`ipk`,`application/vnd.shana.informed.package`],[`irm`,`application/vnd.ibm.rights-management`],[`irp`,`application/vnd.irepository.package+xml`],[`isp`,`application/x-internet-signup`],[`isu`,`video/x-isvideo`],[`it`,`audio/it`],[`itp`,`application/vnd.shana.informed.formtemplate`],[`iv`,`application/x-inventor`],[`ivp`,`application/vnd.immervision-ivp`],[`ivr`,`i-world/i-vrml`],[`ivu`,`application/vnd.immervision-ivu`],[`ivy`,`application/x-livescreen`],[`jad`,`text/vnd.sun.j2me.app-descriptor`],[`jam`,[`application/vnd.jam`,`audio/x-jam`]],[`jar`,`application/java-archive`],[`jav`,[`text/plain`,`text/x-java-source`]],[`java`,[`text/plain`,`text/x-java-source,java`,`text/x-java-source`]],[`jcm`,`application/x-java-commerce`],[`jfif`,[`image/pipeg`,`image/jpeg`,`image/pjpeg`]],[`jfif-tbnl`,`image/jpeg`],[`jisp`,`application/vnd.jisp`],[`jlt`,`application/vnd.hp-jlyt`],[`jnlp`,`application/x-java-jnlp-file`],[`joda`,`application/vnd.joost.joda-archive`],[`jpe`,[`image/jpeg`,`image/pjpeg`]],[`jpeg`,[`image/jpeg`,`image/pjpeg`]],[`jpg`,[`image/jpeg`,`image/pjpeg`]],[`jpgv`,`video/jpeg`],[`jpm`,`video/jpm`],[`jps`,`image/x-jps`],[`js`,[`application/javascript`,`application/ecmascript`,`text/javascript`,`text/ecmascript`,`application/x-javascript`]],[`json`,`application/json`],[`jut`,`image/jutvision`],[`kar`,[`audio/midi`,`music/x-karaoke`]],[`karbon`,`application/vnd.kde.karbon`],[`kfo`,`application/vnd.kde.kformula`],[`kia`,`application/vnd.kidspiration`],[`kml`,`application/vnd.google-earth.kml+xml`],[`kmz`,`application/vnd.google-earth.kmz`],[`kne`,`application/vnd.kinar`],[`kon`,`application/vnd.kde.kontour`],[`kpr`,`application/vnd.kde.kpresenter`],[`ksh`,[`application/x-ksh`,`text/x-script.ksh`]],[`ksp`,`application/vnd.kde.kspread`],[`ktx`,`image/ktx`],[`ktz`,`application/vnd.kahootz`],[`kwd`,`application/vnd.kde.kword`],[`la`,[`audio/nspaudio`,`audio/x-nspaudio`]],[`lam`,`audio/x-liveaudio`],[`lasxml`,`application/vnd.las.las+xml`],[`latex`,`application/x-latex`],[`lbd`,`application/vnd.llamagraphics.life-balance.desktop`],[`lbe`,`application/vnd.llamagraphics.life-balance.exchange+xml`],[`les`,`application/vnd.hhe.lesson-player`],[`lha`,[`application/octet-stream`,`application/lha`,`application/x-lha`]],[`lhx`,`application/octet-stream`],[`link66`,`application/vnd.route66.link66+xml`],[`list`,`text/plain`],[`lma`,[`audio/nspaudio`,`audio/x-nspaudio`]],[`log`,`text/plain`],[`lrm`,`application/vnd.ms-lrm`],[`lsf`,`video/x-la-asf`],[`lsp`,[`application/x-lisp`,`text/x-script.lisp`]],[`lst`,`text/plain`],[`lsx`,[`video/x-la-asf`,`text/x-la-asf`]],[`ltf`,`application/vnd.frogans.ltf`],[`ltx`,`application/x-latex`],[`lvp`,`audio/vnd.lucent.voice`],[`lwp`,`application/vnd.lotus-wordpro`],[`lzh`,[`application/octet-stream`,`application/x-lzh`]],[`lzx`,[`application/lzx`,`application/octet-stream`,`application/x-lzx`]],[`m`,[`text/plain`,`text/x-m`]],[`m13`,`application/x-msmediaview`],[`m14`,`application/x-msmediaview`],[`m1v`,`video/mpeg`],[`m21`,`application/mp21`],[`m2a`,`audio/mpeg`],[`m2v`,`video/mpeg`],[`m3u`,[`audio/x-mpegurl`,`audio/x-mpequrl`]],[`m3u8`,`application/vnd.apple.mpegurl`],[`m4v`,`video/x-m4v`],[`ma`,`application/mathematica`],[`mads`,`application/mads+xml`],[`mag`,`application/vnd.ecowin.chart`],[`man`,`application/x-troff-man`],[`map`,`application/x-navimap`],[`mar`,`text/plain`],[`mathml`,`application/mathml+xml`],[`mbd`,`application/mbedlet`],[`mbk`,`application/vnd.mobius.mbk`],[`mbox`,`application/mbox`],[`mc$`,`application/x-magic-cap-package-1.0`],[`mc1`,`application/vnd.medcalcdata`],[`mcd`,[`application/mcad`,`application/vnd.mcd`,`application/x-mathcad`]],[`mcf`,[`image/vasa`,`text/mcf`]],[`mcp`,`application/netmc`],[`mcurl`,`text/vnd.curl.mcurl`],[`mdb`,`application/x-msaccess`],[`mdi`,`image/vnd.ms-modi`],[`me`,`application/x-troff-me`],[`meta4`,`application/metalink4+xml`],[`mets`,`application/mets+xml`],[`mfm`,`application/vnd.mfmp`],[`mgp`,`application/vnd.osgeo.mapguide.package`],[`mgz`,`application/vnd.proteus.magazine`],[`mht`,`message/rfc822`],[`mhtml`,`message/rfc822`],[`mid`,[`audio/mid`,`audio/midi`,`music/crescendo`,`x-music/x-midi`,`audio/x-midi`,`application/x-midi`,`audio/x-mid`]],[`midi`,[`audio/midi`,`music/crescendo`,`x-music/x-midi`,`audio/x-midi`,`application/x-midi`,`audio/x-mid`]],[`mif`,[`application/vnd.mif`,`application/x-mif`,`application/x-frame`]],[`mime`,[`message/rfc822`,`www/mime`]],[`mj2`,`video/mj2`],[`mjf`,`audio/x-vnd.audioexplosion.mjuicemediafile`],[`mjpg`,`video/x-motion-jpeg`],[`mlp`,`application/vnd.dolby.mlp`],[`mm`,[`application/base64`,`application/x-meme`]],[`mmd`,`application/vnd.chipnuts.karaoke-mmd`],[`mme`,`application/base64`],[`mmf`,`application/vnd.smaf`],[`mmr`,`image/vnd.fujixerox.edmics-mmr`],[`mny`,`application/x-msmoney`],[`mod`,[`audio/mod`,`audio/x-mod`]],[`mods`,`application/mods+xml`],[`moov`,`video/quicktime`],[`mov`,`video/quicktime`],[`movie`,`video/x-sgi-movie`],[`mp2`,[`video/mpeg`,`audio/mpeg`,`video/x-mpeg`,`audio/x-mpeg`,`video/x-mpeq2a`]],[`mp3`,[`audio/mpeg`,`audio/mpeg3`,`video/mpeg`,`audio/x-mpeg-3`,`video/x-mpeg`]],[`mp4`,[`video/mp4`,`application/mp4`]],[`mp4a`,`audio/mp4`],[`mpa`,[`video/mpeg`,`audio/mpeg`]],[`mpc`,[`application/vnd.mophun.certificate`,`application/x-project`]],[`mpe`,`video/mpeg`],[`mpeg`,`video/mpeg`],[`mpg`,[`video/mpeg`,`audio/mpeg`]],[`mpga`,`audio/mpeg`],[`mpkg`,`application/vnd.apple.installer+xml`],[`mpm`,`application/vnd.blueice.multipass`],[`mpn`,`application/vnd.mophun.application`],[`mpp`,`application/vnd.ms-project`],[`mpt`,`application/x-project`],[`mpv`,`application/x-project`],[`mpv2`,`video/mpeg`],[`mpx`,`application/x-project`],[`mpy`,`application/vnd.ibm.minipay`],[`mqy`,`application/vnd.mobius.mqy`],[`mrc`,`application/marc`],[`mrcx`,`application/marcxml+xml`],[`ms`,`application/x-troff-ms`],[`mscml`,`application/mediaservercontrol+xml`],[`mseq`,`application/vnd.mseq`],[`msf`,`application/vnd.epson.msf`],[`msg`,`application/vnd.ms-outlook`],[`msh`,`model/mesh`],[`msl`,`application/vnd.mobius.msl`],[`msty`,`application/vnd.muvee.style`],[`mts`,`model/vnd.mts`],[`mus`,`application/vnd.musician`],[`musicxml`,`application/vnd.recordare.musicxml+xml`],[`mv`,`video/x-sgi-movie`],[`mvb`,`application/x-msmediaview`],[`mwf`,`application/vnd.mfer`],[`mxf`,`application/mxf`],[`mxl`,`application/vnd.recordare.musicxml`],[`mxml`,`application/xv+xml`],[`mxs`,`application/vnd.triscape.mxs`],[`mxu`,`video/vnd.mpegurl`],[`my`,`audio/make`],[`mzz`,`application/x-vnd.audioexplosion.mzz`],[`n-gage`,`application/vnd.nokia.n-gage.symbian.install`],[`n3`,`text/n3`],[`nap`,`image/naplps`],[`naplps`,`image/naplps`],[`nbp`,`application/vnd.wolfram.player`],[`nc`,`application/x-netcdf`],[`ncm`,`application/vnd.nokia.configuration-message`],[`ncx`,`application/x-dtbncx+xml`],[`ngdat`,`application/vnd.nokia.n-gage.data`],[`nif`,`image/x-niff`],[`niff`,`image/x-niff`],[`nix`,`application/x-mix-transfer`],[`nlu`,`application/vnd.neurolanguage.nlu`],[`nml`,`application/vnd.enliven`],[`nnd`,`application/vnd.noblenet-directory`],[`nns`,`application/vnd.noblenet-sealer`],[`nnw`,`application/vnd.noblenet-web`],[`npx`,`image/vnd.net-fpx`],[`nsc`,`application/x-conference`],[`nsf`,`application/vnd.lotus-notes`],[`nvd`,`application/x-navidoc`],[`nws`,`message/rfc822`],[`o`,`application/octet-stream`],[`oa2`,`application/vnd.fujitsu.oasys2`],[`oa3`,`application/vnd.fujitsu.oasys3`],[`oas`,`application/vnd.fujitsu.oasys`],[`obd`,`application/x-msbinder`],[`oda`,`application/oda`],[`odb`,`application/vnd.oasis.opendocument.database`],[`odc`,`application/vnd.oasis.opendocument.chart`],[`odf`,`application/vnd.oasis.opendocument.formula`],[`odft`,`application/vnd.oasis.opendocument.formula-template`],[`odg`,`application/vnd.oasis.opendocument.graphics`],[`odi`,`application/vnd.oasis.opendocument.image`],[`odm`,`application/vnd.oasis.opendocument.text-master`],[`odp`,`application/vnd.oasis.opendocument.presentation`],[`ods`,`application/vnd.oasis.opendocument.spreadsheet`],[`odt`,`application/vnd.oasis.opendocument.text`],[`oga`,`audio/ogg`],[`ogv`,`video/ogg`],[`ogx`,`application/ogg`],[`omc`,`application/x-omc`],[`omcd`,`application/x-omcdatamaker`],[`omcr`,`application/x-omcregerator`],[`onetoc`,`application/onenote`],[`opf`,`application/oebps-package+xml`],[`org`,`application/vnd.lotus-organizer`],[`osf`,`application/vnd.yamaha.openscoreformat`],[`osfpvg`,`application/vnd.yamaha.openscoreformat.osfpvg+xml`],[`otc`,`application/vnd.oasis.opendocument.chart-template`],[`otf`,`application/x-font-otf`],[`otg`,`application/vnd.oasis.opendocument.graphics-template`],[`oth`,`application/vnd.oasis.opendocument.text-web`],[`oti`,`application/vnd.oasis.opendocument.image-template`],[`otp`,`application/vnd.oasis.opendocument.presentation-template`],[`ots`,`application/vnd.oasis.opendocument.spreadsheet-template`],[`ott`,`application/vnd.oasis.opendocument.text-template`],[`oxt`,`application/vnd.openofficeorg.extension`],[`p`,`text/x-pascal`],[`p10`,[`application/pkcs10`,`application/x-pkcs10`]],[`p12`,[`application/pkcs-12`,`application/x-pkcs12`]],[`p7a`,`application/x-pkcs7-signature`],[`p7b`,`application/x-pkcs7-certificates`],[`p7c`,[`application/pkcs7-mime`,`application/x-pkcs7-mime`]],[`p7m`,[`application/pkcs7-mime`,`application/x-pkcs7-mime`]],[`p7r`,`application/x-pkcs7-certreqresp`],[`p7s`,[`application/pkcs7-signature`,`application/x-pkcs7-signature`]],[`p8`,`application/pkcs8`],[`par`,`text/plain-bas`],[`part`,`application/pro_eng`],[`pas`,`text/pascal`],[`paw`,`application/vnd.pawaafile`],[`pbd`,`application/vnd.powerbuilder6`],[`pbm`,`image/x-portable-bitmap`],[`pcf`,`application/x-font-pcf`],[`pcl`,[`application/vnd.hp-pcl`,`application/x-pcl`]],[`pclxl`,`application/vnd.hp-pclxl`],[`pct`,`image/x-pict`],[`pcurl`,`application/vnd.curl.pcurl`],[`pcx`,`image/x-pcx`],[`pdb`,[`application/vnd.palm`,`chemical/x-pdb`]],[`pdf`,`application/pdf`],[`pfa`,`application/x-font-type1`],[`pfr`,`application/font-tdpfr`],[`pfunk`,[`audio/make`,`audio/make.my.funk`]],[`pfx`,`application/x-pkcs12`],[`pgm`,[`image/x-portable-graymap`,`image/x-portable-greymap`]],[`pgn`,`application/x-chess-pgn`],[`pgp`,`application/pgp-signature`],[`pic`,[`image/pict`,`image/x-pict`]],[`pict`,`image/pict`],[`pkg`,`application/x-newton-compatible-pkg`],[`pki`,`application/pkixcmp`],[`pkipath`,`application/pkix-pkipath`],[`pko`,[`application/ynd.ms-pkipko`,`application/vnd.ms-pki.pko`]],[`pl`,[`text/plain`,`text/x-script.perl`]],[`plb`,`application/vnd.3gpp.pic-bw-large`],[`plc`,`application/vnd.mobius.plc`],[`plf`,`application/vnd.pocketlearn`],[`pls`,`application/pls+xml`],[`plx`,`application/x-pixclscript`],[`pm`,[`text/x-script.perl-module`,`image/x-xpixmap`]],[`pm4`,`application/x-pagemaker`],[`pm5`,`application/x-pagemaker`],[`pma`,`application/x-perfmon`],[`pmc`,`application/x-perfmon`],[`pml`,[`application/vnd.ctc-posml`,`application/x-perfmon`]],[`pmr`,`application/x-perfmon`],[`pmw`,`application/x-perfmon`],[`png`,`image/png`],[`pnm`,[`application/x-portable-anymap`,`image/x-portable-anymap`]],[`portpkg`,`application/vnd.macports.portpkg`],[`pot`,[`application/vnd.ms-powerpoint`,`application/mspowerpoint`]],[`potm`,`application/vnd.ms-powerpoint.template.macroenabled.12`],[`potx`,`application/vnd.openxmlformats-officedocument.presentationml.template`],[`pov`,`model/x-pov`],[`ppa`,`application/vnd.ms-powerpoint`],[`ppam`,`application/vnd.ms-powerpoint.addin.macroenabled.12`],[`ppd`,`application/vnd.cups-ppd`],[`ppm`,`image/x-portable-pixmap`],[`pps`,[`application/vnd.ms-powerpoint`,`application/mspowerpoint`]],[`ppsm`,`application/vnd.ms-powerpoint.slideshow.macroenabled.12`],[`ppsx`,`application/vnd.openxmlformats-officedocument.presentationml.slideshow`],[`ppt`,[`application/vnd.ms-powerpoint`,`application/mspowerpoint`,`application/powerpoint`,`application/x-mspowerpoint`]],[`pptm`,`application/vnd.ms-powerpoint.presentation.macroenabled.12`],[`pptx`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`],[`ppz`,`application/mspowerpoint`],[`prc`,`application/x-mobipocket-ebook`],[`pre`,[`application/vnd.lotus-freelance`,`application/x-freelance`]],[`prf`,`application/pics-rules`],[`prt`,`application/pro_eng`],[`ps`,`application/postscript`],[`psb`,`application/vnd.3gpp.pic-bw-small`],[`psd`,[`application/octet-stream`,`image/vnd.adobe.photoshop`]],[`psf`,`application/x-font-linux-psf`],[`pskcxml`,`application/pskc+xml`],[`ptid`,`application/vnd.pvi.ptid1`],[`pub`,`application/x-mspublisher`],[`pvb`,`application/vnd.3gpp.pic-bw-var`],[`pvu`,`paleovu/x-pv`],[`pwn`,`application/vnd.3m.post-it-notes`],[`pwz`,`application/vnd.ms-powerpoint`],[`py`,`text/x-script.phyton`],[`pya`,`audio/vnd.ms-playready.media.pya`],[`pyc`,`application/x-bytecode.python`],[`pyv`,`video/vnd.ms-playready.media.pyv`],[`qam`,`application/vnd.epson.quickanime`],[`qbo`,`application/vnd.intu.qbo`],[`qcp`,`audio/vnd.qcelp`],[`qd3`,`x-world/x-3dmf`],[`qd3d`,`x-world/x-3dmf`],[`qfx`,`application/vnd.intu.qfx`],[`qif`,`image/x-quicktime`],[`qps`,`application/vnd.publishare-delta-tree`],[`qt`,`video/quicktime`],[`qtc`,`video/x-qtc`],[`qti`,`image/x-quicktime`],[`qtif`,`image/x-quicktime`],[`qxd`,`application/vnd.quark.quarkxpress`],[`ra`,[`audio/x-realaudio`,`audio/x-pn-realaudio`,`audio/x-pn-realaudio-plugin`]],[`ram`,`audio/x-pn-realaudio`],[`rar`,`application/x-rar-compressed`],[`ras`,[`image/cmu-raster`,`application/x-cmu-raster`,`image/x-cmu-raster`]],[`rast`,`image/cmu-raster`],[`rcprofile`,`application/vnd.ipunplugged.rcprofile`],[`rdf`,`application/rdf+xml`],[`rdz`,`application/vnd.data-vision.rdz`],[`rep`,`application/vnd.businessobjects`],[`res`,`application/x-dtbresource+xml`],[`rexx`,`text/x-script.rexx`],[`rf`,`image/vnd.rn-realflash`],[`rgb`,`image/x-rgb`],[`rif`,`application/reginfo+xml`],[`rip`,`audio/vnd.rip`],[`rl`,`application/resource-lists+xml`],[`rlc`,`image/vnd.fujixerox.edmics-rlc`],[`rld`,`application/resource-lists-diff+xml`],[`rm`,[`application/vnd.rn-realmedia`,`audio/x-pn-realaudio`]],[`rmi`,`audio/mid`],[`rmm`,`audio/x-pn-realaudio`],[`rmp`,[`audio/x-pn-realaudio-plugin`,`audio/x-pn-realaudio`]],[`rms`,`application/vnd.jcp.javame.midlet-rms`],[`rnc`,`application/relax-ng-compact-syntax`],[`rng`,[`application/ringing-tones`,`application/vnd.nokia.ringing-tone`]],[`rnx`,`application/vnd.rn-realplayer`],[`roff`,`application/x-troff`],[`rp`,`image/vnd.rn-realpix`],[`rp9`,`application/vnd.cloanto.rp9`],[`rpm`,`audio/x-pn-realaudio-plugin`],[`rpss`,`application/vnd.nokia.radio-presets`],[`rpst`,`application/vnd.nokia.radio-preset`],[`rq`,`application/sparql-query`],[`rs`,`application/rls-services+xml`],[`rsd`,`application/rsd+xml`],[`rt`,[`text/richtext`,`text/vnd.rn-realtext`]],[`rtf`,[`application/rtf`,`text/richtext`,`application/x-rtf`]],[`rtx`,[`text/richtext`,`application/rtf`]],[`rv`,`video/vnd.rn-realvideo`],[`s`,`text/x-asm`],[`s3m`,`audio/s3m`],[`saf`,`application/vnd.yamaha.smaf-audio`],[`saveme`,`application/octet-stream`],[`sbk`,`application/x-tbook`],[`sbml`,`application/sbml+xml`],[`sc`,`application/vnd.ibm.secure-container`],[`scd`,`application/x-msschedule`],[`scm`,[`application/vnd.lotus-screencam`,`video/x-scm`,`text/x-script.guile`,`application/x-lotusscreencam`,`text/x-script.scheme`]],[`scq`,`application/scvp-cv-request`],[`scs`,`application/scvp-cv-response`],[`sct`,`text/scriptlet`],[`scurl`,`text/vnd.curl.scurl`],[`sda`,`application/vnd.stardivision.draw`],[`sdc`,`application/vnd.stardivision.calc`],[`sdd`,`application/vnd.stardivision.impress`],[`sdkm`,`application/vnd.solent.sdkm+xml`],[`sdml`,`text/plain`],[`sdp`,[`application/sdp`,`application/x-sdp`]],[`sdr`,`application/sounder`],[`sdw`,`application/vnd.stardivision.writer`],[`sea`,[`application/sea`,`application/x-sea`]],[`see`,`application/vnd.seemail`],[`seed`,`application/vnd.fdsn.seed`],[`sema`,`application/vnd.sema`],[`semd`,`application/vnd.semd`],[`semf`,`application/vnd.semf`],[`ser`,`application/java-serialized-object`],[`set`,`application/set`],[`setpay`,`application/set-payment-initiation`],[`setreg`,`application/set-registration-initiation`],[`sfd-hdstx`,`application/vnd.hydrostatix.sof-data`],[`sfs`,`application/vnd.spotfire.sfs`],[`sgl`,`application/vnd.stardivision.writer-global`],[`sgm`,[`text/sgml`,`text/x-sgml`]],[`sgml`,[`text/sgml`,`text/x-sgml`]],[`sh`,[`application/x-shar`,`application/x-bsh`,`application/x-sh`,`text/x-script.sh`]],[`shar`,[`application/x-bsh`,`application/x-shar`]],[`shf`,`application/shf+xml`],[`shtml`,[`text/html`,`text/x-server-parsed-html`]],[`sid`,`audio/x-psid`],[`sis`,`application/vnd.symbian.install`],[`sit`,[`application/x-stuffit`,`application/x-sit`]],[`sitx`,`application/x-stuffitx`],[`skd`,`application/x-koan`],[`skm`,`application/x-koan`],[`skp`,[`application/vnd.koan`,`application/x-koan`]],[`skt`,`application/x-koan`],[`sl`,`application/x-seelogo`],[`sldm`,`application/vnd.ms-powerpoint.slide.macroenabled.12`],[`sldx`,`application/vnd.openxmlformats-officedocument.presentationml.slide`],[`slt`,`application/vnd.epson.salt`],[`sm`,`application/vnd.stepmania.stepchart`],[`smf`,`application/vnd.stardivision.math`],[`smi`,[`application/smil`,`application/smil+xml`]],[`smil`,`application/smil`],[`snd`,[`audio/basic`,`audio/x-adpcm`]],[`snf`,`application/x-font-snf`],[`sol`,`application/solids`],[`spc`,[`text/x-speech`,`application/x-pkcs7-certificates`]],[`spf`,`application/vnd.yamaha.smaf-phrase`],[`spl`,[`application/futuresplash`,`application/x-futuresplash`]],[`spot`,`text/vnd.in3d.spot`],[`spp`,`application/scvp-vp-response`],[`spq`,`application/scvp-vp-request`],[`spr`,`application/x-sprite`],[`sprite`,`application/x-sprite`],[`src`,`application/x-wais-source`],[`sru`,`application/sru+xml`],[`srx`,`application/sparql-results+xml`],[`sse`,`application/vnd.kodak-descriptor`],[`ssf`,`application/vnd.epson.ssf`],[`ssi`,`text/x-server-parsed-html`],[`ssm`,`application/streamingmedia`],[`ssml`,`application/ssml+xml`],[`sst`,[`application/vnd.ms-pkicertstore`,`application/vnd.ms-pki.certstore`]],[`st`,`application/vnd.sailingtracker.track`],[`stc`,`application/vnd.sun.xml.calc.template`],[`std`,`application/vnd.sun.xml.draw.template`],[`step`,`application/step`],[`stf`,`application/vnd.wt.stf`],[`sti`,`application/vnd.sun.xml.impress.template`],[`stk`,`application/hyperstudio`],[`stl`,[`application/vnd.ms-pkistl`,`application/sla`,`application/vnd.ms-pki.stl`,`application/x-navistyle`]],[`stm`,`text/html`],[`stp`,`application/step`],[`str`,`application/vnd.pg.format`],[`stw`,`application/vnd.sun.xml.writer.template`],[`sub`,`image/vnd.dvb.subtitle`],[`sus`,`application/vnd.sus-calendar`],[`sv4cpio`,`application/x-sv4cpio`],[`sv4crc`,`application/x-sv4crc`],[`svc`,`application/vnd.dvb.service`],[`svd`,`application/vnd.svd`],[`svf`,[`image/vnd.dwg`,`image/x-dwg`]],[`svg`,`image/svg+xml`],[`svr`,[`x-world/x-svr`,`application/x-world`]],[`swf`,`application/x-shockwave-flash`],[`swi`,`application/vnd.aristanetworks.swi`],[`sxc`,`application/vnd.sun.xml.calc`],[`sxd`,`application/vnd.sun.xml.draw`],[`sxg`,`application/vnd.sun.xml.writer.global`],[`sxi`,`application/vnd.sun.xml.impress`],[`sxm`,`application/vnd.sun.xml.math`],[`sxw`,`application/vnd.sun.xml.writer`],[`t`,[`text/troff`,`application/x-troff`]],[`talk`,`text/x-speech`],[`tao`,`application/vnd.tao.intent-module-archive`],[`tar`,`application/x-tar`],[`tbk`,[`application/toolbook`,`application/x-tbook`]],[`tcap`,`application/vnd.3gpp2.tcap`],[`tcl`,[`text/x-script.tcl`,`application/x-tcl`]],[`tcsh`,`text/x-script.tcsh`],[`teacher`,`application/vnd.smart.teacher`],[`tei`,`application/tei+xml`],[`tex`,`application/x-tex`],[`texi`,`application/x-texinfo`],[`texinfo`,`application/x-texinfo`],[`text`,[`application/plain`,`text/plain`]],[`tfi`,`application/thraud+xml`],[`tfm`,`application/x-tex-tfm`],[`tgz`,[`application/gnutar`,`application/x-compressed`]],[`thmx`,`application/vnd.ms-officetheme`],[`tif`,[`image/tiff`,`image/x-tiff`]],[`tiff`,[`image/tiff`,`image/x-tiff`]],[`tmo`,`application/vnd.tmobile-livetv`],[`torrent`,`application/x-bittorrent`],[`tpl`,`application/vnd.groove-tool-template`],[`tpt`,`application/vnd.trid.tpt`],[`tr`,`application/x-troff`],[`tra`,`application/vnd.trueapp`],[`trm`,`application/x-msterminal`],[`tsd`,`application/timestamped-data`],[`tsi`,`audio/tsp-audio`],[`tsp`,[`application/dsptype`,`audio/tsplayer`]],[`tsv`,`text/tab-separated-values`],[`ttf`,`application/x-font-ttf`],[`ttl`,`text/turtle`],[`turbot`,`image/florian`],[`twd`,`application/vnd.simtech-mindmapper`],[`txd`,`application/vnd.genomatix.tuxedo`],[`txf`,`application/vnd.mobius.txf`],[`txt`,`text/plain`],[`ufd`,`application/vnd.ufdl`],[`uil`,`text/x-uil`],[`uls`,`text/iuls`],[`umj`,`application/vnd.umajin`],[`uni`,`text/uri-list`],[`unis`,`text/uri-list`],[`unityweb`,`application/vnd.unity`],[`unv`,`application/i-deas`],[`uoml`,`application/vnd.uoml+xml`],[`uri`,`text/uri-list`],[`uris`,`text/uri-list`],[`ustar`,[`application/x-ustar`,`multipart/x-ustar`]],[`utz`,`application/vnd.uiq.theme`],[`uu`,[`application/octet-stream`,`text/x-uuencode`]],[`uue`,`text/x-uuencode`],[`uva`,`audio/vnd.dece.audio`],[`uvh`,`video/vnd.dece.hd`],[`uvi`,`image/vnd.dece.graphic`],[`uvm`,`video/vnd.dece.mobile`],[`uvp`,`video/vnd.dece.pd`],[`uvs`,`video/vnd.dece.sd`],[`uvu`,`video/vnd.uvvu.mp4`],[`uvv`,`video/vnd.dece.video`],[`vcd`,`application/x-cdlink`],[`vcf`,`text/x-vcard`],[`vcg`,`application/vnd.groove-vcard`],[`vcs`,`text/x-vcalendar`],[`vcx`,`application/vnd.vcx`],[`vda`,`application/vda`],[`vdo`,`video/vdo`],[`vew`,`application/groupwise`],[`vis`,`application/vnd.visionary`],[`viv`,[`video/vivo`,`video/vnd.vivo`]],[`vivo`,[`video/vivo`,`video/vnd.vivo`]],[`vmd`,`application/vocaltec-media-desc`],[`vmf`,`application/vocaltec-media-file`],[`voc`,[`audio/voc`,`audio/x-voc`]],[`vos`,`video/vosaic`],[`vox`,`audio/voxware`],[`vqe`,`audio/x-twinvq-plugin`],[`vqf`,`audio/x-twinvq`],[`vql`,`audio/x-twinvq-plugin`],[`vrml`,[`model/vrml`,`x-world/x-vrml`,`application/x-vrml`]],[`vrt`,`x-world/x-vrt`],[`vsd`,[`application/vnd.visio`,`application/x-visio`]],[`vsf`,`application/vnd.vsf`],[`vst`,`application/x-visio`],[`vsw`,`application/x-visio`],[`vtu`,`model/vnd.vtu`],[`vxml`,`application/voicexml+xml`],[`w60`,`application/wordperfect6.0`],[`w61`,`application/wordperfect6.1`],[`w6w`,`application/msword`],[`wad`,`application/x-doom`],[`wav`,[`audio/wav`,`audio/x-wav`]],[`wax`,`audio/x-ms-wax`],[`wb1`,`application/x-qpro`],[`wbmp`,`image/vnd.wap.wbmp`],[`wbs`,`application/vnd.criticaltools.wbs+xml`],[`wbxml`,`application/vnd.wap.wbxml`],[`wcm`,`application/vnd.ms-works`],[`wdb`,`application/vnd.ms-works`],[`web`,`application/vnd.xara`],[`weba`,`audio/webm`],[`webm`,`video/webm`],[`webp`,`image/webp`],[`wg`,`application/vnd.pmi.widget`],[`wgt`,`application/widget`],[`wiz`,`application/msword`],[`wk1`,`application/x-123`],[`wks`,`application/vnd.ms-works`],[`wm`,`video/x-ms-wm`],[`wma`,`audio/x-ms-wma`],[`wmd`,`application/x-ms-wmd`],[`wmf`,[`windows/metafile`,`application/x-msmetafile`]],[`wml`,`text/vnd.wap.wml`],[`wmlc`,`application/vnd.wap.wmlc`],[`wmls`,`text/vnd.wap.wmlscript`],[`wmlsc`,`application/vnd.wap.wmlscriptc`],[`wmv`,`video/x-ms-wmv`],[`wmx`,`video/x-ms-wmx`],[`wmz`,`application/x-ms-wmz`],[`woff`,`application/x-font-woff`],[`word`,`application/msword`],[`wp`,`application/wordperfect`],[`wp5`,[`application/wordperfect`,`application/wordperfect6.0`]],[`wp6`,`application/wordperfect`],[`wpd`,[`application/wordperfect`,`application/vnd.wordperfect`,`application/x-wpwin`]],[`wpl`,`application/vnd.ms-wpl`],[`wps`,`application/vnd.ms-works`],[`wq1`,`application/x-lotus`],[`wqd`,`application/vnd.wqd`],[`wri`,[`application/mswrite`,`application/x-wri`,`application/x-mswrite`]],[`wrl`,[`model/vrml`,`x-world/x-vrml`,`application/x-world`]],[`wrz`,[`model/vrml`,`x-world/x-vrml`]],[`wsc`,`text/scriplet`],[`wsdl`,`application/wsdl+xml`],[`wspolicy`,`application/wspolicy+xml`],[`wsrc`,`application/x-wais-source`],[`wtb`,`application/vnd.webturbo`],[`wtk`,`application/x-wintalk`],[`wvx`,`video/x-ms-wvx`],[`x-png`,`image/png`],[`x3d`,`application/vnd.hzn-3d-crossword`],[`xaf`,`x-world/x-vrml`],[`xap`,`application/x-silverlight-app`],[`xar`,`application/vnd.xara`],[`xbap`,`application/x-ms-xbap`],[`xbd`,`application/vnd.fujixerox.docuworks.binder`],[`xbm`,[`image/xbm`,`image/x-xbm`,`image/x-xbitmap`]],[`xdf`,`application/xcap-diff+xml`],[`xdm`,`application/vnd.syncml.dm+xml`],[`xdp`,`application/vnd.adobe.xdp+xml`],[`xdr`,`video/x-amt-demorun`],[`xdssc`,`application/dssc+xml`],[`xdw`,`application/vnd.fujixerox.docuworks`],[`xenc`,`application/xenc+xml`],[`xer`,`application/patch-ops-error+xml`],[`xfdf`,`application/vnd.adobe.xfdf`],[`xfdl`,`application/vnd.xfdl`],[`xgz`,`xgl/drawing`],[`xhtml`,`application/xhtml+xml`],[`xif`,`image/vnd.xiff`],[`xl`,`application/excel`],[`xla`,[`application/vnd.ms-excel`,`application/excel`,`application/x-msexcel`,`application/x-excel`]],[`xlam`,`application/vnd.ms-excel.addin.macroenabled.12`],[`xlb`,[`application/excel`,`application/vnd.ms-excel`,`application/x-excel`]],[`xlc`,[`application/vnd.ms-excel`,`application/excel`,`application/x-excel`]],[`xld`,[`application/excel`,`application/x-excel`]],[`xlk`,[`application/excel`,`application/x-excel`]],[`xll`,[`application/excel`,`application/vnd.ms-excel`,`application/x-excel`]],[`xlm`,[`application/vnd.ms-excel`,`application/excel`,`application/x-excel`]],[`xls`,[`application/vnd.ms-excel`,`application/excel`,`application/x-msexcel`,`application/x-excel`]],[`xlsb`,`application/vnd.ms-excel.sheet.binary.macroenabled.12`],[`xlsm`,`application/vnd.ms-excel.sheet.macroenabled.12`],[`xlsx`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`],[`xlt`,[`application/vnd.ms-excel`,`application/excel`,`application/x-excel`]],[`xltm`,`application/vnd.ms-excel.template.macroenabled.12`],[`xltx`,`application/vnd.openxmlformats-officedocument.spreadsheetml.template`],[`xlv`,[`application/excel`,`application/x-excel`]],[`xlw`,[`application/vnd.ms-excel`,`application/excel`,`application/x-msexcel`,`application/x-excel`]],[`xm`,`audio/xm`],[`xml`,[`application/xml`,`text/xml`,`application/atom+xml`,`application/rss+xml`]],[`xmz`,`xgl/movie`],[`xo`,`application/vnd.olpc-sugar`],[`xof`,`x-world/x-vrml`],[`xop`,`application/xop+xml`],[`xpi`,`application/x-xpinstall`],[`xpix`,`application/x-vnd.ls-xpix`],[`xpm`,[`image/xpm`,`image/x-xpixmap`]],[`xpr`,`application/vnd.is-xpr`],[`xps`,`application/vnd.ms-xpsdocument`],[`xpw`,`application/vnd.intercon.formnet`],[`xslt`,`application/xslt+xml`],[`xsm`,`application/vnd.syncml+xml`],[`xspf`,`application/xspf+xml`],[`xsr`,`video/x-amt-showrun`],[`xul`,`application/vnd.mozilla.xul+xml`],[`xwd`,[`image/x-xwd`,`image/x-xwindowdump`]],[`xyz`,[`chemical/x-xyz`,`chemical/x-pdb`]],[`yang`,`application/yang`],[`yin`,`application/yin+xml`],[`z`,[`application/x-compressed`,`application/x-compress`]],[`zaz`,`application/vnd.zzazz.deck+xml`],[`zip`,[`application/zip`,`multipart/x-zip`,`application/x-zip-compressed`,`application/x-compressed`]],[`zir`,`application/vnd.zul`],[`zmm`,`application/vnd.handheld-entertainment+xml`],[`zoo`,`application/octet-stream`],[`zsh`,`text/x-script.zsh`]]);n.exports={detectMimeType(e){if(!e)return i;let t=r.parse(e),n=(t.ext.substr(1)||t.name||``).split(`?`).shift().trim().toLowerCase(),a=i;return o.has(n)&&(a=o.get(n)),Array.isArray(a)?a[0]:a},detectExtension(e){if(!e)return`bin`;let t=(e||``).toLowerCase().trim().split(`/`),n=t.shift().trim(),r=t.join(`/`).trim();if(a.has(n+`/`+r)){let e=a.get(n+`/`+r);return Array.isArray(e)?e[0]:e}switch(n){case`text`:return`txt`;default:return`bin`}}}})),Yj=n(((e,t)=>{let n=2147483647,r=/^xn--/,i=/[^\0-\x7F]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,o={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},s=Math.floor,c=String.fromCharCode;function l(e){throw RangeError(o[e])}function u(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function d(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(a,`.`);let i=u(e.split(`.`),t).join(`.`);return r+i}function f(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}let p=e=>String.fromCodePoint(...e),m=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},h=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},g=function(e,t,n){let r=0;for(e=n?s(e/700):e>>1,e+=s(e/t);e>455;r+=36)e=s(e/35);return s(r+36*e/(e+38))},_=function(e){let t=[],r=e.length,i=0,a=128,o=72,c=e.lastIndexOf(`-`);c<0&&(c=0);for(let n=0;n<c;++n)e.charCodeAt(n)>=128&&l(`not-basic`),t.push(e.charCodeAt(n));for(let u=c>0?c+1:0;u<r;){let c=i;for(let t=1,a=36;;a+=36){u>=r&&l(`invalid-input`);let c=m(e.charCodeAt(u++));c>=36&&l(`invalid-input`),c>s((n-i)/t)&&l(`overflow`),i+=c*t;let d=a<=o?1:a>=o+26?26:a-o;if(c<d)break;let f=36-d;t>s(n/f)&&l(`overflow`),t*=f}let d=t.length+1;o=g(i-c,d,c==0),s(i/d)>n-a&&l(`overflow`),a+=s(i/d),i%=d,t.splice(i++,0,a)}return String.fromCodePoint(...t)},v=function(e){let t=[];e=f(e);let r=e.length,i=128,a=0,o=72;for(let n of e)n<128&&t.push(c(n));let u=t.length,d=u;for(u&&t.push(`-`);d<r;){let r=n;for(let t of e)t>=i&&t<r&&(r=t);let f=d+1;r-i>s((n-a)/f)&&l(`overflow`),a+=(r-i)*f,i=r;for(let r of e)if(r<i&&++a>n&&l(`overflow`),r===i){let e=a;for(let n=36;;n+=36){let r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;let i=e-r,a=36-r;t.push(c(h(r+i%a,0))),e=s(i/a)}t.push(c(h(e,0))),o=g(a,f,d===u),a=0,++d}++a,++i}return t.join(``)};t.exports={version:`2.3.1`,ucs2:{decode:f,encode:p},decode:_,encode:v,toASCII:function(e){return d(e,function(e){return i.test(e)?`xn--`+v(e):e})},toUnicode:function(e){return d(e,function(e){return r.test(e)?_(e.slice(4).toLowerCase()):e})}}})),Xj=n(((e,n)=>{let r=t(`stream`).Transform;function i(e){return typeof e==`string`&&(e=Buffer.from(e,`utf-8`)),e.toString(`base64`)}function a(e,t){if(e=(e||``).toString(),t||=76,e.length<=t)return e;let n=[],r=0,i=t*1024;for(;r<e.length;){let a=e.substr(r,i).replace(RegExp(`.{`+t+`}`,`g`),`$&\r
168
- `);n.push(a),r+=i}return n.join(``)}n.exports={encode:i,wrap:a,Encoder:class extends r{constructor(e){super(),this.options=e||{},this.options.lineLength!==!1&&(this.options.lineLength=this.options.lineLength||76),this._curLine=``,this._remainingBytes=!1,this.inputBytes=0,this.outputBytes=0}_transform(e,t,n){if(t!==`buffer`&&(e=Buffer.from(e,t)),!e||!e.length)return setImmediate(n);this.inputBytes+=e.length,this._remainingBytes&&this._remainingBytes.length&&(e=Buffer.concat([this._remainingBytes,e],this._remainingBytes.length+e.length),this._remainingBytes=!1),e.length%3?(this._remainingBytes=e.slice(e.length-e.length%3),e=e.slice(0,e.length-e.length%3)):this._remainingBytes=!1;let r=this._curLine+i(e);if(this.options.lineLength){r=a(r,this.options.lineLength);let e=r.lastIndexOf(`
169
- `);e<0?(this._curLine=r,r=``):(this._curLine=r.substring(e+1),r=r.substring(0,e+1),r&&!r.endsWith(`\r
170
- `)&&(r+=`\r
171
- `))}else this._curLine=``;r&&(this.outputBytes+=r.length,this.push(Buffer.from(r,`ascii`))),setImmediate(n)}_flush(e){this._remainingBytes&&this._remainingBytes.length&&(this._curLine+=i(this._remainingBytes)),this._curLine&&=(this.outputBytes+=this._curLine.length,this.push(Buffer.from(this._curLine,`ascii`)),``),e()}}}})),Zj=n(((e,n)=>{let r=t(`stream`).Transform;function i(e){typeof e==`string`&&(e=Buffer.from(e,`utf-8`));let t=[[9],[10],[13],[32,60],[62,126]],n=``,r;for(let i=0,a=e.length;i<a;i++){if(r=e[i],o(r,t)&&!((r===32||r===9)&&(i===a-1||e[i+1]===10||e[i+1]===13))){n+=String.fromCharCode(r);continue}n+=`=`+(r<16?`0`:``)+r.toString(16).toUpperCase()}return n}function a(e,t){if(e=(e||``).toString(),t||=76,e.length<=t)return e;let n=0,r=e.length,i,a,o,s=Math.floor(t/3),c=``;for(;n<r;){if(o=e.substr(n,t),i=o.match(/\r\n/)){o=o.substr(0,i.index+i[0].length),c+=o,n+=o.length;continue}if(o.substr(-1)===`
172
- `){c+=o,n+=o.length;continue}else if(i=o.substr(-s).match(/\n.*?$/)){o=o.substr(0,o.length-(i[0].length-1)),c+=o,n+=o.length;continue}else if(o.length>t-s&&(i=o.substr(-s).match(/[ \t.,!?][^ \t.,!?]*$/)))o=o.substr(0,o.length-(i[0].length-1));else if(o.match(/[=][\da-f]{0,2}$/i))for((i=o.match(/[=][\da-f]{0,1}$/i))&&(o=o.substr(0,o.length-i[0].length));o.length>3&&o.length<r-n&&!o.match(/^(?:=[\da-f]{2}){1,4}$/i)&&(i=o.match(/[=][\da-f]{2}$/gi))&&(a=parseInt(i[0].substr(1,2),16),!(a<128||(o=o.substr(0,o.length-3),a>=192))););n+o.length<r&&o.substr(-1)!==`
173
- `?(o.length===t&&o.match(/[=][\da-f]{2}$/i)?o=o.substr(0,o.length-3):o.length===t&&(o=o.substr(0,o.length-1)),n+=o.length,o+=`=\r
174
- `):n+=o.length,c+=o}return c}function o(e,t){for(let n=t.length-1;n>=0;n--)if(t[n].length&&(t[n].length===1&&e===t[n][0]||t[n].length===2&&e>=t[n][0]&&e<=t[n][1]))return!0;return!1}n.exports={encode:i,wrap:a,Encoder:class extends r{constructor(e){super(),this.options=e||{},this.options.lineLength!==!1&&(this.options.lineLength=this.options.lineLength||76),this._curLine=``,this.inputBytes=0,this.outputBytes=0}_transform(e,t,n){let r;if(t!==`buffer`&&(e=Buffer.from(e,t)),!e||!e.length)return n();this.inputBytes+=e.length,this.options.lineLength?(r=this._curLine+i(e),r=a(r,this.options.lineLength),r=r.replace(/(^|\n)([^\n]*)$/,(e,t,n)=>(this._curLine=n,t)),r&&(this.outputBytes+=r.length,this.push(r))):(r=i(e),this.outputBytes+=r.length,this.push(r,`ascii`)),n()}_flush(e){this._curLine&&(this.outputBytes+=this._curLine.length,this.push(this._curLine,`ascii`)),e()}}}})),Qj=n(((e,t)=>{let n=Xj(),r=Zj(),i=Jj();t.exports={isPlainText(e,t){return!(typeof e!=`string`||(t?/[\x00-\x08\x0b\x0c\x0e-\x1f"\u0080-\uFFFF]/:/[\x00-\x08\x0b\x0c\x0e-\x1f\u0080-\uFFFF]/).test(e))},hasLongerLines(e,t){return e.length>128*1024?!0:RegExp(`^.{`+(t+1)+`,}`,`m`).test(e)},encodeWord(e,t,i){t=(t||`Q`).toString().toUpperCase().trim().charAt(0),i||=0;let a,o=`UTF-8`;if(i&&i>12&&(i-=12),t===`Q`?a=r.encode(e).replace(/[^a-z0-9!*+\-/=]/gi,e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return e===` `?`_`:`=`+(t.length===1?`0`+t:t)}):t===`B`&&(a=typeof e==`string`?e:n.encode(e),i=i?Math.max(3,(i-i%4)/4*3):0),i&&(t===`B`?n.encode(e):a).length>i)if(t===`Q`)a=this.splitMimeEncodedString(a,i).join(`?= =?`+o+`?`+t+`?`);else{let e=[],r=``;for(let t=0,o=a.length;t<o;t++){let s=a.charAt(t);/[\ud83c\ud83d\ud83e]/.test(s)&&t<o-1&&(s+=a.charAt(++t)),Buffer.byteLength(r+s)<=i||t===0?r+=s:(e.push(n.encode(r)),r=s)}r&&e.push(n.encode(r)),a=e.length>1?e.join(`?= =?`+o+`?`+t+`?`):e.join(``)}else t===`B`&&(a=n.encode(e));return`=?`+o+`?`+t+`?`+a+(a.substr(-2)===`?=`?``:`?=`)},encodeWords(e,t,n,r){n||=0;let i,a=e.match(/(?:^|\s)([^\s]*["\u0080-\uFFFF])/);if(!a)return e;if(r)return this.encodeWord(e,t,n);let o=e.match(/(["\u0080-\uFFFF][^\s]*)[^"\u0080-\uFFFF]*$/);if(!o)return e;let s=a.index+(a[0].match(/[^\s]/)||{index:0}).index,c=o.index+(o[1]||``).length;return i=(s?e.substr(0,s):``)+this.encodeWord(e.substring(s,c),t||`Q`,n)+(c<e.length?e.substr(c):``),i},buildHeaderValue(e){let t=[];return Object.keys(e.params||{}).forEach(n=>{let r=e.params[n];!this.isPlainText(r,!0)||r.length>=75?this.buildHeaderParam(n,r,50).forEach(e=>{!/[\s"\\;:/=(),<>@[\]?]|^[-']|'$/.test(e.value)||e.key.substr(-1)===`*`?t.push(e.key+`=`+e.value):t.push(e.key+`=`+JSON.stringify(e.value))}):/[\s'"\\;:/=(),<>@[\]?]|^-/.test(r)?t.push(n+`=`+JSON.stringify(r)):t.push(n+`=`+r)}),e.value+(t.length?`; `+t.join(`; `):``)},buildHeaderParam(e,t,n){let r=[],i=typeof t==`string`?t:(t||``).toString(),a,o,s,c,l=0,u,d;if(n||=50,this.isPlainText(t,!0)){if(i.length<=n)return[{key:e,value:i}];i=i.replace(RegExp(`.{`+n+`}`,`g`),e=>(r.push({line:e}),``)),i&&r.push({line:i})}else{if(/[\uD800-\uDBFF]/.test(i)){for(a=[],u=0,d=i.length;u<d;u++)o=i.charAt(u),s=o.charCodeAt(0),s>=55296&&s<=56319&&u<d-1?(o+=i.charAt(u+1),a.push(o),u++):a.push(o);i=a}c=`utf-8''`;let e=!0;for(l=0,u=0,d=i.length;u<d;u++){if(o=i[u],e)o=this.safeEncodeURIComponent(o);else if(o=o===` `?o:this.safeEncodeURIComponent(o),o!==i[u])if((this.safeEncodeURIComponent(c)+o).length>=n)r.push({line:c,encoded:e}),c=``,l=u-1;else{e=!0,u=l,c=``;continue}(c+o).length>=n?(r.push({line:c,encoded:e}),c=o=i[u]===` `?` `:this.safeEncodeURIComponent(i[u]),o===i[u]?(e=!1,l=u-1):e=!0):c+=o}c&&r.push({line:c,encoded:e})}return r.map((t,n)=>({key:e+`*`+n+(t.encoded?`*`:``),value:t.line}))},parseHeaderValue(e){let t={value:!1,params:{}},n=!1,r=``,i=`value`,a=!1,o=!1,s;for(let c=0,l=e.length;c<l;c++)if(s=e.charAt(c),i===`key`){if(s===`=`){n=r.trim().toLowerCase(),i=`value`,r=``;continue}r+=s}else{if(o)r+=s;else if(s===`\\`){o=!0;continue}else a&&s===a?a=!1:!a&&s===`"`?a=s:!a&&s===`;`?(n===!1?t.value=r.trim():t.params[n]=r.trim(),i=`key`,r=``):r+=s;o=!1}return i===`value`?n===!1?t.value=r.trim():t.params[n]=r.trim():r.trim()&&(t.params[r.trim().toLowerCase()]=``),Object.keys(t.params).forEach(e=>{let n,r,i,a;(i=e.match(/(\*(\d+)|\*(\d+)\*|\*)$/))&&(n=e.substr(0,i.index),r=Number(i[2]||i[3])||0,(!t.params[n]||typeof t.params[n]!=`object`)&&(t.params[n]={charset:!1,values:[]}),a=t.params[e],r===0&&i[0].substr(-1)===`*`&&(i=a.match(/^([^']*)'[^']*'(.*)$/))&&(t.params[n].charset=i[1]||`iso-8859-1`,a=i[2]),t.params[n].values[r]=a,delete t.params[e])}),Object.keys(t.params).forEach(e=>{let n;t.params[e]&&Array.isArray(t.params[e].values)&&(n=t.params[e].values.map(e=>e||``).join(``),t.params[e].charset?t.params[e]=`=?`+t.params[e].charset+`?Q?`+n.replace(/[=?_\s]/g,e=>{let t=e.charCodeAt(0).toString(16);return e===` `?`_`:`%`+(t.length<2?`0`:``)+t}).replace(/%/g,`=`)+`?=`:t.params[e]=n)}),t},detectExtension:e=>i.detectExtension(e),detectMimeType:e=>i.detectMimeType(e),foldLines(e,t,n){e=(e||``).toString(),t||=76;let r=0,i=e.length,a=``,o,s;for(;r<i;){if(o=e.substr(r,t),o.length<t){a+=o;break}if(s=o.match(/^[^\n\r]*(\r?\n|\r)/)){o=s[0],a+=o,r+=o.length;continue}else (s=o.match(/(\s+)[^\s]*$/))&&s[0].length-(n?(s[1]||``).length:0)<o.length?o=o.substr(0,o.length-(s[0].length-(n?(s[1]||``).length:0))):(s=e.substr(r+o.length).match(/^[^\s]+(\s*)/))&&(o+=s[0].substr(0,s[0].length-(n?0:(s[1]||``).length)));a+=o,r+=o.length,r<i&&(a+=`\r
175
- `)}return a},splitMimeEncodedString:(e,t)=>{let n,r,i,a,o=[];for(t=Math.max(t||0,12);e.length;){for(n=e.substr(0,t),(r=n.match(/[=][0-9A-F]?$/i))&&(n=n.substr(0,r.index)),a=!1;!a;)a=!0,(r=e.substr(n.length).match(/^[=]([0-9A-F]{2})/i))&&(i=parseInt(r[1],16),i<194&&i>127&&(n=n.substr(0,n.length-3),a=!1));n.length&&o.push(n),e=e.substr(n.length)}return o},encodeURICharComponent:e=>{let t=``,n=e.charCodeAt(0).toString(16).toUpperCase();if(n.length%2&&(n=`0`+n),n.length>2)for(let e=0,r=n.length/2;e<r;e++)t+=`%`+n.substr(e,2);else t+=`%`+n;return t},safeEncodeURIComponent(e){e=(e||``).toString();try{e=encodeURIComponent(e)}catch{return e.replace(/[^\x00-\x1F *'()<>@,;:\\"[\]?=\u007F-\uFFFF]+/g,``)}return e.replace(/[\x00-\x1F *'()<>@,;:\\"[\]?=\u007F-\uFFFF]/g,e=>this.encodeURICharComponent(e))}}})),$j=n(((e,t)=>{function n(e){let t=!1,n=`text`,r,a=[],o={address:[],comment:[],group:[],text:[],textWasQuoted:[]},s,c,l=!1;for(s=0,c=e.length;s<c;s++){let r=e[s],i=s?e[s-1]:null;if(r.type===`operator`)switch(r.value){case`<`:n=`address`,l=!1;break;case`(`:n=`comment`,l=!1;break;case`:`:n=`group`,t=!0,l=!1;break;case`"`:l=!l,n=`text`;break;default:n=`text`,l=!1;break}else r.value&&(n===`address`&&(r.value=r.value.replace(/^[^<]*<\s*/,``)),i&&i.noBreak&&o[n].length?(o[n][o[n].length-1]+=r.value,n===`text`&&l&&(o.textWasQuoted[o.textWasQuoted.length-1]=!0)):(o[n].push(r.value),n===`text`&&o.textWasQuoted.push(l)))}if(!o.text.length&&o.comment.length&&(o.text=o.comment,o.comment=[]),t){o.text=o.text.join(` `);let e=[];o.group.length&&i(o.group.join(`,`)).forEach(t=>{t.group?e=e.concat(t.group):e.push(t)}),a.push({name:o.text||r&&r.name,group:e})}else{if(!o.address.length&&o.text.length){for(s=o.text.length-1;s>=0;s--)if(!o.textWasQuoted[s]&&o.text[s].match(/^[^@\s]+@[^@\s]+$/)){o.address=o.text.splice(s,1),o.textWasQuoted.splice(s,1);break}let e=function(e){return o.address.length?e:(o.address=[e.trim()],` `)};if(!o.address.length)for(s=o.text.length-1;s>=0&&!(!o.textWasQuoted[s]&&(o.text[s]=o.text[s].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/,e).trim(),o.address.length));s--);}if(!o.text.length&&o.comment.length&&(o.text=o.comment,o.comment=[]),o.address.length>1&&(o.text=o.text.concat(o.address.splice(1))),o.text=o.text.join(` `),o.address=o.address.join(` `),!o.address&&t)return[];r={address:o.address||o.text||``,name:o.text||o.address||``},r.address===r.name&&((r.address||``).match(/@/)?r.name=``:r.address=``),a.push(r)}return a}var r=class{constructor(e){this.str=(e||``).toString(),this.operatorCurrent=``,this.operatorExpecting=``,this.node=null,this.escaped=!1,this.list=[],this.operators={'"':`"`,"(":`)`,"<":`>`,",":``,":":`;`,";":``}}tokenize(){let e=[];for(let e=0,t=this.str.length;e<t;e++){let n=this.str.charAt(e),r=e<t-1?this.str.charAt(e+1):null;this.checkChar(n,r)}return this.list.forEach(t=>{t.value=(t.value||``).toString().trim(),t.value&&e.push(t)}),e}checkChar(e,t){if(!this.escaped){if(e===this.operatorExpecting){this.node={type:`operator`,value:e},t&&![` `,` `,`\r`,`
176
- `,`,`,`;`].includes(t)&&(this.node.noBreak=!0),this.list.push(this.node),this.node=null,this.operatorExpecting=``,this.escaped=!1;return}else if(!this.operatorExpecting&&e in this.operators){this.node={type:`operator`,value:e},this.list.push(this.node),this.node=null,this.operatorExpecting=this.operators[e],this.escaped=!1;return}else if([`"`,`'`].includes(this.operatorExpecting)&&e===`\\`){this.escaped=!0;return}}this.node||(this.node={type:`text`,value:``},this.list.push(this.node)),e===`
177
- `&&(e=` `),(e.charCodeAt(0)>=33||[` `,` `].includes(e))&&(this.node.value+=e),this.escaped=!1}};function i(e,t){t||={};let i=new r(e).tokenize(),a=[],o=[],s=[];if(i.forEach(e=>{e.type===`operator`&&(e.value===`,`||e.value===`;`)?(o.length&&a.push(o),o=[]):o.push(e)}),o.length&&a.push(o),a.forEach(e=>{e=n(e),e.length&&(s=s.concat(e))}),t.flatten){let e=[],t=n=>{n.forEach(n=>{if(n.group)return t(n.group);e.push(n)})};return t(s),e}return s}t.exports=i})),eM=n(((e,n)=>{let r=t(`stream`).Transform;n.exports=class extends r{constructor(){super(),this.lastByte=!1}_transform(e,t,n){e.length&&(this.lastByte=e[e.length-1]),this.push(e),n()}_flush(e){return this.lastByte===10?e():this.lastByte===13?(this.push(Buffer.from(`
178
- `)),e()):(this.push(Buffer.from(`\r
179
- `)),e())}}})),tM=n(((e,n)=>{let r=t(`stream`).Transform;n.exports=class extends r{constructor(e){super(e),this.options=e||{},this.lastByte=!1}_transform(e,t,n){let r,i=0;for(let t=0,n=e.length;t<n;t++)e[t]===10&&(t&&e[t-1]!==13||!t&&this.lastByte!==13)&&(t>i&&(r=e.slice(i,t),this.push(r)),this.push(Buffer.from(`\r
180
- `)),i=t+1);i&&i<e.length?(r=e.slice(i),this.push(r)):i||this.push(e),this.lastByte=e[e.length-1],n()}}})),nM=n(((e,n)=>{let r=t(`stream`).Transform;n.exports=class extends r{constructor(e){super(e),this.options=e||{}}_transform(e,t,n){let r,i=0;for(let t=0,n=e.length;t<n;t++)e[t]===13&&(r=e.slice(i,t),i=t+1,this.push(r));i&&i<e.length?(r=e.slice(i),this.push(r)):i||this.push(e),n()}}})),rM=n(((e,n)=>{let r=t(`crypto`),i=t(`fs`),a=Yj(),o=t(`stream`).PassThrough,s=qj(),c=Qj(),l=Zj(),u=Xj(),d=$j(),f=Kj(),p=eM(),m=tM(),h=nM();n.exports=class e{constructor(e,t){this.nodeCounter=0,t||={},this.baseBoundary=t.baseBoundary||r.randomBytes(8).toString(`hex`),this.boundaryPrefix=t.boundaryPrefix||`--_NmP`,this.disableFileAccess=!!t.disableFileAccess,this.disableUrlAccess=!!t.disableUrlAccess,this.normalizeHeaderKey=t.normalizeHeaderKey,this.date=new Date,this.rootNode=t.rootNode||this,this.keepBcc=!!t.keepBcc,t.filename&&(this.filename=t.filename,e||=c.detectMimeType(this.filename.split(`.`).pop())),this.textEncoding=(t.textEncoding||``).toString().trim().charAt(0).toUpperCase(),this.parentNode=t.parentNode,this.hostname=t.hostname,this.newline=t.newline,this.childNodes=[],this._nodeId=++this.rootNode.nodeCounter,this._headers=[],this._isPlainText=!1,this._hasLongLines=!1,this._envelope=!1,this._raw=!1,this._transforms=[],this._processFuncs=[],e&&this.setHeader(`Content-Type`,e)}createChild(t,n){!n&&typeof t==`object`&&(n=t,t=void 0);let r=new e(t,n);return this.appendChild(r),r}appendChild(e){return e.rootNode!==this.rootNode&&(e.rootNode=this.rootNode,e._nodeId=++this.rootNode.nodeCounter),e.parentNode=this,this.childNodes.push(e),e}replace(e){return e===this?this:(this.parentNode.childNodes.forEach((t,n)=>{t===this&&(e.rootNode=this.rootNode,e.parentNode=this.parentNode,e._nodeId=this._nodeId,this.rootNode=this,this.parentNode=void 0,e.parentNode.childNodes[n]=e)}),e)}remove(){if(!this.parentNode)return this;for(let e=this.parentNode.childNodes.length-1;e>=0;e--)if(this.parentNode.childNodes[e]===this)return this.parentNode.childNodes.splice(e,1),this.parentNode=void 0,this.rootNode=this,this}setHeader(e,t){let n=!1,r;if(!t&&e&&typeof e==`object`)return e.key&&`value`in e?this.setHeader(e.key,e.value):Array.isArray(e)?e.forEach(e=>{this.setHeader(e.key,e.value)}):Object.keys(e).forEach(t=>{this.setHeader(t,e[t])}),this;e=this._normalizeHeaderKey(e),r={key:e,value:t};for(let t=0,i=this._headers.length;t<i;t++)this._headers[t].key===e&&(n?(this._headers.splice(t,1),t--,i--):(this._headers[t]=r,n=!0));return n||this._headers.push(r),this}addHeader(e,t){return!t&&e&&typeof e==`object`?(e.key&&e.value?this.addHeader(e.key,e.value):Array.isArray(e)?e.forEach(e=>{this.addHeader(e.key,e.value)}):Object.keys(e).forEach(t=>{this.addHeader(t,e[t])}),this):Array.isArray(t)?(t.forEach(t=>{this.addHeader(e,t)}),this):(this._headers.push({key:this._normalizeHeaderKey(e),value:t}),this)}getHeader(e){e=this._normalizeHeaderKey(e);for(let t=0,n=this._headers.length;t<n;t++)if(this._headers[t].key===e)return this._headers[t].value}setContent(e){return this.content=e,typeof this.content.pipe==`function`?(this._contentErrorHandler=e=>{this.content.removeListener(`error`,this._contentErrorHandler),this.content=e},this.content.once(`error`,this._contentErrorHandler)):typeof this.content==`string`&&(this._isPlainText=c.isPlainText(this.content),this._isPlainText&&c.hasLongerLines(this.content,76)&&(this._hasLongLines=!0)),this}build(e){let t;e||(t=new Promise((t,n)=>{e=s.callbackPromise(t,n)}));let n=this.createReadStream(),r=[],i=0,a=!1;return n.on(`readable`,()=>{let e;for(;(e=n.read())!==null;)r.push(e),i+=e.length}),n.once(`error`,t=>{if(!a)return a=!0,e(t)}),n.once(`end`,t=>{if(!a)return a=!0,t&&t.length&&(r.push(t),i+=t.length),e(null,Buffer.concat(r,i))}),t}getTransferEncoding(){let e=!1,t=(this.getHeader(`Content-Type`)||``).toString().toLowerCase().trim();return this.content&&(e=(this.getHeader(`Content-Transfer-Encoding`)||``).toString().toLowerCase().trim(),(!e||![`base64`,`quoted-printable`].includes(e))&&(/^text\//i.test(t)?e=this._isPlainText&&!this._hasLongLines?`7bit`:typeof this.content==`string`||this.content instanceof Buffer?this._getTextEncoding(this.content)===`Q`?`quoted-printable`:`base64`:this.textEncoding===`B`?`base64`:`quoted-printable`:/^(multipart|message)\//i.test(t)||(e||=`base64`))),e}buildHeaders(){let e=this.getTransferEncoding(),t=[];if(e&&this.setHeader(`Content-Transfer-Encoding`,e),this.filename&&!this.getHeader(`Content-Disposition`)&&this.setHeader(`Content-Disposition`,`attachment`),this.rootNode===this){this.getHeader(`Date`)||this.setHeader(`Date`,this.date.toUTCString().replace(/GMT/,`+0000`)),this.messageId(),this.getHeader(`MIME-Version`)||this.setHeader(`MIME-Version`,`1.0`);for(let e=this._headers.length-2;e>=0;e--){let t=this._headers[e];t.key===`Content-Type`&&(this._headers.splice(e,1),this._headers.push(t))}}return this._headers.forEach(e=>{let n=e.key,r=e.value,i,a,o={};if(!(r&&typeof r==`object`&&![`From`,`Sender`,`To`,`Cc`,`Bcc`,`Reply-To`,`Date`,`References`].includes(n)&&(Object.keys(r).forEach(e=>{e!==`value`&&(o[e]=r[e])}),r=(r.value||``).toString(),!r.trim()))){if(o.prepared){o.foldLines?t.push(c.foldLines(n+`: `+r)):t.push(n+`: `+r);return}switch(e.key){case`Content-Disposition`:i=c.parseHeaderValue(r),this.filename&&(i.params.filename=this.filename),r=c.buildHeaderValue(i);break;case`Content-Type`:i=c.parseHeaderValue(r),this._handleContentType(i),i.value.match(/^text\/plain\b/)&&typeof this.content==`string`&&/[\u0080-\uFFFF]/.test(this.content)&&(i.params.charset=`utf-8`),r=c.buildHeaderValue(i),this.filename&&(a=this._encodeWords(this.filename),(a!==this.filename||/[\s'"\\;:/=(),<>@[\]?]|^-/.test(a))&&(a=`"`+a+`"`),r+=`; name=`+a);break;case`Bcc`:if(!this.keepBcc)return;break}if(r=this._encodeHeaderValue(n,r),(r||``).toString().trim()){if(typeof this.normalizeHeaderKey==`function`){let e=this.normalizeHeaderKey(n,r);e&&typeof e==`string`&&e.length&&(n=e)}t.push(c.foldLines(n+`: `+r,76))}}}),t.join(`\r
181
- `)}createReadStream(e){e||={};let t=new o(e),n=t,r;this.stream(t,e,e=>{if(e){n.emit(`error`,e);return}t.end()});for(let e=0,t=this._transforms.length;e<t;e++)r=typeof this._transforms[e]==`function`?this._transforms[e]():this._transforms[e],n.once(`error`,e=>{r.emit(`error`,e)}),n=n.pipe(r);r=new p,n.once(`error`,e=>{r.emit(`error`,e)}),n=n.pipe(r);for(let e=0,t=this._processFuncs.length;e<t;e++)r=this._processFuncs[e],n=r(n);if(this.newline){let e=[`win`,`windows`,`dos`,`\r
182
- `].includes(this.newline.toString().toLowerCase())?new m:new h,t=n.pipe(e);return n.on(`error`,e=>t.emit(`error`,e)),t}return n}transform(e){this._transforms.push(e)}processFunc(e){this._processFuncs.push(e)}stream(e,t,n){let r=this.getTransferEncoding(),i,a,o=!1,s=e=>{o||(o=!0,n(e))},c=()=>{let n=0,r=()=>{if(n>=this.childNodes.length)return e.write(`\r
183
- --`+this.boundary+`--\r
184
- `),s();let i=this.childNodes[n++];e.write((n>1?`\r
185
- `:``)+`--`+this.boundary+`\r
186
- `),i.stream(e,t,e=>{if(e)return s(e);setImmediate(r)})};if(this.multipart)setImmediate(r);else return s()};this._raw?setImmediate(()=>{if(Object.prototype.toString.call(this._raw)===`[object Error]`)return s(this._raw);typeof this._raw.pipe==`function`&&this._raw.removeListener(`error`,this._contentErrorHandler);let t=this._getStream(this._raw);t.pipe(e,{end:!1}),t.on(`error`,t=>e.emit(`error`,t)),t.on(`end`,c)}):(e.write(this.buildHeaders()+`\r
187
- \r
188
- `),setImmediate(()=>{if(this.content){if(Object.prototype.toString.call(this.content)===`[object Error]`)return s(this.content);typeof this.content.pipe==`function`&&(this.content.removeListener(`error`,this._contentErrorHandler),this._contentErrorHandler=e=>s(e),this.content.once(`error`,this._contentErrorHandler));let n=()=>{[`quoted-printable`,`base64`].includes(r)?(i=new(r===`base64`?u:l).Encoder(t),i.pipe(e,{end:!1}),i.once(`end`,c),i.once(`error`,e=>s(e)),a=this._getStream(this.content),a.pipe(i)):(a=this._getStream(this.content),a.pipe(e,{end:!1}),a.once(`end`,c)),a.once(`error`,e=>s(e))};if(this.content._resolve){let e=[],t=0,r=!1,i=this._getStream(this.content);i.on(`error`,e=>{r||(r=!0,s(e))}),i.on(`readable`,()=>{let n;for(;(n=i.read())!==null;)e.push(n),t+=n.length}),i.on(`end`,()=>{r||(r=!0,this.content._resolve=!1,this.content._resolvedValue=Buffer.concat(e,t),setImmediate(n))})}else setImmediate(n);return}else return setImmediate(c)}))}setEnvelope(e){let t;this._envelope={from:!1,to:[]},e.from&&(t=[],this._convertAddresses(this._parseAddresses(e.from),t),t=t.filter(e=>e&&e.address),t.length&&t[0]&&(this._envelope.from=t[0].address)),[`to`,`cc`,`bcc`].forEach(t=>{e[t]&&this._convertAddresses(this._parseAddresses(e[t]),this._envelope.to)}),this._envelope.to=this._envelope.to.map(e=>e.address).filter(e=>e);let n=[`to`,`cc`,`bcc`,`from`];return Object.keys(e).forEach(t=>{n.includes(t)||(this._envelope[t]=e[t])}),this}getAddresses(){let e={};return this._headers.forEach(t=>{let n=t.key.toLowerCase();[`from`,`sender`,`reply-to`,`to`,`cc`,`bcc`].includes(n)&&(Array.isArray(e[n])||(e[n]=[]),this._convertAddresses(this._parseAddresses(t.value),e[n]))}),e}getEnvelope(){if(this._envelope)return this._envelope;let e={from:!1,to:[]};return this._headers.forEach(t=>{let n=[];t.key===`From`||!e.from&&[`Reply-To`,`Sender`].includes(t.key)?(this._convertAddresses(this._parseAddresses(t.value),n),n.length&&n[0]&&(e.from=n[0].address)):[`To`,`Cc`,`Bcc`].includes(t.key)&&this._convertAddresses(this._parseAddresses(t.value),e.to)}),e.to=e.to.map(e=>e.address),e}messageId(){let e=this.getHeader(`Message-ID`);return e||(e=this._generateMessageId(),this.setHeader(`Message-ID`,e)),e}setRaw(e){return this._raw=e,this._raw&&typeof this._raw.pipe==`function`&&(this._contentErrorHandler=e=>{this._raw.removeListener(`error`,this._contentErrorHandler),this._raw=e},this._raw.once(`error`,this._contentErrorHandler)),this}_getStream(e){let t;return e._resolvedValue?(t=new o,setImmediate(()=>{try{t.end(e._resolvedValue)}catch(e){t.emit(`error`,e)}}),t):typeof e.pipe==`function`?e:e&&typeof e.path==`string`&&!e.href?this.disableFileAccess?(t=new o,setImmediate(()=>t.emit(`error`,Error(`File access rejected for `+e.path))),t):i.createReadStream(e.path):e&&typeof e.href==`string`?this.disableUrlAccess?(t=new o,setImmediate(()=>t.emit(`error`,Error(`Url access rejected for `+e.href))),t):f(e.href,{headers:e.httpHeaders}):(t=new o,setImmediate(()=>{try{t.end(e||``)}catch(e){t.emit(`error`,e)}}),t)}_parseAddresses(e){return[].concat.apply([],[].concat(e).map(e=>e&&e.address?(e.address=this._normalizeAddress(e.address),e.name=e.name||``,[e]):d(e)))}_normalizeHeaderKey(e){return e=(e||``).toString().replace(/\r?\n|\r/g,` `).trim().toLowerCase().replace(/^X-SMTPAPI$|^(MIME|DKIM|ARC|BIMI)\b|^[a-z]|-(SPF|FBL|ID|MD5)$|-[a-z]/gi,e=>e.toUpperCase()).replace(/^Content-Features$/i,`Content-features`),e}_handleContentType(e){this.contentType=e.value.trim().toLowerCase(),this.multipart=/^multipart\//i.test(this.contentType)?this.contentType.substr(this.contentType.indexOf(`/`)+1):!1,this.multipart?this.boundary=e.params.boundary=e.params.boundary||this.boundary||this._generateBoundary():this.boundary=!1}_generateBoundary(){return this.rootNode.boundaryPrefix+`-`+this.rootNode.baseBoundary+`-Part_`+this._nodeId}_encodeHeaderValue(e,t){switch(e=this._normalizeHeaderKey(e),e){case`From`:case`Sender`:case`To`:case`Cc`:case`Bcc`:case`Reply-To`:return this._convertAddresses(this._parseAddresses(t));case`Message-ID`:case`In-Reply-To`:case`Content-Id`:return t=(t||``).toString().replace(/\r?\n|\r/g,` `),t.charAt(0)!==`<`&&(t=`<`+t),t.charAt(t.length-1)!==`>`&&(t+=`>`),t;case`References`:return t=[].concat.apply([],[].concat(t||``).map(e=>(e=(e||``).toString().replace(/\r?\n|\r/g,` `).trim(),e.replace(/<[^>]*>/g,e=>e.replace(/\s/g,``)).split(/\s+/)))).map(e=>(e.charAt(0)!==`<`&&(e=`<`+e),e.charAt(e.length-1)!==`>`&&(e+=`>`),e)),t.join(` `).trim();case`Date`:return Object.prototype.toString.call(t)===`[object Date]`?t.toUTCString().replace(/GMT/,`+0000`):(t=(t||``).toString().replace(/\r?\n|\r/g,` `),this._encodeWords(t));case`Content-Type`:case`Content-Disposition`:return(t||``).toString().replace(/\r?\n|\r/g,` `);default:return t=(t||``).toString().replace(/\r?\n|\r/g,` `),this._encodeWords(t)}}_convertAddresses(e,t){let n=[];return t||=[],[].concat(e||[]).forEach(e=>{if(e.address)e.address=this._normalizeAddress(e.address),e.name?e.name&&n.push(`${this._encodeAddressName(e.name)} <${e.address}>`):n.push(e.address.indexOf(` `)>=0?`<${e.address}>`:`${e.address}`),e.address&&(t.filter(t=>t.address===e.address).length||t.push(e));else if(e.group){let r=(e.group.length?this._convertAddresses(e.group,t):``).trim();n.push(`${this._encodeAddressName(e.name)}:${r};`)}}),n.join(`, `)}_normalizeAddress(e){e=(e||``).toString().replace(/[\x00-\x1F<>]+/g,` `).trim();let t=e.lastIndexOf(`@`);if(t<0)return e;let n=e.substr(0,t),r=e.substr(t+1),i;try{i=a.toASCII(r.toLowerCase())}catch{}return n.indexOf(` `)>=0&&(n.charAt(0)!==`"`&&(n=`"`+n),n.substr(-1)!==`"`&&(n+=`"`)),`${n}@${i}`}_encodeAddressName(e){return/^[\w ]*$/.test(e)?e:/^[\x20-\x7e]*$/.test(e)?`"`+e.replace(/([\\"])/g,`\\$1`)+`"`:c.encodeWord(e,this._getTextEncoding(e),52)}_encodeWords(e){return c.encodeWords(e,this._getTextEncoding(e),52,!0)}_getTextEncoding(e){e=(e||``).toString();let t=this.textEncoding,n,r;return t||=(r=(e.match(/[\x00-\x08\x0B\x0C\x0E-\x1F\u0080-\uFFFF]/g)||[]).length,n=(e.match(/[a-z]/gi)||[]).length,r<n?`Q`:`B`),t}_generateMessageId(){return`<`+[2,2,2,6].reduce((e,t)=>e+`-`+r.randomBytes(t).toString(`hex`),r.randomBytes(4).toString(`hex`))+`@`+(this.getEnvelope().from||this.hostname||`localhost`).split(`@`).pop()+`>`}}})),iM=n(((e,t)=>{let n=rM(),r=Qj(),i=qj().parseDataURI;t.exports=class{constructor(e){this.mail=e||{},this.message=!1}compile(){return this._alternatives=this.getAlternatives(),this._htmlNode=this._alternatives.filter(e=>/^text\/html\b/i.test(e.contentType)).pop(),this._attachments=this.getAttachments(!!this._htmlNode),this._useRelated=!!(this._htmlNode&&this._attachments.related.length),this._useAlternative=this._alternatives.length>1,this._useMixed=this._attachments.attached.length>1||this._alternatives.length&&this._attachments.attached.length===1,this.mail.raw?this.message=new n(`message/rfc822`,{newline:this.mail.newline}).setRaw(this.mail.raw):this._useMixed?this.message=this._createMixed():this._useAlternative?this.message=this._createAlternative():this._useRelated?this.message=this._createRelated():this.message=this._createContentNode(!1,[].concat(this._alternatives||[],this._attachments.attached||[]).shift()||{contentType:`text/plain`,content:``}),this.mail.headers&&this.message.addHeader(this.mail.headers),[`from`,`sender`,`to`,`cc`,`bcc`,`reply-to`,`in-reply-to`,`references`,`subject`,`message-id`,`date`].forEach(e=>{let t=e.replace(/-(\w)/g,(e,t)=>t.toUpperCase());this.mail[t]&&this.message.setHeader(e,this.mail[t])}),this.mail.envelope&&this.message.setEnvelope(this.mail.envelope),this.message.messageId(),this.message}getAttachments(e){let t,n,i=[].concat(this.mail.attachments||[]).map((e,t)=>{let n;/^data:/i.test(e.path||e.href)&&(e=this._processDataUrl(e));let i=e.contentType||r.detectMimeType(e.filename||e.path||e.href||`bin`),a=/^image\//i.test(i),o=/^message\//i.test(i),s=e.contentDisposition||(o||a&&e.cid?`inline`:`attachment`),c;return c=`contentTransferEncoding`in e?e.contentTransferEncoding:o?`7bit`:`base64`,n={contentType:i,contentDisposition:s,contentTransferEncoding:c},e.filename?n.filename=e.filename:!o&&e.filename!==!1&&(n.filename=(e.path||e.href||``).split(`/`).pop().split(`?`).shift()||`attachment-`+(t+1),n.filename.indexOf(`.`)<0&&(n.filename+=`.`+r.detectExtension(n.contentType))),/^https?:\/\//i.test(e.path)&&(e.href=e.path,e.path=void 0),e.cid&&(n.cid=e.cid),e.raw?n.raw=e.raw:e.path?n.content={path:e.path}:e.href?n.content={href:e.href,httpHeaders:e.httpHeaders}:n.content=e.content||``,e.encoding&&(n.encoding=e.encoding),e.headers&&(n.headers=e.headers),n});return this.mail.icalEvent&&(t=typeof this.mail.icalEvent==`object`&&(this.mail.icalEvent.content||this.mail.icalEvent.path||this.mail.icalEvent.href||this.mail.icalEvent.raw)?this.mail.icalEvent:{content:this.mail.icalEvent},n={},Object.keys(t).forEach(e=>{n[e]=t[e]}),n.contentType=`application/ics`,n.headers||={},n.filename=n.filename||`invite.ics`,n.headers[`Content-Disposition`]=`attachment`,n.headers[`Content-Transfer-Encoding`]=`base64`),e?{attached:i.filter(e=>!e.cid).concat(n||[]),related:i.filter(e=>!!e.cid)}:{attached:i.concat(n||[]),related:[]}}getAlternatives(){let e=[],t,n,i,a,o,s;return this.mail.text&&(t=typeof this.mail.text==`object`&&(this.mail.text.content||this.mail.text.path||this.mail.text.href||this.mail.text.raw)?this.mail.text:{content:this.mail.text},t.contentType=`text/plain; charset=utf-8`),this.mail.watchHtml&&(i=typeof this.mail.watchHtml==`object`&&(this.mail.watchHtml.content||this.mail.watchHtml.path||this.mail.watchHtml.href||this.mail.watchHtml.raw)?this.mail.watchHtml:{content:this.mail.watchHtml},i.contentType=`text/watch-html; charset=utf-8`),this.mail.amp&&(a=typeof this.mail.amp==`object`&&(this.mail.amp.content||this.mail.amp.path||this.mail.amp.href||this.mail.amp.raw)?this.mail.amp:{content:this.mail.amp},a.contentType=`text/x-amp-html; charset=utf-8`),this.mail.icalEvent&&(o=typeof this.mail.icalEvent==`object`&&(this.mail.icalEvent.content||this.mail.icalEvent.path||this.mail.icalEvent.href||this.mail.icalEvent.raw)?this.mail.icalEvent:{content:this.mail.icalEvent},s={},Object.keys(o).forEach(e=>{s[e]=o[e]}),s.content&&typeof s.content==`object`&&(s.content._resolve=!0),s.filename=!1,s.contentType=`text/calendar; charset=utf-8; method=`+(s.method||`PUBLISH`).toString().trim().toUpperCase(),s.headers||={}),this.mail.html&&(n=typeof this.mail.html==`object`&&(this.mail.html.content||this.mail.html.path||this.mail.html.href||this.mail.html.raw)?this.mail.html:{content:this.mail.html},n.contentType=`text/html; charset=utf-8`),[].concat(t||[],i||[],a||[],n||[],s||[],this.mail.alternatives||[]).forEach(t=>{let n;/^data:/i.test(t.path||t.href)&&(t=this._processDataUrl(t)),n={contentType:t.contentType||r.detectMimeType(t.filename||t.path||t.href||`txt`),contentTransferEncoding:t.contentTransferEncoding},t.filename&&(n.filename=t.filename),/^https?:\/\//i.test(t.path)&&(t.href=t.path,t.path=void 0),t.raw?n.raw=t.raw:t.path?n.content={path:t.path}:t.href?n.content={href:t.href}:n.content=t.content||``,t.encoding&&(n.encoding=t.encoding),t.headers&&(n.headers=t.headers),e.push(n)}),e}_createMixed(e){let t;return t=e?e.createChild(`multipart/mixed`,{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new n(`multipart/mixed`,{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}),this._useAlternative?this._createAlternative(t):this._useRelated&&this._createRelated(t),[].concat(!this._useAlternative&&this._alternatives||[],this._attachments.attached||[]).forEach(e=>{(!this._useRelated||e!==this._htmlNode)&&this._createContentNode(t,e)}),t}_createAlternative(e){let t;return t=e?e.createChild(`multipart/alternative`,{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new n(`multipart/alternative`,{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}),this._alternatives.forEach(e=>{this._useRelated&&this._htmlNode===e?this._createRelated(t):this._createContentNode(t,e)}),t}_createRelated(e){let t;return t=e?e.createChild(`multipart/related; type="text/html"`,{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new n(`multipart/related; type="text/html"`,{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}),this._createContentNode(t,this._htmlNode),this._attachments.related.forEach(e=>this._createContentNode(t,e)),t}_createContentNode(e,t){t||={},t.content=t.content||``;let r,i=(t.encoding||`utf8`).toString().toLowerCase().replace(/[-_\s]/g,``);return r=e?e.createChild(t.contentType,{filename:t.filename,textEncoding:this.mail.textEncoding,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new n(t.contentType,{filename:t.filename,baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}),t.headers&&r.addHeader(t.headers),t.cid&&r.setHeader(`Content-Id`,`<`+t.cid.replace(/[<>]/g,``)+`>`),t.contentTransferEncoding?r.setHeader(`Content-Transfer-Encoding`,t.contentTransferEncoding):this.mail.encoding&&/^text\//i.test(t.contentType)&&r.setHeader(`Content-Transfer-Encoding`,this.mail.encoding),(!/^text\//i.test(t.contentType)||t.contentDisposition)&&r.setHeader(`Content-Disposition`,t.contentDisposition||(t.cid&&/^image\//i.test(t.contentType)?`inline`:`attachment`)),typeof t.content==`string`&&![`utf8`,`usascii`,`ascii`].includes(i)&&(t.content=Buffer.from(t.content,i)),t.raw?r.setRaw(t.raw):r.setContent(t.content),r}_processDataUrl(e){let t=e.path||e.href;if(!t||typeof t!=`string`||!t.startsWith(`data:`))return e;if(t.length>52428800){let n=`application/octet-stream`,r=t.indexOf(`,`);if(r>0&&r<200){let e=t.substring(5,r).split(`;`);e[0]&&e[0].includes(`/`)&&(n=e[0].trim())}return Object.assign({},e,{path:!1,href:!1,content:Buffer.alloc(0),contentType:e.contentType||n})}let n;try{n=i(t)}catch{return e}return n?(e.content=n.data,e.contentType=e.contentType||n.contentType,`path`in e&&(e.path=!1),`href`in e&&(e.href=!1),e):e}}})),aM=n(((e,n)=>{let r=t(`stream`).Transform;n.exports=class extends r{constructor(e){super(e),this.lastBytes=Buffer.alloc(4),this.headersParsed=!1,this.headerBytes=0,this.headerChunks=[],this.rawHeaders=!1,this.bodySize=0}updateLastBytes(e){let t=this.lastBytes.length,n=Math.min(e.length,t);for(let e=0,r=t-n;e<r;e++)this.lastBytes[e]=this.lastBytes[e+n];for(let r=1;r<=n;r++)this.lastBytes[t-r]=e[e.length-r]}checkHeaders(e){if(this.headersParsed)return!0;let t=this.lastBytes.length,n=0;this.curLinePos=0;for(let r=0,i=this.lastBytes.length+e.length;r<i;r++){let i;if(i=r<t?this.lastBytes[r]:e[r-t],i===10&&r){let i=r-1<t?this.lastBytes[r-1]:e[r-1-t],a=r>1?r-2<t?this.lastBytes[r-2]:e[r-2-t]:!1;if(i===10){this.headersParsed=!0,n=r-t+1,this.headerBytes+=n;break}else if(i===13&&a===10){this.headersParsed=!0,n=r-t+1,this.headerBytes+=n;break}}}if(this.headersParsed){if(this.headerChunks.push(e.slice(0,n)),this.rawHeaders=Buffer.concat(this.headerChunks,this.headerBytes),this.headerChunks=null,this.emit(`headers`,this.parseHeaders()),e.length-1>n){let t=e.slice(n);this.bodySize+=t.length,setImmediate(()=>this.push(t))}return!1}else this.headerBytes+=e.length,this.headerChunks.push(e);return this.updateLastBytes(e),!1}_transform(e,t,n){if(!e||!e.length)return n();typeof e==`string`&&(e=Buffer.from(e,t));let r;try{r=this.checkHeaders(e)}catch(e){return n(e)}r&&(this.bodySize+=e.length,this.push(e)),setImmediate(n)}_flush(e){if(this.headerChunks){let e=Buffer.concat(this.headerChunks,this.headerBytes);this.bodySize+=e.length,this.push(e),this.headerChunks=null}e()}parseHeaders(){let e=(this.rawHeaders||``).toString().split(/\r?\n/);for(let t=e.length-1;t>0;t--)/^\s/.test(e[t])&&(e[t-1]+=`
189
- `+e[t],e.splice(t,1));return e.filter(e=>e.trim()).map(e=>({key:e.substr(0,e.indexOf(`:`)).trim().toLowerCase(),line:e}))}}})),oM=n(((e,n)=>{let r=t(`stream`).Transform,i=t(`crypto`);n.exports=class extends r{constructor(e){super(),e||={},this.chunkBuffer=[],this.chunkBufferLen=0,this.bodyHash=i.createHash(e.hashAlgo||`sha1`),this.remainder=``,this.byteLength=0,this.debug=e.debug,this._debugBody=e.debug?[]:!1}updateHash(e){let t,n=``,r=`file`;for(let t=e.length-1;t>=0;t--){let i=e[t];if(!(r===`file`&&(i===10||i===13))){if(r===`file`&&(i===9||i===32))r=`line`;else if(!(r===`line`&&(i===9||i===32))&&(r===`file`||r===`line`)&&(r=`body`,t===e.length-1))break}if(t===0){if(r===`file`&&(!this.remainder||/[\r\n]$/.test(this.remainder))||r===`line`&&(!this.remainder||/[ \t]$/.test(this.remainder))){this.remainder+=e.toString(`binary`);return}else if(r===`line`||r===`file`){n=e.toString(`binary`),e=!1;break}}if(r===`body`){n=e.slice(t+1).toString(`binary`),e=e.slice(0,t+1);break}}let i=!!this.remainder;if(e&&!i){for(let t=0,n=e.length;t<n;t++)if(t&&e[t]===10&&e[t-1]!==13){i=!0;break}else if(t&&e[t]===13&&e[t-1]===32){i=!0;break}else if(t&&e[t]===32&&e[t-1]===32){i=!0;break}else if(e[t]===9){i=!0;break}}i?(t=this.remainder+(e?e.toString(`binary`):``),this.remainder=n,t=t.replace(/\r?\n/g,`
190
- `).replace(/[ \t]*$/gm,``).replace(/[ \t]+/gm,` `).replace(/\n/g,`\r
191
- `),e=Buffer.from(t,`binary`)):n&&(this.remainder=n),this.debug&&this._debugBody.push(e),this.bodyHash.update(e)}_transform(e,t,n){if(!e||!e.length)return n();typeof e==`string`&&(e=Buffer.from(e,t)),this.updateHash(e),this.byteLength+=e.length,this.push(e),n()}_flush(e){/[\r\n]$/.test(this.remainder)&&this.byteLength>2&&this.bodyHash.update(Buffer.from(`\r
192
- `)),this.byteLength||this.push(Buffer.from(`\r
193
- `)),this.emit(`hash`,this.bodyHash.digest(`base64`),this.debug?Buffer.concat(this._debugBody):!1),e()}}})),sM=n(((e,n)=>{let r=Yj(),i=Qj(),a=t(`crypto`);n.exports=(e,t,n,r)=>{r||={};let i=s(e,r.headerFieldNames||`From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive`,r.skipFields),l=o(r.domainName,r.keySelector,i.fieldNames,t,n),u,d;i.headers+=`dkim-signature:`+c(l),u=a.createSign((`rsa-`+t).toUpperCase()),u.update(i.headers);try{d=u.sign(r.privateKey,`base64`)}catch{return!1}return l+d.replace(/(^.{73}|.{75}(?!\r?\n|\r))/g,`$&\r
194
- `).trim()},n.exports.relaxedHeaders=s;function o(e,t,n,a,o){let s=[`v=1`,`a=rsa-`+a,`c=relaxed/relaxed`,`d=`+r.toASCII(e),`q=dns/txt`,`s=`+t,`bh=`+o,`h=`+n].join(`; `);return i.foldLines(`DKIM-Signature: `+s,76)+`;\r
195
- b=`}function s(e,t,n){let r=new Set,i=new Set,a=new Map;(n||``).toLowerCase().split(`:`).forEach(e=>{i.add(e.trim())}),(t||``).toLowerCase().split(`:`).filter(e=>!i.has(e.trim())).forEach(e=>{r.add(e.trim())});for(let t=e.length-1;t>=0;t--){let n=e[t];r.has(n.key)&&!a.has(n.key)&&a.set(n.key,c(n.line))}let o=[],s=[];return r.forEach(e=>{a.has(e)&&(s.push(e),o.push(e+`:`+a.get(e)))}),{headers:o.join(`\r
196
- `)+`\r
197
- `,fieldNames:s.join(`:`)}}function c(e){return e.substr(e.indexOf(`:`)+1).replace(/\r?\n/g,``).replace(/\s+/g,` `).trim()}})),cM=n(((e,n)=>{let r=aM(),i=oM(),a=sM(),o=t(`stream`).PassThrough,s=t(`fs`),c=t(`path`),l=t(`crypto`);var u=class{constructor(e,t,n,r){this.options=e||{},this.keys=t,this.cacheTreshold=Number(this.options.cacheTreshold)||2097152,this.hashAlgo=this.options.hashAlgo||`sha256`,this.cacheDir=this.options.cacheDir||!1,this.chunks=[],this.chunklen=0,this.readPos=0,this.cachePath=this.cacheDir?c.join(this.cacheDir,`message.`+Date.now()+`-`+l.randomBytes(14).toString(`hex`)):!1,this.cache=!1,this.headers=!1,this.bodyHash=!1,this.parser=!1,this.relaxedBody=!1,this.input=n,this.output=r,this.output.usingCache=!1,this.hasErrored=!1,this.input.on(`error`,e=>{this.hasErrored=!0,this.cleanup(),r.emit(`error`,e)})}cleanup(){!this.cache||!this.cachePath||s.unlink(this.cachePath,()=>!1)}createReadCache(){this.cache=s.createReadStream(this.cachePath),this.cache.once(`error`,e=>{this.cleanup(),this.output.emit(`error`,e)}),this.cache.once(`close`,()=>{this.cleanup()}),this.cache.pipe(this.output)}sendNextChunk(){if(this.hasErrored)return;if(this.readPos>=this.chunks.length)return this.cache?this.createReadCache():this.output.end();let e=this.chunks[this.readPos++];if(this.output.write(e)===!1)return this.output.once(`drain`,()=>{this.sendNextChunk()});setImmediate(()=>this.sendNextChunk())}sendSignedOutput(){let e=0,t=()=>{if(e>=this.keys.length)return this.output.write(this.parser.rawHeaders),setImmediate(()=>this.sendNextChunk());let n=this.keys[e++],r=a(this.headers,this.hashAlgo,this.bodyHash,{domainName:n.domainName,keySelector:n.keySelector,privateKey:n.privateKey,headerFieldNames:this.options.headerFieldNames,skipFields:this.options.skipFields});return r&&this.output.write(Buffer.from(r+`\r
198
- `)),setImmediate(t)};if(this.bodyHash&&this.headers)return t();this.output.write(this.parser.rawHeaders),this.sendNextChunk()}createWriteCache(){this.output.usingCache=!0,this.cache=s.createWriteStream(this.cachePath),this.cache.once(`error`,e=>{this.cleanup(),this.relaxedBody.unpipe(this.cache),this.relaxedBody.on(`readable`,()=>{for(;this.relaxedBody.read()!==null;);}),this.hasErrored=!0,this.output.emit(`error`,e)}),this.cache.once(`close`,()=>{this.sendSignedOutput()}),this.relaxedBody.removeAllListeners(`readable`),this.relaxedBody.pipe(this.cache)}signStream(){this.parser=new r,this.relaxedBody=new i({hashAlgo:this.hashAlgo}),this.parser.on(`headers`,e=>{this.headers=e}),this.relaxedBody.on(`hash`,e=>{this.bodyHash=e}),this.relaxedBody.on(`readable`,()=>{let e;if(!this.cache){for(;(e=this.relaxedBody.read())!==null;)if(this.chunks.push(e),this.chunklen+=e.length,this.chunklen>=this.cacheTreshold&&this.cachePath)return this.createWriteCache()}}),this.relaxedBody.on(`end`,()=>{this.cache||this.sendSignedOutput()}),this.parser.pipe(this.relaxedBody),setImmediate(()=>this.input.pipe(this.parser))}};n.exports=class{constructor(e){this.options=e||{},this.keys=[].concat(this.options.keys||{domainName:e.domainName,keySelector:e.keySelector,privateKey:e.privateKey})}sign(e,t){let n=new o,r=e,i=!1;Buffer.isBuffer(e)?(i=e,r=new o):typeof e==`string`&&(i=Buffer.from(e),r=new o);let a=this.options;t&&Object.keys(t).length&&(a={},Object.keys(this.options||{}).forEach(e=>{a[e]=this.options[e]}),Object.keys(t||{}).forEach(e=>{e in a||(a[e]=t[e])}));let s=new u(a,this.keys,r,n);return setImmediate(()=>{s.signStream(),i&&setImmediate(()=>{r.end(i)})}),n}}})),lM=n(((e,n)=>{let r=t(`net`),i=t(`tls`),a=t(`url`);function o(e,t,n,s){let c=a.parse(e),l,u,d;l={host:c.hostname,port:Number(c.port)?Number(c.port):c.protocol===`https:`?443:80},c.protocol===`https:`?(l.rejectUnauthorized=!1,u=i.connect.bind(i)):u=r.connect.bind(r);let f=!1,p=e=>{if(!f){f=!0;try{d.destroy()}catch{}s(e)}},m=()=>{let e=Error(`Proxy socket timed out`);e.code=`ETIMEDOUT`,p(e)};d=u(l,()=>{if(f)return;let e={Host:n+`:`+t,Connection:`close`};c.auth&&(e[`Proxy-Authorization`]=`Basic `+Buffer.from(c.auth).toString(`base64`)),d.write(`CONNECT `+n+`:`+t+` HTTP/1.1\r
199
- `+Object.keys(e).map(t=>t+`: `+e[t]).join(`\r
200
- `)+`\r
201
- \r
202
- `);let r=``,i=e=>{let t,n;if(!f&&(r+=e.toString(`binary`),t=r.match(/\r\n\r\n/))){if(d.removeListener(`data`,i),n=r.substr(t.index+t[0].length),r=r.substr(0,t.index),n&&d.unshift(Buffer.from(n,`binary`)),f=!0,t=r.match(/^HTTP\/\d+\.\d+ (\d+)/i),!t||(t[1]||``).charAt(0)!==`2`){try{d.destroy()}catch{}return s(Error(`Invalid response from proxy`+(t&&`: `+t[1]||``)))}return d.removeListener(`error`,p),d.removeListener(`timeout`,m),d.setTimeout(0),s(null,d)}};d.on(`data`,i)}),d.setTimeout(o.timeout||30*1e3),d.on(`timeout`,m),d.once(`error`,p)}n.exports=o})),uM=n(((e,t)=>{let n=qj(),r=rM(),i=Qj();t.exports=class{constructor(e,t){this.mailer=e,this.data={},this.message=null,t||={};let n=e.options||{},r=e._defaults||{};Object.keys(t).forEach(e=>{this.data[e]=t[e]}),this.data.headers=this.data.headers||{},Object.keys(r).forEach(e=>{e in this.data?e===`headers`&&Object.keys(r.headers).forEach(e=>{e in this.data.headers||(this.data.headers[e]=r.headers[e])}):this.data[e]=r[e]}),[`disableFileAccess`,`disableUrlAccess`,`normalizeHeaderKey`].forEach(e=>{e in n&&(this.data[e]=n[e])})}resolveContent(...e){return n.resolveContent(...e)}resolveAll(e){let t=[[this.data,`html`],[this.data,`text`],[this.data,`watchHtml`],[this.data,`amp`],[this.data,`icalEvent`]];this.data.alternatives&&this.data.alternatives.length&&this.data.alternatives.forEach((e,n)=>{t.push([this.data.alternatives,n])}),this.data.attachments&&this.data.attachments.length&&this.data.attachments.forEach((e,n)=>{e.filename||(e.filename=(e.path||e.href||``).split(`/`).pop().split(`?`).shift()||`attachment-`+(n+1),e.filename.indexOf(`.`)<0&&(e.filename+=`.`+i.detectExtension(e.contentType))),e.contentType||=i.detectMimeType(e.filename||e.path||e.href||`bin`),t.push([this.data.attachments,n])});let a=new r;[`from`,`to`,`cc`,`bcc`,`sender`,`replyTo`].forEach(e=>{let t;this.message?t=[].concat(a._parseAddresses(this.message.getHeader(e===`replyTo`?`reply-to`:e))||[]):this.data[e]&&(t=[].concat(a._parseAddresses(this.data[e])||[])),t&&t.length?this.data[e]=t:e in this.data&&(this.data[e]=null)}),[`from`,`sender`].forEach(e=>{this.data[e]&&(this.data[e]=this.data[e].shift())});let o=0,s=()=>{if(o>=t.length)return e(null,this.data);let r=t[o++];if(!r[0]||!r[0][r[1]])return s();n.resolveContent(...r,(t,n)=>{if(t)return e(t);let i={content:n};r[0][r[1]]&&typeof r[0][r[1]]==`object`&&!Buffer.isBuffer(r[0][r[1]])&&Object.keys(r[0][r[1]]).forEach(e=>{!(e in i)&&![`content`,`path`,`href`,`raw`].includes(e)&&(i[e]=r[0][r[1]][e])}),r[0][r[1]]=i,s()})};setImmediate(()=>s())}normalize(e){let t=this.data.envelope||this.message.getEnvelope(),n=this.message.messageId();this.resolveAll((r,i)=>r?e(r):(i.envelope=t,i.messageId=n,[`html`,`text`,`watchHtml`,`amp`].forEach(e=>{i[e]&&i[e].content&&(typeof i[e].content==`string`?i[e]=i[e].content:Buffer.isBuffer(i[e].content)&&(i[e]=i[e].content.toString()))}),i.icalEvent&&Buffer.isBuffer(i.icalEvent.content)&&(i.icalEvent.content=i.icalEvent.content.toString(`base64`),i.icalEvent.encoding=`base64`),i.alternatives&&i.alternatives.length&&i.alternatives.forEach(e=>{e&&e.content&&Buffer.isBuffer(e.content)&&(e.content=e.content.toString(`base64`),e.encoding=`base64`)}),i.attachments&&i.attachments.length&&i.attachments.forEach(e=>{e&&e.content&&Buffer.isBuffer(e.content)&&(e.content=e.content.toString(`base64`),e.encoding=`base64`)}),i.normalizedHeaders={},Object.keys(i.headers||{}).forEach(e=>{let t=[].concat(i.headers[e]||[]).shift();t=t&&t.value||t,t&&([`references`,`in-reply-to`,`message-id`,`content-id`].includes(e)&&(t=this.message._encodeHeaderValue(e,t)),i.normalizedHeaders[e]=t)}),i.list&&typeof i.list==`object`&&this._getListHeaders(i.list).forEach(e=>{i.normalizedHeaders[e.key]=e.value.map(e=>e&&e.value||e).join(`, `)}),i.references&&(i.normalizedHeaders.references=this.message._encodeHeaderValue(`references`,i.references)),i.inReplyTo&&(i.normalizedHeaders[`in-reply-to`]=this.message._encodeHeaderValue(`in-reply-to`,i.inReplyTo)),e(null,i)))}setMailerHeader(){!this.message||!this.data.xMailer||this.message.setHeader(`X-Mailer`,this.data.xMailer)}setPriorityHeaders(){if(!(!this.message||!this.data.priority))switch((this.data.priority||``).toString().toLowerCase()){case`high`:this.message.setHeader(`X-Priority`,`1 (Highest)`),this.message.setHeader(`X-MSMail-Priority`,`High`),this.message.setHeader(`Importance`,`High`);break;case`low`:this.message.setHeader(`X-Priority`,`5 (Lowest)`),this.message.setHeader(`X-MSMail-Priority`,`Low`),this.message.setHeader(`Importance`,`Low`);break;default:}}setListHeaders(){!this.message||!this.data.list||typeof this.data.list!=`object`||this.data.list&&typeof this.data.list==`object`&&this._getListHeaders(this.data.list).forEach(e=>{e.value.forEach(t=>{this.message.addHeader(e.key,t)})})}_getListHeaders(e){return Object.keys(e).map(t=>({key:`list-`+t.toLowerCase().trim(),value:[].concat(e[t]||[]).map(e=>({prepared:!0,foldLines:!0,value:[].concat(e||[]).map(e=>{if(typeof e==`string`&&(e={url:e}),e&&e.url){if(t.toLowerCase().trim()===`id`){let t=e.comment||``;return t=i.isPlainText(t)?`"`+t+`"`:i.encodeWord(t),(e.comment?t+` `:``)+this._formatListUrl(e.url).replace(/^<[^:]+\/{,2}/,``)}let n=e.comment||``;return i.isPlainText(n)||(n=i.encodeWord(n)),this._formatListUrl(e.url)+(e.comment?` (`+n+`)`:``)}return``}).filter(e=>e).join(`, `)}))}))}_formatListUrl(e){return e=e.replace(/[\s<]+|[\s>]+/g,``),/^(https?|mailto|ftp):/.test(e)?`<`+e+`>`:/^[^@]+@[^@]+$/.test(e)?`<mailto:`+e+`>`:`<http://`+e+`>`}}})),dM=n(((e,n)=>{let r=t(`events`),i=qj(),a=Jj(),o=iM(),s=cM(),c=lM(),l=t(`util`),u=t(`url`),d=Gj(),f=uM(),p=t(`net`),m=t(`dns`),h=t(`crypto`);n.exports=class extends r{constructor(e,t,n){super(),this.options=t||{},this._defaults=n||{},this._defaultPlugins={compile:[(...e)=>this._convertDataImages(...e)],stream:[]},this._userPlugins={compile:[],stream:[]},this.meta=new Map,this.dkim=this.options.dkim?new s(this.options.dkim):!1,this.transporter=e,this.transporter.mailer=this,this.logger=i.getLogger(this.options,{component:this.options.component||`mail`}),this.logger.debug({tnx:`create`},`Creating transport: %s`,this.getVersionString()),typeof this.transporter.on==`function`&&(this.transporter.on(`log`,e=>{this.logger.debug({tnx:`transport`},`%s: %s`,e.type,e.message)}),this.transporter.on(`error`,e=>{this.logger.error({err:e,tnx:`transport`},`Transport Error: %s`,e.message),this.emit(`error`,e)}),this.transporter.on(`idle`,(...e)=>{this.emit(`idle`,...e)}),this.transporter.on(`clear`,(...e)=>{this.emit(`clear`,...e)})),[`close`,`isIdle`,`verify`].forEach(e=>{this[e]=(...t)=>typeof this.transporter[e]==`function`?(e===`verify`&&typeof this.getSocket==`function`&&(this.transporter.getSocket=this.getSocket,this.getSocket=!1),this.transporter[e](...t)):(this.logger.warn({tnx:`transport`,methodName:e},`Non existing method %s called for transport`,e),!1)}),this.options.proxy&&typeof this.options.proxy==`string`&&this.setupProxy(this.options.proxy)}use(e,t){return e=(e||``).toString(),this._userPlugins.hasOwnProperty(e)?this._userPlugins[e].push(t):this._userPlugins[e]=[t],this}sendMail(e,t=null){let n;t||(n=new Promise((e,n)=>{t=i.callbackPromise(e,n)})),typeof this.getSocket==`function`&&(this.transporter.getSocket=this.getSocket,this.getSocket=!1);let r=new f(this,e);return this.logger.debug({tnx:`transport`,name:this.transporter.name,version:this.transporter.version,action:`send`},`Sending mail using %s/%s`,this.transporter.name,this.transporter.version),this._processPlugins(`compile`,r,e=>{if(e)return this.logger.error({err:e,tnx:`plugin`,action:`compile`},`PluginCompile Error: %s`,e.message),t(e);r.message=new o(r.data).compile(),r.setMailerHeader(),r.setPriorityHeaders(),r.setListHeaders(),this._processPlugins(`stream`,r,e=>{if(e)return this.logger.error({err:e,tnx:`plugin`,action:`stream`},`PluginStream Error: %s`,e.message),t(e);(r.data.dkim||this.dkim)&&r.message.processFunc(e=>{let t=r.data.dkim?new s(r.data.dkim):this.dkim;return this.logger.debug({tnx:`DKIM`,messageId:r.message.messageId(),dkimDomains:t.keys.map(e=>e.keySelector+`.`+e.domainName).join(`, `)},`Signing outgoing message with %s keys`,t.keys.length),t.sign(e,r.data._dkim)}),this.transporter.send(r,(...e)=>{e[0]&&this.logger.error({err:e[0],tnx:`transport`,action:`send`},`Send Error: %s`,e[0].message),t(...e)})})}),n}getVersionString(){return l.format(`%s (%s; +%s; %s/%s)`,d.name,d.version,d.homepage,this.transporter.name,this.transporter.version)}_processPlugins(e,t,n){if(e=(e||``).toString(),!this._userPlugins.hasOwnProperty(e))return n();let r=this._userPlugins[e]||[],i=this._defaultPlugins[e]||[];if(r.length&&this.logger.debug({tnx:`transaction`,pluginCount:r.length,step:e},`Using %s plugins for %s`,r.length,e),r.length+i.length===0)return n();let a=0,o=`default`,s=()=>{let e=o===`default`?i:r;if(a>=e.length)if(o===`default`&&r.length)o=`user`,a=0,e=r;else return n();let c=e[a++];c(t,e=>{if(e)return n(e);s()})};s()}setupProxy(e){let t=u.parse(e);this.getSocket=(e,n)=>{let r=t.protocol.replace(/:$/,``).toLowerCase();if(this.meta.has(`proxy_handler_`+r))return this.meta.get(`proxy_handler_`+r)(t,e,n);switch(r){case`http`:case`https`:c(t.href,e.port,e.host,(e,t)=>e?n(e):n(null,{connection:t}));return;case`socks`:case`socks5`:case`socks4`:case`socks4a`:{if(!this.meta.has(`proxy_socks_module`))return n(Error(`Socks module not loaded`));let r=r=>{let i=!!this.meta.get(`proxy_socks_module`).SocksClient,a=i?this.meta.get(`proxy_socks_module`).SocksClient:this.meta.get(`proxy_socks_module`),o=Number(t.protocol.replace(/\D/g,``))||5,s={proxy:{ipaddress:r,port:Number(t.port),type:o},[i?`destination`:`target`]:{host:e.host,port:e.port},command:`connect`};if(t.auth){let e=decodeURIComponent(t.auth.split(`:`).shift()),n=decodeURIComponent(t.auth.split(`:`).pop());i?(s.proxy.userId=e,s.proxy.password=n):o===4?s.userid=e:s.authentication={username:e,password:n}}a.createConnection(s,(e,t)=>e?n(e):n(null,{connection:t.socket||t}))};return p.isIP(t.hostname)?r(t.hostname):m.resolve(t.hostname,(e,t)=>{if(e)return n(e);r(Array.isArray(t)?t[0]:t)})}}n(Error(`Unknown proxy configuration`))}}_convertDataImages(e,t){if(!this.options.attachDataUrls&&!e.data.attachDataUrls||!e.data.html)return t();e.resolveContent(e.data,`html`,(n,r)=>{if(n)return t(n);let i=0;r=(r||``).toString().replace(/(<img\b[^<>]{0,1024} src\s{0,20}=[\s"']{0,20})(data:([^;]+);[^"'>\s]+)/gi,(t,n,r,o)=>{let s=h.randomBytes(10).toString(`hex`)+`@localhost`;return e.data.attachments||(e.data.attachments=[]),Array.isArray(e.data.attachments)||(e.data.attachments=[].concat(e.data.attachments||[])),e.data.attachments.push({path:r,cid:s,filename:`image-`+ ++i+`.`+a.detectExtension(o)}),n+`cid:`+s}),e.data.html=r,t()})}set(e,t){return this.meta.set(e,t)}get(e){return this.meta.get(e)}}})),fM=n(((e,n)=>{let r=t(`stream`).Transform;n.exports=class extends r{constructor(e){super(e),this.options=e||{},this._curLine=``,this.inByteCount=0,this.outByteCount=0,this.lastByte=!1}_transform(e,t,n){let r=[],i=0,a,o,s=0,c;if(!e||!e.length)return n();for(typeof e==`string`&&(e=Buffer.from(e)),this.inByteCount+=e.length,a=0,o=e.length;a<o;a++)e[a]===46?(a&&e[a-1]===10||!a&&(!this.lastByte||this.lastByte===10))&&(c=e.slice(s,a+1),r.push(c),r.push(Buffer.from(`.`)),i+=c.length+1,s=a+1):e[a]===10&&(a&&e[a-1]!==13||!a&&this.lastByte!==13)&&(a>s?(c=e.slice(s,a),r.push(c),i+=c.length+2):i+=2,r.push(Buffer.from(`\r
203
- `)),s=a+1);i?(s<e.length&&(c=e.slice(s),r.push(c),i+=c.length),this.outByteCount+=i,this.push(Buffer.concat(r,i))):(this.outByteCount+=e.length,this.push(e)),this.lastByte=e[e.length-1],n()}_flush(e){let t;t=this.lastByte===10?Buffer.from(`.\r
204
- `):this.lastByte===13?Buffer.from(`
205
- .\r
206
- `):Buffer.from(`\r
207
- .\r
208
- `),this.outByteCount+=t.length,this.push(t),e()}}})),pM=n(((e,n)=>{let r=Gj(),i=t(`events`).EventEmitter,a=t(`net`),o=t(`tls`),s=t(`os`),c=t(`crypto`),l=fM(),u=t(`stream`).PassThrough,d=qj(),f=600*1e3;n.exports=class extends i{constructor(e){super(e),this.id=c.randomBytes(8).toString(`base64`).replace(/\W/g,``),this.stage=`init`,this.options=e||{},this.secureConnection=!!this.options.secure,this.alreadySecured=!!this.options.secured,this.port=Number(this.options.port)||(this.secureConnection?465:587),this.host=this.options.host||`localhost`,this.servername=this.options.servername?this.options.servername:a.isIP(this.host)?!1:this.host,this.allowInternalNetworkInterfaces=this.options.allowInternalNetworkInterfaces||!1,this.options.secure===void 0&&this.port===465&&(this.secureConnection=!0),this.name=this.options.name||this._getHostname(),this.logger=d.getLogger(this.options,{component:this.options.component||`smtp-connection`,sid:this.id}),this.customAuth=new Map,Object.keys(this.options.customAuth||{}).forEach(e=>{let t=(e||``).toString().trim().toUpperCase();t&&this.customAuth.set(t,this.options.customAuth[e])}),this.version=r.version,this.authenticated=!1,this.destroyed=!1,this.secure=!!this.secureConnection,this._remainder=``,this._responseQueue=[],this.lastServerResponse=!1,this._socket=!1,this._supportedAuth=[],this.allowsAuth=!1,this._envelope=!1,this._supportedExtensions=[],this._maxAllowedSize=0,this._responseActions=[],this._recipientQueue=[],this._greetingTimeout=!1,this._connectionTimeout=!1,this._destroyed=!1,this._closing=!1,this._onSocketData=e=>this._onData(e),this._onSocketError=e=>this._onError(e,`ESOCKET`,!1,`CONN`),this._onSocketClose=()=>this._onClose(),this._onSocketEnd=()=>this._onEnd(),this._onSocketTimeout=()=>this._onTimeout()}connect(e){if(typeof e==`function`){this.once(`connect`,()=>{this.logger.debug({tnx:`smtp`},`SMTP handshake finished`),e()});let t=this._isDestroyedMessage(`connect`);if(t)return e(this._formatError(t,`ECONNECTION`,!1,`CONN`))}let t={port:this.port,host:this.host,allowInternalNetworkInterfaces:this.allowInternalNetworkInterfaces,timeout:this.options.dnsTimeout||3e4};this.options.localAddress&&(t.localAddress=this.options.localAddress);let n=()=>{this._connectionTimeout=setTimeout(()=>{this._onError(`Connection timeout`,`ETIMEDOUT`,!1,`CONN`)},this.options.connectionTimeout||12e4),this._socket.on(`error`,this._onSocketError)};if(this.options.connection){this._socket=this.options.connection,n(),this.secureConnection&&!this.alreadySecured?setImmediate(()=>this._upgradeConnection(e=>{if(e){this._onError(Error(`Error initiating TLS - `+(e.message||e)),`ETLS`,!1,`CONN`);return}this._onConnect()})):setImmediate(()=>this._onConnect());return}else if(this.options.socket)return this._socket=this.options.socket,d.resolveHostname(t,(e,r)=>{if(e)return setImmediate(()=>this._onError(e,`EDNS`,!1,`CONN`));this.logger.debug({tnx:`dns`,source:t.host,resolved:r.host,cached:!!r.cached},`Resolved %s as %s [cache %s]`,t.host,r.host,r.cached?`hit`:`miss`),Object.keys(r).forEach(e=>{e.charAt(0)!==`_`&&r[e]&&(t[e]=r[e])});try{this._socket.connect(this.port,this.host,()=>{this._socket.setKeepAlive(!0),this._onConnect()}),n()}catch(e){return setImmediate(()=>this._onError(e,`ECONNECTION`,!1,`CONN`))}});else if(this.secureConnection)return this.options.tls&&Object.keys(this.options.tls).forEach(e=>{t[e]=this.options.tls[e]}),this.servername&&!t.servername&&(t.servername=this.servername),d.resolveHostname(t,(e,r)=>{if(e)return setImmediate(()=>this._onError(e,`EDNS`,!1,`CONN`));this.logger.debug({tnx:`dns`,source:t.host,resolved:r.host,cached:!!r.cached},`Resolved %s as %s [cache %s]`,t.host,r.host,r.cached?`hit`:`miss`),Object.keys(r).forEach(e=>{e.charAt(0)!==`_`&&r[e]&&(t[e]=r[e])});try{this._socket=o.connect(t,()=>{this._socket.setKeepAlive(!0),this._onConnect()}),n()}catch(e){return setImmediate(()=>this._onError(e,`ECONNECTION`,!1,`CONN`))}});else return d.resolveHostname(t,(e,r)=>{if(e)return setImmediate(()=>this._onError(e,`EDNS`,!1,`CONN`));this.logger.debug({tnx:`dns`,source:t.host,resolved:r.host,cached:!!r.cached},`Resolved %s as %s [cache %s]`,t.host,r.host,r.cached?`hit`:`miss`),Object.keys(r).forEach(e=>{e.charAt(0)!==`_`&&r[e]&&(t[e]=r[e])});try{this._socket=a.connect(t,()=>{this._socket.setKeepAlive(!0),this._onConnect()}),n()}catch(e){return setImmediate(()=>this._onError(e,`ECONNECTION`,!1,`CONN`))}})}quit(){this._sendCommand(`QUIT`),this._responseActions.push(this.close)}close(){if(clearTimeout(this._connectionTimeout),clearTimeout(this._greetingTimeout),this._responseActions=[],this._closing)return;this._closing=!0;let e=`end`;this.stage===`init`&&(e=`destroy`),this.logger.debug({tnx:`smtp`},`Closing connection to the server using "%s"`,e);let t=this._socket&&this._socket.socket||this._socket;if(t&&!t.destroyed)try{t[e]()}catch{}this._destroy()}login(e,t){let n=this._isDestroyedMessage(`login`);if(n)return t(this._formatError(n,`ECONNECTION`,!1,`API`));if(this._auth=e||{},this._authMethod=(this._auth.method||``).toString().trim().toUpperCase()||!1,!this._authMethod&&this._auth.oauth2&&!this._auth.credentials?this._authMethod=`XOAUTH2`:(!this._authMethod||this._authMethod===`XOAUTH2`&&!this._auth.oauth2)&&(this._authMethod=(this._supportedAuth[0]||`PLAIN`).toUpperCase().trim()),this._authMethod!==`XOAUTH2`&&(!this._auth.credentials||!this._auth.credentials.user||!this._auth.credentials.pass))if(this._auth.user&&this._auth.pass||this.customAuth.has(this._authMethod))this._auth.credentials={user:this._auth.user,pass:this._auth.pass,options:this._auth.options};else return t(this._formatError(`Missing credentials for "`+this._authMethod+`"`,`EAUTH`,!1,`API`));if(this.customAuth.has(this._authMethod)){let e=this.customAuth.get(this._authMethod),n,r=!1,i=()=>{r||(r=!0,this.logger.info({tnx:`smtp`,username:this._auth.user,action:`authenticated`,method:this._authMethod},`User %s authenticated`,JSON.stringify(this._auth.user)),this.authenticated=!0,t(null,!0))},a=e=>{r||(r=!0,t(this._formatError(e,`EAUTH`,n,`AUTH `+this._authMethod)))},o=e({auth:this._auth,method:this._authMethod,extensions:[].concat(this._supportedExtensions),authMethods:[].concat(this._supportedAuth),maxAllowedSize:this._maxAllowedSize||!1,sendCommand:(e,t)=>{let r;return t||(r=new Promise((e,n)=>{t=d.callbackPromise(e,n)})),this._responseActions.push(r=>{n=r;let i=r.match(/^(\d+)(?:\s(\d+\.\d+\.\d+))?\s/),a={command:e,response:r};i?(a.status=Number(i[1])||0,i[2]&&(a.code=i[2]),a.text=r.substr(i[0].length)):(a.text=r,a.status=0),t(null,a)}),setImmediate(()=>this._sendCommand(e)),r},resolve:i,reject:a});o&&typeof o.catch==`function`&&o.then(i).catch(a);return}switch(this._authMethod){case`XOAUTH2`:this._handleXOauth2Token(!1,t);return;case`LOGIN`:this._responseActions.push(e=>{this._actionAUTH_LOGIN_USER(e,t)}),this._sendCommand(`AUTH LOGIN`);return;case`PLAIN`:this._responseActions.push(e=>{this._actionAUTHComplete(e,t)}),this._sendCommand(`AUTH PLAIN `+Buffer.from(`\0`+this._auth.credentials.user+`\0`+this._auth.credentials.pass,`utf-8`).toString(`base64`),`AUTH PLAIN `+Buffer.from(`\0`+this._auth.credentials.user+`\0/* secret */`,`utf-8`).toString(`base64`));return;case`CRAM-MD5`:this._responseActions.push(e=>{this._actionAUTH_CRAM_MD5(e,t)}),this._sendCommand(`AUTH CRAM-MD5`);return}return t(this._formatError(`Unknown authentication method "`+this._authMethod+`"`,`EAUTH`,!1,`API`))}send(e,t,n){if(!t)return n(this._formatError(`Empty message`,`EMESSAGE`,!1,`API`));let r=this._isDestroyedMessage(`send message`);if(r)return n(this._formatError(r,`ECONNECTION`,!1,`API`));if(this._maxAllowedSize&&e.size>this._maxAllowedSize)return setImmediate(()=>{n(this._formatError(`Message size larger than allowed `+this._maxAllowedSize,`EMESSAGE`,!1,`MAIL FROM`))});let i=!1,a=function(){i||(i=!0,n(...arguments))};typeof t.on==`function`&&t.on(`error`,e=>a(this._formatError(e,`ESTREAM`,!1,`API`)));let o=Date.now();this._setEnvelope(e,(e,n)=>{if(e){let n=new u;return typeof t.pipe==`function`?t.pipe(n):(n.write(t),n.end()),a(e)}let r=Date.now(),i=this._createSendStream((e,t)=>e?a(e):(n.envelopeTime=r-o,n.messageTime=Date.now()-r,n.messageSize=i.outByteCount,n.response=t,a(null,n)));typeof t.pipe==`function`?t.pipe(i):(i.write(t),i.end())})}reset(e){this._sendCommand(`RSET`),this._responseActions.push(t=>t.charAt(0)===`2`?(this._envelope=!1,e(null,!0)):e(this._formatError(`Could not reset session state. response=`+t,`EPROTOCOL`,t,`RSET`)))}_onConnect(){if(clearTimeout(this._connectionTimeout),this.logger.info({tnx:`network`,localAddress:this._socket.localAddress,localPort:this._socket.localPort,remoteAddress:this._socket.remoteAddress,remotePort:this._socket.remotePort},`%s established to %s:%s`,this.secure?`Secure connection`:`Connection`,this._socket.remoteAddress,this._socket.remotePort),this._destroyed){this.close();return}this.stage=`connected`,this._socket.removeListener(`data`,this._onSocketData),this._socket.removeListener(`timeout`,this._onSocketTimeout),this._socket.removeListener(`close`,this._onSocketClose),this._socket.removeListener(`end`,this._onSocketEnd),this._socket.on(`data`,this._onSocketData),this._socket.once(`close`,this._onSocketClose),this._socket.once(`end`,this._onSocketEnd),this._socket.setTimeout(this.options.socketTimeout||f),this._socket.on(`timeout`,this._onSocketTimeout),this._greetingTimeout=setTimeout(()=>{this._socket&&!this._destroyed&&this._responseActions[0]===this._actionGreeting&&this._onError(`Greeting never received`,`ETIMEDOUT`,!1,`CONN`)},this.options.greetingTimeout||3e4),this._responseActions.push(this._actionGreeting),this._socket.resume()}_onData(e){if(this._destroyed||!e||!e.length)return;let t=(e||``).toString(`binary`),n=(this._remainder+t).split(/\r?\n/),r;this._remainder=n.pop();for(let e=0,t=n.length;e<t;e++){if(this._responseQueue.length&&(r=this._responseQueue[this._responseQueue.length-1],/^\d+-/.test(r.split(`
209
- `).pop()))){this._responseQueue[this._responseQueue.length-1]+=`
210
- `+n[e];continue}this._responseQueue.push(n[e])}this._responseQueue.length&&(r=this._responseQueue[this._responseQueue.length-1],/^\d+-/.test(r.split(`
211
- `).pop()))||this._processResponse()}_onError(e,t,n,r){clearTimeout(this._connectionTimeout),clearTimeout(this._greetingTimeout),!this._destroyed&&(e=this._formatError(e,t,n,r),this.logger.error(n,e.message),this.emit(`error`,e),this.close())}_formatError(e,t,n,r){let i;i=/Error\]$/i.test(Object.prototype.toString.call(e))?e:Error(e),t&&t!==`Error`&&(i.code=t),n&&(i.response=n,i.message+=`: `+n);let a=typeof n==`string`&&Number((n.match(/^\d+/)||[])[0])||!1;return a&&(i.responseCode=a),r&&(i.command=r),i}_onClose(){let e=!1;if(this._remainder&&this._remainder.trim()&&((this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:`server`},this._remainder.replace(/\r?\n$/,``)),this.lastServerResponse=e=this._remainder.trim()),this.logger.info({tnx:`network`},`Connection closed`),this.upgrading&&!this._destroyed)return this._onError(Error(`Connection closed unexpectedly`),`ETLS`,e,`CONN`);if(![this._actionGreeting,this.close].includes(this._responseActions[0])&&!this._destroyed||/^[45]\d{2}\b/.test(e))return this._onError(Error(`Connection closed unexpectedly`),`ECONNECTION`,e,`CONN`);this._destroy()}_onEnd(){this._socket&&!this._socket.destroyed&&this._socket.destroy()}_onTimeout(){return this._onError(Error(`Timeout`),`ETIMEDOUT`,!1,`CONN`)}_destroy(){this._destroyed||(this._destroyed=!0,this.emit(`end`))}_upgradeConnection(e){this._socket.removeListener(`data`,this._onSocketData),this._socket.removeListener(`timeout`,this._onSocketTimeout);let t=this._socket,n={socket:this._socket,host:this.host};Object.keys(this.options.tls||{}).forEach(e=>{n[e]=this.options.tls[e]}),this.servername&&!n.servername&&(n.servername=this.servername),this.upgrading=!0;try{this._socket=o.connect(n,()=>(this.secure=!0,this.upgrading=!1,this._socket.on(`data`,this._onSocketData),t.removeListener(`close`,this._onSocketClose),t.removeListener(`end`,this._onSocketEnd),e(null,!0)))}catch(t){return e(t)}this._socket.on(`error`,this._onSocketError),this._socket.once(`close`,this._onSocketClose),this._socket.once(`end`,this._onSocketEnd),this._socket.setTimeout(this.options.socketTimeout||f),this._socket.on(`timeout`,this._onSocketTimeout),t.resume()}_processResponse(){if(!this._responseQueue.length)return!1;let e=this.lastServerResponse=(this._responseQueue.shift()||``).toString();if(/^\d+-/.test(e.split(`
212
- `).pop()))return;(this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:`server`},e.replace(/\r?\n$/,``)),e.trim()||setImmediate(()=>this._processResponse());let t=this._responseActions.shift();if(typeof t==`function`)t.call(this,e),setImmediate(()=>this._processResponse());else return this._onError(Error(`Unexpected Response`),`EPROTOCOL`,e,`CONN`)}_sendCommand(e,t){if(!this._destroyed){if(this._socket.destroyed)return this.close();(this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:`client`},(t||e||``).toString().replace(/\r?\n$/,``)),this._socket.write(Buffer.from(e+`\r
213
- `,`utf-8`))}}_setEnvelope(e,t){let n=[],r=!1;if(this._envelope=e||{},this._envelope.from=(this._envelope.from&&this._envelope.from.address||this._envelope.from||``).toString().trim(),this._envelope.to=[].concat(this._envelope.to||[]).map(e=>(e&&e.address||e||``).toString().trim()),!this._envelope.to.length)return t(this._formatError(`No recipients defined`,`EENVELOPE`,!1,`API`));if(this._envelope.from&&/[\r\n<>]/.test(this._envelope.from))return t(this._formatError(`Invalid sender `+JSON.stringify(this._envelope.from),`EENVELOPE`,!1,`API`));/[\x80-\uFFFF]/.test(this._envelope.from)&&(r=!0);for(let e=0,n=this._envelope.to.length;e<n;e++){if(!this._envelope.to[e]||/[\r\n<>]/.test(this._envelope.to[e]))return t(this._formatError(`Invalid recipient `+JSON.stringify(this._envelope.to[e]),`EENVELOPE`,!1,`API`));/[\x80-\uFFFF]/.test(this._envelope.to[e])&&(r=!0)}if(this._envelope.rcptQueue=JSON.parse(JSON.stringify(this._envelope.to||[])),this._envelope.rejected=[],this._envelope.rejectedErrors=[],this._envelope.accepted=[],this._envelope.dsn)try{this._envelope.dsn=this._setDsnEnvelope(this._envelope.dsn)}catch(e){return t(this._formatError(`Invalid DSN `+e.message,`EENVELOPE`,!1,`API`))}this._responseActions.push(e=>{this._actionMAIL(e,t)}),r&&this._supportedExtensions.includes(`SMTPUTF8`)&&(n.push(`SMTPUTF8`),this._usingSmtpUtf8=!0),this._envelope.use8BitMime&&this._supportedExtensions.includes(`8BITMIME`)&&(n.push(`BODY=8BITMIME`),this._using8BitMime=!0),this._envelope.size&&this._supportedExtensions.includes(`SIZE`)&&n.push(`SIZE=`+this._envelope.size),this._envelope.dsn&&this._supportedExtensions.includes(`DSN`)&&(this._envelope.dsn.ret&&n.push(`RET=`+d.encodeXText(this._envelope.dsn.ret)),this._envelope.dsn.envid&&n.push(`ENVID=`+d.encodeXText(this._envelope.dsn.envid))),this._sendCommand(`MAIL FROM:<`+this._envelope.from+`>`+(n.length?` `+n.join(` `):``))}_setDsnEnvelope(e){let t=(e.ret||e.return||``).toString().toUpperCase()||null;if(t)switch(t){case`HDRS`:case`HEADERS`:t=`HDRS`;break;case`FULL`:case`BODY`:t=`FULL`;break}if(t&&![`FULL`,`HDRS`].includes(t))throw Error(`ret: `+JSON.stringify(t));let n=(e.envid||e.id||``).toString()||null,r=e.notify||null;if(r){typeof r==`string`&&(r=r.split(`,`)),r=r.map(e=>e.trim().toUpperCase());let e=[`NEVER`,`SUCCESS`,`FAILURE`,`DELAY`];if(r.filter(t=>!e.includes(t)).length||r.length>1&&r.includes(`NEVER`))throw Error(`notify: `+JSON.stringify(r.join(`,`)));r=r.join(`,`)}let i=(e.recipient||e.orcpt||``).toString()||null;return i&&i.indexOf(`;`)<0&&(i=`rfc822;`+i),{ret:t,envid:n,notify:r,orcpt:i}}_getDsnRcptToArgs(){let e=[];return this._envelope.dsn&&this._supportedExtensions.includes(`DSN`)&&(this._envelope.dsn.notify&&e.push(`NOTIFY=`+d.encodeXText(this._envelope.dsn.notify)),this._envelope.dsn.orcpt&&e.push(`ORCPT=`+d.encodeXText(this._envelope.dsn.orcpt))),e.length?` `+e.join(` `):``}_createSendStream(e){let t=new l,n;return this.options.lmtp?this._envelope.accepted.forEach((t,n)=>{let r=n===this._envelope.accepted.length-1;this._responseActions.push(n=>{this._actionLMTPStream(t,r,n,e)})}):this._responseActions.push(t=>{this._actionSMTPStream(t,e)}),t.pipe(this._socket,{end:!1}),this.options.debug&&(n=new u,n.on(`readable`,()=>{let e;for(;e=n.read();)this.logger.debug({tnx:`message`},e.toString(`binary`).replace(/\r?\n$/,``))}),t.pipe(n)),t.once(`end`,()=>{this.logger.info({tnx:`message`,inByteCount:t.inByteCount,outByteCount:t.outByteCount},`<%s bytes encoded mime message (source size %s bytes)>`,t.outByteCount,t.inByteCount)}),t}_actionGreeting(e){if(clearTimeout(this._greetingTimeout),e.substr(0,3)!==`220`){this._onError(Error(`Invalid greeting. response=`+e),`EPROTOCOL`,e,`CONN`);return}this.options.lmtp?(this._responseActions.push(this._actionLHLO),this._sendCommand(`LHLO `+this.name)):(this._responseActions.push(this._actionEHLO),this._sendCommand(`EHLO `+this.name))}_actionLHLO(e){if(e.charAt(0)!==`2`){this._onError(Error(`Invalid LHLO. response=`+e),`EPROTOCOL`,e,`LHLO`);return}this._actionEHLO(e)}_actionEHLO(e){let t;if(e.substr(0,3)===`421`){this._onError(Error(`Server terminates connection. response=`+e),`ECONNECTION`,e,`EHLO`);return}if(e.charAt(0)!==`2`){if(this.options.requireTLS){this._onError(Error(`EHLO failed but HELO does not support required STARTTLS. response=`+e),`ECONNECTION`,e,`EHLO`);return}this._responseActions.push(this._actionHELO),this._sendCommand(`HELO `+this.name);return}if(this._ehloLines=e.split(/\r?\n/).map(e=>e.replace(/^\d+[ -]/,``).trim()).filter(e=>e).slice(1),!this.secure&&!this.options.ignoreTLS&&(/[ -]STARTTLS\b/im.test(e)||this.options.requireTLS)){this._sendCommand(`STARTTLS`),this._responseActions.push(this._actionSTARTTLS);return}/[ -]SMTPUTF8\b/im.test(e)&&this._supportedExtensions.push(`SMTPUTF8`),/[ -]DSN\b/im.test(e)&&this._supportedExtensions.push(`DSN`),/[ -]8BITMIME\b/im.test(e)&&this._supportedExtensions.push(`8BITMIME`),/[ -]PIPELINING\b/im.test(e)&&this._supportedExtensions.push(`PIPELINING`),/[ -]AUTH\b/i.test(e)&&(this.allowsAuth=!0),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)PLAIN/i.test(e)&&this._supportedAuth.push(`PLAIN`),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)LOGIN/i.test(e)&&this._supportedAuth.push(`LOGIN`),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)CRAM-MD5/i.test(e)&&this._supportedAuth.push(`CRAM-MD5`),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)XOAUTH2/i.test(e)&&this._supportedAuth.push(`XOAUTH2`),(t=e.match(/[ -]SIZE(?:[ \t]+(\d+))?/im))&&(this._supportedExtensions.push(`SIZE`),this._maxAllowedSize=Number(t[1])||0),this.emit(`connect`)}_actionHELO(e){if(e.charAt(0)!==`2`){this._onError(Error(`Invalid HELO. response=`+e),`EPROTOCOL`,e,`HELO`);return}this.allowsAuth=!0,this.emit(`connect`)}_actionSTARTTLS(e){if(e.charAt(0)!==`2`){if(this.options.opportunisticTLS)return this.logger.info({tnx:`smtp`},`Failed STARTTLS upgrade, continuing unencrypted`),this.emit(`connect`);this._onError(Error(`Error upgrading connection with STARTTLS`),`ETLS`,e,`STARTTLS`);return}this._upgradeConnection((e,t)=>{if(e){this._onError(Error(`Error initiating TLS - `+(e.message||e)),`ETLS`,!1,`STARTTLS`);return}this.logger.info({tnx:`smtp`},`Connection upgraded with STARTTLS`),t?this.options.lmtp?(this._responseActions.push(this._actionLHLO),this._sendCommand(`LHLO `+this.name)):(this._responseActions.push(this._actionEHLO),this._sendCommand(`EHLO `+this.name)):this.emit(`connect`)})}_actionAUTH_LOGIN_USER(e,t){if(!/^334[ -]/.test(e)){t(this._formatError(`Invalid login sequence while waiting for "334 VXNlcm5hbWU6"`,`EAUTH`,e,`AUTH LOGIN`));return}this._responseActions.push(e=>{this._actionAUTH_LOGIN_PASS(e,t)}),this._sendCommand(Buffer.from(this._auth.credentials.user+``,`utf-8`).toString(`base64`))}_actionAUTH_CRAM_MD5(e,t){let n=e.match(/^334\s+(.+)$/),r=``;if(n)r=n[1];else return t(this._formatError(`Invalid login sequence while waiting for server challenge string`,`EAUTH`,e,`AUTH CRAM-MD5`));let i=Buffer.from(r,`base64`).toString(`ascii`),a=c.createHmac(`md5`,this._auth.credentials.pass);a.update(i);let o=this._auth.credentials.user+` `+a.digest(`hex`);this._responseActions.push(e=>{this._actionAUTH_CRAM_MD5_PASS(e,t)}),this._sendCommand(Buffer.from(o).toString(`base64`),Buffer.from(this._auth.credentials.user+` /* secret */`).toString(`base64`))}_actionAUTH_CRAM_MD5_PASS(e,t){if(!e.match(/^235\s+/))return t(this._formatError(`Invalid login sequence while waiting for "235"`,`EAUTH`,e,`AUTH CRAM-MD5`));this.logger.info({tnx:`smtp`,username:this._auth.user,action:`authenticated`,method:this._authMethod},`User %s authenticated`,JSON.stringify(this._auth.user)),this.authenticated=!0,t(null,!0)}_actionAUTH_LOGIN_PASS(e,t){if(!/^334[ -]/.test(e))return t(this._formatError(`Invalid login sequence while waiting for "334 UGFzc3dvcmQ6"`,`EAUTH`,e,`AUTH LOGIN`));this._responseActions.push(e=>{this._actionAUTHComplete(e,t)}),this._sendCommand(Buffer.from((this._auth.credentials.pass||``).toString(),`utf-8`).toString(`base64`),Buffer.from(`/* secret */`,`utf-8`).toString(`base64`))}_actionAUTHComplete(e,t,n){if(!n&&typeof t==`function`&&(n=t,t=!1),e.substr(0,3)===`334`){this._responseActions.push(e=>{t||this._authMethod!==`XOAUTH2`?this._actionAUTHComplete(e,!0,n):setImmediate(()=>this._handleXOauth2Token(!0,n))}),this._sendCommand(``);return}if(e.charAt(0)!==`2`)return this.logger.info({tnx:`smtp`,username:this._auth.user,action:`authfail`,method:this._authMethod},`User %s failed to authenticate`,JSON.stringify(this._auth.user)),n(this._formatError(`Invalid login`,`EAUTH`,e,`AUTH `+this._authMethod));this.logger.info({tnx:`smtp`,username:this._auth.user,action:`authenticated`,method:this._authMethod},`User %s authenticated`,JSON.stringify(this._auth.user)),this.authenticated=!0,n(null,!0)}_actionMAIL(e,t){let n,r;if(Number(e.charAt(0))!==2)return n=this._usingSmtpUtf8&&/^550 /.test(e)&&/[\x80-\uFFFF]/.test(this._envelope.from)?`Internationalized mailbox name not allowed`:`Mail command failed`,t(this._formatError(n,`EENVELOPE`,e,`MAIL FROM`));if(this._envelope.rcptQueue.length)if(this._recipientQueue=[],this._supportedExtensions.includes(`PIPELINING`))for(;this._envelope.rcptQueue.length;)r=this._envelope.rcptQueue.shift(),this._recipientQueue.push(r),this._responseActions.push(e=>{this._actionRCPT(e,t)}),this._sendCommand(`RCPT TO:<`+r+`>`+this._getDsnRcptToArgs());else r=this._envelope.rcptQueue.shift(),this._recipientQueue.push(r),this._responseActions.push(e=>{this._actionRCPT(e,t)}),this._sendCommand(`RCPT TO:<`+r+`>`+this._getDsnRcptToArgs());else return t(this._formatError(`Can't send mail - no recipients defined`,`EENVELOPE`,!1,`API`))}_actionRCPT(e,t){let n,r,i=this._recipientQueue.shift();if(Number(e.charAt(0))===2?this._envelope.accepted.push(i):(n=this._usingSmtpUtf8&&/^553 /.test(e)&&/[\x80-\uFFFF]/.test(i)?`Internationalized mailbox name not allowed`:`Recipient command failed`,this._envelope.rejected.push(i),r=this._formatError(n,`EENVELOPE`,e,`RCPT TO`),r.recipient=i,this._envelope.rejectedErrors.push(r)),!this._envelope.rcptQueue.length&&!this._recipientQueue.length)if(this._envelope.rejected.length<this._envelope.to.length)this._responseActions.push(e=>{this._actionDATA(e,t)}),this._sendCommand(`DATA`);else return r=this._formatError(`Can't send mail - all recipients were rejected`,`EENVELOPE`,e,`RCPT TO`),r.rejected=this._envelope.rejected,r.rejectedErrors=this._envelope.rejectedErrors,t(r);else this._envelope.rcptQueue.length&&(i=this._envelope.rcptQueue.shift(),this._recipientQueue.push(i),this._responseActions.push(e=>{this._actionRCPT(e,t)}),this._sendCommand(`RCPT TO:<`+i+`>`+this._getDsnRcptToArgs()))}_actionDATA(e,t){if(!/^[23]/.test(e))return t(this._formatError(`Data command failed`,`EENVELOPE`,e,`DATA`));let n={accepted:this._envelope.accepted,rejected:this._envelope.rejected};this._ehloLines&&this._ehloLines.length&&(n.ehlo=this._ehloLines),this._envelope.rejectedErrors.length&&(n.rejectedErrors=this._envelope.rejectedErrors),t(null,n)}_actionSMTPStream(e,t){return Number(e.charAt(0))===2?t(null,e):t(this._formatError(`Message failed`,`EMESSAGE`,e,`DATA`))}_actionLMTPStream(e,t,n,r){let i;if(Number(n.charAt(0))!==2){i=this._formatError(`Message failed for recipient `+e,`EMESSAGE`,n,`DATA`),i.recipient=e,this._envelope.rejected.push(e),this._envelope.rejectedErrors.push(i);for(let t=0,n=this._envelope.accepted.length;t<n;t++)this._envelope.accepted[t]===e&&this._envelope.accepted.splice(t,1)}if(t)return r(null,n)}_handleXOauth2Token(e,t){this._auth.oauth2.getToken(e,(n,r)=>{if(n)return this.logger.info({tnx:`smtp`,username:this._auth.user,action:`authfail`,method:this._authMethod},`User %s failed to authenticate`,JSON.stringify(this._auth.user)),t(this._formatError(n,`EAUTH`,!1,`AUTH XOAUTH2`));this._responseActions.push(n=>{this._actionAUTHComplete(n,e,t)}),this._sendCommand(`AUTH XOAUTH2 `+this._auth.oauth2.buildXOAuth2Token(r),`AUTH XOAUTH2 `+this._auth.oauth2.buildXOAuth2Token(`/* secret */`))})}_isDestroyedMessage(e){if(this._destroyed)return`Cannot `+e+` - smtp connection is already destroyed.`;if(this._socket){if(this._socket.destroyed)return`Cannot `+e+` - smtp connection socket is already destroyed.`;if(!this._socket.writable)return`Cannot `+e+` - smtp connection socket is already half-closed.`}}_getHostname(){let e;try{e=s.hostname()||``}catch{e=`localhost`}return(!e||e.indexOf(`.`)<0)&&(e=`[127.0.0.1]`),e.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)&&(e=`[`+e+`]`),e}}})),mM=n(((e,n)=>{let r=t(`stream`).Stream,i=Kj(),a=t(`crypto`),o=qj();n.exports=class extends r{constructor(e,t){if(super(),this.options=e||{},e&&e.serviceClient){if(!e.privateKey||!e.user){setImmediate(()=>this.emit(`error`,Error(`Options "privateKey" and "user" are required for service account!`)));return}let t=Math.min(Math.max(Number(this.options.serviceRequestTimeout)||0,0),3600);this.options.serviceRequestTimeout=t||300}if(this.logger=o.getLogger({logger:t},{component:this.options.component||`OAuth2`}),this.provisionCallback=typeof this.options.provisionCallback==`function`?this.options.provisionCallback:!1,this.options.accessUrl=this.options.accessUrl||`https://accounts.google.com/o/oauth2/token`,this.options.customHeaders=this.options.customHeaders||{},this.options.customParams=this.options.customParams||{},this.accessToken=this.options.accessToken||!1,this.options.expires&&Number(this.options.expires))this.expires=this.options.expires;else{let e=Math.max(Number(this.options.timeout)||0,0);this.expires=e&&Date.now()+e*1e3||0}this.renewing=!1,this.renewalQueue=[]}getToken(e,t){if(!e&&this.accessToken&&(!this.expires||this.expires>Date.now()))return this.logger.debug({tnx:`OAUTH2`,user:this.options.user,action:`reuse`},`Reusing existing access token for %s`,this.options.user),t(null,this.accessToken);if(!this.provisionCallback&&!this.options.refreshToken&&!this.options.serviceClient)return this.accessToken?(this.logger.debug({tnx:`OAUTH2`,user:this.options.user,action:`reuse`},`Reusing existing access token (no refresh capability) for %s`,this.options.user),t(null,this.accessToken)):(this.logger.error({tnx:`OAUTH2`,user:this.options.user,action:`renew`},`Cannot renew access token for %s: No refresh mechanism available`,this.options.user),t(Error(`Can't create new access token for user`)));if(this.renewing)return this.renewalQueue.push({renew:e,callback:t});this.renewing=!0;let n=(e,n)=>{this.renewalQueue.forEach(t=>t.callback(e,n)),this.renewalQueue=[],this.renewing=!1,e?this.logger.error({err:e,tnx:`OAUTH2`,user:this.options.user,action:`renew`},`Failed generating new Access Token for %s`,this.options.user):this.logger.info({tnx:`OAUTH2`,user:this.options.user,action:`renew`},`Generated new Access Token for %s`,this.options.user),t(e,n)};this.provisionCallback?this.provisionCallback(this.options.user,!!e,(e,t,r)=>{!e&&t&&(this.accessToken=t,this.expires=r||0),n(e,t)}):this.generateToken(n)}updateToken(e,t){this.accessToken=e,t=Math.max(Number(t)||0,0),this.expires=t&&Date.now()+t*1e3||0,this.emit(`token`,{user:this.options.user,accessToken:e||``,expires:this.expires})}generateToken(e){let t,n;if(this.options.serviceClient){let r=Math.floor(Date.now()/1e3),i={iss:this.options.serviceClient,scope:this.options.scope||`https://mail.google.com/`,sub:this.options.user,aud:this.options.accessUrl,iat:r,exp:r+this.options.serviceRequestTimeout},a;try{a=this.jwtSignRS256(i)}catch{return e(Error(`Can't generate token. Check your auth options`))}t={grant_type:`urn:ietf:params:oauth:grant-type:jwt-bearer`,assertion:a},n={grant_type:`urn:ietf:params:oauth:grant-type:jwt-bearer`,assertion:i}}else{if(!this.options.refreshToken)return e(Error(`Can't create new access token for user`));t={client_id:this.options.clientId||``,client_secret:this.options.clientSecret||``,refresh_token:this.options.refreshToken,grant_type:`refresh_token`},n={client_id:this.options.clientId||``,client_secret:(this.options.clientSecret||``).substr(0,6)+`...`,refresh_token:(this.options.refreshToken||``).substr(0,6)+`...`,grant_type:`refresh_token`}}Object.keys(this.options.customParams).forEach(e=>{t[e]=this.options.customParams[e],n[e]=this.options.customParams[e]}),this.logger.debug({tnx:`OAUTH2`,user:this.options.user,action:`generate`},`Requesting token using: %s`,JSON.stringify(n)),this.postRequest(this.options.accessUrl,t,this.options,(t,n)=>{let r;if(t)return e(t);try{r=JSON.parse(n.toString())}catch(t){return e(t)}if(!r||typeof r!=`object`)return this.logger.debug({tnx:`OAUTH2`,user:this.options.user,action:`post`},`Response: %s`,(n||``).toString()),e(Error(`Invalid authentication response`));let i={};if(Object.keys(r).forEach(e=>{e===`access_token`?i[e]=(r[e]||``).toString().substr(0,6)+`...`:i[e]=r[e]}),this.logger.debug({tnx:`OAUTH2`,user:this.options.user,action:`post`},`Response: %s`,JSON.stringify(i)),r.error){let t=r.error;return r.error_description&&(t+=`: `+r.error_description),r.error_uri&&(t+=` (`+r.error_uri+`)`),e(Error(t))}return r.access_token?(this.updateToken(r.access_token,r.expires_in),e(null,this.accessToken)):e(Error(`No access token`))})}buildXOAuth2Token(e){let t=[`user=`+(this.options.user||``),`auth=Bearer `+(e||this.accessToken),``,``];return Buffer.from(t.join(``),`utf-8`).toString(`base64`)}postRequest(e,t,n,r){let a=!1,o=[],s=0,c=i(e,{method:`post`,headers:n.customHeaders,body:t,allowErrorResponse:!0});c.on(`readable`,()=>{let e;for(;(e=c.read())!==null;)o.push(e),s+=e.length}),c.once(`error`,e=>{if(!a)return a=!0,r(e)}),c.once(`end`,()=>{if(!a)return a=!0,r(null,Buffer.concat(o,s))})}toBase64URL(e){return typeof e==`string`&&(e=Buffer.from(e)),e.toString(`base64`).replace(/[=]+/g,``).replace(/\+/g,`-`).replace(/\//g,`_`)}jwtSignRS256(e){e=[`{"alg":"RS256","typ":"JWT"}`,JSON.stringify(e)].map(e=>this.toBase64URL(e)).join(`.`);let t=a.createSign(`RSA-SHA256`).update(e).sign(this.options.privateKey);return e+`.`+this.toBase64URL(t)}}})),hM=n(((e,n)=>{let r=pM(),i=qj().assign,a=mM(),o=t(`events`);n.exports=class extends o{constructor(e){if(super(),this.pool=e,this.options=e.options,this.logger=this.pool.logger,this.options.auth)switch((this.options.auth.type||``).toString().toUpperCase()){case`OAUTH2`:{let e=new a(this.options.auth,this.logger);e.provisionCallback=this.pool.mailer&&this.pool.mailer.get(`oauth2_provision_cb`)||e.provisionCallback,this.auth={type:`OAUTH2`,user:this.options.auth.user,oauth2:e,method:`XOAUTH2`},e.on(`token`,e=>this.pool.mailer.emit(`token`,e)),e.on(`error`,e=>this.emit(`error`,e));break}default:if(!this.options.auth.user&&!this.options.auth.pass)break;this.auth={type:(this.options.auth.type||``).toString().toUpperCase()||`LOGIN`,user:this.options.auth.user,credentials:{user:this.options.auth.user||``,pass:this.options.auth.pass,options:this.options.auth.options},method:(this.options.auth.method||``).trim().toUpperCase()||this.options.authMethod||!1}}this._connection=!1,this._connected=!1,this.messages=0,this.available=!0}connect(e){this.pool.getSocket(this.options,(t,n)=>{if(t)return e(t);let a=!1,o=this.options;n&&n.connection&&(this.logger.info({tnx:`proxy`,remoteAddress:n.connection.remoteAddress,remotePort:n.connection.remotePort,destHost:o.host||``,destPort:o.port||``,action:`connected`},`Using proxied socket from %s:%s to %s:%s`,n.connection.remoteAddress,n.connection.remotePort,o.host||``,o.port||``),o=i(!1,o),Object.keys(n).forEach(e=>{o[e]=n[e]})),this.connection=new r(o),this.connection.once(`error`,t=>{if(this.emit(`error`,t),!a)return a=!0,e(t)}),this.connection.once(`end`,()=>{if(this.close(),a)return;a=!0;let t=setTimeout(()=>{if(a)return;let t=Error(`Unexpected socket close`);this.connection&&this.connection._socket&&this.connection._socket.upgrading&&(t.code=`ETLS`),e(t)},1e3);try{t.unref()}catch{}}),this.connection.connect(()=>{if(!a)if(this.auth&&(this.connection.allowsAuth||o.forceAuth))this.connection.login(this.auth,t=>{if(!a){if(a=!0,t)return this.connection.close(),this.emit(`error`,t),e(t);this._connected=!0,e(null,!0)}});else return a=!0,this._connected=!0,e(null,!0)})})}send(e,t){if(!this._connected)return this.connect(n=>n?t(n):this.send(e,t));let n=e.message.getEnvelope(),r=e.message.messageId(),i=[].concat(n.to||[]);i.length>3&&i.push(`...and `+i.splice(2).length+` more`),this.logger.info({tnx:`send`,messageId:r,cid:this.id},`Sending message %s using #%s to <%s>`,r,this.id,i.join(`, `)),e.data.dsn&&(n.dsn=e.data.dsn),this.connection.send(n,e.message.createReadStream(),(e,i)=>{if(this.messages++,e)return this.connection.close(),this.emit(`error`,e),t(e);i.envelope={from:n.from,to:n.to},i.messageId=r,setImmediate(()=>{let e;this.messages>=this.options.maxMessages?(e=Error(`Resource exhausted`),e.code=`EMAXLIMIT`,this.connection.close(),this.emit(`error`,e)):this.pool._checkRateLimit(()=>{this.available=!0,this.emit(`available`)})}),t(null,i)})}close(){this._connected=!1,this.auth&&this.auth.oauth2&&this.auth.oauth2.removeAllListeners(),this.connection&&this.connection.close(),this.emit(`close`)}}})),gM=n(((e,t)=>{t.exports={"1und1":{description:`1&1 Mail (German hosting provider)`,host:`smtp.1und1.de`,port:465,secure:!0,authMethod:`LOGIN`},126:{description:`126 Mail (NetEase)`,host:`smtp.126.com`,port:465,secure:!0},163:{description:`163 Mail (NetEase)`,host:`smtp.163.com`,port:465,secure:!0},Aliyun:{description:`Alibaba Cloud Mail`,domains:[`aliyun.com`],host:`smtp.aliyun.com`,port:465,secure:!0},AliyunQiye:{description:`Alibaba Cloud Enterprise Mail`,host:`smtp.qiye.aliyun.com`,port:465,secure:!0},AOL:{description:`AOL Mail`,domains:[`aol.com`],host:`smtp.aol.com`,port:587},Aruba:{description:`Aruba PEC (Italian email provider)`,domains:[`aruba.it`,`pec.aruba.it`],aliases:[`Aruba PEC`],host:`smtps.aruba.it`,port:465,secure:!0,authMethod:`LOGIN`},Bluewin:{description:`Bluewin (Swiss email provider)`,host:`smtpauths.bluewin.ch`,domains:[`bluewin.ch`],port:465},BOL:{description:`BOL Mail (Brazilian provider)`,domains:[`bol.com.br`],host:`smtp.bol.com.br`,port:587,requireTLS:!0},DebugMail:{description:`DebugMail (email testing service)`,host:`debugmail.io`,port:25},Disroot:{description:`Disroot (privacy-focused provider)`,domains:[`disroot.org`],host:`disroot.org`,port:587,secure:!1,authMethod:`LOGIN`},DynectEmail:{description:`Dyn Email Delivery`,aliases:[`Dynect`],host:`smtp.dynect.net`,port:25},ElasticEmail:{description:`Elastic Email`,aliases:[`Elastic Email`],host:`smtp.elasticemail.com`,port:465,secure:!0},Ethereal:{description:`Ethereal Email (email testing service)`,aliases:[`ethereal.email`],host:`smtp.ethereal.email`,port:587},FastMail:{description:`FastMail`,domains:[`fastmail.fm`],host:`smtp.fastmail.com`,port:465,secure:!0},"Feishu Mail":{description:`Feishu Mail (Lark)`,aliases:[`Feishu`,`FeishuMail`],domains:[`www.feishu.cn`],host:`smtp.feishu.cn`,port:465,secure:!0},"Forward Email":{description:`Forward Email (email forwarding service)`,aliases:[`FE`,`ForwardEmail`],domains:[`forwardemail.net`],host:`smtp.forwardemail.net`,port:465,secure:!0},GandiMail:{description:`Gandi Mail`,aliases:[`Gandi`,`Gandi Mail`],host:`mail.gandi.net`,port:587},Gmail:{description:`Gmail`,aliases:[`Google Mail`],domains:[`gmail.com`,`googlemail.com`],host:`smtp.gmail.com`,port:465,secure:!0},GMX:{description:`GMX Mail`,domains:[`gmx.com`,`gmx.net`,`gmx.de`],host:`mail.gmx.com`,port:587},Godaddy:{description:`GoDaddy Email (US)`,host:`smtpout.secureserver.net`,port:25},GodaddyAsia:{description:`GoDaddy Email (Asia)`,host:`smtp.asia.secureserver.net`,port:25},GodaddyEurope:{description:`GoDaddy Email (Europe)`,host:`smtp.europe.secureserver.net`,port:25},"hot.ee":{description:`Hot.ee (Estonian email provider)`,host:`mail.hot.ee`},Hotmail:{description:`Outlook.com / Hotmail`,aliases:[`Outlook`,`Outlook.com`,`Hotmail.com`],domains:[`hotmail.com`,`outlook.com`],host:`smtp-mail.outlook.com`,port:587},iCloud:{description:`iCloud Mail`,aliases:[`Me`,`Mac`],domains:[`me.com`,`mac.com`],host:`smtp.mail.me.com`,port:587},Infomaniak:{description:`Infomaniak Mail (Swiss hosting provider)`,host:`mail.infomaniak.com`,domains:[`ik.me`,`ikmail.com`,`etik.com`],port:587},KolabNow:{description:`KolabNow (secure email service)`,domains:[`kolabnow.com`],aliases:[`Kolab`],host:`smtp.kolabnow.com`,port:465,secure:!0,authMethod:`LOGIN`},Loopia:{description:`Loopia (Swedish hosting provider)`,host:`mailcluster.loopia.se`,port:465},Loops:{description:`Loops`,host:`smtp.loops.so`,port:587},"mail.ee":{description:`Mail.ee (Estonian email provider)`,host:`smtp.mail.ee`},"Mail.ru":{description:`Mail.ru`,host:`smtp.mail.ru`,port:465,secure:!0},"Mailcatch.app":{description:`Mailcatch (email testing service)`,host:`sandbox-smtp.mailcatch.app`,port:2525},Maildev:{description:`MailDev (local email testing)`,port:1025,ignoreTLS:!0},MailerSend:{description:`MailerSend`,host:`smtp.mailersend.net`,port:587},Mailgun:{description:`Mailgun`,host:`smtp.mailgun.org`,port:465,secure:!0},Mailjet:{description:`Mailjet`,host:`in.mailjet.com`,port:587},Mailosaur:{description:`Mailosaur (email testing service)`,host:`mailosaur.io`,port:25},Mailtrap:{description:`Mailtrap`,host:`live.smtp.mailtrap.io`,port:587},Mandrill:{description:`Mandrill (by Mailchimp)`,host:`smtp.mandrillapp.com`,port:587},Naver:{description:`Naver Mail (Korean email provider)`,host:`smtp.naver.com`,port:587},OhMySMTP:{description:`OhMySMTP (email delivery service)`,host:`smtp.ohmysmtp.com`,port:587,secure:!1},One:{description:`One.com Email`,host:`send.one.com`,port:465,secure:!0},OpenMailBox:{description:`OpenMailBox`,aliases:[`OMB`,`openmailbox.org`],host:`smtp.openmailbox.org`,port:465,secure:!0},Outlook365:{description:`Microsoft 365 / Office 365`,host:`smtp.office365.com`,port:587,secure:!1},Postmark:{description:`Postmark`,aliases:[`PostmarkApp`],host:`smtp.postmarkapp.com`,port:2525},Proton:{description:`Proton Mail`,aliases:[`ProtonMail`,`Proton.me`,`Protonmail.com`,`Protonmail.ch`],domains:[`proton.me`,`protonmail.com`,`pm.me`,`protonmail.ch`],host:`smtp.protonmail.ch`,port:587,requireTLS:!0},"qiye.aliyun":{description:`Alibaba Mail Enterprise Edition`,host:`smtp.mxhichina.com`,port:`465`,secure:!0},QQ:{description:`QQ Mail`,domains:[`qq.com`],host:`smtp.qq.com`,port:465,secure:!0},QQex:{description:`QQ Enterprise Mail`,aliases:[`QQ Enterprise`],domains:[`exmail.qq.com`],host:`smtp.exmail.qq.com`,port:465,secure:!0},Resend:{description:`Resend`,host:`smtp.resend.com`,port:465,secure:!0},Runbox:{description:`Runbox (Norwegian email provider)`,domains:[`runbox.com`],host:`smtp.runbox.com`,port:465,secure:!0},SendCloud:{description:`SendCloud (Chinese email delivery)`,host:`smtp.sendcloud.net`,port:2525},SendGrid:{description:`SendGrid`,host:`smtp.sendgrid.net`,port:587},SendinBlue:{description:`Brevo (formerly Sendinblue)`,aliases:[`Brevo`],host:`smtp-relay.brevo.com`,port:587},SendPulse:{description:`SendPulse`,host:`smtp-pulse.com`,port:465,secure:!0},SES:{description:`AWS SES US East (N. Virginia)`,host:`email-smtp.us-east-1.amazonaws.com`,port:465,secure:!0},"SES-AP-NORTHEAST-1":{description:`AWS SES Asia Pacific (Tokyo)`,host:`email-smtp.ap-northeast-1.amazonaws.com`,port:465,secure:!0},"SES-AP-NORTHEAST-2":{description:`AWS SES Asia Pacific (Seoul)`,host:`email-smtp.ap-northeast-2.amazonaws.com`,port:465,secure:!0},"SES-AP-NORTHEAST-3":{description:`AWS SES Asia Pacific (Osaka)`,host:`email-smtp.ap-northeast-3.amazonaws.com`,port:465,secure:!0},"SES-AP-SOUTH-1":{description:`AWS SES Asia Pacific (Mumbai)`,host:`email-smtp.ap-south-1.amazonaws.com`,port:465,secure:!0},"SES-AP-SOUTHEAST-1":{description:`AWS SES Asia Pacific (Singapore)`,host:`email-smtp.ap-southeast-1.amazonaws.com`,port:465,secure:!0},"SES-AP-SOUTHEAST-2":{description:`AWS SES Asia Pacific (Sydney)`,host:`email-smtp.ap-southeast-2.amazonaws.com`,port:465,secure:!0},"SES-CA-CENTRAL-1":{description:`AWS SES Canada (Central)`,host:`email-smtp.ca-central-1.amazonaws.com`,port:465,secure:!0},"SES-EU-CENTRAL-1":{description:`AWS SES Europe (Frankfurt)`,host:`email-smtp.eu-central-1.amazonaws.com`,port:465,secure:!0},"SES-EU-NORTH-1":{description:`AWS SES Europe (Stockholm)`,host:`email-smtp.eu-north-1.amazonaws.com`,port:465,secure:!0},"SES-EU-WEST-1":{description:`AWS SES Europe (Ireland)`,host:`email-smtp.eu-west-1.amazonaws.com`,port:465,secure:!0},"SES-EU-WEST-2":{description:`AWS SES Europe (London)`,host:`email-smtp.eu-west-2.amazonaws.com`,port:465,secure:!0},"SES-EU-WEST-3":{description:`AWS SES Europe (Paris)`,host:`email-smtp.eu-west-3.amazonaws.com`,port:465,secure:!0},"SES-SA-EAST-1":{description:`AWS SES South America (São Paulo)`,host:`email-smtp.sa-east-1.amazonaws.com`,port:465,secure:!0},"SES-US-EAST-1":{description:`AWS SES US East (N. Virginia)`,host:`email-smtp.us-east-1.amazonaws.com`,port:465,secure:!0},"SES-US-EAST-2":{description:`AWS SES US East (Ohio)`,host:`email-smtp.us-east-2.amazonaws.com`,port:465,secure:!0},"SES-US-GOV-EAST-1":{description:`AWS SES GovCloud (US-East)`,host:`email-smtp.us-gov-east-1.amazonaws.com`,port:465,secure:!0},"SES-US-GOV-WEST-1":{description:`AWS SES GovCloud (US-West)`,host:`email-smtp.us-gov-west-1.amazonaws.com`,port:465,secure:!0},"SES-US-WEST-1":{description:`AWS SES US West (N. California)`,host:`email-smtp.us-west-1.amazonaws.com`,port:465,secure:!0},"SES-US-WEST-2":{description:`AWS SES US West (Oregon)`,host:`email-smtp.us-west-2.amazonaws.com`,port:465,secure:!0},Seznam:{description:`Seznam Email (Czech email provider)`,aliases:[`Seznam Email`],domains:[`seznam.cz`,`email.cz`,`post.cz`,`spoluzaci.cz`],host:`smtp.seznam.cz`,port:465,secure:!0},SMTP2GO:{description:`SMTP2GO`,host:`mail.smtp2go.com`,port:2525},Sparkpost:{description:`SparkPost`,aliases:[`SparkPost`,`SparkPost Mail`],domains:[`sparkpost.com`],host:`smtp.sparkpostmail.com`,port:587,secure:!1},Tipimail:{description:`Tipimail (email delivery service)`,host:`smtp.tipimail.com`,port:587},Tutanota:{description:`Tutanota (Tuta Mail)`,domains:[`tutanota.com`,`tuta.com`,`tutanota.de`,`tuta.io`],host:`smtp.tutanota.com`,port:465,secure:!0},Yahoo:{description:`Yahoo Mail`,domains:[`yahoo.com`],host:`smtp.mail.yahoo.com`,port:465,secure:!0},Yandex:{description:`Yandex Mail`,domains:[`yandex.ru`],host:`smtp.yandex.ru`,port:465,secure:!0},Zimbra:{description:`Zimbra Mail Server`,aliases:[`Zimbra Collaboration`],host:`smtp.zimbra.com`,port:587,requireTLS:!0},Zoho:{description:`Zoho Mail`,host:`smtp.zoho.com`,port:465,secure:!0,authMethod:`LOGIN`}}})),_M=n(((e,t)=>{let n=gM(),r={};Object.keys(n).forEach(e=>{let t=n[e];r[i(e)]=a(t),[].concat(t.aliases||[]).forEach(e=>{r[i(e)]=a(t)}),[].concat(t.domains||[]).forEach(e=>{r[i(e)]=a(t)})});function i(e){return e.replace(/[^a-zA-Z0-9.-]/g,``).toLowerCase()}function a(e){let t=[`domains`,`aliases`],n={};return Object.keys(e).forEach(r=>{t.indexOf(r)<0&&(n[r]=e[r])}),n}t.exports=function(e){return e=i(e.split(`@`).pop()),r[e]||!1}})),vM=n(((e,n)=>{let r=t(`events`),i=hM(),a=pM(),o=_M(),s=qj(),c=Gj();n.exports=class extends r{constructor(e){super(),e||={},typeof e==`string`&&(e={url:e});let t,n=e.service;typeof e.getSocket==`function`&&(this.getSocket=e.getSocket),e.url&&(t=s.parseConnectionUrl(e.url),n||=t.service),this.options=s.assign(!1,e,t,n&&o(n)),this.options.maxConnections=this.options.maxConnections||5,this.options.maxMessages=this.options.maxMessages||100,this.logger=s.getLogger(this.options,{component:this.options.component||`smtp-pool`});let r=new a(this.options);this.name=`SMTP (pool)`,this.version=c.version+`[client:`+r.version+`]`,this._rateLimit={counter:0,timeout:null,waiting:[],checkpoint:!1,delta:Number(this.options.rateDelta)||1e3,limit:Number(this.options.rateLimit)||0},this._closed=!1,this._queue=[],this._connections=[],this._connectionCounter=0,this.idling=!0,setImmediate(()=>{this.idling&&this.emit(`idle`)})}getSocket(e,t){return setImmediate(()=>t(null,!1))}send(e,t){return this._closed?!1:(this._queue.push({mail:e,requeueAttempts:0,callback:t}),this.idling&&this._queue.length>=this.options.maxConnections&&(this.idling=!1),setImmediate(()=>this._processMessages()),!0)}close(){let e,t=this._connections.length;if(this._closed=!0,clearTimeout(this._rateLimit.timeout),!t&&!this._queue.length)return;for(let n=t-1;n>=0;n--)this._connections[n]&&this._connections[n].available&&(e=this._connections[n],e.close(),this.logger.info({tnx:`connection`,cid:e.id,action:`removed`},`Connection #%s removed`,e.id));if(t&&!this._connections.length&&this.logger.debug({tnx:`connection`},`All connections removed`),!this._queue.length)return;let n=()=>{if(!this._queue.length){this.logger.debug({tnx:`connection`},`Pending queue entries cleared`);return}let t=this._queue.shift();if(t&&typeof t.callback==`function`)try{t.callback(Error(`Connection pool was closed`))}catch(t){this.logger.error({err:t,tnx:`callback`,cid:e.id},`Callback error for #%s: %s`,e.id,t.message)}setImmediate(n)};setImmediate(n)}_processMessages(){let e,t,n;if(this._closed)return;if(!this._queue.length){this.idling||(this.idling=!0,this.emit(`idle`));return}for(t=0,n=this._connections.length;t<n;t++)if(this._connections[t].available){e=this._connections[t];break}if(!e&&this._connections.length<this.options.maxConnections&&(e=this._createConnection()),!e){this.idling=!1;return}!this.idling&&this._queue.length<this.options.maxConnections&&(this.idling=!0,this.emit(`idle`));let r=e.queueEntry=this._queue.shift();r.messageId=(e.queueEntry.mail.message.getHeader(`message-id`)||``).replace(/[<>\s]/g,``),e.available=!1,this.logger.debug({tnx:`pool`,cid:e.id,messageId:r.messageId,action:`assign`},`Assigned message <%s> to #%s (%s)`,r.messageId,e.id,e.messages+1),this._rateLimit.limit&&(this._rateLimit.counter++,this._rateLimit.checkpoint||(this._rateLimit.checkpoint=Date.now())),e.send(r.mail,(t,n)=>{if(r===e.queueEntry){try{r.callback(t,n)}catch(t){this.logger.error({err:t,tnx:`callback`,cid:e.id},`Callback error for #%s: %s`,e.id,t.message)}e.queueEntry=!1}})}_createConnection(){let e=new i(this);return e.id=++this._connectionCounter,this.logger.info({tnx:`pool`,cid:e.id,action:`conection`},`Created new pool resource #%s`,e.id),e.on(`available`,()=>{this.logger.debug({tnx:`connection`,cid:e.id,action:`available`},`Connection #%s became available`,e.id),this._closed?this.close():this._processMessages()}),e.once(`error`,t=>{if(t.code===`EMAXLIMIT`?this.logger.debug({tnx:`pool`,cid:e.id,action:`maxlimit`},`Max messages limit exchausted for #%s`,e.id):this.logger.error({err:t,tnx:`pool`,cid:e.id},`Pool Error for #%s: %s`,e.id,t.message),e.queueEntry){try{e.queueEntry.callback(t)}catch(t){this.logger.error({err:t,tnx:`callback`,cid:e.id},`Callback error for #%s: %s`,e.id,t.message)}e.queueEntry=!1}this._removeConnection(e),this._continueProcessing()}),e.once(`close`,()=>{this.logger.info({tnx:`connection`,cid:e.id,action:`closed`},`Connection #%s was closed`,e.id),this._removeConnection(e),e.queueEntry?setTimeout(()=>{e.queueEntry&&(this._shouldRequeuOnConnectionClose(e.queueEntry)?this._requeueEntryOnConnectionClose(e):this._failDeliveryOnConnectionClose(e)),this._continueProcessing()},50):(!this._closed&&this.idling&&!this._connections.length&&this.emit(`clear`),this._continueProcessing())}),this._connections.push(e),e}_shouldRequeuOnConnectionClose(e){return this.options.maxRequeues===void 0||this.options.maxRequeues<0?!0:e.requeueAttempts<this.options.maxRequeues}_failDeliveryOnConnectionClose(e){if(e.queueEntry&&e.queueEntry.callback){try{e.queueEntry.callback(Error(`Reached maximum number of retries after connection was closed`))}catch(t){this.logger.error({err:t,tnx:`callback`,messageId:e.queueEntry.messageId,cid:e.id},`Callback error for #%s: %s`,e.id,t.message)}e.queueEntry=!1}}_requeueEntryOnConnectionClose(e){e.queueEntry.requeueAttempts=e.queueEntry.requeueAttempts+1,this.logger.debug({tnx:`pool`,cid:e.id,messageId:e.queueEntry.messageId,action:`requeue`},`Re-queued message <%s> for #%s. Attempt: #%s`,e.queueEntry.messageId,e.id,e.queueEntry.requeueAttempts),this._queue.unshift(e.queueEntry),e.queueEntry=!1}_continueProcessing(){this._closed?this.close():setTimeout(()=>this._processMessages(),100)}_removeConnection(e){let t=this._connections.indexOf(e);t!==-1&&this._connections.splice(t,1)}_checkRateLimit(e){if(!this._rateLimit.limit)return e();let t=Date.now();if(this._rateLimit.counter<this._rateLimit.limit)return e();if(this._rateLimit.waiting.push(e),this._rateLimit.checkpoint<=t-this._rateLimit.delta)return this._clearRateLimit();this._rateLimit.timeout||(this._rateLimit.timeout=setTimeout(()=>this._clearRateLimit(),this._rateLimit.delta-(t-this._rateLimit.checkpoint)),this._rateLimit.checkpoint=t)}_clearRateLimit(){for(clearTimeout(this._rateLimit.timeout),this._rateLimit.timeout=null,this._rateLimit.counter=0,this._rateLimit.checkpoint=!1;this._rateLimit.waiting.length;){let e=this._rateLimit.waiting.shift();setImmediate(e)}}isIdle(){return this.idling}verify(e){let t;e||(t=new Promise((t,n)=>{e=s.callbackPromise(t,n)}));let n=new i(this).auth;return this.getSocket(this.options,(t,r)=>{if(t)return e(t);let i=this.options;r&&r.connection&&(this.logger.info({tnx:`proxy`,remoteAddress:r.connection.remoteAddress,remotePort:r.connection.remotePort,destHost:i.host||``,destPort:i.port||``,action:`connected`},`Using proxied socket from %s:%s to %s:%s`,r.connection.remoteAddress,r.connection.remotePort,i.host||``,i.port||``),i=s.assign(!1,i),Object.keys(r).forEach(e=>{i[e]=r[e]}));let o=new a(i),c=!1;o.once(`error`,t=>{if(!c)return c=!0,o.close(),e(t)}),o.once(`end`,()=>{if(!c)return c=!0,e(Error(`Connection closed`))});let l=()=>{if(!c)return c=!0,o.quit(),e(null,!0)};o.connect(()=>{if(!c)if(n&&(o.allowsAuth||i.forceAuth))o.login(n,t=>{if(!c){if(t)return c=!0,o.close(),e(t);l()}});else if(!n&&o.allowsAuth&&i.forceAuth){let t=Error(`Authentication info was not provided`);return t.code=`NoAuth`,c=!0,o.close(),e(t)}else l()})}),t}}})),yM=n(((e,n)=>{let r=t(`events`),i=pM(),a=_M(),o=qj(),s=mM(),c=Gj();n.exports=class extends r{constructor(e){super(),e||={},typeof e==`string`&&(e={url:e});let t,n=e.service;typeof e.getSocket==`function`&&(this.getSocket=e.getSocket),e.url&&(t=o.parseConnectionUrl(e.url),n||=t.service),this.options=o.assign(!1,e,t,n&&a(n)),this.logger=o.getLogger(this.options,{component:this.options.component||`smtp-transport`});let r=new i(this.options);this.name=`SMTP`,this.version=c.version+`[client:`+r.version+`]`,this.options.auth&&(this.auth=this.getAuth({}))}getSocket(e,t){return setImmediate(()=>t(null,!1))}getAuth(e){if(!e)return this.auth;let t=!1,n={};if(this.options.auth&&typeof this.options.auth==`object`&&Object.keys(this.options.auth).forEach(e=>{t=!0,n[e]=this.options.auth[e]}),e&&typeof e==`object`&&Object.keys(e).forEach(r=>{t=!0,n[r]=e[r]}),!t)return!1;switch((n.type||``).toString().toUpperCase()){case`OAUTH2`:{if(!n.service&&!n.user)return!1;let e=new s(n,this.logger);return e.provisionCallback=this.mailer&&this.mailer.get(`oauth2_provision_cb`)||e.provisionCallback,e.on(`token`,e=>this.mailer.emit(`token`,e)),e.on(`error`,e=>this.emit(`error`,e)),{type:`OAUTH2`,user:n.user,oauth2:e,method:`XOAUTH2`}}default:return{type:(n.type||``).toString().toUpperCase()||`LOGIN`,user:n.user,credentials:{user:n.user||``,pass:n.pass,options:n.options},method:(n.method||``).trim().toUpperCase()||this.options.authMethod||!1}}}send(e,t){this.getSocket(this.options,(n,r)=>{if(n)return t(n);let a=!1,s=this.options;r&&r.connection&&(this.logger.info({tnx:`proxy`,remoteAddress:r.connection.remoteAddress,remotePort:r.connection.remotePort,destHost:s.host||``,destPort:s.port||``,action:`connected`},`Using proxied socket from %s:%s to %s:%s`,r.connection.remoteAddress,r.connection.remotePort,s.host||``,s.port||``),s=o.assign(!1,s),Object.keys(r).forEach(e=>{s[e]=r[e]}));let c=new i(s);c.once(`error`,e=>{if(!a)return a=!0,c.close(),t(e)}),c.once(`end`,()=>{if(a)return;let e=setTimeout(()=>{if(a)return;a=!0;let e=Error(`Unexpected socket close`);c&&c._socket&&c._socket.upgrading&&(e.code=`ETLS`),t(e)},1e3);try{e.unref()}catch{}});let l=()=>{let n=e.message.getEnvelope(),r=e.message.messageId(),i=[].concat(n.to||[]);i.length>3&&i.push(`...and `+i.splice(2).length+` more`),e.data.dsn&&(n.dsn=e.data.dsn),this.logger.info({tnx:`send`,messageId:r},`Sending message %s to <%s>`,r,i.join(`, `)),c.send(n,e.message.createReadStream(),(e,i)=>{if(a=!0,c.close(),e)return this.logger.error({err:e,tnx:`send`},`Send error for %s: %s`,r,e.message),t(e);i.envelope={from:n.from,to:n.to},i.messageId=r;try{return t(null,i)}catch(e){this.logger.error({err:e,tnx:`callback`},`Callback error for %s: %s`,r,e.message)}})};c.connect(()=>{if(a)return;let n=this.getAuth(e.data.auth);n&&(c.allowsAuth||s.forceAuth)?c.login(n,e=>{if(n&&n!==this.auth&&n.oauth2&&n.oauth2.removeAllListeners(),!a){if(e)return a=!0,c.close(),t(e);l()}}):l()})})}verify(e){let t;return e||(t=new Promise((t,n)=>{e=o.callbackPromise(t,n)})),this.getSocket(this.options,(t,n)=>{if(t)return e(t);let r=this.options;n&&n.connection&&(this.logger.info({tnx:`proxy`,remoteAddress:n.connection.remoteAddress,remotePort:n.connection.remotePort,destHost:r.host||``,destPort:r.port||``,action:`connected`},`Using proxied socket from %s:%s to %s:%s`,n.connection.remoteAddress,n.connection.remotePort,r.host||``,r.port||``),r=o.assign(!1,r),Object.keys(n).forEach(e=>{r[e]=n[e]}));let a=new i(r),s=!1;a.once(`error`,t=>{if(!s)return s=!0,a.close(),e(t)}),a.once(`end`,()=>{if(!s)return s=!0,e(Error(`Connection closed`))});let c=()=>{if(!s)return s=!0,a.quit(),e(null,!0)};a.connect(()=>{if(s)return;let t=this.getAuth({});if(t&&(a.allowsAuth||r.forceAuth))a.login(t,t=>{if(!s){if(t)return s=!0,a.close(),e(t);c()}});else if(!t&&a.allowsAuth&&r.forceAuth){let t=Error(`Authentication info was not provided`);return t.code=`NoAuth`,s=!0,a.close(),e(t)}else c()})}),t}close(){this.auth&&this.auth.oauth2&&this.auth.oauth2.removeAllListeners(),this.emit(`close`)}}})),bM=n(((e,n)=>{let r=t(`child_process`).spawn,i=Gj(),a=qj();n.exports=class{constructor(e){e||={},this._spawn=r,this.options=e||{},this.name=`Sendmail`,this.version=i.version,this.path=`sendmail`,this.args=!1,this.winbreak=!1,this.logger=a.getLogger(this.options,{component:this.options.component||`sendmail`}),e&&(typeof e==`string`?this.path=e:typeof e==`object`&&(e.path&&(this.path=e.path),Array.isArray(e.args)&&(this.args=e.args),this.winbreak=[`win`,`windows`,`dos`,`\r
214
- `].includes((e.newline||``).toString().toLowerCase())))}send(e,t){e.message.keepBcc=!0;let n=e.data.envelope||e.message.getEnvelope(),r=e.message.messageId(),i,a,o;if([].concat(n.from||[],n.to||[]).some(e=>/^-/.test(e)))return t(Error(`Can not send mail. Invalid envelope addresses.`));i=this.args?[`-i`].concat(this.args,n.to):[`-i`].concat(n.from?[`-f`,n.from]:[],n.to);let s=n=>{if(!o&&(o=!0,typeof t==`function`))return n?t(n):t(null,{envelope:e.data.envelope||e.message.getEnvelope(),messageId:r,response:`Messages queued for delivery`})};try{a=this._spawn(this.path,i)}catch(e){return this.logger.error({err:e,tnx:`spawn`,messageId:r},`Error occurred while spawning sendmail. %s`,e.message),s(e)}if(a){a.on(`error`,e=>{this.logger.error({err:e,tnx:`spawn`,messageId:r},`Error occurred when sending message %s. %s`,r,e.message),s(e)}),a.once(`exit`,e=>{if(!e)return s();let t;t=e===127?Error(`Sendmail command not found, process exited with code `+e):Error(`Sendmail exited with code `+e),this.logger.error({err:t,tnx:`stdin`,messageId:r},`Error sending message %s to sendmail. %s`,r,t.message),s(t)}),a.once(`close`,s),a.stdin.on(`error`,e=>{this.logger.error({err:e,tnx:`stdin`,messageId:r},`Error occurred when piping message %s to sendmail. %s`,r,e.message),s(e)});let t=[].concat(n.to||[]);t.length>3&&t.push(`...and `+t.splice(2).length+` more`),this.logger.info({tnx:`send`,messageId:r},`Sending message %s to <%s>`,r,t.join(`, `));let i=e.message.createReadStream();i.once(`error`,e=>{this.logger.error({err:e,tnx:`stdin`,messageId:r},`Error occurred when generating message %s. %s`,r,e.message),a.kill(`SIGINT`),s(e)}),i.pipe(a.stdin)}else return s(Error(`sendmail was not found`))}}})),xM=n(((e,t)=>{let n=Gj(),r=qj();t.exports=class{constructor(e){e||={},this.options=e||{},this.name=`StreamTransport`,this.version=n.version,this.logger=r.getLogger(this.options,{component:this.options.component||`stream-transport`}),this.winbreak=[`win`,`windows`,`dos`,`\r
215
- `].includes((e.newline||``).toString().toLowerCase())}send(e,t){e.message.keepBcc=!0;let n=e.data.envelope||e.message.getEnvelope(),r=e.message.messageId(),i=[].concat(n.to||[]);i.length>3&&i.push(`...and `+i.splice(2).length+` more`),this.logger.info({tnx:`send`,messageId:r},`Sending message %s to <%s> using %s line breaks`,r,i.join(`, `),this.winbreak?`<CR><LF>`:`<LF>`),setImmediate(()=>{let n;try{n=e.message.createReadStream()}catch(e){return this.logger.error({err:e,tnx:`send`,messageId:r},`Creating send stream failed for %s. %s`,r,e.message),t(e)}if(!this.options.buffer)return n.once(`error`,e=>{this.logger.error({err:e,tnx:`send`,messageId:r},`Failed creating message for %s. %s`,r,e.message)}),t(null,{envelope:e.data.envelope||e.message.getEnvelope(),messageId:r,message:n});let i=[],a=0;n.on(`readable`,()=>{let e;for(;(e=n.read())!==null;)i.push(e),a+=e.length}),n.once(`error`,e=>(this.logger.error({err:e,tnx:`send`,messageId:r},`Failed creating message for %s. %s`,r,e.message),t(e))),n.on(`end`,()=>t(null,{envelope:e.data.envelope||e.message.getEnvelope(),messageId:r,message:Buffer.concat(i,a)}))})}}})),SM=n(((e,t)=>{let n=Gj(),r=qj();t.exports=class{constructor(e){e||={},this.options=e||{},this.name=`JSONTransport`,this.version=n.version,this.logger=r.getLogger(this.options,{component:this.options.component||`json-transport`})}send(e,t){e.message.keepBcc=!0;let n=e.data.envelope||e.message.getEnvelope(),r=e.message.messageId(),i=[].concat(n.to||[]);i.length>3&&i.push(`...and `+i.splice(2).length+` more`),this.logger.info({tnx:`send`,messageId:r},`Composing JSON structure of %s to <%s>`,r,i.join(`, `)),setImmediate(()=>{e.normalize((e,i)=>e?(this.logger.error({err:e,tnx:`send`,messageId:r},`Failed building JSON structure for %s. %s`,r,e.message),t(e)):(delete i.envelope,delete i.normalizedHeaders,t(null,{envelope:n,messageId:r,message:this.options.skipEncoding?i:JSON.stringify(i)})))})}}})),CM=n(((e,n)=>{let r=t(`events`),i=Gj(),a=qj(),o=tM(),s=rM();n.exports=class extends r{constructor(e){super(),e||={},this.options=e||{},this.ses=this.options.SES,this.name=`SESTransport`,this.version=i.version,this.logger=a.getLogger(this.options,{component:this.options.component||`ses-transport`})}getRegion(e){return this.ses.sesClient.config&&typeof this.ses.sesClient.config.region==`function`?this.ses.sesClient.config.region().then(t=>e(null,t)).catch(t=>e(t)):e(null,!1)}send(e,t){let n={ts:Date.now(),pending:!0},r=e.message._headers.find(e=>/^from$/i.test(e.key));if(r){let e=new s(`text/plain`);r=e._convertAddresses(e._parseAddresses(r.value))}let i=e.data.envelope||e.message.getEnvelope(),a=e.message.messageId(),c=[].concat(i.to||[]);c.length>3&&c.push(`...and `+c.splice(2).length+` more`),this.logger.info({tnx:`send`,messageId:a},`Sending message %s to <%s>`,a,c.join(`, `));let l=t=>{e.data._dkim||(e.data._dkim={}),e.data._dkim.skipFields&&typeof e.data._dkim.skipFields==`string`?e.data._dkim.skipFields+=`:date:message-id`:e.data._dkim.skipFields=`date:message-id`;let n=e.message.createReadStream(),r=n.pipe(new o),i=[],a=0;r.on(`readable`,()=>{let e;for(;(e=r.read())!==null;)i.push(e),a+=e.length}),n.once(`error`,e=>r.emit(`error`,e)),r.once(`error`,e=>{t(e)}),r.once(`end`,()=>t(null,Buffer.concat(i,a)))};setImmediate(()=>l((o,s)=>{if(o)return this.logger.error({err:o,tnx:`send`,messageId:a},`Failed creating message for %s. %s`,a,o.message),n.pending=!1,t(o);let c={Content:{Raw:{Data:s}},FromEmailAddress:r||i.from,Destination:{ToAddresses:i.to}};Object.keys(e.data.ses||{}).forEach(t=>{c[t]=e.data.ses[t]}),this.getRegion((e,r)=>{(e||!r)&&(r=`us-east-1`);let o=new this.ses.SendEmailCommand(c);this.ses.sesClient.send(o).then(e=>{r===`us-east-1`&&(r=`email`),n.pending=!0,t(null,{envelope:{from:i.from,to:i.to},messageId:`<`+e.MessageId+(/@/.test(e.MessageId)?``:`@`+r+`.amazonses.com`)+`>`,response:e.MessageId,raw:s})}).catch(e=>{this.logger.error({err:e,tnx:`send`},`Send error for %s: %s`,a,e.message),n.pending=!1,t(e)})})}))}verify(e){let t;e||(t=new Promise((t,n)=>{e=a.callbackPromise(t,n)}));let n=t=>t&&![`InvalidParameterValue`,`MessageRejected`].includes(t.code||t.Code||t.name)?e(t):e(null,!0),r={Content:{Raw:{Data:Buffer.from(`From: <invalid@invalid>\r
216
- To: <invalid@invalid>\r
217
- Subject: Invalid\r
218
- \r
219
- Invalid`)}},FromEmailAddress:`invalid@invalid`,Destination:{ToAddresses:[`invalid@invalid`]}};return this.getRegion((e,t)=>{(e||!t)&&(t=`us-east-1`);let i=new this.ses.SendEmailCommand(r);this.ses.sesClient.send(i).then(e=>n(null,e)).catch(e=>n(e))}),t}}})),wM=n(((e,t)=>{let n=dM(),r=qj(),i=vM(),a=yM(),o=bM(),s=xM(),c=SM(),l=CM(),u=Kj(),d=Gj(),f=(process.env.ETHEREAL_API||`https://api.nodemailer.com`).replace(/\/+$/,``),p=(process.env.ETHEREAL_WEB||`https://ethereal.email`).replace(/\/+$/,``),m=(process.env.ETHEREAL_API_KEY||``).replace(/\s*/g,``)||null,h=[`true`,`yes`,`y`,`1`].includes((process.env.ETHEREAL_CACHE||`yes`).toString().trim().toLowerCase()),g=!1;t.exports.createTransport=function(e,t){let u,d,f;if(typeof e==`object`&&typeof e.send!=`function`||typeof e==`string`&&/^(smtps?|direct):/i.test(e))if(d=(u=typeof e==`string`?e:e.url)?r.parseConnectionUrl(u):e,d.pool)e=new i(d);else if(d.sendmail)e=new o(d);else if(d.streamTransport)e=new s(d);else if(d.jsonTransport)e=new c(d);else if(d.SES){if(d.SES.ses&&d.SES.aws){let e=Error(`Using legacy SES configuration, expecting @aws-sdk/client-sesv2, see https://nodemailer.com/transports/ses/`);throw e.code=`LegacyConfig`,e}e=new l(d)}else e=new a(d);return f=new n(e,d,t),f},t.exports.createTestAccount=function(e,t){let n;if(!t&&typeof e==`function`&&(t=e,e=!1),t||(n=new Promise((e,n)=>{t=r.callbackPromise(e,n)})),h&&g)return setImmediate(()=>t(null,g)),n;e||=f;let i=[],a=0,o={},s={requestor:d.name,version:d.version};m&&(o.Authorization=`Bearer `+m);let c=u(e+`/user`,{contentType:`application/json`,method:`POST`,headers:o,body:Buffer.from(JSON.stringify(s))});return c.on(`readable`,()=>{let e;for(;(e=c.read())!==null;)i.push(e),a+=e.length}),c.once(`error`,e=>t(e)),c.once(`end`,()=>{let e=Buffer.concat(i,a),n,r;try{n=JSON.parse(e.toString())}catch(e){r=e}if(r)return t(r);if(n.status!==`success`||n.error)return t(Error(n.error||`Request failed`));delete n.status,g=n,t(null,g)}),n},t.exports.getTestMessageUrl=function(e){if(!e||!e.response)return!1;let t=new Map;return e.response.replace(/\[([^\]]+)\]$/,(e,n)=>{n.replace(/\b([A-Z0-9]+)=([^\s]+)/g,(e,n,r)=>{t.set(n,r)})}),t.has(`STATUS`)&&t.has(`MSGID`)?(g.web||p)+`/message/`+t.get(`MSGID`):!1}}))();function TM({from:e,smtpUrl:t}){let n=(0,wM.createTransport)({url:t});return{...n,async send(t){let r,i,a;if(`react`in t){[r,i]=await Promise.all([Uj(t.react),Uj(t.react,{plainText:!0})]);let{react:e,...n}=t;a=n}else{r=t.html,i=t.text;let{html:e,text:n,...o}=t;a=o}await n.sendMail({from:t.from||e,...a,html:r,text:i})}}}var EM=typeof globalThis==`object`?globalThis:global,DM=`1.9.0`,OM=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function kM(e){var t=new Set([e]),n=new Set,r=e.match(OM);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(t){return t===e};function a(e){return n.add(e),!1}function o(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(OM);if(!r)return a(e);var s={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};return s.prerelease!=null||i.major!==s.major?a(e):i.major===0?i.minor===s.minor&&i.patch<=s.patch?o(e):a(e):i.minor<=s.minor?o(e):a(e)}}var AM=kM(DM),jM=DM.split(`.`)[0],MM=Symbol.for(`opentelemetry.js.api.`+jM),NM=EM;function PM(e,t,n,r){r===void 0&&(r=!1);var i=NM[MM]=NM[MM]??{version:DM};if(!r&&i[e]){var a=Error(`@opentelemetry/api: Attempted duplicate registration of API: `+e);return n.error(a.stack||a.message),!1}if(i.version!==DM){var a=Error(`@opentelemetry/api: Registration of version v`+i.version+` for `+e+` does not match previously registered API v`+DM);return n.error(a.stack||a.message),!1}return i[e]=t,n.debug(`@opentelemetry/api: Registered a global for `+e+` v`+DM+`.`),!0}function FM(e){var t=NM[MM]?.version;if(!(!t||!AM(t)))return NM[MM]?.[e]}function IM(e,t){t.debug(`@opentelemetry/api: Unregistering a global for `+e+` v`+DM+`.`);var n=NM[MM];n&&delete n[e]}var LM=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},RM=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},zM=function(){function e(e){this._namespace=e.namespace||`DiagComponentLogger`}return e.prototype.debug=function(){var e=[...arguments];return BM(`debug`,this._namespace,e)},e.prototype.error=function(){var e=[...arguments];return BM(`error`,this._namespace,e)},e.prototype.info=function(){var e=[...arguments];return BM(`info`,this._namespace,e)},e.prototype.warn=function(){var e=[...arguments];return BM(`warn`,this._namespace,e)},e.prototype.verbose=function(){var e=[...arguments];return BM(`verbose`,this._namespace,e)},e}();function BM(e,t,n){var r=FM(`diag`);if(r)return n.unshift(t),r[e].apply(r,RM([],LM(n),!1))}var VM;(function(e){e[e.NONE=0]=`NONE`,e[e.ERROR=30]=`ERROR`,e[e.WARN=50]=`WARN`,e[e.INFO=60]=`INFO`,e[e.DEBUG=70]=`DEBUG`,e[e.VERBOSE=80]=`VERBOSE`,e[e.ALL=9999]=`ALL`})(VM||={});function HM(e,t){e<VM.NONE?e=VM.NONE:e>VM.ALL&&(e=VM.ALL),t||={};function n(n,r){var i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,VM.ERROR),warn:n(`warn`,VM.WARN),info:n(`info`,VM.INFO),debug:n(`debug`,VM.DEBUG),verbose:n(`verbose`,VM.VERBOSE)}}var UM=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},WM=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},GM=`diag`,KM=function(){function e(){function e(e){return function(){var t=[...arguments],n=FM(`diag`);if(n)return n[e].apply(n,WM([],UM(t),!1))}}var t=this;t.setLogger=function(e,n){if(n===void 0&&(n={logLevel:VM.INFO}),e===t){var r=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error(r.stack??r.message),!1}typeof n==`number`&&(n={logLevel:n});var i=FM(`diag`),a=HM(n.logLevel??VM.INFO,e);if(i&&!n.suppressOverrideMessage){var o=Error().stack??`<failed to generate stacktrace>`;i.warn(`Current logger will be overwritten from `+o),a.warn(`Current logger will overwrite one already registered from `+o)}return PM(`diag`,a,t,!0)},t.disable=function(){IM(GM,t)},t.createComponentLogger=function(e){return new zM(e)},t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}return e.instance=function(){return this._instance||=new e,this._instance},e}();function qM(e){return Symbol.for(e)}var JM=new(function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}return e}()),YM=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},XM=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},ZM=function(){function e(){}return e.prototype.active=function(){return JM},e.prototype.with=function(e,t,n){var r=[...arguments].slice(3);return t.call.apply(t,XM([n],YM(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),QM=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},$M=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},eN=`context`,tN=new ZM,nN=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalContextManager=function(e){return PM(eN,e,KM.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(r=this._getContextManager()).with.apply(r,$M([e,t,n],QM(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return FM(eN)||tN},e.prototype.disable=function(){this._getContextManager().disable(),IM(eN,KM.instance())},e}(),rN;(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(rN||={});var iN=`0000000000000000`,aN=`00000000000000000000000000000000`,oN={traceId:aN,spanId:iN,traceFlags:rN.NONE},sN=function(){function e(e){e===void 0&&(e=oN),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}(),cN=qM(`OpenTelemetry Context Key SPAN`);function lN(e){return e.getValue(cN)||void 0}function uN(){return lN(nN.getInstance().active())}function dN(e,t){return e.setValue(cN,t)}function fN(e){return e.deleteValue(cN)}function pN(e,t){return dN(e,new sN(t))}function mN(e){return lN(e)?.spanContext()}var hN=/^([0-9a-f]{32})$/i,gN=/^[0-9a-f]{16}$/i;function _N(e){return hN.test(e)&&e!==aN}function vN(e){return gN.test(e)&&e!==iN}function yN(e){return _N(e.traceId)&&vN(e.spanId)}function bN(e){return new sN(e)}var xN=nN.getInstance(),SN=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(n===void 0&&(n=xN.active()),t?.root)return new sN;var r=n&&mN(n);return CN(r)&&yN(r)?new sN(r):new sN},e.prototype.startActiveSpan=function(e,t,n,r){var i,a,o;if(!(arguments.length<2)){arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);var s=a??xN.active(),c=this.startSpan(e,i,s),l=dN(s,c);return xN.with(l,o,void 0,c)}},e}();function CN(e){return typeof e==`object`&&typeof e.spanId==`string`&&typeof e.traceId==`string`&&typeof e.traceFlags==`number`}var wN=new SN,TN=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):wN},e}(),EN=new(function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new SN},e}()),DN=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return this.getDelegateTracer(e,t,n)??new TN(this,e,t,n)},e.prototype.getDelegate=function(){return this._delegate??EN},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){return this._delegate?.getTracer(e,t,n)},e}(),ON=nN.getInstance(),kN=`trace`,AN=function(){function e(){this._proxyTracerProvider=new DN,this.wrapSpanContext=bN,this.isSpanContextValid=yN,this.deleteSpan=fN,this.getSpan=lN,this.getActiveSpan=uN,this.getSpanContext=mN,this.setSpan=dN,this.setSpanContext=pN}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=PM(kN,this._proxyTracerProvider,KM.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return FM(kN)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){IM(kN,KM.instance()),this._proxyTracerProvider=new DN},e}().getInstance();async function jN(e,t){let n=d()[1],r=n.scriptName.replace(process.cwd(),``).replace(`file:///`,``),i=n.functionName,a=AN.getTracer(r.replace(`build/`,``)).startSpan(i,{attributes:t}),o=AN.setSpan(ON.active(),a);try{let t=await ON.with(o,()=>e(a));return a.end(),t}catch(e){throw a.recordException(e),a.end(),e}}export{Qi as baseSchema,ta as defineAppContainer,ea as defineConfig,Pd as defineI18n,Qf as defineLogger,TM as defineMailer,jN as withOtelSpan};