@cortex-agent/server 2026.11.17 → 2026.12.5
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.
- package/README.md +5 -5
- package/THIRD_PARTY_NOTICES.txt +860 -294
- package/defaults/hooks/quota-stop.mjs +37 -0
- package/defaults/prompts/clean-workspace.md +5 -0
- package/dist/agent-adapter/claude/remote-mcp-proxy.js +1 -1
- package/dist/chunks/agent-runner-LVZVKBZX.js +4 -0
- package/dist/chunks/anthropic-messages-TT6454AA.js +8 -0
- package/dist/chunks/azure-openai-responses-52LR2XZD.js +4 -0
- package/dist/chunks/bedrock-converse-stream-EOZGYUNY.js +60 -0
- package/dist/chunks/child-runner-SMG2VOU5.js +4 -0
- package/dist/chunks/chunk-24DH4IR5.js +4 -0
- package/dist/chunks/chunk-25XKBRDT.js +70 -0
- package/dist/chunks/{chunk-VTL3Z2OP.js → chunk-2ABET62E.js} +1 -1
- package/dist/chunks/chunk-2BVUA256.js +4 -0
- package/dist/chunks/{chunk-4YLAGSDM.js → chunk-2WFL62UO.js} +1 -1
- package/dist/chunks/{chunk-LQTFDC67.js → chunk-335SSANX.js} +1 -1
- package/dist/chunks/chunk-377OPTXX.js +17 -0
- package/dist/chunks/chunk-3EZNVLBF.js +129 -0
- package/dist/chunks/{chunk-V6X7Y62J.js → chunk-3O6ZG5HA.js} +1 -1
- package/dist/chunks/{chunk-6AKUD3CF.js → chunk-3XLHL5YT.js} +1 -1
- package/dist/chunks/{chunk-2ATTYCRJ.js → chunk-4HRI75GU.js} +1 -1
- package/dist/chunks/chunk-4JBYLRPM.js +57 -0
- package/dist/chunks/chunk-4KKV7VKE.js +4 -0
- package/dist/chunks/chunk-4KQHDDC5.js +4 -0
- package/dist/chunks/chunk-4SWD4JMP.js +33 -0
- package/dist/chunks/chunk-52VCLZS5.js +4 -0
- package/dist/chunks/chunk-54P7TSY3.js +10 -0
- package/dist/chunks/chunk-5DVSAXOI.js +7 -0
- package/dist/chunks/chunk-5F3A62YS.js +4 -0
- package/dist/chunks/{chunk-S3MR37DL.js → chunk-5FHETFZM.js} +1 -1
- package/dist/chunks/{chunk-CEGSDGYQ.js → chunk-5LBLRAHS.js} +1 -1
- package/dist/chunks/chunk-5UYVNA3W.js +4 -0
- package/dist/chunks/chunk-6G3OYMCV.js +21 -0
- package/dist/chunks/chunk-7GGPYU5E.js +30 -0
- package/dist/chunks/chunk-7TYSMLUV.js +4 -0
- package/dist/chunks/chunk-7W7VYUTK.js +5 -0
- package/dist/chunks/chunk-AXYAZTTN.js +6 -0
- package/dist/chunks/chunk-B3NB243Z.js +4 -0
- package/dist/chunks/{chunk-XPPZ6Y3X.js → chunk-BKYP6AGM.js} +1 -1
- package/dist/chunks/{chunk-QUXPMNFQ.js → chunk-BVEDNESB.js} +1 -1
- package/dist/chunks/chunk-BWDJS6A4.js +12 -0
- package/dist/chunks/chunk-C6YVF7EI.js +4 -0
- package/dist/chunks/chunk-CEJIYYVE.js +15 -0
- package/dist/chunks/{chunk-5PAW3DEU.js → chunk-CI2RHH74.js} +4 -4
- package/dist/chunks/{chunk-OFEPDNRB.js → chunk-CMSOOLJB.js} +1 -1
- package/dist/chunks/chunk-CSVTYYLP.js +4 -0
- package/dist/chunks/chunk-DE5EGVKG.js +6 -0
- package/dist/chunks/{chunk-E6BYRULL.js → chunk-DK3RPZOQ.js} +1 -1
- package/dist/chunks/{chunk-ROVKOIHF.js → chunk-DK4UCK7L.js} +1 -1
- package/dist/chunks/chunk-DYLBVUAU.js +4 -0
- package/dist/chunks/{chunk-WBSE3EF3.js → chunk-FDC2GRBK.js} +1 -1
- package/dist/chunks/chunk-FE7HH5JS.js +18 -0
- package/dist/chunks/chunk-FYD57YRO.js +436 -0
- package/dist/chunks/chunk-G264APQN.js +5 -0
- package/dist/chunks/chunk-G4JYZFEO.js +11 -0
- package/dist/chunks/chunk-GFFM56U2.js +4 -0
- package/dist/chunks/chunk-GOS3P7KS.js +132 -0
- package/dist/chunks/{chunk-2VVRTJQN.js → chunk-HVN37UXD.js} +1 -1
- package/dist/chunks/{chunk-53TQNK7Z.js → chunk-IGZWZP7Z.js} +1 -1
- package/dist/chunks/{chunk-AFTBQRPN.js → chunk-IJ7XFQMI.js} +1 -1
- package/dist/chunks/{chunk-U23S37TT.js → chunk-IMMGYDAB.js} +1 -1
- package/dist/chunks/chunk-IOWBF7UK.js +10 -0
- package/dist/chunks/{chunk-MGYYSX7Y.js → chunk-ITGCWQFK.js} +1 -1
- package/dist/chunks/{chunk-QEL6CMLE.js → chunk-IVZ7QUEG.js} +1 -1
- package/dist/chunks/{chunk-EE3WT25T.js → chunk-IWY2HIFK.js} +1 -1
- package/dist/chunks/{chunk-KGJZAYQD.js → chunk-J7OBATRN.js} +1 -1
- package/dist/chunks/{chunk-NXZS5PEW.js → chunk-JGUEIW2W.js} +1 -1
- package/dist/chunks/chunk-JZ7U7RUK.js +351 -0
- package/dist/chunks/{chunk-VIMHSW6J.js → chunk-KJUQCCB5.js} +1 -1
- package/dist/chunks/{chunk-BUZQBTV2.js → chunk-KST6OY76.js} +1 -1
- package/dist/chunks/{chunk-KDPY2YA3.js → chunk-KZSAFVSY.js} +2 -2
- package/dist/chunks/chunk-LD2ZSH3M.js +903 -0
- package/dist/chunks/{chunk-RYLSRII6.js → chunk-LE6QPXN6.js} +1 -1
- package/dist/chunks/{chunk-TX46YMGI.js → chunk-LIIZI3HY.js} +1 -1
- package/dist/chunks/{chunk-3CZPBLB3.js → chunk-MJQ2D2OP.js} +1 -1
- package/dist/chunks/{chunk-P7TVR4GY.js → chunk-NHHR4DCF.js} +1 -1
- package/dist/chunks/chunk-NW4GW47L.js +4 -0
- package/dist/chunks/chunk-OALEJ6FG.js +60 -0
- package/dist/chunks/chunk-OIV4DIMB.js +4 -0
- package/dist/chunks/{chunk-T73GHMFB.js → chunk-OJ37ZWBG.js} +1 -1
- package/dist/chunks/{chunk-7GEBDPTT.js → chunk-OZXMPBUX.js} +1 -1
- package/dist/chunks/chunk-PG7452XE.js +4 -0
- package/dist/chunks/chunk-PJCUB7YJ.js +4 -0
- package/dist/chunks/{chunk-RA2BUYI3.js → chunk-PTS3J4DQ.js} +1 -1
- package/dist/chunks/{chunk-2ROGTDM2.js → chunk-PVVEEBUU.js} +1 -1
- package/dist/chunks/{chunk-W6AKCEYF.js → chunk-Q7BZLPBU.js} +1 -1
- package/dist/chunks/{chunk-SY2HV3V5.js → chunk-QC66ZXPP.js} +1 -1
- package/dist/chunks/chunk-QXFWIL4C.js +4 -0
- package/dist/chunks/{chunk-NRD57ICT.js → chunk-R2CCD4OF.js} +1 -1
- package/dist/chunks/{chunk-R52AVUQB.js → chunk-RG5GP4RB.js} +1 -1
- package/dist/chunks/{chunk-IKLTEWA3.js → chunk-RW2F2QNP.js} +1 -1
- package/dist/chunks/{chunk-XEBEWR6Y.js → chunk-RWPO3NZ3.js} +1 -1
- package/dist/chunks/chunk-SDUS2H3E.js +4 -0
- package/dist/chunks/chunk-SIHGKM4E.js +4 -0
- package/dist/chunks/{chunk-NNBSSISP.js → chunk-SKHFU5DI.js} +1 -1
- package/dist/chunks/{chunk-STUHNKQS.js → chunk-SM45TH22.js} +1 -1
- package/dist/chunks/chunk-T54CZKNJ.js +6 -0
- package/dist/chunks/chunk-TRXLIL7V.js +4 -0
- package/dist/chunks/{chunk-KUDK7GPS.js → chunk-UEEW2R4E.js} +1 -1
- package/dist/chunks/chunk-UHXPRU6G.js +10 -0
- package/dist/chunks/chunk-UPQVWHZ3.js +4 -0
- package/dist/chunks/{chunk-BDLKI2NT.js → chunk-VHX2GHBF.js} +1 -1
- package/dist/chunks/chunk-VOAKRJ4R.js +4 -0
- package/dist/chunks/{chunk-FP7ML72L.js → chunk-WU7RNAZD.js} +1 -1
- package/dist/chunks/chunk-WZC4TDDM.js +6 -0
- package/dist/chunks/chunk-X2TKJ7KR.js +11 -0
- package/dist/chunks/{chunk-H4QZ2P3Z.js → chunk-X5ND4H4P.js} +1 -1
- package/dist/chunks/{chunk-5A6CA5TM.js → chunk-Y3AOGNDT.js} +1 -1
- package/dist/chunks/chunk-Y6DGVTKM.js +6 -0
- package/dist/chunks/{chunk-LP7T32PW.js → chunk-YAEHSSR4.js} +1 -1
- package/dist/chunks/chunk-YWPBE5LP.js +4 -0
- package/dist/chunks/chunk-ZAVX7G2M.js +15 -0
- package/dist/chunks/chunk-ZD2M73XA.js +19 -0
- package/dist/chunks/chunk-ZD4O6NPV.js +4 -0
- package/dist/chunks/chunk-ZNAMETPQ.js +4 -0
- package/dist/chunks/chunk-ZY6N5LVQ.js +4 -0
- package/dist/chunks/chunk-ZYQ4TDTT.js +81 -0
- package/dist/chunks/cli-VB2N7HEK.js +55 -0
- package/dist/chunks/cloudflare-workers-ai-system-one-YKU742EC.js +4 -0
- package/dist/chunks/context-CI2FKEQE.js +4 -0
- package/dist/chunks/cost-CZRRSIUF.js +5 -0
- package/dist/chunks/dist-QCNQN6DY.js +4 -0
- package/dist/chunks/{easter-egg-3d-CZH7AYZ7.js → easter-egg-3d-XR5S2O3T.js} +1 -1
- package/dist/chunks/execution-repo-5TLV2NM4.js +4 -0
- package/dist/chunks/{executions-BN6OLLVM.js → executions-I3UUIGSL.js} +1 -1
- package/dist/chunks/file-Y5G56IUT.js +4 -0
- package/dist/chunks/github-copilot-BRU2SRRZ.js +4 -0
- package/dist/chunks/google-generative-ai-ZF5QEUZV.js +4 -0
- package/dist/chunks/google-vertex-4PJZZI3Y.js +4 -0
- package/dist/chunks/init-A6GY656J.js +4 -0
- package/dist/chunks/{install-cli-ABBD7DO5.js → install-cli-FALWKQYO.js} +1 -1
- package/dist/chunks/{interaction-ask-EE2UPR3Q.js → interaction-ask-O5HGF6CH.js} +1 -1
- package/dist/chunks/{interaction-plan-C446T2GZ.js → interaction-plan-JTVDN3BC.js} +1 -1
- package/dist/chunks/kimi-coding-ZCIBMDZ6.js +4 -0
- package/dist/chunks/{llama-cpp-classify-IA2F2H7A.js → llama-cpp-classify-NRUXAIGQ.js} +3 -3
- package/dist/chunks/local-client-stop-RS4AHNF4.js +4 -0
- package/dist/chunks/memory-cli-DIT4DQF3.js +11 -0
- package/dist/chunks/meta-JQH66YU7.js +4 -0
- package/dist/chunks/mistral-conversations-CXHOECUV.js +7 -0
- package/dist/chunks/model-resolver-GIBPYRKP.js +4 -0
- package/dist/chunks/monitor-Z2HKNY5E.js +4 -0
- package/dist/chunks/openai-codex-responses-U6DGMGDK.js +12 -0
- package/dist/chunks/openai-completions-PP4XLLOM.js +9 -0
- package/dist/chunks/{openai-decisions-P5UX7BWY.js → openai-decisions-JU6QQKEM.js} +1 -1
- package/dist/chunks/openai-responses-2SG757TL.js +6 -0
- package/dist/chunks/openrouter-images-32M7YZWC.js +4 -0
- package/dist/chunks/pi-messages-VSINMXN4.js +10 -0
- package/dist/chunks/radius-THYKWV4E.js +4 -0
- package/dist/chunks/remote-ops-2WBEFQ3E.js +14 -0
- package/dist/chunks/runner-5MKMRTIN.js +4 -0
- package/dist/chunks/runtime-DST3H5JP.js +4 -0
- package/dist/chunks/schedule-cli-V7Y2BBVY.js +4 -0
- package/dist/chunks/slack-R7SEJYMY.js +4 -0
- package/dist/chunks/start-ui-http-7K5JOLPU.js +43 -0
- package/dist/chunks/subagent-Z5IQ4L54.js +4 -0
- package/dist/chunks/tool-shims-YCXZWTST.js +4 -0
- package/dist/chunks/typesafe-system-one-M2DABJSZ.js +4 -0
- package/dist/chunks/ui-board-HQIE4RZG.js +5 -0
- package/dist/chunks/ui-decision-YBZDS4YW.js +4 -0
- package/dist/chunks/{ui-file-6PLXHSTB.js → ui-file-SRD4ILBS.js} +1 -1
- package/dist/chunks/ui-view-Z25MTZT7.js +4 -0
- package/dist/chunks/virtual-modules-H4DXPJZB.js +4 -0
- package/dist/chunks/{waitpoint-W5M3BE55.js → waitpoint-M6JZBSLT.js} +1 -1
- package/dist/chunks/workers-SQ2R32TK.js +4 -0
- package/dist/client-bundle/client.mjs +229 -62
- package/dist/client-bundle/manifest.json +2 -2
- package/dist/core/pi-sdk.js +1 -1
- package/dist/domain/auth/cc-auth-cli.js +1 -1
- package/dist/domain/mcp/bundled-server.js +1 -1
- package/dist/domain/mcp/feishu/client.js +1 -1
- package/dist/entry/app.js +138 -556
- package/dist/entry/browser-cli.js +1 -1
- package/dist/entry/cli.js +1 -1
- package/dist/entry/cortex-cli.js +1 -1
- package/dist/entry/daemon.js +3 -3
- package/dist/entry/hook-cli.js +1 -1
- package/dist/entry/production-app-bootstrap.js +1 -1
- package/dist/entry/production-evidence-export-cli.js +1 -1
- package/dist/entry/signal-cli.js +1 -1
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/vendor/pi/CHANGELOG.md +330 -0
- package/vendor/pi/dist/codemode-worker.js +2 -0
- package/vendor/pi/dist/core/export-html/ansi-to-html.js +57 -20
- package/vendor/pi/dist/core/export-html/template.css +9 -0
- package/vendor/pi/dist/core/export-html/template.js +166 -46
- package/vendor/pi/dist/core/export-html/tool-renderer.js +5 -3
- package/vendor/pi/dist/core/extensions/loader.js +1 -1
- package/vendor/pi/dist/extensions/codemode/execute.js +15 -13
- package/vendor/pi/dist/modes/interactive/theme/theme.js +36 -23
- package/vendor/pi/dist/utils/image-resize-worker.js +1 -1
- package/vendor/pi/dist/utils/image-resize.js +1 -1
- package/vendor/pi/docs/cli.md +35 -12
- package/vendor/pi/docs/custom-provider.md +2 -0
- package/vendor/pi/docs/environment-variables.md +2 -0
- package/vendor/pi/docs/extensions.md +3192 -225
- package/vendor/pi/docs/keybindings.md +2 -2
- package/vendor/pi/docs/llama-cpp.md +27 -19
- package/vendor/pi/docs/mcp.md +6 -4
- package/vendor/pi/docs/message-types.md +1 -1
- package/vendor/pi/docs/models-configuration.md +9 -3
- package/vendor/pi/docs/models.md +2 -1
- package/vendor/pi/docs/nvidia-rtx-llama-cpp.md +5 -5
- package/vendor/pi/docs/packages.md +24 -0
- package/vendor/pi/docs/prompt-templates.md +1 -1
- package/vendor/pi/docs/providers.md +4 -2
- package/vendor/pi/docs/quickstart.md +7 -3
- package/vendor/pi/docs/rpc-commands.md +1 -1
- package/vendor/pi/docs/rpc.md +4 -2
- package/vendor/pi/docs/sessions.md +17 -3
- package/vendor/pi/docs/settings.md +6 -5
- package/vendor/pi/docs/slash-commands.md +3 -2
- package/vendor/pi/docs/terminal-setup.md +3 -1
- package/vendor/pi/docs/tmux.md +6 -0
- package/vendor/pi/docs/tui.md +4 -0
- package/vendor/pi/docs/windows.md +27 -0
- package/vendor/pi/examples/extensions/README.md +2 -1
- package/vendor/pi/examples/extensions/custom-provider-anthropic/index.ts +27 -31
- package/vendor/pi/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/vendor/pi/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/vendor/pi/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/vendor/pi/examples/extensions/debug-provider.ts +2 -2
- package/vendor/pi/examples/extensions/gondolin/index.ts +4 -7
- package/vendor/pi/examples/extensions/gondolin/package-lock.json +19 -29
- package/vendor/pi/examples/extensions/gondolin/package.json +2 -2
- package/vendor/pi/examples/extensions/plan-mode/index.ts +23 -13
- package/vendor/pi/examples/extensions/plan-mode/utils.ts +42 -16
- package/vendor/pi/examples/extensions/preset.ts +2 -0
- package/vendor/pi/examples/extensions/reload-runtime.ts +17 -5
- package/vendor/pi/examples/extensions/subagent/README.md +14 -11
- package/vendor/pi/examples/extensions/subagent/index.ts +392 -171
- package/vendor/pi/examples/extensions/todo.ts +7 -0
- package/vendor/pi/examples/extensions/tools.ts +2 -0
- package/vendor/pi/examples/extensions/with-deps/package-lock.json +2 -2
- package/vendor/pi/examples/extensions/with-deps/package.json +1 -1
- package/vendor/pi/examples/tsconfig.json +208 -0
- package/vendor/pi/package.json +15 -16
- package/vendor/pi/schemas/models.schema.json +66 -37
- package/vendor/pi/schemas/settings.schema.json +18 -1
- package/vendor/pi-ai/bedrock.js +1 -1
- package/vendor/pi-ai/oauth-load.js +1 -1
- package/web/dist/assets/{board-math-css-BgIyUG-C.js → board-math-css-DKX6FcUS.js} +1 -1
- package/web/dist/assets/index-D11wi0uG.js +540 -0
- package/web/dist/assets/index-JedYumhY.css +1 -0
- package/web/dist/assets/{index-C2eMpcuI.js → index-jl30Gy8P.js} +1 -1
- package/web/dist/index.html +2 -2
- package/dist/chunks/anthropic-messages-M732OMEE.js +0 -8
- package/dist/chunks/azure-openai-responses-RAKTV6JY.js +0 -4
- package/dist/chunks/bedrock-converse-stream-WNUGNZ27.js +0 -62
- package/dist/chunks/child-runner-MO5RT6FH.js +0 -4
- package/dist/chunks/chunk-3CPIMAYX.js +0 -30
- package/dist/chunks/chunk-3ORG56I5.js +0 -8
- package/dist/chunks/chunk-4EX2JJWB.js +0 -4
- package/dist/chunks/chunk-5DF5WJNM.js +0 -60
- package/dist/chunks/chunk-7GAYFN52.js +0 -18
- package/dist/chunks/chunk-AVXDF7AG.js +0 -4
- package/dist/chunks/chunk-BJGYGEZO.js +0 -6
- package/dist/chunks/chunk-BZDIAI5M.js +0 -125
- package/dist/chunks/chunk-CK3P345X.js +0 -133
- package/dist/chunks/chunk-CVC66CFV.js +0 -33
- package/dist/chunks/chunk-ETIBCA2S.js +0 -4
- package/dist/chunks/chunk-FF7UELTU.js +0 -4
- package/dist/chunks/chunk-FX6MOGLR.js +0 -11
- package/dist/chunks/chunk-G2V65UBA.js +0 -4
- package/dist/chunks/chunk-HGPBHTVD.js +0 -6
- package/dist/chunks/chunk-IYVZHGUQ.js +0 -5
- package/dist/chunks/chunk-JJDEQ6N2.js +0 -4
- package/dist/chunks/chunk-KDYEGGMW.js +0 -4
- package/dist/chunks/chunk-L6VCIGWS.js +0 -11
- package/dist/chunks/chunk-LACGULCN.js +0 -10
- package/dist/chunks/chunk-LAWOWPZX.js +0 -363
- package/dist/chunks/chunk-NNTQUHLO.js +0 -877
- package/dist/chunks/chunk-OE4KH3NJ.js +0 -4
- package/dist/chunks/chunk-OSEIQ7SS.js +0 -4
- package/dist/chunks/chunk-PZMGBKUR.js +0 -13
- package/dist/chunks/chunk-QBKCAIJG.js +0 -4
- package/dist/chunks/chunk-QMSSIDRQ.js +0 -70
- package/dist/chunks/chunk-QUUEQRIT.js +0 -4
- package/dist/chunks/chunk-RA6HKFBV.js +0 -4
- package/dist/chunks/chunk-RDW6FRF5.js +0 -4
- package/dist/chunks/chunk-RF4JLYBX.js +0 -6
- package/dist/chunks/chunk-SFX7V5O2.js +0 -10
- package/dist/chunks/chunk-SKHLZ6XY.js +0 -9
- package/dist/chunks/chunk-STCNHXPJ.js +0 -6
- package/dist/chunks/chunk-UT6DGZDO.js +0 -4
- package/dist/chunks/chunk-VBN2JSER.js +0 -5
- package/dist/chunks/chunk-VK5J556O.js +0 -4
- package/dist/chunks/chunk-VPVSKJGX.js +0 -6
- package/dist/chunks/chunk-VQUPKMDR.js +0 -4
- package/dist/chunks/chunk-WEZWKMYU.js +0 -4
- package/dist/chunks/chunk-XYSXL3KX.js +0 -4
- package/dist/chunks/chunk-Y3GFB5XM.js +0 -8
- package/dist/chunks/chunk-YAAKL3QS.js +0 -80
- package/dist/chunks/chunk-YB5LUJHS.js +0 -65
- package/dist/chunks/chunk-YKKEI5GI.js +0 -4
- package/dist/chunks/chunk-Z24SBRJK.js +0 -4
- package/dist/chunks/cli-5DBTRMHU.js +0 -53
- package/dist/chunks/cloudflare-workers-ai-system-one-32JCFHI3.js +0 -4
- package/dist/chunks/context-GQKWKFRM.js +0 -4
- package/dist/chunks/cost-OOO32GLC.js +0 -5
- package/dist/chunks/dist-V5FRMUFH.js +0 -4
- package/dist/chunks/execution-repo-XXL4FXC6.js +0 -4
- package/dist/chunks/file-H572PL2Z.js +0 -4
- package/dist/chunks/github-copilot-HAI2DA62.js +0 -4
- package/dist/chunks/google-generative-ai-2G4ITOZL.js +0 -4
- package/dist/chunks/google-vertex-PACHCMRZ.js +0 -4
- package/dist/chunks/init-75F4V7SK.js +0 -4
- package/dist/chunks/kimi-coding-HMJRKCPA.js +0 -4
- package/dist/chunks/local-client-stop-5YOLXGYT.js +0 -4
- package/dist/chunks/memory-cli-5SSF6YJM.js +0 -11
- package/dist/chunks/meta-KY3LNFV2.js +0 -4
- package/dist/chunks/mistral-conversations-VHP63CDS.js +0 -7
- package/dist/chunks/model-resolver-FVJNZ6NA.js +0 -4
- package/dist/chunks/openai-codex-responses-EHJ4AZBE.js +0 -12
- package/dist/chunks/openai-completions-CRAGQFCE.js +0 -9
- package/dist/chunks/openai-responses-IZ22NVQ7.js +0 -6
- package/dist/chunks/openrouter-images-W2JAMSRH.js +0 -4
- package/dist/chunks/pi-messages-MJEEQU2R.js +0 -10
- package/dist/chunks/radius-ZM7ZRMXF.js +0 -4
- package/dist/chunks/remote-ops-O5CR4RGA.js +0 -14
- package/dist/chunks/runner-S6R3US24.js +0 -4
- package/dist/chunks/runtime-6YLTA2ZD.js +0 -4
- package/dist/chunks/schedule-cli-4T4YC5V5.js +0 -4
- package/dist/chunks/slack-2CGM4SMY.js +0 -4
- package/dist/chunks/start-ui-http-3D7QNHGB.js +0 -43
- package/dist/chunks/subagent-OZGUOV3J.js +0 -4
- package/dist/chunks/tool-shims-IA2WELXJ.js +0 -4
- package/dist/chunks/typesafe-system-one-6ULACYD4.js +0 -4
- package/dist/chunks/ui-board-H4INJD6C.js +0 -5
- package/dist/chunks/ui-decision-6HHNROIT.js +0 -4
- package/dist/chunks/ui-view-6MDU4GXY.js +0 -4
- package/dist/chunks/virtual-modules-OFI7QKYH.js +0 -4
- package/dist/chunks/workers-GTFP75MS.js +0 -4
- package/vendor/pi/examples/extensions/sandbox/index.ts +0 -321
- package/vendor/pi/examples/extensions/sandbox/package-lock.json +0 -92
- package/vendor/pi/examples/extensions/sandbox/package.json +0 -19
- package/web/dist/assets/index-9lyu2S6W.css +0 -1
- package/web/dist/assets/index-C-hpzey7.js +0 -532
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { createRequire as __cortexCreateRequire } from 'node:module';
|
|
2
|
+
const require = __cortexCreateRequire(import.meta.url);
|
|
3
|
+
const __cortexPackageRoot = new URL("../../", import.meta.url);
|
|
4
|
+
import{d as pl,f as dl}from"./chunk-IA6IODY3.js";import{D as Cl,F as Rl,G as Ol,I as Ll,f as xl,l as ml,m as hl,n as gl,o as bl,p as El,q as yl,u as vl,v as Nl,w as Al,x as ss}from"./chunk-UHXPRU6G.js";import{a as Rg}from"./chunk-B3XBQEFM.js";import{a as Ju,b as el,c as tl,d as rl,e as nl,f as il,g as al,h as ol,i as sl,j as cl,m as ul,n as ll,p as fl}from"./chunk-4KQHDDC5.js";import{a as os,b as Il,c as wl,d as Sl}from"./chunk-R6CGBSTC.js";import{ea as Tl,fa as _l}from"./chunk-TMV2ZDOI.js";import{a as Dl,b as kl}from"./chunk-V7K3KNDM.js";import{b as Zu}from"./chunk-PTS3J4DQ.js";import{d as Yu}from"./chunk-OJ37ZWBG.js";import{c as ba,d as Ea}from"./chunk-SKHFU5DI.js";import{a as ga,e as Qu,h as as}from"./chunk-52VCLZS5.js";import{a as Xu}from"./chunk-B3NB243Z.js";import{e as zu}from"./chunk-7W7VYUTK.js";import{v as Wu}from"./chunk-T54CZKNJ.js";import{c as C,d as ns,e as is}from"./chunk-WHC7AYZD.js";var Fn=C((u3,Rp)=>{"use strict";Rp.exports=an;an.CAPTURING_PHASE=1;an.AT_TARGET=2;an.BUBBLING_PHASE=3;function an(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=an.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}an.prototype=Object.create(Object.prototype,{constructor:{value:an},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(t,r,n){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=t,this.bubbles=r,this.cancelable=n)}}})});var Ys=C((l3,Lp)=>{"use strict";var Op=Fn();Lp.exports=Qs;function Qs(){Op.call(this),this.view=null,this.detail=0}Qs.prototype=Object.create(Op.prototype,{constructor:{value:Qs},initUIEvent:{value:function(e,t,r,n,i){this.initEvent(e,t,r),this.view=n,this.detail=i}}})});var Js=C((f3,kp)=>{"use strict";var Dp=Ys();kp.exports=Zs;function Zs(){Dp.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}Zs.prototype=Object.create(Dp.prototype,{constructor:{value:Zs},initMouseEvent:{value:function(e,t,r,n,i,o,c,x,m,T,w,ue,$,f,Pe){switch(this.initEvent(e,t,r,n,i),this.screenX=o,this.screenY=c,this.clientX=x,this.clientY=m,this.ctrlKey=T,this.altKey=w,this.shiftKey=ue,this.metaKey=$,this.button=f,f){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=Pe}},getModifierState:{value:function(e){switch(e){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var Za=C((p3,Fp)=>{"use strict";Fp.exports=Ya;var n_=1,i_=3,a_=4,o_=5,s_=7,c_=8,u_=9,l_=11,f_=12,p_=13,d_=14,x_=15,m_=17,h_=18,g_=19,b_=20,E_=21,y_=22,T_=23,__=24,I_=25,w_=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],S_=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],Mp={INDEX_SIZE_ERR:n_,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:i_,WRONG_DOCUMENT_ERR:a_,INVALID_CHARACTER_ERR:o_,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:s_,NOT_FOUND_ERR:c_,NOT_SUPPORTED_ERR:u_,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:l_,SYNTAX_ERR:f_,INVALID_MODIFICATION_ERR:p_,NAMESPACE_ERR:d_,INVALID_ACCESS_ERR:x_,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:m_,SECURITY_ERR:h_,NETWORK_ERR:g_,ABORT_ERR:b_,URL_MISMATCH_ERR:E_,QUOTA_EXCEEDED_ERR:y_,TIMEOUT_ERR:T_,INVALID_NODE_TYPE_ERR:__,DATA_CLONE_ERR:I_};function Ya(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=S_[e],this.name=w_[e]}Ya.prototype.__proto__=Error.prototype;for(Qa in Mp)ec={value:Mp[Qa]},Object.defineProperty(Ya,Qa,ec),Object.defineProperty(Ya.prototype,Qa,ec);var ec,Qa});var Ja=C(Pp=>{Pp.isApiWritable=!globalThis.__domino_frozen__});var ve=C(te=>{"use strict";var Se=Za(),Le=Se,v_=Ja().isApiWritable;te.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};te.IndexSizeError=function(){throw new Se(Le.INDEX_SIZE_ERR)};te.HierarchyRequestError=function(){throw new Se(Le.HIERARCHY_REQUEST_ERR)};te.WrongDocumentError=function(){throw new Se(Le.WRONG_DOCUMENT_ERR)};te.InvalidCharacterError=function(){throw new Se(Le.INVALID_CHARACTER_ERR)};te.NoModificationAllowedError=function(){throw new Se(Le.NO_MODIFICATION_ALLOWED_ERR)};te.NotFoundError=function(){throw new Se(Le.NOT_FOUND_ERR)};te.NotSupportedError=function(){throw new Se(Le.NOT_SUPPORTED_ERR)};te.InvalidStateError=function(){throw new Se(Le.INVALID_STATE_ERR)};te.SyntaxError=function(){throw new Se(Le.SYNTAX_ERR)};te.InvalidModificationError=function(){throw new Se(Le.INVALID_MODIFICATION_ERR)};te.NamespaceError=function(){throw new Se(Le.NAMESPACE_ERR)};te.InvalidAccessError=function(){throw new Se(Le.INVALID_ACCESS_ERR)};te.TypeMismatchError=function(){throw new Se(Le.TYPE_MISMATCH_ERR)};te.SecurityError=function(){throw new Se(Le.SECURITY_ERR)};te.NetworkError=function(){throw new Se(Le.NETWORK_ERR)};te.AbortError=function(){throw new Se(Le.ABORT_ERR)};te.UrlMismatchError=function(){throw new Se(Le.URL_MISMATCH_ERR)};te.QuotaExceededError=function(){throw new Se(Le.QUOTA_EXCEEDED_ERR)};te.TimeoutError=function(){throw new Se(Le.TIMEOUT_ERR)};te.InvalidNodeTypeError=function(){throw new Se(Le.INVALID_NODE_TYPE_ERR)};te.DataCloneError=function(){throw new Se(Le.DATA_CLONE_ERR)};te.nyi=function(){throw new Error("NotYetImplemented")};te.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};te.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
|
|
5
|
+
`+new Error().stack)};te.expose=function(e,t){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],writable:v_})};te.merge=function(e,t){for(var r in t)e[r]=t[r]};te.documentOrder=function(e,t){return 3-(e.compareDocumentPosition(t)&6)};te.toASCIILowerCase=function(e){return e.replace(/[A-Z]+/g,function(t){return t.toLowerCase()})};te.toASCIIUpperCase=function(e){return e.replace(/[a-z]+/g,function(t){return t.toUpperCase()})}});var tc=C((m3,Hp)=>{"use strict";var on=Fn(),N_=Js(),A_=ve();Hp.exports=qp;function qp(){}qp.prototype={addEventListener:function(t,r,n){if(r){n===void 0&&(n=!1),this._listeners||(this._listeners=Object.create(null)),this._listeners[t]||(this._listeners[t]=[]);for(var i=this._listeners[t],o=0,c=i.length;o<c;o++){var x=i[o];if(x.listener===r&&x.capture===n)return}var m={listener:r,capture:n};typeof r=="function"&&(m.f=r),i.push(m)}},removeEventListener:function(t,r,n){if(n===void 0&&(n=!1),this._listeners){var i=this._listeners[t];if(i)for(var o=0,c=i.length;o<c;o++){var x=i[o];if(x.listener===r&&x.capture===n){i.length===1?this._listeners[t]=void 0:i.splice(o,1);return}}}},dispatchEvent:function(t){return this._dispatchEvent(t,!1)},_dispatchEvent:function(t,r){typeof r!="boolean"&&(r=!1);function n(T,w){var ue=w.type,$=w.eventPhase;if(w.currentTarget=T,$!==on.CAPTURING_PHASE&&T._handlers&&T._handlers[ue]){var f=T._handlers[ue],Pe;if(typeof f=="function")Pe=f.call(w.currentTarget,w);else{var le=f.handleEvent;if(typeof le!="function")throw new TypeError("handleEvent property of event handler object isnot a function.");Pe=le.call(f,w)}w.type==="mouseover"?Pe===!0&&w.preventDefault():Pe===!1&&w.preventDefault()}var B=T._listeners&&T._listeners[ue];if(B){B=B.slice();for(var xr=0,z=B.length;xr<z;xr++){if(w._immediatePropagationStopped)return;var De=B[xr];if(!($===on.CAPTURING_PHASE&&!De.capture||$===on.BUBBLING_PHASE&&De.capture))if(De.f)De.f.call(w.currentTarget,w);else{var je=De.listener.handleEvent;if(typeof je!="function")throw new TypeError("handleEvent property of event listener object is not a function.");je.call(De.listener,w)}}}}(!t._initialized||t._dispatching)&&A_.InvalidStateError(),t.isTrusted=r,t._dispatching=!0,t.target=this;for(var i=[],o=this.parentNode;o;o=o.parentNode)i.push(o);t.eventPhase=on.CAPTURING_PHASE;for(var c=i.length-1;c>=0&&(n(i[c],t),!t._propagationStopped);c--);if(t._propagationStopped||(t.eventPhase=on.AT_TARGET,n(this,t)),t.bubbles&&!t._propagationStopped){t.eventPhase=on.BUBBLING_PHASE;for(var x=0,m=i.length;x<m&&(n(i[x],t),!t._propagationStopped);x++);}if(t._dispatching=!1,t.eventPhase=on.AT_TARGET,t.currentTarget=null,r&&!t.defaultPrevented&&t instanceof N_)switch(t.type){case"mousedown":this._armed={x:t.clientX,y:t.clientY,t:t.timeStamp};break;case"mouseout":case"mouseover":this._armed=null;break;case"mouseup":this._isClick(t)&&this._doClick(t),this._armed=null;break}return!t.defaultPrevented},_isClick:function(e){return this._armed!==null&&e.type==="mouseup"&&e.isTrusted&&e.button===0&&e.timeStamp-this._armed.t<1e3&&Math.abs(e.clientX-this._armed.x)<10&&Math.abs(e.clientY-this._armed.Y)<10},_doClick:function(e){if(!this._click_in_progress){this._click_in_progress=!0;for(var t=this;t&&!t._post_click_activation_steps;)t=t.parentNode;t&&t._pre_click_activation_steps&&t._pre_click_activation_steps();var r=this.ownerDocument.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,null);var n=this._dispatchEvent(r,!0);t&&(n?t._post_click_activation_steps&&t._post_click_activation_steps(r):t._cancelled_activation_steps&&t._cancelled_activation_steps())}},_setEventHandler:function(t,r){this._handlers||(this._handlers=Object.create(null)),this._handlers[t]=r},_getEventHandler:function(t){return this._handlers&&this._handlers[t]||null}}});var rc=C((h3,Up)=>{"use strict";var fr=ve(),vt=Up.exports={valid:function(e){return fr.assert(e,"list falsy"),fr.assert(e._previousSibling,"previous falsy"),fr.assert(e._nextSibling,"next falsy"),!0},insertBefore:function(e,t){fr.assert(vt.valid(e)&&vt.valid(t));var r=e,n=e._previousSibling,i=t,o=t._previousSibling;r._previousSibling=o,n._nextSibling=i,o._nextSibling=r,i._previousSibling=n,fr.assert(vt.valid(e)&&vt.valid(t))},replace:function(e,t){fr.assert(vt.valid(e)&&(t===null||vt.valid(t))),t!==null&&vt.insertBefore(t,e),vt.remove(e),fr.assert(vt.valid(e)&&(t===null||vt.valid(t)))},remove:function(e){fr.assert(vt.valid(e));var t=e._previousSibling;if(t!==e){var r=e._nextSibling;t._nextSibling=r,r._previousSibling=t,e._previousSibling=e._nextSibling=e,fr.assert(vt.valid(e))}}}});var nc=C((g3,zp)=>{"use strict";zp.exports={serializeOne:M_,\u0275escapeMatchingClosingTag:Kp,\u0275escapeClosingCommentTag:$p,\u0275escapeProcessingInstructionContent:Wp};var Vp=ve(),sn=Vp.NAMESPACE,Bp={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},C_={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},R_={},jp=/[&<>\u00A0]/g,Gp=/[&"<>\u00A0]/g;function O_(e){return jp.test(e)?e.replace(jp,t=>{switch(t){case"&":return"&";case"<":return"<";case">":return">";case"\xA0":return" "}}):e}function L_(e){return Gp.test(e)?e.replace(Gp,t=>{switch(t){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"\xA0":return" "}}):e}function D_(e){var t=e.namespaceURI;return t?t===sn.XML?"xml:"+e.localName:t===sn.XLINK?"xlink:"+e.localName:t===sn.XMLNS?e.localName==="xmlns"?"xmlns":"xmlns:"+e.localName:e.name:e.localName}function Kp(e,t){let r="</"+t;if(!e.toLowerCase().includes(r))return e;let n=[...e],i=e.matchAll(new RegExp(r,"ig"));for(let o of i)n[o.index]="<";return n.join("")}var k_=/--!?>/;function $p(e){return k_.test(e)?e.replace(/(--\!?)>/g,"$1>"):e}function Wp(e){return e.includes(">")?e.replaceAll(">",">"):e}function M_(e,t){var r="";switch(e.nodeType){case 1:var n=e.namespaceURI,i=n===sn.HTML,o=i||n===sn.SVG||n===sn.MATHML?e.localName:e.tagName;r+="<"+o;for(var c=0,x=e._numattrs;c<x;c++){var m=e._attr(c);r+=" "+D_(m),m.value!==void 0&&(r+='="'+L_(m.value)+'"')}if(r+=">",!(i&&C_[o])){var T=e.serialize();Bp[o.toUpperCase()]&&(T=Kp(T,o)),i&&R_[o]&&T.charAt(0)===`
|
|
6
|
+
`&&(r+=`
|
|
7
|
+
`),r+=T,r+="</"+o+">"}break;case 3:case 4:var w;t.nodeType===1&&t.namespaceURI===sn.HTML?w=t.tagName:w="",Bp[w]||w==="NOSCRIPT"&&t.ownerDocument._scripting_enabled?r+=e.data:r+=O_(e.data);break;case 8:r+="<!--"+$p(e.data)+"-->";break;case 7:let ue=Wp(e.data);r+="<?"+e.target+" "+ue+"?>";break;case 10:r+="<!DOCTYPE "+e.name,r+=">";break;default:Vp.InvalidStateError()}return r}});var Ke=C((b3,ed)=>{"use strict";ed.exports=ge;var Jp=tc(),eo=rc(),Xp=nc(),re=ve();function ge(){Jp.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var st=ge.ELEMENT_NODE=1,ic=ge.ATTRIBUTE_NODE=2,to=ge.TEXT_NODE=3,F_=ge.CDATA_SECTION_NODE=4,P_=ge.ENTITY_REFERENCE_NODE=5,ac=ge.ENTITY_NODE=6,Qp=ge.PROCESSING_INSTRUCTION_NODE=7,Yp=ge.COMMENT_NODE=8,Ai=ge.DOCUMENT_NODE=9,Nt=ge.DOCUMENT_TYPE_NODE=10,qr=ge.DOCUMENT_FRAGMENT_NODE=11,oc=ge.NOTATION_NODE=12,sc=ge.DOCUMENT_POSITION_DISCONNECTED=1,cc=ge.DOCUMENT_POSITION_PRECEDING=2,uc=ge.DOCUMENT_POSITION_FOLLOWING=4,Zp=ge.DOCUMENT_POSITION_CONTAINS=8,lc=ge.DOCUMENT_POSITION_CONTAINED_BY=16,fc=ge.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;ge.prototype=Object.create(Jp.prototype,{baseURI:{get:re.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===st?this.parentNode:null}},hasChildNodes:{value:re.shouldOverride},firstChild:{get:re.shouldOverride},lastChild:{get:re.shouldOverride},isConnected:{get:function(){let e=this;for(;e!=null;){if(e.nodeType===ge.DOCUMENT_NODE)return!0;e=e.parentNode,e!=null&&e.nodeType===ge.DOCUMENT_FRAGMENT_NODE&&(e=e.host)}return!1}},previousSibling:{get:function(){var e=this.parentNode;return!e||this===e.firstChild?null:this._previousSibling}},nextSibling:{get:function(){var e=this.parentNode,t=this._nextSibling;return!e||t===e.firstChild?null:t}},textContent:{get:function(){return null},set:function(e){}},innerText:{get:function(){return null},set:function(e){}},_countChildrenOfType:{value:function(e){for(var t=0,r=this.firstChild;r!==null;r=r.nextSibling)r.nodeType===e&&t++;return t}},_ensureInsertValid:{value:function(t,r,n){var i=this,o,c;if(!t.nodeType)throw new TypeError("not a node");switch(i.nodeType){case Ai:case qr:case st:break;default:re.HierarchyRequestError()}switch(t.isAncestor(i)&&re.HierarchyRequestError(),(r!==null||!n)&&r.parentNode!==i&&re.NotFoundError(),t.nodeType){case qr:case Nt:case st:case to:case Qp:case Yp:break;default:re.HierarchyRequestError()}if(i.nodeType===Ai)switch(t.nodeType){case to:re.HierarchyRequestError();break;case qr:switch(t._countChildrenOfType(to)>0&&re.HierarchyRequestError(),t._countChildrenOfType(st)){case 0:break;case 1:if(r!==null)for(n&&r.nodeType===Nt&&re.HierarchyRequestError(),c=r.nextSibling;c!==null;c=c.nextSibling)c.nodeType===Nt&&re.HierarchyRequestError();o=i._countChildrenOfType(st),n?o>0&&re.HierarchyRequestError():(o>1||o===1&&r.nodeType!==st)&&re.HierarchyRequestError();break;default:re.HierarchyRequestError()}break;case st:if(r!==null)for(n&&r.nodeType===Nt&&re.HierarchyRequestError(),c=r.nextSibling;c!==null;c=c.nextSibling)c.nodeType===Nt&&re.HierarchyRequestError();o=i._countChildrenOfType(st),n?o>0&&re.HierarchyRequestError():(o>1||o===1&&r.nodeType!==st)&&re.HierarchyRequestError();break;case Nt:if(r===null)i._countChildrenOfType(st)&&re.HierarchyRequestError();else for(c=i.firstChild;c!==null&&c!==r;c=c.nextSibling)c.nodeType===st&&re.HierarchyRequestError();o=i._countChildrenOfType(Nt),n?o>0&&re.HierarchyRequestError():(o>1||o===1&&r.nodeType!==Nt)&&re.HierarchyRequestError();break}else t.nodeType===Nt&&re.HierarchyRequestError()}},insertBefore:{value:function(t,r){var n=this;n._ensureInsertValid(t,r,!0);var i=r;return i===t&&(i=t.nextSibling),n.doc.adoptNode(t),t._insertOrReplace(n,i,!1),t}},appendChild:{value:function(e){return this.insertBefore(e,null)}},_appendChild:{value:function(e){e._insertOrReplace(this,null,!1)}},removeChild:{value:function(t){var r=this;if(!t.nodeType)throw new TypeError("not a node");return t.parentNode!==r&&re.NotFoundError(),t.remove(),t}},replaceChild:{value:function(t,r){var n=this;return n._ensureInsertValid(t,r,!1),t.doc!==n.doc&&n.doc.adoptNode(t),t._insertOrReplace(n,r,!0),r}},contains:{value:function(t){return t===null?!1:this===t?!0:(this.compareDocumentPosition(t)&lc)!==0}},compareDocumentPosition:{value:function(t){if(this===t)return 0;if(this.doc!==t.doc||this.rooted!==t.rooted)return sc+fc;for(var r=[],n=[],i=this;i!==null;i=i.parentNode)r.push(i);for(i=t;i!==null;i=i.parentNode)n.push(i);if(r.reverse(),n.reverse(),r[0]!==n[0])return sc+fc;i=Math.min(r.length,n.length);for(var o=1;o<i;o++)if(r[o]!==n[o])return r[o].index<n[o].index?uc:cc;return r.length<n.length?uc+lc:cc+Zp}},isSameNode:{value:function(t){return this===t}},isEqualNode:{value:function(t){if(!t||t.nodeType!==this.nodeType||!this.isEqual(t))return!1;for(var r=this.firstChild,n=t.firstChild;r&&n;r=r.nextSibling,n=n.nextSibling)if(!r.isEqualNode(n))return!1;return r===null&&n===null}},cloneNode:{value:function(e){var t=this.clone();if(e)for(var r=this.firstChild;r!==null;r=r.nextSibling)t._appendChild(r.cloneNode(!0));return t}},lookupPrefix:{value:function(t){var r;if(t===""||t===null||t===void 0)return null;switch(this.nodeType){case st:return this._lookupNamespacePrefix(t,this);case Ai:return r=this.documentElement,r?r.lookupPrefix(t):null;case ac:case oc:case qr:case Nt:return null;case ic:return r=this.ownerElement,r?r.lookupPrefix(t):null;default:return r=this.parentElement,r?r.lookupPrefix(t):null}}},lookupNamespaceURI:{value:function(t){(t===""||t===void 0)&&(t=null);var r;switch(this.nodeType){case st:return re.shouldOverride();case Ai:return r=this.documentElement,r?r.lookupNamespaceURI(t):null;case ac:case oc:case Nt:case qr:return null;case ic:return r=this.ownerElement,r?r.lookupNamespaceURI(t):null;default:return r=this.parentElement,r?r.lookupNamespaceURI(t):null}}},isDefaultNamespace:{value:function(t){(t===""||t===void 0)&&(t=null);var r=this.lookupNamespaceURI(null);return r===t}},index:{get:function(){var e=this.parentNode;if(this===e.firstChild)return 0;var t=e.childNodes;if(this._index===void 0||t[this._index]!==this){for(var r=0;r<t.length;r++)t[r]._index=r;re.assert(t[this._index]===this)}return this._index}},isAncestor:{value:function(e){if(this.doc!==e.doc||this.rooted!==e.rooted)return!1;for(var t=e;t;t=t.parentNode)if(t===this)return!0;return!1}},ensureSameDoc:{value:function(e){e.ownerDocument===null?e.ownerDocument=this.doc:e.ownerDocument!==this.doc&&re.WrongDocumentError()}},removeChildren:{value:re.shouldOverride},_insertOrReplace:{value:function(t,r,n){var i=this,o,c;if(i.nodeType===qr&&i.rooted&&re.HierarchyRequestError(),t._childNodes&&(o=r===null?t._childNodes.length:r.index,i.parentNode===t)){var x=i.index;x<o&&o--}n&&(r.rooted&&r.doc.mutateRemove(r),r.parentNode=null);var m=r;m===null&&(m=t.firstChild);var T=i.rooted&&t.rooted;if(i.nodeType===qr){for(var w=[0,n?1:0],ue,$=i.firstChild;$!==null;$=ue)ue=$.nextSibling,w.push($),$.parentNode=t;var f=w.length;if(n?eo.replace(m,f>2?w[2]:null):f>2&&m!==null&&eo.insertBefore(w[2],m),t._childNodes)for(w[0]=r===null?t._childNodes.length:r._index,t._childNodes.splice.apply(t._childNodes,w),c=2;c<f;c++)w[c]._index=w[0]+(c-2);else t._firstChild===r&&(f>2?t._firstChild=w[2]:n&&(t._firstChild=null));if(i._childNodes?i._childNodes.length=0:i._firstChild=null,t.rooted)for(t.modify(),c=2;c<f;c++)t.doc.mutateInsert(w[c])}else{if(r===i)return;T?i._remove():i.parentNode&&i.remove(),i.parentNode=t,n?(eo.replace(m,i),t._childNodes?(i._index=o,t._childNodes[o]=i):t._firstChild===r&&(t._firstChild=i)):(m!==null&&eo.insertBefore(i,m),t._childNodes?(i._index=o,t._childNodes.splice(o,0,i)):t._firstChild===r&&(t._firstChild=i)),T?(t.modify(),t.doc.mutateMove(i)):t.rooted&&(t.modify(),t.doc.mutateInsert(i))}}},lastModTime:{get:function(){return this._lastModTime||(this._lastModTime=this.doc.modclock),this._lastModTime}},modify:{value:function(){if(this.doc.modclock)for(var e=++this.doc.modclock,t=this;t;t=t.parentElement)t._lastModTime&&(t._lastModTime=e)}},doc:{get:function(){return this.ownerDocument||this}},rooted:{get:function(){return!!this._nid}},normalize:{value:function(){for(var e,t=this.firstChild;t!==null;t=e)if(e=t.nextSibling,t.normalize&&t.normalize(),t.nodeType===ge.TEXT_NODE){if(t.nodeValue===""){this.removeChild(t);continue}var r=t.previousSibling;r!==null&&r.nodeType===ge.TEXT_NODE&&(r.appendData(t.nodeValue),this.removeChild(t))}}},serialize:{value:function(){if(this._innerHTML)return this._innerHTML;for(var e="",t=this.firstChild;t!==null;t=t.nextSibling)e+=Xp.serializeOne(t,this);return e}},outerHTML:{get:function(){return Xp.serializeOne(this,{nodeType:0})},set:re.nyi},ELEMENT_NODE:{value:st},ATTRIBUTE_NODE:{value:ic},TEXT_NODE:{value:to},CDATA_SECTION_NODE:{value:F_},ENTITY_REFERENCE_NODE:{value:P_},ENTITY_NODE:{value:ac},PROCESSING_INSTRUCTION_NODE:{value:Qp},COMMENT_NODE:{value:Yp},DOCUMENT_NODE:{value:Ai},DOCUMENT_TYPE_NODE:{value:Nt},DOCUMENT_FRAGMENT_NODE:{value:qr},NOTATION_NODE:{value:oc},DOCUMENT_POSITION_DISCONNECTED:{value:sc},DOCUMENT_POSITION_PRECEDING:{value:cc},DOCUMENT_POSITION_FOLLOWING:{value:uc},DOCUMENT_POSITION_CONTAINS:{value:Zp},DOCUMENT_POSITION_CONTAINED_BY:{value:lc},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:fc}})});var rd=C((y3,td)=>{"use strict";td.exports=class extends Array{constructor(t){if(super(t&&t.length||0),t)for(var r in t)this[r]=t[r]}item(t){return this[t]||null}}});var id=C((T3,nd)=>{"use strict";function q_(e){return this[e]||null}function H_(e){return e||(e=[]),e.item=q_,e}nd.exports=H_});var cn=C((_3,ad)=>{"use strict";var pc;try{pc=rd()}catch{pc=id()}ad.exports=pc});var ro=C((I3,cd)=>{"use strict";cd.exports=sd;var od=Ke(),U_=cn();function sd(){od.call(this),this._firstChild=this._childNodes=null}sd.prototype=Object.create(od.prototype,{hasChildNodes:{value:function(){return this._childNodes?this._childNodes.length>0:this._firstChild!==null}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){return this._childNodes?this._childNodes.length===0?null:this._childNodes[0]:this._firstChild}},lastChild:{get:function(){var e=this._childNodes,t;return e?e.length===0?null:e[e.length-1]:(t=this._firstChild,t===null?null:t._previousSibling)}},_ensureChildNodes:{value:function(){if(!this._childNodes){var e=this._firstChild,t=e,r=this._childNodes=new U_;if(e)do r.push(t),t=t._nextSibling;while(t!==e);this._firstChild=null}}},removeChildren:{value:function(){for(var t=this.rooted?this.ownerDocument:null,r=this.firstChild,n;r!==null;)n=r,r=n.nextSibling,t&&t.mutateRemove(n),n.parentNode=null;this._childNodes?this._childNodes.length=0:this._firstChild=null,this.modify()}}})});var no=C(mc=>{"use strict";mc.isValidName=W_;mc.isValidQName=z_;var B_=/^[_:A-Za-z][-.:\w]+$/,j_=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,Ci="_A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Ri="-._A-Za-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0300-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",un="["+Ci+"]["+Ri+"]*",dc=Ci+":",xc=Ri+":",G_=new RegExp("^["+dc+"]["+xc+"]*$"),V_=new RegExp("^("+un+"|"+un+":"+un+")$"),ud=/[\uD800-\uDB7F\uDC00-\uDFFF]/,ld=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,fd=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;Ci+="\uD800-\u{EFC00}-\uDFFF";Ri+="\uD800-\u{EFC00}-\uDFFF";un="["+Ci+"]["+Ri+"]*";dc=Ci+":";xc=Ri+":";var K_=new RegExp("^["+dc+"]["+xc+"]*$"),$_=new RegExp("^("+un+"|"+un+":"+un+")$");function W_(e){if(B_.test(e)||G_.test(e))return!0;if(!ud.test(e)||!K_.test(e))return!1;var t=e.match(ld),r=e.match(fd);return r!==null&&2*r.length===t.length}function z_(e){if(j_.test(e)||V_.test(e))return!0;if(!ud.test(e)||!$_.test(e))return!1;var t=e.match(ld),r=e.match(fd);return r!==null&&2*r.length===t.length}});var gc=C(hc=>{"use strict";var pd=ve();hc.property=function(e){if(Array.isArray(e.type)){var t=Object.create(null);e.type.forEach(function(i){t[i.value||i]=i.alias||i});var r=e.missing;r===void 0&&(r=null);var n=e.invalid;return n===void 0&&(n=r),{get:function(){var i=this._getattr(e.name);return i===null?r:(i=t[i.toLowerCase()],i!==void 0?i:n!==null?n:i)},set:function(i){this._setattr(e.name,i)}}}else{if(e.type===Boolean)return{get:function(){return this.hasAttribute(e.name)},set:function(i){i?this._setattr(e.name,""):this.removeAttribute(e.name)}};if(e.type===Number||e.type==="long"||e.type==="unsigned long"||e.type==="limited unsigned long with fallback")return X_(e);if(!e.type||e.type===String)return{get:function(){return this._getattr(e.name)||""},set:function(i){e.treatNullAsEmptyString&&i===null&&(i=""),this._setattr(e.name,i)}};if(typeof e.type=="function")return e.type(e.name,e)}throw new Error("Invalid attribute definition")};function X_(e){var t;typeof e.default=="function"?t=e.default:typeof e.default=="number"?t=function(){return e.default}:t=function(){pd.assert(!1,typeof e.default)};var r=e.type==="unsigned long",n=e.type==="long",i=e.type==="limited unsigned long with fallback",o=e.min,c=e.max,x=e.setmin;return o===void 0&&(r&&(o=0),n&&(o=-2147483648),i&&(o=1)),c===void 0&&(r||n||i)&&(c=2147483647),{get:function(){var m=this._getattr(e.name),T=e.float?parseFloat(m):parseInt(m,10);if(m===null||!isFinite(T)||o!==void 0&&T<o||c!==void 0&&T>c)return t.call(this);if(r||n||i){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(m))return t.call(this);T=T|0}return T},set:function(m){e.float||(m=Math.floor(m)),x!==void 0&&m<x&&pd.IndexSizeError(e.name+" set to "+m),r?m=m<0||m>2147483647?t.call(this):m|0:i?m=m<1||m>2147483647?t.call(this):m|0:n&&(m=m<-2147483648||m>2147483647?t.call(this):m|0),this._setattr(e.name,String(m))}}}hc.registerChangeHandler=function(e,t,r){var n=e.prototype;Object.prototype.hasOwnProperty.call(n,"_attributeChangeHandlers")||(n._attributeChangeHandlers=Object.create(n._attributeChangeHandlers||null)),n._attributeChangeHandlers[t]=r}});var md=C((v3,xd)=>{"use strict";xd.exports=dd;var Q_=Ke();function dd(e,t){this.root=e,this.filter=t,this.lastModTime=e.lastModTime,this.done=!1,this.cache=[],this.traverse()}dd.prototype=Object.create(Object.prototype,{length:{get:function(){return this.checkcache(),this.done||this.traverse(),this.cache.length}},item:{value:function(e){return this.checkcache(),!this.done&&e>=this.cache.length&&this.traverse(),this.cache[e]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var e=this.cache.length-1;e>=0;e--)this[e]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(e){e!==void 0&&e++;for(var t;(t=this.next())!==null;)if(this[this.cache.length]=t,this.cache.push(t),e&&this.cache.length===e)return;this.done=!0}},next:{value:function(){var e=this.cache.length===0?this.root:this.cache[this.cache.length-1],t;for(e.nodeType===Q_.DOCUMENT_NODE?t=e.documentElement:t=e.nextElement(this.root);t;){if(this.filter(t))return t;t=t.nextElement(this.root)}return null}}})});var Ec=C((N3,bd)=>{"use strict";var bc=ve();bd.exports=gd;function gd(e,t){this._getString=e,this._setString=t,this._length=0,this._lastStringValue="",this._update()}Object.defineProperties(gd.prototype,{length:{get:function(){return this._length}},item:{value:function(e){var t=Pn(this);return e<0||e>=t.length?null:t[e]}},contains:{value:function(e){e=String(e);var t=Pn(this);return t.indexOf(e)>-1}},add:{value:function(){for(var e=Pn(this),t=0,r=arguments.length;t<r;t++){var n=Oi(arguments[t]);e.indexOf(n)<0&&e.push(n)}this._update(e)}},remove:{value:function(){for(var e=Pn(this),t=0,r=arguments.length;t<r;t++){var n=Oi(arguments[t]),i=e.indexOf(n);i>-1&&e.splice(i,1)}this._update(e)}},toggle:{value:function(t,r){return t=Oi(t),this.contains(t)?r===void 0||r===!1?(this.remove(t),!1):!0:r===void 0||r===!0?(this.add(t),!0):!1}},replace:{value:function(t,r){String(r)===""&&bc.SyntaxError(),t=Oi(t),r=Oi(r);var n=Pn(this),i=n.indexOf(t);if(i<0)return!1;var o=n.indexOf(r);return o<0?n[i]=r:i<o?(n[i]=r,n.splice(o,1)):n.splice(i,1),this._update(n),!0}},toString:{value:function(){return this._getString()}},value:{get:function(){return this._getString()},set:function(e){this._setString(e),this._update()}},_update:{value:function(e){e?(hd(this,e),this._setString(e.join(" ").trim())):hd(this,Pn(this)),this._lastStringValue=this._getString()}}});function hd(e,t){var r=e._length,n;for(e._length=t.length,n=0;n<t.length;n++)e[n]=t[n];for(;n<r;n++)e[n]=void 0}function Oi(e){return e=String(e),e===""&&bc.SyntaxError(),/[ \t\r\n\f]/.test(e)&&bc.InvalidCharacterError(),e}function Y_(e){for(var t=e._length,r=Array(t),n=0;n<t;n++)r[n]=e[n];return r}function Pn(e){var t=e._getString();if(t===e._lastStringValue)return Y_(e);var r=t.replace(/(^[ \t\r\n\f]+)|([ \t\r\n\f]+$)/g,"");if(r==="")return[];var n=Object.create(null);return r.split(/[ \t\r\n\f]+/g).filter(function(i){var o="$"+i;return n[o]?!1:(n[o]=!0,!0)})}});var so=C((Un,wd)=>{"use strict";var io=Object.create(null,{location:{get:function(){throw new Error("window.location is not supported.")}}}),Z_=function(e,t){return e.compareDocumentPosition(t)},J_=function(e,t){return Z_(e,t)&2?1:-1},oo=function(e){for(;(e=e.nextSibling)&&e.nodeType!==1;);return e},Hn=function(e){for(;(e=e.previousSibling)&&e.nodeType!==1;);return e},eI=function(e){if(e=e.firstChild)for(;e.nodeType!==1&&(e=e.nextSibling););return e},tI=function(e){if(e=e.lastChild)for(;e.nodeType!==1&&(e=e.previousSibling););return e},qn=function(e){if(!e.parentNode)return!1;var t=e.parentNode.nodeType;return t===1||t===9},Ed=function(e){if(!e)return e;var t=e[0];return t==='"'||t==="'"?(e[e.length-1]===t?e=e.slice(1,-1):e=e.slice(1),e.replace(D.str_escape,function(r){var n=/^\\(?:([0-9A-Fa-f]+)|([\r\n\f]+))/.exec(r);if(!n)return r.slice(1);if(n[2])return"";var i=parseInt(n[1],16);return String.fromCodePoint?String.fromCodePoint(i):String.fromCharCode(i)})):D.ident.test(e)?Hr(e):e},Hr=function(e){return e.replace(D.escape,function(t){var r=/^\\([0-9A-Fa-f]+)/.exec(t);if(!r)return t[1];var n=parseInt(r[1],16);return String.fromCodePoint?String.fromCodePoint(n):String.fromCharCode(n)})},rI=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:function(e,t){for(var r=this.length;r--;)if(this[r]===t)return r;return-1}})(),Td=function(e,t){var r=D.inside.source.replace(/</g,e).replace(/>/g,t);return new RegExp(r)},ct=function(e,t,r){return e=e.source,e=e.replace(t,r.source||r),new RegExp(e)},yd=function(e,t){return e.replace(/^(?:\w+:\/\/|\/+)/,"").replace(/(?:\/+|\/*#.*?)$/,"").split("/",t).join("/")},nI=function(e,t){var r=e.replace(/\s+/g,""),n;return r==="even"?r="2n+0":r==="odd"?r="2n+1":r.indexOf("n")===-1&&(r="0n"+r),n=/^([+-])?(\d+)?n([+-])?(\d+)?$/.exec(r),{group:n[1]==="-"?-(n[2]||1):+(n[2]||1),offset:n[4]?n[3]==="-"?-n[4]:+n[4]:0}},yc=function(e,t,r){var n=nI(e),i=n.group,o=n.offset,c=r?tI:eI,x=r?Hn:oo;return function(m){if(qn(m))for(var T=c(m.parentNode),w=0;T;){if(t(T,m)&&w++,T===m)return w-=o,i&&w?w%i===0&&w<0==i<0:!w;T=x(T)}}},Ue={"*":(function(){return function(){return!0}})(),type:function(e){return e=e.toLowerCase(),function(t){return t.nodeName.toLowerCase()===e}},attr:function(e,t,r,n){return t=_d[t],function(i){var o;switch(e){case"for":o=i.htmlFor;break;case"class":o=i.className,o===""&&i.getAttribute("class")==null&&(o=null);break;case"href":case"src":o=i.getAttribute(e,2);break;case"title":o=i.getAttribute("title")||null;break;case"id":case"lang":case"dir":case"accessKey":case"hidden":case"tabIndex":case"style":if(i.getAttribute){o=i.getAttribute(e);break}default:if(i.hasAttribute&&!i.hasAttribute(e))break;o=i[e]!=null?i[e]:i.getAttribute&&i.getAttribute(e);break}if(o!=null)return o=o+"",n&&(o=o.toLowerCase(),r=r.toLowerCase()),t(o,r)}},":first-child":function(e){return!Hn(e)&&qn(e)},":last-child":function(e){return!oo(e)&&qn(e)},":only-child":function(e){return!Hn(e)&&!oo(e)&&qn(e)},":nth-child":function(e,t){return yc(e,function(){return!0},t)},":nth-last-child":function(e){return Ue[":nth-child"](e,!0)},":root":function(e){return e.ownerDocument.documentElement===e},":empty":function(e){return!e.firstChild},":not":function(e){var t=_c(e);return function(r){return!t(r)}},":first-of-type":function(e){if(qn(e)){for(var t=e.nodeName;e=Hn(e);)if(e.nodeName===t)return;return!0}},":last-of-type":function(e){if(qn(e)){for(var t=e.nodeName;e=oo(e);)if(e.nodeName===t)return;return!0}},":only-of-type":function(e){return Ue[":first-of-type"](e)&&Ue[":last-of-type"](e)},":nth-of-type":function(e,t){return yc(e,function(r,n){return r.nodeName===n.nodeName},t)},":nth-last-of-type":function(e){return Ue[":nth-of-type"](e,!0)},":checked":function(e){return!!(e.checked||e.selected)},":indeterminate":function(e){return!Ue[":checked"](e)},":enabled":function(e){return!e.disabled&&e.type!=="hidden"},":disabled":function(e){return!!e.disabled},":target":function(e){return e.id===io.location.hash.substring(1)},":focus":function(e){return e===e.ownerDocument.activeElement},":is":function(e){return _c(e)},":matches":function(e){return Ue[":is"](e)},":nth-match":function(e,t){var r=e.split(/\s*,\s*/),n=r.shift(),i=_c(r.join(","));return yc(n,i,t)},":nth-last-match":function(e){return Ue[":nth-match"](e,!0)},":links-here":function(e){return e+""==io.location+""},":lang":function(e){return function(t){for(;t;){if(t.lang)return t.lang.indexOf(e)===0;t=t.parentNode}}},":dir":function(e){return function(t){for(;t;){if(t.dir)return t.dir===e;t=t.parentNode}}},":scope":function(e,t){var r=t||e.ownerDocument;return r.nodeType===9?e===r.documentElement:e===r},":any-link":function(e){return typeof e.href=="string"},":local-link":function(e){if(e.nodeName)return e.href&&e.host===io.location.host;var t=+e+1;return function(r){if(r.href){var n=io.location+"",i=r+"";return yd(n,t)===yd(i,t)}}},":default":function(e){return!!e.defaultSelected},":valid":function(e){return e.willValidate||e.validity&&e.validity.valid},":invalid":function(e){return!Ue[":valid"](e)},":in-range":function(e){return e.value>e.min&&e.value<=e.max},":out-of-range":function(e){return!Ue[":in-range"](e)},":required":function(e){return!!e.required},":optional":function(e){return!e.required},":read-only":function(e){if(e.readOnly)return!0;var t=e.getAttribute("contenteditable"),r=e.contentEditable,n=e.nodeName.toLowerCase();return n=n!=="input"&&n!=="textarea",(n||e.disabled)&&t==null&&r!=="true"},":read-write":function(e){return!Ue[":read-only"](e)},":hover":function(){throw new Error(":hover is not supported.")},":active":function(){throw new Error(":active is not supported.")},":link":function(){throw new Error(":link is not supported.")},":visited":function(){throw new Error(":visited is not supported.")},":column":function(){throw new Error(":column is not supported.")},":nth-column":function(){throw new Error(":nth-column is not supported.")},":nth-last-column":function(){throw new Error(":nth-last-column is not supported.")},":current":function(){throw new Error(":current is not supported.")},":past":function(){throw new Error(":past is not supported.")},":future":function(){throw new Error(":future is not supported.")},":contains":function(e){return function(t){var r=t.innerText||t.textContent||t.value||"";return r.indexOf(e)!==-1}},":has":function(e){return function(t){return Id(e,t).length>0}}},_d={"-":function(){return!0},"=":function(e,t){return e===t},"*=":function(e,t){return e.indexOf(t)!==-1},"~=":function(e,t){var r,n,i,o;for(n=0;;n=r+1){if(r=e.indexOf(t,n),r===-1)return!1;if(i=e[r-1],o=e[r+t.length],(!i||i===" ")&&(!o||o===" "))return!0}},"|=":function(e,t){var r=e.indexOf(t),n;if(r===0)return n=e[r+t.length],n==="-"||!n},"^=":function(e,t){return e.indexOf(t)===0},"$=":function(e,t){var r=e.lastIndexOf(t);return r!==-1&&r+t.length===e.length},"!=":function(e,t){return e!==t}},Li={" ":function(e){return function(t){for(;t=t.parentNode;)if(e(t))return t}},">":function(e){return function(t){if(t=t.parentNode)return e(t)&&t}},"+":function(e){return function(t){if(t=Hn(t))return e(t)&&t}},"~":function(e){return function(t){for(;t=Hn(t);)if(e(t))return t}},noop:function(e){return function(t){return e(t)&&t}},ref:function(e,t){var r;function n(i){for(var o=i.ownerDocument,c=o.getElementsByTagName("*"),x=c.length;x--;)if(r=c[x],n.test(i))return r=null,!0;r=null}return n.combinator=function(i){if(!(!r||!r.getAttribute)){var o=r.getAttribute(t)||"";if(o[0]==="#"&&(o=o.substring(1)),o===i.id&&e(r))return r}},n}},D={escape:/\\(?:[^0-9A-Fa-f\r\n]|[0-9A-Fa-f]{1,6}[\r\n\t ]?)/g,str_escape:/(escape)|\\(\n|\r\n?|\f)/g,nonascii:/[\u00A0-\uFFFF]/,cssid:/(?:(?!-?[0-9])(?:escape|nonascii|[-_a-zA-Z0-9])+)/,qname:/^ *(cssid|\*)/,simple:/^(?:([.#]cssid)|pseudo|attr)/,ref:/^ *\/(cssid)\/ */,combinator:/^(?: +([^ \w*.#\\]) +|( )+|([^ \w*.#\\]))(?! *$)/,attr:/^\[(cssid)(?:([^\w]?=)(inside))?\]/,pseudo:/^(:cssid)(?:\((inside)\))?/,inside:/(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])*/,ident:/^(cssid)$/};D.cssid=ct(D.cssid,"nonascii",D.nonascii);D.cssid=ct(D.cssid,"escape",D.escape);D.qname=ct(D.qname,"cssid",D.cssid);D.simple=ct(D.simple,"cssid",D.cssid);D.ref=ct(D.ref,"cssid",D.cssid);D.attr=ct(D.attr,"cssid",D.cssid);D.pseudo=ct(D.pseudo,"cssid",D.cssid);D.inside=ct(D.inside,`[^"'>]*`,D.inside);D.attr=ct(D.attr,"inside",Td("\\[","\\]"));D.pseudo=ct(D.pseudo,"inside",Td("\\(","\\)"));D.simple=ct(D.simple,"pseudo",D.pseudo);D.simple=ct(D.simple,"attr",D.attr);D.ident=ct(D.ident,"cssid",D.cssid);D.str_escape=ct(D.str_escape,"escape",D.escape);var Di=function(e){for(var t=e.replace(/^\s+|\s+$/g,""),r,n=[],i=[],o,c,x,m,T;t;){if(x=D.qname.exec(t))t=t.substring(x[0].length),c=Hr(x[1]),i.push(ao(c,!0));else if(x=D.simple.exec(t))t=t.substring(x[0].length),c="*",i.push(ao(c,!0)),i.push(ao(x));else throw new SyntaxError("Invalid selector.");for(;x=D.simple.exec(t);)t=t.substring(x[0].length),i.push(ao(x));if(t[0]==="!"&&(t=t.substring(1),o=aI(),o.qname=c,i.push(o.simple)),x=D.ref.exec(t)){t=t.substring(x[0].length),T=Li.ref(Tc(i),Hr(x[1])),n.push(T.combinator),i=[];continue}if(x=D.combinator.exec(t)){if(t=t.substring(x[0].length),m=x[1]||x[2]||x[3],m===","){n.push(Li.noop(Tc(i)));break}}else m="noop";if(!Li[m])throw new SyntaxError("Bad combinator.");n.push(Li[m](Tc(i))),i=[]}return r=iI(n),r.qname=c,r.sel=t,o&&(o.lname=r.qname,o.test=r,o.qname=o.qname,o.sel=r.sel,r=o),T&&(T.test=r,T.qname=r.qname,T.sel=r.sel,r=T),r},ao=function(e,t){if(t)return e==="*"?Ue["*"]:Ue.type(e);if(e[1])return e[1][0]==="."?Ue.attr("class","~=",Hr(e[1].substring(1)),!1):Ue.attr("id","=",Hr(e[1].substring(1)),!1);if(e[2])return e[3]?Ue[Hr(e[2])](Ed(e[3])):Ue[Hr(e[2])];if(e[4]){var r=e[6],n=/["'\s]\s*I$/i.test(r);return n&&(r=r.replace(/\s*I$/i,"")),Ue.attr(Hr(e[4]),e[5]||"-",Ed(r),n)}throw new SyntaxError("Unknown Selector.")},Tc=function(e){var t=e.length,r;return t<2?e[0]:function(n){if(n){for(r=0;r<t;r++)if(!e[r](n))return;return!0}}},iI=function(e){return e.length<2?function(t){return!!e[0](t)}:function(t){for(var r=e.length;r--;)if(!(t=e[r](t)))return;return!0}},aI=function(){var e;function t(r){for(var n=r.ownerDocument,i=n.getElementsByTagName(t.lname),o=i.length;o--;)if(t.test(i[o])&&e===r)return e=null,!0;e=null}return t.simple=function(r){return e=r,!0},t},_c=function(e){for(var t=Di(e),r=[t];t.sel;)t=Di(t.sel),r.push(t);return r.length<2?t:function(n){for(var i=r.length,o=0;o<i;o++)if(r[o](n))return!0}},Id=function(e,t){for(var r=[],n=Di(e),i=t.getElementsByTagName(n.qname),o=0,c;c=i[o++];)n(c)&&r.push(c);if(n.sel){for(;n.sel;)for(n=Di(n.sel),i=t.getElementsByTagName(n.qname),o=0;c=i[o++];)n(c)&&rI.call(r,c)===-1&&r.push(c);r.sort(J_)}return r};wd.exports=Un=function(e,t){var r,n;if(t.nodeType!==11&&e.indexOf(" ")===-1){if(e[0]==="#"&&t.rooted&&/^#[A-Z_][-A-Z0-9_]*$/i.test(e)&&t.doc._hasMultipleElementsWithId&&(r=e.substring(1),!t.doc._hasMultipleElementsWithId(r)))return n=t.doc.getElementById(r),n?[n]:[];if(e[0]==="."&&/^\.\w+$/.test(e))return t.getElementsByClassName(e.substring(1));if(/^\w+$/.test(e))return t.getElementsByTagName(e)}return Id(e,t)};Un.selectors=Ue;Un.operators=_d;Un.combinators=Li;Un.matches=function(e,t){var r={sel:t};do if(r=Di(r.sel),r(e))return!0;while(r.sel);return!1}});var co=C((A3,Sd)=>{"use strict";var oI=Ke(),sI=rc(),Ic=function(e,t){for(var r=e.createDocumentFragment(),n=0;n<t.length;n++){var i=t[n],o=i instanceof oI;r.appendChild(o?i:e.createTextNode(String(i)))}return r},cI={after:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(o){return o===n});)n=n.nextSibling;var i=Ic(this.doc,t);r.insertBefore(i,n)}}},before:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.previousSibling;if(r!==null){for(;n&&t.some(function(c){return c===n});)n=n.previousSibling;var i=Ic(this.doc,t),o=n?n.nextSibling:r.firstChild;r.insertBefore(i,o)}}},remove:{value:function(){this.parentNode!==null&&(this.doc&&(this.doc._preremoveNodeIterators(this),this.rooted&&this.doc.mutateRemove(this)),this._remove(),this.parentNode=null)}},_remove:{value:function(){var t=this.parentNode;t!==null&&(t._childNodes?t._childNodes.splice(this.index,1):t._firstChild===this&&(this._nextSibling===this?t._firstChild=null:t._firstChild=this._nextSibling),sI.remove(this),t.modify())}},replaceWith:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(o){return o===n});)n=n.nextSibling;var i=Ic(this.doc,t);this.parentNode===r?r.replaceChild(i,this):r.insertBefore(i,n)}}}};Sd.exports=cI});var wc=C((C3,Nd)=>{"use strict";var vd=Ke(),uI={nextElementSibling:{get:function(){if(this.parentNode){for(var e=this.nextSibling;e!==null;e=e.nextSibling)if(e.nodeType===vd.ELEMENT_NODE)return e}return null}},previousElementSibling:{get:function(){if(this.parentNode){for(var e=this.previousSibling;e!==null;e=e.previousSibling)if(e.nodeType===vd.ELEMENT_NODE)return e}return null}}};Nd.exports=uI});var Sc=C((R3,Cd)=>{"use strict";Cd.exports=Ad;var Bn=ve();function Ad(e){this.element=e}Object.defineProperties(Ad.prototype,{length:{get:Bn.shouldOverride},item:{value:Bn.shouldOverride},getNamedItem:{value:function(t){return this.element.getAttributeNode(t)}},getNamedItemNS:{value:function(t,r){return this.element.getAttributeNodeNS(t,r)}},setNamedItem:{value:Bn.nyi},setNamedItemNS:{value:Bn.nyi},removeNamedItem:{value:function(t){var r=this.element.getAttributeNode(t);if(r)return this.element.removeAttribute(t),r;Bn.NotFoundError()}},removeNamedItemNS:{value:function(t,r){var n=this.element.getAttributeNodeNS(t,r);if(n)return this.element.removeAttributeNS(t,r),n;Bn.NotFoundError()}}})});var Gn=C((O3,kd)=>{"use strict";kd.exports=Ur;var vc=no(),Te=ve(),Qt=Te.NAMESPACE,lo=gc(),Ut=Ke(),Nc=cn(),lI=nc(),uo=md(),jn=Za(),fI=Ec(),Ac=so(),Od=ro(),pI=co(),dI=wc(),Ld=Sc(),Rd=Object.create(null);function Ur(e,t,r,n){Od.call(this),this.nodeType=Ut.ELEMENT_NODE,this.ownerDocument=e,this.localName=t,this.namespaceURI=r,this.prefix=n,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function Cc(e,t){if(e.nodeType===Ut.TEXT_NODE)t.push(e._data);else for(var r=0,n=e.childNodes.length;r<n;r++)Cc(e.childNodes[r],t)}Ur.prototype=Object.create(Od.prototype,{isHTML:{get:function(){return this.namespaceURI===Qt.HTML&&this.ownerDocument.isHTML}},tagName:{get:function(){if(this._tagName===void 0){var t;if(this.prefix===null?t=this.localName:t=this.prefix+":"+this.localName,this.isHTML){var r=Rd[t];r||(Rd[t]=r=Te.toASCIIUpperCase(t)),t=r}this._tagName=t}return this._tagName}},nodeName:{get:function(){return this.tagName}},nodeValue:{get:function(){return null},set:function(){}},textContent:{get:function(){var e=[];return Cc(this,e),e.join("")},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerText:{get:function(){var e=[];return Cc(this,e),e.join("").replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerHTML:{get:function(){return this.serialize()},set:Te.nyi},outerHTML:{get:function(){return lI.serializeOne(this,{nodeType:0})},set:function(e){var t=this.ownerDocument,r=this.parentNode;if(r!==null){r.nodeType===Ut.DOCUMENT_NODE&&Te.NoModificationAllowedError(),r.nodeType===Ut.DOCUMENT_FRAGMENT_NODE&&(r=r.ownerDocument.createElement("body"));var n=t.implementation.mozHTMLParser(t._address,r);n.parse(e===null?"":String(e),!0),this.replaceWith(n._asDocumentFragment())}}},_insertAdjacent:{value:function(t,r){var n=!1;switch(t){case"beforebegin":n=!0;case"afterend":var i=this.parentNode;return i===null?null:i.insertBefore(r,n?this:this.nextSibling);case"afterbegin":n=!0;case"beforeend":return this.insertBefore(r,n?this.firstChild:null);default:return Te.SyntaxError()}}},insertAdjacentElement:{value:function(t,r){if(r.nodeType!==Ut.ELEMENT_NODE)throw new TypeError("not an element");return t=Te.toASCIILowerCase(String(t)),this._insertAdjacent(t,r)}},insertAdjacentText:{value:function(t,r){var n=this.ownerDocument.createTextNode(r);t=Te.toASCIILowerCase(String(t)),this._insertAdjacent(t,n)}},insertAdjacentHTML:{value:function(t,r){t=Te.toASCIILowerCase(String(t)),r=String(r);var n;switch(t){case"beforebegin":case"afterend":n=this.parentNode,(n===null||n.nodeType===Ut.DOCUMENT_NODE)&&Te.NoModificationAllowedError();break;case"afterbegin":case"beforeend":n=this;break;default:Te.SyntaxError()}(!(n instanceof Ur)||n.ownerDocument.isHTML&&n.localName==="html"&&n.namespaceURI===Qt.HTML)&&(n=n.ownerDocument.createElementNS(Qt.HTML,"body"));var i=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,n);i.parse(r,!0),this._insertAdjacent(t,i._asDocumentFragment())}},children:{get:function(){return this._children||(this._children=new Dd(this)),this._children}},attributes:{get:function(){return this._attributes||(this._attributes=new Oc(this)),this._attributes}},firstElementChild:{get:function(){for(var e=this.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===Ut.ELEMENT_NODE)return e;return null}},lastElementChild:{get:function(){for(var e=this.lastChild;e!==null;e=e.previousSibling)if(e.nodeType===Ut.ELEMENT_NODE)return e;return null}},childElementCount:{get:function(){return this.children.length}},nextElement:{value:function(e){e||(e=this.ownerDocument.documentElement);var t=this.firstElementChild;if(!t){if(this===e)return null;t=this.nextElementSibling}if(t)return t;for(var r=this.parentElement;r&&r!==e;r=r.parentElement)if(t=r.nextElementSibling,t)return t;return null}},getElementsByTagName:{value:function(t){var r;return t?(t==="*"?r=function(){return!0}:this.isHTML?r=xI(t):r=Rc(t),new uo(this,r)):new Nc}},getElementsByTagNameNS:{value:function(t,r){var n;return t==="*"&&r==="*"?n=function(){return!0}:t==="*"?n=Rc(r):r==="*"?n=mI(t):n=hI(t,r),new uo(this,n)}},getElementsByClassName:{value:function(t){if(t=String(t).trim(),t===""){var r=new Nc;return r}return t=t.split(/[ \t\r\n\f]+/),new uo(this,gI(t))}},getElementsByName:{value:function(t){return new uo(this,bI(String(t)))}},clone:{value:function(){var t;this.namespaceURI!==Qt.HTML||this.prefix||!this.ownerDocument.isHTML?t=this.ownerDocument.createElementNS(this.namespaceURI,this.prefix!==null?this.prefix+":"+this.localName:this.localName):t=this.ownerDocument.createElement(this.localName);for(var r=0,n=this._attrKeys.length;r<n;r++){var i=this._attrKeys[r],o=this._attrsByLName[i],c=o.cloneNode();c._setOwnerElement(t),t._attrsByLName[i]=c,t._addQName(c)}return t._attrKeys=this._attrKeys.concat(),t}},isEqual:{value:function(t){if(this.localName!==t.localName||this.namespaceURI!==t.namespaceURI||this.prefix!==t.prefix||this._numattrs!==t._numattrs)return!1;for(var r=0,n=this._numattrs;r<n;r++){var i=this._attr(r);if(!t.hasAttributeNS(i.namespaceURI,i.localName)||t.getAttributeNS(i.namespaceURI,i.localName)!==i.value)return!1}return!0}},_lookupNamespacePrefix:{value:function(t,r){if(this.namespaceURI&&this.namespaceURI===t&&this.prefix!==null&&r.lookupNamespaceURI(this.prefix)===t)return this.prefix;for(var n=0,i=this._numattrs;n<i;n++){var o=this._attr(n);if(o.prefix==="xmlns"&&o.value===t&&r.lookupNamespaceURI(o.localName)===t)return o.localName}var c=this.parentElement;return c?c._lookupNamespacePrefix(t,r):null}},lookupNamespaceURI:{value:function(t){if((t===""||t===void 0)&&(t=null),this.namespaceURI!==null&&this.prefix===t)return this.namespaceURI;for(var r=0,n=this._numattrs;r<n;r++){var i=this._attr(r);if(i.namespaceURI===Qt.XMLNS&&(i.prefix==="xmlns"&&i.localName===t||t===null&&i.prefix===null&&i.localName==="xmlns"))return i.value||null}var o=this.parentElement;return o?o.lookupNamespaceURI(t):null}},getAttribute:{value:function(t){var r=this.getAttributeNode(t);return r?r.value:null}},getAttributeNS:{value:function(t,r){var n=this.getAttributeNodeNS(t,r);return n?n.value:null}},getAttributeNode:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t));var r=this._attrsByQName[t];return r?(Array.isArray(r)&&(r=r[0]),r):null}},getAttributeNodeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=this._attrsByLName[t+"|"+r];return n||null}},hasAttribute:{value:function(t){return t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t)),this._attrsByQName[t]!==void 0}},hasAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r;return this._attrsByLName[n]!==void 0}},hasAttributes:{value:function(){return this._numattrs>0}},toggleAttribute:{value:function(t,r){t=String(t),vc.isValidName(t)||Te.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t));var n=this._attrsByQName[t];return n===void 0?r===void 0||r===!0?(this._setAttribute(t,""),!0):!1:r===void 0||r===!1?(this.removeAttribute(t),!1):!0}},_setAttribute:{value:function(t,r){var n=this._attrsByQName[t],i;n?Array.isArray(n)&&(n=n[0]):(n=this._newattr(t),i=!0),n.value=r,this._attributes&&(this._attributes[t]=n),i&&this._newattrhook&&this._newattrhook(t,r)}},setAttribute:{value:function(t,r){t=String(t),vc.isValidName(t)||Te.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t)),this._setAttribute(t,String(r))}},_setAttributeNS:{value:function(t,r,n){var i=r.indexOf(":"),o,c;i<0?(o=null,c=r):(o=r.substring(0,i),c=r.substring(i+1)),(t===""||t===void 0)&&(t=null);var x=(t===null?"":t)+"|"+c,m=this._attrsByLName[x],T;m||(m=new ki(this,c,o,t),T=!0,this._attrsByLName[x]=m,this._attributes&&(this._attributes[this._attrKeys.length]=m),this._attrKeys.push(x),this._addQName(m)),m.value=n,T&&this._newattrhook&&this._newattrhook(r,n)}},setAttributeNS:{value:function(t,r,n){t=t==null||t===""?null:String(t),r=String(r),vc.isValidQName(r)||Te.InvalidCharacterError();var i=r.indexOf(":"),o=i<0?null:r.substring(0,i);(o!==null&&t===null||o==="xml"&&t!==Qt.XML||(r==="xmlns"||o==="xmlns")&&t!==Qt.XMLNS||t===Qt.XMLNS&&!(r==="xmlns"||o==="xmlns"))&&Te.NamespaceError(),this._setAttributeNS(t,r,String(n))}},setAttributeNode:{value:function(t){if(t.ownerElement!==null&&t.ownerElement!==this)throw new jn(jn.INUSE_ATTRIBUTE_ERR);var r=null,n=this._attrsByQName[t.name];if(n){if(Array.isArray(n)||(n=[n]),n.some(function(i){return i===t}))return t;if(t.ownerElement!==null)throw new jn(jn.INUSE_ATTRIBUTE_ERR);n.forEach(function(i){this.removeAttributeNode(i)},this),r=n[0]}return this.setAttributeNodeNS(t),r}},setAttributeNodeNS:{value:function(t){if(t.ownerElement!==null)throw new jn(jn.INUSE_ATTRIBUTE_ERR);var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName,i=this._attrsByLName[n];return i&&this.removeAttributeNode(i),t._setOwnerElement(this),this._attrsByLName[n]=t,this._attributes&&(this._attributes[this._attrKeys.length]=t),this._attrKeys.push(n),this._addQName(t),this._newattrhook&&this._newattrhook(t.name,t.value),i||null}},removeAttribute:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t));var r=this._attrsByQName[t];if(r){Array.isArray(r)?r.length>2?r=r.shift():(this._attrsByQName[t]=r[1],r=r[0]):this._attrsByQName[t]=void 0;var n=r.namespaceURI,i=(n===null?"":n)+"|"+r.localName;this._attrsByLName[i]=void 0;var o=this._attrKeys.indexOf(i);this._attributes&&(Array.prototype.splice.call(this._attributes,o,1),this._attributes[t]=void 0),this._attrKeys.splice(o,1);var c=r.onchange;r._setOwnerElement(null),c&&c.call(r,this,r.localName,r.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(r)}}},removeAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r,i=this._attrsByLName[n];if(i){this._attrsByLName[n]=void 0;var o=this._attrKeys.indexOf(n);this._attributes&&Array.prototype.splice.call(this._attributes,o,1),this._attrKeys.splice(o,1),this._removeQName(i);var c=i.onchange;i._setOwnerElement(null),c&&c.call(i,this,i.localName,i.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(i)}}},removeAttributeNode:{value:function(t){var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName;return this._attrsByLName[n]!==t&&Te.NotFoundError(),this.removeAttributeNS(r,t.localName),t}},getAttributeNames:{value:function(){var t=this;return this._attrKeys.map(function(r){return t._attrsByLName[r].name})}},_getattr:{value:function(t){var r=this._attrsByQName[t];return r?r.value:null}},_setattr:{value:function(t,r){var n=this._attrsByQName[t],i;n||(n=this._newattr(t),i=!0),n.value=String(r),this._attributes&&(this._attributes[t]=n),i&&this._newattrhook&&this._newattrhook(t,r)}},_newattr:{value:function(t){var r=new ki(this,t,null,null),n="|"+t;return this._attrsByQName[t]=r,this._attrsByLName[n]=r,this._attributes&&(this._attributes[this._attrKeys.length]=r),this._attrKeys.push(n),r}},_addQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];r?Array.isArray(r)?r.push(e):this._attrsByQName[t]=[r,e]:this._attrsByQName[t]=e,this._attributes&&(this._attributes[t]=e)}},_removeQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];if(Array.isArray(r)){var n=r.indexOf(e);Te.assert(n!==-1),r.length===2?(this._attrsByQName[t]=r[1-n],this._attributes&&(this._attributes[t]=this._attrsByQName[t])):(r.splice(n,1),this._attributes&&this._attributes[t]===e&&(this._attributes[t]=r[0]))}else Te.assert(r===e),this._attrsByQName[t]=void 0,this._attributes&&(this._attributes[t]=void 0)}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(e){return this._attrsByLName[this._attrKeys[e]]}},id:lo.property({name:"id"}),className:lo.property({name:"class"}),classList:{get:function(){var e=this;if(this._classList)return this._classList;var t=new fI(function(){return e.className||""},function(r){e.className=r});return this._classList=t,t},set:function(e){this.className=e}},matches:{value:function(e){return Ac.matches(this,e)}},closest:{value:function(e){var t=this;do{if(t.matches&&t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===Ut.ELEMENT_NODE);return null}},querySelector:{value:function(e){return Ac(e,this)[0]}},querySelectorAll:{value:function(e){var t=Ac(e,this);return t.item?t:new Nc(t)}}});Object.defineProperties(Ur.prototype,pI);Object.defineProperties(Ur.prototype,dI);lo.registerChangeHandler(Ur,"id",function(e,t,r,n){e.rooted&&(r&&e.ownerDocument.delId(r,e),n&&e.ownerDocument.addId(n,e))});lo.registerChangeHandler(Ur,"class",function(e,t,r,n){e._classList&&e._classList._update()});function ki(e,t,r,n,i){this.localName=t,this.prefix=r===null||r===""?null:""+r,this.namespaceURI=n===null||n===""?null:""+n,this.data=i,this._setOwnerElement(e)}ki.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:function(t){this._ownerElement=t,this.prefix===null&&this.namespaceURI===null&&t?this.onchange=t._attributeChangeHandlers[this.localName]:this.onchange=null}},name:{get:function(){return this.prefix?this.prefix+":"+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(e){var t=this.data;e=e===void 0?"":e+"",e!==t&&(this.data=e,this.ownerElement&&(this.onchange&&this.onchange(this.ownerElement,this.localName,t,e),this.ownerElement.rooted&&this.ownerElement.ownerDocument.mutateAttr(this,t)))}},cloneNode:{value:function(t){return new ki(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return Ut.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(e){this.value=e}},textContent:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}},innerText:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}}});Ur._Attr=ki;function Oc(e){Ld.call(this,e);for(var t in e._attrsByQName)this[t]=e._attrsByQName[t];for(var r=0;r<e._attrKeys.length;r++)this[r]=e._attrsByLName[e._attrKeys[r]]}Oc.prototype=Object.create(Ld.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(e){return e=e>>>0,e>=this.length?null:this.element._attrsByLName[this.element._attrKeys[e]]}}});globalThis.Symbol?.iterator&&(Oc.prototype[globalThis.Symbol.iterator]=function(){var e=0,t=this.length,r=this;return{next:function(){return e<t?{value:r.item(e++)}:{done:!0}}}});function Dd(e){this.element=e,this.updateCache()}Dd.prototype=Object.create(Object.prototype,{length:{get:function(){return this.updateCache(),this.childrenByNumber.length}},item:{value:function(t){return this.updateCache(),this.childrenByNumber[t]||null}},namedItem:{value:function(t){return this.updateCache(),this.childrenByName[t]||null}},namedItems:{get:function(){return this.updateCache(),this.childrenByName}},updateCache:{value:function(){var t=/^(a|applet|area|embed|form|frame|frameset|iframe|img|object)$/;if(this.lastModTime!==this.element.lastModTime){this.lastModTime=this.element.lastModTime;for(var r=this.childrenByNumber&&this.childrenByNumber.length||0,n=0;n<r;n++)this[n]=void 0;this.childrenByNumber=[],this.childrenByName=Object.create(null);for(var i=this.element.firstChild;i!==null;i=i.nextSibling)if(i.nodeType===Ut.ELEMENT_NODE){this[this.childrenByNumber.length]=i,this.childrenByNumber.push(i);var o=i.getAttribute("id");o&&!this.childrenByName[o]&&(this.childrenByName[o]=i);var c=i.getAttribute("name");c&&this.element.namespaceURI===Qt.HTML&&t.test(this.element.localName)&&!this.childrenByName[c]&&(this.childrenByName[o]=i)}}}}});function Rc(e){return function(t){return t.localName===e}}function xI(e){var t=Te.toASCIILowerCase(e);return t===e?Rc(e):function(r){return r.isHTML?r.localName===t:r.localName===e}}function mI(e){return function(t){return t.namespaceURI===e}}function hI(e,t){return function(r){return r.namespaceURI===e&&r.localName===t}}function gI(e){return function(t){return e.every(function(r){return t.classList.contains(r)})}}function bI(e){return function(t){return t.namespaceURI!==Qt.HTML?!1:t.getAttribute("name")===e}}});var Lc=C((L3,Hd)=>{"use strict";Hd.exports=qd;var Fd=Ke(),EI=cn(),Pd=ve(),Md=Pd.HierarchyRequestError,yI=Pd.NotFoundError;function qd(){Fd.call(this)}qd.prototype=Object.create(Fd.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");Md()}},replaceChild:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");Md()}},removeChild:{value:function(e){if(!e.nodeType)throw new TypeError("not a node");yI()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||(this._childNodes=new EI),this._childNodes}}})});var Mi=C((D3,jd)=>{"use strict";jd.exports=fo;var Bd=Lc(),Ud=ve(),TI=co(),_I=wc();function fo(){Bd.call(this)}fo.prototype=Object.create(Bd.prototype,{substringData:{value:function(t,r){if(arguments.length<2)throw new TypeError("Not enough arguments");return t=t>>>0,r=r>>>0,(t>this.data.length||t<0||r<0)&&Ud.IndexSizeError(),this.data.substring(t,t+r)}},appendData:{value:function(t){if(arguments.length<1)throw new TypeError("Not enough arguments");this.data+=String(t)}},insertData:{value:function(t,r){return this.replaceData(t,0,r)}},deleteData:{value:function(t,r){return this.replaceData(t,r,"")}},replaceData:{value:function(t,r,n){var i=this.data,o=i.length;t=t>>>0,r=r>>>0,n=String(n),(t>o||t<0)&&Ud.IndexSizeError(),t+r>o&&(r=o-t);var c=i.substring(0,t),x=i.substring(t+r);this.data=c+n+x}},isEqual:{value:function(t){return this._data===t._data}},length:{get:function(){return this.data.length}}});Object.defineProperties(fo.prototype,TI);Object.defineProperties(fo.prototype,_I)});var kc=C((k3,$d)=>{"use strict";$d.exports=Dc;var Gd=ve(),Vd=Ke(),Kd=Mi();function Dc(e,t){Kd.call(this),this.nodeType=Vd.TEXT_NODE,this.ownerDocument=e,this._data=t,this._index=void 0}var Fi={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),e!==this._data&&(this._data=e,this.rooted&&this.ownerDocument.mutateValue(this),this.parentNode&&this.parentNode._textchangehook&&this.parentNode._textchangehook(this))}};Dc.prototype=Object.create(Kd.prototype,{nodeName:{value:"#text"},nodeValue:Fi,textContent:Fi,innerText:Fi,data:{get:Fi.get,set:function(e){Fi.set.call(this,e===null?"":String(e))}},splitText:{value:function(t){(t>this._data.length||t<0)&&Gd.IndexSizeError();var r=this._data.substring(t),n=this.ownerDocument.createTextNode(r);this.data=this.data.substring(0,t);var i=this.parentNode;return i!==null&&i.insertBefore(n,this.nextSibling),n}},wholeText:{get:function(){for(var t=this.textContent,r=this.nextSibling;r&&r.nodeType===Vd.TEXT_NODE;r=r.nextSibling)t+=r.textContent;return t}},replaceWholeText:{value:Gd.nyi},clone:{value:function(){return new Dc(this.ownerDocument,this._data)}}})});var Fc=C((M3,zd)=>{"use strict";zd.exports=Mc;var II=Ke(),Wd=Mi();function Mc(e,t){Wd.call(this),this.nodeType=II.COMMENT_NODE,this.ownerDocument=e,this._data=t}var Pi={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};Mc.prototype=Object.create(Wd.prototype,{nodeName:{value:"#comment"},nodeValue:Pi,textContent:Pi,innerText:Pi,data:{get:Pi.get,set:function(e){Pi.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new Mc(this.ownerDocument,this._data)}}})});var qc=C((F3,Yd)=>{"use strict";Yd.exports=Pc;var wI=Ke(),SI=cn(),Qd=ro(),po=Gn(),vI=so(),Xd=ve();function Pc(e){Qd.call(this),this.nodeType=wI.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=e}Pc.prototype=Object.create(Qd.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(po.prototype,"textContent"),innerText:Object.getOwnPropertyDescriptor(po.prototype,"innerText"),querySelector:{value:function(e){var t=this.querySelectorAll(e);return t.length?t[0]:null}},querySelectorAll:{value:function(e){var t=Object.create(this);t.isHTML=!0,t.getElementsByTagName=po.prototype.getElementsByTagName,t.nextElement=Object.getOwnPropertyDescriptor(po.prototype,"firstElementChild").get;var r=vI(e,t);return r.item?r:new SI(r)}},clone:{value:function(){return new Pc(this.ownerDocument)}},isEqual:{value:function(t){return!0}},innerHTML:{get:function(){return this.serialize()},set:Xd.nyi},outerHTML:{get:function(){return this.serialize()},set:Xd.nyi}})});var Uc=C((P3,Jd)=>{"use strict";Jd.exports=Hc;var NI=Ke(),Zd=Mi();function Hc(e,t,r){Zd.call(this),this.nodeType=NI.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=e,this.target=t,this._data=r}var qi={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};Hc.prototype=Object.create(Zd.prototype,{nodeName:{get:function(){return this.target}},nodeValue:qi,textContent:qi,innerText:qi,data:{get:qi.get,set:function(e){qi.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new Hc(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(t){return this.target===t.target&&this._data===t._data}}})});var Hi=C((q3,ex)=>{"use strict";var Bc={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};ex.exports=Bc.constructor=Bc.prototype=Bc});var Gc=C((U3,rx)=>{"use strict";var H3=rx.exports={nextSkippingChildren:AI,nextAncestorSibling:jc,next:CI,previous:RI,deepLastChild:tx};function AI(e,t){return e===t?null:e.nextSibling!==null?e.nextSibling:jc(e,t)}function jc(e,t){for(e=e.parentNode;e!==null;e=e.parentNode){if(e===t)return null;if(e.nextSibling!==null)return e.nextSibling}return null}function CI(e,t){var r;return r=e.firstChild,r!==null?r:e===t?null:(r=e.nextSibling,r!==null?r:jc(e,t))}function tx(e){for(;e.lastChild;)e=e.lastChild;return e}function RI(e,t){var r;return r=e.previousSibling,r!==null?tx(r):(r=e.parentNode,r===t?null:r)}});var ux=C((B3,cx)=>{"use strict";cx.exports=sx;var OI=Ke(),$e=Hi(),nx=Gc(),ox=ve(),Vc={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},Kc={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function ix(e,t){var r,n,i,o,c;for(n=e._currentNode[Vc[t]];n!==null;){if(o=e._internalFilter(n),o===$e.FILTER_ACCEPT)return e._currentNode=n,n;if(o===$e.FILTER_SKIP&&(r=n[Vc[t]],r!==null)){n=r;continue}for(;n!==null;){if(c=n[Kc[t]],c!==null){n=c;break}if(i=n.parentNode,i===null||i===e.root||i===e._currentNode)return null;n=i}}return null}function ax(e,t){var r,n,i;if(r=e._currentNode,r===e.root)return null;for(;;){for(i=r[Kc[t]];i!==null;){if(r=i,n=e._internalFilter(r),n===$e.FILTER_ACCEPT)return e._currentNode=r,r;i=r[Vc[t]],(n===$e.FILTER_REJECT||i===null)&&(i=r[Kc[t]])}if(r=r.parentNode,r===null||r===e.root||e._internalFilter(r)===$e.FILTER_ACCEPT)return null}}function sx(e,t,r){(!e||!e.nodeType)&&ox.NotSupportedError(),this._root=e,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,this._currentNode=e}Object.defineProperties(sx.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:function(){return this._currentNode},set:function(t){if(!(t instanceof OI))throw new TypeError("Not a Node");this._currentNode=t}},_internalFilter:{value:function(t){var r,n;if(this._active&&ox.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return $e.FILTER_SKIP;if(n=this._filter,n===null)r=$e.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},parentNode:{value:function(){for(var t=this._currentNode;t!==this.root;){if(t=t.parentNode,t===null)return null;if(this._internalFilter(t)===$e.FILTER_ACCEPT)return this._currentNode=t,t}return null}},firstChild:{value:function(){return ix(this,"first")}},lastChild:{value:function(){return ix(this,"last")}},previousSibling:{value:function(){return ax(this,"previous")}},nextSibling:{value:function(){return ax(this,"next")}},previousNode:{value:function(){var t,r,n,i;for(t=this._currentNode;t!==this._root;){for(n=t.previousSibling;n;n=t.previousSibling)if(t=n,r=this._internalFilter(t),r!==$e.FILTER_REJECT){for(i=t.lastChild;i&&(t=i,r=this._internalFilter(t),r!==$e.FILTER_REJECT);i=t.lastChild);if(r===$e.FILTER_ACCEPT)return this._currentNode=t,t}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this._internalFilter(t)===$e.FILTER_ACCEPT)return this._currentNode=t,t}return null}},nextNode:{value:function(){var t,r,n,i;t=this._currentNode,r=$e.FILTER_ACCEPT;e:for(;;){for(n=t.firstChild;n;n=t.firstChild){if(t=n,r=this._internalFilter(t),r===$e.FILTER_ACCEPT)return this._currentNode=t,t;if(r===$e.FILTER_REJECT)break}for(i=nx.nextSkippingChildren(t,this.root);i;i=nx.nextSkippingChildren(t,this.root)){if(t=i,r=this._internalFilter(t),r===$e.FILTER_ACCEPT)return this._currentNode=t,t;if(r===$e.FILTER_SKIP)continue e}return null}}},toString:{value:function(){return"[object TreeWalker]"}}})});var mx=C((j3,xx)=>{"use strict";xx.exports=dx;var $c=Hi(),Wc=Gc(),px=ve();function LI(e,t,r){return r?Wc.next(e,t):e===t?null:Wc.previous(e,null)}function lx(e,t){for(;t;t=t.parentNode)if(e===t)return!0;return!1}function fx(e,t){var r,n;for(r=e._referenceNode,n=e._pointerBeforeReferenceNode;;){if(n===t)n=!n;else if(r=LI(r,e._root,t),r===null)return null;var i=e._internalFilter(r);if(i===$c.FILTER_ACCEPT)break}return e._referenceNode=r,e._pointerBeforeReferenceNode=n,r}function dx(e,t,r){(!e||!e.nodeType)&&px.NotSupportedError(),this._root=e,this._referenceNode=e,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,e.doc._attachNodeIterator(this)}Object.defineProperties(dx.prototype,{root:{get:function(){return this._root}},referenceNode:{get:function(){return this._referenceNode}},pointerBeforeReferenceNode:{get:function(){return this._pointerBeforeReferenceNode}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},_internalFilter:{value:function(t){var r,n;if(this._active&&px.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return $c.FILTER_SKIP;if(n=this._filter,n===null)r=$c.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},_preremove:{value:function(t){if(!lx(t,this._root)&&lx(t,this._referenceNode)){if(this._pointerBeforeReferenceNode){for(var r=t;r.lastChild;)r=r.lastChild;if(r=Wc.next(r,this.root),r){this._referenceNode=r;return}this._pointerBeforeReferenceNode=!1}if(t.previousSibling===null)this._referenceNode=t.parentNode;else{this._referenceNode=t.previousSibling;var n;for(n=this._referenceNode.lastChild;n;n=this._referenceNode.lastChild)this._referenceNode=n}}}},nextNode:{value:function(){return fx(this,!0)}},previousNode:{value:function(){return fx(this,!1)}},detach:{value:function(){}},toString:{value:function(){return"[object NodeIterator]"}}})});var xo=C((G3,hx)=>{"use strict";hx.exports=We;function We(e){if(!e)return Object.create(We.prototype);this.url=e.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var t=We.pattern.exec(this.url);if(t){if(t[2]&&(this.scheme=t[2]),t[4]){var r=t[4].match(We.userinfoPattern);if(r&&(this.username=r[1],this.password=r[3],t[4]=t[4].substring(r[0].length)),t[4].match(We.portPattern)){var n=t[4].lastIndexOf(":");this.host=t[4].substring(0,n),this.port=t[4].substring(n+1)}else this.host=t[4]}t[5]&&(this.path=t[5]),t[6]&&(this.query=t[7]),t[8]&&(this.fragment=t[9])}}We.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/;We.userinfoPattern=/^([^@:]*)(:([^@]*))?@/;We.portPattern=/:\d+$/;We.authorityPattern=/^[^:\/?#]+:\/\//;We.hierarchyPattern=/^[^:\/?#]+:\//;We.percentEncode=function(t){var r=t.charCodeAt(0);if(r<256)return"%"+r.toString(16);throw Error("can't percent-encode codepoints > 255 yet")};We.prototype={constructor:We,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return We.authorityPattern.test(this.url)},isHierarchical:function(){return We.hierarchyPattern.test(this.url)},toString:function(){var e="";return this.scheme!==void 0&&(e+=this.scheme+":"),this.isAbsolute()&&(e+="//",(this.username||this.password)&&(e+=this.username||"",this.password&&(e+=":"+this.password),e+="@"),this.host&&(e+=this.host)),this.port!==void 0&&(e+=":"+this.port),this.path!==void 0&&(e+=this.path),this.query!==void 0&&(e+="?"+this.query),this.fragment!==void 0&&(e+="#"+this.fragment),e},resolve:function(e){var t=this,r=new We(e),n=new We;return r.scheme!==void 0?(n.scheme=r.scheme,n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=o(r.path),n.query=r.query):(n.scheme=t.scheme,r.host!==void 0?(n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=o(r.path),n.query=r.query):(n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,r.path?(r.path.charAt(0)==="/"?n.path=o(r.path):(n.path=i(t.path,r.path),n.path=o(n.path)),n.query=r.query):(n.path=t.path,r.query!==void 0?n.query=r.query:n.query=t.query))),n.fragment=r.fragment,n.toString();function i(c,x){if(t.host!==void 0&&!t.path)return"/"+x;var m=c.lastIndexOf("/");return m===-1?x:c.substring(0,m+1)+x}function o(c){if(!c)return c;for(var x="";c.length>0;){if(c==="."||c===".."){c="";break}var m=c.substring(0,2),T=c.substring(0,3),w=c.substring(0,4);if(T==="../")c=c.substring(3);else if(m==="./")c=c.substring(2);else if(T==="/./")c="/"+c.substring(3);else if(m==="/."&&c.length===2)c="/";else if(w==="/../"||T==="/.."&&c.length===3)c="/"+c.substring(4),x=x.replace(/\/?[^\/]*$/,"");else{var ue=c.match(/(\/?([^\/]*))/)[0];x+=ue,c=c.substring(ue.length)}}return x}}}});var Ex=C((V3,bx)=>{"use strict";bx.exports=zc;var gx=Fn();function zc(e,t){gx.call(this,e,t)}zc.prototype=Object.create(gx.prototype,{constructor:{value:zc}})});var Xc=C((K3,yx)=>{"use strict";yx.exports={Event:Fn(),UIEvent:Ys(),MouseEvent:Js(),CustomEvent:Ex()}});var _x=C(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.hyphenate=Vn.parse=void 0;function DI(e){let t=[],r=0,n=0,i=0,o=0,c=0,x=null;for(;r<e.length;)switch(e.charCodeAt(r++)){case 40:n++;break;case 41:n--;break;case 39:i===0?i=39:i===39&&e.charCodeAt(r-1)!==92&&(i=0);break;case 34:i===0?i=34:i===34&&e.charCodeAt(r-1)!==92&&(i=0);break;case 58:!x&&n===0&&i===0&&(x=Tx(e.substring(c,r-1).trim()),o=r);break;case 59:if(x&&o>0&&n===0&&i===0){let T=e.substring(o,r-1).trim();t.push(x,T),c=r,o=0,x=null}break}if(x&&o){let m=e.slice(o).trim();t.push(x,m)}return t}Vn.parse=DI;function Tx(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}Vn.hyphenate=Tx});var mo=C((W3,Nx)=>{"use strict";var{parse:kI}=_x();Nx.exports=function(e){let t=new vx(e),r={get:function(n,i){return i in n?n[i]:n.getPropertyValue(Ix(i))},has:function(n,i){return!0},set:function(n,i,o){return i in n?n[i]=o:n.setProperty(Ix(i),o??void 0),!0}};return new Proxy(t,r)};function Ix(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function vx(e){this._element=e}var wx="!important";function Sx(e){let t={property:{},priority:{}};if(!e)return t;let r=kI(e);if(r.length<2)return t;for(let n=0;n<r.length;n+=2){let i=r[n],o=r[n+1];o.endsWith(wx)&&(t.priority[i]="important",o=o.slice(0,-wx.length).trim()),t.property[i]=o}return t}var Kn={};vx.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var e=this.cssText;this._parsedStyles=Sx(e),this._lastParsedText=e,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var e=this._parsed,t="";for(var r in e.property)t&&(t+=" "),t+=r+": "+e.property[r],e.priority[r]&&(t+=" !"+e.priority[r]),t+=";";this.cssText=t,this._lastParsedText=t,delete this._names}},cssText:{get:function(){return this._element.getAttribute("style")},set:function(e){this._element.setAttribute("style",e)}},length:{get:function(){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names.length}},item:{value:function(e){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names[e]}},getPropertyValue:{value:function(e){return e=e.toLowerCase(),this._parsed.property[e]||""}},getPropertyPriority:{value:function(e){return e=e.toLowerCase(),this._parsed.priority[e]||""}},setProperty:{value:function(e,t,r){if(e=e.toLowerCase(),t==null&&(t=""),r==null&&(r=""),t!==Kn&&(t=""+t),t=t.trim(),t===""){this.removeProperty(e);return}if(!(r!==""&&r!==Kn&&!/^important$/i.test(r))){var n=this._parsed;if(t===Kn){if(!n.property[e])return;r!==""?n.priority[e]="important":delete n.priority[e]}else{if(t.indexOf(";")!==-1)return;var i=Sx(e+":"+t);if(Object.getOwnPropertyNames(i.property).length===0||Object.getOwnPropertyNames(i.priority).length!==0)return;for(var o in i.property)n.property[o]=i.property[o],r!==Kn&&(r!==""?n.priority[o]="important":n.priority[o]&&delete n.priority[o])}this._serialize()}}},setPropertyValue:{value:function(e,t){return this.setProperty(e,t,Kn)}},setPropertyPriority:{value:function(e,t){return this.setProperty(e,Kn,t)}},removeProperty:{value:function(e){e=e.toLowerCase();var t=this._parsed;e in t.property&&(delete t.property[e],delete t.priority[e],this._serialize())}}})});var Qc=C((z3,Ax)=>{"use strict";var Be=xo();Ax.exports=Ui;function Ui(){}Ui.prototype=Object.create(Object.prototype,{_url:{get:function(){return new Be(this.href)}},protocol:{get:function(){var e=this._url;return e&&e.scheme?e.scheme+":":":"},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&(e=e.replace(/:+$/,""),e=e.replace(/[^-+\.a-zA-Z0-9]/g,Be.percentEncode),e.length>0&&(r.scheme=e,t=r.toString())),this.href=t}},host:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host+(e.port?":"+e.port:""):""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,Be.percentEncode),e.length>0&&(r.host=e,delete r.port,t=r.toString())),this.href=t}},hostname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host:""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/^\/+/,""),e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,Be.percentEncode),e.length>0&&(r.host=e,t=r.toString())),this.href=t}},port:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()&&e.port!==void 0?e.port:""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=""+e,e=e.replace(/[^0-9].*$/,""),e=e.replace(/^0+/,""),e.length===0&&(e="0"),parseInt(e,10)<=65535&&(r.port=e,t=r.toString())),this.href=t}},pathname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()?e.path:""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)!=="/"&&(e="/"+e),e=e.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,Be.percentEncode),r.path=e,t=r.toString()),this.href=t}},search:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()&&e.query!==void 0?"?"+e.query:""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)==="?"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,Be.percentEncode),r.query=e,t=r.toString()),this.href=t}},hash:{get:function(){var e=this._url;return e==null||e.fragment==null||e.fragment===""?"":"#"+e.fragment},set:function(e){var t=this.href,r=new Be(t);e.charAt(0)==="#"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,Be.percentEncode),r.fragment=e,t=r.toString(),this.href=t}},username:{get:function(){var e=this._url;return e.username||""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,Be.percentEncode),r.username=e,t=r.toString()),this.href=t}},password:{get:function(){var e=this._url;return e.password||""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&(e===""?r.password=null:(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,Be.percentEncode),r.password=e),t=r.toString()),this.href=t}},origin:{get:function(){var e=this._url;if(e==null)return"";var t=function(r){var n=[e.scheme,e.host,+e.port||r];return n[0]+"://"+n[1]+(n[2]===r?"":":"+n[2])};switch(e.scheme){case"ftp":return t(21);case"gopher":return t(70);case"http":case"ws":return t(80);case"https":case"wss":return t(443);default:return e.scheme+"://"}}}});Ui._inherit=function(e){Object.getOwnPropertyNames(Ui.prototype).forEach(function(t){if(!(t==="constructor"||t==="href")){var r=Object.getOwnPropertyDescriptor(Ui.prototype,t);Object.defineProperty(e,t,r)}})}});var Yc=C((X3,Ox)=>{"use strict";var Cx=gc(),MI=Ja().isApiWritable;Ox.exports=function(e,t,r,n){var i=e.ctor;if(i){var o=e.props||{};if(e.attributes)for(var c in e.attributes){var x=e.attributes[c];(typeof x!="object"||Array.isArray(x))&&(x={type:x}),x.name||(x.name=c.toLowerCase()),o[c]=Cx.property(x)}o.constructor={value:i,writable:MI},i.prototype=Object.create((e.superclass||t).prototype,o),e.events&&PI(i,e.events),r[e.name]=i}else i=t;return(e.tags||e.tag&&[e.tag]||[]).forEach(function(m){n[m]=i}),i};function Rx(e,t,r,n){this.body=e,this.document=t,this.form=r,this.element=n}Rx.prototype.build=function(){return()=>{}};function FI(e,t,r,n){var i=e.ownerDocument||Object.create(null),o=e.form||Object.create(null);e[t]=new Rx(n,i,o,e).build()}function PI(e,t){var r=e.prototype;t.forEach(function(n){Object.defineProperty(r,"on"+n,{get:function(){return this._getEventHandler(n)},set:function(i){this._setEventHandler(n,i)}}),Cx.registerChangeHandler(e,"on"+n,FI)})}});var bo=C(go=>{"use strict";var Zc=Ke(),Lx=Gn(),qI=mo(),ht=ve(),Dx=Qc(),HI=Yc(),pr=go.elements={},Bi=Object.create(null);go.createElement=function(e,t,r){var n=Bi[t]||BI;return new n(e,t,r)};function v(e){return HI(e,N,pr,Bi)}function Ne(e){return{get:function(){var t=this._getattr(e);if(t===null)return"";var r=this.doc._resolve(t);return r===null?t:r},set:function(t){this._setattr(e,t)}}}function ho(e){return{get:function(){var t=this._getattr(e);return t===null?null:t.toLowerCase()==="use-credentials"?"use-credentials":"anonymous"},set:function(t){t==null?this.removeAttribute(e):this._setattr(e,t)}}}var $n={type:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],missing:""},UI={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},Bt=function(e,t,r){N.call(this,e,t,r),this._form=null},N=go.HTMLElement=v({superclass:Lx,name:"HTMLElement",ctor:function(t,r,n){Lx.call(this,t,r,ht.NAMESPACE.HTML,n)},props:{dangerouslySetInnerHTML:{set:function(e){this._innerHTML=e}},innerHTML:{get:function(){return this.serialize()},set:function(e){var t=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,this);t.parse(e===null?"":String(e),!0);for(var r=this instanceof Bi.template?this.content:this;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(t._asDocumentFragment())}},style:{get:function(){return this._style||(this._style=new qI(this)),this._style},set:function(e){e==null&&(e=""),this._setattr("style",String(e))}},blur:{value:function(){}},focus:{value:function(){}},forceSpellCheck:{value:function(){}},click:{value:function(){if(!this._click_in_progress){this._click_in_progress=!0;try{this._pre_click_activation_steps&&this._pre_click_activation_steps();var e=this.ownerDocument.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);var t=this.dispatchEvent(e);t?this._post_click_activation_steps&&this._post_click_activation_steps(e):this._cancelled_activation_steps&&this._cancelled_activation_steps()}finally{this._click_in_progress=!1}}}},submit:{value:ht.nyi}},attributes:{title:String,lang:String,dir:{type:["ltr","rtl","auto"],missing:""},draggable:{type:["true","false"],treatNullAsEmptyString:!0},spellcheck:{type:["true","false"],missing:""},enterKeyHint:{type:["enter","done","go","next","previous","search","send"],missing:""},autoCapitalize:{type:["off","on","none","sentences","words","characters"],missing:""},autoFocus:Boolean,accessKey:String,nonce:String,hidden:Boolean,translate:{type:["no","yes"],missing:""},tabIndex:{type:"long",default:function(){return this.tagName in UI||this.contentEditable?0:-1}}},events:["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"]}),BI=v({name:"HTMLUnknownElement",ctor:function(t,r,n){N.call(this,t,r,n)}}),jt={form:{get:function(){return this._form}}};v({tag:"a",name:"HTMLAnchorElement",ctor:function(t,r,n){N.call(this,t,r,n)},props:{_post_click_activation_steps:{value:function(e){this.href&&(this.ownerDocument.defaultView.location=this.href)}}},attributes:{href:Ne,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:$n,coords:String,charset:String,name:String,rev:String,shape:String}});Dx._inherit(Bi.a.prototype);v({tag:"area",name:"HTMLAreaElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:Ne,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:$n,noHref:Boolean}});Dx._inherit(Bi.area.prototype);v({tag:"br",name:"HTMLBRElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{clear:String}});v({tag:"base",name:"HTMLBaseElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{target:String}});v({tag:"body",name:"HTMLBodyElement",ctor:function(t,r,n){N.call(this,t,r,n)},events:["afterprint","beforeprint","beforeunload","blur","error","focus","hashchange","load","message","offline","online","pagehide","pageshow","popstate","resize","scroll","storage","unload"],attributes:{text:{type:String,treatNullAsEmptyString:!0},link:{type:String,treatNullAsEmptyString:!0},vLink:{type:String,treatNullAsEmptyString:!0},aLink:{type:String,treatNullAsEmptyString:!0},bgColor:{type:String,treatNullAsEmptyString:!0},background:String}});v({tag:"button",name:"HTMLButtonElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:["submit","reset","button","menu"],missing:"submit"},formTarget:String,formAction:Ne,formNoValidate:Boolean,formMethod:{type:["get","post","dialog"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""}}});v({tag:"dl",name:"HTMLDListElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{compact:Boolean}});v({tag:"data",name:"HTMLDataElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{value:String}});v({tag:"datalist",name:"HTMLDataListElement",ctor:function(t,r,n){N.call(this,t,r,n)}});v({tag:"details",name:"HTMLDetailsElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{open:Boolean}});v({tag:"div",name:"HTMLDivElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{align:String}});v({tag:"embed",name:"HTMLEmbedElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{src:Ne,type:String,width:String,height:String,align:String,name:String}});v({tag:"fieldset",name:"HTMLFieldSetElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{disabled:Boolean,name:String}});v({tag:"form",name:"HTMLFormElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{action:String,autocomplete:{type:["on","off"],missing:"on"},name:String,acceptCharset:{name:"accept-charset"},target:String,noValidate:Boolean,method:{type:["get","post","dialog"],invalid:"get",missing:"get"},enctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"},encoding:{name:"enctype",type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"}}});v({tag:"hr",name:"HTMLHRElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}});v({tag:"head",name:"HTMLHeadElement",ctor:function(t,r,n){N.call(this,t,r,n)}});v({tags:["h1","h2","h3","h4","h5","h6"],name:"HTMLHeadingElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{align:String}});v({tag:"html",name:"HTMLHtmlElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{xmlns:Ne,version:String}});v({tag:"iframe",name:"HTMLIFrameElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{src:Ne,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:$n,loading:{type:["eager","lazy"],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:Ne,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}});v({tag:"img",name:"HTMLImageElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{alt:String,src:Ne,srcset:String,crossOrigin:ho,useMap:String,isMap:Boolean,sizes:String,height:{type:"unsigned long",default:0},width:{type:"unsigned long",default:0},referrerPolicy:$n,loading:{type:["eager","lazy"],missing:""},name:String,lowsrc:Ne,align:String,hspace:{type:"unsigned long",default:0},vspace:{type:"unsigned long",default:0},longDesc:Ne,border:{type:String,treatNullAsEmptyString:!0}}});v({tag:"input",name:"HTMLInputElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:{form:jt.form,_post_click_activation_steps:{value:function(e){if(this.type==="checkbox")this.checked=!this.checked;else if(this.type==="radio")for(var t=this.form.getElementsByName(this.name),r=t.length-1;r>=0;r--){var n=t[r];n.checked=n===this}}}},attributes:{name:String,disabled:Boolean,autofocus:Boolean,accept:String,alt:String,max:String,min:String,pattern:String,placeholder:String,step:String,dirName:String,defaultValue:{name:"value"},multiple:Boolean,required:Boolean,readOnly:Boolean,checked:Boolean,value:String,src:Ne,defaultChecked:{name:"checked",type:Boolean},size:{type:"unsigned long",default:20,min:1,setmin:1},width:{type:"unsigned long",min:0,setmin:0,default:0},height:{type:"unsigned long",min:0,setmin:0,default:0},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},autocomplete:String,type:{type:["text","hidden","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"],missing:"text"},formTarget:String,formNoValidate:Boolean,formMethod:{type:["get","post"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""},align:String,useMap:String}});v({tag:"keygen",name:"HTMLKeygenElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:["rsa"],missing:""}}});v({tag:"li",name:"HTMLLIElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{value:{type:"long",default:0},type:String}});v({tag:"label",name:"HTMLLabelElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{htmlFor:{name:"for",type:String}}});v({tag:"legend",name:"HTMLLegendElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{align:String}});v({tag:"link",name:"HTMLLinkElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{href:Ne,rel:String,media:String,hreflang:String,type:String,crossOrigin:ho,nonce:String,integrity:String,referrerPolicy:$n,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}});v({tag:"map",name:"HTMLMapElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{name:String}});v({tag:"menu",name:"HTMLMenuElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{type:{type:["context","popup","toolbar"],missing:"toolbar"},label:String,compact:Boolean}});v({tag:"meta",name:"HTMLMetaElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{name:String,content:String,httpEquiv:{name:"http-equiv",type:String},scheme:String}});v({tag:"meter",name:"HTMLMeterElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt});v({tags:["ins","del"],name:"HTMLModElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{cite:Ne,dateTime:String}});v({tag:"ol",name:"HTMLOListElement",ctor:function(t,r,n){N.call(this,t,r,n)},props:{_numitems:{get:function(){var e=0;return this.childNodes.forEach(function(t){t.nodeType===Zc.ELEMENT_NODE&&t.tagName==="LI"&&e++}),e}}},attributes:{type:String,reversed:Boolean,start:{type:"long",default:function(){return this.reversed?this._numitems:1}},compact:Boolean}});v({tag:"object",name:"HTMLObjectElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{data:Ne,type:String,name:String,useMap:String,typeMustMatch:Boolean,width:String,height:String,align:String,archive:String,code:String,declare:Boolean,hspace:{type:"unsigned long",default:0},standby:String,vspace:{type:"unsigned long",default:0},codeBase:Ne,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}});v({tag:"optgroup",name:"HTMLOptGroupElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{disabled:Boolean,label:String}});v({tag:"option",name:"HTMLOptionElement",ctor:function(t,r,n){N.call(this,t,r,n)},props:{form:{get:function(){for(var e=this.parentNode;e&&e.nodeType===Zc.ELEMENT_NODE;){if(e.localName==="select")return e.form;e=e.parentNode}}},value:{get:function(){return this._getattr("value")||this.text},set:function(e){this._setattr("value",e)}},text:{get:function(){return this.textContent.replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.textContent=e}}},attributes:{disabled:Boolean,defaultSelected:{name:"selected",type:Boolean},label:String}});v({tag:"output",name:"HTMLOutputElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{name:String}});v({tag:"p",name:"HTMLParagraphElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{align:String}});v({tag:"param",name:"HTMLParamElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{name:String,value:String,type:String,valueType:String}});v({tags:["pre","listing","xmp"],name:"HTMLPreElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{width:{type:"long",default:0}}});v({tag:"progress",name:"HTMLProgressElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{max:{type:Number,float:!0,default:1,min:0}}});v({tags:["q","blockquote"],name:"HTMLQuoteElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{cite:Ne}});v({tag:"script",name:"HTMLScriptElement",ctor:function(t,r,n){N.call(this,t,r,n)},props:{text:{get:function(){for(var e="",t=0,r=this.childNodes.length;t<r;t++){var n=this.childNodes[t];n.nodeType===Zc.TEXT_NODE&&(e+=n._data)}return e},set:function(e){this.removeChildren(),e!==null&&e!==""&&this.appendChild(this.ownerDocument.createTextNode(e))}}},attributes:{src:Ne,type:String,charset:String,referrerPolicy:$n,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:ho,nonce:String,integrity:String}});v({tag:"select",name:"HTMLSelectElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:{form:jt.form,options:{get:function(){return this.getElementsByTagName("option")}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,multiple:Boolean,required:Boolean,size:{type:"unsigned long",default:0}}});v({tag:"span",name:"HTMLSpanElement",ctor:function(t,r,n){N.call(this,t,r,n)}});v({tag:"style",name:"HTMLStyleElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{media:String,type:String,scoped:Boolean}});v({tag:"caption",name:"HTMLTableCaptionElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{align:String}});v({name:"HTMLTableCellElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{colSpan:{type:"unsigned long",default:1},rowSpan:{type:"unsigned long",default:1},scope:{type:["row","col","rowgroup","colgroup"],missing:""},abbr:String,align:String,axis:String,height:String,width:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},noWrap:Boolean,vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});v({tags:["col","colgroup"],name:"HTMLTableColElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{span:{type:"limited unsigned long with fallback",default:1,min:1},align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,width:String}});v({tag:"table",name:"HTMLTableElement",ctor:function(t,r,n){N.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,border:String,frame:String,rules:String,summary:String,width:String,bgColor:{type:String,treatNullAsEmptyString:!0},cellPadding:{type:String,treatNullAsEmptyString:!0},cellSpacing:{type:String,treatNullAsEmptyString:!0}}});v({tag:"template",name:"HTMLTemplateElement",ctor:function(t,r,n){N.call(this,t,r,n),this._contentFragment=t._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}});v({tag:"tr",name:"HTMLTableRowElement",ctor:function(t,r,n){N.call(this,t,r,n)},props:{cells:{get:function(){return this.querySelectorAll("td,th")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});v({tags:["thead","tfoot","tbody"],name:"HTMLTableSectionElement",ctor:function(t,r,n){N.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String}});v({tag:"textarea",name:"HTMLTextAreaElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:{form:jt.form,type:{get:function(){return"textarea"}},defaultValue:{get:function(){return this.textContent},set:function(e){this.textContent=e}},value:{get:function(){return this.defaultValue},set:function(e){this.defaultValue=e}},textLength:{get:function(){return this.value.length}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,placeholder:String,wrap:String,dirName:String,required:Boolean,readOnly:Boolean,rows:{type:"limited unsigned long with fallback",default:2},cols:{type:"limited unsigned long with fallback",default:20},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""}}});v({tag:"time",name:"HTMLTimeElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{dateTime:String,pubDate:Boolean}});v({tag:"title",name:"HTMLTitleElement",ctor:function(t,r,n){N.call(this,t,r,n)},props:{text:{get:function(){return this.textContent}}}});v({tag:"ul",name:"HTMLUListElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{type:String,compact:Boolean}});v({name:"HTMLMediaElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{src:Ne,crossOrigin:ho,preload:{type:["metadata","none","auto",{value:"",alias:"auto"}],missing:"auto"},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:"muted",type:Boolean}}});v({name:"HTMLAudioElement",tag:"audio",superclass:pr.HTMLMediaElement,ctor:function(t,r,n){pr.HTMLMediaElement.call(this,t,r,n)}});v({name:"HTMLVideoElement",tag:"video",superclass:pr.HTMLMediaElement,ctor:function(t,r,n){pr.HTMLMediaElement.call(this,t,r,n)},attributes:{poster:Ne,width:{type:"unsigned long",min:0,default:0},height:{type:"unsigned long",min:0,default:0}}});v({tag:"td",name:"HTMLTableDataCellElement",superclass:pr.HTMLTableCellElement,ctor:function(t,r,n){pr.HTMLTableCellElement.call(this,t,r,n)}});v({tag:"th",name:"HTMLTableHeaderCellElement",superclass:pr.HTMLTableCellElement,ctor:function(t,r,n){pr.HTMLTableCellElement.call(this,t,r,n)}});v({tag:"frameset",name:"HTMLFrameSetElement",ctor:function(t,r,n){N.call(this,t,r,n)}});v({tag:"frame",name:"HTMLFrameElement",ctor:function(t,r,n){N.call(this,t,r,n)}});v({tag:"canvas",name:"HTMLCanvasElement",ctor:function(t,r,n){N.call(this,t,r,n)},props:{getContext:{value:ht.nyi},probablySupportsContext:{value:ht.nyi},setContext:{value:ht.nyi},transferControlToProxy:{value:ht.nyi},toDataURL:{value:ht.nyi},toBlob:{value:ht.nyi}},attributes:{width:{type:"unsigned long",default:300},height:{type:"unsigned long",default:150}}});v({tag:"dialog",name:"HTMLDialogElement",ctor:function(t,r,n){N.call(this,t,r,n)},props:{show:{value:ht.nyi},showModal:{value:ht.nyi},close:{value:ht.nyi}},attributes:{open:Boolean,returnValue:String}});v({tag:"menuitem",name:"HTMLMenuItemElement",ctor:function(t,r,n){N.call(this,t,r,n)},props:{_label:{get:function(){var e=this._getattr("label");return e!==null&&e!==""?e:(e=this.textContent,e.replace(/[ \t\n\f\r]+/g," ").trim())}},label:{get:function(){var e=this._getattr("label");return e!==null?e:this._label},set:function(e){this._setattr("label",e)}}},attributes:{type:{type:["command","checkbox","radio"],missing:"command"},icon:Ne,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}});v({tag:"source",name:"HTMLSourceElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{srcset:String,sizes:String,media:String,src:Ne,type:String,width:String,height:String}});v({tag:"track",name:"HTMLTrackElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{src:Ne,srclang:String,label:String,default:Boolean,kind:{type:["subtitles","captions","descriptions","chapters","metadata"],missing:"subtitles",invalid:"metadata"}},props:{NONE:{get:function(){return 0}},LOADING:{get:function(){return 1}},LOADED:{get:function(){return 2}},ERROR:{get:function(){return 3}},readyState:{get:ht.nyi},track:{get:ht.nyi}}});v({tag:"font",name:"HTMLFontElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}});v({tag:"dir",name:"HTMLDirectoryElement",ctor:function(t,r,n){N.call(this,t,r,n)},attributes:{compact:Boolean}});v({tags:["abbr","address","article","aside","b","bdi","bdo","cite","content","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","main","mark","nav","noscript","rb","rp","rt","rtc","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr","acronym","basefont","big","center","nobr","noembed","noframes","plaintext","strike","tt"]})});var tu=C(Eo=>{"use strict";var kx=Gn(),jI=Yc(),GI=ve(),VI=mo(),KI=Eo.elements={},Mx=Object.create(null);Eo.createElement=function(e,t,r){var n=Mx[t]||eu;return new n(e,t,r)};function Jc(e){return jI(e,eu,KI,Mx)}var eu=Jc({superclass:kx,name:"SVGElement",ctor:function(t,r,n){kx.call(this,t,r,GI.NAMESPACE.SVG,n)},props:{style:{get:function(){return this._style||(this._style=new VI(this)),this._style}}}});Jc({name:"SVGSVGElement",ctor:function(t,r,n){eu.call(this,t,r,n)},tag:"svg",props:{createSVGRect:{value:function(){return Eo.createElement(this.ownerDocument,"rect",null)}}}});Jc({tags:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]})});var Px=C((Z3,Fx)=>{"use strict";Fx.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}});var To=C((J3,Wx)=>{"use strict";Wx.exports=Gi;var Ze=Ke(),$I=cn(),Gx=ro(),Br=Gn(),WI=kc(),zI=Fc(),ji=Fn(),XI=qc(),QI=Uc(),YI=Vi(),ZI=ux(),JI=mx(),qx=Hi(),Hx=xo(),Ux=so(),ew=Xc(),yo=no(),ru=bo(),tw=tu(),Y=ve(),Wn=Px(),Xn=Y.NAMESPACE,nu=Ja().isApiWritable;function Gi(e,t){Gx.call(this),this.nodeType=Ze.DOCUMENT_NODE,this.isHTML=e,this._address=t||"about:blank",this.readyState="loading",this.implementation=new YI(this),this.ownerDocument=null,this._contentType=e?"text/html":"application/xml",this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}var rw={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},nw={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},zn=function(e,t,r){return{get:function(){var n=e.call(this);return n?n[t]:r},set:function(n){var i=e.call(this);i&&(i[t]=n)}}};function Bx(e,t){var r,n,i;return e===""&&(e=null),yo.isValidQName(t)||Y.InvalidCharacterError(),r=null,n=t,i=t.indexOf(":"),i>=0&&(r=t.substring(0,i),n=t.substring(i+1)),r!==null&&e===null&&Y.NamespaceError(),r==="xml"&&e!==Xn.XML&&Y.NamespaceError(),(r==="xmlns"||t==="xmlns")&&e!==Xn.XMLNS&&Y.NamespaceError(),e===Xn.XMLNS&&!(r==="xmlns"||t==="xmlns")&&Y.NamespaceError(),{namespace:e,prefix:r,localName:n}}Gi.prototype=Object.create(Gx.prototype,{_setMutationHandler:{value:function(e){this.mutationHandler=e}},_dispatchRendererEvent:{value:function(e,t,r){var n=this._nodes[e];n&&n._dispatchEvent(new ji(t,r),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:Y.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(e){return new WI(this,String(e))}},createComment:{value:function(e){return new zI(this,e)}},createDocumentFragment:{value:function(){return new XI(this)}},createProcessingInstruction:{value:function(e,t){return(!yo.isValidName(e)||t.indexOf("?>")!==-1)&&Y.InvalidCharacterError(),new QI(this,e,t)}},createAttribute:{value:function(e){return e=String(e),yo.isValidName(e)||Y.InvalidCharacterError(),this.isHTML&&(e=Y.toASCIILowerCase(e)),new Br._Attr(null,e,null,null,"")}},createAttributeNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=Bx(e,t);return new Br._Attr(null,r.localName,r.prefix,r.namespace,"")}},createElement:{value:function(e){return e=String(e),yo.isValidName(e)||Y.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(e)&&(e=Y.toASCIILowerCase(e)),ru.createElement(this,e,null)):this.contentType==="application/xhtml+xml"?ru.createElement(this,e,null):new Br(this,e,null,null)},writable:nu},createElementNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=Bx(e,t);return this._createElementNS(r.localName,r.namespace,r.prefix)},writable:nu},_createElementNS:{value:function(e,t,r){return t===Xn.HTML?ru.createElement(this,e,r):t===Xn.SVG?tw.createElement(this,e,r):new Br(this,e,t,r)}},createEvent:{value:function(t){t=t.toLowerCase();var r=nw[t]||t,n=ew[rw[r]];if(n){var i=new n;return i._initialized=!1,i}else Y.NotSupportedError()}},createTreeWalker:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof Ze))throw new TypeError("root not a node");return t=t===void 0?qx.SHOW_ALL:+t,r=r===void 0?null:r,new ZI(e,t,r)}},createNodeIterator:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof Ze))throw new TypeError("root not a node");return t=t===void 0?qx.SHOW_ALL:+t,r=r===void 0?null:r,new JI(e,t,r)}},_attachNodeIterator:{value:function(e){this._nodeIterators||(this._nodeIterators=[]),this._nodeIterators.push(e)}},_detachNodeIterator:{value:function(e){var t=this._nodeIterators.indexOf(e);this._nodeIterators.splice(t,1)}},_preremoveNodeIterators:{value:function(e){this._nodeIterators&&this._nodeIterators.forEach(function(t){t._preremove(e)})}},_updateDocTypeElement:{value:function(){this.doctype=this.documentElement=null;for(var t=this.firstChild;t!==null;t=t.nextSibling)t.nodeType===Ze.DOCUMENT_TYPE_NODE?this.doctype=t:t.nodeType===Ze.ELEMENT_NODE&&(this.documentElement=t)}},insertBefore:{value:function(t,r){return Ze.prototype.insertBefore.call(this,t,r),this._updateDocTypeElement(),t}},replaceChild:{value:function(t,r){return Ze.prototype.replaceChild.call(this,t,r),this._updateDocTypeElement(),r}},removeChild:{value:function(t){return Ze.prototype.removeChild.call(this,t),this._updateDocTypeElement(),t}},getElementById:{value:function(e){var t=this.byId[e];return t?t instanceof dr?t.getFirst():t:null}},_hasMultipleElementsWithId:{value:function(e){return this.byId[e]instanceof dr}},getElementsByName:{value:Br.prototype.getElementsByName},getElementsByTagName:{value:Br.prototype.getElementsByTagName},getElementsByTagNameNS:{value:Br.prototype.getElementsByTagNameNS},getElementsByClassName:{value:Br.prototype.getElementsByClassName},adoptNode:{value:function(t){return t.nodeType===Ze.DOCUMENT_NODE&&Y.NotSupportedError(),t.nodeType===Ze.ATTRIBUTE_NODE||(t.parentNode&&t.parentNode.removeChild(t),t.ownerDocument!==this&&$x(t,this)),t}},importNode:{value:function(t,r){return this.adoptNode(t.cloneNode(r))},writable:nu},origin:{get:function(){return null}},characterSet:{get:function(){return"UTF-8"}},contentType:{get:function(){return this._contentType}},URL:{get:function(){return this._address}},domain:{get:Y.nyi,set:Y.nyi},referrer:{get:Y.nyi},cookie:{get:Y.nyi,set:Y.nyi},lastModified:{get:Y.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:Y.nyi},_titleElement:{get:function(){return this.getElementsByTagName("title").item(0)||null}},title:{get:function(){var e=this._titleElement,t=e?e.textContent:"";return t.replace(/[ \t\n\r\f]+/g," ").replace(/(^ )|( $)/g,"")},set:function(e){var t=this._titleElement,r=this.head;!t&&!r||(t||(t=this.createElement("title"),r.appendChild(t)),t.textContent=e)}},dir:zn(function(){var e=this.documentElement;if(e&&e.tagName==="HTML")return e},"dir",""),fgColor:zn(function(){return this.body},"text",""),linkColor:zn(function(){return this.body},"link",""),vlinkColor:zn(function(){return this.body},"vLink",""),alinkColor:zn(function(){return this.body},"aLink",""),bgColor:zn(function(){return this.body},"bgColor",""),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return jx(this.documentElement,"body")},set:Y.nyi},head:{get:function(){return jx(this.documentElement,"head")}},images:{get:Y.nyi},embeds:{get:Y.nyi},plugins:{get:Y.nyi},links:{get:Y.nyi},forms:{get:Y.nyi},scripts:{get:Y.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:Y.nyi},outerHTML:{get:function(){return this.serialize()},set:Y.nyi},write:{value:function(e){if(this.isHTML||Y.InvalidStateError(),!!this._parser){this._parser;var t=arguments.join("");this._parser.parse(t)}}},writeln:{value:function(t){this.write(Array.prototype.join.call(arguments,"")+`
|
|
8
|
+
`)}},open:{value:function(){this.documentElement=null}},close:{value:function(){this.readyState="interactive",this._dispatchEvent(new ji("readystatechange"),!0),this._dispatchEvent(new ji("DOMContentLoaded"),!0),this.readyState="complete",this._dispatchEvent(new ji("readystatechange"),!0),this.defaultView&&this.defaultView._dispatchEvent(new ji("load"),!0)}},clone:{value:function(){var t=new Gi(this.isHTML,this._address);return t._quirks=this._quirks,t._contentType=this._contentType,t}},cloneNode:{value:function(t){var r=Ze.prototype.cloneNode.call(this,!1);if(t)for(var n=this.firstChild;n!==null;n=n.nextSibling)r._appendChild(r.importNode(n,!0));return r._updateDocTypeElement(),r}},isEqual:{value:function(t){return!0}},mutateValue:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.VALUE,target:e,data:e.data})}},mutateAttr:{value:function(e,t){this.mutationHandler&&this.mutationHandler({type:Wn.ATTR,target:e.ownerElement,attr:e})}},mutateRemoveAttr:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.REMOVE_ATTR,target:e.ownerElement,attr:e})}},mutateRemove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.REMOVE,target:e.parentNode,node:e}),Kx(e)}},mutateInsert:{value:function(e){Vx(e),this.mutationHandler&&this.mutationHandler({type:Wn.INSERT,target:e.parentNode,node:e})}},mutateMove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.MOVE,target:e})}},addId:{value:function(t,r){var n=this.byId[t];n?(n instanceof dr||(n=new dr(n),this.byId[t]=n),n.add(r)):this.byId[t]=r}},delId:{value:function(t,r){var n=this.byId[t];Y.assert(n),n instanceof dr?(n.del(r),n.length===1&&(this.byId[t]=n.downgrade())):this.byId[t]=void 0}},_resolve:{value:function(e){return new Hx(this._documentBaseURL).resolve(e)}},_documentBaseURL:{get:function(){var e=this._address;e==="about:blank"&&(e="/");var t=this.querySelector("base[href]");return t?new Hx(e).resolve(t.getAttribute("href")):e}},_templateDoc:{get:function(){if(!this._templateDocCache){var e=new Gi(this.isHTML,this._address);this._templateDocCache=e._templateDocCache=e}return this._templateDocCache}},querySelector:{value:function(e){return Ux(e,this)[0]}},querySelectorAll:{value:function(e){var t=Ux(e,this);return t.item?t:new $I(t)}}});var iw=["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"];iw.forEach(function(e){Object.defineProperty(Gi.prototype,"on"+e,{get:function(){return this._getEventHandler(e)},set:function(t){this._setEventHandler(e,t)}})});function jx(e,t){if(e&&e.isHTML){for(var r=e.firstChild;r!==null;r=r.nextSibling)if(r.nodeType===Ze.ELEMENT_NODE&&r.localName===t&&r.namespaceURI===Xn.HTML)return r}return null}function aw(e){if(e._nid=e.ownerDocument._nextnid++,e.ownerDocument._nodes[e._nid]=e,e.nodeType===Ze.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.addId(t,e),e._roothook&&e._roothook()}}function ow(e){if(e.nodeType===Ze.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.delId(t,e)}e.ownerDocument._nodes[e._nid]=void 0,e._nid=void 0}function Vx(e){if(aw(e),e.nodeType===Ze.ELEMENT_NODE)for(var t=e.firstChild;t!==null;t=t.nextSibling)Vx(t)}function Kx(e){ow(e);for(var t=e.firstChild;t!==null;t=t.nextSibling)Kx(t)}function $x(e,t){e.ownerDocument=t,e._lastModTime=void 0,Object.prototype.hasOwnProperty.call(e,"_tagName")&&(e._tagName=void 0);for(var r=e.firstChild;r!==null;r=r.nextSibling)$x(r,t)}function dr(e){this.nodes=Object.create(null),this.nodes[e._nid]=e,this.length=1,this.firstNode=void 0}dr.prototype.add=function(e){this.nodes[e._nid]||(this.nodes[e._nid]=e,this.length++,this.firstNode=void 0)};dr.prototype.del=function(e){this.nodes[e._nid]&&(delete this.nodes[e._nid],this.length--,this.firstNode=void 0)};dr.prototype.getFirst=function(){if(!this.firstNode){var e;for(e in this.nodes)(this.firstNode===void 0||this.firstNode.compareDocumentPosition(this.nodes[e])&Ze.DOCUMENT_POSITION_PRECEDING)&&(this.firstNode=this.nodes[e])}return this.firstNode};dr.prototype.downgrade=function(){if(this.length===1){var e;for(e in this.nodes)return this.nodes[e]}return this}});var Io=C((e5,Xx)=>{"use strict";Xx.exports=_o;var sw=Ke(),zx=Lc(),cw=co();function _o(e,t,r,n){zx.call(this),this.nodeType=sw.DOCUMENT_TYPE_NODE,this.ownerDocument=e||null,this.name=t,this.publicId=r||"",this.systemId=n||""}_o.prototype=Object.create(zx.prototype,{nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return null},set:function(){}},clone:{value:function(){return new _o(this.ownerDocument,this.name,this.publicId,this.systemId)}},isEqual:{value:function(t){return this.name===t.name&&this.publicId===t.publicId&&this.systemId===t.systemId}}});Object.defineProperties(_o.prototype,cw)});var Ro=C((t5,bm)=>{"use strict";bm.exports=W;var uw=To(),lw=Io(),iu=Ke(),R=ve().NAMESPACE,lm=bo(),ne=lm.elements,ln=Function.prototype.apply.bind(Array.prototype.push),wo=-1,Qn=1,Je=2,U=3,Yt=4,fw=5,pw=[],dw=/^HTML$|^-\/\/W3O\/\/DTD W3 HTML Strict 3\.0\/\/EN\/\/$|^-\/W3C\/DTD HTML 4\.0 Transitional\/EN$|^\+\/\/Silmaril\/\/dtd html Pro v0r11 19970101\/\/|^-\/\/AdvaSoft Ltd\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/AS\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict\/\/|^-\/\/IETF\/\/DTD HTML 2\.0\/\/|^-\/\/IETF\/\/DTD HTML 2\.1E\/\/|^-\/\/IETF\/\/DTD HTML 3\.0\/\/|^-\/\/IETF\/\/DTD HTML 3\.2 Final\/\/|^-\/\/IETF\/\/DTD HTML 3\.2\/\/|^-\/\/IETF\/\/DTD HTML 3\/\/|^-\/\/IETF\/\/DTD HTML Level 0\/\/|^-\/\/IETF\/\/DTD HTML Level 1\/\/|^-\/\/IETF\/\/DTD HTML Level 2\/\/|^-\/\/IETF\/\/DTD HTML Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 0\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict\/\/|^-\/\/IETF\/\/DTD HTML\/\/|^-\/\/Metrius\/\/DTD Metrius Presentational\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 Tables\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 Tables\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD HTML\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD Strict HTML\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML 2\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended 1\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended Relaxed 1\.0\/\/|^-\/\/SoftQuad Software\/\/DTD HoTMetaL PRO 6\.0::19990601::extensions to HTML 4\.0\/\/|^-\/\/SoftQuad\/\/DTD HoTMetaL PRO 4\.0::19971010::extensions to HTML 4\.0\/\/|^-\/\/Spyglass\/\/DTD HTML 2\.0 Extended\/\/|^-\/\/SQ\/\/DTD HTML 2\.0 HoTMetaL \+ extensions\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava HTML\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava Strict HTML\/\/|^-\/\/W3C\/\/DTD HTML 3 1995-03-24\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Draft\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Final\/\/|^-\/\/W3C\/\/DTD HTML 3\.2\/\/|^-\/\/W3C\/\/DTD HTML 3\.2S Draft\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Transitional\/\/|^-\/\/W3C\/\/DTD HTML Experimental 19960712\/\/|^-\/\/W3C\/\/DTD HTML Experimental 970421\/\/|^-\/\/W3C\/\/DTD W3 HTML\/\/|^-\/\/W3O\/\/DTD W3 HTML 3\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML 2\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML\/\//i,xw="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Qx=/^-\/\/W3C\/\/DTD HTML 4\.01 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.01 Transitional\/\//i,mw=/^-\/\/W3C\/\/DTD XHTML 1\.0 Frameset\/\/|^-\/\/W3C\/\/DTD XHTML 1\.0 Transitional\/\//i,pn=Object.create(null);pn[R.HTML]={__proto__:null,address:!0,applet:!0,area:!0,article:!0,aside:!0,base:!0,basefont:!0,bgsound:!0,blockquote:!0,body:!0,br:!0,button:!0,caption:!0,center:!0,col:!0,colgroup:!0,dd:!0,details:!0,dir:!0,div:!0,dl:!0,dt:!0,embed:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,frame:!0,frameset:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,head:!0,header:!0,hgroup:!0,hr:!0,html:!0,iframe:!0,img:!0,input:!0,li:!0,link:!0,listing:!0,main:!0,marquee:!0,menu:!0,meta:!0,nav:!0,noembed:!0,noframes:!0,noscript:!0,object:!0,ol:!0,p:!0,param:!0,plaintext:!0,pre:!0,script:!0,section:!0,select:!0,source:!0,style:!0,summary:!0,table:!0,tbody:!0,td:!0,template:!0,textarea:!0,tfoot:!0,th:!0,thead:!0,title:!0,tr:!0,track:!0,ul:!0,wbr:!0,xmp:!0};pn[R.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};pn[R.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};var su=Object.create(null);su[R.HTML]={__proto__:null,address:!0,div:!0,p:!0};var fm=Object.create(null);fm[R.HTML]={__proto__:null,dd:!0,dt:!0};var Yn=Object.create(null);Yn[R.HTML]={__proto__:null,table:!0,thead:!0,tbody:!0,tfoot:!0,tr:!0};var pm=Object.create(null);pm[R.HTML]={__proto__:null,dd:!0,dt:!0,li:!0,menuitem:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0};var dm=Object.create(null);dm[R.HTML]={__proto__:null,caption:!0,colgroup:!0,dd:!0,dt:!0,li:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0,tbody:!0,td:!0,tfoot:!0,th:!0,thead:!0,tr:!0};var No=Object.create(null);No[R.HTML]={__proto__:null,table:!0,template:!0,html:!0};var Ao=Object.create(null);Ao[R.HTML]={__proto__:null,tbody:!0,tfoot:!0,thead:!0,template:!0,html:!0};var cu=Object.create(null);cu[R.HTML]={__proto__:null,tr:!0,template:!0,html:!0};var xm=Object.create(null);xm[R.HTML]={__proto__:null,button:!0,fieldset:!0,input:!0,keygen:!0,object:!0,output:!0,select:!0,textarea:!0,img:!0};var Zt=Object.create(null);Zt[R.HTML]={__proto__:null,applet:!0,caption:!0,html:!0,table:!0,td:!0,th:!0,marquee:!0,object:!0,template:!0};Zt[R.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};Zt[R.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var Co=Object.create(Zt);Co[R.HTML]=Object.create(Zt[R.HTML]);Co[R.HTML].ol=!0;Co[R.HTML].ul=!0;var uu=Object.create(Zt);uu[R.HTML]=Object.create(Zt[R.HTML]);uu[R.HTML].button=!0;var mm=Object.create(null);mm[R.HTML]={__proto__:null,html:!0,table:!0,template:!0};var hw=Object.create(null);hw[R.HTML]={__proto__:null,optgroup:!0,option:!0};var hm=Object.create(null);hm[R.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0};var gm=Object.create(null);gm[R.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var Yx={__proto__:null,"xlink:actuate":R.XLINK,"xlink:arcrole":R.XLINK,"xlink:href":R.XLINK,"xlink:role":R.XLINK,"xlink:show":R.XLINK,"xlink:title":R.XLINK,"xlink:type":R.XLINK,"xml:base":R.XML,"xml:lang":R.XML,"xml:space":R.XML,xmlns:R.XMLNS,"xmlns:xlink":R.XMLNS},Zx={__proto__:null,attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},Jx={__proto__:null,altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},em={__proto__:null,0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},gw={__proto__:null,AElig:198,"AElig;":198,AMP:38,"AMP;":38,Aacute:193,"Aacute;":193,"Abreve;":258,Acirc:194,"Acirc;":194,"Acy;":1040,"Afr;":[55349,56580],Agrave:192,"Agrave;":192,"Alpha;":913,"Amacr;":256,"And;":10835,"Aogon;":260,"Aopf;":[55349,56632],"ApplyFunction;":8289,Aring:197,"Aring;":197,"Ascr;":[55349,56476],"Assign;":8788,Atilde:195,"Atilde;":195,Auml:196,"Auml;":196,"Backslash;":8726,"Barv;":10983,"Barwed;":8966,"Bcy;":1041,"Because;":8757,"Bernoullis;":8492,"Beta;":914,"Bfr;":[55349,56581],"Bopf;":[55349,56633],"Breve;":728,"Bscr;":8492,"Bumpeq;":8782,"CHcy;":1063,COPY:169,"COPY;":169,"Cacute;":262,"Cap;":8914,"CapitalDifferentialD;":8517,"Cayleys;":8493,"Ccaron;":268,Ccedil:199,"Ccedil;":199,"Ccirc;":264,"Cconint;":8752,"Cdot;":266,"Cedilla;":184,"CenterDot;":183,"Cfr;":8493,"Chi;":935,"CircleDot;":8857,"CircleMinus;":8854,"CirclePlus;":8853,"CircleTimes;":8855,"ClockwiseContourIntegral;":8754,"CloseCurlyDoubleQuote;":8221,"CloseCurlyQuote;":8217,"Colon;":8759,"Colone;":10868,"Congruent;":8801,"Conint;":8751,"ContourIntegral;":8750,"Copf;":8450,"Coproduct;":8720,"CounterClockwiseContourIntegral;":8755,"Cross;":10799,"Cscr;":[55349,56478],"Cup;":8915,"CupCap;":8781,"DD;":8517,"DDotrahd;":10513,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Dagger;":8225,"Darr;":8609,"Dashv;":10980,"Dcaron;":270,"Dcy;":1044,"Del;":8711,"Delta;":916,"Dfr;":[55349,56583],"DiacriticalAcute;":180,"DiacriticalDot;":729,"DiacriticalDoubleAcute;":733,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"Diamond;":8900,"DifferentialD;":8518,"Dopf;":[55349,56635],"Dot;":168,"DotDot;":8412,"DotEqual;":8784,"DoubleContourIntegral;":8751,"DoubleDot;":168,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DoubleLeftRightArrow;":8660,"DoubleLeftTee;":10980,"DoubleLongLeftArrow;":10232,"DoubleLongLeftRightArrow;":10234,"DoubleLongRightArrow;":10233,"DoubleRightArrow;":8658,"DoubleRightTee;":8872,"DoubleUpArrow;":8657,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownArrow;":8595,"DownArrowBar;":10515,"DownArrowUpArrow;":8693,"DownBreve;":785,"DownLeftRightVector;":10576,"DownLeftTeeVector;":10590,"DownLeftVector;":8637,"DownLeftVectorBar;":10582,"DownRightTeeVector;":10591,"DownRightVector;":8641,"DownRightVectorBar;":10583,"DownTee;":8868,"DownTeeArrow;":8615,"Downarrow;":8659,"Dscr;":[55349,56479],"Dstrok;":272,"ENG;":330,ETH:208,"ETH;":208,Eacute:201,"Eacute;":201,"Ecaron;":282,Ecirc:202,"Ecirc;":202,"Ecy;":1069,"Edot;":278,"Efr;":[55349,56584],Egrave:200,"Egrave;":200,"Element;":8712,"Emacr;":274,"EmptySmallSquare;":9723,"EmptyVerySmallSquare;":9643,"Eogon;":280,"Eopf;":[55349,56636],"Epsilon;":917,"Equal;":10869,"EqualTilde;":8770,"Equilibrium;":8652,"Escr;":8496,"Esim;":10867,"Eta;":919,Euml:203,"Euml;":203,"Exists;":8707,"ExponentialE;":8519,"Fcy;":1060,"Ffr;":[55349,56585],"FilledSmallSquare;":9724,"FilledVerySmallSquare;":9642,"Fopf;":[55349,56637],"ForAll;":8704,"Fouriertrf;":8497,"Fscr;":8497,"GJcy;":1027,GT:62,"GT;":62,"Gamma;":915,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"Gcirc;":284,"Gcy;":1043,"Gdot;":288,"Gfr;":[55349,56586],"Gg;":8921,"Gopf;":[55349,56638],"GreaterEqual;":8805,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"GreaterGreater;":10914,"GreaterLess;":8823,"GreaterSlantEqual;":10878,"GreaterTilde;":8819,"Gscr;":[55349,56482],"Gt;":8811,"HARDcy;":1066,"Hacek;":711,"Hat;":94,"Hcirc;":292,"Hfr;":8460,"HilbertSpace;":8459,"Hopf;":8461,"HorizontalLine;":9472,"Hscr;":8459,"Hstrok;":294,"HumpDownHump;":8782,"HumpEqual;":8783,"IEcy;":1045,"IJlig;":306,"IOcy;":1025,Iacute:205,"Iacute;":205,Icirc:206,"Icirc;":206,"Icy;":1048,"Idot;":304,"Ifr;":8465,Igrave:204,"Igrave;":204,"Im;":8465,"Imacr;":298,"ImaginaryI;":8520,"Implies;":8658,"Int;":8748,"Integral;":8747,"Intersection;":8898,"InvisibleComma;":8291,"InvisibleTimes;":8290,"Iogon;":302,"Iopf;":[55349,56640],"Iota;":921,"Iscr;":8464,"Itilde;":296,"Iukcy;":1030,Iuml:207,"Iuml;":207,"Jcirc;":308,"Jcy;":1049,"Jfr;":[55349,56589],"Jopf;":[55349,56641],"Jscr;":[55349,56485],"Jsercy;":1032,"Jukcy;":1028,"KHcy;":1061,"KJcy;":1036,"Kappa;":922,"Kcedil;":310,"Kcy;":1050,"Kfr;":[55349,56590],"Kopf;":[55349,56642],"Kscr;":[55349,56486],"LJcy;":1033,LT:60,"LT;":60,"Lacute;":313,"Lambda;":923,"Lang;":10218,"Laplacetrf;":8466,"Larr;":8606,"Lcaron;":317,"Lcedil;":315,"Lcy;":1051,"LeftAngleBracket;":10216,"LeftArrow;":8592,"LeftArrowBar;":8676,"LeftArrowRightArrow;":8646,"LeftCeiling;":8968,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVector;":8643,"LeftDownVectorBar;":10585,"LeftFloor;":8970,"LeftRightArrow;":8596,"LeftRightVector;":10574,"LeftTee;":8867,"LeftTeeArrow;":8612,"LeftTeeVector;":10586,"LeftTriangle;":8882,"LeftTriangleBar;":10703,"LeftTriangleEqual;":8884,"LeftUpDownVector;":10577,"LeftUpTeeVector;":10592,"LeftUpVector;":8639,"LeftUpVectorBar;":10584,"LeftVector;":8636,"LeftVectorBar;":10578,"Leftarrow;":8656,"Leftrightarrow;":8660,"LessEqualGreater;":8922,"LessFullEqual;":8806,"LessGreater;":8822,"LessLess;":10913,"LessSlantEqual;":10877,"LessTilde;":8818,"Lfr;":[55349,56591],"Ll;":8920,"Lleftarrow;":8666,"Lmidot;":319,"LongLeftArrow;":10229,"LongLeftRightArrow;":10231,"LongRightArrow;":10230,"Longleftarrow;":10232,"Longleftrightarrow;":10234,"Longrightarrow;":10233,"Lopf;":[55349,56643],"LowerLeftArrow;":8601,"LowerRightArrow;":8600,"Lscr;":8466,"Lsh;":8624,"Lstrok;":321,"Lt;":8810,"Map;":10501,"Mcy;":1052,"MediumSpace;":8287,"Mellintrf;":8499,"Mfr;":[55349,56592],"MinusPlus;":8723,"Mopf;":[55349,56644],"Mscr;":8499,"Mu;":924,"NJcy;":1034,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ncy;":1053,"NegativeMediumSpace;":8203,"NegativeThickSpace;":8203,"NegativeThinSpace;":8203,"NegativeVeryThinSpace;":8203,"NestedGreaterGreater;":8811,"NestedLessLess;":8810,"NewLine;":10,"Nfr;":[55349,56593],"NoBreak;":8288,"NonBreakingSpace;":160,"Nopf;":8469,"Not;":10988,"NotCongruent;":8802,"NotCupCap;":8813,"NotDoubleVerticalBar;":8742,"NotElement;":8713,"NotEqual;":8800,"NotEqualTilde;":[8770,824],"NotExists;":8708,"NotGreater;":8815,"NotGreaterEqual;":8817,"NotGreaterFullEqual;":[8807,824],"NotGreaterGreater;":[8811,824],"NotGreaterLess;":8825,"NotGreaterSlantEqual;":[10878,824],"NotGreaterTilde;":8821,"NotHumpDownHump;":[8782,824],"NotHumpEqual;":[8783,824],"NotLeftTriangle;":8938,"NotLeftTriangleBar;":[10703,824],"NotLeftTriangleEqual;":8940,"NotLess;":8814,"NotLessEqual;":8816,"NotLessGreater;":8824,"NotLessLess;":[8810,824],"NotLessSlantEqual;":[10877,824],"NotLessTilde;":8820,"NotNestedGreaterGreater;":[10914,824],"NotNestedLessLess;":[10913,824],"NotPrecedes;":8832,"NotPrecedesEqual;":[10927,824],"NotPrecedesSlantEqual;":8928,"NotReverseElement;":8716,"NotRightTriangle;":8939,"NotRightTriangleBar;":[10704,824],"NotRightTriangleEqual;":8941,"NotSquareSubset;":[8847,824],"NotSquareSubsetEqual;":8930,"NotSquareSuperset;":[8848,824],"NotSquareSupersetEqual;":8931,"NotSubset;":[8834,8402],"NotSubsetEqual;":8840,"NotSucceeds;":8833,"NotSucceedsEqual;":[10928,824],"NotSucceedsSlantEqual;":8929,"NotSucceedsTilde;":[8831,824],"NotSuperset;":[8835,8402],"NotSupersetEqual;":8841,"NotTilde;":8769,"NotTildeEqual;":8772,"NotTildeFullEqual;":8775,"NotTildeTilde;":8777,"NotVerticalBar;":8740,"Nscr;":[55349,56489],Ntilde:209,"Ntilde;":209,"Nu;":925,"OElig;":338,Oacute:211,"Oacute;":211,Ocirc:212,"Ocirc;":212,"Ocy;":1054,"Odblac;":336,"Ofr;":[55349,56594],Ograve:210,"Ograve;":210,"Omacr;":332,"Omega;":937,"Omicron;":927,"Oopf;":[55349,56646],"OpenCurlyDoubleQuote;":8220,"OpenCurlyQuote;":8216,"Or;":10836,"Oscr;":[55349,56490],Oslash:216,"Oslash;":216,Otilde:213,"Otilde;":213,"Otimes;":10807,Ouml:214,"Ouml;":214,"OverBar;":8254,"OverBrace;":9182,"OverBracket;":9140,"OverParenthesis;":9180,"PartialD;":8706,"Pcy;":1055,"Pfr;":[55349,56595],"Phi;":934,"Pi;":928,"PlusMinus;":177,"Poincareplane;":8460,"Popf;":8473,"Pr;":10939,"Precedes;":8826,"PrecedesEqual;":10927,"PrecedesSlantEqual;":8828,"PrecedesTilde;":8830,"Prime;":8243,"Product;":8719,"Proportion;":8759,"Proportional;":8733,"Pscr;":[55349,56491],"Psi;":936,QUOT:34,"QUOT;":34,"Qfr;":[55349,56596],"Qopf;":8474,"Qscr;":[55349,56492],"RBarr;":10512,REG:174,"REG;":174,"Racute;":340,"Rang;":10219,"Rarr;":8608,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"Rcy;":1056,"Re;":8476,"ReverseElement;":8715,"ReverseEquilibrium;":8651,"ReverseUpEquilibrium;":10607,"Rfr;":8476,"Rho;":929,"RightAngleBracket;":10217,"RightArrow;":8594,"RightArrowBar;":8677,"RightArrowLeftArrow;":8644,"RightCeiling;":8969,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVector;":8642,"RightDownVectorBar;":10581,"RightFloor;":8971,"RightTee;":8866,"RightTeeArrow;":8614,"RightTeeVector;":10587,"RightTriangle;":8883,"RightTriangleBar;":10704,"RightTriangleEqual;":8885,"RightUpDownVector;":10575,"RightUpTeeVector;":10588,"RightUpVector;":8638,"RightUpVectorBar;":10580,"RightVector;":8640,"RightVectorBar;":10579,"Rightarrow;":8658,"Ropf;":8477,"RoundImplies;":10608,"Rrightarrow;":8667,"Rscr;":8475,"Rsh;":8625,"RuleDelayed;":10740,"SHCHcy;":1065,"SHcy;":1064,"SOFTcy;":1068,"Sacute;":346,"Sc;":10940,"Scaron;":352,"Scedil;":350,"Scirc;":348,"Scy;":1057,"Sfr;":[55349,56598],"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"ShortRightArrow;":8594,"ShortUpArrow;":8593,"Sigma;":931,"SmallCircle;":8728,"Sopf;":[55349,56650],"Sqrt;":8730,"Square;":9633,"SquareIntersection;":8851,"SquareSubset;":8847,"SquareSubsetEqual;":8849,"SquareSuperset;":8848,"SquareSupersetEqual;":8850,"SquareUnion;":8852,"Sscr;":[55349,56494],"Star;":8902,"Sub;":8912,"Subset;":8912,"SubsetEqual;":8838,"Succeeds;":8827,"SucceedsEqual;":10928,"SucceedsSlantEqual;":8829,"SucceedsTilde;":8831,"SuchThat;":8715,"Sum;":8721,"Sup;":8913,"Superset;":8835,"SupersetEqual;":8839,"Supset;":8913,THORN:222,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"TScy;":1062,"Tab;":9,"Tau;":932,"Tcaron;":356,"Tcedil;":354,"Tcy;":1058,"Tfr;":[55349,56599],"Therefore;":8756,"Theta;":920,"ThickSpace;":[8287,8202],"ThinSpace;":8201,"Tilde;":8764,"TildeEqual;":8771,"TildeFullEqual;":8773,"TildeTilde;":8776,"Topf;":[55349,56651],"TripleDot;":8411,"Tscr;":[55349,56495],"Tstrok;":358,Uacute:218,"Uacute;":218,"Uarr;":8607,"Uarrocir;":10569,"Ubrcy;":1038,"Ubreve;":364,Ucirc:219,"Ucirc;":219,"Ucy;":1059,"Udblac;":368,"Ufr;":[55349,56600],Ugrave:217,"Ugrave;":217,"Umacr;":362,"UnderBar;":95,"UnderBrace;":9183,"UnderBracket;":9141,"UnderParenthesis;":9181,"Union;":8899,"UnionPlus;":8846,"Uogon;":370,"Uopf;":[55349,56652],"UpArrow;":8593,"UpArrowBar;":10514,"UpArrowDownArrow;":8645,"UpDownArrow;":8597,"UpEquilibrium;":10606,"UpTee;":8869,"UpTeeArrow;":8613,"Uparrow;":8657,"Updownarrow;":8661,"UpperLeftArrow;":8598,"UpperRightArrow;":8599,"Upsi;":978,"Upsilon;":933,"Uring;":366,"Uscr;":[55349,56496],"Utilde;":360,Uuml:220,"Uuml;":220,"VDash;":8875,"Vbar;":10987,"Vcy;":1042,"Vdash;":8873,"Vdashl;":10982,"Vee;":8897,"Verbar;":8214,"Vert;":8214,"VerticalBar;":8739,"VerticalLine;":124,"VerticalSeparator;":10072,"VerticalTilde;":8768,"VeryThinSpace;":8202,"Vfr;":[55349,56601],"Vopf;":[55349,56653],"Vscr;":[55349,56497],"Vvdash;":8874,"Wcirc;":372,"Wedge;":8896,"Wfr;":[55349,56602],"Wopf;":[55349,56654],"Wscr;":[55349,56498],"Xfr;":[55349,56603],"Xi;":926,"Xopf;":[55349,56655],"Xscr;":[55349,56499],"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,Yacute:221,"Yacute;":221,"Ycirc;":374,"Ycy;":1067,"Yfr;":[55349,56604],"Yopf;":[55349,56656],"Yscr;":[55349,56500],"Yuml;":376,"ZHcy;":1046,"Zacute;":377,"Zcaron;":381,"Zcy;":1047,"Zdot;":379,"ZeroWidthSpace;":8203,"Zeta;":918,"Zfr;":8488,"Zopf;":8484,"Zscr;":[55349,56501],aacute:225,"aacute;":225,"abreve;":259,"ac;":8766,"acE;":[8766,819],"acd;":8767,acirc:226,"acirc;":226,acute:180,"acute;":180,"acy;":1072,aelig:230,"aelig;":230,"af;":8289,"afr;":[55349,56606],agrave:224,"agrave;":224,"alefsym;":8501,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,amp:38,"amp;":38,"and;":8743,"andand;":10837,"andd;":10844,"andslope;":10840,"andv;":10842,"ang;":8736,"ange;":10660,"angle;":8736,"angmsd;":8737,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrt;":8735,"angrtvb;":8894,"angrtvbd;":10653,"angsph;":8738,"angst;":197,"angzarr;":9084,"aogon;":261,"aopf;":[55349,56658],"ap;":8776,"apE;":10864,"apacir;":10863,"ape;":8778,"apid;":8779,"apos;":39,"approx;":8776,"approxeq;":8778,aring:229,"aring;":229,"ascr;":[55349,56502],"ast;":42,"asymp;":8776,"asympeq;":8781,atilde:227,"atilde;":227,auml:228,"auml;":228,"awconint;":8755,"awint;":10769,"bNot;":10989,"backcong;":8780,"backepsilon;":1014,"backprime;":8245,"backsim;":8765,"backsimeq;":8909,"barvee;":8893,"barwed;":8965,"barwedge;":8965,"bbrk;":9141,"bbrktbrk;":9142,"bcong;":8780,"bcy;":1073,"bdquo;":8222,"becaus;":8757,"because;":8757,"bemptyv;":10672,"bepsi;":1014,"bernou;":8492,"beta;":946,"beth;":8502,"between;":8812,"bfr;":[55349,56607],"bigcap;":8898,"bigcirc;":9711,"bigcup;":8899,"bigodot;":10752,"bigoplus;":10753,"bigotimes;":10754,"bigsqcup;":10758,"bigstar;":9733,"bigtriangledown;":9661,"bigtriangleup;":9651,"biguplus;":10756,"bigvee;":8897,"bigwedge;":8896,"bkarow;":10509,"blacklozenge;":10731,"blacksquare;":9642,"blacktriangle;":9652,"blacktriangledown;":9662,"blacktriangleleft;":9666,"blacktriangleright;":9656,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"bne;":[61,8421],"bnequiv;":[8801,8421],"bnot;":8976,"bopf;":[55349,56659],"bot;":8869,"bottom;":8869,"bowtie;":8904,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxH;":9552,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxV;":9553,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxbox;":10697,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxh;":9472,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxminus;":8863,"boxplus;":8862,"boxtimes;":8864,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxv;":9474,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"bprime;":8245,"breve;":728,brvbar:166,"brvbar;":166,"bscr;":[55349,56503],"bsemi;":8271,"bsim;":8765,"bsime;":8909,"bsol;":92,"bsolb;":10693,"bsolhsub;":10184,"bull;":8226,"bullet;":8226,"bump;":8782,"bumpE;":10926,"bumpe;":8783,"bumpeq;":8783,"cacute;":263,"cap;":8745,"capand;":10820,"capbrcup;":10825,"capcap;":10827,"capcup;":10823,"capdot;":10816,"caps;":[8745,65024],"caret;":8257,"caron;":711,"ccaps;":10829,"ccaron;":269,ccedil:231,"ccedil;":231,"ccirc;":265,"ccups;":10828,"ccupssm;":10832,"cdot;":267,cedil:184,"cedil;":184,"cemptyv;":10674,cent:162,"cent;":162,"centerdot;":183,"cfr;":[55349,56608],"chcy;":1095,"check;":10003,"checkmark;":10003,"chi;":967,"cir;":9675,"cirE;":10691,"circ;":710,"circeq;":8791,"circlearrowleft;":8634,"circlearrowright;":8635,"circledR;":174,"circledS;":9416,"circledast;":8859,"circledcirc;":8858,"circleddash;":8861,"cire;":8791,"cirfnint;":10768,"cirmid;":10991,"cirscir;":10690,"clubs;":9827,"clubsuit;":9827,"colon;":58,"colone;":8788,"coloneq;":8788,"comma;":44,"commat;":64,"comp;":8705,"compfn;":8728,"complement;":8705,"complexes;":8450,"cong;":8773,"congdot;":10861,"conint;":8750,"copf;":[55349,56660],"coprod;":8720,copy:169,"copy;":169,"copysr;":8471,"crarr;":8629,"cross;":10007,"cscr;":[55349,56504],"csub;":10959,"csube;":10961,"csup;":10960,"csupe;":10962,"ctdot;":8943,"cudarrl;":10552,"cudarrr;":10549,"cuepr;":8926,"cuesc;":8927,"cularr;":8630,"cularrp;":10557,"cup;":8746,"cupbrcap;":10824,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"cupor;":10821,"cups;":[8746,65024],"curarr;":8631,"curarrm;":10556,"curlyeqprec;":8926,"curlyeqsucc;":8927,"curlyvee;":8910,"curlywedge;":8911,curren:164,"curren;":164,"curvearrowleft;":8630,"curvearrowright;":8631,"cuvee;":8910,"cuwed;":8911,"cwconint;":8754,"cwint;":8753,"cylcty;":9005,"dArr;":8659,"dHar;":10597,"dagger;":8224,"daleth;":8504,"darr;":8595,"dash;":8208,"dashv;":8867,"dbkarow;":10511,"dblac;":733,"dcaron;":271,"dcy;":1076,"dd;":8518,"ddagger;":8225,"ddarr;":8650,"ddotseq;":10871,deg:176,"deg;":176,"delta;":948,"demptyv;":10673,"dfisht;":10623,"dfr;":[55349,56609],"dharl;":8643,"dharr;":8642,"diam;":8900,"diamond;":8900,"diamondsuit;":9830,"diams;":9830,"die;":168,"digamma;":989,"disin;":8946,"div;":247,divide:247,"divide;":247,"divideontimes;":8903,"divonx;":8903,"djcy;":1106,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"dopf;":[55349,56661],"dot;":729,"doteq;":8784,"doteqdot;":8785,"dotminus;":8760,"dotplus;":8724,"dotsquare;":8865,"doublebarwedge;":8966,"downarrow;":8595,"downdownarrows;":8650,"downharpoonleft;":8643,"downharpoonright;":8642,"drbkarow;":10512,"drcorn;":8991,"drcrop;":8972,"dscr;":[55349,56505],"dscy;":1109,"dsol;":10742,"dstrok;":273,"dtdot;":8945,"dtri;":9663,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"dwangle;":10662,"dzcy;":1119,"dzigrarr;":10239,"eDDot;":10871,"eDot;":8785,eacute:233,"eacute;":233,"easter;":10862,"ecaron;":283,"ecir;":8790,ecirc:234,"ecirc;":234,"ecolon;":8789,"ecy;":1101,"edot;":279,"ee;":8519,"efDot;":8786,"efr;":[55349,56610],"eg;":10906,egrave:232,"egrave;":232,"egs;":10902,"egsdot;":10904,"el;":10905,"elinters;":9191,"ell;":8467,"els;":10901,"elsdot;":10903,"emacr;":275,"empty;":8709,"emptyset;":8709,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"emsp;":8195,"eng;":331,"ensp;":8194,"eogon;":281,"eopf;":[55349,56662],"epar;":8917,"eparsl;":10723,"eplus;":10865,"epsi;":949,"epsilon;":949,"epsiv;":1013,"eqcirc;":8790,"eqcolon;":8789,"eqsim;":8770,"eqslantgtr;":10902,"eqslantless;":10901,"equals;":61,"equest;":8799,"equiv;":8801,"equivDD;":10872,"eqvparsl;":10725,"erDot;":8787,"erarr;":10609,"escr;":8495,"esdot;":8784,"esim;":8770,"eta;":951,eth:240,"eth;":240,euml:235,"euml;":235,"euro;":8364,"excl;":33,"exist;":8707,"expectation;":8496,"exponentiale;":8519,"fallingdotseq;":8786,"fcy;":1092,"female;":9792,"ffilig;":64259,"fflig;":64256,"ffllig;":64260,"ffr;":[55349,56611],"filig;":64257,"fjlig;":[102,106],"flat;":9837,"fllig;":64258,"fltns;":9649,"fnof;":402,"fopf;":[55349,56663],"forall;":8704,"fork;":8916,"forkv;":10969,"fpartint;":10765,frac12:189,"frac12;":189,"frac13;":8531,frac14:188,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,frac34:190,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"frasl;":8260,"frown;":8994,"fscr;":[55349,56507],"gE;":8807,"gEl;":10892,"gacute;":501,"gamma;":947,"gammad;":989,"gap;":10886,"gbreve;":287,"gcirc;":285,"gcy;":1075,"gdot;":289,"ge;":8805,"gel;":8923,"geq;":8805,"geqq;":8807,"geqslant;":10878,"ges;":10878,"gescc;":10921,"gesdot;":10880,"gesdoto;":10882,"gesdotol;":10884,"gesl;":[8923,65024],"gesles;":10900,"gfr;":[55349,56612],"gg;":8811,"ggg;":8921,"gimel;":8503,"gjcy;":1107,"gl;":8823,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gnap;":10890,"gnapprox;":10890,"gne;":10888,"gneq;":10888,"gneqq;":8809,"gnsim;":8935,"gopf;":[55349,56664],"grave;":96,"gscr;":8458,"gsim;":8819,"gsime;":10894,"gsiml;":10896,gt:62,"gt;":62,"gtcc;":10919,"gtcir;":10874,"gtdot;":8919,"gtlPar;":10645,"gtquest;":10876,"gtrapprox;":10886,"gtrarr;":10616,"gtrdot;":8919,"gtreqless;":8923,"gtreqqless;":10892,"gtrless;":8823,"gtrsim;":8819,"gvertneqq;":[8809,65024],"gvnE;":[8809,65024],"hArr;":8660,"hairsp;":8202,"half;":189,"hamilt;":8459,"hardcy;":1098,"harr;":8596,"harrcir;":10568,"harrw;":8621,"hbar;":8463,"hcirc;":293,"hearts;":9829,"heartsuit;":9829,"hellip;":8230,"hercon;":8889,"hfr;":[55349,56613],"hksearow;":10533,"hkswarow;":10534,"hoarr;":8703,"homtht;":8763,"hookleftarrow;":8617,"hookrightarrow;":8618,"hopf;":[55349,56665],"horbar;":8213,"hscr;":[55349,56509],"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,iacute:237,"iacute;":237,"ic;":8291,icirc:238,"icirc;":238,"icy;":1080,"iecy;":1077,iexcl:161,"iexcl;":161,"iff;":8660,"ifr;":[55349,56614],igrave:236,"igrave;":236,"ii;":8520,"iiiint;":10764,"iiint;":8749,"iinfin;":10716,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imagline;":8464,"imagpart;":8465,"imath;":305,"imof;":8887,"imped;":437,"in;":8712,"incare;":8453,"infin;":8734,"infintie;":10717,"inodot;":305,"int;":8747,"intcal;":8890,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"intprod;":10812,"iocy;":1105,"iogon;":303,"iopf;":[55349,56666],"iota;":953,"iprod;":10812,iquest:191,"iquest;":191,"iscr;":[55349,56510],"isin;":8712,"isinE;":8953,"isindot;":8949,"isins;":8948,"isinsv;":8947,"isinv;":8712,"it;":8290,"itilde;":297,"iukcy;":1110,iuml:239,"iuml;":239,"jcirc;":309,"jcy;":1081,"jfr;":[55349,56615],"jmath;":567,"jopf;":[55349,56667],"jscr;":[55349,56511],"jsercy;":1112,"jukcy;":1108,"kappa;":954,"kappav;":1008,"kcedil;":311,"kcy;":1082,"kfr;":[55349,56616],"kgreen;":312,"khcy;":1093,"kjcy;":1116,"kopf;":[55349,56668],"kscr;":[55349,56512],"lAarr;":8666,"lArr;":8656,"lAtail;":10523,"lBarr;":10510,"lE;":8806,"lEg;":10891,"lHar;":10594,"lacute;":314,"laemptyv;":10676,"lagran;":8466,"lambda;":955,"lang;":10216,"langd;":10641,"langle;":10216,"lap;":10885,laquo:171,"laquo;":171,"larr;":8592,"larrb;":8676,"larrbfs;":10527,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrsim;":10611,"larrtl;":8610,"lat;":10923,"latail;":10521,"late;":10925,"lates;":[10925,65024],"lbarr;":10508,"lbbrk;":10098,"lbrace;":123,"lbrack;":91,"lbrke;":10635,"lbrksld;":10639,"lbrkslu;":10637,"lcaron;":318,"lcedil;":316,"lceil;":8968,"lcub;":123,"lcy;":1083,"ldca;":10550,"ldquo;":8220,"ldquor;":8222,"ldrdhar;":10599,"ldrushar;":10571,"ldsh;":8626,"le;":8804,"leftarrow;":8592,"leftarrowtail;":8610,"leftharpoondown;":8637,"leftharpoonup;":8636,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftrightarrows;":8646,"leftrightharpoons;":8651,"leftrightsquigarrow;":8621,"leftthreetimes;":8907,"leg;":8922,"leq;":8804,"leqq;":8806,"leqslant;":10877,"les;":10877,"lescc;":10920,"lesdot;":10879,"lesdoto;":10881,"lesdotor;":10883,"lesg;":[8922,65024],"lesges;":10899,"lessapprox;":10885,"lessdot;":8918,"lesseqgtr;":8922,"lesseqqgtr;":10891,"lessgtr;":8822,"lesssim;":8818,"lfisht;":10620,"lfloor;":8970,"lfr;":[55349,56617],"lg;":8822,"lgE;":10897,"lhard;":8637,"lharu;":8636,"lharul;":10602,"lhblk;":9604,"ljcy;":1113,"ll;":8810,"llarr;":8647,"llcorner;":8990,"llhard;":10603,"lltri;":9722,"lmidot;":320,"lmoust;":9136,"lmoustache;":9136,"lnE;":8808,"lnap;":10889,"lnapprox;":10889,"lne;":10887,"lneq;":10887,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"longleftarrow;":10229,"longleftrightarrow;":10231,"longmapsto;":10236,"longrightarrow;":10230,"looparrowleft;":8619,"looparrowright;":8620,"lopar;":10629,"lopf;":[55349,56669],"loplus;":10797,"lotimes;":10804,"lowast;":8727,"lowbar;":95,"loz;":9674,"lozenge;":9674,"lozf;":10731,"lpar;":40,"lparlt;":10643,"lrarr;":8646,"lrcorner;":8991,"lrhar;":8651,"lrhard;":10605,"lrm;":8206,"lrtri;":8895,"lsaquo;":8249,"lscr;":[55349,56513],"lsh;":8624,"lsim;":8818,"lsime;":10893,"lsimg;":10895,"lsqb;":91,"lsquo;":8216,"lsquor;":8218,"lstrok;":322,lt:60,"lt;":60,"ltcc;":10918,"ltcir;":10873,"ltdot;":8918,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltquest;":10875,"ltrPar;":10646,"ltri;":9667,"ltrie;":8884,"ltrif;":9666,"lurdshar;":10570,"luruhar;":10598,"lvertneqq;":[8808,65024],"lvnE;":[8808,65024],"mDDot;":8762,macr:175,"macr;":175,"male;":9794,"malt;":10016,"maltese;":10016,"map;":8614,"mapsto;":8614,"mapstodown;":8615,"mapstoleft;":8612,"mapstoup;":8613,"marker;":9646,"mcomma;":10793,"mcy;":1084,"mdash;":8212,"measuredangle;":8737,"mfr;":[55349,56618],"mho;":8487,micro:181,"micro;":181,"mid;":8739,"midast;":42,"midcir;":10992,middot:183,"middot;":183,"minus;":8722,"minusb;":8863,"minusd;":8760,"minusdu;":10794,"mlcp;":10971,"mldr;":8230,"mnplus;":8723,"models;":8871,"mopf;":[55349,56670],"mp;":8723,"mscr;":[55349,56514],"mstpos;":8766,"mu;":956,"multimap;":8888,"mumap;":8888,"nGg;":[8921,824],"nGt;":[8811,8402],"nGtv;":[8811,824],"nLeftarrow;":8653,"nLeftrightarrow;":8654,"nLl;":[8920,824],"nLt;":[8810,8402],"nLtv;":[8810,824],"nRightarrow;":8655,"nVDash;":8879,"nVdash;":8878,"nabla;":8711,"nacute;":324,"nang;":[8736,8402],"nap;":8777,"napE;":[10864,824],"napid;":[8779,824],"napos;":329,"napprox;":8777,"natur;":9838,"natural;":9838,"naturals;":8469,nbsp:160,"nbsp;":160,"nbump;":[8782,824],"nbumpe;":[8783,824],"ncap;":10819,"ncaron;":328,"ncedil;":326,"ncong;":8775,"ncongdot;":[10861,824],"ncup;":10818,"ncy;":1085,"ndash;":8211,"ne;":8800,"neArr;":8663,"nearhk;":10532,"nearr;":8599,"nearrow;":8599,"nedot;":[8784,824],"nequiv;":8802,"nesear;":10536,"nesim;":[8770,824],"nexist;":8708,"nexists;":8708,"nfr;":[55349,56619],"ngE;":[8807,824],"nge;":8817,"ngeq;":8817,"ngeqq;":[8807,824],"ngeqslant;":[10878,824],"nges;":[10878,824],"ngsim;":8821,"ngt;":8815,"ngtr;":8815,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"ni;":8715,"nis;":8956,"nisd;":8954,"niv;":8715,"njcy;":1114,"nlArr;":8653,"nlE;":[8806,824],"nlarr;":8602,"nldr;":8229,"nle;":8816,"nleftarrow;":8602,"nleftrightarrow;":8622,"nleq;":8816,"nleqq;":[8806,824],"nleqslant;":[10877,824],"nles;":[10877,824],"nless;":8814,"nlsim;":8820,"nlt;":8814,"nltri;":8938,"nltrie;":8940,"nmid;":8740,"nopf;":[55349,56671],not:172,"not;":172,"notin;":8713,"notinE;":[8953,824],"notindot;":[8949,824],"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notni;":8716,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npar;":8742,"nparallel;":8742,"nparsl;":[11005,8421],"npart;":[8706,824],"npolint;":10772,"npr;":8832,"nprcue;":8928,"npre;":[10927,824],"nprec;":8832,"npreceq;":[10927,824],"nrArr;":8655,"nrarr;":8603,"nrarrc;":[10547,824],"nrarrw;":[8605,824],"nrightarrow;":8603,"nrtri;":8939,"nrtrie;":8941,"nsc;":8833,"nsccue;":8929,"nsce;":[10928,824],"nscr;":[55349,56515],"nshortmid;":8740,"nshortparallel;":8742,"nsim;":8769,"nsime;":8772,"nsimeq;":8772,"nsmid;":8740,"nspar;":8742,"nsqsube;":8930,"nsqsupe;":8931,"nsub;":8836,"nsubE;":[10949,824],"nsube;":8840,"nsubset;":[8834,8402],"nsubseteq;":8840,"nsubseteqq;":[10949,824],"nsucc;":8833,"nsucceq;":[10928,824],"nsup;":8837,"nsupE;":[10950,824],"nsupe;":8841,"nsupset;":[8835,8402],"nsupseteq;":8841,"nsupseteqq;":[10950,824],"ntgl;":8825,ntilde:241,"ntilde;":241,"ntlg;":8824,"ntriangleleft;":8938,"ntrianglelefteq;":8940,"ntriangleright;":8939,"ntrianglerighteq;":8941,"nu;":957,"num;":35,"numero;":8470,"numsp;":8199,"nvDash;":8877,"nvHarr;":10500,"nvap;":[8781,8402],"nvdash;":8876,"nvge;":[8805,8402],"nvgt;":[62,8402],"nvinfin;":10718,"nvlArr;":10498,"nvle;":[8804,8402],"nvlt;":[60,8402],"nvltrie;":[8884,8402],"nvrArr;":10499,"nvrtrie;":[8885,8402],"nvsim;":[8764,8402],"nwArr;":8662,"nwarhk;":10531,"nwarr;":8598,"nwarrow;":8598,"nwnear;":10535,"oS;":9416,oacute:243,"oacute;":243,"oast;":8859,"ocir;":8858,ocirc:244,"ocirc;":244,"ocy;":1086,"odash;":8861,"odblac;":337,"odiv;":10808,"odot;":8857,"odsold;":10684,"oelig;":339,"ofcir;":10687,"ofr;":[55349,56620],"ogon;":731,ograve:242,"ograve;":242,"ogt;":10689,"ohbar;":10677,"ohm;":937,"oint;":8750,"olarr;":8634,"olcir;":10686,"olcross;":10683,"oline;":8254,"olt;":10688,"omacr;":333,"omega;":969,"omicron;":959,"omid;":10678,"ominus;":8854,"oopf;":[55349,56672],"opar;":10679,"operp;":10681,"oplus;":8853,"or;":8744,"orarr;":8635,"ord;":10845,"order;":8500,"orderof;":8500,ordf:170,"ordf;":170,ordm:186,"ordm;":186,"origof;":8886,"oror;":10838,"orslope;":10839,"orv;":10843,"oscr;":8500,oslash:248,"oslash;":248,"osol;":8856,otilde:245,"otilde;":245,"otimes;":8855,"otimesas;":10806,ouml:246,"ouml;":246,"ovbar;":9021,"par;":8741,para:182,"para;":182,"parallel;":8741,"parsim;":10995,"parsl;":11005,"part;":8706,"pcy;":1087,"percnt;":37,"period;":46,"permil;":8240,"perp;":8869,"pertenk;":8241,"pfr;":[55349,56621],"phi;":966,"phiv;":981,"phmmat;":8499,"phone;":9742,"pi;":960,"pitchfork;":8916,"piv;":982,"planck;":8463,"planckh;":8462,"plankv;":8463,"plus;":43,"plusacir;":10787,"plusb;":8862,"pluscir;":10786,"plusdo;":8724,"plusdu;":10789,"pluse;":10866,plusmn:177,"plusmn;":177,"plussim;":10790,"plustwo;":10791,"pm;":177,"pointint;":10773,"popf;":[55349,56673],pound:163,"pound;":163,"pr;":8826,"prE;":10931,"prap;":10935,"prcue;":8828,"pre;":10927,"prec;":8826,"precapprox;":10935,"preccurlyeq;":8828,"preceq;":10927,"precnapprox;":10937,"precneqq;":10933,"precnsim;":8936,"precsim;":8830,"prime;":8242,"primes;":8473,"prnE;":10933,"prnap;":10937,"prnsim;":8936,"prod;":8719,"profalar;":9006,"profline;":8978,"profsurf;":8979,"prop;":8733,"propto;":8733,"prsim;":8830,"prurel;":8880,"pscr;":[55349,56517],"psi;":968,"puncsp;":8200,"qfr;":[55349,56622],"qint;":10764,"qopf;":[55349,56674],"qprime;":8279,"qscr;":[55349,56518],"quaternions;":8461,"quatint;":10774,"quest;":63,"questeq;":8799,quot:34,"quot;":34,"rAarr;":8667,"rArr;":8658,"rAtail;":10524,"rBarr;":10511,"rHar;":10596,"race;":[8765,817],"racute;":341,"radic;":8730,"raemptyv;":10675,"rang;":10217,"rangd;":10642,"range;":10661,"rangle;":10217,raquo:187,"raquo;":187,"rarr;":8594,"rarrap;":10613,"rarrb;":8677,"rarrbfs;":10528,"rarrc;":10547,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrsim;":10612,"rarrtl;":8611,"rarrw;":8605,"ratail;":10522,"ratio;":8758,"rationals;":8474,"rbarr;":10509,"rbbrk;":10099,"rbrace;":125,"rbrack;":93,"rbrke;":10636,"rbrksld;":10638,"rbrkslu;":10640,"rcaron;":345,"rcedil;":343,"rceil;":8969,"rcub;":125,"rcy;":1088,"rdca;":10551,"rdldhar;":10601,"rdquo;":8221,"rdquor;":8221,"rdsh;":8627,"real;":8476,"realine;":8475,"realpart;":8476,"reals;":8477,"rect;":9645,reg:174,"reg;":174,"rfisht;":10621,"rfloor;":8971,"rfr;":[55349,56623],"rhard;":8641,"rharu;":8640,"rharul;":10604,"rho;":961,"rhov;":1009,"rightarrow;":8594,"rightarrowtail;":8611,"rightharpoondown;":8641,"rightharpoonup;":8640,"rightleftarrows;":8644,"rightleftharpoons;":8652,"rightrightarrows;":8649,"rightsquigarrow;":8605,"rightthreetimes;":8908,"ring;":730,"risingdotseq;":8787,"rlarr;":8644,"rlhar;":8652,"rlm;":8207,"rmoust;":9137,"rmoustache;":9137,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"ropf;":[55349,56675],"roplus;":10798,"rotimes;":10805,"rpar;":41,"rpargt;":10644,"rppolint;":10770,"rrarr;":8649,"rsaquo;":8250,"rscr;":[55349,56519],"rsh;":8625,"rsqb;":93,"rsquo;":8217,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"rtri;":9657,"rtrie;":8885,"rtrif;":9656,"rtriltri;":10702,"ruluhar;":10600,"rx;":8478,"sacute;":347,"sbquo;":8218,"sc;":8827,"scE;":10932,"scap;":10936,"scaron;":353,"sccue;":8829,"sce;":10928,"scedil;":351,"scirc;":349,"scnE;":10934,"scnap;":10938,"scnsim;":8937,"scpolint;":10771,"scsim;":8831,"scy;":1089,"sdot;":8901,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searhk;":10533,"searr;":8600,"searrow;":8600,sect:167,"sect;":167,"semi;":59,"seswar;":10537,"setminus;":8726,"setmn;":8726,"sext;":10038,"sfr;":[55349,56624],"sfrown;":8994,"sharp;":9839,"shchcy;":1097,"shcy;":1096,"shortmid;":8739,"shortparallel;":8741,shy:173,"shy;":173,"sigma;":963,"sigmaf;":962,"sigmav;":962,"sim;":8764,"simdot;":10858,"sime;":8771,"simeq;":8771,"simg;":10910,"simgE;":10912,"siml;":10909,"simlE;":10911,"simne;":8774,"simplus;":10788,"simrarr;":10610,"slarr;":8592,"smallsetminus;":8726,"smashp;":10803,"smeparsl;":10724,"smid;":8739,"smile;":8995,"smt;":10922,"smte;":10924,"smtes;":[10924,65024],"softcy;":1100,"sol;":47,"solb;":10692,"solbar;":9023,"sopf;":[55349,56676],"spades;":9824,"spadesuit;":9824,"spar;":8741,"sqcap;":8851,"sqcaps;":[8851,65024],"sqcup;":8852,"sqcups;":[8852,65024],"sqsub;":8847,"sqsube;":8849,"sqsubset;":8847,"sqsubseteq;":8849,"sqsup;":8848,"sqsupe;":8850,"sqsupset;":8848,"sqsupseteq;":8850,"squ;":9633,"square;":9633,"squarf;":9642,"squf;":9642,"srarr;":8594,"sscr;":[55349,56520],"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"star;":9734,"starf;":9733,"straightepsilon;":1013,"straightphi;":981,"strns;":175,"sub;":8834,"subE;":10949,"subdot;":10941,"sube;":8838,"subedot;":10947,"submult;":10945,"subnE;":10955,"subne;":8842,"subplus;":10943,"subrarr;":10617,"subset;":8834,"subseteq;":8838,"subseteqq;":10949,"subsetneq;":8842,"subsetneqq;":10955,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succ;":8827,"succapprox;":10936,"succcurlyeq;":8829,"succeq;":10928,"succnapprox;":10938,"succneqq;":10934,"succnsim;":8937,"succsim;":8831,"sum;":8721,"sung;":9834,sup1:185,"sup1;":185,sup2:178,"sup2;":178,sup3:179,"sup3;":179,"sup;":8835,"supE;":10950,"supdot;":10942,"supdsub;":10968,"supe;":8839,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supnE;":10956,"supne;":8843,"supplus;":10944,"supset;":8835,"supseteq;":8839,"supseteqq;":10950,"supsetneq;":8843,"supsetneqq;":10956,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swArr;":8665,"swarhk;":10534,"swarr;":8601,"swarrow;":8601,"swnwar;":10538,szlig:223,"szlig;":223,"target;":8982,"tau;":964,"tbrk;":9140,"tcaron;":357,"tcedil;":355,"tcy;":1090,"tdot;":8411,"telrec;":8981,"tfr;":[55349,56625],"there4;":8756,"therefore;":8756,"theta;":952,"thetasym;":977,"thetav;":977,"thickapprox;":8776,"thicksim;":8764,"thinsp;":8201,"thkap;":8776,"thksim;":8764,thorn:254,"thorn;":254,"tilde;":732,times:215,"times;":215,"timesb;":8864,"timesbar;":10801,"timesd;":10800,"tint;":8749,"toea;":10536,"top;":8868,"topbot;":9014,"topcir;":10993,"topf;":[55349,56677],"topfork;":10970,"tosa;":10537,"tprime;":8244,"trade;":8482,"triangle;":9653,"triangledown;":9663,"triangleleft;":9667,"trianglelefteq;":8884,"triangleq;":8796,"triangleright;":9657,"trianglerighteq;":8885,"tridot;":9708,"trie;":8796,"triminus;":10810,"triplus;":10809,"trisb;":10701,"tritime;":10811,"trpezium;":9186,"tscr;":[55349,56521],"tscy;":1094,"tshcy;":1115,"tstrok;":359,"twixt;":8812,"twoheadleftarrow;":8606,"twoheadrightarrow;":8608,"uArr;":8657,"uHar;":10595,uacute:250,"uacute;":250,"uarr;":8593,"ubrcy;":1118,"ubreve;":365,ucirc:251,"ucirc;":251,"ucy;":1091,"udarr;":8645,"udblac;":369,"udhar;":10606,"ufisht;":10622,"ufr;":[55349,56626],ugrave:249,"ugrave;":249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ulcorn;":8988,"ulcorner;":8988,"ulcrop;":8975,"ultri;":9720,"umacr;":363,uml:168,"uml;":168,"uogon;":371,"uopf;":[55349,56678],"uparrow;":8593,"updownarrow;":8597,"upharpoonleft;":8639,"upharpoonright;":8638,"uplus;":8846,"upsi;":965,"upsih;":978,"upsilon;":965,"upuparrows;":8648,"urcorn;":8989,"urcorner;":8989,"urcrop;":8974,"uring;":367,"urtri;":9721,"uscr;":[55349,56522],"utdot;":8944,"utilde;":361,"utri;":9653,"utrif;":9652,"uuarr;":8648,uuml:252,"uuml;":252,"uwangle;":10663,"vArr;":8661,"vBar;":10984,"vBarv;":10985,"vDash;":8872,"vangrt;":10652,"varepsilon;":1013,"varkappa;":1008,"varnothing;":8709,"varphi;":981,"varpi;":982,"varpropto;":8733,"varr;":8597,"varrho;":1009,"varsigma;":962,"varsubsetneq;":[8842,65024],"varsubsetneqq;":[10955,65024],"varsupsetneq;":[8843,65024],"varsupsetneqq;":[10956,65024],"vartheta;":977,"vartriangleleft;":8882,"vartriangleright;":8883,"vcy;":1074,"vdash;":8866,"vee;":8744,"veebar;":8891,"veeeq;":8794,"vellip;":8942,"verbar;":124,"vert;":124,"vfr;":[55349,56627],"vltri;":8882,"vnsub;":[8834,8402],"vnsup;":[8835,8402],"vopf;":[55349,56679],"vprop;":8733,"vrtri;":8883,"vscr;":[55349,56523],"vsubnE;":[10955,65024],"vsubne;":[8842,65024],"vsupnE;":[10956,65024],"vsupne;":[8843,65024],"vzigzag;":10650,"wcirc;":373,"wedbar;":10847,"wedge;":8743,"wedgeq;":8793,"weierp;":8472,"wfr;":[55349,56628],"wopf;":[55349,56680],"wp;":8472,"wr;":8768,"wreath;":8768,"wscr;":[55349,56524],"xcap;":8898,"xcirc;":9711,"xcup;":8899,"xdtri;":9661,"xfr;":[55349,56629],"xhArr;":10234,"xharr;":10231,"xi;":958,"xlArr;":10232,"xlarr;":10229,"xmap;":10236,"xnis;":8955,"xodot;":10752,"xopf;":[55349,56681],"xoplus;":10753,"xotime;":10754,"xrArr;":10233,"xrarr;":10230,"xscr;":[55349,56525],"xsqcup;":10758,"xuplus;":10756,"xutri;":9651,"xvee;":8897,"xwedge;":8896,yacute:253,"yacute;":253,"yacy;":1103,"ycirc;":375,"ycy;":1099,yen:165,"yen;":165,"yfr;":[55349,56630],"yicy;":1111,"yopf;":[55349,56682],"yscr;":[55349,56526],"yucy;":1102,yuml:255,"yuml;":255,"zacute;":378,"zcaron;":382,"zcy;":1079,"zdot;":380,"zeetrf;":8488,"zeta;":950,"zfr;":[55349,56631],"zhcy;":1078,"zigrarr;":8669,"zopf;":[55349,56683],"zscr;":[55349,56527],"zwj;":8205,"zwnj;":8204},tm=/(A(?:Elig;?|MP;?|acute;?|breve;|c(?:irc;?|y;)|fr;|grave;?|lpha;|macr;|nd;|o(?:gon;|pf;)|pplyFunction;|ring;?|s(?:cr;|sign;)|tilde;?|uml;?)|B(?:a(?:ckslash;|r(?:v;|wed;))|cy;|e(?:cause;|rnoullis;|ta;)|fr;|opf;|reve;|scr;|umpeq;)|C(?:Hcy;|OPY;?|a(?:cute;|p(?:;|italDifferentialD;)|yleys;)|c(?:aron;|edil;?|irc;|onint;)|dot;|e(?:dilla;|nterDot;)|fr;|hi;|ircle(?:Dot;|Minus;|Plus;|Times;)|lo(?:ckwiseContourIntegral;|seCurly(?:DoubleQuote;|Quote;))|o(?:lon(?:;|e;)|n(?:gruent;|int;|tourIntegral;)|p(?:f;|roduct;)|unterClockwiseContourIntegral;)|ross;|scr;|up(?:;|Cap;))|D(?:D(?:;|otrahd;)|Jcy;|Scy;|Zcy;|a(?:gger;|rr;|shv;)|c(?:aron;|y;)|el(?:;|ta;)|fr;|i(?:a(?:critical(?:Acute;|Do(?:t;|ubleAcute;)|Grave;|Tilde;)|mond;)|fferentialD;)|o(?:pf;|t(?:;|Dot;|Equal;)|uble(?:ContourIntegral;|Do(?:t;|wnArrow;)|L(?:eft(?:Arrow;|RightArrow;|Tee;)|ong(?:Left(?:Arrow;|RightArrow;)|RightArrow;))|Right(?:Arrow;|Tee;)|Up(?:Arrow;|DownArrow;)|VerticalBar;)|wn(?:Arrow(?:;|Bar;|UpArrow;)|Breve;|Left(?:RightVector;|TeeVector;|Vector(?:;|Bar;))|Right(?:TeeVector;|Vector(?:;|Bar;))|Tee(?:;|Arrow;)|arrow;))|s(?:cr;|trok;))|E(?:NG;|TH;?|acute;?|c(?:aron;|irc;?|y;)|dot;|fr;|grave;?|lement;|m(?:acr;|pty(?:SmallSquare;|VerySmallSquare;))|o(?:gon;|pf;)|psilon;|qu(?:al(?:;|Tilde;)|ilibrium;)|s(?:cr;|im;)|ta;|uml;?|x(?:ists;|ponentialE;))|F(?:cy;|fr;|illed(?:SmallSquare;|VerySmallSquare;)|o(?:pf;|rAll;|uriertrf;)|scr;)|G(?:Jcy;|T;?|amma(?:;|d;)|breve;|c(?:edil;|irc;|y;)|dot;|fr;|g;|opf;|reater(?:Equal(?:;|Less;)|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|scr;|t;)|H(?:ARDcy;|a(?:cek;|t;)|circ;|fr;|ilbertSpace;|o(?:pf;|rizontalLine;)|s(?:cr;|trok;)|ump(?:DownHump;|Equal;))|I(?:Ecy;|Jlig;|Ocy;|acute;?|c(?:irc;?|y;)|dot;|fr;|grave;?|m(?:;|a(?:cr;|ginaryI;)|plies;)|n(?:t(?:;|e(?:gral;|rsection;))|visible(?:Comma;|Times;))|o(?:gon;|pf;|ta;)|scr;|tilde;|u(?:kcy;|ml;?))|J(?:c(?:irc;|y;)|fr;|opf;|s(?:cr;|ercy;)|ukcy;)|K(?:Hcy;|Jcy;|appa;|c(?:edil;|y;)|fr;|opf;|scr;)|L(?:Jcy;|T;?|a(?:cute;|mbda;|ng;|placetrf;|rr;)|c(?:aron;|edil;|y;)|e(?:ft(?:A(?:ngleBracket;|rrow(?:;|Bar;|RightArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|Right(?:Arrow;|Vector;)|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;|rightarrow;)|ss(?:EqualGreater;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;))|fr;|l(?:;|eftarrow;)|midot;|o(?:ng(?:Left(?:Arrow;|RightArrow;)|RightArrow;|left(?:arrow;|rightarrow;)|rightarrow;)|pf;|wer(?:LeftArrow;|RightArrow;))|s(?:cr;|h;|trok;)|t;)|M(?:ap;|cy;|e(?:diumSpace;|llintrf;)|fr;|inusPlus;|opf;|scr;|u;)|N(?:Jcy;|acute;|c(?:aron;|edil;|y;)|e(?:gative(?:MediumSpace;|Thi(?:ckSpace;|nSpace;)|VeryThinSpace;)|sted(?:GreaterGreater;|LessLess;)|wLine;)|fr;|o(?:Break;|nBreakingSpace;|pf;|t(?:;|C(?:ongruent;|upCap;)|DoubleVerticalBar;|E(?:lement;|qual(?:;|Tilde;)|xists;)|Greater(?:;|Equal;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|Hump(?:DownHump;|Equal;)|Le(?:ftTriangle(?:;|Bar;|Equal;)|ss(?:;|Equal;|Greater;|Less;|SlantEqual;|Tilde;))|Nested(?:GreaterGreater;|LessLess;)|Precedes(?:;|Equal;|SlantEqual;)|R(?:everseElement;|ightTriangle(?:;|Bar;|Equal;))|S(?:quareSu(?:bset(?:;|Equal;)|perset(?:;|Equal;))|u(?:bset(?:;|Equal;)|cceeds(?:;|Equal;|SlantEqual;|Tilde;)|perset(?:;|Equal;)))|Tilde(?:;|Equal;|FullEqual;|Tilde;)|VerticalBar;))|scr;|tilde;?|u;)|O(?:Elig;|acute;?|c(?:irc;?|y;)|dblac;|fr;|grave;?|m(?:acr;|ega;|icron;)|opf;|penCurly(?:DoubleQuote;|Quote;)|r;|s(?:cr;|lash;?)|ti(?:lde;?|mes;)|uml;?|ver(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;))|P(?:artialD;|cy;|fr;|hi;|i;|lusMinus;|o(?:incareplane;|pf;)|r(?:;|ecedes(?:;|Equal;|SlantEqual;|Tilde;)|ime;|o(?:duct;|portion(?:;|al;)))|s(?:cr;|i;))|Q(?:UOT;?|fr;|opf;|scr;)|R(?:Barr;|EG;?|a(?:cute;|ng;|rr(?:;|tl;))|c(?:aron;|edil;|y;)|e(?:;|verse(?:E(?:lement;|quilibrium;)|UpEquilibrium;))|fr;|ho;|ight(?:A(?:ngleBracket;|rrow(?:;|Bar;|LeftArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;)|o(?:pf;|undImplies;)|rightarrow;|s(?:cr;|h;)|uleDelayed;)|S(?:H(?:CHcy;|cy;)|OFTcy;|acute;|c(?:;|aron;|edil;|irc;|y;)|fr;|hort(?:DownArrow;|LeftArrow;|RightArrow;|UpArrow;)|igma;|mallCircle;|opf;|q(?:rt;|uare(?:;|Intersection;|Su(?:bset(?:;|Equal;)|perset(?:;|Equal;))|Union;))|scr;|tar;|u(?:b(?:;|set(?:;|Equal;))|c(?:ceeds(?:;|Equal;|SlantEqual;|Tilde;)|hThat;)|m;|p(?:;|erset(?:;|Equal;)|set;)))|T(?:HORN;?|RADE;|S(?:Hcy;|cy;)|a(?:b;|u;)|c(?:aron;|edil;|y;)|fr;|h(?:e(?:refore;|ta;)|i(?:ckSpace;|nSpace;))|ilde(?:;|Equal;|FullEqual;|Tilde;)|opf;|ripleDot;|s(?:cr;|trok;))|U(?:a(?:cute;?|rr(?:;|ocir;))|br(?:cy;|eve;)|c(?:irc;?|y;)|dblac;|fr;|grave;?|macr;|n(?:der(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;)|ion(?:;|Plus;))|o(?:gon;|pf;)|p(?:Arrow(?:;|Bar;|DownArrow;)|DownArrow;|Equilibrium;|Tee(?:;|Arrow;)|arrow;|downarrow;|per(?:LeftArrow;|RightArrow;)|si(?:;|lon;))|ring;|scr;|tilde;|uml;?)|V(?:Dash;|bar;|cy;|dash(?:;|l;)|e(?:e;|r(?:bar;|t(?:;|ical(?:Bar;|Line;|Separator;|Tilde;))|yThinSpace;))|fr;|opf;|scr;|vdash;)|W(?:circ;|edge;|fr;|opf;|scr;)|X(?:fr;|i;|opf;|scr;)|Y(?:Acy;|Icy;|Ucy;|acute;?|c(?:irc;|y;)|fr;|opf;|scr;|uml;)|Z(?:Hcy;|acute;|c(?:aron;|y;)|dot;|e(?:roWidthSpace;|ta;)|fr;|opf;|scr;)|a(?:acute;?|breve;|c(?:;|E;|d;|irc;?|ute;?|y;)|elig;?|f(?:;|r;)|grave;?|l(?:e(?:fsym;|ph;)|pha;)|m(?:a(?:cr;|lg;)|p;?)|n(?:d(?:;|and;|d;|slope;|v;)|g(?:;|e;|le;|msd(?:;|a(?:a;|b;|c;|d;|e;|f;|g;|h;))|rt(?:;|vb(?:;|d;))|s(?:ph;|t;)|zarr;))|o(?:gon;|pf;)|p(?:;|E;|acir;|e;|id;|os;|prox(?:;|eq;))|ring;?|s(?:cr;|t;|ymp(?:;|eq;))|tilde;?|uml;?|w(?:conint;|int;))|b(?:Not;|a(?:ck(?:cong;|epsilon;|prime;|sim(?:;|eq;))|r(?:vee;|wed(?:;|ge;)))|brk(?:;|tbrk;)|c(?:ong;|y;)|dquo;|e(?:caus(?:;|e;)|mptyv;|psi;|rnou;|t(?:a;|h;|ween;))|fr;|ig(?:c(?:ap;|irc;|up;)|o(?:dot;|plus;|times;)|s(?:qcup;|tar;)|triangle(?:down;|up;)|uplus;|vee;|wedge;)|karow;|l(?:a(?:ck(?:lozenge;|square;|triangle(?:;|down;|left;|right;))|nk;)|k(?:1(?:2;|4;)|34;)|ock;)|n(?:e(?:;|quiv;)|ot;)|o(?:pf;|t(?:;|tom;)|wtie;|x(?:D(?:L;|R;|l;|r;)|H(?:;|D;|U;|d;|u;)|U(?:L;|R;|l;|r;)|V(?:;|H;|L;|R;|h;|l;|r;)|box;|d(?:L;|R;|l;|r;)|h(?:;|D;|U;|d;|u;)|minus;|plus;|times;|u(?:L;|R;|l;|r;)|v(?:;|H;|L;|R;|h;|l;|r;)))|prime;|r(?:eve;|vbar;?)|s(?:cr;|emi;|im(?:;|e;)|ol(?:;|b;|hsub;))|u(?:ll(?:;|et;)|mp(?:;|E;|e(?:;|q;))))|c(?:a(?:cute;|p(?:;|and;|brcup;|c(?:ap;|up;)|dot;|s;)|r(?:et;|on;))|c(?:a(?:ps;|ron;)|edil;?|irc;|ups(?:;|sm;))|dot;|e(?:dil;?|mptyv;|nt(?:;|erdot;|))|fr;|h(?:cy;|eck(?:;|mark;)|i;)|ir(?:;|E;|c(?:;|eq;|le(?:arrow(?:left;|right;)|d(?:R;|S;|ast;|circ;|dash;)))|e;|fnint;|mid;|scir;)|lubs(?:;|uit;)|o(?:lon(?:;|e(?:;|q;))|m(?:ma(?:;|t;)|p(?:;|fn;|le(?:ment;|xes;)))|n(?:g(?:;|dot;)|int;)|p(?:f;|rod;|y(?:;|sr;|)))|r(?:arr;|oss;)|s(?:cr;|u(?:b(?:;|e;)|p(?:;|e;)))|tdot;|u(?:darr(?:l;|r;)|e(?:pr;|sc;)|larr(?:;|p;)|p(?:;|brcap;|c(?:ap;|up;)|dot;|or;|s;)|r(?:arr(?:;|m;)|ly(?:eq(?:prec;|succ;)|vee;|wedge;)|ren;?|vearrow(?:left;|right;))|vee;|wed;)|w(?:conint;|int;)|ylcty;)|d(?:Arr;|Har;|a(?:gger;|leth;|rr;|sh(?:;|v;))|b(?:karow;|lac;)|c(?:aron;|y;)|d(?:;|a(?:gger;|rr;)|otseq;)|e(?:g;?|lta;|mptyv;)|f(?:isht;|r;)|har(?:l;|r;)|i(?:am(?:;|ond(?:;|suit;)|s;)|e;|gamma;|sin;|v(?:;|ide(?:;|ontimes;|)|onx;))|jcy;|lc(?:orn;|rop;)|o(?:llar;|pf;|t(?:;|eq(?:;|dot;)|minus;|plus;|square;)|ublebarwedge;|wn(?:arrow;|downarrows;|harpoon(?:left;|right;)))|r(?:bkarow;|c(?:orn;|rop;))|s(?:c(?:r;|y;)|ol;|trok;)|t(?:dot;|ri(?:;|f;))|u(?:arr;|har;)|wangle;|z(?:cy;|igrarr;))|e(?:D(?:Dot;|ot;)|a(?:cute;?|ster;)|c(?:aron;|ir(?:;|c;?)|olon;|y;)|dot;|e;|f(?:Dot;|r;)|g(?:;|rave;?|s(?:;|dot;))|l(?:;|inters;|l;|s(?:;|dot;))|m(?:acr;|pty(?:;|set;|v;)|sp(?:1(?:3;|4;)|;))|n(?:g;|sp;)|o(?:gon;|pf;)|p(?:ar(?:;|sl;)|lus;|si(?:;|lon;|v;))|q(?:c(?:irc;|olon;)|s(?:im;|lant(?:gtr;|less;))|u(?:als;|est;|iv(?:;|DD;))|vparsl;)|r(?:Dot;|arr;)|s(?:cr;|dot;|im;)|t(?:a;|h;?)|u(?:ml;?|ro;)|x(?:cl;|ist;|p(?:ectation;|onentiale;)))|f(?:allingdotseq;|cy;|emale;|f(?:ilig;|l(?:ig;|lig;)|r;)|ilig;|jlig;|l(?:at;|lig;|tns;)|nof;|o(?:pf;|r(?:all;|k(?:;|v;)))|partint;|r(?:a(?:c(?:1(?:2;?|3;|4;?|5;|6;|8;)|2(?:3;|5;)|3(?:4;?|5;|8;)|45;|5(?:6;|8;)|78;)|sl;)|own;)|scr;)|g(?:E(?:;|l;)|a(?:cute;|mma(?:;|d;)|p;)|breve;|c(?:irc;|y;)|dot;|e(?:;|l;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|l;))|l(?:;|es;)))|fr;|g(?:;|g;)|imel;|jcy;|l(?:;|E;|a;|j;)|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|opf;|rave;|s(?:cr;|im(?:;|e;|l;))|t(?:;|c(?:c;|ir;)|dot;|lPar;|quest;|r(?:a(?:pprox;|rr;)|dot;|eq(?:less;|qless;)|less;|sim;)|)|v(?:ertneqq;|nE;))|h(?:Arr;|a(?:irsp;|lf;|milt;|r(?:dcy;|r(?:;|cir;|w;)))|bar;|circ;|e(?:arts(?:;|uit;)|llip;|rcon;)|fr;|ks(?:earow;|warow;)|o(?:arr;|mtht;|ok(?:leftarrow;|rightarrow;)|pf;|rbar;)|s(?:cr;|lash;|trok;)|y(?:bull;|phen;))|i(?:acute;?|c(?:;|irc;?|y;)|e(?:cy;|xcl;?)|f(?:f;|r;)|grave;?|i(?:;|i(?:int;|nt;)|nfin;|ota;)|jlig;|m(?:a(?:cr;|g(?:e;|line;|part;)|th;)|of;|ped;)|n(?:;|care;|fin(?:;|tie;)|odot;|t(?:;|cal;|e(?:gers;|rcal;)|larhk;|prod;))|o(?:cy;|gon;|pf;|ta;)|prod;|quest;?|s(?:cr;|in(?:;|E;|dot;|s(?:;|v;)|v;))|t(?:;|ilde;)|u(?:kcy;|ml;?))|j(?:c(?:irc;|y;)|fr;|math;|opf;|s(?:cr;|ercy;)|ukcy;)|k(?:appa(?:;|v;)|c(?:edil;|y;)|fr;|green;|hcy;|jcy;|opf;|scr;)|l(?:A(?:arr;|rr;|tail;)|Barr;|E(?:;|g;)|Har;|a(?:cute;|emptyv;|gran;|mbda;|ng(?:;|d;|le;)|p;|quo;?|rr(?:;|b(?:;|fs;)|fs;|hk;|lp;|pl;|sim;|tl;)|t(?:;|ail;|e(?:;|s;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|quo(?:;|r;)|r(?:dhar;|ushar;)|sh;)|e(?:;|ft(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|leftarrows;|right(?:arrow(?:;|s;)|harpoons;|squigarrow;)|threetimes;)|g;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|r;))|g(?:;|es;)|s(?:approx;|dot;|eq(?:gtr;|qgtr;)|gtr;|sim;)))|f(?:isht;|loor;|r;)|g(?:;|E;)|h(?:ar(?:d;|u(?:;|l;))|blk;)|jcy;|l(?:;|arr;|corner;|hard;|tri;)|m(?:idot;|oust(?:;|ache;))|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|o(?:a(?:ng;|rr;)|brk;|ng(?:left(?:arrow;|rightarrow;)|mapsto;|rightarrow;)|oparrow(?:left;|right;)|p(?:ar;|f;|lus;)|times;|w(?:ast;|bar;)|z(?:;|enge;|f;))|par(?:;|lt;)|r(?:arr;|corner;|har(?:;|d;)|m;|tri;)|s(?:aquo;|cr;|h;|im(?:;|e;|g;)|q(?:b;|uo(?:;|r;))|trok;)|t(?:;|c(?:c;|ir;)|dot;|hree;|imes;|larr;|quest;|r(?:Par;|i(?:;|e;|f;))|)|ur(?:dshar;|uhar;)|v(?:ertneqq;|nE;))|m(?:DDot;|a(?:cr;?|l(?:e;|t(?:;|ese;))|p(?:;|sto(?:;|down;|left;|up;))|rker;)|c(?:omma;|y;)|dash;|easuredangle;|fr;|ho;|i(?:cro;?|d(?:;|ast;|cir;|dot;?)|nus(?:;|b;|d(?:;|u;)))|l(?:cp;|dr;)|nplus;|o(?:dels;|pf;)|p;|s(?:cr;|tpos;)|u(?:;|ltimap;|map;))|n(?:G(?:g;|t(?:;|v;))|L(?:eft(?:arrow;|rightarrow;)|l;|t(?:;|v;))|Rightarrow;|V(?:Dash;|dash;)|a(?:bla;|cute;|ng;|p(?:;|E;|id;|os;|prox;)|tur(?:;|al(?:;|s;)))|b(?:sp;?|ump(?:;|e;))|c(?:a(?:p;|ron;)|edil;|ong(?:;|dot;)|up;|y;)|dash;|e(?:;|Arr;|ar(?:hk;|r(?:;|ow;))|dot;|quiv;|s(?:ear;|im;)|xist(?:;|s;))|fr;|g(?:E;|e(?:;|q(?:;|q;|slant;)|s;)|sim;|t(?:;|r;))|h(?:Arr;|arr;|par;)|i(?:;|s(?:;|d;)|v;)|jcy;|l(?:Arr;|E;|arr;|dr;|e(?:;|ft(?:arrow;|rightarrow;)|q(?:;|q;|slant;)|s(?:;|s;))|sim;|t(?:;|ri(?:;|e;)))|mid;|o(?:pf;|t(?:;|in(?:;|E;|dot;|v(?:a;|b;|c;))|ni(?:;|v(?:a;|b;|c;))|))|p(?:ar(?:;|allel;|sl;|t;)|olint;|r(?:;|cue;|e(?:;|c(?:;|eq;))))|r(?:Arr;|arr(?:;|c;|w;)|ightarrow;|tri(?:;|e;))|s(?:c(?:;|cue;|e;|r;)|hort(?:mid;|parallel;)|im(?:;|e(?:;|q;))|mid;|par;|qsu(?:be;|pe;)|u(?:b(?:;|E;|e;|set(?:;|eq(?:;|q;)))|cc(?:;|eq;)|p(?:;|E;|e;|set(?:;|eq(?:;|q;)))))|t(?:gl;|ilde;?|lg;|riangle(?:left(?:;|eq;)|right(?:;|eq;)))|u(?:;|m(?:;|ero;|sp;))|v(?:Dash;|Harr;|ap;|dash;|g(?:e;|t;)|infin;|l(?:Arr;|e;|t(?:;|rie;))|r(?:Arr;|trie;)|sim;)|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|near;))|o(?:S;|a(?:cute;?|st;)|c(?:ir(?:;|c;?)|y;)|d(?:ash;|blac;|iv;|ot;|sold;)|elig;|f(?:cir;|r;)|g(?:on;|rave;?|t;)|h(?:bar;|m;)|int;|l(?:arr;|c(?:ir;|ross;)|ine;|t;)|m(?:acr;|ega;|i(?:cron;|d;|nus;))|opf;|p(?:ar;|erp;|lus;)|r(?:;|arr;|d(?:;|er(?:;|of;)|f;?|m;?)|igof;|or;|slope;|v;)|s(?:cr;|lash;?|ol;)|ti(?:lde;?|mes(?:;|as;))|uml;?|vbar;)|p(?:ar(?:;|a(?:;|llel;|)|s(?:im;|l;)|t;)|cy;|er(?:cnt;|iod;|mil;|p;|tenk;)|fr;|h(?:i(?:;|v;)|mmat;|one;)|i(?:;|tchfork;|v;)|l(?:an(?:ck(?:;|h;)|kv;)|us(?:;|acir;|b;|cir;|d(?:o;|u;)|e;|mn;?|sim;|two;))|m;|o(?:intint;|pf;|und;?)|r(?:;|E;|ap;|cue;|e(?:;|c(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;))|ime(?:;|s;)|n(?:E;|ap;|sim;)|o(?:d;|f(?:alar;|line;|surf;)|p(?:;|to;))|sim;|urel;)|s(?:cr;|i;)|uncsp;)|q(?:fr;|int;|opf;|prime;|scr;|u(?:at(?:ernions;|int;)|est(?:;|eq;)|ot;?))|r(?:A(?:arr;|rr;|tail;)|Barr;|Har;|a(?:c(?:e;|ute;)|dic;|emptyv;|ng(?:;|d;|e;|le;)|quo;?|rr(?:;|ap;|b(?:;|fs;)|c;|fs;|hk;|lp;|pl;|sim;|tl;|w;)|t(?:ail;|io(?:;|nals;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|ldhar;|quo(?:;|r;)|sh;)|e(?:al(?:;|ine;|part;|s;)|ct;|g;?)|f(?:isht;|loor;|r;)|h(?:ar(?:d;|u(?:;|l;))|o(?:;|v;))|i(?:ght(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|left(?:arrows;|harpoons;)|rightarrows;|squigarrow;|threetimes;)|ng;|singdotseq;)|l(?:arr;|har;|m;)|moust(?:;|ache;)|nmid;|o(?:a(?:ng;|rr;)|brk;|p(?:ar;|f;|lus;)|times;)|p(?:ar(?:;|gt;)|polint;)|rarr;|s(?:aquo;|cr;|h;|q(?:b;|uo(?:;|r;)))|t(?:hree;|imes;|ri(?:;|e;|f;|ltri;))|uluhar;|x;)|s(?:acute;|bquo;|c(?:;|E;|a(?:p;|ron;)|cue;|e(?:;|dil;)|irc;|n(?:E;|ap;|sim;)|polint;|sim;|y;)|dot(?:;|b;|e;)|e(?:Arr;|ar(?:hk;|r(?:;|ow;))|ct;?|mi;|swar;|tm(?:inus;|n;)|xt;)|fr(?:;|own;)|h(?:arp;|c(?:hcy;|y;)|ort(?:mid;|parallel;)|y;?)|i(?:gma(?:;|f;|v;)|m(?:;|dot;|e(?:;|q;)|g(?:;|E;)|l(?:;|E;)|ne;|plus;|rarr;))|larr;|m(?:a(?:llsetminus;|shp;)|eparsl;|i(?:d;|le;)|t(?:;|e(?:;|s;)))|o(?:ftcy;|l(?:;|b(?:;|ar;))|pf;)|pa(?:des(?:;|uit;)|r;)|q(?:c(?:ap(?:;|s;)|up(?:;|s;))|su(?:b(?:;|e;|set(?:;|eq;))|p(?:;|e;|set(?:;|eq;)))|u(?:;|ar(?:e;|f;)|f;))|rarr;|s(?:cr;|etmn;|mile;|tarf;)|t(?:ar(?:;|f;)|r(?:aight(?:epsilon;|phi;)|ns;))|u(?:b(?:;|E;|dot;|e(?:;|dot;)|mult;|n(?:E;|e;)|plus;|rarr;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;)))|cc(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;)|m;|ng;|p(?:1;?|2;?|3;?|;|E;|d(?:ot;|sub;)|e(?:;|dot;)|hs(?:ol;|ub;)|larr;|mult;|n(?:E;|e;)|plus;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;))))|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|nwar;)|zlig;?)|t(?:a(?:rget;|u;)|brk;|c(?:aron;|edil;|y;)|dot;|elrec;|fr;|h(?:e(?:re(?:4;|fore;)|ta(?:;|sym;|v;))|i(?:ck(?:approx;|sim;)|nsp;)|k(?:ap;|sim;)|orn;?)|i(?:lde;|mes(?:;|b(?:;|ar;)|d;|)|nt;)|o(?:ea;|p(?:;|bot;|cir;|f(?:;|ork;))|sa;)|prime;|r(?:ade;|i(?:angle(?:;|down;|left(?:;|eq;)|q;|right(?:;|eq;))|dot;|e;|minus;|plus;|sb;|time;)|pezium;)|s(?:c(?:r;|y;)|hcy;|trok;)|w(?:ixt;|ohead(?:leftarrow;|rightarrow;)))|u(?:Arr;|Har;|a(?:cute;?|rr;)|br(?:cy;|eve;)|c(?:irc;?|y;)|d(?:arr;|blac;|har;)|f(?:isht;|r;)|grave;?|h(?:ar(?:l;|r;)|blk;)|l(?:c(?:orn(?:;|er;)|rop;)|tri;)|m(?:acr;|l;?)|o(?:gon;|pf;)|p(?:arrow;|downarrow;|harpoon(?:left;|right;)|lus;|si(?:;|h;|lon;)|uparrows;)|r(?:c(?:orn(?:;|er;)|rop;)|ing;|tri;)|scr;|t(?:dot;|ilde;|ri(?:;|f;))|u(?:arr;|ml;?)|wangle;)|v(?:Arr;|Bar(?:;|v;)|Dash;|a(?:ngrt;|r(?:epsilon;|kappa;|nothing;|p(?:hi;|i;|ropto;)|r(?:;|ho;)|s(?:igma;|u(?:bsetneq(?:;|q;)|psetneq(?:;|q;)))|t(?:heta;|riangle(?:left;|right;))))|cy;|dash;|e(?:e(?:;|bar;|eq;)|llip;|r(?:bar;|t;))|fr;|ltri;|nsu(?:b;|p;)|opf;|prop;|rtri;|s(?:cr;|u(?:bn(?:E;|e;)|pn(?:E;|e;)))|zigzag;)|w(?:circ;|e(?:d(?:bar;|ge(?:;|q;))|ierp;)|fr;|opf;|p;|r(?:;|eath;)|scr;)|x(?:c(?:ap;|irc;|up;)|dtri;|fr;|h(?:Arr;|arr;)|i;|l(?:Arr;|arr;)|map;|nis;|o(?:dot;|p(?:f;|lus;)|time;)|r(?:Arr;|arr;)|s(?:cr;|qcup;)|u(?:plus;|tri;)|vee;|wedge;)|y(?:ac(?:ute;?|y;)|c(?:irc;|y;)|en;?|fr;|icy;|opf;|scr;|u(?:cy;|ml;?))|z(?:acute;|c(?:aron;|y;)|dot;|e(?:etrf;|ta;)|fr;|hcy;|igrarr;|opf;|scr;|w(?:j;|nj;)))|[\s\S]/g,bw=32,Ew=/[^\r"&\u0000]+/g,yw=/[^\r'&\u0000]+/g,Tw=/[^\r\t\n\f &>\u0000]+/g,_w=/[^\r\t\n\f \/>A-Z\u0000]+/g,Iw=/[^\r\t\n\f \/=>A-Z\u0000]+/g,ww=/[^\]\r\u0000\uffff]*/g,Sw=/[^&<\r\u0000\uffff]*/g,rm=/[^<\r\u0000\uffff]*/g,vw=/[^\r\u0000\uffff]*/g,nm=/(?:(\/)?([a-z]+)>)|[\s\S]/g,im=/(?:([-a-z]+)[ \t\n\f]*=[ \t\n\f]*('[^'&\r\u0000]*'|"[^"&\r\u0000]*"|[^\t\n\r\f "&'\u0000>][^&> \t\n\r\f\u0000]*[ \t\n\f]))|[\s\S]/g,So=/[^\x09\x0A\x0C\x0D\x20]/,au=/[^\x09\x0A\x0C\x0D\x20]/g,Nw=/[^\x00\x09\x0A\x0C\x0D\x20]/,fn=/^[\x09\x0A\x0C\x0D\x20]+/,vo=/\x00/g;function et(e){var t=16384;if(e.length<t)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<e.length;n+=t)r+=String.fromCharCode.apply(String,e.slice(n,n+t));return r}function Aw(e){for(var t=[],r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function ie(e,t){if(typeof t=="string")return e.namespaceURI===R.HTML&&e.localName===t;var r=t[e.namespaceURI];return r&&r[e.localName]}function am(e){return ie(e,hm)}function om(e){if(ie(e,gm))return!0;if(e.namespaceURI===R.MATHML&&e.localName==="annotation-xml"){var t=e.getAttribute("encoding");if(t&&(t=t.toLowerCase()),t==="text/html"||t==="application/xhtml+xml")return!0}return!1}function Cw(e){return e in Jx?Jx[e]:e}function sm(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in Zx&&(e[t][0]=Zx[e[t][0]])}function cm(e){for(var t=0,r=e.length;t<r;t++)if(e[t][0]==="definitionurl"){e[t][0]="definitionURL";break}}function ou(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in Yx&&e[t].push(Yx[e[t][0]])}function um(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r][0],o=e[r][1];t.hasAttribute(i)||t._setAttribute(i,o)}}W.ElementStack=function(){this.elements=[],this.top=null};W.ElementStack.prototype.push=function(e){this.elements.push(e),this.top=e};W.ElementStack.prototype.pop=function(e){this.elements.pop(),this.top=this.elements[this.elements.length-1]};W.ElementStack.prototype.popTag=function(e){for(var t=this.elements.length-1;t>0;t--){var r=this.elements[t];if(ie(r,e))break}this.elements.length=t,this.top=this.elements[t-1]};W.ElementStack.prototype.popElementType=function(e){for(var t=this.elements.length-1;t>0&&!(this.elements[t]instanceof e);t--);this.elements.length=t,this.top=this.elements[t-1]};W.ElementStack.prototype.popElement=function(e){for(var t=this.elements.length-1;t>0&&this.elements[t]!==e;t--);this.elements.length=t,this.top=this.elements[t-1]};W.ElementStack.prototype.removeElement=function(e){if(this.top===e)this.pop();else{var t=this.elements.lastIndexOf(e);t!==-1&&this.elements.splice(t,1)}};W.ElementStack.prototype.clearToContext=function(e){for(var t=this.elements.length-1;t>0&&!ie(this.elements[t],e);t--);this.elements.length=t+1,this.top=this.elements[t]};W.ElementStack.prototype.contains=function(e){return this.inSpecificScope(e,Object.create(null))};W.ElementStack.prototype.inSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(ie(n,e))return!0;if(ie(n,t))return!1}return!1};W.ElementStack.prototype.elementInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n===e)return!0;if(ie(n,t))return!1}return!1};W.ElementStack.prototype.elementTypeInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n instanceof e)return!0;if(ie(n,t))return!1}return!1};W.ElementStack.prototype.inScope=function(e){return this.inSpecificScope(e,Zt)};W.ElementStack.prototype.elementInScope=function(e){return this.elementInSpecificScope(e,Zt)};W.ElementStack.prototype.elementTypeInScope=function(e){return this.elementTypeInSpecificScope(e,Zt)};W.ElementStack.prototype.inButtonScope=function(e){return this.inSpecificScope(e,uu)};W.ElementStack.prototype.inListItemScope=function(e){return this.inSpecificScope(e,Co)};W.ElementStack.prototype.inTableScope=function(e){return this.inSpecificScope(e,mm)};W.ElementStack.prototype.inSelectScope=function(e){for(var t=this.elements.length-1;t>=0;t--){var r=this.elements[t];if(r.namespaceURI!==R.HTML)return!1;var n=r.localName;if(n===e)return!0;if(n!=="optgroup"&&n!=="option")return!1}return!1};W.ElementStack.prototype.generateImpliedEndTags=function(e,t){for(var r=t?dm:pm,n=this.elements.length-1;n>=0;n--){var i=this.elements[n];if(e&&ie(i,e)||!ie(this.elements[n],r))break}this.elements.length=n+1,this.top=this.elements[n]};W.ActiveFormattingElements=function(){this.list=[],this.attrs=[]};W.ActiveFormattingElements.prototype.MARKER={localName:"|"};W.ActiveFormattingElements.prototype.insertMarker=function(){this.list.push(this.MARKER),this.attrs.push(this.MARKER)};W.ActiveFormattingElements.prototype.push=function(e,t){for(var r=0,n=this.list.length-1;n>=0&&this.list[n]!==this.MARKER;n--)if(c(e,this.list[n],this.attrs[n])&&(r++,r===3)){this.list.splice(n,1),this.attrs.splice(n,1);break}this.list.push(e);for(var i=[],o=0;o<t.length;o++)i[o]=t[o];this.attrs.push(i);function c(x,m,T){if(x.localName!==m.localName||x._numattrs!==T.length)return!1;for(var w=0,ue=T.length;w<ue;w++){var $=T[w][0],f=T[w][1];if(!x.hasAttribute($)||x.getAttribute($)!==f)return!1}return!0}};W.ActiveFormattingElements.prototype.clearToMarker=function(){for(var e=this.list.length-1;e>=0&&this.list[e]!==this.MARKER;e--);e<0&&(e=0),this.list.length=e,this.attrs.length=e};W.ActiveFormattingElements.prototype.findElementByTag=function(e){for(var t=this.list.length-1;t>=0;t--){var r=this.list[t];if(r===this.MARKER)break;if(r.localName===e)return r}return null};W.ActiveFormattingElements.prototype.indexOf=function(e){return this.list.lastIndexOf(e)};W.ActiveFormattingElements.prototype.remove=function(e){var t=this.list.lastIndexOf(e);t!==-1&&(this.list.splice(t,1),this.attrs.splice(t,1))};W.ActiveFormattingElements.prototype.replace=function(e,t,r){var n=this.list.lastIndexOf(e);n!==-1&&(this.list[n]=t,this.attrs[n]=r)};W.ActiveFormattingElements.prototype.insertAfter=function(e,t){var r=this.list.lastIndexOf(e);r!==-1&&(this.list.splice(r,0,t),this.attrs.splice(r,0,t))};function W(e,t,r){var n=null,i=0,o=0,c=!1,x=!1,m=0,T=[],w="",ue=!0,$=0,f=q,Pe,le,B="",xr="",z=[],De="",je="",de=[],mr=[],hr=[],gr=[],At=[],Xi=!1,E=wg,Jt=null,er=[],l=new W.ElementStack,F=new W.ActiveFormattingElements,jr=t!==void 0,Qi=null,tr=null,Yi=!0;t&&(Yi=t.ownerDocument._scripting_enabled),r&&r.scripting_enabled===!1&&(Yi=!1);var _e=!0,Ho=!1,Zi,Uo,_=[],br=!1,Gr=!1,Ji={document:function(){return X},_asDocumentFragment:function(){for(var a=X.createDocumentFragment(),s=X.firstChild;s.hasChildNodes();)a.appendChild(s.firstChild);return a},pause:function(){$++},resume:function(){$--,this.parse("")},parse:function(a,s,u){var d;return $>0?(w+=a,!0):(m===0?(w&&(a=w+a,w=""),s&&(a+="\uFFFF",c=!0),n=a,i=a.length,o=0,ue&&(ue=!1,n.charCodeAt(0)===65279&&(o=1)),m++,d=Cu(u),w=n.substring(o,i),m--):(m++,T.push(n,i,o),n=a,i=a.length,o=0,Cu(),d=!1,w=n.substring(o,i),o=T.pop(),i=T.pop(),n=T.pop(),w&&(n=w+n.substring(o),i=n.length,o=0,w=""),m--),d)}},X=new uw(!0,e);if(X._parser=Ji,X._scripting_enabled=Yi,t){if(t.ownerDocument._quirks&&(X._quirks=!0),t.ownerDocument._limitedQuirks&&(X._limitedQuirks=!0),t.namespaceURI===R.HTML)switch(t.localName){case"title":case"textarea":f=_r;break;case"style":case"xmp":case"iframe":case"noembed":case"noframes":case"script":case"plaintext":f=Ko;break}var Au=X.createElement("html");X._appendChild(Au),l.push(Au),t instanceof ne.HTMLTemplateElement&&er.push(ts),ai();for(var ei=t;ei!==null;ei=ei.parentElement)if(ei instanceof ne.HTMLFormElement){tr=ei;break}}function Cu(a){for(var s,u,d,b;o<i;){if($>0||a&&a())return!0;switch(typeof f.lookahead){case"undefined":if(s=n.charCodeAt(o++),x&&(x=!1,s===10)){o++;continue}switch(s){case 13:o<i?n.charCodeAt(o)===10&&o++:x=!0,f(10);break;case 65535:if(c&&o===i){f(wo);break}default:f(s);break}break;case"number":s=n.charCodeAt(o);var S=f.lookahead,L=!0;if(S<0&&(L=!1,S=-S),S<i-o)u=L?n.substring(o,o+S):null,b=!1;else if(c)u=L?n.substring(o,i):null,b=!0,s===65535&&o===i-1&&(s=wo);else return!0;f(s,u,b);break;case"string":s=n.charCodeAt(o),d=f.lookahead;var H=n.indexOf(d,o);if(H!==-1)u=n.substring(o,H+d.length),b=!1;else{if(!c)return!0;u=n.substring(o,i),s===65535&&o===i-1&&(s=wo),b=!0}f(s,u,b);break}}return!1}function Er(a,s){for(var u=0;u<At.length;u++)if(At[u][0]===a)return;s!==void 0?At.push([a,s]):At.push([a])}function Ah(){im.lastIndex=o-1;var a=im.exec(n);if(!a)throw new Error("should never happen");var s=a[1];if(!s)return!1;var u=a[2],d=u.length;switch(u[0]){case'"':case"'":u=u.substring(1,d-1),o+=a[0].length-1,f=Xo;break;default:f=$t,o+=a[0].length-1,u=u.substring(0,d-1);break}for(var b=0;b<At.length;b++)if(At[b][0]===s)return!0;return At.push([s,u]),!0}function Ch(){Xi=!1,B="",At.length=0}function ti(){Xi=!0,B="",At.length=0}function rr(){z.length=0}function Bo(){De=""}function jo(){je=""}function Ru(){de.length=0}function mn(){mr.length=0,hr=null,gr=null}function ea(){hr=[]}function yr(){gr=[]}function Z(){Ho=!0}function Rh(){return l.top&&l.top.namespaceURI!=="http://www.w3.org/1999/xhtml"}function gt(a){return xr===a}function hn(){if(_.length>0){var a=et(_);if(_.length=0,Gr&&(Gr=!1,a[0]===`
|
|
9
|
+
`&&(a=a.substring(1)),a.length===0))return;Ae(Qn,a),br=!1}Gr=!1}function ri(a){a.lastIndex=o-1;var s=a.exec(n);if(s&&s.index===o-1)return s=s[0],o+=s.length-1,c&&o===i&&(s=s.slice(0,-1),o--),s;throw new Error("should never happen")}function ni(a){a.lastIndex=o-1;var s=a.exec(n)[0];return s?(Oh(s),o+=s.length-1,!0):!1}function Oh(a){_.length>0&&hn(),!(Gr&&(Gr=!1,a[0]===`
|
|
10
|
+
`&&(a=a.substring(1)),a.length===0))&&Ae(Qn,a)}function nr(){if(Xi)Ae(U,B);else{var a=B;B="",xr=a,Ae(Je,a,At)}}function Lh(){if(o===i)return!1;nm.lastIndex=o;var a=nm.exec(n);if(!a)throw new Error("should never happen");var s=a[2];if(!s)return!1;var u=a[1];return u?(o+=s.length+2,Ae(U,s)):(o+=s.length+1,xr=s,Ae(Je,s,pw)),!0}function Dh(){Xi?Ae(U,B,null,!0):Ae(Je,B,At,!0)}function J(){Ae(fw,et(mr),hr?et(hr):void 0,gr?et(gr):void 0)}function M(){hn(),E(wo),X.modclock=1}var Ae=Ji.insertToken=function(s,u,d,b){hn();var S=l.top;!S||S.namespaceURI===R.HTML?E(s,u,d,b):s!==Je&&s!==Qn?$u(s,u,d,b):am(S)&&(s===Qn||s===Je&&u!=="mglyph"&&u!=="malignmark")||s===Je&&u==="svg"&&S.namespaceURI===R.MATHML&&S.localName==="annotation-xml"||om(S)?(Uo=!0,E(s,u,d,b),Uo=!1):$u(s,u,d,b)};function Gt(a){var s=l.top;Tr&&ie(s,Yn)?ra(function(u){return u.createComment(a)}):(s instanceof ne.HTMLTemplateElement&&(s=s.content),s._appendChild(s.ownerDocument.createComment(a)))}function Vt(a){var s=l.top;if(Tr&&ie(s,Yn))ra(function(d){return d.createTextNode(a)});else{s instanceof ne.HTMLTemplateElement&&(s=s.content);var u=s.lastChild;u&&u.nodeType===iu.TEXT_NODE?u.appendData(a):s._appendChild(s.ownerDocument.createTextNode(a))}}function ii(a,s,u){var d=lm.createElement(a,s,null);if(u)for(var b=0,S=u.length;b<S;b++)d._setAttribute(u[b][0],u[b][1]);return d}var Tr=!1;function k(a,s){var u=ta(function(d){return ii(d,a,s)});return ie(u,xm)&&(u._form=tr),u}function ta(a){var s;return Tr&&ie(l.top,Yn)?s=ra(a):l.top instanceof ne.HTMLTemplateElement?(s=a(l.top.content.ownerDocument),l.top.content._appendChild(s)):(s=a(l.top.ownerDocument),l.top._appendChild(s)),l.push(s),s}function Go(a,s,u){return ta(function(d){var b=d._createElementNS(a,u,null);if(s)for(var S=0,L=s.length;S<L;S++){var H=s[S];H.length===2?b._setAttribute(H[0],H[1]):b._setAttributeNS(H[2],H[0],H[1])}return b})}function Ou(a){for(var s=l.elements.length-1;s>=0;s--)if(l.elements[s]instanceof a)return s;return-1}function ra(a){var s,u,d=-1,b=-1,S;if(d=Ou(ne.HTMLTableElement),b=Ou(ne.HTMLTemplateElement),b>=0&&(d<0||b>d)?s=l.elements[b]:d>=0&&(s=l.elements[d].parentNode,s?u=l.elements[d]:s=l.elements[d-1]),s||(s=l.elements[0]),s instanceof ne.HTMLTemplateElement&&(s=s.content),S=a(s.ownerDocument),S.nodeType===iu.TEXT_NODE){var L;if(u?L=u.previousSibling:L=s.lastChild,L&&L.nodeType===iu.TEXT_NODE)return L.appendData(S.data),S}return u?s.insertBefore(S,u):s._appendChild(S),S}function ai(){for(var a=!1,s=l.elements.length-1;s>=0;s--){var u=l.elements[s];if(s===0&&(a=!0,jr&&(u=t)),u.namespaceURI===R.HTML){var d=u.localName;switch(d){case"select":for(var b=s;b>0;){var S=l.elements[--b];if(S instanceof ne.HTMLTemplateElement)break;if(S instanceof ne.HTMLTableElement){E=ha;return}}E=ir;return;case"tr":E=ci;return;case"tbody":case"tfoot":case"thead":E=Wr;return;case"caption":E=es;return;case"colgroup":E=ma;return;case"table":E=bt;return;case"template":E=er[er.length-1];return;case"body":E=O;return;case"frameset":E=rs;return;case"html":Qi===null?E=da:E=Jo;return;default:if(!a){if(d==="head"){E=Ie;return}if(d==="td"||d==="th"){E=gn;return}}}}if(a){E=O;return}}}function na(a,s){k(a,s),f=oi,Jt=E,E=xa}function kh(a,s){k(a,s),f=_r,Jt=E,E=xa}function Vo(a,s){return{elt:ii(a,F.list[s].localName,F.attrs[s]),attrs:F.attrs[s]}}function rt(){if(F.list.length!==0){var a=F.list[F.list.length-1];if(a!==F.MARKER&&l.elements.lastIndexOf(a)===-1){for(var s=F.list.length-2;s>=0&&(a=F.list[s],!(a===F.MARKER||l.elements.lastIndexOf(a)!==-1));s--);for(s=s+1;s<F.list.length;s++){var u=ta(function(d){return Vo(d,s).elt});F.list[s]=u}}}}var ia={localName:"BM"};function Mh(a){if(ie(l.top,a)&&F.indexOf(l.top)===-1)return l.pop(),!0;for(var s=0;s<8;){s++;var u=F.findElementByTag(a);if(!u)return!1;var d=l.elements.lastIndexOf(u);if(d===-1)return F.remove(u),!0;if(!l.elementInScope(u))return!0;for(var b=null,S,L=d+1;L<l.elements.length;L++)if(ie(l.elements[L],pn)){b=l.elements[L],S=L;break}if(b){var H=l.elements[d-1];F.insertAfter(u,ia);for(var be=b,Ge=b,Et=S,Ct,zr=0;zr++,be=l.elements[--Et],be!==u;){if(Ct=F.indexOf(be),zr>3&&Ct!==-1&&(F.remove(be),Ct=-1),Ct===-1){l.removeElement(be);continue}var Nr=Vo(H.ownerDocument,Ct);F.replace(be,Nr.elt,Nr.attrs),l.elements[Et]=Nr.elt,be=Nr.elt,Ge===b&&(F.remove(ia),F.insertAfter(Nr.elt,ia)),be._appendChild(Ge),Ge=be}Tr&&ie(H,Yn)?ra(function(){return Ge}):H instanceof ne.HTMLTemplateElement?H.content._appendChild(Ge):H._appendChild(Ge);for(var ui=Vo(b.ownerDocument,F.indexOf(u));b.hasChildNodes();)ui.elt._appendChild(b.firstChild);b._appendChild(ui.elt),F.remove(u),F.replace(ia,ui.elt,ui.attrs),l.removeElement(u);var Cg=l.elements.lastIndexOf(b);l.elements.splice(Cg+1,0,ui.elt)}else return l.popElement(u),F.remove(u),!0}return!0}function Fh(){l.pop(),E=Jt}function Vr(){delete X._parser,l.elements.length=0,X.defaultView&&X.defaultView.dispatchEvent(new ne.Event("load",{}))}function A(a,s){f=s,o--}function q(a){switch(a){case 38:Pe=q,f=si;break;case 60:if(Lh())break;f=Ph;break;case 0:_.push(a),br=!0;break;case-1:M();break;default:ni(Sw)||_.push(a);break}}function _r(a){switch(a){case 38:Pe=_r,f=si;break;case 60:f=Hh;break;case 0:_.push(65533),br=!0;break;case-1:M();break;default:_.push(a);break}}function oi(a){switch(a){case 60:f=jh;break;case 0:_.push(65533);break;case-1:M();break;default:ni(rm)||_.push(a);break}}function Ir(a){switch(a){case 60:f=Kh;break;case 0:_.push(65533);break;case-1:M();break;default:ni(rm)||_.push(a);break}}function Ko(a){switch(a){case 0:_.push(65533);break;case-1:M();break;default:ni(vw)||_.push(a);break}}function Ph(a){switch(a){case 33:f=Mu;break;case 47:f=qh;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:Ch(),A(a,Lu);break;case 63:A(a,ca);break;default:_.push(60),A(a,q);break}}function qh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ti(),A(a,Lu);break;case 62:f=q;break;case-1:_.push(60),_.push(47),M();break;default:A(a,ca);break}}function Lu(a){switch(a){case 9:case 10:case 12:case 32:f=$t;break;case 47:f=Sr;break;case 62:f=q,nr();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32);break;case 0:B+="\uFFFD";break;case-1:M();break;default:B+=ri(_w);break}}function Hh(a){a===47?(rr(),f=Uh):(_.push(60),A(a,_r))}function Uh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ti(),A(a,Bh);break;default:_.push(60),_.push(47),A(a,_r);break}}function Bh(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=q,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),z.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),z.push(a);return;default:break}_.push(60),_.push(47),ln(_,z),A(a,_r)}function jh(a){a===47?(rr(),f=Gh):(_.push(60),A(a,oi))}function Gh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ti(),A(a,Vh);break;default:_.push(60),_.push(47),A(a,oi);break}}function Vh(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=q,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),z.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),z.push(a);return;default:break}_.push(60),_.push(47),ln(_,z),A(a,oi)}function Kh(a){switch(a){case 47:rr(),f=$h;break;case 33:f=zh,_.push(60),_.push(33);break;default:_.push(60),A(a,Ir);break}}function $h(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ti(),A(a,Wh);break;default:_.push(60),_.push(47),A(a,Ir);break}}function Wh(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=q,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),z.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),z.push(a);return;default:break}_.push(60),_.push(47),ln(_,z),A(a,Ir)}function zh(a){a===45?(f=Xh,_.push(45)):A(a,Ir)}function Xh(a){a===45?(f=Du,_.push(45)):A(a,Ir)}function Kt(a){switch(a){case 45:f=Qh,_.push(45);break;case 60:f=$o;break;case 0:_.push(65533);break;case-1:M();break;default:_.push(a);break}}function Qh(a){switch(a){case 45:f=Du,_.push(45);break;case 60:f=$o;break;case 0:f=Kt,_.push(65533);break;case-1:M();break;default:f=Kt,_.push(a);break}}function Du(a){switch(a){case 45:_.push(45);break;case 60:f=$o;break;case 62:f=Ir,_.push(62);break;case 0:f=Kt,_.push(65533);break;case-1:M();break;default:f=Kt,_.push(a);break}}function $o(a){switch(a){case 47:rr(),f=Yh;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:rr(),_.push(60),A(a,Jh);break;default:_.push(60),A(a,Kt);break}}function Yh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ti(),A(a,Zh);break;default:_.push(60),_.push(47),A(a,Kt);break}}function Zh(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=q,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),z.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),z.push(a);return;default:break}_.push(60),_.push(47),ln(_,z),A(a,Kt)}function Jh(a){switch(a){case 9:case 10:case 12:case 32:case 47:case 62:et(z)==="script"?f=wr:f=Kt,_.push(a);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:z.push(a+32),_.push(a);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:z.push(a),_.push(a);break;default:A(a,Kt);break}}function wr(a){switch(a){case 45:f=eg,_.push(45);break;case 60:f=Wo,_.push(60);break;case 0:_.push(65533);break;case-1:M();break;default:_.push(a);break}}function eg(a){switch(a){case 45:f=tg,_.push(45);break;case 60:f=Wo,_.push(60);break;case 0:f=wr,_.push(65533);break;case-1:M();break;default:f=wr,_.push(a);break}}function tg(a){switch(a){case 45:_.push(45);break;case 60:f=Wo,_.push(60);break;case 62:f=Ir,_.push(62);break;case 0:f=wr,_.push(65533);break;case-1:M();break;default:f=wr,_.push(a);break}}function Wo(a){a===47?(rr(),f=rg,_.push(47)):A(a,wr)}function rg(a){switch(a){case 9:case 10:case 12:case 32:case 47:case 62:et(z)==="script"?f=Kt:f=wr,_.push(a);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:z.push(a+32),_.push(a);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:z.push(a),_.push(a);break;default:A(a,wr);break}}function $t(a){switch(a){case 9:case 10:case 12:case 32:break;case 47:f=Sr;break;case 62:f=q,nr();break;case-1:M();break;case 61:Bo(),De+=String.fromCharCode(a),f=zo;break;default:if(Ah())break;Bo(),A(a,zo);break}}function zo(a){switch(a){case 9:case 10:case 12:case 32:case 47:case 62:case-1:A(a,ng);break;case 61:f=ku;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:De+=String.fromCharCode(a+32);break;case 0:De+="\uFFFD";break;default:De+=ri(Iw);break}}function ng(a){switch(a){case 9:case 10:case 12:case 32:break;case 47:Er(De),f=Sr;break;case 61:f=ku;break;case 62:f=q,Er(De),nr();break;case-1:Er(De),M();break;default:Er(De),Bo(),A(a,zo);break}}function ku(a){switch(a){case 9:case 10:case 12:case 32:break;case 34:jo(),f=aa;break;case 39:jo(),f=oa;break;default:jo(),A(a,sa);break}}function aa(a){switch(a){case 34:Er(De,je),f=Xo;break;case 38:Pe=aa,f=si;break;case 0:je+="\uFFFD";break;case-1:M();break;case 10:je+=String.fromCharCode(a);break;default:je+=ri(Ew);break}}function oa(a){switch(a){case 39:Er(De,je),f=Xo;break;case 38:Pe=oa,f=si;break;case 0:je+="\uFFFD";break;case-1:M();break;case 10:je+=String.fromCharCode(a);break;default:je+=ri(yw);break}}function sa(a){switch(a){case 9:case 10:case 12:case 32:Er(De,je),f=$t;break;case 38:Pe=sa,f=si;break;case 62:Er(De,je),f=q,nr();break;case 0:je+="\uFFFD";break;case-1:o--,f=q;break;default:je+=ri(Tw);break}}function Xo(a){switch(a){case 9:case 10:case 12:case 32:f=$t;break;case 47:f=Sr;break;case 62:f=q,nr();break;case-1:M();break;default:A(a,$t);break}}function Sr(a){switch(a){case 62:f=q,Dh(!0);break;case-1:M();break;default:A(a,$t);break}}function ca(a,s,u){var d=s.length;u?o+=d-1:o+=d;var b=s.substring(0,d-1);b=b.replace(/\u0000/g,"\uFFFD"),b=b.replace(/\u000D\u000A/g,`
|
|
11
|
+
`),b=b.replace(/\u000D/g,`
|
|
12
|
+
`),Ae(Yt,b),f=q}ca.lookahead=">";function Mu(a,s,u){if(s[0]==="-"&&s[1]==="-"){o+=2,Ru(),f=ig;return}s.toUpperCase()==="DOCTYPE"?(o+=7,f=fg):s==="[CDATA["&&Rh()?(o+=7,f=Zo):f=ca}Mu.lookahead=7;function ig(a){switch(Ru(),a){case 45:f=ag;break;case 62:f=q,Ae(Yt,et(de));break;default:A(a,Kr);break}}function ag(a){switch(a){case 45:f=ua;break;case 62:f=q,Ae(Yt,et(de));break;case-1:Ae(Yt,et(de)),M();break;default:de.push(45),A(a,Kr);break}}function Kr(a){switch(a){case 60:de.push(a),f=og;break;case 45:f=Qo;break;case 0:de.push(65533);break;case-1:Ae(Yt,et(de)),M();break;default:de.push(a);break}}function og(a){switch(a){case 33:de.push(a),f=sg;break;case 60:de.push(a);break;default:A(a,Kr);break}}function sg(a){a===45?f=cg:A(a,Kr)}function cg(a){a===45?f=ug:A(a,Qo)}function ug(a){switch(a){case 62:case-1:A(a,ua);break;default:A(a,ua);break}}function Qo(a){switch(a){case 45:f=ua;break;case-1:Ae(Yt,et(de)),M();break;default:de.push(45),A(a,Kr);break}}function ua(a){switch(a){case 62:f=q,Ae(Yt,et(de));break;case 33:f=lg;break;case 45:de.push(45);break;case-1:Ae(Yt,et(de)),M();break;default:de.push(45),de.push(45),A(a,Kr);break}}function lg(a){switch(a){case 45:de.push(45),de.push(45),de.push(33),f=Qo;break;case 62:f=q,Ae(Yt,et(de));break;case-1:Ae(Yt,et(de)),M();break;default:de.push(45),de.push(45),de.push(33),A(a,Kr);break}}function fg(a){switch(a){case 9:case 10:case 12:case 32:f=Fu;break;case-1:mn(),Z(),J(),M();break;default:A(a,Fu);break}}function Fu(a){switch(a){case 9:case 10:case 12:case 32:break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:mn(),mr.push(a+32),f=Yo;break;case 0:mn(),mr.push(65533),f=Yo;break;case 62:mn(),Z(),f=q,J();break;case-1:mn(),Z(),J(),M();break;default:mn(),mr.push(a),f=Yo;break}}function Yo(a){switch(a){case 9:case 10:case 12:case 32:f=Pu;break;case 62:f=q,J();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:mr.push(a+32);break;case 0:mr.push(65533);break;case-1:Z(),J(),M();break;default:mr.push(a);break}}function Pu(a,s,u){switch(a){case 9:case 10:case 12:case 32:o+=1;break;case 62:f=q,o+=1,J();break;case-1:Z(),J(),M();break;default:s=s.toUpperCase(),s==="PUBLIC"?(o+=6,f=pg):s==="SYSTEM"?(o+=6,f=mg):(Z(),f=vr);break}}Pu.lookahead=6;function pg(a){switch(a){case 9:case 10:case 12:case 32:f=dg;break;case 34:ea(),f=qu;break;case 39:ea(),f=Hu;break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function dg(a){switch(a){case 9:case 10:case 12:case 32:break;case 34:ea(),f=qu;break;case 39:ea(),f=Hu;break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function qu(a){switch(a){case 34:f=Uu;break;case 0:hr.push(65533);break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:hr.push(a);break}}function Hu(a){switch(a){case 39:f=Uu;break;case 0:hr.push(65533);break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:hr.push(a);break}}function Uu(a){switch(a){case 9:case 10:case 12:case 32:f=xg;break;case 62:f=q,J();break;case 34:yr(),f=la;break;case 39:yr(),f=fa;break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function xg(a){switch(a){case 9:case 10:case 12:case 32:break;case 62:f=q,J();break;case 34:yr(),f=la;break;case 39:yr(),f=fa;break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function mg(a){switch(a){case 9:case 10:case 12:case 32:f=hg;break;case 34:yr(),f=la;break;case 39:yr(),f=fa;break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function hg(a){switch(a){case 9:case 10:case 12:case 32:break;case 34:yr(),f=la;break;case 39:yr(),f=fa;break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function la(a){switch(a){case 34:f=Bu;break;case 0:gr.push(65533);break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:gr.push(a);break}}function fa(a){switch(a){case 39:f=Bu;break;case 0:gr.push(65533);break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:gr.push(a);break}}function Bu(a){switch(a){case 9:case 10:case 12:case 32:break;case 62:f=q,J();break;case-1:Z(),J(),M();break;default:f=vr;break}}function vr(a){switch(a){case 62:f=q,J();break;case-1:J(),M();break;default:break}}function Zo(a){switch(a){case 93:f=gg;break;case-1:M();break;case 0:br=!0;default:ni(ww)||_.push(a);break}}function gg(a){a===93?f=bg:(_.push(93),A(a,Zo))}function bg(a){switch(a){case 93:_.push(93);break;case 62:hn(),f=q;break;default:_.push(93),_.push(93),A(a,Zo);break}}function si(a){switch(rr(),z.push(38),a){case 9:case 10:case 12:case 32:case 60:case 38:case-1:A(a,$r);break;case 35:z.push(a),f=Eg;break;default:A(a,ju);break}}function ju(a){tm.lastIndex=o;var s=tm.exec(n);if(!s)throw new Error("should never happen");var u=s[1];if(!u){f=$r;return}switch(o+=u.length,ln(z,Aw(u)),Pe){case aa:case oa:case sa:if(u[u.length-1]!==";"&&/[=A-Za-z0-9]/.test(n[o])){f=$r;return}break;default:break}rr();var d=gw[u];typeof d=="number"?z.push(d):ln(z,d),f=$r}ju.lookahead=-bw;function Eg(a){switch(le=0,a){case 120:case 88:z.push(a),f=yg;break;default:A(a,Tg);break}}function yg(a){switch(a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 66:case 67:case 68:case 69:case 70:case 97:case 98:case 99:case 100:case 101:case 102:A(a,_g);break;default:A(a,$r);break}}function Tg(a){switch(a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:A(a,Ig);break;default:A(a,$r);break}}function _g(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:le*=16,le+=a-55;break;case 97:case 98:case 99:case 100:case 101:case 102:le*=16,le+=a-87;break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:le*=16,le+=a-48;break;case 59:f=pa;break;default:A(a,pa);break}}function Ig(a){switch(a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:le*=10,le+=a-48;break;case 59:f=pa;break;default:A(a,pa);break}}function pa(a){le in em?le=em[le]:(le>1114111||le>=55296&&le<57344)&&(le=65533),rr(),le<=65535?z.push(le):(le=le-65536,z.push(55296+(le>>10)),z.push(56320+(le&1023))),A(a,$r)}function $r(a){switch(Pe){case aa:case oa:case sa:je+=et(z);break;default:ln(_,z);break}A(a,Pe)}function wg(a,s,u,d){switch(a){case 1:if(s=s.replace(fn,""),s.length===0)return;break;case 4:X._appendChild(X.createComment(s));return;case 5:var b=s,S=u,L=d;X.appendChild(new lw(X,b,S,L)),Ho||b.toLowerCase()!=="html"||dw.test(S)||L&&L.toLowerCase()===xw||L===void 0&&Qx.test(S)?X._quirks=!0:(mw.test(S)||L!==void 0&&Qx.test(S))&&(X._limitedQuirks=!0),E=Gu;return}X._quirks=!0,E=Gu,E(a,s,u,d)}function Gu(a,s,u,d){var b;switch(a){case 1:if(s=s.replace(fn,""),s.length===0)return;break;case 5:return;case 4:X._appendChild(X.createComment(s));return;case 2:if(s==="html"){b=ii(X,s,u),l.push(b),X.appendChild(b),E=da;return}break;case 3:switch(s){case"html":case"head":case"body":case"br":break;default:return}}b=ii(X,"html",null),l.push(b),X.appendChild(b),E=da,E(a,s,u,d)}function da(a,s,u,d){switch(a){case 1:if(s=s.replace(fn,""),s.length===0)return;break;case 5:return;case 4:Gt(s);return;case 2:switch(s){case"html":O(a,s,u,d);return;case"head":var b=k(s,u);Qi=b,E=Ie;return}break;case 3:switch(s){case"html":case"head":case"body":case"br":break;default:return}}da(Je,"head",null),E(a,s,u,d)}function Ie(a,s,u,d){switch(a){case 1:var b=s.match(fn);if(b&&(Vt(b[0]),s=s.substring(b[0].length)),s.length===0)return;break;case 4:Gt(s);return;case 5:return;case 2:switch(s){case"html":O(a,s,u,d);return;case"meta":case"base":case"basefont":case"bgsound":case"link":k(s,u),l.pop();return;case"title":kh(s,u);return;case"noscript":if(!Yi){k(s,u),E=Vu;return}case"noframes":case"style":na(s,u);return;case"script":ta(function(S){var L=ii(S,s,u);return L._parser_inserted=!0,L._force_async=!1,jr&&(L._already_started=!0),hn(),L}),f=Ir,Jt=E,E=xa;return;case"template":k(s,u),F.insertMarker(),_e=!1,E=ts,er.push(E);return;case"head":return}break;case 3:switch(s){case"head":l.pop(),E=Jo;return;case"body":case"html":case"br":break;case"template":if(!l.contains("template"))return;l.generateImpliedEndTags(null,"thorough"),l.popTag("template"),F.clearToMarker(),er.pop(),ai();return;default:return}break}Ie(U,"head",null),E(a,s,u,d)}function Vu(a,s,u,d){switch(a){case 5:return;case 4:Ie(a,s);return;case 1:var b=s.match(fn);if(b&&(Ie(a,b[0]),s=s.substring(b[0].length)),s.length===0)return;break;case 2:switch(s){case"html":O(a,s,u,d);return;case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"style":Ie(a,s,u);return;case"head":case"noscript":return}break;case 3:switch(s){case"noscript":l.pop(),E=Ie;return;case"br":break;default:return}break}Vu(U,"noscript",null),E(a,s,u,d)}function Jo(a,s,u,d){switch(a){case 1:var b=s.match(fn);if(b&&(Vt(b[0]),s=s.substring(b[0].length)),s.length===0)return;break;case 4:Gt(s);return;case 5:return;case 2:switch(s){case"html":O(a,s,u,d);return;case"body":k(s,u),_e=!1,E=O;return;case"frameset":k(s,u),E=rs;return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":l.push(Qi),Ie(Je,s,u),l.removeElement(Qi);return;case"head":return}break;case 3:switch(s){case"template":return Ie(a,s,u,d);case"body":case"html":case"br":break;default:return}break}Jo(Je,"body",null),_e=!0,E(a,s,u,d)}function O(a,s,u,d){var b,S,L,H;switch(a){case 1:if(br&&(s=s.replace(vo,""),s.length===0))return;_e&&So.test(s)&&(_e=!1),rt(),Vt(s);return;case 5:return;case 4:Gt(s);return;case-1:if(er.length)return ts(a);Vr();return;case 2:switch(s){case"html":if(l.contains("template"))return;um(u,l.elements[0]);return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":Ie(Je,s,u);return;case"body":if(b=l.elements[1],!b||!(b instanceof ne.HTMLBodyElement)||l.contains("template"))return;_e=!1,um(u,b);return;case"frameset":if(!_e||(b=l.elements[1],!b||!(b instanceof ne.HTMLBodyElement)))return;for(b.parentNode&&b.parentNode.removeChild(b);!(l.top instanceof ne.HTMLHtmlElement);)l.pop();k(s,u),E=rs;return;case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"nav":case"ol":case"p":case"section":case"summary":case"ul":l.inButtonScope("p")&&O(U,"p"),k(s,u);return;case"menu":l.inButtonScope("p")&&O(U,"p"),ie(l.top,"menuitem")&&l.pop(),k(s,u);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":l.inButtonScope("p")&&O(U,"p"),l.top instanceof ne.HTMLHeadingElement&&l.pop(),k(s,u);return;case"pre":case"listing":l.inButtonScope("p")&&O(U,"p"),k(s,u),Gr=!0,_e=!1;return;case"form":if(tr&&!l.contains("template"))return;l.inButtonScope("p")&&O(U,"p"),H=k(s,u),l.contains("template")||(tr=H);return;case"li":for(_e=!1,S=l.elements.length-1;S>=0;S--){if(L=l.elements[S],L instanceof ne.HTMLLIElement){O(U,"li");break}if(ie(L,pn)&&!ie(L,su))break}l.inButtonScope("p")&&O(U,"p"),k(s,u);return;case"dd":case"dt":for(_e=!1,S=l.elements.length-1;S>=0;S--){if(L=l.elements[S],ie(L,fm)){O(U,L.localName);break}if(ie(L,pn)&&!ie(L,su))break}l.inButtonScope("p")&&O(U,"p"),k(s,u);return;case"plaintext":l.inButtonScope("p")&&O(U,"p"),k(s,u),f=Ko;return;case"button":l.inScope("button")?(O(U,"button"),E(a,s,u,d)):(rt(),k(s,u),_e=!1);return;case"a":var be=F.findElementByTag("a");be&&(O(U,s),F.remove(be),l.removeElement(be));case"b":case"big":case"code":case"em":case"font":case"i":case"s":case"small":case"strike":case"strong":case"tt":case"u":rt(),F.push(k(s,u),u);return;case"nobr":rt(),l.inScope(s)&&(O(U,s),rt()),F.push(k(s,u),u);return;case"applet":case"marquee":case"object":rt(),k(s,u),F.insertMarker(),_e=!1;return;case"table":!X._quirks&&l.inButtonScope("p")&&O(U,"p"),k(s,u),_e=!1,E=bt;return;case"area":case"br":case"embed":case"img":case"keygen":case"wbr":rt(),k(s,u),l.pop(),_e=!1;return;case"input":rt(),H=k(s,u),l.pop();var Ge=H.getAttribute("type");(!Ge||Ge.toLowerCase()!=="hidden")&&(_e=!1);return;case"param":case"source":case"track":k(s,u),l.pop();return;case"hr":l.inButtonScope("p")&&O(U,"p"),ie(l.top,"menuitem")&&l.pop(),k(s,u),l.pop(),_e=!1;return;case"image":O(Je,"img",u,d);return;case"textarea":k(s,u),Gr=!0,_e=!1,f=_r,Jt=E,E=xa;return;case"xmp":l.inButtonScope("p")&&O(U,"p"),rt(),_e=!1,na(s,u);return;case"iframe":_e=!1,na(s,u);return;case"noembed":na(s,u);return;case"select":rt(),k(s,u),_e=!1,E===bt||E===es||E===Wr||E===ci||E===gn?E=ha:E=ir;return;case"optgroup":case"option":l.top instanceof ne.HTMLOptionElement&&O(U,"option"),rt(),k(s,u);return;case"menuitem":ie(l.top,"menuitem")&&l.pop(),rt(),k(s,u);return;case"rb":case"rtc":l.inScope("ruby")&&l.generateImpliedEndTags(),k(s,u);return;case"rp":case"rt":l.inScope("ruby")&&l.generateImpliedEndTags("rtc"),k(s,u);return;case"math":rt(),cm(u),ou(u),Go(s,u,R.MATHML),d&&l.pop();return;case"svg":rt(),sm(u),ou(u),Go(s,u,R.SVG),d&&l.pop();return;case"caption":case"col":case"colgroup":case"frame":case"head":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}rt(),k(s,u);return;case 3:switch(s){case"template":Ie(U,s,u);return;case"body":if(!l.inScope("body"))return;E=Ku;return;case"html":if(!l.inScope("body"))return;E=Ku,E(a,s,u);return;case"address":case"article":case"aside":case"blockquote":case"button":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"listing":case"main":case"menu":case"nav":case"ol":case"pre":case"section":case"summary":case"ul":if(!l.inScope(s))return;l.generateImpliedEndTags(),l.popTag(s);return;case"form":if(l.contains("template")){if(!l.inScope("form"))return;l.generateImpliedEndTags(),l.popTag("form")}else{var Et=tr;if(tr=null,!Et||!l.elementInScope(Et))return;l.generateImpliedEndTags(),l.removeElement(Et)}return;case"p":l.inButtonScope(s)?(l.generateImpliedEndTags(s),l.popTag(s)):(O(Je,s,null),E(a,s,u,d));return;case"li":if(!l.inListItemScope(s))return;l.generateImpliedEndTags(s),l.popTag(s);return;case"dd":case"dt":if(!l.inScope(s))return;l.generateImpliedEndTags(s),l.popTag(s);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":if(!l.elementTypeInScope(ne.HTMLHeadingElement))return;l.generateImpliedEndTags(),l.popElementType(ne.HTMLHeadingElement);return;case"sarcasm":break;case"a":case"b":case"big":case"code":case"em":case"font":case"i":case"nobr":case"s":case"small":case"strike":case"strong":case"tt":case"u":var Ct=Mh(s);if(Ct)return;break;case"applet":case"marquee":case"object":if(!l.inScope(s))return;l.generateImpliedEndTags(),l.popTag(s),F.clearToMarker();return;case"br":O(Je,s,null);return}for(S=l.elements.length-1;S>=0;S--)if(L=l.elements[S],ie(L,s)){l.generateImpliedEndTags(s),l.popElement(L);break}else if(ie(L,pn))return;return}}function xa(a,s,u,d){switch(a){case 1:Vt(s);return;case-1:l.top instanceof ne.HTMLScriptElement&&(l.top._already_started=!0),l.pop(),E=Jt,E(a);return;case 3:s==="script"?Fh():(l.pop(),E=Jt);return;default:return}}function bt(a,s,u,d){function b(L){for(var H=0,be=L.length;H<be;H++)if(L[H][0]==="type")return L[H][1].toLowerCase();return null}switch(a){case 1:if(Uo){O(a,s,u,d);return}else if(ie(l.top,Yn)){Zi=[],Jt=E,E=Sg,E(a,s,u,d);return}break;case 4:Gt(s);return;case 5:return;case 2:switch(s){case"caption":l.clearToContext(No),F.insertMarker(),k(s,u),E=es;return;case"colgroup":l.clearToContext(No),k(s,u),E=ma;return;case"col":bt(Je,"colgroup",null),E(a,s,u,d);return;case"tbody":case"tfoot":case"thead":l.clearToContext(No),k(s,u),E=Wr;return;case"td":case"th":case"tr":bt(Je,"tbody",null),E(a,s,u,d);return;case"table":if(!l.inTableScope(s))return;bt(U,s),E(a,s,u,d);return;case"style":case"script":case"template":Ie(a,s,u,d);return;case"input":var S=b(u);if(S!=="hidden")break;k(s,u),l.pop();return;case"form":if(tr||l.contains("template"))return;tr=k(s,u),l.popElement(tr);return}break;case 3:switch(s){case"table":if(!l.inTableScope(s))return;l.popTag(s),ai();return;case"body":case"caption":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return;case"template":Ie(a,s,u,d);return}break;case-1:O(a,s,u,d);return}Tr=!0,O(a,s,u,d),Tr=!1}function Sg(a,s,u,d){if(a===Qn){if(br&&(s=s.replace(vo,""),s.length===0))return;Zi.push(s)}else{var b=Zi.join("");Zi.length=0,So.test(b)?(Tr=!0,O(Qn,b),Tr=!1):Vt(b),E=Jt,E(a,s,u,d)}}function es(a,s,u,d){function b(){return l.inTableScope("caption")?(l.generateImpliedEndTags(),l.popTag("caption"),F.clearToMarker(),E=bt,!0):!1}switch(a){case 2:switch(s){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":b()&&E(a,s,u,d);return}break;case 3:switch(s){case"caption":b();return;case"table":b()&&E(a,s,u,d);return;case"body":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}break}O(a,s,u,d)}function ma(a,s,u,d){switch(a){case 1:var b=s.match(fn);if(b&&(Vt(b[0]),s=s.substring(b[0].length)),s.length===0)return;break;case 4:Gt(s);return;case 5:return;case 2:switch(s){case"html":O(a,s,u,d);return;case"col":k(s,u),l.pop();return;case"template":Ie(a,s,u,d);return}break;case 3:switch(s){case"colgroup":if(!ie(l.top,"colgroup"))return;l.pop(),E=bt;return;case"col":return;case"template":Ie(a,s,u,d);return}break;case-1:O(a,s,u,d);return}ie(l.top,"colgroup")&&(ma(U,"colgroup"),E(a,s,u,d))}function Wr(a,s,u,d){function b(){!l.inTableScope("tbody")&&!l.inTableScope("thead")&&!l.inTableScope("tfoot")||(l.clearToContext(Ao),Wr(U,l.top.localName,null),E(a,s,u,d))}switch(a){case 2:switch(s){case"tr":l.clearToContext(Ao),k(s,u),E=ci;return;case"th":case"td":Wr(Je,"tr",null),E(a,s,u,d);return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":b();return}break;case 3:switch(s){case"table":b();return;case"tbody":case"tfoot":case"thead":l.inTableScope(s)&&(l.clearToContext(Ao),l.pop(),E=bt);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":case"tr":return}break}bt(a,s,u,d)}function ci(a,s,u,d){function b(){return l.inTableScope("tr")?(l.clearToContext(cu),l.pop(),E=Wr,!0):!1}switch(a){case 2:switch(s){case"th":case"td":l.clearToContext(cu),k(s,u),E=gn,F.insertMarker();return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":case"tr":b()&&E(a,s,u,d);return}break;case 3:switch(s){case"tr":b();return;case"table":b()&&E(a,s,u,d);return;case"tbody":case"tfoot":case"thead":l.inTableScope(s)&&b()&&E(a,s,u,d);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":return}break}bt(a,s,u,d)}function gn(a,s,u,d){switch(a){case 2:switch(s){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":l.inTableScope("td")?(gn(U,"td"),E(a,s,u,d)):l.inTableScope("th")&&(gn(U,"th"),E(a,s,u,d));return}break;case 3:switch(s){case"td":case"th":if(!l.inTableScope(s))return;l.generateImpliedEndTags(),l.popTag(s),F.clearToMarker(),E=ci;return;case"body":case"caption":case"col":case"colgroup":case"html":return;case"table":case"tbody":case"tfoot":case"thead":case"tr":if(!l.inTableScope(s))return;gn(U,l.inTableScope("td")?"td":"th"),E(a,s,u,d);return}break}O(a,s,u,d)}function ir(a,s,u,d){switch(a){case 1:if(br&&(s=s.replace(vo,""),s.length===0))return;Vt(s);return;case 4:Gt(s);return;case 5:return;case-1:O(a,s,u,d);return;case 2:switch(s){case"html":O(a,s,u,d);return;case"option":l.top instanceof ne.HTMLOptionElement&&ir(U,s),k(s,u);return;case"optgroup":l.top instanceof ne.HTMLOptionElement&&ir(U,"option"),l.top instanceof ne.HTMLOptGroupElement&&ir(U,s),k(s,u);return;case"select":ir(U,s);return;case"input":case"keygen":case"textarea":if(!l.inSelectScope("select"))return;ir(U,"select"),E(a,s,u,d);return;case"script":case"template":Ie(a,s,u,d);return}break;case 3:switch(s){case"optgroup":l.top instanceof ne.HTMLOptionElement&&l.elements[l.elements.length-2]instanceof ne.HTMLOptGroupElement&&ir(U,"option"),l.top instanceof ne.HTMLOptGroupElement&&l.pop();return;case"option":l.top instanceof ne.HTMLOptionElement&&l.pop();return;case"select":if(!l.inSelectScope(s))return;l.popTag(s),ai();return;case"template":Ie(a,s,u,d);return}break}}function ha(a,s,u,d){switch(s){case"caption":case"table":case"tbody":case"tfoot":case"thead":case"tr":case"td":case"th":switch(a){case 2:ha(U,"select"),E(a,s,u,d);return;case 3:l.inTableScope(s)&&(ha(U,"select"),E(a,s,u,d));return}}ir(a,s,u,d)}function ts(a,s,u,d){function b(S){E=S,er[er.length-1]=E,E(a,s,u,d)}switch(a){case 1:case 4:case 5:O(a,s,u,d);return;case-1:l.contains("template")?(l.popTag("template"),F.clearToMarker(),er.pop(),ai(),E(a,s,u,d)):Vr();return;case 2:switch(s){case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":Ie(a,s,u,d);return;case"caption":case"colgroup":case"tbody":case"tfoot":case"thead":b(bt);return;case"col":b(ma);return;case"tr":b(Wr);return;case"td":case"th":b(ci);return}b(O);return;case 3:if(s==="template"){Ie(a,s,u,d);return}else return}}function Ku(a,s,u,d){switch(a){case 1:if(So.test(s))break;O(a,s);return;case 4:l.elements[0]._appendChild(X.createComment(s));return;case 5:return;case-1:Vr();return;case 2:if(s==="html"){O(a,s,u,d);return}break;case 3:if(s==="html"){if(jr)return;E=Ng;return}break}E=O,E(a,s,u,d)}function rs(a,s,u,d){switch(a){case 1:s=s.replace(au,""),s.length>0&&Vt(s);return;case 4:Gt(s);return;case 5:return;case-1:Vr();return;case 2:switch(s){case"html":O(a,s,u,d);return;case"frameset":k(s,u);return;case"frame":k(s,u),l.pop();return;case"noframes":Ie(a,s,u,d);return}break;case 3:if(s==="frameset"){if(jr&&l.top instanceof ne.HTMLHtmlElement)return;l.pop(),!jr&&!(l.top instanceof ne.HTMLFrameSetElement)&&(E=vg);return}break}}function vg(a,s,u,d){switch(a){case 1:s=s.replace(au,""),s.length>0&&Vt(s);return;case 4:Gt(s);return;case 5:return;case-1:Vr();return;case 2:switch(s){case"html":O(a,s,u,d);return;case"noframes":Ie(a,s,u,d);return}break;case 3:if(s==="html"){E=Ag;return}break}}function Ng(a,s,u,d){switch(a){case 1:if(So.test(s))break;O(a,s,u,d);return;case 4:X._appendChild(X.createComment(s));return;case 5:O(a,s,u,d);return;case-1:Vr();return;case 2:if(s==="html"){O(a,s,u,d);return}break}E=O,E(a,s,u,d)}function Ag(a,s,u,d){switch(a){case 1:s=s.replace(au,""),s.length>0&&O(a,s,u,d);return;case 4:X._appendChild(X.createComment(s));return;case 5:O(a,s,u,d);return;case-1:Vr();return;case 2:switch(s){case"html":O(a,s,u,d);return;case"noframes":Ie(a,s,u,d);return}break}}function $u(a,s,u,d){function b(be){for(var Ge=0,Et=be.length;Ge<Et;Ge++)switch(be[Ge][0]){case"color":case"face":case"size":return!0}return!1}var S;switch(a){case 1:_e&&Nw.test(s)&&(_e=!1),br&&(s=s.replace(vo,"\uFFFD")),Vt(s);return;case 4:Gt(s);return;case 5:return;case 2:switch(s){case"font":if(!b(u))break;case"b":case"big":case"blockquote":case"body":case"br":case"center":case"code":case"dd":case"div":case"dl":case"dt":case"em":case"embed":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"head":case"hr":case"i":case"img":case"li":case"listing":case"menu":case"meta":case"nobr":case"ol":case"p":case"pre":case"ruby":case"s":case"small":case"span":case"strong":case"strike":case"sub":case"sup":case"table":case"tt":case"u":case"ul":case"var":if(jr)break;do l.pop(),S=l.top;while(S.namespaceURI!==R.HTML&&!am(S)&&!om(S));Ae(a,s,u,d);return}S=l.elements.length===1&&jr?t:l.top,S.namespaceURI===R.MATHML?cm(u):S.namespaceURI===R.SVG&&(s=Cw(s),sm(u)),ou(u),Go(s,u,S.namespaceURI),d&&(s==="script"&&(S.namespaceURI,R.SVG),l.pop());return;case 3:if(S=l.top,s==="script"&&S.namespaceURI===R.SVG&&S.localName==="script")l.pop();else for(var L=l.elements.length-1,H=l.elements[L];;){if(H.localName.toLowerCase()===s){l.popElement(H);break}if(H=l.elements[--L],H.namespaceURI===R.HTML){E(a,s,u,d);break}}return}}return Ji.testTokenizer=function(a,s,u,d){var b=[];switch(s){case"PCDATA state":f=q;break;case"RCDATA state":f=_r;break;case"RAWTEXT state":f=oi;break;case"PLAINTEXT state":f=Ko;break}if(u&&(xr=u),Ae=function(L,H,be,Ge){switch(hn(),L){case 1:b.length>0&&b[b.length-1][0]==="Character"?b[b.length-1][1]+=H:b.push(["Character",H]);break;case 4:b.push(["Comment",H]);break;case 5:b.push(["DOCTYPE",H,be===void 0?null:be,Ge===void 0?null:Ge,!Ho]);break;case 2:for(var Et=Object.create(null),Ct=0;Ct<be.length;Ct++){var zr=be[Ct];zr.length===1?Et[zr[0]]="":Et[zr[0]]=zr[1]}var Nr=["StartTag",H,Et];Ge&&Nr.push(!0),b.push(Nr);break;case 3:b.push(["EndTag",H]);break;case-1:break}},!d)this.parse(a,!0);else{for(var S=0;S<a.length;S++)this.parse(a[S]);this.parse("",!0)}return b},Ji}});var Vi=C((r5,_m)=>{"use strict";_m.exports=Tm;var Em=To(),ym=Io(),Rw=Ro(),Oo=ve(),Ow=no();function Tm(e){this.contextObject=e}var Lw={xml:{"":!0,"1.0":!0,"2.0":!0},core:{"":!0,"2.0":!0},html:{"":!0,"1.0":!0,"2.0":!0},xhtml:{"":!0,"1.0":!0,"2.0":!0}};Tm.prototype={hasFeature:function(t,r){var n=Lw[(t||"").toLowerCase()];return n&&n[r||""]||!1},createDocumentType:function(t,r,n){return Ow.isValidQName(t)||Oo.InvalidCharacterError(),new ym(this.contextObject,t,r,n)},createDocument:function(t,r,n){var i=new Em(!1,null),o;return r?o=i.createElementNS(t,r):o=null,n&&i.appendChild(n),o&&i.appendChild(o),t===Oo.NAMESPACE.HTML?i._contentType="application/xhtml+xml":t===Oo.NAMESPACE.SVG?i._contentType="image/svg+xml":i._contentType="application/xml",i},createHTMLDocument:function(t){var r=new Em(!0,null);r.appendChild(new ym(r,"html"));var n=r.createElement("html");r.appendChild(n);var i=r.createElement("head");if(n.appendChild(i),t!==void 0){var o=r.createElement("title");i.appendChild(o),o.appendChild(r.createTextNode(t))}return n.appendChild(r.createElement("body")),r.modclock=1,r},mozSetOutputMutationHandler:function(e,t){e.mutationHandler=t},mozGetInputMutationHandler:function(e){Oo.nyi()},mozHTMLParser:Rw}});var wm=C((n5,Im)=>{"use strict";var Dw=xo(),kw=Qc();Im.exports=lu;function lu(e,t){this._window=e,this._href=t}lu.prototype=Object.create(kw.prototype,{constructor:{value:lu},href:{get:function(){return this._href},set:function(e){this.assign(e)}},assign:{value:function(e){var t=new Dw(this._href),r=t.resolve(e);this._href=r}},replace:{value:function(e){this.assign(e)}},reload:{value:function(){this.assign(this.href)}},toString:{value:function(){return this.href}}})});var vm=C((i5,Sm)=>{"use strict";var Mw=Object.create(null,{appCodeName:{value:"Mozilla"},appName:{value:"Netscape"},appVersion:{value:"4.0"},platform:{value:""},product:{value:"Gecko"},productSub:{value:"20100101"},userAgent:{value:""},vendor:{value:""},vendorSub:{value:""},taintEnabled:{value:function(){return!1}}});Sm.exports=Mw});var Am=C((a5,Nm)=>{"use strict";var Fw={setTimeout,clearTimeout,setInterval,clearInterval};Nm.exports=Fw});var pu=C((Ki,Cm)=>{"use strict";var fu=ve();Ki=Cm.exports={CSSStyleDeclaration:mo(),CharacterData:Mi(),Comment:Fc(),DOMException:Za(),DOMImplementation:Vi(),DOMTokenList:Ec(),Document:To(),DocumentFragment:qc(),DocumentType:Io(),Element:Gn(),HTMLParser:Ro(),NamedNodeMap:Sc(),Node:Ke(),NodeList:cn(),NodeFilter:Hi(),ProcessingInstruction:Uc(),Text:kc(),Window:du()};fu.merge(Ki,Xc());fu.merge(Ki,bo().elements);fu.merge(Ki,tu().elements)});var du=C((o5,Rm)=>{"use strict";var Pw=Vi(),qw=tc(),Hw=wm(),$i=ve();Rm.exports=Lo;function Lo(e){this.document=e||new Pw(null).createHTMLDocument(""),this.document._scripting_enabled=!0,this.document.defaultView=this,this.location=new Hw(this,this.document._address||"about:blank")}Lo.prototype=Object.create(qw.prototype,{console:{value:console},history:{value:{back:$i.nyi,forward:$i.nyi,go:$i.nyi}},navigator:{value:vm()},window:{get:function(){return this}},self:{get:function(){return this}},frames:{get:function(){return this}},parent:{get:function(){return this}},top:{get:function(){return this}},length:{value:0},frameElement:{value:null},opener:{value:null},onload:{get:function(){return this._getEventHandler("load")},set:function(e){this._setEventHandler("load",e)}},getComputedStyle:{value:function(t){return t.style}}});$i.expose(Am(),Lo);$i.expose(pu(),Lo)});var km=C(dn=>{"use strict";var Om=Vi(),Lm=Ro(),s5=du(),Dm=pu();dn.createDOMImplementation=function(){return new Om(null)};dn.createDocument=function(e,t){if(e||t){var r=new Lm;return r.parse(e||"",!0),r.document()}return new Om(null).createHTMLDocument("")};dn.createIncrementalHTMLParser=function(){var e=new Lm;return{write:function(t){t.length>0&&e.parse(t,!1,function(){return!0})},end:function(t){e.parse(t||"",!0,function(){return!0})},process:function(t){return e.parse("",!1,t)},document:function(){return e.document()}}};dn.createWindow=function(e,t){var r=dn.createDocument(e);return t!==void 0&&(r._address=t),new Dm.Window(r)};dn.impl=Dm});var Qm=C((u5,Xm)=>{"use strict";function Uw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}function gu(e,t){return Array(t+1).join(e)}function Pm(e){return e.replace(/^\n*/,"")}function qm(e){for(var t=e.length;t>0&&e[t-1]===`
|
|
13
|
+
`;)t--;return e.substring(0,t)}function Hm(e){return qm(Pm(e))}var Bw=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function bu(e){return Eu(e,Bw)}var Um=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function Bm(e){return Eu(e,Um)}function jw(e){return Gm(e,Um)}var jm=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function Gw(e){return Eu(e,jm)}function Vw(e){return Gm(e,jm)}function Eu(e,t){return t.indexOf(e.nodeName)>=0}function Gm(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var Kw=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Vm(e){return Kw.reduce(function(t,r){return t.replace(r[0],r[1])},e)}var tt={};tt.paragraph={filter:"p",replacement:function(e){return`
|
|
14
|
+
|
|
15
|
+
`+e+`
|
|
16
|
+
|
|
17
|
+
`}};tt.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+`
|
|
18
|
+
`}};tt.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var i=gu(n===1?"=":"-",e.length);return`
|
|
19
|
+
|
|
20
|
+
`+e+`
|
|
21
|
+
`+i+`
|
|
22
|
+
|
|
23
|
+
`}else return`
|
|
24
|
+
|
|
25
|
+
`+gu("#",n)+" "+e+`
|
|
26
|
+
|
|
27
|
+
`}};tt.blockquote={filter:"blockquote",replacement:function(e){return e=Hm(e).replace(/^/gm,"> "),`
|
|
28
|
+
|
|
29
|
+
`+e+`
|
|
30
|
+
|
|
31
|
+
`}};tt.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
|
|
32
|
+
`+e:`
|
|
33
|
+
|
|
34
|
+
`+e+`
|
|
35
|
+
|
|
36
|
+
`}};tt.listItem={filter:"li",replacement:function(e,t,r){var n=r.bulletListMarker+" ",i=t.parentNode;if(i.nodeName==="OL"){var o=i.getAttribute("start"),c=Array.prototype.indexOf.call(i.children,t);n=(o?Number(o)+c:c+1)+". "}var x=/\n$/.test(e);return e=Hm(e)+(x?`
|
|
37
|
+
`:""),e=e.replace(/\n/gm,`
|
|
38
|
+
`+" ".repeat(n.length)),n+e+(t.nextSibling?`
|
|
39
|
+
`:"")}};tt.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return`
|
|
40
|
+
|
|
41
|
+
`+t.firstChild.textContent.replace(/\n/g,`
|
|
42
|
+
`)+`
|
|
43
|
+
|
|
44
|
+
`}};tt.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",i=(n.match(/language-(\S+)/)||[null,""])[1],o=t.firstChild.textContent,c=r.fence.charAt(0),x=3,m=new RegExp("^"+c+"{3,}","gm"),T;T=m.exec(o);)T[0].length>=x&&(x=T[0].length+1);var w=gu(c,x);return`
|
|
45
|
+
|
|
46
|
+
`+w+i+`
|
|
47
|
+
`+o.replace(/\n$/,"")+`
|
|
48
|
+
`+w+`
|
|
49
|
+
|
|
50
|
+
`}};tt.horizontalRule={filter:"hr",replacement:function(e,t,r){return`
|
|
51
|
+
|
|
52
|
+
`+r.hr+`
|
|
53
|
+
|
|
54
|
+
`}};tt.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=yu(t.getAttribute("href")),n=Tu(Do(t.getAttribute("title"))),i=n?' "'+n+'"':"";return"["+e+"]("+r+i+")"}};tt.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=yu(t.getAttribute("href")),i=Do(t.getAttribute("title"));i&&(i=' "'+Tu(i)+'"');var o,c;switch(r.linkReferenceStyle){case"collapsed":o="["+e+"][]",c="["+e+"]: "+n+i;break;case"shortcut":o="["+e+"]",c="["+e+"]: "+n+i;break;default:var x=this.references.length+1;o="["+e+"]["+x+"]",c="["+x+"]: "+n+i}return this.references.push(c),o},references:[],append:function(e){var t="";return this.references.length&&(t=`
|
|
55
|
+
|
|
56
|
+
`+this.references.join(`
|
|
57
|
+
`)+`
|
|
58
|
+
|
|
59
|
+
`,this.references=[]),t}};tt.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}};tt.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}};tt.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}};tt.image={filter:"img",replacement:function(e,t){var r=Vm(Do(t.getAttribute("alt"))),n=yu(t.getAttribute("src")||""),i=Do(t.getAttribute("title")),o=i?' "'+Tu(i)+'"':"";return n?"":""}};function Do(e){return e?e.replace(/(\n+\s*)+/g,`
|
|
60
|
+
`):""}function yu(e){var t=e.replace(/([<>()])/g,"\\$1");return t.indexOf(" ")>=0?"<"+t+">":t}function Tu(e){return e.replace(/"/g,'\\"')}function Km(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}Km.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=xu(this.array,e,this.options))||(t=xu(this._keep,e,this.options))||(t=xu(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function xu(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if($w(i,t,r))return i}}function $w(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function Ww(e){var t=e.element,r=e.isBlock,n=e.isVoid,i=e.isPre||function(ue){return ue.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var o=null,c=!1,x=null,m=Mm(x,t,i);m!==t;){if(m.nodeType===3||m.nodeType===4){var T=m.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!c&&T[0]===" "&&(T=T.substr(1)),!T){m=mu(m);continue}m.data=T,o=m}else if(m.nodeType===1)r(m)||m.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,c=!1):n(m)||i(m)?(o=null,c=!0):o&&(c=!1);else{m=mu(m);continue}var w=Mm(x,m,i);x=m,m=w}o&&(o.data=o.data.replace(/ $/,""),o.data||mu(o))}}function mu(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function Mm(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var $m=typeof window<"u"?window:{};function zw(){var e=$m.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function Xw(){var e=function(){};{var t=km();e.prototype.parseFromString=function(r){return t.createDocument(r)}}return e}var Qw=zw()?$m.DOMParser:Xw();function Yw(e,t){var r;if(typeof e=="string"){var n=Zw().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return Ww({element:r,isBlock:bu,isVoid:Bm,isPre:t.preformattedCode?Jw:null}),r}var hu;function Zw(){return hu=hu||new Qw,hu}function Jw(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function eS(e,t){return e.isBlock=bu(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=tS(e),e.flankingWhitespace=rS(e,t),e}function tS(e){return!Bm(e)&&!Gw(e)&&/^\s*$/i.test(e.textContent)&&!jw(e)&&!Vw(e)}function rS(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=nS(e.textContent);return r.leadingAscii&&Fm("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&Fm("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function nS(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function Fm(e,t,r){var n,i,o;return e==="left"?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(n.nodeType===3?o=i.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?o=!1:n.nodeType===1&&!bu(n)&&(o=i.test(n.textContent))),o}var iS=Array.prototype.reduce;function ko(e){if(!(this instanceof ko))return new ko(e);var t={rules:tt,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
|
|
61
|
+
|
|
62
|
+
`:""},keepReplacement:function(r,n){return n.isBlock?`
|
|
63
|
+
|
|
64
|
+
`+n.outerHTML+`
|
|
65
|
+
|
|
66
|
+
`:n.outerHTML},defaultReplacement:function(r,n){return n.isBlock?`
|
|
67
|
+
|
|
68
|
+
`+r+`
|
|
69
|
+
|
|
70
|
+
`:r}};this.options=Uw({},t,e),this.rules=new Km(this.options)}ko.prototype={turndown:function(e){if(!sS(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=Wm.call(this,new Yw(e,this.options));return aS.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return Vm(e)}};function Wm(e){var t=this;return iS.call(e.childNodes,function(r,n){n=new eS(n,t.options);var i="";return n.nodeType===3?i=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(i=oS.call(t,n)),zm(r,i)},"")}function aS(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=zm(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function oS(e){var t=this.rules.forNode(e),r=Wm.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function zm(e,t){var r=qm(e),n=Pm(t),i=Math.max(e.length-r.length,t.length-n.length),o=`
|
|
71
|
+
|
|
72
|
+
`.substring(0,i);return r+o+n}function sS(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}Xm.exports=ko});var nh=C(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});var Ym=/highlight-(?:text|source)-([a-z0-9]+)/;function Zm(e){e.addRule("highlightedCodeBlock",{filter:function(t){var r=t.firstChild;return t.nodeName==="DIV"&&Ym.test(t.className)&&r&&r.nodeName==="PRE"},replacement:function(t,r,n){var i=r.className||"",o=(i.match(Ym)||[null,""])[1];return`
|
|
73
|
+
|
|
74
|
+
`+n.fence+o+`
|
|
75
|
+
`+r.firstChild.textContent+`
|
|
76
|
+
`+n.fence+`
|
|
77
|
+
|
|
78
|
+
`}})}function Jm(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var cS=Array.prototype.indexOf,uS=Array.prototype.every,Zn={};Zn.tableCell={filter:["th","td"],replacement:function(e,t){return eh(e,t)}};Zn.tableRow={filter:"tr",replacement:function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(_u(t))for(var i=0;i<t.childNodes.length;i++){var o="---",c=(t.childNodes[i].getAttribute("align")||"").toLowerCase();c&&(o=n[c]||o),r+=eh(o,t.childNodes[i])}return`
|
|
79
|
+
`+e+(r?`
|
|
80
|
+
`+r:"")}};Zn.table={filter:function(e){return e.nodeName==="TABLE"&&_u(e.rows[0])},replacement:function(e){return e=e.replace(`
|
|
81
|
+
|
|
82
|
+
`,`
|
|
83
|
+
`),`
|
|
84
|
+
|
|
85
|
+
`+e+`
|
|
86
|
+
|
|
87
|
+
`}};Zn.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function _u(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||lS(t))&&uS.call(e.childNodes,function(r){return r.nodeName==="TH"})}function lS(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function eh(e,t){var r=cS.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function th(e){e.keep(function(r){return r.nodeName==="TABLE"&&!_u(r.rows[0])});for(var t in Zn)e.addRule(t,Zn[t])}function rh(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function fS(e){e.use([Zm,Jm,th,rh])}xn.gfm=fS;xn.highlightedCodeBlock=Zm;xn.strikethrough=Jm;xn.tables=th;xn.taskListItems=rh});var ze={};ns(ze,{HasPropertyKey:()=>ya,IsArray:()=>Ce,IsAsyncIterator:()=>cs,IsBigInt:()=>li,IsBoolean:()=>ar,IsDate:()=>Xr,IsFunction:()=>us,IsIterator:()=>ls,IsNull:()=>fs,IsNumber:()=>ut,IsObject:()=>ae,IsRegExp:()=>fi,IsString:()=>fe,IsSymbol:()=>ps,IsUint8Array:()=>or,IsUndefined:()=>Re});function ya(e,t){return t in e}function cs(e){return ae(e)&&!Ce(e)&&!or(e)&&Symbol.asyncIterator in e}function Ce(e){return Array.isArray(e)}function li(e){return typeof e=="bigint"}function ar(e){return typeof e=="boolean"}function Xr(e){return e instanceof globalThis.Date}function us(e){return typeof e=="function"}function ls(e){return ae(e)&&!Ce(e)&&!or(e)&&Symbol.iterator in e}function fs(e){return e===null}function ut(e){return typeof e=="number"}function ae(e){return typeof e=="object"&&e!==null}function fi(e){return e instanceof globalThis.RegExp}function fe(e){return typeof e=="string"}function ps(e){return typeof e=="symbol"}function or(e){return e instanceof globalThis.Uint8Array}function Re(e){return e===void 0}function Og(e){return e.map(t=>Ta(t))}function Lg(e){return new Date(e.getTime())}function Dg(e){return new Uint8Array(e)}function kg(e){return new RegExp(e.source,e.flags)}function Mg(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=Ta(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=Ta(e[r]);return t}function Ta(e){return Ce(e)?Og(e):Xr(e)?Lg(e):or(e)?Dg(e):fi(e)?kg(e):ae(e)?Mg(e):e}function me(e){return Ta(e)}function bn(e,t){return t===void 0?me(e):me({...t,...e})}function Ml(e){return e!==null&&typeof e=="object"}function Fl(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function Pl(e){return e===void 0}function ql(e){return typeof e=="number"}var _a;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(c,x){return e.ExactOptionalPropertyTypes?x in c:c[x]!==void 0}e.IsExactOptionalProperty=t;function r(c){let x=Ml(c);return e.AllowArrayObject?x:x&&!Fl(c)}e.IsObjectLike=r;function n(c){return r(c)&&!(c instanceof Date)&&!(c instanceof Uint8Array)}e.IsRecordLike=n;function i(c){return e.AllowNaN?ql(c):Number.isFinite(c)}e.IsNumberLike=i;function o(c){let x=Pl(c);return e.AllowNullVoid?x||c===null:x}e.IsVoidLike=o})(_a||(_a={}));function Fg(e){return globalThis.Object.freeze(e).map(t=>pi(t))}function Pg(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=pi(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=pi(e[r]);return globalThis.Object.freeze(t)}function pi(e){return Ce(e)?Fg(e):Xr(e)?e:or(e)?e:fi(e)?e:ae(e)?Pg(e):e}function h(e,t){let r=t!==void 0?{...t,...e}:e;switch(_a.InstanceMode){case"freeze":return pi(r);case"clone":return me(r);default:return r}}var qe=class extends Error{constructor(t){super(t)}};var ke=Symbol.for("TypeBox.Transform"),Rt=Symbol.for("TypeBox.Readonly"),Ve=Symbol.for("TypeBox.Optional"),yt=Symbol.for("TypeBox.Hint"),y=Symbol.for("TypeBox.Kind");function En(e){return ae(e)&&e[Rt]==="Readonly"}function nt(e){return ae(e)&&e[Ve]==="Optional"}function ds(e){return j(e,"Any")}function xs(e){return j(e,"Argument")}function Ot(e){return j(e,"Array")}function Qr(e){return j(e,"AsyncIterator")}function Yr(e){return j(e,"BigInt")}function sr(e){return j(e,"Boolean")}function Lt(e){return j(e,"Computed")}function Dt(e){return j(e,"Constructor")}function qg(e){return j(e,"Date")}function kt(e){return j(e,"Function")}function Mt(e){return j(e,"Integer")}function Ee(e){return j(e,"Intersect")}function Zr(e){return j(e,"Iterator")}function j(e,t){return ae(e)&&y in e&&e[y]===t}function Ia(e){return ar(e)||ut(e)||fe(e)}function lt(e){return j(e,"Literal")}function ft(e){return j(e,"MappedKey")}function he(e){return j(e,"MappedResult")}function Ar(e){return j(e,"Never")}function Hg(e){return j(e,"Not")}function di(e){return j(e,"Null")}function Ft(e){return j(e,"Number")}function Oe(e){return j(e,"Object")}function Jr(e){return j(e,"Promise")}function en(e){return j(e,"Record")}function we(e){return j(e,"Ref")}function ms(e){return j(e,"RegExp")}function cr(e){return j(e,"String")}function xi(e){return j(e,"Symbol")}function pt(e){return j(e,"TemplateLiteral")}function Ug(e){return j(e,"This")}function Cr(e){return ae(e)&&ke in e}function dt(e){return j(e,"Tuple")}function mi(e){return j(e,"Undefined")}function G(e){return j(e,"Union")}function Bg(e){return j(e,"Uint8Array")}function jg(e){return j(e,"Unknown")}function Gg(e){return j(e,"Unsafe")}function Vg(e){return j(e,"Void")}function Kg(e){return ae(e)&&y in e&&fe(e[y])}function xt(e){return ds(e)||xs(e)||Ot(e)||sr(e)||Yr(e)||Qr(e)||Lt(e)||Dt(e)||qg(e)||kt(e)||Mt(e)||Ee(e)||Zr(e)||lt(e)||ft(e)||he(e)||Ar(e)||Hg(e)||di(e)||Ft(e)||Oe(e)||Jr(e)||en(e)||we(e)||ms(e)||cr(e)||xi(e)||pt(e)||Ug(e)||dt(e)||mi(e)||G(e)||Bg(e)||jg(e)||Gg(e)||Vg(e)||Kg(e)}var p={};ns(p,{IsAny:()=>jl,IsArgument:()=>Gl,IsArray:()=>Vl,IsAsyncIterator:()=>Kl,IsBigInt:()=>$l,IsBoolean:()=>Wl,IsComputed:()=>zl,IsConstructor:()=>Xl,IsDate:()=>Ql,IsFunction:()=>Yl,IsImport:()=>Yg,IsInteger:()=>Zl,IsIntersect:()=>Jl,IsIterator:()=>e0,IsKind:()=>v0,IsKindOf:()=>P,IsLiteral:()=>gi,IsLiteralBoolean:()=>Zg,IsLiteralNumber:()=>r0,IsLiteralString:()=>t0,IsLiteralValue:()=>n0,IsMappedKey:()=>i0,IsMappedResult:()=>a0,IsNever:()=>o0,IsNot:()=>s0,IsNull:()=>c0,IsNumber:()=>u0,IsObject:()=>l0,IsOptional:()=>Qg,IsPromise:()=>f0,IsProperties:()=>wa,IsReadonly:()=>Xg,IsRecord:()=>p0,IsRecursive:()=>Jg,IsRef:()=>d0,IsRegExp:()=>x0,IsSchema:()=>He,IsString:()=>m0,IsSymbol:()=>h0,IsTemplateLiteral:()=>g0,IsThis:()=>b0,IsTransform:()=>E0,IsTuple:()=>y0,IsUint8Array:()=>_0,IsUndefined:()=>T0,IsUnion:()=>Es,IsUnionLiteral:()=>e2,IsUnknown:()=>I0,IsUnsafe:()=>w0,IsVoid:()=>S0,TypeGuardUnknownTypeError:()=>hs});var hs=class extends qe{},$g=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function Hl(e){try{return new RegExp(e),!0}catch{return!1}}function gs(e){if(!fe(e))return!1;for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r>=7&&r<=13||r===27||r===127)return!1}return!0}function Ul(e){return bs(e)||He(e)}function hi(e){return Re(e)||li(e)}function pe(e){return Re(e)||ut(e)}function bs(e){return Re(e)||ar(e)}function oe(e){return Re(e)||fe(e)}function Wg(e){return Re(e)||fe(e)&&gs(e)&&Hl(e)}function zg(e){return Re(e)||fe(e)&&gs(e)}function Bl(e){return Re(e)||He(e)}function Xg(e){return ae(e)&&e[Rt]==="Readonly"}function Qg(e){return ae(e)&&e[Ve]==="Optional"}function jl(e){return P(e,"Any")&&oe(e.$id)}function Gl(e){return P(e,"Argument")&&ut(e.index)}function Vl(e){return P(e,"Array")&&e.type==="array"&&oe(e.$id)&&He(e.items)&&pe(e.minItems)&&pe(e.maxItems)&&bs(e.uniqueItems)&&Bl(e.contains)&&pe(e.minContains)&&pe(e.maxContains)}function Kl(e){return P(e,"AsyncIterator")&&e.type==="AsyncIterator"&&oe(e.$id)&&He(e.items)}function $l(e){return P(e,"BigInt")&&e.type==="bigint"&&oe(e.$id)&&hi(e.exclusiveMaximum)&&hi(e.exclusiveMinimum)&&hi(e.maximum)&&hi(e.minimum)&&hi(e.multipleOf)}function Wl(e){return P(e,"Boolean")&&e.type==="boolean"&&oe(e.$id)}function zl(e){return P(e,"Computed")&&fe(e.target)&&Ce(e.parameters)&&e.parameters.every(t=>He(t))}function Xl(e){return P(e,"Constructor")&&e.type==="Constructor"&&oe(e.$id)&&Ce(e.parameters)&&e.parameters.every(t=>He(t))&&He(e.returns)}function Ql(e){return P(e,"Date")&&e.type==="Date"&&oe(e.$id)&&pe(e.exclusiveMaximumTimestamp)&&pe(e.exclusiveMinimumTimestamp)&&pe(e.maximumTimestamp)&&pe(e.minimumTimestamp)&&pe(e.multipleOfTimestamp)}function Yl(e){return P(e,"Function")&&e.type==="Function"&&oe(e.$id)&&Ce(e.parameters)&&e.parameters.every(t=>He(t))&&He(e.returns)}function Yg(e){return P(e,"Import")&&ya(e,"$defs")&&ae(e.$defs)&&wa(e.$defs)&&ya(e,"$ref")&&fe(e.$ref)&&e.$ref in e.$defs}function Zl(e){return P(e,"Integer")&&e.type==="integer"&&oe(e.$id)&&pe(e.exclusiveMaximum)&&pe(e.exclusiveMinimum)&&pe(e.maximum)&&pe(e.minimum)&&pe(e.multipleOf)}function wa(e){return ae(e)&&Object.entries(e).every(([t,r])=>gs(t)&&He(r))}function Jl(e){return P(e,"Intersect")&&!(fe(e.type)&&e.type!=="object")&&Ce(e.allOf)&&e.allOf.every(t=>He(t)&&!E0(t))&&oe(e.type)&&(bs(e.unevaluatedProperties)||Bl(e.unevaluatedProperties))&&oe(e.$id)}function e0(e){return P(e,"Iterator")&&e.type==="Iterator"&&oe(e.$id)&&He(e.items)}function P(e,t){return ae(e)&&y in e&&e[y]===t}function t0(e){return gi(e)&&fe(e.const)}function r0(e){return gi(e)&&ut(e.const)}function Zg(e){return gi(e)&&ar(e.const)}function gi(e){return P(e,"Literal")&&oe(e.$id)&&n0(e.const)}function n0(e){return ar(e)||ut(e)||fe(e)}function i0(e){return P(e,"MappedKey")&&Ce(e.keys)&&e.keys.every(t=>ut(t)||fe(t))}function a0(e){return P(e,"MappedResult")&&wa(e.properties)}function o0(e){return P(e,"Never")&&ae(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function s0(e){return P(e,"Not")&&He(e.not)}function c0(e){return P(e,"Null")&&e.type==="null"&&oe(e.$id)}function u0(e){return P(e,"Number")&&e.type==="number"&&oe(e.$id)&&pe(e.exclusiveMaximum)&&pe(e.exclusiveMinimum)&&pe(e.maximum)&&pe(e.minimum)&&pe(e.multipleOf)}function l0(e){return P(e,"Object")&&e.type==="object"&&oe(e.$id)&&wa(e.properties)&&Ul(e.additionalProperties)&&pe(e.minProperties)&&pe(e.maxProperties)}function f0(e){return P(e,"Promise")&&e.type==="Promise"&&oe(e.$id)&&He(e.item)}function p0(e){return P(e,"Record")&&e.type==="object"&&oe(e.$id)&&Ul(e.additionalProperties)&&ae(e.patternProperties)&&(t=>{let r=Object.getOwnPropertyNames(t.patternProperties);return r.length===1&&Hl(r[0])&&ae(t.patternProperties)&&He(t.patternProperties[r[0]])})(e)}function Jg(e){return ae(e)&&yt in e&&e[yt]==="Recursive"}function d0(e){return P(e,"Ref")&&oe(e.$id)&&fe(e.$ref)}function x0(e){return P(e,"RegExp")&&oe(e.$id)&&fe(e.source)&&fe(e.flags)&&pe(e.maxLength)&&pe(e.minLength)}function m0(e){return P(e,"String")&&e.type==="string"&&oe(e.$id)&&pe(e.minLength)&&pe(e.maxLength)&&Wg(e.pattern)&&zg(e.format)}function h0(e){return P(e,"Symbol")&&e.type==="symbol"&&oe(e.$id)}function g0(e){return P(e,"TemplateLiteral")&&e.type==="string"&&fe(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function b0(e){return P(e,"This")&&oe(e.$id)&&fe(e.$ref)}function E0(e){return ae(e)&&ke in e}function y0(e){return P(e,"Tuple")&&e.type==="array"&&oe(e.$id)&&ut(e.minItems)&&ut(e.maxItems)&&e.minItems===e.maxItems&&(Re(e.items)&&Re(e.additionalItems)&&e.minItems===0||Ce(e.items)&&e.items.every(t=>He(t)))}function T0(e){return P(e,"Undefined")&&e.type==="undefined"&&oe(e.$id)}function e2(e){return Es(e)&&e.anyOf.every(t=>t0(t)||r0(t))}function Es(e){return P(e,"Union")&&oe(e.$id)&&ae(e)&&Ce(e.anyOf)&&e.anyOf.every(t=>He(t))}function _0(e){return P(e,"Uint8Array")&&e.type==="Uint8Array"&&oe(e.$id)&&pe(e.minByteLength)&&pe(e.maxByteLength)}function I0(e){return P(e,"Unknown")&&oe(e.$id)}function w0(e){return P(e,"Unsafe")}function S0(e){return P(e,"Void")&&e.type==="void"&&oe(e.$id)}function v0(e){return ae(e)&&y in e&&fe(e[y])&&!$g.includes(e[y])}function He(e){return ae(e)&&(jl(e)||Gl(e)||Vl(e)||Wl(e)||$l(e)||Kl(e)||zl(e)||Xl(e)||Ql(e)||Yl(e)||Zl(e)||Jl(e)||e0(e)||gi(e)||i0(e)||a0(e)||o0(e)||s0(e)||c0(e)||u0(e)||l0(e)||f0(e)||p0(e)||d0(e)||x0(e)||m0(e)||h0(e)||g0(e)||b0(e)||y0(e)||T0(e)||Es(e)||_0(e)||I0(e)||w0(e)||S0(e)||v0(e))}var ys="(true|false)",bi="(0|[1-9][0-9]*)",Ts="(.*)",t2="(?!.*)",tN=`^${ys}$`,Rr=`^${bi}$`,Or=`^${Ts}$`,N0=`^${t2}$`;function A0(e,t){return e.includes(t)}function C0(e){return[...new Set(e)]}function r2(e,t){return e.filter(r=>t.includes(r))}function n2(e,t){return e.reduce((r,n)=>r2(r,n),t)}function R0(e){return e.length===1?e[0]:e.length>1?n2(e.slice(1),e[0]):[]}function O0(e){let t=[];for(let r of e)t.push(...r);return t}function Lr(e){return h({[y]:"Any"},e)}function yn(e,t){return h({[y]:"Array",type:"array",items:e},t)}function L0(e){return h({[y]:"Argument",index:e})}function Tn(e,t){return h({[y]:"AsyncIterator",type:"AsyncIterator",items:e},t)}function xe(e,t,r){return h({[y]:"Computed",target:e,parameters:t},r)}function i2(e,t){let{[t]:r,...n}=e;return n}function ye(e,t){return t.reduce((r,n)=>i2(r,n),e)}function V(e){return h({[y]:"Never",not:{}},e)}function K(e){return h({[y]:"MappedResult",properties:e})}function _n(e,t,r){return h({[y]:"Constructor",type:"Constructor",parameters:e,returns:t},r)}function Wt(e,t,r){return h({[y]:"Function",type:"Function",parameters:e,returns:t},r)}function Ei(e,t){return h({[y]:"Union",anyOf:e},t)}function a2(e){return e.some(t=>nt(t))}function D0(e){return e.map(t=>nt(t)?o2(t):t)}function o2(e){return ye(e,[Ve])}function s2(e,t){return a2(e)?Xe(Ei(D0(e),t)):Ei(D0(e),t)}function zt(e,t){return e.length===1?h(e[0],t):e.length===0?V(t):s2(e,t)}function ee(e,t){return e.length===0?V(t):e.length===1?h(e[0],t):Ei(e,t)}var Sa=class extends qe{};function c2(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function _s(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function lr(e,t){return _s(e,t,"(")}function yi(e,t){return _s(e,t,")")}function k0(e,t){return _s(e,t,"|")}function u2(e){if(!(lr(e,0)&&yi(e,e.length-1)))return!1;let t=0;for(let r=0;r<e.length;r++)if(lr(e,r)&&(t+=1),yi(e,r)&&(t-=1),t===0&&r!==e.length-1)return!1;return!0}function l2(e){return e.slice(1,e.length-1)}function f2(e){let t=0;for(let r=0;r<e.length;r++)if(lr(e,r)&&(t+=1),yi(e,r)&&(t-=1),k0(e,r)&&t===0)return!0;return!1}function p2(e){for(let t=0;t<e.length;t++)if(lr(e,t))return!0;return!1}function d2(e){let[t,r]=[0,0],n=[];for(let o=0;o<e.length;o++)if(lr(e,o)&&(t+=1),yi(e,o)&&(t-=1),k0(e,o)&&t===0){let c=e.slice(r,o);c.length>0&&n.push(In(c)),r=o+1}let i=e.slice(r);return i.length>0&&n.push(In(i)),n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"or",expr:n}}function x2(e){function t(i,o){if(!lr(i,o))throw new Sa("TemplateLiteralParser: Index must point to open parens");let c=0;for(let x=o;x<i.length;x++)if(lr(i,x)&&(c+=1),yi(i,x)&&(c-=1),c===0)return[o,x];throw new Sa("TemplateLiteralParser: Unclosed group parens in expression")}function r(i,o){for(let c=o;c<i.length;c++)if(lr(i,c))return[o,c];return[o,i.length]}let n=[];for(let i=0;i<e.length;i++)if(lr(e,i)){let[o,c]=t(e,i),x=e.slice(o,c+1);n.push(In(x)),i=c}else{let[o,c]=r(e,i),x=e.slice(o,c);x.length>0&&n.push(In(x)),i=c-1}return n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"and",expr:n}}function In(e){return u2(e)?In(l2(e)):f2(e)?d2(e):p2(e)?x2(e):{type:"const",const:c2(e)}}function wn(e){return In(e.slice(1,e.length-1))}var Is=class extends qe{};function m2(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function h2(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function g2(e){return e.type==="const"&&e.const===".*"}function tn(e){return m2(e)||g2(e)?!1:h2(e)?!0:e.type==="and"?e.expr.every(t=>tn(t)):e.type==="or"?e.expr.every(t=>tn(t)):e.type==="const"?!0:(()=>{throw new Is("Unknown expression type")})()}function M0(e){let t=wn(e.pattern);return tn(t)}var ws=class extends qe{};function*F0(e){if(e.length===1)return yield*e[0];for(let t of e[0])for(let r of F0(e.slice(1)))yield`${t}${r}`}function*b2(e){return yield*F0(e.expr.map(t=>[...Ti(t)]))}function*E2(e){for(let t of e.expr)yield*Ti(t)}function*y2(e){return yield e.const}function*Ti(e){return e.type==="and"?yield*b2(e):e.type==="or"?yield*E2(e):e.type==="const"?yield*y2(e):(()=>{throw new ws("Unknown expression")})()}function va(e){let t=wn(e.pattern);return tn(t)?[...Ti(t)]:[]}function Q(e,t){return h({[y]:"Literal",const:e,type:typeof e},t)}function Na(e){return h({[y]:"Boolean",type:"boolean"},e)}function Sn(e){return h({[y]:"BigInt",type:"bigint"},e)}function Tt(e){return h({[y]:"Number",type:"number"},e)}function Pt(e){return h({[y]:"String",type:"string"},e)}function*T2(e){let t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield Na():t==="number"?yield Tt():t==="bigint"?yield Sn():t==="string"?yield Pt():yield(()=>{let r=t.split("|").map(n=>Q(n.trim()));return r.length===0?V():r.length===1?r[0]:zt(r)})()}function*_2(e){if(e[1]!=="{"){let t=Q("$"),r=Ss(e.slice(1));return yield*[t,...r]}for(let t=2;t<e.length;t++)if(e[t]==="}"){let r=T2(e.slice(2,t)),n=Ss(e.slice(t+1));return yield*[...r,...n]}yield Q(e)}function*Ss(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){let r=Q(e.slice(0,t)),n=_2(e.slice(t));return yield*[r,...n]}yield Q(e)}function P0(e){return[...Ss(e)]}var vs=class extends qe{};function I2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function q0(e,t){return pt(e)?e.pattern.slice(1,e.pattern.length-1):G(e)?`(${e.anyOf.map(r=>q0(r,t)).join("|")})`:Ft(e)?`${t}${bi}`:Mt(e)?`${t}${bi}`:Yr(e)?`${t}${bi}`:cr(e)?`${t}${Ts}`:lt(e)?`${t}${I2(e.const.toString())}`:sr(e)?`${t}${ys}`:(()=>{throw new vs(`Unexpected Kind '${e[y]}'`)})()}function Ns(e){return`^${e.map(t=>q0(t,"")).join("")}$`}function rn(e){let r=va(e).map(n=>Q(n));return zt(r)}function Aa(e,t){let r=fe(e)?Ns(P0(e)):Ns(e);return h({[y]:"TemplateLiteral",type:"string",pattern:r},t)}function w2(e){return va(e).map(r=>r.toString())}function S2(e){let t=[];for(let r of e)t.push(...it(r));return t}function v2(e){return[e.toString()]}function it(e){return[...new Set(pt(e)?w2(e):G(e)?S2(e.anyOf):lt(e)?v2(e.const):Ft(e)?["[number]"]:Mt(e)?["[number]"]:[])]}function N2(e,t,r){let n={};for(let i of Object.getOwnPropertyNames(t))n[i]=Dr(e,it(t[i]),r);return n}function A2(e,t,r){return N2(e,t.properties,r)}function H0(e,t,r){let n=A2(e,t,r);return K(n)}function B0(e,t){return e.map(r=>j0(r,t))}function C2(e){return e.filter(t=>!Ar(t))}function R2(e,t){return Ca(C2(B0(e,t)))}function O2(e){return e.some(t=>Ar(t))?[]:e}function L2(e,t){return zt(O2(B0(e,t)))}function D2(e,t){return t in e?e[t]:t==="[number]"?zt(e):V()}function k2(e,t){return t==="[number]"?e:V()}function M2(e,t){return t in e?e[t]:V()}function j0(e,t){return Ee(e)?R2(e.allOf,t):G(e)?L2(e.anyOf,t):dt(e)?D2(e.items??[],t):Ot(e)?k2(e.items,t):Oe(e)?M2(e.properties,t):V()}function As(e,t){return t.map(r=>j0(e,r))}function U0(e,t){return zt(As(e,t))}function Dr(e,t,r){if(we(e)||we(t)){let n="Index types using Ref parameters require both Type and Key to be of TSchema";if(!xt(e)||!xt(t))throw new qe(n);return xe("Index",[e,t])}return he(t)?H0(e,t,r):ft(t)?G0(e,t,r):h(xt(t)?U0(e,it(t)):U0(e,t),r)}function F2(e,t,r){return{[t]:Dr(e,[t],me(r))}}function P2(e,t,r){return t.reduce((n,i)=>({...n,...F2(e,i,r)}),{})}function q2(e,t,r){return P2(e,t.keys,r)}function G0(e,t,r){let n=q2(e,t,r);return K(n)}function vn(e,t){return h({[y]:"Iterator",type:"Iterator",items:e},t)}function H2(e){return globalThis.Object.keys(e).filter(t=>!nt(e[t]))}function U2(e,t){let r=H2(e),n=r.length>0?{[y]:"Object",type:"object",required:r,properties:e}:{[y]:"Object",type:"object",properties:e};return h(n,t)}var se=U2;function Ra(e,t){return h({[y]:"Promise",type:"Promise",item:e},t)}function B2(e){return h(ye(e,[Rt]))}function j2(e){return h({...e,[Rt]:"Readonly"})}function G2(e,t){return t===!1?B2(e):j2(e)}function at(e,t){let r=t??!0;return he(e)?V0(e,r):G2(e,r)}function V2(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=at(e[n],t);return r}function K2(e,t){return V2(e.properties,t)}function V0(e,t){let r=K2(e,t);return K(r)}function _t(e,t){return h(e.length>0?{[y]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[y]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}function K0(e,t){return e in t?It(e,t[e]):K(t)}function $2(e){return{[e]:Q(e)}}function W2(e){let t={};for(let r of e)t[r]=Q(r);return t}function z2(e,t){return A0(t,e)?$2(e):W2(t)}function X2(e,t){let r=z2(e,t);return K0(e,r)}function _i(e,t){return t.map(r=>It(e,r))}function Q2(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(t))r[n]=It(e,t[n]);return r}function It(e,t){let r={...t};return nt(t)?Xe(It(e,ye(t,[Ve]))):En(t)?at(It(e,ye(t,[Rt]))):he(t)?K0(e,t.properties):ft(t)?X2(e,t.keys):Dt(t)?_n(_i(e,t.parameters),It(e,t.returns),r):kt(t)?Wt(_i(e,t.parameters),It(e,t.returns),r):Qr(t)?Tn(It(e,t.items),r):Zr(t)?vn(It(e,t.items),r):Ee(t)?Qe(_i(e,t.allOf),r):G(t)?ee(_i(e,t.anyOf),r):dt(t)?_t(_i(e,t.items??[]),r):Oe(t)?se(Q2(e,t.properties),r):Ot(t)?yn(It(e,t.items),r):Jr(t)?Ra(It(e,t.item),r):t}function Y2(e,t){let r={};for(let n of e)r[n]=It(n,t);return r}function $0(e,t,r){let n=xt(e)?it(e):e,i=t({[y]:"MappedKey",keys:n}),o=Y2(n,i);return se(o,r)}function Z2(e){return h(ye(e,[Ve]))}function J2(e){return h({...e,[Ve]:"Optional"})}function eb(e,t){return t===!1?Z2(e):J2(e)}function Xe(e,t){let r=t??!0;return he(e)?W0(e,r):eb(e,r)}function tb(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Xe(e[n],t);return r}function rb(e,t){return tb(e.properties,t)}function W0(e,t){let r=rb(e,t);return K(r)}function Ii(e,t={}){let r=e.every(i=>Oe(i)),n=xt(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return h(t.unevaluatedProperties===!1||xt(t.unevaluatedProperties)||r?{...n,[y]:"Intersect",type:"object",allOf:e}:{...n,[y]:"Intersect",allOf:e},t)}function nb(e){return e.every(t=>nt(t))}function ib(e){return ye(e,[Ve])}function z0(e){return e.map(t=>nt(t)?ib(t):t)}function ab(e,t){return nb(e)?Xe(Ii(z0(e),t)):Ii(z0(e),t)}function Ca(e,t={}){if(e.length===1)return h(e[0],t);if(e.length===0)return V(t);if(e.some(r=>Cr(r)))throw new Error("Cannot intersect transform types");return ab(e,t)}function Qe(e,t){if(e.length===1)return h(e[0],t);if(e.length===0)return V(t);if(e.some(r=>Cr(r)))throw new Error("Cannot intersect transform types");return Ii(e,t)}function Xt(...e){let[t,r]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof t!="string")throw new qe("Ref: $ref must be a string");return h({[y]:"Ref",$ref:t},r)}function ob(e,t){return xe("Awaited",[xe(e,t)])}function sb(e){return xe("Awaited",[Xt(e)])}function cb(e){return Qe(X0(e))}function ub(e){return ee(X0(e))}function lb(e){return Nn(e)}function X0(e){return e.map(t=>Nn(t))}function Nn(e,t){return h(Lt(e)?ob(e.target,e.parameters):Ee(e)?cb(e.allOf):G(e)?ub(e.anyOf):Jr(e)?lb(e.item):we(e)?sb(e.$ref):e,t)}function Q0(e){let t=[];for(let r of e)t.push(wi(r));return t}function fb(e){let t=Q0(e);return O0(t)}function pb(e){let t=Q0(e);return R0(t)}function db(e){return e.map((t,r)=>r.toString())}function xb(e){return["[number]"]}function mb(e){return globalThis.Object.getOwnPropertyNames(e)}function hb(e){return gb?globalThis.Object.getOwnPropertyNames(e).map(r=>r[0]==="^"&&r[r.length-1]==="$"?r.slice(1,r.length-1):r):[]}function wi(e){return Ee(e)?fb(e.allOf):G(e)?pb(e.anyOf):dt(e)?db(e.items??[]):Ot(e)?xb(e.items):Oe(e)?mb(e.properties):en(e)?hb(e.patternProperties):[]}var gb=!1;function bb(e,t){return xe("KeyOf",[xe(e,t)])}function Eb(e){return xe("KeyOf",[Xt(e)])}function yb(e,t){let r=wi(e),n=Tb(r),i=zt(n);return h(i,t)}function Tb(e){return e.map(t=>t==="[number]"?Tt():Q(t))}function An(e,t){return Lt(e)?bb(e.target,e.parameters):we(e)?Eb(e.$ref):he(e)?Y0(e,t):yb(e,t)}function _b(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=An(e[n],me(t));return r}function Ib(e,t){return _b(e.properties,t)}function Y0(e,t){let r=Ib(e,t);return K(r)}function wb(e){let t=[];for(let r of e)t.push(...wi(r));return C0(t)}function Sb(e){return e.filter(t=>!Ar(t))}function vb(e,t){let r=[];for(let n of e)r.push(...As(n,[t]));return Sb(r)}function Nb(e,t){let r={};for(let n of t)r[n]=Ca(vb(e,n));return r}function Z0(e,t){let r=wb(e),n=Nb(e,r);return se(n,t)}function Oa(e){return h({[y]:"Date",type:"Date"},e)}function La(e){return h({[y]:"Null",type:"null"},e)}function Da(e){return h({[y]:"Symbol",type:"symbol"},e)}function ka(e){return h({[y]:"Undefined",type:"undefined"},e)}function Ma(e){return h({[y]:"Uint8Array",type:"Uint8Array"},e)}function kr(e){return h({[y]:"Unknown"},e)}function Ab(e){return e.map(t=>Cs(t,!1))}function Cb(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=at(Cs(e[r],!1));return t}function Fa(e,t){return t===!0?e:at(e)}function Cs(e,t){return cs(e)?Fa(Lr(),t):ls(e)?Fa(Lr(),t):Ce(e)?at(_t(Ab(e))):or(e)?Ma():Xr(e)?Oa():ae(e)?Fa(se(Cb(e)),t):us(e)?Fa(Wt([],kr()),t):Re(e)?ka():fs(e)?La():ps(e)?Da():li(e)?Sn():ut(e)?Q(e):ar(e)?Q(e):fe(e)?Q(e):se({})}function J0(e,t){return h(Cs(e,!0),t)}function ef(e,t){return Dt(e)?_t(e.parameters,t):V(t)}function tf(e,t){if(Re(e))throw new Error("Enum undefined or empty");let r=globalThis.Object.getOwnPropertyNames(e).filter(o=>isNaN(o)).map(o=>e[o]),i=[...new Set(r)].map(o=>Q(o));return ee(i,{...t,[yt]:"Enum"})}var Os=class extends qe{},g;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(g||(g={}));function wt(e){return e===g.False?e:g.True}function Cn(e){throw new Os(e)}function Me(e){return p.IsNever(e)||p.IsIntersect(e)||p.IsUnion(e)||p.IsUnknown(e)||p.IsAny(e)}function Fe(e,t){return p.IsNever(t)?uf(e,t):p.IsIntersect(t)?Pa(e,t):p.IsUnion(t)?Ms(e,t):p.IsUnknown(t)?df(e,t):p.IsAny(t)?ks(e,t):Cn("StructuralRight")}function ks(e,t){return g.True}function Rb(e,t){return p.IsIntersect(t)?Pa(e,t):p.IsUnion(t)&&t.anyOf.some(r=>p.IsAny(r)||p.IsUnknown(r))?g.True:p.IsUnion(t)?g.Union:p.IsUnknown(t)||p.IsAny(t)?g.True:g.Union}function Ob(e,t){return p.IsUnknown(e)?g.False:p.IsAny(e)?g.Union:p.IsNever(e)?g.True:g.False}function Lb(e,t){return p.IsObject(t)&&qa(t)?g.True:Me(t)?Fe(e,t):p.IsArray(t)?wt(ce(e.items,t.items)):g.False}function Db(e,t){return Me(t)?Fe(e,t):p.IsAsyncIterator(t)?wt(ce(e.items,t.items)):g.False}function kb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsBigInt(t)?g.True:g.False}function sf(e,t){return p.IsLiteralBoolean(e)||p.IsBoolean(e)?g.True:g.False}function Mb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsBoolean(t)?g.True:g.False}function Fb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsConstructor(t)?e.parameters.length>t.parameters.length?g.False:e.parameters.every((r,n)=>wt(ce(t.parameters[n],r))===g.True)?wt(ce(e.returns,t.returns)):g.False:g.False}function Pb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsDate(t)?g.True:g.False}function qb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsFunction(t)?e.parameters.length>t.parameters.length?g.False:e.parameters.every((r,n)=>wt(ce(t.parameters[n],r))===g.True)?wt(ce(e.returns,t.returns)):g.False:g.False}function cf(e,t){return p.IsLiteral(e)&&ze.IsNumber(e.const)||p.IsNumber(e)||p.IsInteger(e)?g.True:g.False}function Hb(e,t){return p.IsInteger(t)||p.IsNumber(t)?g.True:Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):g.False}function Pa(e,t){return t.allOf.every(r=>ce(e,r)===g.True)?g.True:g.False}function Ub(e,t){return e.allOf.some(r=>ce(r,t)===g.True)?g.True:g.False}function Bb(e,t){return Me(t)?Fe(e,t):p.IsIterator(t)?wt(ce(e.items,t.items)):g.False}function jb(e,t){return p.IsLiteral(t)&&t.const===e.const?g.True:Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsString(t)?pf(e,t):p.IsNumber(t)?lf(e,t):p.IsInteger(t)?cf(e,t):p.IsBoolean(t)?sf(e,t):g.False}function uf(e,t){return g.False}function Gb(e,t){return g.True}function rf(e){let[t,r]=[e,0];for(;p.IsNot(t);)t=t.not,r+=1;return r%2===0?t:kr()}function Vb(e,t){return p.IsNot(e)?ce(rf(e),t):p.IsNot(t)?ce(e,rf(t)):Cn("Invalid fallthrough for Not")}function Kb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsNull(t)?g.True:g.False}function lf(e,t){return p.IsLiteralNumber(e)||p.IsNumber(e)||p.IsInteger(e)?g.True:g.False}function $b(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsInteger(t)||p.IsNumber(t)?g.True:g.False}function ot(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function nf(e){return qa(e)}function af(e){return ot(e,0)||ot(e,1)&&"description"in e.properties&&p.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(p.IsString(e.properties.description.anyOf[0])&&p.IsUndefined(e.properties.description.anyOf[1])||p.IsString(e.properties.description.anyOf[1])&&p.IsUndefined(e.properties.description.anyOf[0]))}function Rs(e){return ot(e,0)}function of(e){return ot(e,0)}function Wb(e){return ot(e,0)}function zb(e){return ot(e,0)}function Xb(e){return qa(e)}function Qb(e){let t=Tt();return ot(e,0)||ot(e,1)&&"length"in e.properties&&wt(ce(e.properties.length,t))===g.True}function Yb(e){return ot(e,0)}function qa(e){let t=Tt();return ot(e,0)||ot(e,1)&&"length"in e.properties&&wt(ce(e.properties.length,t))===g.True}function Zb(e){let t=Wt([Lr()],Lr());return ot(e,0)||ot(e,1)&&"then"in e.properties&&wt(ce(e.properties.then,t))===g.True}function ff(e,t){return ce(e,t)===g.False||p.IsOptional(e)&&!p.IsOptional(t)?g.False:g.True}function Ye(e,t){return p.IsUnknown(e)?g.False:p.IsAny(e)?g.Union:p.IsNever(e)||p.IsLiteralString(e)&&nf(t)||p.IsLiteralNumber(e)&&Rs(t)||p.IsLiteralBoolean(e)&&of(t)||p.IsSymbol(e)&&af(t)||p.IsBigInt(e)&&Wb(t)||p.IsString(e)&&nf(t)||p.IsSymbol(e)&&af(t)||p.IsNumber(e)&&Rs(t)||p.IsInteger(e)&&Rs(t)||p.IsBoolean(e)&&of(t)||p.IsUint8Array(e)&&Xb(t)||p.IsDate(e)&&zb(t)||p.IsConstructor(e)&&Yb(t)||p.IsFunction(e)&&Qb(t)?g.True:p.IsRecord(e)&&p.IsString(Ls(e))?t[yt]==="Record"?g.True:g.False:p.IsRecord(e)&&p.IsNumber(Ls(e))&&ot(t,0)?g.True:g.False}function Jb(e,t){return Me(t)?Fe(e,t):p.IsRecord(t)?St(e,t):p.IsObject(t)?(()=>{for(let r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!p.IsOptional(t.properties[r]))return g.False;if(p.IsOptional(t.properties[r]))return g.True;if(ff(e.properties[r],t.properties[r])===g.False)return g.False}return g.True})():g.False}function eE(e,t){return Me(t)?Fe(e,t):p.IsObject(t)&&Zb(t)?g.True:p.IsPromise(t)?wt(ce(e.item,t.item)):g.False}function Ls(e){return Rr in e.patternProperties?Tt():Or in e.patternProperties?Pt():Cn("Unknown record key pattern")}function Ds(e){return Rr in e.patternProperties?e.patternProperties[Rr]:Or in e.patternProperties?e.patternProperties[Or]:Cn("Unable to get record value schema")}function St(e,t){let[r,n]=[Ls(t),Ds(t)];return p.IsLiteralString(e)&&p.IsNumber(r)&&wt(ce(e,n))===g.True?g.True:p.IsUint8Array(e)&&p.IsNumber(r)||p.IsString(e)&&p.IsNumber(r)||p.IsArray(e)&&p.IsNumber(r)?ce(e,n):p.IsObject(e)?(()=>{for(let i of Object.getOwnPropertyNames(e.properties))if(ff(n,e.properties[i])===g.False)return g.False;return g.True})():g.False}function tE(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?ce(Ds(e),Ds(t)):g.False}function rE(e,t){let r=p.IsRegExp(e)?Pt():e,n=p.IsRegExp(t)?Pt():t;return ce(r,n)}function pf(e,t){return p.IsLiteral(e)&&ze.IsString(e.const)||p.IsString(e)?g.True:g.False}function nE(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsString(t)?g.True:g.False}function iE(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsSymbol(t)?g.True:g.False}function aE(e,t){return p.IsTemplateLiteral(e)?ce(rn(e),t):p.IsTemplateLiteral(t)?ce(e,rn(t)):Cn("Invalid fallthrough for TemplateLiteral")}function oE(e,t){return p.IsArray(t)&&e.items!==void 0&&e.items.every(r=>ce(r,t.items)===g.True)}function sE(e,t){return p.IsNever(e)?g.True:p.IsUnknown(e)?g.False:p.IsAny(e)?g.Union:g.False}function cE(e,t){return Me(t)?Fe(e,t):p.IsObject(t)&&qa(t)||p.IsArray(t)&&oE(e,t)?g.True:p.IsTuple(t)?ze.IsUndefined(e.items)&&!ze.IsUndefined(t.items)||!ze.IsUndefined(e.items)&&ze.IsUndefined(t.items)?g.False:ze.IsUndefined(e.items)&&!ze.IsUndefined(t.items)||e.items.every((r,n)=>ce(r,t.items[n])===g.True)?g.True:g.False:g.False}function uE(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsUint8Array(t)?g.True:g.False}function lE(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsVoid(t)?dE(e,t):p.IsUndefined(t)?g.True:g.False}function Ms(e,t){return t.anyOf.some(r=>ce(e,r)===g.True)?g.True:g.False}function fE(e,t){return e.anyOf.every(r=>ce(r,t)===g.True)?g.True:g.False}function df(e,t){return g.True}function pE(e,t){return p.IsNever(t)?uf(e,t):p.IsIntersect(t)?Pa(e,t):p.IsUnion(t)?Ms(e,t):p.IsAny(t)?ks(e,t):p.IsString(t)?pf(e,t):p.IsNumber(t)?lf(e,t):p.IsInteger(t)?cf(e,t):p.IsBoolean(t)?sf(e,t):p.IsArray(t)?Ob(e,t):p.IsTuple(t)?sE(e,t):p.IsObject(t)?Ye(e,t):p.IsUnknown(t)?g.True:g.False}function dE(e,t){return p.IsUndefined(e)||p.IsUndefined(e)?g.True:g.False}function xE(e,t){return p.IsIntersect(t)?Pa(e,t):p.IsUnion(t)?Ms(e,t):p.IsUnknown(t)?df(e,t):p.IsAny(t)?ks(e,t):p.IsObject(t)?Ye(e,t):p.IsVoid(t)?g.True:g.False}function ce(e,t){return p.IsTemplateLiteral(e)||p.IsTemplateLiteral(t)?aE(e,t):p.IsRegExp(e)||p.IsRegExp(t)?rE(e,t):p.IsNot(e)||p.IsNot(t)?Vb(e,t):p.IsAny(e)?Rb(e,t):p.IsArray(e)?Lb(e,t):p.IsBigInt(e)?kb(e,t):p.IsBoolean(e)?Mb(e,t):p.IsAsyncIterator(e)?Db(e,t):p.IsConstructor(e)?Fb(e,t):p.IsDate(e)?Pb(e,t):p.IsFunction(e)?qb(e,t):p.IsInteger(e)?Hb(e,t):p.IsIntersect(e)?Ub(e,t):p.IsIterator(e)?Bb(e,t):p.IsLiteral(e)?jb(e,t):p.IsNever(e)?Gb(e,t):p.IsNull(e)?Kb(e,t):p.IsNumber(e)?$b(e,t):p.IsObject(e)?Jb(e,t):p.IsRecord(e)?tE(e,t):p.IsString(e)?nE(e,t):p.IsSymbol(e)?iE(e,t):p.IsTuple(e)?cE(e,t):p.IsPromise(e)?eE(e,t):p.IsUint8Array(e)?uE(e,t):p.IsUndefined(e)?lE(e,t):p.IsUnion(e)?fE(e,t):p.IsUnknown(e)?pE(e,t):p.IsVoid(e)?xE(e,t):Cn(`Unknown left type operand '${e[y]}'`)}function Mr(e,t){return ce(e,t)}function mE(e,t,r,n,i){let o={};for(let c of globalThis.Object.getOwnPropertyNames(e))o[c]=Rn(e[c],t,r,n,me(i));return o}function hE(e,t,r,n,i){return mE(e.properties,t,r,n,i)}function xf(e,t,r,n,i){let o=hE(e,t,r,n,i);return K(o)}function gE(e,t,r,n){let i=Mr(e,t);return i===g.Union?ee([r,n]):i===g.True?r:n}function Rn(e,t,r,n,i){return he(e)?xf(e,t,r,n,i):ft(e)?h(mf(e,t,r,n,i)):h(gE(e,t,r,n),i)}function bE(e,t,r,n,i){return{[e]:Rn(Q(e),t,r,n,me(i))}}function EE(e,t,r,n,i){return e.reduce((o,c)=>({...o,...bE(c,t,r,n,i)}),{})}function yE(e,t,r,n,i){return EE(e.keys,t,r,n,i)}function mf(e,t,r,n,i){let o=yE(e,t,r,n,i);return K(o)}function hf(e,t){return On(rn(e),t)}function TE(e,t){let r=e.filter(n=>Mr(n,t)===g.False);return r.length===1?r[0]:ee(r)}function On(e,t,r={}){return pt(e)?h(hf(e,t),r):he(e)?h(gf(e,t),r):h(G(e)?TE(e.anyOf,t):Mr(e,t)!==g.False?V():e,r)}function _E(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=On(e[n],t);return r}function IE(e,t){return _E(e.properties,t)}function gf(e,t){let r=IE(e,t);return K(r)}function bf(e,t){return Ln(rn(e),t)}function wE(e,t){let r=e.filter(n=>Mr(n,t)!==g.False);return r.length===1?r[0]:ee(r)}function Ln(e,t,r){return pt(e)?h(bf(e,t),r):he(e)?h(Ef(e,t),r):h(G(e)?wE(e.anyOf,t):Mr(e,t)!==g.False?e:V(),r)}function SE(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Ln(e[n],t);return r}function vE(e,t){return SE(e.properties,t)}function Ef(e,t){let r=vE(e,t);return K(r)}function yf(e,t){return Dt(e)?h(e.returns,t):V(t)}function Ha(e){return at(Xe(e))}function nn(e,t,r){return h({[y]:"Record",type:"object",patternProperties:{[e]:t}},r)}function Fs(e,t,r){let n={};for(let i of e)n[i]=t;return se(n,{...r,[yt]:"Record"})}function NE(e,t,r){return M0(e)?Fs(it(e),t,r):nn(e.pattern,t,r)}function AE(e,t,r){return Fs(it(ee(e)),t,r)}function CE(e,t,r){return Fs([e.toString()],t,r)}function RE(e,t,r){return nn(e.source,t,r)}function OE(e,t,r){let n=Re(e.pattern)?Or:e.pattern;return nn(n,t,r)}function LE(e,t,r){return nn(Or,t,r)}function DE(e,t,r){return nn(N0,t,r)}function kE(e,t,r){return se({true:t,false:t},r)}function ME(e,t,r){return nn(Rr,t,r)}function FE(e,t,r){return nn(Rr,t,r)}function Ua(e,t,r={}){return G(e)?AE(e.anyOf,t,r):pt(e)?NE(e,t,r):lt(e)?CE(e.const,t,r):sr(e)?kE(e,t,r):Mt(e)?ME(e,t,r):Ft(e)?FE(e,t,r):ms(e)?RE(e,t,r):cr(e)?OE(e,t,r):ds(e)?LE(e,t,r):Ar(e)?DE(e,t,r):V(r)}function Ba(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function Tf(e){let t=Ba(e);return t===Or?Pt():t===Rr?Tt():Pt({pattern:t})}function ja(e){return e.patternProperties[Ba(e)]}function PE(e,t){return t.parameters=Si(e,t.parameters),t.returns=qt(e,t.returns),t}function qE(e,t){return t.parameters=Si(e,t.parameters),t.returns=qt(e,t.returns),t}function HE(e,t){return t.allOf=Si(e,t.allOf),t}function UE(e,t){return t.anyOf=Si(e,t.anyOf),t}function BE(e,t){return Re(t.items)||(t.items=Si(e,t.items)),t}function jE(e,t){return t.items=qt(e,t.items),t}function GE(e,t){return t.items=qt(e,t.items),t}function VE(e,t){return t.items=qt(e,t.items),t}function KE(e,t){return t.item=qt(e,t.item),t}function $E(e,t){let r=QE(e,t.properties);return{...t,...se(r)}}function WE(e,t){let r=qt(e,Tf(t)),n=qt(e,ja(t)),i=Ua(r,n);return{...t,...i}}function zE(e,t){return t.index in e?e[t.index]:kr()}function XE(e,t){let r=En(t),n=nt(t),i=qt(e,t);return r&&n?Ha(i):r&&!n?at(i):!r&&n?Xe(i):i}function QE(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,n)=>({...r,[n]:XE(e,t[n])}),{})}function Si(e,t){return t.map(r=>qt(e,r))}function qt(e,t){return Dt(t)?PE(e,t):kt(t)?qE(e,t):Ee(t)?HE(e,t):G(t)?UE(e,t):dt(t)?BE(e,t):Ot(t)?jE(e,t):Qr(t)?GE(e,t):Zr(t)?VE(e,t):Jr(t)?KE(e,t):Oe(t)?$E(e,t):en(t)?WE(e,t):xs(t)?zE(e,t):t}function _f(e,t){return qt(t,bn(e))}function If(e){return h({[y]:"Integer",type:"integer"},e)}function YE(e,t,r){return{[e]:Ht(Q(e),t,me(r))}}function ZE(e,t,r){return e.reduce((i,o)=>({...i,...YE(o,t,r)}),{})}function JE(e,t,r){return ZE(e.keys,t,r)}function wf(e,t,r){let n=JE(e,t,r);return K(n)}function ey(e){let[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ty(e){let[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ry(e){return e.toUpperCase()}function ny(e){return e.toLowerCase()}function iy(e,t,r){let n=wn(e.pattern);if(!tn(n))return{...e,pattern:Sf(e.pattern,t)};let c=[...Ti(n)].map(T=>Q(T)),x=vf(c,t),m=ee(x);return Aa([m],r)}function Sf(e,t){return typeof e=="string"?t==="Uncapitalize"?ey(e):t==="Capitalize"?ty(e):t==="Uppercase"?ry(e):t==="Lowercase"?ny(e):e:e.toString()}function vf(e,t){return e.map(r=>Ht(r,t))}function Ht(e,t,r={}){return ft(e)?wf(e,t,r):pt(e)?iy(e,t,r):G(e)?ee(vf(e.anyOf,t),r):lt(e)?Q(Sf(e.const,t),r):h(e,r)}function Nf(e,t={}){return Ht(e,"Capitalize",t)}function Af(e,t={}){return Ht(e,"Lowercase",t)}function Cf(e,t={}){return Ht(e,"Uncapitalize",t)}function Rf(e,t={}){return Ht(e,"Uppercase",t)}function ay(e,t,r){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Fr(e[i],t,me(r));return n}function oy(e,t,r){return ay(e.properties,t,r)}function Of(e,t,r){let n=oy(e,t,r);return K(n)}function sy(e,t){return e.map(r=>Ps(r,t))}function cy(e,t){return e.map(r=>Ps(r,t))}function uy(e,t){let{[t]:r,...n}=e;return n}function ly(e,t){return t.reduce((r,n)=>uy(r,n),e)}function fy(e,t,r){let n=ye(e,[ke,"$id","required","properties"]),i=ly(r,t);return se(i,n)}function py(e){let t=e.reduce((r,n)=>Ia(n)?[...r,Q(n)]:r,[]);return ee(t)}function Ps(e,t){return Ee(e)?Qe(sy(e.allOf,t)):G(e)?ee(cy(e.anyOf,t)):Oe(e)?fy(e,t,e.properties):se({})}function Fr(e,t,r){let n=Ce(t)?py(t):t,i=xt(t)?it(t):t,o=we(e),c=we(t);return he(e)?Of(e,i,r):ft(t)?Lf(e,t,r):o&&c?xe("Omit",[e,n],r):!o&&c?xe("Omit",[e,n],r):o&&!c?xe("Omit",[e,n],r):h({...Ps(e,i),...r})}function dy(e,t,r){return{[t]:Fr(e,[t],me(r))}}function xy(e,t,r){return t.reduce((n,i)=>({...n,...dy(e,i,r)}),{})}function my(e,t,r){return xy(e,t.keys,r)}function Lf(e,t,r){let n=my(e,t,r);return K(n)}function hy(e,t,r){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Pr(e[i],t,me(r));return n}function gy(e,t,r){return hy(e.properties,t,r)}function Df(e,t,r){let n=gy(e,t,r);return K(n)}function by(e,t){return e.map(r=>qs(r,t))}function Ey(e,t){return e.map(r=>qs(r,t))}function yy(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}function Ty(e,t,r){let n=ye(e,[ke,"$id","required","properties"]),i=yy(r,t);return se(i,n)}function _y(e){let t=e.reduce((r,n)=>Ia(n)?[...r,Q(n)]:r,[]);return ee(t)}function qs(e,t){return Ee(e)?Qe(by(e.allOf,t)):G(e)?ee(Ey(e.anyOf,t)):Oe(e)?Ty(e,t,e.properties):se({})}function Pr(e,t,r){let n=Ce(t)?_y(t):t,i=xt(t)?it(t):t,o=we(e),c=we(t);return he(e)?Df(e,i,r):ft(t)?kf(e,t,r):o&&c?xe("Pick",[e,n],r):!o&&c?xe("Pick",[e,n],r):o&&!c?xe("Pick",[e,n],r):h({...qs(e,i),...r})}function Iy(e,t,r){return{[t]:Pr(e,[t],me(r))}}function wy(e,t,r){return t.reduce((n,i)=>({...n,...Iy(e,i,r)}),{})}function Sy(e,t,r){return wy(e,t.keys,r)}function kf(e,t,r){let n=Sy(e,t,r);return K(n)}function vy(e,t){return xe("Partial",[xe(e,t)])}function Ny(e){return xe("Partial",[Xt(e)])}function Ay(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=Xe(e[r]);return t}function Cy(e,t){let r=ye(e,[ke,"$id","required","properties"]),n=Ay(t);return se(n,r)}function Mf(e){return e.map(t=>Ff(t))}function Ff(e){return Lt(e)?vy(e.target,e.parameters):we(e)?Ny(e.$ref):Ee(e)?Qe(Mf(e.allOf)):G(e)?ee(Mf(e.anyOf)):Oe(e)?Cy(e,e.properties):Yr(e)||sr(e)||Mt(e)||lt(e)||di(e)||Ft(e)||cr(e)||xi(e)||mi(e)?e:se({})}function Dn(e,t){return he(e)?Pf(e,t):h({...Ff(e),...t})}function Ry(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Dn(e[n],me(t));return r}function Oy(e,t){return Ry(e.properties,t)}function Pf(e,t){let r=Oy(e,t);return K(r)}function Ly(e,t){return xe("Required",[xe(e,t)])}function Dy(e){return xe("Required",[Xt(e)])}function ky(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=ye(e[r],[Ve]);return t}function My(e,t){let r=ye(e,[ke,"$id","required","properties"]),n=ky(t);return se(n,r)}function qf(e){return e.map(t=>Hf(t))}function Hf(e){return Lt(e)?Ly(e.target,e.parameters):we(e)?Dy(e.$ref):Ee(e)?Qe(qf(e.allOf)):G(e)?ee(qf(e.anyOf)):Oe(e)?My(e,e.properties):Yr(e)||sr(e)||Mt(e)||lt(e)||di(e)||Ft(e)||cr(e)||xi(e)||mi(e)?e:se({})}function kn(e,t){return he(e)?Uf(e,t):h({...Hf(e),...t})}function Fy(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=kn(e[n],t);return r}function Py(e,t){return Fy(e.properties,t)}function Uf(e,t){let r=Py(e,t);return K(r)}function qy(e,t){return t.map(r=>we(r)?Hs(e,r.$ref):mt(e,r))}function Hs(e,t){return t in e?we(e[t])?Hs(e,e[t].$ref):mt(e,e[t]):V()}function Hy(e){return Nn(e[0])}function Uy(e){return Dr(e[0],e[1])}function By(e){return An(e[0])}function jy(e){return Dn(e[0])}function Gy(e){return Fr(e[0],e[1])}function Vy(e){return Pr(e[0],e[1])}function Ky(e){return kn(e[0])}function $y(e,t,r){let n=qy(e,r);return t==="Awaited"?Hy(n):t==="Index"?Uy(n):t==="KeyOf"?By(n):t==="Partial"?jy(n):t==="Omit"?Gy(n):t==="Pick"?Vy(n):t==="Required"?Ky(n):V()}function Wy(e,t){return yn(mt(e,t))}function zy(e,t){return Tn(mt(e,t))}function Xy(e,t,r){return _n(vi(e,t),mt(e,r))}function Qy(e,t,r){return Wt(vi(e,t),mt(e,r))}function Yy(e,t){return Qe(vi(e,t))}function Zy(e,t){return vn(mt(e,t))}function Jy(e,t){return se(globalThis.Object.keys(t).reduce((r,n)=>({...r,[n]:mt(e,t[n])}),{}))}function eT(e,t){let[r,n]=[mt(e,ja(t)),Ba(t)],i=bn(t);return i.patternProperties[n]=r,i}function tT(e,t){return we(t)?{...Hs(e,t.$ref),[ke]:t[ke]}:t}function rT(e,t){return _t(vi(e,t))}function nT(e,t){return ee(vi(e,t))}function vi(e,t){return t.map(r=>mt(e,r))}function mt(e,t){return nt(t)?h(mt(e,ye(t,[Ve])),t):En(t)?h(mt(e,ye(t,[Rt])),t):Cr(t)?h(tT(e,t),t):Ot(t)?h(Wy(e,t.items),t):Qr(t)?h(zy(e,t.items),t):Lt(t)?h($y(e,t.target,t.parameters)):Dt(t)?h(Xy(e,t.parameters,t.returns),t):kt(t)?h(Qy(e,t.parameters,t.returns),t):Ee(t)?h(Yy(e,t.allOf),t):Zr(t)?h(Zy(e,t.items),t):Oe(t)?h(Jy(e,t.properties),t):en(t)?h(eT(e,t)):dt(t)?h(rT(e,t.items||[]),t):G(t)?h(nT(e,t.anyOf),t):t}function iT(e,t){return t in e?mt(e,e[t]):V()}function Bf(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,r)=>({...t,[r]:iT(e,r)}),{})}var Us=class{constructor(t){let r=Bf(t),n=this.WithIdentifiers(r);this.$defs=n}Import(t,r){let n={...this.$defs,[t]:h(this.$defs[t],r)};return h({[y]:"Import",$defs:n,$ref:t})}WithIdentifiers(t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,n)=>({...r,[n]:{...t[n],$id:n}}),{})}};function jf(e){return new Us(e)}function Gf(e,t){return h({[y]:"Not",not:e},t)}function Vf(e,t){return kt(e)?_t(e.parameters,t):V()}var aT=0;function Kf(e,t={}){Re(t.$id)&&(t.$id=`T${aT++}`);let r=bn(e({[y]:"This",$ref:`${t.$id}`}));return r.$id=t.$id,h({[yt]:"Recursive",...r},t)}function $f(e,t){let r=fe(e)?new globalThis.RegExp(e):e;return h({[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags},t)}function oT(e){return Ee(e)?e.allOf:G(e)?e.anyOf:dt(e)?e.items??[]:[]}function Wf(e){return oT(e)}function zf(e,t){return kt(e)?h(e.returns,t):V(t)}var Bs=class{constructor(t){this.schema=t}Decode(t){return new js(this.schema,t)}},js=class{constructor(t,r){this.schema=t,this.decode=r}EncodeTransform(t,r){let o={Encode:c=>r[ke].Encode(t(c)),Decode:c=>this.decode(r[ke].Decode(c))};return{...r,[ke]:o}}EncodeSchema(t,r){let n={Decode:this.decode,Encode:t};return{...r,[ke]:n}}Encode(t){return Cr(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}};function Xf(e){return new Bs(e)}function Qf(e={}){return h({[y]:e[y]??"Unsafe"},e)}function Yf(e){return h({[y]:"Void",type:"void"},e)}var Gs={};ns(Gs,{Any:()=>Lr,Argument:()=>L0,Array:()=>yn,AsyncIterator:()=>Tn,Awaited:()=>Nn,BigInt:()=>Sn,Boolean:()=>Na,Capitalize:()=>Nf,Composite:()=>Z0,Const:()=>J0,Constructor:()=>_n,ConstructorParameters:()=>ef,Date:()=>Oa,Enum:()=>tf,Exclude:()=>On,Extends:()=>Rn,Extract:()=>Ln,Function:()=>Wt,Index:()=>Dr,InstanceType:()=>yf,Instantiate:()=>_f,Integer:()=>If,Intersect:()=>Qe,Iterator:()=>vn,KeyOf:()=>An,Literal:()=>Q,Lowercase:()=>Af,Mapped:()=>$0,Module:()=>jf,Never:()=>V,Not:()=>Gf,Null:()=>La,Number:()=>Tt,Object:()=>se,Omit:()=>Fr,Optional:()=>Xe,Parameters:()=>Vf,Partial:()=>Dn,Pick:()=>Pr,Promise:()=>Ra,Readonly:()=>at,ReadonlyOptional:()=>Ha,Record:()=>Ua,Recursive:()=>Kf,Ref:()=>Xt,RegExp:()=>$f,Required:()=>kn,Rest:()=>Wf,ReturnType:()=>zf,String:()=>Pt,Symbol:()=>Da,TemplateLiteral:()=>Aa,Transform:()=>Xf,Tuple:()=>_t,Uint8Array:()=>Ma,Uncapitalize:()=>Cf,Undefined:()=>ka,Union:()=>ee,Unknown:()=>kr,Unsafe:()=>Qf,Uppercase:()=>Rf,Void:()=>Yf});var I=Gs;import*as Nh from"node:path";var Zf=is(Rg(),1);import Vs from"node:process";import{PassThrough as sT}from"node:stream";var cT=Vs.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function uT(){let e={};for(let t of cT){let r=Vs.env[t];r!==void 0&&(r.startsWith("()")||(e[t]=r))}return e}var Ga=class{constructor(t){this._stderrStream=null,this._serverParams=t,this._readBuffer=new Tl({maxBufferSize:t.maxBufferSize}),(t.stderr==="pipe"||t.stderr==="overlapped")&&(this._stderrStream=new sT)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,r)=>{this._process=(0,Zf.default)(this._serverParams.command,this._serverParams.args??[],{env:{...uT(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:Vs.platform==="win32",cwd:this._serverParams.cwd}),this._process.on("error",n=>{r(n),this.onerror?.(n)}),this._process.on("spawn",()=>{t()}),this._process.on("close",n=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",n=>{this.onerror?.(n)}),this._process.stdout?.on("data",n=>{try{this._readBuffer.append(n),this.processReadBuffer()}catch(i){this.onerror?.(i),this.close().catch(()=>{})}}),this._process.stdout?.on("error",n=>{this.onerror?.(n)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){return this._stderrStream?this._stderrStream:this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){for(;;)try{let t=this._readBuffer.readMessage();if(t===null)break;this.onmessage?.(t)}catch(t){this.onerror?.(t)}}async close(){if(this._process){let t=this._process;this._process=void 0;let r=new Promise(n=>{t.once("close",()=>{n()})});try{t.stdin?.end()}catch{}if(await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())]),t.exitCode===null){try{t.kill("SIGTERM")}catch{}await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())])}if(t.exitCode===null)try{t.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(t){return new Promise(r=>{if(!this._process?.stdin)throw new Error("Not connected");let n=_l(t);this._process.stdin.write(n)?r():this._process.stdin.once("drain",r)})}};var Va=class e{constructor(){this._messageQueue=[]}static createLinkedPair(){let t=new e,r=new e;return t._otherTransport=r,r._otherTransport=t,[t,r]}async start(){for(;this._messageQueue.length>0;){let t=this._messageQueue.shift();this.onmessage?.(t.message,t.extra)}}async close(){let t=this._otherTransport;this._otherTransport=void 0,await t?.close(),this.onclose?.()}async send(t,r){if(!this._otherTransport)throw new Error("Not connected");this._otherTransport.onmessage?this._otherTransport.onmessage(t,{authInfo:r?.authInfo}):this._otherTransport._messageQueue.push({message:t,extra:{authInfo:r?.authInfo}})}};function ep(e){return!!e&&e.startsWith("slack:")}function tp(e){return!!e&&e.startsWith("feishu:")}function rp(e){return!!e&&e.startsWith("web:")}var lT=new Set(["image/png","image/jpeg","image/gif","image/webp"]);function fT(e){if(!e)return null;let t=e.split(";")[0]?.trim().toLowerCase();if(!t)return null;let r=t==="image/jpg"?"image/jpeg":t;return lT.has(r)?r:null}function Jf(e,t){let r=fT(t);return!r||typeof e!="string"||e.length===0?null:{type:"image",data:e,mimeType:r}}function np(e){if(e.type==="text"&&typeof e.text=="string")return{type:"text",text:e.text};if(e.type==="image"){let t=Jf(e.data,e.mimeType);if(t)return t;let r=typeof e.data=="string"?e.data.length:0;return{type:"text",text:`[Image: mimeType=${e.mimeType??"unknown"}, base64(${r} chars)]`}}if(e.type==="resource"&&e.resource){let t=e.resource;if(typeof t.text=="string")return{type:"text",text:t.text};if(typeof t.blob=="string"){let r=Jf(t.blob,t.mimeType);return r||{type:"text",text:`[Binary resource: uri=${t.uri??"unknown"}, mimeType=${t.mimeType??"unknown"}]`}}}return{type:"text",text:JSON.stringify(e)}}import{createHash as pT}from"node:crypto";var ip=/[^A-Za-z0-9_-]+/g,dT=/[^a-z0-9]+/g,ap=64,xT=10,op="_",sp=/^[0-9A-Za-z][0-9A-Za-z._-]{0,63}$/;function mT(e){return pT("sha256").update(e,"utf8").digest("hex").slice(0,xT)}function Ka(e,t,r){return e.replace(t,r).replace(new RegExp(`${r}+`,"g"),r)}function Ni(e,t){return e.replace(new RegExp(`^${t}+|${t}+$`,"g"),"")}function Ks(e,t,r){let n=`${r}${mT(t)}`,i=ap-n.length;return`${e.slice(0,Math.max(1,i))}${n}`}function cp(e,t){return e!==t||e.length>ap}function up(e,t="plugin"){let r=Ni(Ka(e,ip,"_"),"_")||t;return cp(r,e)?Ks(r,e,op):r}function lp(e,t="plugin"){let r=e.map(i=>Ni(Ka(i,ip,"_"),"_")||"part"),n=Ni([t,...r].join("_"),"_")||t;return Ks(n,JSON.stringify({prefix:t,parts:[...e]}),op)}function hT(e){let t=Ni(Ka(e.toLowerCase(),dT,"-"),"-")||"plugin";return/^[a-z]/.test(t)?t:`plugin-${t}`}function _F(e){let t=hT(e);return cp(t,e)?Ks(t,e,"-"):t}function gT(e){let t=Ni(Ka(e.toLowerCase(),/[^a-z0-9._-]+/g,"-"),"-");return sp.test(t)?t:void 0}function IF(e){let t=e?.trim();if(t)return sp.test(t)?t:gT(t)}function $s(e){let t=e.CORTEX_PI_ALLOWED_TOOLS?.trim();return t?new Set(t.split(",").map(r=>r.trim()).filter(Boolean)):null}function $a(e){let t=$s(e);return e.CORTEX_PI_SUBAGENT!=="1"&&(t===null||t.has("Agent"))}var bT=zu("pi-mcp-bridge"),pp={stdio:e=>new Ga(e),streamableHttp:(e,t)=>new Il(e,t),sse:(e,t)=>new wl(e,t)};function ET(e){return{...e,SLACK_BOT_TOKEN:e.SLACK_BOT_TOKEN||"",SLACK_CHANNEL:e.SLACK_CHANNEL||"",FEISHU_CHANNEL:e.FEISHU_CHANNEL||""}}function yT(e,t){let r=ET(t),n=as(t[ga]),i=Qu(n?[...n]:void 0,e);return r[ga]=JSON.stringify(i),r}function dp(e,t){return{name:e,source:t,handle:null,registered:!1,registeredToolNames:new Set}}function TT(e){let t=e.SLACK_CHANNEL;return[[!0,"cortex-ext"],[ep(t),"cortex-slack"],[tp(t),"cortex-feishu"],[rp(t),"cortex-web"]].filter(([n])=>n).map(([,n])=>n)}function _T(e,t){let r=[],n=new Set,i=e.slice().sort((o,c)=>o.name.localeCompare(c.name));for(let o of i){let c=ST(o.name);if(n.has(c)){t(`Duplicate MCP server state name: ${c}`);continue}n.add(c),r.push(dp(c,{kind:"plugin",config:o}))}return r}function IT(e,t=[],r=()=>{}){let n=e[ml];if(n==="none")return as(e[ga]),[];let i=["cortex-core"];e.CORTEX_PI_SUBAGENT!=="1"&&(n==="direct"&&e[hl]==="1"&&i.push("cortex-interaction-bridge"),n==="direct"&&e[gl]==="1"&&i.push("cortex-workers"),n==="direct"&&e[bl]==="1"&&i.push("cortex-worker-report"),i.push(...TT(e)));let o=[dp("core",{kind:"bundled",bundles:i,env:yT(i,e)})];return e.CORTEX_PI_SUBAGENT!=="1"&&o.push(..._T(t,r)),o}function Wa(e,t,r){let n=r instanceof Error?r.message:String(r);return new Error(`MCP server ${e} ${t} failed: ${n}`,{cause:r})}function wT(e){let t=e instanceof Error?e.message:String(e);bT.warn(`MCP setup failed; will retry on next turn: ${t}`)}function ST(e){return up(`plugin_server_${e}`,"plugin_server")}function vT(e,t){return lp([e,t],"plugin_tool")}function NT(e,t){return e.source.kind==="bundled"?t:vT(e.name,t)}var AT=Sl;function CT(e,t=pp,r=process.env){if(e.type==="stdio")return t.stdio({command:e.command,args:[...e.args],env:{...r,...e.env},cwd:e.cwd,stderr:"pipe"});let n={...e.headers},i=AT(n);return e.type==="streamable-http"?t.streamableHttp(new URL(e.url),{requestInit:{headers:n},fetch:i}):t.sse(new URL(e.url),{fetch:i,eventSourceInit:{fetch:i},requestInit:{headers:n}})}async function RT(e,t,r,n){let i=await n(t,r),[o,c]=Va.createLinkedPair(),x=new os({name:`pi-mcp-bridge-${e.name}`,version:"1.0.0"});await i.connect(c);try{await x.connect(o)}catch(m){try{await i.close()}catch{}throw m}return{client:x,transport:{close:async()=>{try{await o.close()}finally{await i.close()}}}}}async function OT(e,t,r){let n=CT(t,pp,r),i=new os({name:`pi-mcp-bridge-${e.name}`,version:"1.0.0"});try{return await i.connect(n),{client:i,transport:n}}catch(o){try{await n.close()}catch{}throw o}}function xp(e,t=[],r){return{env:e,pluginServers:t,spawnClient:n=>n.source.kind!=="bundled"?OT(n,n.source.config,e):r?RT(n,n.source.bundles,n.source.env,r):Promise.reject(new Error("Cortex MCP bundles are unavailable in this session.")),reportFailure:wT}}var Ws=class{pi;deps;states=null;registeredNames=new Map;constructor(t,r){this.pi=t,this.deps=r}install(){this.pi.on("before_agent_start",async()=>this.beforeAgentStart()),this.pi.on("session_shutdown",async()=>this.shutdown())}resolveStates(){return this.states?this.states:(this.states=IT(this.deps.env,this.deps.pluginServers??[],t=>this.deps.reportFailure(new Error(t))),this.states)}resolveStatesSafely(){try{return this.resolveStates()}catch(t){return this.deps.reportFailure(t),null}}async discoverState(t){if(t.registered)return{state:t,status:"skip"};try{await this.connect(t);let r=await this.listTools(t);return{state:t,status:"ready",tools:r}}catch(r){return{state:t,status:"failed",failure:r}}}finalizeDiscovery(t){if(t.status!=="skip"){if(t.status==="failed"){this.deps.reportFailure(t.failure);return}try{this.registerDiscoveredTools(t.state,t.tools)}catch(r){this.deps.reportFailure(r)}}}async beforeAgentStart(){let t=this.resolveStatesSafely();if(!t)return;let r=t.map(n=>this.discoverState(n));for(let n of r)this.finalizeDiscovery(await n)}async connect(t){if(!t.handle)try{t.handle=await this.deps.spawnClient(t)}catch(r){throw Wa(t.name,"connect",r)}}async listTools(t){if(!t.handle)throw new Error(`MCP server ${t.name} is not connected`);try{let{tools:r}=await t.handle.client.listTools();return r}catch(r){throw Wa(t.name,"list tools",r)}}discoveredTools(t,r){let n=new Map;for(let i of r){let o=NT(t,i.name);if(n.has(o))throw Wa(t.name,"register tools",new Error(`Duplicate MCP tool name: ${o}`));n.set(o,i)}return n}toolOwnedElsewhere(t,r){let n=this.registeredNames.get(r);return!!(n&&n!==t.name)}registerNewTool(t,r,n){try{this.registerTool(t,r,n)}catch(i){throw Wa(t.name,"register tools",i)}t.registeredToolNames.add(r),this.registeredNames.set(r,t.name)}registerDiscoveredTool(t,r,n){this.toolOwnedElsewhere(t,r)||t.registeredToolNames.has(r)||this.registerNewTool(t,r,n)}registerDiscoveredTools(t,r){for(let[n,i]of this.discoveredTools(t,r))this.registerDiscoveredTool(t,n,i);t.registered=!0}toolDescription(t,r){let n=r.description??"";return t.source.kind==="bundled"&&r.name==="worker_spawn"&&$a(this.deps.env)?fl(n):n}registerTool(t,r,n){if(!t.handle)throw new Error(`MCP server ${t.name} is not connected`);let i=I.Unsafe(n.inputSchema),o=t.handle;this.pi.registerTool({name:r,label:r,description:this.toolDescription(t,n),parameters:i,async execute(c,x,m){let T=await o.client.callTool({name:n.name,arguments:x},void 0,{...m?{signal:m}:{},timeout:192e4,maxTotalTimeout:192e4}),w=T.content.map(np);if(T.isError){let ue=w.map($=>$.type==="text"?$.text:"").filter(Boolean).join(`
|
|
88
|
+
`);throw new Error(ue||`${r} failed`)}return{content:w,details:void 0}}})}async shutdown(){let t=this.states??[];this.registeredNames.clear();for(let r of t){if(r.registered=!1,r.registeredToolNames.clear(),r.handle)try{await r.handle.transport.close()}catch{}r.handle=null}}};async function mp(e,t){new Ws(e,t).install()}var LT="openai-codex",DT=["primary","secondary"];function kT(e){let t=new Map;for(let[r,n]of Object.entries(e))t.set(r.toLowerCase(),n);return t}function za(e,t){let r=e.get(t);if(r===void 0||r.trim()==="")return null;let n=Number(r);return Number.isFinite(n)?n:null}function MT(e,t,r){let n=za(e,`x-codex-${t}-reset-at`);if(n!==null&&n>0)return n;let i=za(e,`x-codex-${t}-reset-after-seconds`);return i===null?null:Math.floor(r/1e3)+i}function FT(e,t,r){let n=za(e,`x-codex-${t}-window-minutes`);if(n===null||n<=0)return null;let i=za(e,`x-codex-${t}-used-percent`);if(i===null||i<0||i>100)return null;let o=MT(e,t,r);return o===null?null:{type:`codex_${t}`,utilization:i/100,resetsAt:o}}function hp(e,t){let r=kT(e),n=[];for(let i of DT){let o=FT(r,i,t.nowMs);o&&n.push(o)}return n.length===0?null:{provider:LT,planType:r.get("x-codex-plan-type")??null,windows:n}}function PT(e){let t=e?.headers;return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function gp(e){return t=>{t.on("after_provider_response",r=>{try{let n=PT(r);if(!n)return;let i=hp(n,{nowMs:Date.now()});if(!i)return;e(typeof r.status=="number"?{...i,status:r.status}:i)}catch{}})}}function bp(e,t){return r=>{r.on("turn_end",(n,i)=>{if(!n?.toolResults?.length)return;let o=qT(e);o&&(t?.(o),i.abort())})}}function qT(e){try{return e()}catch{return null}}function Xa(e){return e!==null&&typeof e=="object"?e:void 0}function HT(e){let t=Xa(e);if(t?.type!=="tool_result"||!Array.isArray(t.content))return;let r=[],n=[];for(let i of t.content)(Xa(i)?.type==="image"?r:n).push(i);r.length&&(t.content=[...r,...n])}function Ep(e){e.on("before_provider_request",(t,r)=>{if(r.model?.api!=="anthropic-messages")return;let n=Xa(t.payload)?.messages;if(Array.isArray(n)){for(let i of n){let o=Xa(i)?.content;Array.isArray(o)&&o.forEach(HT)}return t.payload}})}function Mn(e){return e.stopReason==="error"||e.stopReason==="aborted"}function yp(e){return e.stopReason==="aborted"?"killed":Mn(e)?"failed":"completed"}function Tp(e){return Mn(e)?e.errorMessage||e.output||"(no output)":e.output||"(no output)"}function _p(e,t){return{description:e.description,prompt:e.prompt,subagentType:e.subagent_type,output:"",usage:Nl(),backend:e.backend,stopReason:"error",errorMessage:t instanceof Error?t.message:String(t)}}async function BT(e,t,r){let n=new Array(e.length),i=0,o=async()=>{for(;;){let x=i++;if(x>=e.length)return;n[x]=await r(e[x],x)}},c=Array.from({length:Math.min(t,e.length)},o);return await Promise.all(c),n}async function jT(e,t,r,n){return BT(e,8,(i,o)=>t(i,o,r,n?.forChild(o,i)))}async function GT(e,t,r,n){let i=[],o="",c=0;for(let x of e){let m={...x,prompt:x.prompt.replace(/\{previous\}/g,o)},T=await t(m,c,r,n?.forChild(c,m));if(c++,i.push(T),Mn(T))break;o=T.output}return i}function VT(e){let t=e.filter(n=>!Mn(n)).length,r=e.map(n=>{let i=Mn(n)?"failed":"completed";return`### [${n.description}] ${i}
|
|
89
|
+
|
|
90
|
+
${Tp(n)}`});return`Parallel: ${t}/${e.length} succeeded
|
|
91
|
+
|
|
92
|
+
${r.join(`
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
`)}`}function zs(e,t){let r={mode:e,results:t,usage:Al(t)};if(e==="parallel")return{content:[{type:"text",text:VT(t)}],details:r};let n=t.at(-1);return{content:[{type:"text",text:(n&&Mn(n)?"Agent failed: ":"")+(n?Tp(n):"(no output)")}],details:r}}async function Ip(e,t,r,n){if(e.mode==="parallel")return zs("parallel",await jT(e.tasks,t,r,n));if(e.mode==="chain")return zs("chain",await GT(e.tasks,t,r,n));let i=e.tasks[0],o=await t(i,0,r,n?.forChild(0,i));return zs("single",[o])}var vp=I.Object({path:I.String(),device:I.Optional(I.String()),write:I.Optional(I.Boolean())});function KT(e){return{model:I.Optional(I.String({description:e.model})),backend:I.Optional(I.Union([I.Literal("claude"),I.Literal("pi")],{description:e.backend})),clean:I.Optional(I.Boolean({description:rl})),files:I.Optional(I.Array(I.String(),{description:nl})),allow:I.Optional(I.Array(vp,{description:il}))}}var Sp=I.Object({description:I.String(),prompt:I.String(),subagent_type:I.String(),model:I.Optional(I.String()),backend:I.Optional(I.Union([I.Literal("claude"),I.Literal("pi")])),clean:I.Optional(I.Boolean()),files:I.Optional(I.Array(I.String())),allow:I.Optional(I.Array(vp))});function $T(e){return I.Object({description:I.Optional(I.String({description:"Short description for single mode."})),prompt:I.Optional(I.String({description:"Complete prompt for single mode."})),subagent_type:I.Optional(I.String({description:e.subagentType})),...KT(e),parallel:I.Optional(I.Array(Sp,{minItems:1,maxItems:8,description:el})),chain:I.Optional(I.Array(Sp,{minItems:1,maxItems:8,description:tl})),run_in_background:I.Optional(I.Boolean({description:"Return agent_id immediately; results arrive later. Default: wait for completion."}))})}var WT=I.Object({agent_id:I.String({description:"The agent_id returned when the subagent was started."})});async function zT(e,t){let r=e.parentEnv.CORTEX_SESSION_ID;return!t||!r||!e.sessionAllowedPaths?[]:e.sessionAllowedPaths(r).catch(()=>[])}function XT(e,t,r){if(!e.onUsage||!t.provider||t.usage.turns===0)return;let n=e.account&&e.homeAgentDir&&t.provider===r;try{e.onUsage({provider:t.provider,model:t.model??"",usage:t.usage,description:t.description,...n?{connection:e.account}:{}})}catch{}}function QT(e,t,r){let n=t.model?.provider??null,i=r.provider??n;return e.homeAgentDir&&i!==n?e.homeAgentDir:e.agentDir}function YT(e){return e.model?{id:e.model.id,provider:e.model.provider}:null}function Np(e,t){return e.backend??t.backend??"pi"}function ZT(e,t,r,n){return(i,o,c,x)=>{let m=Ea(r,i.subagent_type),T=Np(i,m),w=`${n}#${o}`,ue=async()=>{let $=i.clean?await Rl(i,{parentWorkspace:e.parentWorkspace,runId:n,index:o}):null,f={cwd:$??e.cwd,workspace:$},Pe=dl(i,m,e.model&&{model:e.model.id,provider:e.model.provider}),le=T==="pi"?await Ll({task:i,role:m,...f,agentDir:QT(t,e,Pe),parentEnv:t.parentEnv,model:Pe,createSession:t.createSession,childExtensions:t.childExtensions,signal:c,forward:x}):await e_(e,t,{task:i,role:m,backend:T,ref:w,...f},c);return Ol(le,$)};return JT(t,{task:i,backend:T,ref:w,sessionProvider:e.model?.provider??null},c,ue)}}async function JT(e,{task:t,backend:r,ref:n,sessionProvider:i},o,c){let x=m=>{try{e.onEvent?.(xl(n,t,r,m))}catch{}};try{let m=await c();return r==="pi"&&XT(e,m,i),x(o?.aborted?"killed":yp(m)),m}catch(m){if(x(o?.aborted?"killed":"failed"),o?.aborted)throw m;return _p(t,m)}}function e_(e,t,r,n){if(!t.runForeignSubagent)throw new Error(`Delegating to the ${r.backend} backend is unavailable in this session.`);let i=e.model;return t.runForeignSubagent({...r,parent:{backend:"pi",model:i?.id??null,provider:i?.provider??null,env:t.parentEnv},signal:n,onNotice:t.onEvent})}function Xs(e){return{content:[{type:"text",text:e}],details:void 0}}async function t_(e,t,r,n){if(!e.startBackgroundSubagent)throw new Error("run_in_background is unavailable in this session.");let{id:i}=await e.startBackgroundSubagent({invocation:t,toolCallId:n,bindNoticeSink:(o,c)=>({runChild:r({...e,onEvent:o,onUsage:c}),channel:ss(n,o,t.mode==="chain")}),sessionId:e.parentEnv.CORTEX_SESSION_ID||null,conduit:e.parentEnv.SLACK_CHANNEL||e.parentEnv.FEISHU_CHANNEL||void 0,project:e.parentEnv.CORTEX_PROJECT||void 0});return Xs(`Agent ${i} started in the background. Its result will be delivered to you when it is ready. Stop it early with agent_stop("${i}").`)}function r_(e){return async(t,r,n,i,o)=>{e.ensureRoles();let c=e.parentEnv[El]||null,x=await zT(e,c),m=Cl(al(r),{cwd:o.cwd,parentWorkspace:c,parentAllowed:x}),T=ba(e.rolesDir);for(let $ of m.tasks)Ea(T,$.subagent_type);let w={cwd:o.cwd,model:YT(o),parentWorkspace:c};pl(e.checkModel,m.tasks,$=>Np($,Ea(T,$.subagent_type)),w.model&&{backend:"pi",provider:w.model.provider,model:w.model.id});let ue=$=>ZT(w,$,T,t);return r.run_in_background?t_(e,m,ue,t):Ip(m,ue(e),n,ss(t,e.onEvent,m.mode==="chain"))}}function Ap(e,t={}){let r=sl(t);return{name:"agent",label:"Agent",description:Ju+r.catalog,parameters:$T(r),execute:r_(e)}}function Cp(e){let t=e.stopBackgroundSubagent;return t?{name:"agent_stop",label:"AgentStop",description:"Stop a subagent and discard its output; not for collecting results.",parameters:WT,async execute(r,n){let i=await t(n.agent_id);return Xs(i?`Agent ${n.agent_id} is now ${i}.`:`No such agent run: ${n.agent_id}.`)}}:null}var oh=is(Qm(),1),sh=is(nh(),1),ih=5,ch=3e4,pS=5*1024*1024,ah=1e5,dS=`
|
|
97
|
+
|
|
98
|
+
[Content truncated: WebFetch size limit exceeded.]`,xS=new Set([301,302,303,307,308]),mS=["script","style","noscript","iframe"],hS="[Embedded image omitted]",gS=I.Object({url:I.String({description:"The HTTP or HTTPS URL to fetch."}),prompt:I.Optional(I.String({description:"Compatibility-only; ignored. Returns content without summarizing."}))});function uh(e){let t;try{t=new URL(e)}catch{throw new Error("WebFetch requires a valid URL.")}if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Error("WebFetch only supports HTTP and HTTPS URLs.");return t}function bS(e){let t=new AbortController,r=!1,n=()=>t.abort(e?.reason);e?.aborted?n():e?.addEventListener("abort",n,{once:!0});let i=setTimeout(()=>{r=!0,t.abort()},ch);return{signal:t.signal,didTimeout:()=>r,dispose:()=>{clearTimeout(i),e?.removeEventListener("abort",n)}}}function Mo(e){e.body?.cancel()?.catch(()=>{})}function ES(e,t){let r=e.headers.get("location");if(!r)throw new Error("WebFetch received a redirect without a Location header.");let n;try{n=new URL(r,t).toString()}catch{throw new Error(`WebFetch received an invalid redirect target: ${r}`)}return uh(n)}async function yS(e,t){let r=e;for(let n=0;;n+=1){let i=await fetch(r.toString(),{redirect:"manual",signal:t});if(!xS.has(i.status))return i;if(n>=ih)throw Mo(i),new Error(`WebFetch redirect limit exceeded (${ih}).`);try{r=ES(i,r)}finally{Mo(i)}}}function lh(e,t){throw Mo(e),new Error(t)}function TS(e,t){let r=t.startsWith("text/")?"text":"binary";return lh(e,`WebFetch rejected unsupported ${r} content-type: ${t}.`)}function _S(e){let t=e.headers.get("content-type");if(!t)return lh(e,"WebFetch response is missing Content-Type.");let r=t.split(";",1)[0].trim().toLowerCase();if(r==="text/html")return"html";let n=r==="application/json"||r.startsWith("application/")&&r.endsWith("+json");return r==="text/plain"||n?"text":TS(e,r)}async function IS(e){let t=new TextDecoder,r="",n=0;for(;;){let{done:i,value:o}=await e.read();if(i)return{text:r+t.decode(),truncated:!1};let c=pS-n;if(o.byteLength>c)return r+=t.decode(o.subarray(0,c),{stream:!0})+t.decode(),await e.cancel().catch(()=>{}),{text:r,truncated:!0};r+=t.decode(o,{stream:!0}),n+=o.byteLength}}async function wS(e){if(!e.body)return{text:"",truncated:!1};let t=e.body.getReader();try{return await IS(t)}finally{t.releaseLock()}}function SS(e){let t=new oh.default({headingStyle:"atx",bulletListMarker:"-",codeBlockStyle:"fenced"});return t.use(sh.gfm),t.remove([...mS]),t.addRule("embedded-image",{filter:r=>r.nodeName==="IMG"&&/^\s*data:/i.test(r.getAttribute("src")??""),replacement:()=>hS}),t.turndown(e)}function vS(e,t){let r=Array.from(e),n=r.length>ah,i=n?r.slice(0,ah).join(""):e;return t||n?i+dS:i}async function NS(e,t){let r=uh(e),n=bS(t);try{let i=await yS(r,n.signal);if(!i.ok)throw Mo(i),new Error(`WebFetch HTTP ${i.status} ${i.statusText||"error"}.`);let o=_S(i),c=await wS(i),x=o==="html"?SS(c.text):c.text;return vS(x,c.truncated)}catch(i){throw n.didTimeout()?new Error(`WebFetch timed out after ${ch} ms.`):i}finally{n.dispose()}}var fh={name:"web_fetch",label:"WebFetch",description:"Fetch HTTP(S) content locally: HTML as Markdown, JSON/text unchanged. No summarization.",parameters:gS,async execute(e,t,r,n,i){return{content:[{type:"text",text:await NS(t.url,r)}],details:void 0}}};import{randomUUID as AS}from"node:crypto";var CS=3,RS="cortex-agent/pi-web-search",OS=new Set(["response.completed","response.done","response.incomplete"]),ph=new Set,LS=I.Object({query:I.String({description:"The search query to run."}),allowed_domains:I.Optional(I.Array(I.String({description:"Only include results from these domains."}))),blocked_domains:I.Optional(I.Array(I.String({description:"Exclude results from these domains."})))});function Wi(e,t){return`${e.trim().replace(/\/+$/,"")}${t}`}function dh(e){return`${e.provider}:${e.api}`}function xh(e){return new Error(`WebSearch unavailable for model "${e.id}" (api: ${e.api}); its provider does not expose server-side search for this API.`)}function zi(e,t,r){let n=new Headers(e.headers);for(let[i,o]of Object.entries(t.headers??{}))n.set(i,o);return n.has("accept")||n.set("accept",r),n.has("content-type")||n.set("content-type","application/json"),n.has("user-agent")||n.set("user-agent",RS),n}function Iu(e,t){return t.some(r=>e.has(r))}function DS(e,t){!t||Iu(e,["authorization","x-api-key","cf-aig-authorization"])||(t.startsWith("sk-ant-oat")?e.set("authorization",`Bearer ${t}`):e.set("x-api-key",t))}function mh(e,t){!t||Iu(e,["authorization","cf-aig-authorization"])||e.set("authorization",`Bearer ${t}`)}function kS(e,t){!t||Iu(e,["api-key","authorization"])||e.set("api-key",t)}function hh(e){let t=[`Search the web for: ${e.query}`,"Return a concise answer grounded in the search results and include source URLs."];return e.allowed_domains?.length&&t.push(`Only use these domains: ${e.allowed_domains.join(", ")}`),e.blocked_domains?.length&&t.push(`Do not use these domains: ${e.blocked_domains.join(", ")}`),t.join(`
|
|
99
|
+
`)}function MS(e,t){return{type:"web_search_20250305",name:"web_search",max_uses:CS,...t&&e.allowed_domains?.length?{allowed_domains:e.allowed_domains}:{},...t&&e.blocked_domains?.length?{blocked_domains:e.blocked_domains}:{}}}function gh(e,t,r){return{model:e.id,max_tokens:e.maxTokens,messages:[{role:"user",content:hh(t)}],tools:[MS(t,r)]}}function FS(e,t,r,n){let i=zi(e,t,"application/json");return DS(i,t.apiKey),i.has("anthropic-version")||i.set("anthropic-version","2023-06-01"),{url:Wi(e.baseUrl,"/v1/messages"),init:{method:"POST",headers:i,body:JSON.stringify(gh(e,r,n))},responseType:"anthropic"}}function PS(e,t,r,n){let i=zi(e,t,"application/json");return mh(i,t.apiKey),i.has("anthropic-version")||i.set("anthropic-version","2023-06-01"),{url:Wi(e.baseUrl,"/anthropic/v1/messages"),init:{method:"POST",headers:i,body:JSON.stringify(gh(e,r,n))},responseType:"anthropic"}}function qS(){return{type:"web_search"}}function wu(e,t){return{model:e.id,input:[{role:"user",content:[{type:"input_text",text:hh(t)}]}],store:!1,stream:!0,tool_choice:"auto",tools:[qS()]}}function HS(e,t,r,n){let i=zi(e,t,"text/event-stream");return mh(i,t.apiKey),{url:Wi(e.baseUrl,"/responses"),init:{method:"POST",headers:i,body:JSON.stringify(wu(e,r))},responseType:"responses"}}function US(e,t,r,n){let i=zi(e,t,"text/event-stream");return kS(i,t.apiKey),{url:Wi(e.baseUrl,"/responses"),init:{method:"POST",headers:i,body:JSON.stringify(wu(e,r))},responseType:"responses"}}function BS(e,t){if(t)return t;let n=(e.get("authorization")??"").replace(/^Bearer\s+/i,"");if(!n)throw new Error("WebSearch authentication did not provide a bearer token.");return n}function jS(e,t){let r=e.get("chatgpt-account-id");if(r)return r;let n=Dl(t);if(n===null)throw new Error("WebSearch could not decode the Codex account token.");let i=kl(n);if(!i)throw new Error("WebSearch could not find an account ID in the Codex token.");return i}function GS(e,t,r,n){let i=zi(e,t,"text/event-stream"),o=BS(i,t.apiKey),c=AS();i.set("authorization",`Bearer ${o}`),i.set("chatgpt-account-id",jS(i,o)),i.set("openai-beta","responses=experimental"),i.set("originator","pi"),i.set("session-id",c),i.set("x-client-request-id",c);let x={...wu(e,r),instructions:"Use server-side web search and cite every source URL.",text:{verbosity:"low"},include:["reasoning.encrypted_content"],prompt_cache_key:c,parallel_tool_calls:!0};return{url:Wi(e.baseUrl,"/codex/responses"),init:{method:"POST",headers:i,body:JSON.stringify(x)},responseType:"responses"}}var VS={"anthropic-messages":{buildRequest:FS,sendsDomainFields:!0},"openai-responses":{buildRequest:HS,sendsDomainFields:!1},"azure-openai-responses":{buildRequest:US,sendsDomainFields:!1},"openai-codex-responses":{buildRequest:GS,sendsDomainFields:!1}},KS={buildRequest:PS,sendsDomainFields:!0};function $S(e){return e.provider==="deepseek"&&e.api==="openai-completions"?KS:VS[e.api]??null}function Su(e){let t=new Set,r=[e];for(;r.length>0;){let n=r.shift();if(Array.isArray(n)){r.push(...n);continue}if(!n||typeof n!="object")continue;let i=n;typeof i.url=="string"&&/^https?:\/\//i.test(i.url)&&t.add(i.url),r.push(...Object.values(i))}return[...t]}function WS(e){if(!e||typeof e!="object")return[];let t=e;return typeof t.query=="string"?[t.query]:Array.isArray(t.queries)?t.queries.filter(r=>typeof r=="string"):[]}function vu(e){let t=new Set,r=[e];for(;r.length>0;){let n=r.shift();if(Array.isArray(n)){r.push(...n);continue}if(!n||typeof n!="object")continue;let i=n,o=i.type==="server_tool_use"?i.input:i.type==="web_search_call"?i.action:void 0;for(let c of WS(o))t.add(c);r.push(...Object.values(i))}return[...t]}function zS(e){return(e.match(/https?:\/\/[^\s<>{}\[\]"']+/gi)??[]).map(r=>r.replace(/[),.;:!?]+$/,""))}function XS(e){return Array.isArray(e.content)?e.content.filter(t=>!!t&&typeof t=="object").filter(t=>t.type==="text"&&typeof t.text=="string").map(t=>String(t.text)).join(`
|
|
100
|
+
`):""}function bh(e){let t=[],r=[e];for(;r.length>0;){let n=r.shift();if(Array.isArray(n)){r.push(...n);continue}if(!n||typeof n!="object")continue;let i=n;i.type==="output_text"&&typeof i.text=="string"&&t.push(i.text),r.push(...Object.values(i))}return t}function QS(e){let t=[];for(let r of e.split(/\r?\n/)){if(!r.startsWith("data:"))continue;let n=r.slice(5).trim();if(!(!n||n==="[DONE]"))try{t.push(JSON.parse(n))}catch{throw new Error("WebSearch received malformed provider event data.")}}return t}function Fo(e){return e&&typeof e=="object"?e:void 0}function YS(e){let t=Fo(e);if(!t)return typeof e=="string"?e:"";let r=Fo(t.error)??t,n=typeof r.code=="string"?r.code:"",i=typeof r.message=="string"?r.message:"";if(n||i)return[n,i].filter(Boolean).join(": ");let o=Fo(t.incomplete_details);return typeof o?.reason=="string"?o.reason:JSON.stringify(e).slice(0,500)}function Po(e,t){let r=YS(t);throw new Error(`WebSearch Responses ${e}${r?`: ${r}`:""}`)}function Eh(e,t){let r=typeof e.status=="string"?e.status:void 0;r==="completed"&&!e.error||(r||Po(`${t} has no successful terminal status`,e.error),Po(`${t} terminal status "${r}"`,e))}function ZS(e){e.type==="error"&&Po("stream error",e),e.type==="response.failed"&&Po("stream failed",e.response??e)}function JS(e){if(!(typeof e.type!="string"||!OS.has(e.type)))return Fo(e.response)??{}}function ev(e){let t;for(let r of e)ZS(r),t=JS(r)??t;if(!t)throw new Error("WebSearch Responses stream ended before a terminal response.");Eh(t,"stream")}function tv(e){ev(e);let t=e.filter(n=>n.type==="response.output_text.delta").map(n=>typeof n.delta=="string"?n.delta:"").join(""),r=bh(e).join(`
|
|
101
|
+
`);return{text:t||r,urls:Su(e),queries:vu(e)}}async function rv(e){let t=await e.json();return{text:XS(t),urls:Su(t),queries:vu(t)}}function nv(e){return e.replace(/^\uFEFF/,"").trimStart()}function iv(e,t){return t.startsWith("event:")||t.startsWith("data:")?!0:t.startsWith("{")||t.startsWith("[")?!1:e.toLowerCase().includes("text/event-stream")}function av(e){try{return JSON.parse(e)}catch{throw new Error("WebSearch received neither valid SSE nor JSON provider data.")}}async function ov(e){let t=e.headers.get("content-type")??"",r=nv(await e.text());if(iv(t,r))return tv(QS(r));let n=av(r);return Eh(n,"JSON payload"),{text:bh(n).join(`
|
|
102
|
+
`),urls:Su(n),queries:vu(n)}}function sv(e,t){let r=/(web[_ -]?search|tools?(?:\.\d+)?\.type)/i.test(t);return e===400&&r&&/unknown variant/i.test(t)}function cv(e,t){return e===400&&/(allowed_domains|blocked_domains)/i.test(t)}function yh(e,t,r){if(sv(e,t))throw ph.add(dh(r)),xh(r);let n=t.trim().slice(0,500);throw new Error(`WebSearch HTTP ${e}${n?`: ${n}`:""}`)}function uv(e,t){let r=e.text.trim();if(!r)throw new Error("WebSearch unavailable: the provider returned no search result.");let n=[...new Set([...e.urls,...zS(r)])];if(n.length===0)throw new Error("WebSearch provider response did not include a source URL.");let i=[...new Set(e.queries.map(c=>c.trim()).filter(Boolean))];if(i.length===0)throw new Error("WebSearch provider response did not include the executed query.");return`${r}${t?`
|
|
103
|
+
|
|
104
|
+
Domain filtering was applied through the query prompt after provider field rejection.`:""}
|
|
105
|
+
|
|
106
|
+
Queries:
|
|
107
|
+
${i.map(c=>`- ${c}`).join(`
|
|
108
|
+
`)}
|
|
109
|
+
|
|
110
|
+
Sources:
|
|
111
|
+
${n.map(c=>`- ${c}`).join(`
|
|
112
|
+
`)}`}async function lv(e,t){if(!e.modelRegistry)throw new Error("WebSearch unavailable: PI has no model registry.");let r=await e.modelRegistry.getApiKeyAndHeaders(t);if(r.ok===!1)throw new Error(`WebSearch authentication failed: ${r.error}`);return r}async function fv(e,t,r,n){let i=await fetch(e.url,{...e.init,signal:n});if(i.ok)return{response:i,degradedDomains:!1};let o=await i.text();return!t||!cv(i.status,o)?yh(i.status,o,r):{response:await fetch(t.url,{...t.init,signal:n}),degradedDomains:!0}}async function pv(e,t){return t==="anthropic"?rv(e):ov(e)}async function dv(e,t,r,n){let i=await fv(e,t,r,n);if(!i.response.ok){let c=await i.response.text();return yh(i.response.status,c,r)}let o=await pv(i.response,e.responseType);return uv(o,i.degradedDomains)}function xv(e){return!!e.allowed_domains?.length||!!e.blocked_domains?.length}async function mv(e,t,r){let n=r.model;if(!n)throw new Error("WebSearch unavailable: PI has no active model.");let i=$S(n);if(!i||ph.has(dh(n)))throw xh(n);let o=await lv(r,n),c=i.buildRequest(n,o,e,i.sendsDomainFields),x=i.sendsDomainFields&&xv(e)?i.buildRequest(n,o,e,!1):void 0;return dv(c,x,n,t)}var Th={name:"web_search",label:"WebSearch",description:"Search the web through the active model provider and return a concise answer with source URLs.",parameters:LS,async execute(e,t,r,n,i){return{content:[{type:"text",text:await mv(t,r,i)}],details:void 0}}};import{promises as qo}from"node:fs";import hv from"node:os";import Nu from"node:path";var gv=3e4,Jn=1024,bv=/^[A-Za-z0-9_-]+$/;function _h(e){let t=e.CORTEX_SESSION_ID;return!t||!bv.test(t)?Nu.join(hv.tmpdir(),"cortex-bash-output"):Nu.join(Wu,"outputs",t,"tool-results")}function Ih(e){let t=e.slice(0,Jn),r=t.lastIndexOf(`
|
|
113
|
+
`);return r>Jn/2?t.slice(0,r):t}function wh(e){let t=e.slice(-Jn),r=t.indexOf(`
|
|
114
|
+
`);return r>=0&&r<Jn/2?t.slice(r+1):t}async function Ev(e,t,r){let n=Nu.join(t,`${r.replace(/[^A-Za-z0-9_-]/g,"_")}.txt`);return await qo.mkdir(t,{recursive:!0}),await qo.writeFile(n,e),{file:n,head:Ih(e),tail:wh(e),bytes:Buffer.byteLength(e),lines:e.split(`
|
|
115
|
+
`).length}}async function yv(e){let t=await qo.open(e,"r");try{let{buffer:r,bytesRead:n}=await t.read(Buffer.alloc(Jn),0,Jn,0);return r.toString("utf8",0,n)}finally{await t.close()}}function Tv(e,t){let r=`Full output: ${t}]`,n=e.lastIndexOf(r),i=n<0?-1:e.lastIndexOf(`
|
|
116
|
+
|
|
117
|
+
[Showing `,n);return i<0?e:e.slice(0,i)+e.slice(n+r.length)}async function _v(e,t,r){let n=Ih(await yv(t)),i=wh(Tv(e,t)),o=r?.totalBytes??(await qo.stat(t)).size;return{file:t,head:n,tail:i,bytes:o,lines:r?.totalLines??0}}function Iv(e){return[`Output too large (${`${(e.bytes/1024).toFixed(1)}KB, ${e.lines.toLocaleString("en-US")} lines`}). Full output saved to: ${e.file}`,"","Preview (first 1KB):",e.head,"...","","Last 1KB:",e.tail].join(`
|
|
118
|
+
`)}function wv(e,t){let r=e.content.findIndex(i=>i.type==="text"),n=e.content.flatMap((i,o)=>i.type!=="text"?[i]:o===r?[{type:"text",text:t}]:[]);return{...e,content:n}}async function Sv(e,t,r){let n=e.content.map(o=>o.type==="text"?o.text:"").join("");if(n.length<=gv)return e;let i=e.details?.fullOutputPath;try{let o=i?await _v(n,i,e.details?.truncation):await Ev(n,t,r);return wv(e,Iv(o))}catch{return e}}function Sh(e,t){return{...e,execute:async(r,n,i,o,c)=>Sv(await e.execute(r,n,i,o,c),t,r)}}var vv={type:"string",description:"Clear, concise description of what this command does in active voice, in 5-10 words."};function Nv(e){let t=e.parameters,r={...t.properties,description:vv};return{...e,parameters:{...t,properties:r}}}async function Av(){return(await Xu()).createBashToolDefinition}function vh(e,t,r=Av){e.on("session_start",async(n,i)=>{if(!e.getActiveTools().includes("bash"))return;let{shellCommandPrefix:o,shellPath:c}=e.getSettings(),m=(await r())(i.cwd,{commandPrefix:o,shellPath:c});e.registerTool(Nv(Sh(m,t)))})}var Cv=I.Object({todos:I.Array(I.Object({content:I.String({description:"Task description (imperative form)."}),status:I.Union([I.Literal("pending"),I.Literal("in_progress"),I.Literal("completed")]),activeForm:I.String({description:"Present-continuous form shown when the task is in progress."})}))});function Rv(e){e.registerTool({name:"todo_write",label:"TodoWrite",description:"Track a multi-step task with a session checklist.",parameters:Cv,async execute(t,r){let n=r.todos.length,i=r.todos.filter(c=>c.status==="completed").length,o=r.todos.filter(c=>c.status==="in_progress").length;return{content:[{type:"text",text:`Todos updated: ${n} total, ${i} completed, ${o} in progress.`}],details:void 0}}})}function Ov(e,t){let r=ol({claudeModel:e.CORTEX_CLAUDE_MODEL,subagentClaudeModels:ul(e.CORTEX_SUBAGENT_CLAUDE_MODELS),subagentPiModels:ll(e.CORTEX_SUBAGENT_PI_MODELS)});try{return t.ensureRoles(),{roles:cl(ba(t.rolesDir)),models:r}}catch{return{models:r}}}function Lv(e,t){return[{name:"cortex-image-first",factory:Ep},{name:"cortex-mcp-bridge",factory:r=>mp(r,xp(e,[],t))},{name:"cortex-tool-shims",factory:r=>Pv(r,e,{openBundledMcpServer:t})},{name:"cortex-described-bash",factory:r=>vh(r,_h(e))}]}function Dv(e){if(!e.onProviderQuota)return()=>null;let t={name:"cortex-quota-probe",factory:gp(e.onProviderQuota)};return(r,n)=>r&&n===r?t:null}function kv(e){let t=Dv(e),r=e.quotaStop?{name:"cortex-quota-stop",factory:bp(e.quotaStop)}:null;return(n,i)=>{let o=!!n&&i===n;return[t(n,i),o?r:null].filter(c=>c!==null)}}function Mv(e,t,r){let n=t.PI_CODING_AGENT_DIR??Yu,i=t[yl],o=null,c=kv(r),x={agentDir:n,...i?{homeAgentDir:i,account:t.CORTEX_CONNECTION}:{},ensureRoles:()=>Zu({legacyDir:Nh.join(n,"agents")}),createSession:r.createChildSession??vl,childExtensions:(m,T)=>[...Lv(m,r.openBundledMcpServer),...c(o,T)],parentEnv:t,onEvent:r.onSubagentEvent,onUsage:r.onSubagentUsage,runForeignSubagent:r.runForeignSubagent,startBackgroundSubagent:r.startBackgroundSubagent,stopBackgroundSubagent:r.stopBackgroundSubagent,checkModel:r.checkDelegatedModel,sessionAllowedPaths:r.sessionAllowedPaths};e.on("session_start",(m,T)=>{o=T.model?.provider??null,e.registerTool(Ap(x,Ov(t,x)));let w=Cp(x);w&&e.registerTool(w)})}var Fv=[["web_fetch","WebFetch",e=>e.registerTool(fh)],["web_search","WebSearch",e=>e.registerTool(Th)],["todo_write","TodoWrite",Rv]];function Pv(e,t,r={}){let n=$s(t),i=o=>n===null||n.has(o);$a(t)&&Mv(e,t,r);for(let[,o,c]of Fv)i(o)&&c(e)}export{LT as a,lp as b,_F as c,IF as d,xp as e,mp as f,gp as g,bp as h,Ep as i,yp as j,_p as k,Ip as l,_h as m,vh as n,Lv as o,Pv as p};
|
|
119
|
+
/*! Bundled license information:
|
|
120
|
+
|
|
121
|
+
@mixmark-io/domino/lib/style_parser.js:
|
|
122
|
+
(**
|
|
123
|
+
* @license
|
|
124
|
+
* Copyright Google LLC All Rights Reserved.
|
|
125
|
+
*
|
|
126
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
127
|
+
* found in the LICENSE file at https://angular.io/license
|
|
128
|
+
*)
|
|
129
|
+
*/
|