@kabmo-labs/kabmo 0.33.0 → 0.35.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 (272) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +785 -624
  3. package/dist/client/static/js/{CsvGrid-fncjbg6j.js → CsvGrid-0amzgtd7.js} +2 -2
  4. package/dist/client/static/js/{DocxView-c9v2vr3r.js → DocxView-bxjhzxe9.js} +5 -5
  5. package/dist/client/static/js/{DrawioView-vxjksm12.js → DrawioView-7s1yqsf4.js} +2 -2
  6. package/dist/client/static/js/{ImageView-a3g5k226.js → ImageView-ycfbn66h.js} +1 -1
  7. package/dist/client/static/js/{LayoutWrapper-hnjfwsjh.js → LayoutWrapper-tw1q1x0g.js} +2 -2
  8. package/dist/client/static/js/Modal-wqjactyd.js +38 -0
  9. package/dist/client/static/js/{PdfView-ksaes53y.js → PdfView-x6dmtwvr.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-30vcr95v.js → SessionsView-t85wq0me.js} +1 -1
  11. package/dist/client/static/js/{SheetView-vc484scg.js → SheetView-n52nvz8s.js} +25 -25
  12. package/dist/client/static/js/{SvgPreview-tph89jet.js → SvgPreview-59z7syme.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-xbar278c.js → abnfDiagram-O67JEVCF-91gnt049.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-bajpnvy7.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-s171n2z6.js → architectureDiagram-NJMV4G6O-5b9qtff2.js} +4 -4
  16. package/dist/client/static/js/{astro-80bs6hvg.js → astro-31cbyw7b.js} +1 -1
  17. package/dist/client/static/js/bash-0h36tk0k.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-gzx6rv9n.js → blockDiagram-BEXU5L5S-6f23fjkn.js} +3 -3
  19. package/dist/client/static/js/{c4Diagram-YGBWAQC7-7f00skch.js → c4Diagram-YGBWAQC7-76t6d3am.js} +5 -5
  20. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-j79v95nc.js → classDiagram-v2-NBCMYWYE-f9tb19xm.js} +3 -3
  21. package/dist/client/static/js/{cose-bilkent-JH36ORCC-5fkn7ee5.js → cose-bilkent-JH36ORCC-t6nwrbwj.js} +1 -1
  22. package/dist/client/static/js/cpp-4wp9sy20.js +1 -0
  23. package/dist/client/static/js/css-c9nsbkh6.js +1 -0
  24. package/dist/client/static/js/cynefin-OW5HDTMX-8q9e90m8.js +1 -0
  25. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-cfs1yvrd.js → cynefinDiagram-VND7K2PF-69gc244j.js} +1 -1
  26. package/dist/client/static/js/{dagre-6A5THRUB-44bgc48p.js → dagre-6A5THRUB-54bry3ey.js} +2 -2
  27. package/dist/client/static/js/{diagram-22UHCM2B-a4g4x83k.js → diagram-22UHCM2B-gfkebye6.js} +11 -11
  28. package/dist/client/static/js/{diagram-3UASUU5V-gm4rg5na.js → diagram-3UASUU5V-a1mr319f.js} +1 -1
  29. package/dist/client/static/js/{diagram-ATOU4E4O-a95y41vk.js → diagram-ATOU4E4O-tkyk0qbe.js} +3 -3
  30. package/dist/client/static/js/{diagram-CDSNMT55-t3j93mmc.js → diagram-CDSNMT55-np0hc9m2.js} +4 -4
  31. package/dist/client/static/js/{diagram-MLGK6HIB-c2wdez02.js → diagram-MLGK6HIB-nh06fshp.js} +2 -2
  32. package/dist/client/static/js/{diagram-MPIPVDR6-gya9jhs5.js → diagram-MPIPVDR6-27q2veks.js} +2 -2
  33. package/dist/client/static/js/{dockerfile-a7q6174s.js → dockerfile-4rtt6c0f.js} +1 -1
  34. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-jjhkza6t.js → ebnfDiagram-ZINNZB2B-x9p9jqe8.js} +1 -1
  35. package/dist/client/static/js/{elk-276RUBZZ-f7re45mw.js → elk-276RUBZZ-fw7waks3.js} +1 -1
  36. package/dist/client/static/js/{erDiagram-OPXOYQCR-tpm9g5te.js → erDiagram-OPXOYQCR-fdfgzr5d.js} +5 -5
  37. package/dist/client/static/js/{erlang-qt876zrq.js → erlang-trjm07as.js} +1 -1
  38. package/dist/client/static/js/eventmodeling-NTZA5JFV-kn4hsm3p.js +1 -0
  39. package/dist/client/static/js/flowDiagram-KWPJA3E3-ah8cvps1.js +1 -0
  40. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-fz43n12d.js → ganttDiagram-FUAMR5RP-2avbqgdr.js} +3 -3
  41. package/dist/client/static/js/gitGraph-4MIJSDKK-hvavh16n.js +1 -0
  42. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-f61hgbn6.js → gitGraphDiagram-X574FWY7-9jmc0a3g.js} +12 -12
  43. package/dist/client/static/js/graphql-hbkmxsty.js +1 -0
  44. package/dist/client/static/js/{index-8239j2v1.js → index-0v34a7wf.js} +1 -1
  45. package/dist/client/static/js/{index-vtbbfwx0.js → index-1wjp16f0.js} +2 -2
  46. package/dist/client/static/js/index-2mx9ej4k.css +1 -0
  47. package/dist/client/static/js/{index-q2w6s8n7.js → index-2v1nmxwr.js} +6 -6
  48. package/dist/client/static/js/{index-apvkd37e.js → index-3ecsp1rx.js} +3 -3
  49. package/dist/client/static/js/{index-1y9r4frb.js → index-43qpbxjv.js} +2 -2
  50. package/dist/client/static/js/{index-w0fwb80e.js → index-4vybd9e7.js} +1 -1
  51. package/dist/client/static/js/{index-ahv9y42z.js → index-6f6cmcbq.js} +2 -2
  52. package/dist/client/static/js/{index-9fjt5anh.js → index-7ct7qrsp.js} +2 -2
  53. package/dist/client/static/js/{index-ajs3jj6j.js → index-7q02xnvq.js} +1 -1
  54. package/dist/client/static/js/{index-rytaa8ca.js → index-7smwzkvq.js} +2 -2
  55. package/dist/client/static/js/{index-rg8jpbsw.js → index-8acv5b77.js} +2 -2
  56. package/dist/client/static/js/{index-gs6f0qwa.js → index-8f9x7ev8.js} +2 -2
  57. package/dist/client/static/js/{index-7y6rpsrp.js → index-8mwragbj.js} +2 -2
  58. package/dist/client/static/js/{index-gcs49f3p.js → index-8x9ecxb0.js} +1 -1
  59. package/dist/client/static/js/{index-3rcjx70v.js → index-9ketbkh6.js} +1 -1
  60. package/dist/client/static/js/{index-ypx3qmhq.js → index-a628fg4m.js} +2 -2
  61. package/dist/client/static/js/{index-e4p4cd3r.js → index-a8ffattk.js} +2 -2
  62. package/dist/client/static/js/{index-js7t1vb1.js → index-b8s3xraa.js} +6 -6
  63. package/dist/client/static/js/index-btr2w8cq.js +12 -0
  64. package/dist/client/static/js/index-dfzrpy54.js +2 -0
  65. package/dist/client/static/js/{index-pxv2nw9w.js → index-ee2p07eg.js} +1 -1
  66. package/dist/client/static/js/{index-03h3bkcf.js → index-ek2e773p.js} +1 -1
  67. package/dist/client/static/js/{index-1xqs14fr.js → index-fvc0x6nx.js} +3 -3
  68. package/dist/client/static/js/{index-3zc1b0dv.js → index-jc1yagmk.js} +2 -2
  69. package/dist/client/static/js/{index-d495kfm0.js → index-jmxqefe3.js} +1 -1
  70. package/dist/client/static/js/{index-2x5f66t6.js → index-k7q01ye4.js} +2 -2
  71. package/dist/client/static/js/{index-5tgq7aqx.js → index-kdkfyrja.js} +2 -2
  72. package/dist/client/static/js/{index-m73za75e.js → index-mc4nefs7.js} +3 -3
  73. package/dist/client/static/js/{index-trm9x02n.js → index-nb8tp4mj.js} +30 -30
  74. package/dist/client/static/js/{index-zt75xpq0.js → index-ncrenheb.js} +206 -206
  75. package/dist/client/static/js/{index-qsm2z36d.js → index-p16scjt7.js} +2 -2
  76. package/dist/client/static/js/{index-sdtye3jy.js → index-pc6eg8h2.js} +2 -2
  77. package/dist/client/static/js/{index-zvfvqvn9.js → index-pnt0vc59.js} +2 -2
  78. package/dist/client/static/js/{index-pbe4yed4.js → index-py2k8std.js} +2 -2
  79. package/dist/client/static/js/{index-dbe6afkf.js → index-pzbssnsc.js} +2 -2
  80. package/dist/client/static/js/{index-qckv9nte.js → index-qqz6bcdd.js} +2 -2
  81. package/dist/client/static/js/{index-xj9649ac.js → index-ray2czf6.js} +7 -7
  82. package/dist/client/static/js/{index-0tf0arsp.js → index-rbgemjsp.js} +3 -3
  83. package/dist/client/static/js/{index-vw4brsdx.js → index-rkn0bxxt.js} +1 -1
  84. package/dist/client/static/js/{index-76zb4m0n.js → index-rv89xpaf.js} +2 -2
  85. package/dist/client/static/js/index-sbd5e816.js +1 -0
  86. package/dist/client/static/js/{index-eyzeya95.js → index-sdby39w4.js} +5 -5
  87. package/dist/client/static/js/{index-0n5wwe60.js → index-t6c0pd43.js} +2 -2
  88. package/dist/client/static/js/{index-km2zb6wk.js → index-tp7yb3bv.js} +2 -2
  89. package/dist/client/static/js/{index-vw5k8csz.js → index-vnw3hbeg.js} +56 -56
  90. package/dist/client/static/js/{index-354mqqra.js → index-vq6wts05.js} +2 -2
  91. package/dist/client/static/js/{index-14vndmcr.js → index-w5373tg1.js} +2 -2
  92. package/dist/client/static/js/{index-0e40xskg.js → index-w7tpgt46.js} +1 -1
  93. package/dist/client/static/js/{index-djmg1d7h.js → index-whbtxmwh.js} +2 -2
  94. package/dist/client/static/js/{index-2svnq5gg.js → index-xs1m0bpt.js} +1 -1
  95. package/dist/client/static/js/{index-9y3gjdj7.js → index-xxtsm2rb.js} +2 -2
  96. package/dist/client/static/js/{index-hf52f59k.js → index-y3ms153k.js} +2 -2
  97. package/dist/client/static/js/{index-1a0zkj8h.js → index-yq39qbs1.js} +2 -2
  98. package/dist/client/static/js/{index-j0r5hj0j.js → index-zh2jj56s.js} +2 -2
  99. package/dist/client/static/js/info-A6RAGUB7-fmjz8qwg.js +1 -0
  100. package/dist/client/static/js/{infoDiagram-VRGFBTTK-1qj804sn.js → infoDiagram-VRGFBTTK-g2dky5xg.js} +2 -2
  101. package/dist/client/static/js/ini-72yrpvd4.js +1 -0
  102. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-4j4qsnzw.js → ishikawaDiagram-OU5B5YK6-exrcjwp1.js} +6 -6
  103. package/dist/client/static/js/java-ab5tb2ra.js +1 -0
  104. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-j0brnfft.js → journeyDiagram-ZHPQQLJL-pn752qa5.js} +4 -4
  105. package/dist/client/static/js/jsx-25zj9j3k.js +1 -0
  106. package/dist/client/static/js/{julia-4ghmfy3e.js → julia-evn99h2m.js} +1 -1
  107. package/dist/client/static/js/{kanban-definition-PNTS6WVX-qqc22br0.js → kanban-definition-PNTS6WVX-v8nvr373.js} +5 -5
  108. package/dist/client/static/js/lua-j5w0c9wm.js +1 -0
  109. package/dist/client/static/js/markdown-j6hn4377.js +1 -0
  110. package/dist/client/static/js/{mermaid.core-vv3wbe65.js → mermaid.core-egzv89zv.js} +6 -6
  111. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-y5b2z8zp.js → mindmap-definition-NLK3R4M7-t9njmv2w.js} +8 -8
  112. package/dist/client/static/js/one-dark-pro-bm3r4js7.js +1 -0
  113. package/dist/client/static/js/one-light-e07dt7sy.js +1 -0
  114. package/dist/client/static/js/packet-AYTQ26CC-cwr6n1cm.js +1 -0
  115. package/dist/client/static/js/{pegDiagram-GJSIUBJH-0be07mqs.js → pegDiagram-GJSIUBJH-zhycy2b7.js} +1 -1
  116. package/dist/client/static/js/{perl-sd00t4b4.js → perl-506fy8m8.js} +1 -1
  117. package/dist/client/static/js/{php-2zfyqa61.js → php-axtsvxck.js} +1 -1
  118. package/dist/client/static/js/pie-WAS4IAKB-h1ebfzgt.js +1 -0
  119. package/dist/client/static/js/{pieDiagram-5QR66LMP-544w86jk.js → pieDiagram-5QR66LMP-sgctvma2.js} +2 -2
  120. package/dist/client/static/js/properties-q8njes42.js +1 -0
  121. package/dist/client/static/js/python-vqxc7181.js +1 -0
  122. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-p09e7z5s.js → quadrantDiagram-O4NWA36T-kzzhdcph.js} +5 -5
  123. package/dist/client/static/js/r-0k5eej8m.js +1 -0
  124. package/dist/client/static/js/radar-RG4KPBEZ-k7p1m364.js +1 -0
  125. package/dist/client/static/js/railroad-74A4TZTK-d08dw3t0.js +1 -0
  126. package/dist/client/static/js/railroad-abnf-HS5TGJTU-txnjycgk.js +1 -0
  127. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-p0r3cv6w.js +1 -0
  128. package/dist/client/static/js/railroad-peg-WCYAUIDC-sryk900a.js +1 -0
  129. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-de830ed2.js → railroadDiagram-XR7U4H2S-nzjffwxm.js} +1 -1
  130. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-b47d74p1.js → requirementDiagram-PLB6GJNP-tz4xxn4d.js} +2 -2
  131. package/dist/client/static/js/{ruby-v9qaqhby.js → ruby-qp7zfk2m.js} +1 -1
  132. package/dist/client/static/js/{rust-fkt0qyrs.js → rust-fz913fvw.js} +1 -1
  133. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-6ezc2fpj.js → sankeyDiagram-IPEJSGJF-2wcb0xr6.js} +4 -4
  134. package/dist/client/static/js/{sass-9bxped7y.js → sass-gnk9vsyp.js} +1 -1
  135. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-by5zqj6w.js → sequenceDiagram-PO4LG4MO-vqgebfns.js} +18 -18
  136. package/dist/client/static/js/{sizeCapture-INFHLROL-q85r06j6.js → sizeCapture-INFHLROL-xc314tes.js} +1 -1
  137. package/dist/client/static/js/sql-0e9mnrda.js +1 -0
  138. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-ep5pyexs.js → stateDiagram-v2-GCMORJYK-8bd9b1h8.js} +3 -3
  139. package/dist/client/static/js/{svelte-mwtx07d9.js → svelte-brpgzrtv.js} +1 -1
  140. package/dist/client/static/js/{swimlanes-2SLR337P-95fcqkh8.js → swimlanes-2SLR337P-t6hbdzcw.js} +1 -1
  141. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-c1czc7kv.js +8 -0
  142. package/dist/client/static/js/{timeline-definition-EJHVYXUP-461e615g.js → timeline-definition-EJHVYXUP-2txxasx5.js} +4 -4
  143. package/dist/client/static/js/treeView-Q6P3EWNA-77kj68p1.js +1 -0
  144. package/dist/client/static/js/treemap-WGGIJYW6-rw94xc82.js +1 -0
  145. package/dist/client/static/js/tsx-yd5wt250.js +1 -0
  146. package/dist/client/static/js/typescript-v7z7crfe.js +1 -0
  147. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-ftqfnvhg.js → usecaseDiagram-POWQR4AR-3x353hn4.js} +17 -17
  148. package/dist/client/static/js/{vennDiagram-UO4OBE2U-7t96h6ez.js → vennDiagram-UO4OBE2U-cerpss8e.js} +7 -7
  149. package/dist/client/static/js/{vue-j8vb9d7r.js → vue-apnkw9qy.js} +1 -1
  150. package/dist/client/static/js/wardley-WFR3VGLG-18xe4fhz.js +1 -0
  151. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-0de8w8c6.js → wardleyDiagram-VNRHLVJA-cx6jfsbf.js} +4 -4
  152. package/dist/client/static/js/xml-94fhzrfs.js +1 -0
  153. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-dez9phkf.js → xychartDiagram-PMCCYNJV-tgn23xj1.js} +5 -5
  154. package/dist/client/static/js/yaml-s8af9rnw.js +1 -0
  155. package/package.json +4 -1
  156. package/src/client/components/auth/login-screen/index.tsx +1 -0
  157. package/src/client/components/common/MarkdownRenderer.tsx +9 -12
  158. package/src/client/components/settings/Modal.tsx +14 -84
  159. package/src/client/components/settings/Sidebar.tsx +3 -1
  160. package/src/client/components/settings/categories/ConnectSettings.tsx +105 -0
  161. package/src/client/components/settings/categories/connect-settings/DeviceTable.tsx +145 -0
  162. package/src/client/components/settings/categories/connect-settings/PairDialog.test.tsx +159 -0
  163. package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +189 -0
  164. package/src/client/components/settings/categories/connect-settings/QrCode.tsx +56 -0
  165. package/src/client/components/settings/categories/connect-settings/ServerCard.tsx +94 -0
  166. package/src/client/components/settings/categories/connect-settings/TunnelRow.tsx +127 -0
  167. package/src/client/components/settings/categories/connect-settings/qr-image.ts +76 -0
  168. package/src/client/components/settings/category-content.tsx +116 -0
  169. package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.test.tsx +120 -0
  170. package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +56 -20
  171. package/src/client/components/workspace/chat-timeline/RunFooter.tsx +1 -0
  172. package/src/client/components/workspace/git-panel/init-state.test.ts +5 -0
  173. package/src/client/hooks/chat/composer/speech-to-text.ts +24 -17
  174. package/src/client/hooks/chat/timeline/change-stats.ts +57 -0
  175. package/src/client/hooks/connect/use-connect-status.ts +116 -0
  176. package/src/client/hooks/connect/use-pairing.ts +100 -0
  177. package/src/client/hooks/editor/file-actions.ts +3 -11
  178. package/src/client/hooks/editor/font.test.ts +2 -1
  179. package/src/client/hooks/editor/use-file-transfer.ts +2 -1
  180. package/src/client/hooks/ui/clipboard.ts +26 -0
  181. package/src/client/lib/browser/download.ts +22 -0
  182. package/src/client/tailwind.css +5 -0
  183. package/src/server/index.ts +2 -0
  184. package/src/server/lib/assets/font-css.server.test.ts +19 -0
  185. package/src/server/lib/auth/client-address.test.ts +58 -0
  186. package/src/server/lib/auth/client-address.ts +37 -3
  187. package/src/server/lib/auth/guard.ts +31 -4
  188. package/src/server/lib/auth/rate-limit.test.ts +25 -8
  189. package/src/server/lib/auth/rate-limit.ts +8 -5
  190. package/src/server/lib/connect/cloudflared.lifecycle.test.ts +88 -0
  191. package/src/server/lib/connect/cloudflared.server.test.ts +65 -0
  192. package/src/server/lib/connect/cloudflared.server.ts +206 -0
  193. package/src/server/lib/connect/devices.server.ts +192 -0
  194. package/src/server/lib/connect/identity.server.ts +81 -0
  195. package/src/server/lib/connect/pairing.server.test.ts +56 -0
  196. package/src/server/lib/connect/pairing.server.ts +113 -0
  197. package/src/server/lib/connect/qr.roundtrip.test.ts +106 -0
  198. package/src/server/lib/connect/qr.server.ts +36 -0
  199. package/src/server/lib/connect/run.server.ts +101 -0
  200. package/src/server/lib/connect/status.server.ts +177 -0
  201. package/src/server/lib/connect/tailscale.server.test.ts +117 -0
  202. package/src/server/lib/connect/tailscale.server.ts +172 -0
  203. package/src/server/lib/db/schema.ts +4 -0
  204. package/src/server/lib/omp/session/changes.test.ts +64 -1
  205. package/src/server/lib/omp/session/changes.ts +94 -1
  206. package/src/server/routes/connect/devices.ts +56 -0
  207. package/src/server/routes/connect/index.ts +15 -0
  208. package/src/server/routes/connect/pair-page.ts +177 -0
  209. package/src/server/routes/connect/pair.ts +158 -0
  210. package/src/server/routes/connect/status.ts +19 -0
  211. package/src/server/routes/connect/tunnels.ts +76 -0
  212. package/src/server/routes/health/probe.ts +5 -0
  213. package/src/server/routes/index.ts +2 -0
  214. package/src/server/routes/sessions/changes.test.ts +12 -3
  215. package/src/server/routes/sessions/changes.ts +27 -3
  216. package/src/server/routes/sessions/index.ts +2 -1
  217. package/src/shared/lib/connect/payload.test.ts +144 -0
  218. package/src/shared/lib/connect/payload.ts +229 -0
  219. package/src/shared/lib/connect/tier.test.ts +73 -0
  220. package/src/shared/lib/connect/tier.ts +105 -0
  221. package/src/shared/lib/connect/types.ts +99 -0
  222. package/src/shared/lib/dictation/capture-failure.test.ts +46 -0
  223. package/src/shared/lib/dictation/capture-failure.ts +36 -0
  224. package/src/shared/lib/markdown/fira-code-fonts.css +65 -6
  225. package/src/shared/lib/markdown/marked.ts +7 -4
  226. package/src/shared/lib/markdown/mermaid-actions.test.ts +78 -0
  227. package/src/shared/lib/markdown/mermaid-actions.ts +45 -0
  228. package/src/shared/lib/markdown/mermaid.ts +41 -7
  229. package/src/shared/lib/settings/sections.ts +6 -1
  230. package/src/shared/types/session-changes.ts +6 -0
  231. package/src/shared/types/settings/state.ts +2 -0
  232. package/dist/client/static/js/Modal-qtftcp2t.js +0 -38
  233. package/dist/client/static/js/architecture-7GRP2DOG-tavtgb8a.js +0 -1
  234. package/dist/client/static/js/bash-b3rwyg5p.js +0 -1
  235. package/dist/client/static/js/cpp-y0t6mynx.js +0 -1
  236. package/dist/client/static/js/css-6vj0d308.js +0 -1
  237. package/dist/client/static/js/cynefin-OW5HDTMX-cdh3n2z2.js +0 -1
  238. package/dist/client/static/js/eventmodeling-NTZA5JFV-as97tpyp.js +0 -1
  239. package/dist/client/static/js/flowDiagram-KWPJA3E3-ggm06d12.js +0 -1
  240. package/dist/client/static/js/gitGraph-4MIJSDKK-eqz7p9ng.js +0 -1
  241. package/dist/client/static/js/graphql-n43pd5fs.js +0 -1
  242. package/dist/client/static/js/index-at6bhjyf.js +0 -1
  243. package/dist/client/static/js/index-bkye8mz4.js +0 -2
  244. package/dist/client/static/js/index-e94a1en0.css +0 -1
  245. package/dist/client/static/js/index-sffjtm5w.js +0 -12
  246. package/dist/client/static/js/info-A6RAGUB7-4pkzh1qx.js +0 -1
  247. package/dist/client/static/js/ini-j5dyq6gm.js +0 -1
  248. package/dist/client/static/js/java-g4dgwbfd.js +0 -1
  249. package/dist/client/static/js/jsx-7t5ecz9s.js +0 -1
  250. package/dist/client/static/js/lua-1g6w30de.js +0 -1
  251. package/dist/client/static/js/markdown-afx21x8c.js +0 -1
  252. package/dist/client/static/js/one-dark-pro-hm3f56n1.js +0 -1
  253. package/dist/client/static/js/one-light-xrz49rct.js +0 -1
  254. package/dist/client/static/js/packet-AYTQ26CC-yg71sp88.js +0 -1
  255. package/dist/client/static/js/pie-WAS4IAKB-89wd6np0.js +0 -1
  256. package/dist/client/static/js/properties-thd83wey.js +0 -1
  257. package/dist/client/static/js/python-264ns4xw.js +0 -1
  258. package/dist/client/static/js/r-qw82kkv9.js +0 -1
  259. package/dist/client/static/js/radar-RG4KPBEZ-avn0b8r9.js +0 -1
  260. package/dist/client/static/js/railroad-74A4TZTK-de27xv5w.js +0 -1
  261. package/dist/client/static/js/railroad-abnf-HS5TGJTU-rg4zzj7x.js +0 -1
  262. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d84fhj8v.js +0 -1
  263. package/dist/client/static/js/railroad-peg-WCYAUIDC-dvf8xrmc.js +0 -1
  264. package/dist/client/static/js/sql-g8wcshpc.js +0 -1
  265. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-xs2en5dv.js +0 -8
  266. package/dist/client/static/js/treeView-Q6P3EWNA-mham0bh6.js +0 -1
  267. package/dist/client/static/js/treemap-WGGIJYW6-mxrxax86.js +0 -1
  268. package/dist/client/static/js/tsx-nm94hed6.js +0 -1
  269. package/dist/client/static/js/typescript-0s2t05jj.js +0 -1
  270. package/dist/client/static/js/wardley-WFR3VGLG-8vrvh9p3.js +0 -1
  271. package/dist/client/static/js/xml-dz51p1m3.js +0 -1
  272. package/dist/client/static/js/yaml-2cfkd30t.js +0 -1
@@ -1,2 +1,2 @@
1
- import{u,e}from"./index-zt75xpq0.js";import{xc,eA,Zm,wc}from"./index-q2w6s8n7.js";function w({content:d,path:l,onChange:s}){let r=u(()=>eA(d,l),[d,l]),o=s!==void 0&&!r.truncated,a=d.endsWith(`
2
- `),c=o?(i,n,t)=>{s(Zm(r.header,wc(r.rows,i,n,t),r.delimiter,a))}:void 0,h=o?(i,n)=>{let t=r.header.slice();while(t.length<=i)t.push("");t[i]=n,s(Zm(t,r.rows,r.delimiter,a))}:void 0;return e(xc,{header:r.header,rows:r.rows,truncated:r.truncated,readOnlyNote:r.truncated?"This file is too large to edit in the grid — use Show source.":o?"Paste is not supported — double-click a cell to edit it.":"This grid is read-only — use Show source to edit the cells.",onEditCell:c,onEditHeader:h})}export{w as CsvGrid};
1
+ import{u,e}from"./index-ncrenheb.js";import{wc,nA,ef,Cc}from"./index-2v1nmxwr.js";function w({content:d,path:l,onChange:s}){let r=u(()=>nA(d,l),[d,l]),o=s!==void 0&&!r.truncated,a=d.endsWith(`
2
+ `),c=o?(i,n,t)=>{s(ef(r.header,Cc(r.rows,i,n,t),r.delimiter,a))}:void 0,h=o?(i,n)=>{let t=r.header.slice();while(t.length<=i)t.push("");t[i]=n,s(ef(t,r.rows,r.delimiter,a))}:void 0;return e(wc,{header:r.header,rows:r.rows,truncated:r.truncated,readOnlyNote:r.truncated?"This file is too large to edit in the grid — use Show source.":o?"Paste is not supported — double-click a cell to edit it.":"This grid is read-only — use Show source to edit the cells.",onEditCell:c,onEditHeader:h})}export{w as CsvGrid};
@@ -1,4 +1,4 @@
1
- import{u,e,m,Ep,Br,Yu}from"./index-zt75xpq0.js";import{an,yn,Jf}from"./index-sdtye3jy.js";var wr=yn(function(gr,Zt){(function(et){if(typeof gr==="object"&&typeof Zt<"u")Zt.exports=et();else if(typeof define==="function"&&define.amd)define([],et);else{var ft;if(typeof window<"u")ft=window;else if(typeof global<"u")ft=global;else if(typeof self<"u")ft=self;else ft=this;ft.mammoth=et()}})(function(){var et,ft,Yt;return function X(ce,L,z){function I(c,o){if(!L[c]){if(!ce[c]){var i=Jf;if(!o&&i)return i(c,!0);if(p)return p(c,!0);var t=Error("Cannot find module '"+c+"'");throw t.code="MODULE_NOT_FOUND",t}var l=L[c]={exports:{}};ce[c][0].call(l.exports,function(g){var _=ce[c][1][g];return I(_?_:g)},l,l.exports,X,ce,L,z)}return L[c].exports}var p=Jf;for(var k=0;k<z.length;k++)I(z[k]);return I}({1:[function(X,ce,L){var z=X("../../lib/promises");L.Files=I;function I(){function p(k){return z.reject(Error("could not open external image: '"+k+`'
1
+ import{u,e,m,Ip,Ir,Ju}from"./index-ncrenheb.js";import{on,yn,Xf}from"./index-pc6eg8h2.js";var wr=yn(function(gr,Zt){(function(et){if(typeof gr==="object"&&typeof Zt<"u")Zt.exports=et();else if(typeof define==="function"&&define.amd)define([],et);else{var ft;if(typeof window<"u")ft=window;else if(typeof global<"u")ft=global;else if(typeof self<"u")ft=self;else ft=this;ft.mammoth=et()}})(function(){var et,ft,Yt;return function X(ce,L,z){function I(c,o){if(!L[c]){if(!ce[c]){var i=Xf;if(!o&&i)return i(c,!0);if(p)return p(c,!0);var t=Error("Cannot find module '"+c+"'");throw t.code="MODULE_NOT_FOUND",t}var l=L[c]={exports:{}};ce[c][0].call(l.exports,function(g){var _=ce[c][1][g];return I(_?_:g)},l,l.exports,X,ce,L,z)}return L[c].exports}var p=Xf;for(var k=0;k<z.length;k++)I(z[k]);return I}({1:[function(X,ce,L){var z=X("../../lib/promises");L.Files=I;function I(){function p(k){return z.reject(Error("could not open external image: '"+k+`'
2
2
  cannot open linked files from a web browser`))}return{read:p}}},{"../../lib/promises":23}],2:[function(X,ce,L){var z=X("../lib/promises"),I=X("../lib/zipfile");L.openZip=p;function p(k){if(k.arrayBuffer)return z.resolve(I.openArrayBuffer(k.arrayBuffer));else return z.reject(Error("Could not find file in options"))}},{"../lib/promises":23,"../lib/zipfile":40}],3:[function(X,ce,L){var z=X("underscore"),I=X("./promises"),p=X("./documents"),k=X("./styles/html-paths"),c=X("./results"),o=X("./images"),i=X("./html"),t=X("./writers");L.DocumentConverter=l;function l(n){return{convertToHtml:function(v){var a=z.indexBy(v.type===p.types.document?v.comments:[],"commentId"),E=new g(n,a);return E.convertToHtml(v)}}}function g(n,v){var a=1,E=[],F=[];n=z.extend({ignoreEmptyParagraphs:!0},n);var A=n.idPrefix===void 0?"":n.idPrefix,W=n.ignoreEmptyParagraphs,S=k.topLevelElement("p"),P=n.styleMap||[];function O(d){var q=[],Y=ee(d,q,Object.create(null)),j=[];T(Y,function(r){if(r.type==="deferred")j.push(r)});var f=Object.create(null);return I.forEachSeries(j,function(r){return r.value().then(function(s){f[r.id]=s})}).then(function(){function r(N){return h(N,function(M){if(M.type==="deferred")return f[M.id];else if(M.children)return[z.extend({},M,{children:r(M.children)})];else return[M]})}var s=t.writer({prettyPrint:n.prettyPrint,outputFormat:n.outputFormat});return i.write(s,i.simplify(r(Y))),new c.Result(s.asString(),q)})}function H(d,q,Y){return h(d,function(j){return ee(j,q,Y)})}function ee(d,q,Y){if(!Y)throw Error("context not set");var j=Ae[d.type];if(j)return j(d,q,Y);else return[]}function U(d,q,Y){return J(d,q).wrap(function(){var j=H(d.children,q,Y);if(W)return j;else return[i.forceWrite].concat(j)})}function J(d,q){var Y=se(d);if(Y)return Y.to;else{if(d.styleId)q.push(y("paragraph",d));return S}}function D(d,q,Y){var j=function(){return H(d.children,q,Y)},f=[];if(d.highlight!==null){var r=ye({type:"highlight",color:d.highlight});if(r)f.push(r)}if(d.isSmallCaps)f.push(te("smallCaps"));if(d.isAllCaps)f.push(te("allCaps"));if(d.isStrikethrough)f.push(te("strikethrough","s"));if(d.isUnderline)f.push(te("underline"));if(d.verticalAlignment===p.verticalAlignment.subscript)f.push(k.element("sub",{},{fresh:!1}));if(d.verticalAlignment===p.verticalAlignment.superscript)f.push(k.element("sup",{},{fresh:!1}));if(d.isItalic)f.push(te("italic","em"));if(d.isBold)f.push(te("bold","strong"));var s=k.empty,N=se(d);if(N)s=N.to;else if(d.styleId)q.push(y("run",d));return f.push(s),f.forEach(function(M){j=M.wrap.bind(M,j)}),j()}function te(d,q){var Y=ye({type:d});if(Y)return Y;else if(q)return k.element(q,{},{fresh:!1});else return k.empty}function ye(d,q){var Y=se(d);return Y?Y.to:q}function se(d){for(var q=0;q<P.length;q++)if(P[q].from.matches(d))return P[q]}function ve(d){return function(q,Y){return I.try(function(){return d(q,Y)}).catch(function(j){return Y.push(c.error(j)),[]})}}function le(d){return Q(d.noteType,d.noteId)}function be(d){return ne(d.noteType,d.noteId)}function Q(d,q){return Te(d+"-"+q)}function ne(d,q){return Te(d+"-ref-"+q)}function Te(d){return A+d}var pe=k.elements([k.element("table",{},{fresh:!0})]);function de(d,q,Y){return ye(d,pe).wrap(function(){return Pe(d,q,Y)})}function Pe(d,q,Y){var j=z.findIndex(d.children,function(N){return!N.type===p.types.tableRow||!N.isHeader});if(j===-1)j=d.children.length;var f;if(j===0)f=H(d.children,q,z.extend({},Y,{isTableHeader:!1}));else{var r=H(d.children.slice(0,j),q,z.extend({},Y,{isTableHeader:!0})),s=H(d.children.slice(j),q,z.extend({},Y,{isTableHeader:!1}));f=[i.freshElement("thead",{},r),i.freshElement("tbody",{},s)]}return[i.forceWrite].concat(f)}function Be(d,q,Y){var j=H(d.children,q,Y);return[i.freshElement("tr",{},[i.forceWrite].concat(j))]}function Ie(d,q,Y){var j=Y.isTableHeader?"th":"td",f=H(d.children,q,Y),r={};if(d.colSpan!==1)r.colspan=d.colSpan.toString();if(d.rowSpan!==1)r.rowspan=d.rowSpan.toString();return[i.freshElement(j,r,[i.forceWrite].concat(f))]}function ke(d,q,Y){return ye(d,k.ignore).wrap(function(){var j=v[d.commentId],f=F.length+1,r="["+x(j)+f+"]";return F.push({label:r,comment:j}),[i.freshElement("a",{href:"#"+Q("comment",d.commentId),id:ne("comment",d.commentId)},[i.text(r)])]})}function Ne(d,q,Y){var{label:j,comment:f}=d,r=H(f.body,q,Y).concat([i.nonFreshElement("p",{},[i.text(" "),i.freshElement("a",{href:"#"+ne("comment",f.commentId)},[i.text("↑")])])]);return[i.freshElement("dt",{id:Q("comment",f.commentId)},[i.text("Comment "+j)]),i.freshElement("dd",{},r)]}function Re(d,q,Y){return We(d).wrap(function(){return[]})}function We(d){var q=se(d);if(q)return q.to;else if(d.breakType==="line")return k.topLevelElement("br");else return k.empty}var Ae={document:function(d,q,Y){var j=H(d.children,q,Y),f=E.map(function(s){return d.notes.resolve(s)}),r=H(f,q,Y);return j.concat([i.freshElement("ol",{},r),i.freshElement("dl",{},h(F,function(s){return Ne(s,q,Y)}))])},paragraph:U,run:D,text:function(d,q,Y){return[i.text(d.value)]},tab:function(d,q,Y){return[i.text("\t")]},hyperlink:function(d,q,Y){var j=d.anchor?"#"+Te(d.anchor):d.href,f={href:j};if(d.targetFrame!=null)f.target=d.targetFrame;var r=H(d.children,q,Y);return[i.nonFreshElement("a",f,r)]},checkbox:function(d){var q={type:"checkbox"};if(d.checked)q.checked="checked";return[i.freshElement("input",q)]},bookmarkStart:function(d,q,Y){var j=i.freshElement("a",{id:Te(d.name)},[i.forceWrite]);return[j]},noteReference:function(d,q,Y){E.push(d);var j=i.freshElement("a",{href:"#"+le(d),id:be(d)},[i.text("["+a+++"]")]);return[i.freshElement("sup",{},[j])]},note:function(d,q,Y){var j=H(d.body,q,Y),f=i.elementWithTag(k.element("p",{},{fresh:!1}),[i.text(" "),i.freshElement("a",{href:"#"+be(d)},[i.text("↑")])]),r=j.concat([f]);return i.freshElement("li",{id:le(d)},r)},commentReference:ke,comment:Ne,image:w(ve(n.convertImage||o.dataUri)),table:de,tableRow:Be,tableCell:Ie,break:Re};return{convertToHtml:O}}var _=1;function w(n){return function(v,a,E){return[{type:"deferred",id:_++,value:function(){return n(v,a,E)}}]}}function y(n,v){return c.warning("Unrecognised "+n+" style: '"+v.styleName+"' (Style ID: "+v.styleId+")")}function h(n,v){return z.flatten(n.map(v),!0)}function T(n,v){n.forEach(function(a){if(v(a),a.children)T(a.children,v)})}var x=L.commentAuthorLabel=function(v){return v.authorInitials||""}},{"./documents":4,"./html":18,"./images":20,"./promises":23,"./results":25,"./styles/html-paths":28,"./writers":33,underscore:67}],4:[function(X,ce,L){(function(z){var I=X("underscore"),p=L.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function k(S,P){return P=P||{},{type:p.document,children:S,notes:P.notes||new y({}),comments:P.comments||[]}}function c(S,P){P=P||{};var O=P.indent||{};return{type:p.paragraph,children:S,styleId:P.styleId||null,styleName:P.styleName||null,numbering:P.numbering||null,alignment:P.alignment||null,indent:{start:O.start||null,end:O.end||null,firstLine:O.firstLine||null,hanging:O.hanging||null}}}function o(S,P){return P=P||{},{type:p.run,children:S,styleId:P.styleId||null,styleName:P.styleName||null,isBold:!!P.isBold,isUnderline:!!P.isUnderline,isItalic:!!P.isItalic,isStrikethrough:!!P.isStrikethrough,isAllCaps:!!P.isAllCaps,isSmallCaps:!!P.isSmallCaps,verticalAlignment:P.verticalAlignment||i.baseline,font:P.font||null,fontSize:P.fontSize||null,highlight:P.highlight||null}}var i={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function t(S){return{type:p.text,value:S}}function l(){return{type:p.tab}}function g(S){return{type:p.checkbox,checked:S.checked}}function _(S,P){return{type:p.hyperlink,children:S,href:P.href,anchor:P.anchor,targetFrame:P.targetFrame}}function w(S){return{type:p.noteReference,noteType:S.noteType,noteId:S.noteId}}function y(S){this._notes=I.indexBy(S,function(P){return n(P.noteType,P.noteId)})}y.prototype.resolve=function(S){return this.findNoteByKey(n(S.noteType,S.noteId))},y.prototype.findNoteByKey=function(S){return this._notes[S]||null};function h(S){return{type:p.note,noteType:S.noteType,noteId:S.noteId,body:S.body}}function T(S){return{type:p.commentReference,commentId:S.commentId}}function x(S){return{type:p.comment,commentId:S.commentId,body:S.body,authorName:S.authorName,authorInitials:S.authorInitials}}function n(S,P){return S+"-"+P}function v(S){return{type:p.image,read:function(P){if(P)return S.readImage(P);else return S.readImage().then(function(O){return z.from(O)})},readAsArrayBuffer:function(){return S.readImage()},readAsBase64String:function(){return S.readImage("base64")},readAsBuffer:function(){return S.readImage().then(function(P){return z.from(P)})},altText:S.altText,contentType:S.contentType}}function a(S,P){return P=P||{},{type:p.table,children:S,styleId:P.styleId||null,styleName:P.styleName||null}}function E(S,P){return P=P||{},{type:p.tableRow,children:S,isHeader:P.isHeader||!1}}function F(S,P){return P=P||{},{type:p.tableCell,children:S,colSpan:P.colSpan==null?1:P.colSpan,rowSpan:P.rowSpan==null?1:P.rowSpan}}function A(S){return{type:p.break,breakType:S}}function W(S){return{type:p.bookmarkStart,name:S.name}}L.document=L.Document=k,L.paragraph=L.Paragraph=c,L.run=L.Run=o,L.text=L.Text=t,L.tab=L.Tab=l,L.checkbox=L.Checkbox=g,L.Hyperlink=_,L.noteReference=L.NoteReference=w,L.Notes=y,L.Note=h,L.commentReference=T,L.comment=x,L.Image=v,L.Table=a,L.TableRow=E,L.TableCell=F,L.lineBreak=A("line"),L.pageBreak=A("page"),L.columnBreak=A("column"),L.BookmarkStart=W,L.verticalAlignment=i}).call(this,X("buffer").Buffer)},{buffer:48,underscore:67}],5:[function(X,ce,L){L.createBodyReader=l,L._readNumberingProperties=_;var z=X("dingbat-to-unicode"),I=X("underscore"),p=X("../documents"),k=X("../results").Result,c=X("../results").warning,o=X("../xml"),i=X("../transforms"),t=X("./uris");function l(A){return{readXmlElement:function(W){return new g(A).readXmlElement(W)},readXmlElements:function(W){return new g(A).readXmlElements(W)}}}function g(A){var W=[],S=[],P=[],{relationships:O,contentTypes:H,docxFile:ee,files:U,numbering:J,styles:D}=A;function te(oe){var me=oe.map(ye);return a(me)}function ye(oe){if(oe.type==="element"){var me=j[oe.name];if(me)return me(oe);else if(!Object.prototype.hasOwnProperty.call(y,oe.name)){var xe=c("An unrecognised element was ignored: "+oe.name);return h([xe])}}return T()}function se(oe){return pe(oe).map(function(me){return{type:"paragraphProperties",styleId:me.styleId,styleName:me.name,alignment:oe.firstOrEmpty("w:jc").attributes["w:val"],numbering:_(me.styleId,oe.firstOrEmpty("w:numPr"),J),indent:ve(oe.firstOrEmpty("w:ind"))}})}function ve(oe){return{start:oe.attributes["w:start"]||oe.attributes["w:left"],end:oe.attributes["w:end"]||oe.attributes["w:right"],firstLine:oe.attributes["w:firstLine"],hanging:oe.attributes["w:hanging"]}}function le(oe){return de(oe).map(function(me){var xe=oe.firstOrEmpty("w:sz").attributes["w:val"],De=/^[0-9]+$/.test(xe)?parseInt(xe,10)/2:null;return{type:"runProperties",styleId:me.styleId,styleName:me.name,verticalAlignment:oe.firstOrEmpty("w:vertAlign").attributes["w:val"],font:oe.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:De,isBold:Q(oe.first("w:b")),isUnderline:be(oe.first("w:u")),isItalic:Q(oe.first("w:i")),isStrikethrough:Q(oe.first("w:strike")),isAllCaps:Q(oe.first("w:caps")),isSmallCaps:Q(oe.first("w:smallCaps")),highlight:Te(oe.firstOrEmpty("w:highlight").attributes["w:val"])}})}function be(oe){if(oe){var me=oe.attributes["w:val"];return me!==void 0&&me!=="false"&&me!=="0"&&me!=="none"}else return!1}function Q(oe){if(oe){var me=oe.attributes["w:val"];return me!=="false"&&me!=="0"}else return!1}function ne(oe){return oe!=="false"&&oe!=="0"}function Te(oe){if(!oe||oe==="none")return null;else return oe}function pe(oe){return Be(oe,"w:pStyle","Paragraph",D.findParagraphStyleById)}function de(oe){return Be(oe,"w:rStyle","Run",D.findCharacterStyleById)}function Pe(oe){return Be(oe,"w:tblStyle","Table",D.findTableStyleById)}function Be(oe,me,xe,De){var Me=[],Xe=oe.first(me),ze=null,Ve=null;if(Xe){if(ze=Xe.attributes["w:val"],ze){var Ge=De(ze);if(Ge)Ve=Ge.name;else Me.push(Qe(xe,ze))}}return n({styleId:ze,name:Ve},Me)}function Ie(oe){var me=oe.attributes["w:fldCharType"];if(me==="begin")W.push({type:"begin",fldChar:oe}),S=[];else if(me==="end"){if(W.length===0)return h([c("Ignoring complex field end character without corresponding start character")]);var xe=W.pop();if(xe.type==="begin")xe=Ne(xe);if(xe.type==="checkbox")return x(p.checkbox({checked:xe.checked}))}else if(me==="separate"){if(W.length===0)return h([c("Ignoring complex field separator character without corresponding start character")]);var De=W.pop(),Me=Ne(De);W.push(Me)}return T()}function ke(){var oe=I.last(W.filter(function(me){return me.type==="hyperlink"}));return oe?oe.options:null}function Ne(oe){return Re(S.join(""),oe.type==="begin"?oe.fldChar:o.emptyElement)}function Re(oe,me){var xe=/^\s*HYPERLINK\s+(\\l\s+)?(?:"(.*)"|([^\\]\S*))/.exec(oe);if(xe){var De=xe[2]===void 0?xe[3]:xe[2],Me=xe[1]===void 0?{href:De}:{anchor:De};return{type:"hyperlink",options:Me}}var Xe=/\s*FORMCHECKBOX\s*/.exec(oe);if(Xe){var ze=me.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),Ve=ze.first("w:checked"),Ge=Ve==null?Q(ze.first("w:default")):Q(Ve);return{type:"checkbox",checked:Ge}}return{type:"unknown"}}function We(oe){return S.push(oe.text()),T()}function Ae(oe){var me=oe.attributes["w:font"],xe=oe.attributes["w:char"],De=z.hex(me,xe);if(De==null&&/^F0..$/.test(xe))De=z.hex(me,xe.substring(2));if(De==null)return h([c("A w:sym element with an unsupported character was ignored: char "+xe+" in font "+me)]);else return x(new p.Text(De.string))}function d(oe){return function(me){var xe=me.attributes["w:id"];return x(new p.NoteReference({noteType:oe,noteId:xe}))}}function q(oe){return x(p.commentReference({commentId:oe.attributes["w:id"]}))}function Y(oe){return te(oe.children)}var j={"w:p":function(oe){var me=oe.firstOrEmpty("w:pPr"),xe=!!me.firstOrEmpty("w:rPr").first("w:del");if(xe)return oe.children.forEach(function(Me){P.push(Me)}),T();else{var De=oe.children;if(P.length>0)De=P.concat(De),P=[];return v.map(se(me),te(De),function(Me,Xe){return new p.Paragraph(Xe,Me)}).insertExtra()}},"w:r":function(oe){return v.map(le(oe.firstOrEmpty("w:rPr")),te(oe.children),function(me,xe){var De=ke();if(De!==null)xe=[new p.Hyperlink(xe,De)];return new p.Run(xe,me)})},"w:fldChar":Ie,"w:instrText":We,"w:t":function(oe){return x(new p.Text(oe.text()))},"w:tab":function(oe){return x(new p.Tab)},"w:noBreakHyphen":function(){return x(new p.Text("‑"))},"w:softHyphen":function(oe){return x(new p.Text("­"))},"w:sym":Ae,"w:hyperlink":function(oe){var me=oe.attributes["r:id"],xe=oe.attributes["w:anchor"];return te(oe.children).map(function(De){function Me(ze){var Ve=oe.attributes["w:tgtFrame"]||null;return new p.Hyperlink(De,I.extend({targetFrame:Ve},ze))}if(me){var Xe=O.findTargetByRelationshipId(me);if(xe)Xe=t.replaceFragment(Xe,xe);return Me({href:Xe})}else if(xe)return Me({anchor:xe});else return De})},"w:tbl":f,"w:tr":s,"w:tc":N,"w:footnoteReference":d("footnote"),"w:endnoteReference":d("endnote"),"w:commentReference":q,"w:br":function(oe){var me=oe.attributes["w:type"];if(me==null||me==="textWrapping")return x(p.lineBreak);else if(me==="page")return x(p.pageBreak);else if(me==="column")return x(p.columnBreak);else return h([c("Unsupported break type: "+me)])},"w:bookmarkStart":function(oe){var me=oe.attributes["w:name"];if(me==="_GoBack")return T();else return x(new p.BookmarkStart({name:me}))},"mc:AlternateContent":function(oe){return Y(oe.firstOrEmpty("mc:Fallback"))},"w:sdt":function(oe){var me=te(oe.firstOrEmpty("w:sdtContent").children);return me.map(function(xe){var De=oe.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(De){var Me=De.first("wordml:checked"),Xe=!!Me&&ne(Me.attributes["wordml:val"]),ze=p.checkbox({checked:Xe}),Ve=!1,Ge=xe.map(i._elementsOfType(p.types.text,function($e){if($e.value.length>0&&!Ve)return Ve=!0,ze;else return $e}));if(Ve)return Ge;else return ze}else return xe})},"w:customXml":Y,"w:ins":Y,"w:moveFromRangeEnd":Y,"w:moveFromRangeStart":Y,"w:moveTo":Y,"w:moveToRangeEnd":Y,"w:moveToRangeStart":Y,"w:object":Y,"w:smartTag":Y,"w:drawing":Y,"w:pict":function(oe){return Y(oe).toExtra()},"v:roundrect":Y,"v:shape":Y,"v:textbox":Y,"w:txbxContent":Y,"wp:inline":ue,"wp:anchor":ue,"v:imagedata":Fe,"v:group":Y,"v:rect":Y};return{readXmlElement:ye,readXmlElements:te};function f(oe){var me=r(oe.firstOrEmpty("w:tblPr"));return te(oe.children).flatMap(K).flatMap(function(xe){return me.map(function(De){return p.Table(xe,De)})})}function r(oe){return Pe(oe).map(function(me){return{styleId:me.styleId,styleName:me.name}})}function s(oe){var me=oe.firstOrEmpty("w:trPr"),xe=!!me.first("w:del");if(xe)return T();var De=!!me.first("w:tblHeader");return te(oe.children).map(function(Me){return p.TableRow(Me,{isHeader:De})})}function N(oe){return te(oe.children).map(function(me){var xe=oe.firstOrEmpty("w:tcPr"),De=xe.firstOrEmpty("w:gridSpan").attributes["w:val"],Me=De?parseInt(De,10):1,Xe=p.TableCell(me,{colSpan:Me});return Xe._vMerge=M(xe),Xe})}function M(oe){var me=oe.first("w:vMerge");if(me){var xe=me.attributes["w:val"];return xe==="continue"||!xe}else return null}function K(oe){var me=I.any(oe,function(Me){return Me.type!==p.types.tableRow});if(me)return ie(oe),n(oe,[c("unexpected non-row element in table, cell merging may be incorrect")]);var xe=I.any(oe,function(Me){return I.any(Me.children,function(Xe){return Xe.type!==p.types.tableCell})});if(xe)return ie(oe),n(oe,[c("unexpected non-cell element in table row, cell merging may be incorrect")]);var De={};return oe.forEach(function(Me){var Xe=0;Me.children.forEach(function(ze){if(ze._vMerge&&De[Xe])De[Xe].rowSpan++;else De[Xe]=ze,ze._vMerge=!1;Xe+=ze.colSpan})}),oe.forEach(function(Me){Me.children=Me.children.filter(function(Xe){return!Xe._vMerge}),Me.children.forEach(function(Xe){delete Xe._vMerge})}),x(oe)}function ie(oe){oe.forEach(function(me){var xe=i.getDescendantsOfType(me,p.types.tableCell);xe.forEach(function(De){delete De._vMerge})})}function ue(oe){var me=oe.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return a(me.map(we.bind(null,oe)))}function we(oe,me){var xe=oe.firstOrEmpty("wp:docPr"),De=xe.attributes,Me=Se(De.descr)?De.title:De.descr,Xe=_e(me);if(Xe===null)return h([c("Could not find image file for a:blip element")]);return He(Xe,Me).map(function(ze){var Ve=xe.firstOrEmpty("a:hlinkClick"),Ge=Ve.attributes["r:id"];if(Ge){var $e=O.findTargetByRelationshipId(Ge);return new p.Hyperlink([ze],{href:$e})}else return ze})}function Se(oe){return oe==null||/^\s*$/.test(oe)}function _e(oe){var me=oe.attributes["r:embed"],xe=oe.attributes["r:link"];if(me)return Ze(me);else if(xe){var De=O.findTargetByRelationshipId(xe);return{path:De,read:U.read.bind(U,De)}}else return null}function Fe(oe){var me=oe.attributes["r:id"];if(me)return He(Ze(me),oe.attributes["o:title"]);else return h([c("A v:imagedata element without a relationship ID was ignored")])}function Ze(oe){var me=t.uriToZipEntryName("word",O.findTargetByRelationshipId(oe));return{path:me,read:ee.read.bind(ee,me)}}function He(oe,me){var xe=H.findContentType(oe.path),De=p.Image({readImage:oe.read,altText:me,contentType:xe}),Me=w[xe]?[]:c("Image of type "+xe+" is unlikely to display in web browsers");return n(De,Me)}function Qe(oe,me){return c(oe+" style with ID "+me+" was referenced but not defined in the document")}}function _(A,W,S){var P=W.firstOrEmpty("w:ilvl").attributes["w:val"],O=W.firstOrEmpty("w:numId").attributes["w:val"];if(P!==void 0&&O!==void 0)return S.findLevel(O,P);if(A!=null){var H=S.findLevelByParagraphStyleId(A);if(H!=null)return H}if(O!==void 0)return S.findLevel(O,"0");return null}var w={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},y={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:moveFrom":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function h(A){return new v(null,null,A)}function T(){return new v(null)}function x(A){return new v(A)}function n(A,W){return new v(A,null,W)}function v(A,W,S){this.value=A||[],this.extra=W||[],this._result=new k({element:this.value,extra:W},S),this.messages=this._result.messages}v.prototype.toExtra=function(){return new v(null,E(this.extra,this.value),this.messages)},v.prototype.insertExtra=function(){var A=this.extra;if(A&&A.length)return new v(E(this.value,A),null,this.messages);else return this},v.prototype.map=function(A){var W=this._result.map(function(S){return A(S.element)});return new v(W.value,this.extra,W.messages)},v.prototype.flatMap=function(A){var W=this._result.flatMap(function(S){return A(S.element)._result});return new v(W.value.element,E(this.extra,W.value.extra),W.messages)},v.map=function(A,W,S){return new v(S(A.value,W.value),E(A.extra,W.extra),A.messages.concat(W.messages))};function a(A){var W=k.combine(I.pluck(A,"_result"));return new v(I.flatten(I.pluck(W.value,"element")),I.filter(I.flatten(I.pluck(W.value,"extra")),F),W.messages)}function E(A,W){return I.flatten([A,W])}function F(A){return A}},{"../documents":4,"../results":25,"../transforms":30,"../xml":35,"./uris":16,"dingbat-to-unicode":50,underscore:67}],6:[function(X,ce,L){var z=X("../documents"),I=X("../results").Result;function p(k){function c(i){return I.combine(i.getElementsByTagName("w:comment").map(o))}function o(i){var t=i.attributes["w:id"];function l(g){return(i.attributes[g]||"").trim()||null}return k.readXmlElements(i.children).map(function(g){return z.comment({commentId:t,body:g,authorName:l("w:author"),authorInitials:l("w:initials")})})}return c}L.createCommentsReader=p},{"../documents":4,"../results":25}],7:[function(X,ce,L){L.readContentTypesFromXml=I;var z={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};L.defaultContentTypes=p({},{});function I(k){var c=Object.create(null),o=Object.create(null);return k.children.forEach(function(i){if(i.name==="content-types:Default")c[i.attributes.Extension]=i.attributes.ContentType;if(i.name==="content-types:Override"){var t=i.attributes.PartName;if(t.charAt(0)==="/")t=t.substring(1);o[t]=i.attributes.ContentType}}),p(o,c)}function p(k,c){return{findContentType:function(o){var i=k[o];if(i)return i;else{var t=o.split("."),l=t[t.length-1];if(Object.prototype.hasOwnProperty.call(c,l))return c[l];else{var g=z[l.toLowerCase()];if(g)return"image/"+g;else return null}}}}}},{}],8:[function(X,ce,L){L.DocumentXmlReader=p;var z=X("../documents"),I=X("../results").Result;function p(k){var c=k.bodyReader;function o(i){var t=i.first("w:body");if(t==null)throw Error("Could not find the body element: are you sure this is a docx file?");var l=c.readXmlElements(t.children).map(function(g){return new z.Document(g,{notes:k.notes,comments:k.comments})});return new I(l.value,l.messages)}return{convertXmlToDocument:o}}},{"../documents":4,"../results":25}],9:[function(X,ce,L){L.read=T,L._findPartPaths=x;var z=X("../promises"),I=X("../documents"),p=X("../results").Result,k=X("../zipfile"),c=X("./office-xml-reader").readXmlFromZipFile,o=X("./body-reader").createBodyReader,i=X("./document-xml-reader").DocumentXmlReader,t=X("./relationships-reader"),l=X("./content-types-reader"),g=X("./numbering-xml"),_=X("./styles-reader"),w=X("./notes-reader"),y=X("./comments-reader"),h=X("./files").Files;function T(O,H,ee){H=H||{},ee=ee||{};var U=new h({externalFileAccess:ee.externalFileAccess,relativeToFile:H.path});return z.props({contentTypes:A(O),partPaths:x(O),docxFile:O,files:U}).also(function(J){return{styles:S(O,J.partPaths.styles)}}).also(function(J){return{numbering:W(O,J.partPaths.numbering,J.styles)}}).also(function(J){return{footnotes:E(J.partPaths.footnotes,J,function(D,te){if(te)return w.createFootnotesReader(D)(te);else return new p([])}),endnotes:E(J.partPaths.endnotes,J,function(D,te){if(te)return w.createEndnotesReader(D)(te);else return new p([])}),comments:E(J.partPaths.comments,J,function(D,te){if(te)return y.createCommentsReader(D)(te);else return new p([])})}}).also(function(J){return{notes:J.footnotes.flatMap(function(D){return J.endnotes.map(function(te){return new I.Notes(D.concat(te))})})}}).then(function(J){return E(J.partPaths.mainDocument,J,function(D,te){return J.notes.flatMap(function(ye){return J.comments.flatMap(function(se){var ve=new i({bodyReader:D,notes:ye,comments:se});return ve.convertXmlToDocument(te)})})})})}function x(O){return P(O).then(function(H){var ee=n({docxFile:O,relationships:H,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!O.exists(ee))throw Error("Could not find main document part. Are you sure this is a valid .docx file?");return a({filename:F(ee),readElement:t.readRelationships,defaultValue:t.defaultValue})(O).then(function(U){function J(D){return n({docxFile:O,relationships:U,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+D,basePath:k.splitPath(ee).dirname,fallbackPath:"word/"+D+".xml"})}return{mainDocument:ee,comments:J("comments"),endnotes:J("endnotes"),footnotes:J("footnotes"),numbering:J("numbering"),styles:J("styles")}})})}function n(O){var{docxFile:H,relationships:ee,relationshipType:U,basePath:J,fallbackPath:D}=O,te=ee.findTargetsByType(U),ye=te.map(function(ve){return v(k.joinPath(J,ve),"/")}),se=ye.filter(function(ve){return H.exists(ve)});if(se.length===0)return D;else return se[0]}function v(O,H){if(O.substring(0,H.length)===H)return O.substring(H.length);else return O}function a(O){return function(H){return c(H,O.filename).then(function(ee){return ee?O.readElement(ee):O.defaultValue})}}function E(O,H,ee){var U=a({filename:F(O),readElement:t.readRelationships,defaultValue:t.defaultValue});return U(H.docxFile).then(function(J){var D=new o({relationships:J,contentTypes:H.contentTypes,docxFile:H.docxFile,numbering:H.numbering,styles:H.styles,files:H.files});return c(H.docxFile,O).then(function(te){return ee(D,te)})})}function F(O){var H=k.splitPath(O);return k.joinPath(H.dirname,"_rels",H.basename+".rels")}var A=a({filename:"[Content_Types].xml",readElement:l.readContentTypesFromXml,defaultValue:l.defaultContentTypes});function W(O,H,ee){return a({filename:H,readElement:function(U){return g.readNumberingXml(U,{styles:ee})},defaultValue:g.defaultNumbering})(O)}function S(O,H){return a({filename:H,readElement:_.readStylesXml,defaultValue:_.defaultStyles})(O)}var P=a({filename:"_rels/.rels",readElement:t.readRelationships,defaultValue:t.defaultValue})},{"../documents":4,"../promises":23,"../results":25,"../zipfile":40,"./body-reader":5,"./comments-reader":6,"./content-types-reader":7,"./document-xml-reader":8,"./files":1,"./notes-reader":10,"./numbering-xml":11,"./office-xml-reader":12,"./relationships-reader":13,"./styles-reader":15}],10:[function(X,ce,L){var z=X("../documents"),I=X("../results").Result;L.createFootnotesReader=p.bind(this,"footnote"),L.createEndnotesReader=p.bind(this,"endnote");function p(k,c){function o(l){return I.combine(l.getElementsByTagName("w:"+k).filter(i).map(t))}function i(l){var g=l.attributes["w:type"];return g!=="continuationSeparator"&&g!=="separator"}function t(l){var g=l.attributes["w:id"];return c.readXmlElements(l.children).map(function(_){return z.Note({noteType:k,noteId:g,body:_})})}return o}},{"../documents":4,"../results":25}],11:[function(X,ce,L){var z=X("underscore");L.readNumberingXml=p,L.Numbering=I,L.defaultNumbering=new I({},{});function I(i,t,l){var g=z.flatten(z.values(t).map(function(T){return z.values(T.levels)})),_=z.indexBy(g.filter(function(T){return T.paragraphStyleId!=null}),"paragraphStyleId");function w(T,x){return y(T,x,Object.create(null))}function y(T,x,n){if(n[T])return null;n[T]=!0;var v=i[T];if(!v)return null;var a=t[v.abstractNumId];if(!a)return null;else if(a.numStyleLink==null)return t[v.abstractNumId].levels[x];else{var E=l.findNumberingStyleById(a.numStyleLink);return y(E.numId,x,n)}}function h(T){return _[T]||null}return{findLevel:w,findLevelByParagraphStyleId:h}}function p(i,t){if(!t||!t.styles)throw Error("styles is missing");var l=k(i),g=o(i,l);return new I(g,l,t.styles)}function k(i){var t=Object.create(null);return i.getElementsByTagName("w:abstractNum").forEach(function(l){var g=l.attributes["w:abstractNumId"];t[g]=c(l)}),t}function c(i){var t=Object.create(null),l=null;if(i.getElementsByTagName("w:lvl").forEach(function(_){var w=_.attributes["w:ilvl"],y=_.firstOrEmpty("w:numFmt").attributes["w:val"],h=y!=="bullet",T=_.firstOrEmpty("w:pStyle").attributes["w:val"];if(w===void 0)l={isOrdered:h,level:"0",paragraphStyleId:T};else t[w]={isOrdered:h,level:w,paragraphStyleId:T}}),l!==null&&t[l.level]===void 0)t[l.level]=l;var g=i.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:t,numStyleLink:g}}function o(i){var t=Object.create(null);return i.getElementsByTagName("w:num").forEach(function(l){var g=l.attributes["w:numId"],_=l.first("w:abstractNumId").attributes["w:val"];t[g]={abstractNumId:_}}),t}},{underscore:67}],12:[function(X,ce,L){var z=X("underscore"),I=X("../promises"),p=X("../xml");L.read=c,L.readXmlFromZipFile=o;var k={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function c(l){return p.readString(l,k).then(function(g){return t(g)[0]})}function o(l,g){if(l.exists(g))return l.read(g,"utf-8").then(i).then(c);else return I.resolve(null)}function i(l){return l.replace(/^\uFEFF/g,"")}function t(l){if(l.type==="element")if(l.name==="mc:AlternateContent")return l.firstOrEmpty("mc:Fallback").children;else return l.children=z.flatten(l.children.map(t,!0)),[l];else return[l]}},{"../promises":23,"../xml":35,underscore:67}],13:[function(X,ce,L){L.readRelationships=z,L.defaultValue=new I([]),L.Relationships=I;function z(p){var k=[];return p.children.forEach(function(c){if(c.name==="relationships:Relationship"){var o={relationshipId:c.attributes.Id,target:c.attributes.Target,type:c.attributes.Type};k.push(o)}}),new I(k)}function I(p){var k=Object.create(null);p.forEach(function(o){k[o.relationshipId]=o.target});var c=Object.create(null);return p.forEach(function(o){if(!c[o.type])c[o.type]=[];c[o.type].push(o.target)}),{findTargetByRelationshipId:function(o){return k[o]},findTargetsByType:function(o){return c[o]||[]}}}},{}],14:[function(X,ce,L){var z=X("underscore"),I=X("../promises"),p=X("../xml");L.writeStyleMap=i,L.readStyleMap=_;var k="http://schemas.zwobble.org/mammoth/style-map",c="mammoth/style-map",o="/"+c;function i(w,y){return w.write(c,y),t(w).then(function(){return l(w)})}function t(w){var y="word/_rels/document.xml.rels",h="http://schemas.openxmlformats.org/package/2006/relationships",T="{"+h+"}Relationship";return w.read(y,"utf8").then(p.readString).then(function(x){var n=x.children;g(n,T,"Id",{Id:"rMammothStyleMap",Type:k,Target:o});var v={"":h};return w.write(y,p.writeString(x,v))})}function l(w){var y="[Content_Types].xml",h="http://schemas.openxmlformats.org/package/2006/content-types",T="{"+h+"}Override";return w.read(y,"utf8").then(p.readString).then(function(x){var n=x.children;g(n,T,"PartName",{PartName:o,ContentType:"text/prs.mammoth.style-map"});var v={"":h};return w.write(y,p.writeString(x,v))})}function g(w,y,h,T){var x=z.find(w,function(n){return n.name===y&&n.attributes[h]===T[h]});if(x)x.attributes=T;else w.push(p.element(y,T))}function _(w){if(w.exists(c))return w.read(c,"utf8");else return I.resolve(null)}},{"../promises":23,"../xml":35,underscore:67}],15:[function(X,ce,L){L.readStylesXml=I,L.Styles=z,L.defaultStyles=new z({},{});function z(i,t,l,g){return{findParagraphStyleById:function(_){return i[_]},findCharacterStyleById:function(_){return t[_]},findTableStyleById:function(_){return l[_]},findNumberingStyleById:function(_){return g[_]}}}z.EMPTY=new z({},{},{},{});function I(i){var t=Object.create(null),l=Object.create(null),g=Object.create(null),_=Object.create(null);return i.getElementsByTagName("w:style").forEach(function(w){var y=p(w),h;switch(y.type){case"paragraph":h=t;break;case"character":h=l;break;case"table":h=g;break;case"numbering":h=_;break}if(h&&h[y.styleId]===void 0)h[y.styleId]=y}),new z(t,l,g,_)}function p(i){var t=i.attributes["w:type"];if(t==="numbering")return c(t,i);else{var l=o(i),g=k(i);return{type:t,styleId:l,name:g}}}function k(i){var t=i.first("w:name");return t?t.attributes["w:val"]:null}function c(i,t){var l=o(t),g=t.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{type:i,numId:g,styleId:l}}function o(i){return i.attributes["w:styleId"]}},{}],16:[function(X,ce,L){L.uriToZipEntryName=z,L.replaceFragment=I;function z(p,k){if(k.charAt(0)==="/")return k.substr(1);else return p+"/"+k}function I(p,k){var c=p.indexOf("#");if(c!==-1)p=p.substring(0,c);return p+"#"+k}},{}],17:[function(X,ce,L){var z=X("../styles/html-paths");function I(l,g,_){return k(z.element(l,g,{fresh:!1}),_)}function p(l,g,_){var w=z.element(l,g,{fresh:!0});return k(w,_)}function k(l,g){return{type:"element",tag:l,children:g||[]}}function c(l){return{type:"text",value:l}}var o={type:"forceWrite"};L.freshElement=p,L.nonFreshElement=I,L.elementWithTag=k,L.text=c,L.forceWrite=o;var i={br:!0,hr:!0,img:!0,input:!0};function t(l){return l.children.length===0&&i[l.tag.tagName]}L.isVoidElement=t},{"../styles/html-paths":28}],18:[function(X,ce,L){var z=X("./ast");L.freshElement=z.freshElement,L.nonFreshElement=z.nonFreshElement,L.elementWithTag=z.elementWithTag,L.text=z.text,L.forceWrite=z.forceWrite,L.simplify=X("./simplify");function I(i,t){t.forEach(function(l){p(i,l)})}function p(i,t){k[t.type](i,t)}var k={element:c,text:o,forceWrite:function(){}};function c(i,t){if(z.isVoidElement(t))i.selfClosing(t.tag.tagName,t.tag.attributes);else i.open(t.tag.tagName,t.tag.attributes),I(i,t.children),i.close(t.tag.tagName)}function o(i,t){i.text(t.value)}L.write=I},{"./ast":17,"./simplify":19}],19:[function(X,ce,L){var z=X("underscore"),I=X("./ast");function p(x){return k(g(x))}function k(x){var n=[];return x.map(c).forEach(function(v){l(n,v)}),n}function c(x){return o[x.type](x)}var o={element:i,text:t,forceWrite:t};function i(x){return I.elementWithTag(x.tag,k(x.children))}function t(x){return x}function l(x,n){var v=x[x.length-1];if(n.type==="element"&&!n.tag.fresh&&v&&v.type==="element"&&n.tag.matchesElement(v.tag)){if(n.tag.separator)l(v.children,I.text(n.tag.separator));n.children.forEach(function(a){l(v.children,a)})}else x.push(n)}function g(x){return _(x,function(n){return w[n.type](n)})}function _(x,n){return z.flatten(z.map(x,n),!0)}var w={element:h,text:T,forceWrite:y};function y(x){return[x]}function h(x){var n=g(x.children);if(n.length===0&&!I.isVoidElement(x))return[];else return[I.elementWithTag(x.tag,n)]}function T(x){if(x.value.length===0)return[];else return[x]}ce.exports=p},{"./ast":17,underscore:67}],20:[function(X,ce,L){var z=X("underscore"),I=X("./promises"),p=X("./html");L.imgElement=k;function k(o){return function(i,t){return I.resolve(o(i)).then(function(l){var g={};if(i.altText)g.alt=i.altText;return z.extend(g,l),[p.freshElement("img",g)]})}}L.inline=L.imgElement,L.dataUri=k(function(o){return o.readAsBase64String().then(function(i){return{src:"data:"+o.contentType+";base64,"+i}})});function c(o){return o.contentType.split(/\/|\\/)[1]}L.imageFilenameExtension=c},{"./html":18,"./promises":23,underscore:67}],21:[function(X,ce,L){(function(z){var I=X("underscore"),p=X("./docx/docx-reader"),k=X("./docx/style-map"),c=X("./document-to-html").DocumentConverter,o=X("./raw-text").convertElementToRawText,i=X("./style-reader").readStyle,t=X("./options-reader").readOptions,l=X("./promises"),g=X("./unzip"),_=X("./results").Result;L.convertToHtml=w,L.convertToMarkdown=y,L.convert=h,L.extractRawText=v,L.images=X("./images"),L.transforms=X("./transforms"),L.underline=X("./underline"),L.embedStyleMap=a,L.readEmbeddedStyleMap=T;function w(E,F){return h(E,F)}function y(E,F){var A=Object.create(F||{});return A.outputFormat="markdown",h(E,A)}function h(E,F){F=t(F);var A=g.openZip(E).then(function(W){return k.readStyleMap(W).then(function(S){return F.embeddedStyleMap=S,W})}).then(function(W){return p.read(W,E,F).then(function(S){return S.map(F.transformDocument)}).then(function(S){return x(S,F)})});return l.toExternalPromise(A)}function T(E){var F=g.openZip(E).then(k.readStyleMap);return l.toExternalPromise(F)}function x(E,F){var A=n(F.readStyleMap()),W=I.extend({},F,{styleMap:A.value}),S=new c(W);return E.flatMapThen(function(P){return A.flatMapThen(function(O){return S.convertToHtml(P)})})}function n(E){return _.combine((E||[]).map(i)).map(function(F){return F.filter(function(A){return!!A})})}function v(E){var F=g.openZip(E).then(p.read).then(function(A){return A.map(o)});return l.toExternalPromise(F)}function a(E,F){var A=g.openZip(E).then(function(W){return k.writeStyleMap(W,F).then(function(){return W})}).then(function(W){return W.toArrayBuffer()}).then(function(W){return{toArrayBuffer:function(){return W},toBuffer:function(){return z.from(W)}}});return l.toExternalPromise(A)}L.styleMapping=function(){throw Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)}}).call(this,X("buffer").Buffer)},{"./document-to-html":3,"./docx/docx-reader":9,"./docx/style-map":14,"./images":20,"./options-reader":22,"./promises":23,"./raw-text":24,"./results":25,"./style-reader":26,"./transforms":30,"./underline":31,"./unzip":2,buffer:48,underscore:67}],22:[function(X,ce,L){L.readOptions=k;var z=X("underscore"),I=L._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],p=L._standardOptions={externalFileAccess:!1,transformDocument:o,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function k(i){return i=i||{},z.extend({},p,i,{customStyleMap:c(i.styleMap),readStyleMap:function(){var t=this.customStyleMap;if(this.includeEmbeddedStyleMap)t=t.concat(c(this.embeddedStyleMap));if(this.includeDefaultStyleMap)t=t.concat(I);return t}})}function c(i){if(!i)return[];else if(z.isString(i))return i.split(`
3
3
  `).map(function(t){return t.trim()}).filter(function(t){return t!==""&&t.charAt(0)!=="#"});else return i}function o(i){return i}},{underscore:67}],23:[function(X,ce,L){(function(z){var I=X("underscore");L.defer=o,L.Promise=Promise,L.resolve=Promise.resolve.bind(Promise),L.reject=Promise.reject.bind(Promise),L.forEachSeries=function(g,_){var w=0,y=o(),h=function(){if(w<g.length){var T=g[w];w++,_(T).then(h,y.reject)}else y.resolve()};return h(),y.promise};var p=L.props=function(g){var _=Object.keys(g),w=Object.values(g),y=Promise.all(w).then(function(h){var T={};for(var x=0;x<_.length;x++)T[_[x]]=h[x];return T});return c(y)},k=function(g){var _=this.then(function(w){var y=I.extend({},w,g(w));return p(y)});return c(_)};function c(g){return g.also=k,g}L.try=function(g){try{return Promise.resolve(g())}catch(_){return Promise.reject(_)}};function o(){var g,_,w=new Promise(function(y,h){g=y,_=h});return{resolve:g,reject:_,promise:w}}function i(g){var _=new Promise(g);return _.__proto__=i.prototype,_}i.__proto__=Promise,i.prototype.__proto__=Promise.prototype,i.prototype.done=function(g,_){return this.then(g,_).catch(function(w){if(l()){var y=w instanceof Error?w.stack:w;z.stderr.write("Fatal "+y+`
4
4
  `),z.exit(2)}else setTimeout(function(){throw w},0)})};function t(g){return i.resolve(g)}L.toExternalPromise=t;function l(){if(typeof z>"u")return!1;return{}.toString.call(z).toLowerCase()==="[object process]"}}).call(this,X("_process"))},{_process:66,underscore:67}],24:[function(X,ce,L){var z=X("./documents");function I(p){if(p.type==="text")return p.value;else if(p.type===z.types.tab)return"\t";else{var k=p.type==="paragraph"?`
@@ -41,18 +41,18 @@ https://github.com/nodeca/pako/blob/master/LICENSE
41
41
  Character number: `+p.characterNumber},I.prototype.lineNumber=function(){return this._position().lineNumber},I.prototype.characterNumber=function(){return this._position().characterNumber},I.prototype._position=function(){var p=this,k=0,c=function(){return p._string.indexOf(`
42
42
  `,k)},o=1;while(c()!==-1&&c()<this._startIndex)k=c()+1,o+=1;var i=this._startIndex-k+1;return{lineNumber:o,characterNumber:i}}},{}],56:[function(X,ce,L){ce.exports=function(z,I,p){if(this.name=z,this.value=I,p)this.source=p}},{}],57:[function(X,ce,L){var z=ce.exports=function(I,p){this._tokens=I,this._startIndex=p||0};z.prototype.head=function(){return this._tokens[this._startIndex]},z.prototype.tail=function(I){return new z(this._tokens,this._startIndex+1)},z.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},z.prototype.end=function(){return this._tokens[this._tokens.length-1]},z.prototype.to=function(I){var p=this.head().source,k=I.head()||I.end();return p.to(k.source)}},{}],58:[function(X,ce,L){var z=X("./rules"),I=X("./parsing-results");L.parser=function(c,o,i){var t={rule:w,leftAssociative:y,rightAssociative:h},l=new p(i.map(_)),g=z.firstOf(c,o);function _(n){return{name:n.name,rule:k(n.ruleBuilder.bind(null,t))}}function w(){return T(l)}function y(n){return T(l.untilExclusive(n))}function h(n){return T(l.untilInclusive(n))}function T(n){return x.bind(null,n)}function x(n,v){var a=g(v);if(a.isSuccess())return n.apply(a);else return a}return t};function p(c){function o(_){return new p(c.slice(0,t().indexOf(_)))}function i(_){return new p(c.slice(0,t().indexOf(_)+1))}function t(){return c.map(function(_){return _.name})}function l(_){var w,y;while(!0)if(w=g(_.remaining()),w.isSuccess())y=_.source().to(w.source()),_=I.success(w.value()(_.value(),y),w.remaining(),y);else if(w.isFailure())return _;else return w}function g(_){return z.firstOf("infix",c.map(function(w){return w.rule}))(_)}return{apply:l,untilExclusive:o,untilInclusive:i}}L.infix=function(c,o){function i(t){return L.infix(c,function(l){var g=o(l);return function(_){var w=g(_);return w.map(function(y){return function(h,T){return t(h,y,T)}})}})}return{name:c,ruleBuilder:o,map:i}};var k=function(c){var o;return function(i){if(!o)o=c();return o(i)}}},{"./parsing-results":62,"./rules":64}],59:[function(X,ce,L){L.error=function(I){return new z(I)};var z=function(I){this.expected=I.expected,this.actual=I.actual,this._location=I.location};z.prototype.describe=function(){var I=this._location?this._location.describe()+`:
43
43
  `:"";return I+"Expected "+this.expected+`
44
- but got `+this.actual},z.prototype.lineNumber=function(){return this._location.lineNumber()},z.prototype.characterNumber=function(){return this._location.characterNumber()}},{}],60:[function(X,ce,L){var z=L.fromArray=function(p){var k=0,c=function(){return k<p.length};return new I({hasNext:c,next:function(){if(!c())throw Error("No more elements");else return p[k++]}})},I=function(p){this._iterator=p};I.prototype.map=function(p){var k=this._iterator;return new I({hasNext:function(){return k.hasNext()},next:function(){return p(k.next())}})},I.prototype.filter=function(p){var k=this._iterator,c=!1,o=!1,i,t=function(){if(c)return;c=!0,o=!1;while(k.hasNext()&&!o)i=k.next(),o=p(i)};return new I({hasNext:function(){return t(),o},next:function(){t();var l=i;return c=!1,l}})},I.prototype.first=function(){var p=this._iterator;if(this._iterator.hasNext())return p.next();else return null},I.prototype.toArray=function(){var p=[];while(this._iterator.hasNext())p.push(this._iterator.next());return p}},{}],61:[function(X,ce,L){var z=X("./TokenIterator");L.Parser=function(I){var p=function(k,c){return k(new z(c))};return{parseTokens:p}}},{"./TokenIterator":57}],62:[function(X,ce,L){ce.exports={failure:function(I,p){if(I.length<1)throw Error("Failure must have errors");return new z({status:"failure",remaining:p,errors:I})},error:function(I,p){if(I.length<1)throw Error("Failure must have errors");return new z({status:"error",remaining:p,errors:I})},success:function(I,p,k){return new z({status:"success",value:I,source:k,remaining:p,errors:[]})},cut:function(I){return new z({status:"cut",remaining:I,errors:[]})}};var z=function(I){this._value=I.value,this._status=I.status,this._hasValue=I.value!==void 0,this._remaining=I.remaining,this._source=I.source,this._errors=I.errors};z.prototype.map=function(I){if(this._hasValue)return new z({value:I(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors});else return this},z.prototype.changeRemaining=function(I){return new z({value:this._value,status:this._status,remaining:I,source:this._source,errors:this._errors})},z.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"},z.prototype.isFailure=function(){return this._status==="failure"},z.prototype.isError=function(){return this._status==="error"},z.prototype.isCut=function(){return this._status==="cut"},z.prototype.value=function(){return this._value},z.prototype.remaining=function(){return this._remaining},z.prototype.source=function(){return this._source},z.prototype.errors=function(){return this._errors}},{}],63:[function(X,ce,L){var z=X("./Token"),I=X("./StringSource");L.RegexTokeniser=p;function p(k){k=k.map(function(t){return{name:t.name,regex:new RegExp(t.regex.source,"g")}});function c(t,l){var g=new I(t,l),_=0,w=[];while(_<t.length){var y=o(t,_,g);_=y.endIndex,w.push(y.token)}return w.push(i(t,g)),w}function o(t,l,g){for(var _=0;_<k.length;_++){var w=k[_].regex;w.lastIndex=l;var y=w.exec(t);if(y){var T=l+y[0].length;if(y.index===l&&T>l){var h=y[1],x=new z(k[_].name,h,g.range(l,T));return{token:x,endIndex:T}}}}var T=l+1,x=new z("unrecognisedCharacter",t.substring(l,T),g.range(l,T));return{token:x,endIndex:T}}function i(t,l){return new z("end",null,l.range(t.length,t.length))}return{tokenise:c}}},{"./StringSource":55,"./Token":56}],64:[function(X,ce,L){var z=X("underscore"),I=X("option"),p=X("./parsing-results"),k=X("./errors"),c=X("./lazy-iterators");L.token=function(w,y){var h=y!==void 0;return function(T){var x=T.head();if(x&&x.name===w&&(!h||x.value===y))return p.success(x.value,T.tail(),x.source);else{var n=g({name:w,value:y});return _(T,n)}}},L.tokenOfType=function(w){return L.token(w)},L.firstOf=function(w,y){if(!z.isArray(y))y=Array.prototype.slice.call(arguments,1);return function(h){return c.fromArray(y).map(function(T){return T(h)}).filter(function(T){return T.isSuccess()||T.isError()}).first()||_(h,w)}},L.then=function(w,y){return function(h){var T=w(h);if(!T.map)console.log(T);return T.map(y)}},L.sequence=function(){var w=Array.prototype.slice.call(arguments,0),y=function(T){var x=z.foldl(w,function(v,a){var{result:E,hasCut:F}=v;if(!E.isSuccess())return{result:E,hasCut:F};var A=a(E.remaining());if(A.isCut())return{result:E,hasCut:!0};else if(A.isSuccess()){var W;if(a.isCaptured)W=E.value().withValue(a,A.value());else W=E.value();var S=A.remaining(),P=T.to(S);return{result:p.success(W,S,P),hasCut:F}}else if(F)return{result:p.error(A.errors(),A.remaining()),hasCut:F};else return{result:A,hasCut:F}},{result:p.success(new o,T),hasCut:!1}).result,n=T.to(x.remaining());return x.map(function(v){return v.withValue(L.sequence.source,n)})};y.head=function(){var T=z.find(w,h);return L.then(y,L.sequence.extract(T))},y.map=function(T){return L.then(y,function(x){return T.apply(this,x.toArray())})};function h(T){return T.isCaptured}return y};var o=function(w,y){this._values=w||{},this._valuesArray=y||[]};o.prototype.withValue=function(w,y){if(w.captureName&&w.captureName in this._values)throw Error('Cannot add second value for capture "'+w.captureName+'"');else{var h=z.clone(this._values);h[w.captureName]=y;var T=this._valuesArray.concat([y]);return new o(h,T)}},o.prototype.get=function(w){if(w.captureName in this._values)return this._values[w.captureName];else throw Error('No value for capture "'+w.captureName+'"')},o.prototype.toArray=function(){return this._valuesArray},L.sequence.capture=function(w,y){var h=function(){return w.apply(this,arguments)};return h.captureName=y,h.isCaptured=!0,h},L.sequence.extract=function(w){return function(y){return y.get(w)}},L.sequence.applyValues=function(w){var y=Array.prototype.slice.call(arguments,1);return function(h){var T=y.map(function(x){return h.get(x)});return w.apply(this,T)}},L.sequence.source={captureName:"☃source☃"},L.sequence.cut=function(){return function(w){return p.cut(w)}},L.optional=function(w){return function(y){var h=w(y);if(h.isSuccess())return h.map(I.some);else if(h.isFailure())return p.success(I.none,y);else return h}},L.zeroOrMoreWithSeparator=function(w,y){return l(w,y,!1)},L.oneOrMoreWithSeparator=function(w,y){return l(w,y,!0)};var i=L.zeroOrMore=function(w){return function(y){var h=[],T;while((T=w(y))&&T.isSuccess())y=T.remaining(),h.push(T.value());if(T.isError())return T;else return p.success(h,y)}};L.oneOrMore=function(w){return L.oneOrMoreWithSeparator(w,t)};function t(w){return p.success(null,w)}var l=function(w,y,h){return function(T){var x=w(T);if(x.isSuccess()){var n=L.sequence.capture(w,"main"),v=i(L.then(L.sequence(y,n),L.sequence.extract(n))),a=v(x.remaining());return p.success([x.value()].concat(a.value()),a.remaining())}else if(h||x.isError())return x;else return p.success([],T)}};L.leftAssociative=function(w,y,h){var T;if(h)T=[{func:h,rule:y}];else T=y;T=T.map(function(n){return L.then(n.rule,function(v){return function(a,E){return n.func(a,v,E)}})});var x=L.firstOf.apply(null,["rules"].concat(T));return function(n){var v=n,a=w(n);if(!a.isSuccess())return a;var E=x(a.remaining());while(E.isSuccess()){var F=E.remaining(),A=v.to(E.remaining()),W=E.value();a=p.success(W(a.value(),A),F,A),E=x(a.remaining())}if(E.isError())return E;return a}},L.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},L.nonConsuming=function(w){return function(y){return w(y).changeRemaining(y)}};var g=function(w){if(w.value)return w.name+' "'+w.value+'"';else return w.name};function _(w,y){var h,T=w.head();if(T)h=k.error({expected:y,actual:g(T),location:T.source});else h=k.error({expected:y,actual:"end of tokens"});return p.failure([h],w)}},{"./errors":59,"./lazy-iterators":60,"./parsing-results":62,option:65,underscore:67}],65:[function(X,ce,L){L.none=Object.create({value:function(){throw Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return L.none},flatMap:function(){return L.none},filter:function(){return L.none},toArray:function(){return[]},orElse:z,valueOrElse:z});function z(p){if(typeof p=="function")return p();else return p}L.some=function(p){return new I(p)};var I=function(p){this._value=p};I.prototype.value=function(){return this._value},I.prototype.isNone=function(){return!1},I.prototype.isSome=function(){return!0},I.prototype.map=function(p){return new I(p(this._value))},I.prototype.flatMap=function(p){return p(this._value)},I.prototype.filter=function(p){return p(this._value)?this:L.none},I.prototype.toArray=function(){return[this._value]},I.prototype.orElse=function(p){return this},I.prototype.valueOrElse=function(p){return this._value},L.isOption=function(p){return p===L.none||p instanceof I},L.fromNullable=function(p){if(p==null)return L.none;return new I(p)}},{}],66:[function(X,ce,L){var z=ce.exports={},I,p;function k(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function")I=setTimeout;else I=k}catch(x){I=k}try{if(typeof clearTimeout==="function")p=clearTimeout;else p=c}catch(x){p=c}})();function o(x){if(I===setTimeout)return setTimeout(x,0);if((I===k||!I)&&setTimeout)return I=setTimeout,setTimeout(x,0);try{return I(x,0)}catch(n){try{return I.call(null,x,0)}catch(v){return I.call(this,x,0)}}}function i(x){if(p===clearTimeout)return clearTimeout(x);if((p===c||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(x);try{return p(x)}catch(n){try{return p.call(null,x)}catch(v){return p.call(this,x)}}}var t=[],l=!1,g,_=-1;function w(){if(!l||!g)return;if(l=!1,g.length)t=g.concat(t);else _=-1;if(t.length)y()}function y(){if(l)return;var x=o(w);l=!0;var n=t.length;while(n){g=t,t=[];while(++_<n)if(g)g[_].run();_=-1,n=t.length}g=null,l=!1,i(x)}z.nextTick=function(x){var n=Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)n[v-1]=arguments[v];if(t.push(new h(x,n)),t.length===1&&!l)o(y)};function h(x,n){this.fun=x,this.array=n}h.prototype.run=function(){this.fun.apply(null,this.array)},z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function T(){}z.on=T,z.addListener=T,z.once=T,z.off=T,z.removeListener=T,z.removeAllListeners=T,z.emit=T,z.binding=function(x){throw Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(x){throw Error("process.chdir is not supported")},z.umask=function(){return 0}},{}],67:[function(X,ce,L){(function(z){(function(I,p){typeof L==="object"&&typeof ce<"u"?ce.exports=p():typeof et==="function"&&et.amd?et("underscore",p):(I=typeof globalThis<"u"?globalThis:I||self,function(){var k=I._,c=I._=p();c.noConflict=function(){return I._=k,c}}())})(this,function(){var I="1.13.1",p=typeof self=="object"&&self.self===self&&self||typeof z=="object"&&z.global===z&&z||Function("return this")()||{},k=Array.prototype,c=Object.prototype,o=typeof Symbol<"u"?Symbol.prototype:null,{push:i,slice:t}=k,{toString:l,hasOwnProperty:g}=c,_=typeof ArrayBuffer<"u",w=typeof DataView<"u",y=Array.isArray,{keys:h,create:T}=Object,x=_&&ArrayBuffer.isView,n=isNaN,v=isFinite,a=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=Math.pow(2,53)-1;function A(b,C){return C=C==null?b.length-1:+C,function(){var V=Math.max(arguments.length-C,0),Z=Array(V),ae=0;for(;ae<V;ae++)Z[ae]=arguments[ae+C];switch(C){case 0:return b.call(this,Z);case 1:return b.call(this,arguments[0],Z);case 2:return b.call(this,arguments[0],arguments[1],Z)}var re=Array(C+1);for(ae=0;ae<C;ae++)re[ae]=arguments[ae];return re[C]=Z,b.apply(this,re)}}function W(b){var C=typeof b;return C==="function"||C==="object"&&!!b}function S(b){return b===null}function P(b){return b===void 0}function O(b){return b===!0||b===!1||l.call(b)==="[object Boolean]"}function H(b){return!!(b&&b.nodeType===1)}function ee(b){var C="[object "+b+"]";return function(V){return l.call(V)===C}}var U=ee("String"),J=ee("Number"),D=ee("Date"),te=ee("RegExp"),ye=ee("Error"),se=ee("Symbol"),ve=ee("ArrayBuffer"),le=ee("Function"),be=p.document&&p.document.childNodes;if(typeof Int8Array!="object"&&typeof be!="function")le=function(b){return typeof b=="function"||!1};var Q=le,ne=ee("Object"),Te=w&&ne(new DataView(new ArrayBuffer(8))),pe=typeof Map<"u"&&ne(new Map),de=ee("DataView");function Pe(b){return b!=null&&Q(b.getInt8)&&ve(b.buffer)}var Be=Te?Pe:de,Ie=y||ee("Array");function ke(b,C){return b!=null&&g.call(b,C)}var Ne=ee("Arguments");(function(){if(!Ne(arguments))Ne=function(b){return ke(b,"callee")}})();var Re=Ne;function We(b){return!se(b)&&v(b)&&!isNaN(parseFloat(b))}function Ae(b){return J(b)&&n(b)}function d(b){return function(){return b}}function q(b){return function(C){var V=b(C);return typeof V=="number"&&V>=0&&V<=F}}function Y(b){return function(C){return C==null?void 0:C[b]}}var j=Y("byteLength"),f=q(j),r=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function s(b){return x?x(b)&&!Be(b):f(b)&&r.test(l.call(b))}var N=_?s:d(!1),M=Y("length");function K(b){var C={};for(var V=b.length,Z=0;Z<V;++Z)C[b[Z]]=!0;return{contains:function(ae){return C[ae]},push:function(ae){return C[ae]=!0,b.push(ae)}}}function ie(b,C){C=K(C);var V=E.length,Z=b.constructor,ae=Q(Z)&&Z.prototype||c,re="constructor";if(ke(b,re)&&!C.contains(re))C.push(re);while(V--)if(re=E[V],re in b&&b[re]!==ae[re]&&!C.contains(re))C.push(re)}function ue(b){if(!W(b))return[];if(h)return h(b);var C=[];for(var V in b)if(ke(b,V))C.push(V);if(a)ie(b,C);return C}function we(b){if(b==null)return!0;var C=M(b);if(typeof C=="number"&&(Ie(b)||U(b)||Re(b)))return C===0;return M(ue(b))===0}function Se(b,C){var V=ue(C),Z=V.length;if(b==null)return!Z;var ae=Object(b);for(var re=0;re<Z;re++){var he=V[re];if(C[he]!==ae[he]||!(he in ae))return!1}return!0}function _e(b){if(b instanceof _e)return b;if(!(this instanceof _e))return new _e(b);this._wrapped=b}_e.VERSION=I,_e.prototype.value=function(){return this._wrapped},_e.prototype.valueOf=_e.prototype.toJSON=_e.prototype.value,_e.prototype.toString=function(){return String(this._wrapped)};function Fe(b){return new Uint8Array(b.buffer||b,b.byteOffset||0,j(b))}var Ze="[object DataView]";function He(b,C,V,Z){if(b===C)return b!==0||1/b===1/C;if(b==null||C==null)return!1;if(b!==b)return C!==C;var ae=typeof b;if(ae!=="function"&&ae!=="object"&&typeof C!="object")return!1;return Qe(b,C,V,Z)}function Qe(b,C,V,Z){if(b instanceof _e)b=b._wrapped;if(C instanceof _e)C=C._wrapped;var ae=l.call(b);if(ae!==l.call(C))return!1;if(Te&&ae=="[object Object]"&&Be(b)){if(!Be(C))return!1;ae=Ze}switch(ae){case"[object RegExp]":case"[object String]":return""+b===""+C;case"[object Number]":if(+b!==+b)return+C!==+C;return+b===0?1/+b===1/C:+b===+C;case"[object Date]":case"[object Boolean]":return+b===+C;case"[object Symbol]":return o.valueOf.call(b)===o.valueOf.call(C);case"[object ArrayBuffer]":case Ze:return Qe(Fe(b),Fe(C),V,Z)}var re=ae==="[object Array]";if(!re&&N(b)){var he=j(b);if(he!==j(C))return!1;if(b.buffer===C.buffer&&b.byteOffset===C.byteOffset)return!0;re=!0}if(!re){if(typeof b!="object"||typeof C!="object")return!1;var Ee=b.constructor,Le=C.constructor;if(Ee!==Le&&!(Q(Ee)&&Ee instanceof Ee&&Q(Le)&&Le instanceof Le)&&(("constructor"in b)&&("constructor"in C)))return!1}V=V||[],Z=Z||[];var Ce=V.length;while(Ce--)if(V[Ce]===b)return Z[Ce]===C;if(V.push(b),Z.push(C),re){if(Ce=b.length,Ce!==C.length)return!1;while(Ce--)if(!He(b[Ce],C[Ce],V,Z))return!1}else{var Ke=ue(b),qe;if(Ce=Ke.length,ue(C).length!==Ce)return!1;while(Ce--)if(qe=Ke[Ce],!(ke(C,qe)&&He(b[qe],C[qe],V,Z)))return!1}return V.pop(),Z.pop(),!0}function oe(b,C){return He(b,C)}function me(b){if(!W(b))return[];var C=[];for(var V in b)C.push(V);if(a)ie(b,C);return C}function xe(b){var C=M(b);return function(V){if(V==null)return!1;var Z=me(V);if(M(Z))return!1;for(var ae=0;ae<C;ae++)if(!Q(V[b[ae]]))return!1;return b!==Ge||!Q(V[De])}}var De="forEach",Me="has",Xe=["clear","delete"],ze=["get",Me,"set"],Ve=Xe.concat(De,ze),Ge=Xe.concat(ze),$e=["add"].concat(Xe,De,Me),at=pe?xe(Ve):ee("Map"),xt=pe?xe(Ge):ee("WeakMap"),kt=pe?xe($e):ee("Set"),St=ee("WeakSet");function lt(b){var C=ue(b),V=C.length,Z=Array(V);for(var ae=0;ae<V;ae++)Z[ae]=b[C[ae]];return Z}function Tt(b){var C=ue(b),V=C.length,Z=Array(V);for(var ae=0;ae<V;ae++)Z[ae]=[C[ae],b[C[ae]]];return Z}function ht(b){var C={},V=ue(b);for(var Z=0,ae=V.length;Z<ae;Z++)C[b[V[Z]]]=V[Z];return C}function _t(b){var C=[];for(var V in b)if(Q(b[V]))C.push(V);return C.sort()}function yt(b,C){return function(V){var Z=arguments.length;if(C)V=Object(V);if(Z<2||V==null)return V;for(var ae=1;ae<Z;ae++){var re=arguments[ae],he=b(re),Ee=he.length;for(var Le=0;Le<Ee;Le++){var Ce=he[Le];if(!C||V[Ce]===void 0)V[Ce]=re[Ce]}}return V}}var It=yt(me),Nt=yt(ue),R=yt(me,!0);function B(){return function(){}}function G(b){if(!W(b))return{};if(T)return T(b);var C=B();C.prototype=b;var V=new C;return C.prototype=null,V}function fe(b,C){var V=G(b);if(C)Nt(V,C);return V}function ge(b){if(!W(b))return b;return Ie(b)?b.slice():It({},b)}function Oe(b,C){return C(b),b}function je(b){return Ie(b)?b:[b]}_e.toPath=je;function Ye(b){return _e.toPath(b)}function nt(b,C){var V=C.length;for(var Z=0;Z<V;Z++){if(b==null)return;b=b[C[Z]]}return V?b:void 0}function tt(b,C,V){var Z=nt(b,Ye(C));return P(Z)?V:Z}function ot(b,C){C=Ye(C);var V=C.length;for(var Z=0;Z<V;Z++){var ae=C[Z];if(!ke(b,ae))return!1;b=b[ae]}return!!V}function st(b){return b}function it(b){return b=Nt({},b),function(C){return Se(C,b)}}function ut(b){return b=Ye(b),function(C){return nt(C,b)}}function Je(b,C,V){if(C===void 0)return b;switch(V==null?3:V){case 1:return function(Z){return b.call(C,Z)};case 3:return function(Z,ae,re){return b.call(C,Z,ae,re)};case 4:return function(Z,ae,re,he){return b.call(C,Z,ae,re,he)}}return function(){return b.apply(C,arguments)}}function ct(b,C,V){if(b==null)return st;if(Q(b))return Je(b,C,V);if(W(b)&&!Ie(b))return it(b);return ut(b)}function pt(b,C){return ct(b,C,1/0)}_e.iteratee=pt;function Ue(b,C,V){if(_e.iteratee!==pt)return _e.iteratee(b,C);return ct(b,C,V)}function At(b,C,V){C=Ue(C,V);var Z=ue(b),ae=Z.length,re={};for(var he=0;he<ae;he++){var Ee=Z[he];re[Ee]=C(b[Ee],Ee,b)}return re}function dt(){}function Ot(b){if(b==null)return dt;return function(C){return tt(b,C)}}function br(b,C,V){var Z=Array(Math.max(0,b));C=Je(C,V,1);for(var ae=0;ae<b;ae++)Z[ae]=C(ae);return Z}function Mt(b,C){if(C==null)C=b,b=0;return b+Math.floor(Math.random()*(C-b+1))}var Dt=Date.now||function(){return new Date().getTime()};function Gt(b){var C=function(re){return b[re]},V="(?:"+ue(b).join("|")+")",Z=RegExp(V),ae=RegExp(V,"g");return function(re){return re=re==null?"":""+re,Z.test(re)?re.replace(ae,C):re}}var Kt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Er=Gt(Kt),xr=ht(Kt),Tr=Gt(xr),Ir=_e.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Lt=/(.)^/,Dr={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},kr=/\\|'|\r|\n|\u2028|\u2029/g;function Sr(b){return"\\"+Dr[b]}var Nr=/^\s*(\w|\$)+\s*$/;function Ar(b,C,V){if(!C&&V)C=V;C=R({},C,_e.templateSettings);var Z=RegExp([(C.escape||Lt).source,(C.interpolate||Lt).source,(C.evaluate||Lt).source].join("|")+"|$","g"),ae=0,re="__p+='";b.replace(Z,function(Ce,Ke,qe,vr,yr){if(re+=b.slice(ae,yr).replace(kr,Sr),ae=yr+Ce.length,Ke)re+=`'+
44
+ but got `+this.actual},z.prototype.lineNumber=function(){return this._location.lineNumber()},z.prototype.characterNumber=function(){return this._location.characterNumber()}},{}],60:[function(X,ce,L){var z=L.fromArray=function(p){var k=0,c=function(){return k<p.length};return new I({hasNext:c,next:function(){if(!c())throw Error("No more elements");else return p[k++]}})},I=function(p){this._iterator=p};I.prototype.map=function(p){var k=this._iterator;return new I({hasNext:function(){return k.hasNext()},next:function(){return p(k.next())}})},I.prototype.filter=function(p){var k=this._iterator,c=!1,o=!1,i,t=function(){if(c)return;c=!0,o=!1;while(k.hasNext()&&!o)i=k.next(),o=p(i)};return new I({hasNext:function(){return t(),o},next:function(){t();var l=i;return c=!1,l}})},I.prototype.first=function(){var p=this._iterator;if(this._iterator.hasNext())return p.next();else return null},I.prototype.toArray=function(){var p=[];while(this._iterator.hasNext())p.push(this._iterator.next());return p}},{}],61:[function(X,ce,L){var z=X("./TokenIterator");L.Parser=function(I){var p=function(k,c){return k(new z(c))};return{parseTokens:p}}},{"./TokenIterator":57}],62:[function(X,ce,L){ce.exports={failure:function(I,p){if(I.length<1)throw Error("Failure must have errors");return new z({status:"failure",remaining:p,errors:I})},error:function(I,p){if(I.length<1)throw Error("Failure must have errors");return new z({status:"error",remaining:p,errors:I})},success:function(I,p,k){return new z({status:"success",value:I,source:k,remaining:p,errors:[]})},cut:function(I){return new z({status:"cut",remaining:I,errors:[]})}};var z=function(I){this._value=I.value,this._status=I.status,this._hasValue=I.value!==void 0,this._remaining=I.remaining,this._source=I.source,this._errors=I.errors};z.prototype.map=function(I){if(this._hasValue)return new z({value:I(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors});else return this},z.prototype.changeRemaining=function(I){return new z({value:this._value,status:this._status,remaining:I,source:this._source,errors:this._errors})},z.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"},z.prototype.isFailure=function(){return this._status==="failure"},z.prototype.isError=function(){return this._status==="error"},z.prototype.isCut=function(){return this._status==="cut"},z.prototype.value=function(){return this._value},z.prototype.remaining=function(){return this._remaining},z.prototype.source=function(){return this._source},z.prototype.errors=function(){return this._errors}},{}],63:[function(X,ce,L){var z=X("./Token"),I=X("./StringSource");L.RegexTokeniser=p;function p(k){k=k.map(function(t){return{name:t.name,regex:new RegExp(t.regex.source,"g")}});function c(t,l){var g=new I(t,l),_=0,w=[];while(_<t.length){var y=o(t,_,g);_=y.endIndex,w.push(y.token)}return w.push(i(t,g)),w}function o(t,l,g){for(var _=0;_<k.length;_++){var w=k[_].regex;w.lastIndex=l;var y=w.exec(t);if(y){var T=l+y[0].length;if(y.index===l&&T>l){var h=y[1],x=new z(k[_].name,h,g.range(l,T));return{token:x,endIndex:T}}}}var T=l+1,x=new z("unrecognisedCharacter",t.substring(l,T),g.range(l,T));return{token:x,endIndex:T}}function i(t,l){return new z("end",null,l.range(t.length,t.length))}return{tokenise:c}}},{"./StringSource":55,"./Token":56}],64:[function(X,ce,L){var z=X("underscore"),I=X("option"),p=X("./parsing-results"),k=X("./errors"),c=X("./lazy-iterators");L.token=function(w,y){var h=y!==void 0;return function(T){var x=T.head();if(x&&x.name===w&&(!h||x.value===y))return p.success(x.value,T.tail(),x.source);else{var n=g({name:w,value:y});return _(T,n)}}},L.tokenOfType=function(w){return L.token(w)},L.firstOf=function(w,y){if(!z.isArray(y))y=Array.prototype.slice.call(arguments,1);return function(h){return c.fromArray(y).map(function(T){return T(h)}).filter(function(T){return T.isSuccess()||T.isError()}).first()||_(h,w)}},L.then=function(w,y){return function(h){var T=w(h);if(!T.map)console.log(T);return T.map(y)}},L.sequence=function(){var w=Array.prototype.slice.call(arguments,0),y=function(T){var x=z.foldl(w,function(v,a){var{result:E,hasCut:F}=v;if(!E.isSuccess())return{result:E,hasCut:F};var A=a(E.remaining());if(A.isCut())return{result:E,hasCut:!0};else if(A.isSuccess()){var W;if(a.isCaptured)W=E.value().withValue(a,A.value());else W=E.value();var S=A.remaining(),P=T.to(S);return{result:p.success(W,S,P),hasCut:F}}else if(F)return{result:p.error(A.errors(),A.remaining()),hasCut:F};else return{result:A,hasCut:F}},{result:p.success(new o,T),hasCut:!1}).result,n=T.to(x.remaining());return x.map(function(v){return v.withValue(L.sequence.source,n)})};y.head=function(){var T=z.find(w,h);return L.then(y,L.sequence.extract(T))},y.map=function(T){return L.then(y,function(x){return T.apply(this,x.toArray())})};function h(T){return T.isCaptured}return y};var o=function(w,y){this._values=w||{},this._valuesArray=y||[]};o.prototype.withValue=function(w,y){if(w.captureName&&w.captureName in this._values)throw Error('Cannot add second value for capture "'+w.captureName+'"');else{var h=z.clone(this._values);h[w.captureName]=y;var T=this._valuesArray.concat([y]);return new o(h,T)}},o.prototype.get=function(w){if(w.captureName in this._values)return this._values[w.captureName];else throw Error('No value for capture "'+w.captureName+'"')},o.prototype.toArray=function(){return this._valuesArray},L.sequence.capture=function(w,y){var h=function(){return w.apply(this,arguments)};return h.captureName=y,h.isCaptured=!0,h},L.sequence.extract=function(w){return function(y){return y.get(w)}},L.sequence.applyValues=function(w){var y=Array.prototype.slice.call(arguments,1);return function(h){var T=y.map(function(x){return h.get(x)});return w.apply(this,T)}},L.sequence.source={captureName:"☃source☃"},L.sequence.cut=function(){return function(w){return p.cut(w)}},L.optional=function(w){return function(y){var h=w(y);if(h.isSuccess())return h.map(I.some);else if(h.isFailure())return p.success(I.none,y);else return h}},L.zeroOrMoreWithSeparator=function(w,y){return l(w,y,!1)},L.oneOrMoreWithSeparator=function(w,y){return l(w,y,!0)};var i=L.zeroOrMore=function(w){return function(y){var h=[],T;while((T=w(y))&&T.isSuccess())y=T.remaining(),h.push(T.value());if(T.isError())return T;else return p.success(h,y)}};L.oneOrMore=function(w){return L.oneOrMoreWithSeparator(w,t)};function t(w){return p.success(null,w)}var l=function(w,y,h){return function(T){var x=w(T);if(x.isSuccess()){var n=L.sequence.capture(w,"main"),v=i(L.then(L.sequence(y,n),L.sequence.extract(n))),a=v(x.remaining());return p.success([x.value()].concat(a.value()),a.remaining())}else if(h||x.isError())return x;else return p.success([],T)}};L.leftAssociative=function(w,y,h){var T;if(h)T=[{func:h,rule:y}];else T=y;T=T.map(function(n){return L.then(n.rule,function(v){return function(a,E){return n.func(a,v,E)}})});var x=L.firstOf.apply(null,["rules"].concat(T));return function(n){var v=n,a=w(n);if(!a.isSuccess())return a;var E=x(a.remaining());while(E.isSuccess()){var F=E.remaining(),A=v.to(E.remaining()),W=E.value();a=p.success(W(a.value(),A),F,A),E=x(a.remaining())}if(E.isError())return E;return a}},L.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},L.nonConsuming=function(w){return function(y){return w(y).changeRemaining(y)}};var g=function(w){if(w.value)return w.name+' "'+w.value+'"';else return w.name};function _(w,y){var h,T=w.head();if(T)h=k.error({expected:y,actual:g(T),location:T.source});else h=k.error({expected:y,actual:"end of tokens"});return p.failure([h],w)}},{"./errors":59,"./lazy-iterators":60,"./parsing-results":62,option:65,underscore:67}],65:[function(X,ce,L){L.none=Object.create({value:function(){throw Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return L.none},flatMap:function(){return L.none},filter:function(){return L.none},toArray:function(){return[]},orElse:z,valueOrElse:z});function z(p){if(typeof p=="function")return p();else return p}L.some=function(p){return new I(p)};var I=function(p){this._value=p};I.prototype.value=function(){return this._value},I.prototype.isNone=function(){return!1},I.prototype.isSome=function(){return!0},I.prototype.map=function(p){return new I(p(this._value))},I.prototype.flatMap=function(p){return p(this._value)},I.prototype.filter=function(p){return p(this._value)?this:L.none},I.prototype.toArray=function(){return[this._value]},I.prototype.orElse=function(p){return this},I.prototype.valueOrElse=function(p){return this._value},L.isOption=function(p){return p===L.none||p instanceof I},L.fromNullable=function(p){if(p==null)return L.none;return new I(p)}},{}],66:[function(X,ce,L){var z=ce.exports={},I,p;function k(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function")I=setTimeout;else I=k}catch(x){I=k}try{if(typeof clearTimeout==="function")p=clearTimeout;else p=c}catch(x){p=c}})();function o(x){if(I===setTimeout)return setTimeout(x,0);if((I===k||!I)&&setTimeout)return I=setTimeout,setTimeout(x,0);try{return I(x,0)}catch(n){try{return I.call(null,x,0)}catch(v){return I.call(this,x,0)}}}function i(x){if(p===clearTimeout)return clearTimeout(x);if((p===c||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(x);try{return p(x)}catch(n){try{return p.call(null,x)}catch(v){return p.call(this,x)}}}var t=[],l=!1,g,_=-1;function w(){if(!l||!g)return;if(l=!1,g.length)t=g.concat(t);else _=-1;if(t.length)y()}function y(){if(l)return;var x=o(w);l=!0;var n=t.length;while(n){g=t,t=[];while(++_<n)if(g)g[_].run();_=-1,n=t.length}g=null,l=!1,i(x)}z.nextTick=function(x){var n=Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)n[v-1]=arguments[v];if(t.push(new h(x,n)),t.length===1&&!l)o(y)};function h(x,n){this.fun=x,this.array=n}h.prototype.run=function(){this.fun.apply(null,this.array)},z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function T(){}z.on=T,z.addListener=T,z.once=T,z.off=T,z.removeListener=T,z.removeAllListeners=T,z.emit=T,z.binding=function(x){throw Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(x){throw Error("process.chdir is not supported")},z.umask=function(){return 0}},{}],67:[function(X,ce,L){(function(z){(function(I,p){typeof L==="object"&&typeof ce<"u"?ce.exports=p():typeof et==="function"&&et.amd?et("underscore",p):(I=typeof globalThis<"u"?globalThis:I||self,function(){var k=I._,c=I._=p();c.noConflict=function(){return I._=k,c}}())})(this,function(){var I="1.13.1",p=typeof self=="object"&&self.self===self&&self||typeof z=="object"&&z.global===z&&z||Function("return this")()||{},k=Array.prototype,c=Object.prototype,o=typeof Symbol<"u"?Symbol.prototype:null,{push:i,slice:t}=k,{toString:l,hasOwnProperty:g}=c,_=typeof ArrayBuffer<"u",w=typeof DataView<"u",y=Array.isArray,{keys:h,create:T}=Object,x=_&&ArrayBuffer.isView,n=isNaN,v=isFinite,a=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=Math.pow(2,53)-1;function A(b,C){return C=C==null?b.length-1:+C,function(){var V=Math.max(arguments.length-C,0),Z=Array(V),ae=0;for(;ae<V;ae++)Z[ae]=arguments[ae+C];switch(C){case 0:return b.call(this,Z);case 1:return b.call(this,arguments[0],Z);case 2:return b.call(this,arguments[0],arguments[1],Z)}var re=Array(C+1);for(ae=0;ae<C;ae++)re[ae]=arguments[ae];return re[C]=Z,b.apply(this,re)}}function W(b){var C=typeof b;return C==="function"||C==="object"&&!!b}function S(b){return b===null}function P(b){return b===void 0}function O(b){return b===!0||b===!1||l.call(b)==="[object Boolean]"}function H(b){return!!(b&&b.nodeType===1)}function ee(b){var C="[object "+b+"]";return function(V){return l.call(V)===C}}var U=ee("String"),J=ee("Number"),D=ee("Date"),te=ee("RegExp"),ye=ee("Error"),se=ee("Symbol"),ve=ee("ArrayBuffer"),le=ee("Function"),be=p.document&&p.document.childNodes;if(typeof Int8Array!="object"&&typeof be!="function")le=function(b){return typeof b=="function"||!1};var Q=le,ne=ee("Object"),Te=w&&ne(new DataView(new ArrayBuffer(8))),pe=typeof Map<"u"&&ne(new Map),de=ee("DataView");function Pe(b){return b!=null&&Q(b.getInt8)&&ve(b.buffer)}var Be=Te?Pe:de,Ie=y||ee("Array");function ke(b,C){return b!=null&&g.call(b,C)}var Ne=ee("Arguments");(function(){if(!Ne(arguments))Ne=function(b){return ke(b,"callee")}})();var Re=Ne;function We(b){return!se(b)&&v(b)&&!isNaN(parseFloat(b))}function Ae(b){return J(b)&&n(b)}function d(b){return function(){return b}}function q(b){return function(C){var V=b(C);return typeof V=="number"&&V>=0&&V<=F}}function Y(b){return function(C){return C==null?void 0:C[b]}}var j=Y("byteLength"),f=q(j),r=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function s(b){return x?x(b)&&!Be(b):f(b)&&r.test(l.call(b))}var N=_?s:d(!1),M=Y("length");function K(b){var C={};for(var V=b.length,Z=0;Z<V;++Z)C[b[Z]]=!0;return{contains:function(ae){return C[ae]},push:function(ae){return C[ae]=!0,b.push(ae)}}}function ie(b,C){C=K(C);var V=E.length,Z=b.constructor,ae=Q(Z)&&Z.prototype||c,re="constructor";if(ke(b,re)&&!C.contains(re))C.push(re);while(V--)if(re=E[V],re in b&&b[re]!==ae[re]&&!C.contains(re))C.push(re)}function ue(b){if(!W(b))return[];if(h)return h(b);var C=[];for(var V in b)if(ke(b,V))C.push(V);if(a)ie(b,C);return C}function we(b){if(b==null)return!0;var C=M(b);if(typeof C=="number"&&(Ie(b)||U(b)||Re(b)))return C===0;return M(ue(b))===0}function Se(b,C){var V=ue(C),Z=V.length;if(b==null)return!Z;var ae=Object(b);for(var re=0;re<Z;re++){var he=V[re];if(C[he]!==ae[he]||!(he in ae))return!1}return!0}function _e(b){if(b instanceof _e)return b;if(!(this instanceof _e))return new _e(b);this._wrapped=b}_e.VERSION=I,_e.prototype.value=function(){return this._wrapped},_e.prototype.valueOf=_e.prototype.toJSON=_e.prototype.value,_e.prototype.toString=function(){return String(this._wrapped)};function Fe(b){return new Uint8Array(b.buffer||b,b.byteOffset||0,j(b))}var Ze="[object DataView]";function He(b,C,V,Z){if(b===C)return b!==0||1/b===1/C;if(b==null||C==null)return!1;if(b!==b)return C!==C;var ae=typeof b;if(ae!=="function"&&ae!=="object"&&typeof C!="object")return!1;return Qe(b,C,V,Z)}function Qe(b,C,V,Z){if(b instanceof _e)b=b._wrapped;if(C instanceof _e)C=C._wrapped;var ae=l.call(b);if(ae!==l.call(C))return!1;if(Te&&ae=="[object Object]"&&Be(b)){if(!Be(C))return!1;ae=Ze}switch(ae){case"[object RegExp]":case"[object String]":return""+b===""+C;case"[object Number]":if(+b!==+b)return+C!==+C;return+b===0?1/+b===1/C:+b===+C;case"[object Date]":case"[object Boolean]":return+b===+C;case"[object Symbol]":return o.valueOf.call(b)===o.valueOf.call(C);case"[object ArrayBuffer]":case Ze:return Qe(Fe(b),Fe(C),V,Z)}var re=ae==="[object Array]";if(!re&&N(b)){var he=j(b);if(he!==j(C))return!1;if(b.buffer===C.buffer&&b.byteOffset===C.byteOffset)return!0;re=!0}if(!re){if(typeof b!="object"||typeof C!="object")return!1;var Ee=b.constructor,Le=C.constructor;if(Ee!==Le&&!(Q(Ee)&&Ee instanceof Ee&&Q(Le)&&Le instanceof Le)&&(("constructor"in b)&&("constructor"in C)))return!1}V=V||[],Z=Z||[];var Ce=V.length;while(Ce--)if(V[Ce]===b)return Z[Ce]===C;if(V.push(b),Z.push(C),re){if(Ce=b.length,Ce!==C.length)return!1;while(Ce--)if(!He(b[Ce],C[Ce],V,Z))return!1}else{var Ke=ue(b),qe;if(Ce=Ke.length,ue(C).length!==Ce)return!1;while(Ce--)if(qe=Ke[Ce],!(ke(C,qe)&&He(b[qe],C[qe],V,Z)))return!1}return V.pop(),Z.pop(),!0}function oe(b,C){return He(b,C)}function me(b){if(!W(b))return[];var C=[];for(var V in b)C.push(V);if(a)ie(b,C);return C}function xe(b){var C=M(b);return function(V){if(V==null)return!1;var Z=me(V);if(M(Z))return!1;for(var ae=0;ae<C;ae++)if(!Q(V[b[ae]]))return!1;return b!==Ge||!Q(V[De])}}var De="forEach",Me="has",Xe=["clear","delete"],ze=["get",Me,"set"],Ve=Xe.concat(De,ze),Ge=Xe.concat(ze),$e=["add"].concat(Xe,De,Me),at=pe?xe(Ve):ee("Map"),xt=pe?xe(Ge):ee("WeakMap"),kt=pe?xe($e):ee("Set"),St=ee("WeakSet");function lt(b){var C=ue(b),V=C.length,Z=Array(V);for(var ae=0;ae<V;ae++)Z[ae]=b[C[ae]];return Z}function Tt(b){var C=ue(b),V=C.length,Z=Array(V);for(var ae=0;ae<V;ae++)Z[ae]=[C[ae],b[C[ae]]];return Z}function ht(b){var C={},V=ue(b);for(var Z=0,ae=V.length;Z<ae;Z++)C[b[V[Z]]]=V[Z];return C}function _t(b){var C=[];for(var V in b)if(Q(b[V]))C.push(V);return C.sort()}function yt(b,C){return function(V){var Z=arguments.length;if(C)V=Object(V);if(Z<2||V==null)return V;for(var ae=1;ae<Z;ae++){var re=arguments[ae],he=b(re),Ee=he.length;for(var Le=0;Le<Ee;Le++){var Ce=he[Le];if(!C||V[Ce]===void 0)V[Ce]=re[Ce]}}return V}}var It=yt(me),Nt=yt(ue),R=yt(me,!0);function B(){return function(){}}function G(b){if(!W(b))return{};if(T)return T(b);var C=B();C.prototype=b;var V=new C;return C.prototype=null,V}function fe(b,C){var V=G(b);if(C)Nt(V,C);return V}function ge(b){if(!W(b))return b;return Ie(b)?b.slice():It({},b)}function Oe(b,C){return C(b),b}function je(b){return Ie(b)?b:[b]}_e.toPath=je;function Ye(b){return _e.toPath(b)}function nt(b,C){var V=C.length;for(var Z=0;Z<V;Z++){if(b==null)return;b=b[C[Z]]}return V?b:void 0}function tt(b,C,V){var Z=nt(b,Ye(C));return P(Z)?V:Z}function ot(b,C){C=Ye(C);var V=C.length;for(var Z=0;Z<V;Z++){var ae=C[Z];if(!ke(b,ae))return!1;b=b[ae]}return!!V}function st(b){return b}function it(b){return b=Nt({},b),function(C){return Se(C,b)}}function ut(b){return b=Ye(b),function(C){return nt(C,b)}}function Je(b,C,V){if(C===void 0)return b;switch(V==null?3:V){case 1:return function(Z){return b.call(C,Z)};case 3:return function(Z,ae,re){return b.call(C,Z,ae,re)};case 4:return function(Z,ae,re,he){return b.call(C,Z,ae,re,he)}}return function(){return b.apply(C,arguments)}}function ct(b,C,V){if(b==null)return st;if(Q(b))return Je(b,C,V);if(W(b)&&!Ie(b))return it(b);return ut(b)}function pt(b,C){return ct(b,C,1/0)}_e.iteratee=pt;function Ue(b,C,V){if(_e.iteratee!==pt)return _e.iteratee(b,C);return ct(b,C,V)}function At(b,C,V){C=Ue(C,V);var Z=ue(b),ae=Z.length,re={};for(var he=0;he<ae;he++){var Ee=Z[he];re[Ee]=C(b[Ee],Ee,b)}return re}function dt(){}function Ot(b){if(b==null)return dt;return function(C){return tt(b,C)}}function br(b,C,V){var Z=Array(Math.max(0,b));C=Je(C,V,1);for(var ae=0;ae<b;ae++)Z[ae]=C(ae);return Z}function Mt(b,C){if(C==null)C=b,b=0;return b+Math.floor(Math.random()*(C-b+1))}var Dt=Date.now||function(){return new Date().getTime()};function Gt(b){var C=function(re){return b[re]},V="(?:"+ue(b).join("|")+")",Z=RegExp(V),ae=RegExp(V,"g");return function(re){return re=re==null?"":""+re,Z.test(re)?re.replace(ae,C):re}}var Kt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Er=Gt(Kt),xr=ht(Kt),Tr=Gt(xr),Dr=_e.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Lt=/(.)^/,kr={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Sr=/\\|'|\r|\n|\u2028|\u2029/g;function Nr(b){return"\\"+kr[b]}var Ar=/^\s*(\w|\$)+\s*$/;function Or(b,C,V){if(!C&&V)C=V;C=R({},C,_e.templateSettings);var Z=RegExp([(C.escape||Lt).source,(C.interpolate||Lt).source,(C.evaluate||Lt).source].join("|")+"|$","g"),ae=0,re="__p+='";b.replace(Z,function(Ce,Ke,qe,vr,yr){if(re+=b.slice(ae,yr).replace(Sr,Nr),ae=yr+Ce.length,Ke)re+=`'+
45
45
  ((__t=(`+Ke+`))==null?'':_.escape(__t))+
46
46
  '`;else if(qe)re+=`'+
47
47
  ((__t=(`+qe+`))==null?'':__t)+
48
48
  '`;else if(vr)re+=`';
49
49
  `+vr+`
50
50
  __p+='`;return Ce}),re+=`';
51
- `;var he=C.variable;if(he){if(!Nr.test(he))throw Error("variable is not a bare identifier: "+he)}else re=`with(obj||{}){
51
+ `;var he=C.variable;if(he){if(!Ar.test(he))throw Error("variable is not a bare identifier: "+he)}else re=`with(obj||{}){
52
52
  `+re+`}
53
53
  `,he="obj";re=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
54
54
  `+re+`return __p;
55
55
  `;var Ee;try{Ee=Function(he,"_",re)}catch(Ce){throw Ce.source=re,Ce}var Le=function(Ce){return Ee.call(this,Ce,_e)};return Le.source="function("+he+`){
56
- `+re+"}",Le}function Or(b,C,V){C=Ye(C);var Z=C.length;if(!Z)return Q(V)?V.call(b):V;for(var ae=0;ae<Z;ae++){var re=b==null?void 0:b[C[ae]];if(re===void 0)re=V,ae=Z;b=Q(re)?re.call(b):re}return b}var Cr=0;function Rr(b){var C=++Cr+"";return b?b+C:C}function Mr(b){var C=_e(b);return C._chain=!0,C}function $t(b,C,V,Z,ae){if(!(Z instanceof C))return b.apply(V,ae);var re=G(b.prototype),he=b.apply(re,ae);if(W(he))return he;return re}var bt=A(function(b,C){var V=bt.placeholder,Z=function(){var ae=0,re=C.length,he=Array(re);for(var Ee=0;Ee<re;Ee++)he[Ee]=C[Ee]===V?arguments[ae++]:C[Ee];while(ae<arguments.length)he.push(arguments[ae++]);return $t(b,Z,this,this,he)};return Z});bt.placeholder=_e;var Jt=A(function(b,C,V){if(!Q(b))throw TypeError("Bind must be called on a function");var Z=A(function(ae){return $t(b,Z,C,this,V.concat(ae))});return Z}),rt=q(M);function gt(b,C,V,Z){if(Z=Z||[],!C&&C!==0)C=1/0;else if(C<=0)return Z.concat(b);var ae=Z.length;for(var re=0,he=M(b);re<he;re++){var Ee=b[re];if(rt(Ee)&&(Ie(Ee)||Re(Ee)))if(C>1)gt(Ee,C-1,V,Z),ae=Z.length;else{var Le=0,Ce=Ee.length;while(Le<Ce)Z[ae++]=Ee[Le++]}else if(!V)Z[ae++]=Ee}return Z}var Lr=A(function(b,C){C=gt(C,!1,!1);var V=C.length;if(V<1)throw Error("bindAll must be passed function names");while(V--){var Z=C[V];b[Z]=Jt(b[Z],b)}return b});function Pr(b,C){var V=function(Z){var ae=V.cache,re=""+(C?C.apply(this,arguments):Z);if(!ke(ae,re))ae[re]=b.apply(this,arguments);return ae[re]};return V.cache={},V}var Qt=A(function(b,C,V){return setTimeout(function(){return b.apply(null,V)},C)}),Fr=bt(Qt,_e,1);function Xr(b,C,V){var Z,ae,re,he,Ee=0;if(!V)V={};var Le=function(){if(Ee=V.leading===!1?0:Dt(),Z=null,he=b.apply(ae,re),!Z)ae=re=null},Ce=function(){var Ke=Dt();if(!Ee&&V.leading===!1)Ee=Ke;var qe=C-(Ke-Ee);if(ae=this,re=arguments,qe<=0||qe>C){if(Z)clearTimeout(Z),Z=null;if(Ee=Ke,he=b.apply(ae,re),!Z)ae=re=null}else if(!Z&&V.trailing!==!1)Z=setTimeout(Le,qe);return he};return Ce.cancel=function(){clearTimeout(Z),Ee=0,Z=ae=re=null},Ce}function zr(b,C,V){var Z,ae,re,he,Ee,Le=function(){var Ke=Dt()-ae;if(C>Ke)Z=setTimeout(Le,C-Ke);else{if(Z=null,!V)he=b.apply(Ee,re);if(!Z)re=Ee=null}},Ce=A(function(Ke){if(Ee=this,re=Ke,ae=Dt(),!Z){if(Z=setTimeout(Le,C),V)he=b.apply(Ee,re)}return he});return Ce.cancel=function(){clearTimeout(Z),Z=re=Ee=null},Ce}function Ur(b,C){return bt(C,b)}function Pt(b){return function(){return!b.apply(this,arguments)}}function Wr(){var b=arguments,C=b.length-1;return function(){var V=C,Z=b[C].apply(this,arguments);while(V--)Z=b[V].call(this,Z);return Z}}function jr(b,C){return function(){if(--b<1)return C.apply(this,arguments)}}function qt(b,C){var V;return function(){if(--b>0)V=C.apply(this,arguments);if(b<=1)C=null;return V}}var Hr=bt(qt,2);function er(b,C,V){C=Ue(C,V);var Z=ue(b),ae;for(var re=0,he=Z.length;re<he;re++)if(ae=Z[re],C(b[ae],ae,b))return ae}function tr(b){return function(C,V,Z){V=Ue(V,Z);var ae=M(C),re=b>0?0:ae-1;for(;re>=0&&re<ae;re+=b)if(V(C[re],re,C))return re;return-1}}var Ft=tr(1),rr=tr(-1);function nr(b,C,V,Z){V=Ue(V,Z,1);var ae=V(C),re=0,he=M(b);while(re<he){var Ee=Math.floor((re+he)/2);if(V(b[Ee])<ae)re=Ee+1;else he=Ee}return re}function ir(b,C,V){return function(Z,ae,re){var he=0,Ee=M(Z);if(typeof re=="number")if(b>0)he=re>=0?re:Math.max(re+Ee,he);else Ee=re>=0?Math.min(re+1,Ee):re+Ee+1;else if(V&&re&&Ee)return re=V(Z,ae),Z[re]===ae?re:-1;if(ae!==ae)return re=C(t.call(Z,he,Ee),Ae),re>=0?re+he:-1;for(re=b>0?he:Ee-1;re>=0&&re<Ee;re+=b)if(Z[re]===ae)return re;return-1}}var ar=ir(1,Ft,nr),Vr=ir(-1,rr);function Bt(b,C,V){var Z=rt(b)?Ft:er,ae=Z(b,C,V);if(ae!==void 0&&ae!==-1)return b[ae]}function Zr(b,C){return Bt(b,it(C))}function mt(b,C,V){C=Je(C,V);var Z,ae;if(rt(b))for(Z=0,ae=b.length;Z<ae;Z++)C(b[Z],Z,b);else{var re=ue(b);for(Z=0,ae=re.length;Z<ae;Z++)C(b[re[Z]],re[Z],b)}return b}function wt(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length,re=Array(ae);for(var he=0;he<ae;he++){var Ee=Z?Z[he]:he;re[he]=C(b[Ee],Ee,b)}return re}function or(b){var C=function(V,Z,ae,re){var he=!rt(V)&&ue(V),Ee=(he||V).length,Le=b>0?0:Ee-1;if(!re)ae=V[he?he[Le]:Le],Le+=b;for(;Le>=0&&Le<Ee;Le+=b){var Ce=he?he[Le]:Le;ae=Z(ae,V[Ce],Ce,V)}return ae};return function(V,Z,ae,re){var he=arguments.length>=3;return C(V,Je(Z,re,4),ae,he)}}var Xt=or(1),sr=or(-1);function Et(b,C,V){var Z=[];return C=Ue(C,V),mt(b,function(ae,re,he){if(C(ae,re,he))Z.push(ae)}),Z}function Yr(b,C,V){return Et(b,Pt(Ue(C)),V)}function ur(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length;for(var re=0;re<ae;re++){var he=Z?Z[re]:re;if(!C(b[he],he,b))return!1}return!0}function lr(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length;for(var re=0;re<ae;re++){var he=Z?Z[re]:re;if(C(b[he],he,b))return!0}return!1}function vt(b,C,V,Z){if(!rt(b))b=lt(b);if(typeof V!="number"||Z)V=0;return ar(b,C,V)>=0}var Gr=A(function(b,C,V){var Z,ae;if(Q(C))ae=C;else C=Ye(C),Z=C.slice(0,-1),C=C[C.length-1];return wt(b,function(re){var he=ae;if(!he){if(Z&&Z.length)re=nt(re,Z);if(re==null)return;he=re[C]}return he==null?he:he.apply(re,V)})});function zt(b,C){return wt(b,ut(C))}function Kr(b,C){return Et(b,it(C))}function cr(b,C,V){var Z=-1/0,ae=-1/0,re,he;if(C==null||typeof C=="number"&&typeof b[0]!="object"&&b!=null){b=rt(b)?b:lt(b);for(var Ee=0,Le=b.length;Ee<Le;Ee++)if(re=b[Ee],re!=null&&re>Z)Z=re}else C=Ue(C,V),mt(b,function(Ce,Ke,qe){if(he=C(Ce,Ke,qe),he>ae||he===-1/0&&Z===-1/0)Z=Ce,ae=he});return Z}function $r(b,C,V){var Z=1/0,ae=1/0,re,he;if(C==null||typeof C=="number"&&typeof b[0]!="object"&&b!=null){b=rt(b)?b:lt(b);for(var Ee=0,Le=b.length;Ee<Le;Ee++)if(re=b[Ee],re!=null&&re<Z)Z=re}else C=Ue(C,V),mt(b,function(Ce,Ke,qe){if(he=C(Ce,Ke,qe),he<ae||he===1/0&&Z===1/0)Z=Ce,ae=he});return Z}function fr(b,C,V){if(C==null||V){if(!rt(b))b=lt(b);return b[Mt(b.length-1)]}var Z=rt(b)?ge(b):lt(b),ae=M(Z);C=Math.max(Math.min(C,ae),0);var re=ae-1;for(var he=0;he<C;he++){var Ee=Mt(he,re),Le=Z[he];Z[he]=Z[Ee],Z[Ee]=Le}return Z.slice(0,C)}function Jr(b){return fr(b,1/0)}function Qr(b,C,V){var Z=0;return C=Ue(C,V),zt(wt(b,function(ae,re,he){return{value:ae,index:Z++,criteria:C(ae,re,he)}}).sort(function(ae,re){var he=ae.criteria,Ee=re.criteria;if(he!==Ee){if(he>Ee||he===void 0)return 1;if(he<Ee||Ee===void 0)return-1}return ae.index-re.index}),"value")}function Ct(b,C){return function(V,Z,ae){var re=C?[[],[]]:{};return Z=Ue(Z,ae),mt(V,function(he,Ee){var Le=Z(he,Ee,V);b(re,he,Le)}),re}}var qr=Ct(function(b,C,V){if(ke(b,V))b[V].push(C);else b[V]=[C]}),en=Ct(function(b,C,V){b[V]=C}),tn=Ct(function(b,C,V){if(ke(b,V))b[V]++;else b[V]=1}),rn=Ct(function(b,C,V){b[V?0:1].push(C)},!0),nn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function on(b){if(!b)return[];if(Ie(b))return t.call(b);if(U(b))return b.match(nn);if(rt(b))return wt(b,st);return lt(b)}function sn(b){if(b==null)return 0;return rt(b)?b.length:ue(b).length}function un(b,C,V){return C in V}var hr=A(function(b,C){var V={},Z=C[0];if(b==null)return V;if(Q(Z)){if(C.length>1)Z=Je(Z,C[1]);C=me(b)}else Z=un,C=gt(C,!1,!1),b=Object(b);for(var ae=0,re=C.length;ae<re;ae++){var he=C[ae],Ee=b[he];if(Z(Ee,he,b))V[he]=Ee}return V}),ln=A(function(b,C){var V=C[0],Z;if(Q(V)){if(V=Pt(V),C.length>1)Z=C[1]}else C=wt(gt(C,!1,!1),String),V=function(ae,re){return!vt(C,re)};return hr(b,V,Z)});function pr(b,C,V){return t.call(b,0,Math.max(0,b.length-(C==null||V?1:C)))}function Ut(b,C,V){if(b==null||b.length<1)return C==null||V?void 0:[];if(C==null||V)return b[0];return pr(b,b.length-C)}function Rt(b,C,V){return t.call(b,C==null||V?1:C)}function cn(b,C,V){if(b==null||b.length<1)return C==null||V?void 0:[];if(C==null||V)return b[b.length-1];return Rt(b,Math.max(0,b.length-C))}function fn(b){return Et(b,Boolean)}function hn(b,C){return gt(b,C,!1)}var dr=A(function(b,C){return C=gt(C,!0,!0),Et(b,function(V){return!vt(C,V)})}),pn=A(function(b,C){return dr(b,C)});function Wt(b,C,V,Z){if(!O(C))Z=V,V=C,C=!1;if(V!=null)V=Ue(V,Z);var ae=[],re=[];for(var he=0,Ee=M(b);he<Ee;he++){var Le=b[he],Ce=V?V(Le,he,b):Le;if(C&&!V){if(!he||re!==Ce)ae.push(Le);re=Ce}else if(V){if(!vt(re,Ce))re.push(Ce),ae.push(Le)}else if(!vt(ae,Le))ae.push(Le)}return ae}var dn=A(function(b){return Wt(gt(b,!0,!0))});function mn(b){var C=[],V=arguments.length;for(var Z=0,ae=M(b);Z<ae;Z++){var re=b[Z];if(vt(C,re))continue;var he;for(he=1;he<V;he++)if(!vt(arguments[he],re))break;if(he===V)C.push(re)}return C}function jt(b){var C=b&&cr(b,M).length||0,V=Array(C);for(var Z=0;Z<C;Z++)V[Z]=zt(b,Z);return V}var vn=A(jt);function gn(b,C){var V={};for(var Z=0,ae=M(b);Z<ae;Z++)if(C)V[b[Z]]=C[Z];else V[b[Z][0]]=b[Z][1];return V}function wn(b,C,V){if(C==null)C=b||0,b=0;if(!V)V=C<b?-1:1;var Z=Math.max(Math.ceil((C-b)/V),0),ae=Array(Z);for(var re=0;re<Z;re++,b+=V)ae[re]=b;return ae}function _n(b,C){if(C==null||C<1)return[];var V=[],Z=0,ae=b.length;while(Z<ae)V.push(t.call(b,Z,Z+=C));return V}function Ht(b,C){return b._chain?_e(C).chain():C}function mr(b){return mt(_t(b),function(C){var V=_e[C]=b[C];_e.prototype[C]=function(){var Z=[this._wrapped];return i.apply(Z,arguments),Ht(this,V.apply(_e,Z))}}),_e}mt(["pop","push","reverse","shift","sort","splice","unshift"],function(b){var C=k[b];_e.prototype[b]=function(){var V=this._wrapped;if(V!=null){if(C.apply(V,arguments),(b==="shift"||b==="splice")&&V.length===0)delete V[0]}return Ht(this,V)}}),mt(["concat","join","slice"],function(b){var C=k[b];_e.prototype[b]=function(){var V=this._wrapped;if(V!=null)V=C.apply(V,arguments);return Ht(this,V)}});var bn={__proto__:null,VERSION:I,restArguments:A,isObject:W,isNull:S,isUndefined:P,isBoolean:O,isElement:H,isString:U,isNumber:J,isDate:D,isRegExp:te,isError:ye,isSymbol:se,isArrayBuffer:ve,isDataView:Be,isArray:Ie,isFunction:Q,isArguments:Re,isFinite:We,isNaN:Ae,isTypedArray:N,isEmpty:we,isMatch:Se,isEqual:oe,isMap:at,isWeakMap:xt,isSet:kt,isWeakSet:St,keys:ue,allKeys:me,values:lt,pairs:Tt,invert:ht,functions:_t,methods:_t,extend:It,extendOwn:Nt,assign:Nt,defaults:R,create:fe,clone:ge,tap:Oe,get:tt,has:ot,mapObject:At,identity:st,constant:d,noop:dt,toPath:je,property:ut,propertyOf:Ot,matcher:it,matches:it,times:br,random:Mt,now:Dt,escape:Er,unescape:Tr,templateSettings:Ir,template:Ar,result:Or,uniqueId:Rr,chain:Mr,iteratee:pt,partial:bt,bind:Jt,bindAll:Lr,memoize:Pr,delay:Qt,defer:Fr,throttle:Xr,debounce:zr,wrap:Ur,negate:Pt,compose:Wr,after:jr,before:qt,once:Hr,findKey:er,findIndex:Ft,findLastIndex:rr,sortedIndex:nr,indexOf:ar,lastIndexOf:Vr,find:Bt,detect:Bt,findWhere:Zr,each:mt,forEach:mt,map:wt,collect:wt,reduce:Xt,foldl:Xt,inject:Xt,reduceRight:sr,foldr:sr,filter:Et,select:Et,reject:Yr,every:ur,all:ur,some:lr,any:lr,contains:vt,includes:vt,include:vt,invoke:Gr,pluck:zt,where:Kr,max:cr,min:$r,shuffle:Jr,sample:fr,sortBy:Qr,groupBy:qr,indexBy:en,countBy:tn,partition:rn,toArray:on,size:sn,pick:hr,omit:ln,first:Ut,head:Ut,take:Ut,initial:pr,last:cn,rest:Rt,tail:Rt,drop:Rt,compact:fn,flatten:hn,without:pn,uniq:Wt,unique:Wt,union:dn,intersection:mn,difference:dr,unzip:jt,transpose:jt,zip:vn,object:gn,range:wn,chunk:_n,mixin:mr,default:_e},Vt=mr(bn);return Vt._=Vt,Vt})}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],68:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=[].slice,l={}.hasOwnProperty;z=function(){var g,_,w,y,h,T;if(T=arguments[0],h=2<=arguments.length?t.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(g=0,w=h.length;g<w;g++)if(y=h[g],y!=null)for(_ in y){if(!l.call(y,_))continue;T[_]=y[_]}return T},c=function(g){return!!g&&Object.prototype.toString.call(g)==="[object Function]"},o=function(g){var _;return!!g&&((_=typeof g)==="function"||_==="object")},p=function(g){if(c(Array.isArray))return Array.isArray(g);else return Object.prototype.toString.call(g)==="[object Array]"},k=function(g){var _;if(p(g))return!g.length;else{for(_ in g){if(!l.call(g,_))continue;return!1}return!0}},i=function(g){var _,w;return o(g)&&(w=Object.getPrototypeOf(g))&&(_=w.constructor)&&typeof _==="function"&&_ instanceof _&&Function.prototype.toString.call(_)===Function.prototype.toString.call(Object)},I=function(g){if(c(g.valueOf))return g.valueOf();else return g},ce.exports.assign=z,ce.exports.isFunction=c,ce.exports.isObject=o,ce.exports.isArray=p,ce.exports.isEmpty=k,ce.exports.isPlainObject=i,ce.exports.getValue=I}).call(this)},{}],69:[function(X,ce,L){(function(){var z;ce.exports=z=function(){function I(p,k,c){if(this.options=p.options,this.stringify=p.stringify,this.parent=p,k==null)throw Error("Missing attribute name. "+this.debugInfo(k));if(c==null)throw Error("Missing attribute value. "+this.debugInfo(k));this.name=this.stringify.attName(k),this.value=this.stringify.attValue(c)}return I.prototype.clone=function(){return Object.create(this)},I.prototype.toString=function(p){return this.options.writer.set(p).attribute(this)},I.prototype.debugInfo=function(p){var k,c;if(p=p||this.name,p==null&&!((k=this.parent)!=null?k.name:void 0))return"";else if(p==null)return"parent: <"+this.parent.name+">";else if(!((c=this.parent)!=null?c.name:void 0))return"attribute: {"+p+"}";else return"attribute: {"+p+"}, parent: <"+this.parent.name+">"},I}()}).call(this)},{}],70:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).cdata(this)},o}(I)}).call(this)},{"./XMLNode":81}],71:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).comment(this)},o}(I)}).call(this)},{"./XMLNode":81}],72:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l,g,_,w){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw Error("Missing DTD attribute name. "+this.debugInfo(t));if(!g)throw Error("Missing DTD attribute type. "+this.debugInfo(t));if(!_)throw Error("Missing DTD attribute default. "+this.debugInfo(t));if(_.indexOf("#")!==0)_="#"+_;if(!_.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(t));if(w&&!_.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(t));this.elementName=this.stringify.eleName(t),this.attributeName=this.stringify.attName(l),this.attributeType=this.stringify.dtdAttType(g),this.defaultValue=this.stringify.dtdAttDefault(w),this.defaultValueType=_}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdAttList(this)},o}(I)}).call(this)},{"./XMLNode":81}],73:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!l)l="(#PCDATA)";if(Array.isArray(l))l="("+l.join(",")+")";this.name=this.stringify.eleName(t),this.value=this.stringify.dtdElementValue(l)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdElement(this)},o}(I)}).call(this)},{"./XMLNode":81}],74:[function(X,ce,L){(function(){var z,I,p,k=function(o,i){for(var t in i)if(c.call(i,t))o[t]=i[t];function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},c={}.hasOwnProperty;p=X("./Utility").isObject,I=X("./XMLNode"),ce.exports=z=function(o){k(i,o);function i(t,l,g,_){if(i.__super__.constructor.call(this,t),g==null)throw Error("Missing DTD entity name. "+this.debugInfo(g));if(_==null)throw Error("Missing DTD entity value. "+this.debugInfo(g));if(this.pe=!!l,this.name=this.stringify.eleName(g),!p(_))this.value=this.stringify.dtdEntityValue(_);else{if(!_.pubID&&!_.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(g));if(_.pubID&&!_.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(g));if(_.pubID!=null)this.pubID=this.stringify.dtdPubID(_.pubID);if(_.sysID!=null)this.sysID=this.stringify.dtdSysID(_.sysID);if(_.nData!=null)this.nData=this.stringify.dtdNData(_.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(g))}}return i.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},i}(I)}).call(this)},{"./Utility":68,"./XMLNode":81}],75:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD notation name. "+this.debugInfo(t));if(!l.pubID&&!l.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(t));if(this.name=this.stringify.eleName(t),l.pubID!=null)this.pubID=this.stringify.dtdPubID(l.pubID);if(l.sysID!=null)this.sysID=this.stringify.dtdSysID(l.sysID)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdNotation(this)},o}(I)}).call(this)},{"./XMLNode":81}],76:[function(X,ce,L){(function(){var z,I,p,k=function(o,i){for(var t in i)if(c.call(i,t))o[t]=i[t];function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},c={}.hasOwnProperty;p=X("./Utility").isObject,I=X("./XMLNode"),ce.exports=z=function(o){k(i,o);function i(t,l,g,_){var w;if(i.__super__.constructor.call(this,t),p(l))w=l,l=w.version,g=w.encoding,_=w.standalone;if(!l)l="1.0";if(this.version=this.stringify.xmlVersion(l),g!=null)this.encoding=this.stringify.xmlEncoding(g);if(_!=null)this.standalone=this.stringify.xmlStandalone(_)}return i.prototype.toString=function(t){return this.options.writer.set(t).declaration(this)},i}(I)}).call(this)},{"./Utility":68,"./XMLNode":81}],77:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=function(g,_){for(var w in _)if(l.call(_,w))g[w]=_[w];function y(){this.constructor=g}return y.prototype=_.prototype,g.prototype=new y,g.__super__=_.prototype,g},l={}.hasOwnProperty;i=X("./Utility").isObject,o=X("./XMLNode"),z=X("./XMLDTDAttList"),p=X("./XMLDTDEntity"),I=X("./XMLDTDElement"),k=X("./XMLDTDNotation"),ce.exports=c=function(g){t(_,g);function _(w,y,h){var T,x;if(_.__super__.constructor.call(this,w),this.name="!DOCTYPE",this.documentObject=w,i(y))T=y,y=T.pubID,h=T.sysID;if(h==null)x=[y,h],h=x[0],y=x[1];if(y!=null)this.pubID=this.stringify.dtdPubID(y);if(h!=null)this.sysID=this.stringify.dtdSysID(h)}return _.prototype.element=function(w,y){var h=new I(this,w,y);return this.children.push(h),this},_.prototype.attList=function(w,y,h,T,x){var n=new z(this,w,y,h,T,x);return this.children.push(n),this},_.prototype.entity=function(w,y){var h=new p(this,!1,w,y);return this.children.push(h),this},_.prototype.pEntity=function(w,y){var h=new p(this,!0,w,y);return this.children.push(h),this},_.prototype.notation=function(w,y){var h=new k(this,w,y);return this.children.push(h),this},_.prototype.toString=function(w){return this.options.writer.set(w).docType(this)},_.prototype.ele=function(w,y){return this.element(w,y)},_.prototype.att=function(w,y,h,T,x){return this.attList(w,y,h,T,x)},_.prototype.ent=function(w,y){return this.entity(w,y)},_.prototype.pent=function(w,y){return this.pEntity(w,y)},_.prototype.not=function(w,y){return this.notation(w,y)},_.prototype.up=function(){return this.root()||this.documentObject},_}(o)}).call(this)},{"./Utility":68,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLNode":81}],78:[function(X,ce,L){(function(){var z,I,p,k,c,o=function(t,l){for(var g in l)if(i.call(l,g))t[g]=l[g];function _(){this.constructor=t}return _.prototype=l.prototype,t.prototype=new _,t.__super__=l.prototype,t},i={}.hasOwnProperty;c=X("./Utility").isPlainObject,I=X("./XMLNode"),k=X("./XMLStringifier"),p=X("./XMLStringWriter"),ce.exports=z=function(t){o(l,t);function l(g){if(l.__super__.constructor.call(this,null),this.name="?xml",g||(g={}),!g.writer)g.writer=new p;this.options=g,this.stringify=new k(g),this.isDocument=!0}return l.prototype.end=function(g){var _;if(!g)g=this.options.writer;else if(c(g))_=g,g=this.options.writer.set(_);return g.document(this)},l.prototype.toString=function(g){return this.options.writer.set(g).document(this)},l}(I)}).call(this)},{"./Utility":68,"./XMLNode":81,"./XMLStringWriter":85,"./XMLStringifier":86}],79:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T,x,n,v,a,E,F,A={}.hasOwnProperty;F=X("./Utility"),a=F.isObject,v=F.isFunction,E=F.isPlainObject,n=F.getValue,_=X("./XMLElement"),I=X("./XMLCData"),p=X("./XMLComment"),y=X("./XMLRaw"),x=X("./XMLText"),w=X("./XMLProcessingInstruction"),t=X("./XMLDeclaration"),l=X("./XMLDocType"),k=X("./XMLDTDAttList"),o=X("./XMLDTDEntity"),c=X("./XMLDTDElement"),i=X("./XMLDTDNotation"),z=X("./XMLAttribute"),T=X("./XMLStringifier"),h=X("./XMLStringWriter"),ce.exports=g=function(){function W(S,P,O){var H;if(this.name="?xml",S||(S={}),!S.writer)S.writer=new h(S);else if(E(S.writer))H=S.writer,S.writer=new h(H);this.options=S,this.writer=S.writer,this.stringify=new T(S),this.onDataCallback=P||function(){},this.onEndCallback=O||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return W.prototype.node=function(S,P,O){var H;if(S==null)throw Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw Error("Document can only have one root node. "+this.debugInfo(S));if(this.openCurrent(),S=n(S),P==null)P={};if(P=n(P),!a(P))H=[P,O],O=H[0],P=H[1];if(this.currentNode=new _(this,S,P),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null)this.text(O);return this},W.prototype.element=function(S,P,O){if(this.currentNode&&this.currentNode instanceof l)return this.dtdElement.apply(this,arguments);else return this.node(S,P,O)},W.prototype.attribute=function(S,P){var O,H;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null)S=n(S);if(a(S))for(O in S){if(!A.call(S,O))continue;H=S[O],this.attribute(O,H)}else{if(v(P))P=P.apply();if(!this.options.skipNullAttributes||P!=null)this.currentNode.attributes[S]=new z(this,S,P)}return this},W.prototype.text=function(S){var P;return this.openCurrent(),P=new x(this,S),this.onData(this.writer.text(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.cdata=function(S){var P;return this.openCurrent(),P=new I(this,S),this.onData(this.writer.cdata(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.comment=function(S){var P;return this.openCurrent(),P=new p(this,S),this.onData(this.writer.comment(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.raw=function(S){var P;return this.openCurrent(),P=new y(this,S),this.onData(this.writer.raw(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.instruction=function(S,P){var O,H,ee,U,J;if(this.openCurrent(),S!=null)S=n(S);if(P!=null)P=n(P);if(Array.isArray(S))for(O=0,U=S.length;O<U;O++)H=S[O],this.instruction(H);else if(a(S))for(H in S){if(!A.call(S,H))continue;ee=S[H],this.instruction(H,ee)}else{if(v(P))P=P.apply();J=new w(this,S,P),this.onData(this.writer.processingInstruction(J,this.currentLevel+1),this.currentLevel+1)}return this},W.prototype.declaration=function(S,P,O){var H;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return H=new t(this,S,P,O),this.onData(this.writer.declaration(H,this.currentLevel+1),this.currentLevel+1),this},W.prototype.doctype=function(S,P,O){if(this.openCurrent(),S==null)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new l(this,P,O),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},W.prototype.dtdElement=function(S,P){var O;return this.openCurrent(),O=new c(this,S,P),this.onData(this.writer.dtdElement(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.attList=function(S,P,O,H,ee){var U;return this.openCurrent(),U=new k(this,S,P,O,H,ee),this.onData(this.writer.dtdAttList(U,this.currentLevel+1),this.currentLevel+1),this},W.prototype.entity=function(S,P){var O;return this.openCurrent(),O=new o(this,!1,S,P),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.pEntity=function(S,P){var O;return this.openCurrent(),O=new o(this,!0,S,P),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.notation=function(S,P){var O;return this.openCurrent(),O=new i(this,S,P),this.onData(this.writer.dtdNotation(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");if(this.currentNode){if(this.currentNode.children)this.closeNode(this.currentNode);else this.openNode(this.currentNode);this.currentNode=null}else this.closeNode(this.openTags[this.currentLevel]);return delete this.openTags[this.currentLevel],this.currentLevel--,this},W.prototype.end=function(){while(this.currentLevel>=0)this.up();return this.onEnd()},W.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},W.prototype.openNode=function(S){if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S instanceof _)this.root=S;return this.onData(this.writer.openNode(S,this.currentLevel),this.currentLevel),S.isOpen=!0}},W.prototype.closeNode=function(S){if(!S.isClosed)return this.onData(this.writer.closeNode(S,this.currentLevel),this.currentLevel),S.isClosed=!0},W.prototype.onData=function(S,P){return this.documentStarted=!0,this.onDataCallback(S,P+1)},W.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},W.prototype.debugInfo=function(S){if(S==null)return"";else return"node: <"+S+">"},W.prototype.ele=function(){return this.element.apply(this,arguments)},W.prototype.nod=function(S,P,O){return this.node(S,P,O)},W.prototype.txt=function(S){return this.text(S)},W.prototype.dat=function(S){return this.cdata(S)},W.prototype.com=function(S){return this.comment(S)},W.prototype.ins=function(S,P){return this.instruction(S,P)},W.prototype.dec=function(S,P,O){return this.declaration(S,P,O)},W.prototype.dtd=function(S,P,O){return this.doctype(S,P,O)},W.prototype.e=function(S,P,O){return this.element(S,P,O)},W.prototype.n=function(S,P,O){return this.node(S,P,O)},W.prototype.t=function(S){return this.text(S)},W.prototype.d=function(S){return this.cdata(S)},W.prototype.c=function(S){return this.comment(S)},W.prototype.r=function(S){return this.raw(S)},W.prototype.i=function(S,P){return this.instruction(S,P)},W.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},W.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},W.prototype.ent=function(S,P){return this.entity(S,P)},W.prototype.pent=function(S,P){return this.pEntity(S,P)},W.prototype.not=function(S,P){return this.notation(S,P)},W}()}).call(this)},{"./Utility":68,"./XMLAttribute":69,"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLStringWriter":85,"./XMLStringifier":86,"./XMLText":87}],80:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=function(g,_){for(var w in _)if(l.call(_,w))g[w]=_[w];function y(){this.constructor=g}return y.prototype=_.prototype,g.prototype=new y,g.__super__=_.prototype,g},l={}.hasOwnProperty;i=X("./Utility"),o=i.isObject,c=i.isFunction,k=i.getValue,p=X("./XMLNode"),z=X("./XMLAttribute"),ce.exports=I=function(g){t(_,g);function _(w,y,h){if(_.__super__.constructor.call(this,w),y==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.eleName(y),this.attributes={},h!=null)this.attribute(h);if(w.isDocument)this.isRoot=!0,this.documentObject=w,w.rootObject=this}return _.prototype.clone=function(){var w,y,h,T;if(h=Object.create(this),h.isRoot)h.documentObject=null;h.attributes={},T=this.attributes;for(y in T){if(!l.call(T,y))continue;w=T[y],h.attributes[y]=w.clone()}return h.children=[],this.children.forEach(function(x){var n=x.clone();return n.parent=h,h.children.push(n)}),h},_.prototype.attribute=function(w,y){var h,T;if(w!=null)w=k(w);if(o(w))for(h in w){if(!l.call(w,h))continue;T=w[h],this.attribute(h,T)}else{if(c(y))y=y.apply();if(!this.options.skipNullAttributes||y!=null)this.attributes[w]=new z(this,w,y)}return this},_.prototype.removeAttribute=function(w){var y,h,T;if(w==null)throw Error("Missing attribute name. "+this.debugInfo());if(w=k(w),Array.isArray(w))for(h=0,T=w.length;h<T;h++)y=w[h],delete this.attributes[y];else delete this.attributes[w];return this},_.prototype.toString=function(w){return this.options.writer.set(w).element(this)},_.prototype.att=function(w,y){return this.attribute(w,y)},_.prototype.a=function(w,y){return this.attribute(w,y)},_}(p)}).call(this)},{"./Utility":68,"./XMLAttribute":69,"./XMLNode":81}],81:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T={}.hasOwnProperty;h=X("./Utility"),y=h.isObject,w=h.isFunction,_=h.isEmpty,g=h.getValue,c=null,z=null,I=null,p=null,k=null,t=null,l=null,i=null,ce.exports=o=function(){function x(n){if(this.parent=n,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.children=[],!c)c=X("./XMLElement"),z=X("./XMLCData"),I=X("./XMLComment"),p=X("./XMLDeclaration"),k=X("./XMLDocType"),t=X("./XMLRaw"),l=X("./XMLText"),i=X("./XMLProcessingInstruction")}return x.prototype.element=function(n,v,a){var E,F,A,W,S,P,O,H,ee,U;if(P=null,v==null)v={};if(v=g(v),!y(v))ee=[v,a],a=ee[0],v=ee[1];if(n!=null)n=g(n);if(Array.isArray(n))for(A=0,O=n.length;A<O;A++)F=n[A],P=this.element(F);else if(w(n))P=this.element(n.apply());else if(y(n))for(S in n){if(!T.call(n,S))continue;if(U=n[S],w(U))U=U.apply();if(y(U)&&_(U))U=null;if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&S.indexOf(this.stringify.convertAttKey)===0)P=this.attribute(S.substr(this.stringify.convertAttKey.length),U);else if(!this.options.separateArrayItems&&Array.isArray(U))for(W=0,H=U.length;W<H;W++)F=U[W],E={},E[S]=F,P=this.element(E);else if(y(U))P=this.element(S),P.element(U);else P=this.element(S,U)}else if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&n.indexOf(this.stringify.convertTextKey)===0)P=this.text(a);else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&n.indexOf(this.stringify.convertCDataKey)===0)P=this.cdata(a);else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&n.indexOf(this.stringify.convertCommentKey)===0)P=this.comment(a);else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&n.indexOf(this.stringify.convertRawKey)===0)P=this.raw(a);else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&n.indexOf(this.stringify.convertPIKey)===0)P=this.instruction(n.substr(this.stringify.convertPIKey.length),a);else P=this.node(n,v,a);if(P==null)throw Error("Could not create any elements with: "+n+". "+this.debugInfo());return P},x.prototype.insertBefore=function(n,v,a){var E,F,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(n));return F=this.parent.children.indexOf(this),A=this.parent.children.splice(F),E=this.parent.element(n,v,a),Array.prototype.push.apply(this.parent.children,A),E},x.prototype.insertAfter=function(n,v,a){var E,F,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(n));return F=this.parent.children.indexOf(this),A=this.parent.children.splice(F+1),E=this.parent.element(n,v,a),Array.prototype.push.apply(this.parent.children,A),E},x.prototype.remove=function(){var n,v;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return n=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[n,n-n+1].concat(v=[])),this.parent},x.prototype.node=function(n,v,a){var E,F;if(n!=null)n=g(n);if(v||(v={}),v=g(v),!y(v))F=[v,a],a=F[0],v=F[1];if(E=new c(this,n,v),a!=null)E.text(a);return this.children.push(E),E},x.prototype.text=function(n){var v=new l(this,n);return this.children.push(v),this},x.prototype.cdata=function(n){var v=new z(this,n);return this.children.push(v),this},x.prototype.comment=function(n){var v=new I(this,n);return this.children.push(v),this},x.prototype.commentBefore=function(n){var v,a,E;return a=this.parent.children.indexOf(this),E=this.parent.children.splice(a),v=this.parent.comment(n),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.commentAfter=function(n){var v,a,E;return a=this.parent.children.indexOf(this),E=this.parent.children.splice(a+1),v=this.parent.comment(n),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.raw=function(n){var v=new t(this,n);return this.children.push(v),this},x.prototype.instruction=function(n,v){var a,E,F,A,W;if(n!=null)n=g(n);if(v!=null)v=g(v);if(Array.isArray(n))for(A=0,W=n.length;A<W;A++)a=n[A],this.instruction(a);else if(y(n))for(a in n){if(!T.call(n,a))continue;E=n[a],this.instruction(a,E)}else{if(w(v))v=v.apply();F=new i(this,n,v),this.children.push(F)}return this},x.prototype.instructionBefore=function(n,v){var a,E,F;return E=this.parent.children.indexOf(this),F=this.parent.children.splice(E),a=this.parent.instruction(n,v),Array.prototype.push.apply(this.parent.children,F),this},x.prototype.instructionAfter=function(n,v){var a,E,F;return E=this.parent.children.indexOf(this),F=this.parent.children.splice(E+1),a=this.parent.instruction(n,v),Array.prototype.push.apply(this.parent.children,F),this},x.prototype.declaration=function(n,v,a){var E,F;if(E=this.document(),F=new p(E,n,v,a),E.children[0]instanceof p)E.children[0]=F;else E.children.unshift(F);return E.root()||E},x.prototype.doctype=function(n,v){var a,E,F,A,W,S,P,O,H,ee;E=this.document(),F=new k(E,n,v),H=E.children;for(A=W=0,P=H.length;W<P;A=++W)if(a=H[A],a instanceof k)return E.children[A]=F,F;ee=E.children;for(A=S=0,O=ee.length;S<O;A=++S)if(a=ee[A],a.isRoot)return E.children.splice(A,0,F),F;return E.children.push(F),F},x.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},x.prototype.root=function(){var n=this;while(n)if(n.isDocument)return n.rootObject;else if(n.isRoot)return n;else n=n.parent},x.prototype.document=function(){var n=this;while(n)if(n.isDocument)return n;else n=n.parent},x.prototype.end=function(n){return this.document().end(n)},x.prototype.prev=function(){var n=this.parent.children.indexOf(this);if(n<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[n-1]},x.prototype.next=function(){var n=this.parent.children.indexOf(this);if(n===-1||n===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[n+1]},x.prototype.importDocument=function(n){var v=n.root().clone();return v.parent=this,v.isRoot=!1,this.children.push(v),this},x.prototype.debugInfo=function(n){var v,a;if(n=n||this.name,n==null&&!((v=this.parent)!=null?v.name:void 0))return"";else if(n==null)return"parent: <"+this.parent.name+">";else if(!((a=this.parent)!=null?a.name:void 0))return"node: <"+n+">";else return"node: <"+n+">, parent: <"+this.parent.name+">"},x.prototype.ele=function(n,v,a){return this.element(n,v,a)},x.prototype.nod=function(n,v,a){return this.node(n,v,a)},x.prototype.txt=function(n){return this.text(n)},x.prototype.dat=function(n){return this.cdata(n)},x.prototype.com=function(n){return this.comment(n)},x.prototype.ins=function(n,v){return this.instruction(n,v)},x.prototype.doc=function(){return this.document()},x.prototype.dec=function(n,v,a){return this.declaration(n,v,a)},x.prototype.dtd=function(n,v){return this.doctype(n,v)},x.prototype.e=function(n,v,a){return this.element(n,v,a)},x.prototype.n=function(n,v,a){return this.node(n,v,a)},x.prototype.t=function(n){return this.text(n)},x.prototype.d=function(n){return this.cdata(n)},x.prototype.c=function(n){return this.comment(n)},x.prototype.r=function(n){return this.raw(n)},x.prototype.i=function(n,v){return this.instruction(n,v)},x.prototype.u=function(){return this.up()},x.prototype.importXMLBuilder=function(n){return this.importDocument(n)},x}()}).call(this)},{"./Utility":68,"./XMLCData":70,"./XMLComment":71,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87}],82:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.target=this.stringify.insTarget(t),l)this.value=this.stringify.insValue(l)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).processingInstruction(this)},o}(z)}).call(this)},{"./XMLNode":81}],83:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).raw(this)},o}(z)}).call(this)},{"./XMLNode":81}],84:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T=function(n,v){for(var a in v)if(x.call(v,a))n[a]=v[a];function E(){this.constructor=n}return E.prototype=v.prototype,n.prototype=new E,n.__super__=v.prototype,n},x={}.hasOwnProperty;i=X("./XMLDeclaration"),t=X("./XMLDocType"),z=X("./XMLCData"),I=X("./XMLComment"),l=X("./XMLElement"),_=X("./XMLRaw"),y=X("./XMLText"),g=X("./XMLProcessingInstruction"),p=X("./XMLDTDAttList"),k=X("./XMLDTDElement"),c=X("./XMLDTDEntity"),o=X("./XMLDTDNotation"),h=X("./XMLWriterBase"),ce.exports=w=function(n){T(v,n);function v(a,E){v.__super__.constructor.call(this,E),this.stream=a}return v.prototype.document=function(a){var E,F,A,W,S,P,O,H;P=a.children;for(F=0,W=P.length;F<W;F++)E=P[F],E.isLastRootNode=!1;a.children[a.children.length-1].isLastRootNode=!0,O=a.children,H=[];for(A=0,S=O.length;A<S;A++)switch(E=O[A],!1){case!(E instanceof i):H.push(this.declaration(E));break;case!(E instanceof t):H.push(this.docType(E));break;case!(E instanceof I):H.push(this.comment(E));break;case!(E instanceof g):H.push(this.processingInstruction(E));break;default:H.push(this.element(E))}return H},v.prototype.attribute=function(a){return this.stream.write(" "+a.name+'="'+a.value+'"')},v.prototype.cdata=function(a,E){return this.stream.write(this.space(E)+"<![CDATA["+a.text+"]]>"+this.endline(a))},v.prototype.comment=function(a,E){return this.stream.write(this.space(E)+"<!-- "+a.text+" -->"+this.endline(a))},v.prototype.declaration=function(a,E){if(this.stream.write(this.space(E)),this.stream.write('<?xml version="'+a.version+'"'),a.encoding!=null)this.stream.write(' encoding="'+a.encoding+'"');if(a.standalone!=null)this.stream.write(' standalone="'+a.standalone+'"');return this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(a))},v.prototype.docType=function(a,E){var F,A,W,S;if(E||(E=0),this.stream.write(this.space(E)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');if(a.children.length>0){this.stream.write(" ["),this.stream.write(this.endline(a)),S=a.children;for(A=0,W=S.length;A<W;A++)switch(F=S[A],!1){case!(F instanceof p):this.dtdAttList(F,E+1);break;case!(F instanceof k):this.dtdElement(F,E+1);break;case!(F instanceof c):this.dtdEntity(F,E+1);break;case!(F instanceof o):this.dtdNotation(F,E+1);break;case!(F instanceof z):this.cdata(F,E+1);break;case!(F instanceof I):this.comment(F,E+1);break;case!(F instanceof g):this.processingInstruction(F,E+1);break;default:throw Error("Unknown DTD node type: "+F.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(a))},v.prototype.element=function(a,E){var F,A,W,S,P,O,H,ee;E||(E=0),ee=this.space(E),this.stream.write(ee+"<"+a.name),O=a.attributes;for(P in O){if(!x.call(O,P))continue;F=O[P],this.attribute(F)}if(a.children.length===0||a.children.every(function(U){return U.value===""}))if(this.allowEmpty)this.stream.write("></"+a.name+">");else this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&a.children.length===1&&a.children[0].value!=null)this.stream.write(">"),this.stream.write(a.children[0].value),this.stream.write("</"+a.name+">");else{this.stream.write(">"+this.newline),H=a.children;for(W=0,S=H.length;W<S;W++)switch(A=H[W],!1){case!(A instanceof z):this.cdata(A,E+1);break;case!(A instanceof I):this.comment(A,E+1);break;case!(A instanceof l):this.element(A,E+1);break;case!(A instanceof _):this.raw(A,E+1);break;case!(A instanceof y):this.text(A,E+1);break;case!(A instanceof g):this.processingInstruction(A,E+1);break;default:throw Error("Unknown XML node type: "+A.constructor.name)}this.stream.write(ee+"</"+a.name+">")}return this.stream.write(this.endline(a))},v.prototype.processingInstruction=function(a,E){if(this.stream.write(this.space(E)+"<?"+a.target),a.value)this.stream.write(" "+a.value);return this.stream.write(this.spacebeforeslash+"?>"+this.endline(a))},v.prototype.raw=function(a,E){return this.stream.write(this.space(E)+a.value+this.endline(a))},v.prototype.text=function(a,E){return this.stream.write(this.space(E)+a.value+this.endline(a))},v.prototype.dtdAttList=function(a,E){if(this.stream.write(this.space(E)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType),a.defaultValueType!=="#DEFAULT")this.stream.write(" "+a.defaultValueType);if(a.defaultValue)this.stream.write(' "'+a.defaultValue+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdElement=function(a,E){return this.stream.write(this.space(E)+"<!ELEMENT "+a.name+" "+a.value),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdEntity=function(a,E){if(this.stream.write(this.space(E)+"<!ENTITY"),a.pe)this.stream.write(" %");if(this.stream.write(" "+a.name),a.value)this.stream.write(' "'+a.value+'"');else{if(a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');if(a.nData)this.stream.write(" NDATA "+a.nData)}return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdNotation=function(a,E){if(this.stream.write(this.space(E)+"<!NOTATION "+a.name),a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.pubID)this.stream.write(' PUBLIC "'+a.pubID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.endline=function(a){if(!a.isLastRootNode)return this.newline;else return""},v}(h)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],85:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T=function(n,v){for(var a in v)if(x.call(v,a))n[a]=v[a];function E(){this.constructor=n}return E.prototype=v.prototype,n.prototype=new E,n.__super__=v.prototype,n},x={}.hasOwnProperty;i=X("./XMLDeclaration"),t=X("./XMLDocType"),z=X("./XMLCData"),I=X("./XMLComment"),l=X("./XMLElement"),_=X("./XMLRaw"),y=X("./XMLText"),g=X("./XMLProcessingInstruction"),p=X("./XMLDTDAttList"),k=X("./XMLDTDElement"),c=X("./XMLDTDEntity"),o=X("./XMLDTDNotation"),h=X("./XMLWriterBase"),ce.exports=w=function(n){T(v,n);function v(a){v.__super__.constructor.call(this,a)}return v.prototype.document=function(a){var E,F,A,W,S;this.textispresent=!1,W="",S=a.children;for(F=0,A=S.length;F<A;F++)E=S[F],W+=function(){switch(!1){case!(E instanceof i):return this.declaration(E);case!(E instanceof t):return this.docType(E);case!(E instanceof I):return this.comment(E);case!(E instanceof g):return this.processingInstruction(E);default:return this.element(E,0)}}.call(this);if(this.pretty&&W.slice(-this.newline.length)===this.newline)W=W.slice(0,-this.newline.length);return W},v.prototype.attribute=function(a){return" "+a.name+'="'+a.value+'"'},v.prototype.cdata=function(a,E){return this.space(E)+"<![CDATA["+a.text+"]]>"+this.newline},v.prototype.comment=function(a,E){return this.space(E)+"<!-- "+a.text+" -->"+this.newline},v.prototype.declaration=function(a,E){var F=this.space(E);if(F+='<?xml version="'+a.version+'"',a.encoding!=null)F+=' encoding="'+a.encoding+'"';if(a.standalone!=null)F+=' standalone="'+a.standalone+'"';return F+=this.spacebeforeslash+"?>",F+=this.newline,F},v.prototype.docType=function(a,E){var F,A,W,S,P;if(E||(E=0),S=this.space(E),S+="<!DOCTYPE "+a.root().name,a.pubID&&a.sysID)S+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)S+=' SYSTEM "'+a.sysID+'"';if(a.children.length>0){S+=" [",S+=this.newline,P=a.children;for(A=0,W=P.length;A<W;A++)F=P[A],S+=function(){switch(!1){case!(F instanceof p):return this.dtdAttList(F,E+1);case!(F instanceof k):return this.dtdElement(F,E+1);case!(F instanceof c):return this.dtdEntity(F,E+1);case!(F instanceof o):return this.dtdNotation(F,E+1);case!(F instanceof z):return this.cdata(F,E+1);case!(F instanceof I):return this.comment(F,E+1);case!(F instanceof g):return this.processingInstruction(F,E+1);default:throw Error("Unknown DTD node type: "+F.constructor.name)}}.call(this);S+="]"}return S+=this.spacebeforeslash+">",S+=this.newline,S},v.prototype.element=function(a,E){var F,A,W,S,P,O,H,ee,U,J,D,te,ye;if(E||(E=0),ye=!1,this.textispresent)this.newline="",this.pretty=!1;else this.newline=this.newlinedefault,this.pretty=this.prettydefault;te=this.space(E),ee="",ee+=te+"<"+a.name,U=a.attributes;for(H in U){if(!x.call(U,H))continue;F=U[H],ee+=this.attribute(F)}if(a.children.length===0||a.children.every(function(se){return se.value===""}))if(this.allowEmpty)ee+="></"+a.name+">"+this.newline;else ee+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&a.children.length===1&&a.children[0].value!=null)ee+=">",ee+=a.children[0].value,ee+="</"+a.name+">"+this.newline;else{if(this.dontprettytextnodes){J=a.children;for(W=0,P=J.length;W<P;W++)if(A=J[W],A.value!=null){this.textispresent++,ye=!0;break}}if(this.textispresent)this.newline="",this.pretty=!1,te=this.space(E);ee+=">"+this.newline,D=a.children;for(S=0,O=D.length;S<O;S++)A=D[S],ee+=function(){switch(!1){case!(A instanceof z):return this.cdata(A,E+1);case!(A instanceof I):return this.comment(A,E+1);case!(A instanceof l):return this.element(A,E+1);case!(A instanceof _):return this.raw(A,E+1);case!(A instanceof y):return this.text(A,E+1);case!(A instanceof g):return this.processingInstruction(A,E+1);default:throw Error("Unknown XML node type: "+A.constructor.name)}}.call(this);if(ye)this.textispresent--;if(!this.textispresent)this.newline=this.newlinedefault,this.pretty=this.prettydefault;ee+=te+"</"+a.name+">"+this.newline}return ee},v.prototype.processingInstruction=function(a,E){var F=this.space(E)+"<?"+a.target;if(a.value)F+=" "+a.value;return F+=this.spacebeforeslash+"?>"+this.newline,F},v.prototype.raw=function(a,E){return this.space(E)+a.value+this.newline},v.prototype.text=function(a,E){return this.space(E)+a.value+this.newline},v.prototype.dtdAttList=function(a,E){var F=this.space(E)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType;if(a.defaultValueType!=="#DEFAULT")F+=" "+a.defaultValueType;if(a.defaultValue)F+=' "'+a.defaultValue+'"';return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.dtdElement=function(a,E){return this.space(E)+"<!ELEMENT "+a.name+" "+a.value+this.spacebeforeslash+">"+this.newline},v.prototype.dtdEntity=function(a,E){var F=this.space(E)+"<!ENTITY";if(a.pe)F+=" %";if(F+=" "+a.name,a.value)F+=' "'+a.value+'"';else{if(a.pubID&&a.sysID)F+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)F+=' SYSTEM "'+a.sysID+'"';if(a.nData)F+=" NDATA "+a.nData}return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.dtdNotation=function(a,E){var F=this.space(E)+"<!NOTATION "+a.name;if(a.pubID&&a.sysID)F+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.pubID)F+=' PUBLIC "'+a.pubID+'"';else if(a.sysID)F+=' SYSTEM "'+a.sysID+'"';return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.openNode=function(a,E){var F,A,W,S;if(E||(E=0),a instanceof l){W=this.space(E)+"<"+a.name,S=a.attributes;for(A in S){if(!x.call(S,A))continue;F=S[A],W+=this.attribute(F)}return W+=(a.children?">":"/>")+this.newline,W}else{if(W=this.space(E)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID)W+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)W+=' SYSTEM "'+a.sysID+'"';return W+=(a.children?" [":">")+this.newline,W}},v.prototype.closeNode=function(a,E){switch(E||(E=0),!1){case!(a instanceof l):return this.space(E)+"</"+a.name+">"+this.newline;case!(a instanceof t):return this.space(E)+"]>"+this.newline}},v}(h)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],86:[function(X,ce,L){(function(){var z,I=function(k,c){return function(){return k.apply(c,arguments)}},p={}.hasOwnProperty;ce.exports=z=function(){function k(c){this.assertLegalChar=I(this.assertLegalChar,this);var o,i,t;c||(c={}),this.noDoubleEncoding=c.noDoubleEncoding,i=c.stringify||{};for(o in i){if(!p.call(i,o))continue;t=i[o],this[o]=t}}return k.prototype.eleName=function(c){return c=""+c||"",this.assertLegalChar(c)},k.prototype.eleText=function(c){return c=""+c||"",this.assertLegalChar(this.elEscape(c))},k.prototype.cdata=function(c){return c=""+c||"",c=c.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(c)},k.prototype.comment=function(c){if(c=""+c||"",c.match(/--/))throw Error("Comment text cannot contain double-hypen: "+c);return this.assertLegalChar(c)},k.prototype.raw=function(c){return""+c||""},k.prototype.attName=function(c){return c=""+c||""},k.prototype.attValue=function(c){return c=""+c||"",this.attEscape(c)},k.prototype.insTarget=function(c){return""+c||""},k.prototype.insValue=function(c){if(c=""+c||"",c.match(/\?>/))throw Error("Invalid processing instruction value: "+c);return c},k.prototype.xmlVersion=function(c){if(c=""+c||"",!c.match(/1\.[0-9]+/))throw Error("Invalid version number: "+c);return c},k.prototype.xmlEncoding=function(c){if(c=""+c||"",!c.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+c);return c},k.prototype.xmlStandalone=function(c){if(c)return"yes";else return"no"},k.prototype.dtdPubID=function(c){return""+c||""},k.prototype.dtdSysID=function(c){return""+c||""},k.prototype.dtdElementValue=function(c){return""+c||""},k.prototype.dtdAttType=function(c){return""+c||""},k.prototype.dtdAttDefault=function(c){if(c!=null)return""+c||"";else return c},k.prototype.dtdEntityValue=function(c){return""+c||""},k.prototype.dtdNData=function(c){return""+c||""},k.prototype.convertAttKey="@",k.prototype.convertPIKey="?",k.prototype.convertTextKey="#text",k.prototype.convertCDataKey="#cdata",k.prototype.convertCommentKey="#comment",k.prototype.convertRawKey="#raw",k.prototype.assertLegalChar=function(c){var o=c.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(o)throw Error("Invalid character in string: "+c+" at index "+o.index);return c},k.prototype.elEscape=function(c){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return c.replace(o,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},k.prototype.attEscape=function(c){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return c.replace(o,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},k}()}).call(this)},{}],87:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).text(this)},o}(z)}).call(this)},{"./XMLNode":81}],88:[function(X,ce,L){(function(){var z,I={}.hasOwnProperty;ce.exports=z=function(){function p(k){var c,o,i,t,l,g,_,w,y;if(k||(k={}),this.pretty=k.pretty||!1,this.allowEmpty=(o=k.allowEmpty)!=null?o:!1,this.pretty)this.indent=(i=k.indent)!=null?i:" ",this.newline=(t=k.newline)!=null?t:`
56
+ `+re+"}",Le}function Cr(b,C,V){C=Ye(C);var Z=C.length;if(!Z)return Q(V)?V.call(b):V;for(var ae=0;ae<Z;ae++){var re=b==null?void 0:b[C[ae]];if(re===void 0)re=V,ae=Z;b=Q(re)?re.call(b):re}return b}var Rr=0;function Mr(b){var C=++Rr+"";return b?b+C:C}function Lr(b){var C=_e(b);return C._chain=!0,C}function $t(b,C,V,Z,ae){if(!(Z instanceof C))return b.apply(V,ae);var re=G(b.prototype),he=b.apply(re,ae);if(W(he))return he;return re}var bt=A(function(b,C){var V=bt.placeholder,Z=function(){var ae=0,re=C.length,he=Array(re);for(var Ee=0;Ee<re;Ee++)he[Ee]=C[Ee]===V?arguments[ae++]:C[Ee];while(ae<arguments.length)he.push(arguments[ae++]);return $t(b,Z,this,this,he)};return Z});bt.placeholder=_e;var Jt=A(function(b,C,V){if(!Q(b))throw TypeError("Bind must be called on a function");var Z=A(function(ae){return $t(b,Z,C,this,V.concat(ae))});return Z}),rt=q(M);function gt(b,C,V,Z){if(Z=Z||[],!C&&C!==0)C=1/0;else if(C<=0)return Z.concat(b);var ae=Z.length;for(var re=0,he=M(b);re<he;re++){var Ee=b[re];if(rt(Ee)&&(Ie(Ee)||Re(Ee)))if(C>1)gt(Ee,C-1,V,Z),ae=Z.length;else{var Le=0,Ce=Ee.length;while(Le<Ce)Z[ae++]=Ee[Le++]}else if(!V)Z[ae++]=Ee}return Z}var Pr=A(function(b,C){C=gt(C,!1,!1);var V=C.length;if(V<1)throw Error("bindAll must be passed function names");while(V--){var Z=C[V];b[Z]=Jt(b[Z],b)}return b});function Fr(b,C){var V=function(Z){var ae=V.cache,re=""+(C?C.apply(this,arguments):Z);if(!ke(ae,re))ae[re]=b.apply(this,arguments);return ae[re]};return V.cache={},V}var Qt=A(function(b,C,V){return setTimeout(function(){return b.apply(null,V)},C)}),Br=bt(Qt,_e,1);function Xr(b,C,V){var Z,ae,re,he,Ee=0;if(!V)V={};var Le=function(){if(Ee=V.leading===!1?0:Dt(),Z=null,he=b.apply(ae,re),!Z)ae=re=null},Ce=function(){var Ke=Dt();if(!Ee&&V.leading===!1)Ee=Ke;var qe=C-(Ke-Ee);if(ae=this,re=arguments,qe<=0||qe>C){if(Z)clearTimeout(Z),Z=null;if(Ee=Ke,he=b.apply(ae,re),!Z)ae=re=null}else if(!Z&&V.trailing!==!1)Z=setTimeout(Le,qe);return he};return Ce.cancel=function(){clearTimeout(Z),Ee=0,Z=ae=re=null},Ce}function zr(b,C,V){var Z,ae,re,he,Ee,Le=function(){var Ke=Dt()-ae;if(C>Ke)Z=setTimeout(Le,C-Ke);else{if(Z=null,!V)he=b.apply(Ee,re);if(!Z)re=Ee=null}},Ce=A(function(Ke){if(Ee=this,re=Ke,ae=Dt(),!Z){if(Z=setTimeout(Le,C),V)he=b.apply(Ee,re)}return he});return Ce.cancel=function(){clearTimeout(Z),Z=re=Ee=null},Ce}function Ur(b,C){return bt(C,b)}function Pt(b){return function(){return!b.apply(this,arguments)}}function Wr(){var b=arguments,C=b.length-1;return function(){var V=C,Z=b[C].apply(this,arguments);while(V--)Z=b[V].call(this,Z);return Z}}function jr(b,C){return function(){if(--b<1)return C.apply(this,arguments)}}function qt(b,C){var V;return function(){if(--b>0)V=C.apply(this,arguments);if(b<=1)C=null;return V}}var Hr=bt(qt,2);function er(b,C,V){C=Ue(C,V);var Z=ue(b),ae;for(var re=0,he=Z.length;re<he;re++)if(ae=Z[re],C(b[ae],ae,b))return ae}function tr(b){return function(C,V,Z){V=Ue(V,Z);var ae=M(C),re=b>0?0:ae-1;for(;re>=0&&re<ae;re+=b)if(V(C[re],re,C))return re;return-1}}var Ft=tr(1),rr=tr(-1);function nr(b,C,V,Z){V=Ue(V,Z,1);var ae=V(C),re=0,he=M(b);while(re<he){var Ee=Math.floor((re+he)/2);if(V(b[Ee])<ae)re=Ee+1;else he=Ee}return re}function ir(b,C,V){return function(Z,ae,re){var he=0,Ee=M(Z);if(typeof re=="number")if(b>0)he=re>=0?re:Math.max(re+Ee,he);else Ee=re>=0?Math.min(re+1,Ee):re+Ee+1;else if(V&&re&&Ee)return re=V(Z,ae),Z[re]===ae?re:-1;if(ae!==ae)return re=C(t.call(Z,he,Ee),Ae),re>=0?re+he:-1;for(re=b>0?he:Ee-1;re>=0&&re<Ee;re+=b)if(Z[re]===ae)return re;return-1}}var ar=ir(1,Ft,nr),Vr=ir(-1,rr);function Bt(b,C,V){var Z=rt(b)?Ft:er,ae=Z(b,C,V);if(ae!==void 0&&ae!==-1)return b[ae]}function Zr(b,C){return Bt(b,it(C))}function mt(b,C,V){C=Je(C,V);var Z,ae;if(rt(b))for(Z=0,ae=b.length;Z<ae;Z++)C(b[Z],Z,b);else{var re=ue(b);for(Z=0,ae=re.length;Z<ae;Z++)C(b[re[Z]],re[Z],b)}return b}function wt(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length,re=Array(ae);for(var he=0;he<ae;he++){var Ee=Z?Z[he]:he;re[he]=C(b[Ee],Ee,b)}return re}function or(b){var C=function(V,Z,ae,re){var he=!rt(V)&&ue(V),Ee=(he||V).length,Le=b>0?0:Ee-1;if(!re)ae=V[he?he[Le]:Le],Le+=b;for(;Le>=0&&Le<Ee;Le+=b){var Ce=he?he[Le]:Le;ae=Z(ae,V[Ce],Ce,V)}return ae};return function(V,Z,ae,re){var he=arguments.length>=3;return C(V,Je(Z,re,4),ae,he)}}var Xt=or(1),sr=or(-1);function Et(b,C,V){var Z=[];return C=Ue(C,V),mt(b,function(ae,re,he){if(C(ae,re,he))Z.push(ae)}),Z}function Yr(b,C,V){return Et(b,Pt(Ue(C)),V)}function ur(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length;for(var re=0;re<ae;re++){var he=Z?Z[re]:re;if(!C(b[he],he,b))return!1}return!0}function lr(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length;for(var re=0;re<ae;re++){var he=Z?Z[re]:re;if(C(b[he],he,b))return!0}return!1}function vt(b,C,V,Z){if(!rt(b))b=lt(b);if(typeof V!="number"||Z)V=0;return ar(b,C,V)>=0}var Gr=A(function(b,C,V){var Z,ae;if(Q(C))ae=C;else C=Ye(C),Z=C.slice(0,-1),C=C[C.length-1];return wt(b,function(re){var he=ae;if(!he){if(Z&&Z.length)re=nt(re,Z);if(re==null)return;he=re[C]}return he==null?he:he.apply(re,V)})});function zt(b,C){return wt(b,ut(C))}function Kr(b,C){return Et(b,it(C))}function cr(b,C,V){var Z=-1/0,ae=-1/0,re,he;if(C==null||typeof C=="number"&&typeof b[0]!="object"&&b!=null){b=rt(b)?b:lt(b);for(var Ee=0,Le=b.length;Ee<Le;Ee++)if(re=b[Ee],re!=null&&re>Z)Z=re}else C=Ue(C,V),mt(b,function(Ce,Ke,qe){if(he=C(Ce,Ke,qe),he>ae||he===-1/0&&Z===-1/0)Z=Ce,ae=he});return Z}function $r(b,C,V){var Z=1/0,ae=1/0,re,he;if(C==null||typeof C=="number"&&typeof b[0]!="object"&&b!=null){b=rt(b)?b:lt(b);for(var Ee=0,Le=b.length;Ee<Le;Ee++)if(re=b[Ee],re!=null&&re<Z)Z=re}else C=Ue(C,V),mt(b,function(Ce,Ke,qe){if(he=C(Ce,Ke,qe),he<ae||he===1/0&&Z===1/0)Z=Ce,ae=he});return Z}function fr(b,C,V){if(C==null||V){if(!rt(b))b=lt(b);return b[Mt(b.length-1)]}var Z=rt(b)?ge(b):lt(b),ae=M(Z);C=Math.max(Math.min(C,ae),0);var re=ae-1;for(var he=0;he<C;he++){var Ee=Mt(he,re),Le=Z[he];Z[he]=Z[Ee],Z[Ee]=Le}return Z.slice(0,C)}function Jr(b){return fr(b,1/0)}function Qr(b,C,V){var Z=0;return C=Ue(C,V),zt(wt(b,function(ae,re,he){return{value:ae,index:Z++,criteria:C(ae,re,he)}}).sort(function(ae,re){var he=ae.criteria,Ee=re.criteria;if(he!==Ee){if(he>Ee||he===void 0)return 1;if(he<Ee||Ee===void 0)return-1}return ae.index-re.index}),"value")}function Ct(b,C){return function(V,Z,ae){var re=C?[[],[]]:{};return Z=Ue(Z,ae),mt(V,function(he,Ee){var Le=Z(he,Ee,V);b(re,he,Le)}),re}}var qr=Ct(function(b,C,V){if(ke(b,V))b[V].push(C);else b[V]=[C]}),en=Ct(function(b,C,V){b[V]=C}),tn=Ct(function(b,C,V){if(ke(b,V))b[V]++;else b[V]=1}),rn=Ct(function(b,C,V){b[V?0:1].push(C)},!0),nn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function an(b){if(!b)return[];if(Ie(b))return t.call(b);if(U(b))return b.match(nn);if(rt(b))return wt(b,st);return lt(b)}function sn(b){if(b==null)return 0;return rt(b)?b.length:ue(b).length}function un(b,C,V){return C in V}var hr=A(function(b,C){var V={},Z=C[0];if(b==null)return V;if(Q(Z)){if(C.length>1)Z=Je(Z,C[1]);C=me(b)}else Z=un,C=gt(C,!1,!1),b=Object(b);for(var ae=0,re=C.length;ae<re;ae++){var he=C[ae],Ee=b[he];if(Z(Ee,he,b))V[he]=Ee}return V}),ln=A(function(b,C){var V=C[0],Z;if(Q(V)){if(V=Pt(V),C.length>1)Z=C[1]}else C=wt(gt(C,!1,!1),String),V=function(ae,re){return!vt(C,re)};return hr(b,V,Z)});function pr(b,C,V){return t.call(b,0,Math.max(0,b.length-(C==null||V?1:C)))}function Ut(b,C,V){if(b==null||b.length<1)return C==null||V?void 0:[];if(C==null||V)return b[0];return pr(b,b.length-C)}function Rt(b,C,V){return t.call(b,C==null||V?1:C)}function cn(b,C,V){if(b==null||b.length<1)return C==null||V?void 0:[];if(C==null||V)return b[b.length-1];return Rt(b,Math.max(0,b.length-C))}function fn(b){return Et(b,Boolean)}function hn(b,C){return gt(b,C,!1)}var dr=A(function(b,C){return C=gt(C,!0,!0),Et(b,function(V){return!vt(C,V)})}),pn=A(function(b,C){return dr(b,C)});function Wt(b,C,V,Z){if(!O(C))Z=V,V=C,C=!1;if(V!=null)V=Ue(V,Z);var ae=[],re=[];for(var he=0,Ee=M(b);he<Ee;he++){var Le=b[he],Ce=V?V(Le,he,b):Le;if(C&&!V){if(!he||re!==Ce)ae.push(Le);re=Ce}else if(V){if(!vt(re,Ce))re.push(Ce),ae.push(Le)}else if(!vt(ae,Le))ae.push(Le)}return ae}var dn=A(function(b){return Wt(gt(b,!0,!0))});function mn(b){var C=[],V=arguments.length;for(var Z=0,ae=M(b);Z<ae;Z++){var re=b[Z];if(vt(C,re))continue;var he;for(he=1;he<V;he++)if(!vt(arguments[he],re))break;if(he===V)C.push(re)}return C}function jt(b){var C=b&&cr(b,M).length||0,V=Array(C);for(var Z=0;Z<C;Z++)V[Z]=zt(b,Z);return V}var vn=A(jt);function gn(b,C){var V={};for(var Z=0,ae=M(b);Z<ae;Z++)if(C)V[b[Z]]=C[Z];else V[b[Z][0]]=b[Z][1];return V}function wn(b,C,V){if(C==null)C=b||0,b=0;if(!V)V=C<b?-1:1;var Z=Math.max(Math.ceil((C-b)/V),0),ae=Array(Z);for(var re=0;re<Z;re++,b+=V)ae[re]=b;return ae}function _n(b,C){if(C==null||C<1)return[];var V=[],Z=0,ae=b.length;while(Z<ae)V.push(t.call(b,Z,Z+=C));return V}function Ht(b,C){return b._chain?_e(C).chain():C}function mr(b){return mt(_t(b),function(C){var V=_e[C]=b[C];_e.prototype[C]=function(){var Z=[this._wrapped];return i.apply(Z,arguments),Ht(this,V.apply(_e,Z))}}),_e}mt(["pop","push","reverse","shift","sort","splice","unshift"],function(b){var C=k[b];_e.prototype[b]=function(){var V=this._wrapped;if(V!=null){if(C.apply(V,arguments),(b==="shift"||b==="splice")&&V.length===0)delete V[0]}return Ht(this,V)}}),mt(["concat","join","slice"],function(b){var C=k[b];_e.prototype[b]=function(){var V=this._wrapped;if(V!=null)V=C.apply(V,arguments);return Ht(this,V)}});var bn={__proto__:null,VERSION:I,restArguments:A,isObject:W,isNull:S,isUndefined:P,isBoolean:O,isElement:H,isString:U,isNumber:J,isDate:D,isRegExp:te,isError:ye,isSymbol:se,isArrayBuffer:ve,isDataView:Be,isArray:Ie,isFunction:Q,isArguments:Re,isFinite:We,isNaN:Ae,isTypedArray:N,isEmpty:we,isMatch:Se,isEqual:oe,isMap:at,isWeakMap:xt,isSet:kt,isWeakSet:St,keys:ue,allKeys:me,values:lt,pairs:Tt,invert:ht,functions:_t,methods:_t,extend:It,extendOwn:Nt,assign:Nt,defaults:R,create:fe,clone:ge,tap:Oe,get:tt,has:ot,mapObject:At,identity:st,constant:d,noop:dt,toPath:je,property:ut,propertyOf:Ot,matcher:it,matches:it,times:br,random:Mt,now:Dt,escape:Er,unescape:Tr,templateSettings:Dr,template:Or,result:Cr,uniqueId:Mr,chain:Lr,iteratee:pt,partial:bt,bind:Jt,bindAll:Pr,memoize:Fr,delay:Qt,defer:Br,throttle:Xr,debounce:zr,wrap:Ur,negate:Pt,compose:Wr,after:jr,before:qt,once:Hr,findKey:er,findIndex:Ft,findLastIndex:rr,sortedIndex:nr,indexOf:ar,lastIndexOf:Vr,find:Bt,detect:Bt,findWhere:Zr,each:mt,forEach:mt,map:wt,collect:wt,reduce:Xt,foldl:Xt,inject:Xt,reduceRight:sr,foldr:sr,filter:Et,select:Et,reject:Yr,every:ur,all:ur,some:lr,any:lr,contains:vt,includes:vt,include:vt,invoke:Gr,pluck:zt,where:Kr,max:cr,min:$r,shuffle:Jr,sample:fr,sortBy:Qr,groupBy:qr,indexBy:en,countBy:tn,partition:rn,toArray:an,size:sn,pick:hr,omit:ln,first:Ut,head:Ut,take:Ut,initial:pr,last:cn,rest:Rt,tail:Rt,drop:Rt,compact:fn,flatten:hn,without:pn,uniq:Wt,unique:Wt,union:dn,intersection:mn,difference:dr,unzip:jt,transpose:jt,zip:vn,object:gn,range:wn,chunk:_n,mixin:mr,default:_e},Vt=mr(bn);return Vt._=Vt,Vt})}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],68:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=[].slice,l={}.hasOwnProperty;z=function(){var g,_,w,y,h,T;if(T=arguments[0],h=2<=arguments.length?t.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(g=0,w=h.length;g<w;g++)if(y=h[g],y!=null)for(_ in y){if(!l.call(y,_))continue;T[_]=y[_]}return T},c=function(g){return!!g&&Object.prototype.toString.call(g)==="[object Function]"},o=function(g){var _;return!!g&&((_=typeof g)==="function"||_==="object")},p=function(g){if(c(Array.isArray))return Array.isArray(g);else return Object.prototype.toString.call(g)==="[object Array]"},k=function(g){var _;if(p(g))return!g.length;else{for(_ in g){if(!l.call(g,_))continue;return!1}return!0}},i=function(g){var _,w;return o(g)&&(w=Object.getPrototypeOf(g))&&(_=w.constructor)&&typeof _==="function"&&_ instanceof _&&Function.prototype.toString.call(_)===Function.prototype.toString.call(Object)},I=function(g){if(c(g.valueOf))return g.valueOf();else return g},ce.exports.assign=z,ce.exports.isFunction=c,ce.exports.isObject=o,ce.exports.isArray=p,ce.exports.isEmpty=k,ce.exports.isPlainObject=i,ce.exports.getValue=I}).call(this)},{}],69:[function(X,ce,L){(function(){var z;ce.exports=z=function(){function I(p,k,c){if(this.options=p.options,this.stringify=p.stringify,this.parent=p,k==null)throw Error("Missing attribute name. "+this.debugInfo(k));if(c==null)throw Error("Missing attribute value. "+this.debugInfo(k));this.name=this.stringify.attName(k),this.value=this.stringify.attValue(c)}return I.prototype.clone=function(){return Object.create(this)},I.prototype.toString=function(p){return this.options.writer.set(p).attribute(this)},I.prototype.debugInfo=function(p){var k,c;if(p=p||this.name,p==null&&!((k=this.parent)!=null?k.name:void 0))return"";else if(p==null)return"parent: <"+this.parent.name+">";else if(!((c=this.parent)!=null?c.name:void 0))return"attribute: {"+p+"}";else return"attribute: {"+p+"}, parent: <"+this.parent.name+">"},I}()}).call(this)},{}],70:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).cdata(this)},o}(I)}).call(this)},{"./XMLNode":81}],71:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).comment(this)},o}(I)}).call(this)},{"./XMLNode":81}],72:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l,g,_,w){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw Error("Missing DTD attribute name. "+this.debugInfo(t));if(!g)throw Error("Missing DTD attribute type. "+this.debugInfo(t));if(!_)throw Error("Missing DTD attribute default. "+this.debugInfo(t));if(_.indexOf("#")!==0)_="#"+_;if(!_.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(t));if(w&&!_.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(t));this.elementName=this.stringify.eleName(t),this.attributeName=this.stringify.attName(l),this.attributeType=this.stringify.dtdAttType(g),this.defaultValue=this.stringify.dtdAttDefault(w),this.defaultValueType=_}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdAttList(this)},o}(I)}).call(this)},{"./XMLNode":81}],73:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!l)l="(#PCDATA)";if(Array.isArray(l))l="("+l.join(",")+")";this.name=this.stringify.eleName(t),this.value=this.stringify.dtdElementValue(l)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdElement(this)},o}(I)}).call(this)},{"./XMLNode":81}],74:[function(X,ce,L){(function(){var z,I,p,k=function(o,i){for(var t in i)if(c.call(i,t))o[t]=i[t];function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},c={}.hasOwnProperty;p=X("./Utility").isObject,I=X("./XMLNode"),ce.exports=z=function(o){k(i,o);function i(t,l,g,_){if(i.__super__.constructor.call(this,t),g==null)throw Error("Missing DTD entity name. "+this.debugInfo(g));if(_==null)throw Error("Missing DTD entity value. "+this.debugInfo(g));if(this.pe=!!l,this.name=this.stringify.eleName(g),!p(_))this.value=this.stringify.dtdEntityValue(_);else{if(!_.pubID&&!_.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(g));if(_.pubID&&!_.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(g));if(_.pubID!=null)this.pubID=this.stringify.dtdPubID(_.pubID);if(_.sysID!=null)this.sysID=this.stringify.dtdSysID(_.sysID);if(_.nData!=null)this.nData=this.stringify.dtdNData(_.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(g))}}return i.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},i}(I)}).call(this)},{"./Utility":68,"./XMLNode":81}],75:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD notation name. "+this.debugInfo(t));if(!l.pubID&&!l.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(t));if(this.name=this.stringify.eleName(t),l.pubID!=null)this.pubID=this.stringify.dtdPubID(l.pubID);if(l.sysID!=null)this.sysID=this.stringify.dtdSysID(l.sysID)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdNotation(this)},o}(I)}).call(this)},{"./XMLNode":81}],76:[function(X,ce,L){(function(){var z,I,p,k=function(o,i){for(var t in i)if(c.call(i,t))o[t]=i[t];function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},c={}.hasOwnProperty;p=X("./Utility").isObject,I=X("./XMLNode"),ce.exports=z=function(o){k(i,o);function i(t,l,g,_){var w;if(i.__super__.constructor.call(this,t),p(l))w=l,l=w.version,g=w.encoding,_=w.standalone;if(!l)l="1.0";if(this.version=this.stringify.xmlVersion(l),g!=null)this.encoding=this.stringify.xmlEncoding(g);if(_!=null)this.standalone=this.stringify.xmlStandalone(_)}return i.prototype.toString=function(t){return this.options.writer.set(t).declaration(this)},i}(I)}).call(this)},{"./Utility":68,"./XMLNode":81}],77:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=function(g,_){for(var w in _)if(l.call(_,w))g[w]=_[w];function y(){this.constructor=g}return y.prototype=_.prototype,g.prototype=new y,g.__super__=_.prototype,g},l={}.hasOwnProperty;i=X("./Utility").isObject,o=X("./XMLNode"),z=X("./XMLDTDAttList"),p=X("./XMLDTDEntity"),I=X("./XMLDTDElement"),k=X("./XMLDTDNotation"),ce.exports=c=function(g){t(_,g);function _(w,y,h){var T,x;if(_.__super__.constructor.call(this,w),this.name="!DOCTYPE",this.documentObject=w,i(y))T=y,y=T.pubID,h=T.sysID;if(h==null)x=[y,h],h=x[0],y=x[1];if(y!=null)this.pubID=this.stringify.dtdPubID(y);if(h!=null)this.sysID=this.stringify.dtdSysID(h)}return _.prototype.element=function(w,y){var h=new I(this,w,y);return this.children.push(h),this},_.prototype.attList=function(w,y,h,T,x){var n=new z(this,w,y,h,T,x);return this.children.push(n),this},_.prototype.entity=function(w,y){var h=new p(this,!1,w,y);return this.children.push(h),this},_.prototype.pEntity=function(w,y){var h=new p(this,!0,w,y);return this.children.push(h),this},_.prototype.notation=function(w,y){var h=new k(this,w,y);return this.children.push(h),this},_.prototype.toString=function(w){return this.options.writer.set(w).docType(this)},_.prototype.ele=function(w,y){return this.element(w,y)},_.prototype.att=function(w,y,h,T,x){return this.attList(w,y,h,T,x)},_.prototype.ent=function(w,y){return this.entity(w,y)},_.prototype.pent=function(w,y){return this.pEntity(w,y)},_.prototype.not=function(w,y){return this.notation(w,y)},_.prototype.up=function(){return this.root()||this.documentObject},_}(o)}).call(this)},{"./Utility":68,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLNode":81}],78:[function(X,ce,L){(function(){var z,I,p,k,c,o=function(t,l){for(var g in l)if(i.call(l,g))t[g]=l[g];function _(){this.constructor=t}return _.prototype=l.prototype,t.prototype=new _,t.__super__=l.prototype,t},i={}.hasOwnProperty;c=X("./Utility").isPlainObject,I=X("./XMLNode"),k=X("./XMLStringifier"),p=X("./XMLStringWriter"),ce.exports=z=function(t){o(l,t);function l(g){if(l.__super__.constructor.call(this,null),this.name="?xml",g||(g={}),!g.writer)g.writer=new p;this.options=g,this.stringify=new k(g),this.isDocument=!0}return l.prototype.end=function(g){var _;if(!g)g=this.options.writer;else if(c(g))_=g,g=this.options.writer.set(_);return g.document(this)},l.prototype.toString=function(g){return this.options.writer.set(g).document(this)},l}(I)}).call(this)},{"./Utility":68,"./XMLNode":81,"./XMLStringWriter":85,"./XMLStringifier":86}],79:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T,x,n,v,a,E,F,A={}.hasOwnProperty;F=X("./Utility"),a=F.isObject,v=F.isFunction,E=F.isPlainObject,n=F.getValue,_=X("./XMLElement"),I=X("./XMLCData"),p=X("./XMLComment"),y=X("./XMLRaw"),x=X("./XMLText"),w=X("./XMLProcessingInstruction"),t=X("./XMLDeclaration"),l=X("./XMLDocType"),k=X("./XMLDTDAttList"),o=X("./XMLDTDEntity"),c=X("./XMLDTDElement"),i=X("./XMLDTDNotation"),z=X("./XMLAttribute"),T=X("./XMLStringifier"),h=X("./XMLStringWriter"),ce.exports=g=function(){function W(S,P,O){var H;if(this.name="?xml",S||(S={}),!S.writer)S.writer=new h(S);else if(E(S.writer))H=S.writer,S.writer=new h(H);this.options=S,this.writer=S.writer,this.stringify=new T(S),this.onDataCallback=P||function(){},this.onEndCallback=O||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return W.prototype.node=function(S,P,O){var H;if(S==null)throw Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw Error("Document can only have one root node. "+this.debugInfo(S));if(this.openCurrent(),S=n(S),P==null)P={};if(P=n(P),!a(P))H=[P,O],O=H[0],P=H[1];if(this.currentNode=new _(this,S,P),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null)this.text(O);return this},W.prototype.element=function(S,P,O){if(this.currentNode&&this.currentNode instanceof l)return this.dtdElement.apply(this,arguments);else return this.node(S,P,O)},W.prototype.attribute=function(S,P){var O,H;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null)S=n(S);if(a(S))for(O in S){if(!A.call(S,O))continue;H=S[O],this.attribute(O,H)}else{if(v(P))P=P.apply();if(!this.options.skipNullAttributes||P!=null)this.currentNode.attributes[S]=new z(this,S,P)}return this},W.prototype.text=function(S){var P;return this.openCurrent(),P=new x(this,S),this.onData(this.writer.text(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.cdata=function(S){var P;return this.openCurrent(),P=new I(this,S),this.onData(this.writer.cdata(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.comment=function(S){var P;return this.openCurrent(),P=new p(this,S),this.onData(this.writer.comment(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.raw=function(S){var P;return this.openCurrent(),P=new y(this,S),this.onData(this.writer.raw(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.instruction=function(S,P){var O,H,ee,U,J;if(this.openCurrent(),S!=null)S=n(S);if(P!=null)P=n(P);if(Array.isArray(S))for(O=0,U=S.length;O<U;O++)H=S[O],this.instruction(H);else if(a(S))for(H in S){if(!A.call(S,H))continue;ee=S[H],this.instruction(H,ee)}else{if(v(P))P=P.apply();J=new w(this,S,P),this.onData(this.writer.processingInstruction(J,this.currentLevel+1),this.currentLevel+1)}return this},W.prototype.declaration=function(S,P,O){var H;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return H=new t(this,S,P,O),this.onData(this.writer.declaration(H,this.currentLevel+1),this.currentLevel+1),this},W.prototype.doctype=function(S,P,O){if(this.openCurrent(),S==null)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new l(this,P,O),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},W.prototype.dtdElement=function(S,P){var O;return this.openCurrent(),O=new c(this,S,P),this.onData(this.writer.dtdElement(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.attList=function(S,P,O,H,ee){var U;return this.openCurrent(),U=new k(this,S,P,O,H,ee),this.onData(this.writer.dtdAttList(U,this.currentLevel+1),this.currentLevel+1),this},W.prototype.entity=function(S,P){var O;return this.openCurrent(),O=new o(this,!1,S,P),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.pEntity=function(S,P){var O;return this.openCurrent(),O=new o(this,!0,S,P),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.notation=function(S,P){var O;return this.openCurrent(),O=new i(this,S,P),this.onData(this.writer.dtdNotation(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");if(this.currentNode){if(this.currentNode.children)this.closeNode(this.currentNode);else this.openNode(this.currentNode);this.currentNode=null}else this.closeNode(this.openTags[this.currentLevel]);return delete this.openTags[this.currentLevel],this.currentLevel--,this},W.prototype.end=function(){while(this.currentLevel>=0)this.up();return this.onEnd()},W.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},W.prototype.openNode=function(S){if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S instanceof _)this.root=S;return this.onData(this.writer.openNode(S,this.currentLevel),this.currentLevel),S.isOpen=!0}},W.prototype.closeNode=function(S){if(!S.isClosed)return this.onData(this.writer.closeNode(S,this.currentLevel),this.currentLevel),S.isClosed=!0},W.prototype.onData=function(S,P){return this.documentStarted=!0,this.onDataCallback(S,P+1)},W.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},W.prototype.debugInfo=function(S){if(S==null)return"";else return"node: <"+S+">"},W.prototype.ele=function(){return this.element.apply(this,arguments)},W.prototype.nod=function(S,P,O){return this.node(S,P,O)},W.prototype.txt=function(S){return this.text(S)},W.prototype.dat=function(S){return this.cdata(S)},W.prototype.com=function(S){return this.comment(S)},W.prototype.ins=function(S,P){return this.instruction(S,P)},W.prototype.dec=function(S,P,O){return this.declaration(S,P,O)},W.prototype.dtd=function(S,P,O){return this.doctype(S,P,O)},W.prototype.e=function(S,P,O){return this.element(S,P,O)},W.prototype.n=function(S,P,O){return this.node(S,P,O)},W.prototype.t=function(S){return this.text(S)},W.prototype.d=function(S){return this.cdata(S)},W.prototype.c=function(S){return this.comment(S)},W.prototype.r=function(S){return this.raw(S)},W.prototype.i=function(S,P){return this.instruction(S,P)},W.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},W.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},W.prototype.ent=function(S,P){return this.entity(S,P)},W.prototype.pent=function(S,P){return this.pEntity(S,P)},W.prototype.not=function(S,P){return this.notation(S,P)},W}()}).call(this)},{"./Utility":68,"./XMLAttribute":69,"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLStringWriter":85,"./XMLStringifier":86,"./XMLText":87}],80:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=function(g,_){for(var w in _)if(l.call(_,w))g[w]=_[w];function y(){this.constructor=g}return y.prototype=_.prototype,g.prototype=new y,g.__super__=_.prototype,g},l={}.hasOwnProperty;i=X("./Utility"),o=i.isObject,c=i.isFunction,k=i.getValue,p=X("./XMLNode"),z=X("./XMLAttribute"),ce.exports=I=function(g){t(_,g);function _(w,y,h){if(_.__super__.constructor.call(this,w),y==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.eleName(y),this.attributes={},h!=null)this.attribute(h);if(w.isDocument)this.isRoot=!0,this.documentObject=w,w.rootObject=this}return _.prototype.clone=function(){var w,y,h,T;if(h=Object.create(this),h.isRoot)h.documentObject=null;h.attributes={},T=this.attributes;for(y in T){if(!l.call(T,y))continue;w=T[y],h.attributes[y]=w.clone()}return h.children=[],this.children.forEach(function(x){var n=x.clone();return n.parent=h,h.children.push(n)}),h},_.prototype.attribute=function(w,y){var h,T;if(w!=null)w=k(w);if(o(w))for(h in w){if(!l.call(w,h))continue;T=w[h],this.attribute(h,T)}else{if(c(y))y=y.apply();if(!this.options.skipNullAttributes||y!=null)this.attributes[w]=new z(this,w,y)}return this},_.prototype.removeAttribute=function(w){var y,h,T;if(w==null)throw Error("Missing attribute name. "+this.debugInfo());if(w=k(w),Array.isArray(w))for(h=0,T=w.length;h<T;h++)y=w[h],delete this.attributes[y];else delete this.attributes[w];return this},_.prototype.toString=function(w){return this.options.writer.set(w).element(this)},_.prototype.att=function(w,y){return this.attribute(w,y)},_.prototype.a=function(w,y){return this.attribute(w,y)},_}(p)}).call(this)},{"./Utility":68,"./XMLAttribute":69,"./XMLNode":81}],81:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T={}.hasOwnProperty;h=X("./Utility"),y=h.isObject,w=h.isFunction,_=h.isEmpty,g=h.getValue,c=null,z=null,I=null,p=null,k=null,t=null,l=null,i=null,ce.exports=o=function(){function x(n){if(this.parent=n,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.children=[],!c)c=X("./XMLElement"),z=X("./XMLCData"),I=X("./XMLComment"),p=X("./XMLDeclaration"),k=X("./XMLDocType"),t=X("./XMLRaw"),l=X("./XMLText"),i=X("./XMLProcessingInstruction")}return x.prototype.element=function(n,v,a){var E,F,A,W,S,P,O,H,ee,U;if(P=null,v==null)v={};if(v=g(v),!y(v))ee=[v,a],a=ee[0],v=ee[1];if(n!=null)n=g(n);if(Array.isArray(n))for(A=0,O=n.length;A<O;A++)F=n[A],P=this.element(F);else if(w(n))P=this.element(n.apply());else if(y(n))for(S in n){if(!T.call(n,S))continue;if(U=n[S],w(U))U=U.apply();if(y(U)&&_(U))U=null;if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&S.indexOf(this.stringify.convertAttKey)===0)P=this.attribute(S.substr(this.stringify.convertAttKey.length),U);else if(!this.options.separateArrayItems&&Array.isArray(U))for(W=0,H=U.length;W<H;W++)F=U[W],E={},E[S]=F,P=this.element(E);else if(y(U))P=this.element(S),P.element(U);else P=this.element(S,U)}else if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&n.indexOf(this.stringify.convertTextKey)===0)P=this.text(a);else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&n.indexOf(this.stringify.convertCDataKey)===0)P=this.cdata(a);else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&n.indexOf(this.stringify.convertCommentKey)===0)P=this.comment(a);else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&n.indexOf(this.stringify.convertRawKey)===0)P=this.raw(a);else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&n.indexOf(this.stringify.convertPIKey)===0)P=this.instruction(n.substr(this.stringify.convertPIKey.length),a);else P=this.node(n,v,a);if(P==null)throw Error("Could not create any elements with: "+n+". "+this.debugInfo());return P},x.prototype.insertBefore=function(n,v,a){var E,F,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(n));return F=this.parent.children.indexOf(this),A=this.parent.children.splice(F),E=this.parent.element(n,v,a),Array.prototype.push.apply(this.parent.children,A),E},x.prototype.insertAfter=function(n,v,a){var E,F,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(n));return F=this.parent.children.indexOf(this),A=this.parent.children.splice(F+1),E=this.parent.element(n,v,a),Array.prototype.push.apply(this.parent.children,A),E},x.prototype.remove=function(){var n,v;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return n=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[n,n-n+1].concat(v=[])),this.parent},x.prototype.node=function(n,v,a){var E,F;if(n!=null)n=g(n);if(v||(v={}),v=g(v),!y(v))F=[v,a],a=F[0],v=F[1];if(E=new c(this,n,v),a!=null)E.text(a);return this.children.push(E),E},x.prototype.text=function(n){var v=new l(this,n);return this.children.push(v),this},x.prototype.cdata=function(n){var v=new z(this,n);return this.children.push(v),this},x.prototype.comment=function(n){var v=new I(this,n);return this.children.push(v),this},x.prototype.commentBefore=function(n){var v,a,E;return a=this.parent.children.indexOf(this),E=this.parent.children.splice(a),v=this.parent.comment(n),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.commentAfter=function(n){var v,a,E;return a=this.parent.children.indexOf(this),E=this.parent.children.splice(a+1),v=this.parent.comment(n),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.raw=function(n){var v=new t(this,n);return this.children.push(v),this},x.prototype.instruction=function(n,v){var a,E,F,A,W;if(n!=null)n=g(n);if(v!=null)v=g(v);if(Array.isArray(n))for(A=0,W=n.length;A<W;A++)a=n[A],this.instruction(a);else if(y(n))for(a in n){if(!T.call(n,a))continue;E=n[a],this.instruction(a,E)}else{if(w(v))v=v.apply();F=new i(this,n,v),this.children.push(F)}return this},x.prototype.instructionBefore=function(n,v){var a,E,F;return E=this.parent.children.indexOf(this),F=this.parent.children.splice(E),a=this.parent.instruction(n,v),Array.prototype.push.apply(this.parent.children,F),this},x.prototype.instructionAfter=function(n,v){var a,E,F;return E=this.parent.children.indexOf(this),F=this.parent.children.splice(E+1),a=this.parent.instruction(n,v),Array.prototype.push.apply(this.parent.children,F),this},x.prototype.declaration=function(n,v,a){var E,F;if(E=this.document(),F=new p(E,n,v,a),E.children[0]instanceof p)E.children[0]=F;else E.children.unshift(F);return E.root()||E},x.prototype.doctype=function(n,v){var a,E,F,A,W,S,P,O,H,ee;E=this.document(),F=new k(E,n,v),H=E.children;for(A=W=0,P=H.length;W<P;A=++W)if(a=H[A],a instanceof k)return E.children[A]=F,F;ee=E.children;for(A=S=0,O=ee.length;S<O;A=++S)if(a=ee[A],a.isRoot)return E.children.splice(A,0,F),F;return E.children.push(F),F},x.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},x.prototype.root=function(){var n=this;while(n)if(n.isDocument)return n.rootObject;else if(n.isRoot)return n;else n=n.parent},x.prototype.document=function(){var n=this;while(n)if(n.isDocument)return n;else n=n.parent},x.prototype.end=function(n){return this.document().end(n)},x.prototype.prev=function(){var n=this.parent.children.indexOf(this);if(n<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[n-1]},x.prototype.next=function(){var n=this.parent.children.indexOf(this);if(n===-1||n===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[n+1]},x.prototype.importDocument=function(n){var v=n.root().clone();return v.parent=this,v.isRoot=!1,this.children.push(v),this},x.prototype.debugInfo=function(n){var v,a;if(n=n||this.name,n==null&&!((v=this.parent)!=null?v.name:void 0))return"";else if(n==null)return"parent: <"+this.parent.name+">";else if(!((a=this.parent)!=null?a.name:void 0))return"node: <"+n+">";else return"node: <"+n+">, parent: <"+this.parent.name+">"},x.prototype.ele=function(n,v,a){return this.element(n,v,a)},x.prototype.nod=function(n,v,a){return this.node(n,v,a)},x.prototype.txt=function(n){return this.text(n)},x.prototype.dat=function(n){return this.cdata(n)},x.prototype.com=function(n){return this.comment(n)},x.prototype.ins=function(n,v){return this.instruction(n,v)},x.prototype.doc=function(){return this.document()},x.prototype.dec=function(n,v,a){return this.declaration(n,v,a)},x.prototype.dtd=function(n,v){return this.doctype(n,v)},x.prototype.e=function(n,v,a){return this.element(n,v,a)},x.prototype.n=function(n,v,a){return this.node(n,v,a)},x.prototype.t=function(n){return this.text(n)},x.prototype.d=function(n){return this.cdata(n)},x.prototype.c=function(n){return this.comment(n)},x.prototype.r=function(n){return this.raw(n)},x.prototype.i=function(n,v){return this.instruction(n,v)},x.prototype.u=function(){return this.up()},x.prototype.importXMLBuilder=function(n){return this.importDocument(n)},x}()}).call(this)},{"./Utility":68,"./XMLCData":70,"./XMLComment":71,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87}],82:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.target=this.stringify.insTarget(t),l)this.value=this.stringify.insValue(l)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).processingInstruction(this)},o}(z)}).call(this)},{"./XMLNode":81}],83:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).raw(this)},o}(z)}).call(this)},{"./XMLNode":81}],84:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T=function(n,v){for(var a in v)if(x.call(v,a))n[a]=v[a];function E(){this.constructor=n}return E.prototype=v.prototype,n.prototype=new E,n.__super__=v.prototype,n},x={}.hasOwnProperty;i=X("./XMLDeclaration"),t=X("./XMLDocType"),z=X("./XMLCData"),I=X("./XMLComment"),l=X("./XMLElement"),_=X("./XMLRaw"),y=X("./XMLText"),g=X("./XMLProcessingInstruction"),p=X("./XMLDTDAttList"),k=X("./XMLDTDElement"),c=X("./XMLDTDEntity"),o=X("./XMLDTDNotation"),h=X("./XMLWriterBase"),ce.exports=w=function(n){T(v,n);function v(a,E){v.__super__.constructor.call(this,E),this.stream=a}return v.prototype.document=function(a){var E,F,A,W,S,P,O,H;P=a.children;for(F=0,W=P.length;F<W;F++)E=P[F],E.isLastRootNode=!1;a.children[a.children.length-1].isLastRootNode=!0,O=a.children,H=[];for(A=0,S=O.length;A<S;A++)switch(E=O[A],!1){case!(E instanceof i):H.push(this.declaration(E));break;case!(E instanceof t):H.push(this.docType(E));break;case!(E instanceof I):H.push(this.comment(E));break;case!(E instanceof g):H.push(this.processingInstruction(E));break;default:H.push(this.element(E))}return H},v.prototype.attribute=function(a){return this.stream.write(" "+a.name+'="'+a.value+'"')},v.prototype.cdata=function(a,E){return this.stream.write(this.space(E)+"<![CDATA["+a.text+"]]>"+this.endline(a))},v.prototype.comment=function(a,E){return this.stream.write(this.space(E)+"<!-- "+a.text+" -->"+this.endline(a))},v.prototype.declaration=function(a,E){if(this.stream.write(this.space(E)),this.stream.write('<?xml version="'+a.version+'"'),a.encoding!=null)this.stream.write(' encoding="'+a.encoding+'"');if(a.standalone!=null)this.stream.write(' standalone="'+a.standalone+'"');return this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(a))},v.prototype.docType=function(a,E){var F,A,W,S;if(E||(E=0),this.stream.write(this.space(E)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');if(a.children.length>0){this.stream.write(" ["),this.stream.write(this.endline(a)),S=a.children;for(A=0,W=S.length;A<W;A++)switch(F=S[A],!1){case!(F instanceof p):this.dtdAttList(F,E+1);break;case!(F instanceof k):this.dtdElement(F,E+1);break;case!(F instanceof c):this.dtdEntity(F,E+1);break;case!(F instanceof o):this.dtdNotation(F,E+1);break;case!(F instanceof z):this.cdata(F,E+1);break;case!(F instanceof I):this.comment(F,E+1);break;case!(F instanceof g):this.processingInstruction(F,E+1);break;default:throw Error("Unknown DTD node type: "+F.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(a))},v.prototype.element=function(a,E){var F,A,W,S,P,O,H,ee;E||(E=0),ee=this.space(E),this.stream.write(ee+"<"+a.name),O=a.attributes;for(P in O){if(!x.call(O,P))continue;F=O[P],this.attribute(F)}if(a.children.length===0||a.children.every(function(U){return U.value===""}))if(this.allowEmpty)this.stream.write("></"+a.name+">");else this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&a.children.length===1&&a.children[0].value!=null)this.stream.write(">"),this.stream.write(a.children[0].value),this.stream.write("</"+a.name+">");else{this.stream.write(">"+this.newline),H=a.children;for(W=0,S=H.length;W<S;W++)switch(A=H[W],!1){case!(A instanceof z):this.cdata(A,E+1);break;case!(A instanceof I):this.comment(A,E+1);break;case!(A instanceof l):this.element(A,E+1);break;case!(A instanceof _):this.raw(A,E+1);break;case!(A instanceof y):this.text(A,E+1);break;case!(A instanceof g):this.processingInstruction(A,E+1);break;default:throw Error("Unknown XML node type: "+A.constructor.name)}this.stream.write(ee+"</"+a.name+">")}return this.stream.write(this.endline(a))},v.prototype.processingInstruction=function(a,E){if(this.stream.write(this.space(E)+"<?"+a.target),a.value)this.stream.write(" "+a.value);return this.stream.write(this.spacebeforeslash+"?>"+this.endline(a))},v.prototype.raw=function(a,E){return this.stream.write(this.space(E)+a.value+this.endline(a))},v.prototype.text=function(a,E){return this.stream.write(this.space(E)+a.value+this.endline(a))},v.prototype.dtdAttList=function(a,E){if(this.stream.write(this.space(E)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType),a.defaultValueType!=="#DEFAULT")this.stream.write(" "+a.defaultValueType);if(a.defaultValue)this.stream.write(' "'+a.defaultValue+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdElement=function(a,E){return this.stream.write(this.space(E)+"<!ELEMENT "+a.name+" "+a.value),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdEntity=function(a,E){if(this.stream.write(this.space(E)+"<!ENTITY"),a.pe)this.stream.write(" %");if(this.stream.write(" "+a.name),a.value)this.stream.write(' "'+a.value+'"');else{if(a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');if(a.nData)this.stream.write(" NDATA "+a.nData)}return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdNotation=function(a,E){if(this.stream.write(this.space(E)+"<!NOTATION "+a.name),a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.pubID)this.stream.write(' PUBLIC "'+a.pubID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.endline=function(a){if(!a.isLastRootNode)return this.newline;else return""},v}(h)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],85:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T=function(n,v){for(var a in v)if(x.call(v,a))n[a]=v[a];function E(){this.constructor=n}return E.prototype=v.prototype,n.prototype=new E,n.__super__=v.prototype,n},x={}.hasOwnProperty;i=X("./XMLDeclaration"),t=X("./XMLDocType"),z=X("./XMLCData"),I=X("./XMLComment"),l=X("./XMLElement"),_=X("./XMLRaw"),y=X("./XMLText"),g=X("./XMLProcessingInstruction"),p=X("./XMLDTDAttList"),k=X("./XMLDTDElement"),c=X("./XMLDTDEntity"),o=X("./XMLDTDNotation"),h=X("./XMLWriterBase"),ce.exports=w=function(n){T(v,n);function v(a){v.__super__.constructor.call(this,a)}return v.prototype.document=function(a){var E,F,A,W,S;this.textispresent=!1,W="",S=a.children;for(F=0,A=S.length;F<A;F++)E=S[F],W+=function(){switch(!1){case!(E instanceof i):return this.declaration(E);case!(E instanceof t):return this.docType(E);case!(E instanceof I):return this.comment(E);case!(E instanceof g):return this.processingInstruction(E);default:return this.element(E,0)}}.call(this);if(this.pretty&&W.slice(-this.newline.length)===this.newline)W=W.slice(0,-this.newline.length);return W},v.prototype.attribute=function(a){return" "+a.name+'="'+a.value+'"'},v.prototype.cdata=function(a,E){return this.space(E)+"<![CDATA["+a.text+"]]>"+this.newline},v.prototype.comment=function(a,E){return this.space(E)+"<!-- "+a.text+" -->"+this.newline},v.prototype.declaration=function(a,E){var F=this.space(E);if(F+='<?xml version="'+a.version+'"',a.encoding!=null)F+=' encoding="'+a.encoding+'"';if(a.standalone!=null)F+=' standalone="'+a.standalone+'"';return F+=this.spacebeforeslash+"?>",F+=this.newline,F},v.prototype.docType=function(a,E){var F,A,W,S,P;if(E||(E=0),S=this.space(E),S+="<!DOCTYPE "+a.root().name,a.pubID&&a.sysID)S+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)S+=' SYSTEM "'+a.sysID+'"';if(a.children.length>0){S+=" [",S+=this.newline,P=a.children;for(A=0,W=P.length;A<W;A++)F=P[A],S+=function(){switch(!1){case!(F instanceof p):return this.dtdAttList(F,E+1);case!(F instanceof k):return this.dtdElement(F,E+1);case!(F instanceof c):return this.dtdEntity(F,E+1);case!(F instanceof o):return this.dtdNotation(F,E+1);case!(F instanceof z):return this.cdata(F,E+1);case!(F instanceof I):return this.comment(F,E+1);case!(F instanceof g):return this.processingInstruction(F,E+1);default:throw Error("Unknown DTD node type: "+F.constructor.name)}}.call(this);S+="]"}return S+=this.spacebeforeslash+">",S+=this.newline,S},v.prototype.element=function(a,E){var F,A,W,S,P,O,H,ee,U,J,D,te,ye;if(E||(E=0),ye=!1,this.textispresent)this.newline="",this.pretty=!1;else this.newline=this.newlinedefault,this.pretty=this.prettydefault;te=this.space(E),ee="",ee+=te+"<"+a.name,U=a.attributes;for(H in U){if(!x.call(U,H))continue;F=U[H],ee+=this.attribute(F)}if(a.children.length===0||a.children.every(function(se){return se.value===""}))if(this.allowEmpty)ee+="></"+a.name+">"+this.newline;else ee+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&a.children.length===1&&a.children[0].value!=null)ee+=">",ee+=a.children[0].value,ee+="</"+a.name+">"+this.newline;else{if(this.dontprettytextnodes){J=a.children;for(W=0,P=J.length;W<P;W++)if(A=J[W],A.value!=null){this.textispresent++,ye=!0;break}}if(this.textispresent)this.newline="",this.pretty=!1,te=this.space(E);ee+=">"+this.newline,D=a.children;for(S=0,O=D.length;S<O;S++)A=D[S],ee+=function(){switch(!1){case!(A instanceof z):return this.cdata(A,E+1);case!(A instanceof I):return this.comment(A,E+1);case!(A instanceof l):return this.element(A,E+1);case!(A instanceof _):return this.raw(A,E+1);case!(A instanceof y):return this.text(A,E+1);case!(A instanceof g):return this.processingInstruction(A,E+1);default:throw Error("Unknown XML node type: "+A.constructor.name)}}.call(this);if(ye)this.textispresent--;if(!this.textispresent)this.newline=this.newlinedefault,this.pretty=this.prettydefault;ee+=te+"</"+a.name+">"+this.newline}return ee},v.prototype.processingInstruction=function(a,E){var F=this.space(E)+"<?"+a.target;if(a.value)F+=" "+a.value;return F+=this.spacebeforeslash+"?>"+this.newline,F},v.prototype.raw=function(a,E){return this.space(E)+a.value+this.newline},v.prototype.text=function(a,E){return this.space(E)+a.value+this.newline},v.prototype.dtdAttList=function(a,E){var F=this.space(E)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType;if(a.defaultValueType!=="#DEFAULT")F+=" "+a.defaultValueType;if(a.defaultValue)F+=' "'+a.defaultValue+'"';return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.dtdElement=function(a,E){return this.space(E)+"<!ELEMENT "+a.name+" "+a.value+this.spacebeforeslash+">"+this.newline},v.prototype.dtdEntity=function(a,E){var F=this.space(E)+"<!ENTITY";if(a.pe)F+=" %";if(F+=" "+a.name,a.value)F+=' "'+a.value+'"';else{if(a.pubID&&a.sysID)F+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)F+=' SYSTEM "'+a.sysID+'"';if(a.nData)F+=" NDATA "+a.nData}return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.dtdNotation=function(a,E){var F=this.space(E)+"<!NOTATION "+a.name;if(a.pubID&&a.sysID)F+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.pubID)F+=' PUBLIC "'+a.pubID+'"';else if(a.sysID)F+=' SYSTEM "'+a.sysID+'"';return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.openNode=function(a,E){var F,A,W,S;if(E||(E=0),a instanceof l){W=this.space(E)+"<"+a.name,S=a.attributes;for(A in S){if(!x.call(S,A))continue;F=S[A],W+=this.attribute(F)}return W+=(a.children?">":"/>")+this.newline,W}else{if(W=this.space(E)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID)W+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)W+=' SYSTEM "'+a.sysID+'"';return W+=(a.children?" [":">")+this.newline,W}},v.prototype.closeNode=function(a,E){switch(E||(E=0),!1){case!(a instanceof l):return this.space(E)+"</"+a.name+">"+this.newline;case!(a instanceof t):return this.space(E)+"]>"+this.newline}},v}(h)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],86:[function(X,ce,L){(function(){var z,I=function(k,c){return function(){return k.apply(c,arguments)}},p={}.hasOwnProperty;ce.exports=z=function(){function k(c){this.assertLegalChar=I(this.assertLegalChar,this);var o,i,t;c||(c={}),this.noDoubleEncoding=c.noDoubleEncoding,i=c.stringify||{};for(o in i){if(!p.call(i,o))continue;t=i[o],this[o]=t}}return k.prototype.eleName=function(c){return c=""+c||"",this.assertLegalChar(c)},k.prototype.eleText=function(c){return c=""+c||"",this.assertLegalChar(this.elEscape(c))},k.prototype.cdata=function(c){return c=""+c||"",c=c.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(c)},k.prototype.comment=function(c){if(c=""+c||"",c.match(/--/))throw Error("Comment text cannot contain double-hypen: "+c);return this.assertLegalChar(c)},k.prototype.raw=function(c){return""+c||""},k.prototype.attName=function(c){return c=""+c||""},k.prototype.attValue=function(c){return c=""+c||"",this.attEscape(c)},k.prototype.insTarget=function(c){return""+c||""},k.prototype.insValue=function(c){if(c=""+c||"",c.match(/\?>/))throw Error("Invalid processing instruction value: "+c);return c},k.prototype.xmlVersion=function(c){if(c=""+c||"",!c.match(/1\.[0-9]+/))throw Error("Invalid version number: "+c);return c},k.prototype.xmlEncoding=function(c){if(c=""+c||"",!c.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+c);return c},k.prototype.xmlStandalone=function(c){if(c)return"yes";else return"no"},k.prototype.dtdPubID=function(c){return""+c||""},k.prototype.dtdSysID=function(c){return""+c||""},k.prototype.dtdElementValue=function(c){return""+c||""},k.prototype.dtdAttType=function(c){return""+c||""},k.prototype.dtdAttDefault=function(c){if(c!=null)return""+c||"";else return c},k.prototype.dtdEntityValue=function(c){return""+c||""},k.prototype.dtdNData=function(c){return""+c||""},k.prototype.convertAttKey="@",k.prototype.convertPIKey="?",k.prototype.convertTextKey="#text",k.prototype.convertCDataKey="#cdata",k.prototype.convertCommentKey="#comment",k.prototype.convertRawKey="#raw",k.prototype.assertLegalChar=function(c){var o=c.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(o)throw Error("Invalid character in string: "+c+" at index "+o.index);return c},k.prototype.elEscape=function(c){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return c.replace(o,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},k.prototype.attEscape=function(c){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return c.replace(o,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},k}()}).call(this)},{}],87:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).text(this)},o}(z)}).call(this)},{"./XMLNode":81}],88:[function(X,ce,L){(function(){var z,I={}.hasOwnProperty;ce.exports=z=function(){function p(k){var c,o,i,t,l,g,_,w,y;if(k||(k={}),this.pretty=k.pretty||!1,this.allowEmpty=(o=k.allowEmpty)!=null?o:!1,this.pretty)this.indent=(i=k.indent)!=null?i:" ",this.newline=(t=k.newline)!=null?t:`
57
57
  `,this.offset=(l=k.offset)!=null?l:0,this.dontprettytextnodes=(g=k.dontprettytextnodes)!=null?g:0;else this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0;if(this.spacebeforeslash=(_=k.spacebeforeslash)!=null?_:"",this.spacebeforeslash===!0)this.spacebeforeslash=" ";this.newlinedefault=this.newline,this.prettydefault=this.pretty,w=k.writer||{};for(c in w){if(!I.call(w,c))continue;y=w[c],this[c]=y}}return p.prototype.set=function(k){var c,o,i;if(k||(k={}),"pretty"in k)this.pretty=k.pretty;if("allowEmpty"in k)this.allowEmpty=k.allowEmpty;if(this.pretty)this.indent="indent"in k?k.indent:" ",this.newline="newline"in k?k.newline:`
58
- `,this.offset="offset"in k?k.offset:0,this.dontprettytextnodes="dontprettytextnodes"in k?k.dontprettytextnodes:0;else this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0;if(this.spacebeforeslash="spacebeforeslash"in k?k.spacebeforeslash:"",this.spacebeforeslash===!0)this.spacebeforeslash=" ";this.newlinedefault=this.newline,this.prettydefault=this.pretty,o=k.writer||{};for(c in o){if(!I.call(o,c))continue;i=o[c],this[c]=i}return this},p.prototype.space=function(k){var c;if(this.pretty)if(c=(k||0)+this.offset+1,c>0)return Array(c).join(this.indent);else return"";else return""},p}()}).call(this)},{}],89:[function(X,ce,L){(function(){var z,I,p,k,c,o,i;i=X("./Utility"),c=i.assign,o=i.isFunction,z=X("./XMLDocument"),I=X("./XMLDocumentCB"),k=X("./XMLStringWriter"),p=X("./XMLStreamWriter"),ce.exports.create=function(t,l,g,_){var w,y;if(t==null)throw Error("Root element needs a name.");if(_=c({},l,g,_),w=new z(_),y=w.element(t),!_.headless){if(w.declaration(_),_.pubID!=null||_.sysID!=null)w.doctype(_)}return y},ce.exports.begin=function(t,l,g){var _;if(o(t))_=[t,l],l=_[0],g=_[1],t={};if(l)return new I(t,l,g);else return new z(t)},ce.exports.stringWriter=function(t){return new k(t)},ce.exports.streamWriter=function(t,l){return new p(t,l)}}).call(this)},{"./Utility":68,"./XMLDocument":78,"./XMLDocumentCB":79,"./XMLStreamWriter":84,"./XMLStringWriter":85}]},{},[21])(21)})});var _r=an(wr(),1);async function En(et){return(await _r.default.convertToHtml({arrayBuffer:et})).value}function Nn({source:et,name:ft,revision:Yt=0}){let{value:X,loading:ce,error:L}=Yu(et,En,Yt),z=u(()=>X?Ep(X):"",[X]);if(L)return e(Br,{name:ft,message:L});if(ce||X===null)return e("div",{className:"flex flex-1 items-center justify-center gap-2 text-xs text-ink/40",children:[e(m,{size:14,className:"animate-spin"}),e("span",{children:"Loading document…"})]});return e("div",{className:"flex-1 overflow-auto bg-paper",children:e("div",{className:"prose-content mx-auto max-w-4xl p-6 font-sans",dangerouslySetInnerHTML:{__html:z}})})}export{Nn as DocxView};
58
+ `,this.offset="offset"in k?k.offset:0,this.dontprettytextnodes="dontprettytextnodes"in k?k.dontprettytextnodes:0;else this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0;if(this.spacebeforeslash="spacebeforeslash"in k?k.spacebeforeslash:"",this.spacebeforeslash===!0)this.spacebeforeslash=" ";this.newlinedefault=this.newline,this.prettydefault=this.pretty,o=k.writer||{};for(c in o){if(!I.call(o,c))continue;i=o[c],this[c]=i}return this},p.prototype.space=function(k){var c;if(this.pretty)if(c=(k||0)+this.offset+1,c>0)return Array(c).join(this.indent);else return"";else return""},p}()}).call(this)},{}],89:[function(X,ce,L){(function(){var z,I,p,k,c,o,i;i=X("./Utility"),c=i.assign,o=i.isFunction,z=X("./XMLDocument"),I=X("./XMLDocumentCB"),k=X("./XMLStringWriter"),p=X("./XMLStreamWriter"),ce.exports.create=function(t,l,g,_){var w,y;if(t==null)throw Error("Root element needs a name.");if(_=c({},l,g,_),w=new z(_),y=w.element(t),!_.headless){if(w.declaration(_),_.pubID!=null||_.sysID!=null)w.doctype(_)}return y},ce.exports.begin=function(t,l,g){var _;if(o(t))_=[t,l],l=_[0],g=_[1],t={};if(l)return new I(t,l,g);else return new z(t)},ce.exports.stringWriter=function(t){return new k(t)},ce.exports.streamWriter=function(t,l){return new p(t,l)}}).call(this)},{"./Utility":68,"./XMLDocument":78,"./XMLDocumentCB":79,"./XMLStreamWriter":84,"./XMLStringWriter":85}]},{},[21])(21)})});var _r=on(wr(),1);async function En(et){return(await _r.default.convertToHtml({arrayBuffer:et})).value}function Nn({source:et,name:ft,revision:Yt=0}){let{value:X,loading:ce,error:L}=Ju(et,En,Yt),z=u(()=>X?Ip(X):"",[X]);if(L)return e(Ir,{name:ft,message:L});if(ce||X===null)return e("div",{className:"flex flex-1 items-center justify-center gap-2 text-xs text-ink/40",children:[e(m,{size:14,className:"animate-spin"}),e("span",{children:"Loading document…"})]});return e("div",{className:"flex-1 overflow-auto bg-paper",children:e("div",{className:"prose-content mx-auto max-w-4xl p-6 font-sans",dangerouslySetInnerHTML:{__html:z}})})}export{Nn as DocxView};