allyhub 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +138 -0
- package/NOTICE +2 -2
- package/client.d.ts +12 -0
- package/dist/args.js +1 -1
- package/dist/audio-text.js +1 -1
- package/dist/cloud-hearing.js +1 -1
- package/dist/command.js +1 -1
- package/dist/commands/add.js +4 -4
- package/dist/commands/align.js +1 -1
- package/dist/commands/audio.js +1 -1
- package/dist/commands/auth.js +4 -4
- package/dist/commands/check.js +1 -1
- package/dist/commands/cloud-tools.js +1 -1
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/dev.js +1 -1
- package/dist/commands/doctor.js +3 -3
- package/dist/commands/frames/common.js +1 -1
- package/dist/commands/frames/compare.js +1 -1
- package/dist/commands/frames/cuts.js +1 -1
- package/dist/commands/frames/doc.js +2 -0
- package/dist/commands/frames/file.js +1 -1
- package/dist/commands/frames/page.js +1 -1
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames/sheet.js +1 -1
- package/dist/commands/frames.js +9 -8
- package/dist/commands/inspect/combos.js +1 -1
- package/dist/commands/inspect/common.js +1 -1
- package/dist/commands/inspect/contrast.js +1 -1
- package/dist/commands/inspect/facts.js +1 -1
- package/dist/commands/inspect/fidelity.js +1 -1
- package/dist/commands/inspect/joins.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/inspect/motion.js +1 -1
- package/dist/commands/inspect/sheet.js +1 -1
- package/dist/commands/inspect/timeline.js +1 -1
- package/dist/commands/model.js +1 -1
- package/dist/commands/orgs.js +1 -1
- package/dist/commands/reference-text.js +1 -1
- package/dist/commands/reference.js +1 -1
- package/dist/commands/render.js +1 -1
- package/dist/commands/scenery-input.js +1 -1
- package/dist/commands/scenery-text.js +1 -1
- package/dist/commands/scenery.js +1 -1
- package/dist/commands/sheet.js +7 -7
- package/dist/commands/site.js +3 -3
- package/dist/commands/skills.js +1 -1
- package/dist/commands/slides.js +1 -1
- package/dist/commands/voice.js +1 -1
- package/dist/commands/words-text.js +1 -1
- package/dist/commands/words.js +1 -1
- package/dist/help.js +4 -3
- package/dist/lent/model-three.d.ts +2 -2
- package/dist/lent/model.d.ts +2 -2
- package/dist/lent/scenery-host-layer.d.ts +2 -2
- package/dist/main.js +4 -4
- package/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +2 -0
- package/dist/node_modules/@allyhub/audio/package.json +17 -0
- package/dist/node_modules/@allyhub/browser/dist/browser.js +2 -0
- package/dist/node_modules/@allyhub/browser/package.json +13 -0
- package/dist/node_modules/@allyhub/build/dist/code.d.ts +26 -0
- package/dist/node_modules/@allyhub/build/dist/code.js +4 -0
- package/dist/node_modules/@allyhub/build/dist/content.d.ts +69 -0
- package/dist/node_modules/@allyhub/build/dist/content.js +3 -0
- package/dist/node_modules/@allyhub/build/dist/data.d.ts +13 -0
- package/dist/node_modules/@allyhub/build/dist/data.js +3 -0
- package/dist/node_modules/@allyhub/build/dist/files.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/fonts.d.ts +26 -0
- package/dist/node_modules/@allyhub/build/dist/fonts.js +4 -0
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +21 -0
- package/dist/node_modules/@allyhub/build/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +18 -0
- package/dist/node_modules/@allyhub/build/dist/matrix.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/media.d.ts +10 -0
- package/dist/node_modules/@allyhub/build/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/messages.d.ts +48 -0
- package/dist/node_modules/@allyhub/build/dist/messages.js +3 -0
- package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +62 -0
- package/dist/node_modules/@allyhub/build/dist/meta-worker.js +5 -0
- package/dist/node_modules/@allyhub/build/dist/meta.d.ts +24 -0
- package/dist/node_modules/@allyhub/build/dist/meta.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +6 -0
- package/dist/node_modules/@allyhub/build/dist/model-info.js +4 -0
- package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +42 -0
- package/dist/node_modules/@allyhub/build/dist/plugin.js +13 -0
- package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +115 -0
- package/dist/node_modules/@allyhub/build/dist/prepare.js +4 -0
- package/dist/node_modules/@allyhub/build/dist/references.d.ts +6 -0
- package/dist/node_modules/@allyhub/build/dist/references.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/scan.d.ts +50 -0
- package/dist/node_modules/@allyhub/build/dist/scan.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/sheet-code.d.ts +34 -0
- package/dist/node_modules/@allyhub/build/dist/sheet-code.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/takes.d.ts +33 -0
- package/dist/node_modules/@allyhub/build/dist/takes.js +3 -0
- package/dist/node_modules/@allyhub/build/dist/types.d.ts +11 -0
- package/dist/node_modules/@allyhub/build/dist/types.js +6 -0
- package/dist/node_modules/@allyhub/build/dist/vite.js +3 -0
- package/dist/node_modules/@allyhub/build/package.json +13 -0
- package/dist/node_modules/@allyhub/chart/dist/chart-file.d.ts +11 -0
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +33 -0
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +3 -0
- package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +206 -0
- package/dist/node_modules/@allyhub/chart/dist/chart.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/embedded.d.ts +15 -0
- package/dist/node_modules/@allyhub/chart/dist/embedded.js +3 -0
- package/dist/node_modules/@allyhub/chart/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub/chart/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/svg.d.ts +22 -0
- package/dist/node_modules/@allyhub/chart/dist/svg.js +2 -0
- package/dist/node_modules/@allyhub/chart/package.json +14 -0
- package/dist/node_modules/@allyhub/check/dist/cache.js +2 -0
- package/dist/node_modules/@allyhub/check/dist/check.js +4 -0
- package/dist/node_modules/@allyhub/check/dist/generated.js +2 -0
- package/dist/node_modules/@allyhub/check/dist/plans.js +3 -0
- package/dist/node_modules/@allyhub/check/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/check/package.json +13 -0
- package/dist/node_modules/@allyhub/cloud/dist/blobs.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/call.js +5 -0
- package/dist/node_modules/@allyhub/cloud/dist/catalog.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/config.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +3 -0
- package/dist/node_modules/@allyhub/cloud/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/keychain.js +5 -0
- package/dist/node_modules/@allyhub/cloud/dist/records.js +4 -0
- package/dist/node_modules/@allyhub/cloud/dist/signin.js +4 -0
- package/dist/node_modules/@allyhub/cloud/dist/sites.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/token.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/uploads.js +3 -0
- package/dist/node_modules/@allyhub/cloud/dist/voice.js +2 -0
- package/dist/node_modules/@allyhub/cloud/package.json +13 -0
- package/dist/node_modules/@allyhub/components/package.json +12 -0
- package/dist/node_modules/@allyhub/dev-server/dist/background.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/card.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/exports.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/paths.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/reach.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +6 -0
- package/dist/node_modules/@allyhub/dev-server/dist/sound.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/tree.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/validate.js +3 -0
- package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -0
- package/dist/node_modules/@allyhub/dev-server/package.json +13 -0
- package/dist/node_modules/@allyhub/doc/dist/chart.d.ts +65 -0
- package/dist/node_modules/@allyhub/doc/dist/chart.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/color.d.ts +6 -0
- package/dist/node_modules/@allyhub/doc/dist/color.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/columns.d.ts +6 -0
- package/dist/node_modules/@allyhub/doc/dist/columns.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/component.d.ts +27 -0
- package/dist/node_modules/@allyhub/doc/dist/component.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/docx.d.ts +39 -0
- package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -0
- package/dist/node_modules/@allyhub/doc/dist/html.d.ts +49 -0
- package/dist/node_modules/@allyhub/doc/dist/html.js +91 -0
- package/dist/node_modules/@allyhub/doc/dist/index.d.ts +13 -0
- package/dist/node_modules/@allyhub/doc/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/markdown.d.ts +13 -0
- package/dist/node_modules/@allyhub/doc/dist/markdown.js +3 -0
- package/dist/node_modules/@allyhub/doc/dist/math.d.ts +11 -0
- package/dist/node_modules/@allyhub/doc/dist/math.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/model.d.ts +280 -0
- package/dist/node_modules/@allyhub/doc/dist/model.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/paper.d.ts +39 -0
- package/dist/node_modules/@allyhub/doc/dist/paper.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/parse.d.ts +24 -0
- package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -0
- package/dist/node_modules/@allyhub/doc/dist/patch.js +11 -0
- package/dist/node_modules/@allyhub/doc/dist/write.d.ts +18 -0
- package/dist/node_modules/@allyhub/doc/dist/write.js +65 -0
- package/dist/node_modules/@allyhub/doc/package.json +17 -0
- package/dist/node_modules/@allyhub/export/dist/batch.js +4 -0
- package/dist/node_modules/@allyhub/export/dist/deck-fonts.js +2 -0
- package/dist/node_modules/@allyhub/export/dist/deck-pptx.js +2 -0
- package/dist/node_modules/@allyhub/export/dist/export.js +7 -0
- package/dist/node_modules/@allyhub/export/dist/names.js +2 -0
- package/dist/node_modules/@allyhub/export/package.json +13 -0
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +2520 -0
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +2741 -0
- package/dist/node_modules/@allyhub/formats/package.json +15 -0
- package/dist/node_modules/@allyhub/jobs/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/jobs/dist/jobs.js +3 -0
- package/dist/node_modules/@allyhub/jobs/dist/show.js +2 -0
- package/dist/node_modules/@allyhub/jobs/package.json +14 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/cut-sheet.js +46 -0
- package/dist/node_modules/@allyhub/measure/dist/cuts.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/facts.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/fidelity.js +3 -0
- package/dist/node_modules/@allyhub/measure/dist/flat.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/loop.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/overlay.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/recording-report.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/reference/folder.js +4 -0
- package/dist/node_modules/@allyhub/measure/dist/reference/piece.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/reference/sections.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/reference/sets.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/reference/text.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/reference/video.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/seams.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/sound-measures.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/sound-report.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/still.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/version-voice.js +2 -0
- package/dist/node_modules/@allyhub/measure/package.json +13 -0
- package/dist/node_modules/@allyhub/media/dist/asr/parakeet.js +7 -0
- package/dist/node_modules/@allyhub/media/dist/asr/transcribe.d.ts +50 -0
- package/dist/node_modules/@allyhub/media/dist/asr/words.d.ts +7 -0
- package/dist/node_modules/@allyhub/media/dist/cache.js +2 -0
- package/dist/node_modules/@allyhub/media/dist/ocr/text.js +4 -0
- package/dist/node_modules/@allyhub/media/dist/sheet.d.ts +67 -0
- package/dist/node_modules/@allyhub/media/dist/tools.d.ts +35 -0
- package/dist/node_modules/@allyhub/media/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/media/dist/vision/index-media.js +3 -0
- package/dist/node_modules/@allyhub/media/dist/vision/run.js +4 -0
- package/dist/node_modules/@allyhub/media/dist/vision/runtime.js +8 -0
- package/dist/node_modules/@allyhub/media/dist/vision/types.d.ts +2 -0
- package/dist/node_modules/@allyhub/media/dist/worker-process.d.ts +3 -0
- package/dist/node_modules/@allyhub/media/dist/worker-process.js +2 -0
- package/dist/node_modules/@allyhub/media/package.json +13 -0
- package/dist/node_modules/@allyhub/model/NOTICE +26 -0
- package/dist/node_modules/@allyhub/model/dist/build-job.d.ts +34 -0
- package/dist/node_modules/@allyhub/model/dist/build-job.js +2 -0
- package/dist/node_modules/@allyhub/model/dist/build-worker.js +2 -0
- package/dist/node_modules/@allyhub/model/dist/build.js +3 -0
- package/dist/node_modules/@allyhub/model/dist/capabilities.d.ts +22 -0
- package/dist/node_modules/@allyhub/model/dist/capabilities.js +2 -0
- package/dist/node_modules/@allyhub/model/dist/data.js +2 -0
- package/dist/node_modules/@allyhub/model/dist/material-eval.js +2 -0
- package/dist/node_modules/@allyhub/model/dist/material-nodes.js +2 -0
- package/dist/node_modules/@allyhub/model/package.json +25 -0
- package/dist/node_modules/@allyhub/ooxml/package.json +26 -0
- package/dist/node_modules/@allyhub/project/dist/component-stills.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/console.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/deck-keys.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/deck-pool.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/digest.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/ledger.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/media-index.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/page.js +4 -0
- package/dist/node_modules/@allyhub/project/dist/says.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/session.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/stills.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/project/package.json +13 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +339 -0
- package/dist/node_modules/@allyhub/protocol/dist/app.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +119 -0
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +325 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +551 -0
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +290 -0
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +23 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +91 -0
- package/dist/node_modules/@allyhub/protocol/dist/jobs.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +187 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +191 -0
- package/dist/node_modules/@allyhub/protocol/dist/registry.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +297 -0
- package/dist/node_modules/@allyhub/protocol/dist/sites.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +417 -0
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +14 -0
- package/dist/node_modules/@allyhub/protocol/dist/sources.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +195 -0
- package/dist/node_modules/@allyhub/protocol/dist/teams.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +477 -0
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/protocol/package.json +14 -0
- package/dist/node_modules/@allyhub/registry/dist/polyhaven-client.js +3 -0
- package/dist/node_modules/@allyhub/registry/dist/registry.js +2 -0
- package/dist/node_modules/@allyhub/registry/package.json +13 -0
- package/dist/node_modules/@allyhub/render/dist/composite.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/doc/drawn.js +27 -0
- package/dist/node_modules/@allyhub/render/dist/doc/index.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/doc/pages.js +32 -0
- package/dist/node_modules/@allyhub/render/dist/doc/print.js +41 -0
- package/dist/node_modules/@allyhub/render/dist/encode.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/exports.js +3 -0
- package/dist/node_modules/@allyhub/render/dist/ffmpeg.js +4 -0
- package/dist/node_modules/@allyhub/render/dist/footage.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/junction.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/look.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/parts.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/post-probe.js +5 -0
- package/dist/node_modules/@allyhub/render/dist/post.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/render.js +3 -0
- package/dist/node_modules/@allyhub/render/dist/segments.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/sound.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/stills.js +2 -0
- package/dist/node_modules/@allyhub/render/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/render/package.json +17 -0
- package/dist/node_modules/@allyhub/runtime/dist/captions.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/clock.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/console.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/embed.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/env.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/facade.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/footage.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/frame.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/runtime/dist/locate.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/measure.js +3 -0
- package/dist/node_modules/@allyhub/runtime/dist/mix-plan.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/music.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/output.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/piece.js +3 -0
- package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/player/cutout.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/player/player.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/reads.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/sound.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/speech.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/stage-kit.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/takes.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/transitions.js +2 -0
- package/dist/node_modules/@allyhub/runtime/package.json +21 -0
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +10 -0
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +38 -0
- package/dist/node_modules/@allyhub/runtimes/dist/download.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +3 -0
- package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +12 -0
- package/dist/node_modules/@allyhub/runtimes/dist/node-program.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +84 -0
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +4 -0
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +72 -0
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +4 -0
- package/dist/node_modules/@allyhub/runtimes/package.json +18 -0
- package/dist/node_modules/@allyhub/runtimes/pins/pdfjs-dist/package-lock.json +275 -0
- package/dist/node_modules/@allyhub/runtimes/pins/pdfjs-dist/package.json +11 -0
- package/dist/node_modules/@allyhub/scaffold/dist/index.js +16 -0
- package/dist/node_modules/@allyhub/scaffold/package.json +13 -0
- package/dist/node_modules/@allyhub/scenery/package.json +13 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +21 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/apply.d.ts +59 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/digest.d.ts +14 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/format.d.ts +63 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.d.ts +63 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.js +138 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +85 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +6 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/commands.d.ts +54 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/commands.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.d.ts +47 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/focus-pass.js +246 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/glass.d.ts +39 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/glass.js +71 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/idbuffer.d.ts +35 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/inventory.d.ts +18 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/inventory.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +51 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.d.ts +6 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.js +3 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/queries.d.ts +106 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/queries.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +58 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/state.d.ts +110 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/types.d.ts +239 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/contacts.d.ts +45 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.d.ts +86 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/health.d.ts +10 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.d.ts +110 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.d.ts +17 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.d.ts +11 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +3 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/bake.d.ts +53 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/bake.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/draw.d.ts +42 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/draw.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/files.d.ts +45 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/page.d.ts +127 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/page.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/props.d.ts +23 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +147 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/inventory.d.ts +5 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.d.ts +5 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/view.d.ts +10 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/screen-light.d.ts +58 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/screen-light.js +156 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +128 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/viewer.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/package.json +29 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/charts.d.ts +204 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/page.d.ts +83 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/page.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/rules.d.ts +170 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/rules.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/styles.d.ts +117 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +362 -0
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/arrange.d.ts +68 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +82 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +52 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/diff.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/edit.d.ts +154 -0
- package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +19 -0
- package/dist/node_modules/@allyhub/sheet/dist/file.js +3 -0
- package/dist/node_modules/@allyhub/sheet/dist/files.d.ts +24 -0
- package/dist/node_modules/@allyhub/sheet/dist/files.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +46 -0
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +25 -0
- package/dist/node_modules/@allyhub/sheet/dist/paginate.d.ts +98 -0
- package/dist/node_modules/@allyhub/sheet/dist/structure.d.ts +38 -0
- package/dist/node_modules/@allyhub/sheet/dist/table-style.d.ts +32 -0
- package/dist/node_modules/@allyhub/sheet/dist/validate.d.ts +26 -0
- package/dist/node_modules/@allyhub/sheet/dist/validate.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +324 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +53 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +49 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +159 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +3 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.d.ts +40 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.js +2 -0
- package/dist/node_modules/@allyhub/sheet/package.json +21 -0
- package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +129 -0
- package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +730 -0
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +4 -0
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +202 -0
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/code.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +131 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +4 -0
- package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +25 -0
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +34 -0
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +58 -0
- package/dist/node_modules/@allyhub/slides-core/dist/merge.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +293 -0
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +202 -0
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/script.d.ts +45 -0
- package/dist/node_modules/@allyhub/slides-core/dist/script.js +3 -0
- package/dist/node_modules/@allyhub/slides-core/dist/strict.d.ts +7 -0
- package/dist/node_modules/@allyhub/slides-core/dist/strict.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/theme.d.ts +72 -0
- package/dist/node_modules/@allyhub/slides-core/package.json +14 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +4 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +3 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +4 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/timing.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +3 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -0
- package/dist/node_modules/@allyhub/slides-pptx/package.json +14 -0
- package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +2 -0
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +3 -0
- package/dist/node_modules/@allyhub/slides-runtime/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +6 -0
- package/dist/node_modules/@allyhub/slides-runtime/package.json +18 -0
- package/dist/node_modules/@allyhub/stage/dist/bakes.js +4 -0
- package/dist/node_modules/@allyhub/stage/dist/build-process.js +3 -0
- package/dist/node_modules/@allyhub/stage/dist/build-worker.js +2 -0
- package/dist/node_modules/@allyhub/stage/dist/identity.js +2 -0
- package/dist/node_modules/@allyhub/stage/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/stage/dist/page.js +62 -0
- package/dist/node_modules/@allyhub/stage/dist/scenery-page.js +12 -0
- package/dist/node_modules/@allyhub/stage/dist/scenery-solve.js +2 -0
- package/dist/node_modules/@allyhub/stage/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/stage/dist/server.js +2 -0
- package/dist/node_modules/@allyhub/stage/package.json +13 -0
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/runtime.js +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +3 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +13 -0
- package/dist/node_modules/@allyhub/video-core/dist/component.d.ts +70 -0
- package/dist/node_modules/@allyhub/video-core/dist/component.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/edits.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/export.d.ts +97 -0
- package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +1179 -0
- package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +37 -0
- package/dist/node_modules/@allyhub/video-core/dist/gen.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +41 -0
- package/dist/node_modules/@allyhub/video-core/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +563 -0
- package/dist/node_modules/@allyhub/video-core/dist/media.d.ts +226 -0
- package/dist/node_modules/@allyhub/video-core/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +1154 -0
- package/dist/node_modules/@allyhub/video-core/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +278 -0
- package/dist/node_modules/@allyhub/video-core/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +350 -0
- package/dist/node_modules/@allyhub/video-core/dist/speech.js +5 -0
- package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +631 -0
- package/dist/node_modules/@allyhub/video-core/dist/transition.d.ts +300 -0
- package/dist/node_modules/@allyhub/video-core/dist/transition.js +2 -0
- package/dist/node_modules/@allyhub/video-core/package.json +14 -0
- package/dist/node_modules/@allyhub/website/LICENSE +241 -0
- package/dist/node_modules/@allyhub/website/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/website/dist/publish.js +3 -0
- package/dist/node_modules/@allyhub/website/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub/website/dist/website.js +4 -0
- package/dist/node_modules/@allyhub/website/package.json +13 -0
- package/dist/project.js +1 -1
- package/dist/resources.js +1 -1
- package/dist/sdk-docs.js +1 -1
- package/dist/text/batch-text.js +1 -1
- package/dist/text/console-text.js +1 -1
- package/dist/text/facts-text.js +1 -1
- package/dist/text/format.js +1 -1
- package/dist/text/timeline-text.js +1 -1
- package/dist/version.js +1 -1
- package/dist/works.js +1 -1
- package/editor-web/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/editor-web/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/editor-web/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/editor-web/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/editor-web/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/editor-web/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/editor-web/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/editor-web/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/editor-web/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/editor-web/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/editor-web/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/editor-web/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/editor-web/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/editor-web/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/editor-web/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/editor-web/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/editor-web/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/editor-web/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/editor-web/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/editor-web/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/editor-web/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/editor-web/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/editor-web/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/editor-web/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/editor-web/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/editor-web/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/editor-web/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/editor-web/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/editor-web/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/editor-web/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/editor-web/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/editor-web/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/editor-web/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/editor-web/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/editor-web/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/editor-web/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/editor-web/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/editor-web/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/editor-web/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/editor-web/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/editor-web/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/editor-web/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/editor-web/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/editor-web/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/editor-web/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/editor-web/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/editor-web/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/editor-web/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/editor-web/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/editor-web/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/editor-web/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/editor-web/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/editor-web/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/editor-web/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/editor-web/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/editor-web/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/editor-web/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/editor-web/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/editor-web/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/editor-web/assets/abnfDiagram-WEYOIA3C-B9SmmTJt.js +1 -0
- package/editor-web/assets/architecture-WOLXFQ4H-m-T100yu.js +1 -0
- package/editor-web/assets/architectureDiagram-ZHVYKT53-B5nwfRgH.js +36 -0
- package/editor-web/assets/blockDiagram-RJAE7QA3-ClawtW7w.js +140 -0
- package/editor-web/assets/c4Diagram-XDPPPE54-CFHQpxmY.js +38 -0
- package/editor-web/assets/calc-worker-BTNuOUVJ.js +158 -0
- package/editor-web/assets/channel-hhT2g1yB.js +1 -0
- package/editor-web/assets/choice-BJc3Tv5F.js +10 -0
- package/editor-web/assets/chunk-2E7WHVMD-CoQrt8De.js +88 -0
- package/editor-web/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/editor-web/assets/chunk-4EMNKR2T-Iy5ZP2hH.js +1 -0
- package/editor-web/assets/chunk-55XCU76K-DsS8sEfz.js +1 -0
- package/editor-web/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/editor-web/assets/chunk-7S6XSTFO-Co220fFP.js +2 -0
- package/editor-web/assets/chunk-AQDTSKZB-JIGZAIpF.js +72 -0
- package/editor-web/assets/chunk-DSNLSHJZ-Ror_NzZx.js +129 -0
- package/editor-web/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
- package/editor-web/assets/chunk-HAGFOTED-C07qbJaC.js +62 -0
- package/editor-web/assets/chunk-HNE4Q36P-CM3bprQy.js +1 -0
- package/editor-web/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
- package/editor-web/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/editor-web/assets/chunk-NGNAAXSQ-Bw6tHVuc.js +136 -0
- package/editor-web/assets/chunk-NQOKRVIF-ipM1cuU7.js +213 -0
- package/editor-web/assets/chunk-UHW7PFBP-CA8McMqW.js +1 -0
- package/editor-web/assets/chunk-VQ5W62QI-DEDvdgPj.js +1 -0
- package/editor-web/assets/chunk-WQQL4CDK-h5ZO7LF7.js +10 -0
- package/editor-web/assets/chunk-XXDRQBXY-i7MKP1NY.js +1 -0
- package/editor-web/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/editor-web/assets/chunk-YZO67HFG-yC3xdjnt.js +1 -0
- package/editor-web/assets/chunk-ZAUX2LTX-3rRCWRvD.js +1 -0
- package/editor-web/assets/chunk-ZCHMQSOR-DK_PLi39.js +2 -0
- package/editor-web/assets/classDiagram-v2-4MYWR3UA-B9pB-HTm.js +217 -0
- package/editor-web/assets/cose-bilkent-JH36ORCC-BWS9TicX.js +1 -0
- package/editor-web/assets/cynefin-EF2NZ3EQ-CSd3PDdQ.js +1 -0
- package/editor-web/assets/cynefinDiagram-WF24UDRP-BBCequ3T.js +62 -0
- package/editor-web/assets/cytoscape.esm-Bn1wUjr1.js +321 -0
- package/editor-web/assets/d3-scale-CElPUUud.js +1 -0
- package/editor-web/assets/d3-selection-COWvaQNI.js +1 -0
- package/editor-web/assets/dagre-NK4GIZVX-C7ZOWX5t.js +4 -0
- package/editor-web/assets/diagram-CBK3MWTC-CQVvlSNo.js +24 -0
- package/editor-web/assets/diagram-I5XIIV2D-BCkke5x3.js +24 -0
- package/editor-web/assets/diagram-ODIL2UCW-DDWQXIlX.js +30 -0
- package/editor-web/assets/diagram-PFBEJUXE-C31QlFzr.js +3 -0
- package/editor-web/assets/diagram-RJA3I4VV-DUXAFmI_.js +41 -0
- package/editor-web/assets/diagram-TYUNFSNR-BCxuoEs9.js +200 -0
- package/editor-web/assets/dist-BRuoygB7.js +2 -0
- package/editor-web/assets/dist-CK42vCmN.js +550 -0
- package/editor-web/assets/dist-C_buDsM-.js +36 -0
- package/editor-web/assets/dist-DNcXHhzn.js +37 -0
- package/editor-web/assets/dist-DdXDFcej.js +1 -0
- package/editor-web/assets/dist-HxiPpGXi.js +10 -0
- package/editor-web/assets/dist-PF3VMsK7.js +1 -0
- package/editor-web/assets/ebnfDiagram-V4P3TTPT-Drbe1R2R.js +1 -0
- package/editor-web/assets/elk-QONTBCTQ-Bqwuc5U-.js +27 -0
- package/editor-web/assets/erDiagram-KYQIGQAA-lUcyPgf3.js +99 -0
- package/editor-web/assets/eventmodeling-K75KTNOO-BfxFVok7.js +1 -0
- package/editor-web/assets/flowDiagram-IUGLLWBU-FJVml4lT.js +1 -0
- package/editor-web/assets/ganttDiagram-R7GPNTJY-AYc1JnE_.js +292 -0
- package/editor-web/assets/gitGraph-VSP46ZUC-Z_2ysYZF.js +1 -0
- package/editor-web/assets/gitGraphDiagram-PDYL7XHY-CB2O1LZ6.js +106 -0
- package/editor-web/assets/graphlib-DS17s2tU.js +1 -0
- package/editor-web/assets/hint-BwGc32IE.js +1 -0
- package/editor-web/assets/index-BQKSbBSy.js +69 -0
- package/editor-web/assets/index-CfD80QPx.css +2 -0
- package/editor-web/assets/info-OHQRW6UA-BPePkERU.js +1 -0
- package/editor-web/assets/infoDiagram-MVDRKAX5-CNluCREj.js +2 -0
- package/editor-web/assets/ishikawaDiagram-HPEHV2GE-DIBDBol9.js +70 -0
- package/editor-web/assets/journeyDiagram-BOSHW7O7-C4Hc63C8.js +139 -0
- package/editor-web/assets/kanban-definition-FNSA4HC5-BShCYR9Q.js +89 -0
- package/editor-web/assets/katex-B_JcIwqj.js +257 -0
- package/editor-web/assets/mermaid-parser.core-KGVt2icR.js +7 -0
- package/editor-web/assets/mermaid.core-CVH2hRmI.js +44 -0
- package/editor-web/assets/mindmap-definition-6OY57UG3-C1mo9OeK.js +98 -0
- package/editor-web/assets/packet-JDAUHWVQ-B7YpYnvD.js +1 -0
- package/editor-web/assets/pegDiagram-ECIUJNBX-Es99bVEq.js +1 -0
- package/editor-web/assets/pie-XZMESJXO-xTUp8UcP.js +1 -0
- package/editor-web/assets/pieDiagram-GNMPY74T-CD91pLk4.js +39 -0
- package/editor-web/assets/quadrantDiagram-D57K4MC3-CSnvxc94.js +7 -0
- package/editor-web/assets/radar-ABXABTNO-Dj-t0L18.js +1 -0
- package/editor-web/assets/railroad-I3PHUGI6-BK32uCwU.js +1 -0
- package/editor-web/assets/railroad-abnf-LNEFI6M7-D5R8k6d0.js +1 -0
- package/editor-web/assets/railroad-ebnf-DWYD2UWJ-Crm1KEAC.js +1 -0
- package/editor-web/assets/railroad-peg-JR7BVNR7-BILXac49.js +1 -0
- package/editor-web/assets/railroadDiagram-Y72NRBL7-CevyjvbY.js +1 -0
- package/editor-web/assets/react-BSSSHUyV.js +101 -0
- package/editor-web/assets/requirementDiagram-EQYSW5RA-B5N8Q9VV.js +84 -0
- package/editor-web/assets/rolldown-runtime-COiEfhsA.js +1 -0
- package/editor-web/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/editor-web/assets/sankeyDiagram-SY24JHO5-bCTsxF1A.js +40 -0
- package/editor-web/assets/sequenceDiagram-BLEHNHQU-M37m0sEI.js +169 -0
- package/editor-web/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BDIn7XwV.js +291 -0
- package/editor-web/assets/svg-BiObwMnL.js +1 -0
- package/editor-web/assets/swatch-CwskGSEY.js +105 -0
- package/editor-web/assets/swimlanes-B3ENRKFQ-DIU1TlDI.js +1 -0
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DPM008dB.js +8 -0
- package/editor-web/assets/tabs-uHwPMprC.js +1 -0
- package/editor-web/assets/timeline-definition-JXYKGLGB-C0x4clqy.js +120 -0
- package/editor-web/assets/treeView-D4JQ5SDB-C9lm0KTt.js +1 -0
- package/editor-web/assets/treemap-SAJKECNS-BMH4lQc7.js +1 -0
- package/editor-web/assets/usecaseDiagram-WPOLBNNX-BhltpBsJ.js +328 -0
- package/editor-web/assets/vennDiagram-Q3Y3IDCW-D3qN9Kpt.js +34 -0
- package/editor-web/assets/wardley-7MLQ67FV-C4k02DvU.js +1 -0
- package/editor-web/assets/wardleyDiagram-IVAIDKWA-dhpBDNqg.js +78 -0
- package/editor-web/assets/xychartDiagram-4URNHDU4-0yEarQ-o.js +7 -0
- package/editor-web/index.html +4 -4
- package/package.json +9 -2
- package/dist/node_modules/@allyhub-next/audio/dist/node/ffmpeg.js +0 -2
- package/dist/node_modules/@allyhub-next/audio/package.json +0 -17
- package/dist/node_modules/@allyhub-next/browser/dist/browser.js +0 -2
- package/dist/node_modules/@allyhub-next/browser/package.json +0 -13
- package/dist/node_modules/@allyhub-next/build/dist/code.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/build/dist/code.js +0 -4
- package/dist/node_modules/@allyhub-next/build/dist/content.d.ts +0 -49
- package/dist/node_modules/@allyhub-next/build/dist/content.js +0 -2
- package/dist/node_modules/@allyhub-next/build/dist/data.d.ts +0 -13
- package/dist/node_modules/@allyhub-next/build/dist/data.js +0 -3
- package/dist/node_modules/@allyhub-next/build/dist/files.js +0 -2
- package/dist/node_modules/@allyhub-next/build/dist/fonts.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/build/dist/fonts.js +0 -4
- package/dist/node_modules/@allyhub-next/build/dist/index.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/build/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/build/dist/matrix.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/build/dist/matrix.js +0 -2
- package/dist/node_modules/@allyhub-next/build/dist/media.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/build/dist/media.js +0 -2
- package/dist/node_modules/@allyhub-next/build/dist/messages.d.ts +0 -48
- package/dist/node_modules/@allyhub-next/build/dist/messages.js +0 -3
- package/dist/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +0 -49
- package/dist/node_modules/@allyhub-next/build/dist/meta-worker.js +0 -4
- package/dist/node_modules/@allyhub-next/build/dist/meta.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/build/dist/meta.js +0 -2
- package/dist/node_modules/@allyhub-next/build/dist/model-info.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/build/dist/model-info.js +0 -4
- package/dist/node_modules/@allyhub-next/build/dist/plugin.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/build/dist/plugin.js +0 -13
- package/dist/node_modules/@allyhub-next/build/dist/prepare.d.ts +0 -97
- package/dist/node_modules/@allyhub-next/build/dist/prepare.js +0 -3
- package/dist/node_modules/@allyhub-next/build/dist/scan.d.ts +0 -48
- package/dist/node_modules/@allyhub-next/build/dist/scan.js +0 -2
- package/dist/node_modules/@allyhub-next/build/dist/sheet-code.d.ts +0 -34
- package/dist/node_modules/@allyhub-next/build/dist/sheet-code.js +0 -2
- package/dist/node_modules/@allyhub-next/build/dist/takes.d.ts +0 -33
- package/dist/node_modules/@allyhub-next/build/dist/takes.js +0 -3
- package/dist/node_modules/@allyhub-next/build/dist/types.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/build/dist/types.js +0 -6
- package/dist/node_modules/@allyhub-next/build/dist/vite.js +0 -3
- package/dist/node_modules/@allyhub-next/build/package.json +0 -13
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.d.ts +0 -31
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +0 -3
- package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +0 -204
- package/dist/node_modules/@allyhub-next/chart/dist/chart.js +0 -2
- package/dist/node_modules/@allyhub-next/chart/dist/index.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/chart/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/chart/package.json +0 -14
- package/dist/node_modules/@allyhub-next/check/dist/cache.js +0 -2
- package/dist/node_modules/@allyhub-next/check/dist/check.js +0 -4
- package/dist/node_modules/@allyhub-next/check/dist/generated.js +0 -2
- package/dist/node_modules/@allyhub-next/check/dist/plans.js +0 -3
- package/dist/node_modules/@allyhub-next/check/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub-next/check/package.json +0 -13
- package/dist/node_modules/@allyhub-next/cloud/dist/blobs.js +0 -2
- package/dist/node_modules/@allyhub-next/cloud/dist/call.js +0 -5
- package/dist/node_modules/@allyhub-next/cloud/dist/catalog.js +0 -2
- package/dist/node_modules/@allyhub-next/cloud/dist/client.js +0 -2
- package/dist/node_modules/@allyhub-next/cloud/dist/config.js +0 -2
- package/dist/node_modules/@allyhub-next/cloud/dist/credentials.js +0 -3
- package/dist/node_modules/@allyhub-next/cloud/dist/errors.js +0 -2
- package/dist/node_modules/@allyhub-next/cloud/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/cloud/dist/records.js +0 -4
- package/dist/node_modules/@allyhub-next/cloud/dist/signin.js +0 -4
- package/dist/node_modules/@allyhub-next/cloud/dist/sites.js +0 -2
- package/dist/node_modules/@allyhub-next/cloud/dist/token.js +0 -2
- package/dist/node_modules/@allyhub-next/cloud/dist/uploads.js +0 -3
- package/dist/node_modules/@allyhub-next/cloud/dist/voice.js +0 -2
- package/dist/node_modules/@allyhub-next/cloud/package.json +0 -13
- package/dist/node_modules/@allyhub-next/components/package.json +0 -12
- package/dist/node_modules/@allyhub-next/dev-server/dist/background.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/card.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/exports.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/live.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/paths.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/project.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/reach.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/record.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/server.js +0 -6
- package/dist/node_modules/@allyhub-next/dev-server/dist/sound.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/tools.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/tree.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/validate.js +0 -3
- package/dist/node_modules/@allyhub-next/dev-server/dist/watcher.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/writer.js +0 -3
- package/dist/node_modules/@allyhub-next/dev-server/package.json +0 -13
- package/dist/node_modules/@allyhub-next/doc/dist/docx.d.ts +0 -28
- package/dist/node_modules/@allyhub-next/doc/dist/docx.js +0 -4
- package/dist/node_modules/@allyhub-next/doc/dist/html.d.ts +0 -23
- package/dist/node_modules/@allyhub-next/doc/dist/html.js +0 -54
- package/dist/node_modules/@allyhub-next/doc/dist/index.d.ts +0 -8
- package/dist/node_modules/@allyhub-next/doc/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/doc/dist/markdown.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/doc/dist/markdown.js +0 -3
- package/dist/node_modules/@allyhub-next/doc/dist/model.d.ts +0 -145
- package/dist/node_modules/@allyhub-next/doc/dist/model.js +0 -2
- package/dist/node_modules/@allyhub-next/doc/dist/parse.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/doc/dist/parse.js +0 -5
- package/dist/node_modules/@allyhub-next/doc/dist/patch.js +0 -8
- package/dist/node_modules/@allyhub-next/doc/dist/write.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/doc/dist/write.js +0 -42
- package/dist/node_modules/@allyhub-next/doc/package.json +0 -17
- package/dist/node_modules/@allyhub-next/export/dist/batch.js +0 -4
- package/dist/node_modules/@allyhub-next/export/dist/deck-fonts.js +0 -2
- package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.js +0 -2
- package/dist/node_modules/@allyhub-next/export/dist/export.js +0 -7
- package/dist/node_modules/@allyhub-next/export/dist/names.js +0 -2
- package/dist/node_modules/@allyhub-next/export/package.json +0 -13
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +0 -2520
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +0 -2
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +0 -2741
- package/dist/node_modules/@allyhub-next/formats/package.json +0 -15
- package/dist/node_modules/@allyhub-next/measure/dist/compare.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/contrast.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/cut-sheet.js +0 -46
- package/dist/node_modules/@allyhub-next/measure/dist/cuts.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/facts.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/fidelity.js +0 -3
- package/dist/node_modules/@allyhub-next/measure/dist/flat.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/loop.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/overlay.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/recording-report.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/reference/folder.js +0 -4
- package/dist/node_modules/@allyhub-next/measure/dist/reference/piece.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/reference/sections.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/reference/sets.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/reference/text.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/reference/video.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/seams.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/sound-measures.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/sound-report.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/still.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/dist/version-voice.js +0 -2
- package/dist/node_modules/@allyhub-next/measure/package.json +0 -13
- package/dist/node_modules/@allyhub-next/media/dist/asr/parakeet.js +0 -7
- package/dist/node_modules/@allyhub-next/media/dist/asr/transcribe.d.ts +0 -50
- package/dist/node_modules/@allyhub-next/media/dist/asr/words.d.ts +0 -7
- package/dist/node_modules/@allyhub-next/media/dist/cache.js +0 -2
- package/dist/node_modules/@allyhub-next/media/dist/ocr/text.js +0 -4
- package/dist/node_modules/@allyhub-next/media/dist/sheet.d.ts +0 -67
- package/dist/node_modules/@allyhub-next/media/dist/tools.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/media/dist/tools.js +0 -2
- package/dist/node_modules/@allyhub-next/media/dist/vision/index-media.js +0 -3
- package/dist/node_modules/@allyhub-next/media/dist/vision/run.js +0 -4
- package/dist/node_modules/@allyhub-next/media/dist/vision/runtime.js +0 -8
- package/dist/node_modules/@allyhub-next/media/dist/vision/types.d.ts +0 -2
- package/dist/node_modules/@allyhub-next/media/dist/worker-process.d.ts +0 -8
- package/dist/node_modules/@allyhub-next/media/dist/worker-process.js +0 -2
- package/dist/node_modules/@allyhub-next/media/package.json +0 -13
- package/dist/node_modules/@allyhub-next/model/NOTICE +0 -26
- package/dist/node_modules/@allyhub-next/model/dist/build-job.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/model/dist/build-job.js +0 -2
- package/dist/node_modules/@allyhub-next/model/dist/build-worker.js +0 -2
- package/dist/node_modules/@allyhub-next/model/dist/build.js +0 -3
- package/dist/node_modules/@allyhub-next/model/dist/capabilities.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/model/dist/capabilities.js +0 -2
- package/dist/node_modules/@allyhub-next/model/dist/data.js +0 -2
- package/dist/node_modules/@allyhub-next/model/dist/material-eval.js +0 -2
- package/dist/node_modules/@allyhub-next/model/dist/material-nodes.js +0 -2
- package/dist/node_modules/@allyhub-next/model/package.json +0 -25
- package/dist/node_modules/@allyhub-next/ooxml/package.json +0 -26
- package/dist/node_modules/@allyhub-next/project/dist/console.js +0 -2
- package/dist/node_modules/@allyhub-next/project/dist/deck-keys.js +0 -2
- package/dist/node_modules/@allyhub-next/project/dist/deck-pool.js +0 -2
- package/dist/node_modules/@allyhub-next/project/dist/digest.js +0 -2
- package/dist/node_modules/@allyhub-next/project/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/project/dist/ledger.js +0 -2
- package/dist/node_modules/@allyhub-next/project/dist/media-index.js +0 -2
- package/dist/node_modules/@allyhub-next/project/dist/page.js +0 -4
- package/dist/node_modules/@allyhub-next/project/dist/says.js +0 -2
- package/dist/node_modules/@allyhub-next/project/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub-next/project/dist/session.js +0 -2
- package/dist/node_modules/@allyhub-next/project/dist/stills.js +0 -2
- package/dist/node_modules/@allyhub-next/project/dist/version.js +0 -2
- package/dist/node_modules/@allyhub-next/project/package.json +0 -13
- package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +0 -338
- package/dist/node_modules/@allyhub-next/protocol/dist/app.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +0 -115
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +0 -324
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +0 -486
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +0 -20
- package/dist/node_modules/@allyhub-next/protocol/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +0 -188
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +0 -185
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +0 -293
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +0 -396
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +0 -79
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +0 -428
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +0 -2
- package/dist/node_modules/@allyhub-next/protocol/package.json +0 -14
- package/dist/node_modules/@allyhub-next/registry/dist/polyhaven-client.js +0 -3
- package/dist/node_modules/@allyhub-next/registry/dist/registry.js +0 -2
- package/dist/node_modules/@allyhub-next/registry/package.json +0 -13
- package/dist/node_modules/@allyhub-next/render/dist/composite.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/doc/index.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/doc/print.js +0 -18
- package/dist/node_modules/@allyhub-next/render/dist/encode.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/errors.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/exports.js +0 -3
- package/dist/node_modules/@allyhub-next/render/dist/ffmpeg.js +0 -4
- package/dist/node_modules/@allyhub-next/render/dist/footage.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/junction.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/look.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/parts.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/post-probe.js +0 -5
- package/dist/node_modules/@allyhub-next/render/dist/post.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/render.js +0 -3
- package/dist/node_modules/@allyhub-next/render/dist/segments.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/sound.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/stills.js +0 -2
- package/dist/node_modules/@allyhub-next/render/dist/tools.js +0 -2
- package/dist/node_modules/@allyhub-next/render/package.json +0 -17
- package/dist/node_modules/@allyhub-next/runtime/dist/captions.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/clock.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/compose.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/console.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/embed.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/env.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/errors.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/facade.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/footage.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/frame.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/inspect.js +0 -3
- package/dist/node_modules/@allyhub-next/runtime/dist/locate.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/measure.js +0 -3
- package/dist/node_modules/@allyhub-next/runtime/dist/mix-plan.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/music.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/output.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/piece.js +0 -3
- package/dist/node_modules/@allyhub-next/runtime/dist/player/clips.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/player/cutout.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/player/player.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/reads.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/sound.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/speech.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/stage-kit.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/stage.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/takes.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/dist/transitions.js +0 -2
- package/dist/node_modules/@allyhub-next/runtime/package.json +0 -21
- package/dist/node_modules/@allyhub-next/runtimes/dist/bundled.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/runtimes/dist/bundled.js +0 -2
- package/dist/node_modules/@allyhub-next/runtimes/dist/download.d.ts +0 -33
- package/dist/node_modules/@allyhub-next/runtimes/dist/download.js +0 -2
- package/dist/node_modules/@allyhub-next/runtimes/dist/manifest.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/runtimes/dist/manifest.js +0 -2
- package/dist/node_modules/@allyhub-next/runtimes/dist/node-program.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/runtimes/dist/node-program.js +0 -2
- package/dist/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +0 -82
- package/dist/node_modules/@allyhub-next/runtimes/dist/packages.js +0 -4
- package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +0 -72
- package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.js +0 -4
- package/dist/node_modules/@allyhub-next/runtimes/package.json +0 -18
- package/dist/node_modules/@allyhub-next/scaffold/dist/index.js +0 -16
- package/dist/node_modules/@allyhub-next/scaffold/package.json +0 -13
- package/dist/node_modules/@allyhub-next/scenery/package.json +0 -13
- package/dist/node_modules/@allyhub-next/scenery-host/dist/allyhub.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/scenery-host/dist/allyhub.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bake/apply.d.ts +0 -59
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bake/digest.d.ts +0 -14
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bake/format.d.ts +0 -63
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bake/run.d.ts +0 -63
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bake/run.js +0 -138
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +0 -85
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.js +0 -6
- package/dist/node_modules/@allyhub-next/scenery-host/dist/commands.d.ts +0 -54
- package/dist/node_modules/@allyhub-next/scenery-host/dist/commands.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/draw2d.d.ts +0 -47
- package/dist/node_modules/@allyhub-next/scenery-host/dist/draw2d.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/focus-pass.js +0 -246
- package/dist/node_modules/@allyhub-next/scenery-host/dist/glass.d.ts +0 -39
- package/dist/node_modules/@allyhub-next/scenery-host/dist/glass.js +0 -71
- package/dist/node_modules/@allyhub-next/scenery-host/dist/idbuffer.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/scenery-host/dist/inventory.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/scenery-host/dist/inventory.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/layer/index.d.ts +0 -51
- package/dist/node_modules/@allyhub-next/scenery-host/dist/layer/index.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/layer/moire.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/scenery-host/dist/layer/moire.js +0 -3
- package/dist/node_modules/@allyhub-next/scenery-host/dist/layer/queries.d.ts +0 -106
- package/dist/node_modules/@allyhub-next/scenery-host/dist/layer/queries.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/layer/screens.d.ts +0 -58
- package/dist/node_modules/@allyhub-next/scenery-host/dist/layer/screens.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/layer/state.d.ts +0 -110
- package/dist/node_modules/@allyhub-next/scenery-host/dist/layer/types.d.ts +0 -239
- package/dist/node_modules/@allyhub-next/scenery-host/dist/measure/contacts.d.ts +0 -45
- package/dist/node_modules/@allyhub-next/scenery-host/dist/measure/facts.d.ts +0 -86
- package/dist/node_modules/@allyhub-next/scenery-host/dist/measure/facts.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/measure/health.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/scenery-host/dist/measure/index.d.ts +0 -110
- package/dist/node_modules/@allyhub-next/scenery-host/dist/measure/index.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/measure/relations.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/scenery-host/dist/measure/relations.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/measure/support.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/scenery-host/dist/measure/support.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/model-stage.js +0 -3
- package/dist/node_modules/@allyhub-next/scenery-host/dist/page/bake.d.ts +0 -53
- package/dist/node_modules/@allyhub-next/scenery-host/dist/page/bake.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/page/draw.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/scenery-host/dist/page/draw.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/page/files.d.ts +0 -45
- package/dist/node_modules/@allyhub-next/scenery-host/dist/page/page.d.ts +0 -127
- package/dist/node_modules/@allyhub-next/scenery-host/dist/page/page.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/page/props.d.ts +0 -23
- package/dist/node_modules/@allyhub-next/scenery-host/dist/page/screens.d.ts +0 -147
- package/dist/node_modules/@allyhub-next/scenery-host/dist/page/screens.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/queries/inventory.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/scenery-host/dist/queries/map.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/scenery-host/dist/queries/map.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/dist/queries/view.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/scenery-host/dist/screen-light.d.ts +0 -58
- package/dist/node_modules/@allyhub-next/scenery-host/dist/screen-light.js +0 -156
- package/dist/node_modules/@allyhub-next/scenery-host/dist/viewer.d.ts +0 -114
- package/dist/node_modules/@allyhub-next/scenery-host/dist/viewer.js +0 -2
- package/dist/node_modules/@allyhub-next/scenery-host/package.json +0 -29
- package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.d.ts +0 -204
- package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/api/page.d.ts +0 -83
- package/dist/node_modules/@allyhub-next/sheet/dist/api/page.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.d.ts +0 -170
- package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.d.ts +0 -117
- package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +0 -362
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/arrange.d.ts +0 -68
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +0 -82
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.d.ts +0 -58
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/edit.d.ts +0 -154
- package/dist/node_modules/@allyhub-next/sheet/dist/file.d.ts +0 -19
- package/dist/node_modules/@allyhub-next/sheet/dist/file.js +0 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/files.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/sheet/dist/files.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/generated.d.ts +0 -46
- package/dist/node_modules/@allyhub-next/sheet/dist/generated.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/inspect.d.ts +0 -25
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +0 -98
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.d.ts +0 -38
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/sheet/dist/validate.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/sheet/dist/validate.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +0 -324
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +0 -53
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +0 -49
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +0 -159
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +0 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +0 -2
- package/dist/node_modules/@allyhub-next/sheet/package.json +0 -21
- package/dist/node_modules/@allyhub-next/slides-core/dist/animation.d.ts +0 -129
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +0 -726
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +0 -4
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +0 -202
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +0 -131
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +0 -4
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.d.ts +0 -34
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +0 -58
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +0 -309
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +0 -202
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +0 -45
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +0 -3
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +0 -7
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/theme.d.ts +0 -72
- package/dist/node_modules/@allyhub-next/slides-core/package.json +0 -14
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/code.js +0 -4
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/index.js +0 -3
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/names.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/script.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/chart.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/common.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/index.js +0 -4
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/shapes.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/text.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/timing.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.js +0 -3
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.js +0 -3
- package/dist/node_modules/@allyhub-next/slides-pptx/package.json +0 -14
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/component.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.js +0 -3
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.js +0 -6
- package/dist/node_modules/@allyhub-next/slides-runtime/package.json +0 -18
- package/dist/node_modules/@allyhub-next/stage/dist/bakes.js +0 -4
- package/dist/node_modules/@allyhub-next/stage/dist/identity.js +0 -2
- package/dist/node_modules/@allyhub-next/stage/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/stage/dist/page.js +0 -62
- package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.js +0 -12
- package/dist/node_modules/@allyhub-next/stage/dist/scenery-solve.js +0 -2
- package/dist/node_modules/@allyhub-next/stage/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub-next/stage/dist/server.js +0 -2
- package/dist/node_modules/@allyhub-next/stage/package.json +0 -13
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/runtime.js +0 -79
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.js +0 -3
- package/dist/node_modules/@allyhub-next/stage-page/package.json +0 -13
- package/dist/node_modules/@allyhub-next/video-core/dist/edits.js +0 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/export.d.ts +0 -97
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +0 -1179
- package/dist/node_modules/@allyhub-next/video-core/dist/gen.d.ts +0 -37
- package/dist/node_modules/@allyhub-next/video-core/dist/gen.js +0 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/video-core/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/measure.d.ts +0 -558
- package/dist/node_modules/@allyhub-next/video-core/dist/media.d.ts +0 -226
- package/dist/node_modules/@allyhub-next/video-core/dist/media.js +0 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +0 -1154
- package/dist/node_modules/@allyhub-next/video-core/dist/piece.js +0 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +0 -278
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +0 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +0 -350
- package/dist/node_modules/@allyhub-next/video-core/dist/speech.js +0 -5
- package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +0 -626
- package/dist/node_modules/@allyhub-next/video-core/dist/transition.d.ts +0 -289
- package/dist/node_modules/@allyhub-next/video-core/dist/transition.js +0 -2
- package/dist/node_modules/@allyhub-next/video-core/package.json +0 -14
- package/dist/node_modules/@allyhub-next/website/dist/index.js +0 -2
- package/dist/node_modules/@allyhub-next/website/dist/publish.js +0 -3
- package/dist/node_modules/@allyhub-next/website/dist/rules.js +0 -2
- package/dist/node_modules/@allyhub-next/website/dist/website.js +0 -4
- package/dist/node_modules/@allyhub-next/website/package.json +0 -13
- package/editor-web/assets/calc-worker-Bz9r26p1.js +0 -158
- package/editor-web/assets/dist-B-BI8jma.js +0 -37
- package/editor-web/assets/dist-CS-Z5JSF.js +0 -224
- package/editor-web/assets/dist-ClE1xUdI.js +0 -10
- package/editor-web/assets/dist-Cqu9f1N5.js +0 -1
- package/editor-web/assets/dist-CsDICOqP.js +0 -36
- package/editor-web/assets/dist-DegNYCaB.js +0 -10
- package/editor-web/assets/dist-EotuIcA_.js +0 -2
- package/editor-web/assets/index-CwDs3z43.js +0 -69
- package/editor-web/assets/index-ujKjdu_s.css +0 -2
- package/editor-web/assets/minus-DLhpe7h_.js +0 -1
- package/editor-web/assets/react-CT8OUeCe.js +0 -101
- package/editor-web/assets/rolldown-runtime-XKyaHtl9.js +0 -1
- package/editor-web/assets/tabs-BEPTOFm5.js +0 -105
- package/editor-web/assets/text-align-start-CfqIQSWH.js +0 -1
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/at-cut.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/decode.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/envelope.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/levels.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/master.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/music.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/decode.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/ebur128.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/loudness.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/master.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/measure.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/mix.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/plan.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recorded.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/bandwidth.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/chain.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/dynamics.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/fft.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/filters.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/fit.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/loudness.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/measure.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/mic.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/noise.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/presets.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/room.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/setup.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/vec.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/render.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/sfx.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/shape.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/voice.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/browser/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/browser/dist/capture.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/browser/dist/cdp.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/browser/dist/flags.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/browser/dist/frames.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/browser/dist/html.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/browser/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/browser/dist/launch.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/browser/dist/page.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/browser/dist/server.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/build/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/build/dist/files.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/build/dist/move-refs.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/build/dist/move-refs.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/build/dist/places.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/build/dist/places.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/build/dist/vite.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/chart/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/check/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/check/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/check/dist/result.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/cloud/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/cloud/NOTICE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/cloud/dist/hashes.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/cloud/dist/loopback.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/cloud/dist/pkce.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/cloud/dist/signin-worker.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/r/callout.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/r/caption-line.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/r/caption-subtitle.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/r/caption-word.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/r/chart.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/r/code-panel.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/r/screen-demo.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/registry.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/src/callout.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/src/caption-line.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/src/caption-subtitle.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/src/caption-word.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/src/chart.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/src/code-panel.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/src/index.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/components/src/screen-demo.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/dev-server/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/dev-server/dist/fonts.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/dev-server/dist/reveal.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/doc/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/doc/dist/patch.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/doc/dist/title.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/doc/dist/title.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/export/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/export/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/comments.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/comments.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/config.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/config.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/deck-code.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/deck-code.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/edits.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/edits.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/elements.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/elements.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/faces.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/faces.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/file.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/file.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/gen.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/gen.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/messages.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/messages.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/reference.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/reference.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/script.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/script.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/sheet.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/sheet.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/website.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/website.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/words.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/words.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/items.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/items.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/layout.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/layout.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/media-type.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/media-type.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/note-shape.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/note-shape.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/schemas.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/strict.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/strict.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/zip.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/zip.js +0 -0
- /package/dist/node_modules/{@allyhub-next/measure → @allyhub/jobs}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next/media → @allyhub/measure}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/measure/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/measure/dist/reference/compare.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/measure/dist/reference/interpret.js +0 -0
- /package/dist/node_modules/{@allyhub-next/model → @allyhub/media}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/NOTICE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/hear.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/hear.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/languages.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/languages.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/parakeet.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/protocol.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/protocol.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/transcribe.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/windows.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/windows.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/words.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/worker.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/asr/worker.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/audio.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/audio.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/beats.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/beats.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/cache.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/errors.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/errors.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/fetch.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/fetch.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/grid.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/grid.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/local.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/local.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/ocr/lines.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/ocr/lines.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/ocr/tesseract.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/ocr/tesseract.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/ocr/text.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/ocr/worker.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/ocr/worker.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/picture.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/picture.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/probe.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/probe.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/progress.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/progress.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/run.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/run.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/sheet.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/shots.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/shots.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/sync.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/sync.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/video.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/video.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/cache.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/cache.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/common.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/common.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/faces.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/faces.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/index-media.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/matte.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/matte.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/mattes.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/mattes.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/models.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/models.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/probe.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/probe.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/protocol.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/protocol.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/run.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/runtime.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/status.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/status.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/track.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/track.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/types.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/worker.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/worker.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/yunet.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/vision/yunet.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/voice-shape.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/media/dist/voice-shape.js +0 -0
- /package/dist/node_modules/{@allyhub-next/ooxml → @allyhub/model}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/apply.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/apply.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/authoring.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/authoring.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-attributes.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-attributes.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-collapse.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-collapse.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-corner-plan.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-corner-plan.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-deform.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-deform.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-fans.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-fans.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-junction.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-junction.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-marks.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-marks.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-metric.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-metric.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-mixed.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-mixed.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-offsets.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-offsets.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-patch.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-patch.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-profile.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-profile.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-projection.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-projection.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-reflex.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-reflex.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-square-out.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-square-out.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-strips.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-strips.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-topology.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel-topology.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bevel.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-bevel.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-bevel.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-bridge.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-bridge.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-cycles.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-cycles.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-data.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-data.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-dissolve.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-dissolve.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-edit.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-edit.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-inset.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-inset.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-primitives.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-primitives.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-smooth.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-smooth.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-spin.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-spin.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-subdivide.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh-subdivide.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/bmesh.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/boolean.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/boolean.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/build-cache.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/build-cache.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/build-worker.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/build.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/cancel.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/cancel.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/curve-eval.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/curve-eval.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/curve-math.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/curve-math.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/curve-mesh.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/curve-mesh.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/curve.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/curve.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/data.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/evaluate.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/evaluate.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/evaluation-cache.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/evaluation-cache.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/evaluation-guard.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/evaluation-guard.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/evaluation-plan.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/evaluation-plan.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/export.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/export.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/field.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/field.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/generated/COPYRIGHT.musl +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/generated/LICENSE.compiler-rt +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/generated/LICENSE.emscripten +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/generated/LICENSE.libcxx +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/generated/LICENSE.libcxxabi +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/generated/LICENSE.opensubdiv +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/generated/NOTICE.opensubdiv +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/generated/opensubdiv-build.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/generated/opensubdiv.d.mts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/generated/opensubdiv.mjs +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/geometry.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/geometry.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/image.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/image.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/instances.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/instances.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/material-eval.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/material-nodes.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/mesh-attributes.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/mesh-attributes.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/mesh-queries.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/mesh-queries.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/names.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/names.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/patterns.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/patterns.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/png.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/png.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/polygon-triangulation.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/polygon-triangulation.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/program-location.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/program-location.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/report.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/report.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/screw.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/screw.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/solidify.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/solidify.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/subdivision.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/subdivision.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/three.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/three.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/uv-project.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/uv-project.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/uv-unwrap.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/uv-unwrap.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/uv.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/uv.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/vertex-groups.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/vertex-groups.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/weighted-normal.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/model/dist/weighted-normal.js +0 -0
- /package/dist/node_modules/{@allyhub-next/project → @allyhub/ooxml}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/brightness.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/brightness.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/color.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/color.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/enums.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/enums.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/ext.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/ext.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/generated/enums.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/generated/enums.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/generated/presets.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/generated/presets.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/generated/spec.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/generated/spec.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/geometry/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/geometry/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/mce.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/mce.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/node.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/node.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/ns.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/ns.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/opc.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/opc.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/report.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/report.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/xml.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/xml.js +0 -0
- /package/dist/node_modules/{@allyhub-next/protocol → @allyhub/project}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/project/dist/deck-measure.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/project/dist/stretch.js +0 -0
- /package/dist/node_modules/{@allyhub-next/registry → @allyhub/protocol}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/account.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/app.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/blobs.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/blobs.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/cli.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/cli.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/files.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/files.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/jsonrpc.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/jsonrpc.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/open.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/open.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/routes.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/runtimes.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/runtimes.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/shares.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/shares.js +0 -0
- /package/dist/node_modules/{@allyhub-next/render → @allyhub/registry}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/registry/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/registry/dist/polyhaven.js +0 -0
- /package/dist/node_modules/{@allyhub-next/runtime → @allyhub/render}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/NOTICE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/cap.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/capture.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/clip.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/delivery.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/doc/fonts.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/doc/pdf.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/image.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/page.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/pdf.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/png.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/pool.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/render/dist/webp.js +0 -0
- /package/dist/node_modules/{@allyhub-next/runtimes → @allyhub/runtime}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtime/dist/bridge.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtime/dist/contrast.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtime/dist/fonts.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtime/dist/guards.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtime/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtime/dist/pictures.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtime/dist/styles.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtime/dist/titles.js +0 -0
- /package/dist/node_modules/{@allyhub-next/scaffold → @allyhub/runtimes}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/errors.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/errors.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/home.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/home.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/lock.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/lock.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/unpack.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/unpack.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/manifest.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/docx/package-lock.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/docx/package.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/gltf-tools/package-lock.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/gltf-tools/package.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/manifold-3d/package-lock.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/manifold-3d/package.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/onnxruntime-node/package-lock.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/onnxruntime-node/package.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/sherpa-onnx-node/package.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/tesseract.js/package-lock.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/tesseract.js/package.json +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/schemas/runtimes.schema.json +0 -0
- /package/dist/node_modules/{@allyhub-next/scenery-host → @allyhub/scaffold}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next/sheet → @allyhub/scenery}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/NOTICE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/aim.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/aim.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/bake.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/bake.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/camera.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/camera.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/curve.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/curve.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/define.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/define.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/fit.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/fit.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/glass.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/glass.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/handheld.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/handheld.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/hull.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/hull.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/lens.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/lens.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/moire.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/moire.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/motion.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/motion.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/move.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/move.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/noise.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/noise.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/phone.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/phone.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/report.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/report.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/screen-focus.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/screen-focus.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/screen.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/screen.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/solve.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/solve.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/timing.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/timing.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/vec.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/vec.js +0 -0
- /package/dist/node_modules/{@allyhub-next/scenery → @allyhub/scenery-host}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/NOTICE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/adapter.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/adapter.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/bake/apply.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/bake/digest.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/bake/envmap.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/bake/envmap.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/bake/format.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/budget.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/budget.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/clock.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/clock.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/errors.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/errors.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/fidelity.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/fidelity.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/focus-pass.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/idbuffer.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/layer/fidelity.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/layer/fidelity.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/layer/state.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/layer/types.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/measure/contacts.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/measure/health.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/measure/screen-readback.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/measure/screen-readback.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/measure/solid.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/measure/solid.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/model-stage.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/module.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/module.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/page/files.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/page/props.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/page/shaders.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/page/shaders.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/queries/inventory.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/queries/view.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/scene.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/scene.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/screen-dom.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/screen-dom.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/screen-picture.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/screen-picture.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/signature.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/signature.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/steady.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/steady.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/three-libs/basis/README.md +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/three-libs/basis/basis_transcoder.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/three-libs/basis/basis_transcoder.wasm +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/three-libs/draco/README.md +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/three-libs/draco/draco_decoder.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/three-libs/draco/draco_decoder.wasm +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/three-libs/draco/draco_wasm_wrapper.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/three-libs/draco/gltf/draco_decoder.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/three-libs/draco/gltf/draco_decoder.wasm +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/three-libs/draco/gltf/draco_wasm_wrapper.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/vec.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery-host/dist/vec.js +0 -0
- /package/dist/node_modules/{@allyhub-next/slides-core → @allyhub/sheet}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/address.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/address.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/capabilities.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/code.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/code.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/hint.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/hint.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/rectangles.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/rectangles.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/arrange.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/analyse.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/analyse.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/coerce.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/coerce.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/engine.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/engine.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/aggregate.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/aggregate.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/convert.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/convert.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/criteria.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/criteria.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/database.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/database.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/date.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/date.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/define.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/define.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/delimiters.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/delimiters.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/distributions.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/distributions.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/dynamic.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/dynamic.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/finance.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/finance.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/info.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/info.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/kernels.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/kernels.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/logical.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/logical.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/lookup.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/lookup.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/maths.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/maths.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/modern.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/modern.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/special.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/special.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/text.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/text.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/graph.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/graph.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/indexes.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/indexes.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/remote.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/remote.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/server.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/types.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/types.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/check.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/check.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/csv.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/csv.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/diff.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/edit.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/export.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/export.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/fill.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/fill.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/filter.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/filter.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/format.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/format.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/ast.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/ast.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/move.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/move.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/parse.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/parse.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/print.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/print.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/rewrite.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/rewrite.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/walk.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/walk.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/html.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/html.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/import.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/import.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/inspect.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/paginate.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/patch.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/patch.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/profile.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/profile.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/rules.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/rules.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/scenario.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/scenario.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/series.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/series.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/sort.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/sort.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/structure.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/table-style.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/table-styles.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/table-styles.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/values.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/values.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/write.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/write.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/colors.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/colors.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/formula.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/formula.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/functions.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/functions.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/index.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/numfmt.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/numfmt.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/sax.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/sax.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/styles.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/styles.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/theme.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/theme.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/write.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/xml.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/xml.js +0 -0
- /package/dist/node_modules/{@allyhub-next/slides-pptx → @allyhub/slides-core}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/animation.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/capabilities.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/capabilities.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/check.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/check.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/code.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/components.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/components.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/enums.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/enums.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/identity.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/identity.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/lang.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/lang.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/model.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/office.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/office.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/path.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/path.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/placeholders.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/placeholders.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/stage.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/stage.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/theme.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/units.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/units.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/values.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/values.js +0 -0
- /package/dist/node_modules/{@allyhub-next/slides-runtime → @allyhub/slides-pptx}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-pptx/dist/fonts.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-pptx/dist/index.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-pptx/dist/read/model.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-pptx/dist/read/table.js +0 -0
- /package/dist/node_modules/{@allyhub-next/stage → @allyhub/slides-runtime}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-runtime/dist/ink.js +0 -0
- /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/stage}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage/dist/graphics.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/400-italic.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/400.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/700-italic.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/700.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/arial.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-cyrillic-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-cyrillic-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-cyrillic-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-cyrillic-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-greek-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-greek-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-greek-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-greek-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-greek-ext-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-greek-ext-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-greek-ext-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-greek-ext-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-hebrew-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-hebrew-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-hebrew-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-hebrew-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-latin-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-latin-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-latin-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-latin-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-latin-ext-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-latin-ext-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-latin-ext-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-latin-ext-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-vietnamese-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-vietnamese-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-vietnamese-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/arimo/files/arimo-vietnamese-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/400-italic.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/400.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/700-italic.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/700.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/calibri.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-cyrillic-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-cyrillic-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-cyrillic-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-cyrillic-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-greek-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-greek-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-greek-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-greek-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-greek-ext-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-greek-ext-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-greek-ext-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-greek-ext-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-latin-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-latin-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-latin-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-latin-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-latin-ext-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-latin-ext-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-latin-ext-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-latin-ext-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-vietnamese-400-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-vietnamese-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-vietnamese-700-italic.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/carlito/files/carlito-vietnamese-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-color-emoji/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-color-emoji/emoji.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-color-emoji/files/noto-color-emoji-emoji-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/400.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/700.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-100-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-100-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-101-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-101-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-102-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-102-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-103-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-103-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-104-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-104-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-105-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-105-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-106-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-106-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-107-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-107-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-108-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-108-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-109-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-109-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-110-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-110-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-111-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-111-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-112-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-112-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-113-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-113-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-114-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-114-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-115-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-115-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-116-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-116-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-117-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-117-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-118-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-118-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-119-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-119-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-21-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-21-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-22-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-22-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-23-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-23-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-24-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-24-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-25-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-25-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-26-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-26-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-27-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-27-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-28-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-28-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-29-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-29-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-30-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-30-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-31-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-31-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-32-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-32-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-33-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-33-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-34-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-34-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-35-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-35-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-36-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-36-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-37-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-37-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-38-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-38-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-39-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-39-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-4-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-4-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-40-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-40-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-41-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-41-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-42-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-42-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-43-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-43-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-44-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-44-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-45-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-45-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-46-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-46-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-47-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-47-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-48-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-48-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-49-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-49-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-5-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-5-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-50-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-50-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-51-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-51-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-52-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-52-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-53-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-53-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-54-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-54-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-55-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-55-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-56-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-56-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-57-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-57-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-58-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-58-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-59-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-59-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-6-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-6-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-60-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-60-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-61-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-61-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-62-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-62-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-63-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-63-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-64-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-64-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-65-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-65-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-66-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-66-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-67-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-67-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-68-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-68-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-69-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-69-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-70-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-70-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-71-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-71-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-72-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-72-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-73-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-73-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-74-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-74-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-75-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-75-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-76-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-76-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-77-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-77-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-78-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-78-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-79-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-79-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-80-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-80-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-81-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-81-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-82-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-82-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-83-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-83-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-84-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-84-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-85-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-85-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-86-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-86-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-87-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-87-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-88-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-88-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-89-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-89-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-90-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-90-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-91-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-91-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-97-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-97-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-98-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-98-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-99-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-99-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-cyrillic-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-cyrillic-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-ext-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-ext-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-vietnamese-400-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/files/noto-sans-sc-vietnamese-700-normal.woff2 +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/host.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/runtime/probe.html +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/runtime/probe.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/runtime/stage.html +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/runtime/viewer.html +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/stage-page/dist/runtime/viewer.js +0 -0
- /package/dist/node_modules/{@allyhub-next/website → @allyhub/video-core}/LICENSE +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/anchors.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/anchors.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/audio-types.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/audio-types.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/backdrop.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/backdrop.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/captions.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/captions.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/console.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/console.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/contrast.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/contrast.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/cut-report.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/cut-report.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/edit.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/edit.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/edits.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/export.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/fact.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/footage-motion.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/footage-motion.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/formats.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/formats.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/look.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/look.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/marks.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/marks.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/matrix.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/matrix.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/measure.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/messages.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/messages.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/motion.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/motion.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/music.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/music.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/placement.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/placement.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/render-types.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/render-types.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/schema.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/script-edit.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/script-edit.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/script.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/script.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/seams.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/seams.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/sound-under.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/sound-under.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/source.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/source.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/speech.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/timeline.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/timing.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/timing.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/transcript.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/transcript.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/voice.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/voice.js +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/words.d.ts +0 -0
- /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/words.js +0 -0
|
@@ -0,0 +1,550 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mermaid.core-CVH2hRmI.js","./index-BQKSbBSy.js","./rolldown-runtime-COiEfhsA.js","./react-BSSSHUyV.js","./index-CfD80QPx.css","./chunk-Y2CYZVJY-DsF7k-Jl.js","./d3-selection-COWvaQNI.js","./chunk-DSNLSHJZ-Ror_NzZx.js","./chunk-YZO67HFG-yC3xdjnt.js","./chunk-7S6XSTFO-Co220fFP.js","./dist-DdXDFcej.js","./chunk-AQDTSKZB-JIGZAIpF.js","./chunk-DUW6YSOI-Dgx8z5s3.js","./chunk-UHW7PFBP-CA8McMqW.js","./chunk-HAGFOTED-C07qbJaC.js","./chunk-J5ZVWO5B-oDCd-gWO.js","./rough.esm-Dy-Kn_BL.js","./chunk-ZAUX2LTX-3rRCWRvD.js","./chunk-WQQL4CDK-h5ZO7LF7.js","./chunk-HNE4Q36P-CM3bprQy.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,n as t,t as n}from"./rolldown-runtime-COiEfhsA.js";import{$ as r,B as i,G as a,H as o,Hn as s,J as c,Jt as l,K as u,Kt as d,Q as f,U as p,V as m,W as h,X as g,Y as _,Z as v,_r as y,a as b,an as x,at as S,b as C,cn as w,ct as T,d as E,dn as D,dt as O,et as k,ft as A,gr as j,gt as M,ht as N,i as P,in as F,it as I,l as L,ln as ee,lt as te,mt as ne,n as re,nn as ie,nt as ae,o as oe,ot as se,p as ce,pt as le,q as ue,qt as de,r as fe,rn as pe,rt as me,sn as he,st as ge,tn as _e,tt as ve,ut as ye}from"./react-BSSSHUyV.js";import{A as be,F as xe,M as Se,N as Ce,O as we,_ as Te,a as Ee,b as De,g as Oe,h as ke,j as Ae,k as je,n as Me,r as Ne,t as Pe,z as Fe}from"./swatch-CwskGSEY.js";import{D as Ie,E as Le,O as Re,S as ze,T as Be,_ as Ve,a as He,b as Ue,k as We,y as Ge}from"./dist-HxiPpGXi.js";import{$ as Ke,A as qe,B as Je,C as Ye,D as Xe,E as Ze,F as Qe,G as $e,H as et,I as tt,J as nt,K as rt,L as it,M as at,N as ot,O as st,P as ct,Q as lt,R as ut,S as dt,T as ft,U as pt,V as mt,W as ht,X as gt,Y as _t,Z as vt,_ as yt,a as bt,at as xt,b as St,c as Ct,ct as wt,d as Tt,dt as Et,et as Dt,f as Ot,ft as kt,h as At,ht as jt,i as Mt,it as Nt,j as Pt,k as Ft,l as It,lt as Lt,m as Rt,mt as zt,n as Bt,nt as Vt,o as Ht,ot as Ut,p as Wt,pt as Gt,q as Kt,r as qt,rt as Jt,s as Yt,st as Xt,t as Zt,tt as Qt,u as $t,ut as en,v as tn,w as nn,x as rn,y as an,z as on}from"./choice-BJc3Tv5F.js";import{n as sn,t as cn}from"./svg-BiObwMnL.js";import{i as ln,n as un,r as dn,t as fn}from"./hint-BwGc32IE.js";import{_ as pn,f as mn,g as hn,h as gn,l as _n,m as vn,t as yn,u as bn}from"./index-BQKSbBSy.js";var xn=_e(`a-large-small`,[[`path`,{d:`m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16`,key:`xik6mr`}],[`path`,{d:`M15.697 14h5.606`,key:`1stdlc`}],[`path`,{d:`m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16`,key:`d5nyq2`}],[`path`,{d:`M3.304 13h6.392`,key:`1q3zxz`}]]),Sn=_e(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),Cn=_e(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),wn=_e(`columns-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),Tn=_e(`heading-1`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`m17 12 3-2v8`,key:`1hhhft`}]]),En=_e(`heading-2`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]),Dn=_e(`heading-3`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]),On=_e(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),kn=_e(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),An=_e(`list-collapse`,[[`path`,{d:`M10 5h11`,key:`1hkqpe`}],[`path`,{d:`M10 12h11`,key:`6m4ad9`}],[`path`,{d:`M10 19h11`,key:`14g2nv`}],[`path`,{d:`m3 10 3-3-3-3`,key:`i7pm08`}],[`path`,{d:`m3 20 3-3-3-3`,key:`20gx1n`}]]),jn=_e(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),Mn=_e(`move`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m19 9 3 3-3 3`,key:`1mg7y2`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]),Nn=_e(`notebook-text`,[[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M9.5 8h5`,key:`11mslq`}],[`path`,{d:`M9.5 12H16`,key:`ktog6x`}],[`path`,{d:`M9.5 16H14`,key:`p1seyn`}]]),Pn=_e(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),Fn=_e(`pilcrow`,[[`path`,{d:`M13 4v16`,key:`8vvj80`}],[`path`,{d:`M17 4v16`,key:`7dpous`}],[`path`,{d:`M19 4H9.5a4.5 4.5 0 0 0 0 9H13`,key:`sh4n9v`}]]),In=_e(`quote`,[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]),Ln=_e(`repeat-2`,[[`path`,{d:`m2 9 3-3 3 3`,key:`1ltn5i`}],[`path`,{d:`M13 18H7a2 2 0 0 1-2-2V6`,key:`1r6tfw`}],[`path`,{d:`m22 15-3 3-3-3`,key:`4rnwn2`}],[`path`,{d:`M11 6h6a2 2 0 0 1 2 2v10`,key:`2f72bc`}]]),Rn=_e(`separator-horizontal`,[[`path`,{d:`m16 16-4 4-4-4`,key:`3dv8je`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`m8 8 4-4 4 4`,key:`2bscm2`}]]),zn=_e(`sheet`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`line`,{x1:`3`,x2:`21`,y1:`9`,y2:`9`,key:`1vqk6q`}],[`line`,{x1:`3`,x2:`21`,y1:`15`,y2:`15`,key:`o2sbyz`}],[`line`,{x1:`9`,x2:`9`,y1:`9`,y2:`21`,key:`1ib60c`}],[`line`,{x1:`15`,x2:`15`,y1:`9`,y2:`21`,key:`1n26ft`}]]),Bn=_e(`sigma`,[[`path`,{d:`M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2`,key:`wuwx1p`}]]),Vn=_e(`square-code`,[[`path`,{d:`m10 9-3 3 3 3`,key:`1oro0q`}],[`path`,{d:`m14 15 3-3-3-3`,key:`bz13h7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Hn=_e(`superscript`,[[`path`,{d:`m4 19 8-8`,key:`hr47gm`}],[`path`,{d:`m12 19-8-8`,key:`1dhhmo`}],[`path`,{d:`M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06`,key:`1dfcux`}]]),Un=_e(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),Wn=_e(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),R=e(y(),1),z=ie();function Gn(e,t,n){let r=t*Math.min(n,1-n),i=t=>{let i=(t+e/30)%12;return 255*(n-r*Math.max(-1,Math.min(i-3,9-i,1)))};return[i(0),i(8),i(4)]}function Kn(e,t){if(e===void 0)return;let n=(t[e]??e).trim().toLowerCase(),r=/^#([0-9a-f])([0-9a-f])([0-9a-f])f?$/.exec(n);if(r)return r.slice(1).map(e=>e+e).join(``).toUpperCase();let i=/^#([0-9a-f]{6})([0-9a-f]{2})?$/.exec(n);if(i?.[1]!==void 0)return i[1].toUpperCase();let a=/^(rgb|hsl)a?\(([^)]*)\)$/.exec(n),[o=NaN,s=NaN,c=NaN]=(a?.[2]??``).split(/[\s,/]+/).filter(Boolean).map(Number.parseFloat);if(a&&![o,s,c].some(Number.isNaN))return(a[1]===`rgb`?[o,s,c]:Gn(o,s/100,c/100)).map(e=>Math.round(Math.min(255,Math.max(0,e))).toString(16).padStart(2,`0`)).join(``).toUpperCase()}var qn=[`#2A78D6`,`#EB6834`,`#1BAF7A`,`#EDA100`,`#E87BA4`,`#008300`],Jn={ink:`#1F1D1A`,lead:`#605B51`,leadSoft:`#847F72`,rule:`#EAE6DE`,ruleStrong:`#959083`,ruleMid:`#D6D1C6`,stone:`#F8F6F1`,stone2:`#EFECE5`,sheet:`#FFFFFF`},Yn=e=>{let t=Number.parseInt(e.slice(1),16);return[t>>16&255,t>>8&255,t&255]};function Xn(e,t){let[n,r,i]=Yn(e),a=0,o=1/0;return t.forEach((e,t)=>{let[s,c,l]=Yn(e),u=2*(n-s)**2+4*(r-c)**2+3*(i-l)**2;u<o&&(o=u,a=t)}),a}function Zn(e){let t=[...qn];if(e===void 0)return t;let n=Xn(e,t);return[e,...t.filter((e,t)=>t!==n)]}function Qn(e,t){let n=Number.parseInt(e.slice(1),16),r=e=>Math.round(255-(255-e)*t).toString(16).padStart(2,`0`);return`#${r(n>>16&255)}${r(n>>8&255)}${r(n&255)}`.toUpperCase()}function $n(e){let t=Zn(e.accent),n=Object.fromEntries(Array.from({length:12},(e,n)=>{let r=t[n%t.length]??Jn.leadSoft;return[[`cScale${String(n)}`,Qn(r,.22)],[`cScaleLabel${String(n)}`,Jn.ink],[`cScalePeer${String(n)}`,Qn(r,.6)],[`cScaleInv${String(n)}`,Qn(r,.7)]]}).flat()),r=Object.fromEntries(t.map((e,t)=>[`pie${String(t+1)}`,e])),i=t[0]??qn[0];return{startOnLoad:!1,securityLevel:`strict`,htmlLabels:!1,fontFamily:e.font,theme:`base`,themeCSS:`.grid .tick line { stroke: ${Jn.rule}; } .grid .tick text { fill: ${Jn.lead}; } .grid path { stroke-width: 0; } .lineWrapper line, line.lineWrapper { stroke: ${Jn.leadSoft}; }`,look:`classic`,flowchart:{htmlLabels:!1,nodeSpacing:36,rankSpacing:44,padding:10,curve:`basis`},sequence:{actorMargin:40,width:120,height:44,boxMargin:8,messageFontSize:14,mirrorActors:!1},gantt:{barHeight:22,barGap:6,fontSize:12,sectionFontSize:12},themeVariables:{fontFamily:e.font,fontSize:`14px`,background:Jn.sheet,primaryColor:Jn.stone,primaryBorderColor:Jn.ruleMid,primaryTextColor:Jn.ink,secondaryColor:Jn.stone2,secondaryBorderColor:Jn.ruleMid,secondaryTextColor:Jn.ink,tertiaryColor:Jn.sheet,tertiaryBorderColor:Jn.rule,tertiaryTextColor:Jn.ink,mainBkg:Jn.stone,nodeBorder:Jn.ruleMid,clusterBkg:`#FCFBF8`,clusterBorder:Jn.rule,titleColor:Jn.ink,textColor:Jn.ink,lineColor:Jn.leadSoft,edgeLabelBackground:Jn.sheet,actorBkg:Jn.stone,actorBorder:Jn.ruleMid,actorTextColor:Jn.ink,actorLineColor:Jn.ruleMid,signalColor:Jn.lead,signalTextColor:Jn.ink,labelBoxBkgColor:Jn.stone,labelBoxBorderColor:Jn.ruleMid,noteBkgColor:`#FBF3DB`,noteBorderColor:`#E9D9A6`,noteTextColor:Jn.ink,sectionBkgColor:Jn.stone,altSectionBkgColor:Jn.sheet,sectionBkgColor2:Jn.stone,gridColor:Jn.rule,taskBkgColor:Qn(i,.35),taskBorderColor:Qn(i,.8),taskTextColor:Jn.ink,taskTextLightColor:Jn.ink,taskTextOutsideColor:Jn.ink,activeTaskBkgColor:Qn(i,.18),activeTaskBorderColor:Qn(i,.8),doneTaskBkgColor:Jn.stone2,doneTaskBorderColor:Jn.ruleMid,critBkgColor:Qn(`#D6403A`,.3),critBorderColor:`#D6403A`,...n,...r,pieStrokeColor:Jn.sheet,pieOuterStrokeColor:Jn.rule,pieTitleTextColor:Jn.ink,pieSectionTextColor:Jn.ink,pieLegendTextColor:Jn.ink}}}function er(e){let t=e.of.lastIndexOf(`#`),n=t<0?``:e.of.slice(t+1);return n!==``&&n!=="default"?n:((t<0?e.of:e.of.slice(0,t)).split(`/`).pop()??``).replace(/\.[^.]+$/u,``)}function tr(e){let t=e.width??720;return{name:e.of,props:{...e.props},width:t,height:e.height??Math.round(t*.5625),t:e.at??0}}var nr={gray:`#8B8A85`,brown:`#9A6B4B`,red:`#D6403A`,orange:`#EB6834`,yellow:`#EDA100`,green:`#1BAF7A`,blue:`#2A78D6`,purple:`#8A5CD6`,pink:`#E87BA4`},rr=Jn.lead,ir={grid:Jn.rule,axis:Jn.ruleMid},ar={gap:80,overlap:-8},or={size:10,title:13},sr=e=>{let t=Kn(e,nr);return t===void 0?void 0:`#${t}`};function cr(e={},t=[]){let n=Zn(e.accent===void 0?void 0:sr(e.accent));t.slice(0,n.length).forEach((e,t)=>{let r=sr(e);r!==void 0&&(n[t]=r)});let[r,i,a,o,s,c]=n;return{dk1:rr,lt1:`#FFFFFF`,dk2:`#37352F`,lt2:`#EFEFED`,accent1:r,accent2:i,accent3:a,accent4:o,accent5:s,accent6:c,hlink:r,folHlink:r}}var lr={width:560,aspect:.6};function ur(e,t=720){let n=e.kind!==void 0&&Oe(e.kind),r=e.width??(n?Math.min(t,lr.width):t);return{width:r,height:e.height??Math.round(r*(n?lr.aspect:.5625))}}function dr(e){let t=e.trim().replace(/,/gu,``);if(t===``)return null;let n=Number(t);return Number.isFinite(n)?n:void 0}function fr(e,t){let n=Te(e.kind),r=e.labels,i=e.min!==void 0||e.max!==void 0||e.format!==void 0?{...e.min===void 0?{}:{min:e.min},...e.max===void 0?{}:{max:e.max},...e.format===void 0?{}:{format:e.format}}:void 0,a={...r===void 0?{}:{labels:{...r.includes(`value`)?{value:!0}:{},...r.includes(`percentage`)?{percentage:!0}:{},...r.includes(`category`)?{category:!0}:{},...r.includes(`series`)?{series:!0}:{},...e.format===void 0?{}:{format:e.format}}},...i===void 0?{}:{value_axis:i},...Oe(e.kind)?{vary_by_categories:!0}:{}};if(e.table===void 0)return e.data===void 0||e.categories===void 0?void 0:{type:e.kind,data:e.data,categories:e.categories,series:e.series??[],...a};let[o=[],...s]=e.table,c=Math.max(0,...e.table.map(e=>e.length)),l=(e,t)=>e[t]??``,u=e=>s.map((n,r)=>{let i=dr(l(n,e));return i===void 0?(t.push(`row ${String(r+1)} of its table: "${l(n,e)}" under ${l(o,e)||`column ${String(e+1)}`} is not a number`),null):i}),d=Array.from({length:Math.max(0,c-1)},(e,t)=>{let r=t+1;return{name:l(o,r)||`Series ${String(r)}`,values:u(r),...n?{x:u(0)}:{}}});if(d.length!==0)return{type:e.kind,...n?{}:{categories:s.map(e=>l(e,0))},series:d,...a}}function pr(e,t){if(e.legend!==`none`)return e.legend===void 0?Oe(e.kind)?`right`:t.series.length>1?`bottom`:void 0:e.legend}function mr(e,t={}){let n=[],r=fr(e,n);if(!r)return{problems:[...n,`it has no numbers to draw`]};let i=Ut(r,{title:e.title,base:t.base??``,rows:e=>{let n=t.data?.(e);if(n===void 0)throw Error(`there is no such file or table`);return n},problem:e=>n.push(e)});if(!i)return{problems:n};let a=pr(e,i),o=cr(t.page,e.colors),s=[o.accent1,o.accent2,o.accent3,o.accent4,o.accent5,o.accent6],c=e=>({rgb:s[e%s.length]??`#000000`}),l=De(i),u=Te(e.kind),d=e.table===void 0?e.categories:e.table[0]?.[0],f=i.series.length===1?i.series[0]?.name:void 0,p={gridline_color:{rgb:ir.grid},line_color:{rgb:ir.axis}},m=ke(e.kind),h=e.kind.endsWith(`-clustered`),g={...i,category_axis:{...p,...i.category_axis,...u&&d!==void 0&&d!==``?{title:d}:{}},value_axis:{...p,...i.value_axis,...u&&f!==void 0&&f!==``?{title:f}:{}},...m&&i.gap_width===void 0?{gap_width:ar.gap}:{},...h&&i.series.length>1&&i.overlap===void 0?{overlap:ar.overlap}:{},series:i.series.map((e,t)=>l||e.color!==void 0?e:{...e,color:c(t)}),...l?{category_colors:i.categories.map((e,t)=>c(t))}:{},...a===void 0?{}:{legend:a},font_size:or.size,title_size:or.title,font_color:{rgb:rr}};return a===void 0&&delete g.legend,{chart:g,problems:n}}function hr(e,t){if(e.alt!==void 0)return e.alt;let n=t?.series.map(e=>e.name).join(`, `)??``,r=[e.title,n].filter(e=>e!==void 0&&e!==``);return r.length>0?r.join(`: `):`Chart`}var gr={ink:`#D4D3CF`,grid:`#3A3936`,axis:`#5C5B57`};function _r(e,t={}){let n=mr(e,t),{problems:r}=n;if(!n.chart)return{problems:r};let i=e=>({...e,gridline_color:{rgb:gr.grid},line_color:{rgb:gr.axis}}),a=t.dark===!0?{...n.chart,font_color:{rgb:gr.ink},value_axis:i(n.chart.value_axis),category_axis:i(n.chart.category_axis)}:n.chart,{width:o,height:s}=ur(e,t.room);return{svg:cn(a,o,s,{colors:cr(t.page,e.colors),paper:`none`,edge:`none`,...t.font===void 0?{}:{font:t.font},label:hr(e,a)}),problems:r}}function vr(e,t=720){let n=e.columns.map(e=>e.width??1),r=n.reduce((e,t)=>e+t,0)||1,i=Math.max(0,t-32*(e.columns.length-1));return n.map(e=>Math.round(i*e/r))}var B=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},yr=/([A-Z])/g,br=e=>e.replace(yr,`-$1`).toLowerCase(),xr={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Sr=/[&><"']/g,Cr=e=>String(e).replace(Sr,e=>xr[e]),wr=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?wr(e.body[0]):e:e.type===`font`?wr(e.body):e,Tr=new Set([`mathord`,`textord`,`atom`]),Er=e=>Tr.has(wr(e).type),Dr=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},Or={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function kr(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function Ar(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:kr(Array.isArray(e.type)?e.type[0]:e.type)}function jr(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?Ar(r):a?a(i):i}var Mr=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(Or)){var n=Or[t];n&&jr(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Dr(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Nr=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Hr[Ur[this.id]]}sub(){return Hr[Wr[this.id]]}fracNum(){return Hr[Gr[this.id]]}fracDen(){return Hr[Kr[this.id]]}cramp(){return Hr[qr[this.id]]}text(){return Hr[Jr[this.id]]}isTight(){return this.size>=2}},Pr=0,Fr=1,Ir=2,Lr=3,Rr=4,zr=5,Br=6,Vr=7,Hr=[new Nr(Pr,0,!1),new Nr(Fr,0,!0),new Nr(Ir,1,!1),new Nr(Lr,1,!0),new Nr(Rr,2,!1),new Nr(zr,2,!0),new Nr(Br,3,!1),new Nr(Vr,3,!0)],Ur=[Rr,zr,Rr,zr,Br,Vr,Br,Vr],Wr=[zr,zr,zr,zr,Vr,Vr,Vr,Vr],Gr=[Ir,Lr,Rr,zr,Br,Vr,Br,Vr],Kr=[Lr,Lr,zr,zr,Vr,Vr,Vr,Vr],qr=[Fr,Fr,Lr,Lr,zr,zr,Vr,Vr],Jr=[Pr,Fr,Ir,Lr,Ir,Lr,Ir,Lr],Yr={DISPLAY:Hr[Pr],TEXT:Hr[Ir],SCRIPT:Hr[Rr],SCRIPTSCRIPT:Hr[Br]},Xr=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Zr(e){for(var t=0;t<Xr.length;t++)for(var n=Xr[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Qr=[];Xr.forEach(e=>e.blocks.forEach(e=>Qr.push(...e)));function $r(e){for(var t=0;t<Qr.length;t+=2)if(e>=Qr[t]&&e<=Qr[t+1])return!0;return!1}var ei=e=>e+` `+e,ti=80,ni=function(e,t){return`M95,`+(622+e+t)+`
|
|
3
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
4
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
5
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
6
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
7
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
8
|
+
l`+e/2.075+` -`+e+`
|
|
9
|
+
c5.3,-9.3,12,-14,20,-14
|
|
10
|
+
H400000v`+(40+e)+`H845.2724
|
|
11
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
12
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
13
|
+
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},ri=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
|
|
14
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
15
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
16
|
+
l`+e/2.084+` -`+e+`
|
|
17
|
+
c4.7,-7.3,11,-11,19,-11
|
|
18
|
+
H40000v`+(40+e)+`H1012.3
|
|
19
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
20
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
21
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
22
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
23
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},ii=function(e,t){return`M983 `+(10+e+t)+`
|
|
24
|
+
l`+e/3.13+` -`+e+`
|
|
25
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|
26
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
27
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
28
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
29
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
30
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
31
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
32
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},ai=function(e,t){return`M424,`+(2398+e+t)+`
|
|
33
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
34
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
35
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
36
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
37
|
+
l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000
|
|
38
|
+
v`+(40+e)+`H1014.6
|
|
39
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
40
|
+
c-2,6,-10,9,-24,9
|
|
41
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
|
|
42
|
+
h400000v`+(40+e)+`h-400000z`},oi=function(e,t){return`M473,`+(2713+e+t)+`
|
|
43
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
|
|
44
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|
45
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
46
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
47
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
48
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
49
|
+
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},eee=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},si=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
|
|
50
|
+
H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
51
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
52
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
53
|
+
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},ci=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=ni(t,ti);break;case`sqrtSize1`:r=ri(t,ti);break;case`sqrtSize2`:r=ii(t,ti);break;case`sqrtSize3`:r=ai(t,ti);break;case`sqrtSize4`:r=oi(t,ti);break;case`sqrtTall`:r=si(t,ti,n)}return r},li=function(e,t){switch(e){case`⎜`:return ei(`M291 0 H417 V`+t+` H291z`);case`∣`:return ei(`M145 0 H188 V`+t+` H145z`);case`∥`:return ei(`M145 0 H188 V`+t+` H145z`)+ei(`M367 0 H410 V`+t+` H367z`);case`⎟`:return ei(`M457 0 H583 V`+t+` H457z`);case`⎢`:return ei(`M319 0 H403 V`+t+` H319z`);case`⎥`:return ei(`M263 0 H347 V`+t+` H263z`);case`⎪`:return ei(`M384 0 H504 V`+t+` H384z`);case`⏐`:return ei(`M312 0 H355 V`+t+` H312z`);case`‖`:return ei(`M257 0 H300 V`+t+` H257z`)+ei(`M478 0 H521 V`+t+` H478z`);default:return``}},ui={doubleleftarrow:`M262 157
|
|
54
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
55
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
56
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
57
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
58
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
59
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
60
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
61
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
62
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
63
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
64
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
65
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
66
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
67
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
68
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
69
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
70
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
71
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
72
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
73
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
74
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
75
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
76
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
77
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
78
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
79
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
80
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
81
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
82
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
83
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
84
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
85
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
86
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
87
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
88
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
89
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
90
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
91
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
92
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
93
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
94
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
95
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
96
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
97
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
98
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
99
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:ei(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:ei(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:ei(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:ei(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
100
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
101
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
102
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:ei(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
|
|
103
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
104
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
105
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
106
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
107
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
108
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
109
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
110
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
111
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
112
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
113
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
114
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
115
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
116
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
117
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
118
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
119
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
120
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
121
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
122
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
123
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
124
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
125
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
126
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
127
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
128
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
129
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
130
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
131
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
132
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
133
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
134
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
135
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
136
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
137
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
138
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
139
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
140
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
141
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
142
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
143
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
144
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
145
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
146
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
147
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
148
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
149
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
150
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
151
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:ei(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:ei(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:ei(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
152
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
153
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
154
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
155
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
156
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
157
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
158
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
159
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
160
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
161
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
162
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
163
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
164
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
165
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
166
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
167
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
168
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
169
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
170
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
171
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
172
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
173
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
174
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
175
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
176
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
177
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
178
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
179
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
180
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
181
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
182
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
183
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
184
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
185
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
186
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
187
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
188
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
189
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
190
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
191
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
192
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
193
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
194
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
195
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
196
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
197
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
198
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
199
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
200
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
201
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
202
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
203
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
204
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
205
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
206
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
207
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
208
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
209
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
210
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
211
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
212
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
213
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
214
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
215
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
216
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
217
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
218
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
219
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
220
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
221
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
222
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
223
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
224
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},di=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
|
|
225
|
+
H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
|
|
226
|
+
M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
227
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
228
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
229
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
230
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
|
|
231
|
+
M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
232
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
233
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z
|
|
234
|
+
MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z
|
|
235
|
+
MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z
|
|
236
|
+
M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z
|
|
237
|
+
M347 1759 V0 h-84 V1759 v`+t+` v602 h84z`;case`lparen`:return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
238
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
239
|
+
-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
240
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
241
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
242
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
243
|
+
l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
244
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case`rparen`:return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
245
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
246
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
|
|
247
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
248
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
249
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
250
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
251
|
+
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
252
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function fi(e){return`toText`in e}var pi=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(fi(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},mi={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},hi={ex:!0,em:!0,mu:!0},gi=function(e){return typeof e!=`string`&&(e=e.unit),e in mi||e in hi||e===`ex`},_i=function(e,t){var n;if(e.unit in mi)n=mi[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new B(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},vi=function(e){return+e.toFixed(4)+`em`},yi=function(e){return e.filter(e=>e).join(` `)},bi=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=br(n)+`:`+r+`;`)}return t},xi=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},Si=function(e){var t=document.createElement(e);t.className=yi(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},tee=/[\s"'>/=\x00-\x1f]/,Ci=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+Cr(yi(this.classes))+`"`);var n=bi(this.style);n&&(t+=` style="`+Cr(n)+`"`);for(var r of Object.keys(this.attributes)){if(tee.test(r))throw new B(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+Cr(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},wi=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,xi.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Si.call(this,`span`)}toMarkup(){return Ci.call(this,`span`)}},Ti=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,xi.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Si.call(this,`a`)}toMarkup(){return Ci.call(this,`a`)}},Ei=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+Cr(this.src)+`"`+(` alt="`+Cr(this.alt)+`"`),t=bi(this.style);return t&&(e+=` style="`+Cr(t)+`"`),e+=`'/>`,e}},Di={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Oi=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=Zr(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Di[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=vi(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=yi(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=Cr(yi(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+vi(this.italic)+`;`),n+=bi(this.style),n&&(e=!0,t+=` style="`+Cr(n)+`"`);var r=Cr(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},ki=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+Cr(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},Ai=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,ui[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+Cr(this.alternate)+`"/>`:`<path d="`+Cr(ui[this.pathName])+`"/>`}},ji=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+Cr(this.attributes[t])+`"`;return e+=`/>`,e}};function Mi(e){if(e instanceof Oi)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Ni(e){if(e instanceof wi)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var Pi=e=>e instanceof wi||e instanceof Ti||e instanceof pi,Fi={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Ii={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Li={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function Ri(e,t){Fi[e]=t}function zi(e,t,n){if(!Fi[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Fi[t][r];if(!i&&e[0]in Li&&(r=Li[e[0]].charCodeAt(0),i=Fi[t][r]),!i&&n===`text`&&$r(r)&&(i=Fi[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Bi={};function Vi(e){var t=e>=5?0:e>=3?1:2;if(!Bi[t]){var n=Bi[t]={cssEmPerMu:Ii.quad[t]/18};for(var r of Object.keys(Ii))n[r]=Ii[r][t]}return Bi[t]}var Hi={math:{},text:{}};function V(e,t,n,r,i,a){Hi[e][i]={font:t,group:n,replace:r},a&&r&&(Hi[e][r]=Hi[e][i])}var H=`math`,U=`text`,W=`main`,G=`ams`,Ui=`accent-token`,Wi=`bin`,Gi=`close`,Ki=`inner`,qi=`mathord`,Ji=`op-token`,Yi=`open`,Xi=`punct`,K=`rel`,Zi=`spacing`,q=`textord`;V(H,W,K,`≡`,`\\equiv`,!0),V(H,W,K,`≺`,`\\prec`,!0),V(H,W,K,`≻`,`\\succ`,!0),V(H,W,K,`∼`,`\\sim`,!0),V(H,W,K,`⊥`,`\\perp`),V(H,W,K,`⪯`,`\\preceq`,!0),V(H,W,K,`⪰`,`\\succeq`,!0),V(H,W,K,`≃`,`\\simeq`,!0),V(H,W,K,`∣`,`\\mid`,!0),V(H,W,K,`≪`,`\\ll`,!0),V(H,W,K,`≫`,`\\gg`,!0),V(H,W,K,`≍`,`\\asymp`,!0),V(H,W,K,`∥`,`\\parallel`),V(H,W,K,`⋈`,`\\bowtie`,!0),V(H,W,K,`⌣`,`\\smile`,!0),V(H,W,K,`⊑`,`\\sqsubseteq`,!0),V(H,W,K,`⊒`,`\\sqsupseteq`,!0),V(H,W,K,`≐`,`\\doteq`,!0),V(H,W,K,`⌢`,`\\frown`,!0),V(H,W,K,`∋`,`\\ni`,!0),V(H,W,K,`∝`,`\\propto`,!0),V(H,W,K,`⊢`,`\\vdash`,!0),V(H,W,K,`⊣`,`\\dashv`,!0),V(H,W,K,`∋`,`\\owns`),V(H,W,Xi,`.`,`\\ldotp`),V(H,W,Xi,`⋅`,`\\cdotp`),V(H,W,Xi,`⋅`,`·`),V(U,W,q,`⋅`,`·`),V(H,W,q,`#`,`\\#`),V(U,W,q,`#`,`\\#`),V(H,W,q,`&`,`\\&`),V(U,W,q,`&`,`\\&`),V(H,W,q,`ℵ`,`\\aleph`,!0),V(H,W,q,`∀`,`\\forall`,!0),V(H,W,q,`ℏ`,`\\hbar`,!0),V(H,W,q,`∃`,`\\exists`,!0),V(H,W,q,`∇`,`\\nabla`,!0),V(H,W,q,`♭`,`\\flat`,!0),V(H,W,q,`ℓ`,`\\ell`,!0),V(H,W,q,`♮`,`\\natural`,!0),V(H,W,q,`♣`,`\\clubsuit`,!0),V(H,W,q,`℘`,`\\wp`,!0),V(H,W,q,`♯`,`\\sharp`,!0),V(H,W,q,`♢`,`\\diamondsuit`,!0),V(H,W,q,`ℜ`,`\\Re`,!0),V(H,W,q,`♡`,`\\heartsuit`,!0),V(H,W,q,`ℑ`,`\\Im`,!0),V(H,W,q,`♠`,`\\spadesuit`,!0),V(H,W,q,`§`,`\\S`,!0),V(U,W,q,`§`,`\\S`),V(H,W,q,`¶`,`\\P`,!0),V(U,W,q,`¶`,`\\P`),V(H,W,q,`†`,`\\dag`),V(U,W,q,`†`,`\\dag`),V(U,W,q,`†`,`\\textdagger`),V(H,W,q,`‡`,`\\ddag`),V(U,W,q,`‡`,`\\ddag`),V(U,W,q,`‡`,`\\textdaggerdbl`),V(H,W,Gi,`⎱`,`\\rmoustache`,!0),V(H,W,Yi,`⎰`,`\\lmoustache`,!0),V(H,W,Gi,`⟯`,`\\rgroup`,!0),V(H,W,Yi,`⟮`,`\\lgroup`,!0),V(H,W,Wi,`∓`,`\\mp`,!0),V(H,W,Wi,`⊖`,`\\ominus`,!0),V(H,W,Wi,`⊎`,`\\uplus`,!0),V(H,W,Wi,`⊓`,`\\sqcap`,!0),V(H,W,Wi,`∗`,`\\ast`),V(H,W,Wi,`⊔`,`\\sqcup`,!0),V(H,W,Wi,`◯`,`\\bigcirc`,!0),V(H,W,Wi,`∙`,`\\bullet`,!0),V(H,W,Wi,`‡`,`\\ddagger`),V(H,W,Wi,`≀`,`\\wr`,!0),V(H,W,Wi,`⨿`,`\\amalg`),V(H,W,Wi,`&`,`\\And`),V(H,W,K,`⟵`,`\\longleftarrow`,!0),V(H,W,K,`⇐`,`\\Leftarrow`,!0),V(H,W,K,`⟸`,`\\Longleftarrow`,!0),V(H,W,K,`⟶`,`\\longrightarrow`,!0),V(H,W,K,`⇒`,`\\Rightarrow`,!0),V(H,W,K,`⟹`,`\\Longrightarrow`,!0),V(H,W,K,`↔`,`\\leftrightarrow`,!0),V(H,W,K,`⟷`,`\\longleftrightarrow`,!0),V(H,W,K,`⇔`,`\\Leftrightarrow`,!0),V(H,W,K,`⟺`,`\\Longleftrightarrow`,!0),V(H,W,K,`↦`,`\\mapsto`,!0),V(H,W,K,`⟼`,`\\longmapsto`,!0),V(H,W,K,`↗`,`\\nearrow`,!0),V(H,W,K,`↩`,`\\hookleftarrow`,!0),V(H,W,K,`↪`,`\\hookrightarrow`,!0),V(H,W,K,`↘`,`\\searrow`,!0),V(H,W,K,`↼`,`\\leftharpoonup`,!0),V(H,W,K,`⇀`,`\\rightharpoonup`,!0),V(H,W,K,`↙`,`\\swarrow`,!0),V(H,W,K,`↽`,`\\leftharpoondown`,!0),V(H,W,K,`⇁`,`\\rightharpoondown`,!0),V(H,W,K,`↖`,`\\nwarrow`,!0),V(H,W,K,`⇌`,`\\rightleftharpoons`,!0),V(H,G,K,`≮`,`\\nless`,!0),V(H,G,K,``,`\\@nleqslant`),V(H,G,K,``,`\\@nleqq`),V(H,G,K,`⪇`,`\\lneq`,!0),V(H,G,K,`≨`,`\\lneqq`,!0),V(H,G,K,``,`\\@lvertneqq`),V(H,G,K,`⋦`,`\\lnsim`,!0),V(H,G,K,`⪉`,`\\lnapprox`,!0),V(H,G,K,`⊀`,`\\nprec`,!0),V(H,G,K,`⋠`,`\\npreceq`,!0),V(H,G,K,`⋨`,`\\precnsim`,!0),V(H,G,K,`⪹`,`\\precnapprox`,!0),V(H,G,K,`≁`,`\\nsim`,!0),V(H,G,K,``,`\\@nshortmid`),V(H,G,K,`∤`,`\\nmid`,!0),V(H,G,K,`⊬`,`\\nvdash`,!0),V(H,G,K,`⊭`,`\\nvDash`,!0),V(H,G,K,`⋪`,`\\ntriangleleft`),V(H,G,K,`⋬`,`\\ntrianglelefteq`,!0),V(H,G,K,`⊊`,`\\subsetneq`,!0),V(H,G,K,``,`\\@varsubsetneq`),V(H,G,K,`⫋`,`\\subsetneqq`,!0),V(H,G,K,``,`\\@varsubsetneqq`),V(H,G,K,`≯`,`\\ngtr`,!0),V(H,G,K,``,`\\@ngeqslant`),V(H,G,K,``,`\\@ngeqq`),V(H,G,K,`⪈`,`\\gneq`,!0),V(H,G,K,`≩`,`\\gneqq`,!0),V(H,G,K,``,`\\@gvertneqq`),V(H,G,K,`⋧`,`\\gnsim`,!0),V(H,G,K,`⪊`,`\\gnapprox`,!0),V(H,G,K,`⊁`,`\\nsucc`,!0),V(H,G,K,`⋡`,`\\nsucceq`,!0),V(H,G,K,`⋩`,`\\succnsim`,!0),V(H,G,K,`⪺`,`\\succnapprox`,!0),V(H,G,K,`≆`,`\\ncong`,!0),V(H,G,K,``,`\\@nshortparallel`),V(H,G,K,`∦`,`\\nparallel`,!0),V(H,G,K,`⊯`,`\\nVDash`,!0),V(H,G,K,`⋫`,`\\ntriangleright`),V(H,G,K,`⋭`,`\\ntrianglerighteq`,!0),V(H,G,K,``,`\\@nsupseteqq`),V(H,G,K,`⊋`,`\\supsetneq`,!0),V(H,G,K,``,`\\@varsupsetneq`),V(H,G,K,`⫌`,`\\supsetneqq`,!0),V(H,G,K,``,`\\@varsupsetneqq`),V(H,G,K,`⊮`,`\\nVdash`,!0),V(H,G,K,`⪵`,`\\precneqq`,!0),V(H,G,K,`⪶`,`\\succneqq`,!0),V(H,G,K,``,`\\@nsubseteqq`),V(H,G,Wi,`⊴`,`\\unlhd`),V(H,G,Wi,`⊵`,`\\unrhd`),V(H,G,K,`↚`,`\\nleftarrow`,!0),V(H,G,K,`↛`,`\\nrightarrow`,!0),V(H,G,K,`⇍`,`\\nLeftarrow`,!0),V(H,G,K,`⇏`,`\\nRightarrow`,!0),V(H,G,K,`↮`,`\\nleftrightarrow`,!0),V(H,G,K,`⇎`,`\\nLeftrightarrow`,!0),V(H,G,K,`△`,`\\vartriangle`),V(H,G,q,`ℏ`,`\\hslash`),V(H,G,q,`▽`,`\\triangledown`),V(H,G,q,`◊`,`\\lozenge`),V(H,G,q,`Ⓢ`,`\\circledS`),V(H,G,q,`®`,`\\circledR`),V(U,G,q,`®`,`\\circledR`),V(H,G,q,`∡`,`\\measuredangle`,!0),V(H,G,q,`∄`,`\\nexists`),V(H,G,q,`℧`,`\\mho`),V(H,G,q,`Ⅎ`,`\\Finv`,!0),V(H,G,q,`⅁`,`\\Game`,!0),V(H,G,q,`‵`,`\\backprime`),V(H,G,q,`▲`,`\\blacktriangle`),V(H,G,q,`▼`,`\\blacktriangledown`),V(H,G,q,`■`,`\\blacksquare`),V(H,G,q,`⧫`,`\\blacklozenge`),V(H,G,q,`★`,`\\bigstar`),V(H,G,q,`∢`,`\\sphericalangle`,!0),V(H,G,q,`∁`,`\\complement`,!0),V(H,G,q,`ð`,`\\eth`,!0),V(U,W,q,`ð`,`ð`),V(H,G,q,`╱`,`\\diagup`),V(H,G,q,`╲`,`\\diagdown`),V(H,G,q,`□`,`\\square`),V(H,G,q,`□`,`\\Box`),V(H,G,q,`◊`,`\\Diamond`),V(H,G,q,`¥`,`\\yen`,!0),V(U,G,q,`¥`,`\\yen`,!0),V(H,G,q,`✓`,`\\checkmark`,!0),V(U,G,q,`✓`,`\\checkmark`),V(H,G,q,`ℶ`,`\\beth`,!0),V(H,G,q,`ℸ`,`\\daleth`,!0),V(H,G,q,`ℷ`,`\\gimel`,!0),V(H,G,q,`ϝ`,`\\digamma`,!0),V(H,G,q,`ϰ`,`\\varkappa`),V(H,G,Yi,`┌`,`\\@ulcorner`,!0),V(H,G,Gi,`┐`,`\\@urcorner`,!0),V(H,G,Yi,`└`,`\\@llcorner`,!0),V(H,G,Gi,`┘`,`\\@lrcorner`,!0),V(H,G,K,`≦`,`\\leqq`,!0),V(H,G,K,`⩽`,`\\leqslant`,!0),V(H,G,K,`⪕`,`\\eqslantless`,!0),V(H,G,K,`≲`,`\\lesssim`,!0),V(H,G,K,`⪅`,`\\lessapprox`,!0),V(H,G,K,`≊`,`\\approxeq`,!0),V(H,G,Wi,`⋖`,`\\lessdot`),V(H,G,K,`⋘`,`\\lll`,!0),V(H,G,K,`≶`,`\\lessgtr`,!0),V(H,G,K,`⋚`,`\\lesseqgtr`,!0),V(H,G,K,`⪋`,`\\lesseqqgtr`,!0),V(H,G,K,`≑`,`\\doteqdot`),V(H,G,K,`≓`,`\\risingdotseq`,!0),V(H,G,K,`≒`,`\\fallingdotseq`,!0),V(H,G,K,`∽`,`\\backsim`,!0),V(H,G,K,`⋍`,`\\backsimeq`,!0),V(H,G,K,`⫅`,`\\subseteqq`,!0),V(H,G,K,`⋐`,`\\Subset`,!0),V(H,G,K,`⊏`,`\\sqsubset`,!0),V(H,G,K,`≼`,`\\preccurlyeq`,!0),V(H,G,K,`⋞`,`\\curlyeqprec`,!0),V(H,G,K,`≾`,`\\precsim`,!0),V(H,G,K,`⪷`,`\\precapprox`,!0),V(H,G,K,`⊲`,`\\vartriangleleft`),V(H,G,K,`⊴`,`\\trianglelefteq`),V(H,G,K,`⊨`,`\\vDash`,!0),V(H,G,K,`⊪`,`\\Vvdash`,!0),V(H,G,K,`⌣`,`\\smallsmile`),V(H,G,K,`⌢`,`\\smallfrown`),V(H,G,K,`≏`,`\\bumpeq`,!0),V(H,G,K,`≎`,`\\Bumpeq`,!0),V(H,G,K,`≧`,`\\geqq`,!0),V(H,G,K,`⩾`,`\\geqslant`,!0),V(H,G,K,`⪖`,`\\eqslantgtr`,!0),V(H,G,K,`≳`,`\\gtrsim`,!0),V(H,G,K,`⪆`,`\\gtrapprox`,!0),V(H,G,Wi,`⋗`,`\\gtrdot`),V(H,G,K,`⋙`,`\\ggg`,!0),V(H,G,K,`≷`,`\\gtrless`,!0),V(H,G,K,`⋛`,`\\gtreqless`,!0),V(H,G,K,`⪌`,`\\gtreqqless`,!0),V(H,G,K,`≖`,`\\eqcirc`,!0),V(H,G,K,`≗`,`\\circeq`,!0),V(H,G,K,`≜`,`\\triangleq`,!0),V(H,G,K,`∼`,`\\thicksim`),V(H,G,K,`≈`,`\\thickapprox`),V(H,G,K,`⫆`,`\\supseteqq`,!0),V(H,G,K,`⋑`,`\\Supset`,!0),V(H,G,K,`⊐`,`\\sqsupset`,!0),V(H,G,K,`≽`,`\\succcurlyeq`,!0),V(H,G,K,`⋟`,`\\curlyeqsucc`,!0),V(H,G,K,`≿`,`\\succsim`,!0),V(H,G,K,`⪸`,`\\succapprox`,!0),V(H,G,K,`⊳`,`\\vartriangleright`),V(H,G,K,`⊵`,`\\trianglerighteq`),V(H,G,K,`⊩`,`\\Vdash`,!0),V(H,G,K,`∣`,`\\shortmid`),V(H,G,K,`∥`,`\\shortparallel`),V(H,G,K,`≬`,`\\between`,!0),V(H,G,K,`⋔`,`\\pitchfork`,!0),V(H,G,K,`∝`,`\\varpropto`),V(H,G,K,`◀`,`\\blacktriangleleft`),V(H,G,K,`∴`,`\\therefore`,!0),V(H,G,K,`∍`,`\\backepsilon`),V(H,G,K,`▶`,`\\blacktriangleright`),V(H,G,K,`∵`,`\\because`,!0),V(H,G,K,`⋘`,`\\llless`),V(H,G,K,`⋙`,`\\gggtr`),V(H,G,Wi,`⊲`,`\\lhd`),V(H,G,Wi,`⊳`,`\\rhd`),V(H,G,K,`≂`,`\\eqsim`,!0),V(H,W,K,`⋈`,`\\Join`),V(H,G,K,`≑`,`\\Doteq`,!0),V(H,G,Wi,`∔`,`\\dotplus`,!0),V(H,G,Wi,`∖`,`\\smallsetminus`),V(H,G,Wi,`⋒`,`\\Cap`,!0),V(H,G,Wi,`⋓`,`\\Cup`,!0),V(H,G,Wi,`⩞`,`\\doublebarwedge`,!0),V(H,G,Wi,`⊟`,`\\boxminus`,!0),V(H,G,Wi,`⊞`,`\\boxplus`,!0),V(H,G,Wi,`⋇`,`\\divideontimes`,!0),V(H,G,Wi,`⋉`,`\\ltimes`,!0),V(H,G,Wi,`⋊`,`\\rtimes`,!0),V(H,G,Wi,`⋋`,`\\leftthreetimes`,!0),V(H,G,Wi,`⋌`,`\\rightthreetimes`,!0),V(H,G,Wi,`⋏`,`\\curlywedge`,!0),V(H,G,Wi,`⋎`,`\\curlyvee`,!0),V(H,G,Wi,`⊝`,`\\circleddash`,!0),V(H,G,Wi,`⊛`,`\\circledast`,!0),V(H,G,Wi,`⋅`,`\\centerdot`),V(H,G,Wi,`⊺`,`\\intercal`,!0),V(H,G,Wi,`⋒`,`\\doublecap`),V(H,G,Wi,`⋓`,`\\doublecup`),V(H,G,Wi,`⊠`,`\\boxtimes`,!0),V(H,G,K,`⇢`,`\\dashrightarrow`,!0),V(H,G,K,`⇠`,`\\dashleftarrow`,!0),V(H,G,K,`⇇`,`\\leftleftarrows`,!0),V(H,G,K,`⇆`,`\\leftrightarrows`,!0),V(H,G,K,`⇚`,`\\Lleftarrow`,!0),V(H,G,K,`↞`,`\\twoheadleftarrow`,!0),V(H,G,K,`↢`,`\\leftarrowtail`,!0),V(H,G,K,`↫`,`\\looparrowleft`,!0),V(H,G,K,`⇋`,`\\leftrightharpoons`,!0),V(H,G,K,`↶`,`\\curvearrowleft`,!0),V(H,G,K,`↺`,`\\circlearrowleft`,!0),V(H,G,K,`↰`,`\\Lsh`,!0),V(H,G,K,`⇈`,`\\upuparrows`,!0),V(H,G,K,`↿`,`\\upharpoonleft`,!0),V(H,G,K,`⇃`,`\\downharpoonleft`,!0),V(H,W,K,`⊶`,`\\origof`,!0),V(H,W,K,`⊷`,`\\imageof`,!0),V(H,G,K,`⊸`,`\\multimap`,!0),V(H,G,K,`↭`,`\\leftrightsquigarrow`,!0),V(H,G,K,`⇉`,`\\rightrightarrows`,!0),V(H,G,K,`⇄`,`\\rightleftarrows`,!0),V(H,G,K,`↠`,`\\twoheadrightarrow`,!0),V(H,G,K,`↣`,`\\rightarrowtail`,!0),V(H,G,K,`↬`,`\\looparrowright`,!0),V(H,G,K,`↷`,`\\curvearrowright`,!0),V(H,G,K,`↻`,`\\circlearrowright`,!0),V(H,G,K,`↱`,`\\Rsh`,!0),V(H,G,K,`⇊`,`\\downdownarrows`,!0),V(H,G,K,`↾`,`\\upharpoonright`,!0),V(H,G,K,`⇂`,`\\downharpoonright`,!0),V(H,G,K,`⇝`,`\\rightsquigarrow`,!0),V(H,G,K,`⇝`,`\\leadsto`),V(H,G,K,`⇛`,`\\Rrightarrow`,!0),V(H,G,K,`↾`,`\\restriction`),V(H,W,q,`‘`,"`"),V(H,W,q,`$`,`\\$`),V(U,W,q,`$`,`\\$`),V(U,W,q,`$`,`\\textdollar`),V(H,W,q,`%`,`\\%`),V(U,W,q,`%`,`\\%`),V(H,W,q,`_`,`\\_`),V(U,W,q,`_`,`\\_`),V(U,W,q,`_`,`\\textunderscore`),V(H,W,q,`∠`,`\\angle`,!0),V(H,W,q,`∞`,`\\infty`,!0),V(H,W,q,`′`,`\\prime`),V(H,W,q,`△`,`\\triangle`),V(H,W,q,`Γ`,`\\Gamma`,!0),V(H,W,q,`Δ`,`\\Delta`,!0),V(H,W,q,`Θ`,`\\Theta`,!0),V(H,W,q,`Λ`,`\\Lambda`,!0),V(H,W,q,`Ξ`,`\\Xi`,!0),V(H,W,q,`Π`,`\\Pi`,!0),V(H,W,q,`Σ`,`\\Sigma`,!0),V(H,W,q,`Υ`,`\\Upsilon`,!0),V(H,W,q,`Φ`,`\\Phi`,!0),V(H,W,q,`Ψ`,`\\Psi`,!0),V(H,W,q,`Ω`,`\\Omega`,!0),V(H,W,q,`A`,`Α`),V(H,W,q,`B`,`Β`),V(H,W,q,`E`,`Ε`),V(H,W,q,`Z`,`Ζ`),V(H,W,q,`H`,`Η`),V(H,W,q,`I`,`Ι`),V(H,W,q,`K`,`Κ`),V(H,W,q,`M`,`Μ`),V(H,W,q,`N`,`Ν`),V(H,W,q,`O`,`Ο`),V(H,W,q,`P`,`Ρ`),V(H,W,q,`T`,`Τ`),V(H,W,q,`X`,`Χ`),V(H,W,q,`¬`,`\\neg`,!0),V(H,W,q,`¬`,`\\lnot`),V(H,W,q,`⊤`,`\\top`),V(H,W,q,`⊥`,`\\bot`),V(H,W,q,`∅`,`\\emptyset`),V(H,G,q,`∅`,`\\varnothing`),V(H,W,qi,`α`,`\\alpha`,!0),V(H,W,qi,`β`,`\\beta`,!0),V(H,W,qi,`γ`,`\\gamma`,!0),V(H,W,qi,`δ`,`\\delta`,!0),V(H,W,qi,`ϵ`,`\\epsilon`,!0),V(H,W,qi,`ζ`,`\\zeta`,!0),V(H,W,qi,`η`,`\\eta`,!0),V(H,W,qi,`θ`,`\\theta`,!0),V(H,W,qi,`ι`,`\\iota`,!0),V(H,W,qi,`κ`,`\\kappa`,!0),V(H,W,qi,`λ`,`\\lambda`,!0),V(H,W,qi,`μ`,`\\mu`,!0),V(H,W,qi,`ν`,`\\nu`,!0),V(H,W,qi,`ξ`,`\\xi`,!0),V(H,W,qi,`ο`,`\\omicron`,!0),V(H,W,qi,`π`,`\\pi`,!0),V(H,W,qi,`ρ`,`\\rho`,!0),V(H,W,qi,`σ`,`\\sigma`,!0),V(H,W,qi,`τ`,`\\tau`,!0),V(H,W,qi,`υ`,`\\upsilon`,!0),V(H,W,qi,`ϕ`,`\\phi`,!0),V(H,W,qi,`χ`,`\\chi`,!0),V(H,W,qi,`ψ`,`\\psi`,!0),V(H,W,qi,`ω`,`\\omega`,!0),V(H,W,qi,`ε`,`\\varepsilon`,!0),V(H,W,qi,`ϑ`,`\\vartheta`,!0),V(H,W,qi,`ϖ`,`\\varpi`,!0),V(H,W,qi,`ϱ`,`\\varrho`,!0),V(H,W,qi,`ς`,`\\varsigma`,!0),V(H,W,qi,`φ`,`\\varphi`,!0),V(H,W,Wi,`∗`,`*`,!0),V(H,W,Wi,`+`,`+`),V(H,W,Wi,`−`,`-`,!0),V(H,W,Wi,`⋅`,`\\cdot`,!0),V(H,W,Wi,`∘`,`\\circ`,!0),V(H,W,Wi,`÷`,`\\div`,!0),V(H,W,Wi,`±`,`\\pm`,!0),V(H,W,Wi,`×`,`\\times`,!0),V(H,W,Wi,`∩`,`\\cap`,!0),V(H,W,Wi,`∪`,`\\cup`,!0),V(H,W,Wi,`∖`,`\\setminus`,!0),V(H,W,Wi,`∧`,`\\land`),V(H,W,Wi,`∨`,`\\lor`),V(H,W,Wi,`∧`,`\\wedge`,!0),V(H,W,Wi,`∨`,`\\vee`,!0),V(H,W,q,`√`,`\\surd`),V(H,W,Yi,`⟨`,`\\langle`,!0),V(H,W,Yi,`∣`,`\\lvert`),V(H,W,Yi,`∥`,`\\lVert`),V(H,W,Gi,`?`,`?`),V(H,W,Gi,`!`,`!`),V(H,W,Gi,`⟩`,`\\rangle`,!0),V(H,W,Gi,`∣`,`\\rvert`),V(H,W,Gi,`∥`,`\\rVert`),V(H,W,K,`=`,`=`),V(H,W,K,`:`,`:`),V(H,W,K,`≈`,`\\approx`,!0),V(H,W,K,`≅`,`\\cong`,!0),V(H,W,K,`≥`,`\\ge`),V(H,W,K,`≥`,`\\geq`,!0),V(H,W,K,`←`,`\\gets`),V(H,W,K,`>`,`\\gt`,!0),V(H,W,K,`∈`,`\\in`,!0),V(H,W,K,``,`\\@not`),V(H,W,K,`⊂`,`\\subset`,!0),V(H,W,K,`⊃`,`\\supset`,!0),V(H,W,K,`⊆`,`\\subseteq`,!0),V(H,W,K,`⊇`,`\\supseteq`,!0),V(H,G,K,`⊈`,`\\nsubseteq`,!0),V(H,G,K,`⊉`,`\\nsupseteq`,!0),V(H,W,K,`⊨`,`\\models`),V(H,W,K,`←`,`\\leftarrow`,!0),V(H,W,K,`≤`,`\\le`),V(H,W,K,`≤`,`\\leq`,!0),V(H,W,K,`<`,`\\lt`,!0),V(H,W,K,`→`,`\\rightarrow`,!0),V(H,W,K,`→`,`\\to`),V(H,G,K,`≱`,`\\ngeq`,!0),V(H,G,K,`≰`,`\\nleq`,!0),V(H,W,Zi,`\xA0`,`\\ `),V(H,W,Zi,`\xA0`,`\\space`),V(H,W,Zi,`\xA0`,`\\nobreakspace`),V(U,W,Zi,`\xA0`,`\\ `),V(U,W,Zi,`\xA0`,` `),V(U,W,Zi,`\xA0`,`\\space`),V(U,W,Zi,`\xA0`,`\\nobreakspace`),V(H,W,Zi,``,`\\nobreak`),V(H,W,Zi,``,`\\allowbreak`),V(H,W,Xi,`,`,`,`),V(H,W,Xi,`;`,`;`),V(H,G,Wi,`⊼`,`\\barwedge`,!0),V(H,G,Wi,`⊻`,`\\veebar`,!0),V(H,W,Wi,`⊙`,`\\odot`,!0),V(H,W,Wi,`⊕`,`\\oplus`,!0),V(H,W,Wi,`⊗`,`\\otimes`,!0),V(H,W,q,`∂`,`\\partial`,!0),V(H,W,Wi,`⊘`,`\\oslash`,!0),V(H,G,Wi,`⊚`,`\\circledcirc`,!0),V(H,G,Wi,`⊡`,`\\boxdot`,!0),V(H,W,Wi,`△`,`\\bigtriangleup`),V(H,W,Wi,`▽`,`\\bigtriangledown`),V(H,W,Wi,`†`,`\\dagger`),V(H,W,Wi,`⋄`,`\\diamond`),V(H,W,Wi,`⋆`,`\\star`),V(H,W,Wi,`◃`,`\\triangleleft`),V(H,W,Wi,`▹`,`\\triangleright`),V(H,W,Yi,`{`,`\\{`),V(U,W,q,`{`,`\\{`),V(U,W,q,`{`,`\\textbraceleft`),V(H,W,Gi,`}`,`\\}`),V(U,W,q,`}`,`\\}`),V(U,W,q,`}`,`\\textbraceright`),V(H,W,Yi,`{`,`\\lbrace`),V(H,W,Gi,`}`,`\\rbrace`),V(H,W,Yi,`[`,`\\lbrack`,!0),V(U,W,q,`[`,`\\lbrack`,!0),V(H,W,Gi,`]`,`\\rbrack`,!0),V(U,W,q,`]`,`\\rbrack`,!0),V(H,W,Yi,`(`,`\\lparen`,!0),V(H,W,Gi,`)`,`\\rparen`,!0),V(U,W,q,`<`,`\\textless`,!0),V(U,W,q,`>`,`\\textgreater`,!0),V(H,W,Yi,`⌊`,`\\lfloor`,!0),V(H,W,Gi,`⌋`,`\\rfloor`,!0),V(H,W,Yi,`⌈`,`\\lceil`,!0),V(H,W,Gi,`⌉`,`\\rceil`,!0),V(H,W,q,`\\`,`\\backslash`),V(H,W,q,`∣`,`|`),V(H,W,q,`∣`,`\\vert`),V(U,W,q,`|`,`\\textbar`,!0),V(H,W,q,`∥`,`\\|`),V(H,W,q,`∥`,`\\Vert`),V(U,W,q,`∥`,`\\textbardbl`),V(U,W,q,`~`,`\\textasciitilde`),V(U,W,q,`\\`,`\\textbackslash`),V(U,W,q,`^`,`\\textasciicircum`),V(H,W,K,`↑`,`\\uparrow`,!0),V(H,W,K,`⇑`,`\\Uparrow`,!0),V(H,W,K,`↓`,`\\downarrow`,!0),V(H,W,K,`⇓`,`\\Downarrow`,!0),V(H,W,K,`↕`,`\\updownarrow`,!0),V(H,W,K,`⇕`,`\\Updownarrow`,!0),V(H,W,Ji,`∐`,`\\coprod`),V(H,W,Ji,`⋁`,`\\bigvee`),V(H,W,Ji,`⋀`,`\\bigwedge`),V(H,W,Ji,`⨄`,`\\biguplus`),V(H,W,Ji,`⋂`,`\\bigcap`),V(H,W,Ji,`⋃`,`\\bigcup`),V(H,W,Ji,`∫`,`\\int`),V(H,W,Ji,`∫`,`\\intop`),V(H,W,Ji,`∬`,`\\iint`),V(H,W,Ji,`∭`,`\\iiint`),V(H,W,Ji,`∏`,`\\prod`),V(H,W,Ji,`∑`,`\\sum`),V(H,W,Ji,`⨂`,`\\bigotimes`),V(H,W,Ji,`⨁`,`\\bigoplus`),V(H,W,Ji,`⨀`,`\\bigodot`),V(H,W,Ji,`∮`,`\\oint`),V(H,W,Ji,`∯`,`\\oiint`),V(H,W,Ji,`∰`,`\\oiiint`),V(H,W,Ji,`⨆`,`\\bigsqcup`),V(H,W,Ji,`∫`,`\\smallint`),V(U,W,Ki,`…`,`\\textellipsis`),V(H,W,Ki,`…`,`\\mathellipsis`),V(U,W,Ki,`…`,`\\ldots`,!0),V(H,W,Ki,`…`,`\\ldots`,!0),V(H,W,Ki,`⋯`,`\\@cdots`,!0),V(H,W,Ki,`⋱`,`\\ddots`,!0),V(H,W,q,`⋮`,`\\varvdots`),V(U,W,q,`⋮`,`\\varvdots`),V(H,W,Ui,`ˊ`,`\\acute`),V(H,W,Ui,`ˋ`,`\\grave`),V(H,W,Ui,`¨`,`\\ddot`),V(H,W,Ui,`~`,`\\tilde`),V(H,W,Ui,`ˉ`,`\\bar`),V(H,W,Ui,`˘`,`\\breve`),V(H,W,Ui,`ˇ`,`\\check`),V(H,W,Ui,`^`,`\\hat`),V(H,W,Ui,`⃗`,`\\vec`),V(H,W,Ui,`˙`,`\\dot`),V(H,W,Ui,`˚`,`\\mathring`),V(H,W,qi,``,`\\@imath`),V(H,W,qi,``,`\\@jmath`),V(H,W,q,`ı`,`ı`),V(H,W,q,`ȷ`,`ȷ`),V(U,W,q,`ı`,`\\i`,!0),V(U,W,q,`ȷ`,`\\j`,!0),V(U,W,q,`ß`,`\\ss`,!0),V(U,W,q,`æ`,`\\ae`,!0),V(U,W,q,`œ`,`\\oe`,!0),V(U,W,q,`ø`,`\\o`,!0),V(U,W,q,`Æ`,`\\AE`,!0),V(U,W,q,`Œ`,`\\OE`,!0),V(U,W,q,`Ø`,`\\O`,!0),V(U,W,Ui,`ˊ`,`\\'`),V(U,W,Ui,`ˋ`,"\\`"),V(U,W,Ui,`ˆ`,`\\^`),V(U,W,Ui,`˜`,`\\~`),V(U,W,Ui,`ˉ`,`\\=`),V(U,W,Ui,`˘`,`\\u`),V(U,W,Ui,`˙`,`\\.`),V(U,W,Ui,`¸`,`\\c`),V(U,W,Ui,`˚`,`\\r`),V(U,W,Ui,`ˇ`,`\\v`),V(U,W,Ui,`¨`,`\\"`),V(U,W,Ui,`˝`,`\\H`),V(U,W,Ui,`◯`,`\\textcircled`);var Qi={"--":!0,"---":!0,"``":!0,"''":!0};V(U,W,q,`–`,`--`,!0),V(U,W,q,`–`,`\\textendash`),V(U,W,q,`—`,`---`,!0),V(U,W,q,`—`,`\\textemdash`),V(U,W,q,`‘`,"`",!0),V(U,W,q,`‘`,`\\textquoteleft`),V(U,W,q,`’`,`'`,!0),V(U,W,q,`’`,`\\textquoteright`),V(U,W,q,`“`,"``",!0),V(U,W,q,`“`,`\\textquotedblleft`),V(U,W,q,`”`,`''`,!0),V(U,W,q,`”`,`\\textquotedblright`),V(H,W,q,`°`,`\\degree`,!0),V(U,W,q,`°`,`\\degree`),V(U,W,q,`°`,`\\textdegree`,!0),V(H,W,q,`£`,`\\pounds`),V(H,W,q,`£`,`\\mathsterling`,!0),V(U,W,q,`£`,`\\pounds`),V(U,W,q,`£`,`\\textsterling`,!0),V(H,G,q,`✠`,`\\maltese`),V(U,G,q,`✠`,`\\maltese`);for(var $i=`0123456789/@."`,ea=0;ea<$i.length;ea++){var ta=$i.charAt(ea);V(H,W,q,ta,ta)}for(var na=`0123456789!@*()-=+";:?/.,`,ra=0;ra<na.length;ra++){var ia=na.charAt(ra);V(U,W,q,ia,ia)}for(var aa=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,oa=0;oa<aa.length;oa++){var sa=aa.charAt(oa);V(H,W,qi,sa,sa),V(U,W,q,sa,sa)}V(H,G,q,`C`,`ℂ`),V(U,G,q,`C`,`ℂ`),V(H,G,q,`H`,`ℍ`),V(U,G,q,`H`,`ℍ`),V(H,G,q,`N`,`ℕ`),V(U,G,q,`N`,`ℕ`),V(H,G,q,`P`,`ℙ`),V(U,G,q,`P`,`ℙ`),V(H,G,q,`Q`,`ℚ`),V(U,G,q,`Q`,`ℚ`),V(H,G,q,`R`,`ℝ`),V(U,G,q,`R`,`ℝ`),V(H,G,q,`Z`,`ℤ`),V(U,G,q,`Z`,`ℤ`),V(H,W,qi,`h`,`ℎ`),V(U,W,qi,`h`,`ℎ`);for(var ca,la=0;la<aa.length;la++){var ua=aa.charAt(la);ca=String.fromCharCode(55349,56320+la),V(H,W,qi,ua,ca),V(U,W,q,ua,ca),ca=String.fromCharCode(55349,56372+la),V(H,W,qi,ua,ca),V(U,W,q,ua,ca),ca=String.fromCharCode(55349,56424+la),V(H,W,qi,ua,ca),V(U,W,q,ua,ca),ca=String.fromCharCode(55349,56580+la),V(H,W,qi,ua,ca),V(U,W,q,ua,ca),ca=String.fromCharCode(55349,56684+la),V(H,W,qi,ua,ca),V(U,W,q,ua,ca),ca=String.fromCharCode(55349,56736+la),V(H,W,qi,ua,ca),V(U,W,q,ua,ca),ca=String.fromCharCode(55349,56788+la),V(H,W,qi,ua,ca),V(U,W,q,ua,ca),ca=String.fromCharCode(55349,56840+la),V(H,W,qi,ua,ca),V(U,W,q,ua,ca),ca=String.fromCharCode(55349,56944+la),V(H,W,qi,ua,ca),V(U,W,q,ua,ca),la<26&&(ca=String.fromCharCode(55349,56632+la),V(H,W,qi,ua,ca),V(U,W,q,ua,ca),ca=String.fromCharCode(55349,56476+la),V(H,W,qi,ua,ca),V(U,W,q,ua,ca))}ca=String.fromCharCode(55349,56668),V(H,W,qi,`k`,ca),V(U,W,q,`k`,ca);for(var da=0;da<10;da++){var fa=da.toString();ca=String.fromCharCode(55349,57294+da),V(H,W,qi,fa,ca),V(U,W,q,fa,ca),ca=String.fromCharCode(55349,57314+da),V(H,W,qi,fa,ca),V(U,W,q,fa,ca),ca=String.fromCharCode(55349,57324+da),V(H,W,qi,fa,ca),V(U,W,q,fa,ca),ca=String.fromCharCode(55349,57334+da),V(H,W,qi,fa,ca),V(U,W,q,fa,ca)}for(var pa=`ÐÞþ`,ma=0;ma<pa.length;ma++){var ha=pa.charAt(ma);V(H,W,qi,ha,ha),V(U,W,q,ha,ha)}var ga={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},_a={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},va={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},ya={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},ba={mathClass:``,textClass:``,font:``},xa={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},Sa={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},Ca={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},wa={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},Ta={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},Ea={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},Da={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},Oa=[ga,ga,_a,_a,va,va,ya,ba,ba,ba,xa,xa,Sa,Sa,Ca,Ca,wa,wa,Ta,Ta,Ea,Ea,ba,ba,Da,Da],ka=[ga,ba,wa,Ta,Da],Aa=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Oa[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return ka[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Oa[0];if(120486<r&&r<120782)return ba;throw new B(`Unsupported character: `+e)};function ja(e){var t=e.strict,n=e.errorCode,r=e.errorMsg,i=e.token,a=e.report,o=t;if(typeof t==`function`){if(a)o=t(n,r,i);else try{o=t(n,r,i)}catch{o=`error`}}switch(o){case!0:case`error`:if(a)throw new B(`LaTeX-incompatible input and strict mode is set to 'error': `+(r+` [`+n+`]`),i);return!0;case!1:case`ignore`:if(!a)return!1;break;default:if(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(r+` [`+n+`]`)),!a)return!1}}var Ma=function(e,t,n){if(Hi[n][e]){var r=Hi[n][e].replace;r&&(e=r)}return{value:e,metrics:zi(e,t,n)}},Na=function(e,t,n,r,i){var a=Ma(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new Oi(e,o.height,o.depth,c,o.skew,o.width,i)}else ja({strict:r.strict,errorCode:`symbolNotInFont`,errorMsg:`No character metrics for '`+e+`' in style '`+t+`' and mode '`+n+`'`,report:!0}),s=new Oi(e,0,0,0,0,0,i);s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();return l&&(s.style.color=l),s},Pa=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&Ma(e,`Main-Bold`,t).metrics?Na(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||Hi[t][e].font===`main`?Na(e,`Main-Regular`,t,n,r):Na(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},Fa=function(e,t,n){return n!==`textord`&&Ma(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},Ia=function(e,t){var n=e.type===`mathord`?`mathord`:`textord`,r=e.mode,i=e.text,a=[`mord`],o=t.font,s=t.fontFamily,c=t.fontWeight,l=t.fontShape,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=Aa(i);f=m.font,p=m[r+`Class`]}if(f)return Na(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=Fa(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=Ya[o].fontName,g=[o]):(h=Ja(s,c,l),g=[s,c,l]);if(Ma(i,h,r).metrics)return Na(i,h,r,t,a.concat(g));if(Object.prototype.hasOwnProperty.call(Qi,i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(Na(i[y],h,r,t,a.concat(g)));return Ua(v)}}if(n===`mathord`)return Na(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=Hi[r][i]&&Hi[r][i].font;if(b===`ams`)return Na(i,Ja(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return Na(i,Ja(`textrm`,c,l),r,t,a.concat(c,l));var x=Ja(b,c,l);return Na(i,x,r,t,a.concat(x,c,l))}throw Error(`unexpected type: `+n+` in makeOrd`)},La=(e,t)=>{if(yi(e.classes)!==yi(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Ra=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Oi&&r instanceof Oi&&La(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},za=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},J=function(e,t,n,r){var i=new wi(e,t,n,r);return za(i),i},Ba=(e,t,n,r)=>new wi(e,t,n,r),Va=function(e,t,n){var r=J([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=vi(r.height),r.maxFontSize=1,r},Ha=function(e,t,n,r){var i=new Ti(e,t,n,r);return za(i),i},Ua=function(e){var t=new pi(e);return za(t),t},Wa=function(e,t){return e instanceof pi?J([],[e],t):e},Ga=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},Ka=function(e,t){for(var n=Ga(e),r=n.children,i=n.depth,a=0,o=0;o<r.length;o++){var s=r[o];if(s.type===`elem`){var c=s.elem;a=Math.max(a,c.maxFontSize,c.height)}}a+=2;var l=J([`pstrut`],[]);l.style.height=vi(a);for(var u=[],d=i,f=i,p=i,m=0;m<r.length;m++){var h=r[m];if(h.type===`kern`)p+=h.size;else{var g=h.elem,_=h.wrapperClasses||[],v=h.wrapperStyle||{},y=J(_,[l,g],void 0,v);y.style.top=vi(-a-p-g.depth),h.marginLeft&&(y.style.marginLeft=h.marginLeft),h.marginRight&&(y.style.marginRight=h.marginRight),u.push(y),p+=g.height+g.depth}d=Math.min(d,p),f=Math.max(f,p)}var b=J([`vlist`],u);b.style.height=vi(f);var x;if(d<0){var S=J([`vlist`],[J([],[])]);S.style.height=vi(-d),x=[J([`vlist-r`],[b,J([`vlist-s`],[new Oi(``)])]),J([`vlist-r`],[S])]}else x=[J([`vlist-r`],[b])];var C=J([`vlist-t`],x);return x.length===2&&C.classes.push(`vlist-t2`),C.height=f,C.depth=-d,C},qa=(e,t)=>{var n=J([`mspace`],[],t),r=_i(e,t);return n.style.marginRight=vi(r),n},Ja=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},Ya={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},Xa={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},Za=function(e,t){var n=Xa[e],r=n[0],i=n[1],a=n[2],o=Ba([`katex-overlay`],[new ki([new Ai(r)],{width:vi(i),height:vi(a),style:`width:`+vi(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return o.height=a,o.style.height=vi(a),o.style.width=vi(i),o},Qa={number:3,unit:`mu`},$a={number:4,unit:`mu`},eo={number:5,unit:`mu`},to={mord:{mop:Qa,mbin:$a,mrel:eo,minner:Qa},mop:{mord:Qa,mop:Qa,mrel:eo,minner:Qa},mbin:{mord:$a,mop:$a,mopen:$a,minner:$a},mrel:{mord:eo,mop:eo,mopen:eo,minner:eo},mopen:{},mclose:{mop:Qa,mbin:$a,mrel:eo,minner:Qa},mpunct:{mord:Qa,mop:Qa,mrel:eo,mopen:Qa,mclose:Qa,mpunct:Qa,minner:Qa},minner:{mord:Qa,mop:Qa,mbin:$a,mrel:eo,mopen:Qa,mpunct:Qa,minner:Qa}},no={mord:{mop:Qa},mop:{mord:Qa,mop:Qa},mbin:{},mrel:{},mopen:{},mclose:{mop:Qa},mpunct:{},minner:{mop:Qa}},ro={},io={},ao={};function oo(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a<n.length;++a)ro[n[a]]=e;t&&(r&&(io[t]=r),i&&(ao[t]=i))}function so(e){var t=e.type,n=e.htmlBuilder,r=e.mathmlBuilder;n&&(io[t]=n),r&&(ao[t]=r)}var co=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},lo=function(e){return e.type===`ordgroup`?e.body:[e]},uo=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),fo=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),po={display:Yr.DISPLAY,text:Yr.TEXT,script:Yr.SCRIPT,scriptscript:Yr.SCRIPTSCRIPT},mo={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},ho=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=xo(e[a],t);if(o instanceof pi){var s=o.children;i.push(...s)}else i.push(o)}if(Ra(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(po[l.style]))}var u=J([r[0]||`leftmost`],[],t),d=J([r[1]||`rightmost`],[],t),f=n===`root`;return go(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&fo.has(r)?t.classes[0]=`mord`:r===`mbin`&&uo.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),go(i,(e,t)=>{var n=yo(t),r=yo(e),i=n&&r?e.hasClass(`mtight`)?no[n]?.[r]:to[n]?.[r]:null;if(i)return qa(i,c)},{node:u},d,f),i},go=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=_o(o);if(s)go(s.children,t,n,null,i);else{var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`katex-newline`)&&(n.node=J([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}}r&&e.pop()},_o=function(e){return e instanceof pi||e instanceof Ti||e instanceof wi&&e.hasClass(`enclosing`)?e:null},vo=function(e,t){var n=_o(e);if(n){var r=n.children;if(r.length){if(t===`right`)return vo(r[r.length-1],`right`);if(t===`left`)return vo(r[0],`left`)}}return e},yo=function(e,t){return e?(t&&(e=vo(e,t)),mo[e.classes[0]]||null):null},bo=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return J(t.concat(n))},xo=function(e,t,n){if(!e)return J();if(io[e.type]){var r=io[e.type](e,t);if(n&&t.size!==n.size){r=J(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new B(`Got group of unknown type: '`+e.type+`'`)};function So(e,t){var n=J([`katex-base`],e,t),r=J([`katex-strut`]);return r.style.height=vi(n.height+n.depth),n.depth&&(r.style.verticalAlign=vi(-n.depth)),n.children.unshift(r),n}function Co(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=ho(e,t,`root`),i;r.length===2&&r[1].hasClass(`katex-tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`katex-newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(So(o,t)),o=[])}else r[s].hasClass(`katex-newline`)&&(o.pop(),o.length>0&&(a.push(So(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(So(o,t));var l;n?(l=So(ho(n,t,!0),t),l.classes=[`katex-tag`],a.push(l)):i&&a.push(i);var u=J([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=vi(u.height+u.depth),u.depth&&(d.style.verticalAlign=vi(-u.depth))}return u}function wo(e){return new pi(e)}var Y=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=yi(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof To&&this.children[i+1]instanceof To){for(var a=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof To;)a+=this.children[++i].toText();e.appendChild(new To(a).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e+=` `+n+`="`,e+=Cr(r),e+=`"`}this.classes.length>0&&(e+=` class ="`+Cr(yi(this.classes))+`"`),e+=`>`;for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},To=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Cr(this.toText())}toText(){return this.text}},Eo=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?` `:e>=-.05556&&e<=-.05555?` `:e>=-.1667&&e<=-.1666?` `:e>=-.2223&&e<=-.2222?` `:e>=-.2778&&e<=-.2777?` `:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,vi(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+vi(this.width)+`"/>`}toText(){return this.character?this.character:` `}},Do=new Set([`\\imath`,`\\jmath`]),Oo=new Set([`mrow`,`mtable`]),ko=function(e,t,n){var r,i;return Hi[t][e]&&Hi[t][e].replace&&e.charCodeAt(0)!==55349&&(!Object.prototype.hasOwnProperty.call(Qi,e)||(n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))!==`tt`&&(n==null||(i=n.font)==null?void 0:i.slice(4,6))!==`tt`)&&(e=Hi[t][e].replace),new To(e)},Ao=function(e){return e.length===1?e[0]:new Y(`mrow`,e)},jo={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},Mo=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=jo[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(Do.has(a))return null;if(Hi[r][a]){var o=Hi[r][a].replace;o&&(a=o)}var s=Ya[n].fontName;return zi(a,s,r)?Ya[n].variant:null};function No(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof To&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof To&&n.text===`,`}return!1}var Po=function(e,t,n){if(e.length===1){var r=Io(e[0],t);return n&&r instanceof Y&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=Io(e[o],t);if(s instanceof Y&&a instanceof Y){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)||s.type===`mn`&&a.type===`mn`||No(s)&&a.type===`mn`){a.children.push(...s.children);continue}if(s.type===`mn`&&No(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||No(a))){var c=s.children[0];c instanceof Y&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof To&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof To&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},Fo=function(e,t,n){return Ao(Po(e,t,n))},Io=function(e,t){if(!e)return new Y(`mrow`);if(ao[e.type])return ao[e.type](e,t);throw new B(`Got group of unknown type: '`+e.type+`'`)};function Lo(e,t,n,r,i){var a=Po(e,n),o=a.length===1&&a[0]instanceof Y&&Oo.has(a[0].type)?a[0]:new Y(`mrow`,a),s=new Y(`annotation`,[new To(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new Y(`math`,[new Y(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),J([i?`katex`:`katex-mathml`],[c])}var Ro=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],zo=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Bo=function(e,t){return t.size<2?e:Ro[e-1][t.size-1]},Vo=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.strict=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=zo[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this.strict=t.strict,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness,strict:this.strict};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Bo(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:zo[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=Bo(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Vi(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};Vo.BASESIZE=6;var Ho=e=>new Vo({style:e.displayMode?Yr.DISPLAY:Yr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),Uo=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=J(n,[e])}return e},nee=function(e,t,n){var r=Ho(n),i;return n.output===`mathml`?Lo(e,t,r,n.displayMode,!0):(i=n.output===`html`?J([`katex`],[Co(e,r)]):J([`katex`],[Lo(e,t,r,n.displayMode,!1),Co(e,r)]),Uo(i,n))},Wo=function(e,t){return Uo(J([`katex`],[Co(e,Ho(t))]),t)},Go={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},Ko=function(e){var t=new Y(`mo`,[new To(Go[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},qo={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},Jo=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),Yo=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(Jo.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:Ba([],[new ki([new Ai(o)],{width:`100%`,height:vi(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=qo[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var d=u[0],f=u[1],p=u[2],m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
253
|
+
`+h+` children.`);for(var v=0;v<h;v++){var y=new ki([new Ai(d[v])],{width:`400em`,height:vi(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=Ba([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=vi(m),l.push(b)}return{span:J([`katex-stretchy`],l,t),minWidth:f,height:m}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=vi(o),a>0&&(i.style.minWidth=vi(a)),i},Xo=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=J([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new ji({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new ji({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=Ba([],[new ki(c,{width:`100%`,height:vi(o)})],i)}return a.height=o,a.style.height=vi(o),a},Zo=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],Qo=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],$o=new Set(Zo),es=new Set(Qo);function ts(e){return $o.has(e)}function ns(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function rs(e){var t=is(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function is(e){return e.type===`atom`||es.has(e.type)?e:null}function as(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new B(t,e);return r}var os=e=>{if(e instanceof Oi)return e;if(Pi(e)&&e.children.length===1)return os(e.children[0])},ss=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=ns(e.base,`accent`),n=r.base,e.base=n,i=Ni(xo(e,t)),e.base=r):(r=ns(e,`accent`),n=r.base);var a=xo(n,t.havingCrampedStyle()),o=r.isShifty&&Er(n),s=0;o&&(s=os(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=Yo(r,t),u=Ka({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+vi(2*s)+`)`,marginLeft:vi(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=Za(`vec`,t),f=Xa.vec[1]):(d=Ia({type:`textord`,mode:r.mode,text:r.label},t),d=Mi(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=J([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=vi(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=Ka({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=J([`mord`,`katex-accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},cs=(e,t)=>{var n=e.isStretchy?Ko(e.label):new Y(`mo`,[ko(e.label,e.mode)]),r=new Y(`mover`,[Io(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},ls=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));oo({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=co(t[0]),r=!ls.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:ss,mathmlBuilder:cs}),oo({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(ja({strict:e.parser.settings.strict,errorCode:`mathVsTextAccents`,errorMsg:`LaTeX's accent `+e.funcName+` works only in text mode`,report:!0}),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),oo({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=xo(e.base,t),r=Yo(e,t),i=e.label===`\\utilde`?.12:0;return J([`mord`,`accentunder`],[Ka({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=Ko(e.label),r=new Y(`munder`,[Io(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var us=e=>{var t=new Y(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};oo({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Wa(xo(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Wa(xo(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=Yo(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=Ka({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=Ka({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return J([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=Ko(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=us(Io(e.body,t));r=e.below?new Y(`munderover`,[n,us(Io(e.below,t)),i]):new Y(`mover`,[n,i])}else e.below?r=new Y(`munder`,[n,us(Io(e.below,t))]):(r=us(),r=new Y(`mover`,[n,r]));return r}});function ds(e,t){var n=ho(e.body,t,!0);return J([e.mclass],n,t)}function fs(e,t){var n,r=Po(e.body,t);return e.mclass===`minner`?n=new Y(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Y(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Y(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}oo({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:lo(i),isCharacterBox:Er(i)}},htmlBuilder:ds,mathmlBuilder:fs});var ps=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};oo({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:ps(t[0]),body:lo(t[1]),isCharacterBox:Er(t[1])}}}),oo({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:ps(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:lo(i)},c=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:Er(c)}}}),oo({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:ps(t[0]),body:lo(t[0])}},htmlBuilder(e,t){var n=ho(e.body,t,!0),r=J([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new Y(`mstyle`,Po(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var ms={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},hs=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),gs=e=>e.type===`textord`&&e.text===`@`,_s=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function vs(e,t,n){var r=ms[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function ys(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new B(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=hs(),c=0;c<o.length;c++)if(!gs(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=rs(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l)){if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(_s(o[p],l)){f=!1,c=p;break}if(gs(o[p]))throw new B(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new B(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new B(`Expected one of "<>AV=|." after @`,o[c])}var m={type:`styling`,body:[vs(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=hs()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}oo({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Wa(xo(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=vi(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Y(`mrow`,[Io(e.label,t)]);return n=new Y(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Y(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),oo({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Wa(xo(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Y(`mrow`,[Io(e.fragment,t)])}}),oo({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=as(ns(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new B(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new B(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),oo({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=ns(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:lo(i)}},htmlBuilder:(e,t)=>Ua(ho(e.body,t.withColor(e.color),!1)),mathmlBuilder:(e,t)=>{var n=new Y(`mstyle`,Po(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n}}),oo({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=ns(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),oo({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=t.gullet.future().text===`[`?t.parseSizeGroup(!0):null,r=!t.settings.displayMode||!ja({strict:t.settings.strict,errorCode:`newLineInDisplayMode`,errorMsg:`In LaTeX, \\\\ or \\newline does nothing in display mode`,report:!1});return{type:`cr`,mode:t.mode,newLine:r,size:n&&ns(n,`size`).value}},htmlBuilder(e,t){var n=J([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=vi(_i(e.size,t)))),n},mathmlBuilder(e,t){var n=new Y(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,vi(_i(e.size,t)))),n}});var bs={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},xs=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new B(`Expected a control sequence`,e);return t},Ss=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},Cs=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};oo({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(bs[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=bs[r.text]),ns(t.parseFunction(),`internal`);throw new B(`Invalid token after macro prefix`,r)}}),oo({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new B(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new B(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new B(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new B(`Expected a macro definition`);else s[a].push(r.text);var c=t.gullet.consumeArg().tokens;return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===bs[n]),{type:`internal`,mode:t.mode}}}),oo({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=xs(t.gullet.popToken());return t.gullet.consumeSpaces(),Cs(t,r,Ss(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),oo({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=xs(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Cs(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var ws=function(e,t,n){var r=zi(Hi.math[e]&&Hi.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Ts=function(e,t,n,r){var i=n.havingBaseStyle(t),a=J(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Es=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=vi(i),e.height-=i,e.depth+=i},Ds=function(e,t,n,r,i,a){var o=Ts(Na(e,`Main-Regular`,i,r),t,r,a);return n&&Es(o,r,t),o},Os=function(e,t,n,r){return Na(e,`Size`+t+`-Regular`,n,r)},ks=function(e,t,n,r,i,a){var o=Os(e,t,i,r),s=Ts(J([`delimsizing`,`size`+t],[o],r),Yr.TEXT,r,a);return n&&Es(s,r,Yr.TEXT),s},As=function(e,t,n,r){return{type:`elem`,elem:J([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[J([],[Na(e,t,n,r)])])}},js=function(e,t,n){var r=Fi[`Size4-Regular`][e.charCodeAt(0)]?Fi[`Size4-Regular`][e.charCodeAt(0)][4]:Fi[`Size1-Regular`][e.charCodeAt(0)][4],i=Ba([],[new ki([new Ai(`inner`,li(e,Math.round(1e3*t)))],{width:vi(r),height:vi(t),style:`width:`+vi(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=vi(t),i.style.width=vi(r),{type:`elem`,elem:i}},Ms=.008,Ns={type:`kern`,size:-1*Ms},Ps=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Fs=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Is=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):Ps.has(e)?(c=`∣`,u=`vert`,d=333):Fs.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=ws(o,f,i),m=p.height+p.depth,h=ws(c,f,i),g=h.height+h.depth,_=ws(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=ws(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var T=C/2-w,E=[];if(u.length>0){var D=C-m-v,O=Math.round(C*1e3),k=di(u,Math.round(D*1e3)),A=new Ai(u,k),j=vi(d/1e3),M=vi(O/1e3),N=Ba([],[new ki([A],{width:j,height:M,viewBox:`0 0 `+d+` `+O})],r);N.height=O/1e3,N.style.width=j,N.style.height=M,E.push({type:`elem`,elem:N})}else{if(E.push(As(l,f,i,r)),E.push(Ns),s===null){var P=C-m-v+2*Ms;E.push(js(c,P,r))}else{var F=(C-m-v-y)/2+2*Ms;E.push(js(c,F,r)),E.push(Ns),E.push(As(s,f,i,r)),E.push(Ns),E.push(js(c,F,r))}E.push(Ns),E.push(As(o,f,i,r))}var I=r.havingBaseStyle(Yr.TEXT);return Ts(J([`delimsizing`,`mult`],[Ka({positionType:`bottom`,positionData:T,children:E})],I),Yr.TEXT,r,a)},Ls=80,Rs=.08,zs=function(e,t,n,r,i){return Ba([`hide-tail`],[new ki([new Ai(e,ci(e,r,n))],{width:`400em`,height:vi(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},Bs=function(e,t){var n=t.havingBaseSizing(),r=Xs(`\\surd`,e*n.sizeMultiplier,Js,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+Ls,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Rs)/i,c=(1+a)/i,o=zs(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+Ls)*Ws[r.size],c=(Ws[r.size]+a)/i,s=(Ws[r.size]+a+Rs)/i,o=zs(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+Rs,c=e+a,l=Math.floor(1e3*e+a)+Ls,o=zs(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=vi(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Vs=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Hs=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Us=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),Ws=[0,1.2,1.8,2.4,3],Gs=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Vs.has(e)||Us.has(e))return ks(e,t,!1,n,r,i);if(Hs.has(e))return Is(e,Ws[t],!1,n,r,i);throw new B(`Illegal delimiter: '`+e+`'`)},Ks=[{type:`small`,style:Yr.SCRIPTSCRIPT},{type:`small`,style:Yr.SCRIPT},{type:`small`,style:Yr.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],qs=[{type:`small`,style:Yr.SCRIPTSCRIPT},{type:`small`,style:Yr.SCRIPT},{type:`small`,style:Yr.TEXT},{type:`stack`}],Js=[{type:`small`,style:Yr.SCRIPTSCRIPT},{type:`small`,style:Yr.SCRIPT},{type:`small`,style:Yr.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Ys=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},Xs=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=ws(e,Ys(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},Zs=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Us.has(e)?Ks:Vs.has(e)?Js:qs,s=Xs(e,t,o,r);return s.type===`small`?Ds(e,s.style,n,r,i,a):s.type===`large`?ks(e,s.size,n,r,i,a):Is(e,t,n,r,i,a)},Qs=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return Zs(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},$s={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},ec=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function tc(e){return`isMiddle`in e}function nc(e,t){var n=is(e);if(n&&ec.has(n.text))return n;throw n?new B(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new B(`Invalid delimiter type '`+e.type+`'`,e)}oo({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=nc(co(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:$s[e.funcName].size,mclass:$s[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?J([e.mclass]):Gs(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(ko(e.delim,e.mode));var n=new Y(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=vi(Ws[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function rc(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}oo({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new B(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:nc(t[0],e).text,color:n}}}),oo({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=nc(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=ns(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{rc(e);for(var n=ho(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];tc(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?bo(t,[`mopen`]):Qs(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(tc(u)){var d=u.isMiddle;n[l]=Qs(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=bo(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=Qs(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),J([`minner`],n,t)},mathmlBuilder:(e,t)=>{rc(e);var n=Po(e.body,t);if(e.left!==`.`){var r=new Y(`mo`,[ko(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Y(`mo`,[ko(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Ao(n)}}),oo({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=nc(t[0],e);if(!e.parser.leftrightDepth)throw new B(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=bo(t,[]):(n=Gs(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new Y(`mo`,[e.delim===`\\vert`||e.delim===`|`?ko(`|`,`text`):ko(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}}),oo({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=ns(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:(e,t)=>{var n=Wa(xo(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Er(e.body);if(r===`sout`)a=J([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=_i({number:.6,unit:`pt`},t),l=_i({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=vi(d/2+c);var f=Math.floor(1e3*d*i);a=Ba([`hide-tail`],[new ki([new Ai(`phase`,eee(f))],{width:`400em`,height:vi(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=vi(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=Xo(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=vi(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=vi(h),a.style.borderRightWidth=vi(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=Ka({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=Ka({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?J([`mord`,`cancel-lap`],[g],t):J([`mord`],[g],t)},mathmlBuilder:(e,t)=>{var n,r=new Y(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Io(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+vi(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r}}),oo({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=ns(t[0],`color-token`).color,o=ns(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),oo({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),oo({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),oo({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&ja({strict:n.settings.strict,errorCode:`mathVsSout`,errorMsg:`LaTeX's \\sout works only in text mode`,report:!0});var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),oo({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}});var ic={};function ac(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)ic[n[c]]=s;a&&(io[t]=a),o&&(ao[t]=o)}var oc={};function X(e,t){oc[e]=t}var sc=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},cc=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,sc.range(this,t))}};function lc(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var uc=e=>{if(!e.parser.settings.displayMode)throw new B(`{`+e.envName+`} can be used only in display mode.`)},ree=new Set([`gather`,`gather*`]);function dc(e){if(!e.includes(`ed`))return!e.includes(`*`)}function fc(e,t,n){var r=t.hskipBeforeAndAfter,i=t.addJot,a=t.cols,o=t.arraystretch,s=t.colSeparationType,c=t.autoTag,l=t.singleRow,u=t.emptySingleRow,d=t.maxNumCols,f=t.leqno;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new B(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new cc(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(lc(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new B(`Too many tab characters: &`,e.nextToken);ja({strict:e.settings.strict,errorCode:`textEnv`,errorMsg:`Too few columns specified in the {array} column argument.`,report:!0})}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&!Array.isArray(v?.[v.length-1])&&!(c&&v?.[v.length-1]===!0)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var w=void 0;e.gullet.future().text!==` `&&(w=e.parseSizeGroup(!0)),g.push(w?w.value:null),b(),_.push(lc(e)),m=[],h.push(m),y()}else throw new B(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function pc(e){return e.slice(0,1)===`d`?`display`:`text`}var mc=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(Yr.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?_i({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=xo(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var w=e.rowGaps[n],T=0;w&&(T=_i(w,t),T>0&&(T+=g,x<T&&(x=T),T=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+T,s[n]=S,v(a[n+1])}var E=_/2+t.fontMetrics().axisHeight,D=e.cols||[],O=[],k,A,j=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var M=s[n],N=M.pos-E,P=e.tags[n],F=void 0;F=P===!0?J([`eqn-num`],[],t):P===!1?J([],[],t):J([],ho(P,t,!0),t),F.depth=M.depth,F.height=M.height,j.push({type:`elem`,elem:F,shift:N})}for(r=0,A=0;r<o||A<D.length;++r,++A){for(var I=D[A],L=!0;(ee=I)?.type===`separator`;){var ee;if(L||(k=J([`arraycolsep`],[]),k.style.width=vi(t.fontMetrics().doubleRuleSep),O.push(k)),I.separator===`|`||I.separator===`:`){var te=I.separator===`|`?`solid`:`dashed`,ne=J([`vertical-separator`],[],t);ne.style.height=vi(_),ne.style.borderRightWidth=vi(l),ne.style.borderRightStyle=te,ne.style.margin=`0 `+vi(-l/2);var re=_-E;re&&(ne.style.verticalAlign=vi(-re)),O.push(ne)}else throw new B(`Invalid separator type: `+I.separator);A++,I=D[A],L=!1}if(!(r>=o)){var ie=void 0;(r>0||e.hskipBeforeAndAfter)&&(ie=I?.pregap??d,ie!==0&&(k=J([`arraycolsep`],[]),k.style.width=vi(ie),O.push(k)));var ae=[];for(n=0;n<i;++n){var oe=s[n],se=oe.cells[r];if(se){var ce=oe.pos-E;se.depth=oe.depth,se.height=oe.height,ae.push({type:`elem`,elem:se,shift:ce})}}var le=Ka({positionType:`individualShift`,children:ae}),ue=J([`col-align-`+(I?.align||`c`)],[le]);O.push(ue),(r<o-1||e.hskipBeforeAndAfter)&&(ie=I?.postgap??d,ie!==0&&(k=J([`arraycolsep`],[]),k.style.width=vi(ie),O.push(k)))}}var de=J([`mtable`],O);if(c.length>0){for(var fe=Va(`katex-hline`,t,l),pe=Va(`katex-hdashline`,t,l),me=[{type:`elem`,elem:de,shift:0}];c.length>0;){var he=c.pop(),ge=he.pos-E;he.isDashed?me.push({type:`elem`,elem:pe,shift:ge}):me.push({type:`elem`,elem:fe,shift:ge})}de=Ka({positionType:`individualShift`,children:me})}if(j.length===0)return J([`mord`],[de],t);var _e=J([`katex-tag`],[Ka({positionType:`individualShift`,children:j})],t);return Ua([de,_e])},hc={c:`center `,l:`left `,r:`right `},gc=function(e,t){for(var n=[],r=new Y(`mtd`,[],[`mtr-glue`]),i=new Y(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new Y(`mtd`,[Io(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new Y(`mtr`,s))}var l=new Y(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,vi(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=hc[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,w=e.hLinesBeforeRow;d+=w[0].length>0?`left `:``,d+=w[w.length-1].length>0?`right `:``;for(var T=1;T<w.length-1;T++)C+=w[T].length===0?`none `:w[T][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new Y(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new Y(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},_c=function(e,t){e.envName.includes(`ed`)||uc(e);var n=[],r=e.envName===`split`,i=fc(e.parser,{cols:n,addJot:!0,autoTag:r?void 0:dc(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes(`at`)?`alignat`:`align`,maxNumCols:r?2:void 0,leqno:e.parser.settings.leqno},`display`),a=0,o=0,s={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){var c=`Number of columns should be a positive integer`,l=as(t[0],c);if(!/^[0-9]+$/.test(l)||Number(l)<1)throw new B(c,t[0]);a=Number(l),o=a*2}var u=!o;i.body.forEach(function(e){for(var t=1;t<e.length;t+=2)ns(ns(e[t],`styling`).body[0],`ordgroup`).body.unshift(s);if(u)o<e.length&&(o=e.length);else{var n=e.length/2;if(a<n)throw new B(`Too many math in a row: `+(`expected `+a+`, but got `+n),e[0])}});for(var d=0;d<o;++d){var f=`r`,p=0;d%2==1?f=`l`:d>0&&u&&(p=1),n[d]={type:`align`,align:f,pregap:p,postgap:0}}return i.colSeparationType=u?`align`:`alignat`,i};ac({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(is(t[0])?[t[0]]:ns(t[0],`ordgroup`).body).map(function(e){var t=rs(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new B(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return fc(e.parser,r,pc(e.envName))},htmlBuilder:mc,mathmlBuilder:gc}),ac({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new B(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=fc(e.parser,r,pc(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:mc,mathmlBuilder:gc}),ac({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=fc(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:mc,mathmlBuilder:gc}),ac({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(is(t[0])?[t[0]]:ns(t[0],`ordgroup`).body).map(function(e){var t=rs(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new B(`Unknown column alignment: `+t,e)});if(n.length>1)throw new B(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=fc(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new B(`{subarray} can contain only one column`);return i},htmlBuilder:mc,mathmlBuilder:gc}),ac({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=fc(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},pc(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:mc,mathmlBuilder:gc}),ac({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:_c,htmlBuilder:mc,mathmlBuilder:gc}),ac({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){ree.has(e.envName)&&uc(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:dc(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return fc(e.parser,t,`display`)},htmlBuilder:mc,mathmlBuilder:gc}),ac({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:_c,htmlBuilder:mc,mathmlBuilder:gc}),ac({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){uc(e);var t={autoTag:dc(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return fc(e.parser,t,`display`)},htmlBuilder:mc,mathmlBuilder:gc}),ac({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return uc(e),ys(e.parser)},htmlBuilder:mc,mathmlBuilder:gc}),X(`\\nonumber`,`\\gdef\\@eqnsw{0}`),X(`\\notag`,`\\nonumber`),oo({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new B(e.funcName+` valid only within array environment`)}});var vc=ic;oo({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new B(`Invalid environment name`,i);var a=as(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call(vc,a))throw new B(`No such environment: `+a,i);var o=vc[a],s=n.parseArguments(`\\begin{`+a+`}`,o),c=s.args,l=s.optArgs,u={mode:n.mode,envName:a,parser:n},d=o.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=ns(n.parseFunction(),`environment`);if(p.name!==a)throw new B(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var yc=(e,t)=>{var n=e.font,r=t.withFont(n);return xo(e.body,r)},bc=(e,t)=>{var n=e.font,r=t.withFont(n);return Io(e.body,r)},xc={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};oo({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=co(t[0]),a=r in xc?xc[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:yc,mathmlBuilder:bc}),oo({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:ps(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Er(r)}}}),oo({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}});var Sc=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=xo(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=xo(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=_i(e.barSize,t),u=Va(`frac-line`,t,d)):u=Va(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===Yr.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=Ka({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=Ka({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===Yr.DISPLAY.size?t.fontMetrics().delim1:n.size===Yr.SCRIPTSCRIPT.size?t.havingStyle(Yr.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?bo(t,[`mopen`]):Zs(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?J([]):e.rightDelim==null?bo(t,[`mclose`]):Zs(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return J([`mord`].concat(a.sizingClasses(t)),[x,J([`mfrac`],[g]),S],t)},Cc=(e,t)=>{var n=new Y(`mfrac`,[Io(e.numer,t),Io(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=_i(e.barSize,t);n.setAttribute(`linethickness`,vi(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Y(`mo`,[new To(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Y(`mo`,[new To(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Ao(i)}return n},wc=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;oo({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),wc({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:Sc,mathmlBuilder:Cc}),oo({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var Tc=[`display`,`text`,`script`,`scriptscript`],Ec=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};oo({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=co(t[0]),o=a.type===`atom`&&a.family===`open`?Ec(a.text):null,s=co(t[1]),c=s.type===`atom`&&s.family===`close`?Ec(s.text):null,l=ns(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=ns(p.body[0],`textord`);f=Tc[Number(m.text)]}}else p=ns(p,`textord`),f=Tc[Number(p.text)];return wc({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),oo({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:ns(t[0],`size`).value,token:r}}}),oo({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=ns(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var Dc=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?xo(e.sup,t.havingStyle(n.sup()),t):xo(e.sub,t.havingStyle(n.sub()),t),i=ns(e.base,`horizBrace`)):i=ns(e,`horizBrace`);var a=xo(i.base,t.havingBaseStyle(Yr.DISPLAY)),o=Yo(i,t),s=i.isOver?Ka({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):Ka({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=J([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?Ka({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):Ka({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return J([`minner`,i.isOver?`mover`:`munder`],[s],t)};oo({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:Dc,mathmlBuilder:(e,t)=>{var n=Ko(e.label);return new Y(e.isOver?`mover`:`munder`,[Io(e.base,t),n])}}),oo({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=ns(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:lo(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=ho(e.body,t,!1);return Ha(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Fo(e.body,t);return n instanceof Y||(n=new Y(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),oo({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=ns(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:lo(s)}}}),oo({type:`hbox`,names:[`\\hbox`],numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0,handler(e,t){return{type:`hbox`,mode:e.parser.mode,body:lo(t[0])}},htmlBuilder(e,t){return Ua(ho(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new Y(`mrow`,Po(e.body,t.withFont(``)))}}),oo({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName;e.token;var i=ns(t[0],`raw`).string,a=t[1];n.settings.strict&&ja({strict:n.settings.strict,errorCode:`htmlExtension`,errorMsg:`HTML extension is disabled on strict mode`,report:!0});var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var c=`{,}`,l=[],u=``,d=0;d<i.length;d++)i.startsWith(c,d)?(u+=`,`,d+=c.length-1):i[d]===`,`?(l.push(u),u=``):u+=i[d];l.push(u);for(var f=0;f<l.length;f++){var p=l[f],m=p.indexOf(`=`);if(m<0)throw new B(`\\htmlData key/value '`+p+`' missing equals sign`);var h=p.slice(0,m),g=p.slice(m+1);s[`data-`+h.trim()]=g}o={command:`\\htmlData`,attributes:s};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(o)?{type:`html`,mode:n.mode,attributes:s,body:lo(a)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=ho(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=J(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>Fo(e.body,t)}),oo({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:lo(t[0]),mathml:lo(t[1])}),htmlBuilder:(e,t)=>Ua(ho(e.html,t,!1)),mathmlBuilder:(e,t)=>Fo(e.mathml,t)});var Oc=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new B(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!gi(n))throw new B(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};oo({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=ns(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=Oc(d);break;case`height`:a=Oc(d);break;case`totalheight`:o=Oc(d);break;default:throw new B(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=ns(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=_i(e.height,t),r=0;e.totalheight.number>0&&(r=_i(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=_i(e.width,t));var a={height:vi(n+r)};i>0&&(a.width=vi(i)),r>0&&(a.verticalAlign=vi(-r));var o=new Ei(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Y(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=_i(e.height,t),i=0;if(e.totalheight.number>0&&(i=_i(e.totalheight,t)-r,n.setAttribute(`valign`,vi(-i))),n.setAttribute(`height`,vi(r+i)),e.width.number>0){var a=_i(e.width,t);n.setAttribute(`width`,vi(a))}return n.setAttribute(`src`,e.src),n}}),oo({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=ns(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||ja({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`),report:!0}),n.mode!==`math`&&ja({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` works only in math mode`,report:!0})):o&&ja({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` doesn't support mu units`,report:!0})}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return qa(e.dimension,t)},mathmlBuilder(e,t){return new Eo(_i(e.dimension,t))}}),oo({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=J([],[xo(e.body,t)]),n=J([`katex-inner`],[n],t)):n=J([`katex-inner`],[xo(e.body,t)]);var r=J([`katex-fix`],[]),i=J([e.alignment],[n,r],t),a=J([`katex-strut`]);return a.style.height=vi(i.height+i.depth),i.depth&&(a.style.verticalAlign=vi(-i.depth)),i.children.unshift(a),i=J([`katex-thinbox`],[i],t),J([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Y(`mpadded`,[Io(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),oo({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),oo({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new B(`Mismatched `+e.funcName)}});var kc=(e,t)=>{switch(t.style.size){case Yr.DISPLAY.size:return e.display;case Yr.TEXT.size:return e.text;case Yr.SCRIPT.size:return e.script;case Yr.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};oo({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:lo(t[0]),text:lo(t[1]),script:lo(t[2]),scriptscript:lo(t[3])}),htmlBuilder:(e,t)=>Ua(ho(kc(e,t),t,!1)),mathmlBuilder:(e,t)=>Fo(kc(e,t),t)});var Ac=(e,t,n,r,i,a,o)=>{e=J([],[e]);var s=n&&Er(n),c,l;if(t){var u=xo(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=xo(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=Ka({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:vi(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:vi(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=Ka({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:vi(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=Ka({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:vi(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=J([`mspace`],[],r);m.style.marginRight=vi(a),p.unshift(m)}return J([`mop`,`op-limits`],p,r)},jc=new Set([`\\smallint`]),Mc=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=ns(e.base,`op`),i=!0):a=ns(e,`op`);var o=t.style,s=!1;o.size===Yr.DISPLAY.size&&a.symbol&&!jc.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=Na(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=Za(d+`Size`+(s?`2`:`1`),t);c=Ka({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=ho(a.body,t,!0);p.length===1&&p[0]instanceof Oi?(c=p[0],c.classes[0]=`mop`):c=J([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(Pa(a.name[h],a.mode,t));c=J([`mop`],m,t)}var g=0,_=0;return(c instanceof Oi||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?Ac(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=vi(g)),c)},Nc=(e,t)=>{var n;if(e.symbol)n=new Y(`mo`,[ko(e.name,e.mode)]),jc.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Y(`mo`,Po(e.body,t));else{n=new Y(`mi`,[new To(e.name.slice(1))]);var r=new Y(`mo`,[ko(``,`text`)]);n=e.parentIsSupSub?new Y(`mrow`,[n,r]):wo([n,r])}return n},Pc={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};oo({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=Pc[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Mc,mathmlBuilder:Nc}),oo({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:lo(r)}}});var Fc={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};oo({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),oo({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),oo({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=Fc[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var Ic=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=ns(e.base,`operatorname`),i=!0):a=ns(e,`operatorname`);var o;if(a.body.length>0){for(var s=ho(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof Oi&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=J([`mop`],s,t)}else o=J([`mop`],[],t);return i?Ac(o,n,r,t,t.style,0,0):o};oo({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:lo(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:Ic,mathmlBuilder:(e,t)=>{for(var n=Po(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Eo)){if(a instanceof Y)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof To?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}}r&&(n=[new To(n.map(e=>e.toText()).join(``))]);var s=new Y(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new Y(`mo`,[ko(``,`text`)]);return e.parentIsSupSub?new Y(`mrow`,[s,c]):wo([s,c])}}),X(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),so({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?Ua(ho(e.body,t,!1)):J([`mord`],ho(e.body,t,!0),t)},mathmlBuilder(e,t){return Fo(e.body,t,!0)}}),oo({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=xo(e.body,t.havingCrampedStyle()),r=Va(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return J([`mord`,`katex-overline`],[Ka({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Y(`mo`,[new To(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Y(`mover`,[Io(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),oo({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:lo(r)}},htmlBuilder:(e,t)=>Ua(ho(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new Y(`mphantom`,Po(e.body,t))}),X(`\\hphantom`,`\\smash{\\phantom{#1}}`),oo({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>J([`mord`,`rlap`],[J([`katex-inner`],[xo(e.body,t.withPhantom())]),J([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new Y(`mpadded`,[new Y(`mphantom`,Po(lo(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),oo({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=ns(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=xo(e.body,t);return Ka({positionType:`shift`,positionData:-_i(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Y(`mpadded`,[Io(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}});var Lc=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]});oo({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:Lc,htmlBuilder(e,t){return J([`mord`,`reflectbox`],[xo(e.body,t)],t)},mathmlBuilder(e,t){return Io(e.body,t)}}),oo({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:Lc}),oo({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),oo({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=ns(t[0],`size`),o=ns(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&ns(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=J([`mord`,`katex-rule`],[],t),r=_i(e.width,t),i=_i(e.height,t),a=e.shift?_i(e.shift,t):0;return n.style.borderRightWidth=vi(r),n.style.borderTopWidth=vi(i),n.style.bottom=vi(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=_i(e.width,t),r=_i(e.height,t),i=e.shift?_i(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Y(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,vi(n)),o.setAttribute(`height`,vi(r));var s=new Y(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,vi(i)):(s.setAttribute(`height`,vi(i)),s.setAttribute(`depth`,vi(-i))),s.setAttribute(`voffset`,vi(i)),s}});function Rc(e,t,n){for(var r=ho(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`katex-sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return Ua(r)}var zc=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];oo({type:`sizing`,names:zc,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:zc.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return Rc(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new Y(`mstyle`,Po(e.body,n));return r.setAttribute(`mathsize`,vi(n.sizeMultiplier)),r}}),oo({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&ns(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=rs(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=J([],[xo(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return J([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return J([`mord`],[Ka({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new Y(`mpadded`,[Io(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),oo({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=xo(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Wa(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<Yr.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,o=Bs(n.height+n.depth+a+r,t),s=o.span,c=o.ruleWidth,l=o.advanceWidth,u=s.height-c;u>n.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=s.height-n.height-a-c;n.style.paddingLeft=vi(l);var f=Ka({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+d)},{type:`elem`,elem:s},{type:`kern`,size:c}]});if(e.index){var p=t.havingStyle(Yr.SCRIPTSCRIPT),m=xo(e.index,p,t);return J([`mord`,`sqrt`],[J([`katex-root`],[Ka({positionType:`shift`,positionData:-(.6*(f.height-f.depth)),children:[{type:`elem`,elem:m}]})]),f],t)}return J([`mord`,`sqrt`],[f],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new Y(`mroot`,[Io(n,t),Io(r,t)]):new Y(`msqrt`,[Io(n,t)])}});var Bc={display:Yr.DISPLAY,text:Yr.TEXT,script:Yr.SCRIPT,scriptscript:Yr.SCRIPTSCRIPT};function Vc(e){return e in Bc}oo({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Vc(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=Bc[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),Rc(e.body,r,t)},mathmlBuilder(e,t){var n=Bc[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new Y(`mstyle`,Po(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var Hc=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===Yr.DISPLAY.size||n.alwaysHandleSupSub)?Mc:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===Yr.DISPLAY.size||n.limits)?Ic:null:n.type===`accent`?Er(n.base)?ss:null:n.type===`horizBrace`&&!e.sub===n.isOver?Dc:null:null};so({type:`supsub`,htmlBuilder(e,t){var n=Hc(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=xo(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&Er(r);if(i){var p=t.havingStyle(t.style.sup());s=xo(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=xo(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===Yr.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=vi(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Oi||y)&&(v=vi(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=Ka({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=Ka({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=Ka({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return J([yo(o,`right`)||`mord`],[o,J([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Io(e.base,t)];e.sub&&a.push(Io(e.sub,t)),e.sup&&a.push(Io(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===Yr.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===Yr.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===Yr.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===Yr.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===Yr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===Yr.DISPLAY)?`munder`:`msub`}return new Y(o,a)}}),so({type:`atom`,htmlBuilder(e,t){return Pa(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Y(`mo`,[ko(e.text,e.mode)]);if(e.family===`bin`){var r=Mo(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var Uc={mi:`italic`,mn:`normal`,mtext:`normal`};so({type:`mathord`,htmlBuilder(e,t){return Ia(e,t)},mathmlBuilder(e,t){var n=new Y(`mi`,[ko(e.text,e.mode,t)]),r=Mo(e,t)||`italic`;return r!==Uc[n.type]&&n.setAttribute(`mathvariant`,r),n}}),so({type:`textord`,htmlBuilder(e,t){return Ia(e,t)},mathmlBuilder(e,t){var n=ko(e.text,e.mode,t),r=Mo(e,t)||`normal`,i=e.mode===`text`?new Y(`mtext`,[n]):/[0-9]/.test(e.text)?new Y(`mn`,[n]):e.text===`\\prime`?new Y(`mo`,[n]):new Y(`mi`,[n]);return r!==Uc[i.type]&&i.setAttribute(`mathvariant`,r),i}});var Wc=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),Gc=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]);so({type:`spacing`,htmlBuilder(e,t){var n=Gc.get(e.text),r=Wc.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=Ia(e,t);return a.classes.push(i),a}return J([`mspace`,i],[Pa(e.text,e.mode,t)],t)}if(r)return J([`mspace`,r],[],t);throw new B(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(Gc.has(e.text))n=new Y(`mtext`,[new To(`\xA0`)]);else if(Wc.has(e.text))return new Y(`mspace`);else throw new B(`Unknown type of space "`+e.text+`"`);return n}});var Kc=()=>{var e=new Y(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};so({type:`tag`,mathmlBuilder(e,t){var n=new Y(`mtable`,[new Y(`mtr`,[Kc(),new Y(`mtd`,[Fo(e.body,t)]),Kc(),new Y(`mtd`,[Fo(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var qc={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Jc={"\\textbf":`textbf`,"\\textmd":`textmd`},Yc={"\\textit":`textit`,"\\textup":`textup`},Xc=(e,t)=>{var n=e.font;return n?qc[n]?t.withTextFontFamily(qc[n]):Jc[n]?t.withTextFontWeight(Jc[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(Yc[n]):t};oo({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:lo(i),font:r}},htmlBuilder(e,t){var n=Xc(e,t);return J([`mord`,`text`],ho(e.body,n,!0),n)},mathmlBuilder(e,t){var n=Xc(e,t);return Fo(e.body,n)}}),oo({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=xo(e.body,t),r=Va(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return J([`mord`,`katex-underline`],[Ka({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Y(`mo`,[new To(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Y(`munder`,[Io(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),oo({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=xo(e.body,t),r=t.fontMetrics().axisHeight;return Ka({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new Y(`mrow`,[new Y(`mpadded`,[Io(e.body,t)],[`vcenter`])])}}),oo({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new B(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Zc(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(Na(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return J([`mord`,`text`].concat(i.sizingClasses(t)),Ra(r),i)},mathmlBuilder(e,t){var n=new Y(`mtext`,[new To(Zc(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var Zc=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),Qc=ro,$c=`[ \r
|
|
254
|
+
]`,el=`\\\\[a-zA-Z@]+`,tl=`\\\\[^\ud800-\udfff]`,nl=`(`+el+`)`+$c+`*`,rl=`\\\\(
|
|
255
|
+
|[ \r ]+
|
|
256
|
+
?)[ \r ]*`,il=`[̀-ͯ]`,al=RegExp(il+`+$`),ol=`(`+$c+`+)|`+(rl+`|`)+`([!-\\[\\]-‧-豈-]`+(il+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(il+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+nl)+(`|`+tl+`)`),sl=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(ol,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new cc(`EOF`,new sc(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new B(`Unexpected character: '`+e[t]+`'`,new cc(e[t],new sc(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
|
|
257
|
+
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,ja({strict:this.settings.strict,errorCode:`commentAtEnd`,errorMsg:`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`,report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new cc(r,new sc(this,t,this.tokenRegex.lastIndex))}},cl=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new B(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},ll=oc;X(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),X(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),X(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),X(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),X(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),X(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),X(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var ul={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};X(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new B("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=ul[t.text],r==null||r>=n)throw new B(`Invalid base-`+n+` digit `+t.text);for(var i;(i=ul[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var dl=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new B(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new B(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new B(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new B(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};X(`\\newcommand`,e=>dl(e,!1,!0,!1)),X(`\\renewcommand`,e=>dl(e,!0,!1,!1)),X(`\\providecommand`,e=>dl(e,!0,!0,!0)),X(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),X(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),X(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Qc[n],Hi.math[n],Hi.text[n]),``}),X(`\\bgroup`,`{`),X(`\\egroup`,`}`),X(`~`,`\\nobreakspace`),X(`\\lq`,"`"),X(`\\rq`,`'`),X(`\\aa`,`\\r a`),X(`\\AA`,`\\r A`),X(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),X(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),X(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),X(`ℬ`,`\\mathscr{B}`),X(`ℰ`,`\\mathscr{E}`),X(`ℱ`,`\\mathscr{F}`),X(`ℋ`,`\\mathscr{H}`),X(`ℐ`,`\\mathscr{I}`),X(`ℒ`,`\\mathscr{L}`),X(`ℳ`,`\\mathscr{M}`),X(`ℛ`,`\\mathscr{R}`),X(`ℭ`,`\\mathfrak{C}`),X(`ℌ`,`\\mathfrak{H}`),X(`ℨ`,`\\mathfrak{Z}`),X(`\\Bbbk`,`\\Bbb{k}`),X(`\\llap`,`\\mathllap{\\textrm{#1}}`),X(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),X(`\\clap`,`\\mathclap{\\textrm{#1}}`),X(`\\mathstrut`,`\\vphantom{(}`),X(`\\underbar`,`\\underline{\\text{#1}}`),X(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),X(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),X(`\\ne`,`\\neq`),X(`≠`,`\\neq`),X(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),X(`∉`,`\\notin`),X(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),X(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),X(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),X(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),X(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),X(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),X(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),X(`⟂`,`\\perp`),X(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),X(`∌`,`\\notni`),X(`⌜`,`\\ulcorner`),X(`⌝`,`\\urcorner`),X(`⌞`,`\\llcorner`),X(`⌟`,`\\lrcorner`),X(`©`,`\\copyright`),X(`®`,`\\textregistered`),X(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),X(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),X(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),X(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),X(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),X(`⋮`,`\\vdots`),X(`\\varGamma`,`\\mathit{\\Gamma}`),X(`\\varDelta`,`\\mathit{\\Delta}`),X(`\\varTheta`,`\\mathit{\\Theta}`),X(`\\varLambda`,`\\mathit{\\Lambda}`),X(`\\varXi`,`\\mathit{\\Xi}`),X(`\\varPi`,`\\mathit{\\Pi}`),X(`\\varSigma`,`\\mathit{\\Sigma}`),X(`\\varUpsilon`,`\\mathit{\\Upsilon}`),X(`\\varPhi`,`\\mathit{\\Phi}`),X(`\\varPsi`,`\\mathit{\\Psi}`),X(`\\varOmega`,`\\mathit{\\Omega}`),X(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),X(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),X(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),X(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),X(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),X(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),X(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),X(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var fl={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},pl=new Set([`bin`,`rel`]);X(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in fl?t=fl[n]:(n.slice(0,4)===`\\not`||n in Hi.math&&pl.has(Hi.math[n].group))&&(t=`\\dotsb`),t});var ml={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};X(`\\dotso`,function(e){return e.future().text in ml?`\\ldots\\,`:`\\ldots`}),X(`\\dotsc`,function(e){var t=e.future().text;return t in ml&&t!==`,`?`\\ldots\\,`:`\\ldots`}),X(`\\cdots`,function(e){return e.future().text in ml?`\\@cdots\\,`:`\\@cdots`}),X(`\\dotsb`,`\\cdots`),X(`\\dotsm`,`\\cdots`),X(`\\dotsi`,`\\!\\cdots`),X(`\\dotsx`,`\\ldots\\,`),X(`\\DOTSI`,`\\relax`),X(`\\DOTSB`,`\\relax`),X(`\\DOTSX`,`\\relax`),X(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),X(`\\,`,`\\tmspace+{3mu}{.1667em}`),X(`\\thinspace`,`\\,`),X(`\\>`,`\\mskip{4mu}`),X(`\\:`,`\\tmspace+{4mu}{.2222em}`),X(`\\medspace`,`\\:`),X(`\\;`,`\\tmspace+{5mu}{.2777em}`),X(`\\thickspace`,`\\;`),X(`\\!`,`\\tmspace-{3mu}{.1667em}`),X(`\\negthinspace`,`\\!`),X(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),X(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),X(`\\enspace`,`\\kern.5em `),X(`\\enskip`,`\\hskip.5em\\relax`),X(`\\quad`,`\\hskip1em\\relax`),X(`\\qquad`,`\\hskip2em\\relax`),X(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),X(`\\tag@paren`,`\\tag@literal{({#1})}`),X(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new B(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),X(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),X(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),X(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),X(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),X(`\\newline`,`\\\\\\relax`),X(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var hl=vi(Fi[`Main-Regular`][84][1]-.7*Fi[`Main-Regular`][65][1]);X(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+hl+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),X(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+hl+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),X(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),X(`\\@hspace`,`\\hskip #1\\relax`),X(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),X(`\\ordinarycolon`,`:`),X(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),X(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),X(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),X(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),X(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),X(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),X(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),X(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),X(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),X(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),X(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),X(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),X(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),X(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),X(`∷`,`\\dblcolon`),X(`∹`,`\\eqcolon`),X(`≔`,`\\coloneqq`),X(`≕`,`\\eqqcolon`),X(`⩴`,`\\Coloneqq`),X(`\\ratio`,`\\vcentcolon`),X(`\\coloncolon`,`\\dblcolon`),X(`\\colonequals`,`\\coloneqq`),X(`\\coloncolonequals`,`\\Coloneqq`),X(`\\equalscolon`,`\\eqqcolon`),X(`\\equalscoloncolon`,`\\Eqqcolon`),X(`\\colonminus`,`\\coloneq`),X(`\\coloncolonminus`,`\\Coloneq`),X(`\\minuscolon`,`\\eqcolon`),X(`\\minuscoloncolon`,`\\Eqcolon`),X(`\\coloncolonapprox`,`\\Colonapprox`),X(`\\coloncolonsim`,`\\Colonsim`),X(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),X(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),X(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),X(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),X(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),X(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),X(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),X(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),X(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),X(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),X(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),X(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),X(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),X(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),X(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),X(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),X(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),X(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),X(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),X(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),X(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),X(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),X(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),X(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),X(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),X(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),X(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),X(`\\imath`,`\\html@mathml{\\@imath}{ı}`),X(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),X(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),X(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),X(`⟦`,`\\llbracket`),X(`⟧`,`\\rrbracket`),X(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),X(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),X(`↤`,`\\mapsfrom`),X(`\\mapsfrom`,"\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"),X(`⦃`,`\\lBrace`),X(`⦄`,`\\rBrace`),X(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),X(`⦵`,`\\minuso`),X(`\\darr`,`\\downarrow`),X(`\\dArr`,`\\Downarrow`),X(`\\Darr`,`\\Downarrow`),X(`\\lang`,`\\langle`),X(`\\rang`,`\\rangle`),X(`\\uarr`,`\\uparrow`),X(`\\uArr`,`\\Uparrow`),X(`\\Uarr`,`\\Uparrow`),X(`\\N`,`\\mathbb{N}`),X(`\\R`,`\\mathbb{R}`),X(`\\Z`,`\\mathbb{Z}`),X(`\\alef`,`\\aleph`),X(`\\alefsym`,`\\aleph`),X(`\\Alpha`,`\\mathrm{A}`),X(`\\Beta`,`\\mathrm{B}`),X(`\\bull`,`\\bullet`),X(`\\Chi`,`\\mathrm{X}`),X(`\\clubs`,`\\clubsuit`),X(`\\cnums`,`\\mathbb{C}`),X(`\\Complex`,`\\mathbb{C}`),X(`\\Dagger`,`\\ddagger`),X(`\\diamonds`,`\\diamondsuit`),X(`\\empty`,`\\emptyset`),X(`\\Epsilon`,`\\mathrm{E}`),X(`\\Eta`,`\\mathrm{H}`),X(`\\exist`,`\\exists`),X(`\\harr`,`\\leftrightarrow`),X(`\\hArr`,`\\Leftrightarrow`),X(`\\Harr`,`\\Leftrightarrow`),X(`\\hearts`,`\\heartsuit`),X(`\\image`,`\\Im`),X(`\\infin`,`\\infty`),X(`\\Iota`,`\\mathrm{I}`),X(`\\isin`,`\\in`),X(`\\Kappa`,`\\mathrm{K}`),X(`\\larr`,`\\leftarrow`),X(`\\lArr`,`\\Leftarrow`),X(`\\Larr`,`\\Leftarrow`),X(`\\lrarr`,`\\leftrightarrow`),X(`\\lrArr`,`\\Leftrightarrow`),X(`\\Lrarr`,`\\Leftrightarrow`),X(`\\Mu`,`\\mathrm{M}`),X(`\\natnums`,`\\mathbb{N}`),X(`\\Nu`,`\\mathrm{N}`),X(`\\Omicron`,`\\mathrm{O}`),X(`\\plusmn`,`\\pm`),X(`\\rarr`,`\\rightarrow`),X(`\\rArr`,`\\Rightarrow`),X(`\\Rarr`,`\\Rightarrow`),X(`\\real`,`\\Re`),X(`\\reals`,`\\mathbb{R}`),X(`\\Reals`,`\\mathbb{R}`),X(`\\Rho`,`\\mathrm{P}`),X(`\\sdot`,`\\cdot`),X(`\\sect`,`\\S`),X(`\\spades`,`\\spadesuit`),X(`\\sub`,`\\subset`),X(`\\sube`,`\\subseteq`),X(`\\supe`,`\\supseteq`),X(`\\Tau`,`\\mathrm{T}`),X(`\\thetasym`,`\\vartheta`),X(`\\weierp`,`\\wp`),X(`\\Zeta`,`\\mathrm{Z}`),X(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),X(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),X(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),X(`\\bra`,`\\mathinner{\\langle{#1}|}`),X(`\\ket`,`\\mathinner{|{#1}\\rangle}`),X(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),X(`\\Bra`,`\\left\\langle#1\\right|`),X(`\\Ket`,`\\left|#1\\right\\rangle`);var gl=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};X(`\\bra@ket`,gl(!1)),X(`\\bra@set`,gl(!0)),X(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),X(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),X(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),X(`\\angln`,`{\\angl n}`),X(`\\blue`,`\\textcolor{##6495ed}{#1}`),X(`\\orange`,`\\textcolor{##ffa500}{#1}`),X(`\\pink`,`\\textcolor{##ff00af}{#1}`),X(`\\red`,`\\textcolor{##df0030}{#1}`),X(`\\green`,`\\textcolor{##28ae7b}{#1}`),X(`\\gray`,`\\textcolor{gray}{#1}`),X(`\\purple`,`\\textcolor{##9d38bd}{#1}`),X(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),X(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),X(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),X(`\\blueD`,`\\textcolor{##11accd}{#1}`),X(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),X(`\\tealA`,`\\textcolor{##94fff5}{#1}`),X(`\\tealB`,`\\textcolor{##26edd5}{#1}`),X(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),X(`\\tealD`,`\\textcolor{##01a995}{#1}`),X(`\\tealE`,`\\textcolor{##208170}{#1}`),X(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),X(`\\greenB`,`\\textcolor{##8af281}{#1}`),X(`\\greenC`,`\\textcolor{##74cf70}{#1}`),X(`\\greenD`,`\\textcolor{##1fab54}{#1}`),X(`\\greenE`,`\\textcolor{##0d923f}{#1}`),X(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),X(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),X(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),X(`\\goldD`,`\\textcolor{##e07d10}{#1}`),X(`\\goldE`,`\\textcolor{##a75a05}{#1}`),X(`\\redA`,`\\textcolor{##fca9a9}{#1}`),X(`\\redB`,`\\textcolor{##ff8482}{#1}`),X(`\\redC`,`\\textcolor{##f9685d}{#1}`),X(`\\redD`,`\\textcolor{##e84d39}{#1}`),X(`\\redE`,`\\textcolor{##bc2612}{#1}`),X(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),X(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),X(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),X(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),X(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),X(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),X(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),X(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),X(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),X(`\\purpleE`,`\\textcolor{##543b78}{#1}`),X(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),X(`\\mintB`,`\\textcolor{##edf2df}{#1}`),X(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),X(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),X(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),X(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),X(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),X(`\\grayE`,`\\textcolor{##babec2}{#1}`),X(`\\grayF`,`\\textcolor{##888d93}{#1}`),X(`\\grayG`,`\\textcolor{##626569}{#1}`),X(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),X(`\\grayI`,`\\textcolor{##21242c}{#1}`),X(`\\kaBlue`,`\\textcolor{##314453}{#1}`),X(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var _l={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},vl=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new cl(ll,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new sl(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new cc(`EOF`,n.loc)),this.pushTokens(r),new cc(``,sc.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new B(`Extra }`,i)}else if(i.text===`EOF`)throw new B(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new B(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new B(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new B(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new B(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new B(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new B(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new cc(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new sl(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(Qc,e)||Object.prototype.hasOwnProperty.call(Hi.math,e)||Object.prototype.hasOwnProperty.call(Hi.text,e)||Object.prototype.hasOwnProperty.call(_l,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(Qc,e)&&!Qc[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},yl=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,bl=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),xl={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},Sl={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Cl=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new vl(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new B(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new cc(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&Qc[i.text]&&Qc[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new B(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new B(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new B(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new B(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new B(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new B(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(bl[i.text]){var s=yl.test(i.text),c=[];for(c.push(new cc(bl[i.text])),this.consume();;){var l=this.fetch().text;if(!bl[l]||yl.test(l)!==s)break;c.unshift(new cc(bl[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n&&r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:n?{type:`supsub`,mode:this.mode,base:t,sup:n}:r?{type:`supsub`,mode:this.mode,base:t,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=Qc[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new B(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new B(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new B(`Can't use function '`+r+`' in math mode`,n);var a=this.parseArguments(r,i),o=a.args,s=a.optArgs;return this.callFunction(r,o,s,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=Qc[e];if(o&&o.handler)return o.handler(a,t,n);throw new B(`No function handler for `+e)}parseArguments(e,t){var n=t.numOptionalArgs??0,r=t.numArgs+n;if(r===0)return{args:[],optArgs:[]};for(var i=[],a=[],o=0;o<r;o++){var s=t.argTypes?.[o],c=o<n;(`primitive`in t&&t.primitive&&s==null||t.type===`sqrt`&&o===1&&a[0]==null)&&(s=`primitive`);var l=this.parseGroupOfType(`argument to '`+e+`'`,s,c);if(c)a.push(l);else if(l!=null)i.push(l);else throw new B(`Null argument, please report this as a bug`)}return{args:i,optArgs:a}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:this.gullet.consumeSpaces();var i=this.gullet.lexer.catcodes[`%`];this.gullet.lexer.setCatcode(`%`,12);var a=this.parseStringGroup(n);return this.gullet.lexer.setCatcode(`%`,i),a==null?null:{type:`raw`,mode:`text`,string:a.text};case`primitive`:if(n)throw new B(`A primitive argument cannot be optional`);var o=this.parseGroup(e);if(o==null)throw new B(`Expected group as `+e,this.fetch());return o;case`original`:case void 0:return this.parseArgumentGroup(n);default:throw new B(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e){var t=this.gullet.scanArgument(e);if(t==null)return null;for(var n=``,r;(r=this.fetch()).text!==`EOF`;)n+=r.text,this.consume();return this.consume(),t.text=n,t}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new B(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new B(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new B(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!gi(i))throw new B(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){var t=this.gullet.lexer.catcodes[`%`],n=this.gullet.lexer.catcodes[`~`];this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var r=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode(`%`,t),this.gullet.lexer.setCatcode(`~`,n),r==null)return null;var i=r.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:i}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:sc.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Object.prototype.hasOwnProperty.call(_l,r)){if(this.settings.throwOnError)throw new B(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(a&&a.type===`textord`){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:sc.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:sc.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:sc.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new B(`\\verb assertion failed --
|
|
258
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Object.prototype.hasOwnProperty.call(Sl,t[0])&&!Hi[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&ja({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Accented Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}),t=Sl[t[0]]+t.slice(1));var i=al.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(Hi[this.mode][t]){this.settings.strict&&this.mode===`math`&&pa.includes(t)&&ja({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e});var o=Hi[this.mode][t].group,s=sc.range(e);a=ts(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&($r(t.charCodeAt(0))?this.mode===`math`&&ja({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}):ja({strict:this.settings.strict,errorCode:`unknownSymbol`,errorMsg:`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),report:!0,token:e})),a={type:`textord`,mode:`text`,loc:sc.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!xl[l])throw new B(`Unknown accent ' `+l+`'`,e);var u=xl[l][this.mode]||xl[l].text;if(!u)throw new B(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:sc.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};Cl.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var wl=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new Cl(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new B(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new cc(`\\df@tag`)])}]}return r},Tl=function(e,t,n){t.textContent=``;var r=kl(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),Tl=function(){throw new B(`KaTeX doesn't work in quirks mode.`)});var El=function(e,t){return kl(e,t).toMarkup()},Dl=function(e,t){return wl(e,new Mr(t))},Ol=function(e,t,n){if(n.throwOnError||!(e instanceof B))throw e;var r=J([`katex-error`],[new Oi(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},kl=function(e,t){var n=new Mr(t);try{return nee(wl(e,n),e,n)}catch(t){return Ol(t,e,n)}},Al={version:`0.19.1`,render:Tl,renderToString:El,ParseError:B,SETTINGS_SCHEMA:Or,__parse:Dl,__renderToDomTree:kl,__renderToHTMLTree:function(e,t){var n=new Mr(t);try{return Wo(wl(e,n),n)}catch(t){return Ol(t,e,n)}},__setFontMetrics:Ri,__defineSymbol:V,__defineFunction:oo,__defineMacro:X,__domTree:{Span:wi,Anchor:Ti,SymbolNode:Oi,SvgNode:ki,PathNode:Ai,LineNode:ji}};function jl(e){try{return{html:Al.renderToString(e,{displayMode:!0,throwOnError:!0,output:`htmlAndMathml`,strict:`ignore`})}}catch(t){let n=t instanceof Error?t.message:String(t);return{html:Al.renderToString(e,{displayMode:!0,throwOnError:!1,output:`htmlAndMathml`,strict:`ignore`}),error:n}}}var Ml={math:`math`,mermaid:`mermaid`},Nl=[`value`,`percentage`,`category`,`series`],Pl=[`sans`,`serif`,`mono`],Fl=[`bold`,`italic`,`underline`,`strike`],Il=(e,t)=>e.note===void 0&&t.note===void 0&&e.href===t.href&&JSON.stringify(zl(e.styles))===JSON.stringify(zl(t.styles));function Ll(e){let t=[],n=(e,n,r)=>{if(e===``)return;let i={text:e,styles:n,...r===void 0?{}:{href:r}},a=t.at(-1);a&&Il(a,i)?a.text+=e:t.push(i)};return e.forEach((r,i)=>{if(r.note!==void 0){t.push({...r});return}let{styles:a,href:o}=r,s=!a.code&&o===void 0&&Fl.some(e=>a[e])?/^(\s*)([\s\S]*?)(\s*)$/u.exec(r.text):null;if(!s){n(r.text,a,o);return}let[,c=``,l=``,u=``]=s,d={...a};delete d.bold,delete d.italic,delete d.underline,delete d.strike;let f=e[i-1]?.note!==void 0,p=e[i+1]?.note!==void 0;n(c,f?a:d,o),n(l,l===``?d:a,o),n(u,p?a:d,o)}),t}var Rl=e=>e.length>0&&e.every(e=>typeof e==`object`&&!!e&&typeof e.text==`string`&&typeof e.styles==`object`);function zl(e){if(Array.isArray(e))return(Rl(e)?Ll(e):e).map(zl);if(typeof e==`object`&&e){let t={};for(let n of Object.keys(e).sort()){let r=e[n];r!==void 0&&(t[n]=zl(r))}return t}return e}var Bl=e=>JSON.stringify(zl(e)),Vl=(e,t)=>e.length===t.length&&e.every((e,n)=>{let r=t[n];return r!==void 0&&Bl(e)===Bl(r)}),Hl=e=>e.type===`columns`?e.columns.flatMap(e=>e.blocks):`children`in e?e.children??[]:[];function*Ul(e){for(let t of e)yield t,yield*Ul(Hl(t))}function Wl(e){let t=new Map,n=new Set([...Ul(e)].flatMap(e=>e.type===`note`?[e.label.toLowerCase()]:[])),r=e=>{for(let r of e){let e=r.note?.toLowerCase();e!==void 0&&n.has(e)&&!t.has(e)&&t.set(e,t.size+1)}};for(let t of Ul(e))if(t.type!==`note`&&(`content`in t&&r(t.content),t.type===`table`))for(let e of t.rows)for(let t of e)r(t);return t}var Gl=e=>e.filter(e=>e.type!==`source`),Kl={sans:`"Commissioner Variable", Commissioner, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif`,serif:`"Piazzolla Variable", Piazzolla, "Noto Serif SC", "Songti SC", Georgia, serif`,mono:`"JetBrains Mono Variable", "JetBrains Mono", "SF Mono", Menlo, Consolas, "Noto Sans SC", monospace`};function ql(e={}){switch(e.font){case`serif`:return{text:Kl.serif,heading:Kl.serif};case`mono`:return{text:Kl.mono,heading:Kl.mono};default:return{text:Kl.sans,heading:Kl.serif}}}var Jl=(e={})=>e.accent===void 0?void 0:sr(e.accent);`${Jn.ink}${Jn.lead}${Jn.leadSoft}${Jn.ruleStrong}${Jn.ink}${Jn.ink}${Jn.leadSoft}${Jn.ruleStrong}${Jn.ruleStrong}${Jn.lead}${Jn.stone2}${Jn.stone}${Jn.rule}${Jn.ruleStrong}${Jn.leadSoft}${Jn.rule}${Jn.ruleStrong}${Jn.stone}${Jn.ruleMid}${Jn.leadSoft}${Jn.lead}${Jn.rule}${Jn.lead}`;var Yl={};function Xl(e,t){let n=t||Yl;return Zl(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function Zl(e,t,n){if($l(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return Ql(e.children,t,n)}return Array.isArray(e)?Ql(e,t,n):``}function Ql(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Zl(e[i],t,n);return r.join(``)}function $l(e){return!!(e&&typeof e==`object`)}var eu=document.createElement(`i`);function tu(e){let t=`&`+e+`;`;eu.innerHTML=t;let n=eu.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function nu(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function ru(e,t){return e.length>0?(nu(e,e.length,0,t),e):t}var iu={}.hasOwnProperty;function au(e){let t={},n=-1;for(;++n<e.length;)ou(t,e[n]);return t}function ou(e,t){let n;for(n in t){let r=(iu.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){iu.call(r,a)||(r[a]=[]);let e=i[a];su(r[a],Array.isArray(e)?e:e?[e]:[])}}}function su(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);nu(e,0,0,r)}function cu(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function lu(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var uu=Su(/[A-Za-z]/),du=Su(/[\dA-Za-z]/),fu=Su(/[#-'*+\--9=?A-Z^-~]/);function pu(e){return e!==null&&(e<32||e===127)}var mu=Su(/\d/),hu=Su(/[\dA-Fa-f]/),gu=Su(/[!-/:-@[-`{-~]/);function _u(e){return e!==null&&e<-2}function vu(e){return e!==null&&(e<0||e===32)}function yu(e){return e===-2||e===-1||e===32}var bu=Su(/\p{P}|\p{S}/u),xu=Su(/\s/);function Su(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Cu(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return yu(r)?(e.enter(n),s(r)):t(r)}function s(r){return yu(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function wu(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&yu(t)?(e.enter(r),c(t)):l(t)}function c(t){return yu(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var Tu={tokenize:Eu};function Eu(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Cu(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return _u(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Du=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){Ou(this,e,t,n,!1)}addBefore(e,t,n){Ou(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Ou(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var iee={tokenize:aee},ku={tokenize:oee};function aee(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new Du;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ku,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(ku,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return _u(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new Du;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function oee(e,t,n){return Cu(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Au(e){if(e===null||vu(e)||xu(e))return 1;if(bu(e))return 2}function ju(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Mu={name:`attention`,resolveAll:see,tokenize:cee};function see(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};Nu(o,-a),Nu(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=ru(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=ru(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=ru(r,ju(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=ru(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=ru(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),nu(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function cee(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Au(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Au(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function Nu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Pu={name:`autolink`,tokenize:Fu};function Fu(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return uu(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||du(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||du(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||pu(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):fu(t)?(e.consume(t),l):n(t)}function u(e){return du(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||du(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Iu={partial:!0,tokenize:Lu};function Lu(e,t,n){return r;function r(t){return yu(t)?Cu(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||_u(e)?t(e):n(e)}}var Ru={continuation:{tokenize:Bu},exit:Vu,name:`blockQuote`,tokenize:zu};function zu(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return yu(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Bu(e,t,n){let r=this;return i;function i(t){return yu(t)?Cu(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(Ru,t,n)(r)}}function Vu(e){e.exit(`blockQuote`)}var Hu={name:`characterEscape`,tokenize:Uu};function Uu(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return gu(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Wu={name:`characterReference`,tokenize:Gu};function Gu(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=du,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=hu,u):(e.enter(`characterReferenceValue`),a=7,o=mu,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===du&&!tu(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var Ku={partial:!0,tokenize:qu};function qu(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Ju={concrete:!0,name:`codeFenced`,tokenize:Yu};function Yu(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),yu(t)?Cu(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||_u(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Ku,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||_u(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):yu(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Cu(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||_u(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||_u(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&yu(t)?Cu(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||_u(t)?e.check(Ku,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||_u(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),yu(t)?Cu(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),yu(t)?Cu(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||_u(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var Xu={name:`codeIndented`,tokenize:Qu},Zu={partial:!0,tokenize:$u};function Qu(e,t,n){return r;function r(t){return e.enter(`codeIndented`),wu(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):_u(t)?e.attempt(Zu,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||_u(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function $u(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):_u(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):wu(e,t,a,`linePrefix`,4,4)(o)}function a(e){return _u(e)?i(e):n(e)}}var ed={name:`codeText`,previous:nd,resolve:td,tokenize:rd};function td(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function nd(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function rd(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):_u(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||_u(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var id=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&ad(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),ad(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ad(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);ad(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);ad(this.left,t.reverse())}}}};function ad(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function od(e){let t={},n=-1,r,i,a,o,s,c,l,u=new id(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,sd(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return nu(e,0,1/0,u.slice(0)),!l}function sd(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var cd={resolve:ud,tokenize:dd},ld={partial:!0,tokenize:fd};function ud(e){return od(e),e}function dd(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):_u(t)?e.check(ld,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function fd(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Cu(e,a,`linePrefix`)}function a(i){if(i===null||_u(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function pd(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||pu(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||_u(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||vu(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||pu(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function md(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):_u(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||_u(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!yu(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function hd(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):_u(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Cu(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||_u(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function gd(e,t){let n;return r;function r(i){return _u(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):yu(i)?Cu(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var _d={name:`definition`,tokenize:yd},vd={partial:!0,tokenize:bd};function yd(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return md.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=lu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return vu(t)?gd(e,l)(t):l(t)}function l(t){return pd(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(vd,d,d)(t)}function d(t){return yu(t)?Cu(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||_u(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function bd(e,t,n){return r;function r(t){return vu(t)?gd(e,i)(t):n(t)}function i(t){return hd(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return yu(t)?Cu(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||_u(e)?t(e):n(e)}}var xd={name:`hardBreakEscape`,tokenize:Sd};function Sd(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return _u(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Cd={name:`headingAtx`,resolve:wd,tokenize:Td};function wd(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};nu(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function Td(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||vu(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||_u(n)?(e.exit(`atxHeading`),t(n)):yu(n)?Cu(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||vu(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Ed=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Dd=[`pre`,`script`,`style`,`textarea`],Od={concrete:!0,name:`htmlFlow`,resolveTo:Ad,tokenize:jd},kd={partial:!0,tokenize:Md};function Ad(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function jd(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):uu(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):uu(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return uu(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||vu(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Dd.includes(l)?(i=1,r.interrupt?t(s):O(s)):Ed.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||du(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return yu(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||uu(t)?(e.consume(t),b):yu(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||du(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):yu(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):yu(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||_u(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||vu(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||yu(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||_u(t)?O(t):yu(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):_u(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(kd,ee,k)(t)):t===null||_u(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(Ku,A,ee)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||_u(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return Dd.includes(n)?(e.consume(t),L):O(t)}return uu(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||_u(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),L)}function ee(n){return e.exit(`htmlFlow`),t(n)}}function Md(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Iu,t,n)}}var Nd={name:`htmlText`,tokenize:Pd};function Pd(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):uu(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):uu(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):_u(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):_u(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):_u(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):_u(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return uu(t)?(e.consume(t),S):n(t)}function S(t){return t===45||du(t)?(e.consume(t),S):C(t)}function C(t){return _u(t)?(o=C,N(t)):yu(t)?(e.consume(t),C):M(t)}function w(t){return t===45||du(t)?(e.consume(t),w):t===47||t===62||vu(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||uu(t)?(e.consume(t),E):_u(t)?(o=T,N(t)):yu(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||du(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):_u(t)?(o=D,N(t)):yu(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):_u(t)?(o=O,N(t)):yu(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):_u(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||vu(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||vu(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return yu(t)?Cu(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var Fd={name:`labelEnd`,resolveAll:zd,resolveTo:Bd,tokenize:Vd},Id={tokenize:Hd},Ld={tokenize:Ud},Rd={tokenize:Wd};function zd(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&nu(e,0,e.length,n),e}function Bd(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=ru(o,e.slice(i+1,i+r+3)),o=ru(o,[[`enter`,l,t]]),o=ru(o,ju(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=ru(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=ru(o,e.slice(a+1)),o=ru(o,[[`exit`,s,t]]),nu(e,i,e.length,o),e}function Vd(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(lu(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Id,u,o?u:d)(t):t===91?e.attempt(Ld,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Rd,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function Hd(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return vu(t)?gd(e,a)(t):a(t)}function a(t){return t===41?u(t):pd(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return vu(t)?gd(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?hd(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return vu(t)?gd(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Ud(e,t,n){let r=this;return i;function i(t){return md.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(lu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Wd(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Gd={name:`labelStartImage`,resolveAll:Fd.resolveAll,tokenize:Kd};function Kd(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var qd={name:`labelStartLink`,resolveAll:Fd.resolveAll,tokenize:Jd};function Jd(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var Yd={name:`lineEnding`,tokenize:Xd};function Xd(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Cu(e,t,`linePrefix`)}}var Zd={name:`thematicBreak`,tokenize:Qd};function Qd(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||_u(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),yu(t)?Cu(e,s,`whitespace`)(t):s(t))}}var $d={continuation:{tokenize:rf},exit:of,name:`list`,tokenize:nf},ef={partial:!0,tokenize:sf},tf={partial:!0,tokenize:af};function nf(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:mu(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Zd,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return mu(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Iu,r.interrupt?n:u,e.attempt(ef,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return yu(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function rf(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Iu,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Cu(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!yu(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tf,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Cu(e,e.attempt($d,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function af(e,t,n){let r=this;return Cu(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function of(e){e.exit(this.containerState.type)}function sf(e,t,n){let r=this;return Cu(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!yu(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var cf={name:`setextUnderline`,resolveTo:lf,tokenize:uf};function lf(e,t){let n=new Du,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function uf(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),yu(t)?Cu(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||_u(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var df={tokenize:ff};function ff(e){let t=this,n=e.attempt(Iu,r,e.attempt(this.parser.constructs.flowInitial,i,Cu(e,e.attempt(this.parser.constructs.flow,i,e.attempt(cd,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var pf={resolveAll:_f()},mf=gf(`string`),hf=gf(`text`);function gf(e){return{resolveAll:_f(e===`text`?vf:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function _f(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function vf(e,t){let n=new Du,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var yf=t({attentionMarkers:()=>Df,contentInitial:()=>xf,disable:()=>Of,document:()=>bf,flow:()=>Cf,flowInitial:()=>Sf,insideSpan:()=>Ef,string:()=>wf,text:()=>Tf}),bf={42:$d,43:$d,45:$d,48:$d,49:$d,50:$d,51:$d,52:$d,53:$d,54:$d,55:$d,56:$d,57:$d,62:Ru},xf={91:_d},Sf={[-2]:Xu,[-1]:Xu,32:Xu},Cf={35:Cd,42:Zd,45:[cf,Zd],60:Od,61:cf,95:Zd,96:Ju,126:Ju},wf={38:Wu,92:Hu},Tf={[-5]:Yd,[-4]:Yd,[-3]:Yd,33:Gd,38:Wu,42:Mu,60:[Pu,Nd],91:qd,92:[xd,Hu],93:Fd,95:Mu,96:ed},Ef={null:[Mu,pf]},Df={null:[42,95]},Of={null:[]};function kf(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=ru(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=ju(a,l.events,l),l.events):[]}function f(e,t){return jf(p(e),t)}function p(e){return Af(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){_u(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&nu(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Af(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function jf(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
259
|
+
`;break;case-3:o=`\r
|
|
260
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Mf(e){let t={constructs:au([yf,...(e||{}).extensions||[]]),content:n(Tu),defined:[],document:n(iee),flow:n(df),lazy:{},string:n(mf),text:n(hf)};return t;function n(e){return n;function n(n){return kf(t,e,n)}}}function Nf(e){for(;!od(e););return e}var Pf=/[\0\t\n\r]/g;function Ff(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){Pf.lastIndex=c;let n=Pf.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var If=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lf(e){return e.replace(If,Rf)}function Rf(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return cu(n.slice(t?2:1),t?16:10)}return tu(n)||e}function zf(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Vf(e.position):`start`in e||`end`in e?Vf(e):`line`in e||`column`in e?Bf(e):``}function Bf(e){return Hf(e&&e.line)+`:`+Hf(e&&e.column)}function Vf(e){return Bf(e&&e.start)+`-`+Bf(e&&e.end)}function Hf(e){return e&&typeof e==`number`?e:1}var Uf={}.hasOwnProperty;function Wf(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Gf(n)(Nf(Mf(n).document().write(Ff()(e,t,!0))))}function Gf(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(ve),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(me),blockQuote:o(le),characterEscape:E,characterReference:E,codeFenced:o(ue),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(ue,s),codeText:o(de,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(fe),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(pe),hardBreakEscape:o(he),hardBreakTrailing:o(he),htmlFlow:o(ge,s),htmlFlowData:E,htmlText:o(ge,s),htmlTextData:E,image:o(_e),label:s,link:o(ve),listItem:o(be),listItemValue:p,listOrdered:o(ye,f),listUnordered:o(ye),paragraph:o(xe),reference:ne,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(me),strong:o(Se),thematicBreak:o(we)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:ce,autolinkProtocol:se,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ie,characterReferenceMarkerNumeric:ie,characterReferenceValue:ae,characterReference:oe,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(j),htmlTextData:D,image:l(P),label:I,labelText:F,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:re,resourceDestinationString:L,resourceTitleString:ee,resource:te,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};qf(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),Uf.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||Yf).call(o,void 0,e[0])}for(r.position={start:Kf(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Kf(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Kf(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+zf({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Yf).call(this,e,r[0])),n.position.end=Kf(e.end)}function d(){return Xl(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=lu(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=Ce(),n.position={start:Kf(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Kf(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Kf(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function k(){this.data.atHardBreak=!0}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Lf(t),n.identifier=lu(t).toLowerCase()}function I(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function te(){this.data.inReference=void 0}function ne(){this.data.referenceType=`collapsed`}function re(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=lu(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ie(e){this.data.characterReferenceType=e.type}function ae(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=cu(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=tu(t);let i=this.stack[this.stack.length-1];i.value+=r}function oe(e){let t=this.stack.pop();t.position.end=Kf(e.end)}function se(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ce(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function le(){return{type:`blockquote`,children:[],position:void 0}}function ue(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function de(){return{type:`inlineCode`,value:``,position:void 0}}function fe(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function pe(){return{type:`emphasis`,children:[],position:void 0}}function me(){return{type:`heading`,depth:0,children:[],position:void 0}}function he(){return{type:`break`,position:void 0}}function ge(){return{type:`html`,value:``,position:void 0}}function _e(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function ve(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function ye(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function be(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function xe(){return{type:`paragraph`,children:[],position:void 0}}function Se(){return{type:`strong`,children:[],position:void 0}}function Ce(){return{type:`text`,value:``,position:void 0}}function we(){return{type:`thematicBreak`,position:void 0}}}function Kf(e){return{line:e.line,column:e.column,offset:e.offset}}function qf(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?qf(e,r):Jf(e,r)}}function Jf(e,t){let n;for(n in t)if(Uf.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Yf(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+zf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+zf({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+zf({start:t.start,end:t.end})+`) is still open`)}var Xf=e(n(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o}else o===`%`?s=!0:a+=o;return a}})()}))(),1),Zf=Object.assign(Qf(Error),{eval:Qf(EvalError),range:Qf(RangeError),reference:Qf(ReferenceError),syntax:Qf(SyntaxError),type:Qf(TypeError),uri:Qf(URIError)});function Qf(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,Xf.default)(t,...n))}}var $f={}.hasOwnProperty,ep={yaml:`-`,toml:`+`};function tp(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=np(r[n]);return t}function np(e){let t=e;if(typeof t==`string`){if(!$f.call(ep,t))throw Zf("Missing matter definition for `%s`",t);t={type:t,marker:ep[t]}}else if(typeof t!=`object`)throw Zf("Expected matter to be an object, not `%j`",t);if(!$f.call(t,`type`))throw Zf("Missing `type` in matter `%j`",t);if(!$f.call(t,`fence`)&&!$f.call(t,`marker`))throw Zf("Missing `marker` or `fence` in matter `%j`",t);return t}function rp(e){let t=tp(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=ap(e,`open`).charCodeAt(0),a=ip(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function ip(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=ap(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),yu(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return yu(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return _u(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=ap(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||_u(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||_u(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===null?d(e):(l.enter(`lineEnding`),l.consume(e),l.exit(`lineEnding`),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),yu(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return yu(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||_u(i)?(e.exit(r),t(i)):n(i)}}}function ap(e,t){return e.marker?op(e.marker,t).repeat(3):op(e.fence,t)}function op(e,t){return typeof e==`string`?e:e[t]}function sp(e){let t=tp(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=cp(e),r[e.type]=lp,r[e.type+`Value`]=up}return{enter:n,exit:r}}function cp(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function lp(e){let t=this.resume(),n=this.stack[this.stack.length-1];`value`in n,this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function up(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}bp.peek=yp;function dp(){this.buffer()}function fp(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function pp(){this.buffer()}function mp(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function hp(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=lu(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gp(e){this.exit(e)}function _p(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=lu(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vp(e){this.exit(e)}function yp(){return`[`}function bp(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function xp(){return{enter:{gfmFootnoteCallString:dp,gfmFootnoteCall:fp,gfmFootnoteDefinitionLabelString:pp,gfmFootnoteDefinition:mp},exit:{gfmFootnoteCallString:hp,gfmFootnoteCall:gp,gfmFootnoteDefinitionLabelString:_p,gfmFootnoteDefinition:vp}}}Tp.attention=Ep,Tp.peek=Dp;function Sp(){return{canContainEols:[`delete`],enter:{strikethrough:Cp},exit:{strikethrough:wp}}}function Cp(e){this.enter({type:`delete`,children:[],position:void 0},e)}function wp(e){this.exit(e)}function Tp(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function Ep(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function Dp(){return`~`}function Op(){return{enter:{table:kp,tableData:Np,tableHeader:Np,tableRow:jp},exit:{codeText:Pp,table:Ap,tableData:Mp,tableHeader:Mp,tableRow:Mp}}}function kp(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function Ap(e){this.exit(e),this.data.inTable=void 0}function jp(e){this.enter({type:`tableRow`,children:[]},e)}function Mp(e){this.exit(e)}function Np(e){this.enter({type:`tableCell`,children:[]},e)}function Pp(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Fp));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Fp(e,t){return t===`|`?t:e}function Ip(){return{exit:{taskListCheckValueChecked:Lp,taskListCheckValueUnchecked:Lp,paragraph:Rp}}}function Lp(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Rp(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function zp(){return{enter:{mdxFlowExpression:Bp,mdxTextExpression:Vp},exit:{mdxFlowExpression:Hp,mdxFlowExpressionChunk:Up,mdxTextExpression:Hp,mdxTextExpressionChunk:Up}}}function Bp(e){this.enter({type:`mdxFlowExpression`,value:``},e),this.buffer()}function Vp(e){this.enter({type:`mdxTextExpression`,value:``},e),this.buffer()}function Hp(e){let t=this.resume(),n=e.estree,r=this.stack[this.stack.length-1];r.type===`mdxFlowExpression`||r.type,this.exit(e),r.value=t,n&&(r.data={estree:n})}function Up(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}var Wp=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Gp={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function Kp(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function qp(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Jp(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Yp(e){return Jp(e)||Kp(e)}var Xp=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function Zp(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?Yp:u===`decimal`?Kp:qp;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&Wp.includes(y)&&(_=y,v=tu(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`&&tu(y);e&&(_=y,v=e)}let S=1+l-o,C=``;if(x||n.nonTerminated!==!1){if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):Yp(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(Qp(e))h(7,S),C=`�`;else if(e in Gp)h(6,S),C=Gp[e];else{let t=``;$p(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,Xp[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function Qp(e){return e>=55296&&e<=57343||e>1114111}function $p(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var em=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=zf(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};em.prototype.file=``,em.prototype.name=``,em.prototype.reason=``,em.prototype.message=``,em.prototype.stack=``,em.prototype.column=void 0,em.prototype.line=void 0,em.prototype.ancestors=void 0,em.prototype.cause=void 0,em.prototype.fatal=void 0,em.prototype.place=void 0,em.prototype.ruleId=void 0,em.prototype.source=void 0;function tm(){return{canContainEols:[`mdxJsxTextElement`],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:d,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:d,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:s,mdxJsxFlowTagNamePrimary:c,mdxJsxFlowTagNameMember:l,mdxJsxFlowTagNameLocal:u,mdxJsxFlowTagExpressionAttribute:p,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:m,mdxJsxFlowTagAttributeNameLocal:h,mdxJsxFlowTagAttributeValueLiteral:g,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:_,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:v,mdxJsxFlowTag:y,mdxJsxTextTagClosingMarker:s,mdxJsxTextTagNamePrimary:c,mdxJsxTextTagNameMember:l,mdxJsxTextTagNameLocal:u,mdxJsxTextTagExpressionAttribute:p,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:m,mdxJsxTextTagAttributeNameLocal:h,mdxJsxTextTagAttributeValueLiteral:g,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:_,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:v,mdxJsxTextTag:y}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function r(e){let t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function i(e){if(this.data.mdxJsxTagStack.length===0)throw new em("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-closing-slash`)}function a(e){if(this.data.mdxJsxTag.close)throw new em(`Unexpected attribute in closing tag, expected the end of the tag`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-attribute`)}function o(e){if(this.data.mdxJsxTag.close)throw new em("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-self-closing-slash`)}function s(){let e=this.data.mdxJsxTag;e.close=!0}function c(e){let t=this.data.mdxJsxTag;t.name=this.sliceSerialize(e)}function l(e){let t=this.data.mdxJsxTag;t.name+=`.`+this.sliceSerialize(e)}function u(e){let t=this.data.mdxJsxTag;t.name+=`:`+this.sliceSerialize(e)}function d(e){let n=this.data.mdxJsxTag;a.call(this,e),n.attributes.push({type:`mdxJsxAttribute`,name:``,value:null,position:{start:t(e.start),end:void 0}})}function f(e){let n=this.data.mdxJsxTag;a.call(this,e),n.attributes.push({type:`mdxJsxExpressionAttribute`,value:``,position:{start:t(e.start),end:void 0}}),this.buffer()}function p(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type;let i=e.estree;r.value=this.resume(),r.position,r.position.end=t(e.end),i&&(r.data={estree:i})}function m(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name=this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function h(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name+=`:`+this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function g(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.value=Zp(this.resume(),{nonTerminated:!1}),r.position,r.position.end=t(e.end)}function _(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type;let i={type:`mdxJsxAttributeValueExpression`,value:this.resume()},a=e.estree;a&&(i.data={estree:a}),r.value=i,r.position,r.position.end=t(e.end)}function v(){let e=this.data.mdxJsxTag;e.selfClosing=!0}function y(e){let t=this.data.mdxJsxTag,n=this.data.mdxJsxTagStack,r=n[n.length-1];if(t.close&&r.name!==t.name)throw new em("Unexpected closing tag `"+S(t)+"`, expected corresponding closing tag for `"+S(r)+"` ("+zf(r)+`)`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:end-tag-mismatch`);this.resume(),t.close?n.pop():this.enter({type:e.type===`mdxJsxTextTag`?`mdxJsxTextElement`:`mdxJsxFlowElement`,name:t.name||null,attributes:t.attributes,children:[]},e,b),t.selfClosing||t.close?this.exit(e,x):n.push(t)}function b(e,t){let n=this.data.mdxJsxTagStack,r=n[n.length-1],i=e?" before the end of `"+e.type+"`":``,a=e?{start:e.start,end:e.end}:void 0;throw new em("Expected a closing tag for `"+S(r)+"` ("+zf({start:t.start,end:t.end})+`)`+i,a,`mdast-util-mdx-jsx:end-tag-mismatch`)}function x(e,t){let n=this.data.mdxJsxTag;throw new em("Expected the closing tag `"+S(n)+"` either after the end of `"+t.type+"` ("+zf(t.end)+") or another opening tag after the start of `"+t.type+"` ("+zf(t.start)+`)`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:end-tag-mismatch`)}function S(e){return`<`+(e.close?`/`:``)+(e.name||``)+`>`}}function nm(){return{enter:{mdxjsEsm:rm},exit:{mdxjsEsm:im,mdxjsEsmData:am}}}function rm(e){this.enter({type:`mdxjsEsm`,value:``},e),this.buffer()}function im(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);let r=e.estree;n.value=t,r&&(n.data={estree:r})}function am(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function om(){return[zp(),tm(),nm()]}var sm={tokenize:hm,partial:!0};function cm(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:fm,continuation:{tokenize:pm},exit:mm}},text:{91:{name:`gfmFootnoteCall`,tokenize:dm},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:lm,resolveTo:um}}}}function lm(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=lu(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function um(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function dm(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||vu(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(lu(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return vu(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function fm(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||vu(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=lu(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return vu(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Cu(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function pm(e,t,n){return e.check(Iu,t,e.attempt(sm,t,n))}function mm(e){e.exit(`gfmFootnoteDefinition`)}function hm(e,t,n){let r=this;return Cu(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function gm(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&nu(o,o.length,0,ju(s,e.slice(r+1,n),t)),nu(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),nu(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Au(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Au(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var _m=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){vm(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function vm(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function ym(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function bm(){return{flow:{null:{name:`table`,tokenize:xm,resolveAll:Sm}}}}function xm(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):_u(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):yu(t)?Cu(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||vu(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,yu(t)?Cu(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return yu(t)?Cu(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||_u(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return yu(t)?Cu(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||_u(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||_u(n)?(e.exit(`tableRow`),t(n)):yu(n)?Cu(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||vu(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Sm(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new _m;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(wm(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Cm(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Cm(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Cm(f,t,o,i,n,d)):(o[0]=o[1],d=Cm(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&wm(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=ym(t.events,n))}return e}function Cm(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Tm(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Tm(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=Tm(t.events,n[2]),a=Tm(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},Tm(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function wm(e,t,n,r,i){let a=[],o=Tm(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function Tm(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Em={name:`tasklistCheck`,tokenize:Om};function Dm(){return{text:{91:Em}}}function Om(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return vu(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return _u(r)?t(r):yu(r)?e.check({tokenize:km},t,n)(r):n(r)}}function km(e,t,n){return Cu(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}var Am=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,31,4,33,15,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,7,0,259,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,481,1,61,4,4,5,9,7,3,6,31,3,149,2,12,2,9,1,3,0,33,1,1357,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],jm=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,13,65,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,18,21,18,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,18,0,182,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,22,0,239,18,16,0,2,12,2,33,125,0,80,921,103,111,6,206,13,310,2314,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7386,37,33,96,114,14,913,15,50,7710,3,2,6,2,1,2,296,10,0,30,2,3,0,15,4,8,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,340,2,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,129,15,6,55,50,49,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4382,2,5773,3,7472,16,621,2467,541,1507,4938,6,8489,39815,11327],Mm=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄ-ؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,Nm=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿ-ℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,Pm={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},Fm=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,Im={5:Fm,"5module":Fm+` export import`,6:Fm+` const class extends export import super`},Lm=/^in(stanceof)?$/,Rm=RegExp(`[`+Nm+`]`),zm=RegExp(`[`+Nm+Mm+`]`);function Bm(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function Vm(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Rm.test(String.fromCharCode(e)):t!==!1&&Bm(e,jm)}function Hm(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&zm.test(String.fromCharCode(e)):t===!1?!1:Bm(e,jm)||Bm(e,Am)}var Um=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function Wm(e,t){return new Um(e,{beforeExpr:!0,binop:t})}var Gm={beforeExpr:!0},Km={startsExpr:!0},qm={};function Jm(e,t){return t===void 0&&(t={}),t.keyword=e,qm[e]=new Um(e,t)}var Z={num:new Um(`num`,Km),regexp:new Um(`regexp`,Km),string:new Um(`string`,Km),name:new Um(`name`,Km),privateId:new Um(`privateId`,Km),eof:new Um(`eof`),bracketL:new Um(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new Um(`]`),braceL:new Um(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new Um(`}`),parenL:new Um(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new Um(`)`),comma:new Um(`,`,Gm),semi:new Um(`;`,Gm),colon:new Um(`:`,Gm),dot:new Um(`.`),question:new Um(`?`,Gm),questionDot:new Um(`?.`),arrow:new Um(`=>`,Gm),template:new Um(`template`),invalidTemplate:new Um(`invalidTemplate`),ellipsis:new Um(`...`,Gm),backQuote:new Um("`",Km),dollarBraceL:new Um("${",{beforeExpr:!0,startsExpr:!0}),eq:new Um(`=`,{beforeExpr:!0,isAssign:!0}),assign:new Um(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new Um(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Um(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Wm(`||`,1),logicalAND:Wm(`&&`,2),bitwiseOR:Wm(`|`,3),bitwiseXOR:Wm(`^`,4),bitwiseAND:Wm(`&`,5),equality:Wm(`==/!=/===/!==`,6),relational:Wm(`</>/<=/>=`,7),bitShift:Wm(`<</>>/>>>`,8),plusMin:new Um(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Wm(`%`,10),star:Wm(`*`,10),slash:Wm(`/`,10),starstar:new Um(`**`,{beforeExpr:!0}),coalesce:Wm(`??`,1),_break:Jm(`break`),_case:Jm(`case`,Gm),_catch:Jm(`catch`),_continue:Jm(`continue`),_debugger:Jm(`debugger`),_default:Jm(`default`,Gm),_do:Jm(`do`,{isLoop:!0,beforeExpr:!0}),_else:Jm(`else`,Gm),_finally:Jm(`finally`),_for:Jm(`for`,{isLoop:!0}),_function:Jm(`function`,Km),_if:Jm(`if`),_return:Jm(`return`,Gm),_switch:Jm(`switch`),_throw:Jm(`throw`,Gm),_try:Jm(`try`),_var:Jm(`var`),_const:Jm(`const`),_while:Jm(`while`,{isLoop:!0}),_with:Jm(`with`),_new:Jm(`new`,{beforeExpr:!0,startsExpr:!0}),_this:Jm(`this`,Km),_super:Jm(`super`,Km),_class:Jm(`class`,Km),_extends:Jm(`extends`,Gm),_export:Jm(`export`),_import:Jm(`import`,Km),_null:Jm(`null`,Km),_true:Jm(`true`,Km),_false:Jm(`false`,Km),_in:Jm(`in`,{beforeExpr:!0,binop:7}),_instanceof:Jm(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:Jm(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Jm(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Jm(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ym=/\r\n?|\n|\u2028|\u2029/,Xm=new RegExp(Ym.source,`g`);function Zm(e){return e===10||e===13||e===8232||e===8233}function Qm(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(Zm(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var $m=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,eh=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,th=Object.prototype,nh=th.hasOwnProperty,rh=th.toString,ih=Object.hasOwn||(function(e,t){return nh.call(e,t)}),ah=Array.isArray||(function(e){return rh.call(e)===`[object Array]`}),oh=Object.create(null);function sh(e){return oh[e]||(oh[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function ch(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var lh=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,uh=function(e,t){this.line=e,this.column=t};uh.prototype.offset=function(e){return new uh(this.line,this.column+e)};var dh=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function fh(e,t){for(var n=1,r=0;;){var i=Qm(e,r,t);if(i<0)return new uh(n,t-r);++n,r=i}}var ph={ecmaVersion:null,sourceType:`script`,strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},mh=!1;function hh(e){var t={};for(var n in ph)t[n]=e&&ih(e,n)?e[n]:ph[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!mh&&typeof console==`object`&&console.warn&&(mh=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
261
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,e&&e.allowHashBang!=null||(t.allowHashBang=t.ecmaVersion>=14),ah(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}if(ah(t.onComment)&&(t.onComment=gh(t,t.onComment)),t.sourceType===`commonjs`&&t.allowAwaitOutsideFunction)throw Error(`Cannot use allowAwaitOutsideFunction with sourceType: commonjs`);return t}function gh(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new dh(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var _h=1,vh=2,yh=4,bh=8,xh=16,Sh=32,Ch=64,wh=128,Th=256,Eh=512,Dh=1024,Oh=_h|vh|Th;function kh(e,t){return vh|(e?yh:0)|(t?bh:0)}var Ah=0,jh=1,Mh=2,Nh=3,Ph=4,Fh=5,Ih=function(e,t,n){this.options=e=hh(e),this.sourceFile=e.sourceFile,this.keywords=sh(Im[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=Pm[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=sh(r);var i=(r?r+` `:``)+Pm.strict;this.reservedWordsStrict=sh(i),this.reservedWordsStrictBind=sh(i+` `+Pm.strictBind),this.input=String(t),this.containsEsc=!1,this.pos=n||0,this.curLine=1,e.startLocation?(this.lineStart=this.pos-e.startLocation.column,this.curLine=e.startLocation.line):n?(this.lineStart=this.input.lastIndexOf(`
|
|
262
|
+
`,n-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(Ym).length)):this.lineStart=0,this.type=Z.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||e.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType===`commonjs`?vh:_h),this.regexpState=null,this.privateNameStack=[]},Lh={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ih.prototype.parse=function(){var e=this,t=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return e.parseTopLevel(t)})},Lh.inFunction.get=function(){return(this.currentVarScope().flags&vh)>0},Lh.inGenerator.get=function(){return(this.currentVarScope().flags&bh)>0},Lh.inAsync.get=function(){return(this.currentVarScope().flags&yh)>0},Lh.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(Th|Eh))return!1;if(t&vh)return(t&yh)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Lh.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&_h)},Lh.allowSuper.get=function(){return(this.currentThisScope().flags&Ch)>0||this.options.allowSuperOutsideMethod},Lh.allowDirectSuper.get=function(){return(this.currentThisScope().flags&wh)>0},Lh.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Lh.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(Th|Eh)||t&vh&&!(t&xh))return!0}return!1},Lh.allowUsing.get=function(){var e=this.currentScope().flags;return!(e&Dh||!this.inModule&&e&_h)},Lh.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Th)>0},Ih.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},Ih.parse=function(e,t){return new this(t,e).parse()},Ih.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},Ih.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Ih.prototype,Lh);var Rh=Ih.prototype,zh=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Rh.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){eh.lastIndex=e,e+=eh.exec(this.input)[0].length;var t=zh.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){eh.lastIndex=e+t[0].length;var n=eh.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||Ym.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`||i===`i`&&Bh(this,r))}e+=t[0].length,eh.lastIndex=e,e+=eh.exec(this.input)[0].length,this.input[e]===`;`&&e++}};function Bh(e,t){for(var n=t+1,r=Math.min(e.input.length,t+11);n<r;){var i=e.fullCharCodeAt(n);if(!Hm(i,!0))break;n+=i<=65535?1:2}return n===t+2&&e.input.slice(t,n)===`in`||n===t+10&&e.input.slice(t,n)===`instanceof`}Rh.eat=function(e){return this.type===e&&(this.next(),!0)},Rh.isContextual=function(e){return this.type===Z.name&&this.value===e&&!this.containsEsc},Rh.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},Rh.catchStackOverflow=function(e){try{return e()}catch(e){if(e instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(e.message)||/\btoo much recursion\b/i.test(e.message)))this.raise(this.start,`Not enough stack space to parse input`);else throw e}},Rh.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Rh.canInsertSemicolon=function(){return this.type===Z.eof||this.type===Z.braceR||Ym.test(this.input.slice(this.lastTokEnd,this.start))},Rh.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Rh.semicolon=function(){!this.eat(Z.semi)&&!this.insertSemicolon()&&this.unexpected()},Rh.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Rh.expect=function(e){this.eat(e)||this.unexpected()},Rh.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var Vh=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Rh.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},Rh.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},Rh.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},Rh.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var Hh=Ih.prototype;Hh.parseTopLevel=function(e){var t=Object.create(null);for(e.body||=[];this.type!==Z.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType===`commonjs`?`script`:this.options.sourceType,this.finishNode(e,`Program`)};var Uh={kind:`loop`},Wh={kind:`switch`};Hh.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;eh.lastIndex=this.pos;var t=eh.exec(this.input),n=this.pos+t[0].length,r=this.fullCharCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123)return!0;if(Vm(r)){var i=n;do n+=r<=65535?1:2;while(Hm(r=this.fullCharCodeAt(n)));if(r===92)return!0;var a=this.input.slice(i,n);if(!Lm.test(a))return!0}return!1},Hh.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;eh.lastIndex=this.pos;var e=eh.exec(this.input),t=this.pos+e[0].length,n;return!Ym.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(Hm(n=this.fullCharCodeAt(t+8))||n===92))},Hh.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?`await`:`using`))return!1;eh.lastIndex=this.pos;var n=eh.exec(this.input),r=this.pos+n[0].length;if(Ym.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,a;if(this.input.slice(r,i)!==`using`||i===this.input.length||Hm(a=this.fullCharCodeAt(i))||a===92)return!1;eh.lastIndex=i;var o=eh.exec(this.input);if(r=i+o[0].length,o&&Ym.test(this.input.slice(i,r)))return!1}var s=this.fullCharCodeAt(r);if(!Vm(s)&&s!==92)return!1;var c=r;do r+=s<=65535?1:2;while(Hm(s=this.fullCharCodeAt(r)));if(s===92)return!0;var l=this.input.slice(c,r);if(Lm.test(l))return!1;if(t&&!e&&l===`of`){eh.lastIndex=r;var u=eh.exec(this.input);if(r+=u[0].length,this.input.charCodeAt(r)!==61||(s=this.input.charCodeAt(r+1))===61||s===62)return!1}return!0},Hh.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},Hh.isUsing=function(e){return this.isUsingKeyword(!1,e)},Hh.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=Z._var,a=`let`),r){case Z._break:case Z._continue:return this.parseBreakContinueStatement(i,r.keyword);case Z._debugger:return this.parseDebuggerStatement(i);case Z._do:return this.parseDoStatement(i);case Z._for:return this.parseForStatement(i);case Z._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case Z._class:return e&&this.unexpected(),this.parseClass(i,!0);case Z._if:return this.parseIfStatement(i);case Z._return:return this.parseReturnStatement(i);case Z._switch:return this.parseSwitchStatement(i);case Z._throw:return this.parseThrowStatement(i);case Z._try:return this.parseTryStatement(i);case Z._const:case Z._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case Z._while:return this.parseWhileStatement(i);case Z._with:return this.parseWithStatement(i);case Z.braceL:return this.parseBlock(!0,i);case Z.semi:return this.parseEmptyStatement(i);case Z._export:case Z._import:if(this.options.ecmaVersion>10&&r===Z._import){eh.lastIndex=this.pos;var o=eh.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===Z._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.isAwaitUsing(!1)?`await using`:this.isUsing(!1)?`using`:null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),e&&this.raise(this.start,`Using declaration is not allowed in single-statement positions`),l===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.next(),this.parseVar(i,!1,l),this.semicolon(),this.finishNode(i,`VariableDeclaration`);var u=this.value,d=this.parseExpression();return r===Z.name&&d.type===`Identifier`&&this.eat(Z.colon)?this.parseLabeledStatement(i,u,d,e):this.parseExpressionStatement(i,d)}},Hh.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(Z.semi)||this.insertSemicolon()?e.label=null:this.type===Z.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},Hh.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},Hh.parseDoStatement=function(e){return this.next(),this.labels.push(Uh),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(Z._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(Z.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},Hh.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(Uh),this.enterScope(0),this.expect(Z.parenL),this.type===Z.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===Z._var||this.type===Z._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),this.parseForAfterInit(e,r,t)}var a=this.isContextual(`let`),o=!1,s=this.isUsing(!0)?`using`:this.isAwaitUsing(!0)?`await using`:null;if(s){var c=this.startNode();return this.next(),s===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new Vh,d=this.start,f=t>-1?this.parseExprSubscripts(u,`await`):this.parseExpression(!0,u);return this.type===Z._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(t>-1?(this.type===Z._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===d&&!l&&f.type===`Identifier`&&f.name===`async`?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&o&&this.raise(f.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(f,!1,u),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))},Hh.parseForAfterInit=function(e,t,n){return(this.type===Z._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&t.declarations.length===1?(this.type===Z._in?(t.kind!==`using`&&t.kind!==`await using`||t.declarations[0].init||this.raise(this.start,`Using declaration is not allowed in for-in loops`),this.options.ecmaVersion>=9&&n>-1&&this.unexpected(n)):this.options.ecmaVersion>=9&&(e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},Hh.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Kh|(n?0:qh),!1,t)},Hh.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(Z._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},Hh.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,`'return' outside of function`),this.next(),this.eat(Z.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},Hh.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(Z.braceL),this.labels.push(Wh),this.enterScope(Dh);for(var t,n=!1;this.type!==Z.braceR;)if(this.type===Z._case||this.type===Z._default){var r=this.type===Z._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(Z.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},Hh.parseThrowStatement=function(e){return this.next(),Ym.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var Gh=[];Hh.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?Sh:0),this.checkLValPattern(e,t?Ph:Mh),this.expect(Z.parenR),e},Hh.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===Z._catch){var t=this.startNode();this.next(),this.eat(Z.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(Z._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},Hh.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},Hh.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Uh),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},Hh.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},Hh.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},Hh.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===Z._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},Hh.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},Hh.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(Z.braceL),e&&this.enterScope(0);this.type!==Z.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},Hh.parseFor=function(e,t){return e.init=t,this.expect(Z.semi),e.test=this.type===Z.semi?null:this.parseExpression(),this.expect(Z.semi),e.update=this.type===Z.parenR?null:this.parseExpression(),this.expect(Z.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},Hh.parseForIn=function(e,t){var n=this.type===Z._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(Z.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},Hh.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(Z.eq)?i.init=this.parseMaybeAssign(t):!r&&n===`const`&&!(this.type===Z._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():!r&&(n===`using`||n===`await using`)&&this.options.ecmaVersion>=17&&this.type!==Z._in&&!this.isContextual(`of`)?this.raise(this.lastTokEnd,`Missing initializer in `+n+` declaration`):!r&&i.id.type!==`Identifier`&&(!t||this.type!==Z._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):i.init=null,e.declarations.push(this.finishNode(i,`VariableDeclarator`)),!this.eat(Z.comma))break}return e},Hh.parseVarId=function(e,t){e.id=t===`using`||t===`await using`?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?jh:Mh,!1)};var Kh=1,qh=2,Jh=4;Hh.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===Z.star&&t&qh&&this.unexpected(),e.generator=this.eat(Z.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Kh&&(e.id=t&Jh&&this.type!==Z.name?null:this.parseIdent(),e.id&&!(t&qh)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?jh:Mh:Nh));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(kh(e.async,e.generator)),t&Kh||(e.id=this.type===Z.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Kh?`FunctionDeclaration`:`FunctionExpression`)},Hh.parseFunctionParams=function(e){this.expect(Z.parenL),e.params=this.parseBindingList(Z.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Hh.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(Z.braceL);this.type!==Z.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raiseRecoverable(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&Yh(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},Hh.parseClassElement=function(e){if(this.eat(Z.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(Z.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===Z.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===Z.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(Z.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===Z.parenL||o!==`method`||i||a){var l=!n.static&&Xh(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},Hh.isClassElementNameStart=function(){return this.type===Z.name||this.type===Z.privateId||this.type===Z.num||this.type===Z.string||this.type===Z.bracketL||this.type.keyword},Hh.parseClassElementName=function(e){this.type===Z.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},Hh.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&Xh(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},Hh.parseClassField=function(e){return Xh(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&Xh(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(Z.eq)?(this.enterScope(Eh|Ch),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,`PropertyDefinition`)},Hh.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Th|Ch);this.type!==Z.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},Hh.parseClassId=function(e,t){this.type===Z.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Mh,!1)):(t===!0&&this.unexpected(),e.id=null)},Hh.parseClassSuper=function(e){e.superClass=this.eat(Z._extends)?this.parseExprSubscripts(null,!1):null},Hh.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},Hh.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];ih(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function Yh(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function Xh(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}Hh.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==Z.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`)},Hh.parseExport=function(e,t){if(this.next(),this.eat(Z.star))return this.parseExportAllDeclaration(e,t);if(this.eat(Z._default))return this.checkExport(t,`default`,this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,`ExportDefaultDeclaration`);if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==Z.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type===`Literal`&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},Hh.parseExportDeclaration=function(e){return this.parseStatement(null)},Hh.parseExportDefaultDeclaration=function(){var e;if(this.type===Z._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Kh|Jh,!1,e)}if(this.type===Z._class){var n=this.startNode();return this.parseClass(n,`nullableID`)}var r=this.parseMaybeAssign();return this.semicolon(),r},Hh.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),ih(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},Hh.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`&&this.checkPatternExport(e,t.argument)},Hh.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},Hh.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},Hh.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual(`as`)?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,`ExportSpecifier`)},Hh.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(Z.braceL);!this.eat(Z.braceR);){if(n)n=!1;else if(this.expect(Z.comma),this.afterTrailingComma(Z.braceR))break;t.push(this.parseExportSpecifier(e))}return t},Hh.parseImport=function(e){return this.next(),this.type===Z.string?(e.specifiers=Gh,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===Z.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},Hh.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual(`as`)?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Mh),this.finishNode(e,`ImportSpecifier`)},Hh.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Mh),this.finishNode(e,`ImportDefaultSpecifier`)},Hh.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual(`as`),e.local=this.parseIdent(),this.checkLValSimple(e.local,Mh),this.finishNode(e,`ImportNamespaceSpecifier`)},Hh.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===Z.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(Z.comma)))return e;if(this.type===Z.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(Z.braceL);!this.eat(Z.braceR);){if(t)t=!1;else if(this.expect(Z.comma),this.afterTrailingComma(Z.braceR))break;e.push(this.parseImportSpecifier())}return e},Hh.parseWithClause=function(){var e=[];if(!this.eat(Z._with))return e;this.expect(Z.braceL);for(var t={},n=!0;!this.eat(Z.braceR);){if(n)n=!1;else if(this.expect(Z.comma),this.afterTrailingComma(Z.braceR))break;var r=this.parseImportAttribute(),i=r.key.type===`Identifier`?r.key.name:r.key.value;ih(t,i)&&this.raiseRecoverable(r.key.start,`Duplicate attribute key '`+i+`'`),t[i]=!0,e.push(r)}return e},Hh.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===Z.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`),this.expect(Z.colon),this.type!==Z.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,`ImportAttribute`)},Hh.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===Z.string){var e=this.parseLiteral(this.value);return lh.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},Hh.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Hh.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var Zh=Ih.prototype;Zh.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},Zh.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},Zh.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},Zh.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==Z.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},Zh.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Z.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(Z.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case Z.braceL:return this.parseObj(!0)}return this.parseIdent()},Zh.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(Z.comma),t&&this.type===Z.comma)i.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===Z.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===Z.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},Zh.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},Zh.parseBindingListItem=function(e){return e},Zh.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(Z.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},Zh.checkLValSimple=function(e,t,n){t===void 0&&(t=Ah);var r=t!==Ah;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===Mh&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(ih(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==Fh&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},Zh.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=Ah),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},Zh.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=Ah),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Qh=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},$h={b_stat:new Qh(`{`,!1),b_expr:new Qh(`{`,!0),b_tmpl:new Qh("${",!1),p_stat:new Qh(`(`,!1),p_expr:new Qh(`(`,!0),q_tmpl:new Qh("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Qh(`function`,!1),f_expr:new Qh(`function`,!0),f_expr_gen:new Qh(`function`,!0,!1,null,!0),f_gen:new Qh(`function`,!1,!1,null,!0)},eg=Ih.prototype;eg.initialContext=function(){return[$h.b_stat]},eg.curContext=function(){return this.context[this.context.length-1]},eg.braceIsBlock=function(e){var t=this.curContext();return t===$h.f_expr||t===$h.f_stat?!0:e===Z.colon&&(t===$h.b_stat||t===$h.b_expr)?!t.isExpr:e===Z._return||e===Z.name&&this.exprAllowed?Ym.test(this.input.slice(this.lastTokEnd,this.start)):e===Z._else||e===Z.semi||e===Z.eof||e===Z.parenR||e===Z.arrow?!0:e===Z.braceL?t===$h.b_stat:e===Z._var||e===Z._const||e===Z.name?!1:!this.exprAllowed},eg.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},eg.updateContext=function(e){var t,n=this.type;n.keyword&&e===Z.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},eg.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},Z.parenR.updateContext=Z.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===$h.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},Z.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?$h.b_stat:$h.b_expr),this.exprAllowed=!0},Z.dollarBraceL.updateContext=function(){this.context.push($h.b_tmpl),this.exprAllowed=!0},Z.parenL.updateContext=function(e){var t=e===Z._if||e===Z._for||e===Z._with||e===Z._while;this.context.push(t?$h.p_stat:$h.p_expr),this.exprAllowed=!0},Z.incDec.updateContext=function(){},Z._function.updateContext=Z._class.updateContext=function(e){e.beforeExpr&&e!==Z._else&&(e!==Z.semi||this.curContext()===$h.p_stat)&&!(e===Z._return&&Ym.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==Z.colon&&e!==Z.braceL||this.curContext()!==$h.b_stat)?this.context.push($h.f_expr):this.context.push($h.f_stat),this.exprAllowed=!1},Z.colon.updateContext=function(){this.curContext().token===`function`&&this.context.pop(),this.exprAllowed=!0},Z.backQuote.updateContext=function(){this.curContext()===$h.q_tmpl?this.context.pop():this.context.push($h.q_tmpl),this.exprAllowed=!1},Z.star.updateContext=function(e){if(e===Z._function){var t=this.context.length-1;this.context[t]===$h.f_expr?this.context[t]=$h.f_expr_gen:this.context[t]=$h.f_gen}this.exprAllowed=!0},Z.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==Z.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var tg=Ih.prototype;tg.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},tg.parseExpression=function(e,t){var n=this;return this.catchStackOverflow(function(){var r=n.start,i=n.startLoc,a=n.parseMaybeAssign(e,t);if(n.type===Z.comma){var o=n.startNodeAt(r,i);for(o.expressions=[a];n.eat(Z.comma);)o.expressions.push(n.parseMaybeAssign(e,t));return n.finishNode(o,`SequenceExpression`)}return a})},tg.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Vh,r=!0);var s=this.start,c=this.startLoc;(this.type===Z.parenL||this.type===Z.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===Z.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=-1,t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),t.doubleProto>=l.start&&(t.doubleProto=-1)),this.type===Z.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},tg.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if((i.type!==`ArrowFunctionExpression`||i.start!==n)&&this.eat(Z.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(Z.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},tg.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},tg.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==Z._in)&&a>r){var o=this.type===Z.logicalOR||this.type===Z.logicalAND,s=this.type===Z.coalesce;s&&(a=Z.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===Z.coalesce||s&&(this.type===Z.logicalOR||this.type===Z.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},tg.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},tg.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===Z.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&ng(s.argument)?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&rg(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===Z.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==Z._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&(o.type!==`ArrowFunctionExpression`||o.start!==i)&&this.eat(Z.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function ng(e){return e.type===`Identifier`||e.type===`ParenthesizedExpression`&&ng(e.expression)}function rg(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&rg(e.expression)||e.type===`ParenthesizedExpression`&&rg(e.expression)}tg.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=-1,a=-1;e&&(i=e.doubleProto,a=e.shorthandAssign,e.doubleProto=e.shorthandAssign=-1);var o=this.parseExprAtom(e,t);if(o.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return o;var s=this.parseSubscripts(o,n,r,!1,t);return e&&(s.end>o.end&&(this.checkExpressionErrors(e,!0),e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),i>-1&&(e.doubleProto=i),a>-1&&(e.shorthandAssign=a)),s},tg.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s.end===e.end||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s,a=!1}},tg.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(Z.arrow)},tg.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},tg.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(Z.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(Z.bracketL);if(l||c&&this.type!==Z.parenL&&this.type!==Z.backQuote||this.eat(Z.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(Z.bracketR)):u.property=this.type===Z.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(Z.parenL)){var d=new Vh,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(Z.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===Z.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},tg.parseExprAtom=function(e,t,n){this.type===Z.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case Z._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),r=this.startNode(),this.next(),this.type===Z.parenL&&!this.allowDirectSuper&&this.raise(r.start,`super() call outside constructor of a subclass`),this.type!==Z.dot&&this.type!==Z.bracketL&&this.type!==Z.parenL&&this.unexpected(),this.finishNode(r,`Super`);case Z._this:return r=this.startNode(),this.next(),this.finishNode(r,`ThisExpression`);case Z.name:var a=this.start,o=this.startLoc,s=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&c.name===`async`&&!this.canInsertSemicolon()&&this.eat(Z._function))return this.overrideContext($h.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(Z.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name===`async`&&this.type===Z.name&&!s&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(Z.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case Z.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case Z.num:case Z.string:return this.parseLiteral(this.value);case Z._null:case Z._true:case Z._false:return r=this.startNode(),r.value=this.type===Z._null?null:this.type===Z._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,`Literal`);case Z.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case Z.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(Z.bracketR,!0,!0,e),this.finishNode(r,`ArrayExpression`);case Z.braceL:return this.overrideContext($h.b_expr),this.parseObj(!1,e);case Z._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case Z._class:return this.parseClass(this.startNode(),!1);case Z._new:return this.parseNew();case Z.backQuote:return this.parseTemplate();case Z._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},tg.parseExprAtomDefault=function(){this.unexpected()},tg.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`),this.next(),this.type===Z.parenL&&!e)return this.parseDynamicImport(t);if(this.type===Z.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name=`import`,t.meta=this.finishNode(n,`Identifier`),this.parseImportMeta(t)}this.unexpected()},tg.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(Z.parenR)?e.options=null:(this.expect(Z.comma),this.afterTrailingComma(Z.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(Z.parenR)||(this.expect(Z.comma),this.afterTrailingComma(Z.parenR)||this.unexpected())));else if(!this.eat(Z.parenR)){var t=this.start;this.eat(Z.comma)&&this.eat(Z.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},tg.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},tg.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value==null?t.raw.slice(0,-1).replace(/_/g,``):t.value.toString()),this.next(),this.finishNode(t,`Literal`)},tg.parseParenExpression=function(){this.expect(Z.parenL);var e=this.parseExpression();return this.expect(Z.parenR),e},tg.shouldParseArrow=function(e){return!this.canInsertSemicolon()},tg.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new Vh,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==Z.parenR;){if(l?l=!1:this.expect(Z.comma),a&&this.afterTrailingComma(Z.parenR,!0)){u=!0;break}if(this.type===Z.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===Z.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(Z.parenR),e&&this.shouldParseArrow(c)&&this.eat(Z.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},tg.parseParenItem=function(e){return e},tg.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var ig=[];tg.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===Z.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name=`new`,e.meta=this.finishNode(t,`Identifier`),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),e.callee.type===`Super`&&this.raiseRecoverable(r,`Invalid use of 'super'`),e.arguments=this.eat(Z.parenL)?this.parseExprList(Z.parenR,this.options.ecmaVersion>=8,!1):ig,this.finishNode(e,`NewExpression`)},tg.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===Z.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
263
|
+
`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
264
|
+
`),cooked:this.value},this.next(),n.tail=this.type===Z.backQuote,this.finishNode(n,`TemplateElement`)},tg.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===Z.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(Z.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(Z.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},tg.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===Z.name||this.type===Z.num||this.type===Z.string||this.type===Z.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Z.star)&&!Ym.test(this.input.slice(this.lastTokEnd,this.start))},tg.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(Z.braceR);){if(r)r=!1;else if(this.expect(Z.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Z.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},tg.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(Z.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===Z.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===Z.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(Z.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(Z.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},tg.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind===`get`?0:1;if(e.value.params.length!==n){var r=e.value.start;e.kind===`get`?this.raiseRecoverable(r,`getter should have no params`):this.raiseRecoverable(r,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)},tg.parsePropertyValue=function(e,t,n,r,i,a,o,s){(n||r)&&this.type===Z.colon&&this.unexpected(),this.eat(Z.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`):this.options.ecmaVersion>=6&&this.type===Z.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind=`init`):!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==Z.comma&&this.type!==Z.braceR&&this.type!==Z.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===Z.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind=`init`,e.shorthand=!0):this.unexpected()},tg.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(Z.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(Z.bracketR),e.key;e.computed=!1}return e.key=this.type===Z.num||this.type===Z.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},tg.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},tg.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(kh(t,r.generator)|Ch|(n?wh:0)),this.expect(Z.parenL),r.params=this.parseBindingList(Z.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},tg.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(kh(n,!1)|xh),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},tg.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==Z.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Fh),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},tg.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},tg.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,jh,t?null:n)}},tg.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(Z.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===Z.comma?o=null:this.type===Z.ellipsis?(o=this.parseSpread(r),r&&this.type===Z.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},tg.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),!(this.currentThisScope().flags&Oh)&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},tg.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},tg.parseIdentNode=function(){var e=this.startNode();return this.type===Z.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,e.name!==`class`&&e.name!==`function`||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop(),this.type=Z.name):this.unexpected(),e},tg.parsePrivateIdent=function(){var e=this.startNode();return this.type===Z.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},tg.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===Z.semi||this.canInsertSemicolon()||this.type!==Z.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(Z.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},tg.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var ag=Ih.prototype;ag.raise=function(e,t){var n=fh(this.input,e);t+=` (`+n.line+`:`+n.column+`)`,this.sourceFile&&(t+=` in `+this.sourceFile);var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},ag.raiseRecoverable=ag.raise,ag.curPosition=function(){if(this.options.locations)return new uh(this.curLine,this.pos-this.lineStart)};var og=Ih.prototype,sg=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};og.enterScope=function(e){this.scopeStack.push(new sg(e))},og.exitScope=function(){this.scopeStack.pop()},og.treatFunctionsAsVarInScope=function(e){return e.flags&vh||!this.inModule&&e.flags&_h},og.declareName=function(e,t,n){var r=!1;if(t===Mh){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&_h&&delete this.undefinedExports[e]}else if(t===Ph)this.currentScope().lexical.push(e);else if(t===Nh){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&Sh&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&_h&&delete this.undefinedExports[e],s.flags&Oh)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},og.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},og.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},og.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Oh|Eh|Th))return t}},og.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Oh|Eh|Th)&&!(t.flags&xh))return t}};var cg=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new dh(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},lg=Ih.prototype;lg.startNode=function(){return new cg(this,this.start,this.startLoc)},lg.startNodeAt=function(e,t){return new cg(this,e,t)};function ug(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}lg.finishNode=function(e,t){return ug.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},lg.finishNodeAt=function(e,t,n,r){return ug.call(this,e,t,n,r)},lg.copyNode=function(e){var t=new cg(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var dg=`Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz`,fg=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,pg=fg+` Extended_Pictographic`,mg=pg,hg=mg+` EBase EComp EMod EPres ExtPict`,gg=hg,_g={9:fg,10:pg,11:mg,12:hg,13:gg,14:gg},vg={9:``,10:``,11:``,12:``,13:``,14:`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji`},yg=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,bg=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,xg=bg+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,Sg=xg+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,Cg=Sg+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,wg=Cg+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,Tg={9:bg,10:xg,11:Sg,12:Cg,13:wg,14:wg+` `+dg},Eg={};function Dg(e){var t=Eg[e]={binary:sh(_g[e]+` `+yg),binaryOfStrings:sh(vg[e]),nonBinary:{General_Category:sh(yg),Script:sh(Tg[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Og=0,kg=[9,10,11,12,13,14];Og<kg.length;Og+=1){var Ag=kg[Og];Dg(Ag)}var jg=Ih.prototype,Mg=function(e,t){this.parent=e,this.base=t||this};Mg.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},Mg.prototype.sibling=function(){return new Mg(this.parent,this.base)};var Ng=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``)+(e.options.ecmaVersion>=15?`v`:``),this.unicodeProperties=Eg[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Ng.prototype.reset=function(e,t,n){var r=n.indexOf(`v`)!==-1,i=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},Ng.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Ng.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Ng.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Ng.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Ng.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ng.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ng.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Ng.prototype.eatChars=function(e,t){t===void 0&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var a=i[r],o=this.at(n,t);if(o===-1||o!==a)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},jg.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,a=0;a<n.length;a++){var o=n.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(o,a+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`),o===`u`&&(r=!0),o===`v`&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,`Invalid regular expression flag`)};function Pg(e){for(var t in e)return!0;return!1}jg.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Pg(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},jg.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise(`Invalid named capture referenced`)}},jg.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Mg(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},jg.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},jg.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},jg.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},jg.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},jg.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},jg.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},jg.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},jg.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},jg.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var a=n.charAt(i);n.indexOf(a,i+1)>-1&&e.raise(`Duplicate regular expression modifiers`)}if(r){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise(`Invalid regular expression modifiers`);for(var s=0;s<o.length;s++){var c=o.charAt(s);(o.indexOf(c,s+1)>-1||n.indexOf(c)>-1)&&e.raise(`Duplicate regular expression modifiers`)}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}}e.pos=t}return!1},jg.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},jg.regexp_eatModifiers=function(e){for(var t=``,n=0;(n=e.current())!==-1&&Fg(n);)t+=ch(n),e.advance();return t};function Fg(e){return e===105||e===109||e===115}jg.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},jg.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},jg.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Ig(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Ig(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}jg.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Ig(n);)e.advance();return e.pos!==t},jg.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},jg.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise(`Invalid group`);var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n){if(t)for(var r=0,i=n;r<i.length;r+=1)i[r].separatedFrom(e.branchID)||e.raise(`Duplicate capture group name`);else e.raise(`Duplicate capture group name`)}t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},jg.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},jg.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ch(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ch(e.lastIntValue);return!0}return!1},jg.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Lg(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Lg(e){return Vm(e,!0)||e===36||e===95}jg.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Rg(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Rg(e){return Hm(e,!0)||e===36||e===95||e===8204||e===8205}jg.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},jg.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},jg.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},jg.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},jg.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},jg.regexp_eatZero=function(e){return e.current()===48&&!Xg(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},jg.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},jg.regexp_eatControlLetter=function(e){var t=e.current();return zg(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function zg(e){return e>=65&&e<=90||e>=97&&e<=122}jg.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Bg(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function Bg(e){return e>=0&&e<=1114111}jg.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},jg.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Vg=0,Hg=1,Ug=2;jg.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Wg(t))return e.lastIntValue=-1,e.advance(),Hg;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===Ug&&e.raise(`Invalid property name`),r;e.raise(`Invalid property name`)}return Vg};function Wg(e){return e===100||e===68||e===115||e===83||e===119||e===87}jg.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),Hg}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return Vg},jg.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){ih(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},jg.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Hg;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Ug;e.raise(`Invalid property name`)},jg.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;Gg(t=e.current());)e.lastStringValue+=ch(t),e.advance();return e.lastStringValue!==``};function Gg(e){return zg(e)||e===95}jg.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;Kg(t=e.current());)e.lastStringValue+=ch(t),e.advance();return e.lastStringValue!==``};function Kg(e){return Gg(e)||Xg(e)}jg.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},jg.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise(`Unterminated character class`),t&&n===Ug&&e.raise(`Negated character class may contain strings`),!0}return!1},jg.regexp_classContents=function(e){return e.current()===93?Hg:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Hg)},jg.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},jg.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||$g(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},jg.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},jg.regexp_classSetExpression=function(e){var t=Hg,n;if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e)){n===Ug&&(t=Ug);for(var r=e.pos;e.eatChars([38,38]);)e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))?n!==Ug&&(t=Hg):e.raise(`Invalid character in character class`);if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise(`Invalid character in character class`);if(r!==e.pos)return t}else e.raise(`Invalid character in character class`)}for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===Ug&&(t=Ug)}},jg.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return n!==-1&&r!==-1&&n>r&&e.raise(`Range out of order in character class`),!0}e.pos=t}return!1},jg.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Hg:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},jg.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===Ug&&e.raise(`Negated character class may contain strings`),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},jg.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise(`Invalid escape`);e.pos=t}return null},jg.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Ug&&(t=Ug);return t},jg.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Hg:Ug},jg.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&qg(n)||Jg(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function qg(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Jg(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}jg.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Yg(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Yg(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}jg.regexp_eatClassControlLetter=function(e){var t=e.current();return Xg(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},jg.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},jg.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Xg(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Xg(e){return e>=48&&e<=57}jg.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Zg(n=e.current());)e.lastIntValue=16*e.lastIntValue+Qg(n),e.advance();return e.pos!==t};function Zg(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Qg(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}jg.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},jg.regexp_eatOctalDigit=function(e){var t=e.current();return $g(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function $g(e){return e>=48&&e<=55}jg.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Zg(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Qg(i),e.advance()}return!0};var e_=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new dh(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},t_=Ih.prototype;t_.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new e_(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},t_.getToken=function(){return this.next(),new e_(this)},typeof Symbol<`u`&&(t_[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===Z.eof,value:t}}}}),t_.nextToken=function(){var e=this.curContext();if(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(Z.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},t_.readToken=function(e){return Vm(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},t_.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888},t_.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},t_.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=Qm(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},t_.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Zm(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},t_.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&$m.test(String.fromCharCode(e)))++this.pos;else break loop}}},t_.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},t_.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(Z.ellipsis)):(++this.pos,this.finishToken(Z.dot))},t_.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(Z.assign,2):this.finishOp(Z.slash,1)},t_.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?Z.star:Z.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=Z.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(Z.assign,n+1):this.finishOp(r,n)},t_.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(Z.assign,3):this.finishOp(e===124?Z.logicalOR:Z.logicalAND,2):t===61?this.finishOp(Z.assign,2):this.finishOp(e===124?Z.bitwiseOR:Z.bitwiseAND,1)},t_.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(Z.assign,2):this.finishOp(Z.bitwiseXOR,1)},t_.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Ym.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(Z.incDec,2):t===61?this.finishOp(Z.assign,2):this.finishOp(Z.plusMin,1)},t_.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(Z.assign,n+1):this.finishOp(Z.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(Z.relational,n))},t_.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(Z.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Z.arrow)):this.finishOp(e===61?Z.eq:Z.prefix,1)},t_.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(Z.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(Z.assign,3):this.finishOp(Z.coalesce,2)}return this.finishOp(Z.question,1)},t_.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Vm(t,!0)||t===92))return this.finishToken(Z.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+ch(t)+`'`)},t_.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Z.parenL);case 41:return++this.pos,this.finishToken(Z.parenR);case 59:return++this.pos,this.finishToken(Z.semi);case 44:return++this.pos,this.finishToken(Z.comma);case 91:return++this.pos,this.finishToken(Z.bracketL);case 93:return++this.pos,this.finishToken(Z.bracketR);case 123:return++this.pos,this.finishToken(Z.braceL);case 125:return++this.pos,this.finishToken(Z.braceR);case 58:return++this.pos,this.finishToken(Z.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Z.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(Z.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+ch(e)+`'`)},t_.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},t_.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(Ym.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Ng(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(Z.regexp,{pattern:i,flags:o,value:c})},t_.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function n_(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function r_(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}t_.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=r_(this.input.slice(t,this.pos)),++this.pos):Vm(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(Z.num,n)},t_.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=r_(this.input.slice(t,this.pos));return++this.pos,Vm(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(Z.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),r!==69&&r!==101||n||(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),Vm(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=n_(this.input.slice(t,this.pos),n);return this.finishToken(Z.num,a)},t_.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},t_.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Zm(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(Z.string,t)};var i_={};t_.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===i_)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},t_.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw i_;this.raise(e,t)},t_.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===Z.template||this.type===Z.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(Z.dollarBraceL)):(++this.pos,this.finishToken(Z.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(Z.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Zm(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
265
|
+
`;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},t_.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(Z.invalidTemplate,this.input.slice(this.start,this.pos));case`\r`:this.input[this.pos+1]===`
|
|
266
|
+
`&&++this.pos;case`
|
|
267
|
+
`:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,`Unterminated template`)},t_.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
268
|
+
`;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ch(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return Zm(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},t_.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},t_.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Hm(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?Vm:Hm)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=ch(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},t_.readWord=function(){var e=this.readWord1(),t=Z.name;return this.keywords.test(e)&&(t=qm[e]),this.finishToken(t,e)},Ih.acorn={Parser:Ih,version:`8.19.0`,defaultOptions:ph,Position:uh,SourceLocation:dh,getLineInfo:fh,Node:cg,TokenType:Um,tokTypes:Z,keywordTypes:qm,TokContext:Qh,tokContexts:$h,isIdentifierChar:Hm,isIdentifierStart:Vm,Token:e_,isNewLine:Zm,lineBreak:Ym,lineBreakG:Xm,nonASCIIwhitespace:$m};var a_=n(((e,t)=>{t.exports={quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`}})),o_=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.acorn={}))})(n,(function(e){var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,31,4,33,15,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,7,0,259,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,481,1,61,4,4,5,9,7,3,6,31,3,149,2,12,2,9,1,3,0,33,1,1357,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],n=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,13,65,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,18,21,18,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,18,0,182,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,22,0,239,18,16,0,2,12,2,33,125,0,80,921,103,111,6,206,13,310,2314,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7386,37,33,96,114,14,913,15,50,7710,3,2,6,2,1,2,296,10,0,30,2,3,0,15,4,8,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,340,2,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,129,15,6,55,50,49,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4382,2,5773,3,7472,16,621,2467,541,1507,4938,6,8489,39815,11327],r=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄ-ؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,i=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿ-ℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,a={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},o=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,s={5:o,"5module":o+` export import`,6:o+` const class extends export import super`},c=/^in(stanceof)?$/,l=RegExp(`[`+i+`]`),u=RegExp(`[`+i+r+`]`);function d(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function f(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&l.test(String.fromCharCode(e)):t!==!1&&d(e,n)}function p(e,r){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&u.test(String.fromCharCode(e)):r===!1?!1:d(e,n)||d(e,t)}var m=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function h(e,t){return new m(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},_={startsExpr:!0},v={};function y(e,t){return t===void 0&&(t={}),t.keyword=e,v[e]=new m(e,t)}var b={num:new m(`num`,_),regexp:new m(`regexp`,_),string:new m(`string`,_),name:new m(`name`,_),privateId:new m(`privateId`,_),eof:new m(`eof`),bracketL:new m(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new m(`]`),braceL:new m(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new m(`}`),parenL:new m(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new m(`)`),comma:new m(`,`,g),semi:new m(`;`,g),colon:new m(`:`,g),dot:new m(`.`),question:new m(`?`,g),questionDot:new m(`?.`),arrow:new m(`=>`,g),template:new m(`template`),invalidTemplate:new m(`invalidTemplate`),ellipsis:new m(`...`,g),backQuote:new m("`",_),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m(`=`,{beforeExpr:!0,isAssign:!0}),assign:new m(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new m(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:h(`||`,1),logicalAND:h(`&&`,2),bitwiseOR:h(`|`,3),bitwiseXOR:h(`^`,4),bitwiseAND:h(`&`,5),equality:h(`==/!=/===/!==`,6),relational:h(`</>/<=/>=`,7),bitShift:h(`<</>>/>>>`,8),plusMin:new m(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:h(`%`,10),star:h(`*`,10),slash:h(`/`,10),starstar:new m(`**`,{beforeExpr:!0}),coalesce:h(`??`,1),_break:y(`break`),_case:y(`case`,g),_catch:y(`catch`),_continue:y(`continue`),_debugger:y(`debugger`),_default:y(`default`,g),_do:y(`do`,{isLoop:!0,beforeExpr:!0}),_else:y(`else`,g),_finally:y(`finally`),_for:y(`for`,{isLoop:!0}),_function:y(`function`,_),_if:y(`if`),_return:y(`return`,g),_switch:y(`switch`),_throw:y(`throw`,g),_try:y(`try`),_var:y(`var`),_const:y(`const`),_while:y(`while`,{isLoop:!0}),_with:y(`with`),_new:y(`new`,{beforeExpr:!0,startsExpr:!0}),_this:y(`this`,_),_super:y(`super`,_),_class:y(`class`,_),_extends:y(`extends`,g),_export:y(`export`),_import:y(`import`,_),_null:y(`null`,_),_true:y(`true`,_),_false:y(`false`,_),_in:y(`in`,{beforeExpr:!0,binop:7}),_instanceof:y(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:y(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(x.source,`g`);function C(e){return e===10||e===13||e===8232||e===8233}function w(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(C(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var T=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,E=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,O=D.hasOwnProperty,k=D.toString,A=Object.hasOwn||(function(e,t){return O.call(e,t)}),j=Array.isArray||(function(e){return k.call(e)===`[object Array]`}),M=Object.create(null);function N(e){return M[e]||(M[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function P(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var F=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,I=function(e,t){this.line=e,this.column=t};I.prototype.offset=function(e){return new I(this.line,this.column+e)};var L=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function ee(e,t){for(var n=1,r=0;;){var i=w(e,r,t);if(i<0)return new I(n,t-r);++n,r=i}}var te={ecmaVersion:null,sourceType:`script`,strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ne=!1;function re(e){var t={};for(var n in te)t[n]=e&&A(e,n)?e[n]:te[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!ne&&typeof console==`object`&&console.warn&&(ne=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
269
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,e&&e.allowHashBang!=null||(t.allowHashBang=t.ecmaVersion>=14),j(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}if(j(t.onComment)&&(t.onComment=ie(t,t.onComment)),t.sourceType===`commonjs`&&t.allowAwaitOutsideFunction)throw Error(`Cannot use allowAwaitOutsideFunction with sourceType: commonjs`);return t}function ie(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new L(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var ae=1,oe=2,se=4,ce=8,le=16,ue=32,de=64,fe=128,pe=256,me=512,he=1024,ge=ae|oe|pe;function _e(e,t){return oe|(e?se:0)|(t?ce:0)}var ve=0,ye=1,be=2,xe=3,Se=4,Ce=5,we=function(e,t,n){this.options=e=re(e),this.sourceFile=e.sourceFile,this.keywords=N(s[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=a[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=N(r);var i=(r?r+` `:``)+a.strict;this.reservedWordsStrict=N(i),this.reservedWordsStrictBind=N(i+` `+a.strictBind),this.input=String(t),this.containsEsc=!1,this.pos=n||0,this.curLine=1,e.startLocation?(this.lineStart=this.pos-e.startLocation.column,this.curLine=e.startLocation.line):n?(this.lineStart=this.input.lastIndexOf(`
|
|
270
|
+
`,n-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(x).length)):this.lineStart=0,this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||e.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType===`commonjs`?oe:ae),this.regexpState=null,this.privateNameStack=[]},Te={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};we.prototype.parse=function(){var e=this,t=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return e.parseTopLevel(t)})},Te.inFunction.get=function(){return(this.currentVarScope().flags&oe)>0},Te.inGenerator.get=function(){return(this.currentVarScope().flags&ce)>0},Te.inAsync.get=function(){return(this.currentVarScope().flags&se)>0},Te.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(pe|me))return!1;if(t&oe)return(t&se)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Te.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&ae)},Te.allowSuper.get=function(){return(this.currentThisScope().flags&de)>0||this.options.allowSuperOutsideMethod},Te.allowDirectSuper.get=function(){return(this.currentThisScope().flags&fe)>0},Te.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Te.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(pe|me)||t&oe&&!(t&le))return!0}return!1},Te.allowUsing.get=function(){var e=this.currentScope().flags;return!(e&he||!this.inModule&&e&ae)},Te.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&pe)>0},we.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},we.parse=function(e,t){return new this(t,e).parse()},we.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},we.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(we.prototype,Te);var Ee=we.prototype,De=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ee.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){E.lastIndex=e,e+=E.exec(this.input)[0].length;var t=De.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){E.lastIndex=e+t[0].length;var n=E.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`||i===`i`&&Oe(this,r))}e+=t[0].length,E.lastIndex=e,e+=E.exec(this.input)[0].length,this.input[e]===`;`&&e++}};function Oe(e,t){for(var n=t+1,r=Math.min(e.input.length,t+11);n<r;){var i=e.fullCharCodeAt(n);if(!p(i,!0))break;n+=i<=65535?1:2}return n===t+2&&e.input.slice(t,n)===`in`||n===t+10&&e.input.slice(t,n)===`instanceof`}Ee.eat=function(e){return this.type===e&&(this.next(),!0)},Ee.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},Ee.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},Ee.catchStackOverflow=function(e){try{return e()}catch(e){if(e instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(e.message)||/\btoo much recursion\b/i.test(e.message)))this.raise(this.start,`Not enough stack space to parse input`);else throw e}},Ee.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Ee.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},Ee.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ee.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()},Ee.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Ee.expect=function(e){this.eat(e)||this.unexpected()},Ee.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var ke=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ee.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},Ee.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},Ee.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},Ee.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var Ae=we.prototype;Ae.parseTopLevel=function(e){var t=Object.create(null);for(e.body||=[];this.type!==b.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType===`commonjs`?`script`:this.options.sourceType,this.finishNode(e,`Program`)};var je={kind:`loop`},Me={kind:`switch`};Ae.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;E.lastIndex=this.pos;var t=E.exec(this.input),n=this.pos+t[0].length,r=this.fullCharCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123)return!0;if(f(r)){var i=n;do n+=r<=65535?1:2;while(p(r=this.fullCharCodeAt(n)));if(r===92)return!0;var a=this.input.slice(i,n);if(!c.test(a))return!0}return!1},Ae.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;E.lastIndex=this.pos;var e=E.exec(this.input),t=this.pos+e[0].length,n;return!x.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(p(n=this.fullCharCodeAt(t+8))||n===92))},Ae.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?`await`:`using`))return!1;E.lastIndex=this.pos;var n=E.exec(this.input),r=this.pos+n[0].length;if(x.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,a;if(this.input.slice(r,i)!==`using`||i===this.input.length||p(a=this.fullCharCodeAt(i))||a===92)return!1;E.lastIndex=i;var o=E.exec(this.input);if(r=i+o[0].length,o&&x.test(this.input.slice(i,r)))return!1}var s=this.fullCharCodeAt(r);if(!f(s)&&s!==92)return!1;var l=r;do r+=s<=65535?1:2;while(p(s=this.fullCharCodeAt(r)));if(s===92)return!0;var u=this.input.slice(l,r);if(c.test(u))return!1;if(t&&!e&&u===`of`){E.lastIndex=r;var d=E.exec(this.input);if(r+=d[0].length,this.input.charCodeAt(r)!==61||(s=this.input.charCodeAt(r+1))===61||s===62)return!1}return!0},Ae.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},Ae.isUsing=function(e){return this.isUsingKeyword(!1,e)},Ae.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=b._var,a=`let`),r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._const:case b._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock(!0,i);case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){E.lastIndex=this.pos;var o=E.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===b._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.isAwaitUsing(!1)?`await using`:this.isUsing(!1)?`using`:null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),e&&this.raise(this.start,`Using declaration is not allowed in single-statement positions`),l===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.next(),this.parseVar(i,!1,l),this.semicolon(),this.finishNode(i,`VariableDeclaration`);var u=this.value,d=this.parseExpression();return r===b.name&&d.type===`Identifier`&&this.eat(b.colon)?this.parseLabeledStatement(i,u,d,e):this.parseExpressionStatement(i,d)}},Ae.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type===b.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},Ae.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},Ae.parseDoStatement=function(e){return this.next(),this.labels.push(je),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},Ae.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(je),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),this.parseForAfterInit(e,r,t)}var a=this.isContextual(`let`),o=!1,s=this.isUsing(!0)?`using`:this.isAwaitUsing(!0)?`await using`:null;if(s){var c=this.startNode();return this.next(),s===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new ke,d=this.start,f=t>-1?this.parseExprSubscripts(u,`await`):this.parseExpression(!0,u);return this.type===b._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(t>-1?(this.type===b._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===d&&!l&&f.type===`Identifier`&&f.name===`async`?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&o&&this.raise(f.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(f,!1,u),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))},Ae.parseForAfterInit=function(e,t,n){return(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&t.declarations.length===1?(this.type===b._in?(t.kind!==`using`&&t.kind!==`await using`||t.declarations[0].init||this.raise(this.start,`Using declaration is not allowed in for-in loops`),this.options.ecmaVersion>=9&&n>-1&&this.unexpected(n)):this.options.ecmaVersion>=9&&(e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},Ae.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Pe|(n?0:Fe),!1,t)},Ae.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(b._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},Ae.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,`'return' outside of function`),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},Ae.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(Me),this.enterScope(he);for(var t,n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},Ae.parseThrowStatement=function(e){return this.next(),x.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var Ne=[];Ae.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?ue:0),this.checkLValPattern(e,t?Se:be),this.expect(b.parenR),e},Ae.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();this.next(),this.eat(b.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},Ae.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},Ae.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(je),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},Ae.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},Ae.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},Ae.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===b._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},Ae.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},Ae.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},Ae.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},Ae.parseForIn=function(e,t){var n=this.type===b._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},Ae.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(b.eq)?i.init=this.parseMaybeAssign(t):!r&&n===`const`&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():!r&&(n===`using`||n===`await using`)&&this.options.ecmaVersion>=17&&this.type!==b._in&&!this.isContextual(`of`)?this.raise(this.lastTokEnd,`Missing initializer in `+n+` declaration`):!r&&i.id.type!==`Identifier`&&(!t||this.type!==b._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):i.init=null,e.declarations.push(this.finishNode(i,`VariableDeclarator`)),!this.eat(b.comma))break}return e},Ae.parseVarId=function(e,t){e.id=t===`using`||t===`await using`?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?ye:be,!1)};var Pe=1,Fe=2,Ie=4;Ae.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&Fe&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Pe&&(e.id=t&Ie&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&Fe)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?ye:be:xe));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_e(e.async,e.generator)),t&Pe||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Pe?`FunctionDeclaration`:`FunctionExpression`)},Ae.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ae.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(b.braceL);this.type!==b.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raiseRecoverable(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&Le(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},Ae.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===b.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===b.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(b.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===b.parenL||o!==`method`||i||a){var l=!n.static&&Re(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},Ae.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},Ae.parseClassElementName=function(e){this.type===b.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},Ae.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&Re(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},Ae.parseClassField=function(e){return Re(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&Re(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(b.eq)?(this.enterScope(me|de),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,`PropertyDefinition`)},Ae.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(pe|de);this.type!==b.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},Ae.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,be,!1)):(t===!0&&this.unexpected(),e.id=null)},Ae.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},Ae.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},Ae.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];A(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function Le(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function Re(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}Ae.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`)},Ae.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.parseExportAllDeclaration(e,t);if(this.eat(b._default))return this.checkExport(t,`default`,this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,`ExportDefaultDeclaration`);if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type===`Literal`&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},Ae.parseExportDeclaration=function(e){return this.parseStatement(null)},Ae.parseExportDefaultDeclaration=function(){var e;if(this.type===b._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Pe|Ie,!1,e)}if(this.type===b._class){var n=this.startNode();return this.parseClass(n,`nullableID`)}var r=this.parseMaybeAssign();return this.semicolon(),r},Ae.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),A(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},Ae.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`&&this.checkPatternExport(e,t.argument)},Ae.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},Ae.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},Ae.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual(`as`)?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,`ExportSpecifier`)},Ae.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;t.push(this.parseExportSpecifier(e))}return t},Ae.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=Ne,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},Ae.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual(`as`)?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,be),this.finishNode(e,`ImportSpecifier`)},Ae.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,be),this.finishNode(e,`ImportDefaultSpecifier`)},Ae.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual(`as`),e.local=this.parseIdent(),this.checkLValSimple(e.local,be),this.finishNode(e,`ImportNamespaceSpecifier`)},Ae.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(b.comma)))return e;if(this.type===b.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;e.push(this.parseImportSpecifier())}return e},Ae.parseWithClause=function(){var e=[];if(!this.eat(b._with))return e;this.expect(b.braceL);for(var t={},n=!0;!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.parseImportAttribute(),i=r.key.type===`Identifier`?r.key.name:r.key.value;A(t,i)&&this.raiseRecoverable(r.key.start,`Duplicate attribute key '`+i+`'`),t[i]=!0,e.push(r)}return e},Ae.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`),this.expect(b.colon),this.type!==b.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,`ImportAttribute`)},Ae.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return F.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},Ae.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Ae.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var ze=we.prototype;ze.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},ze.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},ze.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},ze.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},ze.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case b.braceL:return this.parseObj(!0)}return this.parseIdent()},ze.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(b.comma),t&&this.type===b.comma)i.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===b.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===b.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},ze.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},ze.parseBindingListItem=function(e){return e},ze.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},ze.checkLValSimple=function(e,t,n){t===void 0&&(t=ve);var r=t!==ve;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===be&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(A(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==Ce&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},ze.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=ve),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},ze.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=ve),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Be=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},Ve={b_stat:new Be(`{`,!1),b_expr:new Be(`{`,!0),b_tmpl:new Be("${",!1),p_stat:new Be(`(`,!1),p_expr:new Be(`(`,!0),q_tmpl:new Be("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Be(`function`,!1),f_expr:new Be(`function`,!0),f_expr_gen:new Be(`function`,!0,!1,null,!0),f_gen:new Be(`function`,!1,!1,null,!0)},He=we.prototype;He.initialContext=function(){return[Ve.b_stat]},He.curContext=function(){return this.context[this.context.length-1]},He.braceIsBlock=function(e){var t=this.curContext();return t===Ve.f_expr||t===Ve.f_stat?!0:e===b.colon&&(t===Ve.b_stat||t===Ve.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===Ve.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},He.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},He.updateContext=function(e){var t,n=this.type;n.keyword&&e===b.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},He.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===Ve.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Ve.b_stat:Ve.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(Ve.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?Ve.p_stat:Ve.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b._else&&(e!==b.semi||this.curContext()===Ve.p_stat)&&!(e===b._return&&x.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==b.colon&&e!==b.braceL||this.curContext()!==Ve.b_stat)?this.context.push(Ve.f_expr):this.context.push(Ve.f_stat),this.exprAllowed=!1},b.colon.updateContext=function(){this.curContext().token===`function`&&this.context.pop(),this.exprAllowed=!0},b.backQuote.updateContext=function(){this.curContext()===Ve.q_tmpl?this.context.pop():this.context.push(Ve.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===Ve.f_expr?this.context[t]=Ve.f_expr_gen:this.context[t]=Ve.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Ue=we.prototype;Ue.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},Ue.parseExpression=function(e,t){var n=this;return this.catchStackOverflow(function(){var r=n.start,i=n.startLoc,a=n.parseMaybeAssign(e,t);if(n.type===b.comma){var o=n.startNodeAt(r,i);for(o.expressions=[a];n.eat(b.comma);)o.expressions.push(n.parseMaybeAssign(e,t));return n.finishNode(o,`SequenceExpression`)}return a})},Ue.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ke,r=!0);var s=this.start,c=this.startLoc;(this.type===b.parenL||this.type===b.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===b.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=-1,t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),t.doubleProto>=l.start&&(t.doubleProto=-1)),this.type===b.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},Ue.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if((i.type!==`ArrowFunctionExpression`||i.start!==n)&&this.eat(b.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},Ue.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},Ue.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==b._in)&&a>r){var o=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(a=b.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},Ue.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},Ue.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===b.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&We(s.argument)?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&Ge(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===b.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&(o.type!==`ArrowFunctionExpression`||o.start!==i)&&this.eat(b.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function We(e){return e.type===`Identifier`||e.type===`ParenthesizedExpression`&&We(e.expression)}function Ge(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&Ge(e.expression)||e.type===`ParenthesizedExpression`&&Ge(e.expression)}Ue.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=-1,a=-1;e&&(i=e.doubleProto,a=e.shorthandAssign,e.doubleProto=e.shorthandAssign=-1);var o=this.parseExprAtom(e,t);if(o.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return o;var s=this.parseSubscripts(o,n,r,!1,t);return e&&(s.end>o.end&&(this.checkExpressionErrors(e,!0),e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),i>-1&&(e.doubleProto=i),a>-1&&(e.shorthandAssign=a)),s},Ue.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s.end===e.end||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s,a=!1}},Ue.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(b.arrow)},Ue.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},Ue.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(b.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(b.bracketL);if(l||c&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(b.bracketR)):u.property=this.type===b.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(b.parenL)){var d=new ke,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===b.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},Ue.parseExprAtom=function(e,t,n){this.type===b.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),r=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(r.start,`super() call outside constructor of a subclass`),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(r,`Super`);case b._this:return r=this.startNode(),this.next(),this.finishNode(r,`ThisExpression`);case b.name:var a=this.start,o=this.startLoc,s=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&c.name===`async`&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(Ve.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name===`async`&&this.type===b.name&&!s&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case b.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return r=this.startNode(),r.value=this.type===b._null?null:this.type===b._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,`Literal`);case b.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case b.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(r,`ArrayExpression`);case b.braceL:return this.overrideContext(Ve.b_expr),this.parseObj(!1,e);case b._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},Ue.parseExprAtomDefault=function(){this.unexpected()},Ue.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`),this.next(),this.type===b.parenL&&!e)return this.parseDynamicImport(t);if(this.type===b.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name=`import`,t.meta=this.finishNode(n,`Identifier`),this.parseImportMeta(t)}this.unexpected()},Ue.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(b.parenR)?e.options=null:(this.expect(b.comma),this.afterTrailingComma(b.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(b.parenR)||(this.expect(b.comma),this.afterTrailingComma(b.parenR)||this.unexpected())));else if(!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},Ue.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},Ue.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value==null?t.raw.slice(0,-1).replace(/_/g,``):t.value.toString()),this.next(),this.finishNode(t,`Literal`)},Ue.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},Ue.shouldParseArrow=function(e){return!this.canInsertSemicolon()},Ue.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new ke,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(l?l=!1:this.expect(b.comma),a&&this.afterTrailingComma(b.parenR,!0)){u=!0;break}if(this.type===b.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),e&&this.shouldParseArrow(c)&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},Ue.parseParenItem=function(e){return e},Ue.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Ke=[];Ue.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===b.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name=`new`,e.meta=this.finishNode(t,`Identifier`),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),e.callee.type===`Super`&&this.raiseRecoverable(r,`Invalid use of 'super'`),e.arguments=this.eat(b.parenL)?this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):Ke,this.finishNode(e,`NewExpression`)},Ue.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
271
|
+
`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
272
|
+
`),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},Ue.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},Ue.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},Ue.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},Ue.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},Ue.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind===`get`?0:1;if(e.value.params.length!==n){var r=e.value.start;e.kind===`get`?this.raiseRecoverable(r,`getter should have no params`):this.raiseRecoverable(r,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)},Ue.parsePropertyValue=function(e,t,n,r,i,a,o,s){(n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`):this.options.ecmaVersion>=6&&this.type===b.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind=`init`):!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind=`init`,e.shorthand=!0):this.unexpected()},Ue.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},Ue.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Ue.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_e(t,r.generator)|de|(n?fe:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},Ue.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(_e(n,!1)|le),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},Ue.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==b.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Ce),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},Ue.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},Ue.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,ye,t?null:n)}},Ue.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},Ue.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),!(this.currentThisScope().flags&ge)&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},Ue.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},Ue.parseIdentNode=function(){var e=this.startNode();return this.type===b.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,e.name!==`class`&&e.name!==`function`||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop(),this.type=b.name):this.unexpected(),e},Ue.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},Ue.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},Ue.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var qe=we.prototype;qe.raise=function(e,t){var n=ee(this.input,e);t+=` (`+n.line+`:`+n.column+`)`,this.sourceFile&&(t+=` in `+this.sourceFile);var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},qe.raiseRecoverable=qe.raise,qe.curPosition=function(){if(this.options.locations)return new I(this.curLine,this.pos-this.lineStart)};var Je=we.prototype,Ye=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};Je.enterScope=function(e){this.scopeStack.push(new Ye(e))},Je.exitScope=function(){this.scopeStack.pop()},Je.treatFunctionsAsVarInScope=function(e){return e.flags&oe||!this.inModule&&e.flags&ae},Je.declareName=function(e,t,n){var r=!1;if(t===be){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&ae&&delete this.undefinedExports[e]}else if(t===Se)this.currentScope().lexical.push(e);else if(t===xe){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&ue&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&ae&&delete this.undefinedExports[e],s.flags&ge)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},Je.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Je.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Je.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ge|me|pe))return t}},Je.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ge|me|pe)&&!(t.flags&le))return t}};var Xe=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new L(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Ze=we.prototype;Ze.startNode=function(){return new Xe(this,this.start,this.startLoc)},Ze.startNodeAt=function(e,t){return new Xe(this,e,t)};function Qe(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Ze.finishNode=function(e,t){return Qe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Ze.finishNodeAt=function(e,t,n,r){return Qe.call(this,e,t,n,r)},Ze.copyNode=function(e){var t=new Xe(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var $e=`Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz`,et=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,tt=et+` Extended_Pictographic`,nt=tt,rt=nt+` EBase EComp EMod EPres ExtPict`,it=rt,at={9:et,10:tt,11:nt,12:rt,13:it,14:it},ot={9:``,10:``,11:``,12:``,13:``,14:`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji`},st=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,ct=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,lt=ct+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,ut=lt+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,dt=ut+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,ft=dt+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,pt={9:ct,10:lt,11:ut,12:dt,13:ft,14:ft+` `+$e},mt={};function ht(e){var t=mt[e]={binary:N(at[e]+` `+st),binaryOfStrings:N(ot[e]),nonBinary:{General_Category:N(st),Script:N(pt[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var gt=0,_t=[9,10,11,12,13,14];gt<_t.length;gt+=1){var vt=_t[gt];ht(vt)}var yt=we.prototype,bt=function(e,t){this.parent=e,this.base=t||this};bt.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},bt.prototype.sibling=function(){return new bt(this.parent,this.base)};var xt=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``)+(e.options.ecmaVersion>=15?`v`:``),this.unicodeProperties=mt[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};xt.prototype.reset=function(e,t,n){var r=n.indexOf(`v`)!==-1,i=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},xt.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},xt.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},xt.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},xt.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},xt.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},xt.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},xt.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},xt.prototype.eatChars=function(e,t){t===void 0&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var a=i[r],o=this.at(n,t);if(o===-1||o!==a)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},yt.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,a=0;a<n.length;a++){var o=n.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(o,a+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`),o===`u`&&(r=!0),o===`v`&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,`Invalid regular expression flag`)};function St(e){for(var t in e)return!0;return!1}yt.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&St(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},yt.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise(`Invalid named capture referenced`)}},yt.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new bt(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},yt.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},yt.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},yt.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},yt.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},yt.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},yt.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},yt.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},yt.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},yt.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var a=n.charAt(i);n.indexOf(a,i+1)>-1&&e.raise(`Duplicate regular expression modifiers`)}if(r){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise(`Invalid regular expression modifiers`);for(var s=0;s<o.length;s++){var c=o.charAt(s);(o.indexOf(c,s+1)>-1||n.indexOf(c)>-1)&&e.raise(`Duplicate regular expression modifiers`)}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}}e.pos=t}return!1},yt.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},yt.regexp_eatModifiers=function(e){for(var t=``,n=0;(n=e.current())!==-1&&Ct(n);)t+=P(n),e.advance();return t};function Ct(e){return e===105||e===109||e===115}yt.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},yt.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},yt.regexp_eatSyntaxCharacter=function(e){var t=e.current();return wt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function wt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}yt.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!wt(n);)e.advance();return e.pos!==t},yt.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},yt.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise(`Invalid group`);var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n){if(t)for(var r=0,i=n;r<i.length;r+=1)i[r].separatedFrom(e.branchID)||e.raise(`Duplicate capture group name`);else e.raise(`Duplicate capture group name`)}t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},yt.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},yt.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=P(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=P(e.lastIntValue);return!0}return!1},yt.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Tt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Tt(e){return f(e,!0)||e===36||e===95}yt.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Et(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Et(e){return p(e,!0)||e===36||e===95||e===8204||e===8205}yt.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},yt.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},yt.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},yt.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},yt.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},yt.regexp_eatZero=function(e){return e.current()===48&&!Rt(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},yt.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},yt.regexp_eatControlLetter=function(e){var t=e.current();return Dt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Dt(e){return e>=65&&e<=90||e>=97&&e<=122}yt.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Ot(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function Ot(e){return e>=0&&e<=1114111}yt.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},yt.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var kt=0,At=1,jt=2;yt.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Mt(t))return e.lastIntValue=-1,e.advance(),At;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===jt&&e.raise(`Invalid property name`),r;e.raise(`Invalid property name`)}return kt};function Mt(e){return e===100||e===68||e===115||e===83||e===119||e===87}yt.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),At}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return kt},yt.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){A(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},yt.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return At;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return jt;e.raise(`Invalid property name`)},yt.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;Nt(t=e.current());)e.lastStringValue+=P(t),e.advance();return e.lastStringValue!==``};function Nt(e){return Dt(e)||e===95}yt.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;Pt(t=e.current());)e.lastStringValue+=P(t),e.advance();return e.lastStringValue!==``};function Pt(e){return Nt(e)||Rt(e)}yt.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},yt.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise(`Unterminated character class`),t&&n===jt&&e.raise(`Negated character class may contain strings`),!0}return!1},yt.regexp_classContents=function(e){return e.current()===93?At:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),At)},yt.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},yt.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Vt(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},yt.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},yt.regexp_classSetExpression=function(e){var t=At,n;if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e)){n===jt&&(t=jt);for(var r=e.pos;e.eatChars([38,38]);)e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))?n!==jt&&(t=At):e.raise(`Invalid character in character class`);if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise(`Invalid character in character class`);if(r!==e.pos)return t}else e.raise(`Invalid character in character class`)}for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===jt&&(t=jt)}},yt.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return n!==-1&&r!==-1&&n>r&&e.raise(`Range out of order in character class`),!0}e.pos=t}return!1},yt.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?At:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},yt.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===jt&&e.raise(`Negated character class may contain strings`),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},yt.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise(`Invalid escape`);e.pos=t}return null},yt.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===jt&&(t=jt);return t},yt.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?At:jt},yt.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&Ft(n)||It(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function Ft(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function It(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}yt.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Lt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Lt(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}yt.regexp_eatClassControlLetter=function(e){var t=e.current();return Rt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},yt.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},yt.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Rt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Rt(e){return e>=48&&e<=57}yt.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;zt(n=e.current());)e.lastIntValue=16*e.lastIntValue+Bt(n),e.advance();return e.pos!==t};function zt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Bt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}yt.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},yt.regexp_eatOctalDigit=function(e){var t=e.current();return Vt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Vt(e){return e>=48&&e<=55}yt.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!zt(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Bt(i),e.advance()}return!0};var Ht=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new L(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Ut=we.prototype;Ut.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new Ht(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ut.getToken=function(){return this.next(),new Ht(this)},typeof Symbol<`u`&&(Ut[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),Ut.nextToken=function(){var e=this.curContext();if(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},Ut.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},Ut.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888},Ut.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},Ut.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=w(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},Ut.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!C(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Ut.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&T.test(String.fromCharCode(e)))++this.pos;else break loop}}},Ut.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Ut.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},Ut.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},Ut.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},Ut.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},Ut.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},Ut.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},Ut.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},Ut.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},Ut.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},Ut.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),f(t,!0)||t===92))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+P(t)+`'`)},Ut.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+P(e)+`'`)},Ut.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Ut.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new xt(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},Ut.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function Wt(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function Gt(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}Ut.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Gt(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},Ut.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=Gt(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),r!==69&&r!==101||n||(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=Wt(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},Ut.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},Ut.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(C(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var Kt={};Ut.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Kt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},Ut.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Kt;this.raise(e,t)},Ut.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(C(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
273
|
+
`;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Ut.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(b.invalidTemplate,this.input.slice(this.start,this.pos));case`\r`:this.input[this.pos+1]===`
|
|
274
|
+
`&&++this.pos;case`
|
|
275
|
+
`:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,`Unterminated template`)},Ut.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
276
|
+
`;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return P(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return C(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},Ut.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},Ut.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(p(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?f:p)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=P(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},Ut.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)};var qt=`8.19.0`;we.acorn={Parser:we,version:qt,defaultOptions:te,Position:I,SourceLocation:L,getLineInfo:ee,Node:Xe,TokenType:m,tokTypes:b,keywordTypes:v,TokContext:Be,tokContexts:Ve,isIdentifierChar:p,isIdentifierStart:f,Token:Ht,isNewLine:C,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:T};function Jt(e,t){return we.parse(e,t)}function Yt(e,t,n){return we.parseExpressionAt(e,t,n)}function Xt(e,t){return we.tokenizer(e,t)}e.Node=Xe,e.Parser=we,e.Position=I,e.SourceLocation=L,e.TokContext=Be,e.Token=Ht,e.TokenType=m,e.defaultOptions=te,e.getLineInfo=ee,e.isIdentifierChar=p,e.isIdentifierStart=f,e.isNewLine=C,e.keywordTypes=v,e.lineBreak=x,e.lineBreakG=S,e.nonASCIIwhitespace=T,e.parse=Jt,e.parseExpressionAt=Yt,e.tokContexts=Ve,e.tokTypes=b,e.tokenizer=Xt,e.version=qt}))})),s_=n(((e,t)=>{var n=a_(),r=/^[\da-fA-F]+$/,i=/^\d+$/,a=new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new i(`jsxName`),jsxText:new i(`jsxText`,{beforeExpr:!0}),jsxTagStart:new i(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new i(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},a.set(e,t)}return t}function s(e){if(!e)return e;if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return s(e.object)+`.`+s(e.property)}t.exports=function(e){return e||={},function(t){return c({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return o(o_()).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||o_(),c=o(a),l=a.tokTypes,u=c.tokTypes,d=a.tokContexts,f=c.tokContexts.tc_oTag,p=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,h=a.isNewLine,g=a.isIdentifierStart,_=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e=``,t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated JSX contents`);let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(n===62?`>`:`}`)+'` or `{"'+this.input[this.pos]+'"}`?');default:h(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
|
|
277
|
+
`:`\r
|
|
278
|
+
`):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}jsx_readString(e){let t=``,n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);let r=this.input.charCodeAt(this.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):h(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e=``,t=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=n[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(_(e)||e===45);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,`JSXNamespacedName`)}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return``;let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,`JSXMemberExpression`)}return r}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,`JSX value should be either an expression or a quoted JSX text`)}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXOpeningElement`:`JSXOpeningFragment`)}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXClosingElement`:`JSXClosingFragment`)}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){contents:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break contents}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+s(i.name)+`>`)}let o=i.name?`Element`:`Fragment`;return n[`opening`+o]=i,n[`closing`+o]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type=`JSXText`,e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===f||t===p){if(g(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==f)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(e)}}}}));function c_(e){return e}var l_={}.hasOwnProperty,u_=Symbol(`continue`),d_=Symbol(`exit`),f_=Symbol(`skip`);function p_(e,t){let n,r;typeof t==`function`?n=t:t&&typeof t==`object`&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),i(e,void 0,void 0,[])();function i(e,t,a,o){return h_(e)&&(s.displayName=`node (`+c_(e.type)+`)`),s;function s(){let s=n?m_(n(e,t,a,o)):[];if(s[0]===d_)return s;if(s[0]!==f_){let t;for(t in e)if(l_.call(e,t)&&e[t]&&typeof e[t]==`object`&&t!==`data`&&t!==`position`){let n=o.concat(e),r=e[t];if(Array.isArray(r)){let e=r,a=0;for(;a>-1&&a<e.length;){let r=e[a];if(h_(r)){let e=i(r,t,a,n)();if(e[0]===d_)return e;a=typeof e[1]==`number`?e[1]:a+1}else a++}}else if(h_(r)){let e=i(r,t,void 0,n)();if(e[0]===d_)return e}}}return r?m_(r(e,t,a,o)):s}}}function m_(e){return Array.isArray(e)?e:typeof e==`number`?[u_,e]:[e]}function h_(e){return!!(e&&typeof e==`object`&&`type`in e&&typeof e.type==`string`&&e.type.length>0)}function g_(e,t){let n=t.prefix||``,r=t.suffix||``,i=Object.assign({},t.acornOptions),a=[],o=[],s=i.onComment,c=i.onToken,l=!1,u,d,f=Object.assign({},i,{onComment:a,preserveParens:!0});c&&(f.onToken=o);let p=v_(e,t.tokenTypes),m=p.value,h=n+m+r,g=t.expression&&__(m);if(g&&!t.allowEmpty)throw new em(`Unexpected empty expression`,{place:v(0),ruleId:`unexpected-empty-expression`,source:`micromark-extension-mdx-expression`});try{u=t.expression&&!g?t.acorn.parseExpressionAt(h,0,f):t.acorn.parse(h,f)}catch(e){let t=e,r=v(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,``),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},d=t,l=t.raisedAt>=n.length+m.length||t.message===`Unterminated comment`}if(u&&t.expression&&!g){if(__(h.slice(u.end,h.length-r.length)))u={type:`Program`,start:0,end:n.length+m.length,body:[{type:`ExpressionStatement`,expression:u,start:0,end:n.length+m.length}],sourceType:`module`,comments:[]};else{let e=v(u.end),t=Error(`Unexpected content after expression`);t.pos=e.offset,t.loc={line:e.line,column:e.column-1},d=t,u=void 0}}if(u){if(u.comments=a,p_(u,function(e,t,n,r){let i=r[r.length-1],a=t;e.type===`ParenthesizedExpression`&&i&&a&&(typeof n==`number`&&(i=i[a],a=n),i[a]=e.expression),_(e)}),Array.isArray(s))s.push(...a);else if(typeof s==`function`)for(let e of a)s(e.type===`Block`,e.value,e.start,e.end,e.loc.start,e.loc.end);for(let e of o)e.end<=n.length||e.start-n.length>=m.length||(_(e),Array.isArray(c)?c.push(e):c(e))}return{estree:u,error:d,swallow:l};function _(e){let t=v(e.start),n=v(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function v(e){let r=e-n.length;r<0?r=0:r>m.length&&(r=m.length);let i=y_(p.stops,r);return i||={line:t.start.line,column:t.start.column,offset:t.start.offset},i}}function __(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,``).replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,``))}function v_(e,t){let n={value:``,stops:[]},r=-1;for(;++r<e.length;){let i=e[r];if(i[0]===`enter`){let e=i[1].type;if(e===`lineEnding`||t.includes(e)){let e=i[2].sliceStream(i[1]);for(;e.length>0&&e[0]===-1;)e.shift();let t=b_(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}function y_(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;let[r,i]=e[n-1],a=t-r;return{line:i.line,column:i.column+a,offset:i.offset+a}}function b_(e){let t=-1,n=[],r;for(;++t<e.length;){let i=e[t],a;if(typeof i==`string`)a=i;else switch(i){case-5:a=`\r`;break;case-4:a=`
|
|
279
|
+
`;break;case-3:a=`\r
|
|
280
|
+
`;break;case-2:a=` `;break;case-1:if(r)continue;a=` `;break;default:a=String.fromCharCode(i)}r=i===-2,n.push(a)}return n.join(``)}function x_(e){let t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=S_(n.start,r[0]||t.start),a=S_(n.end,r[1]||t.end);if(i&&a)return{start:i,end:a}}function S_(e,t){if(e&&typeof e==`object`){let n=`line`in e?C_(e.line):void 0,r=`column`in e?C_(e.column):void 0;if(n&&r!==void 0)return{line:n,column:r+1,offset:C_(t)}}}function C_(e){return typeof e==`number`&&e>-1?e:void 0}var w_=`https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression`,T_=`#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-`,E_=`#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed`,D_=`#unexpected-type-in-code-expected-an-object-spread-spread`,O_=`#unexpected-extra-content-in-spread-only-a-single-spread-is-supported`,k_=`#could-not-parse-expression-with-acorn`;function A_(e,t,n,r,i,a,o,s,c,l,u){let d=this,f=this.events.length+3,p=0,m,h;return g;function g(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),m=d.now(),_}function _(u){if(u===null){if(h)throw h;let e=new em("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:`unexpected-eof`,source:`micromark-extension-mdx-expression`});throw e.url=w_+T_,e}if(_u(u))return e.enter(`lineEnding`),e.consume(u),e.exit(`lineEnding`),y;if(u===125&&p===0){let p=a?j_.call(d,a,o,i,f,m,l||!1,c||!1):{type:`ok`,estree:void 0};if(p.type===`ok`){e.enter(r),e.consume(u),e.exit(r);let i=e.exit(n);return s&&p.estree&&Object.assign(i,{estree:p.estree}),t}return h=p.message,e.enter(i),e.consume(u),v}return e.enter(i),v(u)}function v(t){return t===125&&p===0||t===null||_u(t)?(e.exit(i),_(t)):(t===123&&!a?p+=1:t===125&&--p,e.consume(t),v)}function y(t){let n=d.now();if(n.line!==m.line&&!u&&d.parser.lazy[n.line]){let e=new em("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:`unexpected-lazy`,source:`micromark-extension-mdx-expression`});throw e.url=w_+E_,e}return yu(t)?Cu(e,_,`linePrefix`,3)(t):_(t)}}function j_(e,t,n,r,i,a,o){let s=g_(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:a,prefix:o?`({`:``,suffix:o?`})`:``}),c=s.estree;if(o&&c){let e=c.body[0];if(e.type!==`ExpressionStatement`||e.expression.type!==`ObjectExpression`){let t=x_(e),n=new em("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:`non-spread`,source:`micromark-extension-mdx-expression`});throw n.url=w_+D_,n}if(e.expression.properties[1]){let t=new em(`Unexpected extra content in spread: only a single spread is supported`,{place:x_(e.expression.properties[1]).start,ruleId:`spread-extra`,source:`micromark-extension-mdx-expression`});throw t.url=w_+O_,t}if(e.expression.properties[0]&&e.expression.properties[0].type!==`SpreadElement`){let t=x_(e.expression.properties[0]),n=new em("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:`non-spread`,source:`micromark-extension-mdx-expression`});throw n.url=w_+D_,n}}if(s.error){let e=new em(`Could not parse expression with acorn`,{cause:s.error,place:{line:s.error.loc.line,column:s.error.loc.column+1,offset:s.error.pos},ruleId:`acorn`,source:`micromark-extension-mdx-expression`});return e.url=w_+k_,{type:`nok`,message:e}}return{type:`ok`,estree:c}}function M_(e){let t=e||{},n=t.addResult,r=t.acorn,i=t.spread,a=t.allowEmpty,o;if(a??=!0,r){if(!r.parseExpressionAt)throw Error("Expected a proper `acorn` instance passed in as `options.acorn`");o=Object.assign({ecmaVersion:2024,sourceType:`module`},t.acornOptions)}else if(t.acornOptions||t.addResult)throw Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:`mdxFlowExpression`,tokenize:s,concrete:!0}},text:{123:{name:`mdxTextExpression`,tokenize:c}}};function s(e,t,s){let c=this;return l;function l(e){return u(e)}function u(t){return A_.call(c,e,d,`mdxFlowExpression`,`mdxFlowExpressionMarker`,`mdxFlowExpressionChunk`,r,o,n,i,a)(t)}function d(t){return yu(t)?Cu(e,f,`whitespace`)(t):f(t)}function f(n){let r=c.parser.constructs.flow[60],i=(Array.isArray(r)?r:r?[r]:[]).find(function(e){return e.name===`mdxJsxFlowTag`});return n===60&&i?e.attempt(i,f,s)(n):n===null||_u(n)?t(n):s(n)}}function c(e,t){let s=this;return c;function c(c){return A_.call(s,e,t,`mdxTextExpression`,`mdxTextExpressionMarker`,`mdxTextExpressionChunk`,r,o,n,i,a,!0)(c)}}}var N_=/[$_\p{ID_Start}]/u,P_=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,F_=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,I_={};function L_(e){return e?N_.test(String.fromCodePoint(e)):!1}function R_(e,t){let n=(t||I_).jsx?F_:P_;return e?n.test(String.fromCodePoint(e)):!1}var z_=`https://github.com/micromark/micromark-extension-mdx-jsx`;function B_(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j){let M=this,N,P;return F;function F(t){return e.enter(s),e.enter(c),e.consume(t),e.exit(c),I}function I(e){return vu(e)?n(e):(N=L,Se(e))}function L(t){if(t===47)return e.enter(l),e.consume(t),e.exit(l),N=ee,Se;if(t===62)return xe(t);if(t!==null&&t>=0&&L_(t))return e.enter(d),e.enter(f),e.consume(t),te;Te(t,`before name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===33?" (note: to create a comment in MDX, use `{/* text */}`)":``))}function ee(t){if(t===62)return xe(t);if(t!==null&&t>=0&&L_(t))return e.enter(d),e.enter(f),e.consume(t),te;Te(t,`before name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===42||t===47?` (note: JS comments in JSX tags are not supported in MDX)`:``))}function te(t){if(t!==null&&t>=0&&R_(t,{jsx:!0}))return e.consume(t),te;if(t===46||t===47||t===58||t===62||t===123||vu(t)||xu(t))return e.exit(f),N=ne,Se(t);Te(t,`in name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(t===64?" (note: to create a link in MDX, use `[text](url)`)":``))}function ne(t){if(t===46)return e.enter(p),e.consume(t),e.exit(p),N=re,Se;if(t===58)return e.enter(h),e.consume(t),e.exit(h),N=oe,Se;if(t===47||t===62||t===123||t!==null&&t>=0&&L_(t))return e.exit(d),le(t);Te(t,`after name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function re(t){if(t!==null&&t>=0&&L_(t))return e.enter(m),e.consume(t),ie;Te(t,`before member name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ie(t){if(t!==null&&t>=0&&R_(t,{jsx:!0}))return e.consume(t),ie;if(t===46||t===47||t===62||t===123||vu(t)||xu(t))return e.exit(m),N=ae,Se(t);Te(t,`in member name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(t===64?" (note: to create a link in MDX, use `[text](url)`)":``))}function ae(t){if(t===46)return e.enter(p),e.consume(t),e.exit(p),N=re,Se;if(t===47||t===62||t===123||t!==null&&t>=0&&L_(t))return e.exit(d),le(t);Te(t,`after member name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function oe(t){if(t!==null&&t>=0&&L_(t))return e.enter(g),e.consume(t),se;Te(t,`before local name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===43||t!==null&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":``))}function se(t){if(t!==null&&t>=0&&R_(t,{jsx:!0}))return e.consume(t),se;if(t===47||t===62||t===123||vu(t)||xu(t))return e.exit(g),N=ce,Se(t);Te(t,`in local name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ce(t){if(t===47||t===62||t===123||t!==null&&t>=0&&L_(t))return e.exit(d),le(t);Te(t,`after local name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function le(t){if(t===47)return e.enter(u),e.consume(t),e.exit(u),N=be,Se;if(t===62)return xe(t);if(t===123)return A_.call(M,e,ue,_,v,y,r,i,a,!0,!1,o)(t);if(t!==null&&t>=0&&L_(t))return e.enter(b),e.enter(x),e.enter(S),e.consume(t),de;Te(t,`before attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ue(e){return N=le,Se(e)}function de(t){if(t!==null&&t>=0&&R_(t,{jsx:!0}))return e.consume(t),de;if(t===47||t===58||t===61||t===62||t===123||vu(t)||xu(t))return e.exit(S),N=fe,Se(t);Te(t,`in attribute name`,"an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function fe(t){if(t===58)return e.enter(C),e.consume(t),e.exit(C),N=pe,Se;if(t===61)return e.exit(x),e.enter(T),e.consume(t),e.exit(T),N=ge,Se;if(t===47||t===62||t===123||vu(t)||xu(t)||t!==null&&t>=0&&L_(t))return e.exit(x),e.exit(b),N=le,Se(t);Te(t,`after attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function pe(t){if(t!==null&&t>=0&&L_(t))return e.enter(w),e.consume(t),me;Te(t,`before local attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function me(t){if(t!==null&&t>=0&&R_(t,{jsx:!0}))return e.consume(t),me;if(t===47||t===61||t===62||t===123||vu(t)||xu(t))return e.exit(w),e.exit(x),N=he,Se(t);Te(t,`in local attribute name`,"an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function he(t){if(t===61)return e.enter(T),e.consume(t),e.exit(T),N=ge,Se;if(t===47||t===62||t===123||t!==null&&t>=0&&L_(t))return e.exit(b),le(t);Te(t,`after local attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ge(t){if(t===34||t===39)return e.enter(E),e.enter(D),e.consume(t),e.exit(D),P=t,ve;if(t===123)return A_.call(M,e,_e,k,A,j,r,i,a,!1,!1,o)(t);Te(t,`before attribute value`,"a character that can start an attribute value, such as `\"`, `'`, or `{`"+(t===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":``))}function _e(t){return e.exit(b),N=le,Se(t)}function ve(t){return t===null&&Te(t,`in attribute value`,"a corresponding closing quote `"+String.fromCodePoint(P)+"`"),t===P?(e.enter(D),e.consume(t),e.exit(D),e.exit(E),e.exit(b),P=void 0,N=le,Se):_u(t)?(N=ve,Se(t)):(e.enter(O),ye(t))}function ye(t){return t===null||t===P||_u(t)?(e.exit(O),ve(t)):(e.consume(t),ye)}function be(e){if(e===62)return xe(e);Te(e,`after self-closing slash`,"`>` to end the tag"+(e===42||e===47?` (note: JS comments in JSX tags are not supported in MDX)`:``))}function xe(n){return e.enter(c),e.consume(n),e.exit(c),e.exit(s),t}function Se(t){return _u(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),we):yu(t)||xu(t)?(e.enter(`esWhitespace`),Ce(t)):N(t)}function Ce(t){return _u(t)?(e.exit(`esWhitespace`),Se(t)):yu(t)||xu(t)?(e.consume(t),Ce):(e.exit(`esWhitespace`),N(t))}function we(e){if(!o&&M.parser.lazy[M.now().line]){let e=new em("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",M.now(),`micromark-extension-mdx-jsx:unexpected-lazy`);throw e.url=z_+`#unexpected-lazy-line-in-container-expected-line-to-be`,e}return Se(e)}function Te(e,t,n){let r=new em(`Unexpected `+(e===null?`end of file`:"character `"+(e===96?"` ` `":String.fromCodePoint(e))+"` ("+V_(e)+`)`)+` `+t+`, expected `+n,M.now(),`micromark-extension-mdx-jsx:unexpected-`+(e===null?`eof`:`character`));throw r.url=z_+(e===null?`#unexpected-end-of-file-at-expected-expect`:`#unexpected-character-at-expected-expect`),r}}function V_(e){return`U+`+e.toString(16).toUpperCase().padStart(4,`0`)}function H_(e,t){return{name:`mdxJsxTextTag`,tokenize:n};function n(n,r,i){return B_.call(this,n,r,i,e,t.acornOptions,t.addResult,!0,`mdxJsxTextTag`,`mdxJsxTextTagMarker`,`mdxJsxTextTagClosingMarker`,`mdxJsxTextTagSelfClosingMarker`,`mdxJsxTextTagName`,`mdxJsxTextTagNamePrimary`,`mdxJsxTextTagNameMemberMarker`,`mdxJsxTextTagNameMember`,`mdxJsxTextTagNamePrefixMarker`,`mdxJsxTextTagNameLocal`,`mdxJsxTextTagExpressionAttribute`,`mdxJsxTextTagExpressionAttributeMarker`,`mdxJsxTextTagExpressionAttributeValue`,`mdxJsxTextTagAttribute`,`mdxJsxTextTagAttributeName`,`mdxJsxTextTagAttributeNamePrimary`,`mdxJsxTextTagAttributeNamePrefixMarker`,`mdxJsxTextTagAttributeNameLocal`,`mdxJsxTextTagAttributeInitializerMarker`,`mdxJsxTextTagAttributeValueLiteral`,`mdxJsxTextTagAttributeValueLiteralMarker`,`mdxJsxTextTagAttributeValueLiteralValue`,`mdxJsxTextTagAttributeValueExpression`,`mdxJsxTextTagAttributeValueExpressionMarker`,`mdxJsxTextTagAttributeValueExpressionValue`)}}function U_(e,t){return{concrete:!0,name:`mdxJsxFlowTag`,tokenize:n};function n(n,r,i){let a=this;return o;function o(e){return s(e)}function s(r){return B_.call(a,n,c,i,e,t.acornOptions,t.addResult,!1,`mdxJsxFlowTag`,`mdxJsxFlowTagMarker`,`mdxJsxFlowTagClosingMarker`,`mdxJsxFlowTagSelfClosingMarker`,`mdxJsxFlowTagName`,`mdxJsxFlowTagNamePrimary`,`mdxJsxFlowTagNameMemberMarker`,`mdxJsxFlowTagNameMember`,`mdxJsxFlowTagNamePrefixMarker`,`mdxJsxFlowTagNameLocal`,`mdxJsxFlowTagExpressionAttribute`,`mdxJsxFlowTagExpressionAttributeMarker`,`mdxJsxFlowTagExpressionAttributeValue`,`mdxJsxFlowTagAttribute`,`mdxJsxFlowTagAttributeName`,`mdxJsxFlowTagAttributeNamePrimary`,`mdxJsxFlowTagAttributeNamePrefixMarker`,`mdxJsxFlowTagAttributeNameLocal`,`mdxJsxFlowTagAttributeInitializerMarker`,`mdxJsxFlowTagAttributeValueLiteral`,`mdxJsxFlowTagAttributeValueLiteralMarker`,`mdxJsxFlowTagAttributeValueLiteralValue`,`mdxJsxFlowTagAttributeValueExpression`,`mdxJsxFlowTagAttributeValueExpressionMarker`,`mdxJsxFlowTagAttributeValueExpressionValue`)(r)}function c(e){return yu(e)?Cu(n,l,`whitespace`)(e):l(e)}function l(e){let t=a.parser.constructs.flow[123],s=Array.isArray(t)?t:t?[t]:[],c;for(let e of s)if(e.name===`mdxFlowExpression`){c=e;break}return e===60?o(e):e===123&&c?n.attempt(c,l,i)(e):e===null||_u(e)?r(e):i(e)}}}function W_(e){let t=e||{},n=t.acorn,r;if(n){if(!n.parse||!n.parseExpressionAt)throw Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:`module`},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:U_(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})},text:{60:H_(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})}}}var G_=e(s_(),1);function K_(){return{disable:{null:[`autolink`,`codeIndented`,`htmlFlow`,`htmlText`]}}}var q_={tokenize:Z_,partial:!0},J_=`https://github.com/micromark/micromark-extension-mdxjs-esm`,Y_=new Set([`ExportAllDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`,`ImportDeclaration`]);function X_(e){let t={tokenize:i,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw Error("Expected an `acorn` instance passed in as `options.acorn`");let n=e.acorn,r=Object.assign({ecmaVersion:2024,sourceType:`module`},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function i(t,i,a){let o=this,s=o.parser.definedModuleSpecifiers||(o.parser.definedModuleSpecifiers=[]),c=this.events.length+1,l=``;return o.interrupt?a:u;function u(e){return o.now().column>1?a(e):(t.enter(`mdxjsEsm`),t.enter(`mdxjsEsmData`),t.consume(e),l+=String.fromCharCode(e),d)}function d(e){return uu(e)?(t.consume(e),l+=String.fromCharCode(e),d):(l===`import`||l===`export`)&&e===32?(t.consume(e),f):a(e)}function f(e){return e===null||_u(e)?(t.exit(`mdxjsEsmData`),p(e)):(t.consume(e),f)}function p(e){return e===null?h(e):_u(e)?t.check(q_,h,m)(e):(t.enter(`mdxjsEsmData`),f(e))}function m(e){return t.enter(`lineEnding`),t.consume(e),t.exit(`lineEnding`),p}function h(a){let l=g_(o.events.slice(c),{acorn:n,acornOptions:r,tokenTypes:[`mdxjsEsmData`],prefix:s.length>0?`var `+s.join(`,`)+`
|
|
281
|
+
`:``});if(l.error){if(a!==null&&l.swallow)return m(a);let e=new em(`Could not parse import/exports with acorn`,{cause:l.error,place:{line:l.error.loc.line,column:l.error.loc.column+1,offset:l.error.pos},ruleId:`acorn`,source:`micromark-extension-mdxjs-esm`});throw e.url=J_+`#could-not-parse-importexports-with-acorn`,e}s.length>0&&l.estree.body.shift();let u=-1;for(;++u<l.estree.body.length;){let e=l.estree.body[u];if(!Y_.has(e.type)){let t=new em("Unexpected `"+e.type+"` in code: only import/exports are supported",{place:x_(e),ruleId:`non-esm`,source:`micromark-extension-mdxjs-esm`});throw t.url=J_+`#unexpected-type-in-code-only-importexports-are-supported`,t}if(e.type===`ImportDeclaration`&&!o.interrupt){let t=-1;for(;++t<e.specifiers.length;){let n=e.specifiers[t];s.push(n.local.name)}}}return Object.assign(t.exit(`mdxjsEsm`),e.addResult?{estree:l.estree}:void 0),i(a)}}}function Z_(e,t,n){return r;function r(r){return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),e.attempt(Iu,t,n)}}function lee(e){let t=Object.assign({acorn:Ih.extend((0,G_.default)()),acornOptions:{ecmaVersion:2024,sourceType:`module`},addResult:!0},e);return au([X_(t),M_(t),W_(t),K_()])}var Q_=`Block`,$_=`Callout`,ev=`Table`,tv=`Component`,uee=[`of`,`width`,`height`,`at`,`alt`,`title`,`align`],nv=`PageBreak`,rv=`Columns`,iv=`Column`,av=`Chart`,ov=[`type`,`title`,`data`,`categories`,`series`,`legend`,`labels`,`format`,`min`,`max`,`colors`,`width`,`height`,`alt`],sv=e=>e.split(`,`).map(e=>e.trim()).filter(e=>e!==``),cv=new Set([`center`,`right`,`justify`]),lv=(e,t)=>{let n=t.position?.start.offset,r=t.position?.end.offset;return n===void 0||r===void 0?``:e.source.slice(n,r)};function uv(e,t,n){let r=t.position?.start;e.problems.push({message:n,...r?{line:r.line,column:r.column}:{}})}var dv=(e,t)=>e.bold===t.bold&&e.italic===t.italic&&e.underline===t.underline&&e.strike===t.strike&&e.code===t.code&&e.color===t.color&&e.background===t.background;function fv(e,t,n,r){if(t===``)return;let i=e.at(-1);i&&i.note===void 0&&i.href===r&&dv(i.styles,n)?i.text+=t:e.push({text:t,styles:{...n},...r===void 0?{}:{href:r}})}function pv(e,t,n){let r=new Map;for(let i of t.attributes)i.type!==`mdxJsxAttribute`||!n.includes(i.name)?uv(e,t,`<${t.name??``}> takes ${n.join(`, `)}: ${i.type===`mdxJsxAttribute`?i.name:`{…}`} is not one of them`):i.value===null||i.value===void 0?r.set(i.name,``):typeof i.value==`string`?r.set(i.name,i.value):uv(e,t,`${i.name} of <${t.name??``}> is a plain string`);return r}function mv(e,t,n){switch(t.name){case`u`:return{...n,underline:!0};case`strong`:case`b`:return{...n,bold:!0};case`em`:case`i`:return{...n,italic:!0};case`del`:case`s`:return{...n,strike:!0};case`code`:return{...n,code:!0};case`span`:{let r=pv(e,t,[`color`,`bg`]),i=r.get(`color`),a=r.get(`bg`);return{...n,...i?{color:i}:{},...a?{background:a}:{}}}default:return}}function hv(e,t,n,r,i){for(let a of t)switch(a.type){case`text`:for(let[,t]of a.value.matchAll(/\[\^([^\]\s]+)\]/gu))uv(e,a,`the footnote [^${t??``}] has no note: write [^${t??``}]: … on a line of its own`);fv(i,a.value.replace(/\r?\n/g,` `),n,r);break;case`strong`:hv(e,a.children,{...n,bold:!0},r,i);break;case`emphasis`:hv(e,a.children,{...n,italic:!0},r,i);break;case`delete`:hv(e,a.children,{...n,strike:!0},r,i);break;case`inlineCode`:fv(i,a.value,{...n,code:!0},r);break;case`break`:fv(i,`
|
|
282
|
+
`,n,r);break;case`link`:hv(e,a.children,n,a.url,i);break;case`footnoteReference`:{let e=a.label??a.identifier;i.push({text:e,styles:{...n},...r===void 0?{}:{href:r},note:e});break}case`mdxJsxTextElement`:{if(a.name===`br`){fv(i,`
|
|
283
|
+
`,n,r);break}let t=mv(e,a,n);if(t){hv(e,a.children,t,r,i);break}uv(e,a,`<${a.name??``}> inside a line is not drawn: a tag the doc's code draws goes on lines of its own`),fv(i,lv(e,a),n,r);break}case`mdxTextExpression`:uv(e,a,`{…} in a line is not drawn: write \\{ for a brace`),fv(i,lv(e,a),n,r);break;default:uv(e,a,`${a.type} is not drawn in a doc`),fv(i,lv(e,a),n,r)}}function gv(e,t){let n=[];return hv(e,t,{},void 0,n),n}var _v=e=>e?.type===`mdxJsxFlowElement`&&e.name===`br`&&e.children.length===0;function vv(e,t){let[n,...r]=t;if(n?.type===`paragraph`){let t=gv(e,n.children);return{content:t.length===1&&t[0]?.text===`
|
|
284
|
+
`&&Object.keys(t[0].styles).length===0?[]:t,under:Av(e,r)}}return _v(n)?{content:[],under:Av(e,r)}:{content:[],under:Av(e,t)}}var yv=(e,t)=>t.length>0?{...e,children:t}:e;function dee(e,t,n,r){let{content:i,under:a}=vv(e,t.children);return typeof t.checked==`boolean`?yv({type:`check`,checked:t.checked,content:i},a):yv(n?{type:`numbered`,...r===void 0||r===1?{}:{start:r},content:i}:{type:`bullet`,content:i},a)}function fee(e,t){return t.children.map(t=>gv(e,t.children))}function bv(e,t){return t?{[e]:t}:{}}function xv(e,t){let n=pv(e,t,[`align`,`color`,`bg`,`toggle`]),r=Av(e,t.children),[i,...a]=r;if(i===void 0)return uv(e,t,`<${Q_}> holds a block: this one is empty`),[];if(i.type===`embed`||i.type===`source`)return uv(e,t,`<${Q_}> holds a block of the doc's own, not a tag or an import`),r;let o=n.get(`align`);o!==void 0&&!cv.has(o)&&uv(e,t,`align is center, right or justify, not "${o}"`);let s={...o!==void 0&&cv.has(o)?{align:o}:{},...bv(`color`,n.get(`color`)),...bv(`background`,n.get(`bg`))},c=i;if(n.has(`toggle`)&&(c.type===`heading`?c={...c,toggle:!0}:c.type===`paragraph`?c={type:`toggle`,content:c.content}:uv(e,t,`toggle is for a heading or a line of text`)),Object.keys(s).length>0&&(`content`in c?c={...c,look:s}:uv(e,t,`a ${c.type} has no look to set`)),a.length>0){if(`content`in c)c={...c,children:[...c.children??[],...a]};else return uv(e,t,`a ${c.type} holds no blocks under it`),[c,...a]}return[c]}function Sv(e,t){let n=pv(e,t,[`icon`,`color`,`bg`]),{content:r,under:i}=vv(e,t.children),a={...bv(`color`,n.get(`color`)),...bv(`background`,n.get(`bg`))};return[yv({type:`callout`,...bv(`icon`,n.get(`icon`)),...Object.keys(a).length>0?{look:a}:{},content:r},i)]}function Cv(e,t){let n=pv(e,t,[`src`,`alt`,`title`,`width`,`align`]),r=n.get(`src`);if(!r)return uv(e,t,`<img> names its picture: src is missing`),[];let i=Number(n.get(`width`)),a=n.get(`align`);return a!==void 0&&a!==`center`&&a!==`right`&&uv(e,t,`a picture's align is center or right, not "${a}"`),[{type:`image`,src:r,...bv(`alt`,n.get(`alt`)),...bv(`caption`,n.get(`title`)),...Number.isFinite(i)&&i>0?{width:Math.round(i)}:{},...a===`center`||a===`right`?{align:a}:{}}]}function wv(e,t){if(t.children.length>0)return uv(e,t,`<${tv}> holds nothing: its props are its attributes`),[];let n=new Map,r={};for(let i of t.attributes){if(i.type!==`mdxJsxAttribute`){uv(e,t,`<${tv}>'s attributes are plain strings, not {…}`);continue}let a=i.value===null||i.value===void 0?``:typeof i.value==`string`?i.value:void 0;a===void 0?uv(e,t,`${i.name} of <${tv}> is a plain string`):uee.includes(i.name)?n.set(i.name,a):r[i.name]=a}let i=n.get(`of`)??``;if(i.trim()===``)return uv(e,t,`<${tv}> names its component: of is missing (of="../ui.ts#Dialog")`),[];let a=r=>{let i=n.get(r);if(i===void 0)return;let a=Number(i);if(Number.isFinite(a)&&a>0)return Math.round(a);uv(e,t,`${r} of <${tv}> is a number of pixels, not "${i}"`)},o=a(`width`),s=a(`height`),c=n.get(`at`),l=c===void 0?void 0:Number(c);l!==void 0&&!(Number.isFinite(l)&&l>=0)&&uv(e,t,`at of <${tv}> is seconds, 0 or more, not "${c??``}"`);let u=n.get(`align`);return u!==void 0&&u!==`center`&&u!==`right`&&uv(e,t,`a component's align is center or right, not "${u}"`),[{type:`component`,of:i,...o===void 0?{}:{width:o},...s===void 0?{}:{height:s},...l!==void 0&&Number.isFinite(l)&&l>=0?{at:l}:{},...bv(`alt`,n.get(`alt`)),...bv(`caption`,n.get(`title`)),...u===`center`||u===`right`?{align:u}:{},props:r}]}function Tv(e,t){let n=pv(e,t,ov),r=n=>{uv(e,t,n)},i=n.get(`type`);if(i===void 0||i===``)return r(`<${av}> says what it is drawn as: type is missing (${Fe.join(`, `)})`),[];if(!Fe.includes(i))return r(`a chart's type is ${Fe.join(`, `)}, not "${i}"`),[];let[a,...o]=t.children;if(o.length>0||a!==void 0&&a.type!==`table`)return r(`<${av}> holds one table: its numbers`),[];let s=a?.type===`table`?a.children.map(t=>t.children.map(t=>gv(e,t.children).map(e=>e.text).join(``).trim())):void 0,c=n.get(`data`),l=n.get(`categories`),u=n.get(`series`);if(s!==void 0&&c!==void 0)return r(`a chart's numbers are its table or the file data names, not both`),[];if(s===void 0&&(c===void 0||c===``))return r(`<${av}> has numbers: a table inside it, or data="…" naming a file of them`),[];if(s!==void 0){(l!==void 0||u!==void 0)&&r(`categories and series name a file's columns: a chart's own table has its series in its head row and its categories in its first column`);let e=Math.min(...s.map(e=>e.length));(s.length<2||e<2)&&r(`a chart's table has a head row and a row of numbers, a column of categories and a column of numbers`)}else(l===void 0||l===``)&&r(`with data, categories names the column of the categories`),(u===void 0||sv(u).length===0)&&r(`with data, series names the columns of the numbers (series="revenue,cost")`);let d=n.get(`legend`),f=[...xe,`none`];d!==void 0&&!f.includes(d)&&r(`a chart's legend is ${f.join(`, `)}, not "${d}"`);let p=n.get(`labels`),m=p===void 0?void 0:p===``?[`value`]:sv(p),h=m?.filter(e=>!Nl.includes(e));h?.length&&r(`a chart's labels are ${Nl.join(`, `)}, not ${h.map(e=>`"${e}"`).join(`, `)}`);let g=(e,t)=>{let i=n.get(e);if(i===void 0)return;let a=Number(i);if(i.trim()!==``&&Number.isFinite(a)&&(!t||a>0))return t?Math.round(a):a;r(`${e} of <${av}> is ${t?`a number of pixels`:`a number`}, not "${i}"`)},_=g(`min`,!1),v=g(`max`,!1),y=g(`width`,!0),b=g(`height`,!0),x=n.get(`colors`);return[{type:`chart`,kind:i,...bv(`title`,n.get(`title`)),...s===void 0?{}:{table:s},...c===void 0||c===``?{}:{data:c},...s===void 0?bv(`categories`,l):{},...s===void 0&&u!==void 0&&sv(u).length>0?{series:sv(u)}:{},...d!==void 0&&f.includes(d)?{legend:d}:{},...m!==void 0&&!h?.length?{labels:m}:{},...bv(`format`,n.get(`format`)),..._===void 0?{}:{min:_},...v===void 0?{}:{max:v},...x!==void 0&&sv(x).length>0?{colors:sv(x)}:{},...y===void 0?{}:{width:y},...b===void 0?{}:{height:b},...bv(`alt`,n.get(`alt`))}]}function Ev(e,t){pv(e,t,[]);let n=[];for(let r of t.children){if(r.type!==`mdxJsxFlowElement`||r.name!==`Column`)return uv(e,r,`<${rv}> holds <${iv}>s, each around its blocks`),[];let t=pv(e,r,[`width`]).get(`width`),i=t===void 0?void 0:Number(t);t!==void 0&&!(Number.isFinite(i)&&(i??0)>0)&&uv(e,r,`a column's width is a share against the others' (1, 2, 0.5), not "${t}"`);let a=Av(e,r.children);if(a.some(e=>e.type===`columns`))return uv(e,r,`a <${iv}> holds no <${rv}>`),[];n.push({...i!==void 0&&Number.isFinite(i)&&i>0&&i!==1?{width:i}:{},blocks:a})}return n.length<2?(uv(e,t,`<${rv}> holds two or more <${iv}>s`),[]):[{type:`columns`,columns:n}]}function Dv(e,t){let n=pv(e,t,[`widths`,`head`]),r=Av(e,t.children),[i,...a]=r;if(i?.type!==`table`||a.length>0)return uv(e,t,`<${ev}> holds one table`),r;let o=n.get(`head`);o!==void 0&&![`none`,`column`,`both`,`row`].includes(o)&&uv(e,t,`a table's head is none, row, column or both, not "${o}"`);let s=n.get(`widths`)?.split(`,`).map(e=>{let t=Number(e.trim());return e.trim()!==``&&Number.isFinite(t)&&t>0?Math.round(t):null});return[{...i,...o===`none`||o===`column`||o===`both`?{head:o}:{},...s?.some(e=>e!==null)?{widths:s}:{}}]}function Ov(e,t){switch(t.type){case`paragraph`:{let n=t.children.length===1?t.children[0]:void 0;if(n?.type===`image`)return[{type:`image`,src:n.url,...n.alt?{alt:n.alt}:{},...n.title?{caption:n.title}:{}}];let r=gv(e,t.children),i=r.map(e=>e.text).join(``).trim();return i.startsWith(`$$`)&&i.endsWith(`$$`)&&i.length>4&&uv(e,t,"$$ is not drawn in a doc: an equation is a ```math code block"),[{type:`paragraph`,content:r}]}case`heading`:return[{type:`heading`,level:t.depth,content:gv(e,t.children)}];case`list`:{let n=t.ordered===!0;return t.children.map((r,i)=>dee(e,r,n,i===0&&n?t.start??void 0:void 0))}case`blockquote`:{let{content:n,under:r}=vv(e,t.children);return[yv({type:`quote`,content:n},r)]}case`code`:return[{type:`code`,...t.lang?{language:t.lang}:{},code:t.value}];case`table`:return[{type:`table`,rows:t.children.map(t=>fee(e,t))}];case`thematicBreak`:return[{type:`divider`}];case`mdxJsxFlowElement`:{let n=n=>n.length>0?n:[{type:`embed`,source:lv(e,t)}];return t.name===`Block`?n(xv(e,t)):t.name===`Table`?Dv(e,t):t.name===`Callout`?Sv(e,t):t.name===`Component`?n(wv(e,t)):t.name===`Chart`?n(Tv(e,t)):t.name===`Columns`?n(Ev(e,t)):t.name===`PageBreak`?t.attributes.length>0||t.children.length>0?(uv(e,t,`<${nv} /> takes nothing`),n([])):[{type:`pagebreak`}]:t.name===`Column`?(uv(e,t,`a <${iv}> stands inside <${rv}>`),n([])):t.name===`img`&&t.children.length===0?n(Cv(e,t)):_v(t)?[{type:`paragraph`,content:[]}]:[{type:`embed`,source:lv(e,t)}]}case`footnoteDefinition`:{let{content:n,under:r}=vv(e,t.children);return[yv({type:`note`,label:t.label??t.identifier,content:n},r)]}case`mdxjsEsm`:case`definition`:return[{type:`source`,source:lv(e,t)}];case`mdxFlowExpression`:return uv(e,t,`{…} on its own is not drawn in a doc`),[{type:`source`,source:lv(e,t)}];default:return uv(e,t,`${t.type} is not drawn in a doc`),[{type:`source`,source:lv(e,t)}]}}function kv(e,t){return t.map((n,r)=>{let i=Ov(e,n),a=t[r-1],o=i[0];return n.type===`list`&&n.ordered===!0&&a?.type===`list`&&a.ordered===!0&&o?.type===`numbered`&&o.start===void 0&&(i[0]={...o,start:n.start??1}),i})}function Av(e,t){return kv(e,t).flat()}function jv(e){let t={source:e,problems:[]},n;try{n=Wf(e,{extensions:[rp(),lee(),cm(),bm(),gm(),Dm()],mdastExtensions:[sp(),om(),xp(),Op(),Sp(),Ip()]})}catch(t){let n=t;return{source:e,blocks:[],segments:[],page:{},problems:[{message:n.reason??n.message??`The file is not MDX`,...typeof n.line==`number`?{line:n.line}:{},...typeof n.column==`number`?{column:n.column}:{}}]}}let[r]=n.children,i=r?.type===`yaml`?r:void 0,a=i?n.children.slice(1):n.children,o=i?Mv(t,i):{},s=[],c=kv(t,a);a.forEach((e,t)=>{let n=e.position?.start.offset,r=e.position?.end.offset;n!==void 0&&r!==void 0&&s.push({start:n,end:r,blocks:c[t]??[]})});let l=i?.position?.start.offset,u=i?.position?.end.offset;return{source:e,blocks:s.flatMap(e=>e.blocks),segments:s,problems:t.problems,page:o,...l===void 0||u===void 0?{}:{frontMatter:{start:l,end:u}}}}function Mv(e,t){let n;try{n=Ne(t.value)}catch(n){return uv(e,t,`the front matter is not YAML: ${n instanceof Error?n.message:String(n)}`),{}}if(n==null)return{};if(typeof n!=`object`||Array.isArray(n))return uv(e,t,`the front matter holds keys: font, accent, cover, cover-y, page-numbers`),{};let r={};for(let[i,a]of Object.entries(n))i===`font`?Pl.includes(a)?r.font=a:uv(e,t,`a page's font is ${Pl.join(`, `)}, not ${JSON.stringify(a)}`):i===`cover`?typeof a==`string`&&a.trim()!==``?r.cover=a.trim():uv(e,t,`a page's cover is a picture's path`):i===`cover-y`?typeof a==`number`&&a>=0&&a<=100?r.coverY=a:uv(e,t,`a cover's cover-y is 0 (its top) to 100 (its bottom), not ${JSON.stringify(a)}`):i===`page-numbers`?a===!1?r.pageNumbers=!1:a!==!0&&uv(e,t,`a page's page-numbers is true or false, not ${JSON.stringify(a)}`):i===`accent`?typeof a==`string`&&a.trim()!==``?r.accent=a.trim():uv(e,t,`a page's accent is a colour`):uv(e,t,`the front matter holds font, accent, cover, cover-y and page-numbers: ${i} is not one of them`);return r}var Nv=[`link`,`span`,`underline`,`bold`,`italic`,`strike`,`code`];function Pv(e,t){switch(t){case`link`:return e.href;case`span`:return e.styles.color!==void 0||e.styles.background!==void 0?`${e.styles.color??``}\n${e.styles.background??``}`:void 0;default:return e.styles[t]?`on`:void 0}}var Fv=(e,t)=>t===void 0?``:` ${e}="${t.replace(/&/g,`&`).replace(/"/g,`"`)}"`,Iv=e=>e!==void 0&&/[\p{L}\p{N}]/u.test(e);function Lv(e,t,n=t){let r=``,i=Array.from(e);return i.forEach((e,a)=>{let o=i[a-1],s=i[a+1];switch(e){case`\\`:case`*`:case"`":case`[`:case`]`:case`<`:case`>`:case`{`:case`}`:case`~`:r+=`\\${e}`;break;case`_`:r+=Iv(o)&&Iv(s)?e:`\\${e}`;break;case`&`:r+=/^&(#\d+|#x[0-9a-f]+|[a-z][a-z0-9]*);/i.test(i.slice(a,a+34).join(``))?`&`:e;break;case`|`:r+=t?`\\|`:e;break;case`!`:r+=s===void 0?`\\!`:e;break;case`
|
|
285
|
+
`:r+=n?`<br />`:`\\
|
|
286
|
+
`;break;default:r+=e}}),r}function Rv(e){let t=Math.max(0,...(e.match(/`+/g)??[]).map(e=>e.length)),n="`".repeat(t+1),r=e.startsWith("`")||e.endsWith("`")||e.startsWith(` `)&&e.endsWith(` `)&&e.trim()!==``?` `:``;return`${n}${r}${e}${r}${n}`}var zv={bold:`**`,italic:`*`,strike:`~~`},Bv={underline:`u`,bold:`strong`,italic:`em`,strike:`del`,code:`code`};function Vv(e,t){let n=``,r=0,i=!0;for(;r<e.length;){let a=e[r];if(a===void 0)break;if(a.note!==void 0){n+=`[^${a.note}]`,i=!1,r++;continue}let o=Nv.find(e=>!t.used.has(e)&&Pv(a,e)!==void 0);if(o===void 0){n+=Lv(a.text,t.inTable,t.oneLine),i=!0,r++;continue}let s=Pv(a,o),c=r+1;for(;c<e.length;){let n=e[c];if(n===void 0||Pv(n,o)!==s||o===`code`&&Nv.some(e=>e!==`code`&&!t.used.has(e)&&Pv(n,e)!==void 0))break;c++}let l=e.slice(r,c),u=new Set([...t.used,o]),d=l.map(e=>e.text).join(``),f=e[c],p=f===void 0||Nv.every(e=>t.used.has(e)||Pv(f,e)===void 0);if(o===`code`)n+=d.includes(`
|
|
287
|
+
`)||t.inTable&&d.includes(`|`)?`<code>${Lv(d,t.inTable,t.oneLine)}</code>`:Rv(d);else if(o===`link`){let e=Vv(l,{...t,used:u}),r=(s??``).replace(/[\s()<>\\]/g,e=>encodeURIComponent(e));n+=`[${e}](${r})`}else if(o===`span`){let e=Vv(l,{...t,used:u}),r=l[0];n+=`<span${Fv(`color`,r?.styles.color)}${Fv(`bg`,r?.styles.background)}>${e}</span>`}else{let a=Vv(l,{...t,used:u}),s=zv[o],f=Array.from(d),m=r===0&&c===e.length,h=t.used.has(`bold`)||t.used.has(`italic`)||t.used.has(`strike`),g=e=>e!==void 0&&Nv.every(t=>u.has(t)||Pv(e,t)===void 0),_=o===`bold`&&l.every(e=>e.styles.italic===!0&&Nv.every(t=>t===`italic`||u.has(t)||Pv(e,t)===void 0)),v=s!==void 0&&Iv(f[0])&&Iv(f.at(-1))&&!d.includes(`
|
|
288
|
+
`)&&i&&p&&(!h||m&&o===`italic`&&t.used.has(`bold`))&&(g(l[0])&&g(l.at(-1))||_);n+=v?`${s}${a}${s}`:`<${Bv[o]}>${a}</${Bv[o]}>`}i=!1,r=c}return n}function Hv(e){if(/^(import|export)(\s|$)/.test(e))return`&#x${e.charCodeAt(0).toString(16)};${e.slice(1)}`;if(/^(#{1,6}(\s|$)|[-+](\s|$)|[=-]+\s*$|[|:\-\s]*-[|:\-\s]*$)/.test(e))return`\\${e}`;let t=/^(\d{1,9})([.)])(\s|$)/.exec(e);return t?.[1]===void 0?e:`${t[1]}\\${e.slice(t[1].length)}`}function Uv(e,t=!1,n=t){let r=Vv(e.filter(e=>e.text!==``).map((e,t,n)=>{if(e.note===void 0)return e;let r=n.slice(0,t).findLast(e=>e.note===void 0);return r===void 0?e:{...e,styles:{...r.styles},...r.href===void 0?{}:{href:r.href}}}),{inTable:t,oneLine:n,used:new Set}),i=e=>e.replace(/ +$/,``).replace(/^ +/,e=>` `.repeat(e.length));return n?i(r):r.split(`
|
|
289
|
+
`).map(e=>Hv(i(e))).join(`
|
|
290
|
+
`)}var Wv=(e,t)=>e.split(`
|
|
291
|
+
`).map((e,n)=>n===0||e===``?e:`${t}${e}`).join(`
|
|
292
|
+
`),Gv=e=>e.type===`bullet`||e.type===`numbered`||e.type===`check`,Kv=e=>`${Fv(`align`,e?.align)}${Fv(`color`,e?.color)}${Fv(`bg`,e?.background)}`,qv=e=>e!==void 0&&Object.keys(e).length>0;function Jv(e){return!(`content`in e)||e.type===`callout`?!1:qv(e.look)||e.type===`toggle`||e.type===`heading`&&e.toggle?!0:(e.type===`paragraph`||e.type===`heading`)&&(e.children?.length??0)>0}function Yv(e){let t=Math.max(2,...(e.match(/^\s*`{3,}/gm)??[]).map(e=>e.trim().length));return"`".repeat(t+1)}function Xv(e,t,n){let r=e.type===`numbered`?`${String(t)}${n} `:e.type===`check`?`- [${e.checked?`x`:` `}] `:`- `,i=` `.repeat(e.type===`numbered`?r.length:2),a=e.children??[],o=Uv(e.content)||(e.type===`check`&&(e.children??[]).length===0?`<br />`:``);if(a.length===0)return`${r}${Wv(o,i)}`.trimEnd();let s=o===``?`<br />`:o,[c]=a,l=c!==void 0&&Gv(c)&&Uv(c.content)!==``&&(c.type!==`numbered`||(c.start??1)===1),u=a.every(Gv)&&o!==``&&l;return`${r}${Wv(s,i)}${u?`
|
|
293
|
+
`:`
|
|
294
|
+
|
|
295
|
+
`}${i}${Wv(ry(a),i)}`}function Zv(e){switch(e.type){case`paragraph`:{let t=Uv(e.content);return t===``?`<br />`:t}case`heading`:return`${`#`.repeat(e.level)} ${Uv(e.content,!1,!0).replace(/(^| )(#+)$/,`$1\\$2`)}`.trimEnd();case`toggle`:return Uv(e.content)||`<br />`;case`quote`:{let t=Uv(e.content);return(e.children?.length?[t===``?`<br />`:t,ry(e.children)]:[t]).join(`
|
|
296
|
+
|
|
297
|
+
`).split(`
|
|
298
|
+
`).map(e=>e===``?`>`:`> ${e}`).join(`
|
|
299
|
+
`)}case`callout`:{let t=Uv(e.content),n=[t===``?`<br />`:t,...e.children?.length?[ry(e.children)]:[]].join(`
|
|
300
|
+
|
|
301
|
+
`);return`<${$_}${Fv(`icon`,e.icon)}${Fv(`color`,e.look?.color)}${Fv(`bg`,e.look?.background)}>\n\n${n}\n\n</${$_}>`}case`code`:{let t=Yv(e.code);return`${t}${e.language??``}\n${e.code}\n${t}`}case`image`:{let t=e.src.replace(/[\s()<>\\]/g,e=>encodeURIComponent(e));if(e.width!==void 0||e.align!==void 0)return`<img${Fv(`src`,e.src)}${Fv(`alt`,e.alt)}${Fv(`title`,e.caption)}${Fv(`width`,e.width===void 0?void 0:String(e.width))}${Fv(`align`,e.align)} />`;let n=e.caption===void 0?``:` "${e.caption.replace(/["\\]/g,`\\$&`)}"`;return``}case`table`:{let t=Math.max(1,...e.rows.map(e=>e.length)),n=e=>`| ${Array.from({length:t},(t,n)=>Uv(e[n]??[],!0)).join(` | `)} |`,[r,...i]=e.rows,a=[n(r??[]),`| ${Array.from({length:t},()=>`---`).join(` | `)} |`,...i.map(n)].join(`
|
|
302
|
+
`),o=e.widths?.some(e=>e!==null)?e.widths.map(e=>e===null?``:String(e)).join(`,`):void 0;return o===void 0&&e.head===void 0?a:`<${ev}${Fv(`widths`,o)}${Fv(`head`,e.head)}>\n\n${a}\n\n</${ev}>`}case`divider`:return`---`;case`component`:{let t=e=>e===void 0?void 0:String(e),n=Object.entries(e.props).map(([e,t])=>Fv(e,t)).join(``);return`<${tv}${Fv(`of`,e.of)}${Fv(`width`,t(e.width))}${Fv(`height`,t(e.height))}${Fv(`at`,t(e.at))}${n}${Fv(`alt`,e.alt)}${Fv(`title`,e.caption)}${Fv(`align`,e.align)} />`}case`chart`:return Qv(e);case`pagebreak`:return`<${nv} />`;case`note`:{let t=Uv(e.content)||`<br />`,n=e.children?.length?`\n\n${ry(e.children).split(`
|
|
303
|
+
`).map(e=>e===``?e:` ${e}`).join(`
|
|
304
|
+
`)}`:``;return`[^${e.label}]: ${Wv(t,` `)}${n}`}case`columns`:return[`<${rv}>`,...e.columns.map(e=>{let t=ry(e.blocks);return`<${iv}${Fv(`width`,e.width===void 0?void 0:String(e.width))}>\n\n${t===``?`<br />`:t}\n\n</${iv}>`}),`</${rv}>`].join(`
|
|
305
|
+
|
|
306
|
+
`);case`embed`:case`source`:return e.source}}function Qv(e){let t=e=>e===void 0?void 0:String(e),n=e=>e===void 0?void 0:e.join(`,`),r=e.labels?.length===1&&e.labels[0]===`value`?` labels`:Fv(`labels`,n(e.labels)),i=[Fv(`type`,e.kind),Fv(`title`,e.title),Fv(`data`,e.data),Fv(`categories`,e.categories),Fv(`series`,n(e.series)),Fv(`legend`,e.legend),r,Fv(`format`,e.format),Fv(`min`,t(e.min)),Fv(`max`,t(e.max)),Fv(`colors`,n(e.colors)),Fv(`width`,t(e.width)),Fv(`height`,t(e.height)),Fv(`alt`,e.alt)].join(``);if(e.table===void 0)return`<${av}${i} />`;let a=Math.max(1,...e.table.map(e=>e.length)),o=e=>`| ${Array.from({length:a},(t,n)=>Lv(e[n]??``,!0)).join(` | `)} |`,[s,...c]=e.table;return`<${av}${i}>\n\n${[o(s??[]),`| ${Array.from({length:a},()=>`---`).join(` | `)} |`,...c.map(o)].join(`
|
|
307
|
+
`)}\n\n</${av}>`}function $v(e){let t={...e.font===void 0?{}:{font:e.font},...e.accent===void 0?{}:{accent:e.accent},...e.cover===void 0?{}:{cover:e.cover},...e.cover===void 0||e.coverY===void 0?{}:{"cover-y":e.coverY},...e.pageNumbers===!1?{"page-numbers":!1}:{}};return Object.keys(t).length===0?``:Ee(t,{lineWidth:0}).trimEnd()}function ey(e,t){let n=$v(t),r=n===``?``:`---\n${n}\n---`,i=e.frontMatter;if(i===void 0){if(r===``)return e.source;let t=e.source.replace(/^\s+/u,``);return t===``?`${r}\n`:`${r}\n\n${t}`}let a=e.source.slice(i.end).replace(/^\s+/u,``);return r===``?a:a===``?`${r}\n`:`${r}\n\n${a}`}function ty(e){let t=e.type===`toggle`||e.type===`heading`&&e.toggle,{children:n}=e,r={...e};delete r.look,delete r.children;let i=r.type===`toggle`?{type:`paragraph`,content:r.content}:r.type===`heading`?{type:`heading`,level:r.level,content:r.content}:r,a=Gv(i)||i.type===`quote`?ry([{...i,...n?{children:n}:{}}]):ry([i,...n??[]]);return`<${Q_}${Kv(e.look)}${t?` toggle`:``}>\n\n${a}\n\n</${Q_}>`}function ny(e,t){return Gv(e)&&Gv(t)&&!Jv(e)&&!Jv(t)&&e.type===`numbered`==(t.type===`numbered`)&&(t.type!==`numbered`||t.start===void 0)}function ry(e){let t=[],n=0,r;for(;n<e.length;){let i=e[n];if(i===void 0)break;if(Jv(i)){t.push(ty(i)),r=void 0,n++;continue}if(!Gv(i)){t.push(n===0&&i.type===`divider`?`***`:Zv(i)),r=void 0,n++;continue}let a=i.type===`numbered`,o=i.type===`numbered`?i.start??1:1,s=a&&r===`.`?`)`:`.`,c=[],l=n;for(;l<e.length;){let t=e[l];if(t===void 0||!Gv(t)||Jv(t)||t.type===`numbered`!==a||l>n&&!ny(i,t))break;c.push(Xv(t,o+(l-n),s)),l++}let u=c.some(e=>e.includes(`
|
|
308
|
+
|
|
309
|
+
`));t.push(c.join(u?`
|
|
310
|
+
|
|
311
|
+
`:`
|
|
312
|
+
`)),r=a?s:void 0,n=l}return t.join(`
|
|
313
|
+
|
|
314
|
+
`)}function iy(e,t){let n=t.map(Bl),r=e.segments.map(e=>({...e,keys:e.blocks.map(Bl)})),i=r.length,a=n.length,o=(e,t)=>{let i=r[e]?.keys??[];return i.length>0&&t+i.length<=a&&i.every((e,r)=>n[t+r]===e)},s=Array.from({length:i+1},()=>Array(a+1).fill(0)),c=(e,t)=>s[e]?.[t]??0;for(let e=i-1;e>=0;e--)for(let t=a;t>=0;t--){let n=r[e]?.keys.length??0,i=Math.max(c(e+1,t),t<a?c(e,t+1):0);o(e,t)&&(i=Math.max(i,n+c(e+1,t+n)));let l=s[e];l&&(l[t]=i)}let l=[],u=0,d=0,f=[],p=()=>{f.length>0&&l.push({blocks:f}),f=[]};for(;u<i||d<a;){let e=r[u]?.keys.length??0;if(u<i&&o(u,d)&&c(u,d)===e+c(u+1,d+e))p(),l.push({kept:u}),d+=e,u++;else if(u<i&&c(u,d)===c(u+1,d))u++;else{let e=t[d];e&&f.push(e),d++}}p();let m=e.source,h=e=>{let t=r[e];return t!==void 0&&!m.slice(t.start,t.end).includes(`
|
|
315
|
+
|
|
316
|
+
`)};for(let e=0;e<l.length;e++){let t=l[e];if(!t||!(`kept`in t))continue;let n=r[t.kept]?.blocks??[],i=n[0],a=n.at(-1),o=l[e-1],s=l[e+1],c=o&&`blocks`in o?o.blocks.at(-1):void 0,u=s&&`blocks`in s?s.blocks[0]:void 0,d=c!==void 0&&i!==void 0&&ny(c,i),f=u!==void 0&&a!==void 0&&ny(a,u);(d||f)&&h(t.kept)&&(l[e]={blocks:[...n]})}for(let e=l.length-1;e>0;e--){let t=l[e],n=l[e-1];t&&n&&`blocks`in t&&`blocks`in n&&(n.blocks.push(...t.blocks),l.splice(e,1))}let g=r[0],_=r.at(-1),v=g?m.slice(0,g.start):e.frontMatter?`${m.slice(0,e.frontMatter.end)}\n\n`:``,y=_?m.slice(_.end):m===``?``:`
|
|
317
|
+
`,b=v,x;return l.forEach((e,t)=>{if(t>0){let n=l[t-1],i=`kept`in e&&n&&`kept`in n&&x!==void 0&&e.kept===x+1?m.slice(r[x]?.end??0,r[e.kept]?.start??0):`
|
|
318
|
+
|
|
319
|
+
`;b+=i}if(`kept`in e){let t=r[e.kept];t&&(b+=m.slice(t.start,t.end)),x=e.kept}else b+=ry(e.blocks),x=void 0}),l.length===0&&e.frontMatter!==void 0?`${m.slice(0,e.frontMatter.end)}\n`:(e.frontMatter===void 0&&t[0]?.type===`divider`&&(b=b.replace(/^---[ \t]*(?=\n|$)/u,`***`)),b+(y===``&&b!==``?`
|
|
320
|
+
`:y))}function ay(e){return e?.type===`heading`&&e.level===1&&e.toggle!==!0&&(e.children?.length??0)===0}function oy(e){let t=e[0];return ay(t)?{title:t,body:e.slice(1)}:{title:void 0,body:[...e]}}function sy(e){return ay(e)?e.content.map(e=>e.text).join(``):``}function cy(e,t){let n=t.replace(/\s+/g,` `).trim();if(n===``)return;if(ay(e)&&sy(e)===n)return e;let r=[{text:n,styles:{}}];return{type:`heading`,level:1,...ay(e)&&e.look?{look:e.look}:{},content:r}}function ly(e,t){return e?[e,...t]:[...t]}var uy={slash_menu:{heading:{title:`Heading 1`,subtext:`Top-level heading`,aliases:[`h`,`heading1`,`h1`],group:`Headings`},heading_2:{title:`Heading 2`,subtext:`Key section heading`,aliases:[`h2`,`heading2`,`subheading`],group:`Headings`},heading_3:{title:`Heading 3`,subtext:`Subsection and group heading`,aliases:[`h3`,`heading3`,`subheading`],group:`Headings`},heading_4:{title:`Heading 4`,subtext:`Minor subsection heading`,aliases:[`h4`,`heading4`,`subheading4`],group:`Subheadings`},heading_5:{title:`Heading 5`,subtext:`Small subsection heading`,aliases:[`h5`,`heading5`,`subheading5`],group:`Subheadings`},heading_6:{title:`Heading 6`,subtext:`Lowest-level heading`,aliases:[`h6`,`heading6`,`subheading6`],group:`Subheadings`},toggle_heading:{title:`Toggle Heading 1`,subtext:`Toggleable top-level heading`,aliases:[`h`,`heading1`,`h1`,`collapsable`],group:`Subheadings`},toggle_heading_2:{title:`Toggle Heading 2`,subtext:`Toggleable key section heading`,aliases:[`h2`,`heading2`,`subheading`,`collapsable`],group:`Subheadings`},toggle_heading_3:{title:`Toggle Heading 3`,subtext:`Toggleable subsection and group heading`,aliases:[`h3`,`heading3`,`subheading`,`collapsable`],group:`Subheadings`},quote:{title:`Quote`,subtext:`Quote or excerpt`,aliases:[`quotation`,`blockquote`,`bq`],group:`Basic blocks`},toggle_list:{title:`Toggle List`,subtext:`List with hideable sub-items`,aliases:[`li`,`list`,`toggleList`,`toggle list`,`collapsable list`],group:`Basic blocks`},numbered_list:{title:`Numbered List`,subtext:`List with ordered items`,aliases:[`ol`,`li`,`list`,`numberedlist`,`numbered list`],group:`Basic blocks`},bullet_list:{title:`Bullet List`,subtext:`List with unordered items`,aliases:[`ul`,`li`,`list`,`bulletlist`,`bullet list`],group:`Basic blocks`},check_list:{title:`Check List`,subtext:`List with checkboxes`,aliases:[`ul`,`li`,`list`,`checklist`,`check list`,`checked list`,`checkbox`],group:`Basic blocks`},paragraph:{title:`Paragraph`,subtext:`The body of your document`,aliases:[`p`,`paragraph`],group:`Basic blocks`},code_block:{title:`Code Block`,subtext:`Code block with syntax highlighting`,aliases:[`code`,`pre`],group:`Basic blocks`},page_break:{title:`Page Break`,subtext:`Page separator`,aliases:[`page`,`break`,`separator`],group:`Basic blocks`},table:{title:`Table`,subtext:`Table with editable cells`,aliases:[`table`],group:`Advanced`},image:{title:`Image`,subtext:`Resizable image with caption`,aliases:[`image`,`imageUpload`,`upload`,`img`,`picture`,`media`,`url`],group:`Media`},video:{title:`Video`,subtext:`Resizable video with caption`,aliases:[`video`,`videoUpload`,`upload`,`mp4`,`film`,`media`,`url`],group:`Media`},audio:{title:`Audio`,subtext:`Embedded audio with caption`,aliases:[`audio`,`audioUpload`,`upload`,`mp3`,`sound`,`media`,`url`],group:`Media`},file:{title:`File`,subtext:`Embedded file`,aliases:[`file`,`upload`,`embed`,`media`,`url`],group:`Media`},emoji:{title:`Emoji`,subtext:`Search for and insert an emoji`,aliases:[`emoji`,`emote`,`emotion`,`face`],group:`Others`},divider:{title:`Divider`,subtext:`Visually divide blocks`,aliases:[`divider`,`hr`,`line`,`horizontal rule`],group:`Basic blocks`}},placeholders:{default:`Enter text or type '/' for commands`,heading:`Heading`,toggleListItem:`Toggle`,bulletListItem:`List`,numberedListItem:`List`,checkListItem:`List`,emptyDocument:void 0,new_comment:`Write a comment...`,edit_comment:`Edit comment...`,comment_reply:`Add comment...`},file_blocks:{add_button_text:{image:`Add image`,video:`Add video`,audio:`Add audio`,file:`Add file`}},toggle_blocks:{add_block_button:`Empty toggle. Click to add a block.`,toggle_button:`Expand or collapse`},code_block:{add_source_button_text:`Add source code`,ok_button_text:`OK`},side_menu:{add_block_label:`Add block`,drag_handle_label:`Open block menu`},drag_handle:{delete_menuitem:`Delete`,colors_menuitem:`Colors`,header_row_menuitem:`Header row`,header_column_menuitem:`Header column`},table_handle:{delete_column_menuitem:`Delete column`,delete_row_menuitem:`Delete row`,add_left_menuitem:`Add column left`,add_right_menuitem:`Add column right`,add_above_menuitem:`Add row above`,add_below_menuitem:`Add row below`,split_cell_menuitem:`Split cell`,merge_cells_menuitem:`Merge cells`,background_color_menuitem:`Background color`},suggestion_menu:{no_items_title:`No items found`},color_picker:{text_title:`Text`,background_title:`Background`,colors:{default:`Auto`,gray:`Gray`,brown:`Brown`,red:`Red`,orange:`Orange`,yellow:`Yellow`,green:`Green`,blue:`Blue`,purple:`Purple`,pink:`Pink`}},formatting_toolbar:{bold:{tooltip:`Bold`,secondary_tooltip:`Mod+B`},italic:{tooltip:`Italic`,secondary_tooltip:`Mod+I`},underline:{tooltip:`Underline`,secondary_tooltip:`Mod+U`},strike:{tooltip:`Strike`,secondary_tooltip:`Mod+Shift+S`},code:{tooltip:`Code`,secondary_tooltip:``},colors:{tooltip:`Colors`},link:{tooltip:`Create link`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`Edit caption`,input_placeholder:`Edit caption`},file_replace:{tooltip:{image:`Replace image`,video:`Replace video`,audio:`Replace audio`,file:`Replace file`}},file_rename:{tooltip:{image:`Rename image`,video:`Rename video`,audio:`Rename audio`,file:`Rename file`},input_placeholder:{image:`Rename image`,video:`Rename video`,audio:`Rename audio`,file:`Rename file`}},file_download:{tooltip:{image:`Download image`,video:`Download video`,audio:`Download audio`,file:`Download file`}},file_delete:{tooltip:{image:`Delete image`,video:`Delete video`,audio:`Delete audio`,file:`Delete file`}},file_preview_toggle:{tooltip:`Toggle preview`},nest:{tooltip:`Nest block`,secondary_tooltip:`Tab`},unnest:{tooltip:`Unnest block`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`Align text left`},align_center:{tooltip:`Align text center`},align_right:{tooltip:`Align text right`},align_justify:{tooltip:`Justify text`},table_cell_merge:{tooltip:`Merge cells`},comment:{tooltip:`Add comment`}},file_panel:{upload:{title:`Upload`,file_placeholder:{image:`Upload image`,video:`Upload video`,audio:`Upload audio`,file:`Upload file`},upload_error:`Error: Upload failed`},embed:{title:`Embed`,embed_button:{image:`Embed image`,video:`Embed video`,audio:`Embed audio`,file:`Embed file`},url_placeholder:`Enter URL`}},link_toolbar:{delete:{tooltip:`Remove link`},edit:{text:`Edit link`,tooltip:`Edit`},open:{tooltip:`Open in new tab`},form:{title_placeholder:`Edit title`,url_placeholder:`Edit URL`}},comments:{edited:`edited`,save_button_text:`Save`,cancel_button_text:`Cancel`,deleted_reference_text:`Original content deleted`,discard_pending_comment:`Are you sure you want to discard this comment?`,actions:{add_reaction:`Add reaction`,resolve:`Resolve`,reopen:`Re-open`,edit_comment:`Edit comment`,delete_comment:`Delete comment`,more_actions:`More actions`},reactions:{reacted_by:`Reacted by`},sidebar:{marked_as_resolved:`Marked as resolved`,more_replies:e=>`${e} more replies`}},suggestion_changes:{formatting_change:`Formatting Change`,deleted:`Deleted`,inserted:`Inserted`,inserted_by:e=>`Inserted by: ${e}`,deleted_by:e=>`Deleted by: ${e}`,changed:`Changed`,changed_by:e=>`Changed by: ${e}`,formatting_change_by:(e,t)=>`Formatting change (${e}) by: ${t}`},versioning:{start_of_document:`Start of document`,compare_since_beginning_menuitem:`Compare since beginning`,title:`History`,close:`Close`,show_named_only:`Show named versions only`,show_all:`Show all versions`,comparison_on:`Turn on comparison`,comparison_off:`Turn off comparison`,versions_list:`Versions`,empty:`No versions yet`,empty_named_only:`No named versions`,current_version:`Current version`,before_restore:`Before restore`,comparing_to:`Comparing to`,restored_from:e=>`Restored from ${e}`,more_actions:`More actions`,version_name_input:`Version name`,name_version_menuitem:`Name this version`,rename_menuitem:`Rename`,compare_with_menuitem:`Compare with this version`,restore_menuitem:`Restore`,delete_menuitem:`Delete`,action_failed:`Something went wrong. Please try again.`,history_load_failed:`Failed to load version history`},exporter:{open_file:`Open file`,open_video_file:`Open video`,open_audio_file:`Open audio`},generic:{loading:`Loading...`,load_more:`Load more`,ctrl_shortcut:`Ctrl`,form_submit:`OK`}},dy={en:uy,"zh-cn":{slash_menu:{heading:{title:`一级标题`,subtext:`用于顶级标题`,aliases:[`h`,`heading1`,`h1`,`标题`,`一级标题`],group:`标题`},heading_2:{title:`二级标题`,subtext:`用于关键部分`,aliases:[`h2`,`heading2`,`subheading`,`标题`,`二级标题`,`副标题`],group:`标题`},heading_3:{title:`三级标题`,subtext:`用于小节和分组标题`,aliases:[`h3`,`heading3`,`subheading`,`标题`,`三级标题`],group:`标题`},heading_4:{title:`四级标题`,subtext:`用于较小的子节标题`,aliases:[`h4`,`heading4`,`subheading4`,`四级标题`],group:`副标题`},heading_5:{title:`五级标题`,subtext:`用于较小的子节标题`,aliases:[`h5`,`heading5`,`subheading5`,`五级标题`],group:`副标题`},heading_6:{title:`六级标题`,subtext:`用于最低层级的标题`,aliases:[`h6`,`heading6`,`subheading6`,`六级标题`],group:`副标题`},toggle_heading:{title:`可折叠一级标题`,subtext:`可折叠的顶级标题`,aliases:[`h`,`heading1`,`h1`,`标题`,`一级标题`,`折叠`],group:`副标题`},toggle_heading_2:{title:`可折叠二级标题`,subtext:`可折叠的关键部分标题`,aliases:[`h2`,`heading2`,`subheading`,`标题`,`二级标题`,`副标题`,`折叠`],group:`副标题`},toggle_heading_3:{title:`可折叠三级标题`,subtext:`可折叠的小节和分组标题`,aliases:[`h3`,`heading3`,`subheading`,`标题`,`三级标题`,`折叠`],group:`副标题`},quote:{title:`引用`,subtext:`引用或摘录`,aliases:[`quotation`,`blockquote`,`bq`],group:`基本块`},numbered_list:{title:`有序列表`,subtext:`用于显示有序列表`,aliases:[`ol`,`li`,`list`,`numberedlist`,`numbered list`,`列表`,`有序列表`],group:`基础`},bullet_list:{title:`无序列表`,subtext:`用于显示无序列表`,aliases:[`ul`,`li`,`list`,`bulletlist`,`bullet list`,`列表`,`无序列表`],group:`基础`},check_list:{title:`检查清单`,subtext:`用于显示带有复选框的列表`,aliases:[`ul`,`li`,`checklist`,`checked list`,`列表`,`检查清单`,`勾选列表`,`复选框`],group:`基础`},toggle_list:{title:`可折叠列表`,subtext:`带有可隐藏子项的列表`,aliases:[`li`,`列表`,`可折叠列表`,`折叠列表`],group:`基础`},paragraph:{title:`段落`,subtext:`用于文档正文`,aliases:[`p`,`paragraph`,`text`,`正文`],group:`基础`},code_block:{title:`代码块`,subtext:`用于显示带有语法高亮的代码块`,aliases:[`code`,`pre`,`代码`,`预格式`],group:`基础`},page_break:{title:`分页符`,subtext:`页面分隔符`,aliases:[`page`,`break`,`separator`,`分页`,`分隔符`],group:`基础`},table:{title:`表格`,subtext:`使用表格`,aliases:[`table`,`表格`],group:`高级功能`},image:{title:`图片`,subtext:`插入图片`,aliases:[`图片`,`上传图片`,`上传`,`image`,`img`,`相册`,`媒体`,`url`],group:`媒体`},video:{title:`视频`,subtext:`插入视频`,aliases:[`视频`,`视频上传`,`上传`,`video`,`mp4`,`电影`,`媒体`,`url`,`驱动`,`dropbox`],group:`媒体`},audio:{title:`音频`,subtext:`插入音频`,aliases:[`音频`,`音频上传`,`上传`,`audio`,`mp3`,`声音`,`媒体`,`url`,`驱动`,`dropbox`],group:`媒体`},file:{title:`文件`,subtext:`插入文件`,aliases:[`文件`,`上传`,`file`,`嵌入`,`媒体`,`url`],group:`媒体`},emoji:{title:`表情符号`,subtext:`用于插入表情符号`,aliases:[`表情符号`,`emoji`,`face`,`emote`,`表情`,`表情表达`,`表情`],group:`其他`},divider:{title:`分隔线`,subtext:`分隔线区块`,aliases:[`divider`,`hr`,`horizontal rule`],group:`基础区块`}},placeholders:{default:`输入 '/' 以使用命令`,heading:`标题`,toggleListItem:`切换`,bulletListItem:`列表`,numberedListItem:`列表`,checkListItem:`列表`,new_comment:`写评论...`,edit_comment:`编辑评论...`,comment_reply:`添加评论...`},file_blocks:{add_button_text:{image:`添加图片`,video:`添加视频`,audio:`添加音频`,file:`添加文件`}},toggle_blocks:{add_block_button:`空的切换区。点击添加区块。`,toggle_button:`展开或收起`},code_block:{add_source_button_text:`添加源代码`,ok_button_text:`确定`},side_menu:{add_block_label:`添加块`,drag_handle_label:`打开菜单`},drag_handle:{delete_menuitem:`删除`,colors_menuitem:`颜色`,header_row_menuitem:`行标题`,header_column_menuitem:`列标题`},table_handle:{delete_column_menuitem:`删除列`,delete_row_menuitem:`删除行`,add_left_menuitem:`左侧添加列`,add_right_menuitem:`右侧添加列`,add_above_menuitem:`上方添加行`,add_below_menuitem:`下方添加行`,split_cell_menuitem:`拆分单元格`,merge_cells_menuitem:`合并单元格`,background_color_menuitem:`背景色`},suggestion_menu:{no_items_title:`无匹配项`},color_picker:{text_title:`文本`,background_title:`背景色`,colors:{default:`自动`,gray:`灰色`,brown:`棕色`,red:`红色`,orange:`橙色`,yellow:`黄色`,green:`绿色`,blue:`蓝色`,purple:`紫色`,pink:`粉色`}},formatting_toolbar:{bold:{tooltip:`加粗`,secondary_tooltip:`Mod+B`},italic:{tooltip:`斜体`,secondary_tooltip:`Mod+I`},underline:{tooltip:`下划线`,secondary_tooltip:`Mod+U`},strike:{tooltip:`删除线`,secondary_tooltip:`Mod+Shift+X`},code:{tooltip:`代码标记`,secondary_tooltip:``},colors:{tooltip:`颜色`},link:{tooltip:`添加链接`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`编辑标题`,input_placeholder:`编辑标题`},file_replace:{tooltip:{image:`替换图片`,video:`替换视频`,audio:`替换音频`,file:`替换文件`}},file_rename:{tooltip:{image:`重命名图片`,video:`重命名视频`,audio:`重命名音频`,file:`重命名文件`},input_placeholder:{image:`重命名图片`,video:`重命名视频`,audio:`重命名音频`,file:`重命名文件`}},file_download:{tooltip:{image:`下载图片`,video:`下载视频`,audio:`下载音频`,file:`下载文件`}},file_delete:{tooltip:{image:`删除图片`,video:`删除视频`,audio:`删除音频`,file:`删除文件`}},file_preview_toggle:{tooltip:`切换预览`},nest:{tooltip:`嵌套`,secondary_tooltip:`Tab`},unnest:{tooltip:`取消嵌套`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`左对齐`},align_center:{tooltip:`居中`},align_right:{tooltip:`右对齐`},align_justify:{tooltip:`文本对齐`},table_cell_merge:{tooltip:`合并单元格`},comment:{tooltip:`添加评论`}},file_panel:{upload:{title:`上传`,file_placeholder:{image:`上传图片`,video:`上传视频`,audio:`上传音频`,file:`上传文件`},upload_error:`Error:上传失败`},embed:{title:`嵌入`,embed_button:{image:`嵌入图片`,video:`嵌入视频`,audio:`嵌入音频`,file:`嵌入文件`},url_placeholder:`输入图片地址`}},link_toolbar:{delete:{tooltip:`清除链接`},edit:{text:`编辑链接`,tooltip:`编辑`},open:{tooltip:`新窗口打开`},form:{title_placeholder:`编辑标题`,url_placeholder:`编辑链接地址`}},comments:{edited:`已编辑`,save_button_text:`保存`,cancel_button_text:`取消`,deleted_reference_text:`原始内容已删除`,discard_pending_comment:`确定要放弃此评论吗?`,actions:{add_reaction:`添加反应`,resolve:`解决`,reopen:`重新打开`,edit_comment:`编辑评论`,delete_comment:`删除评论`,more_actions:`更多操作`},reactions:{reacted_by:`已回应`},sidebar:{marked_as_resolved:`标记为已解决`,more_replies:e=>`还有 ${e} 条回复`}},suggestion_changes:{formatting_change:`格式更改`,deleted:`已删除`,inserted:`已插入`,inserted_by:e=>`插入者:${e}`,deleted_by:e=>`删除者:${e}`,changed:`已更改`,changed_by:e=>`更改者:${e}`,formatting_change_by:(e,t)=>`格式更改(${e}),更改者:${t}`},versioning:{start_of_document:`文档开始`,compare_since_beginning_menuitem:`从头开始比较`,title:`历史记录`,close:`关闭`,show_named_only:`仅显示已命名的版本`,show_all:`显示所有版本`,comparison_on:`开启对比`,comparison_off:`关闭对比`,versions_list:`版本`,empty:`暂无版本`,empty_named_only:`暂无命名版本`,current_version:`当前版本`,before_restore:`恢复前`,comparing_to:`对比对象`,restored_from:e=>`恢复自 ${e}`,more_actions:`更多操作`,version_name_input:`版本名称`,name_version_menuitem:`命名此版本`,rename_menuitem:`重命名`,compare_with_menuitem:`与此版本对比`,restore_menuitem:`恢复`,delete_menuitem:`删除`,action_failed:`出错了,请重试。`,history_load_failed:`无法加载版本历史记录`},exporter:{open_file:`打开文件`,open_video_file:`打开视频`,open_audio_file:`打开音频`},generic:{loading:`加载中...`,load_more:`加载更多`,ctrl_shortcut:`Ctrl`,form_submit:`确定`}},"zh-tw":{slash_menu:{heading:{title:`一級標題`,subtext:`用於頂級標題`,aliases:[`h`,`heading1`,`h1`,`標題`,`一級標題`],group:`標題`},heading_2:{title:`二級標題`,subtext:`用於關鍵部分`,aliases:[`h2`,`heading2`,`subheading`,`標題`,`二級標題`,`副標題`],group:`標題`},heading_3:{title:`三級標題`,subtext:`用於小節和分組標題`,aliases:[`h3`,`heading3`,`subheading`,`標題`,`三級標題`],group:`標題`},heading_4:{title:`四級標題`,subtext:`用於小節和分組標題`,aliases:[`h4`,`heading4`,`subheading`,`標題`,`四級標題`],group:`副標題`},heading_5:{title:`五級標題`,subtext:`用於小節和分組標題`,aliases:[`h5`,`heading5`,`subheading`,`標題`,`五級標題`],group:`副標題`},heading_6:{title:`六級標題`,subtext:`用於小節和分組標題`,aliases:[`h6`,`heading6`,`subheading`,`標題`,`六級標題`],group:`副標題`},toggle_heading:{title:`可摺疊一級標題`,subtext:`可摺疊的頂級標題`,aliases:[`h`,`heading1`,`h1`,`標題`,`一級標題`,`摺疊`],group:`副標題`},toggle_heading_2:{title:`可摺疊二級標題`,subtext:`可摺疊的關鍵部分標題`,aliases:[`h2`,`heading2`,`subheading`,`標題`,`二級標題`,`副標題`,`摺疊`],group:`副標題`},toggle_heading_3:{title:`可摺疊三級標題`,subtext:`可摺疊的小節和分組標題`,aliases:[`h3`,`heading3`,`subheading`,`標題`,`三級標題`,`摺疊`],group:`副標題`},quote:{title:`引用`,subtext:`引用或摘錄`,aliases:[`quotation`,`blockquote`,`bq`],group:`基本區塊`},numbered_list:{title:`有序列表`,subtext:`用於顯示有序列表`,aliases:[`ol`,`li`,`list`,`numberedlist`,`numbered list`,`列表`,`有序列表`],group:`基礎`},bullet_list:{title:`無序列表`,subtext:`用於顯示無序列表`,aliases:[`ul`,`li`,`list`,`bulletlist`,`bullet list`,`列表`,`無序列表`],group:`基礎`},check_list:{title:`檢查清單`,subtext:`用於顯示帶有核取方塊的列表`,aliases:[`ul`,`li`,`checklist`,`checked list`,`列表`,`檢查清單`,`勾選列表`,`核取方塊`],group:`基礎`},toggle_list:{title:`可摺疊列表`,subtext:`帶有可隱藏子項的列表`,aliases:[`li`,`列表`,`可摺疊列表`,`摺疊列表`],group:`基礎`},paragraph:{title:`段落`,subtext:`用於文件正文`,aliases:[`p`,`paragraph`,`text`,`正文`],group:`基礎`},code_block:{title:`程式碼區塊`,subtext:`用於顯示帶有語法標記的程式碼區塊`,aliases:[`code`,`pre`,`程式碼`,`預格式`],group:`基礎`},page_break:{title:`分頁符`,subtext:`頁面分隔符`,aliases:[`page`,`break`,`separator`,`分頁`,`分隔符`],group:`基礎`},table:{title:`表格`,subtext:`使用表格`,aliases:[`table`,`表格`],group:`進階功能`},image:{title:`圖片`,subtext:`插入圖片`,aliases:[`圖片`,`上傳圖片`,`上傳`,`image`,`img`,`相簿`,`媒體`,`url`],group:`媒體`},video:{title:`影片`,subtext:`插入影片`,aliases:[`影片`,`影片上傳`,`上傳`,`video`,`mp4`,`電影`,`媒體`,`url`,`雲端硬碟`,`dropbox`],group:`媒體`},audio:{title:`音訊`,subtext:`插入音訊`,aliases:[`音訊`,`音訊上傳`,`上傳`,`audio`,`mp3`,`聲音`,`媒體`,`url`,`雲端硬碟`,`dropbox`],group:`媒體`},file:{title:`檔案`,subtext:`插入檔案`,aliases:[`檔案`,`上傳`,`file`,`嵌入`,`媒體`,`url`],group:`媒體`},emoji:{title:`表情符號`,subtext:`用於插入表情符號`,aliases:[`表情符號`,`emoji`,`face`,`emote`,`表情`,`表情表達`,`表情`],group:`其他`},divider:{title:`分隔線`,subtext:`分隔線區塊`,aliases:[`divider`,`hr`,`horizontal rule`],group:`基礎區塊`}},placeholders:{default:`輸入 '/' 以使用指令`,heading:`標題`,toggleListItem:`切換`,bulletListItem:`列表`,numberedListItem:`列表`,checkListItem:`列表`,new_comment:`撰寫評論...`,edit_comment:`編輯評論...`,comment_reply:`新增評論...`},file_blocks:{add_button_text:{image:`新增圖片`,video:`新增影片`,audio:`新增音訊`,file:`新增檔案`}},toggle_blocks:{add_block_button:`空的切換區。點擊新增區塊。`,toggle_button:`展開或收合`},code_block:{add_source_button_text:`新增原始碼`,ok_button_text:`確定`},side_menu:{add_block_label:`新增區塊`,drag_handle_label:`開啟選單`},drag_handle:{delete_menuitem:`刪除`,colors_menuitem:`顏色`,header_row_menuitem:`列標題`,header_column_menuitem:`欄標題`},table_handle:{delete_column_menuitem:`刪除欄`,delete_row_menuitem:`刪除列`,add_left_menuitem:`左側新增欄`,add_right_menuitem:`右側新增欄`,add_above_menuitem:`上方新增列`,add_below_menuitem:`下方新增列`,split_cell_menuitem:`分割儲存格`,merge_cells_menuitem:`合併儲存格`,background_color_menuitem:`背景色`},suggestion_menu:{no_items_title:`無相符項目`},color_picker:{text_title:`文字`,background_title:`背景色`,colors:{default:`自動`,gray:`灰色`,brown:`棕色`,red:`紅色`,orange:`橙色`,yellow:`黃色`,green:`綠色`,blue:`藍色`,purple:`紫色`,pink:`粉色`}},formatting_toolbar:{bold:{tooltip:`粗體`,secondary_tooltip:`Mod+B`},italic:{tooltip:`斜體`,secondary_tooltip:`Mod+I`},underline:{tooltip:`底線`,secondary_tooltip:`Mod+U`},strike:{tooltip:`刪除線`,secondary_tooltip:`Mod+Shift+X`},code:{tooltip:`程式碼標記`,secondary_tooltip:``},colors:{tooltip:`顏色`},link:{tooltip:`新增連結`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`編輯標題`,input_placeholder:`編輯標題`},file_replace:{tooltip:{image:`替換圖片`,video:`替換影片`,audio:`替換音訊`,file:`替換檔案`}},file_rename:{tooltip:{image:`重新命名圖片`,video:`重新命名影片`,audio:`重新命名音訊`,file:`重新命名檔案`},input_placeholder:{image:`重新命名圖片`,video:`重新命名影片`,audio:`重新命名音訊`,file:`重新命名檔案`}},file_download:{tooltip:{image:`下載圖片`,video:`下載影片`,audio:`下載音訊`,file:`下載檔案`}},file_delete:{tooltip:{image:`刪除圖片`,video:`刪除影片`,audio:`刪除音訊`,file:`刪除檔案`}},file_preview_toggle:{tooltip:`切換預覽`},nest:{tooltip:`巢狀`,secondary_tooltip:`Tab`},unnest:{tooltip:`取消巢狀`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`靠左對齊`},align_center:{tooltip:`置中`},align_right:{tooltip:`靠右對齊`},align_justify:{tooltip:`兩端對齊`},table_cell_merge:{tooltip:`合併儲存格`},comment:{tooltip:`新增評論`}},file_panel:{upload:{title:`上傳`,file_placeholder:{image:`上傳圖片`,video:`上傳影片`,audio:`上傳音訊`,file:`上傳檔案`},upload_error:`錯誤:上傳失敗`},embed:{title:`嵌入`,embed_button:{image:`嵌入圖片`,video:`嵌入影片`,audio:`嵌入音訊`,file:`嵌入檔案`},url_placeholder:`輸入圖片網址`}},link_toolbar:{delete:{tooltip:`清除連結`},edit:{text:`編輯連結`,tooltip:`編輯`},open:{tooltip:`在新視窗開啟`},form:{title_placeholder:`編輯標題`,url_placeholder:`編輯連結網址`}},comments:{edited:`已編輯`,save_button_text:`儲存`,cancel_button_text:`取消`,deleted_reference_text:`原始內容已刪除`,discard_pending_comment:`確定要捨棄此評論嗎?`,actions:{add_reaction:`新增回應`,resolve:`解決`,reopen:`重新開啟`,edit_comment:`編輯評論`,delete_comment:`刪除評論`,more_actions:`更多操作`},reactions:{reacted_by:`已回應`},sidebar:{marked_as_resolved:`標記為已解決`,more_replies:e=>`還有 ${e} 則回覆`}},suggestion_changes:{formatting_change:`格式變更`,deleted:`已刪除`,inserted:`已插入`,inserted_by:e=>`插入者:${e}`,deleted_by:e=>`刪除者:${e}`,changed:`已變更`,changed_by:e=>`變更者:${e}`,formatting_change_by:(e,t)=>`格式變更(${e}),變更者:${t}`},versioning:{start_of_document:`文件開始`,compare_since_beginning_menuitem:`從頭開始比較`,title:`版本紀錄`,close:`關閉`,show_named_only:`僅顯示已命名的版本`,show_all:`顯示所有版本`,comparison_on:`開啟比較`,comparison_off:`關閉比較`,versions_list:`版本`,empty:`尚無版本`,empty_named_only:`尚無命名版本`,current_version:`目前版本`,before_restore:`還原前`,comparing_to:`比較對象`,restored_from:e=>`已從 ${e} 還原`,more_actions:`更多操作`,version_name_input:`版本名稱`,name_version_menuitem:`為此版本命名`,rename_menuitem:`重新命名`,compare_with_menuitem:`與此版本比較`,restore_menuitem:`還原`,delete_menuitem:`刪除`,action_failed:`發生錯誤,請再試一次。`,history_load_failed:`無法載入版本歷史記錄`},exporter:{open_file:`開啟檔案`,open_video_file:`開啟影片`,open_audio_file:`開啟音訊`},generic:{loading:`載入中...`,load_more:`載入更多`,ctrl_shortcut:`Ctrl`,form_submit:`確定`}},ja:{slash_menu:{heading:{title:`見出し1`,subtext:`トップレベルの見出しに使用`,aliases:[`h`,`見出し1`,`h1`,`大見出し`],group:`見出し`},heading_2:{title:`見出し2`,subtext:`重要なセクションに使用`,aliases:[`h2`,`見出し2`,`subheading`,`中見出し`],group:`見出し`},heading_3:{title:`見出し3`,subtext:`セクションやグループの見出しに使用`,aliases:[`h3`,`見出し3`,`subheading`,`小見出し`],group:`見出し`},heading_4:{title:`見出し4`,subtext:`小さなサブセクションの見出しに使用`,aliases:[`h4`,`見出し4`,`subheading4`,`小見出し4`],group:`サブ見出し`},heading_5:{title:`見出し5`,subtext:`小さなサブセクションの見出しに使用`,aliases:[`h5`,`見出し5`,`subheading5`,`小見出し5`],group:`サブ見出し`},heading_6:{title:`見出し6`,subtext:`最下位レベルの見出しに使用`,aliases:[`h6`,`見出し6`,`subheading6`,`小見出し6`],group:`サブ見出し`},toggle_heading:{title:`折りたたみ見出し1`,subtext:`内容の表示/非表示が切り替え可能なトップレベルの見出し`,aliases:[`h`,`見出し1`,`h1`,`大見出し`,`折りたたみ`,`トグル`],group:`サブ見出し`},toggle_heading_2:{title:`折りたたみ見出し2`,subtext:`内容の表示/非表示が切り替え可能な重要なセクションの見出し`,aliases:[`h2`,`見出し2`,`subheading`,`中見出し`,`折りたたみ`,`トグル`],group:`サブ見出し`},toggle_heading_3:{title:`折りたたみ見出し3`,subtext:`内容の表示/非表示が切り替え可能なセクションやグループの見出し`,aliases:[`h3`,`見出し3`,`subheading`,`小見出し`,`折りたたみ`,`トグル`],group:`サブ見出し`},quote:{title:`引用`,subtext:`引用または抜粋`,aliases:[`quotation`,`blockquote`,`bq`],group:`基本ブロック`},numbered_list:{title:`番号付リスト`,subtext:`番号付リストを表示するために使用`,aliases:[`ol`,`li`,`numberedlist`,`numbered list`,`リスト`,`番号付リスト`,`番号 リスト`],group:`基本ブロック`},bullet_list:{title:`箇条書き`,subtext:`箇条書きを表示するために使用`,aliases:[`ul`,`li`,`bulletlist`,`bullet list`,`リスト`,`箇条書きリスト`],group:`基本ブロック`},check_list:{title:`チェックリスト`,subtext:`チェックボックス付きリストを表示するために使用されます`,aliases:[`ul`,`li`,`list`,`checklist`,`checked list`,`リスト`,`チェックリスト`,`チェックされたリスト`],group:`基本ブロック`},toggle_list:{title:`折りたたみリスト`,subtext:`サブ項目を非表示にできるリスト`,aliases:[`li`,`リスト`,`折りたたみリスト`,`トグルリスト`,`折りたたみリスト`],group:`基本ブロック`},paragraph:{title:`標準テキスト`,subtext:`本文に使用`,aliases:[`p`,`paragraph`,`標準テキスト`],group:`基本ブロック`},code_block:{title:`コードブロック`,subtext:`シンタックスハイライト付きのコードブロック`,aliases:[`code`,`pre`,`コード`,`コードブロック`],group:`基本ブロック`},page_break:{title:`改ページ`,subtext:`ページ区切り`,aliases:[`page`,`break`,`separator`,`改ページ`,`区切り`],group:`基本ブロック`},table:{title:`表`,subtext:`表に使用`,aliases:[`table`,`表`,`テーブル`],group:`高度なブロック`},image:{title:`画像`,subtext:`画像を挿入`,aliases:[`image`,`imageUpload`,`upload`,`img`,`picture`,`media`,`url`,`画像`],group:`メディア`},video:{title:`ビデオ`,subtext:`ビデオを挿入`,aliases:[`video`,`videoUpload`,`upload`,`mp4`,`film`,`media`,`url`,`ビデオ`],group:`メディア`},audio:{title:`オーディオ`,subtext:`オーディオを挿入`,aliases:[`audio`,`audioUpload`,`upload`,`mp3`,`sound`,`media`,`url`,`オーディオ`],group:`メディア`},file:{title:`ファイル`,subtext:`ファイルを挿入`,aliases:[`file`,`upload`,`embed`,`media`,`url`,`ファイル`],group:`メディア`},emoji:{title:`絵文字`,subtext:`絵文字を挿入するために使用します`,aliases:[`絵文字`,`顔文字`,`感情表現`,`顔`],group:`その他`},divider:{title:`区切り`,subtext:`区切りを表示するために使用`,aliases:[`divider`,`hr`,`horizontal rule`],group:`基本ブロック`}},placeholders:{default:`テキストを入力するか'/' を入力してコマンド選択`,heading:`見出し`,toggleListItem:`トグル`,bulletListItem:`リストを追加`,numberedListItem:`リストを追加`,checkListItem:`リストを追加`,new_comment:`コメントを書く...`,edit_comment:`コメントを編集...`,comment_reply:`コメントを追加...`},file_blocks:{add_button_text:{image:`画像を追加`,video:`ビデオを追加`,audio:`オーディオを追加`,file:`ファイルを追加`}},toggle_blocks:{add_block_button:`空のトグルです。クリックしてブロックを追加。`,toggle_button:`展開または折りたたみ`},code_block:{add_source_button_text:`ソースコードを追加`,ok_button_text:`OK`},side_menu:{add_block_label:`ブロックを追加`,drag_handle_label:`ブロックメニュー`},drag_handle:{delete_menuitem:`削除`,colors_menuitem:`色を変更`,header_row_menuitem:`行の見出し`,header_column_menuitem:`列の見出し`},table_handle:{delete_column_menuitem:`列を削除`,delete_row_menuitem:`行を削除`,add_left_menuitem:`左に列を追加`,add_right_menuitem:`右に列を追加`,add_above_menuitem:`上に行を追加`,add_below_menuitem:`下に行を追加`,split_cell_menuitem:`セルを分割`,merge_cells_menuitem:`セルを結合`,background_color_menuitem:`背景色を変更`},suggestion_menu:{no_items_title:`アイテムが見つかりません`},color_picker:{text_title:`文字色`,background_title:`背景色`,colors:{default:`自動`,gray:`グレー`,brown:`茶色`,red:`赤`,orange:`オレンジ`,yellow:`黄色`,green:`緑`,blue:`青`,purple:`紫`,pink:`ピンク`}},formatting_toolbar:{bold:{tooltip:`太字`,secondary_tooltip:`Mod+B`},italic:{tooltip:`斜体`,secondary_tooltip:`Mod+I`},underline:{tooltip:`下線`,secondary_tooltip:`Mod+U`},strike:{tooltip:`打ち消し`,secondary_tooltip:`Mod+Shift+X`},code:{tooltip:`コード`,secondary_tooltip:``},colors:{tooltip:`色`},link:{tooltip:`リンク`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`キャプションを編集`,input_placeholder:`キャプションを編集`},file_replace:{tooltip:{image:`画像を置換`,video:`ビデオを置換`,audio:`オーディオを置換`,file:`ファイルを置換`}},file_rename:{tooltip:{image:`画像の名前を変更`,video:`ビデオの名前を変更`,audio:`オーディオの名前を変更`,file:`ファイルの名前を変更`},input_placeholder:{image:`画像の名前を変更`,video:`ビデオの名前を変更`,audio:`オーディオの名前を変更`,file:`ファイルの名前を変更`}},file_download:{tooltip:{image:`画像をダウンロード`,video:`ビデオをダウンロード`,audio:`オーディオをダウンロード`,file:`ファイルをダウンロード`}},file_delete:{tooltip:{image:`画像を削除`,video:`ビデオを削除`,audio:`オーディオを削除`,file:`ファイルを削除`}},file_preview_toggle:{tooltip:`プレビューの切り替え`},nest:{tooltip:`インデント増`,secondary_tooltip:`Tab`},unnest:{tooltip:`インデント減`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`左揃え`},align_center:{tooltip:`中央揃え`},align_right:{tooltip:`右揃え`},align_justify:{tooltip:`両端揃え`},table_cell_merge:{tooltip:`セルを結合`},comment:{tooltip:`コメントを追加`}},file_panel:{upload:{title:`アップロード`,file_placeholder:{image:`画像をアップロード`,video:`ビデオをアップロード`,audio:`オーディオをアップロード`,file:`ファイルをアップロード`},upload_error:`エラー: アップロードが失敗しました`},embed:{title:`埋め込み`,embed_button:{image:`画像を埋め込む`,video:`ビデオを埋め込む`,audio:`オーディオを埋め込む`,file:`ファイルを埋め込む`},url_placeholder:`URLを入力`}},link_toolbar:{delete:{tooltip:`リンクを解除`},edit:{text:`リンクを編集`,tooltip:`編集`},open:{tooltip:`新しいタブでリンクを開く`},form:{title_placeholder:`タイトルを編集`,url_placeholder:`URLを編集`}},comments:{edited:`編集済み`,save_button_text:`保存`,cancel_button_text:`キャンセル`,deleted_reference_text:`元のコンテンツが削除されました`,discard_pending_comment:`このコメントを破棄してもよろしいですか?`,actions:{add_reaction:`リアクションを追加`,resolve:`解決`,reopen:`再開`,edit_comment:`コメントを編集`,delete_comment:`コメントを削除`,more_actions:`その他の操作`},reactions:{reacted_by:`リアクションした人`},sidebar:{marked_as_resolved:`解決済みとしてマーク`,more_replies:e=>`${e} 件の追加返信`}},suggestion_changes:{formatting_change:`書式の変更`,deleted:`削除済み`,inserted:`挿入済み`,inserted_by:e=>`挿入者: ${e}`,deleted_by:e=>`削除者: ${e}`,changed:`変更済み`,changed_by:e=>`変更者: ${e}`,formatting_change_by:(e,t)=>`書式の変更 (${e}) 変更者: ${t}`},versioning:{start_of_document:`ドキュメントの開始`,compare_since_beginning_menuitem:`最初から比較`,title:`履歴`,close:`閉じる`,show_named_only:`名前付きバージョンのみ表示`,show_all:`すべてのバージョンを表示`,comparison_on:`比較を有効にする`,comparison_off:`比較を無効にする`,versions_list:`バージョン`,empty:`バージョンはまだありません`,empty_named_only:`名前付きのバージョンはありません`,current_version:`現在のバージョン`,before_restore:`復元前`,comparing_to:`比較対象`,restored_from:e=>`${e} から復元`,more_actions:`その他の操作`,version_name_input:`バージョン名`,name_version_menuitem:`このバージョンに名前を付ける`,rename_menuitem:`名前を変更`,compare_with_menuitem:`このバージョンと比較`,restore_menuitem:`復元`,delete_menuitem:`削除`,action_failed:`問題が発生しました。もう一度お試しください。`,history_load_failed:`バージョン履歴を読み込めませんでした`},exporter:{open_file:`ファイルを開く`,open_video_file:`動画を開く`,open_audio_file:`音声を開く`},generic:{loading:`読み込み中...`,load_more:`さらに読み込む`,ctrl_shortcut:`Ctrl`,form_submit:`OK`}},ko:{slash_menu:{heading:{title:`제목1`,subtext:`섹션 제목(대)`,aliases:[`h`,`제목1`,`h1`,`대제목`],group:`제목`},heading_2:{title:`제목2`,subtext:`섹션 제목(중)`,aliases:[`h2`,`제목2`,`중제목`],group:`제목`},heading_3:{title:`제목3`,subtext:`섹션 제목(소)`,aliases:[`h3`,`제목3`,`subheading`],group:`제목`},heading_4:{title:`제목4`,subtext:`하위 소단락 제목`,aliases:[`h4`,`제목4`,`소제목4`],group:`소제목`},heading_5:{title:`제목5`,subtext:`작은 하위 섹션 제목`,aliases:[`h5`,`제목5`,`소제목5`],group:`소제목`},heading_6:{title:`제목6`,subtext:`가장 하위 수준 제목`,aliases:[`h6`,`제목6`,`소제목6`],group:`소제목`},toggle_heading:{title:`접을 수 있는 제목1`,subtext:`내용을 표시하거나 숨길 수 있는 섹션 제목(대)`,aliases:[`h`,`제목1`,`h1`,`대제목`,`접기`,`토글`],group:`소제목`},toggle_heading_2:{title:`접을 수 있는 제목2`,subtext:`내용을 표시하거나 숨길 수 있는 섹션 제목(중)`,aliases:[`h2`,`제목2`,`중제목`,`접기`,`토글`],group:`소제목`},toggle_heading_3:{title:`접을 수 있는 제목3`,subtext:`내용을 표시하거나 숨길 수 있는 섹션 제목(소)`,aliases:[`h3`,`제목3`,`subheading`,`접기`,`토글`],group:`소제목`},quote:{title:`인용`,subtext:`인용문 또는 발췌`,aliases:[`quotation`,`blockquote`,`bq`],group:`기본 블록`},numbered_list:{title:`번호 매기기 목록`,subtext:`번호가 매겨진 목록을 추가합니다.`,aliases:[`ol`,`li`,`목록`,`번호 매기기 목록`,`번호 목록`],group:`기본 블록`},bullet_list:{title:`글머리 기호 목록`,subtext:`간단한 글머리 기호를 추가합니다.`,aliases:[`ul`,`li`,`목록`,`글머리 기호 목록`,`글머리 목록`],group:`기본 블록`},check_list:{title:`체크리스트`,subtext:`체크박스가 있는 목록을 표시하는 데 사용`,aliases:[`ul`,`li`,`목록`,`체크리스트`,`체크 리스트`,`체크된 목록`,`체크박스`],group:`기본 블록`},toggle_list:{title:`접을 수 있는 목록`,subtext:`숨길 수 있는 하위 항목이 있는 목록`,aliases:[`li`,`목록`,`접을 수 있는 목록`,`토글 목록`,`접기 목록`],group:`기본 블록`},paragraph:{title:`본문`,subtext:`일반 텍스트`,aliases:[`p`,`paragraph`,`본문`],group:`기본 블록`},code_block:{title:`코드 블록`,subtext:`구문 강조가 있는 코드 블록`,aliases:[`code`,`pre`],group:`기본 블록`},page_break:{title:`페이지 나누기`,subtext:`페이지 구분자`,aliases:[`page`,`break`,`separator`,`페이지`,`구분자`],group:`기본 블록`},table:{title:`표`,subtext:`간단한 표를 추가합니다.`,aliases:[`표`],group:`고급`},image:{title:`이미지`,subtext:`이미지 파일을 업로드합니다.`,aliases:[`image`,`imageUpload`,`upload`,`img`,`picture`,`media`,`이미지`,`url`],group:`미디어`},video:{title:`비디오`,subtext:`비디오 삽입`,aliases:[`video`,`videoUpload`,`upload`,`mp4`,`film`,`media`,`동영상`,`url`],group:`미디어`},audio:{title:`오디오`,subtext:`오디오 삽입`,aliases:[`audio`,`audioUpload`,`upload`,`mp3`,`sound`,`media`,`오디오`,`url`],group:`미디어`},file:{title:`파일`,subtext:`파일 삽입`,aliases:[`file`,`upload`,`embed`,`media`,`파일`,`url`],group:`미디어`},emoji:{title:`이모지`,subtext:`이모지 삽입용으로 사용됩니다`,aliases:[`이모지`,`emoji`,`감정 표현`,`emotion expression`,`표정`,`face expression`,`얼굴`,`face`],group:`기타`},divider:{title:`구분선`,subtext:`구분선 블록`,aliases:[`divider`,`hr`,`horizontal rule`],group:`기본 블록`}},placeholders:{default:`텍스트를 입력하거나 /를 입력하여 명령을 입력하세요.`,heading:`제목`,toggleListItem:`토글`,bulletListItem:`목록`,numberedListItem:`목록`,checkListItem:`목록`,new_comment:`댓글 작성...`,edit_comment:`댓글 수정...`,comment_reply:`댓글 추가...`},file_blocks:{add_button_text:{image:`이미지 추가`,video:`비디오 추가`,audio:`오디오 추가`,file:`파일 추가`}},toggle_blocks:{add_block_button:`비어 있는 토글입니다. 클릭하여 블록을 추가하세요.`,toggle_button:`펼치기 또는 접기`},code_block:{add_source_button_text:`소스 코드 추가`,ok_button_text:`확인`},side_menu:{add_block_label:`블록 추가`,drag_handle_label:`블록 메뉴 열기`},drag_handle:{delete_menuitem:`삭제`,colors_menuitem:`색깔`,header_row_menuitem:`행 제목`,header_column_menuitem:`열 제목`},table_handle:{delete_column_menuitem:`열 1개 삭제`,delete_row_menuitem:`행 삭제`,add_left_menuitem:`왼쪽에 열 1개 추가`,add_right_menuitem:`오른쪽에 열 1개 추가`,add_above_menuitem:`위에 행 1개 추가`,add_below_menuitem:`아래에 행 1개 추가`,split_cell_menuitem:`셀 분할`,merge_cells_menuitem:`셀 병합`,background_color_menuitem:`배경색 변경`},suggestion_menu:{no_items_title:`항목을 찾을 수 없음`},color_picker:{text_title:`텍스트`,background_title:`배경`,colors:{default:`자동`,gray:`회색`,brown:`갈색`,red:`빨간색`,orange:`주황색`,yellow:`노란색`,green:`녹색`,blue:`파란색`,purple:`보라색`,pink:`분홍색`}},formatting_toolbar:{bold:{tooltip:`진하게`,secondary_tooltip:`Mod+B`},italic:{tooltip:`기울임`,secondary_tooltip:`Mod+I`},underline:{tooltip:`밑줄`,secondary_tooltip:`Mod+U`},strike:{tooltip:`취소선`,secondary_tooltip:`Mod+Shift+X`},code:{tooltip:`코드`,secondary_tooltip:``},colors:{tooltip:`색깔`},link:{tooltip:`링크 만들기`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`이미지 캡션 수정`,input_placeholder:`이미지 캡션 수정`},file_replace:{tooltip:{image:`이미지 교체`,video:`비디오 교체`,audio:`오디오 교체`,file:`파일 교체`}},file_rename:{tooltip:{image:`이미지 이름 변경`,video:`비디오 이름 변경`,audio:`오디오 이름 변경`,file:`파일 이름 변경`},input_placeholder:{image:`이미지 이름 변경`,video:`비디오 이름 변경`,audio:`오디오 이름 변경`,file:`파일 이름 변경`}},file_download:{tooltip:{image:`이미지 다운로드`,video:`비디오 다운로드`,audio:`오디오 다운로드`,file:`파일 다운로드`}},file_delete:{tooltip:{image:`이미지 삭제`,video:`비디오 삭제`,audio:`오디오 삭제`,file:`파일 삭제`}},file_preview_toggle:{tooltip:`미리보기 전환`},nest:{tooltip:`중첩 블록`,secondary_tooltip:`Tab`},unnest:{tooltip:`비중첩 블록`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`텍스트 왼쪽 맞춤`},align_center:{tooltip:`텍스트 가운데 맞춤`},align_right:{tooltip:`텍스트 오른쪽 맞춤`},align_justify:{tooltip:`텍스트 양쪽 맞춤`},table_cell_merge:{tooltip:`셀 병합`},comment:{tooltip:`코멘트 추가`}},file_panel:{upload:{title:`업로드`,file_placeholder:{image:`이미지 업로드`,video:`비디오 업로드`,audio:`오디오 업로드`,file:`파일 업로드`},upload_error:`오류: 업로드 실패`},embed:{title:`임베드`,embed_button:{image:`이미지 삽입`,video:`비디오 삽입`,audio:`오디오 삽입`,file:`파일 삽입`},url_placeholder:`URL을 입력하세요.`}},link_toolbar:{delete:{tooltip:`링크 삭제`},edit:{text:`링크 수정`,tooltip:`수정`},open:{tooltip:`새 탭으로 열기`},form:{title_placeholder:`제목 수정`,url_placeholder:`URL 수정`}},comments:{edited:`수정됨`,save_button_text:`저장`,cancel_button_text:`취소`,deleted_reference_text:`원본 콘텐츠 삭제됨`,discard_pending_comment:`이 댓글을 삭제하시겠습니까?`,actions:{add_reaction:`반응 추가`,resolve:`해결`,reopen:`다시 열기`,edit_comment:`댓글 수정`,delete_comment:`댓글 삭제`,more_actions:`더 많은 작업`},reactions:{reacted_by:`반응한 사람`},sidebar:{marked_as_resolved:`해결됨으로 표시됨`,more_replies:e=>`${e}개의 추가 답글`}},suggestion_changes:{formatting_change:`서식 변경`,deleted:`삭제됨`,inserted:`삽입됨`,inserted_by:e=>`삽입한 사람: ${e}`,deleted_by:e=>`삭제한 사람: ${e}`,changed:`변경됨`,changed_by:e=>`변경한 사람: ${e}`,formatting_change_by:(e,t)=>`서식 변경 (${e}) 변경한 사람: ${t}`},versioning:{start_of_document:`문서 시작`,compare_since_beginning_menuitem:`처음부터 비교`,title:`기록`,close:`닫기`,show_named_only:`이름이 지정된 버전만 표시`,show_all:`모든 버전 표시`,comparison_on:`비교 켜기`,comparison_off:`비교 끄기`,versions_list:`버전`,empty:`아직 버전이 없습니다`,empty_named_only:`이름이 지정된 버전이 없습니다`,current_version:`현재 버전`,before_restore:`복원 전`,comparing_to:`비교 대상`,restored_from:e=>`${e}에서 복원됨`,more_actions:`추가 작업`,version_name_input:`버전 이름`,name_version_menuitem:`이 버전의 이름 지정`,rename_menuitem:`이름 바꾸기`,compare_with_menuitem:`이 버전과 비교`,restore_menuitem:`복원`,delete_menuitem:`삭제`,action_failed:`문제가 발생했습니다. 다시 시도해 주세요.`,history_load_failed:`버전 기록을 불러오지 못했습니다`},exporter:{open_file:`파일 열기`,open_video_file:`동영상 열기`,open_audio_file:`오디오 열기`},generic:{loading:`불러오는 중...`,load_more:`더 불러오기`,ctrl_shortcut:`Ctrl`,form_submit:`확인`}},es:{slash_menu:{heading:{title:`Encabezado 1`,subtext:`Encabezado de primer nivel`,aliases:[`h`,`encabezado1`,`h1`],group:`Encabezados`},heading_2:{title:`Encabezado 2`,subtext:`Encabezado de sección principal`,aliases:[`h2`,`encabezado2`,`subencabezado`],group:`Encabezados`},heading_3:{title:`Encabezado 3`,subtext:`Encabezado de subsección y grupo`,aliases:[`h3`,`encabezado3`,`subencabezado`],group:`Encabezados`},heading_4:{title:`Encabezado 4`,subtext:`Encabezado de subsección menor`,aliases:[`h4`,`encabezado4`,`subencabezado4`],group:`Subencabezados`},heading_5:{title:`Encabezado 5`,subtext:`Encabezado de subsección pequeña`,aliases:[`h5`,`encabezado5`,`subencabezado5`],group:`Subencabezados`},heading_6:{title:`Encabezado 6`,subtext:`Encabezado de nivel más bajo`,aliases:[`h6`,`encabezado6`,`subencabezado6`],group:`Subencabezados`},toggle_heading:{title:`Encabezado Plegable 1`,subtext:`Encabezado de primer nivel que se puede plegar`,aliases:[`h`,`encabezado1`,`h1`,`plegable`,`contraible`],group:`Subencabezados`},toggle_heading_2:{title:`Encabezado Plegable 2`,subtext:`Encabezado de sección principal que se puede plegar`,aliases:[`h2`,`encabezado2`,`subencabezado`,`plegable`,`contraible`],group:`Subencabezados`},toggle_heading_3:{title:`Encabezado Plegable 3`,subtext:`Encabezado de subsección y grupo que se puede plegar`,aliases:[`h3`,`encabezado3`,`subencabezado`,`plegable`,`contraible`],group:`Subencabezados`},quote:{title:`Cita`,subtext:`Cita o extracto`,aliases:[`quotation`,`blockquote`,`bq`],group:`Bloques básicos`},numbered_list:{title:`Lista Numerada`,subtext:`Lista con elementos ordenados`,aliases:[`ol`,`li`,`lista`,`lista numerada`],group:`Bloques básicos`},bullet_list:{title:`Lista con Viñetas`,subtext:`Lista con elementos no ordenados`,aliases:[`ul`,`li`,`lista`,`lista con viñetas`],group:`Bloques básicos`},check_list:{title:`Lista de Verificación`,subtext:`Lista con casillas de verificación`,aliases:[`ul`,`li`,`lista`,`lista de verificación`,`lista de chequeo`,`checkbox`],group:`Bloques básicos`},toggle_list:{title:`Lista Plegable`,subtext:`Lista con subelementos ocultables`,aliases:[`li`,`lista`,`lista plegable`,`lista colapsable`],group:`Bloques básicos`},paragraph:{title:`Párrafo`,subtext:`El cuerpo de tu documento`,aliases:[`p`,`párrafo`],group:`Bloques básicos`},code_block:{title:`Bloque de Código`,subtext:`Bloque de código con resaltado de sintaxis`,aliases:[`code`,`pre`],group:`Bloques básicos`},page_break:{title:`Salto de página`,subtext:`Separador de página`,aliases:[`page`,`break`,`separator`,`salto`,`separador`],group:`Bloques básicos`},table:{title:`Tabla`,subtext:`Tabla con celdas editables`,aliases:[`tabla`],group:`Avanzado`},image:{title:`Imagen`,subtext:`Imagen redimensionable con leyenda`,aliases:[`imagen`,`subir imagen`,`cargar`,`img`,`foto`,`media`,`url`],group:`Medios`},video:{title:`Vídeo`,subtext:`Vídeo redimensionable con leyenda`,aliases:[`video`,`subir vídeo`,`cargar`,`mp4`,`película`,`media`,`url`],group:`Medios`},audio:{title:`Audio`,subtext:`Audio incrustado con leyenda`,aliases:[`audio`,`subir audio`,`cargar`,`mp3`,`sonido`,`media`,`url`],group:`Medios`},file:{title:`Archivo`,subtext:`Archivo incrustado`,aliases:[`archivo`,`cargar`,`incrustar`,`media`,`url`],group:`Medios`},emoji:{title:`Emoji`,subtext:`Busca e inserta un emoji`,aliases:[`emoji`,`emoticono`,`emoción`,`cara`],group:`Otros`},divider:{title:`Divisor`,subtext:`Divisor de bloques`,aliases:[`divisor`,`hr`,`horizontal rule`],group:`Bloques básicos`}},placeholders:{default:`Escribe o teclea '/' para comandos`,heading:`Encabezado`,toggleListItem:`Plegable`,bulletListItem:`Lista`,numberedListItem:`Lista`,checkListItem:`Lista`,new_comment:`Escribe un comentario...`,edit_comment:`Editar comentario...`,comment_reply:`Agregar comentario...`},file_blocks:{add_button_text:{image:`Agregar imagen`,video:`Agregar vídeo`,audio:`Agregar audio`,file:`Agregar archivo`}},toggle_blocks:{add_block_button:`Toggle vacío. Haz clic para añadir un bloque.`,toggle_button:`Expandir o contraer`},code_block:{add_source_button_text:`Agregar código fuente`,ok_button_text:`Aceptar`},side_menu:{add_block_label:`Agregar bloque`,drag_handle_label:`Abrir menú de bloque`},drag_handle:{delete_menuitem:`Eliminar`,colors_menuitem:`Colores`,header_row_menuitem:`Fila de encabezado`,header_column_menuitem:`Columna de encabezado`},table_handle:{delete_column_menuitem:`Eliminar columna`,delete_row_menuitem:`Eliminar fila`,add_left_menuitem:`Agregar columna a la izquierda`,add_right_menuitem:`Agregar columna a la derecha`,add_above_menuitem:`Agregar fila arriba`,add_below_menuitem:`Agregar fila abajo`,split_cell_menuitem:`Dividir celda`,merge_cells_menuitem:`Combinar celdas`,background_color_menuitem:`Color de fondo`},suggestion_menu:{no_items_title:`No se encontraron elementos`},color_picker:{text_title:`Texto`,background_title:`Fondo`,colors:{default:`Automático`,gray:`Gris`,brown:`Marrón`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,green:`Verde`,blue:`Azul`,purple:`Morado`,pink:`Rosa`}},formatting_toolbar:{bold:{tooltip:`Negrita`,secondary_tooltip:`Mod+B`},italic:{tooltip:`Cursiva`,secondary_tooltip:`Mod+I`},underline:{tooltip:`Subrayado`,secondary_tooltip:`Mod+U`},strike:{tooltip:`Tachado`,secondary_tooltip:`Mod+Shift+S`},code:{tooltip:`Código`,secondary_tooltip:``},colors:{tooltip:`Colores`},link:{tooltip:`Crear enlace`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`Editar leyenda`,input_placeholder:`Editar leyenda`},file_replace:{tooltip:{image:`Reemplazar imagen`,video:`Reemplazar vídeo`,audio:`Reemplazar audio`,file:`Reemplazar archivo`}},file_rename:{tooltip:{image:`Renombrar imagen`,video:`Renombrar vídeo`,audio:`Renombrar audio`,file:`Renombrar archivo`},input_placeholder:{image:`Renombrar imagen`,video:`Renombrar vídeo`,audio:`Renombrar audio`,file:`Renombrar archivo`}},file_download:{tooltip:{image:`Descargar imagen`,video:`Descargar vídeo`,audio:`Descargar audio`,file:`Descargar archivo`}},file_delete:{tooltip:{image:`Eliminar imagen`,video:`Eliminar vídeo`,audio:`Eliminar audio`,file:`Eliminar archivo`}},file_preview_toggle:{tooltip:`Alternar vista previa`},nest:{tooltip:`Anidar bloque`,secondary_tooltip:`Tab`},unnest:{tooltip:`Desanidar bloque`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`Alinear texto a la izquierda`},align_center:{tooltip:`Alinear texto al centro`},align_right:{tooltip:`Alinear texto a la derecha`},align_justify:{tooltip:`Justificar texto`},table_cell_merge:{tooltip:`Combinar celdas`},comment:{tooltip:`Añadir comentario`}},file_panel:{upload:{title:`Subir`,file_placeholder:{image:`Subir imagen`,video:`Subir vídeo`,audio:`Subir audio`,file:`Subir archivo`},upload_error:`Error: Fallo en la subida`},embed:{title:`Incrustar`,embed_button:{image:`Incrustar imagen`,video:`Incrustar vídeo`,audio:`Incrustar audio`,file:`Incrustar archivo`},url_placeholder:`Introduce la URL`}},link_toolbar:{delete:{tooltip:`Eliminar enlace`},edit:{text:`Editar enlace`,tooltip:`Editar`},open:{tooltip:`Abrir en nueva pestaña`},form:{title_placeholder:`Editar título`,url_placeholder:`Editar URL`}},comments:{edited:`editado`,save_button_text:`Guardar`,cancel_button_text:`Cancelar`,deleted_reference_text:`Contenido original eliminado`,discard_pending_comment:`¿Seguro que quieres descartar este comentario?`,actions:{add_reaction:`Agregar reacción`,resolve:`Resolver`,reopen:`Reabrir`,edit_comment:`Editar comentario`,delete_comment:`Eliminar comentario`,more_actions:`Más acciones`},reactions:{reacted_by:`Reaccionado por`},sidebar:{marked_as_resolved:`Marcado como resuelto`,more_replies:e=>`${e} respuestas más`}},suggestion_changes:{formatting_change:`Cambio de formato`,deleted:`Eliminado`,inserted:`Insertado`,inserted_by:e=>`Insertado por: ${e}`,deleted_by:e=>`Eliminado por: ${e}`,changed:`Modificado`,changed_by:e=>`Modificado por: ${e}`,formatting_change_by:(e,t)=>`Cambio de formato (${e}) por: ${t}`},versioning:{start_of_document:`Inicio del documento`,compare_since_beginning_menuitem:`Comparar desde el inicio`,title:`Historial`,close:`Cerrar`,show_named_only:`Mostrar solo versiones con nombre`,show_all:`Mostrar todas las versiones`,comparison_on:`Activar comparación`,comparison_off:`Desactivar comparación`,versions_list:`Versiones`,empty:`Aún no hay versiones`,empty_named_only:`No hay versiones con nombre`,current_version:`Versión actual`,before_restore:`Antes de restaurar`,comparing_to:`Comparando con`,restored_from:e=>`Restaurado desde ${e}`,more_actions:`Más acciones`,version_name_input:`Nombre de la versión`,name_version_menuitem:`Nombrar esta versión`,rename_menuitem:`Cambiar nombre`,compare_with_menuitem:`Comparar con esta versión`,restore_menuitem:`Restaurar`,delete_menuitem:`Eliminar`,action_failed:`Algo salió mal. Inténtalo de nuevo.`,history_load_failed:`No se pudo cargar el historial de versiones`},exporter:{open_file:`Abrir archivo`,open_video_file:`Abrir vídeo`,open_audio_file:`Abrir audio`},generic:{loading:`Cargando...`,load_more:`Cargar más`,ctrl_shortcut:`Ctrl`,form_submit:`Aceptar`}},fr:{slash_menu:{heading:{title:`Titre 1`,subtext:`Utilisé pour un titre de premier niveau`,aliases:[`h`,`titre1`,`h1`],group:`Titres`},heading_2:{title:`Titre 2`,subtext:`Titre de deuxième niveau Utilisé pour les sections clés`,aliases:[`h2`,`titre2`,`sous-titre`],group:`Titres`},heading_3:{title:`Titre 3`,subtext:`Titre de troisième niveau utilisé pour les sous-sections et les titres de groupe`,aliases:[`h3`,`titre3`,`sous-titre`],group:`Titres`},heading_4:{title:`Titre 4`,subtext:`Titre de sous‑section mineure`,aliases:[`h4`,`titre4`,`sous‑titre4`],group:`Sous-titres`},heading_5:{title:`Titre 5`,subtext:`Titre de sous-section mineure`,aliases:[`h5`,`titre5`,`sous-titre5`],group:`Sous-titres`},heading_6:{title:`Titre 6`,subtext:`Titre de niveau le plus bas`,aliases:[`h6`,`titre6`,`sous-titre6`],group:`Sous-titres`},toggle_heading:{title:`Titre Repliable 1`,subtext:`Titre de premier niveau qui peut être replié pour masquer son contenu`,aliases:[`h`,`titre1`,`h1`,`repliable`,`masquable`,`déroulant`],group:`Sous-titres`},toggle_heading_2:{title:`Titre Repliable 2`,subtext:`Titre de section qui peut être replié pour masquer son contenu`,aliases:[`h2`,`titre2`,`sous-titre`,`repliable`,`masquable`,`déroulant`],group:`Sous-titres`},toggle_heading_3:{title:`Titre Repliable 3`,subtext:`Titre de sous-section qui peut être replié pour masquer son contenu`,aliases:[`h3`,`titre3`,`sous-titre`,`repliable`,`masquable`,`déroulant`],group:`Sous-titres`},quote:{title:`Citation`,subtext:`Citation ou extrait`,aliases:[`quotation`,`blockquote`,`bq`],group:`Blocs de base`},numbered_list:{title:`Liste Numérotée`,subtext:`Utilisé pour afficher une liste numérotée`,aliases:[`ol`,`li`,`liste`,`listenumérotée`,`liste numérotée`],group:`Blocs de base`},bullet_list:{title:`Liste à puces`,subtext:`Utilisé pour afficher une liste à puce non numérotée`,aliases:[`ul`,`li`,`liste`,`listeàpuces`,`liste à puces`,`bullet points`,`bulletpoints`],group:`Blocs de base`},check_list:{title:`Liste de tâches`,subtext:`Utilisé pour afficher une liste avec des cases à cocher`,aliases:[`ul`,`li`,`liste`,`liste de vérification`,`liste cochée`,`case à cocher`,`checklist`,`checkbox`,`check box`,`to do`,`todo`],group:`Blocs de base`},toggle_list:{title:`Liste repliable`,subtext:`Liste avec des sous-éléments masquables`,aliases:[`li`,`liste`,`liste pliable`,`liste escamotable`,`liste repliable`],group:`Blocs de base`},paragraph:{title:`Paragraphe`,subtext:`Utilisé pour le corps de votre document`,aliases:[`p`,`paragraphe`,`texte`],group:`Blocs de base`},code_block:{title:`Bloc de code`,subtext:`Bloc de code avec coloration syntaxique`,aliases:[`code`,`pre`],group:`Blocs de base`},page_break:{title:`Saut de page`,subtext:`Séparateur de page`,aliases:[`page`,`break`,`separator`,`saut`,`séparateur`],group:`Blocs de base`},table:{title:`Tableau`,subtext:`Utilisé pour les tableaux`,aliases:[`tableau`,`grille`],group:`Avancé`},image:{title:`Image`,subtext:`Insérer une image`,aliases:[`image`,`uploadImage`,`télécharger image`,`téléverser image`,`uploader image`,`img`,`photo`,`média`,`url`],group:`Médias`},video:{title:`Vidéo`,subtext:`Insérer une vidéo`,aliases:[`vidéo`,`télécharger vidéo`,`téléverser vidéo`,`mp4`,`film`,`média`,`url`],group:`Média`},audio:{title:`Audio`,subtext:`Insérer un audio`,aliases:[`audio`,`télécharger audio`,`téléverser audio`,`mp3`,`son`,`média`,`url`],group:`Média`},file:{title:`Fichier`,subtext:`Insérer un fichier`,aliases:[`fichier`,`téléverser fichier`,`intégrer fichier`,`insérer fichier`,`média`,`url`],group:`Média`},emoji:{title:`Emoji`,subtext:`Utilisé pour insérer un emoji`,aliases:[`emoji`,`émoticône`,`émotion`,`visage`,`smiley`],group:`Autres`},divider:{title:`Diviseur`,subtext:`Utilisé pour diviser les blocs`,aliases:[`diviseur`,`hr`,`horizontal rule`],group:`Blocs de base`}},placeholders:{default:`Entrez du texte ou tapez '/' pour faire apparaître les options de mise en page`,heading:`Titre`,toggleListItem:`Basculer`,bulletListItem:`Liste`,numberedListItem:`Liste`,checkListItem:`Liste`,new_comment:`Écrire un commentaire...`,edit_comment:`Modifier le commentaire...`,comment_reply:`Ajouter un commentaire...`},file_blocks:{add_button_text:{image:`Ajouter une image`,video:`Ajouter une vidéo`,audio:`Ajouter un audio`,file:`Ajouter un fichier`}},toggle_blocks:{add_block_button:`Liste repliable vide. Cliquez pour ajouter un bloc.`,toggle_button:`Déplier ou replier`},code_block:{add_source_button_text:`Ajouter le code source`,ok_button_text:`OK`},side_menu:{add_block_label:`Ajouter un bloc`,drag_handle_label:`Ouvrir le menu du bloc`},drag_handle:{delete_menuitem:`Supprimer`,colors_menuitem:`Couleurs`,header_row_menuitem:`En-tête de ligne`,header_column_menuitem:`En-tête de colonne`},table_handle:{delete_column_menuitem:`Supprimer la colonne`,delete_row_menuitem:`Supprimer la ligne`,add_left_menuitem:`Ajouter une colonne à gauche`,add_right_menuitem:`Ajouter une colonne à droite`,add_above_menuitem:`Ajouter une ligne au-dessus`,add_below_menuitem:`Ajouter une ligne en dessous`,split_cell_menuitem:`Diviser la cellule`,merge_cells_menuitem:`Fusionner les cellules`,background_color_menuitem:`Couleur de fond`},suggestion_menu:{no_items_title:`Aucun élément trouvé`},color_picker:{text_title:`Texte`,background_title:`Fond`,colors:{default:`Auto`,gray:`Gris`,brown:`Marron`,red:`Rouge`,orange:`Orange`,yellow:`Jaune`,green:`Vert`,blue:`Bleu`,purple:`Violet`,pink:`Rose`}},formatting_toolbar:{bold:{tooltip:`Gras`,secondary_tooltip:`Mod+B`},italic:{tooltip:`Italique`,secondary_tooltip:`Mod+I`},underline:{tooltip:`Souligner`,secondary_tooltip:`Mod+U`},strike:{tooltip:`Barré`,secondary_tooltip:`Mod+Shift+X`},code:{tooltip:`Code`,secondary_tooltip:``},colors:{tooltip:`Couleurs`},link:{tooltip:`Créer un lien`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`Modifier la légende`,input_placeholder:`Modifier la légende`},file_replace:{tooltip:{image:`Remplacer l'image`,video:`Remplacer la vidéo`,audio:`Remplacer l'audio`,file:`Remplacer le fichier`}},file_rename:{tooltip:{image:`Renommer l'image`,video:`Renommer la vidéo`,audio:`Renommer l'audio`,file:`Renommer le fichier`},input_placeholder:{image:`Renommer l'image`,video:`Renommer la vidéo`,audio:`Renommer l'audio`,file:`Renommer le fichier`}},file_download:{tooltip:{image:`Télécharger l'image`,video:`Télécharger la vidéo`,audio:`Télécharger l'audio`,file:`Télécharger le fichier`}},file_delete:{tooltip:{image:`Supprimer l'image`,video:`Supprimer la vidéo`,audio:`Supprimer l'audio`,file:`Supprimer le fichier`}},file_preview_toggle:{tooltip:`Basculer l'aperçu`},nest:{tooltip:`Augmenter le retrait du bloc`,secondary_tooltip:`Tab`},unnest:{tooltip:`Diminuer le retait du bloc`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`Aligner le texte à gauche`},align_center:{tooltip:`Aligner le texte au centre`},align_right:{tooltip:`Aligner le texte à droite`},align_justify:{tooltip:`Justifier le texte`},table_cell_merge:{tooltip:`Fusionner les cellules`},comment:{tooltip:`Ajouter un commentaire`}},file_panel:{upload:{title:`Télécharger`,file_placeholder:{image:`Télécharger une image`,video:`Télécharger une vidéo`,audio:`Télécharger un fichier audio`,file:`Télécharger un fichier`},upload_error:`Erreur : échec du téléchargement`},embed:{title:`Intégrer`,embed_button:{image:`Intégrer une image`,video:`Intégrer une vidéo`,audio:`Intégrer un fichier audio`,file:`Intégrer un fichier`},url_placeholder:`Entrez l'URL`}},link_toolbar:{delete:{tooltip:`Supprimer le lien`},edit:{text:`Modifier le lien`,tooltip:`Modifier`},open:{tooltip:`Ouvrir dans un nouvel onglet`},form:{title_placeholder:`Modifier le titre`,url_placeholder:`Modifier l'URL`}},comments:{edited:`modifié`,save_button_text:`Enregistrer`,cancel_button_text:`Annuler`,deleted_reference_text:`Contenu d'origine supprimé`,discard_pending_comment:`Voulez-vous vraiment abandonner ce commentaire ?`,actions:{add_reaction:`Ajouter une réaction`,resolve:`Résoudre`,reopen:`Rouvrir`,edit_comment:`Modifier le commentaire`,delete_comment:`Supprimer le commentaire`,more_actions:`Plus d'actions`},reactions:{reacted_by:`Réagi par`},sidebar:{marked_as_resolved:`Marqué comme résolu`,more_replies:e=>`${e} réponses de plus`}},suggestion_changes:{formatting_change:`Modification de mise en forme`,deleted:`Supprimé`,inserted:`Inséré`,inserted_by:e=>`Inséré par : ${e}`,deleted_by:e=>`Supprimé par : ${e}`,changed:`Modifié`,changed_by:e=>`Modifié par : ${e}`,formatting_change_by:(e,t)=>`Modification de mise en forme (${e}) par : ${t}`},versioning:{start_of_document:`Début du document`,compare_since_beginning_menuitem:`Comparer depuis le début`,title:`Historique`,close:`Fermer`,show_named_only:`Afficher uniquement les versions nommées`,show_all:`Afficher toutes les versions`,comparison_on:`Activer la comparaison`,comparison_off:`Désactiver la comparaison`,versions_list:`Versions`,empty:`Aucune version pour l'instant`,empty_named_only:`Aucune version nommée`,current_version:`Version actuelle`,before_restore:`Avant la restauration`,comparing_to:`Comparé à`,restored_from:e=>`Restauré depuis ${e}`,more_actions:`Plus d'actions`,version_name_input:`Nom de la version`,name_version_menuitem:`Nommer cette version`,rename_menuitem:`Renommer`,compare_with_menuitem:`Comparer avec cette version`,restore_menuitem:`Restaurer`,delete_menuitem:`Supprimer`,action_failed:`Une erreur s'est produite. Veuillez réessayer.`,history_load_failed:`Impossible de charger l'historique des versions`},exporter:{open_file:`Ouvrir le fichier`,open_video_file:`Ouvrir la vidéo`,open_audio_file:`Ouvrir l'audio`},generic:{loading:`Chargement...`,load_more:`Charger plus`,ctrl_shortcut:`Ctrl`,form_submit:`OK`}},de:{slash_menu:{heading:{title:`Überschrift 1`,subtext:`Hauptebene Überschrift`,aliases:[`h`,`überschrift1`,`h1`],group:`Überschriften`},heading_2:{title:`Überschrift 2`,subtext:`Wichtige Abschnittsüberschrift`,aliases:[`h2`,`überschrift2`,`unterüberschrift`],group:`Überschriften`},heading_3:{title:`Überschrift 3`,subtext:`Unterabschnitts- und Gruppenüberschrift`,aliases:[`h3`,`überschrift3`,`unterüberschrift`],group:`Überschriften`},heading_4:{title:`Überschrift 4`,subtext:`Überschrift für kleinere Unterabschnitte`,aliases:[`h4`,`überschrift4`,`unterüberschrift4`],group:`Unterüberschriften`},heading_5:{title:`Überschrift 5`,subtext:`Überschrift für tiefere Unterabschnitte`,aliases:[`h5`,`überschrift5`,`unterüberschrift5`],group:`Unterüberschriften`},heading_6:{title:`Überschrift 6`,subtext:`Überschrift auf der untersten Ebene`,aliases:[`h6`,`überschrift6`,`unterüberschrift6`],group:`Unterüberschriften`},toggle_heading:{title:`Aufklappbare Überschrift 1`,subtext:`Aufklappbare Hauptebene Überschrift`,aliases:[`h`,`überschrift1`,`h1`,`aufklappbar`,`einklappbar`],group:`Unterüberschrift`},toggle_heading_2:{title:`Aufklappbare Überschrift 2`,subtext:`Aufklappbare wichtige Abschnittsüberschrift`,aliases:[`h2`,`überschrift2`,`unterüberschrift`,`aufklappbar`,`einklappbar`],group:`Unterüberschriften`},toggle_heading_3:{title:`Aufklappbare Überschrift 3`,subtext:`Aufklappbare Unterabschnitts- und Gruppenüberschrift`,aliases:[`h3`,`überschrift3`,`unterüberschrift`,`aufklappbar`,`einklappbar`],group:`Unterüberschriften`},quote:{title:`Zitat`,subtext:`Zitat oder Auszug`,aliases:[`quotation`,`blockquote`,`bq`],group:`Grundlegende Blöcke`},numbered_list:{title:`Nummerierte Liste`,subtext:`Liste mit nummerierten Elementen`,aliases:[`ol`,`li`,`liste`,`nummerierteliste`,`nummerierte liste`],group:`Grundlegende Blöcke`},bullet_list:{title:`Aufzählungsliste`,subtext:`Liste mit unnummerierten Elementen`,aliases:[`ul`,`li`,`liste`,`aufzählungsliste`,`aufzählung liste`],group:`Grundlegende Blöcke`},check_list:{title:`Checkliste`,subtext:`Liste mit Kontrollkästchen`,aliases:[`ul`,`li`,`liste`,`checkliste`,`check liste`,`geprüfte liste`,`kontrollkästchen`],group:`Grundlegende Blöcke`},toggle_list:{title:`Aufklappbare Liste`,subtext:`Liste mit ausblendbare Unterpunkten`,aliases:[`li`,`liste`,`aufklappbare liste`,`einklappbare liste`,`aufklappbareListe`,`aufklappbare liste`],group:`Grundlegende Blöcke`},paragraph:{title:`Absatz`,subtext:`Der Hauptteil Ihres Dokuments`,aliases:[`p`,`absatz`],group:`Grundlegende Blöcke`},code_block:{title:`Codeblock`,subtext:`Codeblock mit Syntaxhervorhebung`,aliases:[`code`,`pre`],group:`Grundlegende Blöcke`},page_break:{title:`Seitenumbruch`,subtext:`Seitentrenner`,aliases:[`page`,`break`,`separator`,`seitenumbruch`,`trenner`],group:`Grundlegende Blöcke`},table:{title:`Tabelle`,subtext:`Tabelle mit editierbaren Zellen`,aliases:[`tabelle`],group:`Erweitert`},image:{title:`Bild`,subtext:`Größenveränderbares Bild mit Beschriftung`,aliases:[`bild`,`bildhochladen`,`hochladen`,`img`,`bild`,`medien`,`url`],group:`Medien`},video:{title:`Video`,subtext:`Größenveränderbares Video mit Beschriftung`,aliases:[`video`,`videoupload`,`hochladen`,`mp4`,`film`,`medien`,`url`],group:`Medien`},audio:{title:`Audio`,subtext:`Eingebettetes Audio mit Beschriftung`,aliases:[`audio`,`audioupload`,`hochladen`,`mp3`,`ton`,`medien`,`url`],group:`Medien`},file:{title:`Datei`,subtext:`Eingebettete Datei`,aliases:[`datei`,`hochladen`,`einbetten`,`medien`,`url`],group:`Medien`},emoji:{title:`Emoji`,subtext:`Nach Emoji suchen und einfügen`,aliases:[`emoji`,`emote`,`emotion`,`gesicht`],group:`Andere`},divider:{title:`Trennlinie`,subtext:`Trennlinie zwischen Blöcken`,aliases:[`trennlinie`,`hr`,`horizontal rule`],group:`Grundlegende Blöcke`}},placeholders:{default:`Text eingeben oder '/' für Befehle tippen`,heading:`Überschrift`,toggleListItem:`Umschalten`,bulletListItem:`Liste`,numberedListItem:`Liste`,checkListItem:`Liste`,new_comment:`Einen Kommentar schreiben …`,edit_comment:`Kommentar bearbeiten …`,comment_reply:`Kommentar hinzufügen …`},file_blocks:{add_button_text:{image:`Bild hinzufügen`,video:`Video hinzufügen`,audio:`Audio hinzufügen`,file:`Datei hinzufügen`}},toggle_blocks:{add_block_button:`Leerer aufklappbarer Bereich. Klicken, um einen Block hinzuzufügen.`,toggle_button:`Aufklappen oder zuklappen`},code_block:{add_source_button_text:`Quellcode hinzufügen`,ok_button_text:`OK`},side_menu:{add_block_label:`Block hinzufügen`,drag_handle_label:`Blockmenü öffnen`},drag_handle:{delete_menuitem:`Löschen`,colors_menuitem:`Farben`,header_row_menuitem:`Kopfzeile`,header_column_menuitem:`Kopfspalte`},table_handle:{delete_column_menuitem:`Spalte löschen`,delete_row_menuitem:`Zeile löschen`,add_left_menuitem:`Spalte links hinzufügen`,add_right_menuitem:`Spalte rechts hinzufügen`,add_above_menuitem:`Zeile oberhalb hinzufügen`,add_below_menuitem:`Zeile unterhalb hinzufügen`,split_cell_menuitem:`Zelle teilen`,merge_cells_menuitem:`Zellen zusammenführen`,background_color_menuitem:`Hintergrundfarbe`},suggestion_menu:{no_items_title:`Keine Elemente gefunden`},color_picker:{text_title:`Text`,background_title:`Hintergrund`,colors:{default:`Automatisch`,gray:`Grau`,brown:`Braun`,red:`Rot`,orange:`Orange`,yellow:`Gelb`,green:`Grün`,blue:`Blau`,purple:`Lila`,pink:`Rosa`}},formatting_toolbar:{bold:{tooltip:`Fett`,secondary_tooltip:`Mod+B`},italic:{tooltip:`Kursiv`,secondary_tooltip:`Mod+I`},underline:{tooltip:`Unterstrichen`,secondary_tooltip:`Mod+U`},strike:{tooltip:`Durchgestrichen`,secondary_tooltip:`Mod+Shift+S`},code:{tooltip:`Code`,secondary_tooltip:``},colors:{tooltip:`Farben`},link:{tooltip:`Link erstellen`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`Beschriftung bearbeiten`,input_placeholder:`Beschriftung bearbeiten`},file_replace:{tooltip:{image:`Bild ersetzen`,video:`Video ersetzen`,audio:`Audio ersetzen`,file:`Datei ersetzen`}},file_rename:{tooltip:{image:`Bild umbenennen`,video:`Video umbenennen`,audio:`Audio umbenennen`,file:`Datei umbenennen`},input_placeholder:{image:`Bild umbenennen`,video:`Video umbenennen`,audio:`Audio umbenennen`,file:`Datei umbenennen`}},file_download:{tooltip:{image:`Bild herunterladen`,video:`Video herunterladen`,audio:`Audio herunterladen`,file:`Datei herunterladen`}},file_delete:{tooltip:{image:`Bild löschen`,video:`Video löschen`,audio:`Audio löschen`,file:`Datei löschen`}},file_preview_toggle:{tooltip:`Vorschau umschalten`},nest:{tooltip:`Block verschachteln`,secondary_tooltip:`Tab`},unnest:{tooltip:`Block entnesten`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`Text linksbündig`},align_center:{tooltip:`Text zentrieren`},align_right:{tooltip:`Text rechtsbündig`},align_justify:{tooltip:`Text Blocksatz`},table_cell_merge:{tooltip:`Zellen zusammenführen`},comment:{tooltip:`Kommentar hinzufügen`}},file_panel:{upload:{title:`Hochladen`,file_placeholder:{image:`Bild hochladen`,video:`Video hochladen`,audio:`Audio hochladen`,file:`Datei hochladen`},upload_error:`Fehler: Hochladen fehlgeschlagen`},embed:{title:`Einbetten`,embed_button:{image:`Bild einbetten`,video:`Video einbetten`,audio:`Audio einbetten`,file:`Datei einbetten`},url_placeholder:`URL eingeben`}},link_toolbar:{delete:{tooltip:`Link entfernen`},edit:{text:`Link bearbeiten`,tooltip:`Bearbeiten`},open:{tooltip:`In neuem Tab öffnen`},form:{title_placeholder:`Titel bearbeiten`,url_placeholder:`URL bearbeiten`}},comments:{edited:`bearbeitet`,save_button_text:`Speichern`,cancel_button_text:`Abbrechen`,deleted_reference_text:`Originalinhalt gelöscht`,discard_pending_comment:`Möchten Sie diesen Kommentar wirklich verwerfen?`,actions:{add_reaction:`Reaktion hinzufügen`,resolve:`Lösen`,reopen:`Wieder öffnen`,edit_comment:`Kommentar bearbeiten`,delete_comment:`Kommentar löschen`,more_actions:`Weitere Aktionen`},reactions:{reacted_by:`Reagiert von`},sidebar:{marked_as_resolved:`Als gelöst markiert`,more_replies:e=>`${e} weitere Antworten`}},suggestion_changes:{formatting_change:`Formatierungsänderung`,deleted:`Gelöscht`,inserted:`Eingefügt`,inserted_by:e=>`Eingefügt von: ${e}`,deleted_by:e=>`Gelöscht von: ${e}`,changed:`Geändert`,changed_by:e=>`Geändert von: ${e}`,formatting_change_by:(e,t)=>`Formatierungsänderung (${e}) von: ${t}`},versioning:{start_of_document:`Anfang des Dokuments`,compare_since_beginning_menuitem:`Seit Beginn vergleichen`,title:`Verlauf`,close:`Schließen`,show_named_only:`Nur benannte Versionen anzeigen`,show_all:`Alle Versionen anzeigen`,comparison_on:`Vergleich einschalten`,comparison_off:`Vergleich ausschalten`,versions_list:`Versionen`,empty:`Noch keine Versionen`,empty_named_only:`Keine benannten Versionen`,current_version:`Aktuelle Version`,before_restore:`Vor der Wiederherstellung`,comparing_to:`Verglichen mit`,restored_from:e=>`Wiederhergestellt aus ${e}`,more_actions:`Weitere Aktionen`,version_name_input:`Versionsname`,name_version_menuitem:`Diese Version benennen`,rename_menuitem:`Umbenennen`,compare_with_menuitem:`Mit dieser Version vergleichen`,restore_menuitem:`Wiederherstellen`,delete_menuitem:`Löschen`,action_failed:`Etwas ist schiefgelaufen. Bitte versuche es erneut.`,history_load_failed:`Versionsverlauf konnte nicht geladen werden`},exporter:{open_file:`Datei öffnen`,open_video_file:`Video öffnen`,open_audio_file:`Audio öffnen`},generic:{loading:`Wird geladen...`,load_more:`Mehr laden`,ctrl_shortcut:`Strg`,form_submit:`OK`}},it:{slash_menu:{heading:{title:`Intestazione 1`,subtext:`Intestazione di primo livello`,aliases:[`h`,`intestazione1`,`h1`],group:`Intestazioni`},heading_2:{title:`Intestazione 2`,subtext:`Intestazione di sezione chiave`,aliases:[`h2`,`intestazione2`,`sottotitolo`],group:`Intestazioni`},heading_3:{title:`Intestazione 3`,subtext:`Intestazione di sottosezione e gruppo`,aliases:[`h3`,`intestazione3`,`sottotitolo`],group:`Intestazioni`},heading_4:{title:`Intestazione 4`,subtext:`Intestazione di sottosezione minore`,aliases:[`h4`,`intestazione4`,`sottotitolo4`],group:`Sottotitoli`},heading_5:{title:`Intestazione 5`,subtext:`Intestazione di sottosezione minore`,aliases:[`h5`,`intestazione5`,`sottotitolo5`],group:`Sottotitoli`},heading_6:{title:`Intestazione 6`,subtext:`Intestazione di livello più basso`,aliases:[`h6`,`intestazione6`,`sottotitolo6`],group:`Sottotitoli`},toggle_heading:{title:`Intestazione Espandibile 1`,subtext:`Intestazione di primo livello che può essere espansa o compressa per mostrare il contenuto`,aliases:[`h`,`intestazione1`,`h1`,`espandibile`,`comprimibile`],group:`Sottotitoli`},toggle_heading_2:{title:`Intestazione Espandibile 2`,subtext:`Intestazione di sezione che può essere espansa o compressa per mostrare il contenuto`,aliases:[`h2`,`intestazione2`,`sottotitolo`,`espandibile`,`comprimibile`],group:`Sottotitoli`},toggle_heading_3:{title:`Intestazione Espandibile 3`,subtext:`Intestazione di sottosezione che può essere espansa o compressa per mostrare il contenuto`,aliases:[`h3`,`intestazione3`,`sottotitolo`,`espandibile`,`comprimibile`],group:`Sottotitoli`},quote:{title:`Citazione`,subtext:`Citazione o estratto`,aliases:[`quotation`,`blockquote`,`bq`],group:`Blocchi Base`},numbered_list:{title:`Elenco Numerato`,subtext:`Elenco con elementi ordinati`,aliases:[`ol`,`li`,`elenco`,`elenconumerato`,`elenco numerato`],group:`Blocchi Base`},bullet_list:{title:`Elenco Puntato`,subtext:`Elenco con elementi non ordinati`,aliases:[`ul`,`li`,`elenco`,`elencopuntato`,`elenco puntato`],group:`Blocchi Base`},check_list:{title:`Elenco di Controllo`,subtext:`Elenco con caselle di controllo`,aliases:[`ul`,`li`,`elenco`,`elencocontrollo`,`elenco controllo`,`elenco verificato`,`casella di controllo`],group:`Blocchi Base`},toggle_list:{title:`Elenco Espandibile`,subtext:`Elenco con elementi nascondibili`,aliases:[`li`,`elenco`,`elenco espandibile`,`elenco collassabile`,`elenco espandibile`],group:`Blocchi Base`},paragraph:{title:`Paragrafo`,subtext:`Il corpo del tuo documento`,aliases:[`p`,`paragrafo`],group:`Blocchi Base`},code_block:{title:`Blocco di Codice`,subtext:`Blocco di codice con evidenziazione della sintassi`,aliases:[`code`,`pre`],group:`Blocchi Base`},page_break:{title:`Interruzione di Pagina`,subtext:`Separatore di pagina`,aliases:[`pagina`,`interruzione`,`separatore`],group:`Blocchi base`},table:{title:`Tabella`,subtext:`Tabella con celle modificabili`,aliases:[`tabella`],group:`Avanzato`},image:{title:`Immagine`,subtext:`Immagine ridimensionabile con didascalia`,aliases:[`immagine`,`caricaImmagine`,`carica`,`img`,`foto`,`media`,`url`],group:`Media`},video:{title:`Video`,subtext:`Video ridimensionabile con didascalia`,aliases:[`video`,`caricaVideo`,`carica`,`mp4`,`film`,`media`,`url`],group:`Media`},audio:{title:`Audio`,subtext:`Audio incorporato con didascalia`,aliases:[`audio`,`caricaAudio`,`carica`,`mp3`,`suono`,`media`,`url`],group:`Media`},file:{title:`File`,subtext:`File incorporato`,aliases:[`file`,`carica`,`embed`,`media`,`url`],group:`Media`},emoji:{title:`Emoji`,subtext:`Cerca e inserisci un'emoji`,aliases:[`emoji`,`emote`,`emozione`,`faccia`],group:`Altri`},divider:{title:`Divisore`,subtext:`Divisore di blocchi`,aliases:[`divisore`,`hr`,`horizontal rule`],group:`Blocchi base`}},placeholders:{default:`Inserisci testo o digita '/' per i comandi`,heading:`Intestazione`,toggleListItem:`Attiva/Disattiva`,bulletListItem:`Elenco`,numberedListItem:`Elenco`,checkListItem:`Elenco`,new_comment:`Scrivi un commento...`,edit_comment:`Modifica commento...`,comment_reply:`Aggiungi commento...`},file_blocks:{add_button_text:{image:`Aggiungi immagine`,video:`Aggiungi video`,audio:`Aggiungi audio`,file:`Aggiungi file`}},toggle_blocks:{add_block_button:`Toggle vuoto. Clicca per aggiungere un blocco.`,toggle_button:`Espandi o comprimi`},code_block:{add_source_button_text:`Aggiungi codice sorgente`,ok_button_text:`OK`},side_menu:{add_block_label:`Aggiungi blocco`,drag_handle_label:`Apri menu blocco`},drag_handle:{delete_menuitem:`Elimina`,colors_menuitem:`Colori`,header_row_menuitem:`Riga intestazione`,header_column_menuitem:`Colonna intestazione`},table_handle:{delete_column_menuitem:`Elimina colonna`,delete_row_menuitem:`Elimina riga`,add_left_menuitem:`Aggiungi colonna a sinistra`,add_right_menuitem:`Aggiungi colonna a destra`,add_above_menuitem:`Aggiungi riga sopra`,add_below_menuitem:`Aggiungi riga sotto`,split_cell_menuitem:`Dividi cella`,merge_cells_menuitem:`Unisci celle`,background_color_menuitem:`Colore di sfondo`},suggestion_menu:{no_items_title:`Nessun elemento trovato`},color_picker:{text_title:`Testo`,background_title:`Sfondo`,colors:{default:`Automatico`,gray:`Grigio`,brown:`Marrone`,red:`Rosso`,orange:`Arancione`,yellow:`Giallo`,green:`Verde`,blue:`Blu`,purple:`Viola`,pink:`Rosa`}},formatting_toolbar:{bold:{tooltip:`Grassetto`,secondary_tooltip:`Cmd+B`},italic:{tooltip:`Corsivo`,secondary_tooltip:`Cmd+I`},underline:{tooltip:`Sottolineato`,secondary_tooltip:`Cmd+U`},strike:{tooltip:`Barrato`,secondary_tooltip:`Cmd+Shift+S`},code:{tooltip:`Codice`,secondary_tooltip:``},colors:{tooltip:`Colori`},link:{tooltip:`Crea link`,secondary_tooltip:`Cmd+K`},file_caption:{tooltip:`Modifica didascalia`,input_placeholder:`Modifica didascalia`},file_replace:{tooltip:{image:`Sostituisci immagine`,video:`Sostituisci video`,audio:`Sostituisci audio`,file:`Sostituisci file`}},file_rename:{tooltip:{image:`Rinomina immagine`,video:`Rinomina video`,audio:`Rinomina audio`,file:`Rinomina file`},input_placeholder:{image:`Rinomina immagine`,video:`Rinomina video`,audio:`Rinomina audio`,file:`Rinomina file`}},file_download:{tooltip:{image:`Scarica immagine`,video:`Scarica video`,audio:`Scarica audio`,file:`Scarica file`}},file_delete:{tooltip:{image:`Elimina immagine`,video:`Elimina video`,audio:`Elimina audio`,file:`Elimina file`}},file_preview_toggle:{tooltip:`Attiva/disattiva anteprima`},nest:{tooltip:`Annida blocco`,secondary_tooltip:`Tab`},unnest:{tooltip:`Disannida blocco`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`Allinea testo a sinistra`},align_center:{tooltip:`Allinea testo al centro`},align_right:{tooltip:`Allinea testo a destra`},align_justify:{tooltip:`Giustifica testo`},table_cell_merge:{tooltip:`Unisci celle`},comment:{tooltip:`Aggiungi commento`}},file_panel:{upload:{title:`Carica`,file_placeholder:{image:`Carica immagine`,video:`Carica video`,audio:`Carica audio`,file:`Carica file`},upload_error:`Errore: Caricamento fallito`},embed:{title:`Incorpora`,embed_button:{image:`Incorpora immagine`,video:`Incorpora video`,audio:`Incorpora audio`,file:`Incorpora file`},url_placeholder:`Inserisci URL`}},link_toolbar:{delete:{tooltip:`Rimuovi link`},edit:{text:`Modifica link`,tooltip:`Modifica`},open:{tooltip:`Apri in una nuova scheda`},form:{title_placeholder:`Modifica titolo`,url_placeholder:`Modifica URL`}},comments:{edited:`modificato`,save_button_text:`Salva`,cancel_button_text:`Annulla`,deleted_reference_text:`Contenuto originale eliminato`,discard_pending_comment:`Vuoi davvero eliminare questo commento?`,actions:{add_reaction:`Aggiungi reazione`,resolve:`Risolvi`,reopen:`Riapri`,edit_comment:`Modifica commento`,delete_comment:`Elimina commento`,more_actions:`Altre azioni`},reactions:{reacted_by:`Reagito da`},sidebar:{marked_as_resolved:`Contrassegnato come risolto`,more_replies:e=>`${e} altre risposte`}},suggestion_changes:{formatting_change:`Modifica formattazione`,deleted:`Eliminato`,inserted:`Inserito`,inserted_by:e=>`Inserito da: ${e}`,deleted_by:e=>`Eliminato da: ${e}`,changed:`Modificato`,changed_by:e=>`Modificato da: ${e}`,formatting_change_by:(e,t)=>`Modifica formattazione (${e}) da: ${t}`},versioning:{start_of_document:`Inizio del documento`,compare_since_beginning_menuitem:`Confronta dall'inizio`,title:`Cronologia`,close:`Chiudi`,show_named_only:`Mostra solo le versioni con nome`,show_all:`Mostra tutte le versioni`,comparison_on:`Attiva il confronto`,comparison_off:`Disattiva il confronto`,versions_list:`Versioni`,empty:`Nessuna versione`,empty_named_only:`Nessuna versione con nome`,current_version:`Versione corrente`,before_restore:`Prima del ripristino`,comparing_to:`Confronto con`,restored_from:e=>`Ripristinato dal ${e}`,more_actions:`Altre azioni`,version_name_input:`Nome della versione`,name_version_menuitem:`Assegna un nome a questa versione`,rename_menuitem:`Rinomina`,compare_with_menuitem:`Confronta con questa versione`,restore_menuitem:`Ripristina`,delete_menuitem:`Elimina`,action_failed:`Qualcosa è andato storto. Riprova.`,history_load_failed:`Impossibile caricare la cronologia delle versioni`},exporter:{open_file:`Apri file`,open_video_file:`Apri video`,open_audio_file:`Apri audio`},generic:{loading:`Caricamento...`,load_more:`Carica altro`,ctrl_shortcut:`Ctrl`,form_submit:`OK`}},pt:{slash_menu:{heading:{title:`Título`,subtext:`Usado para um título de nível superior`,aliases:[`h`,`titulo1`,`h1`],group:`Títulos`},heading_2:{title:`Título 2`,subtext:`Usado para seções principais`,aliases:[`h2`,`titulo2`,`subtitulo`],group:`Títulos`},heading_3:{title:`Título 3`,subtext:`Usado para subseções e títulos de grupo`,aliases:[`h3`,`titulo3`,`subtitulo`],group:`Títulos`},heading_4:{title:`Título 4`,subtext:`Usado para subseções menores`,aliases:[`h4`,`titulo4`,`subtitulo4`],group:`Subtítulos`},heading_5:{title:`Título 5`,subtext:`Usado para títulos de subseções pequenas`,aliases:[`h5`,`titulo5`,`subtitulo5`],group:`Subtítulos`},heading_6:{title:`Título 6`,subtext:`Usado para títulos de nível mais baixo`,aliases:[`h6`,`titulo6`,`subtitulo6`],group:`Subtítulos`},toggle_heading:{title:`Título Expansível`,subtext:`Título expansível de nível superior`,aliases:[`h`,`titulo1`,`h1`,`expansível`],group:`Subtítulos`},toggle_heading_2:{title:`Título Expansível 2`,subtext:`Título expansível para seções principais`,aliases:[`h2`,`titulo2`,`subtitulo`,`expansível`],group:`Subtítulos`},toggle_heading_3:{title:`Título Expansível 3`,subtext:`Título expansível para subseções e títulos de grupo`,aliases:[`h3`,`titulo3`,`subtitulo`,`expansível`],group:`Subtítulos`},quote:{title:`Citação`,subtext:`Citação ou trecho`,aliases:[`quotation`,`blockquote`,`bq`],group:`Blocos básicos`},numbered_list:{title:`Lista Numerada`,subtext:`Usado para exibir uma lista numerada`,aliases:[`ol`,`li`,`lista`,`listanumerada`,`lista numerada`],group:`Blocos básicos`},bullet_list:{title:`Lista com Marcadores`,subtext:`Usado para exibir uma lista não ordenada`,aliases:[`ul`,`li`,`lista`,`listamarcadores`,`lista com marcadores`],group:`Blocos básicos`},check_list:{title:`Lista de verificação`,subtext:`Usado para exibir uma lista com caixas de seleção`,aliases:[`ul`,`li`,`lista`,`lista de verificação`,`lista marcada`,`caixa de seleção`],group:`Blocos básicos`},toggle_list:{title:`Lista expansível`,subtext:`Lista com subitens ocultáveis`,aliases:[`li`,`lista`,`lista expansível`,`lista recolhível`],group:`Blocos básicos`},paragraph:{title:`Parágrafo`,subtext:`Usado para o corpo do seu documento`,aliases:[`p`,`paragrafo`],group:`Blocos básicos`},code_block:{title:`Bloco de Código`,subtext:`Usado para exibir código com destaque de sintaxe`,aliases:[`codigo`,`pre`],group:`Blocos básicos`},page_break:{title:`Quebra de página`,subtext:`Separador de página`,aliases:[`page`,`break`,`separator`,`quebra`,`separador`],group:`Blocos básicos`},table:{title:`Tabela`,subtext:`Usado para tabelas`,aliases:[`tabela`],group:`Avançado`},image:{title:`Imagem`,subtext:`Inserir uma imagem`,aliases:[`imagem`,`uploadImagem`,`upload`,`img`,`foto`,`media`,`url`],group:`Mídia`},video:{title:`Vídeo`,subtext:`Inserir um vídeo`,aliases:[`vídeo`,`uploadVídeo`,`upload`,`mp4`,`filme`,`mídia`,`url`],group:`Mídia`},audio:{title:`Áudio`,subtext:`Inserir um áudio`,aliases:[`áudio`,`uploadÁudio`,`upload`,`mp3`,`som`,`mídia`,`url`],group:`Mídia`},file:{title:`Arquivo`,subtext:`Inserir um arquivo`,aliases:[`arquivo`,`upload`,`incorporar`,`mídia`,`url`],group:`Mídia`},emoji:{title:`Emoji`,subtext:`Usado para inserir um emoji`,aliases:[`emoji`,`emoticon`,`expressão emocional`,`rosto`],group:`Outros`},divider:{title:`Separador`,subtext:`Separador de blocos`,aliases:[`separador`,`hr`,`horizontal rule`],group:`Blocos básicos`}},placeholders:{default:`Digite texto ou use '/' para comandos`,heading:`Título`,toggleListItem:`Alternar`,bulletListItem:`Lista`,numberedListItem:`Lista`,checkListItem:`Lista`,new_comment:`Escreva um comentário...`,edit_comment:`Editar comentário...`,comment_reply:`Adicionar comentário...`},file_blocks:{add_button_text:{image:`Adicionar imagem`,video:`Adicionar vídeo`,audio:`Adicionar áudio`,file:`Adicionar arquivo`}},toggle_blocks:{add_block_button:`Toggle vazio. Clique para adicionar um bloco.`,toggle_button:`Expandir ou recolher`},code_block:{add_source_button_text:`Adicionar código-fonte`,ok_button_text:`OK`},side_menu:{add_block_label:`Adicionar bloco`,drag_handle_label:`Abrir menu do bloco`},drag_handle:{delete_menuitem:`Excluir`,colors_menuitem:`Cores`,header_row_menuitem:`Cabeçalho de linha`,header_column_menuitem:`Cabeçalho de coluna`},table_handle:{delete_column_menuitem:`Excluir coluna`,delete_row_menuitem:`Excluir linha`,add_left_menuitem:`Adicionar coluna à esquerda`,add_right_menuitem:`Adicionar coluna à direita`,add_above_menuitem:`Adicionar linha acima`,add_below_menuitem:`Adicionar linha abaixo`,split_cell_menuitem:`Dividir célula`,merge_cells_menuitem:`Juntar células`,background_color_menuitem:`Alterar cor de fundo`},suggestion_menu:{no_items_title:`Nenhum item encontrado`},color_picker:{text_title:`Texto`,background_title:`Fundo`,colors:{default:`Automático`,gray:`Cinza`,brown:`Marrom`,red:`Vermelho`,orange:`Laranja`,yellow:`Amarelo`,green:`Verde`,blue:`Azul`,purple:`Roxo`,pink:`Rosa`}},formatting_toolbar:{bold:{tooltip:`Negrito`,secondary_tooltip:`Mod+B`},italic:{tooltip:`Itálico`,secondary_tooltip:`Mod+I`},underline:{tooltip:`Sublinhado`,secondary_tooltip:`Mod+U`},strike:{tooltip:`Riscado`,secondary_tooltip:`Mod+Shift+X`},code:{tooltip:`Código`,secondary_tooltip:``},colors:{tooltip:`Cores`},link:{tooltip:`Criar link`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`Editar legenda`,input_placeholder:`Editar legenda`},file_replace:{tooltip:{image:`Substituir imagem`,video:`Substituir vídeo`,audio:`Substituir áudio`,file:`Substituir arquivo`}},file_rename:{tooltip:{image:`Renomear imagem`,video:`Renomear vídeo`,audio:`Renomear áudio`,file:`Renomear arquivo`},input_placeholder:{image:`Renomear imagem`,video:`Renomear vídeo`,audio:`Renomear áudio`,file:`Renomear arquivo`}},file_download:{tooltip:{image:`Baixar imagem`,video:`Baixar vídeo`,audio:`Baixar áudio`,file:`Baixar arquivo`}},file_delete:{tooltip:{image:`Excluir imagem`,video:`Excluir vídeo`,audio:`Excluir áudio`,file:`Excluir arquivo`}},file_preview_toggle:{tooltip:`Alternar visualização`},nest:{tooltip:`Aninhar bloco`,secondary_tooltip:`Tab`},unnest:{tooltip:`Desaninhar bloco`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`Alinhar à esquerda`},align_center:{tooltip:`Alinhar ao centro`},align_right:{tooltip:`Alinhar à direita`},align_justify:{tooltip:`Justificar texto`},table_cell_merge:{tooltip:`Juntar células`},comment:{tooltip:`Adicionar comentário`}},file_panel:{upload:{title:`Upload`,file_placeholder:{image:`Upload de imagem`,video:`Upload de vídeo`,audio:`Upload de áudio`,file:`Upload de arquivo`},upload_error:`Erro: Falha no upload`},embed:{title:`Incorporar`,embed_button:{image:`Incorporar imagem`,video:`Incorporar vídeo`,audio:`Incorporar áudio`,file:`Incorporar arquivo`},url_placeholder:`Insira a URL`}},link_toolbar:{delete:{tooltip:`Remover link`},edit:{text:`Editar link`,tooltip:`Editar`},open:{tooltip:`Abrir em nova aba`},form:{title_placeholder:`Editar título`,url_placeholder:`Editar URL`}},comments:{edited:`editado`,save_button_text:`Salvar`,cancel_button_text:`Cancelar`,deleted_reference_text:`Conteúdo original excluído`,discard_pending_comment:`Tem certeza de que deseja descartar este comentário?`,actions:{add_reaction:`Adicionar reação`,resolve:`Resolver`,reopen:`Reabrir`,edit_comment:`Editar comentário`,delete_comment:`Excluir comentário`,more_actions:`Mais ações`},reactions:{reacted_by:`Reagido por`},sidebar:{marked_as_resolved:`Marcado como resolvido`,more_replies:e=>`${e} respostas a mais`}},suggestion_changes:{formatting_change:`Alteração de formatação`,deleted:`Excluído`,inserted:`Inserido`,inserted_by:e=>`Inserido por: ${e}`,deleted_by:e=>`Excluído por: ${e}`,changed:`Alterado`,changed_by:e=>`Alterado por: ${e}`,formatting_change_by:(e,t)=>`Alteração de formatação (${e}) por: ${t}`},versioning:{start_of_document:`Início do documento`,compare_since_beginning_menuitem:`Comparar desde o início`,title:`Histórico`,close:`Fechar`,show_named_only:`Mostrar apenas versões nomeadas`,show_all:`Mostrar todas as versões`,comparison_on:`Ativar comparação`,comparison_off:`Desativar comparação`,versions_list:`Versões`,empty:`Ainda não há versões`,empty_named_only:`Não há versões nomeadas`,current_version:`Versão atual`,before_restore:`Antes da restauração`,comparing_to:`Comparando com`,restored_from:e=>`Restaurado de ${e}`,more_actions:`Mais ações`,version_name_input:`Nome da versão`,name_version_menuitem:`Nomear esta versão`,rename_menuitem:`Renomear`,compare_with_menuitem:`Comparar com esta versão`,restore_menuitem:`Restaurar`,delete_menuitem:`Excluir`,action_failed:`Algo deu errado. Tente novamente.`,history_load_failed:`Falha ao carregar o histórico de versões`},exporter:{open_file:`Abrir arquivo`,open_video_file:`Abrir vídeo`,open_audio_file:`Abrir áudio`},generic:{loading:`Carregando...`,load_more:`Carregar mais`,ctrl_shortcut:`Ctrl`,form_submit:`OK`}},ru:{slash_menu:{heading:{title:`Заголовок 1 уровня`,subtext:`Используется для заголовка верхнего уровня`,aliases:[`h`,`heading1`,`h1`,`заголовок1`],group:`Заголовки`},heading_2:{title:`Заголовок 2 уровня`,subtext:`Используется для ключевых разделов`,aliases:[`h2`,`heading2`,`subheading`,`заголовок2`,`подзаголовок`],group:`Заголовки`},heading_3:{title:`Заголовок 3 уровня`,subtext:`Используется для подразделов и групп`,aliases:[`h3`,`heading3`,`subheading`,`заголовок3`,`подзаголовок`],group:`Заголовки`},heading_4:{title:`Заголовок 4 уровня`,subtext:`Используется для более мелких подразделов`,aliases:[`h4`,`heading4`,`subheading4`,`заголовок4`,`подзаголовок4`],group:`Подзаголовки`},heading_5:{title:`Заголовок 5 уровня`,subtext:`Используется для заголовков небольших подразделов`,aliases:[`h5`,`heading5`,`subheading5`,`заголовок5`,`подзаголовок5`],group:`Подзаголовки`},heading_6:{title:`Заголовок 6 уровня`,subtext:`Используется для заголовков самого низкого уровня`,aliases:[`h6`,`heading6`,`subheading6`,`заголовок6`,`подзаголовок6`],group:`Подзаголовки`},toggle_heading:{title:`Сворачиваемый заголовок 1 уровня`,subtext:`Заголовок верхнего уровня, который можно свернуть/развернуть`,aliases:[`h`,`heading1`,`h1`,`заголовок1`,`сворачиваемый`],group:`Подзаголовки`},toggle_heading_2:{title:`Сворачиваемый заголовок 2 уровня`,subtext:`Заголовок для ключевых разделов, который можно свернуть/развернуть`,aliases:[`h2`,`heading2`,`subheading`,`заголовок2`,`подзаголовок`,`сворачиваемый`],group:`Подзаголовки`},toggle_heading_3:{title:`Сворачиваемый заголовок 3 уровня`,subtext:`Заголовок для подразделов и групп, который можно свернуть/развернуть`,aliases:[`h3`,`heading3`,`subheading`,`заголовок3`,`подзаголовок`,`сворачиваемый`],group:`Подзаголовки`},quote:{title:`Цитата`,subtext:`Цитата или отрывок`,aliases:[`quotation`,`blockquote`,`bq`],group:`Базовые блоки`},numbered_list:{title:`Нумерованный список`,subtext:`Используется для отображения нумерованного списка`,aliases:[`ol`,`li`,`list`,`numberedlist`,`numbered list`,`список`,`нумерованный список`],group:`Базовые блоки`},bullet_list:{title:`Маркированный список`,subtext:`Для отображения неупорядоченного списка`,aliases:[`ul`,`li`,`list`,`bulletlist`,`bullet list`,`список`,`маркированный список`],group:`Базовые блоки`},check_list:{title:`Контрольный список`,subtext:`Для отображения списка с флажками`,aliases:[`ul`,`li`,`list`,`checklist`,`check list`,`checked list`,`checkbox`,`список`],group:`Базовые блоки`},toggle_list:{title:`Сворачиваемый список`,subtext:`Список со скрываемыми элементами`,aliases:[`li`,`список`,`сворачиваемый список`],group:`Базовые блоки`},paragraph:{title:`Параграф`,subtext:`Основной текст`,aliases:[`p`,`paragraph`,`параграф`],group:`Базовые блоки`},code_block:{title:`Блок кода`,subtext:`Блок кода с подсветкой синтаксиса`,aliases:[`code`,`pre`,`блок кода`],group:`Базовые блоки`},page_break:{title:`Разрыв страницы`,subtext:`Разделитель страницы`,aliases:[`page`,`break`,`separator`,`разрыв`,`разделитель`],group:`Основные блоки`},table:{title:`Таблица`,subtext:`Используется для таблиц`,aliases:[`table`,`таблица`],group:`Продвинутый`},image:{title:`Картинка`,subtext:`Вставить изображение`,aliases:[`image`,`imageUpload`,`upload`,`img`,`picture`,`media`,`url`,`загрузка`,`картинка`,`рисунок`],group:`Медиа`},video:{title:`Видео`,subtext:`Вставить видео`,aliases:[`video`,`videoUpload`,`upload`,`mp4`,`film`,`media`,`url`,`загрузка`,`видео`],group:`Медиа`},audio:{title:`Аудио`,subtext:`Вставить аудио`,aliases:[`audio`,`audioUpload`,`upload`,`mp3`,`sound`,`media`,`url`,`загрузка`,`аудио`,`звук`,`музыка`],group:`Медиа`},file:{title:`Файл`,subtext:`Вставить файл`,aliases:[`file`,`upload`,`embed`,`media`,`url`,`загрузка`,`файл`],group:`Медиа`},emoji:{title:`Эмодзи`,subtext:`Используется для вставки эмодзи`,aliases:[`эмодзи`,`смайлик`,`выражение эмоций`,`лицо`],group:`Прочее`},divider:{title:`Разделитель`,subtext:`Разделитель блоков`,aliases:[`divider`,`hr`,`horizontal rule`],group:`Базовые блоки`}},placeholders:{default:`Введите текст или введите «/» для команд`,heading:`Заголовок`,toggleListItem:`Переключить`,bulletListItem:`Список`,numberedListItem:`Список`,checkListItem:`Список`,new_comment:`Напишите комментарий...`,edit_comment:`Редактировать комментарий...`,comment_reply:`Добавить комментарий...`},file_blocks:{add_button_text:{image:`Добавить изображение`,video:`Добавить видео`,audio:`Добавить аудио`,file:`Добавить файл`}},toggle_blocks:{add_block_button:`Пустой переключатель. Нажмите, чтобы добавить блок.`,toggle_button:`Развернуть или свернуть`},code_block:{add_source_button_text:`Добавить исходный код`,ok_button_text:`ОК`},side_menu:{add_block_label:`Добавить блок`,drag_handle_label:`Открыть меню блока`},drag_handle:{delete_menuitem:`Удалить`,colors_menuitem:`Цвета`,header_row_menuitem:`Заголовок строки`,header_column_menuitem:`Заголовок столбца`},table_handle:{delete_column_menuitem:`Удалить столбец`,delete_row_menuitem:`Удалить строку`,add_left_menuitem:`Добавить столбец слева`,add_right_menuitem:`Добавить столбец справа`,add_above_menuitem:`Добавить строку выше`,add_below_menuitem:`Добавить строку ниже`,split_cell_menuitem:`Разделить ячейку`,merge_cells_menuitem:`Объединить ячейки`,background_color_menuitem:`Цвет фона`},suggestion_menu:{no_items_title:`ничего не найдено`},color_picker:{text_title:`Текст`,background_title:`Задний фон`,colors:{default:`Авто`,gray:`Серый`,brown:`Коричневый`,red:`Красный`,orange:`Оранжевый`,yellow:`Жёлтый`,green:`Зелёный`,blue:`Голубой`,purple:`Фиолетовый`,pink:`Розовый`}},formatting_toolbar:{bold:{tooltip:`Жирный`,secondary_tooltip:`Mod+B`},italic:{tooltip:`Курсив`,secondary_tooltip:`Mod+I`},underline:{tooltip:`Подчёркнутый`,secondary_tooltip:`Mod+U`},strike:{tooltip:`Зачёркнутый`,secondary_tooltip:`Mod+Shift+X`},code:{tooltip:`Код`,secondary_tooltip:``},colors:{tooltip:`Цвета`},link:{tooltip:`Создать ссылку`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`Изменить подпись`,input_placeholder:`Изменить подпись`},file_replace:{tooltip:{image:`Заменить изображение`,video:`Заменить видео`,audio:`Заменить аудио`,file:`Заменить файл`}},file_rename:{tooltip:{image:`Переименовать изображение`,video:`Переименовать видео`,audio:`Переименовать аудио`,file:`Переименовать файл`},input_placeholder:{image:`Переименовать изображение`,video:`Переименовать видео`,audio:`Переименовать аудио`,file:`Переименовать файл`}},file_download:{tooltip:{image:`Скачать картинку`,video:`Скачать видео`,audio:`Скачать аудио`,file:`Скачать файл`}},file_delete:{tooltip:{image:`Удалить картинку`,video:`Удалить видео`,audio:`Удалить аудио`,file:`Удалить файл`}},file_preview_toggle:{tooltip:`Переключить предварительный просмотр`},nest:{tooltip:`Сдвинуть вправо`,secondary_tooltip:`Tab`},unnest:{tooltip:`Сдвинуть влево`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`Текст по левому краю`},align_center:{tooltip:`Текст по середине`},align_right:{tooltip:`Текст по правому краю`},align_justify:{tooltip:`По середине текст`},table_cell_merge:{tooltip:`Объединить ячейки`},comment:{tooltip:`Добавить комментарий`}},file_panel:{upload:{title:`Загрузить`,file_placeholder:{image:`Загрузить картинки`,video:`Загрузить видео`,audio:`Загрузить аудио`,file:`Загрузить файл`},upload_error:`Ошибка: не удалось загрузить`},embed:{title:`Вставить`,embed_button:{image:`Вставить картинку`,video:`Вставить видео`,audio:`Вставить аудио`,file:`Вставить файл`},url_placeholder:`Введите URL`}},link_toolbar:{delete:{tooltip:`Удалить ссылку`},edit:{text:`Изменить ссылку`,tooltip:`Редактировать`},open:{tooltip:`Открыть в новой вкладке`},form:{title_placeholder:`Изменить заголовок`,url_placeholder:`Изменить URL`}},comments:{edited:`изменен`,save_button_text:`Сохранить`,cancel_button_text:`Отменить`,deleted_reference_text:`Исходный контент удалён`,discard_pending_comment:`Вы уверены, что хотите отменить этот комментарий?`,actions:{add_reaction:`Добавить реакцию`,resolve:`Решить`,reopen:`Возобновить`,edit_comment:`Редактировать комментарий`,delete_comment:`Удалить комментарий`,more_actions:`Другие действия`},reactions:{reacted_by:`Отреагировал(а)`},sidebar:{marked_as_resolved:`Отмечено как решенное`,more_replies:e=>`${e} дополнительных ответов`}},suggestion_changes:{formatting_change:`Изменение форматирования`,deleted:`Удалено`,inserted:`Вставлено`,inserted_by:e=>`Вставлено: ${e}`,deleted_by:e=>`Удалено: ${e}`,changed:`Изменено`,changed_by:e=>`Изменено: ${e}`,formatting_change_by:(e,t)=>`Изменение форматирования (${e}): ${t}`},versioning:{start_of_document:`Начало документа`,compare_since_beginning_menuitem:`Сравнить с начала`,title:`История`,close:`Закрыть`,show_named_only:`Показывать только именованные версии`,show_all:`Показывать все версии`,comparison_on:`Включить сравнение`,comparison_off:`Выключить сравнение`,versions_list:`Версии`,empty:`Пока нет версий`,empty_named_only:`Нет именованных версий`,current_version:`Текущая версия`,before_restore:`До восстановления`,comparing_to:`Сравнение с`,restored_from:e=>`Восстановлено из ${e}`,more_actions:`Другие действия`,version_name_input:`Название версии`,name_version_menuitem:`Назвать эту версию`,rename_menuitem:`Переименовать`,compare_with_menuitem:`Сравнить с этой версией`,restore_menuitem:`Восстановить`,delete_menuitem:`Удалить`,action_failed:`Что-то пошло не так. Попробуйте ещё раз.`,history_load_failed:`Не удалось загрузить историю версий`},exporter:{open_file:`Открыть файл`,open_video_file:`Открыть видео`,open_audio_file:`Открыть аудио`},generic:{loading:`Загрузка...`,load_more:`Загрузить ещё`,ctrl_shortcut:`Ctrl`,form_submit:`ОК`}},tr:{slash_menu:{heading:{title:`Başlık 1`,subtext:`En üst düzey başlık`,aliases:[`h`,`heading1`,`h1`,`başlık`,`başlık1`],group:`Başlıklar`},heading_2:{title:`Başlık 2`,subtext:`Ana bölüm başlığı`,aliases:[`h2`,`heading2`,`subheading`,`başlık2`,`altbaşlık`],group:`Başlıklar`},heading_3:{title:`Başlık 3`,subtext:`Alt bölüm ve grup başlığı`,aliases:[`h3`,`heading3`,`subheading`,`başlık3`,`altbaşlık`],group:`Başlıklar`},heading_4:{title:`Başlık 4`,subtext:`Küçük alt bölüm başlığı`,aliases:[`h4`,`heading4`,`subheading4`,`başlık4`,`altbaşlık4`],group:`Alt başlıklar`},heading_5:{title:`Başlık 5`,subtext:`Küçük alt bölüm başlığı`,aliases:[`h5`,`heading5`,`subheading5`,`başlık5`,`altbaşlık5`],group:`Alt başlıklar`},heading_6:{title:`Başlık 6`,subtext:`En alt düzey başlık`,aliases:[`h6`,`heading6`,`subheading6`,`başlık6`,`altbaşlık6`],group:`Alt başlıklar`},toggle_heading:{title:`Açılır başlık 1`,subtext:`Açılıp kapanabilen en üst düzey başlık`,aliases:[`h`,`heading1`,`h1`,`collapsable`,`başlık1`,`açılır`,`daraltılabilir`],group:`Alt başlıklar`},toggle_heading_2:{title:`Açılır başlık 2`,subtext:`Açılıp kapanabilen ana bölüm başlığı`,aliases:[`h2`,`heading2`,`subheading`,`collapsable`,`başlık2`,`açılır`,`daraltılabilir`],group:`Alt başlıklar`},toggle_heading_3:{title:`Açılır başlık 3`,subtext:`Açılıp kapanabilen alt bölüm ve grup başlığı`,aliases:[`h3`,`heading3`,`subheading`,`collapsable`,`başlık3`,`açılır`,`daraltılabilir`],group:`Alt başlıklar`},quote:{title:`Alıntı`,subtext:`Alıntı veya bölüm`,aliases:[`quotation`,`blockquote`,`bq`,`alıntı`,`aktarma`],group:`Temel bloklar`},toggle_list:{title:`Açılır liste`,subtext:`Alt öğeleri gizlenebilen liste`,aliases:[`li`,`list`,`toggleList`,`toggle list`,`collapsable list`,`liste`,`açılır liste`,`daraltılabilir liste`],group:`Temel bloklar`},numbered_list:{title:`Numaralı liste`,subtext:`Sıralı öğelerden oluşan liste`,aliases:[`ol`,`li`,`list`,`numberedlist`,`numbered list`,`liste`,`numaralı liste`,`sıralı liste`],group:`Temel bloklar`},bullet_list:{title:`Madde işaretli liste`,subtext:`Sırasız öğelerden oluşan liste`,aliases:[`ul`,`li`,`list`,`bulletlist`,`bullet list`,`liste`,`madde işaretli liste`,`madde`],group:`Temel bloklar`},check_list:{title:`Yapılacaklar listesi`,subtext:`Onay kutulu liste`,aliases:[`ul`,`li`,`list`,`checklist`,`check list`,`checked list`,`checkbox`,`liste`,`yapılacaklar`,`onay kutusu`,`kontrol listesi`],group:`Temel bloklar`},paragraph:{title:`Paragraf`,subtext:`Belgenizin gövdesi`,aliases:[`p`,`paragraph`,`paragraf`,`metin`],group:`Temel bloklar`},code_block:{title:`Kod bloğu`,subtext:`Söz dizimi vurgulamalı kod bloğu`,aliases:[`code`,`pre`,`kod`,`kod bloğu`],group:`Temel bloklar`},page_break:{title:`Sayfa sonu`,subtext:`Sayfa ayırıcı`,aliases:[`page`,`break`,`separator`,`sayfa`,`sayfa sonu`,`ayırıcı`],group:`Temel bloklar`},table:{title:`Tablo`,subtext:`Hücreleri düzenlenebilen tablo`,aliases:[`table`,`tablo`],group:`Gelişmiş`},image:{title:`Görsel`,subtext:`Açıklamalı, yeniden boyutlandırılabilir görsel`,aliases:[`image`,`imageUpload`,`upload`,`img`,`picture`,`media`,`url`,`görsel`,`resim`,`fotoğraf`,`yükle`,`medya`],group:`Medya`},video:{title:`Video`,subtext:`Açıklamalı, yeniden boyutlandırılabilir video`,aliases:[`video`,`videoUpload`,`upload`,`mp4`,`film`,`media`,`url`,`yükle`,`medya`],group:`Medya`},audio:{title:`Ses`,subtext:`Açıklamalı gömülü ses`,aliases:[`audio`,`audioUpload`,`upload`,`mp3`,`sound`,`media`,`url`,`ses`,`yükle`,`medya`],group:`Medya`},file:{title:`Dosya`,subtext:`Gömülü dosya`,aliases:[`file`,`upload`,`embed`,`media`,`url`,`dosya`,`yükle`,`göm`,`medya`],group:`Medya`},emoji:{title:`Emoji`,subtext:`Emoji arayın ve ekleyin`,aliases:[`emoji`,`emote`,`emotion`,`face`,`ifade`,`duygu`,`surat`],group:`Diğer`},divider:{title:`Ayırıcı`,subtext:`Blokları görsel olarak ayırın`,aliases:[`divider`,`hr`,`line`,`horizontal rule`,`ayırıcı`,`çizgi`,`yatay çizgi`],group:`Temel bloklar`}},placeholders:{default:`Metin girin ya da komutlar için '/' yazın`,heading:`Başlık`,toggleListItem:`Açılır öğe`,bulletListItem:`Liste`,numberedListItem:`Liste`,checkListItem:`Liste`,emptyDocument:void 0,new_comment:`Yorum yazın...`,edit_comment:`Yorumu düzenleyin...`,comment_reply:`Yorum ekleyin...`},file_blocks:{add_button_text:{image:`Görsel ekle`,video:`Video ekle`,audio:`Ses ekle`,file:`Dosya ekle`}},toggle_blocks:{add_block_button:`Açılır öğe boş. Blok eklemek için tıklayın.`,toggle_button:`Genişlet veya daralt`},code_block:{add_source_button_text:`Kaynak kod ekle`,ok_button_text:`Tamam`},side_menu:{add_block_label:`Blok ekle`,drag_handle_label:`Blok menüsünü aç`},drag_handle:{delete_menuitem:`Sil`,colors_menuitem:`Renkler`,header_row_menuitem:`Başlık satırı`,header_column_menuitem:`Başlık sütunu`},table_handle:{delete_column_menuitem:`Sütunu sil`,delete_row_menuitem:`Satırı sil`,add_left_menuitem:`Sola sütun ekle`,add_right_menuitem:`Sağa sütun ekle`,add_above_menuitem:`Üste satır ekle`,add_below_menuitem:`Alta satır ekle`,split_cell_menuitem:`Hücreyi böl`,merge_cells_menuitem:`Hücreleri birleştir`,background_color_menuitem:`Arka plan rengi`},suggestion_menu:{no_items_title:`Öğe bulunamadı`},color_picker:{text_title:`Metin`,background_title:`Arka plan`,colors:{default:`Otomatik`,gray:`Gri`,brown:`Kahverengi`,red:`Kırmızı`,orange:`Turuncu`,yellow:`Sarı`,green:`Yeşil`,blue:`Mavi`,purple:`Mor`,pink:`Pembe`}},formatting_toolbar:{bold:{tooltip:`Kalın`,secondary_tooltip:`Mod+B`},italic:{tooltip:`İtalik`,secondary_tooltip:`Mod+I`},underline:{tooltip:`Altı çizili`,secondary_tooltip:`Mod+U`},strike:{tooltip:`Üstü çizili`,secondary_tooltip:`Mod+Shift+S`},code:{tooltip:`Kod`,secondary_tooltip:``},colors:{tooltip:`Renkler`},link:{tooltip:`Bağlantı oluştur`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`Açıklamayı düzenle`,input_placeholder:`Açıklamayı düzenle`},file_replace:{tooltip:{image:`Görseli değiştir`,video:`Videoyu değiştir`,audio:`Sesi değiştir`,file:`Dosyayı değiştir`}},file_rename:{tooltip:{image:`Görseli yeniden adlandır`,video:`Videoyu yeniden adlandır`,audio:`Sesi yeniden adlandır`,file:`Dosyayı yeniden adlandır`},input_placeholder:{image:`Görseli yeniden adlandır`,video:`Videoyu yeniden adlandır`,audio:`Sesi yeniden adlandır`,file:`Dosyayı yeniden adlandır`}},file_download:{tooltip:{image:`Görseli indir`,video:`Videoyu indir`,audio:`Sesi indir`,file:`Dosyayı indir`}},file_delete:{tooltip:{image:`Görseli sil`,video:`Videoyu sil`,audio:`Sesi sil`,file:`Dosyayı sil`}},file_preview_toggle:{tooltip:`Önizlemeyi aç/kapat`},nest:{tooltip:`Bloğu içeri al`,secondary_tooltip:`Tab`},unnest:{tooltip:`Bloğu dışarı al`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`Metni sola hizala`},align_center:{tooltip:`Metni ortala`},align_right:{tooltip:`Metni sağa hizala`},align_justify:{tooltip:`Metni iki yana yasla`},table_cell_merge:{tooltip:`Hücreleri birleştir`},comment:{tooltip:`Yorum ekle`}},file_panel:{upload:{title:`Yükle`,file_placeholder:{image:`Görsel yükle`,video:`Video yükle`,audio:`Ses yükle`,file:`Dosya yükle`},upload_error:`Hata: Yükleme başarısız oldu`},embed:{title:`Göm`,embed_button:{image:`Görseli göm`,video:`Videoyu göm`,audio:`Sesi göm`,file:`Dosyayı göm`},url_placeholder:`URL girin`}},link_toolbar:{delete:{tooltip:`Bağlantıyı kaldır`},edit:{text:`Bağlantıyı düzenle`,tooltip:`Düzenle`},open:{tooltip:`Yeni sekmede aç`},form:{title_placeholder:`Başlığı düzenle`,url_placeholder:`URL'yi düzenle`}},comments:{edited:`düzenlendi`,save_button_text:`Kaydet`,cancel_button_text:`Vazgeç`,deleted_reference_text:`Özgün içerik silindi`,discard_pending_comment:`Bu yorumu atmak istediğinizden emin misiniz?`,actions:{add_reaction:`Tepki ekle`,resolve:`Çözüldü`,reopen:`Yeniden aç`,edit_comment:`Yorumu düzenle`,delete_comment:`Yorumu sil`,more_actions:`Diğer işlemler`},reactions:{reacted_by:`Tepki verenler`},sidebar:{marked_as_resolved:`Çözüldü olarak işaretlendi`,more_replies:e=>`${String(e)} yanıt daha`}},suggestion_changes:{formatting_change:`Biçim değişikliği`,deleted:`Silindi`,inserted:`Eklendi`,inserted_by:e=>`Ekleyen: ${e}`,deleted_by:e=>`Silen: ${e}`,changed:`Değiştirildi`,changed_by:e=>`Değiştiren: ${e}`,formatting_change_by:(e,t)=>`Biçim değişikliği (${e}), yapan: ${t}`},versioning:{start_of_document:`Belgenin başı`,compare_since_beginning_menuitem:`Baştan beri karşılaştır`,title:`Geçmiş`,close:`Kapat`,show_named_only:`Yalnızca adlandırılmış sürümleri göster`,show_all:`Tüm sürümleri göster`,comparison_on:`Karşılaştırmayı aç`,comparison_off:`Karşılaştırmayı kapat`,versions_list:`Sürümler`,empty:`Henüz sürüm yok`,empty_named_only:`Adlandırılmış sürüm yok`,current_version:`Geçerli sürüm`,before_restore:`Geri yüklemeden önce`,comparing_to:`Karşılaştırılan`,restored_from:e=>`${e} tarihinden geri yüklendi`,more_actions:`Diğer işlemler`,version_name_input:`Sürüm adı`,name_version_menuitem:`Bu sürümü adlandır`,rename_menuitem:`Yeniden adlandır`,compare_with_menuitem:`Bu sürümle karşılaştır`,restore_menuitem:`Geri yükle`,delete_menuitem:`Sil`,action_failed:`Bir şeyler ters gitti. Lütfen tekrar deneyin.`,history_load_failed:`Sürüm geçmişi yüklenemedi`},exporter:{open_file:`Dosyayı aç`,open_video_file:`Videoyu aç`,open_audio_file:`Sesi aç`},generic:{loading:`Yükleniyor...`,load_more:`Daha fazla yükle`,ctrl_shortcut:`Ctrl`,form_submit:`Tamam`}},vi:{slash_menu:{heading:{title:`Tiêu đề H1`,subtext:`Sử dụng cho tiêu đề cấp cao nhất`,aliases:[`h`,`tieude1`,`dd1`],group:`Tiêu đề`},heading_2:{title:`Tiêu đề H2`,subtext:`Sử dụng cho các phần chính`,aliases:[`h2`,`tieude2`,`tieudephu`],group:`Tiêu đề`},heading_3:{title:`Tiêu đề H3`,subtext:`Sử dụng cho phụ đề và tiêu đề nhóm`,aliases:[`h3`,`tieude3`,`tieudephu`],group:`Tiêu đề`},heading_4:{title:`Tiêu đề H4`,subtext:`Sử dụng cho tiêu đề phụ nhỏ hơn`,aliases:[`h4`,`tieude4`,`tieudephu4`],group:`Tiêu đề phụ`},heading_5:{title:`Tiêu đề H5`,subtext:`Sử dụng cho tiêu đề phụ nhỏ hơn`,aliases:[`h5`,`tieude5`,`tieudephu5`],group:`Tiêu đề phụ`},heading_6:{title:`Tiêu đề H6`,subtext:`Sử dụng cho tiêu đề cấp thấp nhất`,aliases:[`h6`,`tieude6`,`tieudephu6`],group:`Tiêu đề phụ`},toggle_heading:{title:`Tiêu đề có thể thu gọn H1`,subtext:`Tiêu đề cấp cao nhất có thể thu gọn`,aliases:[`h`,`tieude1`,`dd1`,`thugon`],group:`Tiêu đề phụ`},toggle_heading_2:{title:`Tiêu đề có thể thu gọn H2`,subtext:`Tiêu đề cho các phần chính có thể thu gọn`,aliases:[`h2`,`tieude2`,`tieudephu`,`thugon`],group:`Tiêu đề phụ`},toggle_heading_3:{title:`Tiêu đề có thể thu gọn H3`,subtext:`Tiêu đề cho phụ đề và tiêu đề nhóm có thể thu gọn`,aliases:[`h3`,`tieude3`,`tieudephu`,`thugon`],group:`Tiêu đề phụ`},quote:{title:`Trích dẫn`,subtext:`Trích dẫn hoặc đoạn trích`,aliases:[`quotation`,`blockquote`,`bq`],group:`Khối cơ bản`},numbered_list:{title:`Danh sách đánh số`,subtext:`Sử dụng để hiển thị danh sách có đánh số`,aliases:[`ol`,`li`,`ds`,`danhsachdso`,`danh sach danh so`],group:`Khối cơ bản`},bullet_list:{title:`Danh sách`,subtext:`Sử dụng để hiển thị danh sách không đánh số`,aliases:[`ul`,`li`,`ds`,`danhsach`,`danh sach`],group:`Khối cơ bản`},check_list:{title:`Danh sách kiểm tra`,subtext:`Dùng để hiển thị danh sách có hộp kiểm`,aliases:[`ul`,`li`,`danh sach`,`danh sach kiem tra`,`danh sach da kiem tra`,`hop kiem`],group:`Khối cơ bản`},toggle_list:{title:`Danh sách có thể thu gọn`,subtext:`Danh sách với các mục con có thể ẩn`,aliases:[`li`,`danh sach`,`danh sach thu gon`,`danh sach co the an`],group:`Khối cơ bản`},paragraph:{title:`Đoạn văn`,subtext:`Sử dụng cho nội dung chính của tài liệu`,aliases:[`p`,`doanvan`],group:`Khối cơ bản`},code_block:{title:`Mã`,subtext:`Sử dụng để hiển thị mã với cú pháp`,aliases:[`code`,`pre`],group:`Khối cơ bản`},page_break:{title:`Ngắt trang`,subtext:`Phân cách trang`,aliases:[`page`,`break`,`separator`,`ngắt`,`phân cách`],group:`Khối cơ bản`},table:{title:`Bảng`,subtext:`Sử dụng để tạo bảng`,aliases:[`bang`],group:`Nâng cao`},image:{title:`Hình ảnh`,subtext:`Chèn hình ảnh`,aliases:[`anh`,`tai-len-anh`,`tai-len`,`img`,`hinh`,`media`,`url`],group:`Phương tiện`},video:{title:`Video`,subtext:`Chèn video`,aliases:[`video`,`tai-len-video`,`tai-len`,`mp4`,`phim`,`media`,`url`],group:`Phương tiện`},audio:{title:`Âm thanh`,subtext:`Chèn âm thanh`,aliases:[`âm thanh`,`tai-len-am-thanh`,`tai-len`,`mp3`,`am thanh`,`media`,`url`],group:`Phương tiện`},file:{title:`Tệp`,subtext:`Chèn tệp`,aliases:[`tep`,`tai-len`,`nhung`,`media`,`url`],group:`Phương tiện`},emoji:{title:`Biểu tượng cảm xúc`,subtext:`Dùng để chèn biểu tượng cảm xúc`,aliases:[`biểu tượng cảm xúc`,`emoji`,`emoticon`,`cảm xúc expression`,`khuôn mặt`,`face`],group:`Khác`},divider:{title:`Phân cách`,subtext:`Phân cách khối`,aliases:[`divider`,`hr`,`horizontal rule`],group:`Khối cơ bản`}},placeholders:{default:`Nhập văn bản hoặc gõ '/' để thêm định dạng`,heading:`Tiêu đề`,toggleListItem:`Chuyển đổi`,bulletListItem:`Danh sách`,numberedListItem:`Danh sách`,checkListItem:`Danh sách`,new_comment:`Viết bình luận...`,edit_comment:`Chỉnh sửa bình luận...`,comment_reply:`Thêm bình luận...`},file_blocks:{add_button_text:{image:`Thêm ảnh`,video:`Thêm video`,audio:`Thêm âm thanh`,file:`Thêm tệp`}},toggle_blocks:{add_block_button:`Toggle trống. Nhấp để thêm khối.`,toggle_button:`Mở rộng hoặc thu gọn`},code_block:{add_source_button_text:`Thêm mã nguồn`,ok_button_text:`OK`},side_menu:{add_block_label:`Thêm khối`,drag_handle_label:`Mở trình đơn khối`},drag_handle:{delete_menuitem:`Xóa`,colors_menuitem:`Màu sắc`,header_row_menuitem:`Tiêu đề hàng`,header_column_menuitem:`Tiêu đề cột`},table_handle:{delete_column_menuitem:`Xóa cột`,delete_row_menuitem:`Xóa hàng`,add_left_menuitem:`Thêm cột bên trái`,add_right_menuitem:`Thêm cột bên phải`,add_above_menuitem:`Thêm hàng phía trên`,add_below_menuitem:`Thêm hàng phía dưới`,split_cell_menuitem:`Chia ô`,merge_cells_menuitem:`Gộp ô`,background_color_menuitem:`Màu nền`},suggestion_menu:{no_items_title:`Không tìm thấy mục nào`},color_picker:{text_title:`Văn bản`,background_title:`Nền`,colors:{default:`Tự động`,gray:`Xám`,brown:`Nâu`,red:`Đỏ`,orange:`Cam`,yellow:`Vàng`,green:`Xanh lá`,blue:`Xanh dương`,purple:`Tím`,pink:`Hồng`}},formatting_toolbar:{bold:{tooltip:`In đậm`,secondary_tooltip:`Mod+B`},italic:{tooltip:`In nghiêng`,secondary_tooltip:`Mod+I`},underline:{tooltip:`Gạch dưới`,secondary_tooltip:`Mod+U`},strike:{tooltip:`Gạch ngang`,secondary_tooltip:`Mod+Shift+X`},code:{tooltip:`Code`,secondary_tooltip:``},colors:{tooltip:`Màu sắc`},link:{tooltip:`Tạo liên kết`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`Chỉnh sửa chú thích`,input_placeholder:`Chỉnh sửa chú thích`},file_replace:{tooltip:{image:`Thay thế hình ảnh`,video:`Thay thế video`,audio:`Thay thế âm thanh`,file:`Thay thế tệp`}},file_rename:{tooltip:{image:`Đổi tên hình ảnh`,video:`Đổi tên video`,audio:`Đổi tên âm thanh`,file:`Đổi tên tệp`},input_placeholder:{image:`Đổi tên hình ảnh`,video:`Đổi tên video`,audio:`Đổi tên âm thanh`,file:`Đổi tên tệp`}},file_download:{tooltip:{image:`Tải xuống hình ảnh`,video:`Tải xuống video`,audio:`Tải xuống âm thanh`,file:`Tải xuống tệp`}},file_delete:{tooltip:{image:`Xóa hình ảnh`,video:`Xóa video`,audio:`Xóa âm thanh`,file:`Xóa tệp`}},file_preview_toggle:{tooltip:`Chuyển đổi xem trước`},nest:{tooltip:`Lồng khối`,secondary_tooltip:`Tab`},unnest:{tooltip:`Bỏ lồng khối`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`Căn trái văn bản`},align_center:{tooltip:`Căn giữa văn bản`},align_right:{tooltip:`Căn phải văn bản`},align_justify:{tooltip:`Căn đều văn bản`},table_cell_merge:{tooltip:`Gộp các ô`},comment:{tooltip:`Thêm bình luận`}},file_panel:{upload:{title:`Tải lên`,file_placeholder:{image:`Tải lên hình ảnh`,video:`Tải lên video`,audio:`Tải lên âm thanh`,file:`Tải lên tệp`},upload_error:`Lỗi: Tải lên thất bại`},embed:{title:`Nhúng`,embed_button:{image:`Nhúng hình ảnh`,video:`Nhúng video`,audio:`Nhúng âm thanh`,file:`Nhúng tệp`},url_placeholder:`Nhập URL`}},link_toolbar:{delete:{tooltip:`Xóa liên kết`},edit:{text:`Chỉnh sửa liên kết`,tooltip:`Chỉnh sửa`},open:{tooltip:`Mở trong tab mới`},form:{title_placeholder:`Chỉnh sửa tiêu đề`,url_placeholder:`Chỉnh sửa URL`}},comments:{edited:`đã chỉnh sửa`,save_button_text:`Lưu`,cancel_button_text:`Hủy`,deleted_reference_text:`Nội dung gốc đã bị xóa`,discard_pending_comment:`Bạn có chắc chắn muốn hủy bình luận này không?`,actions:{add_reaction:`Thêm phản ứng`,resolve:`Giải quyết`,reopen:`Mở lại`,edit_comment:`Chỉnh sửa bình luận`,delete_comment:`Xóa bình luận`,more_actions:`Thêm hành động`},reactions:{reacted_by:`Phản ứng bởi`},sidebar:{marked_as_resolved:`Đã đánh dấu là đã giải quyết`,more_replies:e=>`${e} câu trả lời nữa`}},suggestion_changes:{formatting_change:`Thay đổi định dạng`,deleted:`Đã xóa`,inserted:`Đã chèn`,inserted_by:e=>`Được chèn bởi: ${e}`,deleted_by:e=>`Được xóa bởi: ${e}`,changed:`Đã thay đổi`,changed_by:e=>`Được thay đổi bởi: ${e}`,formatting_change_by:(e,t)=>`Thay đổi định dạng (${e}) bởi: ${t}`},versioning:{start_of_document:`Bắt đầu tài liệu`,compare_since_beginning_menuitem:`So sánh từ đầu`,title:`Lịch sử`,close:`Đóng`,show_named_only:`Chỉ hiển thị các phiên bản đã đặt tên`,show_all:`Hiển thị tất cả phiên bản`,comparison_on:`Bật so sánh`,comparison_off:`Tắt so sánh`,versions_list:`Phiên bản`,empty:`Chưa có phiên bản nào`,empty_named_only:`Không có phiên bản nào được đặt tên`,current_version:`Phiên bản hiện tại`,before_restore:`Trước khi khôi phục`,comparing_to:`Đang so sánh với`,restored_from:e=>`Khôi phục từ ${e}`,more_actions:`Thao tác khác`,version_name_input:`Tên phiên bản`,name_version_menuitem:`Đặt tên cho phiên bản này`,rename_menuitem:`Đổi tên`,compare_with_menuitem:`So sánh với phiên bản này`,restore_menuitem:`Khôi phục`,delete_menuitem:`Xóa`,action_failed:`Đã xảy ra lỗi. Vui lòng thử lại.`,history_load_failed:`Không thể tải lịch sử phiên bản`},exporter:{open_file:`Mở tệp`,open_video_file:`Mở video`,open_audio_file:`Mở âm thanh`},generic:{loading:`Đang tải...`,load_more:`Tải thêm`,ctrl_shortcut:`Ctrl`,form_submit:`OK`}},th:{slash_menu:{heading:{title:`หัวเรื่อง 1`,subtext:`หัวเรื่องระดับบนสุด`,aliases:[`h`,`heading1`,`h1`,`หัวเรื่อง`,`หัวเรื่อง1`],group:`หัวเรื่อง`},heading_2:{title:`หัวเรื่อง 2`,subtext:`หัวเรื่องของส่วนหลัก`,aliases:[`h2`,`heading2`,`subheading`,`หัวเรื่อง2`,`หัวเรื่องย่อย`],group:`หัวเรื่อง`},heading_3:{title:`หัวเรื่อง 3`,subtext:`หัวเรื่องของส่วนย่อยและกลุ่ม`,aliases:[`h3`,`heading3`,`subheading`,`หัวเรื่อง3`,`หัวเรื่องย่อย`],group:`หัวเรื่อง`},heading_4:{title:`หัวเรื่อง 4`,subtext:`หัวเรื่องของส่วนย่อยรอง`,aliases:[`h4`,`heading4`,`subheading4`,`หัวเรื่อง4`],group:`หัวเรื่องย่อย`},heading_5:{title:`หัวเรื่อง 5`,subtext:`หัวเรื่องของส่วนย่อยขนาดเล็ก`,aliases:[`h5`,`heading5`,`subheading5`,`หัวเรื่อง5`],group:`หัวเรื่องย่อย`},heading_6:{title:`หัวเรื่อง 6`,subtext:`หัวเรื่องระดับต่ำสุด`,aliases:[`h6`,`heading6`,`subheading6`,`หัวเรื่อง6`],group:`หัวเรื่องย่อย`},toggle_heading:{title:`หัวเรื่องพับได้ 1`,subtext:`หัวเรื่องระดับบนสุดที่พับได้`,aliases:[`h`,`heading1`,`h1`,`collapsable`,`พับได้`,`ยุบได้`],group:`หัวเรื่องย่อย`},toggle_heading_2:{title:`หัวเรื่องพับได้ 2`,subtext:`หัวเรื่องของส่วนหลักที่พับได้`,aliases:[`h2`,`heading2`,`subheading`,`collapsable`,`พับได้`,`ยุบได้`],group:`หัวเรื่องย่อย`},toggle_heading_3:{title:`หัวเรื่องพับได้ 3`,subtext:`หัวเรื่องของส่วนย่อยและกลุ่มที่พับได้`,aliases:[`h3`,`heading3`,`subheading`,`collapsable`,`พับได้`,`ยุบได้`],group:`หัวเรื่องย่อย`},quote:{title:`คำพูดอ้างอิง`,subtext:`คำพูดหรือข้อความที่ยกมา`,aliases:[`quotation`,`blockquote`,`bq`,`อ้างอิง`,`คำพูด`],group:`บล็อกพื้นฐาน`},toggle_list:{title:`รายการพับได้`,subtext:`รายการที่ซ่อนรายการย่อยได้`,aliases:[`li`,`list`,`toggleList`,`toggle list`,`collapsable list`,`รายการ`,`พับได้`],group:`บล็อกพื้นฐาน`},numbered_list:{title:`รายการลำดับเลข`,subtext:`รายการที่มีลำดับ`,aliases:[`ol`,`li`,`list`,`numberedlist`,`numbered list`,`รายการ`,`ลำดับเลข`],group:`บล็อกพื้นฐาน`},bullet_list:{title:`รายการหัวข้อย่อย`,subtext:`รายการที่ไม่มีลำดับ`,aliases:[`ul`,`li`,`list`,`bulletlist`,`bullet list`,`รายการ`,`หัวข้อย่อย`],group:`บล็อกพื้นฐาน`},check_list:{title:`รายการตรวจสอบ`,subtext:`รายการที่มีกล่องกาเครื่องหมาย`,aliases:[`ul`,`li`,`list`,`checklist`,`check list`,`checked list`,`checkbox`,`รายการ`,`เช็กลิสต์`,`สิ่งที่ต้องทำ`],group:`บล็อกพื้นฐาน`},paragraph:{title:`ย่อหน้า`,subtext:`เนื้อหาหลักของเอกสาร`,aliases:[`p`,`paragraph`,`ย่อหน้า`,`ข้อความ`],group:`บล็อกพื้นฐาน`},code_block:{title:`บล็อกโค้ด`,subtext:`บล็อกโค้ดพร้อมไฮไลต์ไวยากรณ์`,aliases:[`code`,`pre`,`โค้ด`],group:`บล็อกพื้นฐาน`},page_break:{title:`ตัวแบ่งหน้า`,subtext:`ตัวคั่นหน้า`,aliases:[`page`,`break`,`separator`,`แบ่งหน้า`,`ตัวคั่น`],group:`บล็อกพื้นฐาน`},table:{title:`ตาราง`,subtext:`ตารางที่แก้ไขเซลล์ได้`,aliases:[`table`,`ตาราง`],group:`ขั้นสูง`},image:{title:`รูปภาพ`,subtext:`รูปภาพที่ปรับขนาดได้พร้อมคำอธิบายภาพ`,aliases:[`image`,`imageUpload`,`upload`,`img`,`picture`,`media`,`url`,`รูปภาพ`,`ภาพ`,`อัปโหลด`],group:`สื่อ`},video:{title:`วิดีโอ`,subtext:`วิดีโอที่ปรับขนาดได้พร้อมคำอธิบาย`,aliases:[`video`,`videoUpload`,`upload`,`mp4`,`film`,`media`,`url`,`วิดีโอ`,`อัปโหลด`],group:`สื่อ`},audio:{title:`เสียง`,subtext:`เสียงที่ฝังไว้พร้อมคำอธิบาย`,aliases:[`audio`,`audioUpload`,`upload`,`mp3`,`sound`,`media`,`url`,`เสียง`,`อัปโหลด`],group:`สื่อ`},file:{title:`ไฟล์`,subtext:`ไฟล์ที่ฝังไว้`,aliases:[`file`,`upload`,`embed`,`media`,`url`,`ไฟล์`,`อัปโหลด`],group:`สื่อ`},emoji:{title:`อีโมจิ`,subtext:`ค้นหาและแทรกอีโมจิ`,aliases:[`emoji`,`emote`,`emotion`,`face`,`อีโมจิ`,`อิโมจิ`],group:`อื่นๆ`},divider:{title:`เส้นคั่น`,subtext:`คั่นบล็อกให้เห็นชัดเจน`,aliases:[`divider`,`hr`,`line`,`horizontal rule`,`เส้นคั่น`,`เส้น`],group:`บล็อกพื้นฐาน`}},placeholders:{default:`ป้อนข้อความหรือพิมพ์ '/' เพื่อดูคำสั่ง`,heading:`หัวเรื่อง`,toggleListItem:`พับได้`,bulletListItem:`รายการ`,numberedListItem:`รายการ`,checkListItem:`รายการ`,emptyDocument:void 0,new_comment:`เขียนความคิดเห็น...`,edit_comment:`แก้ไขความคิดเห็น...`,comment_reply:`เพิ่มความคิดเห็น...`},file_blocks:{add_button_text:{image:`เพิ่มรูปภาพ`,video:`เพิ่มวิดีโอ`,audio:`เพิ่มเสียง`,file:`เพิ่มไฟล์`}},toggle_blocks:{add_block_button:`รายการพับได้ว่างเปล่า คลิกเพื่อเพิ่มบล็อก`,toggle_button:`ขยายหรือยุบ`},code_block:{add_source_button_text:`เพิ่มซอร์สโค้ด`,ok_button_text:`ตกลง`},side_menu:{add_block_label:`เพิ่มบล็อก`,drag_handle_label:`เปิดเมนูบล็อก`},drag_handle:{delete_menuitem:`ลบ`,colors_menuitem:`สี`,header_row_menuitem:`แถวส่วนหัว`,header_column_menuitem:`คอลัมน์ส่วนหัว`},table_handle:{delete_column_menuitem:`ลบคอลัมน์`,delete_row_menuitem:`ลบแถว`,add_left_menuitem:`เพิ่มคอลัมน์ทางซ้าย`,add_right_menuitem:`เพิ่มคอลัมน์ทางขวา`,add_above_menuitem:`เพิ่มแถวด้านบน`,add_below_menuitem:`เพิ่มแถวด้านล่าง`,split_cell_menuitem:`แยกเซลล์`,merge_cells_menuitem:`ผสานเซลล์`,background_color_menuitem:`สีพื้นหลัง`},suggestion_menu:{no_items_title:`ไม่พบรายการ`},color_picker:{text_title:`ข้อความ`,background_title:`พื้นหลัง`,colors:{default:`อัตโนมัติ`,gray:`เทา`,brown:`น้ำตาล`,red:`แดง`,orange:`ส้ม`,yellow:`เหลือง`,green:`เขียว`,blue:`น้ำเงิน`,purple:`ม่วง`,pink:`ชมพู`}},formatting_toolbar:{bold:{tooltip:`ตัวหนา`,secondary_tooltip:`Mod+B`},italic:{tooltip:`ตัวเอียง`,secondary_tooltip:`Mod+I`},underline:{tooltip:`ขีดเส้นใต้`,secondary_tooltip:`Mod+U`},strike:{tooltip:`ขีดทับ`,secondary_tooltip:`Mod+Shift+S`},code:{tooltip:`โค้ด`,secondary_tooltip:``},colors:{tooltip:`สี`},link:{tooltip:`สร้างลิงก์`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`แก้ไขคำอธิบาย`,input_placeholder:`แก้ไขคำอธิบาย`},file_replace:{tooltip:{image:`แทนที่รูปภาพ`,video:`แทนที่วิดีโอ`,audio:`แทนที่เสียง`,file:`แทนที่ไฟล์`}},file_rename:{tooltip:{image:`เปลี่ยนชื่อรูปภาพ`,video:`เปลี่ยนชื่อวิดีโอ`,audio:`เปลี่ยนชื่อเสียง`,file:`เปลี่ยนชื่อไฟล์`},input_placeholder:{image:`เปลี่ยนชื่อรูปภาพ`,video:`เปลี่ยนชื่อวิดีโอ`,audio:`เปลี่ยนชื่อเสียง`,file:`เปลี่ยนชื่อไฟล์`}},file_download:{tooltip:{image:`ดาวน์โหลดรูปภาพ`,video:`ดาวน์โหลดวิดีโอ`,audio:`ดาวน์โหลดเสียง`,file:`ดาวน์โหลดไฟล์`}},file_delete:{tooltip:{image:`ลบรูปภาพ`,video:`ลบวิดีโอ`,audio:`ลบเสียง`,file:`ลบไฟล์`}},file_preview_toggle:{tooltip:`เปิด/ปิดตัวอย่าง`},nest:{tooltip:`เยื้องบล็อกเข้า`,secondary_tooltip:`Tab`},unnest:{tooltip:`เยื้องบล็อกออก`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`จัดข้อความชิดซ้าย`},align_center:{tooltip:`จัดข้อความกึ่งกลาง`},align_right:{tooltip:`จัดข้อความชิดขวา`},align_justify:{tooltip:`จัดข้อความเต็มแนว`},table_cell_merge:{tooltip:`ผสานเซลล์`},comment:{tooltip:`เพิ่มความคิดเห็น`}},file_panel:{upload:{title:`อัปโหลด`,file_placeholder:{image:`อัปโหลดรูปภาพ`,video:`อัปโหลดวิดีโอ`,audio:`อัปโหลดเสียง`,file:`อัปโหลดไฟล์`},upload_error:`ข้อผิดพลาด: อัปโหลดไม่สำเร็จ`},embed:{title:`ฝัง`,embed_button:{image:`ฝังรูปภาพ`,video:`ฝังวิดีโอ`,audio:`ฝังเสียง`,file:`ฝังไฟล์`},url_placeholder:`ป้อน URL`}},link_toolbar:{delete:{tooltip:`เอาลิงก์ออก`},edit:{text:`แก้ไขลิงก์`,tooltip:`แก้ไข`},open:{tooltip:`เปิดในแท็บใหม่`},form:{title_placeholder:`แก้ไขชื่อ`,url_placeholder:`แก้ไข URL`}},comments:{edited:`แก้ไขแล้ว`,save_button_text:`บันทึก`,cancel_button_text:`ยกเลิก`,deleted_reference_text:`เนื้อหาต้นฉบับถูกลบแล้ว`,discard_pending_comment:`แน่ใจหรือไม่ว่าต้องการละทิ้งความคิดเห็นนี้`,actions:{add_reaction:`เพิ่มรีแอคชัน`,resolve:`แก้ไขแล้ว`,reopen:`เปิดอีกครั้ง`,edit_comment:`แก้ไขความคิดเห็น`,delete_comment:`ลบความคิดเห็น`,more_actions:`การทำงานเพิ่มเติม`},reactions:{reacted_by:`รีแอคชันโดย`},sidebar:{marked_as_resolved:`ทำเครื่องหมายว่าแก้ไขแล้ว`,more_replies:e=>`อีก ${String(e)} คำตอบ`}},suggestion_changes:{formatting_change:`การเปลี่ยนรูปแบบ`,deleted:`ลบแล้ว`,inserted:`แทรกแล้ว`,inserted_by:e=>`แทรกโดย: ${e}`,deleted_by:e=>`ลบโดย: ${e}`,changed:`เปลี่ยนแล้ว`,changed_by:e=>`เปลี่ยนโดย: ${e}`,formatting_change_by:(e,t)=>`เปลี่ยนรูปแบบ (${e}) โดย: ${t}`},versioning:{start_of_document:`จุดเริ่มต้นของเอกสาร`,compare_since_beginning_menuitem:`เปรียบเทียบตั้งแต่เริ่มต้น`,title:`ประวัติ`,close:`ปิด`,show_named_only:`แสดงเฉพาะเวอร์ชันที่ตั้งชื่อ`,show_all:`แสดงทุกเวอร์ชัน`,comparison_on:`เปิดการเปรียบเทียบ`,comparison_off:`ปิดการเปรียบเทียบ`,versions_list:`เวอร์ชัน`,empty:`ยังไม่มีเวอร์ชัน`,empty_named_only:`ไม่มีเวอร์ชันที่ตั้งชื่อ`,current_version:`เวอร์ชันปัจจุบัน`,before_restore:`ก่อนกู้คืน`,comparing_to:`กำลังเปรียบเทียบกับ`,restored_from:e=>`กู้คืนจาก ${e}`,more_actions:`การทำงานเพิ่มเติม`,version_name_input:`ชื่อเวอร์ชัน`,name_version_menuitem:`ตั้งชื่อเวอร์ชันนี้`,rename_menuitem:`เปลี่ยนชื่อ`,compare_with_menuitem:`เปรียบเทียบกับเวอร์ชันนี้`,restore_menuitem:`กู้คืน`,delete_menuitem:`ลบ`,action_failed:`เกิดข้อผิดพลาด โปรดลองอีกครั้ง`,history_load_failed:`โหลดประวัติเวอร์ชันไม่สำเร็จ`},exporter:{open_file:`เปิดไฟล์`,open_video_file:`เปิดวิดีโอ`,open_audio_file:`เปิดเสียง`},generic:{loading:`กำลังโหลด...`,load_more:`โหลดเพิ่ม`,ctrl_shortcut:`Ctrl`,form_submit:`ตกลง`}},hi:{slash_menu:{heading:{title:`हेडिंग 1`,subtext:`सबसे ऊपर के स्तर की हेडिंग`,aliases:[`h`,`heading1`,`h1`,`हेडिंग`,`हेडिंग1`,`शीर्षक`],group:`हेडिंग`},heading_2:{title:`हेडिंग 2`,subtext:`मुख्य सेक्शन की हेडिंग`,aliases:[`h2`,`heading2`,`subheading`,`हेडिंग2`,`उपशीर्षक`],group:`हेडिंग`},heading_3:{title:`हेडिंग 3`,subtext:`सब-सेक्शन और ग्रुप की हेडिंग`,aliases:[`h3`,`heading3`,`subheading`,`हेडिंग3`,`उपशीर्षक`],group:`हेडिंग`},heading_4:{title:`हेडिंग 4`,subtext:`छोटे सब-सेक्शन की हेडिंग`,aliases:[`h4`,`heading4`,`subheading4`,`हेडिंग4`,`उपशीर्षक4`],group:`सबहेडिंग`},heading_5:{title:`हेडिंग 5`,subtext:`और छोटे सब-सेक्शन की हेडिंग`,aliases:[`h5`,`heading5`,`subheading5`,`हेडिंग5`,`उपशीर्षक5`],group:`सबहेडिंग`},heading_6:{title:`हेडिंग 6`,subtext:`सबसे निचले स्तर की हेडिंग`,aliases:[`h6`,`heading6`,`subheading6`,`हेडिंग6`,`उपशीर्षक6`],group:`सबहेडिंग`},toggle_heading:{title:`टॉगल हेडिंग 1`,subtext:`खुलने-बंद होने वाली सबसे ऊपर की हेडिंग`,aliases:[`h`,`heading1`,`h1`,`collapsable`,`हेडिंग1`,`टॉगल`,`समेटने योग्य`],group:`सबहेडिंग`},toggle_heading_2:{title:`टॉगल हेडिंग 2`,subtext:`खुलने-बंद होने वाली मुख्य सेक्शन की हेडिंग`,aliases:[`h2`,`heading2`,`subheading`,`collapsable`,`हेडिंग2`,`टॉगल`,`समेटने योग्य`],group:`सबहेडिंग`},toggle_heading_3:{title:`टॉगल हेडिंग 3`,subtext:`खुलने-बंद होने वाली सब-सेक्शन और ग्रुप की हेडिंग`,aliases:[`h3`,`heading3`,`subheading`,`collapsable`,`हेडिंग3`,`टॉगल`,`समेटने योग्य`],group:`सबहेडिंग`},quote:{title:`उद्धरण`,subtext:`उद्धरण या अंश`,aliases:[`quotation`,`blockquote`,`bq`,`उद्धरण`,`कोट`],group:`बेसिक ब्लॉक`},toggle_list:{title:`टॉगल सूची`,subtext:`ऐसी सूची जिसके उप-आइटम छिपाए जा सकते हैं`,aliases:[`li`,`list`,`toggleList`,`toggle list`,`collapsable list`,`सूची`,`टॉगल`,`टॉगल सूची`],group:`बेसिक ब्लॉक`},numbered_list:{title:`नंबर वाली सूची`,subtext:`क्रम से नंबर वाले आइटम की सूची`,aliases:[`ol`,`li`,`list`,`numberedlist`,`numbered list`,`सूची`,`नंबर`,`क्रमांकित सूची`],group:`बेसिक ब्लॉक`},bullet_list:{title:`बुलेट सूची`,subtext:`बिना क्रम वाले आइटम की सूची`,aliases:[`ul`,`li`,`list`,`bulletlist`,`bullet list`,`सूची`,`बुलेट`,`बुलेट सूची`],group:`बेसिक ब्लॉक`},check_list:{title:`चेक सूची`,subtext:`चेकबॉक्स वाली सूची`,aliases:[`ul`,`li`,`list`,`checklist`,`check list`,`checked list`,`checkbox`,`सूची`,`चेकलिस्ट`,`चेकबॉक्स`,`टू-डू`],group:`बेसिक ब्लॉक`},paragraph:{title:`पैराग्राफ़`,subtext:`आपके डॉक्यूमेंट का मुख्य टेक्स्ट`,aliases:[`p`,`paragraph`,`पैराग्राफ़`,`अनुच्छेद`,`टेक्स्ट`],group:`बेसिक ब्लॉक`},code_block:{title:`कोड ब्लॉक`,subtext:`सिंटैक्स हाइलाइटिंग वाला कोड ब्लॉक`,aliases:[`code`,`pre`,`कोड`],group:`बेसिक ब्लॉक`},page_break:{title:`पेज ब्रेक`,subtext:`पेज अलग करने वाला`,aliases:[`page`,`break`,`separator`,`पेज`,`ब्रेक`,`पेज ब्रेक`],group:`बेसिक ब्लॉक`},table:{title:`टेबल`,subtext:`एडिट होने वाले सेल की टेबल`,aliases:[`table`,`टेबल`,`तालिका`],group:`एडवांस्ड`},image:{title:`इमेज`,subtext:`कैप्शन के साथ, साइज़ बदलने लायक इमेज`,aliases:[`image`,`imageUpload`,`upload`,`img`,`picture`,`media`,`url`,`इमेज`,`तस्वीर`,`फ़ोटो`,`अपलोड`],group:`मीडिया`},video:{title:`वीडियो`,subtext:`कैप्शन के साथ, साइज़ बदलने लायक वीडियो`,aliases:[`video`,`videoUpload`,`upload`,`mp4`,`film`,`media`,`url`,`वीडियो`,`फ़िल्म`,`अपलोड`],group:`मीडिया`},audio:{title:`ऑडियो`,subtext:`कैप्शन के साथ एम्बेड किया गया ऑडियो`,aliases:[`audio`,`audioUpload`,`upload`,`mp3`,`sound`,`media`,`url`,`ऑडियो`,`आवाज़`,`अपलोड`],group:`मीडिया`},file:{title:`फ़ाइल`,subtext:`एम्बेड की गई फ़ाइल`,aliases:[`file`,`upload`,`embed`,`media`,`url`,`फ़ाइल`,`अपलोड`,`एम्बेड`],group:`मीडिया`},emoji:{title:`इमोजी`,subtext:`इमोजी खोजें और डालें`,aliases:[`emoji`,`emote`,`emotion`,`face`,`इमोजी`,`चेहरा`],group:`अन्य`},divider:{title:`डिवाइडर`,subtext:`ब्लॉक को दिखने में अलग करें`,aliases:[`divider`,`hr`,`line`,`horizontal rule`,`डिवाइडर`,`लाइन`,`रेखा`],group:`बेसिक ब्लॉक`}},placeholders:{default:`टेक्स्ट लिखें या कमांड के लिए '/' टाइप करें`,heading:`हेडिंग`,toggleListItem:`टॉगल`,bulletListItem:`सूची`,numberedListItem:`सूची`,checkListItem:`सूची`,emptyDocument:void 0,new_comment:`कमेंट लिखें...`,edit_comment:`कमेंट एडिट करें...`,comment_reply:`कमेंट जोड़ें...`},file_blocks:{add_button_text:{image:`इमेज जोड़ें`,video:`वीडियो जोड़ें`,audio:`ऑडियो जोड़ें`,file:`फ़ाइल जोड़ें`}},toggle_blocks:{add_block_button:`खाली टॉगल। ब्लॉक जोड़ने के लिए क्लिक करें।`,toggle_button:`खोलें या बंद करें`},code_block:{add_source_button_text:`सोर्स कोड जोड़ें`,ok_button_text:`ठीक है`},side_menu:{add_block_label:`ब्लॉक जोड़ें`,drag_handle_label:`ब्लॉक मेन्यू खोलें`},drag_handle:{delete_menuitem:`डिलीट करें`,colors_menuitem:`रंग`,header_row_menuitem:`हेडर पंक्ति`,header_column_menuitem:`हेडर कॉलम`},table_handle:{delete_column_menuitem:`कॉलम डिलीट करें`,delete_row_menuitem:`पंक्ति डिलीट करें`,add_left_menuitem:`बाईं ओर कॉलम जोड़ें`,add_right_menuitem:`दाईं ओर कॉलम जोड़ें`,add_above_menuitem:`ऊपर पंक्ति जोड़ें`,add_below_menuitem:`नीचे पंक्ति जोड़ें`,split_cell_menuitem:`सेल बाँटें`,merge_cells_menuitem:`सेल मिलाएँ`,background_color_menuitem:`बैकग्राउंड का रंग`},suggestion_menu:{no_items_title:`कोई आइटम नहीं मिला`},color_picker:{text_title:`टेक्स्ट`,background_title:`बैकग्राउंड`,colors:{default:`अपने आप`,gray:`स्लेटी`,brown:`भूरा`,red:`लाल`,orange:`नारंगी`,yellow:`पीला`,green:`हरा`,blue:`नीला`,purple:`बैंगनी`,pink:`गुलाबी`}},formatting_toolbar:{bold:{tooltip:`बोल्ड`,secondary_tooltip:`Mod+B`},italic:{tooltip:`इटैलिक`,secondary_tooltip:`Mod+I`},underline:{tooltip:`अंडरलाइन`,secondary_tooltip:`Mod+U`},strike:{tooltip:`स्ट्राइकथ्रू`,secondary_tooltip:`Mod+Shift+S`},code:{tooltip:`कोड`,secondary_tooltip:``},colors:{tooltip:`रंग`},link:{tooltip:`लिंक बनाएँ`,secondary_tooltip:`Mod+K`},file_caption:{tooltip:`कैप्शन एडिट करें`,input_placeholder:`कैप्शन एडिट करें`},file_replace:{tooltip:{image:`इमेज बदलें`,video:`वीडियो बदलें`,audio:`ऑडियो बदलें`,file:`फ़ाइल बदलें`}},file_rename:{tooltip:{image:`इमेज का नाम बदलें`,video:`वीडियो का नाम बदलें`,audio:`ऑडियो का नाम बदलें`,file:`फ़ाइल का नाम बदलें`},input_placeholder:{image:`इमेज का नाम बदलें`,video:`वीडियो का नाम बदलें`,audio:`ऑडियो का नाम बदलें`,file:`फ़ाइल का नाम बदलें`}},file_download:{tooltip:{image:`इमेज डाउनलोड करें`,video:`वीडियो डाउनलोड करें`,audio:`ऑडियो डाउनलोड करें`,file:`फ़ाइल डाउनलोड करें`}},file_delete:{tooltip:{image:`इमेज डिलीट करें`,video:`वीडियो डिलीट करें`,audio:`ऑडियो डिलीट करें`,file:`फ़ाइल डिलीट करें`}},file_preview_toggle:{tooltip:`प्रीव्यू दिखाएँ या छिपाएँ`},nest:{tooltip:`ब्लॉक अंदर करें`,secondary_tooltip:`Tab`},unnest:{tooltip:`ब्लॉक बाहर करें`,secondary_tooltip:`Shift+Tab`},align_left:{tooltip:`टेक्स्ट बाईं ओर करें`},align_center:{tooltip:`टेक्स्ट बीच में करें`},align_right:{tooltip:`टेक्स्ट दाईं ओर करें`},align_justify:{tooltip:`टेक्स्ट दोनों ओर बराबर करें`},table_cell_merge:{tooltip:`सेल मिलाएँ`},comment:{tooltip:`कमेंट जोड़ें`}},file_panel:{upload:{title:`अपलोड`,file_placeholder:{image:`इमेज अपलोड करें`,video:`वीडियो अपलोड करें`,audio:`ऑडियो अपलोड करें`,file:`फ़ाइल अपलोड करें`},upload_error:`गड़बड़ी: अपलोड नहीं हो सका`},embed:{title:`एम्बेड`,embed_button:{image:`इमेज एम्बेड करें`,video:`वीडियो एम्बेड करें`,audio:`ऑडियो एम्बेड करें`,file:`फ़ाइल एम्बेड करें`},url_placeholder:`URL डालें`}},link_toolbar:{delete:{tooltip:`लिंक हटाएँ`},edit:{text:`लिंक एडिट करें`,tooltip:`एडिट करें`},open:{tooltip:`नए टैब में खोलें`},form:{title_placeholder:`शीर्षक एडिट करें`,url_placeholder:`URL एडिट करें`}},comments:{edited:`एडिट किया गया`,save_button_text:`सेव करें`,cancel_button_text:`रद्द करें`,deleted_reference_text:`मूल सामग्री डिलीट हो गई`,discard_pending_comment:`क्या आप सच में यह कमेंट छोड़ना चाहते हैं?`,actions:{add_reaction:`रिएक्शन जोड़ें`,resolve:`हल करें`,reopen:`फिर से खोलें`,edit_comment:`कमेंट एडिट करें`,delete_comment:`कमेंट डिलीट करें`,more_actions:`और विकल्प`},reactions:{reacted_by:`रिएक्शन देने वाले`},sidebar:{marked_as_resolved:`हल के रूप में मार्क किया गया`,more_replies:e=>`${String(e)} और जवाब`}},suggestion_changes:{formatting_change:`फ़ॉर्मैटिंग में बदलाव`,deleted:`डिलीट किया गया`,inserted:`जोड़ा गया`,inserted_by:e=>`जोड़ने वाले: ${e}`,deleted_by:e=>`डिलीट करने वाले: ${e}`,changed:`बदला गया`,changed_by:e=>`बदलने वाले: ${e}`,formatting_change_by:(e,t)=>`फ़ॉर्मैटिंग में बदलाव (${e}), करने वाले: ${t}`},versioning:{start_of_document:`दस्तावेज़ की शुरुआत`,compare_since_beginning_menuitem:`शुरुआत से तुलना करें`,title:`इतिहास`,close:`बंद करें`,show_named_only:`केवल नाम वाले संस्करण दिखाएँ`,show_all:`सभी संस्करण दिखाएँ`,comparison_on:`तुलना चालू करें`,comparison_off:`तुलना बंद करें`,versions_list:`संस्करण`,empty:`अभी कोई संस्करण नहीं`,empty_named_only:`कोई नाम वाला संस्करण नहीं`,current_version:`मौजूदा संस्करण`,before_restore:`पुनर्स्थापित करने से पहले`,comparing_to:`इससे तुलना`,restored_from:e=>`${e} से पुनर्स्थापित`,more_actions:`और कार्रवाइयाँ`,version_name_input:`संस्करण का नाम`,name_version_menuitem:`इस संस्करण को नाम दें`,rename_menuitem:`नाम बदलें`,compare_with_menuitem:`इस संस्करण से तुलना करें`,restore_menuitem:`पुनर्स्थापित करें`,delete_menuitem:`डिलीट करें`,action_failed:`कुछ गलत हुआ। कृपया फिर से कोशिश करें।`,history_load_failed:`संस्करण इतिहास लोड नहीं हो सका`},exporter:{open_file:`फ़ाइल खोलें`,open_video_file:`वीडियो खोलें`,open_audio_file:`ऑडियो खोलें`},generic:{loading:`लोड हो रहा है...`,load_more:`और लोड करें`,ctrl_shortcut:`Ctrl`,form_submit:`ठीक है`}}},fy=F({en:{loading:`Opening…`,unreadable:`This doc cannot be shown right now: its file is not written as a doc. Here is what it says.`,duplicate:`Duplicate`,remove:`Delete`,colors:`Colors`,nothing:`No block by that name`,nothingToLink:`Nothing in the project by that name`,turnInto:`Turn into`,aligns:{left:`Left`,center:`Center`,right:`Right`,justify:`Justify`},copyPlace:`Copy its place in the file`,find:`Find something to do…`,text:`text`,background:`background`,placeholder:`Write, or press / for blocks`,heading:`Heading`,colorNames:{gray:`Gray`,brown:`Brown`,red:`Red`,orange:`Orange`,yellow:`Yellow`,green:`Green`,blue:`Blue`,purple:`Purple`,pink:`Pink`},embed:`Drawn by code`,title:`Title`,untitled:`Untitled`,outline:`On this page`,blocks:{paragraph:`Text`,heading1:`Heading 1`,heading2:`Heading 2`,heading3:`Heading 3`,bullet:`Bulleted list`,numbered:`Numbered list`,check:`To-do list`,toggle:`Toggle`,quote:`Quote`,callout:`Callout`,code:`Code`,divider:`Divider`,table:`Table`,image:`Image`,chart:`Chart`,equation:`Equation`,diagram:`Diagram`,columns2:`2 columns`,columns3:`3 columns`,footnote:`Footnote`,pagebreak:`Page break`},component:`Component`,sample:{category:e=>`Category ${String(e)}`,series:e=>`Series ${String(e)}`},chart:{types:{"column-clustered":`Clustered column`,"column-stacked":`Stacked column`,"column-stacked-100":`100% stacked column`,"bar-clustered":`Clustered bar`,"bar-stacked":`Stacked bar`,"bar-stacked-100":`100% stacked bar`,line:`Line`,"line-markers":`Line with markers`,area:`Area`,"area-stacked":`Stacked area`,"area-stacked-100":`100% stacked area`,pie:`Pie`,doughnut:`Doughnut`,scatter:`Scatter`,"scatter-lines":`Scatter with straight lines and markers`,"scatter-smooth":`Scatter with smooth lines and markers`},type:`Chart type`,title:`Chart title`,legend:`Legend`,legendAt:{none:`None`,bottom:`Bottom`,top:`Top`,left:`Left`,right:`Right`},dataLabels:`Data labels`,addCategory:`Add category`,addSeries:`Add series`,deleteCategory:`Delete category`,deleteSeries:`Delete series`,cell:(e,t)=>`Row ${String(e)}, column ${String(t)}`,fromFile:e=>`The numbers come from ${e}: change them there.`,notHere:e=>`The numbers from ${e} are not here yet.`,cannotDraw:`This chart cannot be drawn`},emptyEquation:`Empty equation`,emptyDiagram:`Empty diagram`,style:`Style`,fonts:{sans:`Sans`,serif:`Serif`,mono:`Mono`},accent:`Accent`,defaultColor:`Default`,pageNumbers:`Page numbers`,cover:{add:`Add cover`,change:`Change cover`,reposition:`Reposition`,remove:`Remove`,drag:`Drag image to reposition`,save:`Save position`,cancel:`Cancel`,upload:`Upload`,none:`No pictures in the project`,gallery:`Gallery`,project:`Project`,names:{dots:`Pointillist`,scales:`Sea scales`,bay:`Evening bay`,stacks:`Wheat stacks`,steam:`Steam train`,dusk:`Mountains at dusk`,lake:`Lake at dawn`}}},"zh-cn":{loading:`正在打开…`,unreadable:`这份文档现在显示不了:文件的写法不对。下面是它的原文。`,duplicate:`复制一份`,remove:`删除`,colors:`颜色`,nothing:`没有叫这个名字的块`,nothingToLink:`项目里没有叫这个名字的内容`,turnInto:`转换为`,aligns:{left:`左对齐`,center:`居中`,right:`右对齐`,justify:`两端对齐`},copyPlace:`复制它在文件里的位置`,find:`输入要做的事…`,text:`文字`,background:`背景`,placeholder:`输入文字,或按 / 选择块`,heading:`标题`,colorNames:{gray:`灰色`,brown:`棕色`,red:`红色`,orange:`橙色`,yellow:`黄色`,green:`绿色`,blue:`蓝色`,purple:`紫色`,pink:`粉色`},embed:`由代码绘制`,title:`标题`,untitled:`未命名`,outline:`本页目录`,blocks:{paragraph:`正文`,heading1:`一级标题`,heading2:`二级标题`,heading3:`三级标题`,bullet:`无序列表`,numbered:`有序列表`,check:`待办清单`,toggle:`折叠`,quote:`引用`,callout:`提示块`,code:`代码`,divider:`分隔线`,table:`表格`,image:`图片`,chart:`图表`,equation:`公式`,diagram:`图示`,columns2:`2 栏`,columns3:`3 栏`,footnote:`脚注`,pagebreak:`分页符`},component:`组件`,sample:{category:e=>`类别 ${String(e)}`,series:e=>`系列 ${String(e)}`},chart:{types:{"column-clustered":`簇状柱形图`,"column-stacked":`堆积柱形图`,"column-stacked-100":`百分比堆积柱形图`,"bar-clustered":`簇状条形图`,"bar-stacked":`堆积条形图`,"bar-stacked-100":`百分比堆积条形图`,line:`折线图`,"line-markers":`带数据标记的折线图`,area:`面积图`,"area-stacked":`堆积面积图`,"area-stacked-100":`百分比堆积面积图`,pie:`饼图`,doughnut:`圆环图`,scatter:`散点图`,"scatter-lines":`带直线和数据标记的散点图`,"scatter-smooth":`带平滑线和数据标记的散点图`},type:`图表类型`,title:`图表标题`,legend:`图例`,legendAt:{none:`无`,bottom:`底部`,top:`顶部`,left:`左侧`,right:`右侧`},dataLabels:`数据标签`,addCategory:`添加类别`,addSeries:`添加系列`,deleteCategory:`删除类别`,deleteSeries:`删除系列`,cell:(e,t)=>`第 ${String(e)} 行,第 ${String(t)} 列`,fromFile:e=>`数值来自 ${e}:请在那里修改。`,notHere:e=>`${e} 的数值还没到。`,cannotDraw:`这个图表画不出来`},emptyEquation:`空公式`,emptyDiagram:`空图示`,style:`样式`,fonts:{sans:`无衬线`,serif:`衬线`,mono:`等宽`},accent:`强调色`,defaultColor:`默认`,pageNumbers:`页码`,cover:{add:`添加封面`,change:`更换封面`,reposition:`调整位置`,remove:`移除`,drag:`拖动图片以调整位置`,save:`保存位置`,cancel:`取消`,upload:`上传`,none:`项目中没有图片`,gallery:`图库`,project:`项目`,names:{dots:`点彩`,scales:`青海波`,bay:`暮色海湾`,stacks:`麦垛`,steam:`蒸汽火车`,dusk:`暮山`,lake:`晨湖`}}},"zh-tw":{loading:`正在打開…`,unreadable:`目前無法顯示這份文件:它的檔案不是以文件的格式撰寫。以下是檔案的原文。`,duplicate:`複製一份`,remove:`刪除`,colors:`顏色`,nothing:`沒有這個名稱的區塊`,nothingToLink:`專案中沒有這個名稱的內容`,turnInto:`轉換為`,aligns:{left:`靠左對齊`,center:`置中`,right:`靠右對齊`,justify:`左右對齊`},copyPlace:`拷貝它在檔案中的位置`,find:`搜尋要做的事…`,text:`文字`,background:`背景`,placeholder:`輸入文字,或按 / 選擇區塊`,heading:`標題`,colorNames:{gray:`灰色`,brown:`棕色`,red:`紅色`,orange:`橘色`,yellow:`黃色`,green:`綠色`,blue:`藍色`,purple:`紫色`,pink:`粉紅色`},embed:`由程式碼繪製`,title:`標題`,untitled:`未命名`,outline:`本頁內容`,blocks:{paragraph:`文字`,heading1:`標題 1`,heading2:`標題 2`,heading3:`標題 3`,bullet:`項目符號清單`,numbered:`編號清單`,check:`待辦清單`,toggle:`摺疊`,quote:`引言`,callout:`標註`,code:`程式碼`,divider:`分隔線`,table:`表格`,image:`圖片`,chart:`圖表`,equation:`方程式`,diagram:`圖示`,columns2:`2 欄`,columns3:`3 欄`,footnote:`註腳`,pagebreak:`分頁符號`},component:`元件`,sample:{category:e=>`類別 ${String(e)}`,series:e=>`數列 ${String(e)}`},chart:{types:{"column-clustered":`群組直條圖`,"column-stacked":`堆疊直條圖`,"column-stacked-100":`百分比堆疊直條圖`,"bar-clustered":`群組橫條圖`,"bar-stacked":`堆疊橫條圖`,"bar-stacked-100":`百分比堆疊橫條圖`,line:`折線圖`,"line-markers":`含有資料標記的折線圖`,area:`區域圖`,"area-stacked":`堆疊區域圖`,"area-stacked-100":`百分比堆疊區域圖`,pie:`圓形圖`,doughnut:`環圈圖`,scatter:`散佈圖`,"scatter-lines":`帶有直線和資料標記的散佈圖`,"scatter-smooth":`帶有平滑線和資料標記的散佈圖`},type:`圖表類型`,title:`圖表標題`,legend:`圖例`,legendAt:{none:`無`,bottom:`下`,top:`上`,left:`左`,right:`右`},dataLabels:`資料標籤`,addCategory:`新增類別`,addSeries:`新增數列`,deleteCategory:`刪除類別`,deleteSeries:`刪除數列`,cell:(e,t)=>`第 ${String(e)} 列,第 ${String(t)} 欄`,fromFile:e=>`數值來自 ${e}:請在那裡修改。`,notHere:e=>`${e} 的數值還沒到。`,cannotDraw:`這個圖表畫不出來`},emptyEquation:`空方程式`,emptyDiagram:`空圖示`,style:`樣式`,fonts:{sans:`無襯線`,serif:`襯線`,mono:`等寬`},accent:`強調色`,defaultColor:`預設`,pageNumbers:`頁碼`,cover:{add:`新增封面`,change:`更換封面`,reposition:`調整位置`,remove:`移除`,drag:`拖曳圖片以調整位置`,save:`儲存位置`,cancel:`取消`,upload:`上傳`,none:`專案中沒有圖片`,gallery:`圖庫`,project:`專案`,names:{dots:`點彩`,scales:`青海波`,bay:`暮色海灣`,stacks:`麥垛`,steam:`蒸汽火車`,dusk:`暮山`,lake:`晨湖`}}},ja:{loading:`開いています…`,unreadable:`このドキュメントは現在表示できません:ファイルがドキュメントの形式で書かれていません。ファイルの内容は次のとおりです。`,duplicate:`複製`,remove:`削除`,colors:`カラー`,nothing:`その名前のブロックはありません`,nothingToLink:`その名前のものはプロジェクトにありません`,turnInto:`ブロックタイプの変更`,aligns:{left:`左揃え`,center:`中央揃え`,right:`右揃え`,justify:`両端揃え`},copyPlace:`ファイル内の位置をコピー`,find:`操作を検索…`,text:`文字`,background:`背景`,placeholder:`入力するか、/ でブロックを選択`,heading:`見出し`,colorNames:{gray:`グレー`,brown:`ブラウン`,red:`レッド`,orange:`オレンジ`,yellow:`イエロー`,green:`グリーン`,blue:`ブルー`,purple:`パープル`,pink:`ピンク`},embed:`コードで描画`,title:`タイトル`,untitled:`無題`,outline:`このページの内容`,blocks:{paragraph:`テキスト`,heading1:`見出し 1`,heading2:`見出し 2`,heading3:`見出し 3`,bullet:`箇条書きリスト`,numbered:`番号付きリスト`,check:`ToDo リスト`,toggle:`トグル`,quote:`引用`,callout:`コールアウト`,code:`コード`,divider:`区切り線`,table:`表`,image:`画像`,chart:`グラフ`,equation:`数式`,diagram:`ダイアグラム`,columns2:`2列`,columns3:`3列`,footnote:`脚注`,pagebreak:`改ページ`},component:`コンポーネント`,sample:{category:e=>`分類 ${String(e)}`,series:e=>`系列 ${String(e)}`},chart:{types:{"column-clustered":`集合縦棒`,"column-stacked":`積み上げ縦棒`,"column-stacked-100":`100% 積み上げ縦棒`,"bar-clustered":`集合横棒`,"bar-stacked":`積み上げ横棒`,"bar-stacked-100":`100% 積み上げ横棒`,line:`折れ線`,"line-markers":`マーカー付き折れ線`,area:`面`,"area-stacked":`積み上げ面`,"area-stacked-100":`100% 積み上げ面`,pie:`円`,doughnut:`ドーナツ`,scatter:`散布図`,"scatter-lines":`散布図 (直線とマーカー)`,"scatter-smooth":`散布図 (平滑線とマーカー)`},type:`グラフの種類`,title:`グラフ タイトル`,legend:`凡例`,legendAt:{none:`なし`,bottom:`下`,top:`上`,left:`左`,right:`右`},dataLabels:`データ ラベル`,addCategory:`分類を追加`,addSeries:`系列を追加`,deleteCategory:`分類を削除`,deleteSeries:`系列を削除`,cell:(e,t)=>`${String(e)} 行目、${String(t)} 列目`,fromFile:e=>`数値は ${e} から読み込まれます。そちらで変更してください。`,notHere:e=>`${e} の数値はまだ届いていません。`,cannotDraw:`このグラフは描画できません`},emptyEquation:`空の数式`,emptyDiagram:`空のダイアグラム`,style:`スタイル`,fonts:{sans:`ゴシック`,serif:`明朝`,mono:`等幅`},accent:`アクセント`,defaultColor:`デフォルト`,pageNumbers:`ページ番号`,cover:{add:`カバーを追加`,change:`カバーを変更`,reposition:`位置を調整`,remove:`削除`,drag:`画像をドラッグして位置を調整`,save:`位置を保存`,cancel:`キャンセル`,upload:`アップロード`,none:`プロジェクトに画像がありません`,gallery:`ギャラリー`,project:`プロジェクト`,names:{dots:`点描`,scales:`青海波`,bay:`夕暮れの入江`,stacks:`積みわら`,steam:`蒸気機関車`,dusk:`夕暮れの山`,lake:`夜明けの湖`}}},ko:{loading:`여는 중…`,unreadable:`지금은 이 문서를 표시할 수 없습니다. 파일이 문서 형식으로 쓰여 있지 않습니다. 파일 내용은 다음과 같습니다.`,duplicate:`복제`,remove:`삭제`,colors:`색상`,nothing:`해당 이름의 블록이 없습니다`,nothingToLink:`프로젝트에 해당 이름의 항목이 없습니다`,turnInto:`변환`,aligns:{left:`왼쪽`,center:`가운데`,right:`오른쪽`,justify:`양쪽 맞춤`},copyPlace:`파일 내 위치 복사`,find:`할 작업 찾기…`,text:`텍스트`,background:`배경`,placeholder:`입력하거나 /를 눌러 블록 추가`,heading:`제목`,colorNames:{gray:`회색`,brown:`갈색`,red:`빨간색`,orange:`주황색`,yellow:`노란색`,green:`초록색`,blue:`파란색`,purple:`보라색`,pink:`분홍색`},embed:`코드로 그린 항목`,title:`제목`,untitled:`제목 없음`,outline:`이 페이지의 내용`,blocks:{paragraph:`텍스트`,heading1:`제목 1`,heading2:`제목 2`,heading3:`제목 3`,bullet:`글머리 기호 목록`,numbered:`번호 매기기 목록`,check:`할 일 목록`,toggle:`토글`,quote:`인용`,callout:`콜아웃`,code:`코드`,divider:`구분선`,table:`표`,image:`이미지`,chart:`차트`,equation:`수식`,diagram:`다이어그램`,columns2:`2열`,columns3:`3열`,footnote:`각주`,pagebreak:`페이지 나누기`},component:`컴포넌트`,sample:{category:e=>`항목 ${String(e)}`,series:e=>`계열 ${String(e)}`},chart:{types:{"column-clustered":`묶은 세로 막대형`,"column-stacked":`누적 세로 막대형`,"column-stacked-100":`100% 기준 누적 세로 막대형`,"bar-clustered":`묶은 가로 막대형`,"bar-stacked":`누적 가로 막대형`,"bar-stacked-100":`100% 기준 누적 가로 막대형`,line:`꺾은선형`,"line-markers":`표식이 있는 꺾은선형`,area:`영역형`,"area-stacked":`누적 영역형`,"area-stacked-100":`100% 기준 누적 영역형`,pie:`원형`,doughnut:`도넛형`,scatter:`분산형`,"scatter-lines":`직선 및 표식이 있는 분산형`,"scatter-smooth":`곡선 및 표식이 있는 분산형`},type:`차트 종류`,title:`차트 제목`,legend:`범례`,legendAt:{none:`없음`,bottom:`아래쪽`,top:`위쪽`,left:`왼쪽`,right:`오른쪽`},dataLabels:`데이터 레이블`,addCategory:`항목 추가`,addSeries:`계열 추가`,deleteCategory:`항목 삭제`,deleteSeries:`계열 삭제`,cell:(e,t)=>`${String(e)}행, ${String(t)}열`,fromFile:e=>`숫자는 ${e}에서 가져옵니다. 그곳에서 변경하세요.`,notHere:e=>`${e}의 숫자가 아직 오지 않았습니다.`,cannotDraw:`이 차트를 그릴 수 없습니다`},emptyEquation:`빈 수식`,emptyDiagram:`빈 다이어그램`,style:`스타일`,fonts:{sans:`고딕`,serif:`명조`,mono:`고정폭`},accent:`강조 색`,defaultColor:`기본값`,pageNumbers:`페이지 번호`,cover:{add:`커버 추가`,change:`커버 변경`,reposition:`위치 변경`,remove:`제거`,drag:`이미지를 드래그하여 위치 변경`,save:`위치 저장`,cancel:`취소`,upload:`업로드`,none:`프로젝트에 이미지가 없습니다`,gallery:`갤러리`,project:`프로젝트`,names:{dots:`점묘`,scales:`청해파`,bay:`저녁 만`,stacks:`밀짚 더미`,steam:`증기 기관차`,dusk:`해 질 녘 산`,lake:`새벽 호수`}}},es:{loading:`Abriendo…`,unreadable:`Este documento no se puede mostrar ahora: su archivo no está escrito como un documento. Esto es lo que dice.`,duplicate:`Duplicar`,remove:`Eliminar`,colors:`Colores`,nothing:`Ningún bloque con ese nombre`,nothingToLink:`No hay nada en el proyecto con ese nombre`,turnInto:`Convertir en`,aligns:{left:`Izquierda`,center:`Centro`,right:`Derecha`,justify:`Justificar`},copyPlace:`Copiar su posición en el archivo`,find:`Busca qué hacer…`,text:`texto`,background:`fondo`,placeholder:`Escribe o pulsa / para ver los bloques`,heading:`Encabezado`,colorNames:{gray:`Gris`,brown:`Marrón`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,green:`Verde`,blue:`Azul`,purple:`Morado`,pink:`Rosa`},embed:`Dibujado con código`,title:`Título`,untitled:`Sin título`,outline:`En esta página`,blocks:{paragraph:`Texto`,heading1:`Encabezado 1`,heading2:`Encabezado 2`,heading3:`Encabezado 3`,bullet:`Lista con viñetas`,numbered:`Lista numerada`,check:`Lista de tareas`,toggle:`Desplegable`,quote:`Cita`,callout:`Destacado`,code:`Código`,divider:`Separador`,table:`Tabla`,image:`Imagen`,chart:`Gráfico`,equation:`Ecuación`,diagram:`Diagrama`,columns2:`2 columnas`,columns3:`3 columnas`,footnote:`Nota al pie`,pagebreak:`Salto de página`},component:`Componente`,sample:{category:e=>`Categoría ${String(e)}`,series:e=>`Serie ${String(e)}`},chart:{types:{"column-clustered":`Columna agrupada`,"column-stacked":`Columna apilada`,"column-stacked-100":`Columna 100% apilada`,"bar-clustered":`Barra agrupada`,"bar-stacked":`Barra apilada`,"bar-stacked-100":`Barra 100% apilada`,line:`Línea`,"line-markers":`Línea con marcadores`,area:`Área`,"area-stacked":`Área apilada`,"area-stacked-100":`Área 100% apilada`,pie:`Circular`,doughnut:`Anillo`,scatter:`Dispersión`,"scatter-lines":`Dispersión con líneas rectas y marcadores`,"scatter-smooth":`Dispersión con líneas suavizadas y marcadores`},type:`Tipo de gráfico`,title:`Título del gráfico`,legend:`Leyenda`,legendAt:{none:`Ninguna`,bottom:`Abajo`,top:`Arriba`,left:`Izquierda`,right:`Derecha`},dataLabels:`Etiquetas de datos`,addCategory:`Agregar categoría`,addSeries:`Agregar serie`,deleteCategory:`Eliminar categoría`,deleteSeries:`Eliminar serie`,cell:(e,t)=>`Fila ${String(e)}, columna ${String(t)}`,fromFile:e=>`Los números vienen de ${e}: cámbialos allí.`,notHere:e=>`Los números de ${e} aún no han llegado.`,cannotDraw:`Este gráfico no se puede dibujar`},emptyEquation:`Ecuación vacía`,emptyDiagram:`Diagrama vacío`,style:`Estilo`,fonts:{sans:`Sans`,serif:`Serif`,mono:`Mono`},accent:`Acento`,defaultColor:`Predeterminado`,pageNumbers:`Números de página`,cover:{add:`Añadir portada`,change:`Cambiar portada`,reposition:`Reposicionar`,remove:`Quitar`,drag:`Arrastra la imagen para reposicionarla`,save:`Guardar posición`,cancel:`Cancelar`,upload:`Subir`,none:`No hay imágenes en el proyecto`,gallery:`Galería`,project:`Proyecto`,names:{dots:`Puntillismo`,scales:`Escamas de mar`,bay:`Bahía al atardecer`,stacks:`Almiares`,steam:`Tren de vapor`,dusk:`Montañas al anochecer`,lake:`Lago al alba`}}},fr:{loading:`Ouverture…`,unreadable:`Ce document ne peut pas être affiché pour l’instant\xA0: son fichier n’est pas écrit comme un document. Voici ce qu’il contient.`,duplicate:`Dupliquer`,remove:`Supprimer`,colors:`Couleurs`,nothing:`Aucun bloc de ce nom`,nothingToLink:`Rien de ce nom dans le projet`,turnInto:`Transformer en`,aligns:{left:`À gauche`,center:`Centré`,right:`À droite`,justify:`Justifié`},copyPlace:`Copier son emplacement dans le fichier`,find:`Rechercher une action…`,text:`texte`,background:`fond`,placeholder:`Écrivez, ou tapez / pour les blocs`,heading:`Titre`,colorNames:{gray:`Gris`,brown:`Marron`,red:`Rouge`,orange:`Orange`,yellow:`Jaune`,green:`Vert`,blue:`Bleu`,purple:`Violet`,pink:`Rose`},embed:`Dessiné par du code`,title:`Titre`,untitled:`Sans titre`,outline:`Sur cette page`,blocks:{paragraph:`Texte`,heading1:`Titre 1`,heading2:`Titre 2`,heading3:`Titre 3`,bullet:`Liste à puces`,numbered:`Liste numérotée`,check:`Liste de tâches`,toggle:`Bloc dépliable`,quote:`Citation`,callout:`Encadré`,code:`Code`,divider:`Séparateur`,table:`Tableau`,image:`Image`,chart:`Graphique`,equation:`Équation`,diagram:`Diagramme`,columns2:`2 colonnes`,columns3:`3 colonnes`,footnote:`Note de bas de page`,pagebreak:`Saut de page`},component:`Composant`,sample:{category:e=>`Catégorie ${String(e)}`,series:e=>`Série ${String(e)}`},chart:{types:{"column-clustered":`Histogramme groupé`,"column-stacked":`Histogramme empilé`,"column-stacked-100":`Histogramme empilé 100 %`,"bar-clustered":`Barres groupées`,"bar-stacked":`Barres empilées`,"bar-stacked-100":`Barres empilées 100 %`,line:`Courbes`,"line-markers":`Courbes avec marques`,area:`Aires`,"area-stacked":`Aires empilées`,"area-stacked-100":`Aires empilées 100 %`,pie:`Secteurs`,doughnut:`Anneau`,scatter:`Nuage de points`,"scatter-lines":`Nuage de points avec lignes droites et marqueurs`,"scatter-smooth":`Nuage de points avec courbes lissées et marqueurs`},type:`Type de graphique`,title:`Titre du graphique`,legend:`Légende`,legendAt:{none:`Aucune`,bottom:`Bas`,top:`Haut`,left:`Gauche`,right:`Droite`},dataLabels:`Étiquettes de données`,addCategory:`Ajouter une catégorie`,addSeries:`Ajouter une série`,deleteCategory:`Supprimer la catégorie`,deleteSeries:`Supprimer la série`,cell:(e,t)=>`Ligne ${String(e)}, colonne ${String(t)}`,fromFile:e=>`Les nombres viennent de ${e} : modifiez-les là-bas.`,notHere:e=>`Les nombres de ${e} ne sont pas encore là.`,cannotDraw:`Ce graphique ne peut pas être dessiné`},emptyEquation:`Équation vide`,emptyDiagram:`Diagramme vide`,style:`Style`,fonts:{sans:`Sans empattement`,serif:`Avec empattement`,mono:`Chasse fixe`},accent:`Accent`,defaultColor:`Par défaut`,pageNumbers:`Numéros de page`,cover:{add:`Ajouter une couverture`,change:`Changer de couverture`,reposition:`Repositionner`,remove:`Retirer`,drag:`Faites glisser l’image pour la repositionner`,save:`Enregistrer la position`,cancel:`Annuler`,upload:`Importer`,none:`Aucune image dans le projet`,gallery:`Galerie`,project:`Projet`,names:{dots:`Pointillisme`,scales:`Écailles de mer`,bay:`Baie au soir`,stacks:`Meules de blé`,steam:`Train à vapeur`,dusk:`Montagnes au crépuscule`,lake:`Lac à l'aube`}}},de:{loading:`Wird geöffnet …`,unreadable:`Dieses Dokument kann gerade nicht angezeigt werden: Seine Datei ist nicht als Dokument geschrieben. Hier steht, was sie enthält.`,duplicate:`Duplizieren`,remove:`Löschen`,colors:`Farben`,nothing:`Kein Block mit diesem Namen`,nothingToLink:`Nichts im Projekt mit diesem Namen`,turnInto:`Umwandeln in`,aligns:{left:`Links`,center:`Zentriert`,right:`Rechts`,justify:`Blocksatz`},copyPlace:`Stelle in der Datei kopieren`,find:`Aktion suchen …`,text:`Text`,background:`Hintergrund`,placeholder:`Schreib, oder drück / für Blöcke`,heading:`Überschrift`,colorNames:{gray:`Grau`,brown:`Braun`,red:`Rot`,orange:`Orange`,yellow:`Gelb`,green:`Grün`,blue:`Blau`,purple:`Lila`,pink:`Pink`},embed:`Per Code gezeichnet`,title:`Titel`,untitled:`Ohne Titel`,outline:`Auf dieser Seite`,blocks:{paragraph:`Text`,heading1:`Überschrift 1`,heading2:`Überschrift 2`,heading3:`Überschrift 3`,bullet:`Aufzählung`,numbered:`Nummerierte Liste`,check:`To-do-Liste`,toggle:`Toggle-Liste`,quote:`Zitat`,callout:`Hinweis`,code:`Code`,divider:`Trennlinie`,table:`Tabelle`,image:`Bild`,chart:`Diagramm`,equation:`Formel`,diagram:`Schaubild`,columns2:`2 Spalten`,columns3:`3 Spalten`,footnote:`Fußnote`,pagebreak:`Seitenumbruch`},component:`Komponente`,sample:{category:e=>`Kategorie ${String(e)}`,series:e=>`Datenreihe ${String(e)}`},chart:{types:{"column-clustered":`Gruppierte Säulen`,"column-stacked":`Gestapelte Säulen`,"column-stacked-100":`Gestapelte Säulen (100 %)`,"bar-clustered":`Gruppierte Balken`,"bar-stacked":`Gestapelte Balken`,"bar-stacked-100":`Gestapelte Balken (100 %)`,line:`Linie`,"line-markers":`Linie mit Datenpunkten`,area:`Fläche`,"area-stacked":`Gestapelte Fläche`,"area-stacked-100":`Gestapelte Fläche (100 %)`,pie:`Kreis`,doughnut:`Ring`,scatter:`Punkt (XY)`,"scatter-lines":`Punkte mit geraden Linien und Datenpunkten`,"scatter-smooth":`Punkte mit interpolierten Linien und Datenpunkten`},type:`Diagrammtyp`,title:`Diagrammtitel`,legend:`Legende`,legendAt:{none:`Keine`,bottom:`Unten`,top:`Oben`,left:`Links`,right:`Rechts`},dataLabels:`Datenbeschriftungen`,addCategory:`Kategorie hinzufügen`,addSeries:`Datenreihe hinzufügen`,deleteCategory:`Kategorie löschen`,deleteSeries:`Datenreihe löschen`,cell:(e,t)=>`Zeile ${String(e)}, Spalte ${String(t)}`,fromFile:e=>`Die Zahlen stammen aus ${e}: Ändern Sie sie dort.`,notHere:e=>`Die Zahlen aus ${e} sind noch nicht da.`,cannotDraw:`Dieses Diagramm kann nicht gezeichnet werden`},emptyEquation:`Leere Formel`,emptyDiagram:`Leeres Schaubild`,style:`Stil`,fonts:{sans:`Serifenlos`,serif:`Serif`,mono:`Mono`},accent:`Akzent`,defaultColor:`Standard`,pageNumbers:`Seitenzahlen`,cover:{add:`Titelbild hinzufügen`,change:`Titelbild ändern`,reposition:`Neu positionieren`,remove:`Entfernen`,drag:`Bild ziehen, um es neu zu positionieren`,save:`Position speichern`,cancel:`Abbrechen`,upload:`Hochladen`,none:`Keine Bilder im Projekt`,gallery:`Galerie`,project:`Projekt`,names:{dots:`Pointillismus`,scales:`Meeresschuppen`,bay:`Bucht am Abend`,stacks:`Weizenschober`,steam:`Dampflok`,dusk:`Berge in der Dämmerung`,lake:`See im Morgenlicht`}}},it:{loading:`Apertura…`,unreadable:`Al momento questo documento non si può mostrare: il suo file non è scritto come un documento. Ecco cosa contiene.`,duplicate:`Duplica`,remove:`Elimina`,colors:`Colori`,nothing:`Nessun blocco con questo nome`,nothingToLink:`Niente nel progetto con questo nome`,turnInto:`Trasforma in`,aligns:{left:`A sinistra`,center:`Al centro`,right:`A destra`,justify:`Giustificato`},copyPlace:`Copia la sua posizione nel file`,find:`Cerca un'azione…`,text:`testo`,background:`sfondo`,placeholder:`Scrivi, o premi / per i blocchi`,heading:`Titolo`,colorNames:{gray:`Grigio`,brown:`Marrone`,red:`Rosso`,orange:`Arancione`,yellow:`Giallo`,green:`Verde`,blue:`Blu`,purple:`Viola`,pink:`Rosa`},embed:`Disegnato dal codice`,title:`Titolo`,untitled:`Senza titolo`,outline:`In questa pagina`,blocks:{paragraph:`Testo`,heading1:`Titolo 1`,heading2:`Titolo 2`,heading3:`Titolo 3`,bullet:`Elenco puntato`,numbered:`Elenco numerato`,check:`Elenco di cose da fare`,toggle:`Sezione a scomparsa`,quote:`Citazione`,callout:`Riquadro in evidenza`,code:`Codice`,divider:`Separatore`,table:`Tabella`,image:`Immagine`,chart:`Grafico`,equation:`Equazione`,diagram:`Diagramma`,columns2:`2 colonne`,columns3:`3 colonne`,footnote:`Nota a piè di pagina`,pagebreak:`Interruzione di pagina`},component:`Componente`,sample:{category:e=>`Categoria ${String(e)}`,series:e=>`Serie ${String(e)}`},chart:{types:{"column-clustered":`Istogramma a colonne raggruppate`,"column-stacked":`Istogramma in pila`,"column-stacked-100":`Istogramma in pila 100%`,"bar-clustered":`Barre raggruppate`,"bar-stacked":`Barre in pila`,"bar-stacked-100":`Barre in pila 100%`,line:`Linee`,"line-markers":`Linee con indicatori`,area:`Area`,"area-stacked":`Area in pila`,"area-stacked-100":`Area in pila 100%`,pie:`Torta`,doughnut:`Anello`,scatter:`Dispersione`,"scatter-lines":`Dispersione con linee rette e indicatori`,"scatter-smooth":`Dispersione con linee smussate e indicatori`},type:`Tipo di grafico`,title:`Titolo del grafico`,legend:`Legenda`,legendAt:{none:`Nessuna`,bottom:`In basso`,top:`In alto`,left:`A sinistra`,right:`A destra`},dataLabels:`Etichette dati`,addCategory:`Aggiungi categoria`,addSeries:`Aggiungi serie`,deleteCategory:`Elimina categoria`,deleteSeries:`Elimina serie`,cell:(e,t)=>`Riga ${String(e)}, colonna ${String(t)}`,fromFile:e=>`I numeri vengono da ${e}: modificali lì.`,notHere:e=>`I numeri di ${e} non sono ancora arrivati.`,cannotDraw:`Questo grafico non può essere disegnato`},emptyEquation:`Equazione vuota`,emptyDiagram:`Diagramma vuoto`,style:`Stile`,fonts:{sans:`Senza grazie`,serif:`Con grazie`,mono:`Monospazio`},accent:`Accento`,defaultColor:`Predefinito`,pageNumbers:`Numeri di pagina`,cover:{add:`Aggiungi copertina`,change:`Cambia copertina`,reposition:`Riposiziona`,remove:`Rimuovi`,drag:`Trascina l’immagine per riposizionarla`,save:`Salva posizione`,cancel:`Annulla`,upload:`Carica`,none:`Nessuna immagine nel progetto`,gallery:`Galleria`,project:`Progetto`,names:{dots:`Puntinismo`,scales:`Squame di mare`,bay:`Baia di sera`,stacks:`Covoni di grano`,steam:`Treno a vapore`,dusk:`Monti al tramonto`,lake:`Lago all'alba`}}},pt:{loading:`Abrindo…`,unreadable:`Não é possível mostrar este documento agora: o arquivo não está escrito como documento. Veja o que ele diz.`,duplicate:`Duplicar`,remove:`Excluir`,colors:`Cores`,nothing:`Nenhum bloco com esse nome`,nothingToLink:`Nada no projeto com esse nome`,turnInto:`Transformar em`,aligns:{left:`À esquerda`,center:`Centralizado`,right:`À direita`,justify:`Justificado`},copyPlace:`Copiar a posição no arquivo`,find:`Buscar uma ação…`,text:`texto`,background:`fundo`,placeholder:`Escreva ou pressione / para blocos`,heading:`Título`,colorNames:{gray:`Cinza`,brown:`Marrom`,red:`Vermelho`,orange:`Laranja`,yellow:`Amarelo`,green:`Verde`,blue:`Azul`,purple:`Roxo`,pink:`Rosa`},embed:`Desenhado por código`,title:`Título`,untitled:`Sem título`,outline:`Nesta página`,blocks:{paragraph:`Texto`,heading1:`Título 1`,heading2:`Título 2`,heading3:`Título 3`,bullet:`Lista com marcadores`,numbered:`Lista numerada`,check:`Lista de tarefas`,toggle:`Lista de alternância`,quote:`Citação`,callout:`Destaque`,code:`Código`,divider:`Divisor`,table:`Tabela`,image:`Imagem`,chart:`Gráfico`,equation:`Equação`,diagram:`Diagrama`,columns2:`2 colunas`,columns3:`3 colunas`,footnote:`Nota de rodapé`,pagebreak:`Quebra de página`},component:`Componente`,sample:{category:e=>`Categoria ${String(e)}`,series:e=>`Série ${String(e)}`},chart:{types:{"column-clustered":`Colunas Agrupadas`,"column-stacked":`Colunas Empilhadas`,"column-stacked-100":`Colunas 100% Empilhadas`,"bar-clustered":`Barras Agrupadas`,"bar-stacked":`Barras Empilhadas`,"bar-stacked-100":`Barras 100% Empilhadas`,line:`Linhas`,"line-markers":`Linhas com Marcadores`,area:`Área`,"area-stacked":`Área Empilhada`,"area-stacked-100":`Área 100% Empilhada`,pie:`Pizza`,doughnut:`Rosca`,scatter:`Dispersão`,"scatter-lines":`Dispersão com Linhas Retas e Marcadores`,"scatter-smooth":`Dispersão com Linhas Suaves e Marcadores`},type:`Tipo de gráfico`,title:`Título do gráfico`,legend:`Legenda`,legendAt:{none:`Nenhuma`,bottom:`Inferior`,top:`Superior`,left:`Esquerda`,right:`Direita`},dataLabels:`Rótulos de dados`,addCategory:`Adicionar categoria`,addSeries:`Adicionar série`,deleteCategory:`Excluir categoria`,deleteSeries:`Excluir série`,cell:(e,t)=>`Linha ${String(e)}, coluna ${String(t)}`,fromFile:e=>`Os números vêm de ${e}: altere-os lá.`,notHere:e=>`Os números de ${e} ainda não chegaram.`,cannotDraw:`Não é possível desenhar este gráfico`},emptyEquation:`Equação vazia`,emptyDiagram:`Diagrama vazio`,style:`Estilo`,fonts:{sans:`Sem serifa`,serif:`Serifa`,mono:`Mono`},accent:`Destaque`,defaultColor:`Padrão`,pageNumbers:`Números de página`,cover:{add:`Adicionar capa`,change:`Alterar capa`,reposition:`Reposicionar`,remove:`Remover`,drag:`Arraste a imagem para reposicioná-la`,save:`Salvar posição`,cancel:`Cancelar`,upload:`Enviar`,none:`Nenhuma imagem no projeto`,gallery:`Galeria`,project:`Projeto`,names:{dots:`Pontilhismo`,scales:`Escamas do mar`,bay:`Baía ao entardecer`,stacks:`Medas de trigo`,steam:`Trem a vapor`,dusk:`Montanhas ao entardecer`,lake:`Lago ao amanhecer`}}},ru:{loading:`Открытие…`,unreadable:`Сейчас этот документ нельзя показать: его файл записан не как документ. Вот что в нём написано.`,duplicate:`Дублировать`,remove:`Удалить`,colors:`Цвета`,nothing:`Нет блока с таким названием`,nothingToLink:`В проекте нет ничего с таким названием`,turnInto:`Превратить в`,aligns:{left:`По левому краю`,center:`По центру`,right:`По правому краю`,justify:`По ширине`},copyPlace:`Скопировать его место в файле`,find:`Найти действие…`,text:`текст`,background:`фон`,placeholder:`Пишите или нажмите / для выбора блока`,heading:`Заголовок`,colorNames:{gray:`Серый`,brown:`Коричневый`,red:`Красный`,orange:`Оранжевый`,yellow:`Жёлтый`,green:`Зелёный`,blue:`Синий`,purple:`Фиолетовый`,pink:`Розовый`},embed:`Отрисовано кодом`,title:`Название`,untitled:`Без названия`,outline:`На этой странице`,blocks:{paragraph:`Текст`,heading1:`Заголовок 1`,heading2:`Заголовок 2`,heading3:`Заголовок 3`,bullet:`Маркированный список`,numbered:`Нумерованный список`,check:`Список задач`,toggle:`Раскрывающийся блок`,quote:`Цитата`,callout:`Выноска`,code:`Код`,divider:`Разделитель`,table:`Таблица`,image:`Изображение`,chart:`Диаграмма`,equation:`Формула`,diagram:`Схема`,columns2:`2 колонки`,columns3:`3 колонки`,footnote:`Сноска`,pagebreak:`Разрыв страницы`},component:`Компонент`,sample:{category:e=>`Категория ${String(e)}`,series:e=>`Ряд ${String(e)}`},chart:{types:{"column-clustered":`Гистограмма с группировкой`,"column-stacked":`Гистограмма с накоплением`,"column-stacked-100":`Нормированная гистограмма с накоплением`,"bar-clustered":`Линейчатая с группировкой`,"bar-stacked":`Линейчатая с накоплением`,"bar-stacked-100":`Нормированная линейчатая с накоплением`,line:`График`,"line-markers":`График с маркерами`,area:`С областями`,"area-stacked":`С областями и накоплением`,"area-stacked-100":`Нормированная с областями и накоплением`,pie:`Круговая`,doughnut:`Кольцевая`,scatter:`Точечная`,"scatter-lines":`Точечная с прямыми отрезками и маркерами`,"scatter-smooth":`Точечная с гладкими кривыми и маркерами`},type:`Тип диаграммы`,title:`Название диаграммы`,legend:`Легенда`,legendAt:{none:`Нет`,bottom:`Снизу`,top:`Сверху`,left:`Слева`,right:`Справа`},dataLabels:`Подписи данных`,addCategory:`Добавить категорию`,addSeries:`Добавить ряд`,deleteCategory:`Удалить категорию`,deleteSeries:`Удалить ряд`,cell:(e,t)=>`Строка ${String(e)}, столбец ${String(t)}`,fromFile:e=>`Числа берутся из ${e}: меняйте их там.`,notHere:e=>`Числа из ${e} ещё не пришли.`,cannotDraw:`Эту диаграмму нельзя нарисовать`},emptyEquation:`Пустая формула`,emptyDiagram:`Пустая схема`,style:`Стиль`,fonts:{sans:`Без засечек`,serif:`С засечками`,mono:`Моноширинный`},accent:`Акцент`,defaultColor:`По умолчанию`,pageNumbers:`Номера страниц`,cover:{add:`Добавить обложку`,change:`Сменить обложку`,reposition:`Изменить положение`,remove:`Убрать`,drag:`Перетащите изображение, чтобы изменить положение`,save:`Сохранить положение`,cancel:`Отмена`,upload:`Загрузить`,none:`В проекте нет изображений`,gallery:`Галерея`,project:`Проект`,names:{dots:`Пуантилизм`,scales:`Морская чешуя`,bay:`Вечерняя бухта`,stacks:`Стога пшеницы`,steam:`Паровоз`,dusk:`Горы в сумерках`,lake:`Озеро на рассвете`}}},tr:{loading:`Açılıyor…`,unreadable:`Bu belge şu anda gösterilemiyor: dosyası bir belge olarak yazılmamış. İçeriği aşağıda.`,duplicate:`Çoğalt`,remove:`Sil`,colors:`Renkler`,nothing:`Bu adda blok yok`,nothingToLink:`Projede bu adda bir şey yok`,turnInto:`Dönüştür`,aligns:{left:`Sola`,center:`Ortaya`,right:`Sağa`,justify:`İki yana`},copyPlace:`Dosyadaki yerini kopyala`,find:`Yapılacak bir şey bulun…`,text:`metin`,background:`arka plan`,placeholder:`Yazın ya da bloklar için / tuşuna basın`,heading:`Başlık`,colorNames:{gray:`Gri`,brown:`Kahverengi`,red:`Kırmızı`,orange:`Turuncu`,yellow:`Sarı`,green:`Yeşil`,blue:`Mavi`,purple:`Mor`,pink:`Pembe`},embed:`Kodla çizildi`,title:`Başlık`,untitled:`Adsız`,outline:`Bu sayfada`,blocks:{paragraph:`Metin`,heading1:`Başlık 1`,heading2:`Başlık 2`,heading3:`Başlık 3`,bullet:`Madde işaretli liste`,numbered:`Numaralı liste`,check:`Yapılacaklar listesi`,toggle:`Açılır blok`,quote:`Alıntı`,callout:`Bilgi kutusu`,code:`Kod`,divider:`Ayırıcı`,table:`Tablo`,image:`Görsel`,chart:`Grafik`,equation:`Denklem`,diagram:`Diyagram`,columns2:`2 sütun`,columns3:`3 sütun`,footnote:`Dipnot`,pagebreak:`Sayfa sonu`},component:`Bileşen`,sample:{category:e=>`Kategori ${String(e)}`,series:e=>`Seri ${String(e)}`},chart:{types:{"column-clustered":`Kümelenmiş Sütun`,"column-stacked":`Yığılmış Sütun`,"column-stacked-100":`%100 Yığılmış Sütun`,"bar-clustered":`Kümelenmiş Çubuk`,"bar-stacked":`Yığılmış Çubuk`,"bar-stacked-100":`%100 Yığılmış Çubuk`,line:`Çizgi`,"line-markers":`İşaretçilerle Çizgi`,area:`Alan`,"area-stacked":`Yığılmış Alan`,"area-stacked-100":`%100 Yığılmış Alan`,pie:`Pasta`,doughnut:`Halka`,scatter:`Dağılım`,"scatter-lines":`Düz Çizgiler ve İşaretçiler ile Dağılım`,"scatter-smooth":`Düzgün Çizgiler ve İşaretçiler ile Dağılım`},type:`Grafik türü`,title:`Grafik başlığı`,legend:`Gösterge`,legendAt:{none:`Yok`,bottom:`Alt`,top:`Üst`,left:`Sol`,right:`Sağ`},dataLabels:`Veri etiketleri`,addCategory:`Kategori ekle`,addSeries:`Seri ekle`,deleteCategory:`Kategoriyi sil`,deleteSeries:`Seriyi sil`,cell:(e,t)=>`Satır ${String(e)}, sütun ${String(t)}`,fromFile:e=>`Sayılar ${e} dosyasından geliyor: orada değiştirin.`,notHere:e=>`${e} dosyasındaki sayılar henüz gelmedi.`,cannotDraw:`Bu grafik çizilemiyor`},emptyEquation:`Boş denklem`,emptyDiagram:`Boş diyagram`,style:`Stil`,fonts:{sans:`Sans`,serif:`Serif`,mono:`Mono`},accent:`Vurgu`,defaultColor:`Varsayılan`,pageNumbers:`Sayfa numaraları`,cover:{add:`Kapak ekle`,change:`Kapağı değiştir`,reposition:`Yeniden konumlandır`,remove:`Kaldır`,drag:`Yeniden konumlandırmak için görseli sürükleyin`,save:`Konumu kaydet`,cancel:`İptal`,upload:`Yükle`,none:`Projede görsel yok`,gallery:`Galeri`,project:`Proje`,names:{dots:`Noktacılık`,scales:`Deniz pulları`,bay:`Akşam koyu`,stacks:`Buğday yığınları`,steam:`Buharlı tren`,dusk:`Alacakaranlıkta dağlar`,lake:`Şafakta göl`}}},vi:{loading:`Đang mở…`,unreadable:`Hiện chưa thể hiển thị tài liệu này: tệp của nó không được viết theo dạng tài liệu. Đây là nội dung của tệp.`,duplicate:`Nhân bản`,remove:`Xóa`,colors:`Màu`,nothing:`Không có khối nào tên như vậy`,nothingToLink:`Không có gì trong dự án tên như vậy`,turnInto:`Chuyển thành`,aligns:{left:`Trái`,center:`Giữa`,right:`Phải`,justify:`Đều hai bên`},copyPlace:`Sao chép vị trí của nó trong tệp`,find:`Tìm thao tác…`,text:`chữ`,background:`nền`,placeholder:`Viết, hoặc nhấn / để chọn khối`,heading:`Đề mục`,colorNames:{gray:`Xám`,brown:`Nâu`,red:`Đỏ`,orange:`Cam`,yellow:`Vàng`,green:`Xanh lá`,blue:`Xanh dương`,purple:`Tím`,pink:`Hồng`},embed:`Được vẽ bằng mã`,title:`Tiêu đề`,untitled:`Không có tiêu đề`,outline:`Trên trang này`,blocks:{paragraph:`Văn bản`,heading1:`Đề mục 1`,heading2:`Đề mục 2`,heading3:`Đề mục 3`,bullet:`Danh sách dấu đầu dòng`,numbered:`Danh sách đánh số`,check:`Danh sách việc cần làm`,toggle:`Khối thu gọn`,quote:`Trích dẫn`,callout:`Khung chú thích`,code:`Mã`,divider:`Đường phân cách`,table:`Bảng`,image:`Hình ảnh`,chart:`Biểu đồ`,equation:`Phương trình`,diagram:`Sơ đồ`,columns2:`2 cột`,columns3:`3 cột`,footnote:`Chú thích cuối trang`,pagebreak:`Ngắt trang`},component:`Thành phần`,sample:{category:e=>`Thể loại ${String(e)}`,series:e=>`Chuỗi ${String(e)}`},chart:{types:{"column-clustered":`Cột Nhóm`,"column-stacked":`Cột Xếp chồng`,"column-stacked-100":`Cột Xếp chồng 100%`,"bar-clustered":`Thanh Nhóm`,"bar-stacked":`Thanh Xếp chồng`,"bar-stacked-100":`Thanh Xếp chồng 100%`,line:`Đường`,"line-markers":`Đường có Đánh dấu`,area:`Vùng`,"area-stacked":`Vùng Xếp chồng`,"area-stacked-100":`Vùng Xếp chồng 100%`,pie:`Hình tròn`,doughnut:`Vành khuyên`,scatter:`Phân tán`,"scatter-lines":`Phân tán với Đường thẳng và Đánh dấu`,"scatter-smooth":`Phân tán với Đường trơn và Đánh dấu`},type:`Kiểu biểu đồ`,title:`Tiêu đề biểu đồ`,legend:`Chú giải`,legendAt:{none:`Không có`,bottom:`Dưới`,top:`Trên`,left:`Trái`,right:`Phải`},dataLabels:`Nhãn dữ liệu`,addCategory:`Thêm thể loại`,addSeries:`Thêm chuỗi`,deleteCategory:`Xóa thể loại`,deleteSeries:`Xóa chuỗi`,cell:(e,t)=>`Hàng ${String(e)}, cột ${String(t)}`,fromFile:e=>`Các số lấy từ ${e}: hãy thay đổi ở đó.`,notHere:e=>`Các số từ ${e} chưa đến.`,cannotDraw:`Không thể vẽ biểu đồ này`},emptyEquation:`Phương trình trống`,emptyDiagram:`Sơ đồ trống`,style:`Kiểu`,fonts:{sans:`Không chân`,serif:`Có chân`,mono:`Đơn cách`},accent:`Màu nhấn`,defaultColor:`Mặc định`,pageNumbers:`Số trang`,cover:{add:`Thêm ảnh bìa`,change:`Đổi ảnh bìa`,reposition:`Đặt lại vị trí`,remove:`Gỡ`,drag:`Kéo ảnh để đặt lại vị trí`,save:`Lưu vị trí`,cancel:`Hủy`,upload:`Tải lên`,none:`Dự án chưa có ảnh nào`,gallery:`Thư viện`,project:`Dự án`,names:{dots:`Điểm họa`,scales:`Vảy sóng`,bay:`Vịnh chiều`,stacks:`Đống lúa mì`,steam:`Tàu hơi nước`,dusk:`Núi lúc hoàng hôn`,lake:`Hồ lúc bình minh`}}},th:{loading:`กำลังเปิด…`,unreadable:`ยังแสดงเอกสารนี้ไม่ได้ในตอนนี้ เพราะไฟล์ไม่ได้เขียนในรูปแบบเอกสาร เนื้อหาในไฟล์มีดังนี้`,duplicate:`ทำสำเนา`,remove:`ลบ`,colors:`สี`,nothing:`ไม่มีบล็อกชื่อนี้`,nothingToLink:`ไม่มีสิ่งใดในโปรเจกต์ชื่อนี้`,turnInto:`เปลี่ยนเป็น`,aligns:{left:`ชิดซ้าย`,center:`กึ่งกลาง`,right:`ชิดขวา`,justify:`เต็มแนว`},copyPlace:`คัดลอกตำแหน่งในไฟล์`,find:`ค้นหาสิ่งที่จะทำ…`,text:`ข้อความ`,background:`พื้นหลัง`,placeholder:`เขียน หรือกด / เพื่อเลือกบล็อก`,heading:`หัวเรื่อง`,colorNames:{gray:`เทา`,brown:`น้ำตาล`,red:`แดง`,orange:`ส้ม`,yellow:`เหลือง`,green:`เขียว`,blue:`น้ำเงิน`,purple:`ม่วง`,pink:`ชมพู`},embed:`วาดด้วยโค้ด`,title:`ชื่อเรื่อง`,untitled:`ไม่มีชื่อ`,outline:`ในหน้านี้`,blocks:{paragraph:`ข้อความ`,heading1:`หัวเรื่อง 1`,heading2:`หัวเรื่อง 2`,heading3:`หัวเรื่อง 3`,bullet:`รายการหัวข้อย่อย`,numbered:`รายการลำดับเลข`,check:`รายการสิ่งที่ต้องทำ`,toggle:`รายการพับได้`,quote:`คำพูดอ้างอิง`,callout:`กล่องข้อความเด่น`,code:`โค้ด`,divider:`เส้นคั่น`,table:`ตาราง`,image:`รูปภาพ`,chart:`แผนภูมิ`,equation:`สมการ`,diagram:`ไดอะแกรม`,columns2:`2 คอลัมน์`,columns3:`3 คอลัมน์`,footnote:`เชิงอรรถ`,pagebreak:`ตัวแบ่งหน้า`},component:`คอมโพเนนต์`,sample:{category:e=>`ประเภท ${String(e)}`,series:e=>`ชุดข้อมูล ${String(e)}`},chart:{types:{"column-clustered":`คอลัมน์แบบกลุ่ม`,"column-stacked":`คอลัมน์แบบเรียงซ้อน`,"column-stacked-100":`คอลัมน์แบบเรียงซ้อน 100%`,"bar-clustered":`แท่งแบบกลุ่ม`,"bar-stacked":`แท่งแบบเรียงซ้อน`,"bar-stacked-100":`แท่งแบบเรียงซ้อน 100%`,line:`เส้น`,"line-markers":`เส้นที่มีเครื่องหมาย`,area:`พื้นที่`,"area-stacked":`พื้นที่แบบเรียงซ้อน`,"area-stacked-100":`พื้นที่แบบเรียงซ้อน 100%`,pie:`วงกลม`,doughnut:`โดนัท`,scatter:`กระจาย`,"scatter-lines":`กระจายที่มีเส้นตรงและเครื่องหมาย`,"scatter-smooth":`กระจายที่มีเส้นโค้งและเครื่องหมาย`},type:`ชนิดแผนภูมิ`,title:`ชื่อแผนภูมิ`,legend:`คำอธิบายแผนภูมิ`,legendAt:{none:`ไม่มี`,bottom:`ล่าง`,top:`บน`,left:`ซ้าย`,right:`ขวา`},dataLabels:`ป้ายชื่อข้อมูล`,addCategory:`เพิ่มประเภท`,addSeries:`เพิ่มชุดข้อมูล`,deleteCategory:`ลบประเภท`,deleteSeries:`ลบชุดข้อมูล`,cell:(e,t)=>`แถว ${String(e)} คอลัมน์ ${String(t)}`,fromFile:e=>`ตัวเลขมาจาก ${e}: แก้ไขที่นั่น`,notHere:e=>`ตัวเลขจาก ${e} ยังมาไม่ถึง`,cannotDraw:`วาดแผนภูมินี้ไม่ได้`},emptyEquation:`สมการว่าง`,emptyDiagram:`ไดอะแกรมว่าง`,style:`สไตล์`,fonts:{sans:`ไม่มีเชิง`,serif:`มีเชิง`,mono:`โมโน`},accent:`สีเน้น`,defaultColor:`ค่าเริ่มต้น`,pageNumbers:`หมายเลขหน้า`,cover:{add:`เพิ่มภาพปก`,change:`เปลี่ยนภาพปก`,reposition:`จัดตำแหน่งใหม่`,remove:`นำออก`,drag:`ลากภาพเพื่อจัดตำแหน่งใหม่`,save:`บันทึกตำแหน่ง`,cancel:`ยกเลิก`,upload:`อัปโหลด`,none:`ไม่มีรูปภาพในโปรเจกต์`,gallery:`แกลเลอรี`,project:`โปรเจกต์`,names:{dots:`ลายจุด`,scales:`ลายเกล็ดคลื่น`,bay:`อ่าวยามเย็น`,stacks:`กองฟางข้าวสาลี`,steam:`รถไฟไอน้ำ`,dusk:`ภูเขายามพลบค่ำ`,lake:`ทะเลสาบยามรุ่งอรุณ`}}},hi:{loading:`खुल रहा है…`,unreadable:`यह डॉक अभी नहीं दिखाया जा सकता: इसकी फ़ाइल डॉक के रूप में नहीं लिखी गई है। इसमें यह लिखा है।`,duplicate:`डुप्लिकेट करें`,remove:`डिलीट करें`,colors:`रंग`,nothing:`इस नाम का कोई ब्लॉक नहीं`,nothingToLink:`प्रोजेक्ट में इस नाम का कुछ नहीं`,turnInto:`इसमें बदलें`,aligns:{left:`बाएँ`,center:`बीच में`,right:`दाएँ`,justify:`दोनों ओर बराबर`},copyPlace:`फ़ाइल में इसकी जगह कॉपी करें`,find:`कोई काम खोजें…`,text:`टेक्स्ट`,background:`बैकग्राउंड`,placeholder:`लिखें, या ब्लॉक के लिए / दबाएँ`,heading:`हेडिंग`,colorNames:{gray:`स्लेटी`,brown:`भूरा`,red:`लाल`,orange:`नारंगी`,yellow:`पीला`,green:`हरा`,blue:`नीला`,purple:`बैंगनी`,pink:`गुलाबी`},embed:`कोड से बना`,title:`शीर्षक`,untitled:`बिना शीर्षक`,outline:`इस पेज पर`,blocks:{paragraph:`टेक्स्ट`,heading1:`हेडिंग 1`,heading2:`हेडिंग 2`,heading3:`हेडिंग 3`,bullet:`बुलेट सूची`,numbered:`नंबर वाली सूची`,check:`टू-डू सूची`,toggle:`टॉगल`,quote:`उद्धरण`,callout:`कॉलआउट`,code:`कोड`,divider:`डिवाइडर`,table:`टेबल`,image:`इमेज`,chart:`चार्ट`,equation:`समीकरण`,diagram:`आरेख`,columns2:`2 कॉलम`,columns3:`3 कॉलम`,footnote:`फ़ुटनोट`,pagebreak:`पेज ब्रेक`},component:`कंपोनेंट`,sample:{category:e=>`श्रेणी ${String(e)}`,series:e=>`शृंखला ${String(e)}`},chart:{types:{"column-clustered":`क्लस्टर्ड स्तंभ`,"column-stacked":`स्टैक्ड स्तंभ`,"column-stacked-100":`100% स्टैक्ड स्तंभ`,"bar-clustered":`क्लस्टर्ड बार`,"bar-stacked":`स्टैक्ड बार`,"bar-stacked-100":`100% स्टैक्ड बार`,line:`रेखा`,"line-markers":`मार्कर के साथ रेखा`,area:`क्षेत्र`,"area-stacked":`स्टैक्ड क्षेत्र`,"area-stacked-100":`100% स्टैक्ड क्षेत्र`,pie:`पाई`,doughnut:`डोनट`,scatter:`स्कैटर`,"scatter-lines":`सीधी रेखाओं और मार्कर के साथ स्कैटर`,"scatter-smooth":`स्मूथ रेखाओं और मार्कर के साथ स्कैटर`},type:`चार्ट प्रकार`,title:`चार्ट शीर्षक`,legend:`लेजेंड`,legendAt:{none:`कोई नहीं`,bottom:`नीचे`,top:`ऊपर`,left:`बाएँ`,right:`दाएँ`},dataLabels:`डेटा लेबल`,addCategory:`श्रेणी जोड़ें`,addSeries:`शृंखला जोड़ें`,deleteCategory:`श्रेणी हटाएँ`,deleteSeries:`शृंखला हटाएँ`,cell:(e,t)=>`पंक्ति ${String(e)}, स्तंभ ${String(t)}`,fromFile:e=>`संख्याएँ ${e} से आती हैं: उन्हें वहीं बदलें।`,notHere:e=>`${e} की संख्याएँ अभी नहीं आईं।`,cannotDraw:`यह चार्ट नहीं बनाया जा सकता`},emptyEquation:`खाली समीकरण`,emptyDiagram:`खाली आरेख`,style:`शैली`,fonts:{sans:`सैन्स`,serif:`सेरिफ़`,mono:`मोनो`},accent:`एक्सेंट`,defaultColor:`डिफ़ॉल्ट`,pageNumbers:`पेज नंबर`,cover:{add:`कवर जोड़ें`,change:`कवर बदलें`,reposition:`स्थिति बदलें`,remove:`हटाएँ`,drag:`स्थिति बदलने के लिए चित्र खींचें`,save:`स्थिति सहेजें`,cancel:`रद्द करें`,upload:`अपलोड करें`,none:`प्रोजेक्ट में कोई चित्र नहीं है`,gallery:`गैलरी`,project:`प्रोजेक्ट`,names:{dots:`बिंदुवाद`,scales:`समुद्री शल्क`,bay:`शाम की खाड़ी`,stacks:`गेहूँ के ढेर`,steam:`भाप इंजन`,dusk:`सांझ के पहाड़`,lake:`भोर की झील`}}}});function py(e){return he(dy,e)}var my=e=>e.map(Bl),hy=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]);function gy(e,t,n){let r=my(e),i=my(t),a=new Map(w(r,i)),o=new Map(w(r,my(n))),s=new Set(a.values()),c=new Set;for(let e=0;e<r.length;e++){let t=a.get(e);t!==void 0&&!o.has(e)&&c.add(t)}let l=new Map([...o].map(([e,t])=>[t,e])),u=new Map,d=-1;n.forEach((e,t)=>{let n=l.get(t);n===void 0?u.set(d,[...u.get(d)??[],e]):d=n});let f=e=>{for(let t=e;t>=0;t--){let e=a.get(t);if(e!==void 0)return e+1}return 0},p=new Map;for(let[e,n]of u){let c=f(e),l=c;for(;l<t.length&&!s.has(l);)l++;if(hy(i.slice(c,l),my(n)))continue;let u=e+1<r.length&&!o.has(e+1),d=e>=0&&!a.has(e),m=u||d?l:c;p.set(m,[...p.get(m)??[],...n])}let m=[];for(let e=0;e<=t.length;e++){m.push(...p.get(e)??[]);let n=t[e];n&&!c.has(e)&&m.push(n)}return m}function _y(e,t){if(!e.some(e=>e.type===`source`))return[...t];let n=new Map(w(my(Gl(e)),my(t))),r=new Map,i=-1,a=0;for(let o of e){if(o.type!==`source`){i++;let e=n.get(i);e!==void 0&&(a=e+1);continue}let e=i<0?0:(n.get(i)??a-1)+1,s=Math.max(0,Math.min(t.length,e));r.set(s,[...r.get(s)??[],o])}let o=[];for(let e=0;e<=t.length;e++){o.push(...r.get(e)??[]);let n=t[e];n&&o.push(n)}return o}var vy=(e,t)=>e.font===t.font&&e.accent===t.accent&&e.cover===t.cover&&(e.coverY??50)===(t.coverY??50)&&e.pageNumbers===t.pageNumbers;function yy(e,t){let n={...e};return delete n.pageNumbers,t?n:{...n,pageNumbers:!1}}function by(e,t){let n={...e};return delete n.cover,delete n.coverY,t===void 0?n:{...n,cover:t}}function xy(e,t){let n=Math.round(Math.min(100,Math.max(0,t))),r={...e};return delete r.coverY,n===50?r:{...r,coverY:n}}var Sy=e=>e.blocks.length===0&&e.problems.length>0,Cy=class{doc;constructor(e){this.doc=jv(e)}get source(){return this.doc.source}get problems(){return this.doc.problems}get unreadable(){return Sy(this.doc)}lineOf(e){let t=0;for(let n of this.doc.segments){let r=Gl(n.blocks).length;if(e<t+r)return this.doc.source.slice(0,n.start).split(`
|
|
321
|
+
`).length;t+=r}}get page(){return this.doc.page}shown(){return Gl(this.doc.blocks)}textFor(e,t=this.doc.page){let n=_y(this.doc.blocks,e),r=Vl(n,this.doc.blocks)?this.doc.source:iy(this.doc,n),i=vy(t,this.doc.page)?r:ey({source:r,frontMatter:this.doc.frontMatter},t);return i===this.doc.source?void 0:i}adopt(e){e!==this.doc.source&&(this.doc=jv(e))}incoming(e,t){if(e===this.doc.source)return;let n=this.shown(),r=jv(e);if(this.doc=r,Sy(r))return;let i=gy(n,t,Gl(r.blocks));return Vl(i,t)?void 0:i}},wy=n((e=>{var t=y();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),Ty=n(((e,t)=>{t.exports=wy()})),Ey=n((e=>{var t=y(),n=Ty();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),pee=n(((e,t)=>{t.exports=Ey()})),mee=n(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!(o===`_owner`&&t.$$typeof)&&!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),Dy=pee(),Oy=e(j(),1),hee=e(mee(),1),ky=(0,R.createContext)(void 0);function Ay(e){return(0,R.useContext)(ky)}function jy(e){let t=Ay(e);if(!t?.editor)throw Error(`useBlockNoteEditor was called outside of a BlockNoteContext provider or BlockNoteView component`);return t.editor}function My(e,t=e=>e){return(0,Dy.useSyncExternalStoreWithSelector)(e.subscribe,()=>e.state,()=>e.state,t,Ny)}function Ny(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=Py(e);return n.length===Py(t).length&&n.every(n=>Object.prototype.hasOwnProperty.call(t,n)&&Object.is(e[n],t[n]))}function Py(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}var Fy=typeof window<`u`?R.useLayoutEffect:R.useEffect,Iy=class{transactionNumber=0;lastTransactionNumber=0;lastSnapshot;editor;subscribers=new Set;constructor(e){this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e,t){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},n=this.editor._tiptapEditor,r={all:[`transaction`,`create`,`mount`,`unmount`],mount:[`create`,`mount`,`unmount`],selection:[`selectionUpdate`],change:[`update`]};for(let i of r[t])n.on(i,e);return()=>{for(let i of r[t])n.off(i,e)}}}};function Ly(e){let t=Ay(),n=e.editor||t?.editor||null,r=e.on||`all`,[i]=(0,R.useState)(()=>new Iy(n)),a=(0,Dy.useSyncExternalStoreWithSelector)(i.subscribe,i.getSnapshot,i.getServerSnapshot,e.selector,e.equalityFn??hee.default);return Fy(()=>i.watch(n,r),[n,i,r]),(0,R.useDebugValue)(a),a}function Ry(e){let t=Ay();if(e||=t?.editor,!e)throw Error("'editor' is required in `useEditorDOMElement`, either from BlockNoteContext or as a function argument");return Ly({editor:e,selector:e=>e.editor.domElement,equalityFn:(e,t)=>e===t,on:`mount`})}var zy=(0,R.createContext)(void 0);function By(){return(0,R.useContext)(zy)}var Vy=typeof window<`u`?R.useInsertionEffect:R.useEffect,Hy=(0,R.createContext)(null);function Uy(){let e=(0,R.useContext)(Hy),t=Ry();return e||(t?.parentElement??null)}function Wy(e){return(0,z.jsx)(Hy.Provider,{value:null,children:e.children})}function Gy(e){let{target:t,children:n}=e,r=jy(),i=By()?.applyThemedRoot,[a]=(0,R.useState)(()=>typeof document>`u`?null:document.createElement(`div`));return Vy(()=>{if(a&&t)return t.appendChild(a),()=>a.remove()},[a,t]),Vy(()=>{a&&t&&i?.(a)},[a,t,i]),Vy(()=>{if(a&&t)return r.registerPortalElement(a),()=>r.unregisterPortalElement(a)},[r,a,t]),t===void 0?n:(0,z.jsx)(Hy.Provider,{value:a,children:n})}function Ky(e){return(0,z.jsx)(Gy,{target:e.target,children:(0,z.jsx)(qy,{children:e.children})})}function qy(e){let t=Uy();return t?(0,Oy.createPortal)(e.children,t):null}function Jy(){let[e]=(0,R.useState)(()=>{if(typeof document>`u`)return null;let e=document.createElement(`span`);return e.className=`bn-portal-anchor`,e}),t=(0,R.useCallback)(t=>{t&&e&&e.parentElement!==t&&t.appendChild(e)},[e]);return{anchor:e,holder:(0,z.jsx)(`span`,{ref:t,className:Yy,style:{position:`absolute`,width:0,height:0,overflow:`visible`}})}}var Yy=`bn-portal-anchor-holder`;function Xy(e){return Array.from(e.childNodes).some(e=>!(e instanceof Element&&e.classList.contains(Yy)))}function Zy(e){let{anchor:t,holder:n}=Jy(),r=Uy(),i=t??r,a=typeof e.children==`function`?e.children(i):e.children;return(0,z.jsxs)(z.Fragment,{children:[n,(0,z.jsx)(Hy.Provider,{value:i,children:a})]})}var Qy=(0,R.createContext)(void 0);function $y(){return(0,R.useContext)(Qy)}function eb(){return Ay().editor.dictionary}var tb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},nb=R.createContext&&R.createContext(tb),rb=[`attr`,`size`,`title`];function ib(e,t){if(e==null)return{};var n,r,i=ab(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ab(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ob.apply(null,arguments)}function sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?sb(Object(n),!0).forEach(function(t){lb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lb(e,t,n){return(t=ub(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ub(e){var t=db(e,`string`);return typeof t==`symbol`?t:t+``}function db(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function fb(e){return e&&e.map((e,t)=>R.createElement(e.tag,cb({key:t},e.attr),fb(e.child)))}function pb(e){return t=>R.createElement(mb,ob({attr:cb({},e.attr)},t),fb(e.child))}function mb(e){var t=t=>{var{attr:n,size:r,title:i}=e,a=ib(e,rb),o=r||t.size||`1em`,s;return t.className&&(s=t.className),e.className&&(s=(s?s+` `:``)+e.className),R.createElement(`svg`,ob({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,n,a,{className:s,style:cb(cb({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:`http://www.w3.org/2000/svg`}),i&&R.createElement(`title`,null,i),e.children)};return nb===void 0?t(tb):R.createElement(nb.Consumer,null,e=>t(e))}function hb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8 13H16C16 15.2091 14.2091 17 12 17C9.79086 17 8 15.2091 8 13ZM8 11C7.17157 11 6.5 10.3284 6.5 9.5C6.5 8.67157 7.17157 8 8 8C8.82843 8 9.5 8.67157 9.5 9.5C9.5 10.3284 8.82843 11 8 11ZM16 11C15.1716 11 14.5 10.3284 14.5 9.5C14.5 8.67157 15.1716 8 16 8C16.8284 8 17.5 8.67157 17.5 9.5C17.5 10.3284 16.8284 11 16 11Z`},child:[]}]})(e)}function gb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM8 13C8 15.2091 9.79086 17 12 17C14.2091 17 16 15.2091 16 13H8ZM8 11C8.82843 11 9.5 10.3284 9.5 9.5C9.5 8.67157 8.82843 8 8 8C7.17157 8 6.5 8.67157 6.5 9.5C6.5 10.3284 7.17157 11 8 11ZM16 11C16.8284 11 17.5 10.3284 17.5 9.5C17.5 8.67157 16.8284 8 16 8C15.1716 8 14.5 8.67157 14.5 9.5C14.5 10.3284 15.1716 11 16 11Z`},child:[]}]})(e)}function _b(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M5 11V13H19V11H5Z`},child:[]}]})(e)}function vb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10ZM19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z`},child:[]}]})(e)}function yb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V12L17.206 8.207L11.2071 14.2071L9.79289 12.7929L15.792 6.793L12 3H21Z`},child:[]}]})(e)}function bb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM14 9H19L12 16L5 9H10V3H14V9Z`},child:[]}]})(e)}function xb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM9 11V17H11V11H9ZM13 11V17H15V11H13ZM9 4V6H15V4H9Z`},child:[]}]})(e)}function Sb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 4V6H15V4H9Z`},child:[]}]})(e)}function Cb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z`},child:[]}]})(e)}function wb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z`},child:[]}]})(e)}function Tb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z`},child:[]}]})(e)}function Eb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M22 18V20H2V18H22ZM2 3.5L10 8.5L2 13.5V3.5ZM22 11V13H12V11H22ZM22 4V6H12V4H22Z`},child:[]}]})(e)}function Db(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M20 3C20.5523 3 21 3.44772 21 4V5.757L19 7.757V5H5V13.1L9 9.1005L13.328 13.429L12.0012 14.7562L11.995 18.995L16.2414 19.0012L17.571 17.671L18.8995 19H19V16.242L21 14.242V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM21.7782 7.80761L23.1924 9.22183L15.4142 17L13.9979 16.9979L14 15.5858L21.7782 7.80761ZM15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7Z`},child:[]}]})(e)}function Ob(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M21 15V18H24V20H21V23H19V20H16V18H19V15H21ZM21.0082 3C21.556 3 22 3.44495 22 3.9934L22.0007 13.3417C21.3749 13.1204 20.7015 13 20 13V5H4L4.001 19L13.2929 9.70715C13.6528 9.34604 14.22 9.31823 14.6123 9.62322L14.7065 9.70772L18.2521 13.2586C15.791 14.0069 14 16.2943 14 19C14 19.7015 14.1204 20.3749 14.3417 21.0007L2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082ZM8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7Z`},child:[]}]})(e)}function kb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z`},child:[]}]})(e)}function Ab(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z`},child:[]}]})(e)}function jb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M8 3V12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12V3H18V12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12V3H8ZM4 20H20V22H4V20Z`},child:[]}]})(e)}function Mb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M13 6V21H11V6H5V4H19V6H13Z`},child:[]}]})(e)}function Nb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M13 10V14H19V10H13ZM11 10H5V14H11V10ZM13 19H19V16H13V19ZM11 19V16H5V19H11ZM13 5V8H19V5H13ZM11 5H5V8H11V5ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z`},child:[]}]})(e)}function Pb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M17.1538 14C17.3846 14.5161 17.5 15.0893 17.5 15.7196C17.5 17.0625 16.9762 18.1116 15.9286 18.867C14.8809 19.6223 13.4335 20 11.5862 20C9.94674 20 8.32335 19.6185 6.71592 18.8555V16.6009C8.23538 17.4783 9.7908 17.917 11.3822 17.917C13.9333 17.917 15.2128 17.1846 15.2208 15.7196C15.2208 15.0939 15.0049 14.5598 14.5731 14.1173C14.5339 14.0772 14.4939 14.0381 14.4531 14H3V12H21V14H17.1538ZM13.076 11H7.62908C7.4566 10.8433 7.29616 10.6692 7.14776 10.4778C6.71592 9.92084 6.5 9.24559 6.5 8.45207C6.5 7.21602 6.96583 6.165 7.89749 5.299C8.82916 4.43299 10.2706 4 12.2219 4C13.6934 4 15.1009 4.32808 16.4444 4.98426V7.13591C15.2448 6.44921 13.9293 6.10587 12.4978 6.10587C10.0187 6.10587 8.77917 6.88793 8.77917 8.45207C8.77917 8.87172 8.99709 9.23796 9.43293 9.55079C9.86878 9.86362 10.4066 10.1135 11.0463 10.3004C11.6665 10.4816 12.3431 10.7148 13.076 11H13.076Z`},child:[]}]})(e)}function Fb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M21 4H3V6H21V4ZM21 11H8V13H21V11ZM21 18H8V20H21V18ZM5 11H3V20H5V11Z`},child:[]}]})(e)}function Ib(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M21 20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20C20.5523 3 21 3.44772 21 4V20ZM19 11V5H13.001V7H15L12 10L9 7H11V5H5V11H7V13H5V19H11V17H9L12 14L15 17H13.001V19H19V13H17V11H19ZM11 13H9V11H11V13ZM15 13H13V11H15V13Z`},child:[]}]})(e)}function Lb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V10.999H7V9L10 12L7 15V13H5V19H11V17H13V19H19V13H17V15L14 12L17 9V10.999H19V5H13V7H11V5ZM13 13V15H11V13H13ZM13 9V11H11V9H13Z`},child:[]}]})(e)}function Rb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z`},child:[]}]})(e)}function zb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M8 4H21V6H8V4ZM5 3V6H6V7H3V6H4V4H3V3H5ZM3 14V11.5H5V11H3V10H6V12.5H4V13H6V14H3ZM5 19.5H3V18.5H5V18H3V17H6V21H3V20H5V19.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z`},child:[]}]})(e)}function Bb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M8.00008 6V9H5.00008V6H8.00008ZM3.00008 4V11H10.0001V4H3.00008ZM13.0001 4H21.0001V6H13.0001V4ZM13.0001 11H21.0001V13H13.0001V11ZM13.0001 18H21.0001V20H13.0001V18ZM10.7072 16.2071L9.29297 14.7929L6.00008 18.0858L4.20718 16.2929L2.79297 17.7071L6.00008 20.9142L10.7072 16.2071Z`},child:[]}]})(e)}function Vb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z`},child:[]}]})(e)}function Hb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M17 17H22V19H19V22H17V17ZM7 7H2V5H5V2H7V7ZM18.364 15.5355L16.9497 14.1213L18.364 12.7071C20.3166 10.7545 20.3166 7.58866 18.364 5.63604C16.4113 3.68342 13.2455 3.68342 11.2929 5.63604L9.87868 7.05025L8.46447 5.63604L9.87868 4.22183C12.6123 1.48816 17.0445 1.48816 19.7782 4.22183C22.5118 6.9555 22.5118 11.3877 19.7782 14.1213L18.364 15.5355ZM15.5355 18.364L14.1213 19.7782C11.3877 22.5118 6.9555 22.5118 4.22183 19.7782C1.48816 17.0445 1.48816 12.6123 4.22183 9.87868L5.63604 8.46447L7.05025 9.87868L5.63604 11.2929C3.68342 13.2455 3.68342 16.4113 5.63604 18.364C7.58866 20.3166 10.7545 20.3166 12.7071 18.364L14.1213 16.9497L15.5355 18.364ZM14.8284 7.75736L16.2426 9.17157L9.17157 16.2426L7.75736 14.8284L14.8284 7.75736Z`},child:[]}]})(e)}function Ub(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M15 20H7V18H9.92661L12.0425 6H9V4H17V6H14.0734L11.9575 18H15V20Z`},child:[]}]})(e)}function Wb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M8 5H11V19H8V21H16V19H13V5H16V3H8V5ZM2 7C1.44772 7 1 7.44772 1 8V16C1 16.5523 1.44772 17 2 17H8V15H3V9H8V7H2ZM16 9H21V15H16V17H22C22.5523 17 23 16.5523 23 16V8C23 7.44772 22.5523 7 22 7H16V9Z`},child:[]}]})(e)}function Gb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M3 4H21V6H3V4ZM3 19H21V21H3V19ZM11 14H21V16H11V14ZM11 9H21V11H11V9ZM7 12.5L3 16V9L7 12.5Z`},child:[]}]})(e)}function Kb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M3 4H21V6H3V4ZM3 19H21V21H3V19ZM11 14H21V16H11V14ZM11 9H21V11H11V9ZM3 12.5L7 9V16L3 12.5Z`},child:[]}]})(e)}function qb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M21.097 8L18.499 12.5C20.7091 12.5 22.5 14.2909 22.5 16.5C22.5 18.7091 20.7091 20.5 18.5 20.5C16.2909 20.5 14.5 18.7091 14.5 16.5C14.5 15.7636 14.699 15.0737 15.0461 14.4811L18.788 8H21.097ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4ZM18.5 14.5C17.3954 14.5 16.5 15.3954 16.5 16.5C16.5 17.6046 17.3954 18.5 18.5 18.5C19.6046 18.5 20.5 17.6046 20.5 16.5C20.5 15.3954 19.6046 14.5 18.5 14.5Z`},child:[]}]})(e)}function Jb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M22 8V10H17.6769L17.2126 12.6358C17.5435 12.5472 17.8912 12.5 18.25 12.5C20.4591 12.5 22.25 14.2909 22.25 16.5C22.25 18.7091 20.4591 20.5 18.25 20.5C16.4233 20.5 14.8827 19.2756 14.4039 17.6027L16.3271 17.0519C16.5667 17.8881 17.3369 18.5 18.25 18.5C19.3546 18.5 20.25 17.6046 20.25 16.5C20.25 15.3954 19.3546 14.5 18.25 14.5C17.6194 14.5 17.057 14.7918 16.6904 15.2478L14.8803 14.3439L16 8H22ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4Z`},child:[]}]})(e)}function Yb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M13 20H11V13H4V20H2V4H4V11H11V4H13V20ZM22 8V16H23.5V18H22V20H20V18H14.5V16.66L19.5 8H22ZM20 11.133L17.19 16H20V11.133Z`},child:[]}]})(e)}function Xb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M22 8L21.9984 10L19.4934 12.883C21.0823 13.3184 22.25 14.7728 22.25 16.5C22.25 18.5711 20.5711 20.25 18.5 20.25C16.674 20.25 15.1528 18.9449 14.8184 17.2166L16.7821 16.8352C16.9384 17.6413 17.6481 18.25 18.5 18.25C19.4665 18.25 20.25 17.4665 20.25 16.5C20.25 15.5335 19.4665 14.75 18.5 14.75C18.214 14.75 17.944 14.8186 17.7056 14.9403L16.3992 13.3932L19.3484 10H15V8H22ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4Z`},child:[]}]})(e)}function Zb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M4 4V11H11V4H13V20H11V13H4V20H2V4H4ZM18.5 8C20.5711 8 22.25 9.67893 22.25 11.75C22.25 12.6074 21.9623 13.3976 21.4781 14.0292L21.3302 14.2102L18.0343 18H22V20H15L14.9993 18.444L19.8207 12.8981C20.0881 12.5908 20.25 12.1893 20.25 11.75C20.25 10.7835 19.4665 10 18.5 10C17.5818 10 16.8288 10.7071 16.7558 11.6065L16.75 11.75H14.75C14.75 9.67893 16.4289 8 18.5 8Z`},child:[]}]})(e)}function Qb(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M13 20H11V13H4V20H2V4H4V11H11V4H13V20ZM21.0005 8V20H19.0005L19 10.204L17 10.74V8.67L19.5005 8H21.0005Z`},child:[]}]})(e)}function $b(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M5.55397 22H3.3999L10.9999 3H12.9999L20.5999 22H18.4458L16.0458 16H7.95397L5.55397 22ZM8.75397 14H15.2458L11.9999 5.88517L8.75397 14Z`},child:[]}]})(e)}function ex(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M3.41436 5.99995L5.70726 3.70706L4.29304 2.29285L0.585938 5.99995L4.29304 9.70706L5.70726 8.29285L3.41436 5.99995ZM9.58594 5.99995L7.29304 3.70706L8.70726 2.29285L12.4144 5.99995L8.70726 9.70706L7.29304 8.29285L9.58594 5.99995ZM14.0002 2.99995H21.0002C21.5524 2.99995 22.0002 3.44767 22.0002 3.99995V20C22.0002 20.5522 21.5524 21 21.0002 21H3.00015C2.44787 21 2.00015 20.5522 2.00015 20V12H4.00015V19H20.0002V4.99995H14.0002V2.99995Z`},child:[]}]})(e)}function tx(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M8 11H12.5C13.8807 11 15 9.88071 15 8.5C15 7.11929 13.8807 6 12.5 6H8V11ZM18 15.5C18 17.9853 15.9853 20 13.5 20H6V4H12.5C14.9853 4 17 6.01472 17 8.5C17 9.70431 16.5269 10.7981 15.7564 11.6058C17.0979 12.3847 18 13.837 18 15.5ZM8 13V18H13.5C14.8807 18 16 16.8807 16 15.5C16 14.1193 14.8807 13 13.5 13H8Z`},child:[]}]})(e)}function nx(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z`},child:[]}]})(e)}function rx(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z`},child:[]}]})(e)}function ix(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z`},child:[]}]})(e)}function ax(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z`},child:[]}]})(e)}function ox(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M23 12L15.9289 19.0711L14.5147 17.6569L20.1716 12L14.5147 6.34317L15.9289 4.92896L23 12ZM3.82843 12L9.48528 17.6569L8.07107 19.0711L1 12L8.07107 4.92896L9.48528 6.34317L3.82843 12Z`},child:[]}]})(e)}function sx(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M3 8L9.00319 2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8ZM10 4V9H5V20H19V4H10Z`},child:[]}]})(e)}function cx(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z`},child:[]}]})(e)}function lx(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M7.24264 17.9967H3V13.754L14.435 2.319C14.8256 1.92848 15.4587 1.92848 15.8492 2.319L18.6777 5.14743C19.0682 5.53795 19.0682 6.17112 18.6777 6.56164L7.24264 17.9967ZM3 19.9967H21V21.9967H3V19.9967Z`},child:[]}]})(e)}function ux(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M8 7V11L2 6L8 1V5H13C17.4183 5 21 8.58172 21 13C21 17.4183 17.4183 21 13 21H4V19H13C16.3137 19 19 16.3137 19 13C19 9.68629 16.3137 7 13 7H8Z`},child:[]}]})(e)}var dx=`input:not([inert]):not([inert] *),select:not([inert]):not([inert] *),textarea:not([inert]):not([inert] *),a[href]:not([inert]):not([inert] *),area[href]:not([inert]):not([inert] *),button:not([inert]):not([inert] *),[tabindex]:not(slot):not([inert]):not([inert] *),audio[controls]:not([inert]):not([inert] *),video[controls]:not([inert]):not([inert] *),[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *),details>summary:first-of-type:not([inert]):not([inert] *),details:not([inert]):not([inert] *)`,fx=typeof Element>`u`,px=fx?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mx=!fx&&Element.prototype.getRootNode?function(e){return e==null||e.getRootNode==null?void 0:e.getRootNode()}:function(e){return e?.ownerDocument},hx=function(e,t){t===void 0&&(t=!0);var n=e==null||e.getAttribute==null?void 0:e.getAttribute(`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):hx(e.parentNode))},gx=function(e){var t,n=e==null||e.getAttribute==null||(t=e.getAttribute(`contenteditable`))==null?void 0:t.toLowerCase();return n===``||n===`true`||n===`plaintext-only`},_x=function(e,t,n){if(hx(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(dx));return t&&px.call(e,dx)&&r.unshift(e),r=r.filter(n),r},vx=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!hx(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=vx(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{px.call(a,dx)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!hx(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=vx(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},yx=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},bx=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||gx(e))&&!yx(e)?0:e.tabIndex},xx=function(e,t){var n=bx(e);return n<0&&t&&!yx(e)?0:n},Sx=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Cx=function(e){return e.tagName===`INPUT`},wx=function(e){return Cx(e)&&e.type===`hidden`},Tx=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Ex=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Dx=function(e){if(!e.name)return!0;var t=e.form||mx(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Ex(r,e.form);return!i||i===e},Ox=function(e){return Cx(e)&&e.type===`radio`},kx=function(e){return Ox(e)&&!Dx(e)},Ax=function(e){var t=e&&mx(e),n=t?.host,r=!1;if(t&&t!==e){var i,a;for(r=!!((i=n)!=null&&(i=i.ownerDocument)!=null&&i.contains(n)||e!=null&&(a=e.ownerDocument)!=null&&a.contains(e));!r&&n;){var o;t=mx(n),n=t?.host,r=!!((o=n)!=null&&(o=o.ownerDocument)!=null&&o.contains(n))}}return r},jx=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Mx=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=px.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(px.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=mx(e);if(s&&!s.shadowRoot&&r(s)===!0)return jx(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(Ax(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return jx(e);return!1},Nx=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return px.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Px=function(e,t){return!(t.disabled||wx(t)||Mx(t,e)||Tx(t)||Nx(t))},Fx=function(e,t){return!(kx(t)||bx(t)<0||!Px(e,t))},Ix=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},Lx=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=xx(a,i),s=i?Lx(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Sx).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Rx=function(e,t){return t||={},Lx(t.getShadowRoot?vx([e],t.includeContainer,{filter:Fx.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ix}):_x(e,t.includeContainer,Fx.bind(null,t)))},zx=function(e,t){return t||={},t.getShadowRoot?vx([e],t.includeContainer,{filter:Px.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):_x(e,t.includeContainer,Px.bind(null,t))},Bx=function(e,t){if(t||={},!e)throw Error(`No node provided`);return px.call(e,dx)!==!1&&Fx(t,e)};function Vx(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Hx(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function Ux(){return/apple/i.test(navigator.vendor)}function Wx(){let e=/android/i;return e.test(Vx())||e.test(Hx())}function Gx(){return Hx().includes(`jsdom/`)}var Kx=`data-floating-ui-focusable`,qx=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function Jx(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Yx(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&se(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Xx(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Zx(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Qx(e){return e.matches(`html,body`)}function $x(e){return e?.ownerDocument||document}function eS(e){return ae(e)&&e.matches(qx)}function tS(e){return e?e.getAttribute(`role`)===`combobox`&&eS(e):!1}function nS(e){return e?e.hasAttribute(Kx)?e:e.querySelector(`[`+Kx+`]`)||e:null}function rS(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...rS(e,t.id,n)])}function iS(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function aS(e){e.preventDefault(),e.stopPropagation()}function oS(e){return`nativeEvent`in e}function sS(e){return e.mozInputSource===0&&e.isTrusted?!0:Wx()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function cS(e){return Gx()?!1:!Wx()&&e.width===0&&e.height===0||Wx()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function lS(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var uS=typeof document<`u`?R.useLayoutEffect:function(){},dS={...R};function fS(e){let t=R.useRef(e);return uS(()=>{t.current=e}),t}var pS=dS.useInsertionEffect||(e=>e());function mS(e){let t=R.useRef(()=>{});return pS(()=>{t.current=e}),R.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}var hS=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver==`function`&&ResizeObserver.toString().includes(`[native code]`)?`full`:`none`});function gS(e,t){let n=Rx(e,hS()),r=n.length;if(r===0)return;let i=Jx($x(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function _S(e){return gS($x(e).body,1)||e}function vS(e){return gS($x(e).body,-1)||e}function yS(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Yx(n,r)}function bS(e){Rx(e,hS()).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function xS(e){e.querySelectorAll(`[data-tabindex]`).forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function SS(e){let t=R.useRef(void 0),n=R.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return R.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var CS=`data-floating-ui-focusable`,wS=`active`,TS=`selected`,ES=`ArrowLeft`,DS=`ArrowRight`,OS=`ArrowUp`,kS=`ArrowDown`,AS=[ES,DS],jS=[OS,kS];[...AS,...jS];var MS={...R},NS=!1,PS=0,FS=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+PS++;function IS(){let[e,t]=R.useState(()=>NS?FS():void 0);return uS(()=>{e??t(FS())},[]),R.useEffect(()=>{NS=!0},[]),e}var LS=MS.useId||IS;function gee(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var _ee=R.createContext(null),vee=R.createContext(null),RS=()=>R.useContext(_ee)?.id||null,zS=()=>R.useContext(vee);function BS(e){return`data-floating-ui-`+e}function VS(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var HS=BS(`safe-polygon`);function US(e,t,n){if(n&&!lS(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function WS(e){return typeof e==`function`?e():e}function GS(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=zS(),m=RS(),h=fS(l),g=fS(c),_=fS(n),v=fS(d),y=R.useRef(),b=R.useRef(-1),x=R.useRef(),S=R.useRef(-1),C=R.useRef(!0),w=R.useRef(!1),T=R.useRef(()=>{}),E=R.useRef(!1),D=mS(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});R.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(VS(b),VS(S),C.current=!0,E.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),R.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){D()&&r(!1,e,`hover`)}let t=$x(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,D]);let O=R.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=US(g.current,`close`,y.current);i&&!x.current?(VS(b),b.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(VS(b),r(!1,e,n))},[g,r]),k=mS(()=>{T.current(),x.current=void 0}),A=mS(()=>{if(w.current){let e=$x(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(HS),w.current=!1}}),j=mS(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);R.useEffect(()=>{if(!s)return;function e(e){if(VS(b),C.current=!1,u&&!lS(y.current)||WS(v.current)>0&&!US(g.current,`open`))return;let t=US(g.current,`open`,y.current);t?b.current=window.setTimeout(()=>{_.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(j()){A();return}T.current();let t=$x(o.floating);if(VS(S),E.current=!1,h.current&&i.current.floatingContext){n||VS(b),x.current=h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e,!0,`safe-polygon`)}});let r=x.current;t.addEventListener(`mousemove`,r),T.current=()=>{t.removeEventListener(`mousemove`,r)}}else y.current===`touch`&&Yx(o.floating,e.relatedTarget)||O(e)}function a(e){j()||i.current.floatingContext&&(h.current==null||h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e)}})(e))}function c(){VS(b)}function l(e){j()||O(e,!1)}if(ve(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,O,k,A,r,n,_,p,g,h,i,j,v]),uS(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&D()){w.current=!0;let e=o.floating;if(ve(o.domReference)&&e){var t;let n=$x(o.floating).body;n.setAttribute(HS,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,h,D]),uS(()=>{n||(y.current=void 0,E.current=!1,k(),A())},[n,k,A]),R.useEffect(()=>()=>{k(),VS(b),VS(S),A()},[s,o.domReference,k,A]);let M=R.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!C.current&&!_.current&&r(!0,t,`hover`)}u&&!lS(y.current)||n||WS(v.current)===0||E.current&&e.movementX**2+e.movementY**2<2||(VS(S),y.current===`touch`?i():(E.current=!0,S.current=window.setTimeout(i,WS(v.current))))}}},[u,r,n,_,v]);return R.useMemo(()=>s?{reference:M}:{},[s,M])}var KS=0;function qS(e,t){t===void 0&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(KS);let a=()=>e?.focus({preventScroll:n});i?a():KS=requestAnimationFrame(a)}function JS(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&se(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function YS(e){return`composedPath`in e?e.composedPath()[0]:e.target}function XS(e){return e?.ownerDocument||document}var ZS={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function QS(e){return e===`inert`?ZS.inert:e===`aria-hidden`?ZS[`aria-hidden`]:ZS.none}var $S=new WeakSet,eC={},tC=0,nC=()=>typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype;function rC(e){return e?se(e)?e.host:rC(e.parentNode):null}var iC=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=rC(t);return e.contains(n)?n:null}).filter(e=>e!=null);function aC(e,t,n,r){let i=`data-floating-ui-inert`,a=r?`inert`:n?`aria-hidden`:null,o=iC(t,e),s=new Set,c=new Set(o),l=[];eC[i]||(eC[i]=new WeakMap);let u=eC[i];o.forEach(d),f(t),s.clear();function d(e){e&&!s.has(e)&&(s.add(e),e.parentNode&&d(e.parentNode))}function f(e){e&&!c.has(e)&&[].forEach.call(e.children,e=>{if(v(e)!==`script`){if(s.has(e))f(e);else{let t=a?e.getAttribute(a):null,n=t!==null&&t!==`false`,r=QS(a),o=(r.get(e)||0)+1,s=(u.get(e)||0)+1;r.set(e,o),u.set(e,s),l.push(e),o===1&&n&&$S.add(e),s===1&&e.setAttribute(i,``),!n&&a&&e.setAttribute(a,a===`inert`?``:`true`)}}})}return tC++,()=>{l.forEach(e=>{let t=QS(a),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!$S.has(e)&&a&&e.removeAttribute(a),$S.delete(e)),r||e.removeAttribute(i)}),tC--,tC||(ZS.inert=new WeakMap,ZS[`aria-hidden`]=new WeakMap,ZS.none=new WeakMap,$S=new WeakSet,eC={})}}function oC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);let r=XS(e[0]).body;return aC(e.concat(Array.from(r.querySelectorAll(`[aria-live],[role="status"],output`))),r,t,n)}var sC={border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`fixed`,whiteSpace:`nowrap`,width:`1px`,top:0,left:0},cC=R.forwardRef(function(e,t){let[n,r]=R.useState();uS(()=>{Ux()&&r(`button`)},[]);let i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[BS(`focus-guard`)]:``,style:sC};return(0,z.jsx)(`span`,{...e,...i})}),lC={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},uC=R.createContext(null),dC=BS(`portal`);function fC(e){e===void 0&&(e={});let{id:t,root:n}=e,r=LS(),i=mC(),[a,o]=R.useState(null),s=R.useRef(null);return uS(()=>()=>{a?.remove(),queueMicrotask(()=>{s.current=null})},[a]),uS(()=>{if(!r||s.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement(`div`);n.id=r,n.setAttribute(dC,``),e.appendChild(n),s.current=n,o(n)},[t,r]),uS(()=>{if(n===null||!r||s.current)return;let e=n||i?.portalNode;e&&!I(e)&&(e=e.current),e||=document.body;let a=null;t&&(a=document.createElement(`div`),a.id=t,e.appendChild(a));let c=document.createElement(`div`);c.id=r,c.setAttribute(dC,``),e=a||e,e.appendChild(c),s.current=c,o(c)},[t,n,r,i]),a}function pC(e){let{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,a=fC({id:n,root:r}),[o,s]=R.useState(null),c=R.useRef(null),l=R.useRef(null),u=R.useRef(null),d=R.useRef(null),f=o?.modal,p=o?.open,m=!!o&&!o.modal&&o.open&&i&&!!(r||a);return R.useEffect(()=>{if(!a||!i||f)return;function e(e){a&&yS(e)&&(e.type===`focusin`?xS:bS)(a)}return a.addEventListener(`focusin`,e,!0),a.addEventListener(`focusout`,e,!0),()=>{a.removeEventListener(`focusin`,e,!0),a.removeEventListener(`focusout`,e,!0)}},[a,i,f]),R.useEffect(()=>{a&&(p||xS(a))},[p,a]),(0,z.jsxs)(uC.Provider,{value:R.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:l,beforeInsideRef:u,afterInsideRef:d,portalNode:a,setFocusManagerState:s}),[i,a]),children:[m&&a&&(0,z.jsx)(cC,{"data-type":`outside`,ref:c,onFocus:e=>{if(yS(e,a)){var t;(t=u.current)==null||t.focus()}else vS(o?o.domReference:null)?.focus()}}),m&&a&&(0,z.jsx)(`span`,{"aria-owns":a.id,style:lC}),a&&Oy.createPortal(t,a),m&&a&&(0,z.jsx)(cC,{"data-type":`outside`,ref:l,onFocus:e=>{if(yS(e,a)){var t;(t=d.current)==null||t.focus()}else _S(o?o.domReference:null)?.focus(),o!=null&&o.closeOnFocusOut&&o?.onOpenChange(!1,e.nativeEvent,`focus-out`)}})]})}var mC=()=>R.useContext(uC);function hC(e){return R.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}var gC=20,_C=[];function vC(){_C=_C.filter(e=>e.deref()?.isConnected)}function yC(e){vC(),e&&v(e)!==`body`&&(_C.push(new WeakRef(e)),_C.length>gC&&(_C=_C.slice(-20)))}function bC(){return vC(),_C[_C.length-1]?.deref()}function xC(e){let t=hS();return Bx(e,t)?e:Rx(e,t)[0]||e}function SC(e,t){var n;if(!t.current.includes(`floating`)&&!((n=e.getAttribute(`role`))!=null&&n.includes(`dialog`)))return;let r=hS(),i=zx(e,r).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Bx(e,r)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),a=e.getAttribute(`tabindex`);t.current.includes(`floating`)||i.length===0?a!==`0`&&e.setAttribute(`tabindex`,`0`):(a!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}var CC=R.forwardRef(function(e,t){return(0,z.jsx)(`button`,{...e,type:`button`,ref:t,tabIndex:-1,style:sC})});function wC(e){let{context:t,children:n,disabled:r=!1,order:i=[`content`],guards:a=!0,initialFocus:o=0,returnFocus:s=!0,restoreFocus:c=!1,modal:l=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0,outsideElementsInert:f=!1,getInsideElements:p=()=>[]}=e,{open:m,onOpenChange:h,events:g,dataRef:_,elements:{domReference:v,floating:y}}=t,b=mS(()=>_.current.floatingContext?.nodeId),x=mS(p),S=typeof o==`number`&&o<0,C=tS(v)&&S,w=nC(),T=!w||a,E=!T||w&&f,D=fS(i),O=fS(o),k=fS(s),A=zS(),j=mC(),M=R.useRef(null),N=R.useRef(null),P=R.useRef(!1),F=R.useRef(!1),I=R.useRef(-1),L=R.useRef(-1),ee=j!=null,te=nS(y),ne=mS(function(e){return e===void 0&&(e=te),e?Rx(e,hS()):[]}),re=mS(e=>{let t=ne(e);return D.current.map(e=>v&&e===`reference`?v:te&&e===`floating`?te:t).filter(Boolean).flat()});R.useEffect(()=>{if(r||!l)return;function e(e){if(e.key===`Tab`){Yx(te,Jx($x(te)))&&ne().length===0&&!C&&aS(e);let t=re(),n=Xx(e);D.current[0]===`reference`&&n===v&&(aS(e),e.shiftKey?qS(t[t.length-1]):qS(t[1])),D.current[1]===`floating`&&n===te&&e.shiftKey&&(aS(e),qS(t[0]))}}let t=$x(te);return t.addEventListener(`keydown`,e),()=>{t.removeEventListener(`keydown`,e)}},[r,v,te,l,D,C,ne,re]),R.useEffect(()=>{if(r||!y)return;function e(e){let t=Xx(e),n=ne().indexOf(t);n!==-1&&(I.current=n)}return y.addEventListener(`focusin`,e),()=>{y.removeEventListener(`focusin`,e)}},[r,y,ne]),R.useEffect(()=>{if(r||!d)return;function e(){F.current=!0,setTimeout(()=>{F.current=!1})}function t(e){let t=e.relatedTarget,n=e.currentTarget,r=Xx(e);queueMicrotask(()=>{let i=b(),a=!(Yx(v,t)||Yx(y,t)||Yx(t,y)||Yx(j?.portalNode,t)||t!=null&&t.hasAttribute(BS(`focus-guard`))||A&&(rS(A.nodesRef.current,i).find(e=>Yx(e.context?.elements.floating,t)||Yx(e.context?.elements.domReference,t))||iS(A.nodesRef.current,i).find(e=>[e.context?.elements.floating,nS(e.context?.elements.floating)].includes(t)||e.context?.elements.domReference===t)));if(n===v&&te&&SC(te,D),c&&n!==v&&!(r!=null&&r.isConnected)&&Jx($x(te))===$x(te).body){ae(te)&&te.focus();let e=I.current,t=ne(),n=t[e]||t[t.length-1]||te;ae(n)&&n.focus()}_.current.insideReactTree?_.current.insideReactTree=!1:(C||!l)&&t&&a&&!F.current&&t!==bC()&&(P.current=!0,h(!1,e,`focus-out`))})}let n=!(A||!j);function i(){VS(L),_.current.insideReactTree=!0,L.current=window.setTimeout(()=>{_.current.insideReactTree=!1})}if(y&&ae(v))return v.addEventListener(`focusout`,t),v.addEventListener(`pointerdown`,e),y.addEventListener(`focusout`,t),n&&y.addEventListener(`focusout`,i,!0),()=>{v.removeEventListener(`focusout`,t),v.removeEventListener(`pointerdown`,e),y.removeEventListener(`focusout`,t),n&&y.removeEventListener(`focusout`,i,!0)}},[r,v,y,te,l,A,j,h,d,c,ne,C,b,D,_]);let ie=R.useRef(null),oe=R.useRef(null),se=hC([ie,j?.beforeInsideRef]),ce=hC([oe,j?.afterInsideRef]);R.useEffect(()=>{var e,t;if(r||!y)return;let n=Array.from((j==null||(e=j.portalNode)==null?void 0:e.querySelectorAll(`[`+BS(`portal`)+`]`))||[]),i=(t=(A?iS(A.nodesRef.current,b()):[]).find(e=>tS(e.context?.elements.domReference||null)))==null||(t=t.context)==null?void 0:t.elements.domReference,a=[y,i,...n,...x(),M.current,N.current,ie.current,oe.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,D.current.includes(`reference`)||C?v:null].filter(e=>e!=null),o=l||C?oC(a,!E,E):oC(a);return()=>{o()}},[r,v,y,l,D,j,C,T,E,A,b,x]),uS(()=>{if(r||!ae(te))return;let e=Jx($x(te));queueMicrotask(()=>{let t=re(te),n=O.current,r=(typeof n==`number`?t[n]:n.current)||te,i=Yx(te,e);!S&&!i&&m&&qS(r,{preventScroll:r===te})})},[r,m,te,S,re,O]),uS(()=>{if(r||!te)return;let e=$x(te);yC(Jx(e));function t(e){let{reason:t,event:n,nested:r}=e;if([`hover`,`safe-polygon`].includes(t)&&n.type===`mouseleave`&&(P.current=!0),t===`outside-press`){if(r)P.current=!1;else if(sS(n)||cS(n))P.current=!1;else{let e=!1;document.createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?P.current=!1:P.current=!0}}}g.on(`openchange`,t);let n=e.createElement(`span`);n.setAttribute(`tabindex`,`-1`),n.setAttribute(`aria-hidden`,`true`),Object.assign(n.style,sC),ee&&v&&v.insertAdjacentElement(`afterend`,n);function i(){if(typeof k.current==`boolean`){let e=v||bC();return e&&e.isConnected?e:n}return k.current.current||n}return()=>{g.off(`openchange`,t);let r=Jx(e),a=Yx(y,r)||A&&rS(A.nodesRef.current,b(),!1).some(e=>Yx(e.context?.elements.floating,r)),o=i();queueMicrotask(()=>{let t=xC(o);k.current&&!P.current&&ae(t)&&(t===r||r===e.body||a)&&t.focus({preventScroll:!0}),n.remove()})}},[r,y,te,k,_,g,A,ee,v,b]),R.useEffect(()=>(queueMicrotask(()=>{P.current=!1}),()=>{queueMicrotask(vC)}),[r]),uS(()=>{if(!r&&j)return j.setFocusManagerState({modal:l,closeOnFocusOut:d,open:m,onOpenChange:h,domReference:v}),()=>{j.setFocusManagerState(null)}},[r,j,l,m,h,d,v]),uS(()=>{r||te&&SC(te,D)},[r,te,D]);function le(e){return r||!u||!l?null:(0,z.jsx)(CC,{ref:e===`start`?M:N,onClick:e=>h(!1,e.nativeEvent),children:typeof u==`string`?u:`Dismiss`})}let ue=!r&&T&&(!l||!C)&&(ee||l);return(0,z.jsxs)(z.Fragment,{children:[ue&&(0,z.jsx)(cC,{"data-type":`inside`,ref:se,onFocus:e=>{if(l){let e=re();qS(i[0]===`reference`?e[0]:e[e.length-1])}else if(j!=null&&j.preserveTabOrder&&j.portalNode){if(P.current=!1,yS(e,j.portalNode))_S(v)?.focus();else{var t;(t=j.beforeOutsideRef.current)==null||t.focus()}}}}),!C&&le(`start`),n,le(`end`),ue&&(0,z.jsx)(cC,{"data-type":`inside`,ref:ce,onFocus:e=>{if(l)qS(re()[0]);else if(j!=null&&j.preserveTabOrder&&j.portalNode){if(d&&(P.current=!0),yS(e,j.portalNode))vS(v)?.focus();else{var t;(t=j.afterOutsideRef.current)==null||t.focus()}}}})]})}var TC={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},EC={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},DC=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function OC(e,t){t===void 0&&(t={});let{open:n,onOpenChange:i,elements:a,dataRef:o}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:l=!0,outsidePressEvent:u=`pointerdown`,referencePress:d=!1,referencePressEvent:p=`pointerdown`,ancestorScroll:m=!1,bubbles:h,capture:_}=t,v=zS(),y=mS(typeof l==`function`?l:()=>!1),b=typeof l==`function`?y:l,x=R.useRef(!1),{escapeKey:S,outsidePress:C}=DC(h),{escapeKey:w,outsidePress:T}=DC(_),E=R.useRef(!1),D=mS(e=>{if(!n||!s||!c||e.key!==`Escape`||E.current)return;let t=o.current.floatingContext?.nodeId,r=v?rS(v.nodesRef.current,t):[];if(!S&&(e.stopPropagation(),r.length>0)){let e=!0;if(r.forEach(t=>{var n;(n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}i(!1,oS(e)?e.nativeEvent:e,`escape-key`)}),O=mS(e=>{var t;let n=()=>{var t;D(e),(t=Xx(e))==null||t.removeEventListener(`keydown`,n)};(t=Xx(e))==null||t.addEventListener(`keydown`,n)}),k=mS(e=>{let t=o.current.insideReactTree;o.current.insideReactTree=!1;let n=x.current;if(x.current=!1,u===`click`&&n||t||typeof b==`function`&&!b(e))return;let s=Xx(e),c=`[`+BS(`inert`)+`]`,l=$x(a.floating).querySelectorAll(c),d=ve(s)?s:null;for(;d&&!me(d);){let e=r(d);if(me(e)||!ve(e))break;d=e}if(l.length&&ve(s)&&!Qx(s)&&!Yx(s,a.floating)&&Array.from(l).every(e=>!Yx(d,e)))return;if(ae(s)&&M){let t=me(s),n=g(s),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),o=i&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,c=a&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),d=o&&e.offsetY>s.clientHeight;if(u||d)return}let f=o.current.floatingContext?.nodeId,p=v&&rS(v.nodesRef.current,f).some(t=>Zx(e,t.context?.elements.floating));if(Zx(e,a.floating)||Zx(e,a.domReference)||p)return;let m=v?rS(v.nodesRef.current,f):[];if(m.length>0){let e=!0;if(m.forEach(t=>{var n;(n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}i(!1,e,`outside-press`)}),A=mS(e=>{var t;let n=()=>{var t;k(e),(t=Xx(e))==null||t.removeEventListener(u,n)};(t=Xx(e))==null||t.addEventListener(u,n)});R.useEffect(()=>{if(!n||!s)return;o.current.__escapeKeyBubbles=S,o.current.__outsidePressBubbles=C;let e=-1;function t(e){i(!1,e,`ancestor-scroll`)}function r(){window.clearTimeout(e),E.current=!0}function l(){e=window.setTimeout(()=>{E.current=!1},ge()?5:0)}let d=$x(a.floating);c&&(d.addEventListener(`keydown`,w?O:D,w),d.addEventListener(`compositionstart`,r),d.addEventListener(`compositionend`,l)),b&&d.addEventListener(u,T?A:k,T);let p=[];return m&&(ve(a.domReference)&&(p=f(a.domReference)),ve(a.floating)&&(p=p.concat(f(a.floating))),!ve(a.reference)&&a.reference&&a.reference.contextElement&&(p=p.concat(f(a.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{c&&(d.removeEventListener(`keydown`,w?O:D,w),d.removeEventListener(`compositionstart`,r),d.removeEventListener(`compositionend`,l)),b&&d.removeEventListener(u,T?A:k,T),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[o,a,c,b,u,n,i,m,s,S,C,D,w,O,k,T,A]),R.useEffect(()=>{o.current.insideReactTree=!1},[o,b,u]);let j=R.useMemo(()=>({onKeyDown:D,...d&&{[TC[p]]:e=>{i(!1,e.nativeEvent,`reference-press`)},...p!==`click`&&{onClick(e){i(!1,e.nativeEvent,`reference-press`)}}}}),[D,i,d,p]),M=R.useMemo(()=>{function e(e){e.button===0&&(x.current=!0)}return{onKeyDown:D,onMouseDown:e,onMouseUp:e,[EC[u]]:()=>{o.current.insideReactTree=!0}}},[D,u,o]);return R.useMemo(()=>s?{reference:j,floating:M}:{},[s,j,M])}function kC(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=LS(),a=R.useRef({}),[o]=R.useState(()=>gee()),s=RS()!=null,[c,l]=R.useState(r.reference),u=mS((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=R.useMemo(()=>({setPositionReference:l}),[]),f=R.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return R.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function AC(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=kC({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=R.useState(null),[l,u]=R.useState(null),d=o?.domReference||s,f=R.useRef(null),p=zS();uS(()=>{d&&(f.current=d)},[d]);let m=ue({...n,elements:{...o,...l&&{reference:l}}}),h=R.useCallback(e=>{let t=ve(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=R.useCallback(e=>{(ve(e)||e===null)&&(f.current=e,c(e)),(ve(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!ve(e))&&m.refs.setReference(e)},[m.refs]),_=R.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),v=R.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),y=R.useMemo(()=>({...m,...a,refs:_,elements:v,nodeId:r}),[m,_,v,r,a]);return uS(()=>{a.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),R.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}function jC(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[wS]:t,[TS]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[CS]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[wS,TS].includes(n))){if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}}),e),{})}}function MC(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=R.useCallback(t=>jC(t,e,`reference`),t),a=R.useCallback(t=>jC(t,e,`floating`),n),o=R.useCallback(t=>jC(t,e,`item`),r);return R.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var NC=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?`-`:``)+e.toLowerCase());function PC(e,t){return typeof e==`function`?e(t):e}function FC(e,t){let[n,r]=R.useState(e);return e&&!n&&r(!0),R.useEffect(()=>{if(!e&&n){let e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}function IC(e,t){t===void 0&&(t={});let{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i==`number`?i:i.close)||0,[o,s]=R.useState(`unmounted`),c=FC(n,a);return!c&&o===`close`&&s(`unmounted`),uS(()=>{if(r){if(n){s(`initial`);let e=requestAnimationFrame(()=>{Oy.flushSync(()=>{s(`open`)})});return()=>{cancelAnimationFrame(e)}}s(`close`)}},[n,r]),{isMounted:c,status:o}}function LC(e,t){t===void 0&&(t={});let{initial:n={opacity:0},open:r,close:i,common:a,duration:o=250}=t,s=e.placement,c=s.split(`-`)[0],l=R.useMemo(()=>({side:c,placement:s}),[c,s]),u=typeof o==`number`,d=(u?o:o.open)||0,f=(u?o:o.close)||0,[p,m]=R.useState(()=>({...PC(a,l),...PC(n,l)})),{isMounted:h,status:g}=IC(e,{duration:o}),_=fS(n),v=fS(r),y=fS(i),b=fS(a);return uS(()=>{let e=PC(_.current,l),t=PC(y.current,l),n=PC(b.current,l),r=PC(v.current,l)||Object.keys(e).reduce((e,t)=>(e[t]=``,e),{});if(g===`initial`&&m(t=>({transitionProperty:t.transitionProperty,...n,...e})),g===`open`&&m({transitionProperty:Object.keys(r).map(NC).join(`,`),transitionDuration:d+`ms`,...n,...r}),g===`close`){let r=t||e;m({transitionProperty:Object.keys(r).map(NC).join(`,`),transitionDuration:f+`ms`,...n,...r})}},[f,y,_,v,b,d,g,l]),{isMounted:h,styles:p}}function RC(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...RC(e,t.id,n)])}function zC(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e<a;o=e++){let[a,s]=t[e]||[0,0],[c,l]=t[o]||[0,0];s>=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function BC(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function VC(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){VS(i),u()}if(VS(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=YS(e),v=e.type===`mouseleave`,y=JS(c.floating,_),b=JS(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=BC(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,M=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&ve(e.relatedTarget)&&JS(c.floating,e.relatedTarget)||f&&RC(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let N=[];switch(C){case`top`:N=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:N=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:N=[[S.right-1,M],[S.right-1,j],[x.left+1,j],[x.left+1,M]];break;case`right`:N=[[x.right-1,M],[x.right-1,j],[S.left+1,j],[S.left+1,M]]}function P(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!zC([m,h],N)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}zC([m,h],P([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var HC=Object.defineProperty,UC=(e,t)=>{let n={};for(var r in e)HC(n,r,{get:e[r],enumerable:!0});return t||HC(n,Symbol.toStringTag,{value:`Module`}),n};function WC(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return GC(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function GC(e,t,n,r=null){let i=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let e=o.resolve(t.start-2);a=new Jt(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new Jt(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=vt(a,n,r,t);return s?(e&&KC(e,t,s,i,n),!0):!1}function KC(e,t,n,r,i){let a=Vt.empty;for(let e=n.length-1;e>=0;e--)a=Vt.from(n[e].type.create(n[e].attrs,a));e.step(new $e(t.start-(r?2:0),t.end,t.start,t.end,new xt(a,0,0),n.length,!0));let o=0;for(let e=0;e<n.length;e++)n[e].type==i&&(o=e+1);let s=n.length-o,c=t.start+n.length-(r?2:0),l=t.parent;for(let n=t.startIndex,r=t.endIndex,i=!0;n<r;n++,i=!1)!i&&_t(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function qC(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?JC(t,n,e,a):YC(t,n,a):!0:!1}}function JC(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new $e(a-1,o,a,o,new xt(Vt.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Jt(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=Ke(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return nt(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function YC(e,t,n){let r=e.tr,i=n.parent;for(let e=n.end,t=n.endIndex-1,a=n.startIndex;t>a;t--)e-=i.child(t).nodeSize,r.delete(e-1,e+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==i.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+ +!s,u+1,o.content.append(c?Vt.empty:Vt.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new $e(d-+!!s,f+ +!!c,d+1,f-1,new xt((s?Vt.empty:Vt.from(i.copy(Vt.empty))).append(c?Vt.empty:Vt.from(i.copy(Vt.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function XC(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,c=s.child(o-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,i=Vt.from(r?e.create():null),o=new xt(Vt.from(e.create(null,Vt.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new $e(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}function ZC(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var QC=class e{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(a);return!i.getMeta(`preventDispatch`)&&!this.hasCustomState&&r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o=[],s=!!e,c=e||i.tr,l=()=>(!s&&t&&!c.getMeta(`preventDispatch`)&&!this.hasCustomState&&a.dispatch(c),o.every(e=>e===!0)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(c,t),i=n(...e)(r);return o.push(i),u}])),run:l};return u}static createFakeChain(){let e=new Proxy({},{get:(t,n)=>{if(n!==`then`)return n===`run`?()=>!1:()=>e}});return e}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}static createFallbackCan(){let t=e.createFakeChain();return new Proxy({chain:()=>t},{get:(e,t)=>{if(t!==`then`)return t===`chain`?e.chain:()=>!1}})}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:ZC({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(o)]))}};return o}},$C=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;t.dom.blur(),(n=window)==null||(n=n.getSelection())==null||n.removeAllRanges()}}),!0),ew=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),tw=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:i}=t,a=r.resolve(i.map(n)),o=r.resolve(i.map(n+e.nodeSize)),s=a.blockRange(o);if(!s)return;let c=Ke(s);if(e.type.isTextblock){let{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||c===0)&&t.lift(s,c)})}),!0},nw=e=>t=>e(t),rw=()=>({state:e,dispatch:t})=>yt(e,t),iw=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new et(r.doc.resolve(Math.max(o-1,0)))),!0},aw=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;--n)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1};function ow(e,t){if(typeof e==`string`){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var sw=e=>({tr:t,state:n,dispatch:r})=>{let i=ow(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;--e)if(a.node(e).type===i){if(r){let n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},cw=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},lw=e=>e.content?/^text(\*|\+)/.test(e.content):!1,uw=(e,t,n)=>{if(!e.parent.isInline||n===`left`&&e.pos>e.start()||n===`right`&&e.pos<e.end())return e.pos;let r=t.nodes[e.parent.type.name].spec;return lw(r)?n===`left`?e.start()-1:e.end()+1:e.pos},dw=(e,t,n)=>({from:uw(e,n,`left`),to:uw(t,n,`right`)}),fw=()=>({state:e,dispatch:t})=>{if(e.selection.empty)return!1;if(t){let n=e.tr,{ranges:r}=e.selection,i=n.steps.length;r.forEach(t=>{let r=n.mapping.slice(i),{from:a,to:o}=dw(n.doc.resolve(r.map(t.$from.pos)),n.doc.resolve(r.map(t.$to.pos)),e.schema);n.deleteRange(a,o)}),n.selection.empty||n.setSelection(et.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},pw=()=>({commands:e})=>e.keyboardShortcut(`Enter`),mw=()=>({state:e,dispatch:t})=>tn(e,t);function hw(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function gw(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:hw(t[r])?t[r].test(e[r]):t[r]===e[r])}function _w(e,t,n={}){return e.find(e=>e.type===t&&gw(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function vw(e,t,n={}){return!!_w(e,t,n)}function yw(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(r.node&&r.node.marks.some(e=>e.type===t)||(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t))return;if(!n){let e=r.node.marks.find(e=>e.type===t);e&&(n=e.attrs)}if(!_w([...r.node.marks],t,n))return;let i=r.index,a=e.start()+r.offset,o=i+1,s=a+r.node.nodeSize;for(;i>0&&vw([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&vw([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function bw(e,t){if(typeof e==`string`){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var xw=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=bw(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=yw(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=et.create(o,e.from,e.to);n.setSelection(t)}}return!0},Sw=e=>t=>{let n=typeof e==`function`?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function Cw(e){return e instanceof et}function ww(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function Tw(e,t=null){if(!t)return null;let n=Je.atStart(e),r=Je.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?et.create(e,ww(0,i,a),ww(e.content.size,i,a)):et.create(e,ww(t,i,a),ww(t,i,a))}function Ew(){return[`Android`].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function Dw(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function Ow(){return typeof navigator<`u`&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var kw=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(Dw()||Ew())&&r.dom.focus(),Ow()&&!Dw()&&!Ew()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(a&&e===null&&!Cw(n.state.selection))return o(),!0;let s=Tw(i.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||i.setSelection(s),c&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},Aw=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),jw=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),Mw=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;--n){let r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&Mw(r)}return e};function Nw(e){if(typeof window>`u`)throw Error(`[tiptap error]: there is no window object available, so this function cannot be used`);let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return Mw(n)}function Pw(e){return typeof e?.nodesBetween==`function`}function Fw(e,t,n){if(Pw(e))return e;let r=typeof e==`object`&&!!e;n={slice:!0,parseOptions:{},...n};let i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return Vt.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error(`[tiptap error]: Invalid JSON content`,{cause:r});return console.warn(`[tiptap warn]: Invalid content.`,`Passed value:`,e,`Error:`,r),Fw(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new Nt({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:`inline*`,group:`block`,parseDOM:[{tag:`*`,getAttrs:e=>(r=!0,i=typeof e==`string`?e:e.outerHTML,null)}]}})});if(n.slice?Dt.fromSchema(a).parseSlice(Nw(e),n.parseOptions):Dt.fromSchema(a).parse(Nw(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=Dt.fromSchema(t);return n.slice?r.parseSlice(Nw(e),n.parseOptions).content:r.parse(Nw(e),n.parseOptions)}return Fw(``,t,n)}function Iw(e){return!(`type`in e)}function Lw(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof rt||i instanceof $e))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(Je.near(e.doc.resolve(o),n))}var Rw=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i,o=e=>{a.emit(`contentError`,{editor:a,error:e,disableCollaboration:()=>{`collaboration`in a.storage&&typeof a.storage.collaboration==`object`&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{Fw(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=Fw(t,a.schema,{parseOptions:s,errorOnInvalidContent:n.errorOnInvalidContent??a.options.enableContentCheck})}catch(e){return o(e),!1}let{from:c,to:l}=typeof e==`number`?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0,f=Iw(i)?i.content:[i];if(f.forEach(e=>{e.check(),u=u?e.isText&&e.marks.length===0:!1,d=d?e.isBlock:!1}),c===l&&d){let{parent:e}=r.doc.resolve(c);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(--c,l+=1)}let p;if(u)p=Array.isArray(t)?t.map(e=>e.text||``).join(``):Pw(t)?f.map(e=>e.text??``).join(``):typeof t==`object`&&t&&t.text?t.text:t,r.insertText(p,c,l);else{p=Vt.from(f);let e=r.doc.resolve(c),t=e.node(),n=e.parentOffset===0,i=t.isText||t.isTextblock,a=t.content.size>0;n&&i&&a&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,l,f)}n.updateSelection&&Lw(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:p}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:p})}return!0};function zw(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var Bw=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{pos:i,attrs:a,content:o,updateSelection:s=!0}=e,c;c=typeof i==`number`?t.doc.resolve(i):i||t.selection.$from;let l=zw(c.parent.contentMatchAt(c.index()));if(!l)return!1;let u=Object.keys(l.spec.attrs||{}),d=a?Object.fromEntries(Object.entries(a).filter(([e])=>u.includes(e))):{},f;if(o){let e=Fw(o,r.schema);f=l.createAndFill(d,e)}else f=l.createAndFill(d);return f?(n&&(t.insert(c.pos,f),s&&Lw(t,t.steps.length-1,-1)),!0):!1},Vw=()=>({state:e,dispatch:t})=>nn(e,t),Hw=()=>({state:e,dispatch:t})=>St(e,t),Uw=()=>({state:e,dispatch:t})=>an(e,t),Ww=()=>({state:e,dispatch:t})=>rn(e,t),Gw=(e,t)=>{let n=e.resolve(t),r=n.nodeBefore,i=n.nodeAfter;return!r||!i?!1:!r.type.spec.isolating&&!i.type.spec.isolating},Kw=()=>({state:e,dispatch:t,tr:n})=>{try{let r=lt(e.doc,e.selection.$from.pos,-1);return r==null||!Gw(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},qw=()=>({state:e,dispatch:t,tr:n})=>{try{let r=lt(e.doc,e.selection.$from.pos,1);return r==null||!Gw(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},Jw=()=>({state:e,dispatch:t})=>dt(e,t),Yw=()=>({state:e,dispatch:t})=>Ye(e,t);function Xw(){return typeof navigator<`u`&&/Mac/.test(navigator.platform)}function Zw(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n===`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e+=1){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))Dw()||Xw()?o=!0:i=!0;else throw Error(`Unrecognized modifier name: ${n}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var Qw=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=Zw(e).split(/-(?!$)/),o=a.find(e=>![`Alt`,`Ctrl`,`Meta`,`Shift`].includes(e)),s=new KeyboardEvent(`keydown`,{key:o===`Space`?` `:o,altKey:a.includes(`Alt`),ctrlKey:a.includes(`Ctrl`),metaKey:a.includes(`Meta`),shiftKey:a.includes(`Shift`),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp(`handleKeyDown`,e=>e(n,s))})?.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function $w(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?ow(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize);s.push({node:e,from:n,to:a})});let c=i-r,l=s.filter(e=>!o||o.name===e.node.type.name).filter(e=>gw(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var eT=(e,t={})=>({state:n,dispatch:r})=>$w(n,ow(e,n.schema),t)?ft(n,r):!1,tT=()=>({state:e,dispatch:t})=>Ze(e,t),nT=e=>({state:t,dispatch:n})=>qC(ow(e,t.schema))(t,n),rT=()=>({state:e,dispatch:t})=>Xe(e,t);function iT(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function aT(e,t){let n=typeof t==`string`?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var oT=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=iT(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=ow(e,r.schema)),s===`mark`&&(o=bw(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,aT(e.attrs,t))),o&&e.marks.length&&e.marks.forEach(a=>{o===a.type&&(c=!0,i&&n.addMark(r,r+e.nodeSize,o.create(aT(a.attrs,t))))})})}),c},sT=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),cT=()=>({tr:e,dispatch:t})=>{if(t){let t=new Qe(e.doc);e.setSelection(t)}return!0},lT=()=>({state:e,dispatch:t})=>st(e,t),uT=()=>({state:e,dispatch:t})=>Ft(e,t),dT=()=>({state:e,dispatch:t})=>qe(e,t),fT=()=>({state:e,dispatch:t})=>Pt(e,t),pT=()=>({state:e,dispatch:t})=>at(e,t);function mT(e,t,n={},r={}){return Fw(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var hT=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(r.preserveWhitespace!==`full`){let s=mT(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});if(o){let e=Iw(s)?s.content:[s];a.replaceWith(0,c.content.size,e).setMeta(`preventUpdate`,!n)}return!0}return o&&a.setMeta(`preventUpdate`,!n),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function gT(e,t){let n=bw(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{o.push(...e.marks)});let s=o.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function _T(e,t){let n=new Kt(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function vT(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function yT(e,t){for(let n=e.depth;n>0;--n){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function bT(e){return t=>yT(t.$from,e)}function xT(e,t,n){return e.config[t]===void 0&&e.parent?xT(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?xT(e.parent,t,n):null}):e.config[t]}function ST(e){return e.map(e=>{let t=xT(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...ST(t())]:e}).flat(10)}function CT(e,t){let n=Qt.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}function wT(e,t){let n=new Map;for(let t of e){let e=n.get(t.type)??new Map;e.set(t.name,t),n.set(t.type,e)}return[...Object.values(t.nodes),...Object.values(t.marks)].flatMap(e=>Object.entries(e.spec.attrs??{}).map(([t,r])=>{let i=n.get(e.name)?.get(t),a=Object.hasOwn(r,`default`);return{type:e.name,name:t,attribute:{rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,...i?.attribute,default:r.default,isRequired:!a,validate:r.validate}}}))}var TT={content:`string`,marks:`string`,group:`string`,inline:`boolean`,atom:`boolean`,selectable:`boolean`,draggable:`boolean`,code:`boolean`,whitespace:[`pre`,`normal`],definingAsContext:`boolean`,definingForContent:`boolean`,defining:`boolean`,isolating:`boolean`,linebreakReplacement:`boolean`},ET={inclusive:`boolean`,excludes:`string`,group:`string`,spanning:`boolean`,code:`boolean`};function DT(e,t,n){return Object.fromEntries(Object.entries(t).flatMap(([t,r])=>{let i=e[t];if(i===void 0)return[];if(!(typeof r==`string`?typeof i===r:typeof i==`string`&&r.includes(i)))throw RangeError(`Invalid schemaSpec field '${n}.${t}'`);return[[t,i]]}))}function OT(e,t,n,r){return{...Object.fromEntries(Object.entries(t).filter(([e])=>e!==`attrs`&&!Object.hasOwn(r,e))),...DT(n,r,e),attrs:n.attrs}}function kT(e,t,n){for(let r of Object.keys(t))if(!Object.hasOwn(e,r))throw RangeError(`schemaSpec requires a local ${n} extension named '${r}'`);for(let r of Object.keys(e))if(!Object.hasOwn(t,r))throw RangeError(`Local ${n} extension '${r}' is not in schemaSpec`)}function AT(e,t){kT(e.nodes,t.nodes,`node`),kT(e.marks,t.marks,`mark`);let n=t.spec.nodes,r=t.spec.marks;return t.spec.nodes.forEach((t,r)=>{n=n.update(t,OT(t,e.nodes[t],r,TT))}),t.spec.marks.forEach((t,n)=>{r=r.update(t,OT(t,e.marks[t],n,ET))}),{topNode:t.topNodeType.name,nodes:n,marks:r}}function jT(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}function MT(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function NT(e){let t=[],{nodeExtensions:n,markExtensions:r}=MT(e),i=[...n,...r],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=n.filter(e=>e.name!==`text`).map(e=>e.name),s=r.map(e=>e.name),c=[...o,...s];return e.forEach(e=>{let n=xT(e,`addGlobalAttributes`,{name:e.name,options:e.options,storage:e.storage,extensions:i});n&&n().forEach(e=>{let n;n=Array.isArray(e.types)?e.types:e.types===`*`?c:e.types===`nodes`?o:e.types===`marks`?s:[],n.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),i.forEach(e=>{let n=xT(e,`addAttributes`,{name:e.name,options:e.options,storage:e.storage});if(!n)return;let r=n();Object.entries(r).forEach(([n,r])=>{let i={...a,...r};typeof i?.default==`function`&&(i.default=i.default()),i?.isRequired&&i?.default===void 0&&delete i.default,t.push({type:e.name,name:n,attribute:i})})}),t}function PT(e){return typeof e==`function`}function FT(e,t=void 0,...n){return PT(e)?t?e.bind(t)(...n):e(...n):e}function IT(e={}){return Object.keys(e).length===0&&e.constructor===Object}function LT(e){let t=[],n=``,r=!1,i=!1,a=0,o=e.length;for(let s=0;s<o;s+=1){let o=e[s];if(o===`'`&&!i)r=!r,n+=o;else if(o===`"`&&!r)i=!i,n+=o;else{if(!r&&!i){if(o===`(`){a+=1,n+=o;continue}if(o===`)`&&a>0){--a,n+=o;continue}if(o===`;`&&a===0){t.push(n),n=``;continue}}n+=o}}return n&&t.push(n),t}function RT(e){let t=[],n=LT(e||``),r=n.length;for(let e=0;e<r;e+=1){let r=n[e],i=r.indexOf(`:`);if(i===-1)continue;let a=r.slice(0,i).trim(),o=r.slice(i+1).trim();a&&o&&t.push([a,o])}return t}function zT(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(e===`__proto__`)Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0});else if(!n[e])n[e]=t;else if(e===`class`){let r=t?String(t).split(` `):[],i=n[e]?n[e].split(` `):[],a=r.filter(e=>!i.includes(e));n[e]=[...i,...a].join(` `)}else if(e===`style`){let r=new Map([...RT(n[e]),...RT(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function BT(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>zT(e,t),{})}function VT(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`||e!==`false`&&e:e}function HT(e,t){return`style`in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;let i=t.reduce((e,t)=>{let r=t.attribute.parseHTML?t.attribute.parseHTML(n):VT(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function UT(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&IT(t)?!1:t!=null))}function WT(e){var t,n;let r={};return!(e!=null&&(t=e.attribute)!=null&&t.isRequired)&&`default`in(e?.attribute||{})&&(r.default=e.attribute.default),(e==null||(n=e.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function GT(e,t,n=NT(e)){let{nodeExtensions:r,markExtensions:i}=MT(e);return{topNode:r.find(e=>xT(e,`topNode`))?.name,nodes:Object.fromEntries(r.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=UT({...e.reduce((e,t)=>{let n=xT(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:FT(xT(r,`content`,a)),marks:FT(xT(r,`marks`,a)),group:FT(xT(r,`group`,a)),inline:FT(xT(r,`inline`,a)),atom:FT(xT(r,`atom`,a)),selectable:FT(xT(r,`selectable`,a)),draggable:FT(xT(r,`draggable`,a)),code:FT(xT(r,`code`,a)),whitespace:FT(xT(r,`whitespace`,a)),linebreakReplacement:FT(xT(r,`linebreakReplacement`,a)),defining:FT(xT(r,`defining`,a)),isolating:FT(xT(r,`isolating`,a)),attrs:Object.fromEntries(i.map(WT))}),s=FT(xT(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>HT(e,i)));let c=xT(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:BT(e,i)}));let l=xT(r,`renderText`,a);return l&&(o.toText=l),[r.name,o]})),marks:Object.fromEntries(i.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=UT({...e.reduce((e,t)=>{let n=xT(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:FT(xT(r,`inclusive`,a)),excludes:FT(xT(r,`excludes`,a)),group:FT(xT(r,`group`,a)),spanning:FT(xT(r,`spanning`,a)),code:FT(xT(r,`code`,a)),attrs:Object.fromEntries(i.map(WT))}),s=FT(xT(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>HT(e,i)));let c=xT(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:BT(e,i)})),[r.name,o]}))}}function KT(e,t,n){if(n===void 0)return new Nt(GT(e,t));let r=jT(e.filter(e=>e.type!==`extension`).map(e=>e.name));if(r.length)throw RangeError(`Duplicate local schema types: ${r.join(`, `)}`);let i=new Nt(n),a=GT(e,t,wT(NT(e),i));return new Nt(AT(a,i))}function qT(e){return e.sort((e,t)=>{let n=xT(e,`priority`)||100,r=xT(t,`priority`)||100;return n>r?-1:+(n<r)})}function JT(e){let t=qT(ST(e)),n=jT(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(`, `)}]. This can lead to issues.`),t}function YT(e,t){return KT(JT(e),t)}function XT(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
|
|
322
|
+
|
|
323
|
+
`,textSerializers:o={}}=n||{},s=``;return e.nodesBetween(r,i,(e,n,c,l)=>{e.isBlock&&n>r&&(s+=a);let u=o?.[e.type.name];if(u)return c&&(s+=u({node:e,pos:n,parent:c,index:l,range:t})),!1;if(e.isText){var d;s+=e==null||(d=e.text)==null?void 0:d.slice(Math.max(r,n)-n,i-n)}}),s}function ZT(e,t){return XT(e,{from:0,to:e.content.size},t)}function QT(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function $T(e,t){let n=ow(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,e=>{a.push(e)});let o=a.reverse().find(e=>e.type.name===n.name);return o?{...o.attrs}:{}}function eE(e,t){let n=iT(typeof t==`string`?t:t.name,e.schema);return n===`node`?$T(e,t):n===`mark`?gT(e,t):{}}function tE(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function nE(e){let t=tE(e);return t.length===1?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function rE(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,i)=>{let a=[];if(e.ranges.length)e.forEach((e,t)=>{a.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(e===void 0||t===void 0)return;a.push({from:e,to:t})}a.forEach(({from:e,to:n})=>{let a=t.slice(i).map(e,-1),o=t.slice(i).map(n),s=t.invert().map(a,-1),c=t.invert().map(o);r.push({oldRange:{from:s,to:c},newRange:{from:a,to:o}})})}),nE(r)}function iE(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=yw(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{e&&e?.nodeSize!==void 0&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}function aE(e,t){return t.nodes[e]||t.marks[e]||null}function oE(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return r?r.attribute.keepOnSplit:!1}))}var sE=(e,t=500)=>{let n=``,r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,i,a)=>{var o;let s=(o=e.type.spec).toText?.call(o,{node:e,pos:t,parent:i,index:a})||e.textContent||`%leaf%`;n+=e.isAtom&&!e.isText?s:s.slice(0,Math.max(0,r-t))}),n};function cE(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?bw(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>gw(e.attrs,n,{strict:!1}));let o=0,s=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(a&&e.inlineContent&&!e.type.allowsMarkType(a))return!1;if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),c=Math.min(i,t+e.nodeSize),l=c-n;o+=l,s.push(...e.marks.map(e=>({mark:e,from:n,to:c})))})}),o===0)return!1;let c=s.filter(e=>!a||a.name===e.mark.type.name).filter(e=>gw(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>!a||e.mark.type!==a&&e.mark.type.excludes(a)).reduce((e,t)=>e+t.to-t.from,0);return(c>0?c+l:c)>=o}function lE(e,t,n={}){if(!t)return $w(e,null,n)||cE(e,null,n);let r=iT(t,e.schema);return r===`node`?$w(e,t,n):r===`mark`&&cE(e,t,n)}function uE(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function dE(e,t){let{nodeExtensions:n}=MT(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=FT(xT(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`&&i.split(` `).includes(`list`)}function fE(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return!/\S/.test(e.text??``)}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(e=>{r!==!1&&(fE(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function pE(e){return e instanceof it}function mE(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.apply==`function`&&typeof t.getMap==`function`&&typeof t.invert==`function`&&typeof t.map==`function`&&typeof t.merge==`function`&&typeof t.toJSON==`function`}function hE(e){if(typeof e!=`object`||!e)return!1;let t=e;if(!mE(t))return!1;let n=t.toJSON();return!(typeof n!=`object`||!n||n.stepType!==`replace`)}var gE=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function _E(e,t){let n=t.mapping.mapResult(e.position);return{position:new gE(n.pos),mapResult:n}}function vE(e){return new gE(e)}function yE(e,t,n){let r=e.state.doc.content.size,i=ww(t,0,r),a=ww(n,0,r),o=e.coordsAtPos(i),s=e.coordsAtPos(a,-1),c=Math.min(o.top,s.top),l=Math.max(o.bottom,s.bottom),u=Math.min(o.left,s.left),d=Math.max(o.right,s.right),f={top:c,bottom:l,left:u,right:d,width:d-u,height:l-c,x:u,y:c};return{...f,toJSON:()=>f}}function bE(e,t,n){let{selection:r}=t,i=null;if(Cw(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}let{ranges:a}=r;return a.some(({$from:t,$to:r})=>{let i=t.depth===0&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&a}return!i}),i})}var xE=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=bw(e,r.schema);if(i){if(o){let e=gT(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{let i=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(i,a,(e,r)=>{let o=Math.max(r,i),s=Math.min(r+e.nodeSize,a);e.marks.find(e=>e.type===c)?e.marks.forEach(e=>{c===e.type&&n.addMark(o,s,c.create({...e.attrs,...t}))}):n.addMark(o,s,c.create(t))})})}return bE(r,n,c)},SE=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),CE=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=ow(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>ot(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>ot(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},wE=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=ww(e,0,n.content.size),i=it.create(n,r);t.setSelection(i)}return!0},TE=(e,t)=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=r,o,s;return typeof t==`number`?(o=t,s=t):t&&`from`in t&&`to`in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},EE=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=et.atStart(n).from,o=et.atEnd(n).to,s=ww(r,a,o),c=ww(i,a,o),l=et.create(n,s,c);t.setSelection(l)}return!0},DE=e=>({state:t,dispatch:n})=>XC(ow(e,t.schema))(t,n);function OE(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>t?.includes(e.type.name));e.tr.ensureMarks(r)}}var kE=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{let{selection:a,doc:o}=t,{$from:s,$to:c}=a,l=i.extensionManager.attributes,u=oE(l,s.node().type.name,s.node().attrs);if(a instanceof it&&a.node.isBlock)return!s.parentOffset||!_t(o,s.pos)?!1:(r&&(e&&OE(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;let d=c.parentOffset===c.parent.content.size,f=s.depth===0?void 0:zw(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=a instanceof et&&!a.empty?tt.create({doc:t.doc,selection:a}).tr.deleteSelection():null,h=m?m.doc:t.doc,g=m?m.mapping.map(s.pos):s.pos,_=_t(h,g,1,p);if(!p&&!_&&_t(h,g,1,f?[{type:f}]:void 0)&&(_=!0,p=f?[{type:f,attrs:u}]:void 0),r){if(_){let e=t.steps.length;if(a instanceof et&&t.deleteSelection(),t.split(t.mapping.slice(e).map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f){let n=t.mapping.slice(e).map(s.before()),r=t.doc.resolve(n);s.node(-1).canReplaceWith(r.index(),r.index()+1,f)&&t.setNodeMarkup(t.mapping.slice(e).map(s.before()),f)}}e&&OE(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return _},AE=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=ow(e,r.schema),{$from:s,$to:c}=r.selection,l=r.selection.node;if(l&&l.isBlock||s.depth<2||!s.sameParent(c))return!1;let u=s.node(-1);if(u.type!==o)return!1;let d=a.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(i){let e=Vt.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=Vt.from(s.node(t).copy(e));let i=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,a={...oE(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(Vt.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new xt(e,4-r,0));let u=-1;n.doc.nodesBetween(l,n.doc.content.size,(e,t)=>{if(u>-1)return!1;e.isTextblock&&e.content.size===0&&(u=t+1)}),u>-1&&n.setSelection(et.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...oE(d,u.type.name,u.attrs),...t},m={...oE(d,s.node().type.name,s.node().attrs),...t},h=s.parentOffset===0&&s.index(-1)===0,g=s.before(-1);n.delete(s.pos,c.pos);let _=h?u.attrs:p,v=f?[{type:o,attrs:_},{type:f,attrs:m}]:[{type:o,attrs:_}];if(!_t(n.doc,s.pos,2))return!1;if(i){let{selection:e,storedMarks:t}=r,{splittableMarks:o}=a.extensionManager,c=t||e.$to.parentOffset&&e.$from.marks();if(n.split(s.pos,2,v).scrollIntoView(),h&&n.setNodeMarkup(g,void 0,p),!c||!i)return!0;let l=c.filter(e=>o.includes(e.type.name));n.ensureMarks(l)}return!0};function jE(e,t,n){if(!e.validContent(t))return null;try{return e.create(n,t)}catch{return null}}function ME(e,t){if(e.pendingContent.length===0)return!0;let n=jE(t,Vt.from(e.pendingContent));return n?(e.items.push(n),e.pendingContent=[],!0):!1}function NE(e,t,n){return n.validContent(Vt.from([...t.pendingContent,e]))?(t.pendingContent.push(e),!0):!ME(t,n)||!n.validContent(Vt.from(e))?!1:(t.pendingContent.push(e),!0)}function PE(e,t,n,r){let i=r(e,n);if(!i)return!1;let a=jE(n.listType,Vt.from(i),e.attrs);return a?n.itemType.validContent(Vt.from([...t.pendingContent,a]))?(t.pendingContent.push(a),!0):ME(t,n.itemType)?(t.items.push(...i),!0):!1:!1}function FE(e,t,n){let r={items:[],pendingContent:[]};for(let i=0;i<e.childCount;i+=1){let a=e.child(i);if(!(t.isListNode(a)?PE(a,r,t,n):NE(a,r,t.itemType)))return null}return ME(r,t.itemType)?r.items:null}function IE(e,t){let n=[];for(let r=0;r<e.childCount;r+=1){let i=FE(e.child(r),t,IE);if(!i)return null;n.push(...i)}return n}function LE(e,t){let n=null;return e.descendants((e,r)=>e!==t||(n=r,!1)),n}function RE(e){return!e||e===`1`?null:e}function zE(e,t){return RE(e)===RE(t)}var BE=(e,t)=>{let n=bT(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&nt(e.doc,n.pos))||!zE(n.node.attrs.type,i?.attrs.type)||e.join(n.pos),!0},VE=(e,t)=>{let n=bT(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&nt(e.doc,r))||!zE(n.node.attrs.type,i?.attrs.type)||e.join(r),!0};function HE(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return et.between(r,i)}var UE=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:c,commands:l,can:u})=>{let{extensions:d,splittableMarks:f}=i.extensionManager,p=ow(e,o.schema),m=ow(t,o.schema),{selection:h,storedMarks:g}=o,{$from:_,$to:v}=h,y=_.blockRange(v),b=g||h.$to.parentOffset&&h.$from.marks();if(!y)return!1;let x=bT(e=>dE(e.type.name,d))(h),S=h.from===0&&h.to===o.doc.content.size,C=o.doc.content.content,w=C.length===1?C[0]:null,T=S&&w&&dE(w.type.name,d)?{node:w,pos:0,depth:0}:null,E=x??T,D=!!x&&y.depth>=1&&y.depth-x.depth<=1,O=!!T;if((D||O)&&E){if(E.node.type===p)return S&&O?c().command(({tr:e,dispatch:t})=>{let n=HE(e);return n?(e.setSelection(n),t&&t(e),!0):!1}).liftListItem(m).run():l.liftListItem(m);if(dE(E.node.type.name,d)&&p.validContent(E.node.content))return c().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>BE(a,p)).command(()=>VE(a,p)).run();if(dE(E.node.type.name,d)){let e=E.node.firstChild?.type;if(e&&e!==m){let e=IE(E.node,{listType:p,itemType:m,isListNode:e=>dE(e.type.name,d)}),t=e?Vt.from(e):null;return!t||!p.validContent(t)?!1:c().command(()=>{let{$anchor:e,$head:n}=a.selection,i=e.parent,o=n.parent,s=e.parentOffset,c=n.parentOffset,l;try{l=p.create(r,t)}catch{return!1}if(a.replaceWith(E.pos,E.pos+E.node.nodeSize,l),i.inlineContent&&o.inlineContent){let e=LE(l,i),t=LE(l,o);if(e!==null&&t!==null){let n=E.pos+e+2+s,r=E.pos+t+2+c;a.setSelection(et.create(a.doc,n,r))}}return!0}).command(()=>BE(a,p)).command(()=>VE(a,p)).run()}}}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>BE(a,p)).command(()=>VE(a,p)).run():c().command(()=>{let e=u().wrapInList(p,r),t=b.filter(e=>f.includes(e.type.name));return a.ensureMarks(t),e?!0:l.clearNodes()}).wrapInList(p,r).command(()=>BE(a,p)).command(()=>VE(a,p)).run()},WE=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=bw(e,r.schema);return cE(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},GE=(e,t,n={})=>({state:r,commands:i})=>{let a=ow(e,r.schema),o=ow(t,r.schema),s=$w(r,a,n),c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),s?i.setNode(o,c):i.setNode(a,{...c,...n})},KE=(e,t={})=>({state:n,commands:r})=>{let i=ow(e,n.schema);return $w(n,i,t)?r.lift(i):r.wrapIn(i,t)},qE=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i=n[r],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let t=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;--e)t.step(n.steps[e].invert(n.docs[e]));if(a.text){let n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},JE=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{ignoreClearable:i=!1}=e,{selection:a}=t,{empty:o,ranges:s}=a;if(o)return!0;let{nonClearableMarks:c}=r.extensionManager;if(n){let e=Object.values(r.schema.marks).filter(e=>i||!c.includes(e.name));s.forEach(n=>{for(let r of e)t.removeMark(n.$from.pos,n.$to.pos,r)})}return!0},YE=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=bw(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=yw(c,s,c.marks().find(e=>e.type===s)?.attrs);r&&(e=r.from,t=r.to),n.removeMark(e,t,s)}else u.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,s)});return n.removeStoredMark(s),!0},XE=e=>({tr:t,state:n,dispatch:r})=>{let{selection:i}=n,a,o;return typeof e==`number`?(a=e,o=e):e&&`from`in e&&`to`in e?(a=e.from,o=e.to):(a=i.from,o=i.to),r&&t.doc.nodesBetween(a,o,(e,n)=>{if(e.isText)return;let r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},ZE=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=iT(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=ow(e,r.schema)),s===`mark`&&(o=bw(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{let s=e.$from.pos,l=e.$to.pos,u,d,f,p;n.selection.empty?r.doc.nodesBetween(s,l,(e,t)=>{a&&a===e.type&&(c=!0,f=Math.max(t,s),p=Math.min(t+e.nodeSize,l),u=t,d=e)}):r.doc.nodesBetween(s,l,(e,r)=>{r<s&&a&&a===e.type&&(c=!0,f=Math.max(r,s),p=Math.min(r+e.nodeSize,l),u=r,d=e),r>=s&&r<=l&&(a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type&&(c=!0,i)){let i=Math.max(r,s),c=Math.min(r+e.nodeSize,l);n.addMark(i,c,o.create({...a.attrs,...t}))}}))}),d&&(u!==void 0&&i&&n.setNodeMarkup(u,void 0,{...d.attrs,...t}),o&&d.marks.length&&d.marks.forEach(e=>{o===e.type&&i&&n.addMark(f,p,o.create({...e.attrs,...t}))}))}),c},QE=new on(`__tiptap_decorations__`),$E=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(QE,{type:`force`,name:e}),!0),eD=(e,t={})=>({state:n,dispatch:r})=>{let i=ow(e,n.schema);return ct(i,t)(n,r)},tD=(e,t={})=>({state:n,dispatch:r})=>WC(ow(e,n.schema),t)(n,r),nD=UC({blur:()=>$C,clearContent:()=>ew,clearNodes:()=>tw,command:()=>nw,createParagraphNear:()=>rw,cut:()=>iw,deleteCurrentNode:()=>aw,deleteNode:()=>sw,deleteRange:()=>cw,deleteSelection:()=>fw,enter:()=>pw,exitCode:()=>mw,extendMarkRange:()=>xw,first:()=>Sw,focus:()=>kw,forEach:()=>Aw,insertContent:()=>jw,insertContentAt:()=>Rw,insertDefaultBlock:()=>Bw,joinBackward:()=>Uw,joinDown:()=>Hw,joinForward:()=>Ww,joinItemBackward:()=>Kw,joinItemForward:()=>qw,joinTextblockBackward:()=>Jw,joinTextblockForward:()=>Yw,joinUp:()=>Vw,keyboardShortcut:()=>Qw,lift:()=>eT,liftEmptyBlock:()=>tT,liftListItem:()=>nT,newlineInCode:()=>rT,resetAttributes:()=>oT,scrollIntoView:()=>sT,selectAll:()=>cT,selectNodeBackward:()=>lT,selectNodeForward:()=>uT,selectParentNode:()=>dT,selectTextblockEnd:()=>fT,selectTextblockStart:()=>pT,setContent:()=>hT,setMark:()=>xE,setMeta:()=>SE,setNode:()=>CE,setNodeSelection:()=>wE,setTextDirection:()=>TE,setTextSelection:()=>EE,sinkListItem:()=>DE,splitBlock:()=>kE,splitListItem:()=>AE,toggleList:()=>UE,toggleMark:()=>WE,toggleNode:()=>GE,toggleWrap:()=>KE,undoInputRule:()=>qE,unsetAllMarks:()=>JE,unsetMark:()=>YE,unsetTextDirection:()=>XE,updateAttributes:()=>ZE,updateDecorations:()=>$E,wrapIn:()=>eD,wrapInList:()=>tD}),rD=new WeakMap;function iD(e,t){rD.set(e,(rD.get(e)??0)+1);try{return t()}finally{let t=(rD.get(e)??1)-1;t>0?rD.set(e,t):rD.delete(e)}}function aD(e){return rD.has(e)}var oD=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){let n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},sD=typeof process<`u`&&!1;function cD(e){return e.kind===`widget`}function lD(e,t){let n=[],r=new Set;for(let i of e)i.kind===`widget`&&cD(i)&&r.add(i.key),n.push(i.toPMDecoration(t));return{decorations:n,widgetKeys:r}}function uD(e,t,n){let{decorations:r,widgetKeys:i}=lD(t,n);return{set:Rt.create(e,r),widgetKeys:i}}function dD({position:e,from:t,to:n,docSize:r}){return e<t?!1:e<n||e===n&&n===r}function fD({decorations:e,from:t,to:n,docSize:r,extensionName:i,warnedExtensions:a}){return e.filter(e=>dD({position:e.anchor,from:t,to:n,docSize:r})?!0:(e.anchor===n||a.has(i)||(a.add(i),console.warn(`[tiptap warn]: Extension "${i}" returned a decoration outside the requested range [${t}, ${n}). It was ignored.`)),!1))}function pD(e){let t=e.spec?.key;return typeof t==`string`?t:void 0}function mD(e){let t=new Map,n=new Map;for(let r of e.find()){let e=pD(r);if(!e)continue;let i=r.spec.extensionName??`unknown`,a=t.get(e)??new Set;a.add(i),t.set(e,a),n.set(e,(n.get(e)??0)+1)}return Array.from(t,([e,t])=>({key:e,extensions:t})).filter(({key:e})=>(n.get(e)??0)>1)}function hD(e){return e.jsonID===`attr`}function gD(e){let t=!1;if(e.getMap().forEach(()=>{t=!0}),t||hD(e))return!0;let n=e;return typeof n.from==`number`&&typeof n.to==`number`}function _D(e,t){let n=null,r=0,i=0;for(let a=0;a<e.childCount&&!(i>t.to);a+=1){let o=i+e.child(a).nodeSize;o>=t.from&&(n===null&&(n=i),r=o),i=o}return n===null?null:{from:n,to:r}}function vD(e,t){if(e.steps.some(e=>!gD(e)))return{type:`full`};let n=rE(e).map(({newRange:e})=>e);e.steps.forEach((t,r)=>{if(!hD(t))return;let i=e.mapping.slice(r);n.push({from:i.map(t.pos,-1),to:i.map(t.pos+1)})});let r=[];for(let e of n){let n=_D(t,e);n&&r.push(n)}r.sort((e,t)=>e.from-t.from);let i=[];for(let e of r){let t=i[i.length-1];t&&e.from<=t.to?t.to=Math.max(t.to,e.to):i.push({...e})}return{type:`ranges`,ranges:i}}function yD(e,t,n,r){return e.map(t,n,{onRemove:e=>{let t=e?.key;typeof t==`string`&&r.delete(t)}})}function bD(e,t,n){let r=t.decorationSetsByExtension[e]??Rt.empty,i=new Set(t.widgetKeysByExtension[e]??[]);return{set:yD(r,n.mapping,n.doc,i),widgetKeys:i}}function xD(e,t){let n=Object.values(t).flatMap(e=>e.find());return Rt.create(e,n)}function SD(e){let t=new Set;for(let n of Object.values(e))for(let e of n)t.add(e);return t}function CD(e,t){switch(t.update??`document`){case`document`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" provides createInRange() but does not use the "changedRanges" decoration update strategy.`);return;case`changedRanges`:if(!t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "changedRanges" decoration update strategy but does not provide createInRange().`);return;case`manual`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "manual" decoration update strategy, which is not compatible with createInRange(). createInRange() requires the "changedRanges" strategy.`);if(t.shouldUpdate)throw Error(`[tiptap error]: Extension "${e}" cannot combine the "manual" decoration update strategy with shouldUpdate().`);return;default:throw Error(`[tiptap error]: Extension "${e}" uses an unknown decoration update strategy. Expected "document", "changedRanges", or "manual".`)}}function wD(e,t,n){return n?!0:e.update===`manual`?!1:e.shouldUpdate?e.shouldUpdate(t):t.tr.docChanged}var TD=new Set,ED=class{constructor(e){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:e})=>{let t=QE.getState(e);t&&this.warnDuplicateWidgetKeys(t)},this.editor=e.editor,this.entries=this.resolveEntries(e.entries),this.entries.forEach(({name:e,spec:t})=>CD(e,t)),this.plugin=this.entries.length>0?this.createPlugin():null,this.editor.on(`beforeTransaction`,this.handleBeforeTransaction)}destroy(){this.editor.off(`beforeTransaction`,this.handleBeforeTransaction)}liveWidgetKeys(){return QE.getState(this.editor.state)?.widgetKeys??TD}get mountedView(){return this.editor.isDestroyed?null:this.editor.view}resolveEntries(e){let t=[];for(let{name:n,addDecorations:r}of e){let e=r();e&&t.push({name:n,spec:e})}return t}createPlugin(){let{editor:e,entries:t}=this;return new ut({key:QE,state:{init:(e,n)=>{let r={},i={};for(let{name:e,spec:a}of t){let{set:t,widgetKeys:o}=this.buildFullSet(e,a,n);r[e]=t,i[e]=o}let a={decorationSetsByExtension:r,widgetKeysByExtension:i,mergedDecorationSet:this.buildMergedSet(n.doc,r),widgetKeys:SD(i)};return this.warnDuplicateWidgetKeys(a),a},apply:(n,r,i,a)=>{let o=n.getMeta(QE),s=o?.type===`force`&&!o.name,c=o?.type===`force`?o.name:void 0,l={},u={},d=new Set;return iD(e,()=>{for(let{name:o,spec:f}of t){let t=s||c===o;if(!wD(f,{editor:e,tr:n,oldState:i,newState:a},t)){let e=bD(o,r,n);l[o]=e.set,u[o]=e.widgetKeys}else if(f.update===`changedRanges`&&n.docChanged&&!t){let e=this.applyChangedRangesRecompute(o,f,r,n,a);l[o]=e.set,u[o]=e.widgetKeys,d.add(o)}else{let{set:e,widgetKeys:t}=this.buildFullSet(o,f,a);l[o]=e,u[o]=t,d.add(o)}}}),d.size===0&&!n.docChanged?r:{decorationSetsByExtension:l,widgetKeysByExtension:u,mergedDecorationSet:this.mergeAfterApply({entries:t,previous:r,tr:n,decorationSetsByExtension:l,recomputedNames:d}),widgetKeys:SD(u)}}},props:{decorations(e){return QE.getState(e)?.mergedDecorationSet??Rt.empty}}})}applyChangedRangesRecompute(e,t,n,r,i){let a=vD(r,i.doc);return a.type===`full`?this.buildFullSet(e,t,i):this.rebuildRanges(e,t,n,r,i,a.ranges)}rebuildRanges(e,t,n,r,i,a){let o=n.decorationSetsByExtension[e]??Rt.empty,s=new Set(n.widgetKeysByExtension[e]??[]),c=yD(o,r.mapping,r.doc,s),l=i.doc.content.size;for(let{from:n,to:r}of a){let a=c.find(n,r).filter(e=>dD({position:e.from,from:n,to:r,docSize:l}));for(let e of a){let t=pD(e);t&&s.delete(t)}c=c.remove(a);let{decorations:o,widgetKeys:u}=lD(fD({decorations:this.runCreate(e,`createInRange`,()=>t.createInRange({editor:this.editor,state:i,view:this.mountedView,from:n,to:r})),from:n,to:r,docSize:l,extensionName:e,warnedExtensions:this.warnedOutOfRangeExtensions}),e);c=c.add(i.doc,o);for(let e of u)s.add(e)}return{set:c,widgetKeys:s}}buildFullSet(e,t,n){let r=this.runCreate(e,`create`,()=>t.create({editor:this.editor,state:n,view:this.mountedView}));return uD(n.doc,r,e)}runCreate(e,t,n){try{return n()}catch(n){return console.error(`[tiptap error]: Extension "${e}" threw in \`addDecorations().${t}()\`. Its decorations were dropped for this update.`,n),[]}}warnDuplicateWidgetKeys(e){if(!sD)return;if(e.widgetKeys.size===0){this.warnedWidgetKeys.clear();return}let t=mD(e.mergedDecorationSet),n=new Set(t.map(({key:e})=>e));for(let{key:e,extensions:n}of t){if(this.warnedWidgetKeys.has(e))continue;let t=Array.from(n).map(e=>`"${e}"`).join(`, `);console.warn(`[tiptap warn]: Duplicate widget decoration key "${e}" in extension${n.size===1?``:`s`} ${t}. Widget decoration keys must be globally unique, otherwise ProseMirror misplaces the widget DOM. Use a stable, unique key (e.g. \`comment-\${id}\`).`)}this.warnedWidgetKeys=n}buildMergedSet(e,t){let n=Object.keys(t);return n.length===1?t[n[0]]:xD(e,t)}mergeAfterApply({entries:e,previous:t,tr:n,decorationSetsByExtension:r,recomputedNames:i}){return e.length===1?r[e[0].name]:i.size===0?t.mergedDecorationSet.map(n.mapping,n.doc):xD(n.doc,r)}};function DD(e,t,n){let r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:``}]`);if(r!==null)return r;let i=document.createElement(`style`);return t&&i.setAttribute(`nonce`,t),i.setAttribute(`data-tiptap-style${n?`-${n}`:``}`,``),i.innerHTML=e,document.getElementsByTagName(`head`)[0].appendChild(i),i}function OD(e){return typeof e==`number`}function kD(e){return Object.prototype.toString.call(e).slice(8,-1)}function AD(e){return kD(e)===`Object`&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function jD(e,t){let n={...e};return AD(e)&&AD(t)&&Object.keys(t).forEach(r=>{AD(t[r])&&AD(e[r])?n[r]=jD(e[r],t[r]):n[r]=t[r]}),n}function MD(e,t,n={}){let{state:r}=t,{doc:i,tr:a}=r,o=e;i.descendants((t,r)=>{let i=a.mapping.map(r),s=a.mapping.map(r)+t.nodeSize,c=null;if(t.marks.forEach(e=>{if(e!==o)return!1;c=e}),!c)return;let l=!1;if(Object.keys(n).forEach(e=>{n[e]!==c.attrs[e]&&(l=!0)}),l){let t=e.type.create({...e.attrs,...n});a.removeMark(i,s,e.type),a.addMark(i,s,t)}}),a.docChanged&&t.view.dispatch(a)}var ND=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},PD=(e,t)=>{if(hw(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn(`[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".`),r.push(n.replaceWith)),r};function FD(e){let{editor:t,from:n,to:r,text:i,insertText:a}=e;if(!a)return{inputTransaction:null,tr:t.view.state.tr};let o=t.view.state.tr.insertText(i,n,r);return{inputTransaction:o,tr:tt.create({doc:o.doc,selection:o.selection,storedMarks:o.storedMarks}).tr}}function ID(e){let{editor:t,from:n,to:r,text:i,rule:a,match:o,plugin:s,insertText:c}=e,{view:l}=t,{inputTransaction:u,tr:d}=FD({editor:t,from:n,to:r,text:i,insertText:c}),f=u?n+i.length:r,p=ZC({state:l.state,transaction:d}),m={from:n-(o[0].length-i.length),to:f},{commands:h,chain:g,can:_}=new QC({editor:t,state:p});return a.handler({state:p,range:m,match:o,commands:h,chain:g,can:_})===null||!d.steps.length?!1:(u&&(l.dispatch(u),!l.state.doc.eq(u.doc))||(Yt(d),d.setMeta(`inputRule`,!0),a.undoable&&d.setMeta(s,{transform:d,from:n,to:f,text:i}),l.dispatch(d)),!0)}function LD(e,t,n){let r=t[0].length-n.length;if(r<=0)return!0;let i=e.parentOffset-r;return i>=0&&e.parent.textBetween(i,e.parentOffset)===t[0].slice(0,r)}function RD(e){let{editor:t,from:n,to:r,text:i,rules:a,plugin:o,insertText:s}=e,{view:c}=t;if(c.composing)return!1;let l=c.state.doc.resolve(n);if(l.parent.type.spec.code||(l.nodeBefore||l.nodeAfter)?.marks.find(e=>e.type.spec.code))return!1;let u=sE(l)+i;for(let e of a){let a=PD(u,e.find);if(a&&LD(l,a,i)&&ID({editor:t,from:n,to:r,text:i,rule:e,match:a,plugin:o,insertText:s}))return!0}return!1}function zD(e){let{editor:t,rules:n}=e,r=new ut({state:{init(){return null},apply(e,i,a){let o=e.getMeta(r);if(o)return o;let s=e.getMeta(`applyInputRules`);return s&&setTimeout(()=>{let{text:e}=s;e=typeof e==`string`?e:CT(Vt.from(e),a.schema);let{from:i}=s,o=i+e.length;RD({editor:t,from:i,to:o,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput(e,i,a,o){return RD({editor:t,from:i,to:a,text:o,rules:n,plugin:r,insertText:!0})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&RD({editor:t,from:i.pos,to:i.pos,text:``,rules:n,plugin:r})}),!1)},handleKeyDown(e,i){if(i.key!==`Enter`)return!1;let{$cursor:a}=e.state.selection;return a?RD({editor:t,from:a.pos,to:a.pos,text:`
|
|
324
|
+
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}var BD=class{constructor(e={}){this.type=`extendable`,this.parent=null,this.child=null,this.name=``,this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...FT(xT(this,`addOptions`,{name:this.name}))}}get storage(){return{...FT(xT(this,`addStorage`,{name:this.name,options:this.options}))}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>jD(this.options,e)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(e={}){let t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name=`name`in e?e.name:t.parent.name,t}},VD=class e extends BD{constructor(...e){super(...e),this.type=`mark`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>e?.type.name===t.name))return!1;let a=i.find(e=>e?.type.name===t.name);return a&&n.removeStoredMark(a),n.insertText(` `,r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},HD=class{constructor(e){this.find=e.find,this.handler=e.handler}},UD=(e,t,n)=>{if(hw(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn(`[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".`),n.push(t.replaceWith)),n}):[]};function WD(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new QC({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{var f;if((f=e.type)!=null&&(f=f.spec)!=null&&f.code||!(e.isText||e.isTextblock||e.isInline))return;let p=e.content?.size??e.nodeSize??0,m=Math.max(r,t),h=Math.min(i,t+p);m>=h||UD(e.isText?e.text||``:e.textBetween(m-t,h-t,void 0,``),a.find,o).forEach(e=>{if(e.index===void 0)return;let t=m+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},f=a.handler({state:n,range:i,match:e,commands:c,chain:l,can:u,pasteEvent:o,dropEvent:s});d.push(f)})}),d.every(e=>e!==null)}var GD=null,KD=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function qD(e){let{editor:t,rules:n}=e,r=null,i=!1,a=!1,o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,s;try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}let c=({state:e,from:n,to:r,rule:i,pasteEvt:a})=>{let c=e.tr,l=ZC({state:e,transaction:c});if(WD({editor:t,state:l,from:Math.max(n-1,0),to:r.b-1,rule:i,pasteEvent:a,dropEvent:s})&&c.steps.length){try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}return o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,c}};return t.on(`destroy`,()=>{GD===t&&(GD=null)}),n.map(e=>new ut({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(GD=t)},i=()=>{GD&&=null};return window.addEventListener(`dragstart`,n),window.addEventListener(`dragend`,i),{destroy(){window.removeEventListener(`dragstart`,n),window.removeEventListener(`dragend`,i)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(a=r===e.dom.parentElement,s=t,!a){let e=GD;e?.isEditable&&setTimeout(()=>{if(e.isDestroyed)return;let t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{let n=t.clipboardData?.getData(`text/html`);return o=t,i=!!n?.includes(`data-pm-slice`),!1}}},appendTransaction:(t,n,r)=>{let s=t[0],l=s.getMeta(`uiEvent`)===`paste`&&!i,u=s.getMeta(`uiEvent`)===`drop`&&!a,d=s.getMeta(`applyPasteRules`),f=!!d;if(!l&&!u&&!f)return;if(f){let{text:t}=d;t=typeof t==`string`?t:CT(Vt.from(t),r.schema);let{from:n}=d,i=n+t.length,a=KD(t);return c({rule:e,state:r,from:n,to:{b:i},pasteEvt:a})}let p=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);if(OD(p)&&m&&p!==m.b)return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}var JD=class{constructor(e,t){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=t,this.baseExtensions=e,this.extensions=JT(e),this.hasSchemaSpec=t.options.schemaSpec!==void 0,this.schema=KT(this.extensions,t,t.options.schemaSpec),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n=xT(t,`addCommands`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:aE(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:e}=this,t=qT([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:aE(t.name,this.schema)},r=[],i=xT(t,`addKeyboardShortcuts`,n),a={};if(t.type===`mark`&&xT(t,`exitable`,n)&&(a.ArrowRight=()=>VD.handleExit({editor:e,mark:t})),i){let t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));a={...a,...t}}let o=Ot(a);r.push(o);let s=xT(t,`addInputRules`,n);if(uE(t,e.options.enableInputRules)&&s){let t=s();if(t&&t.length){let n=zD({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let c=xT(t,`addPasteRules`,n);if(uE(t,e.options.enablePasteRules)&&c){let t=c();if(t&&t.length){let n=qD({editor:e,rules:t});r.push(...n)}}let l=xT(t,`addProseMirrorPlugins`,n);if(l){let e=l();r.push(...e)}return r}),n=this.createDecorationPlugin();return n&&t.push(n),t}createDecorationPlugin(){var e;let{editor:t}=this;(e=this.decorationManager)==null||e.destroy();let n=[];return this.extensions.forEach(e=>{let r=xT(e,`addDecorations`,{name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:t,type:aE(e.name,this.schema)});r&&n.push({name:e.name,addDecorations:r})}),this.decorationManager=new ED({editor:t,entries:n}),this.decorationManager.plugin}get attributes(){let e=NT(this.extensions);return this.hasSchemaSpec?wT(e,this.schema):e}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=MT(this.extensions);return Object.fromEntries(t.filter(e=>!!xT(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=xT(t,`addNodeView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:ow(t.name,this.schema)});if(!r)return[];let i=r();return i?[t.name,(r,a,o,s,c)=>{let l=BT(r,n);return i({node:r,view:a,getPos:o,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:l})}]:[]}))}dispatchTransaction(e){let{editor:t}=this;return qT([...this.extensions].reverse()).reduceRight((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:aE(n.name,this.schema)},i=xT(n,`dispatchTransaction`,r);return i?t=>{i.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){let{editor:t}=this;return qT([...this.extensions]).reduce((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:aE(n.name,this.schema)},i=xT(n,`transformPastedHTML`,r);return i?(t,n)=>{let a=e(t,n);return i.call(r,a)}:e},e||(e=>e))}get markViews(){let{editor:e}=this,{markExtensions:t}=MT(this.extensions);return Object.fromEntries(t.filter(e=>!!xT(e,`addMarkView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=xT(t,`addMarkView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:bw(t.name,this.schema)});return r?[t.name,(i,a,o)=>{let s=BT(i,n);return r()({mark:i,view:a,inline:o,editor:e,extension:t,HTMLAttributes:s,updateAttributes:t=>{MD(i,e,t)}})}]:[]}))}destroy(){var e;(e=this.decorationManager)==null||e.destroy(),this.extensions.forEach(e=>{let t=e;for(;t.parent;){let e=t.parent;e.child===t&&(e.child=null),t=e}}),this.extensions=[],this.baseExtensions=[],this.decorationManager=null,this.schema=null,this.editor=null}setupExtensions(){let e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>[e.name,e.storage])),e.forEach(e=>{let t={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:aE(e.name,this.schema)};e.type===`mark`&&((FT(xT(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name),(FT(xT(e,`clearable`,t))??!0)||this.nonClearableMarks.push(e.name));let n=xT(e,`onBeforeCreate`,t),r=xT(e,`onCreate`,t),i=xT(e,`onUpdate`,t),a=xT(e,`onSelectionUpdate`,t),o=xT(e,`onTransaction`,t),s=xT(e,`onFocus`,t),c=xT(e,`onBlur`,t),l=xT(e,`onDestroy`,t);n&&this.editor.on(`beforeCreate`,n),r&&this.editor.on(`create`,r),i&&this.editor.on(`update`,i),a&&this.editor.on(`selectionUpdate`,a),o&&this.editor.on(`transaction`,o),s&&this.editor.on(`focus`,s),c&&this.editor.on(`blur`,c),l&&this.editor.on(`destroy`,l)})}};JD.resolve=JT,JD.sort=qT,JD.flatten=ST;var YD=class e extends BD{constructor(...e){super(...e),this.type=`extension`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},XD=YD.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new ut({key:new on(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,a=QT(n),{blockSeparator:o}=this.options,s={...o===void 0?{}:{blockSeparator:o},textSerializers:a};return[...i.ranges].sort((e,t)=>e.$from.pos-t.$from.pos).map(({$from:e,$to:t})=>XT(r,{from:e.pos,to:t.pos},s)).join(o??`
|
|
325
|
+
|
|
326
|
+
`)}}})]}}),ZD=YD.create({name:`commands`,addCommands(){return{...nD}}}),QD=YD.create({name:`delete`,onUpdate({transaction:e,appendedTransactions:t}){var n;let r=()=>{var n,r;if(((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null||(r=n.filterTransaction)==null?void 0:r.call(n,e))??e.getMeta(`y-sync$`))return;let i=_T(e.before,[e,...t]);rE(i).forEach(t=>{i.mapping.mapResult(t.oldRange.from).deletedAfter&&i.mapping.mapResult(t.oldRange.to).deletedBefore&&i.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,r)=>{let a=r+n.nodeSize-2,o=t.oldRange.from<=r&&a<=t.oldRange.to;this.editor.emit(`delete`,{type:`node`,node:n,from:r,to:a,newFrom:i.mapping.map(r),newTo:i.mapping.map(a),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:i})})});let a=i.mapping;i.steps.forEach((t,n)=>{if(t instanceof ht){let r=a.slice(n).map(t.from,-1),o=a.slice(n).map(t.to),s=a.invert().map(r,-1),c=a.invert().map(o),l=r>0&&i.doc.nodeAt(r-1)?.marks.some(e=>e.eq(t.mark)),u=i.doc.nodeAt(o)?.marks.some(e=>e.eq(t.mark));this.editor.emit(`delete`,{type:`mark`,mark:t.mark,from:t.from,to:t.to,deletedRange:{from:s,to:c},newRange:{from:r,to:o},partial:!!(u||l),editor:this.editor,transaction:e,combinedTransform:i})}})};((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null?void 0:n.async)??!0?setTimeout(r,0):r()}}),$D=YD.create({name:`drop`,addProseMirrorPlugins(){return[new ut({key:new on(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),eO=YD.create({name:`editable`,addProseMirrorPlugins(){return[new ut({key:new on(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),tO=new on(`focusEvents`),nO=YD.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new ut({key:tO,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta(`focus`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta(`blur`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1}}}})]}}),rO=YD.create({name:`keymap`,addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:a}=n,{pos:o,parent:s}=a,c=a.parent.isTextblock&&o>0?t.doc.resolve(o-1):a,l=c.parent.type.spec.isolating,u=a.pos-a.parentOffset,d=l&&c.parent.childCount===1?u===a.pos:Je.atStart(r).from===o;return!i||!s.type.isTextblock||s.textContent.length||!d||d&&a.parent.type.name===`paragraph`?!1:e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Dw()||Xw()?i:r},addProseMirrorPlugins(){return[new ut({key:new on(`clearDocument`),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta(`composition`)))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta(`preventClearDocument`));if(!r||i)return;let{empty:a,from:o,to:s}=t.selection,c=Je.atStart(t.doc).from,l=Je.atEnd(t.doc).to;if(a||o!==c||s!==l||!fE(n.doc))return;let u=n.tr,d=ZC({state:n,transaction:u}),{commands:f}=new QC({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),iO=YD.create({name:`paste`,addProseMirrorPlugins(){return[new ut({key:new on(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),aO=YD.create({name:`tabindex`,addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new ut({key:new on(`tabindex`),props:{attributes:()=>!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:this.options.value??`0`}}})]}}),oO=YD.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=MT(this.extensions);return[{types:e.filter(e=>e.name!==`text`).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{let t=e.getAttribute(`dir`);return t&&(t===`ltr`||t===`rtl`||t===`auto`)?t:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new ut({key:new on(`textDirection`),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}}),sO=UC({ClipboardTextSerializer:()=>XD,Commands:()=>ZD,Delete:()=>QD,Drop:()=>$D,Editable:()=>eO,FocusEvents:()=>nO,Keymap:()=>rO,Paste:()=>iO,Tabindex:()=>aO,TextDirection:()=>oO,focusEventsPluginKey:()=>tO}),cO=!1;function lO(e){if(cO)return;cO=!0;let t;try{let n=rt.fromJSON(e,{from:0,to:0});if(!hE(n))return;t=n.slice.content}catch{return}t instanceof Vt||console.warn(`[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.`)}var uO=class e{get name(){return this.node.type.name}constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){return this.actualDepth??this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+ +!this.node.isText}get parent(){if(this.depth===0)return null;let t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new e(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new e(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new e(t,this.editor)}get children(){let t=[];return this.node.content.forEach((n,r)=>{let i=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,o=n.isInline,s=this.pos+r+ +!a;if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;let c=this.resolvedPos.doc.resolve(s);if(!i&&!o&&c.depth<=this.depth)return;let l=new e(c,this.editor,i,i||o?n:null);i&&(l.actualDepth=this.depth+1),t.push(l)}),t}get firstChild(){return this.children[0]||null}get lastChild(){let e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e){if(Object.keys(t).length>0){let e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];if(e[i]!==t[i])break}}else n=r}r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;let i=Object.keys(t);return this.children.forEach(a=>{n&&r.length>0||(a.node.type.name===e&&i.every(e=>t[e]===a.node.attrs[e])&&r.push(a),!(n&&r.length>0)&&(r=r.concat(a.querySelectorAll(e,t,n))))}),r}setAttribute(e){let{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}},dO=`.ProseMirror {
|
|
327
|
+
position: relative;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.ProseMirror {
|
|
331
|
+
word-wrap: break-word;
|
|
332
|
+
white-space: pre-wrap;
|
|
333
|
+
white-space: break-spaces;
|
|
334
|
+
-webkit-font-variant-ligatures: none;
|
|
335
|
+
font-variant-ligatures: none;
|
|
336
|
+
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.ProseMirror [contenteditable="false"] {
|
|
340
|
+
white-space: normal;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.ProseMirror [contenteditable="false"] [contenteditable="true"] {
|
|
344
|
+
white-space: pre-wrap;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.ProseMirror pre {
|
|
348
|
+
white-space: pre-wrap;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
img.ProseMirror-separator {
|
|
352
|
+
display: inline !important;
|
|
353
|
+
border: none !important;
|
|
354
|
+
margin: 0 !important;
|
|
355
|
+
width: 0 !important;
|
|
356
|
+
height: 0 !important;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.ProseMirror-gapcursor {
|
|
360
|
+
display: none;
|
|
361
|
+
pointer-events: none;
|
|
362
|
+
position: absolute;
|
|
363
|
+
margin: 0;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.ProseMirror-gapcursor:after {
|
|
367
|
+
content: "";
|
|
368
|
+
display: block;
|
|
369
|
+
position: absolute;
|
|
370
|
+
top: -2px;
|
|
371
|
+
width: 20px;
|
|
372
|
+
border-top: 1px solid black;
|
|
373
|
+
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
@keyframes ProseMirror-cursor-blink {
|
|
377
|
+
to {
|
|
378
|
+
visibility: hidden;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.ProseMirror-hideselection *::selection {
|
|
383
|
+
background: transparent;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.ProseMirror-hideselection *::-moz-selection {
|
|
387
|
+
background: transparent;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.ProseMirror-hideselection * {
|
|
391
|
+
caret-color: transparent;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.ProseMirror-focused .ProseMirror-gapcursor {
|
|
395
|
+
display: block;
|
|
396
|
+
}`,fO=class extends oD{constructor(e={}){super(),this.css=null,this.className=`tiptap`,this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.hasWarnedStaleDecorationRead=!1,this.options={element:typeof document<`u`?document.createElement(`div`):null,content:``,injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:_E,createMappablePosition:vE},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on(`beforeCreate`,this.options.onBeforeCreate),this.emit(`beforeCreate`,{editor:this}),this.on(`mount`,this.options.onMount),this.on(`unmount`,this.options.onUnmount),this.on(`contentError`,this.options.onContentError),this.on(`create`,this.options.onCreate),this.on(`update`,this.options.onUpdate),this.on(`selectionUpdate`,this.options.onSelectionUpdate),this.on(`transaction`,this.options.onTransaction),this.on(`focus`,this.options.onFocus),this.on(`blur`,this.options.onBlur),this.on(`destroy`,this.options.onDestroy),this.on(`drop`,({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on(`paste`,({event:e,slice:t})=>this.options.onPaste(e,t)),this.on(`delete`,this.options.onDelete);let t=this.createDoc();if(!this.editorState){let e=Tw(t,this.options.autofocus);this.editorState=tt.create({doc:t,schema:this.schema,selection:e||void 0})}lO(this.schema),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>`u`)throw Error(`[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.`);this.createView(e),this.emit(`mount`,{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit(`create`,{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){this.editorState=this.editorView.state;let e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove==`function`?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn(`Failed to remove CSS element:`,e)}this.css=null,this.emit(`unmount`,{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager?this.commandManager.chain():QC.createFakeChain()}can(){return this.commandManager?this.commandManager.can():QC.createFallbackCan()}injectCSS(){this.options.injectCSS&&typeof document<`u`&&(this.css=DD(dO,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.editorView&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps({...this.options.editorProps,attributes:this.getEditorViewAttributes()}),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit(`update`,{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if(t===`state`)return this.editorState;if(t in e)return Reflect.get(e,t);throw Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return sD&&!this.hasWarnedStaleDecorationRead&&aD(this)&&(this.hasWarnedStaleDecorationRead=!0,console.warn("[tiptap warn]: `editor.state` was read while decoration `create()` was running. It returns the pre-transaction document. Use the `state` argument passed to `create()` instead. Helpers like `editor.isActive()` read `editor.state` too, so pass `state` to their standalone versions instead of calling them on the editor.")),this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){let n=PT(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;let t=this.state.plugins,n=t;if([].concat(e).forEach(e=>{let t=typeof e==`string`?`${e}$`:e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;let r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;let n=[...this.options.enableCoreExtensions?[eO,XD.configure({blockSeparator:(e=this.options.coreExtensionOptions)==null||(e=e.clipboardTextSerializer)==null?void 0:e.blockSeparator}),ZD,nO,rO,aO.configure({value:(t=this.options.coreExtensionOptions)==null||(t=t.tabindex)==null?void 0:t.value}),$D,iO,QD,oO.configure({direction:this.options.textDirection})].filter(e=>typeof this.options.enableCoreExtensions!=`object`||this.options.enableCoreExtensions[e.name]!==!1):[],...this.options.extensions].filter(e=>[`extension`,`node`,`mark`].includes(e?.type));this.extensionManager=new JD(n,this)}createCommandManager(){this.commandManager=new QC({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=mT(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||![`[tiptap error]: Invalid JSON content`,`[tiptap error]: Invalid HTML content`].includes(e.message))throw e;let t=mT(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=tt.create({doc:t,schema:this.schema,selection:Tw(t,this.options.autofocus)||void 0}),this.emit(`contentError`,{editor:this,error:e,disableCollaboration:()=>{`collaboration`in this.storage&&typeof this.storage.collaboration==`object`&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>e.name!==`collaboration`),this.createExtensionManager()}}),this.editorState.doc}return e}getEditorViewAttributes(){let e=this.options.editorProps?.attributes;return PT(e)?t=>({role:`textbox`,...e(t)}):{role:`textbox`,...e}}createView(e){let{editorProps:t,enableExtensionDispatchTransaction:n}=this.options,r=t.dispatchTransaction||this.dispatchTransaction.bind(this),i=n?this.extensionManager.dispatchTransaction(r):r,a=t.transformPastedHTML,o=this.extensionManager.transformPastedHTML(a);this.editorView=new At(e,{...t,attributes:this.getEditorViewAttributes(),dispatchTransaction:i,transformPastedHTML:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});let s=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(s),this.prependClass(),this.injectCSS();let c=this.view.dom;c.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;let t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(e=>this.capturedTransaction?.step(e));return}let{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),i=n.includes(e),a=this.state;if(this.emit(`beforeTransaction`,{editor:this,transaction:e,nextState:t}),!i)return;this.view.updateState(t),this.emit(`transaction`,{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit(`selectionUpdate`,{editor:this,transaction:e});let o=n.findLast(e=>e.getMeta(`focus`)||e.getMeta(`blur`)),s=o?.getMeta(`focus`),c=o?.getMeta(`blur`);s&&this.emit(`focus`,{editor:this,event:s.event,transaction:o}),c&&this.emit(`blur`,{editor:this,event:c.event,transaction:o}),!(e.getMeta(`preventUpdate`)||!n.some(e=>e.docChanged)||a.doc.eq(t.doc))&&this.emit(`update`,{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return eE(this.state,e)}isActive(e,t){let n=typeof e==`string`?e:null,r=typeof e==`string`?t:e;return lE(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return CT(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t=`
|
|
397
|
+
|
|
398
|
+
`,textSerializers:n={}}=e||{};return ZT(this.state.doc,{blockSeparator:t,textSerializers:{...QT(this.schema),...n}})}get isEmpty(){return fE(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit(`destroy`),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){return this.editorView?.isDestroyed??!0}$node(e,t){return this.$doc?.querySelector(e,t)||null}$nodes(e,t){return this.$doc?.querySelectorAll(e,t)||null}$pos(e){let t=this.state.doc.resolve(e),n=e>0&&t.nodeAfter&&!t.nodeAfter.isText&&t.nodeAfter.isAtom?t.nodeAfter:null;return new uO(t,this,!1,n)}get $doc(){return this.$pos(0)}};function pO(e){return new ND({find:e.find,handler:({state:t,range:n,match:r})=>{let i=FT(e.getAttributes,void 0,r);if(i===!1||i===null)return null;let{tr:a}=t,o=r[r.length-1],s=r[0];if(o){let r=s.search(/\S/),c=n.from+s.indexOf(o),l=c+o.length;if(iE(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>c).length)return null;l<n.to&&a.delete(l,n.to),c>n.from&&a.delete(n.from+r,c);let u=n.from+r+o.length;a.addMark(n.from+r,u,e.type.create(i||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}var mO=class e extends BD{constructor(...e){super(...e),this.type=`node`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},hO=class{constructor(e,t,n){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.innerDecorations=t.innerDecorations,this.view=t.view,this.HTMLAttributes=t.HTMLAttributes,this.getPos=()=>{try{return t.getPos()}catch{return}},this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){let{view:t}=this.editor,n=e.target,r=n.nodeType===3?n.parentElement?.closest(`[data-drag-handle]`):n.closest(`[data-drag-handle]`);if(!this.dom||this.contentDOM?.contains(n)||!r)return;let i=0,a=0;if(this.dom!==r){let t=this.dom.getBoundingClientRect(),n=r.getBoundingClientRect(),o=e.offsetX??e.nativeEvent?.offsetX,s=e.offsetY??e.nativeEvent?.offsetY;i=n.x-t.x+o,a=n.y-t.y+s}let o=this.dom.cloneNode(!0);try{let e=this.dom.getBoundingClientRect();o.style.width=`${Math.round(e.width)}px`,o.style.height=`${Math.round(e.height)}px`,o.style.boxSizing=`border-box`,o.style.pointerEvents=`none`}catch{}let s=null;try{var c;s=document.createElement(`div`),s.style.position=`absolute`,s.style.top=`-9999px`,s.style.left=`-9999px`,s.style.pointerEvents=`none`,s.appendChild(o),document.body.appendChild(s),(c=e.dataTransfer)==null||c.setDragImage(o,i,a)}finally{s&&setTimeout(()=>{try{s?.remove()}catch{}},0)}let l=this.getPos();if(typeof l!=`number`)return;let u=it.create(t.state.doc,l),d=t.state.tr.setSelection(u);t.dispatch(d)}stopEvent(e){if(!this.dom)return!1;if(typeof this.options.stopEvent==`function`)return this.options.stopEvent({event:e});let t=e.target;if(!this.dom.contains(t)||this.contentDOM?.contains(t))return!1;let n=e.type.startsWith(`drag`),r=e.type===`dragover`||e.type===`dragenter`,i=e.type===`drop`;if(([`INPUT`,`BUTTON`,`SELECT`,`TEXTAREA`].includes(t.tagName)||t.isContentEditable)&&!i&&!n)return!0;let{isEditable:a}=this.editor,{isDragging:o}=this,s=!!this.node.type.spec.draggable,c=it.isSelectable(this.node),l=e.type===`copy`,u=e.type===`paste`,d=e.type===`cut`,f=e.type===`mousedown`;if(!s&&c&&n&&e.target===this.dom&&e.preventDefault(),s&&n&&!o&&e.target===this.dom)return e.preventDefault(),!1;if(s&&a&&!o&&f){let e=t.closest(`[data-drag-handle]`);e&&(this.dom===e||this.dom.contains(e))&&(this.isDragging=!0,document.addEventListener(`dragend`,()=>{this.isDragging=!1},{once:!0}),document.addEventListener(`drop`,()=>{this.isDragging=!1},{once:!0}),document.addEventListener(`mouseup`,()=>{this.isDragging=!1},{once:!0}))}return!(o||r||i||l||u||d||f&&c)}ignoreMutation(e){return this.dom?this.contentDOM?typeof this.options.ignoreMutation==`function`?this.options.ignoreMutation({mutation:e}):this.node.isLeaf||this.node.isAtom?!0:e.type===`selection`||this.contentDOM.contains(e.target)&&e.type===`childList`&&(Dw()||Ew())&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(e=>e.isContentEditable)?!1:this.contentDOM===e.target&&e.type===`attributes`||!this.contentDOM.contains(e.target):e.type!==`selection`:!0}updateAttributes(e){this.editor.commands.command(({tr:t})=>{let n=this.getPos();return typeof n==`number`&&(t.setNodeMarkup(n,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){let e=this.getPos();if(typeof e!=`number`)return;let t=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:t})}};function gO(e){return new HD({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=FT(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;let{tr:o}=t,s=r[r.length-1],c=r[0],l=n.to;if(s){let i=c.search(/\S/),u=n.from+c.indexOf(s),d=u+s.length;if(iE(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>u).length)return null;d<n.to&&o.delete(d,n.to),u>n.from&&o.delete(n.from+i,u),l=n.from+i+s.length,o.addMark(n.from+i,l,e.type.create(a||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||o.removeStoredMark(e.type)}}})}var _O=`annotation`;function vO(e){return e&&ST(e.options.extensions).some(e=>{if(e.type!==`mark`)return!1;let t=xT(e,`group`);return typeof t==`string`&&t.split(` `).includes(`annotation`)})?_O:``}function yO(e){return e?ST(e.options.extensions).filter(e=>{if(e.type!==`mark`)return!1;let t=xT(e,`group`);return typeof t!=`string`||!t.split(` `).includes(`annotation`)}).map(e=>e.name).join(` `):`_`}var bO=class{listeners=new Set;state;prevState;options;constructor(e,t){this.prevState=e,this.state=e,this.options=t}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});setState(e){this.prevState=this.state,this.state=xO(e)?e(this.prevState):e,wO(this)}_notify(){let e={prevVal:this.prevState,currentVal:this.state};for(let t of this.listeners)t(e)}};function xO(e){return typeof e==`function`}var SO=!1,CO=new Set;function wO(e){CO.add(e);let t=!SO;SO=!0;try{if(e.options?.onUpdate?.(e.state,e.prevState),!t)return;for(;CO.size>0;){let e=Array.from(CO);CO.clear();for(let t of e)t._notify()}}finally{t&&(SO=!1,CO.clear())}}var TO=Symbol(`originalFactory`);function EO(e){if(typeof e==`object`&&`key`in e)return function t(){return e[TO]=t,e};if(typeof e!=`function`)throw Error(`factory must be a function`);return function t(n){return r=>{let i=e({editor:r.editor,options:n});return i[TO]=t,i}}}function DO(e,t){return new bO(e,t)}crypto.subtle;var OO=crypto.getRandomValues.bind(crypto),kO=()=>OO(new Uint32Array(1))[0],AO=`10000000-1000-4000-8000-100000000000`,jO=typeof crypto<`u`&&crypto.randomUUID!=null?crypto.randomUUID.bind(crypto):()=>AO.replace(/[018]/g,e=>(e^kO()&15>>e/4).toString(16)),MO,NO;if(typeof WeakMap<`u`){let e=new WeakMap;MO=t=>e.get(t),NO=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;MO=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},NO=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var PO=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,a=r+1,o=i+1;for(let e=1;a<this.width&&this.map[t+e]==n;e++)a++;for(let e=1;o<this.height&&this.map[t+this.width*e]==n;e++)o++;return{left:r,top:i,right:a,bottom:o}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:i,top:a,bottom:o}=this.findCell(e);return t==`horiz`?(n<0?r==0:i==this.width)?null:this.map[a*this.width+(n<0?r-1:i)]:(n<0?a==0:o==this.height)?null:this.map[r+this.width*(n<0?a-1:o)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:a}=this.findCell(e),{left:o,right:s,top:c,bottom:l}=this.findCell(t);return{left:Math.min(n,o),top:Math.min(i,c),right:Math.max(r,s),bottom:Math.max(a,l)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let a=r*this.width+i,o=this.map[a];n[o]||(n[o]=!0,!(i==e.left&&i&&this.map[a-1]==o||r==e.top&&r&&this.map[a-this.width]==o)&&t.push(o))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let a=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?a-1:this.map[n]}i=a}}static get(e){return MO(e)||NO(e,FO(e))}};function FO(e){if(e.type.spec.tableRole!=`table`)throw RangeError(`Not a table node: `+e.type.name);let t=IO(e),n=e.childCount,r=[],i=0,a=null,o=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let s=0,c=0;s<n;s++){let l=e.child(s);c++;for(let e=0;;e++){for(;i<r.length&&r[i]!=0;)i++;if(e==l.childCount)break;let u=l.child(e),{colspan:d,rowspan:f,colwidth:p}=u.attrs;for(let e=0;e<f;e++){if(e+s>=n){(a||=[]).push({type:`overlong_rowspan`,pos:c,n:f-e});break}let l=i+e*t;for(let e=0;e<d;e++){r[l+e]==0?r[l+e]=c:(a||=[]).push({type:`collision`,row:s,pos:c,n:d-e});let n=p&&p[e];if(n){let r=(l+e)%t*2,i=o[r];i==null||i!=n&&o[r+1]==1?(o[r]=n,o[r+1]=1):i==n&&o[r+1]++}}}i+=d,c+=u.nodeSize}let u=(s+1)*t,d=0;for(;i<u;)r[i++]==0&&d++;d&&(a||=[]).push({type:`missing`,row:s,n:d}),c++}(t===0||n===0)&&(a||=[]).push({type:`zero_sized`});let s=new PO(t,n,r,a),c=!1;for(let e=0;!c&&e<o.length;e+=2)o[e]!=null&&o[e+1]<n&&(c=!0);return c&&LO(s,o,e),s}function IO(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),a=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(a+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);a+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}t==-1?t=a:t!=a&&(t=Math.max(t,a))}return t}function LO(e,t,n){e.problems||=[];let r={};for(let i=0;i<e.map.length;i++){let a=e.map[i];if(r[a])continue;r[a]=!0;let o=n.nodeAt(a);if(!o)throw RangeError(`No cell with offset ${a} found`);let s=null,c=o.attrs;for(let n=0;n<c.colspan;n++){let r=t[(i+n)%e.width*2];r==null||c.colwidth&&c.colwidth[n]==r||((s||=RO(c))[n]=r)}s&&e.problems.unshift({type:`colwidth mismatch`,pos:a,colwidth:s})}}function RO(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function zO(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}var BO=new on(`selectingCells`);function VO(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole==`row`)return e.node(0).resolve(e.before(t+1));return null}function HO(e){for(let t=e.depth;t>0;t--){let n=e.node(t).type.spec.tableRole;if(n===`cell`||n===`header_cell`)return e.node(t)}return null}function UO(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if(t.node(e).type.spec.tableRole==`row`)return!0;return!1}function WO(e){let t=e.selection;if(`$anchorCell`in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if(`node`in t&&t.node&&t.node.type.spec.tableRole==`cell`)return t.$anchor;let n=VO(t.$head)||GO(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function GO(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n-t.nodeSize)}}function KO(e){return e.parent.type.spec.tableRole==`row`&&!!e.nodeAfter}function qO(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function JO(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function YO(e,t,n){let r=e.node(-1),i=PO.get(r),a=e.start(-1),o=i.nextCell(e.pos-a,t,n);return o==null?null:e.node(0).resolve(a+o)}function XO(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function ZO(e,t,n=1){let r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}function QO(e,t,n){let r=zO(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0}var $O=class e extends Je{constructor(e,t=e){let n=e.node(-1),r=PO.get(n),i=e.start(-1),a=r.rectBetween(e.pos-i,t.pos-i),o=e.node(0),s=r.cellsInRect(a).filter(e=>e!=t.pos-i);s.unshift(t.pos-i);let c=s.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=i+e+1;return new mt(o.resolve(r),o.resolve(r+t.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(KO(r)&&KO(i)&&JO(r,i)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return et.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=PO.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},a=[];for(let n=r.top;n<r.bottom;n++){let o=[];for(let a=n*t.width+r.left,s=r.left;s<r.right;s++,a++){let n=t.map[a];if(i[n])continue;i[n]=!0;let s=t.findCell(n),c=e.nodeAt(n);if(!c)throw RangeError(`No cell with offset ${n} found`);let l=r.left-s.left,u=s.right-r.right;if(l>0||u>0){let e=c.attrs;if(l>0&&(e=XO(e,0,l)),u>0&&(e=XO(e,e.colspan-u,u)),s.left<r.left){if(c=c.type.createAndFill(e),!c)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else c=c.type.create(e,c.content)}if(s.top<r.top||s.bottom>r.bottom){let e={...c.attrs,rowspan:Math.min(s.bottom,r.bottom)-Math.max(s.top,r.top)};c=s.top<r.top?c.type.createAndFill(e):c.type.create(e,c.content)}o.push(c)}a.push(e.child(n).copy(Vt.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:a;return new xt(Vt.from(o),1,1)}replace(e,t=xt.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n);e.replace(s.map(a.pos),s.map(o.pos),i?xt.empty:t)}let i=Je.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new xt(Vt.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=PO.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),i=PO.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.top<=s.top?(o.top>0&&(t=c.resolve(a+i.map[o.left])),s.bottom<i.height&&(n=c.resolve(a+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=c.resolve(a+i.map[s.left])),o.bottom<i.height&&(t=c.resolve(a+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=PO.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);if(Math.min(r,i)>0)return!1;let a=r+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,o)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),i=PO.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.left<=s.left?(o.left>0&&(t=c.resolve(a+i.map[o.top*i.width])),s.right<i.width&&(n=c.resolve(a+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=c.resolve(a+i.map[s.top*i.width])),o.right<i.width&&(t=c.resolve(a+i.map[i.width*(o.top+1)-1]))),new e(t,n)}toJSON(){return{type:`cell`,anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new ek(this.$anchorCell.pos,this.$headCell.pos)}};$O.prototype.visible=!1,Je.jsonID(`cell`,$O);var ek=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return t.parent.type.spec.tableRole==`row`&&n.parent.type.spec.tableRole==`row`&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&JO(t,n)?new $O(t,n):Je.near(n,1)}};function tk(e){if(!(e.selection instanceof $O))return null;let t=[];return e.selection.forEachCell((e,n)=>{t.push(Wt.node(n,n+e.nodeSize,{class:`selectedCell`}))}),Rt.create(e.doc,t)}function nk({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}function rk({$from:e,$to:t}){let n,r;for(let t=e.depth;t>0;t--){let r=e.node(t);if(r.type.spec.tableRole===`cell`||r.type.spec.tableRole===`header_cell`){n=r;break}}for(let e=t.depth;e>0;e--){let n=t.node(e);if(n.type.spec.tableRole===`cell`||n.type.spec.tableRole===`header_cell`){r=n;break}}return n!==r&&t.parentOffset===0}function ik(e,t,n){let r=(t||e).selection,i=(t||e).doc,a,o;if(r instanceof it&&(o=r.node.type.spec.tableRole)){if(o==`cell`||o==`header_cell`)a=$O.create(i,r.from);else if(o==`row`){let e=i.resolve(r.from+1);a=$O.rowSelection(e,e)}else if(!n){let e=PO.get(r.node),t=r.from+1,n=t+e.map[e.width*e.height-1];a=$O.create(i,t+1,n)}}else r instanceof et&&nk(r)?a=et.create(i,r.from):r instanceof et&&rk(r)&&(a=et.create(i,r.$from.start(),r.$from.end()));return a&&(t||=e.tr).setSelection(a),t}var ak=new on(`fix-tables`);function ok(e,t,n,r){let i=e.childCount,a=t.childCount;outer:for(let o=0,s=0;o<a;o++){let a=t.child(o);for(let t=s,r=Math.min(i,o+3);t<r;t++)if(e.child(t)==a){s=t+1,n+=a.nodeSize;continue outer}r(a,n),s<i&&e.child(s).sameMarkup(a)?ok(e.child(s),a,n+1,r):a.nodesBetween(0,a.content.size,r,n+1),n+=a.nodeSize}}function sk(e,t){let n,r=(t,r)=>{t.type.spec.tableRole==`table`&&(n=ck(e,t,r,n))};return t?t.doc!=e.doc&&ok(t.doc,e.doc,0,r):e.doc.descendants(r),n}function ck(e,t,n,r){let i=PO.get(t);if(!i.problems)return r;r||=e.tr;let a=[];for(let e=0;e<i.height;e++)a.push(0);for(let e=0;e<i.problems.length;e++){let o=i.problems[e];if(o.type==`collision`){let e=t.nodeAt(o.pos);if(!e)continue;let i=e.attrs;for(let e=0;e<i.rowspan;e++)a[o.row+e]+=o.n;r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,XO(i,i.colspan-o.n,o.n))}else if(o.type==`missing`)a[o.row]+=o.n;else if(o.type==`overlong_rowspan`){let e=t.nodeAt(o.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-o.n})}else if(o.type==`colwidth mismatch`){let e=t.nodeAt(o.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,{...e.attrs,colwidth:o.colwidth})}else if(o.type==`zero_sized`){let e=r.mapping.map(n);r.delete(e,e+t.nodeSize)}}let o,s;for(let e=0;e<a.length;e++)a[e]&&(o??=e,s=e);for(let c=0,l=n+1;c<i.height;c++){let n=t.child(c),i=l+n.nodeSize,u=a[c];if(u>0){let t=`cell`;n.firstChild&&(t=n.firstChild.type.spec.tableRole);let a=[];for(let n=0;n<u;n++){let n=zO(e.schema)[t].createAndFill();n&&a.push(n)}let d=(c==0||o==c-1)&&s==c?l+1:i-1;r.insert(r.mapping.map(d),a)}l=i}return r.setMeta(ak,{fixTables:!0})}function lk(e){let t=e.selection,n=WO(e),r=n.node(-1),i=n.start(-1),a=PO.get(r);return{...t instanceof $O?a.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):a.findCell(n.pos-i),tableStart:i,map:a,table:r}}function uk(e,{map:t,tableStart:n,table:r},i){let a=i>0?-1:0;QO(t,r,i+a)&&(a=i==0||i==t.width?null:0);for(let o=0;o<t.height;o++){let s=o*t.width+i;if(i>0&&i<t.width&&t.map[s-1]==t.map[s]){let a=t.map[s],c=r.nodeAt(a);e.setNodeMarkup(e.mapping.map(n+a),null,ZO(c.attrs,i-t.colCount(a))),o+=c.attrs.rowspan-1}else{let c=a==null?zO(r.type.schema).cell:r.nodeAt(t.map[s+a]).type,l=t.positionAt(o,i,r);e.insert(e.mapping.map(n+l),c.createAndFill())}}return e}function dk(e,t){if(!UO(e))return!1;if(t){let n=lk(e);t(uk(e.tr,n,n.left))}return!0}function fk(e,t){if(!UO(e))return!1;if(t){let n=lk(e);t(uk(e.tr,n,n.right))}return!0}function pk(e,{map:t,table:n,tableStart:r},i){let a=e.mapping.maps.length;for(let o=0;o<t.height;){let s=o*t.width+i,c=t.map[s],l=n.nodeAt(c),u=l.attrs;if(i>0&&t.map[s-1]==c||i<t.width-1&&t.map[s+1]==c)e.setNodeMarkup(e.mapping.slice(a).map(r+c),null,XO(u,i-t.colCount(c)));else{let t=e.mapping.slice(a).map(r+c);e.delete(t,t+l.nodeSize)}o+=u.rowspan}}function mk(e,t){if(!UO(e))return!1;if(t){let n=lk(e),r=e.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let e=n.right-1;pk(r,n,e),e!=n.left;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError(`No table found`);n.table=e,n.map=PO.get(e)}t(r)}return!0}function hk(e,t,n){let r=zO(t.type.schema).header_cell;for(let i=0;i<e.width;i++)if(t.nodeAt(e.map[i+n*e.width])?.type!=r)return!1;return!0}function gk(e,{map:t,tableStart:n,table:r},i){let a=n;for(let e=0;e<i;e++)a+=r.child(e).nodeSize;let o=[],s=i>0?-1:0;hk(t,r,i+s)&&(s=i==0||i==t.height?null:0);for(let a=0,c=t.width*i;a<t.width;a++,c++)if(i>0&&i<t.height&&t.map[c]==t.map[c-t.width]){let i=t.map[c],o=r.nodeAt(i).attrs;e.setNodeMarkup(n+i,null,{...o,rowspan:o.rowspan+1}),a+=o.colspan-1}else{let e=(s==null?zO(r.type.schema).cell:r.nodeAt(t.map[c+s*t.width])?.type)?.createAndFill();e&&o.push(e)}return e.insert(a,zO(r.type.schema).row.create(null,o)),e}function _k(e,t){if(!UO(e))return!1;if(t){let n=lk(e);t(gk(e.tr,n,n.top))}return!0}function vk(e,t){if(!UO(e))return!1;if(t){let n=lk(e);t(gk(e.tr,n,n.bottom))}return!0}function yk(e,{map:t,table:n,tableStart:r},i){let a=0;for(let e=0;e<i;e++)a+=n.child(e).nodeSize;let o=a+n.child(i).nodeSize,s=e.mapping.maps.length;e.delete(a+r,o+r);let c=new Set;for(let a=0,o=i*t.width;a<t.width;a++,o++){let l=t.map[o];if(!c.has(l)){if(c.add(l),i>0&&l==t.map[o-t.width]){let t=n.nodeAt(l).attrs;e.setNodeMarkup(e.mapping.slice(s).map(l+r),null,{...t,rowspan:t.rowspan-1}),a+=t.colspan-1}else if(i<t.height&&l==t.map[o+t.width]){let o=n.nodeAt(l),c=o.attrs,u=o.type.create({...c,rowspan:o.attrs.rowspan-1},o.content),d=t.positionAt(i+1,a,n);e.insert(e.mapping.slice(s).map(r+d),u),a+=c.colspan-1}}}}function bk(e,t){if(!UO(e))return!1;if(t){let n=lk(e),r=e.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;yk(r,n,e),e!=n.top;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError(`No table found`);n.table=e,n.map=PO.get(n.table)}t(r)}return!0}function xk(e){let t=e.content;return t.childCount==1&&t.child(0).isTextblock&&t.child(0).childCount==0}function Sk({width:e,height:t,map:n},r){let i=r.top*e+r.left,a=i,o=(r.bottom-1)*e+r.left,s=i+(r.right-r.left-1);for(let t=r.top;t<r.bottom;t++){if(r.left>0&&n[a]==n[a-1]||r.right<e&&n[s]==n[s+1])return!0;a+=e,s+=e}for(let a=r.left;a<r.right;a++){if(r.top>0&&n[i]==n[i-e]||r.bottom<t&&n[o]==n[o+e])return!0;i++,o++}return!1}function Ck(e,t){let n=e.selection;if(!(n instanceof $O)||n.$anchorCell.pos==n.$headCell.pos)return!1;let r=lk(e),{map:i}=r;if(Sk(i,r))return!1;if(t){let n=e.tr,a={},o=Vt.empty,s,c;for(let e=r.top;e<r.bottom;e++)for(let t=r.left;t<r.right;t++){let l=i.map[e*i.width+t],u=r.table.nodeAt(l);if(!a[l]&&u){if(a[l]=!0,s==null)s=l,c=u;else{xk(u)||(o=o.append(u.content));let e=n.mapping.map(l+r.tableStart);n.delete(e,e+u.nodeSize)}}}if(s==null||c==null)return!0;if(n.setNodeMarkup(s+r.tableStart,null,{...ZO(c.attrs,c.attrs.colspan,r.right-r.left-c.attrs.colspan),rowspan:r.bottom-r.top}),o.size>0){let e=s+1+c.content.size,t=xk(c)?s+1:e;n.replaceWith(t+r.tableStart,e+r.tableStart,o)}n.setSelection(new $O(n.doc.resolve(s+r.tableStart))),t(n)}return!0}function wk(e,t){let n=zO(e.schema);return Tk(({node:e})=>n[e.type.spec.tableRole])(e,t)}function Tk(e){return(t,n)=>{let r=t.selection,i,a;if(r instanceof $O){if(r.$anchorCell.pos!=r.$headCell.pos)return!1;i=r.$anchorCell.nodeAfter,a=r.$anchorCell.pos}else{if(i=HO(r.$from),!i)return!1;a=VO(r.$from)?.pos}if(i==null||a==null||i.attrs.colspan==1&&i.attrs.rowspan==1)return!1;if(n){let o=i.attrs,s=[],c=o.colwidth;o.rowspan>1&&(o={...o,rowspan:1}),o.colspan>1&&(o={...o,colspan:1});let l=lk(t),u=t.tr;for(let e=0;e<l.right-l.left;e++)s.push(c?{...o,colwidth:c&&c[e]?[c[e]]:null}:o);let d;for(let t=l.top;t<l.bottom;t++){let n=l.map.positionAt(t,l.left,l.table);t==l.top&&(n+=i.nodeSize);for(let r=l.left,a=0;r<l.right;r++,a++)(r!=l.left||t!=l.top)&&u.insert(d=u.mapping.map(n+l.tableStart,1),e({node:i,row:t,col:r}).createAndFill(s[a]))}u.setNodeMarkup(a,e({node:i,row:l.top,col:l.left}),s[0]),r instanceof $O&&u.setSelection(new $O(u.doc.resolve(r.$anchorCell.pos),d?u.doc.resolve(d):void 0)),n(u)}return!0}}function Ek(e){return function(t,n){if(!UO(t))return!1;if(n){let r=zO(t.schema),i=lk(t),a=t.tr,o=i.map.cellsInRect(e==`column`?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e==`row`?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)s[e].type==r.header_cell&&a.setNodeMarkup(i.tableStart+o[e],r.cell,s[e].attrs);if(a.steps.length===0)for(let e=0;e<o.length;e++)a.setNodeMarkup(i.tableStart+o[e],r.header_cell,s[e].attrs);n(a)}return!0}}function Dk(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:e==`row`?t.map.width:1,bottom:e==`column`?t.map.height:1});for(let e=0;e<r.length;e++){let i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function Ok(e,t){return t||={useDeprecatedLogic:!1},t.useDeprecatedLogic?Ek(e):function(t,n){if(!UO(t))return!1;if(n){let r=zO(t.schema),i=lk(t),a=t.tr,o=Dk(`row`,i,r),s=Dk(`column`,i,r),c=(e===`column`?o:e===`row`&&s)?1:0,l=e==`column`?{left:0,top:c,right:1,bottom:i.map.height}:e==`row`?{left:c,top:0,right:i.map.width,bottom:1}:i,u=e==`column`?s?r.cell:r.header_cell:e==`row`?o?r.cell:r.header_cell:r.cell;i.map.cellsInRect(l).forEach(e=>{let t=e+i.tableStart,n=a.doc.nodeAt(t);n&&a.setNodeMarkup(t,u,n.attrs)}),n(a)}return!0}}Ok(`row`,{useDeprecatedLogic:!0}),Ok(`column`,{useDeprecatedLogic:!0}),Ok(`cell`,{useDeprecatedLogic:!0});function kk(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,n=e.before();t>=0;t--){let r=e.node(-1).child(t),i=r.lastChild;if(i)return n-1-i.nodeSize;n-=r.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){let e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}return null}function Ak(e){return function(t,n){if(!UO(t))return!1;let r=kk(WO(t),e);if(r==null)return!1;if(n){let e=t.doc.resolve(r);n(t.tr.setSelection(et.between(e,qO(e))).scrollIntoView())}return!0}}function jk(e,t){let n=e.selection;if(!(n instanceof $O))return!1;if(t){let r=e.tr,i=zO(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new xt(i,0,0))}),r.docChanged&&t(r)}return!0}function Mk(e){if(e.size===0)return null;let{content:t,openStart:n,openEnd:r}=e;for(;t.childCount==1&&(n>0&&r>0||t.child(0).type.spec.tableRole==`table`);)n--,r--,t=t.child(0).content;let i=t.child(0),a=i.type.spec.tableRole,o=i.type.schema,s=[];if(a==`row`)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,a=e?0:Math.max(0,n-1),c=e<t.childCount-1?0:Math.max(0,r-1);(a||c)&&(i=Pk(zO(o).row,new xt(i,a,c)).content),s.push(i)}else if(a==`cell`||a==`header_cell`)s.push(n||r?Pk(zO(o).row,new xt(t,n,r)).content:t);else return null;return Nk(o,s)}function Nk(e,t){let n=[];for(let e=0;e<t.length;e++){let r=t[e];for(let t=r.childCount-1;t>=0;t--){let{rowspan:i,colspan:a}=r.child(t).attrs;for(let t=e;t<e+i;t++)n[t]=(n[t]||0)+a}}let r=0;for(let e=0;e<n.length;e++)r=Math.max(r,n[e]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(Vt.empty),n[i]<r){let a=zO(e).cell.createAndFill(),o=[];for(let e=n[i];e<r;e++)o.push(a);t[i]=t[i].append(Vt.from(o))}return{height:t.length,width:r,rows:t}}function Pk(e,t){let n=e.createAndFill();return new Kt(n).replace(0,n.content.size,t).doc}function Fk({width:e,height:t,rows:n},r,i){if(e!=r){let t=[],i=[];for(let e=0;e<n.length;e++){let a=n[e],o=[];for(let n=t[e]||0,i=0;n<r;i++){let s=a.child(i%a.childCount);n+s.attrs.colspan>r&&(s=s.type.createChecked(XO(s.attrs,s.attrs.colspan,n+s.attrs.colspan-r),s.content)),o.push(s),n+=s.attrs.colspan;for(let n=1;n<s.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+s.attrs.colspan}i.push(Vt.from(o))}n=i,e=r}if(t!=i){let e=[];for(let r=0,a=0;r<i;r++,a++){let o=[],s=n[a%t];for(let e=0;e<s.childCount;e++){let t=s.child(e);r+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),o.push(t)}e.push(Vt.from(o))}n=e,t=i}return{width:e,height:t,rows:n}}function Ik(e,t,n,r,i,a,o){let s=e.doc.type.schema,c=zO(s),l,u;if(i>t.width)for(let a=0,s=0;a<t.height;a++){let d=n.child(a);s+=d.nodeSize;let f=[],p;p=d.lastChild==null||d.lastChild.type==c.cell?l||=c.cell.createAndFill():u||=c.header_cell.createAndFill();for(let e=t.width;e<i;e++)f.push(p);e.insert(e.mapping.slice(o).map(s-1+r),f)}if(a>t.height){let s=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=e>=t.width?!1:n.nodeAt(t.map[r+e]).type==c.header_cell;s.push(i?u||=c.header_cell.createAndFill():l||=c.cell.createAndFill())}let d=c.row.create(null,Vt.from(s)),f=[];for(let e=t.height;e<a;e++)f.push(d);e.insert(e.mapping.slice(o).map(r+n.nodeSize-2),f)}return!!(l||u)}function Lk(e,t,n,r,i,a,o,s){if(o==0||o==t.height)return!1;let c=!1;for(let l=i;l<a;l++){let i=o*t.width+l,a=t.map[i];if(t.map[i-t.width]==a){c=!0;let i=n.nodeAt(a),{top:u,left:d}=t.findCell(a);e.setNodeMarkup(e.mapping.slice(s).map(a+r),null,{...i.attrs,rowspan:o-u}),e.insert(e.mapping.slice(s).map(t.positionAt(o,d,n)),i.type.createAndFill({...i.attrs,rowspan:u+i.attrs.rowspan-o})),l+=i.attrs.colspan-1}}return c}function Rk(e,t,n,r,i,a,o,s){if(o==0||o==t.width)return!1;let c=!1;for(let l=i;l<a;l++){let i=l*t.width+o,a=t.map[i];if(t.map[i-1]==a){c=!0;let i=n.nodeAt(a),u=t.colCount(a),d=e.mapping.slice(s).map(a+r);e.setNodeMarkup(d,null,XO(i.attrs,o-u,i.attrs.colspan-(o-u))),e.insert(d+i.nodeSize,i.type.createAndFill(XO(i.attrs,0,o-u))),l+=i.attrs.rowspan-1}}return c}function zk(e,t,n,r,i){let a=n?e.doc.nodeAt(n-1):e.doc;if(!a)throw Error(`No table found`);let o=PO.get(a),{top:s,left:c}=r,l=c+i.width,u=s+i.height,d=e.tr,f=0;function p(){if(a=n?d.doc.nodeAt(n-1):d.doc,!a)throw Error(`No table found`);o=PO.get(a),f=d.mapping.maps.length}Ik(d,o,a,n,l,u,f)&&p(),Lk(d,o,a,n,c,l,s,f)&&p(),Lk(d,o,a,n,c,l,u,f)&&p(),Rk(d,o,a,n,s,u,c,f)&&p(),Rk(d,o,a,n,s,u,l,f)&&p();for(let e=s;e<u;e++){let t=o.positionAt(e,c,a),r=o.positionAt(e,l,a);d.replace(d.mapping.slice(f).map(t+n),d.mapping.slice(f).map(r+n),new xt(i.rows[e-s],0,0))}p(),d.setSelection(new $O(d.doc.resolve(n+o.positionAt(s,c,a)),d.doc.resolve(n+o.positionAt(u-1,l-1,a)))),t(d)}var Bk=Tt({ArrowLeft:Hk(`horiz`,-1),ArrowRight:Hk(`horiz`,1),ArrowUp:Hk(`vert`,-1),ArrowDown:Hk(`vert`,1),"Shift-ArrowLeft":Uk(`horiz`,-1),"Shift-ArrowRight":Uk(`horiz`,1),"Shift-ArrowUp":Uk(`vert`,-1),"Shift-ArrowDown":Uk(`vert`,1),Backspace:jk,"Mod-Backspace":jk,Delete:jk,"Mod-Delete":jk});function Vk(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Hk(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection;if(a instanceof $O)return Vk(n,r,Je.near(a.$headCell,t));if(e!=`horiz`&&!a.empty)return!1;let o=qk(i,e,t);if(o==null)return!1;if(e==`horiz`)return Vk(n,r,Je.near(n.doc.resolve(a.head+t),t));{let i=n.doc.resolve(o),a=YO(i,e,t),s;return s=a?Je.near(a,1):t<0?Je.near(n.doc.resolve(i.before(-1)),-1):Je.near(n.doc.resolve(i.after(-1)),1),Vk(n,r,s)}}}function Uk(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection,o;if(a instanceof $O)o=a;else{let r=qk(i,e,t);if(r==null)return!1;o=new $O(n.doc.resolve(r))}let s=YO(o.$headCell,e,t);return s?Vk(n,r,new $O(o.$anchorCell,s)):!1}}function Wk(e,t){let n=e.state.doc,r=VO(n.resolve(t));return r?(e.dispatch(e.state.tr.setSelection(new $O(r))),!0):!1}function Gk(e,t,n){if(!UO(e.state))return!1;let r=Mk(n),i=e.state.selection;if(i instanceof $O){r||={width:1,height:1,rows:[Vt.from(Pk(zO(e.state.schema).cell,n))]};let t=i.$anchorCell.node(-1),a=i.$anchorCell.start(-1),o=PO.get(t).rectBetween(i.$anchorCell.pos-a,i.$headCell.pos-a);return r=Fk(r,o.right-o.left,o.bottom-o.top),zk(e.state,e.dispatch,a,o,r),!0}if(r){let t=WO(e.state),n=t.start(-1);return zk(e.state,e.dispatch,n,PO.get(t.node(-1)).findCell(t.pos-n),r),!0}return!1}function Kk(e,t){if(t.button!=0||t.ctrlKey||t.metaKey)return;let n=Jk(e,t.target),r;if(t.shiftKey&&e.state.selection instanceof $O)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&n&&(r=VO(e.state.selection.$anchor))!=null&&Yk(e,t)?.pos!=r.pos)i(r,t),t.preventDefault();else if(!n)return;function i(t,n){let r=Yk(e,n),i=BO.getState(e.state)==null;if(!r||!JO(t,r)){if(i)r=t;else return}let a=new $O(t,r);if(i||!e.state.selection.eq(a)){let n=e.state.tr.setSelection(a);i&&n.setMeta(BO,t.pos),e.dispatch(n)}}function a(){e.root.removeEventListener(`mouseup`,a),e.root.removeEventListener(`dragstart`,a),e.root.removeEventListener(`mousemove`,o),BO.getState(e.state)!=null&&e.dispatch(e.state.tr.setMeta(BO,-1))}function o(r){let o=r,s=BO.getState(e.state),c;if(s!=null)c=e.state.doc.resolve(s);else if(Jk(e,o.target)!=n&&(c=Yk(e,t),!c))return a();c&&i(c,o)}e.root.addEventListener(`mouseup`,a),e.root.addEventListener(`dragstart`,a),e.root.addEventListener(`mousemove`,o)}function qk(e,t,n){if(!(e.state.selection instanceof et))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let a=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:a.childCount))return null;if(a.type.spec.tableRole==`cell`||a.type.spec.tableRole==`header_cell`){let a=r.before(i),o=t==`vert`?n>0?`down`:`up`:n>0?`right`:`left`;return e.endOfTextblock(o)?a:null}}return null}function Jk(e,t){for(;t&&t!=e.dom;t=t.parentNode)if(t.nodeName==`TD`||t.nodeName==`TH`)return t;return null}function Yk(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});if(!n)return null;let{inside:r,pos:i}=n;return r>=0&&VO(e.state.doc.resolve(r))||VO(e.state.doc.resolve(i))}var Xk=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement(`div`),this.dom.className=`tableWrapper`,this.table=this.dom.appendChild(document.createElement(`table`)),this.table.style.setProperty(`--default-cell-min-width`,`${t}px`),this.colgroup=this.table.appendChild(document.createElement(`colgroup`)),Zk(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement(`tbody`))}update(e){return e.type==this.node.type&&(this.node=e,Zk(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type==`attributes`&&(e.target==this.table||this.colgroup.contains(e.target))}};function Zk(e,t,n,r,i,a){let o=0,s=!0,c=t.firstChild,l=e.firstChild;if(l){for(let e=0,n=0;e<l.childCount;e++){let{colspan:u,colwidth:d}=l.child(e).attrs;for(let e=0;e<u;e++,n++){let l=i==n?a:d&&d[e],u=l?l+`px`:``;if(o+=l||r,l||(s=!1),c)c.style.width!=u&&(c.style.width=u),c=c.nextSibling;else{let e=document.createElement(`col`);e.style.width=u,t.appendChild(e)}}}for(;c;){var u;let e=c.nextSibling;(u=c.parentNode)==null||u.removeChild(c),c=e}s?(n.style.width=o+`px`,n.style.minWidth=``):(n.style.width=``,n.style.minWidth=o+`px`)}}var Qk=new on(`tableColumnResizing`);function $k({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:n=100,View:r=Xk,lastColumnResizable:i=!0}={}){let a=new ut({key:Qk,state:{init(e,t){var i;let o=(i=a.spec)==null||(i=i.props)==null?void 0:i.nodeViews,s=zO(t.schema).table.name;return r&&o&&(o[s]=(e,t)=>new r(e,n,t)),new eA(-1,!1)},apply(e,t){return t.apply(e)}},props:{attributes:e=>{let t=Qk.getState(e);return t&&t.activeHandle>-1?{class:`resize-cursor`}:{}},handleDOMEvents:{mousemove:(t,n)=>{tA(t,n,e,i)},mouseleave:e=>{nA(e)},mousedown:(e,r)=>{rA(e,r,t,n)}},decorations:e=>{let t=Qk.getState(e);if(t&&t.activeHandle>-1)return fA(e,t.activeHandle)},nodeViews:{}}});return a}var eA=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let n=this,r=t.getMeta(Qk);if(r&&r.setHandle!=null)return new e(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new e(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&t.docChanged){let r=t.mapping.map(n.activeHandle,-1);return KO(t.doc.resolve(r))||(r=-1),new e(r,n.dragging)}return n}};function tA(e,t,n,r){if(!e.editable)return;let i=Qk.getState(e.state);if(i&&!i.dragging){let a=aA(t.target),o=-1;if(a){let{left:r,right:i}=a.getBoundingClientRect();t.clientX-r<=n?o=oA(e,t,`left`,n):i-t.clientX<=n&&(o=oA(e,t,`right`,n))}if(o!=i.activeHandle){if(!r&&o!==-1){let t=e.state.doc.resolve(o),n=t.node(-1),r=PO.get(n),i=t.start(-1);if(r.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==r.width-1)return}cA(e,o)}}}function nA(e){if(!e.editable)return;let t=Qk.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&cA(e,-1)}function rA(e,t,n,r){if(!e.editable)return!1;let i=e.dom.ownerDocument.defaultView??window,a=Qk.getState(e.state);if(!a||a.activeHandle==-1||a.dragging)return!1;let o=e.state.doc.nodeAt(a.activeHandle),s=iA(e,a.activeHandle,o.attrs);e.dispatch(e.state.tr.setMeta(Qk,{setDragging:{startX:t.clientX,startWidth:s}}));function c(t){i.removeEventListener(`mouseup`,c),i.removeEventListener(`mousemove`,l);let r=Qk.getState(e.state);r?.dragging&&(lA(e,r.activeHandle,sA(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Qk,{setDragging:null})))}function l(t){if(!t.which)return c(t);let i=Qk.getState(e.state);if(i&&i.dragging){let a=sA(i.dragging,t,n);uA(e,i.activeHandle,a,r)}}return uA(e,a.activeHandle,s,r),i.addEventListener(`mouseup`,c),i.addEventListener(`mousemove`,l),t.preventDefault(),!0}function iA(e,t,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let a=e.domAtPos(t),o=a.node.childNodes[a.offset].offsetWidth,s=n;if(r)for(let e=0;e<n;e++)r[e]&&(o-=r[e],s--);return o/s}function aA(e){for(;e&&e.nodeName!=`TD`&&e.nodeName!=`TH`;)e=e.classList&&e.classList.contains(`ProseMirror`)?null:e.parentNode;return e}function oA(e,t,n,r){let i=n==`right`?-r:r,a=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!a)return-1;let{pos:o}=a,s=VO(e.state.doc.resolve(o));if(!s)return-1;if(n==`right`)return s.pos;let c=PO.get(s.node(-1)),l=s.start(-1),u=c.map.indexOf(s.pos-l);return u%c.width==0?-1:l+c.map[u-1]}function sA(e,t,n){let r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function cA(e,t){e.dispatch(e.state.tr.setMeta(Qk,{setHandle:t}))}function lA(e,t,n){let r=e.state.doc.resolve(t),i=r.node(-1),a=PO.get(i),o=r.start(-1),s=a.colCount(r.pos-o)+r.nodeAfter.attrs.colspan-1,c=e.state.tr;for(let e=0;e<a.height;e++){let t=e*a.width+s;if(e&&a.map[t]==a.map[t-a.width])continue;let r=a.map[t],l=i.nodeAt(r).attrs,u=l.colspan==1?0:s-a.colCount(r);if(l.colwidth&&l.colwidth[u]==n)continue;let d=l.colwidth?l.colwidth.slice():dA(l.colspan);d[u]=n,c.setNodeMarkup(o+r,null,{...l,colwidth:d})}c.docChanged&&e.dispatch(c)}function uA(e,t,n,r){let i=e.state.doc.resolve(t),a=i.node(-1),o=i.start(-1),s=PO.get(a).colCount(i.pos-o)+i.nodeAfter.attrs.colspan-1,c=e.domAtPos(i.start(-1)).node;for(;c&&c.nodeName!=`TABLE`;)c=c.parentNode;c&&Zk(a,c.firstChild,c,r,s,n)}function dA(e){return Array(e).fill(0)}function fA(e,t){let n=[],r=e.doc.resolve(t),i=r.node(-1);if(!i)return Rt.empty;let a=PO.get(i),o=r.start(-1),s=a.colCount(r.pos-o)+r.nodeAfter.attrs.colspan-1;for(let t=0;t<a.height;t++){let r=s+t*a.width;if((s==a.width-1||a.map[r]!=a.map[r+1])&&(t==0||a.map[r]!=a.map[r-a.width])){let t=a.map[r],s=o+t+i.nodeAt(t).nodeSize-1,c=document.createElement(`div`);c.className=`column-resize-handle`,Qk.getState(e)?.dragging&&n.push(Wt.node(o+t,o+t+i.nodeAt(t).nodeSize,{class:`column-resize-dragging`})),n.push(Wt.widget(s,c))}}return Rt.create(e.doc,n)}function pA({allowTableNodeSelection:e=!1}={}){return new ut({key:BO,state:{init(){return null},apply(e,t){let n=e.getMeta(BO);if(n!=null)return n==-1?null:n;if(t==null||!e.docChanged)return t;let{deleted:r,pos:i}=e.mapping.mapResult(t);return r?null:i}},props:{decorations:tk,handleDOMEvents:{mousedown:Kk},createSelectionBetween(e){return BO.getState(e.state)==null?null:e.state.selection},handleTripleClick:Wk,handleKeyDown:Bk,handlePaste:Gk},appendTransaction(t,n,r){return ik(r,sk(r,n),e)}})}var mA=new WeakSet,hA=new WeakSet;function gA(e){let t=e;return mA.add(t),t}function _A(e){return Array.isArray(e)&&mA.has(e)}function vA(e){return e.flatMap(e=>e==null?[]:Array.isArray(e)&&hA.has(e)&&!_A(e)?vA(e):[e])}function yA(e,t){if(e===`slot`)return 0;if(e instanceof Function){let n=e(t);return Array.isArray(n)&&!_A(n)&&!hA.has(n)?gA(n):n}let{children:n,...r}=t??{};if(e===`svg`)throw Error(`SVG elements are not supported in the JSX syntax, use the array syntax instead`);if(Array.isArray(n)){if(_A(n))return gA([e,r,n]);if(n.length===0)return gA([e,r]);let t=vA(n);return t.length===0?gA([e,r]):gA([e,r,...t])}return gA(n==null?[e,r]:[e,r,n])}var bA=(e,t)=>yA(e,t),xA=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,SA=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,CA=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,wA=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,TA=VD.create({name:`bold`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`strong`},{tag:`b`,getAttrs:e=>e.style.fontWeight!==`normal`&&null},{style:`font-weight=400`,clearMark:e=>e.type.name===this.name},{style:`font-weight`,getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return bA(`strong`,{...zT(this.options.HTMLAttributes,e),children:bA(`slot`,{})})},markdownTokenName:`strong`,parseMarkdown:(e,t)=>t.applyMark(`bold`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<strong>`,close:`</strong>`}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[pO({find:xA,type:this.type}),pO({find:CA,type:this.type})]},addPasteRules(){return[gO({find:SA,type:this.type}),gO({find:wA,type:this.type})]}}),EA=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&e[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},DA=e=>{let t=/`([^`]+)`(?!`)/g,n=[],r;for(;(r=t.exec(e))!==null;)r.index>0&&e[r.index-1]==="`"||n.push({index:r.index,text:r[0],replaceWith:r[1]});return n};function OA(e){let t=new Set((e.match(/`+/g)||[]).map(e=>e.length)),n=1;for(;t.has(n);)n+=1;return n}var kA=VD.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,zT(this.options.HTMLAttributes,e),0]},markdownTokenName:`codespan`,parseMarkdown:(e,t)=>t.applyMark(`code`,[{type:`text`,text:e.text||``}]),renderMarkdown:(e,t,n)=>{var r;if(!e.content)return``;let i=typeof(n==null||(r=n.meta)==null?void 0:r.markText)==`string`?n.meta.markText:``,a="`".repeat(OA(i)),o=i.startsWith("`")||i.endsWith("`")?` `:``;return`${a}${o}${t.renderChildren(e.content)}${o}${a}`},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[pO({find:EA,type:this.type})]},addPasteRules(){return[gO({find:DA,type:this.type})]}}),AA=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,jA=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,MA=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,NA=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,PA=VD.create({name:`italic`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`em`},{tag:`i`,getAttrs:e=>e.style.fontStyle!==`normal`&&null},{style:`font-style=normal`,clearMark:e=>e.type.name===this.name},{style:`font-style=italic`}]},renderHTML({HTMLAttributes:e}){return[`em`,zT(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:`em`,parseMarkdown:(e,t)=>t.applyMark(`italic`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<em>`,close:`</em>`}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[pO({find:AA,type:this.type}),pO({find:MA,type:this.type})]},addPasteRules(){return[gO({find:jA,type:this.type}),gO({find:NA,type:this.type})]}}),FA=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,IA=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,LA=VD.create({name:`strike`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`s`},{tag:`del`},{tag:`strike`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`line-through`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`s`,zT(this.options.HTMLAttributes,e),0]},markdownTokenName:`del`,parseMarkdown:(e,t)=>t.applyMark(`strike`,t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[pO({find:FA,type:this.type})]},addPasteRules(){return[gO({find:IA,type:this.type})]}}),RA=VD.create({name:`underline`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`u`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`underline`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`u`,zT(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||`underline`,t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:`underline`,level:`inline`,start(e){return e.indexOf(`++`)},tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:`underline`,raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),zA=`childContainer`,BA=`blockGroupChild`;function VA(e){return e.isInGroup(`childContainer`)&&e.isInGroup(`bnBlock`)}function HA(e,t){return e.nodes.blockGroup.createChecked({},t)}function UA(e){return VA(e)&&e.spec.blockConfig?.placeable===`namedOnly`}var WA={min:30,max:49},GA=101;function KA(e){if(e===void 0)return 40;let t=Math.round((e-GA)/10);return Math.min(WA.max,Math.max(WA.min,40+t))}function qA(e){return e!==void 0&&`min`in e?e.min??1:1}function JA(e,t){if(e.length===0)return BA;let n=[`blockContainer`,...Object.entries(t).filter(([t,{config:n}])=>n.layoutOnly===!0&&n.placeable!==`namedOnly`&&!e.includes(t)).map(([e])=>e)];return n.length===1?n[0]:`(${n.join(` | `)})`}function YA(e={},t=BA){let{allow:n=`blocks`}=e,r=qA(e),i;if(n===`blocks`)i=t;else{if(n.length===0)throw Error("Layout block `allow` permits nothing. A layout block must accept at least one block or layout block type; drop `children` entirely for a block that holds none.");i=n.length===1?n[0]:`(${n.join(` | `)})`}return i+(r===0?`*`:r===1?`+`:`{${r},}`)}function XA(e,t){return t===`start`?e.beforePos+4:e.afterPos-4}function ZA(e,t){return!e.hasContent||e.contentKind===`none`?null:e.contentKind===`table`?XA(e.content,t):t===`start`?e.contentStart:e.contentEnd}function QA(e,t,n){let r=ZA(t,n);if(r!==null)return et.create(e,r);if(t.hasContent)return it.create(e,t.content.beforePos);let{node:i,childrenStart:a,childrenEnd:o}=t.children,s=n===`start`?i.firstChild:i.lastChild;return s?QA(e,ij(s,n===`start`?a:o-s.nodeSize),n):it.create(e,t.block.beforePos)}function $A(e){return e.marks.some(e=>[`y-attributed-delete`].includes(e.type.name))}var ej=new WeakMap;function tj(e){let t=ej.get(e);if(t===void 0){let n=new Map,r=new Map;e.descendants(e=>{let t=e.attrs.id;if(t){let i=r.get(t)??0;$A(e)&&!n.has(e)&&n.set(e,`${t}-${i}`),r.set(t,i+1)}return!0}),t=n,ej.set(e,t)}return t}function nj(e,t){let n=e.attrs.id;if(!n)throw Error(`Node ${e.type.name} does not have an ID`);if($A(e)){let r=tj(t).get(e);if(r===void 0)throw Error(`Node ${e.type.name} with ID ${n} not found in document`);return r}return n}function rj(e,t){let n=e.resolve(t);if(n.nodeAfter&&n.nodeAfter.type.isInGroup(`bnBlock`))return{posBeforeNode:n.pos,node:n.nodeAfter};let r=n.depth,i=n.node(r);for(;r>0;){if(i.type.isInGroup(`bnBlock`))return{posBeforeNode:n.before(r),node:i};r--,i=n.node(r)}let a=[];e.descendants((e,t)=>{e.type.isInGroup(`bnBlock`)&&a.push(t)}),console.warn(`Position ${t} is not within a blockContainer node.`);let o=e.resolve(a.find(e=>e>=t)||a[a.length-1]);return{posBeforeNode:o.pos,node:o.nodeAfter}}function ij(e,t){if(!e.type.isInGroup(`bnBlock`))throw Error(`Attempted to get block node at position but found node of different type ${e.type.name}`);let n={node:e,beforePos:t,afterPos:t+e.nodeSize};if(VA(e.type))return{hasContent:!1,block:n,children:{...n,childrenStart:n.beforePos+1,childrenEnd:n.afterPos-1},blockNoteType:e.type.name};if(e.type.name===`blockContainer`){let r=e.firstChild;if(!r||!r.type.isInGroup(`blockContent`))throw Error(`blockContainer must start with a block content node.`);let i={node:r,beforePos:t+1,afterPos:t+1+r.nodeSize},a;if(e.childCount>1){let t=e.child(1);if(e.childCount!==2||t.type.name!==`blockGroup`)throw Error(`blockContainer may only have a blockGroup after its content.`);a={node:t,beforePos:i.afterPos,afterPos:n.afterPos-1,childrenStart:i.afterPos+1,childrenEnd:n.afterPos-2}}let o=i.node.type.spec.blockConfig;if(!o)throw Error(`Block content node "${i.node.type.name}" was not built from a block spec, so it has no content kind. Register it with \`createBlockSpec\`/\`createBlockSpecFromTiptapNode\` instead of joining the \`blockContent\` group directly.`);return{hasContent:!0,block:n,content:i,children:a,contentStart:i.beforePos+1,contentEnd:i.afterPos-1,contentKind:o.content,isContentEmpty:i.node.childCount===0,blockNoteType:i.node.type.name}}throw Error(`Node "${e.type.name}" is not a container or blockContainer.`)}function aj(e,t){let n=e.resolve(t);if(!n.nodeAfter)throw Error(`Attempted to get block node at position ${t} but a node at this position does not exist`);return ij(n.nodeAfter,n.pos)}function oj(e,t){let n=rj(e.doc,t);return ij(n.node,n.posBeforeNode)}function sj(e){return oj(e,e.selection.anchor)}function cj(e,t){let n=e.resolve(t),r=n.node();if(r.type.isInGroup(`bnBlock`))return aj(e,n.before(n.depth));if(r.type.isInGroup(`childContainer`)&&n.depth>1)return aj(e,n.before(n.depth-1))}function lj(e,t){let n=e.resolve(t),r=n.index();if(r!==0)return aj(e,n.posAtIndex(r-1))}function uj(e,t){let n=e.resolve(t),r=n.index();if(r!==n.node().childCount-1)return aj(e,n.posAtIndex(r+1))}function dj(e){for(;e.children&&e.children.node.childCount;){let t=e.children.node.lastChild;e=ij(t,e.children.childrenEnd-t.nodeSize)}return e}function fj(e,t,n,r){if(n===`before`||n===`after`){let i=n===`before`?t.block.beforePos:t.block.afterPos,a=e.resolve(i);return a.parent.canReplaceWith(a.index(),a.index(),r)?{pos:i}:null}if(!t.children){let e=r.schema.nodes.blockGroup;return t.hasContent&&e?.contentMatch.matchType(r)?{pos:t.content.afterPos,wrapIn:e}:null}let i=n===`last-child`;for(;t.children;){let e=t.children,n=i?e.node.childCount:0;if(e.node.canReplaceWith(n,n,r))return{pos:i?e.childrenEnd:e.childrenStart};let a=i?e.node.lastChild:e.node.firstChild;if(!a||!VA(a.type))break;t=ij(a,i?e.childrenEnd-a.nodeSize:e.childrenStart)}return null}function pj(e){for(;!e.hasContent;){let{node:t,childrenStart:n}=e.children;if(!t.firstChild)return null;e=ij(t.firstChild,n)}return e}function mj(e,t,n,r=`before`){for(;;){let i=e.resolve(t),a=i.node();if(a.canReplaceWith(i.index(),i.index(),n))return t;if(i.depth>0&&VA(a.type))t=r===`before`?i.before():i.after();else return}}function hj(e,t){let n=e.resolve(t),r=[];for(let e=n.depth;e>0;e--){let t=n.node(e);if(!VA(t.type))break;t.attrs.id&&r.push({id:t.attrs.id,depth:e})}return r}function gj(e,t){return t.length===1&&t[0].before===e?t[0]:_T(e,[...t])}function _j(e){let{mapping:t,steps:n}=e,r=t.maps;for(let e=0;e<r.length;e++)if(t.getMirror(e)!==void 0)return rE({mapping:t,steps:n});let i=new yj(r),a=[];return r.forEach((e,t)=>{let r=[];if(e.forEach((e,t)=>r.push({from:e,to:t})),!r.length){let{from:e,to:i}=n[t];if(e===void 0||i===void 0)return;r.push({from:e,to:i})}for(let{from:e,to:n}of r){let r=i.mapForward(e,-1,t),o=i.mapForward(n,1,t);a.push({oldRange:{from:i.mapBackward(r,-1),to:i.mapBackward(o,1)},newRange:{from:r,to:o}})}}),vj(a)}function vj(e){let t=new Set,n=e.filter(({oldRange:e,newRange:n})=>{let r=`${e.from},${e.to},${n.from},${n.to}`;return!t.has(r)&&(t.add(r),!0)});if(n.length===1)return n;let r=n.map((e,t)=>t).sort((e,t)=>n[e].newRange.from-n[t].newRange.from),i=new xj(r.map(e=>n[e].newRange.to),`max`);return n.filter((e,t)=>{let a=0,o=r.length-1;for(;a<o;){let t=a+o+1>>1;n[r[t]].newRange.from<=e.newRange.from?a=t:o=t-1}return!i.someBefore(a,t=>t>=e.newRange.to,e=>r[e]!==t)})}var yj=class{maps;inverted;firstStarts=[];oldEnds=[];newEnds=[];shift=[0];trees;constructor(e){this.maps=e,this.inverted=Array(e.length);for(let t of e){let e=1/0,n=-1/0,r=-1/0,i=0;t.forEach((t,a,o,s)=>{e=Math.min(e,t,o),n=Math.max(n,a),r=Math.max(r,s),i+=s-o-(a-t)}),this.firstStarts.push(e),this.oldEnds.push(n),this.newEnds.push(r),this.shift.push(this.shift[this.shift.length-1]+i)}}mapForward(e,t,n){let r=0,i=n;for(;i<this.maps.length;)if(e<this.firstStarts[i])r=Math.max(r,0)+1,r>bj?(i=this.getTrees().firstStart.firstFrom(i,t=>t<=e),r=0):i++;else if(e>this.oldEnds[i]){if(r=Math.min(r,0)-1,r<-bj){let t=e-this.shift[i],n=this.getTrees().forwardShiftFrom.firstFrom(i,e=>e>=t);e+=this.shift[n]-this.shift[i],i=n,r=0}else e+=this.shift[i+1]-this.shift[i],i++}else e=this.maps[i].map(e,t),r=0,i++;return e}mapBackward(e,t){let n=0,r=this.maps.length-1;for(;r>=0;)if(e<this.firstStarts[r])n=Math.max(n,0)+1,n>bj?(r=this.getTrees().firstStart.lastFrom(r,t=>t<=e),n=0):r--;else if(e>this.newEnds[r]){if(n=Math.min(n,0)-1,n<-bj){let t=e-this.shift[r+1],i=this.getTrees().backwardShiftFrom.lastFrom(r,e=>e>=t);e-=this.shift[r+1]-this.shift[i+1],r=i,n=0}else e-=this.shift[r+1]-this.shift[r],r--}else this.inverted[r]??=this.maps[r].invert(),e=this.inverted[r].map(e,t),n=0,r--;return e}getTrees(){return this.trees??={firstStart:new xj(this.firstStarts,`min`),forwardShiftFrom:new xj(this.oldEnds.map((e,t)=>e-this.shift[t]),`max`),backwardShiftFrom:new xj(this.newEnds.map((e,t)=>e-this.shift[t+1]),`max`)},this.trees}},bj=8,xj=class{values;kind;size;tree;constructor(e,t){this.values=e,this.kind=t,this.size=e.length,this.tree=Array(4*Math.max(1,e.length)),e.length&&this.build(1,0,e.length-1)}firstFrom(e,t){let n=this.first(1,0,this.size-1,e,t);return n===-1?this.size:n}lastFrom(e,t){return this.last(1,0,this.size-1,e,t)}someBefore(e,t,n){for(let r=this.lastFrom(e,t);r!==-1;){if(n(r))return!0;r=r===0?-1:this.lastFrom(r-1,t)}return!1}build(e,t,n){if(t===n){this.tree[e]=this.values[t];return}let r=t+n>>1;this.build(2*e,t,r),this.build(2*e+1,r+1,n),this.tree[e]=this.kind===`min`?Math.min(this.tree[2*e],this.tree[2*e+1]):Math.max(this.tree[2*e],this.tree[2*e+1])}first(e,t,n,r,i){if(n<r||!i(this.tree[e]))return-1;if(t===n)return t;let a=t+n>>1,o=this.first(2*e,t,a,r,i);return o===-1?this.first(2*e+1,a+1,n,r,i):o}last(e,t,n,r,i){if(t>r||!i(this.tree[e]))return-1;if(t===n)return t;let a=t+n>>1,o=this.last(2*e+1,a+1,n,r,i);return o===-1?this.last(2*e,t,a,r,i):o}};function Sj(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function Cj(e){return Sj(e.filter((t,n)=>e.indexOf(t)!==n))}function wj(e){return e.marks.some(e=>e.type.name===`y-attributed-delete`)}var Tj=YD.create({name:`uniqueID`,priority:1e4,addOptions(){return{types:[],setIdAttribute:!1,isWithinEditor:void 0,generateID:()=>{let e=globalThis.window??globalThis;if(e.__TEST_OPTIONS){let t=e.__TEST_OPTIONS;return t.mockID===void 0?t.mockID=0:t.mockID++,t.mockID.toString()}return jO()}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{id:{default:null,parseHTML:e=>e.getAttribute(`data-id`),renderHTML:e=>{let t={"data-id":e.id};return this.options.setIdAttribute?{...t,id:e.id}:t}}}}]},addProseMirrorPlugins(){let{isWithinEditor:e}=this.options,t=null,n=!1;return[new ut({key:new on(`uniqueID`),appendTransaction:(e,t,n)=>{if(!e.some(e=>e.docChanged)||t.doc.eq(n.doc))return;let{tr:r}=n,{types:i,generateID:a}=this.options,o=gj(t.doc,e),{mapping:s}=o;if(_j(o).forEach(({newRange:e})=>{let o=vT(n.doc,e,e=>i.includes(e.type.name)),c=Cj(o.filter(({node:e})=>!wj(e)).map(({node:e})=>e.attrs.id).filter(e=>e!==null));o.forEach(({node:e,pos:i})=>{if(wj(e))return;let o=r.doc.nodeAt(i)?.attrs.id;if(o===null){let o=t.doc.type.createAndFill().content;if(t.doc.content.findDiffStart(o)===null){let t=JSON.parse(JSON.stringify(n.doc.toJSON()));if(t.content[0].content[0].attrs.id=`initialBlockId`,JSON.stringify(t.content)===JSON.stringify(o.toJSON())){r.setNodeMarkup(i,void 0,{...e.attrs,id:`initialBlockId`});return}}r.setNodeMarkup(i,void 0,{...e.attrs,id:a()})}else c.includes(o)&&s.invert().mapResult(i).deleted&&r.setNodeMarkup(i,void 0,{...e.attrs,id:a()})})}),r.steps.length)return r.setMeta(`uniqueID`,!0),r},view(n){let r=r=>{let i=n.dom.parentElement;t=i?.contains(r.target)||e?.(r.target)?i:null};return window.addEventListener(`dragstart`,r),{destroy(){window.removeEventListener(`dragstart`,r)}}},props:{handleDOMEvents:{drop:(e,r)=>(n=t!==e.dom.parentElement||r.dataTransfer?.effectAllowed===`copy`,t=null,!1),paste:()=>(n=!0,!1)},transformPasted:e=>{if(!n)return e;let{types:t}=this.options,r=e=>{let n=[];return e.forEach(e=>{if(e.isText){n.push(e);return}if(!t.includes(e.type.name)){n.push(e.copy(r(e.content)));return}let i=e.type.create({...e.attrs,id:null},r(e.content),e.marks);n.push(i)}),Vt.from(n)};return n=!1,new xt(r(e.content),e.openStart,e.openEnd)}}})]}});function Ej(e){return e.type===`link`}function Dj(e){return typeof e!=`string`&&e.type===`link`}function Oj(e){return typeof e!=`string`&&e.type===`text`}function kj(e){return jj(e)?{...e}:Aj(e)?{type:`tableCell`,content:[].concat(e.content),props:{backgroundColor:e.props?.backgroundColor??`default`,textColor:e.props?.textColor??`default`,textAlignment:e.props?.textAlignment??`left`,colspan:e.props?.colspan??1,rowspan:e.props?.rowspan??1}}:{type:`tableCell`,content:[].concat(e),props:{backgroundColor:`default`,textColor:`default`,textAlignment:`left`,colspan:1,rowspan:1}}}function Aj(e){return e!=null&&typeof e!=`string`&&!Array.isArray(e)&&e.type===`tableCell`}function jj(e){return Aj(e)&&e.props!==void 0&&e.content!==void 0}function Mj(e){return jj(e)?e.props.colspan??1:1}function Nj(e){return jj(e)?e.props.rowspan??1:1}var Pj=class extends Error{constructor(e){super(`Unreachable case: ${e}`)}};function Fj(e,t=!0){let{"data-test":n,...r}=e;if(Object.keys(r).length>0&&t)throw Error(`Object must be empty `+JSON.stringify(e))}var yee=()=>typeof navigator<`u`&&(/Mac/.test(navigator.platform)||/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent));function Ij(e,t=`Ctrl`){return yee()?e.replace(`Mod`,`⌘`):e.replace(`Mod`,t)}function Lj(...e){return[...new Set(e.filter(e=>e).join(` `).split(` `))].join(` `)}var bee=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rj,zj=()=>typeof navigator>`u`||typeof window>`u`?!1:(Rj===void 0&&(Rj=navigator.maxTouchPoints>0&&typeof window.matchMedia==`function`&&window.matchMedia(`(pointer: coarse)`).matches),Rj);function xee(e,t,n,r){let i=document.createElement(`div`);i.className=Lj(`bn-block-content`,n.class),i.setAttribute(`data-content-type`,e);for(let[e,t]of Object.entries(n))e!==`class`&&i.setAttribute(e,t);let a=document.createElement(t);a.className=Lj(`bn-inline-content`,r.class);for(let[e,t]of Object.entries(r))e!==`class`&&a.setAttribute(e,t);return i.appendChild(a),{dom:i,contentDOM:a}}var Bj=(e,t)=>{let n=FN(e,t.pmSchema);n.type.name===`blockContainer`&&(n=n.firstChild);let r=t.pmSchema.nodes[n.type.name].spec.toDOM;if(r===void 0)throw Error("This block has no default HTML serialization as its corresponding TipTap node doesn't implement `renderHTML`.");let i=r(n);if(typeof i!=`object`||!(`dom`in i))throw Error("Cannot use this block's default HTML serialization as its corresponding TipTap node's `renderHTML` function does not return an object with the `dom` property.");return i};function Vj(e,t=`<br>`){let n=e.querySelectorAll(`p`);if(n.length>1){let e=n[0];for(let r=1;r<n.length;r++){let i=n[r];e.innerHTML+=t+i.innerHTML,i.remove()}}}var See=`blockLevelSuggestion`;function Hj(e){return e&&e.options.extensions.some(e=>{if(e.type!==`mark`)return!1;let t=xT(e,`group`);return typeof t==`string`&&t.split(` `).includes(`blockLevelSuggestion`)})?See:``}function Uj(e){return e.type!==`attributes`||!e.attributeName?!1:e.attributeName.startsWith(`data-darkreader`)?!0:e.attributeName===`style`?(e.target.getAttribute(`style`)??``).includes(`--darkreader`)||(e.oldValue??``).includes(`--darkreader`):!1}function Cee(e){let t=e.ignoreMutation?.bind(e),n=e.contentDOM;e.ignoreMutation=e=>Uj(e)?!0:t?t(e):!n&&e.type!==`selection`}function Wj(e){return`data-`+e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}function wee(e){let t=e.split(`/`);return!t.length||t[t.length-1]===``?e:t[t.length-1]}function Tee(e){let t=[`mp4`,`webm`,`ogg`,`mov`,`mkv`,`flv`,`avi`,`wmv`,`m4v`];try{let n=new URL(e).pathname.split(`.`).pop()?.toLowerCase()||``;return t.includes(n)}catch{return!1}}function Gj(e,t){return[...new Set([...Object.keys(e),...Object.keys(t)])].filter(e=>e in t)}function Kj(e,t){let n={};for(let r of Gj(e,t)){let i=e[r];i!==void 0&&i!==t[r].default&&(n[Wj(r)]=String(i))}return n}function qj(e,t){for(let[n,r]of Object.entries(t))e.setAttribute(n,r)}function Jj(e,t,n){let r=Kj(t,n);for(let i of Gj(t,n)){let t=Wj(i);t in r?e.setAttribute(t,r[t]):e.removeAttribute(t)}}function Yj(e){return`doc`in e?e.doc.type.schema:e.type.schema}function Xj(e){return e.cached.blockNoteEditor}function Zj(e){return Xj(e).schema}function Qj(e){return Zj(e).blockSchema}function $j(e){return Zj(e).inlineContentSchema}function eM(e){return Zj(e).styleSchema}function tM(e){return Xj(e).blockCache}function nM(e,t){if(Qj(e)[t.name]?.content===`plain`)return!0;let n=$j(e)[t.name];return typeof n==`object`&&n.content===`plain`}function rM(e){let t=``;return e.forEach(e=>{$A(e)||(t+=e.textContent)}),t}function iM(e,t,n){let r={type:`tableContent`,columnWidths:[],headerRows:void 0,headerCols:void 0,rows:[]},i=[];e.content.forEach((e,a,o)=>{let s={cells:[]};o===0&&e.content.forEach(e=>{let t=e.attrs.colwidth;t??=Array(e.attrs.colspan??1).fill(void 0),r.columnWidths.push(...t)}),s.cells=e.content.content.map((e,r)=>(i[o]||(i[o]=[]),i[o][r]=e.type.name===`tableHeader`,{type:`tableCell`,content:e.content.content.map(e=>aM(e,t,n)).reduce((e,t)=>{if(!e.length)return t;let n=e[e.length-1],r=t[0];return r&&Oj(n)&&Oj(r)&&JSON.stringify(n.styles)===JSON.stringify(r.styles)?(n.text+=`
|
|
399
|
+
`+r.text,e.push(...t.slice(1)),e):(e.push(...t),e)},[]),props:{colspan:e.attrs.colspan,rowspan:e.attrs.rowspan,backgroundColor:e.attrs.backgroundColor,textColor:e.attrs.textColor,textAlignment:e.attrs.textAlignment}})),r.rows.push(s)});for(let e=0;e<i.length;e++)i[e]?.every(e=>e)&&(r.headerRows=(r.headerRows??0)+1);for(let e=0;e<i[0]?.length;e++)i?.every(t=>t[e])&&(r.headerCols=(r.headerCols??0)+1);return r}function aM(e,t,n){let r=[],i;return e.content.forEach(e=>{if(e.type.name===`hardBreak`){if(i){if(Oj(i))i.text+=`
|
|
400
|
+
`;else if(Ej(i))i.content[i.content.length-1].text+=`
|
|
401
|
+
`;else throw Error(`unexpected`)}else i={type:`text`,text:`
|
|
402
|
+
`,styles:{}};return}if(e.type.name!==`link`&&e.type.name!==`text`){if(!t[e.type.name]){console.warn(`unrecognized inline content type`,e.type.name);return}i&&=(r.push(i),void 0),r.push(oM(e,t,n));return}let a={},o;for(let t of e.marks)if(t.type.name===`link`)o=t;else{let e=n[t.type.name];if(!e){if(t.type.spec.blocknoteIgnore)continue;throw Error(`style ${t.type.name} not found in styleSchema`)}if(e.propSchema===`boolean`)a[e.type]=!0;else if(e.propSchema===`string`)a[e.type]=t.attrs.stringValue;else throw new Pj(e.propSchema)}i?Oj(i)?o?(r.push(i),i={type:`link`,href:o.attrs.href,content:[{type:`text`,text:e.textContent,styles:a}]}):JSON.stringify(i.styles)===JSON.stringify(a)?i.text+=e.textContent:(r.push(i),i={type:`text`,text:e.textContent,styles:a}):Ej(i)&&(o?i.href===o.attrs.href?JSON.stringify(i.content[i.content.length-1].styles)===JSON.stringify(a)?i.content[i.content.length-1].text+=e.textContent:i.content.push({type:`text`,text:e.textContent,styles:a}):(r.push(i),i={type:`link`,href:o.attrs.href,content:[{type:`text`,text:e.textContent,styles:a}]}):(r.push(i),i={type:`text`,text:e.textContent,styles:a})):i=o?{type:`link`,href:o.attrs.href,content:[{type:`text`,text:e.textContent,styles:a}]}:{type:`text`,text:e.textContent,styles:a}}),i&&r.push(i),r}function oM(e,t,n){if(e.type.name===`text`||e.type.name===`link`)throw Error(`unexpected`);let r={},i=t[e.type.name];for(let[t,n]of Object.entries(e.attrs)){if(!i)throw Error(`ic node is of an unrecognized type: `+e.type.name);t in i.propSchema&&(r[t]=n)}let a;return a=i.content===`styled`?aM(e,t,n):i.content===`plain`?rM(e):void 0,{type:e.type.name,props:r,content:a}}function sM(e,t){let n=e.type.schema,r=Qj(n),i=$j(n),a=eM(n),o=tM(n);if(!e.type.isInGroup(`bnBlock`))throw Error(`Node should be a block, but is instead: `+e.type.name);let s=o?.get(e);if(s)return s;let c=ij(e,0),l;try{l=nj(c.block.node,t)}catch{l=Tj.options.generateID()}let u=r[c.blockNoteType];if(!u)throw Error(`Block is of an unrecognized type: `+c.blockNoteType);let d={};for(let[t,n]of Object.entries({...e.attrs,...c.hasContent?c.content.node.attrs:{}})){let e=u.propSchema;t in e&&(e[t].default!==void 0||n!==void 0)&&(d[t]=n)}let f=[];c.children?.node.forEach(e=>{f.push(sM(e,t))});let p;switch(c.contentKind){case`inline`:p=aM(c.content.node,i,a);break;case`table`:p=iM(c.content.node,i,a);break;case`plain`:{let e=rM(c.content.node);p=e.length>0?[{type:`text`,text:e,styles:{}}]:[];break}case`none`:case void 0:p=void 0;break;default:throw new Pj(c)}let m={id:l,type:u.type,props:d,content:p,children:f};return o?.set(e,m),m}function cM(e){let t=[];return e.firstChild&&e.firstChild.descendants(n=>(t.push(sM(n,e)),!1)),t}function lM(e){function t(n,r,i){if(n.type.name!==`blockGroup`&&!VA(n.type))throw Error(`unexpected`);let a=[],o,s;return n.forEach((c,l,u)=>{let d=u===0,f=u===n.childCount-1,p=VA(c.type);if(!p){if(c.type.name!==`blockContainer`)throw Error(`unexpected`);if(c.childCount===0)return;if(c.childCount>2)throw Error(`unexpected, blockContainer.childCount: `+c.childCount)}let m=!p&&c.firstChild.type.name===`blockGroup`;if(m&&!d)throw Error(`unexpected`);if(m||p&&(d&&r>0||f&&i>0)){let e=t(p?c:c.firstChild,d?Math.max(0,r-1):0,f?Math.max(0,i-1):0);d&&(o=e.blockCutAtStart),f&&(s=e.blockCutAtEnd),a.push(...e.blocks);return}if(p){a.push(sM(c,e.content.firstChild));return}let h=sM(c,e.content.firstChild),g=c.childCount>1?c.child(1):void 0,_=[];if(g){let e=t(g,0,f?Math.max(0,i-1):0);_=e.blocks,f&&(s=e.blockCutAtEnd)}f&&!g&&i>1&&(s=h.id),d&&r>1&&(o=h.id),a.push({...h,children:_})}),{blocks:a,blockCutAtStart:o,blockCutAtEnd:s}}if(e.content.childCount===0)return{blocks:[],blockCutAtStart:void 0,blockCutAtEnd:void 0};if(e.content.childCount!==1)throw Error(`slice must be a single block, did you forget includeParents=true?`);return t(e.content.firstChild,Math.max(e.openStart-1,0),Math.max(e.openEnd-1,0))}function uM(e,t,n,r,i){e&&(Jj(e,n,r),e.setAttribute(`data-node-type`,t),i&&e.setAttribute(`data-id`,i))}var dM=`data-frame-slot`;function fM(e){e.setAttribute(dM,``)}function pM(e){if(e.hasAttribute(`data-frame-slot`))return e;for(let t of e.querySelectorAll(`[${dM}]`))if(t.closest(`[data-node-type]`)===e)return t}function mM(e,t,n){uM(t.dom,e.type,n.props,e.propSchema,n.id),fM(t.slot)}function hM(e,t){let n=e.blockImplementations[t.type],r=n.implementation.renderFrame?.call({renderType:`dom`,props:void 0,propSchema:n.config.propSchema},t,e);if(n.config.layoutOnly===!0){if(!r)throw Error(`Layout block "${t.type}" must draw its frame: \`renderFrame\` returned undefined.`);mM(n.config,r,t)}return r}function gM(e){let{props:t,editor:n,blockNode:r}=e;return n.blockImplementations[r(t.node).type.name].implementation.frameView?.(t)??_M(e)}function _M(e){let{props:t,editor:n,blockNode:r,unframed:i}=e,a=n.blockImplementations[r(t.node).type.name].config;function o(e,t){a.layoutOnly===!0&&mM(a,e,t)}function s(e){let i=n.blockImplementations[r(e).type.name],a=i.implementation.renderFrame;if(!a)return;let s=sM(e,t.view.state.doc),c=a.call({renderType:`nodeView`,props:t,propSchema:i.config.propSchema},s,n);if(c)return o(c,s),c}let c=s(t.node),l,u;if(c)l=c.dom,u=c.slot;else if(i)l=i,u=i;else throw Error(`Block "${r(t.node).type.name}" must draw its frame: \`renderFrame\` returned undefined.`);let d=t.node;return{dom:l,slot:u,get node(){return d},update(e){let n=r(d),i=r(e);if(!c){let t=i.sameMarkup(n)?void 0:s(e);return t?(t.destroy?.(),!1):(d=e,!0)}if(i.type!==n.type)return!1;if(c.update){let n=sM(e,t.view.state.doc);if(c.update(n)===!1)return!1;o(c,n)}else if(!i.sameMarkup(n))return!1;return d=e,!0},destroy:()=>c?.destroy?.()}}var vM=new Set([`dragenter`,`dragover`,`dragleave`,`drop`,`copy`,`cut`,`paste`]);function yM(e,t){let n=t.target;return n instanceof globalThis.Node&&e.dom.contains(n)&&!e.slot.contains(n)&&!vM.has(t.type)}function bM(e,t){return t.type===`selection`?!1:Uj(t)||t.target===e.slot&&t.type===`attributes`?!0:e.dom.contains(t.target)&&!e.slot.contains(t.target)}function xM(e){return{stopEvent:t=>yM(e,t),ignoreMutation:t=>bM(e,t),selectNode:e.selectNode?.bind(e),deselectNode:e.deselectNode?.bind(e),destroy:e.destroy?.bind(e)}}function SM(e,t){let{isLayoutBlock:n,hardBreakShortcut:r}=t,i={enter:r===`enter`?`line-break`:`split`,shiftEnter:r===`none`?`same-as-enter`:`line-break`,splitKeepsType:!1,splitKeepsChildren:!1,resetsTo:{type:`paragraph`},emptyEnterResets:!1,emptyChildEnter:n?`exit-at-end`:`outdent`,childrenCanOutdent:!n};if(typeof e==`function`)return t=>CM(i,e(t));let a=CM(i,e);return()=>a}function CM(e,t){let n={...e};for(let[e,r]of Object.entries(t??{}))r!==void 0&&Object.assign(n,{[e]:r});return t?.splitKeepsChildren===void 0&&(n.splitKeepsChildren=n.enter===`into-children`),n}function wM(e,t){let n=t.layoutOnly===!0;return{...e,selectable:e?.selectable??!0,code:n?!1:e?.code??!1,defining:n?!0:e?.defining??!0,isolating:n?!1:e?.isolating??!0,draggable:e?.draggable??t.placeable!==`namedOnly`}}function TM(e){let t={};return Object.entries(e).forEach(([e,n])=>{t[e]={default:n.default,keepOnSplit:!0,parseHTML:t=>{let r=t.getAttribute(Wj(e));if(r===null)return null;if(n.default===void 0&&n.type===`boolean`||n.default!==void 0&&typeof n.default==`boolean`)return r===`true`||r!==`false`&&null;if(n.default===void 0&&n.type===`number`||n.default!==void 0&&typeof n.default==`number`){let e=parseFloat(r);return!Number.isNaN(e)&&Number.isFinite(e)?e:null}return r},renderHTML:t=>Kj({[e]:t[e]},{[e]:n})}}),t}function EM(e,t){let n=e();if(n===void 0)throw Error(`Cannot find node position`);let r=t.resolve(n).node();if(!r)throw Error(`Cannot find block container`);return sM(r,t)}function DM(e,t,n){try{return EM(e,n)}catch(e){let r=n.type.schema.nodes.blockContainer?.createAndFill(null,t);if(r)return sM(r,n);throw e}}var OM=11;function kM(e){return e.nodeType===OM}function AM(e,t){if(t&&!kM(e))for(let[n,r]of Object.entries(t))n===`class`?e.className=Lj(e.className,r):e.setAttribute(n,r)}function jM(e,t,n,r,i=!1,a){let o=document.createElement(`div`);if(a!==void 0)for(let[e,t]of Object.entries(a))e!==`class`&&o.setAttribute(e,t);return o.className=Lj(`bn-block-content`,a?.class||``),o.setAttribute(`data-content-type`,t),qj(o,Kj(n,r)),i&&o.setAttribute(`data-file-block`,``),o.appendChild(e.dom),e.contentDOM&&(e.contentDOM.className=Lj(`bn-inline-content`,e.contentDOM.className)),{...e,dom:o}}function MM(e,t,n){return{config:{type:e.type,content:e.content,propSchema:t},implementation:{node:e.node,meta:wM(void 0,{}),keyboard:SM(void 0,{isLayoutBlock:!1,hardBreakShortcut:void 0}),render:Bj,toExternalHTML:Bj},extensions:n}}function NM(e,t){e.stopEvent=e=>(e.type===`mousedown`&&setTimeout(()=>{t.view.dom.blur()},10),!0)}function PM(e,t){let n=e.layoutOnly===!0;if(!(e.content===`table`||n&&!t.parseContent))return(r,i)=>{if(t.parseContent){let e=t.parseContent({el:r,schema:i});if(e!==void 0)return e}if(n)return Dt.fromSchema(i).parse(r,{topNode:i.nodes.blockGroup.create(),preserveWhitespace:!0}).content;if(e.content===`none`)return Vt.empty;let a=r.cloneNode(!0);Vj(a,e.content===`plain`||t.meta?.code?`
|
|
403
|
+
`:`<br>`);let o=Dt.fromSchema(i).parse(a,{topNode:i.nodes.paragraph.create(),preserveWhitespace:e.content!==`plain`||`full`});if(e.content===`inline`)return o.content;let s=[];return o.content.forEach(e=>{if(e.isText){s.push(e);return}let t=e.type===i.linebreakReplacement?`
|
|
404
|
+
`:e.textContent;t&&s.push(i.text(t,e.marks))}),Vt.fromArray(s)}}function FM(e,t){let n=[e.layoutOnly===!0?{tag:`[data-node-type=${e.type}]`,contentElement:e=>pM(e)??e}:{tag:`[data-content-type=`+e.type+`]`,contentElement:`.bn-inline-content`,preserveWhitespace:e.content===`plain`?`full`:void 0}];return t.parse&&n.push({tag:`*`,getAttrs(e){if(typeof e==`string`)return!1;let n=t.parse?.(e);return n!==void 0&&n},preserveWhitespace:!0,getContent:PM(e,t)}),n}function IM(e,t){if(e.layoutOnly!==!0){if(!t.render)throw Error(`Block "${e.type}" must declare \`render\`.`)}else{if(t.render)throw Error(`Layout block "${e.type}" draws its box in \`renderFrame\`, and has no content for \`render\` to draw.`);if(!t.renderFrame)throw Error(`Layout block "${e.type}" must declare \`renderFrame\`.`)}}function LM(e,t){let n=gM({props:t,editor:t.extension.options.editor,blockNode:e=>e}),r={dom:n.dom,contentDOM:n.slot,update(e,t,r){return e.attrs.id===n.node.attrs.id&&n.update(e,t,r)},...xM(n)};return e.meta.selectable||NM(r,t.editor),r}function RM(e,t,n){if(e.layoutOnly===!0)return LM(t,n);let r=DM(n.getPos,n.node,n.view.state.doc),i=t.render.call({blockContentDOMAttributes:n.extension.options.domAttributes?.blockContent||{},props:n,renderType:`nodeView`,propSchema:e.propSchema},r,n.extension.options.editor);return t.meta.selectable||NM(i,n.editor),Cee(i),i}function zM(e){let t=e!==void 0&&`exclude`in e?e.exclude:[];return t===void 0||t.length===0?YA(e):function(){return YA(e,JA(t,this.options.editor.schema.blockSpecs))}}function BM(e,t,n){let r=e.layoutOnly===!0;return mO.create({name:e.type,content:r?zM(e.children):e.content===`inline`?`inline*`:e.content===`plain`?`text*`:e.content===`none`?``:e.content,marks(){return r?Hj(this.editor):e.content===`plain`?vO(this.editor):void 0},group:r?[`bnBlock`,zA,...e.placeable===`namedOnly`?[]:[BA]].join(` `):`blockContent`,selectable:t.meta.selectable,isolating:t.meta.isolating,code:t.meta.code,defining:t.meta.defining,priority:r?KA(n):n,addAttributes(){return TM(e.propSchema)},parseHTML(){return FM(e,t)},renderHTML({HTMLAttributes:n}){if(r){let t=document.createElement(`div`);t.setAttribute(`data-node-type`,e.type);for(let[e,r]of Object.entries(n))t.setAttribute(e,r);return{dom:t,contentDOM:t}}let i=document.createElement(`div`);return jM({dom:i,contentDOM:e.content===`inline`||e.content===`plain`?i:void 0},e.type,{},e.propSchema,t.meta.fileBlockAccept!==void 0,n)},addNodeView(){return n=>RM(e,t,n)}})}function VM(e,t,n,r){let i=e.layoutOnly===!0,a={...t,meta:wM(t.meta,e)},o=a.node??BM(e,a,r);if(o.name!==e.type)throw Error(`Node name does not match block type. This is a bug in BlockNote.`);IM(e,a);let s=o.extend({extendNodeSchema(t){return t.name===o.name?{blockConfig:e}:{}}}),{experimental_keyboard:c,render:l,toExternalHTML:u,...d}=a;return{config:e,implementation:{...d,keyboard:SM(c,{isLayoutBlock:i,hardBreakShortcut:a.meta.hardBreakShortcut}),node:s,...l&&{render(t,n){let r=s.options.domAttributes?.blockContent||{};return l.call({blockContentDOMAttributes:r,props:void 0,renderType:`dom`,propSchema:e.propSchema},t,n)}},...u&&{toExternalHTML:(t,n,r)=>{let a=s.options.domAttributes?.blockContent||{},o=u.call({blockContentDOMAttributes:a,propSchema:e.propSchema},t,n,r);return o&&i&&!kM(o.dom)&&Jj(o.dom,t.props,e.propSchema),o}}},extensions:n}}function HM(e){return e}function UM(e,t,n){return(r={})=>{let i=typeof e==`function`?e(r):e,a=typeof t==`function`?t(r):t,o=n?typeof n==`function`?n(r):n:void 0,s=i.layoutOnly===!0;IM(i,a);let c=a.render,l=a.toExternalHTML;return{config:i,implementation:{...a,...l&&{toExternalHTML(e,t,n){let r=l.call({blockContentDOMAttributes:this.blockContentDOMAttributes},e,t,n);if(r!==void 0)return s?(AM(r.dom,this.blockContentDOMAttributes),r):jM(r,e.type,e.props,this.propSchema??i.propSchema,a.meta?.fileBlockAccept!==void 0)}},...c&&{render(e,t){return jM(c.call({blockContentDOMAttributes:this.blockContentDOMAttributes,renderType:this.renderType,props:this.props},e,t),e.type,e.props,this.propSchema??i.propSchema,a.meta?.fileBlockAccept!==void 0,this.blockContentDOMAttributes)}}},extensions:o}}}function WM(e,t,n,r){return e.dom.setAttribute(`data-inline-content-type`,t),qj(e.dom,Kj(n,r)),e.contentDOM&&e.contentDOM.setAttribute(`data-editable`,``),e}function GM(e){return{Backspace:({editor:t})=>{let n=t.state.selection.$from;return t.state.selection.empty&&n.node().type.name===e.type&&n.parentOffset===0}}}function KM(e,t,n){return{config:e,implementation:t,extensions:n}}function qM(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.config]))}function JM(e){return e===`boolean`?{}:{stringValue:{default:void 0,keepOnSplit:!0,parseHTML:e=>e.getAttribute(`data-value`),renderHTML:e=>e.stringValue===void 0?{}:{"data-value":e.stringValue}}}}function YM(e,t,n,r){return e.dom.setAttribute(`data-style-type`,t),r===`string`&&e.dom.setAttribute(`data-value`,n),e.contentDOM&&e.contentDOM.setAttribute(`data-editable`,``),e}function XM(e,t){return{config:e,implementation:t}}function ZM(e,t){return XM({type:e.name,propSchema:t},{mark:e,render(t,n){let r=n.pmSchema.marks[e.name].spec.toDOM;if(r===void 0)throw Error("This block has no default HTML serialization as its corresponding TipTap node doesn't implement `renderHTML`.");let i=n.pmSchema.mark(e.name,{stringValue:t}),a=Qt.renderSpec(document,r(i,!0));if(typeof a!=`object`||!(`dom`in a))throw Error("Cannot use this block's default HTML serialization as its corresponding TipTap mark's `renderHTML` function does not return an object with the `dom` property.");return a},toExternalHTML(t,n){let r=n.pmSchema.marks[e.name].spec.toDOM;if(r===void 0)throw Error("This block has no default HTML serialization as its corresponding TipTap node doesn't implement `renderHTML`.");let i=n.pmSchema.mark(e.name,{stringValue:t}),a=Qt.renderSpec(document,r(i,!0));if(typeof a!=`object`||!(`dom`in a))throw Error("Cannot use this block's default HTML serialization as its corresponding TipTap mark's `renderHTML` function does not return an object with the `dom` property.");return a}})}function QM(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.config]))}function $M(e,t){let n=[{tag:`[data-style-type="${e.type}"]`,contentElement:e=>{let t=e;return t.matches(`[data-editable]`)?t:t.querySelector(`[data-editable]`)||t}}];return t&&n.push({tag:`*`,consuming:!1,getAttrs(e){if(typeof e==`string`)return!1;let n=t?.(e);return n!==void 0&&{stringValue:n}}}),n}function eN(e,t){let n=VD.create({name:e.type,addAttributes(){return JM(e.propSchema)},parseHTML(){return $M(e,t.parse)},renderHTML({mark:n}){return YM((t.toExternalHTML||t.render)(n.attrs.stringValue),e.type,n.attrs.stringValue,e.propSchema)},addMarkView(){return({mark:n})=>YM(t.render(n.attrs.stringValue),e.type,n.attrs.stringValue,e.propSchema)}});return XM(e,{...t,mark:n,render:n=>YM(t.render(n),e.type,n,e.propSchema),toExternalHTML:n=>YM((t.toExternalHTML||t.render)(n),e.type,n,e.propSchema)})}function tN(e){let t=rN(e),{roots:n,nonRoots:r}=iN(t),i=[];for(;n.size;){i.push(n);let r=new Set;for(let i of n){let n=e.get(i);if(n)for(let e of n){let n=t.get(e);if(n===void 0)continue;let i=n-1;t.set(e,i),i===0&&r.add(e)}}n=r}if(r=iN(t).nonRoots,r.size)throw Error(`Cycle(s) detected; toposort only works on acyclic graphs. Cyclic nodes: ${Array.from(r).join(`, `)}`);return i}function nN(e){return tN(aN(e))}function rN(e){let t=new Map;for(let[n,r]of e.entries()){t.has(n)||t.set(n,0);for(let e of r){let n=t.get(e)??0;t.set(e,n+1)}}return t}function iN(e){let t=new Set,n=new Set;for(let[r,i]of e.entries())i===0?t.add(r):n.add(r);return{roots:t,nonRoots:n}}function aN(e){let t=new Map;for(let[n,r]of e.entries()){t.has(n)||t.set(n,new Set);for(let e of r)t.has(e)||t.set(e,new Set),t.get(e).add(n)}return t}function oN(){return new Map}function sN(e,t,n){return e.has(t)||e.set(t,new Set),e.get(t).add(n),e}function cN(e){let t=oN();for(let n of e)Array.isArray(n.runsBefore)&&n.runsBefore.length>0?n.runsBefore.forEach(e=>{sN(t,n.key,e)}):sN(t,`default`,n.key);let n=nN(t),r=n.findIndex(e=>e.has(`default`));return e=>91+(n.findIndex(t=>t.has(e))+r)*10}function lN(e){for(let[t,{config:n}]of Object.entries(e)){if(n.layoutOnly===!0&&n.content!==`none`&&uN(t,'`layoutOnly: true` is only for blocks without content (`content: "none"`). A layout block holds only child blocks, no content of its own.'),n.placeable===`namedOnly`&&n.layoutOnly!==!0&&uN(t,'`placeable: "namedOnly"` is only for layout blocks (`layoutOnly: true`). Only a layout block can be limited to the blocks that name it in `children.allow`.'),!n.children)continue;let{allow:r=`blocks`,min:i,exclude:a,dissolve:o}=n.children;if(n.layoutOnly!==!0)(r!==`blocks`||i!==void 0||a!==void 0||o!==void 0)&&uN(t,'restricting child types, a minimum count or `dissolve` requires `layoutOnly: true`. Other blocks can always have any child blocks (`{ allow: "blocks" }`).');else{if(r===`blocks`&&(i!==void 0||o!==void 0)&&uN(t,`\`children.${i===void 0?`dissolve`:`min`}\` needs an \`allow\` list. A layout block that accepts any blocks always holds at least one child, and dissolves when its last child is removed.`),i!==void 0&&!(Number.isInteger(i)&&i>=0)&&uN(t,`\`children.min\` must be a whole number that is 0 or more, not ${String(i)}.`),a!==void 0){r!==`blocks`&&uN(t,"`children.exclude` is only for a layout block that accepts any blocks. An `allow` list already names exactly what the layout block holds.");for(let n of a){Object.prototype.hasOwnProperty.call(e,n)||uN(t,`\`exclude\` contains "${n}", which is not a configured block type.`);let{config:r}=e[n];r.layoutOnly!==!0&&uN(t,`\`exclude\` contains "${n}", which is not a layout block. Only layout blocks (\`layoutOnly: true\`) can be excluded.`),r.placeable===`namedOnly`&&uN(t,`\`exclude\` contains "${n}", which is \`placeable: "namedOnly"\` and never a child of a layout block that accepts any blocks.`)}}if(r!==`blocks`)for(let n of r)Object.prototype.hasOwnProperty.call(e,n)||uN(t,`\`allow\` contains "${n}", which is not a configured block type.`),e[n].config.layoutOnly!==!0&&uN(t,`\`allow\` contains "${n}", which is not a layout block. An \`allow\` list can name only layout blocks (\`layoutOnly: true\`); naming other blocks is not supported yet. Use \`allow: "blocks"\` to accept all other blocks.`)}}let t=new Set(Object.values(e).flatMap(({config:e})=>e.children?.allow&&e.children.allow!==`blocks`?e.children.allow:[]));for(let[n,{config:r}]of Object.entries(e))r.placeable===`namedOnly`&&!t.has(n)&&uN(n,'`placeable: "namedOnly"` limits this block to the blocks that name it in `children.allow`, but no block names it. Name it in the `allow` list of a layout block.')}function uN(e,t){throw Error(`Invalid config for block "${e}": ${t}`)}function dN(e){return e&&Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}var fN=class{opts;BlockNoteEditor=`only for types`;Block=`only for types`;PartialBlock=`only for types`;inlineContentSpecs;styleSpecs;blockSpecs;blockSchema;inlineContentSchema;styleSchema;constructor(e){this.opts=e;let{blockSpecs:t,inlineContentSpecs:n,styleSpecs:r,blockSchema:i,inlineContentSchema:a,styleSchema:o}=this.init();this.blockSpecs=t,this.styleSpecs=r,this.styleSchema=o,this.inlineContentSpecs=n,this.blockSchema=i,this.inlineContentSchema=a}init(){let e=cN(Object.entries({...this.opts.blockSpecs,...this.opts.inlineContentSpecs,...this.opts.styleSpecs}).map(([e,t])=>({key:e,runsBefore:t.implementation?.runsBefore??[]})));lN(this.opts.blockSpecs);let t=Object.fromEntries(Object.entries(this.opts.blockSpecs).map(([t,n])=>[t,VM(n.config,n.implementation,n.extensions,e(t))])),n=Object.fromEntries(Object.entries(this.opts.inlineContentSpecs).map(([t,n])=>typeof n.config==`object`?[t,{...n,implementation:{...n.implementation,node:n.implementation?.node.extend({priority:e(t)})}}]:[t,n])),r=Object.fromEntries(Object.entries(this.opts.styleSpecs).map(([t,n])=>[t,{...n,implementation:{...n.implementation,mark:n.implementation?.mark.extend({priority:e(t)})}}]));return{blockSpecs:t,blockSchema:Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.config])),inlineContentSpecs:dN(n),styleSpecs:dN(r),inlineContentSchema:qM(n),styleSchema:QM(r)}}extend(e){this.opts={blockSpecs:{...this.opts.blockSpecs,...e.blockSpecs},inlineContentSpecs:{...this.opts.inlineContentSpecs,...e.inlineContentSpecs},styleSpecs:{...this.opts.styleSpecs,...e.styleSpecs}};let{blockSpecs:t,inlineContentSpecs:n,styleSpecs:r,blockSchema:i,inlineContentSchema:a,styleSchema:o}=this.init();return this.blockSpecs=t,this.styleSpecs=r,this.styleSchema=o,this.inlineContentSpecs=n,this.blockSchema=i,this.inlineContentSchema=a,this}};function pN(e){let{height:t,width:n}=gN(e),r=Array(t).fill(!1).map(()=>Array(n).fill(null)),i=(e,i)=>{for(let a=e;a<t;a++)for(let e=i;e<n;e++)if(!r[a][e])return{row:a,col:e};throw Error(`Unable to create occupancy grid for table, no more available cells`)};for(let t=0;t<e.content.rows.length;t++)for(let n=0;n<e.content.rows[t].cells.length;n++){let a=kj(e.content.rows[t].cells[n]),o=Nj(a),s=Mj(a),{row:c,col:l}=i(t,n);for(let e=c;e<c+o;e++)for(let i=l;i<l+s;i++){if(r[e][i])throw Error(`Unable to create occupancy grid for table, cell at ${e},${i} is already occupied`);r[e][i]={row:t,col:n,rowspan:o,colspan:s,cell:a}}}return r}function mN(e){let t=new Set;return e.map(e=>({cells:e.map(e=>!t.has(e.row+`:`+e.col)&&(t.add(e.row+`:`+e.col),e.cell)).filter(e=>e!==!1)}))}function hN(e,t,n=pN(t)){for(let t=0;t<n.length;t++)for(let r=0;r<n[t].length;r++){let i=n[t][r];if(i&&i.row===e.row&&i.col===e.col)return{row:t,col:r,cell:i.cell}}throw Error(`Unable to resolve relative table cell indices for table, cell at ${e.row},${e.col} is not occupied`)}function gN(e){let t=e.content.rows.length,n=0;return e.content.rows.forEach(e=>{let t=0;e.cells.forEach(e=>{t+=Mj(e)}),n=Math.max(n,t)}),{height:t,width:n}}function _N(e,t,n=pN(t)){let r=n[e.row]?.[e.col];if(r)return{row:r.row,col:r.col,cell:r.cell}}function vN(e,t){let n=pN(e);if(t<0||t>=n.length)return[];let r=0;for(let e=0;e<t;e++){let e=n[r]?.[0];if(!e)return[];r+=e.rowspan}let i=Array(n[0].length).fill(!1).map((t,i)=>_N({row:r,col:i},e,n)).filter(e=>e!==void 0);return i.filter((e,t)=>i.findIndex(t=>t.row===e.row&&t.col===e.col)===t)}function yN(e,t){let n=pN(e);if(t<0||t>=n[0].length)return[];let r=0;for(let e=0;e<t;e++){let e=n[0]?.[r];if(!e)return[];r+=e.colspan}let i=Array(n.length).fill(!1).map((t,i)=>_N({row:i,col:r},e,n)).filter(e=>e!==void 0);return i.filter((e,t)=>i.findIndex(t=>t.row===e.row&&t.col===e.col)===t)}function bN(e,t,n,r=pN(e)){let{col:i}=hN({row:0,col:t},e,r),{col:a}=hN({row:0,col:n},e,r);return r.forEach(e=>{let[t]=e.splice(i,1);e.splice(a,0,t)}),mN(r)}function xN(e,t,n,r=pN(e)){let{row:i}=hN({row:t,col:0},e,r),{row:a}=hN({row:n,col:0},e,r),[o]=r.splice(i,1);return r.splice(a,0,o),mN(r)}function SN(e){return e?Aj(e)?SN(e.content):typeof e==`string`?e.length===0:Array.isArray(e)?e.every(e=>typeof e==`string`?e.length===0:Oj(e)?e.text.length===0:Dj(e)?typeof e.content==`string`?e.content.length===0:e.content.every(e=>e.text.length===0):!1):!1:!0}function CN(e,t,n=pN(e)){if(t===`columns`){let e=0;for(let t=n[0].length-1;t>=0&&n.every(e=>SN(e[t].cell)&&e[t].colspan===1);t--)e++;for(let t=n.length-1;t>=0;t--){let r=Math.max(n[t].length-e,1);n[t]=n[t].slice(0,r)}return mN(n)}let r=0;for(let e=n.length-1;e>=0&&n[e].every(e=>SN(e.cell)&&e.rowspan===1);e--)r++;let i=Math.min(r,n.length-1);return n.splice(n.length-i,i),mN(n)}function wN(e,t,n,r=pN(e)){let{width:i,height:a}=gN(e);if(t===`columns`)r.forEach((e,t)=>{if(n>=0)for(let r=0;r<n;r++)e.push({row:t,col:Math.max(...e.map(e=>e.col))+1,rowspan:1,colspan:1,cell:kj(``)});else e.splice(i+n,-1*n)});else if(n>0)for(let e=0;e<n;e++){let t=Array(i).fill(null).map((t,n)=>({row:a+e,col:n,rowspan:1,colspan:1,cell:kj(``)}));r.push(t)}else n<0&&r.splice(a+n,-1*n);return mN(r)}function TN(e,t,n){let r=vN(e,n);if(!r.some(e=>Nj(e.cell)>1))return!0;let i=n,a=n;return r.forEach(e=>{let t=Nj(e.cell);i=Math.max(i,e.row+t-1),a=Math.min(a,e.row)}),t<n?n===i:n===a}function EN(e,t,n){let r=yN(e,n);if(!r.some(e=>Mj(e.cell)>1))return!0;let i=n,a=n;return r.forEach(e=>{let t=Mj(e.cell);i=Math.max(i,e.col+t-1),a=Math.min(a,e.col)}),t<n?n===i:n===a}function DN(e,t,n){let r=hN(e,n),i=hN(t,n);return r.col===i.col}function ON(e,t,n,r){let i=[];for(let[r,a]of Object.entries(e.styles||{})){let e=n[r];if(!e)throw Error(`style ${r} not found in styleSchema`);if(e.propSchema===`boolean`)a&&i.push(t.mark(r));else if(e.propSchema===`string`)a&&i.push(t.mark(r,{stringValue:a}));else throw new Pj(e.propSchema)}let a=r&&t.nodes[r]&&nM(t,t.nodes[r])?[...t.nodes[r].allowedMarks(i)]:i;return r&&nM(t,t.nodes[r])?e.text.length>0?[t.text(e.text,a)]:[]:e.text.split(/(\n)/g).filter(e=>e.length>0).map(e=>e===`
|
|
405
|
+
`?t.nodes.hardBreak.createChecked():t.text(e,a))}function kN(e,t,n){let r=t.marks.link.create({href:e.href});return AN(e.content,t,n).map(e=>{if(e.type.name===`text`)return e.mark([...e.marks,r]);if(e.type.name===`hardBreak`)return e;throw Error(`unexpected node type`)})}function AN(e,t,n,r){let i=[];if(typeof e==`string`)return i.push(...ON({type:`text`,text:e,styles:{}},t,n,r)),i;for(let a of e)i.push(...ON(a,t,n,r));return i}function jN(e,t,n,r=eM(t)){let i=[];for(let a of e)typeof a==`string`?i.push(...AN(a,t,r,n)):Dj(a)?i.push(...kN(a,t,r)):Oj(a)?i.push(...AN([a],t,r,n)):i.push(NN(a,t,r));return i}function MN(e,t,n=eM(t)){let r=[],i=Array(e.headerRows??0).fill(!0),a=Array(e.headerCols??0).fill(!0),o=e.columnWidths??[];for(let s=0;s<e.rows.length;s++){let c=e.rows[s],l=[],u=i[s];for(let r=0;r<c.cells.length;r++){let i=c.cells[r],d=a[r],f=null,p=hN({row:s,col:r},{type:`table`,content:e}),m=o[p.col]?[o[p.col]]:null;if(i){if(typeof i==`string`)f=t.text(i);else if(Aj(i)){i.content&&(f=jN(i.content,t,`tableParagraph`,n));let e=Mj(i);e>1&&(m=Array(e).fill(!1).map((e,t)=>o[p.col+t]??void 0))}else f=jN(i,t,`tableParagraph`,n)}let h=t.nodes[d||u?`tableHeader`:`tableCell`].createChecked({...Aj(i)?i.props:{},colwidth:m},t.nodes.tableParagraph.createChecked(void 0,f));l.push(h)}let d=t.nodes.tableRow.createChecked({},l);r.push(d)}return r}function NN(e,t,n){let r,i=e.type;if(i===void 0&&(i=`paragraph`),!t.nodes[i])throw Error(`node type ${i} not found in schema`);if(!e.content)r=t.nodes[i].createChecked(e.props);else if(typeof e.content==`string`){let a=jN([e.content],t,i,n);r=t.nodes[i].createChecked(e.props,a)}else if(Array.isArray(e.content)){let a=jN(e.content,t,i,n);r=t.nodes[i].createChecked(e.props,a)}else if(e.content.type===`tableContent`){let a=MN(e.content,t,n);r=t.nodes[i].createChecked(e.props,a)}else throw new Pj(e.content.type);return r}function PN(e){if(e.isText)return e;let t=[];e.forEach(e=>t.push(PN(e)));let n=e.type.isInGroup(`bnBlock`)&&e.attrs.id===null;return e.type.create(n?{...e.attrs,id:Tj.options.generateID()}:e.attrs,Vt.from(t),e.marks)}function FN(e,t,n=eM(t)){let r=e.id;r===void 0&&(r=Tj.options.generateID());let i=[];if(e.children)for(let r of e.children)i.push(FN(r,t,n));if(!e.type||t.nodes[e.type].isInGroup(`blockContent`)){let a=NN(e,t,n),o=i.length>0?HA(t,i):void 0;return t.nodes.blockContainer.createChecked({id:r,...e.props},o?[a,o]:a)}if(VA(t.nodes[e.type])){let n=t.nodes[e.type],a={id:r,...e.props},o=n.createAndFill(a,i);if(!o)throw Error(`Cannot create block "${e.type}": its children don't fit its \`children\` config (it accepts \`${n.spec.content}\`).`);return PN(o)}throw Error(`block type ${e.type} doesn't match blockContent or bnBlock group`)}var IN={gray:{text:`#9b9a97`,background:`#ebeced`},brown:{text:`#64473a`,background:`#e9e5e3`},red:{text:`#e03e3e`,background:`#fbe4e4`},orange:{text:`#d9730d`,background:`#f6e9d9`},yellow:{text:`#dfab01`,background:`#fbf3db`},green:{text:`#4d6461`,background:`#ddedea`},blue:{text:`#0b6e99`,background:`#ddebf1`},purple:{text:`#6940a5`,background:`#eae4f2`},pink:{text:`#ad1a72`,background:`#f4dfeb`}},LN={backgroundColor:{default:`default`},textColor:{default:`default`},textAlignment:{default:`left`,values:[`left`,`center`,`right`,`justify`]}},RN=e=>{let t={};return e.hasAttribute(`data-background-color`)?t.backgroundColor=e.getAttribute(`data-background-color`):e.style.backgroundColor&&(t.backgroundColor=e.style.backgroundColor),e.hasAttribute(`data-text-color`)?t.textColor=e.getAttribute(`data-text-color`):e.style.color&&(t.textColor=e.style.color),t.textAlignment=LN.textAlignment.values.includes(e.style.textAlign)?e.style.textAlign:void 0,t},zN=(e,t)=>{e.backgroundColor&&e.backgroundColor!==LN.backgroundColor.default&&(t.style.backgroundColor=e.backgroundColor in IN?IN[e.backgroundColor].background:e.backgroundColor),e.textColor&&e.textColor!==LN.textColor.default&&(t.style.color=e.textColor in IN?IN[e.textColor].text:e.textColor),e.textAlignment&&e.textAlignment!==LN.textAlignment.default&&(t.style.textAlign=e.textAlignment)},BN=(e=`backgroundColor`)=>({default:LN.backgroundColor.default,parseHTML:e=>e.hasAttribute(`data-background-color`)?e.getAttribute(`data-background-color`):e.style.backgroundColor?e.style.backgroundColor:LN.backgroundColor.default,renderHTML:t=>t[e]===LN.backgroundColor.default?{}:{"data-background-color":t[e]}}),VN=(e=`textColor`)=>({default:LN.textColor.default,parseHTML:e=>e.hasAttribute(`data-text-color`)?e.getAttribute(`data-text-color`):e.style.color?e.style.color:LN.textColor.default,renderHTML:t=>t[e]===LN.textColor.default?{}:{"data-text-color":t[e]}}),HN=(e,t)=>{let n=e.querySelector(t);if(n)return{targetElement:n,caption:e.querySelector(`figcaption`)?.textContent??void 0}},UN=EO(({editor:e})=>{let t=DO(void 0);function n(){t.setState(void 0)}return{key:`filePanel`,store:t,mount({signal:t}){let r=e.onChange(n,!1),i=e.onSelectionChange(n,!1);t.addEventListener(`abort`,()=>{r(),i()})},closeMenu:n,showMenu(e){t.setState(e)}}}),WN=(e,t,n)=>{let r=document.createElement(`div`);r.className=`bn-add-file-button`;let i=document.createElement(`div`);i.className=`bn-add-file-button-icon`,n?i.appendChild(n):i.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 8L9.00319 2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8ZM10 4V9H5V20H19V4H10Z"></path></svg>`,r.appendChild(i);let a=document.createElement(`p`);a.className=`bn-add-file-button-text`,a.innerHTML=e.type in t.dictionary.file_blocks.add_button_text?t.dictionary.file_blocks.add_button_text[e.type]:t.dictionary.file_blocks.add_button_text.file,r.appendChild(a);let o=e=>{e.preventDefault(),e.stopPropagation()},s=()=>{t.isEditable&&t.getExtension(UN)?.showMenu(e.id)};return r.addEventListener(`mousedown`,o,!0),r.addEventListener(`click`,s,!0),{dom:r,destroy:()=>{r.removeEventListener(`mousedown`,o,!0),r.removeEventListener(`click`,s,!0)}}},GN=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 8L9.00319 2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8ZM10 4V9H5V20H19V4H10Z"></path></svg>`,KN=e=>{let t=document.createElement(`div`);t.className=`bn-file-name-with-icon`;let n=document.createElement(`div`);n.className=`bn-file-icon`,n.innerHTML=GN,t.appendChild(n);let r=document.createElement(`p`);return r.className=`bn-file-name`,r.textContent=e.props.name,t.appendChild(r),{dom:t}},qN=(e,t,n,r)=>{let i=e.props.url!==``&&!!e.props.caption,a=document.createElement(i?`figure`:`div`);if(a.className=`bn-file-block-content-wrapper`,e.props.url===``){let n=WN(e,t,r);a.appendChild(n.dom);let i=t.onUploadStart(t=>{if(t===e.id){a.removeChild(n.dom);let e=document.createElement(`div`);e.className=`bn-file-loading-preview`,e.textContent=`Loading...`,a.appendChild(e)}});return{dom:a,destroy:()=>{i(),n.destroy()}}}let o={dom:a};if(e.props.showPreview===!1||!n){let t=KN(e);a.appendChild(t.dom),o.destroy=()=>{t.destroy?.()}}else a.appendChild(n.dom);if(e.props.caption){let t=document.createElement(`figcaption`);t.className=`bn-file-caption`,t.textContent=e.props.caption,a.appendChild(t)}return o},JN=(e,t)=>{let n=document.createElement(`figure`),r=document.createElement(`figcaption`);return r.textContent=t,n.appendChild(e),n.appendChild(r),{dom:n}},YN=(e,t)=>{let n=document.createElement(`div`),r=document.createElement(`p`);return r.textContent=t,n.appendChild(e),n.appendChild(r),{dom:n}},XN=e=>({url:e.src||void 0}),ZN=HM(e=>({type:`audio`,propSchema:{backgroundColor:LN.backgroundColor,name:{default:``},url:{default:``},caption:{default:``},showPreview:{default:!0}},content:`none`})),QN=(e={})=>e=>{if(e.tagName===`AUDIO`){if(e.closest(`figure`))return;let{backgroundColor:t}=RN(e);return{...XN(e),backgroundColor:t}}if(e.tagName===`FIGURE`){let t=HN(e,`audio`);if(!t)return;let{targetElement:n,caption:r}=t,{backgroundColor:i}=RN(e);return{...XN(n),backgroundColor:i,caption:r}}},$N=(e={})=>(t,n)=>{let r=document.createElement(`div`);r.innerHTML=e.icon??`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z"></path></svg>`;let i=document.createElement(`audio`);return i.className=`bn-audio`,n.resolveFileUrl?n.resolveFileUrl(t.props.url).then(e=>{i.src=e}):i.src=t.props.url,i.controls=!0,i.contentEditable=`false`,i.draggable=!1,qN(t,n,{dom:i},r.firstElementChild)},eP=(e={})=>(e,t)=>{if(!e.props.url)return{dom:document.createElement(`audio`)};let n;return e.props.showPreview?(n=document.createElement(`audio`),n.src=e.props.url):(n=document.createElement(`a`),n.href=e.props.url,n.textContent=e.props.name||e.props.url),e.props.caption?e.props.showPreview?JN(n,e.props.caption):YN(n,e.props.caption):{dom:n}},tP=UM(ZN,e=>({meta:{fileBlockAccept:[`audio/*`]},parse:QN(e),render:$N(e),toExternalHTML:eP(e),runsBefore:[`file`]})),nP=e=>{{if(e.tagName!==`PRE`||e.childElementCount!==1||e.firstElementChild?.tagName!==`CODE`)return;let t=e.firstElementChild;return{language:t.getAttribute(`data-language`)||t.className.split(` `).find(e=>e.startsWith(`language-`))?.replace(`language-`,``)}}},rP=({el:e,schema:t},n)=>{let r=Dt.fromSchema(t),i=e.firstElementChild;return r.parse(i,{preserveWhitespace:`full`,topNode:t.nodes[n].create()}).content},iP=e=>{let t=document.createElement(`pre`),n=document.createElement(`code`);return n.className=`language-${e.props.language}`,n.dataset.language=e.props.language,t.appendChild(n),{dom:t,contentDOM:n}};function aP(e,t){let n=t.trim().toLowerCase();return Object.entries(e.supportedLanguages??{}).find(([e,{aliases:t}])=>e.toLowerCase()===n||t?.some(e=>e.toLowerCase()===n))?.[0]}var oP=e=>(t,n)=>EO({key:t,keyboardShortcuts:{Delete:({editor:e})=>e.transact(t=>{let{block:r}=e.getTextCursorPosition();if(r.type!==n)return!1;let{$from:i}=t.selection;return!i.parent.textContent&&(e.removeBlocks([r]),!0)}),Tab:({editor:t})=>e.indentLineWithTab!==!1&&t.transact(e=>{let{block:r}=t.getTextCursorPosition();return r.type===n&&(e.insertText(` `),!0)}),Enter:({editor:e})=>e.transact(t=>{let{block:r,nextBlock:i}=e.getTextCursorPosition();if(r.type!==n)return!1;let{$from:a}=t.selection,o=a.parentOffset===a.parent.nodeSize-2,s=a.parent.textContent.endsWith(`
|
|
406
|
+
|
|
407
|
+
`);if(o&&s){if(t.delete(a.pos-2,a.pos),i)return e.setTextCursorPosition(i,`start`),!0;let[n]=e.insertBlocks([{type:`paragraph`}],r,`after`);return e.setTextCursorPosition(n,`start`),!0}return t.insertText(`
|
|
408
|
+
`),!0}),"Shift-Enter":({editor:e})=>e.transact(()=>{let{block:t}=e.getTextCursorPosition();if(t.type!==n)return!1;let[r]=e.insertBlocks([{type:`paragraph`}],t,`after`);return e.setTextCursorPosition(r,`start`),!0})},inputRules:[{find:/^```(.*?)\s$/,replace:({match:t})=>{let r=t[1].trim();return{type:n,props:{language:{language:aP(e,r)??(r||e.defaultLanguage||`text`)}.language},content:[]}}}]}),sP=(e,t,n,r)=>{if(!(n in r))throw Error(`Language ${n} is not supported.`);let i=document.createElement(`select`);Object.entries(r).forEach(([e,{name:t}])=>{let n=document.createElement(`option`);n.value=e,n.text=t,i.appendChild(n)}),i.value=n;let a=n=>{t.isEditable&&t.updateBlock(e.id,{props:{language:n.target.value}})};t.isEditable?i.addEventListener(`change`,a):i.disabled=!0;let o=document.createElement(`div`);return o.contentEditable=`false`,o.appendChild(i),{dom:o,destroy:()=>i.removeEventListener(`change`,a)}},cP=(e,t,n)=>{let r=document.createElement(`pre`),i=document.createElement(`code`);r.appendChild(i);let a=document.createDocumentFragment(),o;return n&&Object.keys(n.supportedLanguages).length>1&&(o=sP(e,t,n.selectedLanguage,n.supportedLanguages),a.appendChild(o.dom)),a.appendChild(r),{dom:a,contentDOM:i,destroy:()=>{o?.destroy()}}},lP=`code-block-keyboard-shortcuts`,uP=UM(HM(({defaultLanguage:e=`text`})=>({type:`codeBlock`,propSchema:{language:{default:e}},content:`plain`})),e=>({meta:{code:!0,defining:!0,isolating:!1,highlight:e=>e.props.language},parse:e=>nP(e),parseContent:e=>rP(e,`codeBlock`),render:(t,n)=>cP(t,n,e.supportedLanguages&&{selectedLanguage:t.props.language,supportedLanguages:e.supportedLanguages}),toExternalHTML:e=>iP(e)}),e=>[oP(e)(lP,`codeBlock`)]),dP=UM(HM(()=>({type:`divider`,propSchema:{},content:`none`})),{meta:{isolating:!1},parse(e){if(e.tagName===`HR`)return{}},render(){return{dom:document.createElement(`hr`)}}},[EO({key:`divider-block-shortcuts`,inputRules:[{find:RegExp(`^---$`),replace(){return{type:`divider`,props:{},content:[]}}}]})]),fP=e=>({url:e.src||void 0}),pP=UM(HM(()=>({type:`file`,propSchema:{backgroundColor:LN.backgroundColor,name:{default:``},url:{default:``},caption:{default:``}},content:`none`})),{meta:{fileBlockAccept:[`*/*`]},parse:e=>{if(e.tagName===`EMBED`){if(e.closest(`figure`))return;let{backgroundColor:t}=RN(e);return{...fP(e),backgroundColor:t}}if(e.tagName===`FIGURE`){let t=HN(e,`embed`);if(!t)return;let{targetElement:n,caption:r}=t,{backgroundColor:i}=RN(e);return{...fP(n),backgroundColor:i,caption:r}}},render(e,t){return qN(e,t)},toExternalHTML(e){if(!e.props.url)return{dom:document.createElement(`embed`)};let t=document.createElement(`a`);return t.href=e.props.url,t.textContent=e.props.name||e.props.url,e.props.caption?YN(t,e.props.caption):{dom:t}}});function mP(e,t,n){let r=Dt.fromSchema(t),i=e.querySelector(`:scope > summary`),a;if(i){let e=i.cloneNode(!0);Vj(e),a=r.parse(e,{topNode:t.nodes.paragraph.create(),preserveWhitespace:!0}).content}else a=Vt.empty;let o=document.createElement(`div`);o.setAttribute(`data-node-type`,`blockGroup`);let s=!1;for(let t of Array.from(e.childNodes))t.tagName!==`SUMMARY`&&(t.nodeType!==3||t.textContent?.trim())&&(s=!0,o.appendChild(t.cloneNode(!0)));let c=t.nodes[n].create({},a);if(!s)return c.content;let l=r.parse(o,{topNode:t.nodes.blockGroup.create()});return l.content.size>0?c.content.addToEnd(l):c.content}var hP={set:(e,t)=>window.localStorage.setItem(`toggle-${e.id}`,t?`true`:`false`),get:e=>window.localStorage.getItem(`toggle-${e.id}`)===`true`},gP=`<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="CURRENTCOLOR"><path d="M320-200v-560l440 280-440 280Z"/></svg>`;function _P(e){return hP.get(e)}function vP(e,t,n=hP){let r=document.createElement(`div`);r.className=`bn-toggle-wrapper bn-toggle-frame`;let i=document.createElement(`button`);i.className=`bn-toggle-button`,i.type=`button`,i.setAttribute(`aria-label`,t.dictionary.toggle_blocks.toggle_button),i.innerHTML=gP,i.addEventListener(`mousedown`,e=>e.preventDefault());let a=document.createElement(`div`);a.className=`bn-toggle-slot`;let o=document.createElement(`button`);o.className=`bn-toggle-add-block-button`,o.type=`button`,o.textContent=t.dictionary.toggle_blocks.add_block_button,o.addEventListener(`mousedown`,e=>e.preventDefault()),o.addEventListener(`click`,()=>{t.transact(()=>{let n=t.updateBlock(e.id,{children:[{}]});t.setTextCursorPosition(n.children[0],`end`),t.focus()})}),r.append(i,a);let s=e.children.length,c=n.get(e);function l(){i.setAttribute(`aria-expanded`,String(c));let e=c&&s===0&&t.isEditable;e&&!o.isConnected?r.append(o):e||o.remove()}return i.addEventListener(`click`,()=>{c=!c,n.set(e,c),l()}),l(),{dom:r,slot:a,update(e){let t=e.children.length,r=c;return t>s&&(c=!0),c!==r&&n.set(e,c),s=t,l(),!0}}}var yP=[1,2,3,4,5,6];function bP(e,t){return t?{level:e,isToggleable:!1}:{level:e}}var xP=(e,t)=>({editor:n})=>{let r=n.getTextCursorPosition();return n.schema.blockSchema[r.block.type].content===`inline`&&(n.updateBlock(r.block,{type:`heading`,props:bP(e,t)}),!0)},SP=UM(HM(({defaultLevel:e=1,levels:t=yP,allowToggleHeadings:n=!0}={})=>({type:`heading`,propSchema:{...LN,level:{default:e,values:t},...n?{isToggleable:{default:!1,optional:!0}}:{}},content:`inline`})),({allowToggleHeadings:e=!0}={})=>({meta:{isolating:!1,dropsIntoChildren:t=>e&&t.props.isToggleable===!0},experimental_keyboard:e?e=>{if(!e.props.isToggleable)return{};let t=_P(e);return{resetsTo:{type:`heading`,props:{isToggleable:!1}},emptyEnterResets:!0,enter:t?`into-children`:`split`,splitKeepsChildren:!t,emptyChildEnter:t?`stay`:`outdent`}}:void 0,parse(t){if(e&&t.tagName===`DETAILS`){let e=t.querySelector(`:scope > summary`);if(!e)return;let n=e.querySelector(`h1, h2, h3, h4, h5, h6`);return n?{...RN(n),level:parseInt(n.tagName[1]),isToggleable:!0}:void 0}let n;switch(t.tagName){case`H1`:n=1;break;case`H2`:n=2;break;case`H3`:n=3;break;case`H4`:n=4;break;case`H5`:n=5;break;case`H6`:n=6;break;default:return}return{...RN(t),level:n}},...e?{parseContent:({el:e,schema:t})=>{if(e.tagName===`DETAILS`)return mP(e,t,`heading`)}}:{},runsBefore:[`toggleListItem`],render(e){let t=document.createElement(`h${e.props.level}`);return{dom:t,contentDOM:t}},renderFrame(t,n){if(!e||!t.props.isToggleable)return;let r=vP(t,n);return{...r,update:e=>!!e.props.isToggleable&&r.update(e)}},toExternalHTML(t){let n=document.createElement(`h${t.props.level}`);if(zN(t.props,n),e&&t.props.isToggleable){let e=document.createElement(`details`);e.setAttribute(`open`,``);let t=document.createElement(`summary`);return t.appendChild(n),e.appendChild(t),{dom:e,contentDOM:n,childrenDOM:e}}return{dom:n,contentDOM:n}}}),({levels:e=yP,allowToggleHeadings:t=!0}={})=>[EO({key:`heading-shortcuts`,keyboardShortcuts:Object.fromEntries(e.map(e=>[`Mod-Alt-${e}`,xP(e,t)])??[]),inputRules:e.map(e=>({find:RegExp(`^(#{${e}})\\s$`),replace({match:e}){return{type:`heading`,props:bP(e[1].length,t)}}}))})]),CP=(e,t,n,r,i)=>{let{dom:a,destroy:o}=qN(e,t,n,i),s=a;s.style.position=`relative`,e.props.url&&e.props.showPreview&&(e.props.previewWidth?s.style.width=`${e.props.previewWidth}px`:s.style.width=`fit-content`);let c=document.createElement(`div`);c.className=`bn-resize-handle`,c.style.left=`4px`,c.style.display=`none`,r.appendChild(c);let l=document.createElement(`div`);l.className=`bn-resize-handle`,l.style.right=`4px`,l.style.display=`none`,r.appendChild(l);let u=document.createElement(`div`);u.style.position=`absolute`,u.style.height=`100%`,u.style.width=`100%`;let d,f=e.props.previewWidth,p=n=>{if(!d){t.isEditable||(c.style.display=`none`,l.style.display=`none`);return}let r,i=`touches`in n?n.touches[0].clientX:n.clientX;r=e.props.textAlignment===`center`?d.handleUsed===`left`?d.initialWidth+(d.initialClientX-i)*2:d.initialWidth+(i-d.initialClientX)*2:d.handleUsed===`left`?d.initialWidth+d.initialClientX-i:d.initialWidth+i-d.initialClientX,f=Math.min(Math.max(r,64),t.domElement?.firstElementChild?.clientWidth||Number.MAX_VALUE),s.style.width=`${f}px`},m=n=>{n.target&&s.contains(n.target)&&t.isEditable||(c.style.display=`none`,l.style.display=`none`),d&&(d=void 0,s.contains(u)&&s.removeChild(u),t.updateBlock(e,{props:{previewWidth:f}}))},h=()=>{t.isEditable&&(c.style.display=``,l.style.display=``)},g=e=>{e.relatedTarget!==c&&e.relatedTarget!==l&&(d||t.isEditable&&(c.style.display=`none`,l.style.display=`none`))},_=e=>{e.preventDefault(),s.contains(u)||s.appendChild(u);let t=`touches`in e?e.touches[0].clientX:e.clientX;d={handleUsed:`left`,initialWidth:s.clientWidth,initialClientX:t}},v=e=>{e.preventDefault(),s.contains(u)||s.appendChild(u);let t=`touches`in e?e.touches[0].clientX:e.clientX;d={handleUsed:`right`,initialWidth:s.clientWidth,initialClientX:t}};return window.addEventListener(`mousemove`,p),window.addEventListener(`touchmove`,p),window.addEventListener(`mouseup`,m),window.addEventListener(`touchend`,m),s.addEventListener(`mouseenter`,h),s.addEventListener(`mouseleave`,g),c.addEventListener(`mousedown`,_),c.addEventListener(`touchstart`,_),l.addEventListener(`mousedown`,v),l.addEventListener(`touchstart`,v),{dom:s,destroy:()=>{o?.(),window.removeEventListener(`mousemove`,p),window.removeEventListener(`touchmove`,p),window.removeEventListener(`mouseup`,m),window.removeEventListener(`touchend`,m),s.removeEventListener(`mouseenter`,h),s.removeEventListener(`mouseleave`,g),c.removeEventListener(`mousedown`,_),c.removeEventListener(`touchstart`,_),l.removeEventListener(`mousedown`,v),l.removeEventListener(`touchstart`,v)}}},wP=e=>({url:e.src||void 0,previewWidth:e.width||void 0,name:e.alt||void 0}),TP=HM((e={})=>({type:`image`,propSchema:{textAlignment:LN.textAlignment,backgroundColor:LN.backgroundColor,name:{default:``},url:{default:``},caption:{default:``},showPreview:{default:!0},previewWidth:{default:void 0,type:`number`}},content:`none`})),EP=(e={})=>e=>{if(e.tagName===`IMG`){if(e.closest(`figure`))return;let{backgroundColor:t}=RN(e);return{...wP(e),backgroundColor:t}}if(e.tagName===`FIGURE`){let t=HN(e,`img`);if(!t)return;let{targetElement:n,caption:r}=t,{backgroundColor:i}=RN(e);return{...wP(n),backgroundColor:i,caption:r}}},DP=(e={})=>(t,n)=>{let r=document.createElement(`div`);r.innerHTML=e.icon??`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z"></path></svg>`;let i=document.createElement(`div`);i.className=`bn-visual-media-wrapper`;let a=document.createElement(`img`);return a.className=`bn-visual-media`,n.resolveFileUrl?n.resolveFileUrl(t.props.url).then(e=>{a.src=e}):a.src=t.props.url,a.alt=t.props.name||``,a.contentEditable=`false`,a.draggable=!1,t.props.previewWidth&&(a.width=t.props.previewWidth),i.appendChild(a),CP(t,n,{dom:i},i,r.firstElementChild)},OP=(e={})=>(e,t)=>{if(!e.props.url)return{dom:document.createElement(`img`)};let n;return e.props.showPreview?(n=document.createElement(`img`),n.src=e.props.url,n.alt=e.props.name||``,e.props.previewWidth&&(n.width=e.props.previewWidth)):(n=document.createElement(`a`),n.href=e.props.url,n.textContent=e.props.name||e.props.url),e.props.caption?e.props.showPreview?JN(n,e.props.caption):YN(n,e.props.caption):{dom:n}},kP=UM(TP,e=>({meta:{fileBlockAccept:[`image/*`]},parse:EP(e),render:DP(e),toExternalHTML:OP(e),runsBefore:[`file`]}));function AP(e,t,n){let r=Dt.fromSchema(t),i=e,a=document.createElement(`div`);a.setAttribute(`data-node-type`,`blockGroup`);for(let e of Array.from(i.childNodes))a.appendChild(e.cloneNode(!0));let o=r.parse(a,{topNode:t.nodes.blockGroup.create()});o.firstChild?.firstChild?.type.name===`checkListItem`&&(o=o.copy(o.content.cut(o.firstChild.firstChild.nodeSize+2)));let s=o.firstChild?.firstChild;if(!s?.isTextblock)return Vt.from(o);let c=t.nodes[n].create({},s.content),l=o.content.cut(s.nodeSize+2);if(l.size>0){let e=o.copy(l);return c.content.addToEnd(e)}return c.content}var jP=UM(HM(()=>({type:`bulletListItem`,propSchema:{...LN},content:`inline`})),{experimental_keyboard:{splitKeepsType:!0,emptyEnterResets:!0},meta:{isolating:!1},parse(e){if(e.tagName!==`LI`)return;let t=e.parentElement;if(t===null||t.tagName===`UL`||t.tagName===`DIV`&&t.parentElement?.tagName===`UL`||!e.closest(`ul, ol`))return RN(e)},parseContent:({el:e,schema:t})=>AP(e,t,`bulletListItem`),render(){let e=document.createElement(`p`);return{dom:e,contentDOM:e}},toExternalHTML(e){let t=document.createElement(`li`),n=document.createElement(`p`);return zN(e.props,t),t.appendChild(n),{dom:t,contentDOM:n}}},[EO({key:`bullet-list-item-shortcuts`,keyboardShortcuts:{"Mod-Shift-8":({editor:e})=>{let t=e.getTextCursorPosition();return e.schema.blockSchema[t.block.type].content===`inline`&&(e.updateBlock(t.block,{type:`bulletListItem`,props:{}}),!0)}},inputRules:[{find:/^\s?[-+*]\s$/,replace({editor:e}){if(sj(e.prosemirrorState).blockNoteType!==`heading`)return{type:`bulletListItem`,props:{}}}}]})]),MP=UM(HM(()=>({type:`checkListItem`,propSchema:{...LN,checked:{default:!1,type:`boolean`}},content:`inline`})),{experimental_keyboard:{splitKeepsType:!0,emptyEnterResets:!0},meta:{isolating:!1},parse(e){if(e.tagName===`input`)return e.closest(`[data-content-type]`)||e.closest(`li`)?void 0:e.type===`checkbox`?{checked:e.checked}:void 0;if(e.tagName!==`LI`)return;let t=e.parentElement;if(t!==null&&(t.tagName===`UL`||t.tagName===`DIV`&&t.parentElement?.tagName===`UL`)){let t=e.querySelector(`input[type=checkbox]`)||null;return t===null?void 0:{...RN(e),checked:t.checked}}},parseContent:({el:e,schema:t})=>AP(e,t,`checkListItem`),render(e,t){let n=document.createDocumentFragment(),r=document.createElement(`input`);r.type=`checkbox`,r.checked=e.props.checked,e.props.checked&&r.setAttribute(`checked`,``),r.disabled=!t.isEditable,r.addEventListener(`change`,()=>{t.isEditable&&t.updateBlock(e,{props:{checked:!e.props.checked}})});let i=document.createElement(`p`),a=document.createElement(`div`);return a.contentEditable=`false`,a.appendChild(r),n.appendChild(a),n.appendChild(i),{dom:n,contentDOM:i}},toExternalHTML(e){let t=document.createElement(`li`),n=document.createElement(`input`);n.type=`checkbox`,n.checked=e.props.checked,e.props.checked&&n.setAttribute(`checked`,``);let r=document.createElement(`p`);return zN(e.props,t),t.appendChild(n),t.appendChild(r),{dom:t,contentDOM:r}},runsBefore:[`bulletListItem`]},[EO({key:`check-list-item-shortcuts`,keyboardShortcuts:{"Mod-Shift-9":({editor:e})=>{let t=e.getTextCursorPosition();return e.schema.blockSchema[t.block.type].content===`inline`&&(e.updateBlock(t.block,{type:`checkListItem`,props:{}}),!0)}},inputRules:[{find:/^\s?\[\s*\]\s$/,replace(){return{type:`checkListItem`,props:{checked:!1}}}},{find:/^\s?\[[Xx]\]\s$/,replace(){return{type:`checkListItem`,props:{checked:!0}}}}]})]);function NP(e,t,n,r){let i=!!e.firstChild.attrs.start,a=ij(e,t);if(!a.hasContent)throw Error(`impossible`);let o=n.doc.resolve(a.block.beforePos).nodeBefore,s=o?r.get(o):void 0;if(s!==void 0){let t=s+1;return r.set(e,t),{index:t,isFirst:!1,hasStart:i}}let c=[{node:e,pos:t}],l=o,u=a.block.beforePos;for(;l&&r.get(l)===void 0;){let e=ij(l,u-l.nodeSize);if(e.blockNoteType!==`numberedListItem`)break;c.push({node:l,pos:u-l.nodeSize});let t=n.doc.resolve(e.block.beforePos).nodeBefore;u=e.block.beforePos,l=t}let d,f,p=c[c.length-1],m=ij(p.node,p.pos);if(!m.hasContent)throw Error(`impossible`);let h=n.doc.resolve(m.block.beforePos).nodeBefore,g=h?r.get(h):void 0;g===void 0?(d=(p.node.firstChild.attrs.start||1)-1,f=!0):(d=g,f=!1);for(let e=c.length-1;e>=0;e--){let t=c[e];f&&e<c.length-1&&(f=!1),d++,r.set(t.node,d)}return{index:d,isFirst:c.length===1?f||g===void 0:!1,hasStart:i}}function PP(e,t){let n=new Map,r=t.decorations.map(e.mapping,e.doc),i=e.changedRange()??{from:0,to:e.doc.nodeSize-2},a=[],o=new Set;e.doc.nodesBetween(i.from,e.doc.nodeSize-2,(t,s,c)=>{if(c&&o.has(c))return!1;if(t.type.name===`blockContainer`&&t.firstChild.type.name===`numberedListItem`){let{index:l,isFirst:u,hasStart:d}=NP(t,s,e,n),f=e.doc.nodeAt(s+1);if(r.find(s+1,s+1+f.nodeSize,e=>e.index===l&&e.isFirst===u&&e.hasStart===d).length===0)a.push(Wt.node(s+1,s+1+f.nodeSize,{"data-index":l.toString()},{index:l,isFirst:u,hasStart:d}));else if(s>=i.to&&c)return o.add(c),!1}});let s=a.flatMap(e=>r.find(e.from,e.to));return{decorations:r.remove(s).add(e.doc,a)}}var FP=UM(HM(()=>({type:`numberedListItem`,propSchema:{...LN,start:{default:void 0,type:`number`}},content:`inline`})),{experimental_keyboard:{splitKeepsType:!0,emptyEnterResets:!0},meta:{isolating:!1},parse(e){if(e.tagName!==`LI`)return;let t=e.parentElement;if(t!==null&&(t.tagName===`OL`||t.tagName===`DIV`&&t.parentElement?.tagName===`OL`)){let n=parseInt(t.getAttribute(`start`)||`1`),r=RN(e);return e.previousElementSibling||n===1?r:{...r,start:n}}},parseContent:({el:e,schema:t})=>AP(e,t,`numberedListItem`),render(){let e=document.createElement(`p`);return{dom:e,contentDOM:e}},toExternalHTML(e){let t=document.createElement(`li`),n=document.createElement(`p`);return zN(e.props,t),t.appendChild(n),{dom:t,contentDOM:n}}},[EO({key:`numbered-list-item-shortcuts`,inputRules:[{find:/^\s?(\d+)\.\s$/,replace({match:e,editor:t}){if(sj(t.prosemirrorState).blockNoteType===`heading`)return;let n=parseInt(e[1]);return{type:`numberedListItem`,props:{start:n===1?void 0:n}}}}],keyboardShortcuts:{"Mod-Shift-7":({editor:e})=>{let t=e.getTextCursorPosition();return e.schema.blockSchema[t.block.type].content===`inline`&&(e.updateBlock(t.block,{type:`numberedListItem`,props:{}}),!0)}},prosemirrorPlugins:[new ut({key:new on(`numbered-list-indexing-decorations`),state:{init(e,t){return PP(t.tr,{decorations:Rt.empty})},apply(e,t){return!e.docChanged&&t.decorations?t:PP(e,t)}},props:{decorations(e){return this.getState(e)?.decorations??Rt.empty}}})]})]),IP=UM(HM(()=>({type:`toggleListItem`,propSchema:{...LN},content:`inline`})),{experimental_keyboard:e=>{let t=_P(e);return{splitKeepsType:!0,emptyEnterResets:!0,enter:t?`into-children`:`split`,splitKeepsChildren:!t,emptyChildEnter:t?`stay`:`outdent`}},meta:{isolating:!1,dropsIntoChildren:()=>!0},parse(e){if(e.tagName===`DETAILS`)return RN(e);if(e.tagName===`LI`){let t=e.parentElement;if(t&&(t.tagName===`UL`||t.tagName===`DIV`&&t.parentElement?.tagName===`UL`)&&e.querySelector(`:scope > details`))return RN(e)}},parseContent:({el:e,schema:t})=>{let n=e.tagName===`DETAILS`?e:e.querySelector(`:scope > details`);if(!n)throw Error(`No details found in toggleListItem parseContent`);return mP(n,t,`toggleListItem`)},runsBefore:[`bulletListItem`],render(){let e=document.createElement(`p`);return{dom:e,contentDOM:e}},renderFrame:vP,toExternalHTML(e){let t=document.createElement(`li`),n=document.createElement(`details`);n.setAttribute(`open`,``);let r=document.createElement(`summary`),i=document.createElement(`p`);return r.appendChild(i),n.appendChild(r),zN(e.props,t),t.appendChild(n),{dom:t,contentDOM:i,childrenDOM:n}}},[EO({key:`toggle-list-item-shortcuts`,keyboardShortcuts:{"Mod-Shift-6":({editor:e})=>{let t=e.getTextCursorPosition();return e.schema.blockSchema[t.block.type].content===`inline`&&(e.updateBlock(t.block,{type:`toggleListItem`,props:{}}),!0)}}})]),LP=UM(HM(()=>({type:`paragraph`,propSchema:LN,content:`inline`})),{meta:{isolating:!1},parse:e=>{if(e.tagName===`P`&&e.textContent?.trim())return RN(e)},render:()=>{let e=document.createElement(`p`);return{dom:e,contentDOM:e}},toExternalHTML:e=>{let t=document.createElement(`p`);return zN(e.props,t),{dom:t,contentDOM:t}},runsBefore:[`default`,`heading`]},[EO({key:`paragraph-shortcuts`,keyboardShortcuts:{"Mod-Alt-0":({editor:e})=>{let t=e.getTextCursorPosition();return e.schema.blockSchema[t.block.type].content===`inline`&&(e.updateBlock(t.block,{type:`paragraph`,props:{}}),!0)}}})]),RP=UM(HM(()=>({type:`quote`,propSchema:{backgroundColor:LN.backgroundColor,textColor:LN.textColor},content:`inline`})),{meta:{isolating:!1},parse(e){if(e.tagName===`BLOCKQUOTE`){let{backgroundColor:t,textColor:n}=RN(e);return{backgroundColor:t,textColor:n}}},render(){let e=document.createElement(`blockquote`);return{dom:e,contentDOM:e}},toExternalHTML(e){let t=document.createElement(`blockquote`);return zN(e.props,t),{dom:t,contentDOM:t}}},[EO({key:`quote-block-shortcuts`,keyboardShortcuts:{"Mod-Alt-q":({editor:e})=>{let t=e.getTextCursorPosition();return e.schema.blockSchema[t.block.type].content===`inline`&&(e.updateBlock(t.block,{type:`quote`,props:{}}),!0)}},inputRules:[{find:RegExp(`^>\\s$`),replace(){return{type:`quote`,props:{}}}},{find:RegExp(`^\\p{Quotation_Mark}\\s$`,`u`),replace(){return{type:`quote`,props:{}}}}]})]),zP=YD.create({name:`BlockNoteTableExtension`,addProseMirrorPlugins:()=>[$k({cellMinWidth:35,defaultCellMinWidth:120,View:null}),pA()],addKeyboardShortcuts(){return{Enter:()=>UO(this.editor.state)?this.editor.commands.command(({state:e,dispatch:t})=>{let n=WO(e),r=n?YO(n,`vert`,1):null;return r&&t&&t(e.tr.setSelection(et.between(r,qO(r))).scrollIntoView()),!0}):!1,Backspace:()=>{let e=this.editor.state.selection,t=e.empty,n=e.$head.parentOffset===0,r=e.$head.node().type.name===`tableParagraph`;return t&&n&&r},Tab:()=>this.editor.commands.command(({state:e,dispatch:t,view:n})=>UO(e)?(Ak(1)(e,t,n),!0):!1),"Shift-Tab":()=>this.editor.commands.command(({state:e,dispatch:t,view:n})=>UO(e)?(Ak(-1)(e,t,n),!0):!1)}},extendNodeSchema(e){return{tableRole:FT(xT(e,`tableRole`,{name:e.name,options:e.options,storage:e.storage}))}}}),BP={textColor:LN.textColor},VP=mO.create({name:`tableHeader`,addOptions(){return{HTMLAttributes:{}}},content:`tableContent+`,marks(){return Hj(this.editor)},addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute(`colwidth`);return t?t.split(`,`).map(e=>parseInt(e,10)):null}}}},tableRole:`header_cell`,isolating:!0,parseHTML(){return[{tag:`th`,getContent:(e,t)=>KP(e,t)}]},renderHTML({HTMLAttributes:e}){return[`th`,zT(this.options.HTMLAttributes,e),0]}}),HP=mO.create({name:`tableCell`,addOptions(){return{HTMLAttributes:{}}},content:`tableContent+`,marks(){return Hj(this.editor)},addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute(`colwidth`);return t?t.split(`,`).map(e=>parseInt(e,10)):null}}}},tableRole:`cell`,isolating:!0,parseHTML(){return[{tag:`td`,getContent:(e,t)=>KP(e,t)}]},renderHTML({HTMLAttributes:e}){return[`td`,zT(this.options.HTMLAttributes,e),0]}}),UP=mO.create({name:`table`,content:`tableRow+`,group:`blockContent`,tableRole:`table`,marks(){return Hj(this.editor)},isolating:!0,parseHTML(){return[{tag:`table`}]},renderHTML({node:e,HTMLAttributes:t}){let n=xee(this.name,`table`,{...this.options.domAttributes?.blockContent||{},...t},this.options.domAttributes?.inlineContent||{}),r=document.createElement(`colgroup`);for(let t of e.children[0].children)if(t.attrs.colwidth)for(let e of t.attrs.colwidth){let t=document.createElement(`col`);e&&(t.style=`width: ${e}px`),r.appendChild(t)}else r.appendChild(document.createElement(`col`));return n.dom.firstChild?.appendChild(r),n},addNodeView(){return({node:e,HTMLAttributes:t})=>{class n extends Xk{node;cellMinWidth;blockContentHTMLAttributes;constructor(e,t,n){super(e,t),this.node=e,this.cellMinWidth=t,this.blockContentHTMLAttributes=n;let r=document.createElement(`div`);r.className=Lj(`bn-block-content`,n.class),r.setAttribute(`data-content-type`,`table`);for(let[e,t]of Object.entries(n))e!==`class`&&r.setAttribute(e,t);let i=this.dom,a=document.createElement(`div`);a.className=`tableWrapper-inner`,a.appendChild(i.firstChild),i.appendChild(a),r.appendChild(i);let o=document.createElement(`div`);o.className=`table-widgets-container`,o.style.position=`relative`,i.appendChild(o),this.dom=r}ignoreMutation(e){return!e.target.closest(`.tableWrapper-inner`)||super.ignoreMutation(e)}update(e){return super.update(e)?(Jj(this.dom,e.attrs,BP),!0):!1}}return new n(e,120,{...this.options.domAttributes?.blockContent||{},...t})}}}),WP=mO.create({name:`tableParagraph`,group:`tableContent`,content:`inline*`,parseHTML(){return[{tag:`p`,getAttrs:e=>{if(typeof e==`string`||!e.textContent||!e.closest(`[data-content-type]`))return!1;let t=e.parentElement;return t===null?!1:t.tagName===`TD`||t.tagName===`TH`?{}:!1},node:`tableParagraph`}]},renderHTML({HTMLAttributes:e}){return[`p`,e,0]}}),GP=mO.create({name:`tableRow`,addOptions(){return{HTMLAttributes:{}}},content:`(tableCell | tableHeader)+`,tableRole:`row`,marks(){return Hj(this.editor)},parseHTML(){return[{tag:`tr`}]},renderHTML({HTMLAttributes:e}){return[`tr`,zT(this.options.HTMLAttributes,e),0]}});function KP(e,t){let n=Dt.fromSchema(t).parse(e,{topNode:t.nodes.blockGroup.create()}),r=[];return n.content.descendants(e=>{if(e.isInline)return r.push(e),!1}),Vt.fromArray(r)}var qP=()=>MM({node:UP,type:`table`,content:`table`},BP,[EO({key:`table-extensions`,tiptapExtensions:[zP,WP,VP,HP,GP]}),EO({key:`table-keyboard-delete`,keyboardShortcuts:{Backspace:({editor:e})=>{if(!(e.prosemirrorState.selection instanceof $O))return!1;let t=e.getTextCursorPosition().block,n=t.content,r=0;for(let e of n.rows)for(let t of e.cells){if(`type`in t&&t.content.length>0||!(`type`in t)&&t.length>0)return!1;r++}let i=0;return e.prosemirrorState.selection.forEachCell(()=>{i++}),i<r?!1:(e.transact(()=>{(e.getPrevBlock(t)||e.getNextBlock(t))&&e.setTextCursorPosition(t),e.removeBlocks([t])}),!0)}}})]),JP=e=>({url:e.src||void 0,previewWidth:e.width||void 0,name:e.getAttribute(`data-name`)||void 0}),YP=HM(e=>({type:`video`,propSchema:{textAlignment:LN.textAlignment,backgroundColor:LN.backgroundColor,name:{default:``},url:{default:``},caption:{default:``},showPreview:{default:!0},previewWidth:{default:void 0,type:`number`}},content:`none`})),XP=e=>e=>{if(e.tagName===`VIDEO`){if(e.closest(`figure`))return;let{backgroundColor:t}=RN(e);return{...JP(e),backgroundColor:t}}if(e.tagName===`FIGURE`){let t=HN(e,`video`);if(!t)return;let{targetElement:n,caption:r}=t,{backgroundColor:i}=RN(e);return{...JP(n),backgroundColor:i,caption:r}}},ZP=UM(YP,e=>({meta:{fileBlockAccept:[`video/*`]},parse:XP(e),render(t,n){let r=document.createElement(`div`);r.innerHTML=e.icon??`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z"></path></svg>`;let i=document.createElement(`div`);i.className=`bn-visual-media-wrapper`;let a=document.createElement(`video`);return a.className=`bn-visual-media`,n.resolveFileUrl?n.resolveFileUrl(t.props.url).then(e=>{a.src=e}):a.src=t.props.url,a.controls=!0,a.contentEditable=`false`,a.draggable=!1,t.props.previewWidth&&(a.width=t.props.previewWidth),i.appendChild(a),CP(t,n,{dom:i},i,r.firstElementChild)},toExternalHTML(e){if(!e.props.url)return{dom:document.createElement(`video`)};let t;return e.props.showPreview?(t=document.createElement(`video`),t.src=e.props.url,e.props.previewWidth&&(t.width=e.props.previewWidth)):(t=document.createElement(`a`),t.href=e.props.url,t.textContent=e.props.name||e.props.url),e.props.caption?e.props.showPreview?JN(t,e.props.caption):YN(t,e.props.caption):{dom:t}},runsBefore:[`file`]}));function QP(e,t,n){if(!(t in e.schema.blockSpecs))return!1;if(!n)return!0;for(let[r,i]of Object.entries(n)){if(!(r in e.schema.blockSpecs[t].config.propSchema))return!1;if(typeof i==`string`){if(e.schema.blockSpecs[t].config.propSchema[r].default!==void 0&&typeof e.schema.blockSpecs[t].config.propSchema[r].default!==i||e.schema.blockSpecs[t].config.propSchema[r].type!==void 0&&e.schema.blockSpecs[t].config.propSchema[r].type!==i)return!1}else{if(e.schema.blockSpecs[t].config.propSchema[r].default!==i.default||e.schema.blockSpecs[t].config.propSchema[r].default===void 0&&i.default===void 0&&e.schema.blockSpecs[t].config.propSchema[r].type!==i.type||typeof e.schema.blockSpecs[t].config.propSchema[r].values!=typeof i.values)return!1;if(typeof e.schema.blockSpecs[t].config.propSchema[r].values==`object`&&typeof i.values==`object`){for(let n of i.values)if(!e.schema.blockSpecs[t].config.propSchema[r].values.includes(n))return!1}}}return!0}function $P(e,t,n,r){return QP(t,n,r)&&e.type===n}function eF(e){return e instanceof $O}function tF(e){let t=e.type.spec.tableRole;return t===`cell`||t===`header_cell`}var nF={1:`heading`,2:`heading_2`,3:`heading_3`,4:`heading_4`,5:`heading_5`,6:`heading_6`},rF={1:`toggle_heading`,2:`toggle_heading_2`,3:`toggle_heading_3`};function iF(e){let t=[];if(QP(e,`paragraph`)&&t.push({key:`paragraph`,type:`paragraph`}),QP(e,`heading`,{level:`number`})){let n=e.schema.blockSchema.heading.propSchema.level.values,r=QP(e,`heading`,{level:`number`,isToggleable:`boolean`});for(let e of[1,2,3,4,5,6])n?.includes(e)&&t.push({key:nF[e],type:`heading`,props:r?{level:e,isToggleable:!1}:{level:e}});if(r)for(let e of[1,2,3])n?.includes(e)&&t.push({key:rF[e],type:`heading`,props:{level:e,isToggleable:!0}})}for(let[n,r]of[[`quote`,`quote`],[`toggle_list`,`toggleListItem`],[`bullet_list`,`bulletListItem`],[`numbered_list`,`numberedListItem`],[`check_list`,`checkListItem`]])QP(e,r)&&t.push({key:n,type:r});return t}var aF=EO(({editor:e})=>{let t=DO(!1),n=()=>e.transact(e=>{if(e.selection.empty||e.selection instanceof et&&e.doc.textBetween(e.selection.from,e.selection.to).length===0)return!1;let t=!1;return e.selection.content().content.descendants(e=>(e.type.spec.content===`text*`&&(t=!0),!t)),!t});return{key:`formattingToolbar`,store:t,mount({dom:r,signal:i}){let a=!1,o=!1,s=e.onChange(()=>{a||o||t.setState(n())}),c=e.onSelectionChange(()=>{a||o||t.setState(n())}),l=e.onFocusChange((r,{focused:i})=>{i?a||o||e.isFocused()&&t.setState(n()):t.setState(!1)},{includeEditorUI:!0});r.addEventListener(`pointerdown`,()=>{a=!0,t.setState(!1)},{signal:i}),e.prosemirrorView.root.addEventListener(`pointerup`,()=>{a=!1,e.isFocused()&&t.setState(n())},{signal:i,capture:!0}),r.addEventListener(`pointercancel`,()=>{a=!0},{signal:i,capture:!0}),e.prosemirrorView.root.addEventListener(`dragstart`,()=>{o=!0,t.setState(!1)},{signal:i}),e.prosemirrorView.root.addEventListener(`dragend`,()=>{o=!1},{signal:i}),i.addEventListener(`abort`,()=>{s(),c(),l()})}}});function oF(e,t,n=`left`){let r=e.getExtension(`yPositionMapping`);if(r)return r.mapPosition(t,n);let i=e.getExtension(`positionMapping`);if(i)return i.mapPosition(t,n);throw Error(`No position mapping extension found`)}var sF=bT(e=>e.type.name===`blockContainer`),cF=class{editor;state;emitUpdate;rootEl;pluginState;constructor(e,t,n){this.editor=e,this.pluginState=void 0,this.emitUpdate=e=>{if(!this.state)throw Error(`Attempting to update uninitialized suggestions menu`);t(e,{...this.state,ignoreQueryLength:this.pluginState?.ignoreQueryLength})},this.rootEl=n.root,this.rootEl?.addEventListener(`scroll`,this.handleScroll,!0)}handleScroll=e=>{if(this.state?.show){let t=this.rootEl?.querySelector(`[data-decoration-id="${this.pluginState.decorationId}"]`);if(!t||e.target instanceof Node&&!e.target.contains(t))return;this.state.referencePos=t.getBoundingClientRect().toJSON(),this.emitUpdate(this.pluginState.triggerCharacter)}};update(e,t){let n=lF.getState(t),r=lF.getState(e.state),i=n===void 0&&r!==void 0,a=n!==void 0&&r===void 0;if(!i&&(n===void 0||r===void 0)&&!a)return;if(this.pluginState=a?n:r,a||!this.editor.isEditable){this.state&&(this.state.show=!1),this.emitUpdate(this.pluginState.triggerCharacter);return}let o=this.rootEl?.querySelector(`[data-decoration-id="${this.pluginState.decorationId}"]`);this.editor.isEditable&&o&&(this.state={show:!0,referencePos:o.getBoundingClientRect().toJSON(),query:this.pluginState.query},this.emitUpdate(this.pluginState.triggerCharacter))}destroy(){this.rootEl?.removeEventListener(`scroll`,this.handleScroll,!0)}closeMenu=()=>{this.editor.transact(e=>e.setMeta(lF,null))};clearQuery=()=>{this.pluginState!==void 0&&this.editor._tiptapEditor.chain().focus().deleteRange({from:this.pluginState.queryStartPos()-(this.pluginState.deleteTriggerCharacter?this.pluginState.triggerCharacter.length:0),to:this.editor.transact(e=>e.selection.from)}).run()}},lF=new on(`SuggestionMenuPlugin`),uF=EO(({editor:e})=>{let t=new Map,n,r=DO(void 0);return{key:`suggestionMenu`,store:r,addSuggestionMenu:e=>{t.set(e.triggerCharacter,e)},removeSuggestionMenu:e=>{t.delete(e)},closeMenu:()=>{n?.closeMenu()},clearQuery:()=>{n?.clearQuery()},shown:()=>n?.state?.show||!1,openSuggestionMenu:(t,n)=>{e.headless||(e.focus(),e.transact(e=>{n?.deleteTriggerCharacter&&e.insertText(t),e.scrollIntoView().setMeta(lF,{triggerCharacter:t,deleteTriggerCharacter:n?.deleteTriggerCharacter||!1,ignoreQueryLength:n?.ignoreQueryLength||!1})}))},prosemirrorPlugins:[new ut({key:lF,view:t=>(n=new cF(e,(e,t)=>{r.setState({...t,triggerCharacter:e})},t),n),state:{init(){},apply:(t,r,i,a)=>{if(t.selection.$from.parent.type.spec.code)return r;let o=t.getMeta(lF);if(typeof o==`object`&&o){r&&n?.closeMenu();let t=oF(e,a.selection.from-o.triggerCharacter.length);return{triggerCharacter:o.triggerCharacter,deleteTriggerCharacter:o.deleteTriggerCharacter!==!1,queryStartPos:()=>t()+o.triggerCharacter.length,query:``,decorationId:`id_${Math.floor(Math.random()*4294967295)}`,ignoreQueryLength:o?.ignoreQueryLength}}if(r===void 0)return r;if(a.selection.from!==a.selection.to||o===null||t.getMeta(`focus`)||t.getMeta(`blur`)||t.getMeta(`pointer`)||r.triggerCharacter!==void 0&&a.selection.from<r.queryStartPos()||!a.selection.$from.sameParent(a.doc.resolve(r.queryStartPos())))return;let s={...r};return s.query=a.doc.textBetween(r.queryStartPos(),a.selection.from),s}},props:{handleTextInput(e,n,r,i){let a=e.state.doc,o=[...t.entries()].sort(([e],[t])=>t.length-e.length);for(let[t,r]of o){let o=a.textBetween(Math.max(0,n-(t.length-i.length)),n)+i;if(t===o){if(r.shouldOpen&&!r.shouldOpen(e.state.tr))continue;return e.dispatch(e.state.tr.insertText(i)),e.dispatch(e.state.tr.setMeta(lF,{triggerCharacter:o}).scrollIntoView()),!0}}return!1},decorations(e){let t=this.getState(e);if(t===void 0)return null;if(!t.deleteTriggerCharacter){let n=sF(e.selection);if(n)return Rt.create(e.doc,[Wt.node(n.pos,n.pos+n.node.nodeSize,{nodeName:`span`,class:`bn-suggestion-decorator`,"data-decoration-id":t.decorationId})])}return Rt.create(e.doc,[Wt.inline(t.queryStartPos()-t.triggerCharacter.length,t.queryStartPos(),{nodeName:`span`,class:`bn-suggestion-decorator`,"data-decoration-id":t.decorationId})])}}})]}});function dF(e){let t=e.getTextCursorPosition().block,n=e.schema.blockSchema[t.type].content;for(;n===`none`;){if(t=e.getTextCursorPosition().nextBlock,t===void 0){let t=e.document[e.document.length-1],n=e.insertBlocks([{type:`paragraph`}],t,`after`)[0];e.setTextCursorPosition(n,`end`);return}n=e.schema.blockSchema[t.type].content,e.setTextCursorPosition(t,`end`)}}function fF(e,t){let n=e.getTextCursorPosition().block;if(n.content===void 0)throw Error(`Slash Menu open in a block that doesn't contain content.`);let r;return Array.isArray(n.content)&&(n.content.length===1&&Oj(n.content[0])&&n.content[0].type===`text`&&n.content[0].text===`/`||n.content.length===0)?(r=e.updateBlock(n,t),e.setTextCursorPosition(r)):(r=e.insertBlocks([t],n,`after`)[0],e.setTextCursorPosition(e.getTextCursorPosition().nextBlock)),dF(e),r}function pF(e){let t=[],n=new Map(iF(e).map(e=>[e.key,e]));function r(r,i){let a=n.get(r);a&&t.push({onItemClick:()=>{fF(e,{type:a.type,props:a.props})},badge:i,key:r,...e.dictionary.slash_menu[r]})}return r(`heading`,Ij(`Mod-Alt-1`)),r(`heading_2`,Ij(`Mod-Alt-2`)),r(`heading_3`,Ij(`Mod-Alt-3`)),r(`quote`),r(`toggle_list`,Ij(`Mod-Shift-6`)),r(`numbered_list`,Ij(`Mod-Shift-7`)),r(`bullet_list`,Ij(`Mod-Shift-8`)),r(`check_list`,Ij(`Mod-Shift-9`)),r(`paragraph`,Ij(`Mod-Alt-0`)),QP(e,`codeBlock`)&&t.push({onItemClick:()=>{fF(e,{type:`codeBlock`})},badge:Ij(`Mod-Alt-c`),key:`code_block`,...e.dictionary.slash_menu.code_block}),QP(e,`divider`)&&t.push({onItemClick:()=>{fF(e,{type:`divider`})},key:`divider`,...e.dictionary.slash_menu.divider}),QP(e,`table`)&&t.push({onItemClick:()=>{fF(e,{type:`table`,content:{type:`tableContent`,rows:[{cells:[``,``,``]},{cells:[``,``,``]}]}})},badge:void 0,key:`table`,...e.dictionary.slash_menu.table}),QP(e,`image`,{url:`string`})&&t.push({onItemClick:()=>{let t=fF(e,{type:`image`});e.getExtension(UN)?.showMenu(t.id),e.getExtension(aF)?.store.setState(!1)},key:`image`,...e.dictionary.slash_menu.image}),QP(e,`video`,{url:`string`})&&t.push({onItemClick:()=>{let t=fF(e,{type:`video`});e.getExtension(UN)?.showMenu(t.id),e.getExtension(aF)?.store.setState(!1)},key:`video`,...e.dictionary.slash_menu.video}),QP(e,`audio`,{url:`string`})&&t.push({onItemClick:()=>{let t=fF(e,{type:`audio`});e.getExtension(UN)?.showMenu(t.id),e.getExtension(aF)?.store.setState(!1)},key:`audio`,...e.dictionary.slash_menu.audio}),QP(e,`file`,{url:`string`})&&t.push({onItemClick:()=>{let t=fF(e,{type:`file`});e.getExtension(UN)?.showMenu(t.id),e.getExtension(aF)?.store.setState(!1)},key:`file`,...e.dictionary.slash_menu.file}),r(`toggle_heading`),r(`toggle_heading_2`),r(`toggle_heading_3`),r(`heading_4`,Ij(`Mod-Alt-4`)),r(`heading_5`,Ij(`Mod-Alt-5`)),r(`heading_6`,Ij(`Mod-Alt-6`)),t.push({onItemClick:()=>{e.getExtension(uF)?.openSuggestionMenu(`:`,{deleteTriggerCharacter:!0,ignoreQueryLength:!0})},key:`emoji`,...e.dictionary.slash_menu.emoji}),t}function mF(e,t){return e.filter(({title:e,aliases:n})=>e.toLowerCase().includes(t.toLowerCase())||n&&n.filter(e=>e.toLowerCase().includes(t.toLowerCase())).length!==0)}var hF={audio:tP(),bulletListItem:jP(),checkListItem:MP(),codeBlock:uP(),divider:dP(),file:pP(),heading:SP(),image:kP(),numberedListItem:FP(),paragraph:LP(),quote:RP(),table:qP(),toggleListItem:IP(),video:ZP()},gF=eN({type:`textColor`,propSchema:`string`},{render:()=>{let e=document.createElement(`span`);return{dom:e,contentDOM:e}},toExternalHTML:e=>{let t=document.createElement(`span`);return e!==LN.textColor.default&&(t.style.color=e in IN?IN[e].text:e),{dom:t,contentDOM:t}},parse:e=>{if(e.tagName===`SPAN`&&e.style.color)return e.style.color}}),_F=eN({type:`backgroundColor`,propSchema:`string`},{render:()=>{let e=document.createElement(`span`);return{dom:e,contentDOM:e}},toExternalHTML:e=>{let t=document.createElement(`span`);return e!==LN.backgroundColor.default&&(t.style.backgroundColor=e in IN?IN[e].background:e),{dom:t,contentDOM:t}},parse:e=>{if(e.tagName===`SPAN`&&e.style.backgroundColor)return e.style.backgroundColor}}),vF={bold:ZM(TA,`boolean`),italic:ZM(PA,`boolean`),underline:ZM(RA,`boolean`),strike:ZM(LA,`boolean`),code:ZM(kA.extend({excludes(){return yO(this.editor)},addInputRules(){return[pO({find:/(^|[^`])`([^`]+)`(?!`)$/,type:this.type}),new ND({find:/(^|[^`])`([^`]+)`(?!`) $/,handler:({state:e,range:t,match:n})=>{let{tr:r,schema:i}=e,a=n[1],o=n[2];r.replaceWith(t.from+a.length,t.to,[i.text(o,[this.type.create()]),i.text(` `)])}})]}}),`boolean`),textColor:gF,backgroundColor:_F};QM(vF);var yF={text:{config:`text`,implementation:{}},link:{config:`link`,implementation:{}}},bF=qM(yF),xF=class e extends fN{static create(t){return new e({blockSpecs:t?.blockSpecs??hF,inlineContentSpecs:t?.inlineContentSpecs??yF,styleSpecs:t?.styleSpecs??vF})}},SF=new on(`blocknote-show-selection`),CF=EO(({editor:e})=>{let t=DO({enabledSet:new Set},{onUpdate(){e.transact(e=>e.setMeta(SF,{}))}});return{key:`showSelection`,store:t,prosemirrorPlugins:[new ut({key:SF,props:{decorations:e=>{let{doc:n,selection:r}=e;if(t.state.enabledSet.size===0)return Rt.empty;let i=Wt.inline(r.from,r.to,{"data-show-selection":`true`});return Rt.create(n,[i])}}})],showSelection(e,n){t.setState({enabledSet:e?new Set([...t.state.enabledSet,n]):new Set([...t.state.enabledSet].filter(e=>e!==n))})}}});function wF(e){if(!e)throw Error(`resolveUsers is required to create a user store`);let t=DO(new Map),n=new Set,r={store:t,async loadUsers(e){await i(e.filter(e=>!t.state.has(e)&&!n.has(e)))},async refetchUsers(e){await i(e.filter(e=>!n.has(e)))},getUser(e){return t.state.get(e)},setUser(e){let n=Array.isArray(e)?e:[e];t.setState(e=>{let t=new Map(e);for(let e of n)t.set(e.id,e);return t})}};async function i(i){if(i.length!==0){for(let e of i)n.add(e);try{let n=await e(i,r);n.length>0&&t.setState(e=>{let t=new Map(e);for(let e of n)t.set(e.id,e);return t})}finally{for(let e of i)n.delete(e)}}}return r}function TF(e){return typeof e==`function`?wF(e):e??wF(async()=>[])}var EF=n(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),DF=class e{constructor(e){this.cache=new Map(e)}get(e){return this.cache.get(e)}set(e,t,n){e<0||this.cache.set(e,[t,n])}replace(e,t,n,r){this.remove(e),this.set(t,n,r)}remove(e){this.cache.delete(e)}invalidate(t){let n=new e(this.cache),r=t.mapping;return this.cache.forEach(([e,i],a)=>{if(a<0)return;let o=r.mapResult(a),s=t.doc.nodeAt(o.pos);if(o.deleted||!s?.eq(e))n.remove(a);else if(a!==o.pos){let e=i.map(e=>e.map(r,0,0)).filter(e=>e!=null);n.replace(a,o.pos,s,e)}}),n}};function OF({parser:e,nodeTypes:t=[`code_block`,`codeBlock`],languageExtractor:n=e=>e.attrs.language}){let r=new on(`prosemirror-highlight`);return new ut({key:r,state:{init(r,i){let a=new DF,[o,s]=kF(i.doc,e,t,n,a);return{cache:a,decorations:o,promises:s}},apply:(r,i)=>{let a=i.cache.invalidate(r),o=!!r.getMeta(`prosemirror-highlight-refresh`);if(!r.docChanged&&!o)return{cache:a,decorations:i.decorations?.map(r.mapping,r.doc),promises:i.promises};let[s,c]=kF(r.doc,e,t,n,a);return{cache:a,decorations:s,promises:c}}},view:e=>{let t=new Set,n=()=>{if(t.size>0||e.isDestroyed)return;let n=e.state.tr.setMeta(`prosemirror-highlight-refresh`,!0);e.dispatch(n)},i=()=>{let i=r.getState(e.state);for(let e of i?.promises??[])t.add(e),e.then(()=>{t.delete(e),n()}).catch(n=>{console.error(`[prosemirror-highlight] Error resolving parser:`,n),t.delete(e)})};return i(),{update:()=>{i()}}},props:{decorations(e){return this.getState(e)?.decorations}}})}function kF(e,t,n,r,i){let a=[],o=[],s=AF(e,n);try{for(let[e,n]of s){let s=r(e),c=i.get(n);if(c){let[e,t]=c;t.length>0&&a.push(t)}else{let r=t({content:e.textContent,language:s||void 0,pos:n,size:e.nodeSize});r&&Array.isArray(r)?(i.set(n,e,r),r.length>0&&a.push(r)):r instanceof Promise?(i.remove(n),o.push(r)):console.error(`[prosemirror-highlight] Invalid parser result:`,r)}}}catch(e){console.error(`[prosemirror-highlight] Error parsing code blocks:`,e)}return[a.length>0?Rt.create(e,a.flat()):void 0,o]}function AF(e,t){let n=[];return e.descendants((e,r)=>{if(e.type.inlineContent&&t.includes(e.type.name))return n.push([e,r]),!1}),n}function jF(e,t){return function({content:n,language:r,pos:i,size:a}){let o=[],{tokens:s,fg:c,bg:l,rootStyle:u}=e.codeToTokens(n,{lang:r,...t??{theme:e.getLoadedThemes()[0]}}),d=u||(c&&l?`--prosemirror-highlight:${c};--prosemirror-highlight-bg:${l}`:``);if(d){let e=Wt.node(i,i+a,{style:d});o.push(e)}let f=i+1;for(let e of s){for(let t of e){let e=f+t.content.length,n=Wt.inline(f,e,{style:MF(t.htmlStyle??`color: ${t.color}`),class:`shiki`});o.push(n),f=e}f+=1}return o}}function MF(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}var NF=e(EF(),1);function PF(e,t){let n,r;if(t.firstChild.descendants((i,a)=>n?!1:!FF(i)||!i.attrs.id||nj(i,t)!==e||(n=i,r=a+1,!1)),n!==void 0&&r!==void 0)return{node:n,posBeforeNode:r}}function FF(e){return e.type.isInGroup(`bnBlock`)}var IF=`[data-node-type][data-id]:not([data-node-type="blockOuter"])`;function LF(e,t){if(!t.dom.contains(e))return;let n=e.closest(`.bn-editor`);if(n&&n!==t.dom)return;let r=e.closest(IF);return r&&r!==t.dom&&t.dom.contains(r)?r:void 0}function RF(e,t,n){let r=e.nodeDOM(t);if(!(r instanceof Element))return;let i=r.matches(`[data-node-type][data-id]:not([data-node-type="blockOuter"])`)?r:r.querySelector(IF);return i?.getAttribute(`data-id`)===n?i:void 0}function zF(e,t){let n=LF(e,t);if(!n)return;let r=n.getAttribute(`data-id`),i=n.getAttribute(`data-node-type`),a=i===`blockContainer`?n.querySelector(`[data-content-type]`)?.getAttribute(`data-content-type`):i,o=n.ownerDocument.defaultView?.HTMLElement;if(!o||!(n instanceof o)||!r||!a)throw Error(`Block root is missing its HTML element, ID, or block type.`);return{node:n,id:r,type:a}}function BF(e,t,n){let r=zF(e,t);for(;r;){if(n(r.type))return r;let e=r.node.parentElement;r=e?zF(e,t):void 0}}function VF(e){let t=e.closest(`.bn-editor`),n=[];for(let r of e.querySelectorAll(IF))r.parentElement?.closest(`[data-node-type][data-id]:not([data-node-type="blockOuter"])`)===e&&r.closest(`.bn-editor`)===t&&n.push(r);return n}function HF(e){let t=Array.from(e.classList).filter(e=>!e.startsWith(`bn-`))||[];t.length>0?e.className=t.join(` `):e.removeAttribute(`class`)}function UF(e,t,n,r){let i;if(!t)throw Error(`blockContent is required`);if(typeof t==`string`)i=jN([t],e.pmSchema,r?.blockType);else if(Array.isArray(t))i=jN(t,e.pmSchema,r?.blockType);else if(t.type===`tableContent`)i=MN(t,e.pmSchema);else throw new Pj(t.type);let a=(r?.document??document).createDocumentFragment();for(let t of i)if(t.type.name!==`text`&&e.schema.inlineContentSchema[t.type.name]){let i=e.schema.inlineContentSpecs[t.type.name].implementation;if(i){let o=oM(t,e.schema.inlineContentSchema,e.schema.styleSchema),s=i.toExternalHTML?i.toExternalHTML(o,e):i.render.call({renderType:`dom`,props:void 0},o,()=>{},e);if(s){if(a.appendChild(s.dom),s.contentDOM){let e=n.serializeFragment(t.content,r);s.contentDOM.dataset.editable=``,s.contentDOM.appendChild(e)}continue}}}else if(t.type.name===`text`){let n=document.createTextNode(t.textContent);for(let r of t.marks.toReversed())if(r.type.name in e.schema.styleSpecs){let t=(e.schema.styleSpecs[r.type.name].implementation.toExternalHTML??e.schema.styleSpecs[r.type.name].implementation.render)(r.attrs.stringValue,e);t.contentDOM.appendChild(n),n=t.dom}else{let e=r.type.spec.toDOM(r,!0),t=Qt.renderSpec(document,e);t.contentDOM.appendChild(n),n=t.dom}a.appendChild(n)}else{let e=n.serializeFragment(Vt.from([t]),r);a.appendChild(e)}return a.childNodes.length===1&&a.firstChild?.nodeType===1&&HF(a.firstChild),a}function WF(e,t,n,r,i){let a=e.toExternalHTML?.call({},t,n,{nestingLevel:i});if(a)return{output:a};let o=hM(n,t);if(r){if(!o)throw Error(`Layout block "${t.type}" drew no frame. This is a bug in BlockNote.`);return{output:{dom:o.dom,childrenDOM:o.slot}}}if(!e.render)throw Error(`Block "${t.type}" has no \`render\`. This is a bug in BlockNote.`);return{output:e.render.call({},t,n),frame:o}}function GF(e,t,n,r,i,a,o,s){let c=s?.document??document,l=t.pmSchema.nodes.blockContainer,u=n.props||{};for(let[e,r]of Object.entries(t.schema.blockSchema[n.type].propSchema))!(e in u)&&r.default!==void 0&&(u[e]=r.default);let d=l.spec?.toDOM?.(l.create({id:n.id,...u})),f=Array.from(d.dom.attributes),p=t.blockImplementations[n.type].implementation,m={...n,props:u,children:n.children??[]},h=VA(t.pmSchema.nodes[n.type]),{output:g,frame:_}=WF(p,m,t,h,o),v=c.createDocumentFragment(),y;if(kM(g.dom)||(y=g.dom),y?.classList.contains(`bn-block-content`)){let e=[...f,...Array.from(y.attributes)].filter(e=>e.name.startsWith(`data`)&&e.name!==`data-content-type`&&e.name!==`data-file-block`&&e.name!==`data-node-view-wrapper`&&e.name!==`data-node-type`&&e.name!==`data-id`&&e.name!==`data-editable`);for(let t of e)y.firstChild.setAttribute(t.name,t.value);HF(y.firstChild),o>0&&y.firstChild.setAttribute(`data-nesting-level`,o.toString()),v.append(...Array.from(y.childNodes))}else v.append(g.dom),h&&(y?.removeAttribute(`data-node-type`),y?.removeAttribute(`data-id`),g.childrenDOM?.removeAttribute(`data-frame-slot`)),o>0&&y?.setAttribute(`data-nesting-level`,o.toString());if(g.contentDOM){if(n.content){let e=UF(t,n.content,r,{...s,blockType:n.type});g.contentDOM.appendChild(e)}let e=t.pmSchema.nodes[n.type];e?.inlineContent&&!e.spec.code&&g.contentDOM.childNodes.length===0&&g.contentDOM.appendChild(c.createTextNode(``))}let b=g.childrenDOM;_&&(_.slot.append(v),v.append(_.dom),b=_.slot);let x;if(i.has(n.type)?x=`OL`:a.has(n.type)&&(x=`UL`),x){if(e.lastChild?.nodeName!==x){let t=c.createElement(x);x===`OL`&&`start`in u&&u.start&&u?.start!==1&&t.setAttribute(`start`,String(u.start)),e.append(t)}e.lastChild.appendChild(v)}else e.append(v);if(n.children&&n.children.length>0){let l=c.createDocumentFragment();if(KF(l,t,n.children,r,i,a,o+1,s),e.lastChild?.nodeName===`UL`||e.lastChild?.nodeName===`OL`)for(;l.firstChild?.nodeName===`UL`||l.firstChild?.nodeName===`OL`;)e.lastChild.lastChild.appendChild(l.firstChild);b?b.append(l):t.pmSchema.nodes[n.type].isInGroup(`blockContent`)||!g.contentDOM?e.append(l):g.contentDOM.append(l)}}var KF=(e,t,n,r,i,a,o=0,s)=>{for(let c of n)GF(e,t,c,r,i,a,o,s)},qF=(e,t,n,r,i,a)=>{let o=(a?.document??document).createDocumentFragment();return KF(o,e,t,n,r,i,0,a),o},JF=(e,t)=>{let n=Qt.fromSchema(e);return{exportBlocks:(e,r)=>{let i=qF(t,e,n,new Set([`numberedListItem`]),new Set([`bulletListItem`,`checkListItem`,`toggleListItem`]),r),a=document.createElement(`div`);return a.append(i),a.innerHTML},exportInlineContent:(e,r)=>{let i=UF(t,e,n,r),a=document.createElement(`div`);return a.append(i.cloneNode(!0)),a.innerHTML}}};function YF(e){let{mapping:t,steps:n}=e,r=1/0,i=-1/0;for(let e=0;e<t.maps.length;e++){let a=t.maps[e];e&&(r=a.map(r,1),i=a.map(i,-1));let o=!1;if(a.forEach((e,t,n,a)=>{o=!0,r=Math.min(r,n),i=Math.max(i,a)}),!o){let t=n[e];typeof t.pos==`number`?(r=Math.min(r,t.pos),i=Math.max(i,t.pos+1)):typeof t.from==`number`&&typeof t.to==`number`&&(r=Math.min(r,t.from),i=Math.max(i,t.to))}}return r===1/0?null:{from:r,to:i}}function XF(e,t){if(t===0)return;let n=e.resolve(t);for(let t=n.depth;t>0;t--){let r=n.node(t);if(FF(r))return nj(r,e)}}function ZF(e){return e.getMeta(`paste`)?{type:`paste`}:e.getMeta(`uiEvent`)===`drop`?{type:`drop`}:e.getMeta(`history$`)?{type:e.getMeta(`history$`).redo?`redo`:`undo`}:e.getMeta(`y-sync$`)?e.getMeta(`y-sync$`).isUndoRedoOperation?{type:`undo-redo`}:{type:`yjs-remote`}:{type:`local`}}function QF(e,t){let n={},r={},i=Math.max(0,Math.min(t.from,e.content.size)),a=Math.max(i,Math.min(t.to,e.content.size));return e.nodesBetween(i,a,(t,i)=>{if(!FF(t))return!0;let a=XF(e,i),o=a??`__root__`;r[o]||(r[o]=[]);let s=sM(t,e),c=nj(t,e);return n[c]={block:s,parentId:a},r[o].push(c),!0}),{byId:n,childrenByParent:r}}function $F(e,t){let n=new Set;if(!e||!t)return n;let r=new Set(e),i=t.filter(e=>r.has(e)),a=e.filter(e=>i.includes(e));if(a.length<=1||i.length<=1)return n;let o={};for(let e=0;e<a.length;e++)o[a[e]]=e;let s=i.map(e=>o[e]),c=s.length,l=[],u=[],d=Array(c).fill(-1),f=(e,t)=>{let n=0,r=e.length;for(;n<r;){let i=n+r>>>1;e[i]<t?n=i+1:r=i}return n};for(let e=0;e<c;e++){let t=s[e],n=f(l,t);n>0&&(d[e]=u[n-1]),n===l.length?(l.push(t),u.push(e)):(l[n]=t,u[n]=e)}let p=new Set,m=u[u.length-1]??-1;for(;m!==-1;)p.add(m),m=d[m];for(let e=0;e<i.length;e++)p.has(e)||n.add(i[e]);return n}function eI(e,t=[]){let n=ZF(e),r=gj(e.before,[e,...t]),i=YF(r);if(!i)return[];let a=r.mapping.invert(),o={from:a.map(i.from,-1),to:a.map(i.to,1)},s=QF(r.before,o),c=QF(r.doc,i),l=[],u=new Set;Object.keys(c.byId).filter(e=>!(e in s.byId)).forEach(e=>{l.push({type:`insert`,block:c.byId[e].block,source:n,prevBlock:void 0}),u.add(e)}),Object.keys(s.byId).filter(e=>!(e in c.byId)).forEach(e=>{l.push({type:`delete`,block:s.byId[e].block,source:n,prevBlock:void 0}),u.add(e)}),Object.keys(c.byId).filter(e=>e in s.byId).forEach(e=>{let t=s.byId[e],r=c.byId[e];t.parentId===r.parentId?(0,NF.default)({...t.block,children:void 0},{...r.block,children:void 0})||(l.push({type:`update`,block:r.block,prevBlock:t.block,source:n}),u.add(e)):(l.push({type:`move`,block:r.block,prevBlock:t.block,source:n,prevParent:t.parentId?s.byId[t.parentId]?.block:void 0,currentParent:r.parentId?c.byId[r.parentId]?.block:void 0}),u.add(e))});let d=s.childrenByParent,f=c.childrenByParent,p=new Set([...Object.keys(d),...Object.keys(f)]),m=new Set;return p.forEach(e=>{let t=$F(d[e],f[e]);t.size!==0&&t.forEach(t=>{let r=s.byId[t],i=c.byId[t];r&&i&&r.parentId===i.parentId&&(u.has(t)||(r.parentId??`__root__`)===e&&(m.has(t)||(m.add(t),l.push({type:`move`,block:i.block,prevBlock:r.block,source:n,prevParent:r.parentId?s.byId[r.parentId]?.block:void 0,currentParent:i.parentId?c.byId[i.parentId]?.block:void 0}),u.add(t))))})}),l}var tI=EO(()=>{let e=[];return{key:`blockChange`,prosemirrorPlugins:[new ut({key:new on(`blockChange`),filterTransaction:t=>{let n;return e.reduce((e,r)=>e===!1?e:r({getChanges(){return n||(n=eI(t),n)},tr:t})!==!1,!0)}})],subscribe(t){return e.push(t),()=>{e.splice(e.indexOf(t),1)}}}});function nI(e,t){return!e||!t?!1:!!e.closest(`.${t}`)}function rI(e,t,n,r,i){let a=e.state.doc.resolve(t.pos);if(a.parent.inlineContent||t.orientation===`inline`)return null;let o=a.nodeBefore,s=a.nodeAfter;if(!o&&!s)return null;let c=t.orientation===`block-vertical-left`||t.orientation===`block-vertical-right`,l=c?t.pos:t.pos-(o?o.nodeSize:0),u=e.nodeDOM(l);if(!u)return null;let d=u.getBoundingClientRect();if(c){let e=n/2*r,i=t.orientation===`block-vertical-left`?d.left:d.right;return{left:i-e,right:i+e,top:d.top,bottom:d.bottom}}let f=o?d.bottom:d.top;o&&s&&(f=(f+e.nodeDOM(t.pos).getBoundingClientRect().top)/2);let p=n/2*i;return{left:d.left,right:d.right,top:f-p,bottom:f+p}}function iI(e,t,n,r){let i=e.coordsAtPos(t.pos),a=n/2*r;return{left:i.left-a,right:i.left+a,top:i.top,bottom:i.bottom}}function aI(e,t){e.classList.toggle(`prosemirror-dropcursor-inline`,t===`inline`),e.classList.toggle(`prosemirror-dropcursor-block-horizontal`,t===`block-horizontal`),e.classList.toggle(`prosemirror-dropcursor-block-vertical-left`,t===`block-vertical-left`),e.classList.toggle(`prosemirror-dropcursor-block-vertical-right`,t===`block-vertical-right`),e.classList.toggle(`prosemirror-dropcursor-block`,t===`block-horizontal`),e.classList.toggle(`prosemirror-dropcursor-vertical`,t===`block-vertical-left`||t===`block-vertical-right`)}function oI(e){if(!e||e===document.body&&getComputedStyle(e).position===`static`)return{parentLeft:-window.pageXOffset,parentTop:-window.pageYOffset};let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return{parentLeft:t.left-e.scrollLeft*n,parentTop:t.top-e.scrollTop*r}}function sI(e){let t=[];function n(e,r){let i=e.type.spec.blockConfig?.children,a=e.type.name===`blockContainer`&&e.firstChild?.type.name===`blockGroup`,o=VA(e.type)&&(!i||UA(e.type)||e.childCount<qA(i));a||o||!e.type.isInGroup(`bnBlock`)?e.forEach(e=>n(e,o?r:e)):t.push(sM(e,r))}return e.forEach(e=>n(e,e)),t}function cI(e,t,n){let r=t.dragging?.slice;if(!r||r.openStart>0)return;let i=sI(r.content),a=t.posAtCoords(n);if(i.length===0||!a||a.inside<0)return;let o=t.state.doc.resolve(a.inside+1),s=o.depth;for(;s>0&&!o.node(s).type.isInGroup(`bnBlock`);){if(o.node(s).type.name===`blockGroup`)return;s--}if(s===0)return;let c=ij(o.node(s),o.before(s));if(!c.hasContent||!e.schema.blockSpecs[c.blockNoteType]?.implementation.meta.dropsIntoChildren?.(sM(c.block.node,t.state.doc)))return;let l=c.block.node.attrs.id,u=e=>e.id===l||e.children.some(u);if(!i.some(u))return{blockInfo:c,draggedBlocks:i,pos:c.children?c.children.childrenStart:c.block.afterPos-1}}var lI=new on(`dropInto`),uI=EO(({editor:e,options:t})=>{let n=null,r=null,i=-1,a=null,o={width:t.dropCursor?.width??5,color:t.dropCursor?.color??`#ddeeff`,exclude:t.dropCursor?.exclude??`bn-drag-exclude`,hooks:t.dropCursor?.hooks},s=t=>{let n=e.prosemirrorView,r=lI.getState(n.state);(r?.blockId!==t?.blockId||r?.pos!==t?.pos)&&n.dispatch(n.state.tr.setMeta(lI,{into:t}))},c=e=>{(e?.pos!==n?.pos||e?.orientation!==n?.orientation)&&(n=e,e==null?(s(void 0),r&&r.parentNode&&r.parentNode.removeChild(r),r=null):l())},l=()=>{if(!n)return;let t=e.prosemirrorView,i=t.dom,a=i.getBoundingClientRect(),s=a.width/i.offsetWidth,c=a.height/i.offsetHeight,l=rI(t,n,o.width,s,c)??iI(t,n,o.width,s),u=t.dom.offsetParent;r||(r=u.appendChild(document.createElement(`div`)),r.style.cssText=`position: absolute; z-index: 50; pointer-events: none;`,o.color&&(r.style.backgroundColor=o.color)),aI(r,n.orientation);let{parentLeft:d,parentTop:f}=oI(u);r.style.left=(l.left-d)/s+`px`,r.style.top=(l.top-f)/c+`px`,r.style.width=(l.right-l.left)/s+`px`,r.style.height=(l.bottom-l.top)/c+`px`},u=e=>{clearTimeout(i),i=window.setTimeout(()=>c(null),e)},d=e=>{let t=e;a=t.target instanceof Element?t.target:null},f=t=>{let n=t;if(a&&nI(a,o.exclude)||n.target instanceof Element&&nI(n.target,o.exclude))return;let r=e.prosemirrorView;if(!r.editable)return;let i=r.posAtCoords({left:n.clientX,top:n.clientY}),l=i&&i.inside>=0&&r.state.doc.nodeAt(i.inside),d=l&&l.type.spec.disableDropCursor,f=typeof d==`function`?d(r,i,n):d;if(i&&!f){let t=i.pos;if(r.dragging&&r.dragging.slice){let e=gt(r.state.doc,t,r.dragging.slice);e!=null&&(t=e)}let a=!r.state.doc.resolve(t).parent.inlineContent,l=cI(e,r,{left:n.clientX,top:n.clientY}),d=l?{pos:l.pos,orientation:`block-horizontal`}:{pos:t,orientation:a?`block-horizontal`:`inline`},f=d;if(o.hooks?.computeDropPosition){let t=o.hooks.computeDropPosition({editor:e,event:n,view:r,defaultPosition:d});if(t===null){c(null);return}f=t}if(c(f),l&&f.pos===l.pos&&f.orientation===`block-horizontal`){let{block:e}=l.blockInfo;s({blockId:e.node.attrs.id,draggedBlocks:l.draggedBlocks,pos:e.beforePos})}else s(void 0);u(5e3)}},p=t=>{let n=t;n.relatedTarget instanceof Node&&e.prosemirrorView.dom.contains(n.relatedTarget)||c(null)},m=()=>{u(20)},h=()=>{u(20),a=null};return{key:`dropCursor`,prosemirrorPlugins:[new ut({key:lI,state:{init:()=>void 0,apply(e,t){let n=e.getMeta(lI);if(n)return n.into;if(!t)return;let{pos:r,deletedAfter:i}=e.mapping.mapResult(t.pos,1);return i?void 0:{...t,pos:r}}},props:{decorations(e){let t=lI.getState(e),n=t&&e.doc.nodeAt(t.pos);return!t||!n?Rt.empty:Rt.create(e.doc,[Wt.node(t.pos,t.pos+n.nodeSize,{"data-drop-target":`true`})])},handleDrop(t,n,r,i){let a=lI.getState(t.state);if(s(void 0),!a||!e.getBlock(a.blockId))return!1;let{blockId:o,draggedBlocks:c}=a;return e.transact(()=>{i&&e.removeBlocks(c.filter(t=>e.getBlock(t.id)));let t=e.getBlock(o);if(!t)throw Error(`The drop target was removed with the dragged blocks`);t.children.length>0?e.insertBlocks(c,t.children[0],`before`):e.updateBlock(t,{children:c})}),!0}}})],mount({signal:e,dom:t,root:n}){n.addEventListener(`dragstart`,d,{capture:!0,signal:e}),t.addEventListener(`dragover`,f,{signal:e}),t.addEventListener(`dragleave`,p,{signal:e}),t.addEventListener(`drop`,m,{signal:e}),t.addEventListener(`dragend`,h,{signal:e}),e.addEventListener(`abort`,()=>{clearTimeout(i),c(null)})}}}),dI=EO(()=>({key:`history`,prosemirrorPlugins:[Ct()],undoCommand:$t,redoCommand:It})),fI=new on(`inline-content-boundary-edit`);function pI(e,t,n){if(!e.empty)return e.from<=n.from&&e.to>=n.to;let r=n.to-n.from===1;return t===`Backspace`?r&&e.from===n.to:r&&e.from===n.from}var mI=EO(()=>({key:`inlineContentBoundaryEdit`,prosemirrorPlugins:[new ut({key:fI,props:{handleKeyDown:(e,t)=>{if(!e.editable)return!1;let n=t.key.length===1&&!t.ctrlKey&&!t.metaKey;if(!n&&t.key!==`Backspace`&&t.key!==`Delete`)return!1;let{selection:r}=e.state,i=r.$from.node();if(!i.type.spec.inline)return!1;let a=r.$from.before(),o=a+1,s=a+1+i.content.size;if(n&&i.content.size===0){let n=e.state.tr.insert(o,e.state.schema.text(t.key));return n.setSelection(et.create(n.doc,o+t.key.length)),e.dispatch(n),!0}if(i.content.size>0&&pI(r,t.key,{from:o,to:s})){let t=e.state.tr.delete(o,s);return t.setSelection(et.create(t.doc,o)),e.dispatch(t),!0}return!1}}})]})),hI=EO(({editor:e})=>{function t(t){let n=e.prosemirrorView.nodeDOM(t);for(;n&&n.parentElement;){if(n.nodeName===`A`)return n;n=n.parentElement}return null}function n(t){let n=e.getLinkMarkAtPos(t);if(n)return{range:{from:n.from,to:n.to},mark:{attrs:{href:n.href}},get text(){return n.text},get position(){return yE(e.prosemirrorView,n.from,n.to).toJSON()}}}function r(){return e.transact(e=>{if(e.selection.empty)return n(e.selection.anchor)})}return{key:`linkToolbar`,getLinkAtSelection:r,getLinkElementAtPos:t,getMarkAtPos(e,t){return n(e)},getLinkAtElement(t){return e.transact(()=>n(e.prosemirrorView.posAtDOM(t,0)+1))},editLink(t,n,r=e.transact(e=>e.selection.anchor)){e.editLink(t,n,r)},deleteLink(t=e.transact(e=>e.selection.anchor)){e.deleteLink(t)}}}),gI=[`http`,`https`,`ftp`,`ftps`,`mailto`,`tel`,`callto`,`sms`,`cid`,`xmpp`],_I=`https`,vI=new on(`node-selection-keyboard`),yI=EO(({editor:e})=>({key:`nodeSelectionKeyboard`,prosemirrorPlugins:[new ut({key:vI,props:{handleKeyDown:(t,n)=>{let{selection:r}=t.state;if(r instanceof it){if(n.ctrlKey||n.metaKey)return!1;if(n.key===`ArrowDown`&&!n.shiftKey&&!n.altKey&&!n.isComposing&&!r.node.isInline&&r.eq(Je.atEnd(t.state.doc))){let{block:t}=e.getTextCursorPosition();if(e.schema.blockSchema[t.type].content===`none`)return e.transact(n=>{let[r]=e.insertBlocks([{type:`paragraph`}],t,`after`);e.setTextCursorPosition(r,`start`),n.scrollIntoView()}),n.preventDefault(),!0}if(n.key.length===1)return n.preventDefault(),!0;if(n.key===`Enter`&&!n.isComposing&&!n.shiftKey&&!n.altKey&&!n.ctrlKey&&!n.metaKey){let e=t.state.tr;return t.dispatch(e.insert(t.state.tr.selection.$to.after(),t.state.schema.nodes.paragraph.createChecked()).setSelection(new et(e.doc.resolve(t.state.tr.selection.$to.after()+1)))),!0}}return!1}}})]})),bI=new on(`blocknote-placeholder`),xI=EO(({editor:e,options:t})=>{let n=t.placeholders,r=`placeholder-selector-${jO()}`;return{key:`placeholder`,prosemirrorPlugins:[new ut({key:bI,view:t=>{let i=document.createElement(`style`),a=e._tiptapEditor.options.injectNonce;a&&i.setAttribute(`nonce`,a),t.root instanceof window.ShadowRoot?t.root.append(i):t.root.head.appendChild(i);let o=i.sheet,s=(e=``)=>`.${r} .bn-block-content${e}:has(.ProseMirror-trailingBreak:only-child):after`;try{let{default:e,emptyDocument:t,...r}=n||{};for(let[e,t]of Object.entries(r)){let n=`[data-content-type="${e}"]`;o.insertRule(`${s(n)} { content: ${JSON.stringify(t)}; }`)}o.insertRule(`${s(`[data-is-only-empty-block]`)} { content: ${JSON.stringify(t)}; }`),o.insertRule(`${s(`[data-is-empty-and-focused]`)} { content: ${JSON.stringify(e)}; }`)}catch(e){console.warn(`Failed to insert placeholder CSS rule - this is likely due to the browser not supporting certain CSS pseudo-element selectors (:has, :only-child:, or :before)`,e)}return{destroy:()=>{i.remove()}}},props:{attributes:{class:r},decorations:t=>{let{doc:n,selection:r}=t;if(!e.isEditable||!r.empty||r.$from.parent.type.spec.code)return;let i=[];t.doc.content.size===6&&i.push(Wt.node(2,4,{"data-is-only-empty-block":`true`}));let a=r.$anchor,o=a.parent;if(o.content.size===0){let e=a.before();i.push(Wt.node(e,e+o.nodeSize,{"data-is-empty-and-focused":`true`}))}return Rt.create(n,i)}}})]}}),SI=EO(({editor:e})=>{let t=new pt,n=0;function r(){t=new pt,n=0}let i=typeof FinalizationRegistry<`u`?new FinalizationRegistry(()=>{n--,n===0&&r()}):null;return e.on(`create`,()=>{e._tiptapEditor.on(`transaction`,({transaction:e})=>{n!==0&&t.appendMapping(e.mapping)}),e._tiptapEditor.on(`destroy`,()=>{r()})}),{key:`positionMapping`,mapPosition:(e,r=`left`)=>{n++;let a=t.maps.length,o=()=>t.slice(a).map(e,r===`left`?-1:1);return i&&i.register(o,void 0),o}}}),CI=new on(`previous-blocks`),wI={index:`index`,level:`level`,type:`type`,depth:`depth`,"depth-change":`depth-change`},TI=EO(()=>{let e,t=!1;return{key:`previousBlockType`,prosemirrorPlugins:[new ut({key:CI,view(n){return t=!0,{update:async(t,n)=>{this.key?.getState(t.state).updatedBlocks.size>0&&(e=setTimeout(()=>{t.dispatch(t.state.tr.setMeta(CI,{clearUpdate:!0}))},0))},destroy:()=>{t=!1,e&&clearTimeout(e)}}},state:{init(){return{prevTransactionOldBlockAttrs:{},currentTransactionOldBlockAttrs:{},updatedBlocks:new Set}},apply(e,n,r,i){if(n.currentTransactionOldBlockAttrs={},n.updatedBlocks.clear(),!e.docChanged||!t)return n;let a=YF(e);if(!a)return n;let o=e.mapping.invert(),s={from:o.map(a.from,-1),to:o.map(a.to,1)},c={},l=vT(r.doc,s,e=>e.attrs.id),u=new Map(l.map(e=>[nj(e.node,r.doc),e])),d=vT(i.doc,a,e=>e.attrs.id);for(let e of d){let t=nj(e.node,i.doc),a=u.get(t),o=a?.node.firstChild,s=e.node.firstChild;if(a&&o&&s){let l={index:s.attrs.index,level:s.attrs.level,type:s.type.name,depth:i.doc.resolve(e.pos).depth},u={index:o.attrs.index,level:o.attrs.level,type:o.type.name,depth:r.doc.resolve(a.pos).depth};c[t]=u,n.currentTransactionOldBlockAttrs[t]=u,(u.index!==l.index||u.level!==l.level||u.type!==l.type||u.depth!==l.depth)&&(u[`depth-change`]=u.depth-l.depth,n.updatedBlocks.add(t))}}return n.prevTransactionOldBlockAttrs=c,n}},props:{decorations(e){let t=this.getState(e);if(t.updatedBlocks.size===0)return;let n=[];return e.doc.descendants((r,i)=>{if(!r.attrs.id)return;let a=nj(r,e.doc);if(!t.updatedBlocks.has(a))return;let o=t.currentTransactionOldBlockAttrs[a],s={};for(let[e,t]of Object.entries(o))s[`data-prev-`+wI[e]]=t||`none`;n.push(Wt.node(i,i+r.nodeSize,{...s}))}),Rt.create(e.doc,n)}}})]}}),EI=new on(`bn-read-only`),DI=EO(({editor:e,options:t})=>{let n=DO({isEditable:t?.editable??!0,enabledSet:new Set},{onUpdate(t,n){(t.isEditable&&t.enabledSet.size===0)!==(n.isEditable&&n.enabledSet.size===0)&&(e.headless||e.transact(e=>e.setMeta(`editable`,!0)))}});return{key:`readOnly`,store:n,prosemirrorPlugins:[new ut({key:EI,props:{editable:()=>n.state.isEditable&&n.state.enabledSet.size===0}})],setEditable(e){n.state.isEditable!==e&&n.setState({...n.state,isEditable:e})},setReadOnly(e,t){n.setState({...n.state,enabledSet:e?new Set([...n.state.enabledSet,t]):new Set([...n.state.enabledSet].filter(e=>e!==t))})}}});function OI(e,t){let n;for(let r=0;r<e.length;r++){let i=e[r];if(!(t.y<i.top||t.y>i.bottom)){if(t.x>=i.left&&t.x<=i.right)return r;n??=r}}return n}function kI(e,t){for(;e.matches(IF);){let n=VF(e),r=OI(n.map(e=>e.getBoundingClientRect()),t);if(r===void 0)break;e=n[r]}return e}var AI=10;function jI(e,t,n){return Math.min(Math.max(e,t),n)}function MI(e,t){for(let n of e.root.elementsFromPoint(t.x,t.y)){let t=LF(n,e);if(t)return t}}function NI(e,t){let n=e.dom.firstElementChild?.getBoundingClientRect();if(!n||t.y<n.top||t.y>n.bottom)return;let r=Math.min(AI,n.width/2),i=MI(e,{x:jI(t.x,n.left+r,n.right-r),y:t.y});return i?kI(i,t):void 0}function PI(e,t,n,r,i,a){function o(t){let n=t?BF(t,e,r):void 0;return n?{kind:`block`,block:n}:{kind:`none`}}if(t&&e.dom.contains(t)){if(t.closest(`.bn-editor`)!==e.dom)return{kind:`none`};let r=LF(t,e);return o(r?kI(r,n):NI(e,n))}if(t&&i(t))return{kind:`editorUI`};let s=e.dom.getBoundingClientRect();return n.x>=s.left&&n.x<=s.right&&n.y>=s.top&&n.y<=s.bottom?{kind:`none`}:n.y>=s.top&&n.y<=s.bottom&&Math.max(s.left-n.x,n.x-s.right)<=a&&!t?.closest(`.bn-editor`)?o(NI(e,n)):{kind:`none`}}var FI=3;function II(e,t,n){return(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x)}function LI(e,t){let n=0;for(let r=0;r<t.length;r++){let i=Math.sign(II(t[r],t[(r+1)%t.length],e));if(i!==0){if(n===0)n=i;else if(i!==n)return!1}}return!0}function RI(e,t,n){let r=n.x-t.x,i=n.y-t.y,a=r*r+i*i,o=a===0?0:jI(((e.x-t.x)*r+(e.y-t.y)*i)/a,0,1);return Math.hypot(e.x-(t.x+o*r),e.y-(t.y+o*i))}function zI(e,t){return Math.hypot(e.x-jI(e.x,t.left,t.right),e.y-jI(e.y,t.top,t.bottom))}function BI(e){let t=[...e].sort((e,t)=>e.x-t.x||e.y-t.y),n=[];for(let e of t){for(;n.length>=2&&II(n[n.length-2],n[n.length-1],e)<=0;)n.pop();n.push(e)}let r=[];for(let e of[...t].reverse()){for(;r.length>=2&&II(r[r.length-2],r[r.length-1],e)<=0;)r.pop();r.push(e)}return n.pop(),r.pop(),n.concat(r)}function VI(e,t,n){if(zI(e,n)>=zI(t,n))return!1;let r=BI([t,{x:n.left,y:n.top},{x:n.right,y:n.top},{x:n.right,y:n.bottom},{x:n.left,y:n.bottom}]);return r.length>=3&&LI(e,r)?!0:r.some((t,n)=>RI(e,t,r[(n+1)%r.length])<=FI)}function HI(e){return e.synthetic===!0}function UI(e,t,n){let r={x:t.clientX,y:t.clientY},i=t.target instanceof Element?t.target.closest(`.bn-editor`):null,a=i?[i]:Array.from(e.root.querySelectorAll(`.bn-editor`)).filter(e=>zI(r,e.getBoundingClientRect())<=n),o=t;if(a.length===0)return null;let s=a[0],c=Number.MAX_VALUE;for(let e of a){let t=e.querySelector(`.bn-block-group`).getBoundingClientRect(),n=o.clientX<t.left?t.left-o.clientX:o.clientX>t.right?o.clientX-t.right:0,r=o.clientY<t.top?t.top-o.clientY:o.clientY>t.bottom?o.clientY-t.bottom:0,i=Math.sqrt(n**2+r**2);i<c&&(c=i,s=e)}return{element:s,distance:c}}function WI(e,t,n,r){function i(n){return e.dragging!==null||t()||n.dataTransfer?.types.includes(`blocknote/html`)||n.target instanceof Node&&e.dom.contains(n.target)}function a(){let t=new Event(`dragleave`,{bubbles:!1});t.synthetic=!0,e.dom.dispatchEvent(t)}function o(t){let n=e.dom.firstChild.getBoundingClientRect(),r=Object.assign(new Event(t.type,t),{clientX:Math.min(Math.max(t.clientX,n.left),n.left+n.width),clientY:Math.min(Math.max(t.clientY,n.top),n.top+n.height),dataTransfer:t.dataTransfer,preventDefault:()=>t.preventDefault(),synthetic:!0});e.dom.dispatchEvent(r)}function s(r){if(!i(r))return;let a=!r.dataTransfer?.types.includes(`blocknote/html`)&&!!e.dragging,o=t(),s=a||o,c=UI(e,r,n);if(!c)return;let l=c.element===e.dom,u=l&&c.distance===0;if(l||s)return{isDropPoint:l,isDropWithinEditorBounds:u,isDragOrigin:s}}function c(t){let n=t.dataTransfer?.getData(`blocknote/html`);if(!n||e.dragging)return;let r=new(e.dom.ownerDocument.defaultView??globalThis.window).DOMParser().parseFromString(n,`text/html`).body,{nodes:i}=e.state.schema,a=i[t.dataTransfer.getData(`blocknote/parent`)]??i.blockGroup,o=Dt.fromSchema(e.state.schema).parse(r,{topNode:a.create()});e.dragging={slice:new xt(o.content,0,0),move:!0}}function l(e){if(HI(e)||!i(e))return;let t=s(e);!t||!t.isDropPoint?a():t.isDropWithinEditorBounds||o(e)}function u(t){if(HI(t)||!i(t))return;let n=s(t);if(!n){a();return}let{isDropPoint:r,isDropWithinEditorBounds:c,isDragOrigin:l}=n;if(!c&&r&&o(t),r){if(e.dragging)return;e.dispatch(e.state.tr.setSelection(et.create(e.state.tr.doc,e.state.tr.selection.anchor)))}else l&&setTimeout(()=>e.dispatch(e.state.tr.deleteSelection()),0)}function d(t){HI(t)||(e.dragging=null)}let f=e.root;f.addEventListener(`dragstart`,c,{signal:r}),f.addEventListener(`dragover`,l,{signal:r}),f.addEventListener(`drop`,u,{signal:r,capture:!0}),f.addEventListener(`dragend`,d,{signal:r,capture:!0})}var GI=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`;function KI(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;r+i<e.length&&e.charCodeAt(r+i)>=48&&e.charCodeAt(r+i)<=57;)i++;if(i>0){t.push(n.join(``));let a=parseInt(e.substring(r,r+i),10);for(;a-->0;)n.pop();r+=i}else n.push(e[r]),r++}return t}var qI=new Set(KI(GI)),JI=new Set([`localhost`]),YI=/[.,;:!?"']+$/,XI=/(?:https?|ftp|ftps):\/\/[^\s]+/g,ZI=/mailto:[^\s]+/g,QI=/[a-zA-Z0-9._%+-]+@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}/g,$I=/(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(?::\d{1,5})?(?:[/?#][^\s]*)?/g;function eL(e){let t=e,n=!0;for(;n;){n=!1;let e=t;t=t.replace(YI,``),t!==e&&(n=!0);for(let[e,r]of[[`(`,`)`],[`[`,`]`]])for(;t.endsWith(r);){let i=tL(t,e);if(tL(t,r)>i)t=t.slice(0,-1),n=!0;else break}}return t}function tL(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n}function nL(e){let t=e.split(`.`);return t[t.length-1].toLowerCase()}function rL(e){let t=nL(e);return qI.has(t)}function iL(e,t,n){return t===`email`?`mailto:`+e:/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(e)||/^mailto:/i.test(e)?e:n+`://`+e}function aL(e,t){if(!e)return[];let n=t?.defaultProtocol||`http`,r=[];for(let t of e.matchAll(XI))r.push({type:`url`,value:t[0],start:t.index,end:t.index+t[0].length});for(let t of e.matchAll(ZI))r.push({type:`url`,value:t[0],start:t.index,end:t.index+t[0].length});for(let t of e.matchAll(QI))r.push({type:`email`,value:t[0],start:t.index,end:t.index+t[0].length});for(let t of e.matchAll($I))r.push({type:`url`,value:t[0],start:t.index,end:t.index+t[0].length});r.sort((e,t)=>e.start-t.start||t.end-e.end);let i=[],a=-1;for(let e of r)e.start>=a&&(i.push(e),a=e.end);let o=[];for(let e of i){let t=eL(e.value);if(!t)continue;let r=e.start,i=r+t.length;if(e.type===`url`&&!/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)){let e=new URL(`http://`+t).hostname;if(!rL(e))continue}if(e.type===`email`){let e=t.split(`@`)[1];if(!rL(e))continue}let a=iL(t,e.type,n);o.push({type:e.type,value:t,isLink:!0,href:a,start:r,end:i})}return o}function oL(e,t=`http`){if(!e)return[lL(e,0,0)];for(let[n,r]of[[`(`,`)`],[`[`,`]`],[`{`,`}`]])if(e.startsWith(n)&&e.endsWith(r)&&e.length>2){let i=e.slice(1,-1);if(sL(i))return[lL(n,0,1),cL(i,1,1+i.length,t),lL(r,1+i.length,e.length)]}if(e.endsWith(`.`)&&e.length>1){let n=e.slice(0,-1);if(sL(n))return[cL(n,0,n.length,t),lL(`.`,n.length,e.length)]}return sL(e)?[cL(e,0,e.length,t)]:[lL(e,0,e.length)]}function sL(e){if(/^(?:https?|ftp|ftps):\/\/[^\s]+$/.test(e)||/^mailto:[^\s]+$/.test(e)||JI.has(e.toLowerCase()))return!0;let t=e.match(/^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+([a-zA-Z]{2,})(?::\d{1,5})?(?:[/?#][^\s]*)?$/);if(t){let e=t[1].toLowerCase();if(qI.has(e))return!0}return!1}function cL(e,t,n,r){let i=e.includes(`@`)&&!e.includes(`://`)&&!e.startsWith(`mailto:`)?`email`:`url`;return{type:i,value:e,isLink:!0,href:iL(e,i,r),start:t,end:n}}function lL(e,t,n){return{type:`text`,value:e,isLink:!1,href:e,start:t,end:n}}function uL(e){if(!/^(https?:\/\/|www\.)/i.test(e))return;let t=aL(e.replace(/&[a-zA-Z0-9]+;$/,``),{defaultProtocol:`http`})[0];if(t&&t.start===0)return{value:t.value,href:t.href}}function dL(e){let t=document.createElement(`div`);return t.innerHTML=e,fL(t,{indent:``,inListItem:!1}).trim()+`
|
|
409
|
+
`}function fL(e,t){let n=``,r=Array.from(e.childNodes);for(let e=0;e<r.length;e++){let i=r[e];n+=pL(i,t)}return n}function pL(e,t){if(e.nodeType===3)return e.textContent||``;if(e.nodeType!==1)return``;let n=e;switch(n.tagName.toLowerCase()){case`p`:return mL(n,t);case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return hL(n,t);case`blockquote`:return gL(n,t);case`pre`:return _L(n,t);case`ul`:return SL(n,t);case`ol`:return CL(n,t);case`table`:return EL(n,t);case`hr`:return t.indent+`***
|
|
410
|
+
|
|
411
|
+
`;case`math`:return yL(n,t);case`img`:return AL(n,t);case`video`:return jL(n,t);case`audio`:return ML(n,t);case`embed`:return NL(n,t);case`figure`:return PL(n,t);case`a`:return RL(n,t);case`details`:return VL(n,t);case`div`:return fL(n,t);case`br`:return``;default:return fL(n,t)}}function mL(e,t){let n=WL(HL(e));return t.inListItem?n:t.indent+n+`
|
|
412
|
+
|
|
413
|
+
`}function hL(e,t){let n=parseInt(e.tagName[1],10),r=`#`.repeat(n)+` `,i=HL(e);return t.indent+r+i+`
|
|
414
|
+
|
|
415
|
+
`}function gL(e,t){let n=Array.from(e.children).filter(e=>{let t=e.tagName.toLowerCase();return[`p`,`ul`,`ol`,`pre`,`blockquote`,`table`,`hr`].includes(t)}),r;if(n.length>0){let e=[];for(let t of n)t.tagName.toLowerCase()===`p`?e.push(HL(t)):e.push(pL(t,{indent:``,inListItem:!1}).trim());r=e.join(`
|
|
416
|
+
|
|
417
|
+
`)}else r=HL(e);return r.split(`
|
|
418
|
+
`).map(e=>t.indent+`> `+e).join(`
|
|
419
|
+
`)+`
|
|
420
|
+
|
|
421
|
+
`}function _L(e,t){let n=e.querySelector(`code`);if(!n)return``;let r=n.getAttribute(`data-language`)||xL(n.className)||``,i=bL(n),a=Math.max(0,...(i.match(/`+/g)??[]).map(e=>e.length)),o="`".repeat(Math.max(3,a+1));return i?[o+r,...(i.endsWith(`
|
|
422
|
+
`)?i.slice(0,-1):i).split(`
|
|
423
|
+
`),o].map(e=>e&&t.indent+e).join(`
|
|
424
|
+
`)+`
|
|
425
|
+
|
|
426
|
+
`:t.indent+o+r+`
|
|
427
|
+
`+t.indent+o+`
|
|
428
|
+
|
|
429
|
+
`}function vL(e){return(e.querySelector(`annotation[encoding="application/x-tex"]`)?.textContent??e.textContent??``).trim()}function yL(e,t){return[`$$`,...vL(e).split(`
|
|
430
|
+
`),`$$`].map(e=>e&&t.indent+e).join(`
|
|
431
|
+
`)+`
|
|
432
|
+
|
|
433
|
+
`}function bL(e){let t=``;for(let n of Array.from(e.childNodes))n.nodeType===3?t+=n.textContent||``:n.nodeType===1&&(n.tagName.toLowerCase()===`br`?t+=`
|
|
434
|
+
`:t+=bL(n));return t}function xL(e){let t=e.match(/language-(\S+)/);return t?t[1]:``}function SL(e,t){let n=``,r=Array.from(e.children).filter(e=>e.tagName.toLowerCase()===`li`);for(let e of r)n+=wL(e,`bullet`,t);return t.inListItem||(n+=`
|
|
435
|
+
`),n}function CL(e,t){let n=``,r=Array.from(e.children).filter(e=>e.tagName.toLowerCase()===`li`),i=parseInt(e.getAttribute(`start`)||`1`,10);for(let e=0;e<r.length;e++){let a=i+e;n+=wL(r[e],`ordered`,t,a)}return t.inListItem||(n+=`
|
|
436
|
+
`),n}function wL(e,t,n,r){let i=null,a=null;for(let t of Array.from(e.children)){let e=t.tagName.toLowerCase();e===`input`&&t.type===`checkbox`&&(i=t),e===`details`&&(a=t)}let o,s;i?(o=`* ${i.checked?`[x]`:`[ ]`} `,s=2):t===`ordered`?(o=`${r}. `,s=o.length):(o=`* `,s=2);let c,l;if(a){let e=a.querySelector(`summary`)?.querySelector(`p`);l=a,c=e?HL(e):``}else l=TL(e,i),c=l?HL(l):``;let u=n.indent+o+c+`
|
|
437
|
+
`,d=n.indent+` `.repeat(s),f={indent:d,inListItem:!0};if(a){let e=a.querySelector(`summary`);for(let t of Array.from(a.children))if(t!==e){if(t.tagName.toLowerCase()===`p`){let e=HL(t);u+=`
|
|
438
|
+
`+d+e+`
|
|
439
|
+
`}else u+=pL(t,f)}}let p=Array.from(e.children);for(let e of p){let t=e.tagName.toLowerCase();if(e!==l&&e!==i&&t!==`input`){if(t===`ul`||t===`ol`)u+=pL(e,f);else if(t===`p`){let t=HL(e);u+=`
|
|
440
|
+
`+d+t+`
|
|
441
|
+
`}else u+=`
|
|
442
|
+
`+pL(e,f)}}return u}function TL(e,t){for(let n of Array.from(e.children)){if(n===t||n.tagName.toLowerCase()===`input`)continue;let e=n.tagName.toLowerCase();if(e===`p`||e===`span`)return n}return null}function EL(e,t){let n=e.querySelector(`colgroup`),r=0;n&&(r=n.querySelectorAll(`col`).length);let i=[],a=!1,o=e.querySelectorAll(`tr`),s=[];o.forEach((e,t)=>{s[t]||(s[t]=[]);let n=e.querySelectorAll(`th, td`),i=0;n.forEach(e=>{for(;s[t][i]!==void 0;)i++;t===0&&e.tagName.toLowerCase()===`th`&&(a=!0);let n=DL(HL(e).trim()),r=parseInt(e.getAttribute(`colspan`)||`1`,10),o=parseInt(e.getAttribute(`rowspan`)||`1`,10);for(let e=0;e<o;e++)for(let a=0;a<r;a++){let r=t+e;s[r]||(s[r]=[]),s[r][i+a]=e===0&&a===0?n:``}i+=r}),s[t]&&(r=Math.max(r,s[t].length))});for(let e of s){let t=[];for(let n=0;n<r;n++)t.push(e&&e[n]!==void 0?e[n]??``:``);i.push(t)}if(i.length===0)return``;let c=[];for(let e=0;e<r;e++){let t=3;for(let n of i){let r=e<n.length?n[e].length:0;t=Math.max(t,r)}c.push(Math.max(t,10))}let l=``;if(a){l+=t.indent+OL(i[0],c,r)+`
|
|
443
|
+
`,l+=t.indent+kL(c,r)+`
|
|
444
|
+
`;for(let e=1;e<i.length;e++)l+=t.indent+OL(i[e],c,r)+`
|
|
445
|
+
`}else{let e=Array(r).fill(``);l+=t.indent+OL(e,c,r)+`
|
|
446
|
+
`,l+=t.indent+kL(c,r)+`
|
|
447
|
+
`;for(let e of i)l+=t.indent+OL(e,c,r)+`
|
|
448
|
+
`}return l+=`
|
|
449
|
+
`,l}function DL(e){return e.replace(/\|/g,`\\|`)}function OL(e,t,n){let r=[];for(let i=0;i<n;i++){let n=i<e.length?e[i]:``;r.push(` `+n.padEnd(t[i])+` `)}return`|`+r.join(`|`)+`|`}function kL(e,t){let n=[];for(let r=0;r<t;r++)n.push(` `+`-`.repeat(e[r])+` `);return`|`+n.join(`|`)+`|`}function AL(e,t){let n=e.getAttribute(`src`)||``,r=e.getAttribute(`alt`)||``;return n?t.indent+`\n\n`:`
|
|
450
|
+
|
|
451
|
+
`}function jL(e,t){let n=e.getAttribute(`src`)||e.getAttribute(`data-url`)||``,r=e.getAttribute(`data-name`)||e.getAttribute(`title`)||``;return n?t.indent+`\n\n`:`
|
|
452
|
+
|
|
453
|
+
`}function ML(e,t){let n=e.getAttribute(`src`)||``;return n?t.indent+`<audio src="${IL(n)}" controls></audio>\n\n`:`
|
|
454
|
+
|
|
455
|
+
`}function NL(e,t){let n=e.getAttribute(`src`)||``;return n?t.indent+`[](${n})\n\n`:`
|
|
456
|
+
|
|
457
|
+
`}function PL(e,t){let n=e.querySelector(`img`),r=e.querySelector(`video`),i=e.querySelector(`audio`),a=e.querySelector(`a`),o=e.querySelector(`figcaption`)?.textContent?.trim()||``;return n?FL(`img`,n.getAttribute(`src`)||``,n.getAttribute(`alt`)||``,o,t):r?FL(`video`,r.getAttribute(`src`)||r.getAttribute(`data-url`)||``,r.getAttribute(`data-name`)||r.getAttribute(`title`)||``,o,t):i?FL(`audio`,i.getAttribute(`src`)||``,``,o,t):a?RL(a,t):``}function FL(e,t,n,r,i){if(!t)return``;if(!r&&e!==`audio`)return i.indent+`\n\n`;let a=n&&n!==r?e===`img`?` alt="${IL(n)}"`:e===`video`?` data-name="${IL(n)}"`:``:``,o=e===`img`?`<img${a} src="${IL(t)}">`:`<${e} src="${IL(t)}"${a} controls></${e}>`,s=r?`<figcaption>${LL(r)}</figcaption>`:``;return i.indent+`<figure>${o}${s}</figure>\n\n`}function IL(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/</g,`<`).replace(/>/g,`>`)}function LL(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}function RL(e,t){let n=e.getAttribute(`href`)||``,r=e.textContent?.trim()||``;return n?t.indent+zL(r,n)+`
|
|
458
|
+
|
|
459
|
+
`:t.indent+r+`
|
|
460
|
+
|
|
461
|
+
`}function zL(e,t){if(!e)return t;if(e===t){let e=uL(t);if(!/^(https?:\/\/|www\.)/i.test(t)||e?.href===t&&e.value===t)return t}return`[${e}](${BL(t)})`}function BL(e){return e.replace(/[\\()]/g,`\\$&`)}function VL(e,t){let n=e.querySelector(`summary`);if(!n)return fL(e,t);let r=n.querySelector(`h1, h2, h3, h4, h5, h6`);if(r){let i=hL(r,t);for(let r of Array.from(e.children))r!==n&&(i+=pL(r,t));return i}return fL(n,t)}function HL(e){let t=``;for(let n of Array.from(e.childNodes))if(n.nodeType===3)t+=n.textContent||``;else if(n.nodeType===1){let e=n;switch(e.tagName.toLowerCase()){case`strong`:case`b`:{let{content:n,trailing:r}=UL(HL(e));t+=n?`**${n}**${r}`:r;break}case`em`:case`i`:{let{content:n,trailing:r}=UL(HL(e));t+=n?`*${n}*${r}`:r;break}case`s`:case`del`:t+=`~~${HL(e)}~~`;break;case`code`:{let n=e.textContent||``,r=Math.max(0,...(n.match(/`+/g)??[]).map(e=>e.length)),i="`".repeat(r+1),a=n.startsWith("`")||n.endsWith("`");t+=i+(a?` ${n} `:n)+i;break}case`u`:t+=HL(e);break;case`a`:{let n=e.getAttribute(`href`)||``,r=HL(e);t+=zL(r,n);break}case`br`:t+=`\\
|
|
462
|
+
`;break;case`math`:{let n=vL(e).split(`
|
|
463
|
+
`).map(e=>e.trim()).join(` `);t+=`$${n}$`;break}case`span`:t+=HL(e);break;case`img`:{let n=e.getAttribute(`src`)||``,r=e.getAttribute(`alt`)||``;t+=``;break}case`video`:{let n=e.getAttribute(`src`)||e.getAttribute(`data-url`)||``,r=e.getAttribute(`data-name`)||e.getAttribute(`title`)||``;t+=``;break}case`p`:t+=HL(e);break;case`input`:break;default:t+=HL(e)}}return t}function UL(e){let t=e.match(/^(.*?)(\s*)$/);return t?{content:t[1],trailing:t[2]}:{content:e,trailing:``}}function WL(e){let t=e.replace(/^(\\\n)+/,``);return t=t.replace(/(\\\n)+$/,``),t}function GL(e){return dL(e.split(``).join(``))}function KL(e,t,n,r){return GL(JF(t,n).exportBlocks(e,r))}var qL=class e extends Je{nodes;constructor(e,t){super(e,t);let n=e.node();this.nodes=[],e.doc.nodesBetween(e.pos,t.pos,(e,t,r)=>{if(r!==null&&r.eq(n))return this.nodes.push(e),!1})}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}content(){return new xt(Vt.from(this.nodes),0,0)}eq(t){if(!(t instanceof e)||this.nodes.length!==t.nodes.length||this.from!==t.from||this.to!==t.to)return!1;for(let e=0;e<this.nodes.length;e++)if(!this.nodes[e].eq(t.nodes[e]))return!1;return!0}map(t,n){let r=n.mapResult(this.from),i=n.mapResult(this.to);return i.deleted?Je.near(t.resolve(r.pos)):r.deleted?Je.near(t.resolve(i.pos)):new e(t.resolve(r.pos),t.resolve(i.pos))}toJSON(){return{type:`multiple-node`,anchor:this.anchor,head:this.head}}};Je.jsonID(`multiple-node`,qL);var JL;function YL(e,t){let n,r,i=t.resolve(e.from).node().type.spec.group===`blockContent`,a=t.resolve(e.to).node().type.spec.group===`blockContent`,o=Math.min(e.$anchor.depth,e.$head.depth);if(i&&a){let i=e.$from.start(o-1),a=e.$to.end(o-1);n=t.resolve(i-1).pos,r=t.resolve(a+1).pos}else n=e.from,r=e.to;return{from:n,to:r}}function XL(e,t,n=t){t===n&&(n+=e.state.doc.resolve(t+1).node().nodeSize);let r=e.domAtPos(t).node.cloneNode(!1);r.style.removeProperty(`display`);for(let i=t;i<n;i+=e.state.doc.nodeAt(i).nodeSize){let t=e.nodeDOM(i);if(!t)throw Error(`The dragged block at ${i} has no DOM.`);r.appendChild(t.cloneNode(!0))}ZL(e.root),JL=r,JL.querySelectorAll(`iframe, embed, object`).forEach(e=>e.parentElement?.removeChild(e));let i=e.dom.className.split(` `).filter(e=>e!==`ProseMirror`&&e!==`bn-root`&&e!==`bn-editor`).join(` `);JL.className=JL.className+` bn-drag-preview `+i,e.root instanceof ShadowRoot?e.root.appendChild(JL):e.root.body.appendChild(JL)}function ZL(e){JL!==void 0&&(e instanceof ShadowRoot?e.removeChild(JL):e.body.removeChild(JL),JL=void 0)}function QL(e,t,n){if(!e.dataTransfer||n.headless)return;let r=n.prosemirrorView,i=PF(t.id,r.state.doc);if(!i)throw Error(`Block with ID ${t.id} not found`);let a=i.posBeforeNode;if(a!=null){let t=r.state.selection,i=r.state.doc,{from:o,to:s}=YL(t,i),c=o<=a&&a<s,l=t.$anchor.node()!==t.$head.node()||t instanceof qL;c&&l?(r.dispatch(r.state.tr.setSelection(qL.create(i,o,s))),XL(r,o,s)):(r.dispatch(r.state.tr.setSelection(it.create(r.state.doc,a))),XL(r,a));let u=r.state.selection.content(),d=n.pmSchema,f=r.serializeForClipboard(u).dom.innerHTML,p=JF(d,n),m=sI(u.content),h=p.exportBlocks(m,{}),g=GL(h);e.dataTransfer.clearData(),e.dataTransfer.setData(`blocknote/html`,f),e.dataTransfer.setData(`blocknote/parent`,r.state.selection.$from.parent.type.name),e.dataTransfer.setData(`text/html`,h),e.dataTransfer.setData(`text/plain`,g),e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setDragImage(JL,0,0)}}var $L=350;function eR(e){if(!e||!(`nodeType`in e))return null;let t=e;return t.nodeType===Node.ELEMENT_NODE?t:t.parentElement}var tR=new on(`SideMenuPlugin`),nR=EO(({editor:e,options:t})=>{let n=DO(void 0),r=t?.sideMenu?.hoverMargin??0,i=!1,a=!1,o,s,c,l;function u(t){return e.schema.blockSpecs[t].implementation.meta.draggable}function d(){l&&=(clearTimeout(l.timer),void 0)}function f(){let e=n.state;e?.show&&n.setState({...e,show:!1})}function p(t){let r=e.getBlock(t.id);r?n.setState({show:!0,referencePos:t.node.getBoundingClientRect(),block:r}):f()}function m(t,s,m){if(i||a)return;if(s&&o?.contains(s)){d(),c=t;return}if(!e.isEditable){d(),f();return}let h=PI(e.prosemirrorView,s,t,u,e.isWithinEditor,r);if(h.kind===`editorUI`)return;let _=n.state,v=_?.show?_.block.id:void 0;if(h.kind===`block`&&h.block.id===v)d(),c=t;else{if(m&&v!==void 0&&o?.isConnected){let e=l?.exit??c??t;if(VI(t,e,o.getBoundingClientRect())){d(),l={exit:e,timer:setTimeout(g,$L)};return}}d(),h.kind===`block`?(c=t,p(h.block)):f()}}function h(){ZL(e.prosemirrorView.root),a=!1}function g(){l=void 0,_()}function _(){if(!s)return;let t=e.prosemirrorView,n=o?.isConnected?o.getBoundingClientRect():void 0,r=n!==void 0&&s.x>=n.left&&s.x<=n.right&&s.y>=n.top&&s.y<=n.bottom?{x:n.right+1,y:s.y}:s;m(r,t.root.elementsFromPoint(r.x,r.y).find(n=>t.dom.contains(n)||!e.isWithinEditor(n))??null,!1)}return{key:`sideMenu`,store:n,prosemirrorPlugins:[new ut({key:tR,appendTransaction:(e,t,n)=>e.some(e=>e.getMeta(`uiEvent`)===`drop`)?n.tr.scrollIntoView():null})],mount({root:r,signal:o}){WI(e.prosemirrorView,()=>a,t?.sideMenu?.dropMargin??250,o),r.addEventListener(`mousemove`,e=>{let{clientX:t,clientY:n,buttons:r}=e;if(i||typeof t!=`number`||typeof n!=`number`||!Number.isFinite(t)||!Number.isFinite(n))return;a&&r===0&&h();let o={x:t,y:n};s=o,m(o,eR(e.target),!0)},{signal:o,capture:!0}),r.addEventListener(`mouseout`,e=>{e.relatedTarget===null&&!i&&!a&&(s=void 0,d(),f())},{signal:o,capture:!0}),r.addEventListener(`keydown`,()=>{n.state?.show&&e.isFocused()&&(d(),f())},{signal:o,capture:!0});let c=e.onChange(()=>{n.state?.show&&(d(),_())});o.addEventListener(`abort`,()=>{c(),d(),f()})},setMenuElement(e){o=e},blockDragStart(t,n){a=!0,QL(t,n,e)},blockDragEnd(){h(),e.blur()},get menuFrozen(){return i},freezeMenu(){i=!0,d();let e=n.state;e&&n.setState({...e,show:!0})},unfreezeMenu(){i=!1,f()},hideMenuIfNotFrozen(){!i&&!a&&(d(),f())}}}),rR=EO(({editor:e})=>{let t=DO({popupOpen:void 0,selected:void 0}),n=t=>!!e.schema.blockSpecs[t.type]?.implementation.meta.hasPreview,r=e=>({editor:r})=>{let{block:i,prevBlock:a,nextBlock:o}=r.getTextCursorPosition();if(!n(i)||t.state.popupOpen===i.id)return!1;let s=e===`prev`?a:o;return s?(r.setTextCursorPosition(s.id,e===`prev`?`end`:`start`),!0):!1};return{key:`sourceBlockWithPreview`,store:t,keyboardShortcuts:{Enter:({editor:e})=>{let{block:r}=e.getTextCursorPosition();if(!n(r))return!1;if(t.state.popupOpen===r.id&&e.schema.blockSpecs[r.type].implementation.keyboard(r).enter===`line-break`){let t=e.prosemirrorView;return t.dispatch(t.state.tr.insertText(`
|
|
464
|
+
`)),!0}return e.setTextCursorPosition(r.id,`end`),t.setState(e=>({...e,popupOpen:t.state.popupOpen===r.id?void 0:r.id})),!0},Escape:({editor:e})=>{let{block:r}=e.getTextCursorPosition();return!n(r)||t.state.popupOpen!==r.id?!1:(e.setTextCursorPosition(r.id,`end`),t.setState(e=>({...e,popupOpen:void 0})),!0)},"Mod-a":({editor:e})=>{let{block:r}=e.getTextCursorPosition();if(!n(r)||t.state.popupOpen!==r.id)return!1;let i=e.prosemirrorView,{$from:a}=i.state.selection;return a.parent.type.name===r.type&&(i.dispatch(i.state.tr.setSelection(et.create(i.state.doc,a.start(),a.end()))),!0)},ArrowUp:r(`prev`),ArrowLeft:r(`prev`),ArrowDown:r(`next`),ArrowRight:r(`next`)},mount:({dom:r,signal:i})=>{let a=e.onSelectionChange(()=>{let{block:r}=e.getTextCursorPosition(),i=n(r)?r.id:void 0,a=t.state.popupOpen&&t.state.popupOpen!==r.id?void 0:t.state.popupOpen;(i!==t.state.selected||a!==t.state.popupOpen)&&t.setState(e=>({...e,selected:i,popupOpen:a}))});i.addEventListener(`abort`,a),r.addEventListener(`keydown`,r=>{if(!e.isEditable)return;let{block:i}=e.getTextCursorPosition();if(n(i)&&t.state.popupOpen!==i.id){if(r.key===`Backspace`||r.key===`Delete`){r.preventDefault(),r.stopImmediatePropagation(),e.removeBlocks([i.id]);return}(r.key.length===1&&!r.ctrlKey&&!r.metaKey||r.key===`Tab`)&&(r.preventDefault(),r.stopImmediatePropagation())}},{capture:!0,signal:i}),r.addEventListener(`blur`,()=>t.setState(e=>({...e,popupOpen:void 0})),{capture:!0,signal:i})}}}),iR=EO(({editor:e})=>{let t=DO({selected:void 0}),n=t=>!!e.schema.inlineContentSpecs[t]?.implementation?.meta?.hasPreview,r=e=>({editor:t})=>{let{$from:r}=t.prosemirrorState.selection,i=r.node();if(!n(i.type.name))return!1;let a=t.prosemirrorView,o=Je.near(a.state.doc.resolve(e===`before`?r.before():r.after()),e===`before`?-1:1);return a.dispatch(a.state.tr.setSelection(o)),!0};return{key:`sourceInlineContentWithPreview`,store:t,keyboardShortcuts:{Enter:r(`after`),"Shift-Enter":r(`after`),Escape:r(`after`),ArrowUp:r(`before`),ArrowDown:r(`after`),"Mod-a":({editor:e})=>{let{$from:t}=e.prosemirrorState.selection;if(!n(t.node().type.name))return!1;let r=e.prosemirrorView;return r.dispatch(r.state.tr.setSelection(et.create(r.state.doc,t.start(),t.end()))),!0}},mount:({dom:r,signal:i})=>{let a=e.onSelectionChange(()=>{let{$from:r}=e.prosemirrorState.selection,i=r.node();t.setState({selected:n(i.type.name)?r.before():void 0})});i.addEventListener(`abort`,a),r.addEventListener(`keydown`,t=>{if(t.key!==`ArrowUp`&&t.key!==`ArrowDown`)return;let{$from:i}=e.prosemirrorState.selection;n(i.node().type.name)||(r.classList.add(`bn-suppress-source-popup-caret`),requestAnimationFrame(()=>r.classList.remove(`bn-suppress-source-popup-caret`)))},{capture:!0,signal:i}),r.addEventListener(`blur`,()=>t.setState({selected:void 0}),{capture:!0,signal:i})}}}),aR=Symbol.for(`blocknote.shikiParser`),oR=Symbol.for(`blocknote.shikiHighlighterPromise`),sR=[`text`,`none`,`plaintext`,`txt`];function cR(e,t,n){let r=globalThis,i,a,o=new Set;return OF({parser:t=>{if(!e.createHighlighter)return[];if(!i)return r[oR]=r[oR]||e.createHighlighter(),r[oR].then(e=>{i=e});let n=t.language;return!n||sR.includes(n)||o.has(n)?[]:i.getLoadedLanguages().includes(n)?(a||(a=r[aR]||jF(i,lR(i)),r[aR]=a),a(t)):i.loadLanguage(n).catch(()=>{o.add(n)})},languageExtractor:e=>{let t={type:e.type.name,props:e.attrs};return(n.blockSpecs[t.type]||n.inlineContentSpecs[t.type])?.implementation.meta.highlight?.(t)??void 0},nodeTypes:t})}function lR(e){let t=e.getLoadedThemes(),n=t.find(e=>/light/i.test(e)),r=t.find(e=>/dark/i.test(e));if(n&&r)return{themes:{light:n,dark:r},defaultColor:!1}}function uR(e){let t=Object.values(e.blockSpecs).filter(e=>typeof e?.config==`object`&&e.config.content===`plain`&&!!e.implementation.meta.highlight).map(e=>e.config.type),n=Object.values(e.inlineContentSpecs).filter(e=>typeof e?.config==`object`&&e.config.content===`plain`&&!!e.implementation?.meta?.highlight).map(e=>e.config.type);return[...t,...n]}EO(({editor:e,options:t})=>({key:`syntaxHighlighting`,prosemirrorPlugins:[cR(t,uR(e.schema),e.schema)]}));var dR;async function fR(){return dR||(dR=(async()=>{let[e,t]=await Promise.all([_n(()=>import(`./module-BrWgIX20.js`),[],import.meta.url),_n(()=>import(`./native-Cqs-2kTC.js`),[],import.meta.url)]),n=`default`in e?e.default:e,r=`default`in t?t.default:t;return await n.init({data:r}),{emojiMart:n,emojiData:r}})(),dR)}async function pR(e,t){if(!(`text`in e.schema.inlineContentSchema)||e.schema.inlineContentSchema.text!==bF.text)return[];let{emojiData:n,emojiMart:r}=await fR();return(t.trim()===``?Object.values(n.emojis):await r.SearchIndex.search(t)).map(t=>({id:t.skins[0].native,onItemClick:()=>e.insertInlineContent(t.skins[0].native+` `)}))}var mR;function hR(e){mR||(mR=document.createElement(`div`),mR.innerHTML=`_`,mR.style.opacity=`0`,mR.style.height=`1px`,mR.style.width=`1px`,e instanceof Document?e.body.appendChild(mR):e.appendChild(mR))}function gR(e){mR&&=(e instanceof Document?e.body.removeChild(mR):e.removeChild(mR),void 0)}function _R(e){return Array.prototype.indexOf.call(e.parentElement.childNodes,e)}function vR(e){let t=e;for(;t&&t.nodeName!==`TD`&&t.nodeName!==`TH`&&!t.classList.contains(`tableWrapper`);){if(t.classList.contains(`ProseMirror`))return;let e=t.parentNode;if(!e||!(e instanceof Element))return;t=e}return t.nodeName===`TD`||t.nodeName===`TH`?{type:`cell`,domNode:t,tbodyNode:t.closest(`tbody`)}:{type:`wrapper`,domNode:t,tbodyNode:t.querySelector(`tbody`)}}function yR(e,t){let n=t.querySelectorAll(e);for(let e=0;e<n.length;e++)n[e].style.visibility=`hidden`}var bR=class{editor;pmView;state;emitUpdate;tableId;tablePos;tableElement;menuFrozen=!1;mouseState=`up`;prevWasEditable=null;constructor(e,t,n){this.editor=e,this.pmView=t,this.emitUpdate=()=>{n(this.state)},t.dom.addEventListener(`mousemove`,this.mouseMoveHandler),t.dom.addEventListener(`mousedown`,this.viewMousedownHandler),window.addEventListener(`mouseup`,this.mouseUpHandler),t.root.addEventListener(`dragover`,this.dragOverHandler),t.root.addEventListener(`drop`,this.dropHandler)}viewMousedownHandler=()=>{this.mouseState=`down`};hideHandles=()=>{this.state?.show&&(this.state.show=!1,this.state.showAddOrRemoveRowsButton=!1,this.state.showAddOrRemoveColumnsButton=!1,this.emitUpdate())};mouseUpHandler=e=>{this.mouseState=`up`,this.mouseMoveHandler(e)};mouseMoveHandler=e=>{if(this.menuFrozen||this.mouseState===`selecting`||!(e.target instanceof Element)||!this.pmView.dom.contains(e.target))return;let t=vR(e.target);if(t?.type===`cell`&&this.mouseState===`down`&&!this.state?.draggingState){this.mouseState=`selecting`,this.hideHandles();return}if(!t||!this.editor.isEditable){this.hideHandles();return}if(!t.tbodyNode)return;let n=t.tbodyNode.getBoundingClientRect(),r=zF(t.domNode,this.pmView);if(!r){this.hideHandles();return}let{pmNodeInfo:i,doc:a}=this.editor.transact(e=>({pmNodeInfo:PF(r.id,e.doc),doc:e.doc}));if(!i){this.hideHandles();return}let o=sM(i.node,a);if(!$P(o,this.editor,`table`)){this.hideHandles();return}let s=o;this.tablePos=i.posBeforeNode+1,this.tableElement=r.node,this.tableId=r.id;let c=t.domNode.closest(`.tableWrapper`)?.querySelector(`.table-widgets-container`);if(t?.type===`wrapper`){let t=e.clientY>=n.bottom-1&&e.clientY<n.bottom+20,r=e.clientX>=n.right-1&&e.clientX<n.right+20,i=this.state?.block?.id!==s.id||e.clientX>n.right||e.clientY>n.bottom;this.state={...this.state,show:!0,showAddOrRemoveRowsButton:t,showAddOrRemoveColumnsButton:r,referencePosTable:n,block:s,widgetContainer:c,colIndex:i?void 0:this.state?.colIndex,rowIndex:i?void 0:this.state?.rowIndex,referencePosCell:i?void 0:this.state?.referencePosCell}}else{let e=_R(t.domNode),i=_R(t.domNode.parentElement),a=t.domNode.getBoundingClientRect();if(this.state!==void 0&&this.state.show&&this.tableId===r.id&&this.state.rowIndex===i&&this.state.colIndex===e)return;this.state={show:!0,showAddOrRemoveColumnsButton:e===s.content.rows[0].cells.length-1,showAddOrRemoveRowsButton:i===s.content.rows.length-1,referencePosTable:n,block:s,draggingState:void 0,referencePosCell:a,colIndex:e,rowIndex:i,widgetContainer:c}}return this.emitUpdate(),!1};dragOverHandler=e=>{if(this.state?.draggingState===void 0)return;e.preventDefault(),e.dataTransfer.dropEffect=`move`,yR(`.prosemirror-dropcursor-block, .prosemirror-dropcursor-inline`,this.pmView.root);let t={left:Math.min(Math.max(e.clientX,this.state.referencePosTable.left+1),this.state.referencePosTable.right-1),top:Math.min(Math.max(e.clientY,this.state.referencePosTable.top+1),this.state.referencePosTable.bottom-1)},n=this.pmView.root.elementsFromPoint(t.left,t.top).filter(e=>e.tagName===`TD`||e.tagName===`TH`);if(n.length===0)return;let r=n[0],i=!1,a=_R(r.parentElement),o=_R(r),s=this.state.draggingState.draggedCellOrientation===`row`?this.state.rowIndex:this.state.colIndex,c=(this.state.draggingState.draggedCellOrientation===`row`?a:o)!==s;(this.state.rowIndex!==a||this.state.colIndex!==o)&&(this.state.rowIndex=a,this.state.colIndex=o,this.state.referencePosCell=r.getBoundingClientRect(),i=!0);let l=this.state.draggingState.draggedCellOrientation===`row`?t.top:t.left;this.state.draggingState.mousePos!==l&&(this.state.draggingState.mousePos=l,i=!0),i&&this.emitUpdate(),c&&this.editor.transact(e=>e.setMeta(xR,!0))};dropHandler=e=>{if(this.mouseState=`up`,this.state===void 0||this.state.draggingState===void 0)return!1;if(this.state.rowIndex===void 0||this.state.colIndex===void 0)throw Error(`Attempted to drop table row or column, but no table block was hovered prior.`);e.preventDefault();let{draggingState:t,colIndex:n,rowIndex:r}=this.state;this.state.draggingState=void 0;let i=this.state.block.content.columnWidths;if(t.draggedCellOrientation===`row`){if(!TN(this.state.block,t.originalIndex,r))return!1;let e=xN(this.state.block,t.originalIndex,r);this.editor.updateBlock(this.state.block,{type:`table`,content:{...this.state.block.content,rows:e}})}else{if(!EN(this.state.block,t.originalIndex,n))return!1;let e=bN(this.state.block,t.originalIndex,n),[r]=i.splice(t.originalIndex,1);i.splice(n,0,r),this.editor.updateBlock(this.state.block,{type:`table`,content:{...this.state.block.content,columnWidths:i,rows:e}})}return this.editor.setTextCursorPosition(this.state.block.id),!0};getTablePos(e){if(this.tableId===void 0)return;let t=PF(this.tableId,e);return t&&t.posBeforeNode+1}update(){if(!this.state||!this.state.show)return;let e=this.editor.getBlock(this.state.block.id);if(!e||e.type!==`table`||!this.tableElement?.isConnected){this.state=void 0,this.tableId=void 0,this.tablePos=void 0,this.tableElement=void 0,this.emitUpdate();return}this.state.block=e,this.tablePos=this.getTablePos(this.pmView.state.doc);let{height:t,width:n}=gN(this.state.block);this.state.rowIndex!==void 0&&this.state.colIndex!==void 0&&(this.state.rowIndex>=t&&(this.state.rowIndex=t-1),this.state.colIndex>=n&&(this.state.colIndex=n-1));let r=this.tableElement.querySelector(`tbody`);if(!r)throw Error(`Table block does not contain a 'tbody' HTML element. This should never happen.`);if(this.state.rowIndex!==void 0&&this.state.colIndex!==void 0){let e=r.children[this.state.rowIndex].children[this.state.colIndex];e?this.state.referencePosCell=e.getBoundingClientRect():(this.state.rowIndex=void 0,this.state.colIndex=void 0)}this.state.referencePosTable=r.getBoundingClientRect(),this.emitUpdate()}destroy(){this.pmView.dom.removeEventListener(`mousemove`,this.mouseMoveHandler),window.removeEventListener(`mouseup`,this.mouseUpHandler),this.pmView.dom.removeEventListener(`mousedown`,this.viewMousedownHandler),this.pmView.root.removeEventListener(`dragover`,this.dragOverHandler),this.pmView.root.removeEventListener(`drop`,this.dropHandler)}},xR=new on(`TableHandlesPlugin`),SR=EO(({editor:e})=>{let t,n=DO(void 0);return{key:`tableHandles`,store:n,prosemirrorPlugins:[new ut({key:xR,view:r=>(t=new bR(e,r,e=>{n.setState(e?.block?{...e,draggingState:e.draggingState?{...e.draggingState}:void 0}:void 0)}),t),props:{decorations:e=>{if(t===void 0||t.state===void 0||t.state.draggingState===void 0)return;let n=t.getTablePos(e.doc);if(n===void 0)return;let r=t.state.draggingState.draggedCellOrientation===`row`?t.state.rowIndex:t.state.colIndex;if(r===void 0)return;let i=[],{block:a,draggingState:o}=t.state,{originalIndex:s,draggedCellOrientation:c}=o;if(r===s||!a||c===`row`&&!TN(a,s,r)||c===`col`&&!EN(a,s,r))return Rt.create(e.doc,i);let l=e.doc.resolve(n+1);return t.state.draggingState.draggedCellOrientation===`row`?vN(t.state.block,r).forEach(({row:t,col:n})=>{let a=e.doc.resolve(l.posAtIndex(t)+1),o=e.doc.resolve(a.posAtIndex(n)+1),c=o.node(),u=o.pos+(r>s?c.nodeSize-2:0);i.push(Wt.widget(u,()=>{let e=document.createElement(`div`);return e.className=`bn-table-drop-cursor`,e.style.left=`0`,e.style.right=`0`,r>s?e.style.bottom=`-2px`:e.style.top=`-3px`,e.style.height=`4px`,e}))}):yN(t.state.block,r).forEach(({row:t,col:n})=>{let a=e.doc.resolve(l.posAtIndex(t)+1),o=e.doc.resolve(a.posAtIndex(n)+1),c=o.node(),u=o.pos+(r>s?c.nodeSize-2:0);i.push(Wt.widget(u,()=>{let e=document.createElement(`div`);return e.className=`bn-table-drop-cursor`,e.style.top=`0`,e.style.bottom=`0`,r>s?e.style.right=`-2px`:e.style.left=`-3px`,e.style.width=`4px`,e}))}),Rt.create(e.doc,i)}}})],colDragStart(n){if(t===void 0||t.state===void 0||t.state.colIndex===void 0)throw Error(`Attempted to drag table column, but no table block was hovered prior.`);t.state.draggingState={draggedCellOrientation:`col`,originalIndex:t.state.colIndex,mousePos:n.clientX},t.emitUpdate(),e.transact(e=>e.setMeta(xR,{draggedCellOrientation:t.state.draggingState.draggedCellOrientation,originalIndex:t.state.colIndex,newIndex:t.state.colIndex,tablePos:t.tablePos})),!e.headless&&(hR(e.prosemirrorView.root),n.dataTransfer.setDragImage(mR,0,0),n.dataTransfer.effectAllowed=`move`)},rowDragStart(n){if(t.state===void 0||t.state.rowIndex===void 0)throw Error(`Attempted to drag table row, but no table block was hovered prior.`);t.state.draggingState={draggedCellOrientation:`row`,originalIndex:t.state.rowIndex,mousePos:n.clientY},t.emitUpdate(),e.transact(e=>e.setMeta(xR,{draggedCellOrientation:t.state.draggingState.draggedCellOrientation,originalIndex:t.state.rowIndex,newIndex:t.state.rowIndex,tablePos:t.tablePos})),!e.headless&&(hR(e.prosemirrorView.root),n.dataTransfer.setDragImage(mR,0,0),n.dataTransfer.effectAllowed=`copyMove`)},dragEnd(){if(t.state===void 0)throw Error(`Attempted to drag table row, but no table block was hovered prior.`);t.state.draggingState=void 0,t.emitUpdate(),e.transact(e=>e.setMeta(xR,null)),!e.headless&&gR(e.prosemirrorView.root)},freezeHandles(){t.menuFrozen=!0},unfreezeHandles(){t.menuFrozen=!1},hideHandlesIfNotFrozen(){t.menuFrozen||t.hideHandles()},getCellsAtRowHandle(e,t){return vN(e,t)},getCellsAtColumnHandle(e,t){return yN(e,t)},setCellSelection(e,n,r=n){if(!t)throw Error(`Table handles view not initialized`);let i=t.getTablePos(e.doc);if(i===void 0)throw Error(`Attempted to select table cells, but the hovered table is no longer in the document.`);let a=e.doc.resolve(i+1),o=e.doc.resolve(a.posAtIndex(n.row)+1),s=e.doc.resolve(o.posAtIndex(n.col)),c=e.doc.resolve(a.posAtIndex(r.row)+1),l=e.doc.resolve(c.posAtIndex(r.col)),u=e.tr;return u.setSelection(new $O(s,l)),e.apply(u)},addRowOrColumn(t,n){e.exec((e,r)=>{let i=this.setCellSelection(e,n.orientation===`row`?{row:t,col:0}:{row:0,col:t});return n.orientation===`row`?n.side===`above`?_k(i,r):vk(i,r):n.side===`left`?dk(i,r):fk(i,r)})},removeRowOrColumn(t,n){return n===`row`?e.exec((e,n)=>bk(this.setCellSelection(e,{row:t,col:0}),n)):e.exec((e,n)=>mk(this.setCellSelection(e,{row:0,col:t}),n))},mergeCells(t){return e.exec((e,n)=>Ck(t?this.setCellSelection(e,t.relativeStartCell,t.relativeEndCell):e,n))},splitCell(t){return e.exec((e,n)=>wk(t?this.setCellSelection(e,t):e,n))},getCellSelection(){return e.transact(e=>{let t=e.selection,n=t.$from,r=t.$to;if(eF(t)){let{ranges:e}=t;e.forEach(e=>{n=e.$from.min(n??e.$from),r=e.$to.max(r??e.$to)})}else{let i=t.$from.pos-t.$from.parentOffset-1,a=t.$to.pos-t.$to.parentOffset-1;if(i<0||a<0||(n=e.doc.resolve(i),r=e.doc.resolve(a),!tF(n.parent)||!tF(r.parent)))return}let i=e.doc.resolve(n.pos-n.parentOffset-1),a=e.doc.resolve(r.pos-r.parentOffset-1),o=e.doc.resolve(i.pos-i.parentOffset-1),s=n.index(i.depth),c=i.index(o.depth),l=r.index(a.depth),u=a.index(o.depth),d=[];for(let e=c;e<=u;e++)for(let t=s;t<=l;t++)d.push({row:e,col:t});return{from:{row:c,col:s},to:{row:u,col:l},cells:d}})},getMergeDirection(t){return e.transact(e=>{let n=eF(e.selection)?e.selection:void 0;if(!n||!t||n.ranges.length<=1)return;let r=this.getCellSelection();if(r)return DN(r.from,r.to,t)?`vertical`:`horizontal`})},cropEmptyRowsOrColumns(e,t){return CN(e,t)},addRowsOrColumns(e,t,n){return wN(e,t,n)}}}),CR=new on(`trailingNode`);function wR(e){let t=e.lastChild,n=t?.firstChild;return t?.type.name!==`blockContainer`||n?.type.name!==`paragraph`||n.content.size!==0}function TR(e){if(!e.type.schema.nodes.column){let t=e.lastChild;return t&&wR(t)?[e.content.size-1]:[]}let t=[];return e.descendants((e,n,r)=>!e.isTextblock&&((e.type.name===`column`||e.type.name===`blockGroup`&&r?.type.name===`doc`)&&wR(e)&&t.push(n+e.nodeSize-1),!0)),t}var ER=EO(({editor:e})=>{function t(t){return Wt.widget(t,()=>{let t=document.createElement(`div`);return t.className=`bn-trailing-block`,t.contentEditable=`false`,t.addEventListener(`mousedown`,n=>{n.preventDefault();let r=e.prosemirrorView;if(!r)return;let i=r.state.doc.resolve(r.posAtDOM(t,0)).parent.lastChild?.attrs.id;i&&(e.transact(t=>{let[n]=e.insertBlocks([{type:`paragraph`}],i,`after`);e.setTextCursorPosition(n,`start`),t.scrollIntoView()}),r.focus())}),t},{side:1})}function n(e,n,r){let i=n.map(e.mapping,e.doc),a=new Set(r?TR(e.doc):[]),o=new Set,s=[];for(let e of i.find())a.has(e.from)&&!o.has(e.from)?o.add(e.from):s.push(e);let c=[...a].filter(e=>!o.has(e)),l=i;return s.length>0&&(l=l.remove(s)),c.length>0&&(l=l.add(e.doc,c.map(t))),l}return{key:`trailingNode`,prosemirrorPlugins:[new ut({key:CR,state:{init:(t,r)=>n(r.tr,Rt.empty,e.isEditable),apply:(t,r)=>!t.docChanged&&!t.getMeta(CR)?r:n(t,r,e.isEditable)},view(e){let t=e.editable;return{update(e){e.editable!==t&&(t=e.editable,e.dispatch(e.state.tr.setMeta(CR,!0)))}}},props:{decorations:e=>CR.getState(e),handleKeyDown:(t,n)=>{if(n.key!==`ArrowRight`&&n.key!==`ArrowDown`)return!1;let{selection:r}=t.state;if(!r.empty)return!1;let i=Je.atEnd(t.state.doc);if(r.$head.pos!==i.$head.pos)return!1;let a=t.state.doc.lastChild;return!e.isEditable||!a||!wR(a)?!1:(n.preventDefault(),!0)}}})]}}),DR=class{match;handler;undoable;inCode;inCodeMark;constructor(e,t,n={}){this.match=e,this.match=e,this.handler=typeof t==`string`?OR(t):t,this.undoable=n.undoable!==!1,this.inCode=n.inCode||!1,this.inCodeMark=n.inCodeMark!==!1}};function OR(e){return function(t,n,r,i){let a=e;if(n[1]){let e=n[0].lastIndexOf(n[1]);a+=n[0].slice(e+n[1].length),r+=e;let t=r-i;t>0&&(a=n[0].slice(e-t,e)+a,r=i)}return t.tr.insertText(a,r,i)}}var kR=500;function AR({rules:e}){let t=new ut({state:{init(){return null},apply(e,t){return e.getMeta(this)||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput(n,r,i,a){return jR(n,r,i,a,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&jR(n,r.pos,r.pos,``,e,t)})}}},isInputRules:!0});return t}function jR(e,t,n,r,i,a){if(e.composing)return!1;let o=e.state.tr.insertText(r,t,n),s=o.mapping.map(t),c=o.mapping.map(n),l=null,u=o.doc.resolve(s),d=u.parent.textBetween(Math.max(0,u.parentOffset-kR),u.parentOffset,null,``);for(let t=0;t<i.length;t++){let n=i[t];if(!n.inCodeMark&&u.marks().some(e=>e.type.spec.code))continue;if(u.parent.type.spec.code){if(!n.inCode)continue}else if(n.inCode===`only`)continue;let f=n.match.exec(d);if(!f||f[0].length<r.length)continue;l??=e.state.apply(o);let p=n.handler(l,f,s-f[0].length,c);if(p)return e.dispatch(o),e.dispatch(Yt(e.state.tr)),n.undoable&&p.setMeta(a,{transform:p,from:s,to:c,text:r}),e.dispatch(p),!0}return!1}new DR(/--$/,`—`,{inCodeMark:!1}),new DR(/\.\.\.$/,`…`,{inCodeMark:!1}),new DR(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,`“`,{inCodeMark:!1}),new DR(/"$/,`”`,{inCodeMark:!1}),new DR(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,`‘`,{inCodeMark:!1}),new DR(/'$/,`’`,{inCodeMark:!1});var MR=mO.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),NR=class e extends Je{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):Je.near(r)}content(){return xt.empty}eq(t){return t instanceof e&&t.head==this.head}toJSON(){return{type:`gapcursor`,pos:this.head}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for GapCursor.fromJSON`);return new e(t.resolve(n.pos))}getBookmark(){return new PR(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!IR(e)||!LR(e))return!1;let n=t.type.spec.allowGapCursor;if(n!=null)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,r=!1){search:for(;;){if(!r&&e.valid(t))return t;let i=t.pos,a=null;for(let r=t.depth;;r--){let o=t.node(r);if(n>0?t.indexAfter(r)<o.childCount:t.index(r)>0){a=o.child(n>0?t.indexAfter(r):t.index(r)-1);break}if(r==0)return null;i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!it.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue search}break}a=o,i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}return null}}};NR.prototype.visible=!1,NR.findFrom=NR.findGapCursorFrom,Je.jsonID(`gapcursor`,NR);var PR=class e{constructor(e){this.pos=e}map(t){return new e(t.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return NR.valid(t)?new NR(t):Je.near(t)}};function FR(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function IR(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0}else for(let e=r.child(n-1);;e=e.lastChild){if(e.childCount==0&&!e.inlineContent||FR(e.type))return!0;if(e.inlineContent)return!1}}return!0}function LR(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0}else for(let e=r.child(n);;e=e.firstChild){if(e.childCount==0&&!e.inlineContent||FR(e.type))return!0;if(e.inlineContent)return!1}}return!0}function RR(){return new ut({props:{decorations:UR,createSelectionBetween(e,t,n){return t.pos==n.pos&&NR.valid(n)?new NR(n):null},handleClick:VR,handleKeyDown:zR,handleDOMEvents:{beforeinput:HR}}})}var zR=Tt({ArrowLeft:BR(`horiz`,-1),ArrowRight:BR(`horiz`,1),ArrowUp:BR(`vert`,-1),ArrowDown:BR(`vert`,1)});function BR(e,t){let n=e==`vert`?t>0?`down`:`up`:t>0?`right`:`left`;return function(e,r,i){let a=e.selection,o=t>0?a.$to:a.$from,s=a.empty;if(a instanceof et){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=NR.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new NR(c))),!0):!1}}function VR(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!NR.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&it.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new NR(r))),!0)}function HR(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof NR))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=Vt.empty;for(let e=r.length-1;e>=0;e--)i=Vt.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new xt(i,0,0));return a.setSelection(et.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function UR(e){if(!(e.selection instanceof NR))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,Rt.create(e.doc,[Wt.widget(e.selection.head,t,{key:`gapcursor`})])}var WR=YD.create({name:`gapCursor`,addProseMirrorPlugins(){return[RR()]},extendNodeSchema(e){return{allowGapCursor:FT(xT(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}});function GR(e){return e.matches(`[data-editable]`)?e:e.querySelector(`[data-editable]`)||e}function KR(e,t){return Dt.fromSchema(t).parse(e,{topNode:t.nodes.paragraph.create(),preserveWhitespace:!0}).content}function qR(e,t){let n=[];return e.forEach(e=>{if(e.isText)n.push(e);else{let r=e.type===t.linebreakReplacement?`
|
|
465
|
+
`:e.textContent;r&&n.push(t.text(r,e.marks))}}),Vt.fromArray(n)}function JR(e,t,n){let r=e.content===`plain`||n&&e.content===`styled`?t=>(r,i)=>{let a=n?.({el:r,schema:i});if(a!==void 0)return e.content===`plain`?qR(a,i):a;let o=KR(t(r),i);return e.content===`plain`?qR(o,i):o}:void 0,i=[{tag:`[data-inline-content-type="${e.type}"]`,contentElement:e=>GR(e),getContent:r?(e,t)=>r(GR)(e,t):void 0}];return t&&i.push({tag:`*`,getAttrs(e){if(typeof e==`string`)return!1;let n=t?.(e);return n!==void 0&&n},preserveWhitespace:r?!0:void 0,getContent:r?(e,t)=>r(e=>e)(e,t):void 0}),i}function YR(e,t,n,r=`before`){let i=typeof n==`string`?n:n.id,a=Yj(e),o=t.map(e=>{let t=FN(e,a);return t.check(),t}),s=PF(i,e.doc);if(!s)throw Error(`Block with ID ${i} not found`);if(o.length===0)return[];let c=fj(e.doc,aj(e.doc,s.posBeforeNode),r,o[0].type);if(!c)throw Error(`Cannot insert blocks at "${r}" of block "${i}": no valid position for them`);if(c.wrapIn&&!c.wrapIn.validContent(Vt.from(o)))throw Error(`Cannot insert blocks at "${r}" of block "${i}": a "${c.wrapIn.name}" doesn't accept them`);let l=c.wrapIn?Vt.from(c.wrapIn.create(null,o)):Vt.from(o),u=e.doc.resolve(c.pos);if(!u.parent.canReplace(u.index(),u.index(),l))throw Error(`Cannot insert blocks at "${r}" of block "${i}": a "${u.parent.type.name}" doesn't accept them`);return e.step(new rt(c.pos,c.pos,new xt(l,0,0))),o.map(t=>sM(t,e.doc))}function XR(e){if(e.type.name===`blockContainer`){let t=e.firstChild;return e.childCount===1&&!!t&&t.type.name===`paragraph`&&t.childCount===0}return VA(e.type)?e.childCount===1?XR(e.firstChild):e.childCount===0&&qA(e.type.spec.blockConfig?.children)>=1:!1}function ZR(e,t){let n=e.doc.resolve(t).nodeAfter;if(!n||!VA(n.type))throw Error(`Invalid layoutBlockPos: does not point to a layout block node.`);if(UA(n.type))return;let r=n.type.spec.blockConfig?.children;if(r&&`dissolve`in r&&r.dissolve===!1)return;let i=qA(n.type.spec.blockConfig?.children),a=[],o=[];if(n.forEach((e,n)=>{if(!XR(e))a.push({node:e,offset:n});else if(VA(e.type)){let r=t+1+n;o.push({from:r,to:r+e.nodeSize})}}),a.length>=i){for(let{from:t,to:n}of o.reverse())e.delete(t,n);return}if(a.length===1){let[{node:r,offset:i}]=a,o=t+1+i,s=UA(r.type)?{from:o+1,to:o+r.nodeSize-1}:{from:o,to:o+r.nodeSize};e.step(new $e(t,t+n.nodeSize,s.from,s.to,xt.empty,0,!1));return}let s=[];for(let{node:e}of a)UA(e.type)?e.forEach(e=>s.push(e)):s.push(e);e.replaceWith(t,t+n.nodeSize,Vt.from(s))}function QR(e,t){[...t].sort((e,t)=>t.depth-e.depth).forEach(({id:t})=>{let n=PF(t,e.doc);n&&VA(n.node.type)&&ZR(e,n.posBeforeNode)})}function $R(e,t,n,r={}){let i=Yj(e),a=n.map(e=>{let t=FN(e,i);return t.check(),t}),o=new Set(t.map(e=>typeof e==`string`?e:e.id)),s=[],c=[],l=typeof t[0]==`string`?t[0]:t[0].id,u=e.steps.length,d=t=>e.mapping.slice(u).map(t);if(e.doc.descendants((t,r)=>{if(o.size===0)return!1;if(!t.type.isInGroup(`bnBlock`))return!0;let i=nj(t,e.doc);if(!o.has(i))return!0;s.push(sM(t,e.doc)),o.delete(i),n.length>0&&i===l&&e.insert(d(r),a);let u=e.doc.resolve(d(r));for(let e of hj(u.doc,u.pos))c.some(t=>t.id===e.id)||c.push(e);let f=u.node();return f.type.name===`blockGroup`&&u.node(u.depth-1).type.name!==`doc`&&f.childCount===1?e.delete(u.before(),u.after()):e.delete(u.pos,u.pos+t.nodeSize),!1}),o.size>0){let e=[...o].join(`
|
|
466
|
+
`);throw Error(`Blocks with the following IDs could not be found in the editor: `+e)}return r.fixLayoutBlocks!==!1&&QR(e,c),{insertedBlocks:a.map(t=>sM(t,e.doc)),removedBlocks:s}}var ez=(e,t)=>({tr:n,dispatch:r})=>(r&&tz(n,e,t),!0);function tz(e,t,n,r,i){let a=e.mapping.maps.length,o=aj(e.doc,t),s=o.hasContent&&o.blockNoteType===`table`?cz(e):null,c=Yj(e);if(r!==void 0&&i!==void 0&&r>i)throw Error(`Invalid replaceFromPos or replaceToPos`);let l=n.type||o.blockNoteType,u=c.nodes[l],d=u.isInGroup(`bnBlock`)?u:c.nodes.blockContainer,f=o.hasContent&&r!==void 0&&r>=o.contentStart&&r<=o.contentEnd?r-o.contentStart:void 0,p=o.hasContent&&i!==void 0&&i>=o.contentStart&&i<=o.contentEnd?i-o.contentStart:void 0;if(o.hasContent!==u.isInGroup(`blockContent`)||!o.hasContent&&!u.validContent(o.block.node.content)){let t=sM(o.block.node,e.doc),r=Qj(c)[l],i,a=[...t.children];Array.isArray(t.content)&&t.content.length&&(r.content===`inline`||r.content===`plain`?i=t.content:VA(u)&&a.unshift({type:`paragraph`,content:t.content}));let s=FN({id:t.id,...i?{content:i}:{},...a.length>0?{children:a}:{},...n},c);s.check();let d=e.doc.resolve(o.block.beforePos);if(!d.parent.canReplace(d.index(),d.index(),Vt.from(s)))throw Error(`Cannot update block to "${l}": a "${d.parent.type.name}" doesn't accept it`);e.replaceWith(o.block.beforePos,o.block.afterPos,s)}else oz(n,e,o),o.hasContent&&nz(n,e,c.nodes[o.blockNoteType],u,o,f,p),iz(e,o.block.beforePos,d,{...n.props}),s&&o.hasContent&&lz(e,e.mapping.slice(a).map(o.content.beforePos),s)}function nz(e,t,n,r,i,a,o){let s=Yj(t),c=`keep`;if(e.content){if(typeof e.content==`string`)c=jN([e.content],s,r.name);else if(Array.isArray(e.content))c=jN(e.content,s,r.name);else if(e.content.type===`tableContent`)c=MN(e.content,s);else throw new Pj(e.content.type)}else{let e=i.content.node.content;if(n.spec.content!==``&&r.spec.content!==n.spec.content&&!r.validContent(e)){if(r.inlineContent&&n.inlineContent){let e=i.content.node.textContent;c=e.length>0?[s.text(e)]:[]}else c=[]}}if(c===`keep`)iz(t,i.content.beforePos,r,{...e.props});else if(a!==void 0||o!==void 0){let n=az(t,i.content.beforePos,r,{...e.props}),s=n+1+(a??0),l=n+1+(o??i.content.node.content.size),u=t.doc.resolve(n).depth,d=t.doc.resolve(s).depth,f=t.doc.resolve(l).depth;t.replace(s,l,new xt(Vt.from(c),d-u-1,f-u-1))}else r===n||r.validContent(i.content.node.content)?rz(t,az(t,i.content.beforePos,r,{...e.props}),Vt.from(c)):t.replaceWith(i.content.beforePos,i.content.afterPos,r.createChecked({...i.content.node.attrs,...e.props},c))}function rz(e,t,n){let r=e.doc.nodeAt(t);if(!r)throw RangeError(`No node at given position`);let i=r.content,a=t+1;if(r.isTextblock){let t=i.findDiffStart(n);if(t===null)return;let{a:r,b:o}=i.findDiffEnd(n),s=Math.max(0,t-r,t-o);s>0&&(r+=s,o+=s),e.replace(a+t,a+r,new xt(n.cut(t,o),0,0));return}let o=i.childCount,s=n.childCount,c=0;for(;c<o&&c<s&&i.child(c).eq(n.child(c));)c++;let l=o,u=s;for(;l>c&&u>c&&i.child(l-1).eq(n.child(u-1));)l--,u--;if(c===l&&c===u)return;let d=a;for(let e=0;e<c;e++)d+=i.child(e).nodeSize;let f=d;for(let e=c;e<l;e++)f+=i.child(e).nodeSize;let p=[];for(let e=c;e<u;e++)p.push(n.child(e));e.step(new rt(d,f,new xt(Vt.from(p),0,0)))}function iz(e,t,n,r){let i=e.doc.nodeAt(t);if(!i)throw RangeError(`No node at given position`);let a=n.spec.attrs??{},o={};for(let e of Object.keys(r))e in a&&(o[e]=r[e]);let s={...i.attrs,...o};if(i.type===n)for(let n of Object.keys(s))s[n]!==i.attrs[n]&&e.setNodeAttribute(t,n,s[n]);else e.setNodeMarkup(t,n,s)}function az(e,t,n,r){let i=e.mapping.maps.length;return iz(e,t,n,r),e.mapping.slice(i).map(t,-1)}function oz(e,t,n){let r=Yj(t);if(e.children!==void 0&&e.children.length>0){let i=e.children.map(e=>{let t=FN(e,r);return t.check(),t});n.children?rz(t,n.children.beforePos,Vt.from(i)):n.hasContent&&t.insert(n.content.afterPos,HA(r,i))}}function sz(e,t,n,r,i){let a=typeof t==`string`?t:t.id,o=PF(a,e.doc);if(!o)throw Error(`Block with ID ${a} not found`);tz(e,o.posBeforeNode,n,r,i);let s=e.doc.resolve(o.posBeforeNode).nodeAfter;if(!s)throw Error(`Block with ID ${a} not found after update`);return sM(s,e.doc)}function cz(e){let t=`selection`in e?e.selection:null;if(!(t instanceof et))return null;let n=e.doc.resolve(t.head),r=-1,i=-1;for(let e=n.depth;e>=0;e--){let t=n.node(e).type.name;if(r<0&&(t===`tableCell`||t===`tableHeader`)&&(r=e),t===`table`){i=e;break}}if(r<0||i<0)return null;let a=n.before(r),o=n.before(i),s=e.doc.nodeAt(o);if(!s||s.type.name!==`table`)return null;let c=PO.get(s),l=a-(o+1),u=c.map.indexOf(l);if(u<0)return null;let d=Math.floor(u/c.width),f=u%c.width,p=a+1+1;return{row:d,col:f,offset:Math.max(0,t.head-p)}}function lz(e,t,n){let r=e.doc.nodeAt(t);if(!r||r.type.name!==`table`)return!1;let i=PO.get(r),a=Math.max(0,Math.min(n.row,i.height-1)),o=Math.max(0,Math.min(n.col,i.width-1)),s=a*i.width+o,c=i.map[s];if(c==null)return!1;let l=t+1+c+1,u=e.doc.nodeAt(l),d=l+1,f=u?u.content.size:0,p=d+Math.max(0,Math.min(n.offset,f));return`selection`in e&&e.setSelection(et.create(e.doc,p)),!0}var uz=[[`textColor`,`data-text-color`],[`backgroundColor`,`data-background-color`]];function dz(e){return typeof e==`string`&&e!=="default"}function fz(e){return uz.some(([t])=>dz(e[t]))}function pz(e,t){for(let[n,r]of uz){let i=t?.[n];dz(i)?e.setAttribute(r,i):e.removeAttribute(r)}}var mz={blockColor:`data-block-color`,blockStyle:`data-block-style`,id:`data-id`,depth:`data-depth`,depthChange:`data-depth-change`},hz=mO.create({name:`blockContainer`,group:`blockGroupChild bnBlock`,content:`blockContent blockGroup?`,priority:50,defining:!0,marks(){return Hj(this.editor)},parseHTML(){return[{tag:`div[data-node-type=`+this.name+`]`,getAttrs:e=>{if(typeof e==`string`)return!1;let t={};for(let[n,r]of Object.entries(mz))e.getAttribute(r)&&(t[n]=e.getAttribute(r));return t},contentElement:e=>pM(e)??e},{tag:`div[data-node-type="blockOuter"]`,skip:!0}]},renderHTML({HTMLAttributes:e}){let t=document.createElement(`div`);t.className=`bn-block-outer`,t.setAttribute(`data-node-type`,`blockOuter`);for(let[n,r]of Object.entries(e))n!==`class`&&t.setAttribute(n,r);let n={...this.options.domAttributes?.block||{},...e},r=document.createElement(`div`);r.className=Lj(`bn-block`,n.class),r.setAttribute(`data-node-type`,this.name);for(let[e,t]of Object.entries(n))e!==`class`&&r.setAttribute(e,t);return t.appendChild(r),{dom:t,contentDOM:r}},addNodeView(){return(e=>{let{dom:t,contentDOM:n}=this.type.spec.toDOM(e.node),r=this.options.editor,i=gM({props:e,editor:r,blockNode:e=>e.firstChild,unframed:n});i.dom!==n&&n.appendChild(i.dom);let a=e.node.firstChild.attrs;return fz(a)&&pz(n,a),{dom:t,contentDOM:i.slot,update(e,t,r){let a=i.node;return!e.sameMarkup(a)||!i.update(e,t,r)?!1:(e.firstChild.sameMarkup(a.firstChild)||pz(n,e.firstChild.attrs),!0)},...xM(i)}})}});function gz(e,t,n,r,i){let a;if(!t)throw Error(`blockContent is required`);if(typeof t==`string`)a=jN([t],e.pmSchema,r);else if(Array.isArray(t))a=jN(t,e.pmSchema,r);else if(t.type===`tableContent`)a=MN(t,e.pmSchema);else throw new Pj(t.type);let o=(i?.document??document).createDocumentFragment();for(let t of a)if(t.type.name!==`text`&&e.schema.inlineContentSchema[t.type.name]){let r=e.schema.inlineContentSpecs[t.type.name].implementation;if(r){let a=oM(t,e.schema.inlineContentSchema,e.schema.styleSchema),s=r.render.call({renderType:`dom`,props:void 0},a,()=>{},e);if(s){if(o.appendChild(s.dom),s.contentDOM){let e=n.serializeFragment(t.content,i);s.contentDOM.dataset.editable=``,s.contentDOM.appendChild(e)}continue}}}else if(t.type.name===`text`){let n=document.createTextNode(t.textContent);for(let r of t.marks.toReversed())if(r.type.name in e.schema.styleSpecs){let t=e.schema.styleSpecs[r.type.name].implementation.render(r.attrs.stringValue,e);t.contentDOM.appendChild(n),n=t.dom}else{let e=r.type.spec.toDOM(r,!0),t=Qt.renderSpec(document,e);t.contentDOM.appendChild(n),n=t.dom}o.appendChild(n)}else{let e=n.serializeFragment(Vt.from([t]),i);o.appendChild(e)}return o}function _z(e,t,n,r){let i=e.pmSchema.nodes.blockContainer,a=t.props||{};for(let[n,r]of Object.entries(e.schema.blockSchema[t.type].propSchema))!(n in a)&&r.default!==void 0&&(a[n]=r.default);let o=t.children||[],s=e.blockImplementations[t.type].implementation,c={...t,props:a,children:o};if(VA(e.pmSchema.nodes[t.type])){let i=hM(e,c);if(!i)throw Error(`Layout block "${t.type}" drew no frame. This is a bug in BlockNote.`);return o.length>0&&i.slot.append(vz(e,o,n,r)),i.dom}if(!s.render)throw Error(`Block "${t.type}" has no \`render\`. This is a bug in BlockNote.`);let l=s.render.call({renderType:`dom`,props:void 0},c,e);if(l.contentDOM&&t.content){let i=gz(e,t.content,n,t.type,r);l.contentDOM.appendChild(i)}let u=i.spec?.toDOM?.(i.create({id:t.id,...a}));u.contentDOM&&pz(u.contentDOM,a);let d=u.contentDOM,f=hM(e,c);return f&&(fM(f.slot),u.contentDOM?.appendChild(f.dom),d=f.slot),d?.appendChild(l.dom),o.length>0&&d?.appendChild(yz(e,o,n,r)),u.dom}function vz(e,t,n,r){let i=(r?.document??document).createDocumentFragment();for(let a of t){let t=_z(e,a,n,r);i.appendChild(t)}return i}var yz=(e,t,n,r)=>{let i=e.pmSchema.nodes.blockGroup,a=i.spec.toDOM(i.create({})),o=vz(e,t,n,r);return a.contentDOM?.appendChild(o),a.dom},bz=e=>(e.querySelectorAll(`[data-content-type="numberedListItem"]`).forEach(e=>{let t=e.closest(`.bn-block-outer`)?.previousElementSibling?.querySelector(`[data-content-type="numberedListItem"]`);if(!t)e.setAttribute(`data-index`,e.getAttribute(`data-start`)||`1`);else{let n=t.getAttribute(`data-index`);e.setAttribute(`data-index`,(parseInt(n||`0`)+1).toString())}}),e),xz=e=>(e.querySelectorAll(`[data-content-type="checkListItem"] input`).forEach(e=>{e.disabled=!0}),e),Sz=e=>(e.querySelectorAll(`.bn-toggle-button[aria-expanded="false"]`).forEach(e=>{e.setAttribute(`aria-expanded`,`true`)}),e),Cz=e=>(e.querySelectorAll(`[data-content-type="table"] table`).forEach(e=>{e.setAttribute(`style`,`--default-cell-min-width: 120px;`),e.setAttribute(`data-show-children`,`true`)}),e),wz=e=>(e.querySelectorAll(`[data-content-type="table"] table`).forEach(e=>{let t=document.createElement(`div`);t.className=`tableWrapper`;let n=document.createElement(`div`);n.className=`tableWrapper-inner`,t.appendChild(n),e.parentElement?.appendChild(t),t.appendChild(e)}),e),Tz=e=>(e.querySelectorAll(`.bn-inline-content:empty`).forEach(e=>{let t=document.createElement(`span`);t.className=`ProseMirror-trailingBreak`,t.setAttribute(`style`,`display: inline-block;`),e.appendChild(t)}),e),Ez=(e,t)=>{let n=Qt.fromSchema(e),r=[bz,xz,Sz,Cz,wz,Tz];return{serializeBlocks:(e,i)=>{let a=yz(t,e,n,i);for(let e of r)a=e(a);return a.outerHTML}}},Dz=class{callbacks={};on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),()=>this.off(e,t)}emit(e,...t){let n=this.callbacks[e];n&&n.forEach(e=>e.apply(this,t))}off(e,t){let n=this.callbacks[e];n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e])}removeAllListeners(){this.callbacks={}}};function Oz(e,t){return e.flatMap(e=>UA(t.nodes[e.type])?Oz(e.children,t):[e])}function kz(e){return e.transact(e=>{let t=oj(e,e.selection.anchor),n=nj(t.block.node,e.doc);if(e.selection instanceof $O)return{type:`cell`,anchorBlockId:n,anchorCellOffset:e.selection.$anchorCell.pos-t.block.beforePos,headCellOffset:e.selection.$headCell.pos-t.block.beforePos};if(e.selection instanceof it)return{type:`node`,anchorBlockId:n};{let r=oj(e,e.selection.head);return{type:`text`,anchorBlockId:n,headBlockId:nj(r.block.node,e.doc),anchorOffset:e.selection.anchor-t.block.beforePos,headOffset:e.selection.head-r.block.beforePos}}})}function Az(e,t){let n=PF(t.anchorBlockId,e.doc)?.posBeforeNode;if(n===void 0)throw Error(`Could not find block with ID ${t.anchorBlockId} to update selection`);let r;if(t.type===`cell`)r=$O.create(e.doc,n+t.anchorCellOffset,n+t.headCellOffset);else if(t.type===`node`){let t=aj(e.doc,n);r=it.create(e.doc,t.hasContent?t.content.beforePos:n)}else{let i=PF(t.headBlockId,e.doc)?.posBeforeNode;if(i===void 0)throw Error(`Could not find block with ID ${t.headBlockId} to update selection`);r=et.create(e.doc,n+t.anchorOffset,i+t.headOffset)}e.setSelection(r)}function jz(e,t,n,r){e.transact(i=>{$R(i,t,[],{fixLayoutBlocks:!1}),YR(i,Oz(t,e.pmSchema),n,r)})}function Mz(e,t,n){e.transact(r=>{let i=e.getSelection()?.blocks||[e.getTextCursorPosition().block],a=kz(e);jz(e,i,t,n),Az(r,a)})}function Nz(e,t){let n=Oz([t],e.pmSchema)[0],r=n&&e.pmSchema.nodes[n.type];return r&&VA(r)?r:e.pmSchema.nodes.blockContainer}function Pz(e,t,n,r,i){let a=n===`up`?`before`:`after`,o=n===`up`?`after`:`before`;for(;r||i;){let s=r&&r.children.length>0,c=r?s?r.children[n===`up`?r.children.length-1:0]:r:i,l=s?o:a;if(e.transact(e=>{let n=PF(c.id,e.doc);return n!==void 0&&fj(e.doc,aj(e.doc,n.posBeforeNode),l,t)!==null}))return{referenceBlock:c,placement:l};i=e.getParentBlock(c),r=l===o?c:n===`up`?e.getPrevBlock(c):e.getNextBlock(c)}}function Fz(e,t,n){e.transact(()=>{let r;if(n){let t=e.getBlock(n);if(!t)return;r=[t]}else r=e.getSelection()?.blocks||[e.getTextCursorPosition().block];let i=r[t===`up`?0:r.length-1],a=Pz(e,Nz(e,r[0]),t,t===`up`?e.getPrevBlock(i):e.getNextBlock(i),e.getParentBlock(i));a&&(n?jz(e,r,a.referenceBlock,a.placement):Mz(e,a.referenceBlock,a.placement))})}function Iz(e,t){Fz(e,`up`,t)}function Lz(e,t){Fz(e,`down`,t)}function Rz(e,t){return e.childCount>0&&e.type.isInGroup(`childContainer`)&&e.type.contentMatch.matchType(t)!==null}function zz(e,t,n){let{$from:r,$to:i}=e.selection,a=r.blockRange(i,e=>Rz(e,t));if(!a)return!1;let o=a.startIndex;if(o===0)return!1;let s=a.parent.child(o-1);if(s.type!==t)return!1;let c=s.lastChild&&s.lastChild.type===n?2:1,l=new xt(Vt.from(t.create(null,Vt.from(n.create()))),c,0),u=a.start,d=a.end;return e.step(new $e(u-c,d,u,d,l,2-c,!0)).scrollIntoView(),!0}function Bz(e){return t=>zz(t,e.pmSchema.nodes.blockContainer,e.pmSchema.nodes.blockGroup)}function Vz(e){return e.transact(Bz(e))}function Hz(e,t,n,r){let i=r.end,a=r.$to.end(r.depth);if(i<a){let o=r.parent.child(r.endIndex-1),s=o.lastChild&&o.lastChild.type===n;e.step(new $e(i-(s?2:1),a,i,a,new xt(Vt.from(t.create(null,n.create())),s?2:1,0),+!s,!0)),r=new Jt(e.doc.resolve(r.$from.pos),e.doc.resolve(a),r.depth)}let o=Ke(r);if(o==null)return!1;e.lift(r,o);let s=e.doc.resolve(e.mapping.map(i,-1)-1);return nt(e.doc,s.pos)&&s.nodeBefore.type===s.nodeAfter.type&&e.join(s.pos),e.scrollIntoView(),!0}function Uz(e,t,n,r){let{$from:i,$to:a}=e.selection,o=i.blockRange(a,e=>Rz(e,t));if(!o)return!1;let s=i.node(o.depth-1);return s.type===t&&!r(s)?!1:s.type===t&&Hz(e,t,n,o)}function Wz(e){return t=>Uz(t,e.pmSchema.nodes.blockContainer,e.pmSchema.nodes.blockGroup,n=>{let r=sM(n,t.doc);return e.schema.blockSpecs[r.type].implementation.keyboard(r).childrenCanOutdent})}function Gz(e){return e.transact(Wz(e))}function Kz(e){return e.canExec(t=>Bz(e)(t.tr))}function qz(e){return e.canExec(t=>Wz(e)(t.tr))}function Jz(e,t){let n=PF(typeof t==`string`?t:t.id,e);if(n)return sM(n.node,e)}function Yz(e,t){let n=PF(typeof t==`string`?t:t.id,e);if(!n)return;let r=e.resolve(n.posBeforeNode).nodeBefore;if(r)return sM(r,e)}function Xz(e,t){let n=PF(typeof t==`string`?t:t.id,e);if(!n)return;let r=e.resolve(n.posBeforeNode+n.node.nodeSize).nodeAfter;if(r)return sM(r,e)}function Zz(e,t){let n=PF(typeof t==`string`?t:t.id,e);if(!n)return;let r=cj(e,n.posBeforeNode);if(r)return sM(r.block.node,e)}var Qz=class{editor;constructor(e){this.editor=e}get document(){return this.editor.transact(e=>cM(e.doc))}getBlock(e){return this.editor.transact(t=>Jz(t.doc,e))}getPrevBlock(e){return this.editor.transact(t=>Yz(t.doc,e))}getNextBlock(e){return this.editor.transact(t=>Xz(t.doc,e))}getParentBlock(e){return this.editor.transact(t=>Zz(t.doc,e))}forEachBlock(e,t=!1){let n=this.document.slice();t&&n.reverse();function r(n){for(let i of n)if(e(i)===!1||!r(t?i.children.slice().reverse():i.children))return!1;return!0}r(n)}insertBlocks(e,t,n=`before`){return this.editor.transact(r=>YR(r,e,t,n))}updateBlock(e,t){return this.editor.transact(n=>sz(n,e,t))}removeBlocks(e){return this.editor.transact(t=>$R(t,e,[]).removedBlocks)}replaceBlocks(e,t){return this.editor.transact(n=>$R(n,e,t))}canNestBlock(){return Kz(this.editor)}nestBlock(){Vz(this.editor)}canUnnestBlock(){return qz(this.editor)}unnestBlock(){Gz(this.editor)}moveBlocksUp(e){return Iz(this.editor,e)}moveBlocksDown(e){return Lz(this.editor,e)}},$z=class extends Dz{editor;constructor(e){super(),this.editor=e,e.on(`create`,()=>{e._tiptapEditor.on(`update`,({transaction:t,appendedTransactions:n})=>{this.emit(`onChange`,{editor:e,transaction:t,appendedTransactions:n})}),e._tiptapEditor.on(`selectionUpdate`,({transaction:t})=>{this.emit(`onSelectionChange`,{editor:e,transaction:t})}),e._tiptapEditor.on(`focus`,({event:t})=>{this.emit(`onFocusChange`,{editor:e,focused:!0,event:t})}),e._tiptapEditor.on(`blur`,({event:t})=>{this.emit(`onFocusChange`,{editor:e,focused:!1,event:t})}),e._tiptapEditor.on(`mount`,()=>{this.emit(`onMount`,{editor:e})}),e._tiptapEditor.on(`unmount`,()=>{this.emit(`onUnmount`,{editor:e})});let t;this.onMount(()=>{t=this.attachUIFocusTracker()}),this.onUnmount(()=>{t&&t()})})}attachUIFocusTracker(){if(typeof document>`u`)return()=>{};let e=this.editor.isFocused({includeEditorUI:!0}),t,n=t=>{let n=this.editor.isFocused({includeEditorUI:!0});n!==e&&(e=n,this.emit(`onFocusChangeWithinUI`,{editor:this.editor,focused:n,event:t}))},r=e=>n(e),i=e=>{clearTimeout(t),t=setTimeout(()=>n(e))};return document.addEventListener(`focusin`,r,!0),document.addEventListener(`focusout`,i,!0),()=>{clearTimeout(t),document.removeEventListener(`focusin`,r,!0),document.removeEventListener(`focusout`,i,!0)}}onChange(e,t=!0){return this.on(`onChange`,({transaction:n,appendedTransactions:r})=>{(t||!eB(n))&&e(this.editor,{getChanges(){return eI(n,r)}})})}onSelectionChange(e,t=!1){return this.on(`onSelectionChange`,({transaction:n})=>{(t||!eB(n))&&e(this.editor)})}onFocusChange(e,t){return this.on(t?.includeEditorUI?`onFocusChangeWithinUI`:`onFocusChange`,({focused:t,event:n})=>e(this.editor,{focused:t,event:n}))}onMount(e){return this.on(`onMount`,e)}onUnmount(e){return this.on(`onUnmount`,e)}};function eB(e){return!!e.getMeta(`y-sync$`)}function tB(e){return Array.prototype.indexOf.call(e.parentElement.childNodes,e)}function nB(e){return e.nodeType===3&&!/\S/.test(e.nodeValue||``)}function rB(e){e.querySelectorAll(`li > ul, li > ol`).forEach(e=>{let t=tB(e),n=e.parentElement,r=Array.from(n.childNodes).slice(t+1);e.remove(),r.forEach(e=>{e.remove()}),n.insertAdjacentElement(`afterend`,e),r.reverse().forEach(t=>{if(nB(t))return;let n=document.createElement(`li`);n.append(t),e.insertAdjacentElement(`afterend`,n)}),n.childNodes.length===0&&n.remove()})}function iB(e){e.querySelectorAll(`li + ul, li + ol`).forEach(e=>{let t=e.previousElementSibling,n=document.createElement(`div`);t.insertAdjacentElement(`afterend`,n),n.append(t);let r=document.createElement(`div`);for(r.setAttribute(`data-node-type`,`blockGroup`),n.append(r);n.nextElementSibling?.nodeName===`UL`||n.nextElementSibling?.nodeName===`OL`;)r.append(n.nextElementSibling)})}var aB=null;function oB(){return aB||=document.implementation.createHTMLDocument(`title`)}function sB(e){if(typeof e==`string`){let t=oB().createElement(`div`);t.innerHTML=e,e=t}return rB(e),iB(e),e}function cB(e){let t=e.ownerDocument.createTreeWalker(e,128),n;for(;n=t.nextNode();)if(/^\s*notionvc:/.test(n.nodeValue||``))return!0;return!1}function lB(e){let t=new Set([`PRE`,`CODE`]),n=e.ownerDocument.createTreeWalker(e,4,{acceptNode(n){let r=n.parentElement;for(;r&&r!==e;){if(t.has(r.tagName))return 2;r=r.parentElement}return 1}}),r=[],i;for(;i=n.nextNode();)r.push(i);for(let e of r)e.nodeValue&&/[\r\n]/.test(e.nodeValue)&&(e.nodeValue=e.nodeValue.replace(/[ \t\r\n\f]+/g,` `))}function uB(e){cB(e)||lB(e)}function dB(e){let t=[];for(let n of e)if(n.type===`text`){let e=n.text.split(``).join(``);e.length>0&&t.push({...n,text:e})}else Array.isArray(n.content)?t.push({...n,content:dB(n.content)}):t.push(n);return t}function fB(e){for(let t of e)Array.isArray(t.content)&&(t.content=dB(t.content)),t.children.length>0&&fB(t.children)}function pB(e,t){let n=sB(e);uB(n);let r=Dt.fromSchema(t).parse(n,{topNode:t.nodes.blockGroup.create()}),i=[];for(let e=0;e<r.childCount;e++)i.push(sM(r.child(e),r));return fB(i),i}function mB(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}function hB(e){return e?/\w/.test(e):!1}function gB(e,t,n){let r=t>0?e[t-1]:void 0,i=t+n<e.length?e[t+n]:void 0;return hB(r)&&hB(i)}function _B(e,t){if(e[t]!==`\\`||t+1>=e.length)return null;let n=e[t+1];return n===`
|
|
467
|
+
`?{html:`<br>
|
|
468
|
+
`,end:t+2}:"\\`*_{}[]()#+-.!~|>".includes(n)?{html:mB(n),end:t+2}:null}function vB(e,t){return e[t]==="`"?RB(e,t):null}function yB(e,t){return e[t]!==`!`||e[t+1]!==`[`?null:zB(e,t)}function bB(e,t){return e[t]===`[`?BB(e,t):null}function xB(e,t){let n=e.substring(t);if(e[t]===`<`){let e=n.match(/^<([a-zA-Z][a-zA-Z0-9+.-]{1,31}:[^\s<>]*)>/);if(e){let n=e[1];return{html:`<a href="${mB(n)}">${mB(n)}</a>`,end:t+e[0].length}}let r=n.match(/^<([^\s<>]+)>/),i=r?.[1],a=i?aL(i).find(e=>e.type===`email`&&e.start===0&&e.end===i.length):void 0;return r&&i&&a?{html:`<a href="${mB(a.href)}">${mB(i)}</a>`,end:t+r[0].length}:null}if(t>0&&/[a-zA-Z0-9_]/.test(e[t-1]))return null;let r=n.match(/^(https?:\/\/|www\.)[^\s<>]+/i);if(!r)return null;let i=uL(r[0]);return i?{html:`<a href="${mB(i.href)}">${mB(i.value)}</a>`,end:t+i.value.length}:null}function SB(e,t,n){return e[t]!==`~`||e[t+1]!==`~`?null:WB(e,t,`~~`,`<del>`,`</del>`,n)}function CB(e,t,n){return e[t]===`*`&&e[t+1]===`*`&&e[t+2]===`*`||e[t]===`_`&&e[t+1]===`_`&&e[t+2]===`_`&&!gB(e,t,3)?WB(e,t,e.substring(t,t+3),`<strong><em>`,`</em></strong>`,n):null}function wB(e,t,n){return e[t]===`*`&&e[t+1]===`*`||e[t]===`_`&&e[t+1]===`_`&&!gB(e,t,2)?WB(e,t,e.substring(t,t+2),`<strong>`,`</strong>`,n):null}function TB(e,t,n){return e[t]===`*`||e[t]===`_`&&!gB(e,t,1)?WB(e,t,e[t],`<em>`,`</em>`,n):null}function EB(e,t){return e[t]===`
|
|
469
|
+
`?{html:`<br>
|
|
470
|
+
`,end:t+1}:null}var DB=/^<\/?[a-zA-Z][a-zA-Z0-9-]*(?:\s+[a-zA-Z_:][a-zA-Z0-9_.:-]*(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*\s*\/?>/,OB=/^<!--[\s\S]*?-->/,kB=/^<!\[CDATA\[[\s\S]*?\]\]>/,AB=/^<\?[\s\S]*?\?>/,jB=/^<![A-Za-z][\s\S]*?>/;function MB(e,t){if(e[t]!==`<`)return null;let n=e.substring(t);for(let e of[OB,kB,AB,jB,DB]){let r=n.match(e);if(r)return{html:r[0],end:t+r[0].length}}return null}var NB=new Set(`\\\`![~*_
|
|
471
|
+
<`);function PB(e,t){let n=e[t];return NB.has(n)?!0:n===`h`?e.startsWith(`http://`,t)||e.startsWith(`https://`,t):n===`w`&&e.startsWith(`www.`,t)}var FB=[_B,vB,yB,bB,xB,SB,CB,wB,TB,MB,EB],IB=FB.filter(e=>e!==bB&&e!==xB);function LB(e,t=!0){let n=``,r=0,i=t?FB:IB;for(;r<e.length;){if(e[r]===`
|
|
472
|
+
`&&r>=2&&e[r-1]===` `&&e[r-2]===` `){n=n.replace(/ +$/,``),n+=`<br>
|
|
473
|
+
`,r++;continue}let a=!1;if(PB(e,r))for(let o of i){let i=o(e,r,t);if(i){n+=i.html,r=i.end,a=!0;break}}if(!a){let t=r;for(r++;r<e.length&&!PB(e,r);)r++;n+=mB(e.substring(t,r))}}return n}function RB(e,t){let n=0,r=t;for(;r<e.length&&e[r]==="`";)n++,r++;let i=r;for(;i<e.length;)if(e[i]==="`"){let t=0,a=i;for(;i<e.length&&e[i]==="`";)t++,i++;if(t===n){let t=e.substring(r,a);return t=t.replace(/\n/g,` `),t.length>=2&&t[0]===` `&&t[t.length-1]===` `&&/[^ ]/.test(t)&&(t=t.substring(1,t.length-1)),{html:`<code>${mB(t)}</code>`,end:i}}}else i++;return null}function zB(e,t){let n=VB(e,t+1);if(n===-1)return null;let r=t+2;if(e[n+1]!==`(`)return null;let i=n+2,a=HB(e,i-1);if(a===-1)return null;let o=e.substring(r,n),{url:s,title:c}=UB(e.substring(i,a));if(Tee(s)){let e=o||c;return{html:`<video src="${mB(s)}"${e?` data-name="${mB(e)}"`:``} data-url="${mB(s)}" controls></video>`,end:a+1}}let l=c===void 0?``:` title="${mB(c)}"`;return{html:`<img src="${mB(s)}" alt="${mB(o)}"${l}>`,end:a+1}}function BB(e,t){let n=t+1,r=VB(e,t);if(r===-1||e[r+1]!==`(`)return null;let i=r+2,a=HB(e,r+1);if(a===-1)return null;let o=e.substring(n,r),{url:s,title:c}=UB(e.substring(i,a)),l=c===void 0?``:` title="${mB(c)}"`;return{html:`<a href="${mB(s)}"${l}>${LB(o,!1)}</a>`,end:a+1}}function VB(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`\\`&&r+1<e.length)r++;else if(e[r]===`[`&&n++,e[r]===`]`&&(n--,n===0))return r;return-1}function HB(e,t){let n=0;for(let r=t;r<e.length;r++)if(e[r]===`\\`&&r+1<e.length)r++;else if(e[r]===`(`&&n++,e[r]===`)`&&(n--,n===0))return r;return-1}function UB(e){e=e.trim();let t,n;if(e.startsWith(`<`)){let r=e.indexOf(`>`);r===-1?(t=e.substring(1),n=``):(t=e.substring(1,r),n=e.substring(r+1).trim())}else{let r=e.length;for(let t=0;t<e.length;t++)if(e[t]===`\\`&&t+1<e.length)t++;else if(e[t]===` `||e[t]===` `||e[t]===`
|
|
474
|
+
`){r=t;break}t=e.substring(0,r),n=e.substring(r).trim()}let r;if(n.length>0){let e=n.match(/^"([^"]*)"$|^'([^']*)'$|^\(([^)]*)\)$/);e&&(r=e[1]??e[2]??e[3])}return{url:t,title:r}}function WB(e,t,n,r,i,a){let o=n.length,s=t+o;if(s>=e.length||e[s]===` `||e[s]===` `)return null;let c=s;for(;c<e.length;)if(e[c]===`\\`&&c+1<e.length)c+=2;else{if(e.substring(c,c+o)===n){if(e[c-1]===` `||e[c-1]===` `||o===1&&(c>0&&e[c-1]===n[0]&&!(c>=2&&e[c-2]===`\\`)||c+o<e.length&&e[c+o]===n[0])){c++;continue}let t=e.substring(s,c);if(t.length===0){c++;continue}return{html:r+LB(t,a)+i,end:c+o}}c++}return null}var GB=new Set(`address.article.aside.audio.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.section.source.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`));function KB(e){if(/^ {0,3}<(!--|\?|![A-Za-z]|!\[CDATA\[)/.test(e))return!0;let t=e.match(/^ {0,3}<\/?([a-zA-Z][a-zA-Z0-9-]*)(?:\s|\/?>|$)/);return t?GB.has(t[1].toLowerCase()):!1}function qB(e){let t=e.split(`
|
|
475
|
+
`),n=[],r=0,i=!0;for(;r<t.length;){let e=t[r];if(e.trim()===``){i=!0,r++;continue}let a=e.match(/^ {0,3}(`{3,}|~{3,})(.*)$/);if(a){let e=a[1],o=e[0],s=e.length,c=a[2].trim(),l=[];for(r++;r<t.length;){if(t[r].match(RegExp(`^ {0,3}${o}{${s},}\\s*$`))){r++;break}l.push(t[r]),r++}n.push({type:`codeBlock`,language:c||``,code:l.join(`
|
|
476
|
+
`)}),i=!1;continue}let o=e.match(/^(#{1,6})\s+(.+?)(?:\s+#+\s*|\s*)$/);if(o){n.push({type:`heading`,level:o[1].length,content:o[2]}),i=!1,r++;continue}if(/^(\s{0,3})([-*_])\s*(\2\s*){2,}$/.test(e)){let t=n[n.length-1];if(!i&&e.trim().match(/^-+$/)&&t&&t.type===`paragraph`){let e=t;n[n.length-1]={type:`heading`,level:2,content:e.content},i=!1,r++;continue}n.push({type:`hr`}),i=!1,r++;continue}if(r+1<t.length){let a=t[r+1];if(/^={1,}\s*$/.test(a)&&e.trim().length>0){n.push({type:`heading`,level:1,content:e.trim()}),i=!1,r+=2;continue}}let s=JB(t,r);if(s){n.push(s.token),r=s.nextLine,i=!1;continue}if(/^\s{0,3}>/.test(e)){let e=[];for(;r<t.length&&/^\s{0,3}>/.test(t[r]);)e.push(t[r].replace(/^\s{0,3}>\s?/,``)),r++;for(;r<t.length;){let n=t[r];if(n.trim()===``||/^\s{0,3}>/.test(n)||/^(#{1,6})\s/.test(n)||/^(`{3,}|~{3,})/.test(n)||/^(\s{0,3})([-*_])\s*(\2\s*){2,}$/.test(n)||/^\s*([-*+]|\d+[.)])\s+/.test(n)||/^\s*\|(.+\|)+\s*$/.test(n))break;e.push(n),r++}n.push({type:`blockquote`,content:e.join(`
|
|
477
|
+
`)}),i=!1;continue}let c=e.match(/^(\s*)([-*+]|\d+[.)])(\s+)(\[[ xX]\] )?(.*)$/);if(c){let e=c[1].length,a=c[2],o=c[3],s=c[4],l=c[5],u,d,f;s?(u=`task`,f=s.trim()!==`[ ]`):/^\d+[.)]$/.test(a)?(u=`ordered`,d=parseInt(a,10)):u=`bullet`;let p=e+a.length+o.length+(s?s.length:0),m=e+1,h=e=>{if(e.trim()===``)return!0;let t=e.match(/^\s*/)[0].length;return!!(t>=p||t>=m&&e.match(/^\s*([-*+]|\d+[.)])\s+/))};r++;let g=[];for(;r<t.length;){let e=t[r];if(e.trim()===``){let e=r+1;for(;e<t.length&&t[e].trim()===``;)e++;if(e<t.length&&h(t[e])){g.push(``),r++;continue}break}if(!h(e))break;e.match(/^\s*/)[0].length>=p?g.push(e.substring(p)):g.push(e.substring(m)),r++}let _=g.join(`
|
|
478
|
+
`).replace(/^\n+|\n+$/g,``);n.push({type:`listItem`,listType:u,indent:e,content:l.trim(),start:d,checked:f,childContent:_||void 0}),i=!1;continue}if(KB(e)){let e=[];for(;r<t.length&&t[r].trim()!==``;)e.push(t[r]),r++;n.push({type:`rawHtml`,content:e.join(`
|
|
479
|
+
`)}),i=!1;continue}let l=[e];for(r++;r<t.length;){let e=t[r];if(e.trim()===``||/^(#{1,6})\s/.test(e)||/^(`{3,}|~{3,})/.test(e)||/^\s{0,3}>/.test(e)||/^(\s{0,3})([-*_])\s*(\2\s*){2,}$/.test(e)||/^\s*([-*+]|\d+[.)])\s+/.test(e)||/^\s*\|(.+\|)+\s*$/.test(e)||KB(e)||r+1<t.length&&/^[=-]+\s*$/.test(t[r+1])&&e.trim().length>0)break;l.push(e),r++}n.push({type:`paragraph`,content:l.map(e=>e.replace(/^ {1,3}/,``)).join(`
|
|
480
|
+
`).replace(/[ \t]+$/,``)}),i=!1}return n}function JB(e,t){if(t+1>=e.length)return null;let n=e[t],r=e[t+1];if(!r.includes(`|`)||!/^\s*\|?\s*:?-+:?\s*(\|\s*:?-+:?\s*)*\|?\s*$/.test(r)||!n.includes(`|`))return null;let i=YB(n),a=XB(r),o=[],s=t+2;for(;s<e.length;){let t=e[s];if(!t.includes(`|`))break;o.push(YB(t)),s++}return{token:{type:`table`,headers:i,rows:o,alignments:a},nextLine:s}}function YB(e){let t=e.trim(),n=t.startsWith(`|`)?t.substring(1):t,r=n.endsWith(`|`)?n.substring(0,n.length-1):n,i=[],a=``;for(let e=0;e<r.length;e++)r[e]===`\\`&&e+1<r.length&&r[e+1]===`|`?(a+=`|`,e++):r[e]===`|`?(i.push(a.trim()),a=``):a+=r[e];return i.push(a.trim()),i}function XB(e){return YB(e).map(e=>{let t=e.trim(),n=t.startsWith(`:`),r=t.endsWith(`:`);return n&&r?`center`:r?`right`:n?`left`:null})}function ZB(e){let t=``,n=0;for(;n<e.length;){let r=e[n];switch(r.type){case`heading`:{let e=r;t+=`<h${e.level}>${LB(e.content)}</h${e.level}>`,n++;break}case`paragraph`:t+=`<p>${LB(r.content)}</p>`,n++;break;case`codeBlock`:{let e=r,i=e.language?` data-language="${mB(e.language)}"`:``;t+=`<pre><code${i}>${mB(e.code)}</code></pre>`,n++;break}case`blockquote`:{let e=ZB(qB(r.content));t+=`<blockquote>${e}</blockquote>`,n++;break}case`hr`:t+=`<hr>`,n++;break;case`listItem`:{let r=QB(e,n);t+=r.html,n=r.nextIndex;break}case`table`:t+=eV(r),n++;break;case`rawHtml`:t+=r.content,n++;break;default:n++}}return t}function QB(e,t){let n=``,r=t,i=null;for(;r<e.length&&e[r].type===`listItem`;){let t=e[r],a=$B(t.listType);if(i!==null&&i!==a&&(n+=`</${i===`ordered`?`ol`:`ul`}>`,i=null),i===null){if(a===`ordered`){let e=t.start!==void 0&&t.start!==1?` start="${t.start}"`:``;n+=`<ol${e}>`}else n+=`<ul>`;i=a}if(t.listType===`task`){let e=t.checked?` checked`:``;n+=`<li><input type="checkbox" disabled${e}><p>${LB(t.content)}</p>`}else n+=`<li><p>${LB(t.content)}</p>`;if(t.childContent){let e=qB(t.childContent);n+=ZB(e)}n+=`</li>`,r++}return i!==null&&(n+=`</${i===`ordered`?`ol`:`ul`}>`),{html:n,nextIndex:r}}function $B(e){return e===`ordered`?`ordered`:`bullet`}function eV(e){let t=`<table>`,n=e.headers.every(e=>e.trim()===``),r=e.headers.length;if(!n){t+=`<thead><tr>`;for(let n=0;n<r;n++){let r=e.alignments[n],i=r?` align="${r}"`:``;t+=`<th${i}>${LB(e.headers[n])}</th>`}t+=`</tr></thead>`}if(e.rows.length>0){t+=`<tbody>`;for(let n of e.rows){t+=`<tr>`;for(let i=0;i<r;i++){let r=i<n.length?n[i]:``,a=e.alignments[i],o=a?` align="${a}"`:``;t+=`<td${o}>${LB(r)}</td>`}t+=`</tr>`}t+=`</tbody>`}return t+=`</table>`,t}function tV(e){return ZB(qB(e))}function nV(e){return tV(e)}function rV(e,t){return pB(nV(e),t)}var iV=class{editor;constructor(e){this.editor=e}blocksToHTMLLossy(e=this.editor.document){return JF(this.editor.pmSchema,this.editor).exportBlocks(e,{})}blocksToFullHTML(e=this.editor.document){return Ez(this.editor.pmSchema,this.editor).serializeBlocks(e,{})}tryParseHTMLToBlocks(e){return pB(e,this.editor.pmSchema)}blocksToMarkdownLossy(e=this.editor.document){return KL(e,this.editor.pmSchema,this.editor,{})}tryParseMarkdownToBlocks(e){return rV(e,this.editor.pmSchema)}pasteHTML(e,t=!1){let n=e;if(!t){let t=this.tryParseHTMLToBlocks(e);n=this.blocksToFullHTML(t)}n&&this.editor.prosemirrorView?.pasteHTML(n)}pasteText(e){return this.editor.prosemirrorView?.pasteText(e)}pasteMarkdown(e){let t=nV(e);return this.pasteHTML(t)}};function aV(e){let{block:t}=sj(e),n=e.doc.resolve(t.beforePos).nodeBefore,r=e.doc.resolve(t.afterPos).nodeAfter,i=cj(e.doc,t.beforePos)?.block.node;return{block:sM(t.node,e.doc),prevBlock:n===null?void 0:sM(n,e.doc),nextBlock:r===null?void 0:sM(r,e.doc),parentBlock:i===void 0?void 0:sM(i,e.doc)}}function oV(e,t,n=`start`){let r=typeof t==`string`?t:t.id,i=PF(r,e.doc);if(!i)throw Error(`Block with ID ${r} not found`);e.setSelection(QA(e.doc,ij(i.node,i.posBeforeNode),n))}var sV=[`vscode-editor-data`,`blocknote/html`,`text/markdown`,`text/html`,`text/plain`,`Files`];function cV(e,t){if(!e.startsWith(`.`)||!t.startsWith(`.`))throw Error(`The strings provided are not valid file extensions.`);return e===t}function lV(e,t){let n=e.split(`/`),r=t.split(`/`);if(n.length!==2)throw Error(`The string ${e} is not a valid MIME type.`);if(r.length!==2)throw Error(`The string ${t} is not a valid MIME type.`);return n[1]===`*`||r[1]===`*`?n[0]===r[0]:(n[0]===`*`||r[0]===`*`||n[0]===r[0])&&n[1]===r[1]}function uV(e,t,n,r=`after`){let i;return i=Array.isArray(t.content)&&t.content.length===0?e.updateBlock(t,n).id:e.insertBlocks([n],t,r)[0].id,i}async function dV(e,t){if(!t.uploadFile){console.warn(`Attempted ot insert file, but uploadFile is not set in the BlockNote editor options`);return}let n=`dataTransfer`in e?e.dataTransfer:e.clipboardData;if(n===null)return;let r=null;for(let e of sV)if(n.types.includes(e)){r=e;break}if(r!==`Files`)return;let i=n.items;if(i){e.preventDefault();for(let n=0;n<i.length;n++){let r=`file`;for(let e of Object.values(t.schema.blockSpecs))for(let t of e.implementation.meta.fileBlockAccept||[]){let a=t.startsWith(`.`),o=i[n].getAsFile();if(o&&(!a&&o.type&&lV(i[n].type,t)||a&&cV(`.`+o.name.split(`.`).pop(),t))){r=e.config.type;break}}let a=i[n].getAsFile();if(a){let n={type:r,props:{name:a.name}},i;if(e.type===`paste`){let e=t.getTextCursorPosition().block;i=uV(t,e,n)}else if(e.type===`drop`){let r={left:e.clientX,top:e.clientY},a=t.prosemirrorView.posAtCoords(r);if(!a)return;i=t.transact(e=>{let i=nj(oj(e,a.pos).block.node,e.doc),o=(t.domElement?.querySelector(`[data-id="${i}"]`))?.getBoundingClientRect(),s=t.getBlock(i);if(s)return uV(t,s,n,o&&(o.top+o.bottom)/2>r.top?`before`:`after`)})}else return;if(!i)return;let o=await t.uploadFile(a,i),s=typeof o==`string`?{props:{url:o}}:{...o};t.updateBlock(i,s)}}}}var fV=e=>YD.create({name:`dropFile`,addProseMirrorPlugins(){return[new ut({props:{handleDOMEvents:{drop(t,n){if(!e.isEditable)return;let r=null;for(let e of sV)if(n.dataTransfer.types.includes(e)){r=e;break}return r===null||r===`Files`&&(dV(n,e),!0)}}}})]}}),pV=/(^|\n) {0,3}#{1,6} {1,8}[^\n]{1,64}\r?\n\r?\n\s{0,32}\S/,mV=/(_|__|\*|\*\*|~~|==|\+\+)(?!\s)(?:[^\s](?:.{0,62}[^\s])?|\S)(?=\1)/,hV=/\[[^\]]{1,128}\]\(https?:\/\/\S{1,999}\)/,gV=/(?:\s|^)`(?!\s)(?:[^\s`](?:[^`]{0,46}[^\s`])?|[^\s`])`([^\w]|$)/,_V=/(?:^|\n)\s{0,5}-\s{1}[^\n]+\n\s{0,15}-\s/,vV=/(?:^|\n)\s{0,5}\d+\.\s{1}[^\n]+\n\s{0,15}\d+\.\s/,yV=/\n{2} {0,3}-{2,48}\n{2}/,bV=/(?:\n|^)(```|~~~|\$\$)(?!`|~)[^\s]{0,64} {0,64}[^\n]{0,64}\n[\s\S]{0,9999}?\s*\1 {0,64}(?:\n+|$)/,xV=/(?:\n|^)(?!\s)\w[^\n]{0,64}\r?\n(-|=)\1{0,64}\n\n\s{0,64}(\w|$)/,SV=/(?:^|(\r?\n\r?\n))( {0,3}>[^\n]{1,333}\n){1,999}($|(\r?\n))/,CV=/^\s*\|(.+\|)+\s*$/m,wV=/^\s*\|(\s*[-:]+[-:]\s*\|)+\s*$/m,TV=/^\s*\|(.+\|)+\s*$/m,EV=e=>pV.test(e)||mV.test(e)||hV.test(e)||gV.test(e)||_V.test(e)||vV.test(e)||yV.test(e)||bV.test(e)||xV.test(e)||SV.test(e)||CV.test(e)||wV.test(e)||TV.test(e);function DV(e,t){let{schema:n}=t.state;if(!e.clipboardData)return!1;let r=e.clipboardData.getData(`text/plain`);if(!r||!n.nodes.codeBlock)return!1;let i=e.clipboardData.getData(`vscode-editor-data`),a=(i?JSON.parse(i):void 0)?.mode;return a?(t.pasteHTML(`<pre><code class="language-${a}">${r.replace(/\r\n?/g,`
|
|
481
|
+
`)}</code></pre>`),!0):!1}function OV({event:e,editor:t,prioritizeMarkdownOverHTML:n,plainTextAsMarkdown:r}){if(t.transact(e=>e.selection.$from.parent.type.spec.code&&e.selection.$to.parent.type.spec.code)){let n=e.clipboardData?.getData(`text/plain`);if(n)return t.pasteText(n),!0}let i;for(let t of sV)if(e.clipboardData.types.includes(t)){i=t;break}if(!i)return!0;if(i===`vscode-editor-data`){if(DV(e,t.prosemirrorView))return!0;i=`text/plain`}if(i===`Files`)return dV(e,t),!0;let a=e.clipboardData.getData(i);if(i===`blocknote/html`)return t.pasteHTML(a,!0),!0;if(i===`text/markdown`)return t.pasteMarkdown(a),!0;if(n){let n=e.clipboardData.getData(`text/plain`);if(EV(n))return t.pasteMarkdown(n),!0}return i===`text/html`?(t.pasteHTML(a),!0):r?(t.pasteMarkdown(a),!0):(t.pasteText(a),!0)}var kV=(e,t)=>YD.create({name:`pasteFromClipboard`,addProseMirrorPlugins(){return[new ut({props:{handleDOMEvents:{paste(n,r){if(r.preventDefault(),e.isEditable)return t({event:r,editor:e,defaultPasteHandler:({prioritizeMarkdownOverHTML:t=!0,plainTextAsMarkdown:n=!0}={})=>OV({event:r,editor:e,prioritizeMarkdownOverHTML:t,plainTextAsMarkdown:n})})}}}})]}});function AV(e,t,n){let r=!1,i=e.state.selection instanceof $O;if(!i){let n=e.state.doc.slice(e.state.selection.from,e.state.selection.to,!1).content,i=[];for(let e=0;e<n.childCount;e++)i.push(n.child(e));r=i.find(e=>e.type.isInGroup(`bnBlock`)||e.type.name===`blockGroup`||e.type.spec.group===`blockContent`)===void 0,r&&(t=n)}let a,o=JF(e.state.schema,n);if(i){t.firstChild?.type.name===`table`&&(t=t.firstChild.content);let e=iM(t,n.schema.inlineContentSchema,n.schema.styleSchema);a=`<table>${o.exportInlineContent(e,{})}</table>`}else if(r){let e=aM(t,n.schema.inlineContentSchema,n.schema.styleSchema);a=o.exportInlineContent(e,{})}else{let e=sI(t);a=o.exportBlocks(e,{})}return a}function jV(e,t){`node`in e.state.selection&&e.state.selection.node.type.spec.group===`blockContent`&&t.transact(t=>t.setSelection(new it(t.doc.resolve(e.state.selection.from-1))));let n=e.serializeForClipboard(e.state.selection.content()).dom.innerHTML,r=e.state.selection.content().content,i=AV(e,r,t),{$from:a,$to:o}=e.state.selection,s=a.parent.type.name,c=t.schema.blockSpecs[s];return{clipboardHTML:n,externalHTML:i,markdown:a.sameParent(o)&&c?.implementation.meta.code===!0?e.state.doc.textBetween(a.pos,o.pos):GL(i)}}var MV=e=>{if(e.state.selection.empty)return!0;let t=window.getSelection();if(t&&!t.isCollapsed){let e=t.focusNode;for(;e;){if(e instanceof HTMLElement&&e.getAttribute(`contenteditable`)===`false`)return!0;e=e.parentElement}}return!1},NV=(e,t,n)=>{n.preventDefault(),n.clipboardData.clearData();let{clipboardHTML:r,externalHTML:i,markdown:a}=jV(t,e);n.clipboardData.setData(`blocknote/html`,r),n.clipboardData.setData(`text/html`,i),n.clipboardData.setData(`text/plain`,a)},PV=e=>YD.create({name:`copyToClipboard`,addProseMirrorPlugins(){return[new ut({props:{handleDOMEvents:{copy(t,n){return MV(t)||NV(e,t,n),!0},cut(t,n){return MV(t)||(NV(e,t,n),t.editable&&t.dispatch(t.state.tr.deleteSelection())),!0},dragstart(t,n){if(!(`node`in t.state.selection)||t.state.selection.node.type.spec.group!==`blockContent`)return;e.transact(e=>e.setSelection(new it(e.doc.resolve(t.state.selection.from-1)))),n.preventDefault(),n.dataTransfer.clearData();let{clipboardHTML:r,externalHTML:i,markdown:a}=jV(t,e);return n.dataTransfer.setData(`blocknote/html`,r),n.dataTransfer.setData(`text/html`,i),n.dataTransfer.setData(`text/plain`,a),!0}}}})]}}),FV=YD.create({name:`blockBackgroundColor`,addGlobalAttributes(){return[{types:[`tableCell`,`tableHeader`],attributes:{backgroundColor:BN()}}]}}),IV=mO.create({name:`hardBreak`,inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,priority:10,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,zT(this.options.HTMLAttributes,e)]},renderText(){return`
|
|
482
|
+
`}});function LV(e,t){return e.contentKind===`inline`&&t.contentKind===`inline`?t.content.node.content:void 0}function RV(e,t,n,r){if(!n.children)return!1;let i=LV(n,r);if(i===void 0||i.size>0&&!n.content.node.type.validContent(n.content.node.content.append(i)))return!1;if(t){let a=e.tr;n.children.node.childCount===1&&!r.children?a.delete(n.children.beforePos,n.children.afterPos):a.replaceWith(r.block.beforePos,r.block.afterPos,r.children?.node.content??Vt.empty);let o=n.contentEnd;i.size>0&&a.insert(o,i),a.setSelection(Je.near(a.doc.resolve(o),-1)),t(a.scrollIntoView())}return!0}var zV=e=>({state:t,dispatch:n})=>{let r=aj(t.doc,e);if(!r.hasContent)return!1;let i=lj(t.doc,r.block.beforePos);if(!i){let e=cj(t.doc,r.block.beforePos);return e?.hasContent?RV(t,n,e,r):!1}let a=dj(i);if(!a.hasContent||LV(a,r)===void 0)return!1;if(a.isContentEmpty&&a.content.node.sameMarkup(r.content.node)){if(n){let e=t.tr.delete(r.block.beforePos,r.block.afterPos).replaceWith(a.block.beforePos,a.block.afterPos,r.block.node);e.setSelection(et.create(e.doc,a.contentStart)),n(e.scrollIntoView())}return!0}if(n&&r.children){let e=t.doc.resolve(r.children.childrenStart).blockRange(t.doc.resolve(r.children.childrenEnd));if(!e)throw Error(`Children of a block are expected to form a block range`);t.tr.lift(e,t.doc.resolve(r.block.beforePos).depth)}return n&&n(t.tr.delete(a.contentEnd,r.contentStart)),!0},BV=(e,t,n,r)=>({state:i,dispatch:a})=>!a||VV(i.tr,e,t,n,r),VV=(e,t,n,r,i)=>{let a=rj(e.doc,t),o=ij(a.node,a.posBeforeNode);if(!o.hasContent)return!1;let s=Yj(e),c=[{type:o.block.node.type,attrs:r?{...o.block.node.attrs,id:void 0}:{}},{type:n?o.content.node.type:s.nodes.paragraph,attrs:r?{...o.content.node.attrs}:{}}],l=i&&t!==o.contentStart?o.children:void 0;if(l&&e.delete(l.beforePos,l.afterPos),e.split(t,2,c),l){let t=e.doc.nodeAt(o.block.beforePos);if(!t?.firstChild)throw Error(`Split lost its original block`);e.insert(o.block.beforePos+1+t.firstChild.nodeSize,l.node)}return!0};function HV(e,t,n){let r=hj(e.doc,t.beforePos);e.delete(t.beforePos,t.afterPos);let i=e.mapping.map(n);e.insert(i,t.node);let a=e.steps.length;QR(e,r),e.setSelection(et.near(e.doc.resolve(e.mapping.slice(a).map(i)+1)))}function UV(e,t,n,r=n.block){return e.insertContentAt(n.block.afterPos,n.children?.node.content||Vt.empty).deleteRange({from:r.beforePos,to:r.afterPos}).insertContentAt(t.contentEnd,LV(t,n)??null).setTextSelection(t.contentEnd).scrollIntoView().run()}var WV=YD.create({priority:50,addKeyboardShortcuts(){let e=this.options.editor;function t(t,n){let r=sM(t,n);return e.schema.blockSpecs[r.type].implementation.keyboard(r)}function n(e){return n=>t(n,e).childrenCanOutdent}let r=()=>this.editor.commands.first(({chain:e,commands:r})=>[()=>r.deleteSelection(),()=>r.undoInputRule(),()=>r.command(({state:e})=>{let n=sj(e);if(!n.hasContent||e.selection.from!==n.contentStart)return!1;let i=t(n.block.node,e.doc).resetsTo,a=n.content.node;return a.type.name===i.type&&Object.entries(i.props??{}).every(([e,t])=>a.attrs[e]===t)?!1:r.command(ez(n.block.beforePos,i))}),()=>r.command(({state:t})=>{let n=sj(t);if(!n.hasContent)return!1;let{block:r}=n,i=lj(t.doc,n.block.beforePos);if(i&&!i.hasContent)return!1;let a=t.selection.from===n.contentStart,o=t.selection.empty,s=r.beforePos;return a&&o?e().command(zV(s)).scrollIntoView().run():!1}),()=>r.command(({state:e,tr:t,dispatch:n})=>{let r=sj(e);if(!r.hasContent||e.selection.from!==r.contentStart)return!1;let i=r.block.node.type,a=lj(t.doc,r.block.beforePos),o;if(a){if(a.hasContent)return!1}else{let e=t.doc.resolve(r.block.beforePos);if(!VA(e.parent.type))return!1;let n=t.doc.resolve(e.before()),s=n.nodeBefore;VA(n.parent.type)&&s&&VA(s.type)?a=ij(s,n.pos-s.nodeSize):o=mj(t.doc,n.pos,i)}return a&&(o=fj(t.doc,a,`last-child`,i)?.pos),o!==void 0&&(n&&HV(t,r.block,o),!0)}),()=>r.command(({state:e,tr:t,dispatch:n})=>{let r=sj(e);if(!r.hasContent||!e.selection.empty||r.contentKind!==`inline`||!r.isContentEmpty)return!1;let i=lj(e.doc,r.block.beforePos),a=i?void 0:cj(e.doc,r.block.beforePos),o=i?dj(i):a;return o?.hasContent?(n&&(a?.children?.node.childCount===1&&!r.children?t.delete(a.children.beforePos,a.children.afterPos):t.replaceWith(r.block.beforePos,r.block.afterPos,r.children?.node.content??Vt.empty),t.setSelection(o.contentKind===`none`?it.create(t.doc,o.content.beforePos):et.near(t.doc.resolve(o.contentEnd),-1)),t.scrollIntoView()),!0):!1}),()=>r.command(({state:e,tr:t,dispatch:n})=>{let r=sj(e);if(!r.hasContent)return!1;let i=e.selection.from===r.contentStart,a=e.selection.empty,o=lj(e.doc,r.block.beforePos);if(o&&i&&a){let e=dj(o);if(!e.hasContent)return!1;if(e.contentKind===`none`||e.contentKind===`inline`&&e.isContentEmpty)return n&&(t.delete(r.block.beforePos,r.block.afterPos),t.replaceWith(e.block.beforePos,e.block.afterPos,r.block.node),t.setSelection(et.near(t.doc.resolve(e.block.beforePos+2))),t.scrollIntoView()),!0}return!1}),()=>r.command(({state:e,tr:t})=>{let r=sj(e);return!r.hasContent||!e.selection.empty||e.selection.from!==r.contentStart?!1:Uz(t,t.doc.type.schema.nodes.blockContainer,t.doc.type.schema.nodes.blockGroup,n(t.doc))})]),i=()=>this.editor.commands.first(({chain:e,commands:t})=>[()=>t.deleteSelection(),()=>t.command(({state:t})=>{let n=sj(t);if(!n.hasContent||!n.children)return!1;let{children:r}=n;if(r.node.childCount===0)return!1;let i=t.selection.from===n.contentEnd,a=t.selection.empty,o=aj(t.doc,r.childrenStart);return o.hasContent&&i&&a?UV(e(),n,o,r.node.childCount===1?r:o.block):!1}),()=>t.command(({state:t})=>{let n=sj(t);if(!n.hasContent)return!1;let{block:r}=n,i=uj(t.doc,n.block.beforePos);if(!i||!i.hasContent)return!1;let a=t.selection.from===n.contentEnd,o=t.selection.empty,s=r.afterPos;return a&&o?e().command(zV(s)).scrollIntoView().run():!1}),()=>t.command(({state:e,tr:t,dispatch:n})=>{let r=sj(e);if(!r.hasContent||e.selection.from!==r.contentEnd)return!1;let i=t.doc.resolve(r.block.afterPos);for(;!i.nodeAfter&&i.depth>0&&VA(i.parent.type);)i=t.doc.resolve(i.after());let a=i.nodeAfter;if(!a||i.pos===r.block.afterPos&&!VA(a.type))return!1;let o=pj(ij(a,i.pos));return o?(n&&HV(t,o.block,r.block.afterPos),!0):!1}),()=>t.command(({state:t})=>{let n=sj(t);if(!n.hasContent)return!1;let r=t.selection.from===n.contentEnd,i=t.selection.empty;if(r&&i){let r,i=n;for(;i&&(r=uj(t.doc,i.block.beforePos),!r);)i=cj(t.doc,i.block.beforePos);return!r||!r.hasContent?!1:UV(e(),n,r,r.block)}return!1}),()=>t.command(({state:t})=>{let n=sj(t);if(!n.hasContent)return!1;if(n.isContentEmpty&&n.contentKind===`inline`){let r=uj(t.doc,n.block.beforePos);if(!r||!r.hasContent)return!1;let i=e();return i.command(({tr:e})=>(e.setSelection(QA(e.doc,r,`start`)),!0)),i.deleteRange({from:n.block.beforePos,to:n.block.afterPos}).scrollIntoView().run()}return!1}),()=>t.command(({state:t})=>{let n=sj(t);if(!n.hasContent)return!1;let r=t.selection.from===n.contentEnd,i=t.selection.empty,a=uj(t.doc,n.block.beforePos);return!a||!a.hasContent?!1:a&&r&&i&&(a.contentKind===`none`||a.contentKind===`inline`&&a.isContentEmpty)?e().deleteRange({from:a.block.beforePos,to:a.block.afterPos}).insertContentAt(n.block.afterPos,a.children?.node.content??null).run():!1})]),a=(e=!1)=>this.editor.commands.first(({commands:r,tr:i})=>[()=>r.command(({state:e})=>{let n=sj(e);if(!n.hasContent||!e.selection.empty||!n.isContentEmpty)return!1;let i=t(n.block.node,e.doc);return i.emptyEnterResets?r.command(ez(n.block.beforePos,i.resetsTo)):!1}),()=>r.command(({state:e,tr:r})=>{let i=sj(e);if(!i.hasContent)return!1;let{block:a}=i,{depth:o}=e.doc.resolve(a.beforePos),s=e.selection.$anchor.parentOffset===0,c=e.selection.anchor===e.selection.head,l=i.isContentEmpty;if(s&&c&&l&&o>1){let i=cj(e.doc,a.beforePos);return i&&t(i.block.node,e.doc).emptyChildEnter!==`outdent`?!1:Uz(r,r.doc.type.schema.nodes.blockContainer,r.doc.type.schema.nodes.blockGroup,n(r.doc))}return!1}),()=>r.command(({state:n})=>{let r=sj(n),a=this.options.editor.schema.blockSpecs[r.blockNoteType],o=t(r.block.node,n.doc);if(o.enter===`line-break`||e&&o.shiftEnter===`line-break`){if(a?.config?.content===`plain`)return i.insertText(`
|
|
483
|
+
`,i.selection.head),!0;let e=i.storedMarks||i.selection.$head.marks().filter(e=>this.editor.extensionManager.splittableMarks.includes(e.type.name));return i.insert(i.selection.head,i.doc.type.schema.nodes.hardBreak.create()).ensureMarks(e),!0}return!1}),()=>r.command(({state:e,tr:n,dispatch:r})=>{let i=sj(e);if(!i.hasContent)return!1;let a=e.selection.anchor===e.selection.head,o=i.isContentEmpty;if(!a||!o)return!1;let s=n.doc.resolve(i.block.beforePos);if(n.doc.resolve(i.block.afterPos).nodeAfter!==null)return!1;let c=cj(n.doc,i.block.beforePos);if(!c||t(c.block.node,n.doc).emptyChildEnter!==`exit-at-end`||s.index()===0&&c.hasContent)return!1;let l=mj(n.doc,c.block.afterPos,e.schema.nodes.blockContainer,`after`);return l!==void 0&&(r&&(HV(n,i.block,l),n.scrollIntoView()),!0)}),()=>r.command(({state:e,dispatch:n,tr:r})=>{let i=sj(e);if(!i.hasContent)return!1;let{block:a}=i,o=e.selection.$anchor.parentOffset===0,s=e.selection.anchor===e.selection.head,c=i.isContentEmpty;if(o&&s&&c&&t(i.block.node,e.doc).enter!==`into-children`){let t=a.afterPos,o=t+2;if(n){let n=e.schema.nodes.blockContainer.createAndFill(void 0,[e.schema.nodes.paragraph.createAndFill()||void 0,i.children?.node].filter(e=>e!==void 0));r.insert(t,n).setSelection(new et(r.doc.resolve(o))).scrollIntoView(),i.children&&r.delete(i.children.beforePos,i.children.afterPos)}return!0}return!1}),()=>r.command(({state:e,tr:n,dispatch:r})=>{let i=sj(e);if(!i.hasContent||i.contentKind===`table`||!e.selection.empty||i.isContentEmpty||e.selection.from!==i.contentStart)return!1;if(r){let r=t(i.block.node,e.doc).splitKeepsType?i.content.node.type:e.schema.nodes.paragraph,a=e.schema.nodes.blockContainer.create(void 0,r.create());n.insert(i.block.beforePos,a).scrollIntoView()}return!0}),()=>r.command(({state:e,tr:n,dispatch:r})=>{let i=sj(e);if(!i.hasContent||t(i.block.node,e.doc).enter!==`into-children`||!e.selection.empty||e.selection.from<i.contentStart||e.selection.from>i.contentEnd)return!1;if(r){let t=i.content.node.cut(e.selection.from-i.contentStart),r=e.schema.nodes.blockContainer.create(void 0,e.schema.nodes.paragraph.create(void 0,t.content));n.delete(e.selection.from,i.contentEnd);let a=aj(n.doc,i.block.beforePos).children,o=a?a.childrenStart:n.mapping.map(i.content.afterPos);n.insert(o,a?r:e.schema.nodes.blockGroup.create(void 0,r)).setSelection(new et(n.doc.resolve(o+(a?2:3)))).scrollIntoView()}return!0}),()=>r.command(({state:e,chain:n})=>{let r=sj(e);if(!r.hasContent)return!1;let i=e.selection.$anchor.parentOffset===0;if(!r.isContentEmpty){let a=t(r.block.node,e.doc),o=i||a.splitKeepsType;return n().deleteSelection().command(BV(e.selection.from,o,i,a.splitKeepsChildren)).scrollIntoView().run(),!0}return!1})]),o=this.options;function s(e){let{editor:t,tabBehavior:n}=o;return n!==`prefer-indent`&&(t.getExtension(aF)?.store.state||t.getExtension(UN)?.store.state!==void 0)?!1:e?Gz(t):Vz(t)}return{Backspace:r,Delete:i,Enter:()=>a(),"Shift-Enter":()=>a(!0),Tab:()=>s(!1),"Shift-Tab":()=>s(!0),"Shift-Mod-ArrowUp":()=>(this.options.editor.moveBlocksUp(),!0),"Shift-Mod-ArrowDown":()=>(this.options.editor.moveBlocksDown(),!0),"Mod-z":()=>this.options.editor.undo(),"Mod-y":()=>this.options.editor.redo(),"Shift-Mod-z":()=>this.options.editor.redo(),"Mod-a":()=>{let e=this.editor.view,{doc:t,selection:n,tr:r}=e.state,i=et.between(Je.atStart(t).$from,Je.atEnd(t).$to);if(this.options.selectAllBehavior===`document`)return e.dispatch(r.setSelection(i)),!0;let a,o=sj(e.state);if(o.hasContent){let e=o.contentStart,n=o.contentEnd,r=et.between(t.resolve(e),t.resolve(n));!r.empty&&r.from>=e&&r.to<=n&&(a=r)}let s=!a||n.from<a.from||n.to>a.to||n.from===a.from&&n.to===a.to;return a&&!s?r.setSelection(a).scrollIntoView():r.setSelection(i),e.dispatch(r),!0}}}}),GV=YD.create({name:`textAlignment`,addGlobalAttributes(){return[{types:[`tableCell`,`tableHeader`],attributes:{textAlignment:{default:`left`,parseHTML:e=>e.getAttribute(`data-text-alignment`),renderHTML:e=>e.textAlignment===`left`?{}:{"data-text-alignment":e.textAlignment}}}}]}}),KV=YD.create({name:`blockTextColor`,addGlobalAttributes(){return[{types:[`table`,`tableCell`,`tableHeader`],attributes:{textColor:VN()}}]}}),qV=`[\0- \xA0 -\u2029 ]`,JV=new RegExp(qV),YV=RegExp(`${qV}$`),XV=new RegExp(qV,`g`);function ZV(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function QV(e){return new ut({key:new on(`autolink`),appendTransaction:(t,n,r)=>{let i=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),a=t.some(e=>e.getMeta(`preventAutolink`));if(!i||a)return;let{tr:o}=r;if(_j(gj(n.doc,t)).forEach(({newRange:t})=>{let n=vT(r.doc,t,e=>e.isTextblock),i,a;if(n.length>1)i=n[0],a=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0,` `);else if(n.length){let e=r.doc.textBetween(t.from,t.to,` `,` `);if(!YV.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(JV).filter(Boolean);if(t.length<=0)return;let n=t[t.length-1],s=i.pos+a.lastIndexOf(n);if(!n)return;let c=oL(n,e.defaultProtocol);if(!ZV(c))return;c.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{iE(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||o.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),o.steps.length)return o}})}function $V(e){return new ut({key:new on(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=null;if(r.target instanceof HTMLAnchorElement&&r.target.getAttribute(`data-inline-content-type`)===`link`)i=r.target;else{let t=r.target;if(!t)return!1;let n=e.tiptapEditor.view.dom;i=t.closest(`a[data-inline-content-type="link"]`),i&&!n.contains(i)&&(i=null)}if(!i)return!1;if(e.onClick){if(!e.editor)throw Error(`BlockNoteEditor not found in Link click handler`);return e.onClick(r,e.editor)??!0}let a=eE(t.state,e.type.name),o=i.href??a.href,s=i.target??a.target;return o?(window.open(o,s),!0):!1}}})}function eH(e){return new ut({key:new on(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{shouldAutoLink:i,isValidLink:a}=e,{state:o}=t,{selection:s}=o,{empty:c}=s;if(c)return!1;let l=``;r.content.forEach(e=>{l+=e.textContent});let u=aL(l,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===l);return!l||!u||!a(u.value)||i!==void 0&&!i(u.value)?!1:e.editor.commands.setMark(e.type,{href:u.href})}}})}var tH=`https`,nH=/^(?:(?:http|https|ftp|ftps|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z0-9+.\-]+(?:[^a-z+.\-:]|$))/i;function rH(e){if(!e)return!0;let t=e.replace(XV,``);return nH.test(t)}function iH(e){let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes(`@`))return!0;let r=(e.includes(`@`)?e.split(`@`).pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(r)||!/\./.test(r))}var aH=VD.create({name:`link`,keepOnSplit:!1,exitable:!0,inclusive:!1,addOptions(){return{HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,className:`bn-inline-content-section`,"data-inline-content-type":`link`},editor:void 0,onClick:void 0,isValidLink:rH}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}}}},parseHTML(){let e=this.options.isValidLink;return[{tag:`a[href]`,getAttrs:t=>{let n=t.getAttribute(`href`);return!n||!e(n)?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isValidLink(e.href)?[`a`,zT(e,this.options.HTMLAttributes),0]:[`a`,zT({...e,href:``},this.options.HTMLAttributes),0]},addPasteRules(){let e=this.options.isValidLink;return[gO({find:t=>{let n=[];if(t){let r=aL(t,{defaultProtocol:tH}).filter(t=>t.isLink&&e(t.value));for(let e of r)iH(e.value)&&n.push({text:e.value,data:{href:e.href},index:e.start})}return n},type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[];return e.push(QV({type:this.type,defaultProtocol:tH,validate:this.options.isValidLink,shouldAutoLink:iH})),e.push($V({type:this.type,tiptapEditor:this.editor,editor:this.options.editor,onClick:this.options.onClick})),e.push(eH({editor:this.editor,defaultProtocol:tH,type:this.type,shouldAutoLink:iH,isValidLink:this.options.isValidLink})),e}}),oH=EO(({editor:e,options:t})=>({key:`link`,tiptapExtensions:[aH.configure({HTMLAttributes:t.HTMLAttributes??{},editor:e,onClick:t.onClick,...t.isValidLink?{isValidLink:t.isValidLink}:{}})]})),sH=mO.create({name:`blockGroup`,group:zA,content:`blockGroupChild+`,marks(){return Hj(this.editor)},parseHTML(){return[{tag:`div`,getAttrs:e=>typeof e!=`string`&&e.getAttribute(`data-node-type`)===`blockGroup`&&null}]},renderHTML({HTMLAttributes:e}){let t={...this.options.domAttributes?.blockGroup||{},...e},n=document.createElement(`div`);n.className=Lj(`bn-block-group`,t.class),n.setAttribute(`data-node-type`,`blockGroup`);for(let[e,r]of Object.entries(t))e!==`class`&&n.setAttribute(e,r);return{dom:n,contentDOM:n}}}),cH=mO.create({name:`doc`,topNode:!0,content:`blockGroup`,marks(){return Hj(this.editor)}});function lH(e,t){return[sO.ClipboardTextSerializer,sO.Commands,sO.Editable,sO.FocusEvents,sO.Tabindex,WR,Tj.configure({types:[`blockContainer`,...Object.values(e.schema.blockSpecs).filter(e=>e.config.layoutOnly===!0).map(e=>e.config.type)],setIdAttribute:t.setIdAttribute,isWithinEditor:e.isWithinEditor}),IV,MR,...Object.values(e.schema.styleSpecs).map(t=>t.implementation.mark.configure({editor:e})),KV,FV,GV,YD.create({name:`OverrideEscape`,addKeyboardShortcuts:()=>({Escape:()=>!e.getExtension(uF)?.shown()&&(e.blur(),!0)})}),cH,hz.configure({editor:e,domAttributes:t.domAttributes}),WV.configure({editor:e,tabBehavior:t.tabBehavior,selectAllBehavior:t.selectAllBehavior??`block-first`}),sH.configure({domAttributes:t.domAttributes}),...Object.values(e.schema.inlineContentSpecs).filter(e=>e.config!==`link`&&e.config!==`text`).map(t=>t.implementation.node.configure({editor:e})),...Object.values(e.schema.blockSpecs).flatMap(n=>[...`node`in n.implementation?[n.implementation.node.configure({editor:e,domAttributes:t.domAttributes})]:[]]),PV(e),kV(e,t.pasteHandler||(e=>e.defaultPasteHandler())),fV(e)]}function uH(e,t){let n=[tI(),uI(t),UN(t),aF(t),oH({HTMLAttributes:t.links?.HTMLAttributes??{},onClick:t.links?.onClick,...t.links?.isValidLink?{isValidLink:t.links.isValidLink}:{}}),hI(t),yI(),xI(t),DI({editable:t._tiptapOptions?.editable}),CF(t),nR(t),rR(),iR(),uF(t),dI(),mI(),SI(),...t.trailingBlock===!1?[]:[ER()]];return`table`in e.schema.blockSpecs&&n.push(SR(t)),t.animations!==!1&&n.push(TI()),n}var dH=class{editor;options;disabledExtensions=new Set;extensions=[];abortMap=new Map;extensionFactories=new Map;extensionPlugins=new Map;runtimeExtensions=new Set;blockNoteExtensionDependents=new Map;constructor(e,t){this.editor=e,this.options=t,e.onMount(()=>{for(let e of this.extensions)this.mountExtension(e)}),e.onUnmount(()=>{for(let[e,t]of this.abortMap.entries())this.abortMap.delete(e),t.abort()}),this.disabledExtensions=new Set(t.disableExtensions||[]);for(let e of uH(this.editor,this.options))this.addExtension(e);for(let e of this.options.extensions??[])this.addExtension(e);for(let e of Object.values(this.editor.schema.blockSpecs))for(let t of e.extensions??[])this.addExtension(t)}mountExtension(e){if(!e.mount||this.abortMap.has(e))return;let t=new window.AbortController;this.abortMap.set(e,t);let n=e.mount({dom:this.editor.prosemirrorView.dom,root:this.editor.prosemirrorView.root,signal:t.signal});n&&(t.signal.aborted?n():t.signal.addEventListener(`abort`,n,{once:!0}))}registerExtension(e){this.replaceExtension(void 0,e)}addExtension(e,t){let n;if(n=typeof e==`function`?e({editor:this.editor}):e,!n||this.disabledExtensions.has(n.key))return;if(t){let e=this.blockNoteExtensionDependents.get(n.key);e||(e=new Set,this.blockNoteExtensionDependents.set(n.key,e)),e.add(t)}if(this.extensions.some(e=>e.key===n.key))return;let r=n[TO];if(typeof r==`function`&&this.extensionFactories.set(r,n),this.extensions.push(n),n.blockNoteExtensions)for(let e of n.blockNoteExtensions)this.addExtension(e,n.key);return n}resolveExtensions(e){let t=[];if(typeof e==`function`){let n=this.extensionFactories.get(e);n&&t.push(n)}else if(Array.isArray(e))for(let n of e)t.push(...this.resolveExtensions(n));else if(typeof e==`object`&&`key`in e)t.push(e);else if(typeof e==`string`){let n=this.extensions.find(t=>t.key===e);n&&t.push(n)}return t}unregisterExtension(e){let t=[...new Set(this.resolveExtensions(e))].filter(e=>this.extensions.includes(e));return t.length&&this.replaceExtension(t,[]),Array.isArray(e)?t:t[0]}replaceExtension(e,t,n){let r=this.resolveExtensions(e);e&&!r.length&&console.warn(`No extensions found to unregister`,e);let i=!1,a=new Set,o=new Set;for(let t of r)this.extensions=this.extensions.filter(e=>e!==t),this.extensionFactories.forEach((e,n)=>{e===t&&this.extensionFactories.delete(n)}),this.abortMap.get(t)?.abort(),this.abortMap.delete(t),this.extensionPlugins.get(t)?.forEach(e=>{a.add(e);let t=e.spec?.key,n=typeof t==`object`&&t?t.key:t;typeof n==`string`&&o.add(n)}),this.extensionPlugins.delete(t),this.runtimeExtensions.delete(t),t.tiptapExtensions&&!i&&(i=!0,console.warn(`Extension ${t.key} has tiptap extensions, but they will not be removed. Please separate the extension into multiple extensions if you want to remove them, or re-initialize the editor.`,e));let s=[].concat(t).filter(Boolean).map(e=>this.addExtension(e)).filter(Boolean),c=[];for(let e of s)this.runtimeExtensions.add(e),e?.tiptapExtensions&&console.warn(`Extension ${e.key} has tiptap extensions, but these cannot be changed after initializing the editor. Please separate the extension into multiple extensions if you want to add them, or re-initialize the editor.`,e),e?.inputRules?.length&&console.warn(`Extension ${e.key} has input rules, but these cannot be changed after initializing the editor. Please separate the extension into multiple extensions if you want to add them, or re-initialize the editor.`,e),this.getProsemirrorPluginsFromExtension(e).plugins.forEach(e=>{c.push(e)});if((a.size||o.size||c.length||n?.resetPluginStateFor.length)&&this.updatePlugins(e=>[...e.filter(e=>{if(a.has(e))return!1;if(o.size){let t=e.spec?.key,n=typeof t==`object`&&t?t.key:t;if(typeof n==`string`&&o.has(n))return!1}return!0}),...c],n?.resetPluginStateFor),!this.editor.headless)for(let e of s)this.mountExtension(e)}updatePlugins(e,t){let n=this.editor.prosemirrorState,r=new Set(t),i=(r.size?n.reconfigure({plugins:n.plugins.filter(e=>!e.spec.key||!r.has(e.spec.key))}):n).reconfigure({plugins:e(n.plugins.slice())});this.editor.prosemirrorView.updateState(i)}getTiptapExtensions(){let e=lH(this.editor,this.options).filter(e=>!this.disabledExtensions.has(e.name)),t=cN(this.extensions.map(e=>{let t=this.blockNoteExtensionDependents.get(e.key);return t?.size?{key:e.key,runsBefore:[...e.runsBefore??[],...t]}:e})),n=new Map;for(let r of this.extensions){r.tiptapExtensions&&e.push(...r.tiptapExtensions);let i=t(r.key),{plugins:a,inputRules:o}=this.getProsemirrorPluginsFromExtension(r);a.length&&e.push(YD.create({name:r.key,priority:i,addProseMirrorPlugins:()=>this.runtimeExtensions.has(r)?[]:this.extensionPlugins.get(r)??[]})),o.length&&(n.has(i)||n.set(i,[]),n.get(i).push(...o))}e.push(YD.create({name:`blocknote-runtime-extensions`,priority:-1/0,addProseMirrorPlugins:()=>this.extensions.filter(e=>this.runtimeExtensions.has(e)).flatMap(e=>this.extensionPlugins.get(e)??[])})),e.push(YD.create({name:`blocknote-input-rules`,addProseMirrorPlugins(){let e=[];Array.from(n.keys()).sort((e,t)=>e-t).reverse().forEach(t=>{e.push(...n.get(t))});let t=AR({rules:e});return[t,new ut({props:{handleKeyDown(e,n){if(n.key!==`Enter`||n.shiftKey||n.ctrlKey||n.metaKey||n.altKey)return!1;let{$cursor:r}=e.state.selection;return r?!!t.props.handleTextInput?.call(t,e,r.pos,r.pos,`
|
|
484
|
+
`,()=>e.state.tr.insertText(`
|
|
485
|
+
`,r.pos,r.pos)):!1}}})]}}));for(let t of this.options._tiptapOptions?.extensions??[])e.push(t);return e}getProsemirrorPluginsFromExtension(e){let t=[...e.prosemirrorPlugins??[]],n=[];if(!e.prosemirrorPlugins?.length&&!Object.keys(e.keyboardShortcuts||{}).length&&!e.inputRules?.length)return{plugins:t,inputRules:n};if(this.extensionPlugins.set(e,t),e.inputRules?.length&&n.push(...e.inputRules.map(e=>new DR(e.find,(t,n,r,i)=>{let a=e.replace({match:n,range:{from:r,to:i},editor:this.editor});if(a){let e=t.tr,n=sj(e);return!n.hasContent||this.editor.schema.blockSchema[n.blockNoteType]?.content!==`inline`?null:(e.deleteRange(r,i),tz(e,n.block.beforePos,a),oV(e,nj(n.block.node,e.doc),`start`),e)}return null},{undoable:!0}))),Object.keys(e.keyboardShortcuts||{}).length){let n,r=Tt(Object.fromEntries(Object.entries(e.keyboardShortcuts).map(([e,t])=>[e,()=>{if(!n)throw Error(`Keyboard shortcut called outside handleKeyDown`);return t({editor:this.editor,event:n})}])));t.push(new ut({props:{handleKeyDown:(e,t)=>{let i=n;n=t;try{return r(e,t)}finally{n=i}}}}))}return{plugins:t,inputRules:n}}getExtensions(){return new Map(this.extensions.map(e=>[e.key,e]))}getExtension(e){if(typeof e==`string`)return this.extensions.find(t=>t.key===e)||void 0;if(typeof e==`function`)return this.extensionFactories.get(e)||void 0;throw Error(`Invalid extension type: ${typeof e}`)}hasExtension(e){return typeof e==`string`?this.extensions.some(t=>t.key===e):typeof e==`object`&&`key`in e?this.extensions.some(t=>t.key===e.key):typeof e==`function`&&this.extensionFactories.has(e)}};function fH(e,t){let{$from:n,$to:r}=t;if(n.pos>n.start()&&n.pos<e.content.size){let t=e.textBetween(n.pos,n.pos+1);if(/^[\w\p{P}]$/u.test(t)){let t=e.textBetween(n.start(),n.pos).match(/[\w\p{P}]+$/u);t&&(n=e.resolve(n.pos-t[0].length))}}if(r.pos<r.end()&&r.pos>0){let t=e.textBetween(r.pos-1,r.pos);if(/^[\w\p{P}]$/u.test(t)){let t=e.textBetween(r.pos,r.end()).match(/^[\w\p{P}]+/u);t&&(r=e.resolve(r.pos+t[0].length))}}return{$from:n,$to:r,from:n.pos,to:r.pos}}function pH(e){if(e.selection.empty||`node`in e.selection)return;let t=e.doc.resolve(rj(e.doc,e.selection.from).posBeforeNode),n=e.doc.resolve(rj(e.doc,e.selection.to).posBeforeNode),r=(n,r)=>{let i=t.posAtIndex(n,r),a=e.doc.resolve(i).nodeAfter;if(!a)throw Error(`Error getting selection - node not found at position ${i}`);return sM(a,e.doc)},i=[],a=t.sharedDepth(n.pos),o=t.index(a),s=n.index(a);if(t.depth>a){i.push(sM(t.nodeAfter,e.doc));for(let e=t.depth;e>a;e--)if(t.node(e).type.isInGroup(`childContainer`)){let n=t.index(e)+1,a=t.node(e).childCount;for(let t=n;t<a;t++)i.push(r(t,e))}}else i.push(r(o,a));for(let e=o+1;e<=s;e++)i.push(r(e,a));if(i.length===0)throw Error(`Error getting selection - selection doesn't span any blocks (${e.selection})`);return{blocks:i}}function mH(e,t,n){let r=typeof t==`string`?t:t.id,i=typeof n==`string`?n:n.id;if(r===i)throw Error(`Attempting to set selection with the same anchor and head blocks (id ${r})`);let a=PF(r,e.doc);if(!a)throw Error(`Block with ID ${r} not found`);let o=PF(i,e.doc);if(!o)throw Error(`Block with ID ${i} not found`);let s=ij(a.node,a.posBeforeNode),c=ij(o.node,o.posBeforeNode),l=ZA(s,`start`);if(l===null)throw Error(`Attempting to set selection anchor in block without content (id ${r})`);let u=ZA(c,`end`);if(u===null)throw Error(`Attempting to set selection head in block without content (id ${i})`);e.setSelection(et.create(e.doc,l,u))}function hH(e,t=!1){let n=t?fH(e.doc,e.selection):e.selection,r=n.$from,i=n.$to;for(;i.parentOffset>=i.parent.nodeSize-2&&i.depth>0;)i=e.doc.resolve(i.pos+1);for(;i.parentOffset===0&&i.depth>0;)i=e.doc.resolve(i.pos-1);for(;r.parentOffset===0&&r.depth>0;)r=e.doc.resolve(r.pos-1);for(;r.parentOffset>=r.parent.nodeSize-2&&r.depth>0;)r=e.doc.resolve(r.pos+1);let a=lM(e.doc.slice(r.pos,i.pos,!0));return{_meta:{startPos:r.pos,endPos:i.pos},...a}}var gH=class{editor;constructor(e){this.editor=e}getSelection(){return this.editor.transact(e=>pH(e))}getSelectionCutBlocks(e=!1){return this.editor.transact(t=>hH(t,e))}setSelection(e,t){return this.editor.transact(n=>mH(n,e,t))}getTextCursorPosition(){return this.editor.transact(e=>aV(e))}setTextCursorPosition(e,t=`start`){return this.editor.transact(n=>oV(n,e,t))}getSelectionBoundingBox(){if(!this.editor.prosemirrorView)return;let{selection:e}=this.editor.prosemirrorState,{ranges:t}=e,n=Math.min(...t.map(e=>e.$from.pos)),r=Math.max(...t.map(e=>e.$to.pos));if(pE(e)){let e=this.editor.prosemirrorView.nodeDOM(n);if(e)return e.getBoundingClientRect()}return yE(this.editor.prosemirrorView,n,r).toJSON()}},_H=class{editor;constructor(e){this.editor=e}activeTransaction=null;can(e){try{return this.isInCan=!0,e()}finally{this.isInCan=!1}}isInCan=!1;exec(e){if(this.activeTransaction)throw Error("`exec` should not be called within a `transact` call, move the `exec` call outside of the `transact` call");if(this.isInCan)return this.canExec(e);let t=this.prosemirrorState,n=this.prosemirrorView;return e(t,e=>this.prosemirrorView.dispatch(e),n)}canExec(e){if(this.activeTransaction)throw Error("`canExec` should not be called within a `transact` call, move the `canExec` call outside of the `transact` call");let t=this.prosemirrorState,n=this.prosemirrorView;return e(t,void 0,n)}transact(e){if(this.activeTransaction)return e(this.activeTransaction);try{this.activeTransaction=this.editor._tiptapEditor.state.tr;let t=e(this.activeTransaction),n=this.activeTransaction;return this.activeTransaction=null,n&&(n.docChanged||n.selectionSet||n.scrolledIntoView||n.storedMarksSet||!n.isGeneric)&&this.prosemirrorView.dispatch(n),t}finally{this.activeTransaction=null}}get prosemirrorState(){if(this.activeTransaction)throw Error("`prosemirrorState` should not be called within a `transact` call, move the `prosemirrorState` call outside of the `transact` call or use `editor.transact` to read the current editor state");return this.editor._tiptapEditor.state}get prosemirrorView(){return this.editor._tiptapEditor.view}isFocused(){return this.prosemirrorView?.hasFocus()||!1}focus(){this.prosemirrorView?.focus()}get isEditable(){if(!this.editor._tiptapEditor){if(!this.editor.headless)throw Error(`no editor, but also not headless?`);return!1}if(this.editor.headless){let e=this.editor.getExtension(DI)?.store.state;if(e)return e.isEditable&&e.enabledSet.size===0}return this.editor._tiptapEditor.isEditable===void 0||this.editor._tiptapEditor.isEditable}set isEditable(e){if(this.editor._tiptapEditor)this.editor.getExtension(DI).setEditable(e);else if(!this.editor.headless)throw Error(`no editor, but also not headless?`)}undo(){let e=this.editor.getExtension(`yUndo`);if(e)return this.exec(e.undoCommand);let t=this.editor.getExtension(`history`);if(t)return this.exec(t.undoCommand);throw Error(`No undo plugin found`)}redo(){let e=this.editor.getExtension(`yUndo`);if(e)return this.exec(e.redoCommand);let t=this.editor.getExtension(`history`);if(t)return this.exec(t.redoCommand);throw Error(`No redo plugin found`)}};function vH(e,t,n,r={updateSelection:!0}){let{from:i,to:a}=typeof t==`number`?{from:t,to:t}:{from:t.from,to:t.to},o=!0,s=!0,c=``;if(n.forEach(e=>{e.check(),o&&e.isText&&e.marks.length===0?c+=e.text:o=!1,s=s?e.isBlock:!1}),i===a&&s){let{parent:t}=e.doc.resolve(i);t.isTextblock&&!t.type.spec.code&&!t.childCount&&(--i,a+=1)}return o?e.insertText(c,i,a):e.replaceWith(i,a,n),r.updateSelection&&Lw(e,e.steps.length-1,-1),!0}var yH=class{editor;constructor(e){this.editor=e}insertInlineContent(e,{updateSelection:t=!1}={}){let n=jN(e,this.editor.pmSchema);this.editor.transact(e=>{vH(e,{from:e.selection.from,to:e.selection.to},n,{updateSelection:t})})}getActiveStyles(){return this.editor.transact(e=>{let t={},n=e.selection.empty&&e.storedMarks||e.selection.$to.marks();for(let e of n){let n=this.editor.schema.styleSchema[e.type.name];n?n.propSchema===`boolean`?t[n.type]=!0:t[n.type]=e.attrs.stringValue:e.type.name!==`link`&&!e.type.spec.blocknoteIgnore&&console.warn(`mark not found in styleschema`,e.type.name)}return t})}addStyles(e){for(let[t,n]of Object.entries(e)){let e=this.editor.schema.styleSchema[t];if(!e)throw Error(`style ${t} not found in styleSchema`);if(e.propSchema===`boolean`)this.editor._tiptapEditor.commands.setMark(t);else if(e.propSchema===`string`)this.editor._tiptapEditor.commands.setMark(t,{stringValue:n});else throw new Pj(e.propSchema)}}removeStyles(e){for(let t of Object.keys(e))this.editor._tiptapEditor.commands.unsetMark(t)}toggleStyles(e){for(let[t,n]of Object.entries(e)){let e=this.editor.schema.styleSchema[t];if(!e)throw Error(`style ${t} not found in styleSchema`);if(e.propSchema===`boolean`)this.editor._tiptapEditor.commands.toggleMark(t);else if(e.propSchema===`string`)this.editor._tiptapEditor.commands.toggleMark(t,{stringValue:n});else throw new Pj(e.propSchema)}}getSelectedText(){return this.editor.transact(e=>e.doc.textBetween(e.selection.from,e.selection.to))}getLinkMarkAtPos(e){return this.editor.transact(t=>{let n=this.editor.pmSchema.marks.link,r=yw(t.doc.resolve(e),n);if(!r)return;let i=t.doc.nodeAt(r.from)?.marks.find(e=>e.type===n);if(i)return{href:i.attrs.href,from:r.from,to:r.to,text:t.doc.textBetween(r.from,r.to)}})}getSelectedLinkUrl(){return this.editor.transact(e=>(e.doc.nodeAt(e.selection.from)?.marks.find(e=>e.type.name===`link`))?.attrs.href)}createLink(e,t){e!==``&&this.editor.transact(n=>{let{from:r,to:i}=n.selection,a=this.editor.pmSchema.mark(`link`,{href:e});t?n.insertText(t,r,i).addMark(r,r+t.length,a):n.addMark(r,i,a)})}editLink(e,t,n=this.editor.transact(e=>e.selection.anchor)){this.editor.transact(r=>{let{from:i,to:a}=this.getLinkMarkAtPos(n)||{from:r.selection.from,to:r.selection.to},o=this.editor.pmSchema.mark(`link`,{href:e});t!==r.doc.textBetween(i,a)&&r.insertText(t,i,a),r.addMark(i,i+t.length,o)}),this.editor.prosemirrorView.focus()}deleteLink(e=this.editor.transact(e=>e.selection.anchor)){this.editor.transact(t=>{let{from:n,to:r}=this.getLinkMarkAtPos(e)||{from:t.selection.from,to:t.selection.to};t.removeMark(n,r,this.editor.pmSchema.marks.link).setMeta(`preventAutolink`,!0)}),this.editor.prosemirrorView.focus()}};function bH(e){return yT(e.state.selection.$from,e=>e.type.name===`tableCell`||e.type.name===`tableHeader`)!==void 0}function xH(e,t){let n=t.nodes.hardBreak,r=Vt.empty;return e.forEach(e=>{e.isTextblock&&e.childCount>0?(r=r.append(e.content),r=r.addToEnd(n.create())):e.isText?r=r.addToEnd(e):e.isBlock&&e.childCount>0&&(r=r.append(xH(e.content,t)),r=r.addToEnd(n.create()))}),r.lastChild?.type===n&&(r=r.cut(0,r.size-1)),r}function SH(e,t){let n=[];return e.forEach((e,r,i)=>{i!==t&&n.push(e)}),Vt.from(n)}function CH(e,t){let n=[];for(let r=0;r<e.childCount;r++)if(e.child(r).type.name===`tableRow`){if(n.length>0&&n[n.length-1].type.name===`table`){let t=n[n.length-1],i=t.copy(t.content.addToEnd(e.child(r)));n[n.length-1]=i}else{let i=t.nodes.table.createChecked(void 0,e.child(r));n.push(i)}}else n.push(e.child(r));return e=Vt.from(n),e}function wH(e,t){let n=Vt.from(e.content);n=CH(n,t.state.schema);let r=TH(n,t,e);if(r)return r;let i=t.state.schema.nodes.tableParagraph;if(i&&bH(t)){let e=!1;if(n.descendants(t=>{t.type.isInGroup(`tableContent`)&&(e=!0)}),!e&&!i.validContent(n))return new xt(xH(n,t.state.schema),0,0)}if(!EH(n,t))return new xt(n,e.openStart,e.openEnd);for(let e=0;e<n.childCount;e++)if(n.child(e).type.spec.group===`blockContent`){let r=[n.child(e)];if(e+1<n.childCount&&n.child(e+1).type.name===`blockGroup`){let t=n.child(e+1).child(0).child(0);(t.type.name===`bulletListItem`||t.type.name===`numberedListItem`||t.type.name===`checkListItem`)&&(r.push(n.child(e+1)),n=SH(n,e+1))}let i=t.state.schema.nodes.blockContainer.createChecked(void 0,r);n=n.replaceChild(e,i)}return new xt(n,e.openStart,e.openEnd)}function TH(e,t,n){if(bH(t)||t.dragging)return null;let r=sj(t.state);if(!r.hasContent||r.content.node.type.name===`paragraph`||r.contentKind!==`inline`||!r.isContentEmpty)return null;let i=r.content.node,a=e.firstChild,o=a?.firstChild,s=o?.firstChild;if(a?.type.name!==`blockGroup`||o?.type.name!==`blockContainer`||s?.type.name!==`paragraph`)return null;let c=i.type.create(i.attrs,s.content),l=o.copy(o.content.replaceChild(0,c)),u=a.copy(a.content.replaceChild(0,l));return new xt(e.replaceChild(0,u),n.openStart,n.openEnd)}function EH(e,t){let n=e.childCount===1,r=e.firstChild?.type.spec.content===`inline*`,i=e.firstChild?.type.spec.content===`tableRow+`;if(n){if(r)return!1;if(i){let e=sj(t.state);if(e.hasContent)return e.contentKind!==`table`}}return!0}var DH={enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!1},OH=class e extends Dz{options;pmSchema;_tiptapEditor;elementRenderer=null;blockCache=new WeakMap;dictionary;schema;blockImplementations;inlineContentImplementations;styleImplementations;uploadFile;onUploadStartCallbacks=[];onUploadEndCallbacks=[];resolveFileUrl;settings;static create(t){return new e(t??{})}constructor(e){super(),this.options=e,this.dictionary=e.dictionary||uy,this.settings={tables:{splitCells:e?.tables?.splitCells??!1,cellBackgroundColor:e?.tables?.cellBackgroundColor??!1,cellTextColor:e?.tables?.cellTextColor??!1,headers:e?.tables?.headers??!1}};let t={defaultStyles:!0,schema:e.schema||xF.create(),...e,placeholders:{...this.dictionary.placeholders,...e.placeholders}};if(this.schema=t.schema,this.blockImplementations=t.schema.blockSpecs,this.inlineContentImplementations=t.schema.inlineContentSpecs,this.styleImplementations=t.schema.styleSpecs,t.uploadFile){let e=t.uploadFile;this.uploadFile=async(t,n)=>{this.onUploadStartCallbacks.forEach(e=>e.apply(this,[n]));try{return await e(t,n)}finally{this.onUploadEndCallbacks.forEach(e=>e.apply(this,[n]))}}}this.resolveFileUrl=t.resolveFileUrl,this._eventManager=new $z(this),this._extensionManager=new dH(this,t);let n=this._extensionManager.getTiptapExtensions(),r={...DH,...t._tiptapOptions,editable:!0,element:null,autofocus:t.autofocus??!1,extensions:n,editorProps:{scrollMargin:{top:72,bottom:72,left:0,right:0},...t._tiptapOptions?.editorProps,attributes:{tabIndex:`0`,...t._tiptapOptions?.editorProps?.attributes,...t.domAttributes?.editor,class:Lj(`bn-editor`,t.defaultStyles?`bn-default-styles`:``,t.domAttributes?.editor?.class||``)},transformPasted:wH}};try{let e=t.initialContent||[{type:`paragraph`,id:Tj.options.generateID()}];if(!Array.isArray(e)||e.length===0)throw Error(`initialContent must be a non-empty array of blocks, received: `+JSON.stringify(e));let n=YT(r.extensions);n.cached.blockNoteEditor=this;let i=mT({type:`doc`,content:[{type:`blockGroup`,content:e.map(e=>FN(e,n,this.schema.styleSchema).toJSON())}]},n,r.parseOptions);i.check(),this._tiptapEditor=new fO({...r,content:i.toJSON()}),this.pmSchema=this._tiptapEditor.schema}catch(e){throw Error("Error creating document from blocks passed as `initialContent`",{cause:e})}this.pmSchema.cached.blockNoteEditor=this,this._tiptapEditor.on(`mount`,()=>{this.headless=!1}),this._tiptapEditor.on(`unmount`,()=>{this.headless=!0}),this._tiptapEditor.on(`destroy`,()=>{this.emit(`destroy`)}),this._blockManager=new Qz(this),this._exportManager=new iV(this),this._selectionManager=new gH(this),this._stateManager=new _H(this),this._styleManager=new yH(this),this.emit(`create`)}_blockManager;_eventManager;_exportManager;_extensionManager;_selectionManager;_stateManager;_styleManager;get extensions(){return this._extensionManager.getExtensions()}exec(e){return this._stateManager.exec(e)}canExec(e){return this._stateManager.canExec(e)}transact(e){return this._stateManager.transact(e)}unregisterExtension(e){return this._extensionManager.unregisterExtension(e)}registerExtension=(...e)=>this._extensionManager.registerExtension(...e);replaceExtension=(...e)=>this._extensionManager.replaceExtension(...e);getExtension=(e=>this._extensionManager.getExtension(e));mount=e=>{this._tiptapEditor.mount({mount:e}),this._tiptapEditor.isEditorContentInitialized=!0};unmount=()=>{this._tiptapEditor.isEditorContentInitialized=!1,this._tiptapEditor.unmount()};get prosemirrorState(){return this._stateManager.prosemirrorState}get prosemirrorView(){return this._stateManager.prosemirrorView}get domElement(){if(!this.headless)return this.prosemirrorView?.dom}_portalElements=new Map;registerPortalElement=e=>{this._portalElements.set(e,(this._portalElements.get(e)??0)+1)};unregisterPortalElement=e=>{let t=this._portalElements.get(e);t!==void 0&&(t<=1?this._portalElements.delete(e):this._portalElements.set(e,t-1))};isWithinEditor=e=>{if(this.domElement?.parentElement?.contains(e))return!0;for(let t of this._portalElements.keys())if(t.contains(e))return!0;return!1};isFocused(e){if(this.headless)return!1;let t=this.prosemirrorView?.hasFocus()||!1;if(!e?.includeEditorUI)return t;let n=typeof document<`u`?document.activeElement:null;return t||!!n&&this.isWithinEditor(n)}headless=!0;focus(){this.headless||this.prosemirrorView.focus()}blur(){this.headless||this.domElement?.blur()}onUploadStart(e){return this.onUploadStartCallbacks.push(e),()=>{let t=this.onUploadStartCallbacks.indexOf(e);t>-1&&this.onUploadStartCallbacks.splice(t,1)}}onUploadEnd(e){return this.onUploadEndCallbacks.push(e),()=>{let t=this.onUploadEndCallbacks.indexOf(e);t>-1&&this.onUploadEndCallbacks.splice(t,1)}}get topLevelBlocks(){return this.document}get document(){return this._blockManager.document}getBlock(e){return this._blockManager.getBlock(e)}getPrevBlock(e){return this._blockManager.getPrevBlock(e)}getNextBlock(e){return this._blockManager.getNextBlock(e)}getParentBlock(e){return this._blockManager.getParentBlock(e)}forEachBlock(e,t=!1){this._blockManager.forEachBlock(e,t)}onEditorContentChange(e){this._tiptapEditor.on(`update`,e)}onEditorSelectionChange(e){this._tiptapEditor.on(`selectionUpdate`,e)}onBeforeChange(e){return this._extensionManager.getExtension(tI).subscribe(e)}getTextCursorPosition(){return this._selectionManager.getTextCursorPosition()}setTextCursorPosition(e,t=`start`){return this._selectionManager.setTextCursorPosition(e,t)}getSelection(){return this._selectionManager.getSelection()}getSelectionCutBlocks(e=!1){return this._selectionManager.getSelectionCutBlocks(e)}setSelection(e,t){return this._selectionManager.setSelection(e,t)}get isEditable(){return this._stateManager.isEditable}set isEditable(e){this._stateManager.isEditable=e}insertBlocks(e,t,n=`before`){return this._blockManager.insertBlocks(e,t,n)}updateBlock(e,t){return this._blockManager.updateBlock(e,t)}removeBlocks(e){return this._blockManager.removeBlocks(e)}replaceBlocks(e,t){return this._blockManager.replaceBlocks(e,t)}undo(){return this._stateManager.undo()}redo(){return this._stateManager.redo()}insertInlineContent(e,{updateSelection:t=!1}={}){this._styleManager.insertInlineContent(e,{updateSelection:t})}getActiveStyles(){return this._styleManager.getActiveStyles()}addStyles(e){this._styleManager.addStyles(e)}removeStyles(e){this._styleManager.removeStyles(e)}toggleStyles(e){this._styleManager.toggleStyles(e)}getSelectedText(){return this._styleManager.getSelectedText()}getSelectedLinkUrl(){return this._styleManager.getSelectedLinkUrl()}createLink(e,t){this._styleManager.createLink(e,t)}getLinkMarkAtPos(e){return this._styleManager.getLinkMarkAtPos(e)}editLink(e,t,n){this._styleManager.editLink(e,t,n)}deleteLink(e){this._styleManager.deleteLink(e)}canNestBlock(){return this._blockManager.canNestBlock()}nestBlock(){this._blockManager.nestBlock()}canUnnestBlock(){return this._blockManager.canUnnestBlock()}unnestBlock(){this._blockManager.unnestBlock()}moveBlocksUp(e){return this._blockManager.moveBlocksUp(e)}moveBlocksDown(e){return this._blockManager.moveBlocksDown(e)}blocksToHTMLLossy(e=this.document){return this._exportManager.blocksToHTMLLossy(e)}blocksToFullHTML(e=this.document){return this._exportManager.blocksToFullHTML(e)}tryParseHTMLToBlocks(e){return this._exportManager.tryParseHTMLToBlocks(e)}blocksToMarkdownLossy(e=this.document){return this._exportManager.blocksToMarkdownLossy(e)}tryParseMarkdownToBlocks(e){return this._exportManager.tryParseMarkdownToBlocks(e)}onChange(e,t){return this._eventManager.onChange(e,t)}onSelectionChange(e,t){return this._eventManager.onSelectionChange(e,t)}onFocusChange(e,t){return this._eventManager.onFocusChange(e,t)}onMount(e){return this._eventManager.onMount(e)}onUnmount(e){return this._eventManager.onUnmount(e)}getSelectionBoundingBox(){return this._selectionManager.getSelectionBoundingBox()}get isEmpty(){let e=this.document;return e.length===0||e.length===1&&e[0].type===`paragraph`&&e[0].content.length===0}pasteHTML(e,t=!1){this._exportManager.pasteHTML(e,t)}pasteText(e){return this._exportManager.pasteText(e)}pasteMarkdown(e){return this._exportManager.pasteMarkdown(e)}};function kH(e,t){let n=(t?.editor??jy()).getExtension(e);if(!n)throw Error(`Extension not found`,{cause:{plugin:e}});return n}function AH(e,t){let{store:n}=kH(e,t);if(!n)throw Error(`Store not found on plugin`,{cause:{plugin:e}});return My(n,t?.selector)}function jH(e){let t=new DOMRect,n=`getBoundingClientRect`in e?()=>e.getBoundingClientRect():()=>e.element.getBoundingClientRect();return()=>e.element&&(e.cacheMountedBoundingClientRect??!0)?(e.element.isConnected&&(t=n()),t):n()}function MH(e,t){return e?t?(n,r,i)=>{let a=e(n,r,i),o=t(n,r,i);return()=>{a?.(),o?.()}}:e:t}var NH=e=>{let t=jy(),n=Uy(),{whileElementsMounted:r,middleware:i,...a}=e.useFloatingOptions??{},{refs:o,floatingStyles:s,context:l,middlewareData:u}=AC({whileElementsMounted:MH(c,e.useFloatingOptions?.whileElementsMounted),middleware:[...i??[],m()],...a}),{isMounted:d,styles:f}=LC(l,e.useTransitionStylesProps),{status:p}=IC(l,e.useTransitionStatusProps),{getFloatingProps:h}=MC([OC(l,e.useDismissProps),GS(l,{enabled:!1,...e.useHoverProps})]),g=(0,R.useRef)(``),_=(0,R.useRef)(null),v=SS([_,o.setFloating]);if((0,R.useEffect)(()=>{if(e.reference){let n=`element`in e.reference?e.reference.element:void 0;n!==void 0&&(e.focusManagerProps?.disabled||!t.isWithinEditor(n))&&o.setReference(n);let r=`getClientRects`in e.reference?e.reference.getClientRects:n?()=>n.getClientRects():void 0;o.setPositionReference({getBoundingClientRect:jH(e.reference),...r?{getClientRects:r}:{},contextElement:n})}},[e.reference,o,e.focusManagerProps?.disabled,t]),(0,R.useEffect)(()=>{(p===`initial`||p===`open`)&&_.current&&Xy(_.current)&&(g.current=_.current.innerHTML)},[p,e.reference,e.children]),!d||!n)return!1;let y={...e.elementProps,style:{display:`flex`,...e.elementProps?.style,zIndex:`calc(var(--bn-ui-base-z-index, 0) + ${e.elementProps?.style?.zIndex||0})`,...s,...f,...u.hide?.referenceHidden?{visibility:`hidden`}:{}},...h()};return p===`close`?(0,z.jsx)(pC,{root:n,children:(0,z.jsx)(`div`,{ref:v,...y,dangerouslySetInnerHTML:{__html:g.current}})}):e.focusManagerProps?.disabled?(0,z.jsx)(pC,{root:n,children:(0,z.jsx)(`div`,{ref:v,...y,children:(0,z.jsx)(Zy,{children:e.children})})}):(0,z.jsx)(pC,{root:n,children:(0,z.jsx)(wC,{...e.focusManagerProps,context:l,children:(0,z.jsx)(`div`,{ref:v,...y,children:(0,z.jsx)(Zy,{children:e.children})})})})},PH=e=>{let{position:t,children:n,...r}=e,{from:i,to:a}=t||{},o=jy(),s=Ry(),c=(0,R.useMemo)(()=>{if(i!==void 0&&a!==void 0)return{element:s?.firstElementChild||void 0,getBoundingClientRect:()=>yE(o.prosemirrorView,i,a??i)}},[o,s,i,a]);return(0,z.jsx)(NH,{reference:c,...r,children:t!==void 0&&n})},FH=(e={},t=[])=>(0,R.useMemo)(()=>{let t=OH.create(e);return window&&(window.ProseMirror=t._tiptapEditor),t},t),IH=e=>{let[t,n]=(0,R.useState)(!1),r=Ly({editor:e.editor,selector:({editor:e})=>e.isEmpty}),i=$y(),a=(0,R.useCallback)(()=>{n(!0)},[]),o=(0,R.useCallback)(()=>{n(!1)},[]);return(0,R.useEffect)(()=>{e.editable&&e.autoFocus&&e.editor.focus()},[e.autoFocus,e.editable,e.editor]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(i.Comments.Editor,{autoFocus:e.autoFocus,className:`bn-comment-editor`,editor:e.editor,onFocus:a,onBlur:o,editable:e.editable}),e.actions&&(0,z.jsx)(`div`,{className:`bn-comment-actions-wrapper`,children:e.actions({isFocused:t,isEmpty:r})})]})},{textColor:Eee,backgroundColor:Dee,...LH}=vF,RH=xF.create({blockSpecs:{paragraph:LP()},styleSpecs:LH});function zH(e){return!e.hasUnsavedContent||!e.confirmBeforeDiscard||(e.confirm??(e=>window.confirm(e)))(e.message)}var BH=EO(({editor:e,options:{submitOnEnter:t=!0,onSubmit:n}})=>{let r=!1;async function i(){if(!(!e.isEditable||e.isEmpty||r)){r=!0;try{await n(e)}finally{r=!1}}}function a({event:t}){let n=e.prosemirrorView;return!n.editable||n.composing||t.isComposing||t.keyCode===229?!1:(t.repeat||i(),!0)}return{key:`commentEditorSubmit`,submit:i,runsBefore:[`default`],keyboardShortcuts:{"Mod-Enter":a,...t?{Enter:a}:{}}}}),VH=VD.create({name:`comment`,excludes:``,inclusive:!1,keepOnSplit:!0,group:_O,addAttributes(){return{orphan:{parseHTML:e=>!!e.getAttribute(`data-orphan`),renderHTML:e=>e.orphan?{"data-orphan":`true`}:{},default:!1},threadId:{parseHTML:e=>e.getAttribute(`data-bn-thread-id`),renderHTML:e=>({"data-bn-thread-id":e.threadId}),default:``}}},renderHTML({HTMLAttributes:e}){return[`span`,zT(e,{class:`bn-thread-mark`})]},parseHTML(){return[{tag:`span.bn-thread-mark`}]},extendMarkSchema(e){return e.name===`comment`?{blocknoteIgnore:!0}:{}}}),HH=new on(`blocknote-comments`);function UH(e,t){let n=new Map;return e.descendants((e,r)=>{e.marks.forEach(i=>{if(i.type.name===t){let t=i.attrs.threadId;if(!t)return;let a=r,o=a+e.nodeSize,s=n.get(t)??{from:1/0,to:0};n.set(t,{from:Math.min(a,s.from),to:Math.max(o,s.to)})}})}),n}var WH=EO(({editor:e,options:{schema:t,threadStore:n,resolveUsers:r,confirmBeforeDiscard:i=!0,submitOnEnter:a=!0}})=>{if(!r)throw Error(`resolveUsers is required to be defined when using comments`);if(!n)throw Error(`threadStore is required to be defined when using comments`);let o=TF(r),s=VH.name,c=DO({pendingComment:!1,selectedThreadId:void 0,threadPositions:new Map},{onUpdate(t,n){t.selectedThreadId!==n.selectedThreadId&&e.transact(e=>e.setMeta(HH,!0))}}),l=t=>{e.transact(e=>{e.doc.descendants((n,r)=>{n.marks.forEach(i=>{if(i.type.name===s){let a=i.type,o=i.attrs.threadId,s=t.get(o),l=!!(!s||s.resolved||s.deletedAt);if(l!==i.attrs.orphan){let t=Math.max(r,0),s=Math.min(r+n.nodeSize,e.doc.content.size-1,e.doc.content.size-1);e.removeMark(t,s,i),e.addMark(t,s,a.create({...i.attrs,orphan:l})),l&&c.state.selectedThreadId===o&&c.setState(e=>({...e,selectedThreadId:void 0}))}}})})})};return{key:`comments`,store:c,userStore:o,runsBefore:[`link`],tiptapExtensions:[VH],prosemirrorPlugins:[new ut({key:HH,state:{init(){return{decorations:Rt.empty}},apply(e,t){let n=e.getMeta(HH);if(!e.docChanged&&!n)return t;let r=e.docChanged?UH(e.doc,s):c.state.threadPositions;(r.size>0||c.state.threadPositions.size>0)&&c.setState(e=>({...e,threadPositions:r}));let i=[];if(c.state.selectedThreadId){let e=r.get(c.state.selectedThreadId);e&&i.push(Wt.inline(e.from,e.to,{class:`bn-thread-mark-selected`}))}return{decorations:Rt.create(e.doc,i)}}},props:{decorations(e){return HH.getState(e)?.decorations??Rt.empty},handleClick:(e,t,n)=>{if(n.button!==0)return!1;let r=e.state.doc.nodeAt(t);if(!r)return c.setState(e=>({...e,selectedThreadId:void 0})),!1;let i=r.marks.find(e=>e.type.name===s&&e.attrs.orphan!==!0);if(!i)return c.state.selectedThreadId!==void 0&&c.setState(e=>({...e,selectedThreadId:void 0})),!1;let a=i.attrs.threadId;return a!==c.state.selectedThreadId&&(c.setState(e=>({...e,selectedThreadId:a})),!0)}}})],threadStore:n,mount(){let t=n.subscribe(l);l(n.getThreads());let r=e.onSelectionChange(()=>{c.state.pendingComment&&c.setState(e=>({...e,pendingComment:!1}))});return()=>{t(),r()}},selectThread(t,n=!0){if(c.state.selectedThreadId!==t&&(c.setState(e=>({...e,pendingComment:!1,selectedThreadId:t})),t&&n)){let n=c.state.threadPositions.get(t);if(!n)return;(e.prosemirrorView?.domAtPos(n.from).node)?.scrollIntoView({behavior:`smooth`,block:`center`})}},startPendingComment(){c.setState(e=>({...e,selectedThreadId:void 0,pendingComment:!0})),e.domElement?.focus(),e.getExtension(CF)?.showSelection(!0,`comments`)},stopPendingComment(){c.setState(e=>({...e,selectedThreadId:void 0,pendingComment:!1})),e.getExtension(CF)?.showSelection(!1,`comments`)},async createThread(t){let r=await n.createThread(t);n.addThreadToDocument?await n.addThreadToDocument({threadId:r.id,selection:e.transact(e=>e.selection),editor:e}):e._tiptapEditor.commands.setMark(s,{orphan:!1,threadId:r.id})},commentEditorSchema:t,confirmBeforeDiscard:i,submitOnEnter:a}}),GH=n((e=>{var t=y();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),KH=n(((e,t)=>{t.exports=GH()})),qH=n((e=>{var t=y(),n=KH();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),JH=n(((e,t)=>{t.exports=qH()})),YH=KH(),XH=JH();function ZH(e,t){if(e.isDestroyed||t.defaultPrevented||!t.cancelable||!e.isEditable||t.inputType!==`insertParagraph`&&t.inputType!==`insertLineBreak`||!Dw()&&!Ew())return;let n=e.view,r=n.root,i=(r.getSelection?.call(r)??n.dom.ownerDocument.getSelection())?.anchorNode,a=(i?.nodeType===1?i:i?.parentElement)?.closest(`[data-node-view-content-react]`);if(!a||!n.dom.contains(a))return;let o=n.input.lastKeyCode;o===13&&(n.input.lastKeyCode=null),n.domObserver.forceFlush(),n.domObserver.flush();let s=new KeyboardEvent(`keydown`,{key:`Enter`,code:`Enter`,keyCode:13,shiftKey:t.inputType===`insertLineBreak`,bubbles:!0,cancelable:!0});n.someProp(`handleKeyDown`,e=>e(n,s))?(t.preventDefault(),n.input.lastIOSEnter=0,clearTimeout(n.input.lastIOSEnterFallbackTimeout)):o===13&&(n.input.lastKeyCode=o)}var QH=new on(`reactMobileEnter`),$H=(...e)=>t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})},eU=({contentComponent:e})=>{let t=(0,YH.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,z.jsx)(z.Fragment,{children:Object.values(t)})};function tU(){let e=new Set,t={},n=!1,r=()=>{!n&&e.size&&(n=!0,queueMicrotask(()=>{n=!1,e.forEach(e=>e())}))};return{subscribe(t){return e.add(t),()=>{e.delete(t)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(e,n){t={...t,[e]:Oy.createPortal(n.reactElement,n.element,e)},r()},removeRenderer(e){let n={...t};delete n[e],t=n,r()}}}var nU=class extends R.Component{constructor(e){super(e),this.editorContentRef=R.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.view.dom?.parentNode){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t}),e.contentComponent=tU(),e.createNodeViews(),e.registerPlugin(new ut({key:QH,props:{handleDOMEvents:{beforeinput:(t,n)=>ZH(e,n)}}})),e.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){let e=this.props.editor;if(e){e.isEditorContentInitialized=!1,e.isDestroyed||(e.unregisterPlugin(QH),e.view.setProps({nodeViews:{}})),e.contentComponent=null;try{if(!e.view.dom?.parentNode)return;let t=document.createElement(`div`);t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t})}catch{}}}render(){let{editor:e,innerRef:t,...n}=this.props;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{ref:$H(t,this.editorContentRef),...n}),e?.contentComponent&&(0,z.jsx)(eU,{contentComponent:e.contentComponent})]})}},rU=(0,R.forwardRef)((e,t)=>{let n=R.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return R.createElement(nU,{key:n,innerRef:t,...e})}),iU=R.memo(rU);typeof window>`u`||typeof window<`u`&&window.next;var aU=(0,R.createContext)({editor:null});aU.Consumer;var oU=(0,R.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),sU=()=>(0,R.useContext)(oU),cU=R.forwardRef((e,t)=>{let{onDragStart:n}=sU(),r=e.as||`div`;return(0,z.jsx)(r,{...e,ref:t,"data-node-view-wrapper":``,onDragStart:n,style:{whiteSpace:`normal`,...e.style}})});function lU(e){return!!(typeof e==`function`&&e.prototype&&e.prototype.isReactComponent)}function uU(e){return!(typeof e!=`object`||!e.$$typeof||e.$$typeof.toString()!==`Symbol(react.forward_ref)`&&e.$$typeof.description!==`react.forward_ref`)}function dU(e){return!(typeof e!=`object`||!e.$$typeof||e.$$typeof.toString()!==`Symbol(react.memo)`&&e.$$typeof.description!==`react.memo`)}function fU(e){if(lU(e)||uU(e))return!0;if(dU(e)){let t=e.type;if(t)return lU(t)||uU(t)}return!1}function pU(){try{if(R.version)return parseInt(R.version.split(`.`)[0],10)>=19}catch{}return!1}var mU=class{constructor(e,{editor:t,props:n={},as:r=`div`,className:i=``}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(r),this.element.classList.add(`react-renderer`),i&&this.element.classList.add(...i.split(` `)),this.editor.isEditorContentInitialized?(0,Oy.flushSync)(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var e;if(this.destroyed)return;let t=this.component,n=this.props,r=this.editor,i=pU(),a=fU(t),o={...n};o.ref&&!(i||a)&&delete o.ref,!o.ref&&(i||a)&&(o.ref=e=>{this.ref=e}),this.reactElement=(0,z.jsx)(t,{...o}),r==null||(e=r.contentComponent)==null||e.setRenderer(this.id,this)}updateProps(e={}){if(this.destroyed)return;let t=!1,n=Object.keys(e);for(let r=0;r<n.length;r+=1){let i=n[r];if(e[i]!==this.props[i]){t=!0;break}}t&&(this.props={...this.props,...e},this.render())}destroy(){var e;this.destroyed=!0;let t=this.editor;t==null||(e=t.contentComponent)==null||e.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}};R.createContext({markViewContentRef:()=>{}});function hU(e){var t;let n=e.getRootNode(),r=typeof n.getSelection==`function`?n.getSelection():(t=e.ownerDocument)==null||(t=t.defaultView)==null?void 0:t.getSelection();if(!r||r.rangeCount===0)return null;let{anchorNode:i,anchorOffset:a,focusNode:o,focusOffset:s}=r;return!i||!o||!e.contains(i)||!e.contains(o)?null:()=>{try{r.setBaseAndExtent(i,a,o,s)}catch{}}}function gU(e,t,n){return e.node(n)===t.node(n)&&e.before(n)===t.before(n)}function _U(e){if(!Cw(e))return[];let{$from:t,$to:n}=e,r=[],i=Math.min(t.depth,n.depth);for(let e=1;e<=i&&gU(t,n,e);e+=1)r.push(t.before(e));return r}var vU=class{constructor(e){this.views=new WeakMap,this.viewCount=0,this.insideViews=new Set,this.syncQueued=!1,this.scheduleSync=()=>{this.syncQueued||(this.syncQueued=!0,queueMicrotask(()=>{this.syncQueued=!1,this.sync()}))},this.handleTransaction=()=>this.scheduleSync(),this.editor=e}register(e){this.viewCount===0&&this.editor.on(`transaction`,this.handleTransaction),this.views.set(e.dom,e),this.viewCount+=1,this.scheduleSync()}unregister(e){this.views.delete(e.dom),--this.viewCount,this.insideViews.delete(e),this.viewCount===0&&this.editor.off(`transaction`,this.handleTransaction)}sync(){if(this.viewCount===0||this.editor.isDestroyed)return;let e=this.findInsideViews();this.updateViews(this.insideViews,e,!1),this.updateViews(e,this.insideViews,!0),this.insideViews=e}updateViews(e,t,n){for(let r of e)t.has(r)||r.setSelectionInside(n)}findInsideViews(){let e=new Set;for(let t of _U(this.editor.state.selection)){let n=this.editor.view.nodeDOM(t),r=n?this.views.get(n):void 0;r&&e.add(r)}return e}},yU=new WeakMap;function bU(e){let t=yU.get(e);return t||(t=new vU(e),yU.set(e,t)),t}var xU=class extends hO{constructor(e,t,n){if(super(e,t,n),this.nodeSelected=!1,this.handlePositionUpdate=()=>{let e=this.getPos();typeof e==`number`&&e!==this.currentPos&&(this.currentPos=e,this.renderer.updateProps({getPos:()=>this.getPos()}),typeof this.options.attrs==`function`&&this.updateElementAttributes())},this.cachedExtensionWithSyncedStorage=null,!this.node.isLeaf){this.contentDOMElement=this.options.contentDOMElementTag?document.createElement(this.options.contentDOMElementTag):document.createElement(this.node.isInline?`span`:`div`),this.contentDOMElement.dataset.nodeViewContentReact=``,this.contentDOMElement.dataset.nodeViewWrapper=``,this.contentDOMElement.style.whiteSpace=`inherit`;let e=this.dom.querySelector(`[data-node-view-content]`);e?e.appendChild(this.contentDOMElement):this.dom.appendChild(this.contentDOMElement)}this.options.trackNodeViewPosition&&this.editor.on(`update`,this.handlePositionUpdate)}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){let e=this.editor,t=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(t,{get(n,r,i){return r===`storage`?e.storage[t.name]??{}:Reflect.get(n,r,i)}})}return this.cachedExtensionWithSyncedStorage}mount(){let e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,selectionInside:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>this.deleteNode(),ref:(0,R.createRef)()};if(!this.component.displayName){let e=e=>e.charAt(0).toUpperCase()+e.substring(1);this.component.displayName=e(this.extension.name)}let t={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:e=>{if(e&&this.contentDOMElement&&e.firstChild!==this.contentDOMElement){e.hasAttribute(`data-node-view-wrapper`)&&e.removeAttribute(`data-node-view-wrapper`);let t=hU(this.contentDOMElement);e.appendChild(this.contentDOMElement),t?.()}}},n=this.component,r=(0,R.memo)(e=>(0,z.jsx)(oU.Provider,{value:t,children:(0,R.createElement)(n,e)}));r.displayName=`ReactNodeView`;let i=this.node.isInline?`span`:`div`;this.options.as&&(i=this.options.as);let{className:a=``}=this.options;this.renderer=new mU(r,{editor:this.editor,props:e,as:i,className:`node-${this.node.type.name} ${a}`.trim()}),bU(this.editor).register(this),this.updateElementAttributes(),this.currentPos=this.getPos()}get dom(){if(this.renderer.element.firstElementChild&&!this.renderer.element.firstElementChild?.hasAttribute(`data-node-view-wrapper`))throw Error(`Please use the NodeViewWrapper component for your node view.`);return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}update(e,t,n){let r=e=>{this.renderer.updateProps(e),typeof this.options.attrs==`function`&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if(typeof this.options.update==`function`){let i=this.node,a=this.decorations,o=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=n,this.currentPos=this.getPos(),this.options.update({oldNode:i,oldDecorations:a,newNode:e,newDecorations:t,oldInnerDecorations:o,innerDecorations:n,updateProps:()=>r({node:e,decorations:t,innerDecorations:n,extension:this.extensionWithSyncedStorage})})}if(e===this.node)return this.node=e,this.decorations=t,this.innerDecorations=n,!0;let i=this.getPos();this.node=e,this.decorations=t,this.innerDecorations=n,this.currentPos=i;let a={node:e,decorations:t,innerDecorations:n,extension:this.extensionWithSyncedStorage};return this.options.trackNodeViewPosition&&(a.getPos=()=>this.getPos()),r(a),!0}selectNode(){this.nodeSelected=!0,this.updateSelectedState(!0)}deselectNode(){this.nodeSelected=!1,this.updateSelectedState(this.options.selectedOnTextSelection===!0&&this.isTextSelectionInside())}setSelectionInside(e){let t=this.nodeSelected||this.options.selectedOnTextSelection===!0&&e;this.renderer.updateProps({selectionInside:e,selected:t}),this.renderer.element.classList.toggle(`ProseMirror-selectednode`,t)}updateSelectedState(e){this.renderer.updateProps({selected:e}),this.renderer.element.classList.toggle(`ProseMirror-selectednode`,e)}isTextSelectionInside(){let e=this.getPos();return typeof e==`number`&&_U(this.editor.state.selection).includes(e)}destroy(){this.renderer.destroy(),bU(this.editor).unregister(this),this.options.trackNodeViewPosition&&this.editor.off(`update`,this.handlePositionUpdate),this.contentDOMElement=null}updateElementAttributes(){if(this.options.attrs){let e={};if(typeof this.options.attrs==`function`){let t=this.editor.extensionManager.attributes,n=BT(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:n})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}};function SU(e,t){return n=>n.editor.contentComponent?new xU(e,n,t):{dom:document.createElement(`span`),contentDOM:null,update:()=>!1,destroy:()=>{},selectNode:()=>{},deselectNode:()=>{},stopEvent:()=>!1,ignoreMutation:()=>!0}}var CU=(0,R.createContext)({get editor(){throw Error(`useTiptap must be used within a <Tiptap> provider`)}});CU.displayName=`TiptapContext`;var wU=()=>(0,R.useContext)(CU);function TU({children:e,...t}){let n=`editor`in t?t.editor:t.instance;if(!n)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let r=(0,R.useMemo)(()=>({editor:n}),[n]),i=(0,R.useMemo)(()=>({editor:n}),[n]);return(0,z.jsx)(aU.Provider,{value:i,children:(0,z.jsx)(CU.Provider,{value:r,children:e})})}TU.displayName=`Tiptap`;function EU({...e}){let{editor:t}=wU();return(0,z.jsx)(iU,{editor:t,...e})}EU.displayName=`Tiptap.Content`,Object.assign(TU,{Content:EU});var DU=pn(),OU=Object.defineProperty,kU=(e,t)=>{let n={};for(var r in e)OU(n,r,{get:e[r],enumerable:!0});return t||OU(n,Symbol.toStringTag,{value:`Module`}),n},AU=e=>{let{blockId:t,children:n,...r}=e,i=jy(),a=(0,R.useMemo)(()=>i.transact(e=>{if(!t)return;let n=PF(t,e.doc);if(!n)return;let r=RF(i.prosemirrorView,n.posBeforeNode,t);return r?{element:r}:void 0}),[i,t]);return(0,z.jsx)(NH,{reference:a,...r,children:t!==void 0&&n})},jU=e=>{let t=$y(),n=eb(),r=jy(),i=r.getBlock(e.blockId),[a,o]=(0,R.useState)(``),s=(0,R.useCallback)(e=>{o(e.currentTarget.value)},[]),c=(0,R.useCallback)(()=>{r.getBlock(e.blockId)&&r.updateBlock(e.blockId,{props:{name:wee(a),url:a}})},[r,e.blockId,a]);return i?(0,z.jsx)(t.FilePanel.TabPanel,{className:`bn-tab-panel`,children:(0,z.jsx)(t.Generic.Form.Root,{onSubmit:c,submitButton:(0,z.jsx)(t.FilePanel.Button,{className:`bn-button`,type:`submit`,"data-test":`embed-input-button`,children:n.file_panel.embed.embed_button[i.type]||n.file_panel.embed.embed_button.file}),children:(0,z.jsx)(t.FilePanel.TextInput,{className:`bn-text-input`,placeholder:n.file_panel.embed.url_placeholder,value:a,onChange:s,"data-test":`embed-input`})})}):null},MU=e=>{let t=$y(),n=eb(),{setLoading:r}=e,i=jy(),a=i.getBlock(e.blockId),[o,s]=(0,R.useState)(!1);(0,R.useEffect)(()=>{o&&setTimeout(()=>{s(!1)},3e3)},[o]);let c=(0,R.useCallback)(t=>{if(t===null)return;async function n(t){if(r(!0),i.uploadFile!==void 0)try{let n=await i.uploadFile(t,e.blockId);if(!i.getBlock(e.blockId))return;typeof n==`string`&&(n={props:{name:t.name,url:n}}),i.updateBlock(e.blockId,n)}catch{s(!0)}finally{r(!1)}}n(t)},[e.blockId,i,r]);if(!a)return null;let l=i.schema.blockSpecs[a.type],u=l.implementation.meta.fileBlockAccept?.length?l.implementation.meta.fileBlockAccept.join(`,`):`*/*`;return(0,z.jsxs)(t.FilePanel.TabPanel,{className:`bn-tab-panel`,children:[(0,z.jsx)(t.FilePanel.FileInput,{className:`bn-file-input`,"data-test":`upload-input`,accept:u,placeholder:n.file_panel.upload.file_placeholder[a.type]||n.file_panel.upload.file_placeholder.file,value:null,onChange:c}),o&&(0,z.jsx)(`div`,{className:`bn-error-text`,children:n.file_panel.upload.upload_error})]})},NU=e=>{let t=$y(),n=eb(),r=jy(),[i,a]=(0,R.useState)(!1),o=e.tabs??[...r.uploadFile===void 0?[]:[{name:n.file_panel.upload.title,tabPanel:(0,z.jsx)(MU,{blockId:e.blockId,setLoading:a})}],{name:n.file_panel.embed.title,tabPanel:(0,z.jsx)(jU,{blockId:e.blockId})}],[s,c]=(0,R.useState)(e.defaultOpenTab||o[0].name);return(0,z.jsx)(t.FilePanel.Root,{className:`bn-panel`,defaultOpenTab:s,openTab:s,setOpenTab:c,tabs:o,loading:i})},PU=e=>{let t=jy(),n=kH(UN),r=AH(UN),a=(0,R.useMemo)(()=>({...e.floatingUIOptions,useFloatingOptions:{open:!!r,onOpenChange:(e,r,i)=>{e||n.closeMenu(),i===`escape-key`&&t.focus()},middleware:[h(10),i()],...e.floatingUIOptions?.useFloatingOptions},focusManagerProps:{disabled:!0,...e.floatingUIOptions?.focusManagerProps},elementProps:{style:{zIndex:90},...e.floatingUIOptions?.elementProps}}),[r,t,n,e.floatingUIOptions]),o=e.filePanel||NU;return(0,z.jsx)(Gy,{target:e.portalElement,children:(0,z.jsx)(AU,{blockId:r,...a,children:r&&(0,z.jsx)(o,{blockId:r})})})},FU={bold:tx,italic:Ub,underline:jb,strike:Pb,code:ox};function IU(e,t){return e in t.schema.styleSchema&&t.schema.styleSchema[e].type===e&&t.schema.styleSchema[e].propSchema===`boolean`}var LU=e=>{let t=eb(),n=$y(),r=jy(),i=Ly({editor:r,selector:({editor:t})=>{if(t.isEditable&&IU(e.basicTextStyle,t)&&(t.getSelection()?.blocks||[t.getTextCursorPosition().block]).find(e=>e.content!==void 0))return e.basicTextStyle in t.getActiveStyles()?{active:!0}:{active:!1}}}),a=(0,R.useCallback)(e=>{r.focus(),r.toggleStyles({[e]:!0})},[r]);if(i===void 0)return null;let o=FU[e.basicTextStyle];return(0,z.jsx)(n.FormattingToolbar.Button,{className:`bn-button`,"data-test":e.basicTextStyle,onClick:()=>a(e.basicTextStyle),isSelected:i.active,label:t.formatting_toolbar[e.basicTextStyle].tooltip,mainTooltip:t.formatting_toolbar[e.basicTextStyle].tooltip,secondaryTooltip:Ij(t.formatting_toolbar[e.basicTextStyle].secondary_tooltip,t.generic.ctrl_shortcut),icon:(0,z.jsx)(o,{})})},RU=(0,R.createContext)(`desktop`);function zU(){return(0,R.useContext)(RU)}var BU=e=>{let t=e.textColor||`default`,n=e.backgroundColor||`default`,r=e.size||16,i=(0,R.useMemo)(()=>({pointerEvents:`none`,fontSize:(r*.75).toString()+`px`,height:r.toString()+`px`,lineHeight:r.toString()+`px`,textAlign:`center`,width:r.toString()+`px`}),[r]);return(0,z.jsx)(`div`,{className:`bn-color-icon`,"data-background-color":n,"data-text-color":t,style:i,children:`A`})},VU=[`default`,`gray`,`brown`,`red`,`orange`,`yellow`,`green`,`blue`,`purple`,`pink`],HU=e=>{let t=$y(),n=eb();return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(()=>e.text?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(t.Generic.Menu.Label,{children:n.color_picker.text_title}),VU.map(r=>(0,z.jsx)(t.Generic.Menu.Item,{onClick:()=>{e.onClick?.(),e.text.setColor(r)},"data-test":`text-color-`+r,icon:(0,z.jsx)(BU,{textColor:r,size:e.iconSize}),checked:e.text.color===r,children:n.color_picker.colors[r]},`text-color-`+r))]}):null,{}),(0,z.jsx)(()=>e.background?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(t.Generic.Menu.Label,{children:n.color_picker.background_title}),VU.map(r=>(0,z.jsx)(t.Generic.Menu.Item,{onClick:()=>{e.onClick?.(),e.background.setColor(r)},"data-test":`background-color-`+r,icon:(0,z.jsx)(BU,{backgroundColor:r,size:e.iconSize}),checked:e.background.color===r,children:n.color_picker.colors[r]},`background-color-`+r))]}):null,{})]})};function UU(e,t){return`${e}Color`in t.schema.styleSchema&&t.schema.styleSchema[`${e}Color`].type===`${e}Color`&&t.schema.styleSchema[`${e}Color`].propSchema===`string`}var WU=()=>{let e=$y(),t=eb(),n=zU(),r=Uy(),i=jy(),a=UU(`text`,i),o=UU(`background`,i),s=Ly({editor:i,selector:({editor:e})=>{if(!e.isEditable||!(e.getSelection()?.blocks||[e.getTextCursorPosition().block]).find(e=>e.content!==void 0))return;let t=UU(`text`,e),n=UU(`background`,e);if(t||n)return{textColor:t?e.getActiveStyles().textColor||`default`:void 0,backgroundColor:n?e.getActiveStyles().backgroundColor||`default`:void 0}}}),c=(0,R.useCallback)(e=>{if(!a)throw Error(`Tried to set text color, but style does not exist in editor schema.`);e==="default"?i.removeStyles({textColor:e}):i.addStyles({textColor:e}),i.focus()},[i,a]),l=(0,R.useCallback)(e=>{if(!o)throw Error(`Tried to set background color, but style does not exist in editor schema.`);e==="default"?i.removeStyles({backgroundColor:e}):i.addStyles({backgroundColor:e}),i.focus()},[o,i]);return s===void 0?null:(0,z.jsxs)(e.Generic.Menu.Root,{portalElement:r,preventFocusOnOpen:n===`mobile`,children:[(0,z.jsx)(e.Generic.Menu.Trigger,{children:(0,z.jsx)(e.FormattingToolbar.Button,{className:`bn-button`,"data-test":`colors`,label:t.formatting_toolbar.colors.tooltip,mainTooltip:t.formatting_toolbar.colors.tooltip,icon:(0,z.jsx)(BU,{textColor:s.textColor,backgroundColor:s.backgroundColor,size:20})})}),(0,z.jsx)(e.Generic.Menu.Dropdown,{className:`bn-menu-dropdown bn-color-picker-dropdown`,children:(0,z.jsx)(HU,{text:s.textColor?{color:s.textColor,setColor:c}:void 0,background:s.backgroundColor?{color:s.backgroundColor,setColor:l}:void 0})})]})};function GU(){let e=eb();return(0,z.jsx)(`button`,{className:`bn-screen-reader-only-submit`,tabIndex:-1,type:`submit`,children:e.generic.form_submit})}var KU=e=>{for(let t of gI)if(e.startsWith(t))return e;return`${_I}://${e}`},qU=e=>{let t=$y(),n=eb(),{editLink:r}=kH(hI),{url:i,text:a,showTextField:o}=e,[s,c]=(0,R.useState)(i),[l,u]=(0,R.useState)(a);(0,R.useEffect)(()=>{c(i),u(a)},[a,i]);let d=(0,R.useCallback)(e=>c(e.currentTarget.value),[]),f=(0,R.useCallback)(e=>u(e.currentTarget.value),[]),p=(0,R.useCallback)(()=>{r(KU(s),l,e.range.from),e.setToolbarOpen?.(!1),e.setToolbarPositionFrozen?.(!1)},[r,s,l,e]);return(0,z.jsxs)(t.Generic.Form.Root,{onSubmit:p,submitButton:(0,z.jsx)(GU,{}),children:[(0,z.jsx)(t.Generic.Form.TextInput,{className:`bn-text-input`,name:`url`,icon:(0,z.jsx)(Vb,{}),autoFocus:!0,placeholder:n.link_toolbar.form.url_placeholder,value:s,onChange:d}),o!==!1&&(0,z.jsx)(t.Generic.Form.TextInput,{className:`bn-text-input`,name:`title`,icon:(0,z.jsx)(Mb,{}),placeholder:n.link_toolbar.form.title_placeholder,value:l,onChange:f})]})};function JU(e){return`link`in e.schema.inlineContentSchema&&e.schema.inlineContentSchema.link===`link`}var YU=()=>{let e=jy(),t=Ry(),n=$y(),r=eb(),i=Uy(),a=kH(aF),{showSelection:o}=kH(CF),[s,c]=(0,R.useState)(!1);(0,R.useEffect)(()=>(o(s,`createLinkButton`),()=>o(!1,`createLinkButton`)),[s,o]);let l=(0,R.useCallback)(t=>{t||e.focus(),c(t)},[e]),u=Ly({editor:e,selector:({editor:e})=>{if(e.isEditable&&!e.prosemirrorState.selection.empty&&JU(e)&&!eF(e.prosemirrorState.selection)&&(e.getSelection()?.blocks||[e.getTextCursorPosition().block]).find(e=>e.content!==void 0))return{url:e.getSelectedLinkUrl(),text:e.getSelectedText(),range:{from:e.prosemirrorState.selection.from,to:e.prosemirrorState.selection.to}}}});return(0,R.useEffect)(()=>{c(!1)},[u]),(0,R.useEffect)(()=>{let n=t=>{e.isEditable&&(t.ctrlKey||t.metaKey)&&t.key===`k`&&(c(!0),t.preventDefault())};return t?.addEventListener(`keydown`,n),()=>{t?.removeEventListener(`keydown`,n)}},[e,t]),u===void 0?null:(0,z.jsxs)(n.Generic.Popover.Root,{open:s,onOpenChange:l,portalElement:i,children:[(0,z.jsx)(n.Generic.Popover.Trigger,{children:(0,z.jsx)(n.FormattingToolbar.Button,{className:`bn-button`,"data-test":`createLink`,label:r.formatting_toolbar.link.tooltip,mainTooltip:r.formatting_toolbar.link.tooltip,secondaryTooltip:Ij(r.formatting_toolbar.link.secondary_tooltip,r.generic.ctrl_shortcut),icon:(0,z.jsx)(Vb,{}),onClick:()=>l(!s)})}),(0,z.jsx)(n.Generic.Popover.Content,{className:`bn-popover-content bn-form-popover`,variant:`form-popover`,children:(0,z.jsx)(qU,{url:u.url||``,text:u.text,range:u.range,showTextField:!1,setToolbarOpen:e=>a.store.setState(e)})})]})},XU=()=>{let e=eb(),t=$y(),n=Uy(),r=jy(),i=Ly({editor:r,selector:({editor:e})=>{if(!e.isEditable)return;let t=e.getSelection()?.blocks||[e.getTextCursorPosition().block];if(t.length!==1)return;let n=t[0];if($P(n,e,n.type,{url:`string`,caption:`string`}))return n}}),[a,o]=(0,R.useState)(!1),s=(0,R.useCallback)(e=>{e||r.focus(),o(e)},[r]),c=(0,R.useCallback)(e=>{i!==void 0&&QP(r,i.type,{caption:`string`})&&r.updateBlock(i.id,{props:{caption:e.currentTarget.value}})},[i,r]);return i===void 0?null:(0,z.jsxs)(t.Generic.Popover.Root,{open:a,onOpenChange:s,portalElement:n,children:[(0,z.jsx)(t.Generic.Popover.Trigger,{children:(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,label:e.formatting_toolbar.file_caption.tooltip,mainTooltip:e.formatting_toolbar.file_caption.tooltip,icon:(0,z.jsx)(Wb,{}),onClick:()=>s(!a)})}),(0,z.jsx)(t.Generic.Popover.Content,{className:`bn-popover-content bn-form-popover`,variant:`form-popover`,children:(0,z.jsx)(t.Generic.Form.Root,{onSubmit:()=>s(!1),submitButton:(0,z.jsx)(GU,{}),children:(0,z.jsx)(t.Generic.Form.TextInput,{name:`file-caption`,icon:(0,z.jsx)(Wb,{}),value:i.props.caption,autoFocus:!0,placeholder:e.formatting_toolbar.file_caption.input_placeholder,onChange:c})})})]})},ZU=()=>{let e=eb(),t=$y(),n=jy(),r=Ly({editor:n,selector:({editor:e})=>{if(!e.isEditable)return;let t=e.getSelection()?.blocks||[e.getTextCursorPosition().block];if(t.length!==1)return;let n=t[0];if($P(n,e,n.type,{url:`string`}))return n}}),i=(0,R.useCallback)(()=>{r!==void 0&&(n.focus(),n.removeBlocks([r.id]))},[r,n]);return r===void 0?null:(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,label:e.formatting_toolbar.file_delete.tooltip[r.type]||e.formatting_toolbar.file_delete.tooltip.file,mainTooltip:e.formatting_toolbar.file_delete.tooltip[r.type]||e.formatting_toolbar.file_delete.tooltip.file,icon:(0,z.jsx)(Sb,{}),onClick:i})},QU=()=>{let e=eb(),t=$y(),n=Uy(),r=jy(),i=Ly({editor:r,selector:({editor:e})=>{if(!e.isEditable)return;let t=e.getSelection()?.blocks||[e.getTextCursorPosition().block];if(t.length!==1)return;let n=t[0];if($P(n,e,n.type,{url:`string`,name:`string`}))return n}}),[a,o]=(0,R.useState)(!1),s=(0,R.useCallback)(e=>{e||r.focus(),o(e)},[r]),c=(0,R.useCallback)(e=>{i!==void 0&&QP(r,i.type,{name:`string`})&&r.updateBlock(i.id,{props:{name:e.currentTarget.value}})},[i,r]);return i===void 0?null:(0,z.jsxs)(t.Generic.Popover.Root,{open:a,onOpenChange:s,portalElement:n,children:[(0,z.jsx)(t.Generic.Popover.Trigger,{children:(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,label:e.formatting_toolbar.file_rename.tooltip[i.type]||e.formatting_toolbar.file_rename.tooltip.file,mainTooltip:e.formatting_toolbar.file_rename.tooltip[i.type]||e.formatting_toolbar.file_rename.tooltip.file,icon:(0,z.jsx)($b,{}),onClick:()=>s(!a)})}),(0,z.jsx)(t.Generic.Popover.Content,{className:`bn-popover-content bn-form-popover`,variant:`form-popover`,children:(0,z.jsx)(t.Generic.Form.Root,{onSubmit:()=>s(!1),submitButton:(0,z.jsx)(GU,{}),children:(0,z.jsx)(t.Generic.Form.TextInput,{name:`file-name`,icon:(0,z.jsx)($b,{}),value:i.props.name,autoFocus:!0,placeholder:e.formatting_toolbar.file_rename.input_placeholder[i.type]||e.formatting_toolbar.file_rename.input_placeholder.file,onChange:c})})})]})},$U=()=>{let e=eb(),t=$y(),n=Uy(),r=jy(),i=Ly({editor:r,selector:({editor:e})=>{if(!e.isEditable)return;let t=e.getSelection()?.blocks||[e.getTextCursorPosition().block];if(t.length!==1)return;let n=t[0];if($P(n,e,n.type,{url:`string`}))return n}});return i===void 0?null:(0,z.jsxs)(t.Generic.Popover.Root,{onOpenChange:e=>{e||r.focus()},portalElement:n,children:[(0,z.jsx)(t.Generic.Popover.Trigger,{children:(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,mainTooltip:e.formatting_toolbar.file_replace.tooltip[i.type]||e.formatting_toolbar.file_replace.tooltip.file,label:e.formatting_toolbar.file_replace.tooltip[i.type]||e.formatting_toolbar.file_replace.tooltip.file,icon:(0,z.jsx)(Db,{})})}),(0,z.jsx)(t.Generic.Popover.Content,{className:`bn-popover-content bn-panel-popover`,variant:`panel-popover`,children:(0,z.jsx)(NU,{blockId:i.id})})]})},eW=()=>{let e=eb(),t=$y(),n=jy(),r=Ly({editor:n,selector:({editor:e})=>{if(e.isEditable&&(e.getSelection()?.blocks||[e.getTextCursorPosition().block]).find(e=>e.content!==void 0))return{canNestBlock:e.canNestBlock()}}}),i=(0,R.useCallback)(()=>{r!==void 0&&r.canNestBlock&&(n.focus(),n.nestBlock())},[n,r]);return r===void 0?null:(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,"data-test":`nestBlock`,onClick:i,isDisabled:!r.canNestBlock,label:e.formatting_toolbar.nest.tooltip,mainTooltip:e.formatting_toolbar.nest.tooltip,secondaryTooltip:Ij(e.formatting_toolbar.nest.secondary_tooltip,e.generic.ctrl_shortcut),icon:(0,z.jsx)(Gb,{})})},tW=()=>{let e=eb(),t=$y(),n=jy(),r=Ly({editor:n,selector:({editor:e})=>{if(e.isEditable&&(e.getSelection()?.blocks||[e.getTextCursorPosition().block]).find(e=>e.content!==void 0))return{canUnnestBlock:e.canUnnestBlock()}}}),i=(0,R.useCallback)(()=>{r!==void 0&&r.canUnnestBlock&&(n.focus(),n.unnestBlock())},[n,r]);return r===void 0?null:(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,"data-test":`unnestBlock`,onClick:i,isDisabled:!r.canUnnestBlock,label:e.formatting_toolbar.unnest.tooltip,mainTooltip:e.formatting_toolbar.unnest.tooltip,secondaryTooltip:Ij(e.formatting_toolbar.unnest.secondary_tooltip,e.generic.ctrl_shortcut),icon:(0,z.jsx)(Kb,{})})},nW={paragraph:Mb,heading:Qb,heading_2:Zb,heading_3:Xb,heading_4:Yb,heading_5:Jb,heading_6:qb,toggle_heading:Qb,toggle_heading_2:Zb,toggle_heading_3:Xb,quote:Fb,toggle_list:Eb,bullet_list:Rb,numbered_list:zb,check_list:Bb},rW=e=>iF(e).map(({key:t,type:n,props:r})=>({name:e.dictionary.slash_menu[t].title,type:n,props:r,icon:nW[t]})),iW=e=>{let t=$y(),n=zU(),r=Uy(),i=jy(),a=Ly({editor:i,selector:({editor:e})=>e.getSelection()?.blocks||[e.getTextCursorPosition().block]}),o=a[0],s=(0,R.useMemo)(()=>(e.items||rW(i)).filter(e=>QP(i,e.type,Object.fromEntries(Object.entries(e.props||{}).map(([e,t])=>[e,typeof t])))),[i,e.items]),c=(0,R.useMemo)(()=>s.map(e=>{let t=e.icon,n=e.type===o.type,r=Object.entries(e.props||{}).filter(([e,t])=>t!==o.props[e]).length===0;return{text:e.name,icon:(0,z.jsx)(t,{size:16}),onClick:()=>{i.focus(),i.transact(()=>{for(let t of a)i.updateBlock(t,{type:e.type,props:e.props})})},isSelected:n&&r}}),[i,s,o.props,o.type,a]);return!(0,R.useMemo)(()=>c.find(e=>e.isSelected)!==void 0,[c])||!i.isEditable?null:(0,z.jsx)(t.FormattingToolbar.Select,{className:`bn-select`,items:c,portalElement:r,preventFocusOnOpen:n===`mobile`})},aW=()=>{let e=eb(),t=$y(),n=jy(),r=kH(`comments`),{store:i}=kH(aF),a=Ly({editor:n,selector:({editor:e})=>e.prosemirrorState.selection.empty}),o=(0,R.useCallback)(()=>{r.startPendingComment(),i.setState(!1)},[r,i]);return a?null:(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,label:e.formatting_toolbar.comment.tooltip,mainTooltip:e.formatting_toolbar.comment.tooltip,icon:(0,z.jsx)(cx,{}),onClick:o})},oW=()=>jy().getExtension(`comments`)?(0,z.jsx)(aW,{}):null,sW=()=>{let e=eb(),t=$y(),n=jy(),r=Ly({editor:n,selector:({editor:e})=>e.prosemirrorState.selection.empty}),i=(0,R.useCallback)(()=>{n._tiptapEditor.chain().focus().addPendingComment().run()},[n]);return!n._tiptapEditor.commands.addPendingComment||!n.isEditable||r?null:(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,label:e.formatting_toolbar.comment.tooltip,mainTooltip:e.formatting_toolbar.comment.tooltip,icon:(0,z.jsx)(cx,{}),onClick:i})};function cW(e,t){try{let n=new URL(e,t);if(n.protocol!==`javascript:`)return n.href}catch{}return`#`}var lW=()=>{let e=eb(),t=$y(),n=jy(),r=Ly({editor:n,selector:({editor:e})=>{let t=e.getSelection()?.blocks||[e.getTextCursorPosition().block];if(t.length!==1)return;let n=t[0];if($P(n,e,n.type,{url:`string`}))return n}}),i=(0,R.useCallback)(()=>{r!==void 0&&(n.focus(),n.resolveFileUrl?n.resolveFileUrl(r.props.url).then(e=>window.open(cW(e,window.location.href))):window.open(cW(r.props.url,window.location.href)))},[r,n]);return r===void 0?null:(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,label:e.formatting_toolbar.file_download.tooltip[r.type]||e.formatting_toolbar.file_download.tooltip.file,mainTooltip:e.formatting_toolbar.file_download.tooltip[r.type]||e.formatting_toolbar.file_download.tooltip.file,icon:(0,z.jsx)(bb,{}),onClick:i})},uW=()=>{let e=eb(),t=$y(),n=jy(),r=Ly({editor:n,selector:({editor:e})=>{if(!e.isEditable)return;let t=e.getSelection()?.blocks||[e.getTextCursorPosition().block];if(t.length!==1)return;let n=t[0];if($P(n,e,n.type,{url:`string`,showPreview:`boolean`}))return n}}),i=(0,R.useCallback)(()=>{r!==void 0&&QP(n,r.type,{showPreview:`boolean`})&&n.updateBlock(r.id,{props:{showPreview:!r.props.showPreview}})},[r,n]);return r===void 0?null:(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,label:`Toggle preview`,mainTooltip:e.formatting_toolbar.file_preview_toggle.tooltip,icon:(0,z.jsx)(Ob,{}),isSelected:r.props.showPreview,onClick:i})},dW=()=>{let e=eb(),t=$y(),n=jy(),r=kH(SR),i=Ly({editor:n,selector:({editor:e})=>{if(!e.isEditable||!e.settings.tables.splitCells)return;let t=e.getSelection()?.blocks||[e.getTextCursorPosition().block];if(t.length!==1)return;let n=t[0];if(n.type===`table`)return{mergeDirection:r.getMergeDirection(n)}}}),a=(0,R.useCallback)(()=>{r?.mergeCells()},[r]);return i===void 0?null:(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,label:e.formatting_toolbar.table_cell_merge.tooltip,mainTooltip:e.formatting_toolbar.table_cell_merge.tooltip,icon:i.mergeDirection===`horizontal`?(0,z.jsx)(Lb,{}):(0,z.jsx)(Ib,{}),onClick:a})},fW=()=>jy().getExtension(SR)?(0,z.jsx)(dW,{}):null,pW={left:rx,center:ax,right:nx,justify:ix},mW=e=>{let t=$y(),n=eb(),r=jy(),i=Ly({editor:r,selector:({editor:e})=>{if(!e.isEditable)return;let t=e.getSelection()?.blocks||[e.getTextCursorPosition().block],n=t[0];if($P(n,e,n.type,{textAlignment:LN.textAlignment}))return{textAlignment:n.props.textAlignment,blocks:t};if(t.length===1&&$P(n,e,`table`))return e.getExtension(SR)?.getCellSelection()?{textAlignment:kj(n.content.rows[0].cells[0]).props.textAlignment,blocks:[n]}:void 0}}),a=(0,R.useCallback)(e=>{if(i!==void 0){r.focus();for(let t of i.blocks)if($P(t,r,t.type,{textAlignment:LN.textAlignment})&&QP(r,t.type,{textAlignment:LN.textAlignment}))r.updateBlock(t,{props:{textAlignment:e}});else if(t.type===`table`){let n=r.getExtension(SR)?.getCellSelection();if(!n)continue;let i=t.content.rows.map(e=>({...e,cells:e.cells.map(e=>kj(e))}));n.cells.forEach(({row:t,col:n})=>{i[t].cells[n].props.textAlignment=e}),r.updateBlock(t,{type:`table`,content:{...t.content,type:`tableContent`,rows:i}}),r.setTextCursorPosition(t)}}},[r,i]);if(i===void 0)return null;let o=pW[e.textAlignment];return(0,z.jsx)(t.FormattingToolbar.Button,{className:`bn-button`,"data-test":`alignText${e.textAlignment.slice(0,1).toUpperCase()+e.textAlignment.slice(1)}`,onClick:()=>a(e.textAlignment),isSelected:i.textAlignment===e.textAlignment,label:n.formatting_toolbar[`align_${e.textAlignment}`].tooltip,mainTooltip:n.formatting_toolbar[`align_${e.textAlignment}`].tooltip,icon:(0,z.jsx)(o,{})})},hW=e=>[(0,z.jsx)(iW,{items:e},`blockTypeSelect`),(0,z.jsx)(fW,{},`tableCellMergeButton`),(0,z.jsx)(XU,{},`fileCaptionButton`),(0,z.jsx)($U,{},`replaceFileButton`),(0,z.jsx)(QU,{},`fileRenameButton`),(0,z.jsx)(ZU,{},`fileDeleteButton`),(0,z.jsx)(lW,{},`fileDownloadButton`),(0,z.jsx)(uW,{},`filePreviewButton`),(0,z.jsx)(LU,{basicTextStyle:`bold`},`boldStyleButton`),(0,z.jsx)(LU,{basicTextStyle:`italic`},`italicStyleButton`),(0,z.jsx)(LU,{basicTextStyle:`underline`},`underlineStyleButton`),(0,z.jsx)(LU,{basicTextStyle:`strike`},`strikeStyleButton`),(0,z.jsx)(mW,{textAlignment:`left`},`textAlignLeftButton`),(0,z.jsx)(mW,{textAlignment:`center`},`textAlignCenterButton`),(0,z.jsx)(mW,{textAlignment:`right`},`textAlignRightButton`),(0,z.jsx)(WU,{},`colorStyleButton`),(0,z.jsx)(eW,{},`nestBlockButton`),(0,z.jsx)(tW,{},`unnestBlockButton`),(0,z.jsx)(YU,{},`createLinkButton`),(0,z.jsx)(oW,{},`addCommentButton`),(0,z.jsx)(sW,{},`addTiptapCommentButton`)],gW=e=>{let t=$y();return(0,z.jsx)(t.FormattingToolbar.Root,{className:`bn-toolbar bn-formatting-toolbar`,children:e.children||hW(e.blockTypeSelectItems)})},_W=e=>{switch(e){case`left`:return`top-start`;case`center`:return`top`;case`right`:return`top-end`;default:return`top-start`}},vW=e=>{let t=jy(),n=kH(aF,{editor:t}),r=AH(aF,{editor:t}),o=Ly({editor:t,selector:({editor:e})=>n.store.state?{from:e.prosemirrorState.selection.from,to:e.prosemirrorState.selection.to}:void 0}),s=Ly({editor:t,selector:({editor:e})=>{let t=e.getTextCursorPosition().block;return $P(t,e,t.type,{textAlignment:LN.textAlignment})?_W(t.props.textAlignment):`top-start`}}),c=(0,R.useMemo)(()=>({...e.floatingUIOptions,useFloatingOptions:{open:r,onOpenChange:(e,r,i)=>{n.store.setState(e),i===`escape-key`&&t.focus()},placement:s,middleware:[h(10),a(),i()],...e.floatingUIOptions?.useFloatingOptions},focusManagerProps:{disabled:!0,...e.floatingUIOptions?.focusManagerProps},elementProps:{style:{zIndex:40},...e.floatingUIOptions?.elementProps}}),[r,s,e.floatingUIOptions,n.store,t]),l=e.formattingToolbar||gW;return(0,z.jsx)(Gy,{target:e.portalElement,children:(0,z.jsx)(PH,{position:o,...c,children:r&&(0,z.jsx)(l,{})})})};function yW(e,t){let n=Ay(),r=t??n?.editor;if(!r)throw Error(`'editor' is required, either from BlockNoteContext or as a function argument`);let i=e?.includeEditorUI??!1,a=(0,R.useRef)(void 0);(a.current===void 0||a.current.editor!==r||a.current.includeEditorUI!==i)&&(a.current={editor:r,includeEditorUI:i,value:r.isFocused({includeEditorUI:i})});let o=(0,R.useCallback)(e=>(a.current={editor:r,includeEditorUI:i,value:r.isFocused({includeEditorUI:i})},e(),r.onFocusChange((t,n)=>{a.current={editor:r,includeEditorUI:i,value:n.focused},e()},{includeEditorUI:i})),[r,i]),s=(0,R.useCallback)(()=>a.current.value,[]);return(0,R.useSyncExternalStore)(o,s,s)}var bW=0,xW=0;function SW(){if(typeof window>`u`)return!1;let e=window.visualViewport,t=e?.scale??1,n=(e?.height??window.innerHeight)*t,r=document.documentElement.clientWidth;return Math.abs(r-xW)>xW*.2&&(xW=r,bW=0),bW=Math.max(bW,n),bW-n>150}var CW=[`--bn-vv-top`,`--bn-vv-left`,`--bn-vv-width`,`--bn-vv-height`,`--bn-vv-scale`],wW=0;function TW(){let[e,t]=(0,R.useState)(SW);return(0,R.useLayoutEffect)(()=>{let e=document.documentElement,n=window.visualViewport,r=()=>document.querySelectorAll(`.bn-scroll-container`),i=()=>{e.style.setProperty(`--bn-vv-top`,`${n?.offsetTop??0}px`),e.style.setProperty(`--bn-vv-left`,`${n?.offsetLeft??0}px`),e.style.setProperty(`--bn-vv-width`,`${n?.width??window.innerWidth}px`),e.style.setProperty(`--bn-vv-height`,`${n?.height??window.innerHeight}px`),e.style.setProperty(`--bn-vv-scale`,`${n?.scale??1}`)},a=(e,t)=>e.toggleAttribute(`data-bn-allow-pull-to-refresh`,!t&&e.scrollTop<=0),o=()=>{let e=SW();t(e),i();for(let t of r())a(t,e)};wW++,o(),n?.addEventListener(`resize`,o),n?.addEventListener(`scroll`,o),window.addEventListener(`resize`,o);let s=e=>{e.target instanceof HTMLElement&&e.target.classList.contains(`bn-scroll-container`)&&a(e.target,SW())};return document.addEventListener(`scroll`,s,{capture:!0,passive:!0}),()=>{if(n?.removeEventListener(`resize`,o),n?.removeEventListener(`scroll`,o),window.removeEventListener(`resize`,o),document.removeEventListener(`scroll`,s,{capture:!0}),wW--,wW===0){for(let t of CW)e.style.removeProperty(t);for(let e of r())e.removeAttribute(`data-bn-allow-pull-to-refresh`);bW=0,xW=0}}},[]),e}var EW=e=>{let t=TW(),n=yW({includeEditorUI:!0});if(!t||!n)return null;let r=e.formattingToolbar||gW;return(0,z.jsx)(Ky,{target:document.body,children:(0,z.jsx)(RU.Provider,{value:`mobile`,children:(0,z.jsx)(Zy,{children:(0,z.jsx)(`div`,{className:`bn-mobile-formatting-toolbar`,children:(0,z.jsx)(r,{})})})})})},DW=e=>{let t=TW();return zj()&&t?(0,z.jsx)(EW,{formattingToolbar:e.formattingToolbar}):(0,z.jsx)(vW,{...e})},OW=e=>{let t=$y(),n=eb(),{deleteLink:r}=kH(hI);return(0,z.jsx)(t.LinkToolbar.Button,{className:`bn-button`,label:n.link_toolbar.delete.tooltip,mainTooltip:n.link_toolbar.delete.tooltip,isSelected:!1,onClick:()=>{r(e.range.from),e.setToolbarOpen?.(!1)},icon:(0,z.jsx)(Hb,{})})},kW=e=>{let t=$y(),n=Uy(),r=eb();return(0,z.jsxs)(t.Generic.Popover.Root,{onOpenChange:e.setToolbarPositionFrozen,portalElement:n,children:[(0,z.jsx)(t.Generic.Popover.Trigger,{children:(0,z.jsx)(t.LinkToolbar.Button,{className:`bn-button`,mainTooltip:r.link_toolbar.edit.tooltip,isSelected:!1,children:r.link_toolbar.edit.text})}),(0,z.jsx)(t.Generic.Popover.Content,{className:`bn-popover-content bn-form-popover`,variant:`form-popover`,children:(0,z.jsx)(qU,{url:e.url,text:e.text,range:e.range,setToolbarOpen:e.setToolbarOpen,setToolbarPositionFrozen:e.setToolbarPositionFrozen})})]})},AW=e=>{let t=$y(),n=eb();return(0,z.jsx)(t.LinkToolbar.Button,{className:`bn-button`,mainTooltip:n.link_toolbar.open.tooltip,label:n.link_toolbar.open.tooltip,isSelected:!1,onClick:()=>{window.open(cW(e.url,window.location.href),`_blank`)},icon:(0,z.jsx)(yb,{})})},jW=e=>{let t=$y();return(0,z.jsx)(t.LinkToolbar.Root,{className:`bn-toolbar bn-link-toolbar`,children:e.children||(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(kW,{url:e.url,text:e.text,range:e.range,setToolbarOpen:e.setToolbarOpen,setToolbarPositionFrozen:e.setToolbarPositionFrozen}),(0,z.jsx)(AW,{url:e.url}),(0,z.jsx)(OW,{range:e.range,setToolbarOpen:e.setToolbarOpen})]})})},MW=e=>{let t=jy(),n=Ly({editor:t,selector:({editor:e})=>e?.isEditable??!1}),[r,a]=(0,R.useState)(!1),[o,s]=(0,R.useState)(!1),c=Ry(),l=kH(hI),[u,d]=(0,R.useState)(void 0);(0,R.useEffect)(()=>{if(!n){d(void 0),a(!1);return}let e=()=>{let e=l.getLinkAtSelection();e?(d({cursorType:`text`,url:e.mark.attrs.href,text:e.text,range:e.range,element:l.getLinkElementAtPos(e.range.from)}),o||a(!0)):(d(void 0),o||a(!1))},r=e=>{if(u!==void 0&&u.cursorType===`text`||!(e.target instanceof HTMLElement))return;let t=l.getLinkAtElement(e.target);t&&d({cursorType:`mouse`,url:t.mark.attrs.href,text:t.text,range:t.range,element:l.getLinkElementAtPos(t.range.from)})},i=t.onChange(e),s=t.onSelectionChange(e);return c?.addEventListener(`mouseover`,r),()=>{i(),s(),c?.removeEventListener(`mouseover`,r)}},[t,c,n,l,u,o]);let f=(0,R.useMemo)(()=>({...e.floatingUIOptions,useFloatingOptions:{open:r,onOpenChange:(e,n,r)=>{o||(u===void 0||u.cursorType!==`text`||r!==`hover`)&&(r===`escape-key`&&t.focus(),a(e))},placement:`top-start`,middleware:[h(10),i()],...e.floatingUIOptions?.useFloatingOptions},useHoverProps:{enabled:u!==void 0&&u.cursorType===`mouse`,delay:{open:250,close:250},handleClose:VC(),...e.floatingUIOptions?.useHoverProps},focusManagerProps:{disabled:!0,...e.floatingUIOptions?.focusManagerProps},elementProps:{style:{zIndex:50},...e.floatingUIOptions?.elementProps}}),[t,u,e.floatingUIOptions,r,o]),p=(0,R.useMemo)(()=>u?.element?{element:u.element}:void 0,[u?.element]);if(!n)return null;let m=e.linkToolbar||jW;return(0,z.jsx)(Gy,{target:e.portalElement,children:(0,z.jsx)(NH,{reference:p,...f,children:u&&(0,z.jsx)(m,{url:u.url,text:u.text,range:u.range,setToolbarOpen:a,setToolbarPositionFrozen:s})})})};function NW(e){return pb({tag:`svg`,attr:{viewBox:`0 0 1024 1024`},child:[{tag:`path`,attr:{d:`M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z`},child:[]},{tag:`path`,attr:{d:`M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z`},child:[]}]})(e)}var PW=()=>{let e=$y(),t=eb(),n=jy(),r=kH(uF),i=AH(nR,{editor:n,selector:e=>e?.block}),a=(0,R.useCallback)(()=>{if(i===void 0)return;let e=i.content;if(e!==void 0&&Array.isArray(e)&&e.length===0)n.setTextCursorPosition(i),r.openSuggestionMenu(`/`);else{let e=n.insertBlocks([{type:`paragraph`}],i,`after`)[0];n.setTextCursorPosition(e),r.openSuggestionMenu(`/`)}},[i,n,r]);return i===void 0?null:(0,z.jsx)(e.SideMenu.Button,{className:`bn-button`,label:t.side_menu.add_block_label,icon:(0,z.jsx)(NW,{size:24,onClick:a,"data-test":`dragHandleAdd`})})};function FW(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0z`},child:[]},{tag:`path`,attr:{d:`m7 10 5 5 5-5z`},child:[]}]})(e)}function IW(e){return pb({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{fill:`none`,d:`M0 0h24v24H0V0z`},child:[]},{tag:`path`,attr:{d:`M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`},child:[]}]})(e)}var LW=e=>{let t=$y(),n=Uy(),r=jy(),i=AH(nR,{editor:r,selector:e=>e?.block});return i===void 0||!$P(i,r,i.type,{textColor:`string`})&&!$P(i,r,i.type,{backgroundColor:`string`})?null:(0,z.jsxs)(t.Generic.Menu.Root,{position:`right`,sub:!0,portalElement:n,children:[(0,z.jsx)(t.Generic.Menu.Trigger,{sub:!0,children:(0,z.jsx)(t.Generic.Menu.Item,{className:`bn-menu-item`,subTrigger:!0,children:e.children})}),(0,z.jsx)(t.Generic.Menu.Dropdown,{sub:!0,className:`bn-menu-dropdown bn-color-picker-dropdown`,children:(0,z.jsx)(HU,{iconSize:18,text:$P(i,r,i.type,{textColor:`string`})&&QP(r,i.type,{textColor:`string`})?{color:i.props.textColor,setColor:e=>r.updateBlock(i,{type:i.type,props:{textColor:e}})}:void 0,background:$P(i,r,i.type,{backgroundColor:`string`})&&QP(r,i.type,{backgroundColor:`string`})?{color:i.props.backgroundColor,setColor:e=>r.updateBlock(i,{props:{backgroundColor:e}})}:void 0})})]})},RW=e=>{let t=$y(),n=jy(),r=AH(nR,{editor:n,selector:e=>e?.block});return r===void 0?null:(0,z.jsx)(t.Generic.Menu.Item,{className:`bn-menu-item`,onClick:()=>{let e=n.getSelection()?.blocks,t=e&&e.some(e=>e.id===r.id)?e:[r];n.removeBlocks(t)},children:e.children})},zW=e=>{let t=$y(),n=jy(),r=AH(nR,{editor:n,selector:e=>e?.block});if(r===void 0||r.type!==`table`||!n.settings.tables.headers)return null;let i=!!r.content.headerRows;return(0,z.jsx)(t.Generic.Menu.Item,{className:`bn-menu-item`,checked:i,onClick:()=>{n.updateBlock(r,{content:{...r.content,headerRows:i?void 0:1}})},children:e.children})},BW=e=>{let t=$y(),n=jy(),r=AH(nR,{editor:n,selector:e=>e?.block});if(r===void 0||r.type!==`table`||!n.settings.tables.headers)return null;let i=!!r.content.headerCols;return(0,z.jsx)(t.Generic.Menu.Item,{className:`bn-menu-item`,checked:i,onClick:()=>{n.updateBlock(r,{content:{...r.content,headerCols:i?void 0:1}})},children:e.children})},VW=e=>{let t=$y(),n=eb();return(0,z.jsx)(t.Generic.Menu.Dropdown,{className:`bn-menu-dropdown bn-drag-handle-menu`,children:e.children||(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(RW,{children:n.drag_handle.delete_menuitem}),(0,z.jsx)(LW,{children:n.drag_handle.colors_menuitem}),(0,z.jsx)(zW,{children:n.drag_handle.header_row_menuitem}),(0,z.jsx)(BW,{children:n.drag_handle.header_column_menuitem})]})})},HW=e=>{let t=$y(),n=Uy(),r=eb(),i=kH(nR),a=AH(nR,{selector:e=>e?.block});if(a===void 0)return null;let o=e.dragHandleMenu||VW;return(0,z.jsxs)(t.Generic.Menu.Root,{onOpenChange:e=>{e?i.freezeMenu():i.unfreezeMenu()},position:`left`,portalElement:n,children:[(0,z.jsx)(t.Generic.Menu.Trigger,{children:(0,z.jsx)(t.SideMenu.Button,{label:r.side_menu.drag_handle_label,draggable:!0,onDragStart:e=>i.blockDragStart(e,a),onDragEnd:i.blockDragEnd,className:`bn-button`,icon:(0,z.jsx)(IW,{size:24,"data-test":`dragHandle`})})}),(0,z.jsx)(o,{children:e.children})]})},UW=e=>{let t=$y();return(0,z.jsx)(t.SideMenu.Root,{className:`bn-side-menu`,children:e.children||(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(PW,{}),(0,z.jsx)(HW,{dragHandleMenu:e.dragHandleMenu})]})})};function WW(e,t){if(t.type===`heading`)switch(t.props.level){case 1:return 39;case 2:return 27;case 3:return 18.5;default:return 0}return e.schema.blockSpecs[t.type]?.implementation.meta?.fileBlockAccept&&!t.props.url?12:t.type===`file`?4:t.type===`audio`||t.type===`table`?15:0}var GW=e=>{let t=jy(),{show:n,block:r}=AH(nR,{selector:e=>e===void 0?void 0:{show:e.show,block:e.block}})||{},i=(0,R.useCallback)((e,n,r)=>{let i=t.getExtension(nR);i?.setMenuElement(n);let a=!1,o=c(e,n,()=>{a?i?.hideMenuIfNotFrozen():a=!0},{ancestorScroll:!0,ancestorResize:!1,elementResize:!1,layoutShift:!1});return()=>{o(),i?.setMenuElement(void 0)}},[t]),a=(0,R.useMemo)(()=>({...e.floatingUIOptions,useFloatingOptions:{open:n,placement:`left-start`,middleware:[h({crossAxis:r?WW(t,r):0})],whileElementsMounted:i,...e.floatingUIOptions?.useFloatingOptions},useDismissProps:{enabled:!1,...e.floatingUIOptions?.useDismissProps},focusManagerProps:{disabled:!0,...e.floatingUIOptions?.focusManagerProps},elementProps:{style:{zIndex:20},...e.floatingUIOptions?.elementProps}}),[e.floatingUIOptions,n,r,t,i]),o=e.sideMenu||UW;return(0,z.jsx)(Gy,{target:e.portalElement,children:(0,z.jsx)(AU,{blockId:n?r?.id:void 0,...a,children:r?.id&&(0,z.jsx)(o,{})})})},KW=({format:e,dictionary:t})=>{let n=t.suggestion_changes.formatting_change;if(e.length===0)return n;let r=t.formatting_toolbar,i=[];for(let t of e){if(t===`link`)return n;let e=r[t],a=e&&typeof e==`object`&&`tooltip`in e?e.tooltip:void 0;if(typeof a!=`string`)return n;i.push(a)}return i.join(`, `)},qW=e=>{let t=$y(),n=eb(),r=(0,R.useMemo)(()=>{let t=n.suggestion_changes,r=e.formatChangeLabel??KW,i=e.users.join(`, `);if(e.modificationType===`insert`)return i?t.inserted_by(i):t.inserted;if(e.modificationType===`delete`)return i?t.deleted_by(i):t.deleted;if(e.modificationType===`change`)return i?t.changed_by(i):t.changed;if(e.modificationType===`attrs`)return i?`${t.formatting_change}: ${i}`:t.formatting_change;let a=e.format?r({format:e.format,dictionary:n}):``;return!a||a===t.formatting_change?i?`${t.formatting_change}: ${i}`:t.formatting_change:i?t.formatting_change_by(a,i):`${t.formatting_change} (${a})`},[n,e]);return(0,z.jsx)(t.AttributionTooltip.Root,{className:`bn-suggestion-tooltip`,markClassName:e.className,backgroundColor:e.className?void 0:e.color,children:r})};function JW(e){let t=e.firstElementChild??e,n=t.getBoundingClientRect();return n.width||n.height?t:t.firstElementChild??t}function YW(e,t){let{anchor:n,reference:r,...i}=e;return{...i,formatChangeLabel:t}}var XW=e=>{let t=AH(`attribution`,{selector:e=>e}),n=(0,R.useMemo)(()=>t?{element:t.reference??JW(t.anchor)}:void 0,[t]),r=(0,R.useMemo)(()=>({...e.floatingUIOptions,useFloatingOptions:{open:!!t,placement:`top-start`,middleware:[o(),h(4),i(),a({padding:4})],...e.floatingUIOptions?.useFloatingOptions},focusManagerProps:{disabled:!0,...e.floatingUIOptions?.focusManagerProps},elementProps:{style:{zIndex:1e4,pointerEvents:`none`},...e.floatingUIOptions?.elementProps}}),[e.floatingUIOptions,t]),s=e.attributionTooltip||qW,c=t?YW(t,e.formatChangeLabel):void 0;return(0,z.jsx)(Gy,{target:e.portalElement,children:(0,z.jsx)(NH,{reference:n,...r,children:c&&(0,z.jsx)(s,{...c})})})},ZW=10,QW=10,$W=600,eG=300,tG={name:`placeBelowUnlessCramped`,async fn(e){let{rects:t,placement:n,platform:r}=e,i={...t.floating,height:eG},a=await r.detectOverflow({...e,rects:{...t,floating:i},y:t.reference.y+t.reference.height+ZW},{padding:QW}),o=`bottom-start`;return a.bottom>0&&(await r.detectOverflow({...e,rects:{...t,floating:i},y:t.reference.y-ZW-eG},{padding:QW})).top<a.bottom&&(o=`top-start`),o===n?{}:{reset:{placement:o}}}};function nG(e){let t=e.getBoundingClientRect().width;t>=(parseFloat(e.style.minWidth)||0)+1&&(e.style.minWidth=`${Math.ceil(t)}px`)}var rG=[tG,h(ZW),a(),u({apply({elements:e,availableHeight:t}){e.floating.style.maxHeight=`${Math.max(0,Math.min(t,$W))}px`,nG(e.floating)},padding:QW})];async function iG(e,t){return(await pR(e,t)).map(({id:e,onItemClick:t})=>({id:e,onItemClick:t,icon:e}))}function aG(e){let t=$y(),n=eb(),{items:r,loadingState:i,selectedIndex:a,onItemClick:o,columns:s}=e,c=i===`loading-initial`||i===`loading`?(0,z.jsx)(t.GridSuggestionMenu.Loader,{className:`bn-grid-suggestion-menu-loader`,columns:s}):null,l=(0,R.useMemo)(()=>{let e=[];for(let n=0;n<r.length;n++){let i=r[n];e.push((0,z.jsx)(t.GridSuggestionMenu.Item,{className:`bn-grid-suggestion-menu-item`,item:i,id:`bn-grid-suggestion-menu-item-${n}`,isSelected:n===a,onClick:()=>o?.(i)},i.id))}return e},[t,r,o,a]);return(0,z.jsxs)(t.GridSuggestionMenu.Root,{id:`bn-grid-suggestion-menu`,columns:s,className:`bn-grid-suggestion-menu`,children:[c,l,l.length===0&&e.loadingState===`loaded`&&(0,z.jsx)(t.GridSuggestionMenu.EmptyItem,{className:`bn-grid-suggestion-menu-empty-item`,columns:s,children:n.suggestion_menu.no_items_title})]})}function oG(e){return e===void 0?void 0:`bn-suggestion-menu-item-`+e}function sG(e,t,n,r=3){let i=(0,R.useRef)(0);(0,R.useEffect)(()=>{t!==void 0&&(e.length>0?i.current=t.length:t.length-i.current>r&&n())},[n,r,e.length,t])}function cG(e,t){let[n,r]=(0,R.useState)([]),[i,a]=(0,R.useState)(!1),o=(0,R.useRef)(void 0),s=(0,R.useRef)(void 0);return(0,R.useEffect)(()=>{let n=e;o.current=e,a(!0),t(e).then(e=>{o.current===n&&(r(e),a(!1),s.current=n)})},[e,t]),{items:n||[],usedQuery:s.current,loadingState:s.current===void 0?`loading-initial`:i?`loading`:`loaded`}}function lG(e,t,n,r,i){let a=Ry(e),[o,s]=(0,R.useState)(0);return(0,R.useEffect)(()=>{let e=e=>(e.key===`ArrowLeft`&&(e.preventDefault(),n.length&&s((o-1+n.length)%n.length)),e.key===`ArrowRight`&&(e.preventDefault(),n.length&&s((o+1+n.length)%n.length)),e.key===`ArrowUp`?(e.preventDefault(),n.length&&s((o-r+n.length)%n.length),!0):e.key===`ArrowDown`?(e.preventDefault(),n.length&&s((o+r)%n.length),!0):e.key===`Enter`&&!e.isComposing&&(e.stopPropagation(),e.preventDefault(),n.length&&i?.(n[o]),!0));return a?.addEventListener(`keydown`,e,!0),()=>{a?.removeEventListener(`keydown`,e,!0)}},[a,n,o,i,r,r!==void 0&&r>1]),(0,R.useEffect)(()=>{s(0)},[t]),{selectedIndex:n.length===0?void 0:o}}function uG(e){let t=Ay().setContentEditableProps,n=jy(),{getItems:r,gridSuggestionMenuComponent:i,query:a,clearQuery:o,closeMenu:s,onItemClick:c,columns:l}=e,u=(0,R.useCallback)(e=>{s(),o(),c?.(e)},[c,s,o]),{items:d,usedQuery:f,loadingState:p}=cG(a,r);sG(d,f,s);let{selectedIndex:m}=lG(n,a,d,l,u);return(0,R.useEffect)(()=>(t(e=>({...e,"aria-expanded":!0,"aria-controls":`bn-suggestion-menu`})),()=>{t(e=>({...e,"aria-expanded":!1,"aria-controls":void 0}))}),[t]),(0,R.useEffect)(()=>(t(e=>({...e,"aria-activedescendant":oG(m)})),()=>{t(e=>({...e,"aria-activedescendant":void 0}))}),[t,m]),(0,z.jsx)(i,{items:d,onItemClick:u,loadingState:p,selectedIndex:m,columns:l})}function dG(e){let t=jy(),n=Ry(),{triggerCharacter:r,gridSuggestionMenuComponent:i,columns:a,shouldOpen:o,minQueryLength:s,onItemClick:c,getItems:l}=e,u=(0,R.useMemo)(()=>c||(e=>{e.onItemClick(t)}),[t,c]),d=(0,R.useMemo)(()=>l||(async e=>await iG(t,e)),[t,l]),f=kH(uF);(0,R.useEffect)(()=>{f.addSuggestionMenu({triggerCharacter:r,shouldOpen:o})},[f,r,o]);let p=AH(uF),m=AH(uF,{selector:e=>({element:n?.firstChild||void 0,getBoundingClientRect:()=>e?.referencePos||new DOMRect})}),h=(0,R.useMemo)(()=>({...e.floatingUIOptions,useFloatingOptions:{open:p?.show&&p?.triggerCharacter===r,onOpenChange:e=>{e||f.closeMenu()},placement:`bottom-start`,middleware:rG,...e.floatingUIOptions?.useFloatingOptions},focusManagerProps:{disabled:!0,...e.floatingUIOptions?.focusManagerProps},elementProps:{onMouseDownCapture:e=>e.preventDefault(),style:{zIndex:70},...e.floatingUIOptions?.elementProps}}),[e.floatingUIOptions,p?.show,p?.triggerCharacter,f,r]);return!p||!p.ignoreQueryLength&&s&&(p.query.startsWith(` `)||p.query.length<s)?null:(0,z.jsx)(Gy,{target:e.portalElement,children:(0,z.jsx)(NH,{reference:m,...h,children:r&&(0,z.jsx)(uG,{query:p.query,closeMenu:f.closeMenu,clearQuery:f.clearQuery,getItems:d,columns:a,gridSuggestionMenuComponent:i||aG,onItemClick:u})})})}function fG(e){let t=$y(),n=eb(),{items:r,loadingState:i,selectedIndex:a,onItemClick:o}=e,s=i===`loading-initial`||i===`loading`?(0,z.jsx)(t.SuggestionMenu.Loader,{className:`bn-suggestion-menu-loader`}):null,c=(0,R.useMemo)(()=>{let e,n=[];for(let i=0;i<r.length;i++){let s=r[i];s.group!==e&&(e=s.group,n.push((0,z.jsx)(t.SuggestionMenu.Label,{className:`bn-suggestion-menu-label`,children:e},e))),n.push((0,z.jsx)(t.SuggestionMenu.Item,{className:Lj(`bn-suggestion-menu-item`,s.size===`small`?`bn-suggestion-menu-item-small`:``),item:s,id:`bn-suggestion-menu-item-${i}`,isSelected:i===a,onClick:()=>o?.(s)},s.title))}return n},[t,r,o,a]);return(0,z.jsxs)(t.SuggestionMenu.Root,{id:`bn-suggestion-menu`,className:`bn-suggestion-menu`,children:[c,c.length===0&&(e.loadingState===`loading`||e.loadingState===`loaded`)&&(0,z.jsx)(t.SuggestionMenu.EmptyItem,{className:`bn-suggestion-menu-item`,children:n.suggestion_menu.no_items_title}),s]})}function pG(e,t){let[n,r]=(0,R.useState)(0);return{selectedIndex:n,setSelectedIndex:r,handler:i=>{if(i.key===`ArrowUp`)return i.preventDefault(),e.length&&r((n-1+e.length)%e.length),!0;if(i.key===`ArrowDown`)return i.preventDefault(),e.length&&r((n+1)%e.length),!0;if(i.key===`PageUp`)return i.preventDefault(),e.length&&r(0),!0;if(i.key===`PageDown`)return i.preventDefault(),e.length&&r(e.length-1),!0;let a=mG(i)?i.nativeEvent.isComposing:i.isComposing;return i.key===`Enter`&&!a&&(i.preventDefault(),i.stopPropagation(),e.length&&t?.(e[n]),!0)}}}function mG(e){return e.nativeEvent!==void 0}function hG(e,t,n,r,i){let a=Ry(),{selectedIndex:o,setSelectedIndex:s,handler:c}=pG(n,r);return(0,R.useEffect)(()=>{let e=i||a;return e?.addEventListener(`keydown`,c,!0),()=>{e?.removeEventListener(`keydown`,c,!0)}},[a,n,o,r,i,c]),(0,R.useEffect)(()=>{s(0)},[t,s]),{selectedIndex:n.length===0?void 0:o}}function gG(e){let t=Ay().setContentEditableProps,n=jy(),{getItems:r,suggestionMenuComponent:i,query:a,clearQuery:o,closeMenu:s,onItemClick:c}=e,l=(0,R.useCallback)(e=>{s(),o(),c?.(e)},[c,s,o]),{items:u,usedQuery:d,loadingState:f}=cG(a,r);sG(u,d,s);let{selectedIndex:p}=hG(n,a,u,l);return(0,R.useEffect)(()=>(t(e=>({...e,"aria-expanded":!0,"aria-controls":`bn-suggestion-menu`})),()=>{t(e=>({...e,"aria-expanded":!1,"aria-controls":void 0}))}),[t]),(0,R.useEffect)(()=>(t(e=>({...e,"aria-activedescendant":oG(p)})),()=>{t(e=>({...e,"aria-activedescendant":void 0}))}),[t,p]),(0,z.jsx)(i,{items:u,onItemClick:l,loadingState:f,selectedIndex:p})}var _G={heading:Qb,heading_2:Zb,heading_3:Xb,heading_4:Yb,heading_5:Jb,heading_6:qb,toggle_heading:Qb,toggle_heading_2:Zb,toggle_heading_3:Xb,quote:Fb,toggle_list:Eb,numbered_list:zb,bullet_list:Rb,check_list:Bb,paragraph:Mb,table:Nb,image:kb,video:Ab,audio:Tb,file:sx,emoji:gb,code_block:ex,divider:_b};function vG(e){return pF(e).map(e=>{let t=_G[e.key];return{...e,icon:(0,z.jsx)(t,{size:18})}})}function yG(e){let t=jy(),n=Ry(),{triggerCharacter:r,suggestionMenuComponent:i,shouldOpen:a,minQueryLength:o,onItemClick:s,getItems:c}=e,l=(0,R.useMemo)(()=>s||(e=>{e.onItemClick(t)}),[t,s]),u=(0,R.useMemo)(()=>c||(async e=>mF(vG(t),e)),[t,c]),d=kH(uF);(0,R.useEffect)(()=>{d.addSuggestionMenu({triggerCharacter:r,shouldOpen:a})},[d,r,a]);let f=AH(uF),p=AH(uF,{selector:e=>({element:n?.firstChild||void 0,getBoundingClientRect:()=>e?.referencePos||new DOMRect})}),m=(0,R.useMemo)(()=>({...e.floatingUIOptions,useFloatingOptions:{open:f?.show&&f?.triggerCharacter===r,onOpenChange:e=>{e||d.closeMenu()},placement:`bottom-start`,middleware:rG,...e.floatingUIOptions?.useFloatingOptions},focusManagerProps:{disabled:!0,...e.floatingUIOptions?.focusManagerProps},elementProps:{onMouseDownCapture:e=>e.preventDefault(),style:{zIndex:80},...e.floatingUIOptions?.elementProps}}),[e.floatingUIOptions,f?.show,f?.triggerCharacter,d,r]);return!f||!f.ignoreQueryLength&&o&&(f.query.startsWith(` `)||f.query.length<o)?null:(0,z.jsx)(Gy,{target:e.portalElement,children:(0,z.jsx)(NH,{reference:p,...m,children:r&&(0,z.jsx)(gG,{query:f.query,closeMenu:d.closeMenu,clearQuery:d.clearQuery,getItems:u,suggestionMenuComponent:i||fG,onItemClick:l})})})}var bG=(e,t=.3)=>{let n=Math.floor(e)+t,r=Math.ceil(e)-t;return e>=n&&e<=r?Math.round(e):e<n?Math.floor(e):Math.ceil(e)},xG=e=>{let t=$y(),n=jy(),r=kH(SR),i=AH(SR,{selector:e=>e?.block}),a=(0,R.useRef)(!1),[o,s]=(0,R.useState)(),c=(0,R.useCallback)(t=>{r.freezeHandles(),e.hideOtherElements(!0),i&&(s({originalContent:i.content,originalCroppedContent:{rows:r.cropEmptyRowsOrColumns(i,e.orientation===`addOrRemoveColumns`?`columns`:`rows`)},startPos:e.orientation===`addOrRemoveColumns`?t.clientX:t.clientY}),a.current=!1,t.preventDefault())},[i,e,r]),l=(0,R.useCallback)(()=>{i&&!a.current&&n.updateBlock(i,{type:`table`,content:{...i.content,rows:e.orientation===`addOrRemoveColumns`?r.addRowsOrColumns(i,`columns`,1):r.addRowsOrColumns(i,`rows`,1)}})},[i,n,e.orientation,r]);return(0,R.useEffect)(()=>{let t=t=>{if(!i)return;if(!o)throw Error(`editingState is undefined`);a.current=!0;let s=(e.orientation===`addOrRemoveColumns`?t.clientX:t.clientY)-o.startPos,c=e.orientation===`addOrRemoveColumns`?o.originalCroppedContent.rows[0]?.cells.length??0:o.originalCroppedContent.rows.length,l=e.orientation===`addOrRemoveColumns`?o.originalContent.rows[0]?.cells.length??0:o.originalContent.rows.length,u=e.orientation===`addOrRemoveColumns`?i.content.rows[0].cells.length:i.content.rows.length,d=l+bG(s/(e.orientation===`addOrRemoveColumns`?120:31),.3);d>=c&&d>0&&d!==u&&(n.updateBlock(i,{type:`table`,content:{...i.content,rows:e.orientation===`addOrRemoveColumns`?r.addRowsOrColumns({type:`table`,content:o.originalCroppedContent},`columns`,d-c):r.addRowsOrColumns({type:`table`,content:o.originalCroppedContent},`rows`,d-c)}}),i.content&&n.setTextCursorPosition(i))};return o&&window.addEventListener(`mousemove`,t),()=>{window.removeEventListener(`mousemove`,t)}},[i,o,n,e.orientation,r]),(0,R.useEffect)(()=>{let t=()=>{e.hideOtherElements(!1),r.unfreezeHandles(),s(void 0)};return o&&window.addEventListener(`mouseup`,t),()=>{window.removeEventListener(`mouseup`,t)}},[o,e,r]),n.isEditable?(0,z.jsx)(t.TableHandle.ExtendButton,{className:Lj(`bn-extend-button`,e.orientation===`addOrRemoveColumns`?`bn-extend-button-add-remove-columns`:`bn-extend-button-add-remove-rows`,o===null?``:`bn-extend-button-editing`),onClick:l,onMouseDown:c,children:e.children||(0,z.jsx)(wb,{size:18,"data-test":`extendButton`})}):null},SG=e=>{let t=$y(),n=Uy(),r=eb(),i=jy(),{block:a,colIndex:o,rowIndex:s}=AH(SR,{selector:e=>({block:e?.block,colIndex:e?.colIndex,rowIndex:e?.rowIndex})}),c=(e,t)=>{if(a===void 0||o===void 0||s===void 0)return;let n=a.content.rows.map(e=>({...e,cells:e.cells.map(e=>kj(e))}));t===`text`?n[s].cells[o].props.textColor=e:n[s].cells[o].props.backgroundColor=e,i.updateBlock(a,{type:`table`,content:{...a.content,rows:n}}),i.setTextCursorPosition(a)};if(a===void 0||o===void 0||s===void 0)return null;let l=a.content.rows[s]?.cells?.[o];return!l||i.settings.tables.cellTextColor===!1&&i.settings.tables.cellBackgroundColor===!1?null:(0,z.jsxs)(t.Generic.Menu.Root,{position:`right`,sub:!0,portalElement:n,children:[(0,z.jsx)(t.Generic.Menu.Trigger,{sub:!0,children:(0,z.jsx)(t.Generic.Menu.Item,{className:`bn-menu-item`,subTrigger:!0,children:e.children||r.drag_handle.colors_menuitem})}),(0,z.jsx)(t.Generic.Menu.Dropdown,{sub:!0,className:`bn-menu-dropdown bn-color-picker-dropdown`,children:(0,z.jsx)(HU,{iconSize:18,text:i.settings.tables.cellTextColor?{color:jj(l)?l.props.textColor:`default`,setColor:e=>c(e,`text`)}:void 0,background:i.settings.tables.cellBackgroundColor?{color:jj(l)?l.props.backgroundColor:`default`,setColor:e=>c(e,`background`)}:void 0})})]})},CG=()=>{let e=$y(),t=eb(),n=jy(),r=kH(SR),{block:i,colIndex:a,rowIndex:o}=AH(SR,{selector:e=>({block:e?.block,colIndex:e?.colIndex,rowIndex:e?.rowIndex})});if(i===void 0||a===void 0||o===void 0)return null;let s=i.content.rows[o]?.cells?.[a];return!s||!jj(s)||Nj(s)===1&&Mj(s)===1||!n.settings.tables.splitCells?null:(0,z.jsx)(e.Generic.Menu.Item,{onClick:()=>{r.splitCell({row:o,col:a})},children:t.table_handle.split_cell_menuitem})},wG=e=>{let t=$y();return(0,z.jsx)(t.Generic.Menu.Dropdown,{className:`bn-menu-dropdown bn-table-handle-menu`,children:e.children||(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(CG,{}),(0,z.jsx)(SG,{})]})})},TG=e=>{let t=$y(),n=Uy(),r=jy(),i=kH(SR),a=e.tableCellMenu||wG;return!r.settings.tables.splitCells&&!r.settings.tables.cellBackgroundColor&&!r.settings.tables.cellTextColor?null:(0,z.jsxs)(t.Generic.Menu.Root,{onOpenChange:t=>{t?(i.freezeHandles(),e.hideOtherElements(!0)):(i.unfreezeHandles(),e.hideOtherElements(!1),r.focus())},position:`right`,portalElement:n,children:[(0,z.jsx)(t.Generic.Menu.Trigger,{children:(0,z.jsx)(t.Generic.Menu.Button,{className:`bn-table-cell-handle`,children:e.children||(0,z.jsx)(FW,{size:12,"data-test":`tableCellHandle`})})}),(0,z.jsx)(a,{})]})},EG=e=>{let t=$y(),n=eb(),r=kH(SR),i=AH(SR,{selector:t=>e.orientation===`column`?t?.colIndex:t?.rowIndex});return r===void 0||i===void 0?null:(0,z.jsx)(t.Generic.Menu.Item,{onClick:()=>{r.addRowOrColumn(i,e.orientation===`row`?{orientation:`row`,side:e.side}:{orientation:`column`,side:e.side})},children:n.table_handle[`add_${e.side}_menuitem`]})},DG=e=>{let t=$y(),n=eb(),r=kH(SR),i=AH(SR,{selector:t=>e.orientation===`column`?t?.colIndex:t?.rowIndex});return r===void 0||i===void 0?null:(0,z.jsx)(t.Generic.Menu.Item,{onClick:()=>r.removeRowOrColumn(i,e.orientation),children:e.orientation===`row`?n.table_handle.delete_row_menuitem:n.table_handle.delete_column_menuitem})},OG=e=>{let t=$y(),n=Uy(),r=eb(),i=jy(),a=kH(SR),{block:o,index:s}=AH(SR,{selector:t=>({block:t?.block,index:e.orientation===`column`?t?.colIndex:t?.rowIndex})}),c=(0,R.useMemo)(()=>a===void 0||o===void 0||s===void 0?[]:e.orientation===`row`?a.getCellsAtRowHandle(o,s):a.getCellsAtColumnHandle(o,s),[o,s,e.orientation,a]),l=(e,t)=>{if(o===void 0)return;let n=o.content.rows.map(e=>({...e,cells:e.cells.map(e=>kj(e))}));c.forEach(({row:r,col:i})=>{t===`text`?n[r].cells[i].props.textColor=e:n[r].cells[i].props.backgroundColor=e}),i.updateBlock(o,{type:`table`,content:{...o.content,rows:n}}),i.setTextCursorPosition(o)};if(!c||!c[0]||!a||i.settings.tables.cellTextColor===!1&&i.settings.tables.cellBackgroundColor===!1)return null;let u=kj(c[0].cell);return(0,z.jsxs)(t.Generic.Menu.Root,{position:`right`,sub:!0,portalElement:n,children:[(0,z.jsx)(t.Generic.Menu.Trigger,{sub:!0,children:(0,z.jsx)(t.Generic.Menu.Item,{className:`bn-menu-item`,subTrigger:!0,children:e.children||r.drag_handle.colors_menuitem})}),(0,z.jsx)(t.Generic.Menu.Dropdown,{sub:!0,className:`bn-menu-dropdown bn-color-picker-dropdown`,children:(0,z.jsx)(HU,{iconSize:18,text:i.settings.tables.cellTextColor?{color:c.every(({cell:e})=>jj(e)&&e.props.textColor===u.props.textColor)?u.props.textColor:`default`,setColor:e=>{l(e,`text`)}}:void 0,background:i.settings.tables.cellBackgroundColor?{color:c.every(({cell:e})=>jj(e)&&e.props.backgroundColor===u.props.backgroundColor)?u.props.backgroundColor:`default`,setColor:e=>l(e,`background`)}:void 0})})]})},kG=e=>{let t=$y(),n=eb(),r=jy(),i=kH(SR),{block:a,index:o}=AH(SR,{selector:t=>({block:t?.block,index:e.orientation===`column`?t?.colIndex:t?.rowIndex})});if(i===void 0||a===void 0||o!==0||e.orientation!==`row`||!r.settings.tables.headers)return null;let s=!!a.content.headerRows;return(0,z.jsx)(t.Generic.Menu.Item,{className:`bn-menu-item`,checked:s,onClick:()=>{r.updateBlock(a,{...a,content:{...a.content,headerRows:s?void 0:1}})},children:n.drag_handle.header_row_menuitem})},AG=e=>{let t=$y(),n=eb(),r=jy(),i=kH(SR),a=AH(SR,{selector:e=>e?.block}),o=AH(SR,{selector:t=>e.orientation===`column`?t?.colIndex:t?.rowIndex});if(!i||o!==0||!a||e.orientation!==`column`||!r.settings.tables.headers)return null;let s=!!a.content.headerCols;return(0,z.jsx)(t.Generic.Menu.Item,{className:`bn-menu-item`,checked:s,onClick:()=>{r.updateBlock(a,{...a,content:{...a.content,headerCols:s?void 0:1}})},children:n.drag_handle.header_column_menuitem})},jG=e=>{let t=$y();return(0,z.jsx)(t.Generic.Menu.Dropdown,{className:`bn-table-handle-menu`,children:e.children||(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(DG,{orientation:e.orientation}),(0,z.jsx)(EG,{orientation:e.orientation,side:e.orientation===`row`?`above`:`left`}),(0,z.jsx)(EG,{orientation:e.orientation,side:e.orientation===`row`?`below`:`right`}),(0,z.jsx)(kG,{orientation:e.orientation}),(0,z.jsx)(AG,{orientation:e.orientation}),(0,z.jsx)(OG,{orientation:e.orientation})]})})},MG=e=>{let t=jy(),n=$y(),r=Uy(),[i,a]=(0,R.useState)(!1),o=e.tableHandleMenu||jG,s=kH(SR),c=AH(SR),l=(0,R.useMemo)(()=>!s||!c||!c.block||c.block.type!==`table`?!1:e.orientation===`column`?s.getCellsAtColumnHandle(c.block,c.colIndex).every(({cell:e})=>Mj(e)===1):s.getCellsAtRowHandle(c.block,c.rowIndex).every(({cell:e})=>Nj(e)===1),[e.orientation,c,s]);return c?(0,z.jsxs)(n.Generic.Menu.Root,{onOpenChange:n=>{n?(s.freezeHandles(),e.hideOtherElements(!0)):(s.unfreezeHandles(),e.hideOtherElements(!1),t.focus())},position:`right`,portalElement:r,children:[(0,z.jsx)(n.Generic.Menu.Trigger,{children:(0,z.jsx)(n.TableHandle.Root,{className:Lj(`bn-table-handle`,i?`bn-table-handle-dragging`:``,l?``:`bn-table-handle-not-draggable`),draggable:l,onDragStart:t=>{a(!0),e.hideOtherElements(!0),e.orientation===`column`?s.colDragStart(t):s.rowDragStart(t)},onDragEnd:()=>{s.dragEnd(),e.hideOtherElements(!1),a(!1)},style:e.orientation===`column`?{transform:`rotate(0.25turn)`}:void 0,children:e.children||(0,z.jsx)(IW,{size:24,"data-test":`tableHandle`})})}),(0,z.jsx)(o,{orientation:e.orientation})]}):null},NG=e=>{let t=jy(),[n,r]=(0,R.useState)(),i=AH(SR),a=(0,R.useMemo)(()=>{let e={};if(i===void 0)return{};let n=PF(i.block.id,t.prosemirrorState.doc);if(!n)return{};let r=n.posBeforeNode+1,a=t.prosemirrorView.domAtPos(r+1).node;if(!(a instanceof Element))return{};if(e.tableReference={element:a},i.rowIndex===void 0||i.colIndex===void 0)return e;let o=t.prosemirrorState.doc.resolve(r+1).posAtIndex(i.rowIndex),s=t.prosemirrorState.doc.resolve(o+1).posAtIndex(i.colIndex),c=t.prosemirrorView.domAtPos(s+1).node;return c instanceof Element?(e.cellReference={element:c},e.rowReference={element:a,getBoundingClientRect:()=>{let e=a.getBoundingClientRect(),t=c.getBoundingClientRect();return new DOMRect(e.x,i.draggingState&&i.draggingState.draggedCellOrientation===`row`?i.draggingState.mousePos-t.height/2:t.y,e.width,t.height)}},e.columnReference={element:a,getBoundingClientRect:()=>{let e=a.getBoundingClientRect(),t=c.getBoundingClientRect();return new DOMRect(i.draggingState&&i.draggingState.draggedCellOrientation===`col`?i.draggingState.mousePos-t.width/2:t.x,e.y,t.width,e.height)}},e):{}},[t,i]),o=(0,R.useCallback)((e,n,r)=>{let i=!1;return c(e,n,()=>{i?t.getExtension(SR)?.hideHandlesIfNotFrozen():i=!0},{ancestorScroll:!0,ancestorResize:!1,elementResize:!1,layoutShift:!1})},[t]),s=(0,R.useMemo)(()=>i===void 0?void 0:{rowTableHandle:{useFloatingOptions:{open:i.show&&i.rowIndex!==void 0&&(!n||n===`rowTableHandle`),placement:`left`,middleware:[h(-10)],whileElementsMounted:o},focusManagerProps:{disabled:!0},elementProps:{style:{zIndex:10}}},columnTableHandle:{useFloatingOptions:{open:i.show&&i.colIndex!==void 0&&(!n||n===`columnTableHandle`),placement:`top`,middleware:[h(-12)],whileElementsMounted:o},focusManagerProps:{disabled:!0},elementProps:{style:{zIndex:10}}},tableCellHandle:{useFloatingOptions:{open:i.show&&i.rowIndex!==void 0&&i.colIndex!==void 0&&(!n||n===`tableCellHandle`),placement:`top-end`,middleware:[h({mainAxis:-15,crossAxis:-1})],whileElementsMounted:o},focusManagerProps:{disabled:!0},elementProps:{style:{zIndex:10}}},extendRowsButton:{useFloatingOptions:{open:i.show&&i.showAddOrRemoveRowsButton&&(!n||n===`extendRowsButton`),placement:`bottom`,whileElementsMounted:o,middleware:[u({apply({rects:e,elements:t}){Object.assign(t.floating.style,{width:`${e.reference.width}px`})}})]},focusManagerProps:{disabled:!0},elementProps:{style:{zIndex:10}}},extendColumnsButton:{useFloatingOptions:{open:i.show&&i.showAddOrRemoveColumnsButton&&(!n||n===`extendColumnsButton`),placement:`right`,whileElementsMounted:o,middleware:[u({apply({rects:e,elements:t}){Object.assign(t.floating.style,{height:`${e.reference.height}px`})}})]},focusManagerProps:{disabled:!0},elementProps:{style:{zIndex:10}}}},[n,i,o]);if(!i)return null;let l=e.tableHandle||MG,d=e.extendButton||xG,f=e.tableCellHandle||TG;return(0,z.jsxs)(Gy,{target:e.portalElement,children:[(0,z.jsx)(NH,{reference:a?.rowReference,...s?.rowTableHandle,children:i.show&&i.rowIndex!==void 0&&(!n||n===`rowTableHandle`)&&(0,z.jsx)(l,{orientation:`row`,hideOtherElements:e=>r(e?`rowTableHandle`:void 0)})}),(0,z.jsx)(NH,{reference:a?.columnReference,...s?.columnTableHandle,children:i.show&&i.colIndex!==void 0&&(!n||n===`columnTableHandle`)&&(0,z.jsx)(l,{orientation:`column`,hideOtherElements:e=>r(e?`columnTableHandle`:void 0)})}),(0,z.jsx)(NH,{reference:a?.cellReference,...s?.tableCellHandle,children:i.show&&i.rowIndex!==void 0&&i.colIndex!==void 0&&(!n||n===`tableCellHandle`)&&(0,z.jsx)(f,{hideOtherElements:e=>r(e?`tableCellHandle`:void 0)})}),(0,z.jsx)(NH,{reference:a?.tableReference,...s?.extendRowsButton,children:i.show&&i.showAddOrRemoveRowsButton&&(!n||n===`extendRowsButton`)&&(0,z.jsx)(d,{orientation:`addOrRemoveRows`,hideOtherElements:e=>r(e?`extendRowsButton`:void 0)})}),(0,z.jsx)(NH,{reference:a?.tableReference,...s?.extendColumnsButton,children:i.show&&i.showAddOrRemoveColumnsButton&&(!n||n===`extendColumnsButton`)&&(0,z.jsx)(d,{orientation:`addOrRemoveColumns`,hideOtherElements:e=>r(e?`extendColumnsButton`:void 0)})})]})};function PG(e){if(e!==void 0){if(typeof e==`string`){if(typeof document>`u`)return;let t=document.querySelector(e);if(!t){console.warn(`[BlockNote] portalElements selector "${e}" did not match any element`);return}return t}return e}}var FG=(0,R.lazy)(()=>Promise.resolve().then(()=>vK)),IG=(0,R.lazy)(()=>Promise.resolve().then(()=>CK));function LG(e){let t=jy();if(!t)throw Error(`BlockNoteDefaultUI must be used within a BlockNoteContext.Provider`);let n=e.portalElements,r=PG(n?.formattingToolbar),i=PG(n?.linkToolbar),a=PG(n?.slashMenu),o=PG(n?.emojiPicker),s=PG(n?.sideMenu),c=PG(n?.filePanel),l=PG(n?.tableHandles),u=PG(n?.comments),d=PG(n?.attributionTooltip);return(0,z.jsxs)(z.Fragment,{children:[t.getExtension(aF)&&e.formattingToolbar!==!1&&(0,z.jsx)(DW,{portalElement:r}),t.getExtension(hI)&&e.linkToolbar!==!1&&(0,z.jsx)(MW,{portalElement:i}),t.getExtension(uF)&&e.slashMenu!==!1&&(0,z.jsx)(yG,{triggerCharacter:`/`,shouldOpen:e=>!e.selection.$from.parent.type.isInGroup(`tableContent`),portalElement:a}),t.getExtension(uF)&&e.emojiPicker!==!1&&(0,z.jsx)(dG,{triggerCharacter:`:`,columns:10,minQueryLength:2,portalElement:o}),t.getExtension(nR)&&e.sideMenu!==!1&&(0,z.jsx)(GW,{portalElement:s}),t.getExtension(UN)&&e.filePanel!==!1&&(0,z.jsx)(PU,{portalElement:c}),t.getExtension(SR)&&e.tableHandles!==!1&&(0,z.jsx)(NG,{portalElement:l}),t.getExtension(WH)&&e.comments!==!1&&(0,z.jsxs)(R.Suspense,{children:[(0,z.jsx)(FG,{portalElement:u}),(0,z.jsx)(IG,{portalElement:u})]}),t.getExtension(`attribution`)&&e.attributionTooltip!==!1&&(0,z.jsx)(XW,{portalElement:d})]})}var RG=!1;function zG(){typeof process>`u`&&(RG||typeof document>`u`||(RG=!0,(document.querySelector(`meta[name="viewport"]`)?.getAttribute(`content`)??``).replace(/\s/g,``).includes(`interactive-widget=resizes-content`)||console.warn(`[BlockNote] This page's viewport meta tag is missing "interactive-widget=resizes-content" in its content attribute. Add it to ensure proper mobile functionality, e.g. <meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-content">. See https://www.blocknotejs.org/docs/getting-started#mobile-compatibility for more information`)))}function BG(e,t){let n=Ay(),r=t??n?.editor,i=(0,R.useRef)(e);Fy(()=>{i.current=e}),(0,R.useEffect)(()=>{if(!r)throw Error(`'editor' is required, either from BlockNoteContext or as a function argument`);return r.onChange((...e)=>i.current(...e))},[r])}function VG(e,t,n){let r=Ay(),i=t??r?.editor,a=(0,R.useRef)(e);Fy(()=>{a.current=e}),(0,R.useEffect)(()=>{if(!i)throw Error(`'editor' is required, either from BlockNoteContext or as a function argument`);return i.onSelectionChange(e=>a.current(e),n)},[i,n])}var HG=()=>{let e=(0,R.useMemo)(()=>window.matchMedia?.(`(prefers-color-scheme: dark)`),[]),t=(0,R.useMemo)(()=>window.matchMedia?.(`(prefers-color-scheme: light)`),[]),n=e?.matches,r=t?.matches,[i,a]=(0,R.useState)(n?`dark`:r?`light`:`no-preference`);return(0,R.useEffect)(()=>{a(n?`dark`:r?`light`:`no-preference`)},[n,r]),(0,R.useEffect)(()=>{if(typeof e?.addEventListener==`function`){let n=({matches:e})=>e&&a(`dark`),r=({matches:e})=>e&&a(`light`);return e?.addEventListener(`change`,n),t?.addEventListener(`change`,r),()=>{e?.removeEventListener(`change`,n),t?.removeEventListener(`change`,r)}}{let n=()=>a(e.matches?`dark`:t.matches?`light`:`no-preference`);return e?.addEventListener(`change`,n),t?.addEventListener(`change`,n),()=>{e?.removeEventListener(`change`,n),t?.removeEventListener(`change`,n)}}},[e,t]),window.matchMedia,i};function UG(){let e=new Set,t={};return{subscribe(t){return e.add(t),()=>{e.delete(t)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(n,r){t={...t,[n]:(0,Oy.createPortal)(r.reactElement,r.element,n)},e.forEach(e=>e())},removeRenderer(n){let r={...t};delete r[n],t=r,e.forEach(e=>e())}}}var WG=({contentComponent:e})=>{let t=(0,R.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,z.jsx)(z.Fragment,{children:Object.values(t)})},GG=(0,R.forwardRef)((e,t)=>{let[n,r]=(0,R.useState)();return(0,R.useImperativeHandle)(t,()=>(e,t)=>{(0,Oy.flushSync)(()=>{r({node:e,container:t})}),r(void 0)},[]),(0,z.jsx)(z.Fragment,{children:n&&(0,Oy.createPortal)(n.node,n.container)})}),KG=()=>{};function qG(e,t){let{editor:n,className:r,theme:i,children:a,editable:o,onSelectionChange:s,onChange:c,formattingToolbar:l,linkToolbar:u,slashMenu:d,emojiPicker:f,sideMenu:p,filePanel:m,tableHandles:h,comments:g,portalElements:_,applyThemedRoot:v,autoFocus:y,renderEditor:b=!0,...x}=e,S=(0,R.useMemo)(()=>PG(_?.default),[_?.default]),[C,w]=(0,R.useState)(),T=Ay(),E=HG(),D=T?.colorSchemePreference||E,O=i||(D===`dark`?`dark`:`light`),k=$y(),A=(0,R.useMemo)(()=>({formattingToolbar:k?l:!1,linkToolbar:k?u:!1,sideMenu:k?p:!1,slashMenu:k?d:!1,filePanel:k?m:!1,tableHandles:k?h:!1,emojiPicker:k?f:!1,comments:k?g:!1,portalElements:_}),[g,k,f,m,l,u,p,d,h,_]);BG(c||KG,n),VG(s||KG,n);let j=(0,R.useCallback)(e=>{n.elementRenderer=e},[n]),M=(0,R.useCallback)(e=>{e.className=Lj(`bn-root`,O,r||``),e.setAttribute(`data-color-scheme`,O),v?.(e)},[O,r,v]),N=(0,R.useMemo)(()=>({...T,editor:n,setContentEditableProps:w,colorSchemePreference:O}),[T,n,O]),P=(0,R.useMemo)(()=>({editorProps:{autoFocus:y,contentEditableProps:C,editable:o},defaultUIProps:A,applyThemedRoot:M}),[y,C,o,A,M]);return(0,z.jsx)(ky.Provider,{value:N,children:(0,z.jsxs)(zy.Provider,{value:P,children:[(0,z.jsx)(GG,{ref:j}),(0,z.jsx)(JG,{className:r,renderEditor:b,editorColorScheme:O,defaultPortalElement:S,ref:t,...x,children:a})]})})}var JG=R.forwardRef(({className:e,renderEditor:t,editorColorScheme:n,defaultPortalElement:r,children:i,...a},o)=>(0,z.jsx)(`div`,{className:Lj(`bn-root`,`bn-container`,n,e),"data-color-scheme":n,...a,ref:o,children:(0,z.jsx)(Wy,{children:(0,z.jsx)(Gy,{target:r,children:t?(0,z.jsx)(XG,{children:i}):i})})})),YG=R.forwardRef(qG),XG=e=>{let t=By(),n=jy(),r=(0,R.useMemo)(()=>UG(),[]);(0,R.useEffect)(()=>{zG()},[]);let i=(0,R.useCallback)(e=>{n.isEditable=t.editorProps.editable!==!1,n._tiptapEditor.contentComponent=r,e?n.mount(e):n.unmount()},[t.editorProps.editable,n,r]);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(WG,{contentComponent:r}),(0,z.jsx)(ZG,{...t.editorProps,...e,mount:i}),(0,z.jsx)(LG,{...t.defaultUIProps}),e.children]})},ZG=e=>{let{autoFocus:t,mount:n,contentEditableProps:r}=e;return(0,z.jsx)(`div`,{"aria-autocomplete":`list`,"aria-haspopup":`listbox`,"data-bn-autofocus":t,ref:n,...r})};function QG(e,t){let n,r=document.createElement(`div`),i;if(t?.elementRenderer)t.elementRenderer(e(e=>n=e||void 0),r);else{if(!t?.headless)throw Error(`elementRenderer not available, expected headless editor`);i=(0,DU.createRoot)(r),(0,Oy.flushSync)(()=>{i.render(e(e=>n=e||void 0))})}if(!r.childElementCount)return i?.unmount(),{dom:document.createElement(`span`)};n?.setAttribute(`data-tmp-find`,`true`);let a=r.cloneNode(!0),o=a.firstElementChild,s=a.querySelector(`[data-tmp-find]`);return s?.removeAttribute(`data-tmp-find`),i?.unmount(),{dom:o,contentDOM:s||void 0}}function $G(e,t){let n=(0,R.useRef)(t),r=e.view.state.doc;if(e.node.type.isInGroup(`bnBlock`))return sM(e.node,r);try{n.current=EM(e.getPos,r)}catch{}return n.current}var eK={display:`contents`},tK=`data-bn-children-ref`;function nK(e){let t=e.querySelector(`[${tK}]`);return e.hasAttribute(tK)&&(t=e),t?.removeAttribute(tK),t??void 0}function rK(e,t){function n(){let n=e.querySelector(`[data-id]`);return n?.getAttribute(`data-id`)===t()?n:e}e.getBoundingClientRect=()=>Element.prototype.getBoundingClientRect.call(n()),e.getClientRects=()=>Element.prototype.getClientRects.call(n())}function iK(e){return(0,z.jsx)(cU,{onDragOver:e=>e.preventDefault(),...Object.fromEntries(Object.entries(e.domAttributes||{}).filter(([e])=>e!==`class`)),className:Lj(`bn-block-content`,e.domAttributes?.class||``),"data-content-type":e.blockType,...Kj(e.blockProps,e.propSchema),"data-file-block":e.isFileBlock===!0||void 0,children:e.children})}function aK(e,t,n){return(r={})=>{let i=typeof e==`function`?e(r):e,a=typeof t==`function`?t(r):t;IM(i,a);let{render:o,renderFrame:s,toExternalHTML:c,...l}=a,u=n?typeof n==`function`?n(r):n:void 0,d=i.layoutOnly===!0;function f(e){let{BlockContent:t,block:n,editor:r}=e;return QG(a=>{let o=(0,z.jsx)(t,{block:n,editor:r,childrenRef:e.childrenRef,contentRef:e=>{a(e),e&&!d&&(e.className=Lj(`bn-inline-content`,e.className))},context:e.context});return d?o:(0,z.jsx)(iK,{blockType:n.type,blockProps:n.props,propSchema:i.propSchema,domAttributes:e.domAttributes,isFileBlock:e.isFileBlock,children:o})},r)}let p=s;function m(e,t,n){fM(e);let r=e.closest(`[data-node-view-wrapper]`)?.firstElementChild;if(!(r instanceof HTMLElement))throw Error(`Layout block content must be inside its node view wrapper.`);uM(r,i.type,t.props,i.propSchema,t.id),r.toggleAttribute(`data-selected`,n)}function h(e){let t=sM(e.node,e.view.state.doc);if(t.type!==i.type)throw Error(`Frame for "${i.type}" received block "${t.type}".`);let n=sU().nodeViewContentRef,r=(0,R.useRef)(null),a=(0,R.useRef)(null);if(!n||!p)throw Error(`Frame node view requires a frame and content mount.`);let o=(0,R.useRef)({block:t,selected:e.selected});(0,R.useLayoutEffect)(()=>{o.current={block:t,selected:e.selected},d&&a.current&&m(a.current,t,e.selected)});let s=(0,R.useCallback)(e=>{a.current=e,e&&(e.dataset.nodeViewContent=``),n(e??(d?null:r.current)),d&&e&&m(e,o.current.block,o.current.selected)},[n]),c=(0,R.useCallback)(e=>{r.current=e,!a.current&&!d&&n(e)},[n]);return(0,z.jsx)(cU,{ref:c,style:eK,children:(0,z.jsx)(p,{block:t,editor:e.extension.options.editor,slotRef:s})})}return{config:i,implementation:{...l,...c&&{toExternalHTML(e,t,n){let r=f({BlockContent:c,block:e,editor:t,domAttributes:this.blockContentDOMAttributes,isFileBlock:a.meta?.fileBlockAccept!==void 0,context:n,childrenRef:e=>e?.setAttribute(tK,``)});return{...r,childrenDOM:nK(r.dom)}}},...o&&{render(e,t){if(this.renderType===`nodeView`){let n=e,r=o,s=this.blockContentDOMAttributes;function c(e){let o=$G(e,n),c=sU().nodeViewContentRef;if(!c)throw Error(`nodeViewContentRef is not set`);let l=c;function u(e){l(e),e&&(e.dataset.nodeViewContent=``,e.className=Lj(`bn-inline-content`,e.className))}return(0,z.jsx)(iK,{blockType:o.type,blockProps:o.props,propSchema:i.propSchema,isFileBlock:!!a.meta?.fileBlockAccept,domAttributes:s,children:(0,z.jsx)(r,{block:o,editor:t,contentRef:u})})}return SU(c,{className:`bn-react-node-view-renderer`})(this.props)}return f({BlockContent:o,block:e,editor:t,domAttributes:this.blockContentDOMAttributes})}},...p?{renderFrame(e,t){let{dom:n,contentDOM:r}=QG(n=>(0,z.jsx)(p,{block:e,editor:t,slotRef:n}),t);return r?{dom:n,slot:r}:void 0},frameView:e=>{let t=SU(h,{className:`bn-react-node-view-renderer bn-frame-node-view`})(e);if(!(t instanceof xU))throw Error(`React frames need an editor that renders React node views.`);let n=t.dom,r=t.contentDOM;if(!r)throw Error(`React frame node view has no content DOM.`);return d&&(r.style.display=`contents`,rK(n,()=>t.node.attrs.id)),{dom:n,slot:r,get node(){return t.node},update(e,n,r){return!d&&e.firstChild?.type!==t.node.firstChild?.type?!1:t.update(e,n,r)},selectNode:()=>t.selectNode(),deselectNode:()=>t.deselectNode(),destroy:()=>t.destroy()}}}:{}},extensions:u}}}var oK;async function sK(){return oK||(oK=(async()=>{let[e,t]=await Promise.all([_n(()=>import(`./module-BrWgIX20.js`),[],import.meta.url),_n(()=>import(`./native-Cqs-2kTC.js`),[],import.meta.url)]),n=`default`in e?e.default:e,r=`default`in t?t.default:t;return await n.init({data:r}),{emojiMart:n,emojiData:r}})(),oK)}function cK(e){let t=(0,R.useRef)(null),n=(0,R.useRef)(null);return n.current&&n.current.update(e),(0,R.useEffect)(()=>((async()=>{let{emojiMart:r}=await sK();n.current=new r.Picker({...e,ref:t})})(),()=>{n.current=null}),[]),R.createElement(`div`,{ref:t})}var lK=e=>{let[t,n]=(0,R.useState)(!1),r=$y(),i=Ay(),a=Uy();return(0,z.jsxs)(r.Generic.Popover.Root,{open:t,portalElement:a,children:[(0,z.jsx)(r.Generic.Popover.Trigger,{children:(0,z.jsx)(`div`,{onClick:r=>{r.preventDefault(),r.stopPropagation(),n(!t),e.onOpenChange?.(!t)},style:{display:`flex`,justifyContent:`center`,alignItems:`center`},children:e.children})}),(0,z.jsx)(r.Generic.Popover.Content,{className:`bn-emoji-picker-popover`,variant:`panel-popover`,children:(0,z.jsx)(cK,{perLine:7,onClickOutside:()=>{n(!1),e.onOpenChange?.(!1)},onEmojiSelect:t=>{e.onEmojiSelect(t),n(!1),e.onOpenChange?.(!1)},theme:i?.colorSchemePreference})})]})};function uK(e){let{userStore:t}=kH(WH),n=e.join(`,`);return(0,R.useEffect)(()=>{t.loadUsers(e)},[t,n]),My(t.store,t=>{let n=new Map;for(let r of e){let e=t.get(r);e&&n.set(r,e)}return n})}function dK(e){return uK([e]).get(e)}var fK=e=>{let t=$y(),n=eb(),r=kH(WH),i=e.comment.reactions.find(t=>t.emoji===e.emoji);if(!i)throw Error(`Trying to render reaction badge for non-existing reaction`);let[a,o]=(0,R.useState)([]),s=uK(a);return(0,z.jsx)(t.Generic.Badge.Root,{className:Lj(`bn-badge`,`bn-comment-reaction`),text:i.userIds.length.toString(),icon:i.emoji,isSelected:r.threadStore.auth.canDeleteReaction(e.comment,i.emoji),onClick:()=>e.onReactionSelect(i.emoji),onMouseEnter:()=>o(i.userIds),mainTooltip:n.comments.reactions.reacted_by,secondaryTooltip:`${Array.from(s.values()).map(e=>e.username).join(`
|
|
486
|
+
`)}`},i.emoji)},pK=(0,R.memo)(({isEmpty:e,comment:t,isEditing:n,threadStore:r,onReactionSelect:i,onEditSubmit:a,onEditCancel:o,onEmojiPickerOpenChange:s,Components:c,dict:l})=>{let u=r.auth.canAddReaction(t);return(0,z.jsxs)(z.Fragment,{children:[t.reactions.length>0&&!n&&(0,z.jsxs)(c.Generic.Badge.Group,{className:Lj(`bn-badge-group`,`bn-comment-reactions`),children:[t.reactions.map(e=>(0,z.jsx)(fK,{comment:t,emoji:e.emoji,onReactionSelect:i},e.emoji)),u&&(0,z.jsx)(lK,{onEmojiSelect:e=>i(e.native),onOpenChange:s,children:(0,z.jsx)(c.Generic.Badge.Root,{className:Lj(`bn-badge`,`bn-comment-add-reaction`),text:`+`,icon:(0,z.jsx)(hb,{size:16}),mainTooltip:l.comments.actions.add_reaction})})]}),n&&(0,z.jsxs)(c.Generic.Toolbar.Root,{variant:`action-toolbar`,className:Lj(`bn-action-toolbar`,`bn-comment-actions`),children:[(0,z.jsx)(c.Generic.Toolbar.Button,{mainTooltip:l.comments.save_button_text,variant:`compact`,onClick:a,isDisabled:e,children:l.comments.save_button_text}),(0,z.jsx)(c.Generic.Toolbar.Button,{className:`bn-button`,mainTooltip:l.comments.cancel_button_text,variant:`compact`,onClick:o,children:l.comments.cancel_button_text})]})]})}),mK=({comment:e,thread:t,showResolveButton:n})=>{let r=kH(WH),i=eb(),[a,o]=(0,R.useState)(!1),s=FH({initialContent:e.body,trailingBlock:!1,dictionary:{...i,placeholders:{emptyDocument:i.placeholders.edit_comment}},schema:r.commentEditorSchema||RH,extensions:[BH({submitOnEnter:r.submitOnEnter,onSubmit:async n=>{await r.threadStore.updateComment({commentId:e.id,comment:{body:n.document},threadId:t.id}),o(!1)}})]}),c=$y(),l=Uy(),[u,d]=(0,R.useState)(!1),[f,p]=(0,R.useState)(!1),m=r.threadStore,h=(0,R.useCallback)(()=>{o(!0)},[]),g=(0,R.useCallback)(()=>{s.replaceBlocks(s.document,e.body),o(!1)},[s,e.body]),_=s.getExtension(BH).submit,v=(0,R.useCallback)(async()=>{await m.deleteComment({commentId:e.id,threadId:t.id})},[e,t.id,m]),y=(0,R.useCallback)(async n=>{m.auth.canAddReaction(e,n)?await m.addReaction({threadId:t.id,commentId:e.id,emoji:n}):m.auth.canDeleteReaction(e,n)&&await m.deleteReaction({threadId:t.id,commentId:e.id,emoji:n})},[m,e,t.id]),b=(0,R.useCallback)(async()=>{await m.resolveThread({threadId:t.id})},[t.id,m]),x=(0,R.useCallback)(async()=>{await m.unresolveThread({threadId:t.id})},[t.id,m]),S=dK(e.userId);if(!e.body)return null;let C,w=m.auth.canAddReaction(e),T=m.auth.canDeleteComment(e),E=m.auth.canUpdateComment(e),D=n&&(t.resolved?m.auth.canUnresolveThread(t):m.auth.canResolveThread(t));a||(C=(0,z.jsxs)(c.Generic.Toolbar.Root,{className:Lj(`bn-action-toolbar`,`bn-comment-actions`),variant:`action-toolbar`,children:[w&&(0,z.jsx)(lK,{onEmojiSelect:e=>y(e.native),onOpenChange:d,children:(0,z.jsx)(c.Generic.Toolbar.Button,{mainTooltip:i.comments.actions.add_reaction,variant:`compact`,children:(0,z.jsx)(hb,{size:16})},`add-reaction`)}),D&&(t.resolved?(0,z.jsx)(c.Generic.Toolbar.Button,{mainTooltip:i.comments.actions.reopen,variant:`compact`,onClick:x,children:(0,z.jsx)(ux,{size:16})},`reopen`):(0,z.jsx)(c.Generic.Toolbar.Button,{mainTooltip:i.comments.actions.resolve,variant:`compact`,onClick:b,children:(0,z.jsx)(Cb,{size:16})},`resolve`)),(T||E)&&(0,z.jsxs)(c.Generic.Menu.Root,{position:`bottom-start`,onOpenChange:p,portalElement:l,children:[(0,z.jsx)(c.Generic.Menu.Trigger,{children:(0,z.jsx)(c.Generic.Toolbar.Button,{mainTooltip:i.comments.actions.more_actions,variant:`compact`,children:(0,z.jsx)(vb,{size:16})},`more-actions`)}),(0,z.jsxs)(c.Generic.Menu.Dropdown,{className:`bn-menu-dropdown`,children:[E&&(0,z.jsx)(c.Generic.Menu.Item,{icon:(0,z.jsx)(lx,{}),onClick:h,children:i.comments.actions.edit_comment},`edit-comment`),T&&(0,z.jsx)(c.Generic.Menu.Item,{icon:(0,z.jsx)(xb,{}),onClick:v,children:i.comments.actions.delete_comment},`delete-comment`)]})]})]}));let O=e.createdAt.toLocaleDateString(void 0,{month:`short`,day:`numeric`});if(!e.body)throw Error(`soft deletes are not yet supported`);return(0,z.jsx)(c.Comments.Comment,{authorInfo:S??`loading`,timeString:O,edited:e.updatedAt.getTime()!==e.createdAt.getTime(),showActions:f||`hover`,actions:C,className:`bn-thread-comment`,emojiPickerOpen:u,children:(0,z.jsx)(IH,{autoFocus:a,editor:s,editable:a,actions:e.reactions.length>0||a?({isFocused:t,isEmpty:n})=>(0,z.jsx)(pK,{isFocused:t,isEmpty:n,comment:e,isEditing:a,threadStore:m,onReactionSelect:y,onEditSubmit:_,onEditCancel:g,onEmojiPickerOpenChange:d,Components:c,dict:i}):void 0})})},hK=({thread:e,maxCommentsBeforeCollapse:t})=>{let n=$y(),r=eb(),i=uK(e.resolvedBy?[e.resolvedBy]:[]),a=e.comments.map((t,n)=>(0,z.jsx)(mK,{thread:e,comment:t,showResolveButton:n===0},t.id+JSON.stringify(t.body||`{}`)));if(e.resolved&&e.resolvedUpdatedAt&&e.resolvedBy){if(!i.get(e.resolvedBy))throw Error(`User ${e.resolvedBy} resolved thread ${e.id}, but their data could not be found.`);let t=e.comments.findLastIndex(t=>e.resolvedUpdatedAt.getTime()>t.createdAt.getTime())+1;a.splice(t,0,(0,z.jsx)(n.Comments.Comment,{className:`bn-thread-comment`,authorInfo:e.resolvedBy&&i.get(e.resolvedBy)||`loading`,timeString:e.resolvedUpdatedAt.toLocaleDateString(void 0,{month:`short`,day:`numeric`}),edited:!1,showActions:!1,children:(0,z.jsx)(`div`,{className:`bn-resolved-text`,children:r.comments.sidebar.marked_as_resolved})},`resolved-comment`))}return t&&a.length>t&&a.splice(1,a.length-2,(0,z.jsx)(n.Comments.ExpandSectionsPrompt,{className:`bn-thread-expand-prompt`,children:r.comments.sidebar.more_replies(e.comments.length-2)},`expand-prompt`)),a},gK=(0,R.memo)(({isEmpty:e,onSave:t,Components:n,dict:r})=>(0,z.jsx)(n.Generic.Toolbar.Root,{className:Lj(`bn-action-toolbar`,`bn-comment-actions`),variant:`action-toolbar`,children:(0,z.jsx)(n.Generic.Toolbar.Button,{className:`bn-button`,mainTooltip:r.comments.save_button_text,variant:`compact`,isDisabled:e,onClick:t,children:r.comments.save_button_text})}));function _K(e){let t=e.newCommentEditor,n=$y(),r=eb(),i=t.getExtension(BH);if(!i)throw Error(`FloatingComposer's newCommentEditor must include CommentEditorSubmitExtension.`);let a=i.submit;return(0,z.jsx)(n.Comments.Card,{className:`bn-thread`,children:(0,z.jsx)(IH,{autoFocus:!0,editable:!0,editor:t,actions:({isFocused:e,isEmpty:t})=>(0,z.jsx)(gK,{isFocused:e,isEmpty:t,onSave:a,Components:n,dict:r})})})}var vK=kU({default:()=>yK});function yK(e){let t=jy(),n=eb(),r=kH(WH),o=AH(WH,{editor:t,selector:e=>e.pendingComment}),s=FH({trailingBlock:!1,dictionary:{...n,placeholders:{emptyDocument:n.placeholders.new_comment}},schema:r.commentEditorSchema||RH,extensions:[BH({submitOnEnter:r.submitOnEnter,onSubmit:async e=>{await r.createThread({initialComment:{body:e.document}}),r.stopPendingComment(),t.transact(e=>{e.setSelection(et.create(e.doc,e.selection.to))}),t.focus()}})]},[o]),c=Ly({editor:t,selector:({editor:e})=>o?{from:e.prosemirrorState.selection.from,to:e.prosemirrorState.selection.to}:void 0}),l=(0,R.useMemo)(()=>({...e.floatingUIOptions,useFloatingOptions:{open:!!o,onOpenChange:e=>{if(!e){if(!zH({hasUnsavedContent:!s.isEmpty,confirmBeforeDiscard:r.confirmBeforeDiscard,message:n.comments.discard_pending_comment}))return;r.stopPendingComment(),t.focus()}},placement:`bottom`,middleware:[h(10),a(),i()],...e.floatingUIOptions?.useFloatingOptions},focusManagerProps:{disabled:!1},elementProps:{style:{zIndex:60},...e.floatingUIOptions?.elementProps}}),[r,n,t,s,o,e.floatingUIOptions]),u=e.floatingComposer||_K;return(0,z.jsx)(Gy,{target:e.portalElement,children:(0,z.jsx)(PH,{position:c,...l,children:(0,z.jsx)(u,{newCommentEditor:s})})})}var bK=(0,R.memo)(({isEmpty:e,onNewCommentSave:t,Components:n,dict:r})=>e?null:(0,z.jsx)(n.Generic.Toolbar.Root,{variant:`action-toolbar`,className:Lj(`bn-action-toolbar`,`bn-comment-actions`),children:(0,z.jsx)(n.Generic.Toolbar.Button,{mainTooltip:r.comments.save_button_text,variant:`compact`,isDisabled:e,onClick:t,children:r.comments.save_button_text})})),xK=({thread:e,selected:t,orphaned:n,referenceText:r,maxCommentsBeforeCollapse:i,onFocus:a,onBlur:o,tabIndex:s,newCommentEditor:c})=>{let l=$y(),u=eb(),d=kH(WH),f=(0,R.useRef)(e.id);f.current=e.id;let p=FH({trailingBlock:!1,dictionary:{...u,placeholders:{emptyDocument:u.placeholders.comment_reply}},schema:d.commentEditorSchema||RH,extensions:[BH({submitOnEnter:d.submitOnEnter,onSubmit:async e=>{await d.threadStore.addComment({comment:{body:e.document},threadId:f.current}),e.removeBlocks(e.document)}})]}),m=c??p,h=m.getExtension(BH);if(!h)throw Error(`Thread's newCommentEditor must include CommentEditorSubmitExtension.`);let g=h.submit;return(0,z.jsxs)(l.Comments.Card,{className:Lj(`bn-thread`,n&&`bn-thread-orphaned`),headerText:r,onFocus:a,onBlur:o,selected:t,tabIndex:s,children:[(0,z.jsx)(l.Comments.CardSection,{className:`bn-thread-comments`,children:(0,z.jsx)(hK,{thread:e,maxCommentsBeforeCollapse:t?void 0:i||5})}),t&&(0,z.jsx)(l.Comments.CardSection,{className:`bn-thread-composer`,children:(0,z.jsx)(IH,{autoFocus:!1,editable:!0,editor:m,actions:({isFocused:e,isEmpty:t})=>(0,z.jsx)(bK,{isFocused:e,isEmpty:t,onNewCommentSave:g,Components:l,dict:u})})})]})};function SK(){let e=kH(WH).threadStore,t=(0,R.useRef)(void 0);t.current||=e.getThreads();let n=(0,R.useCallback)(n=>e.subscribe(e=>{t.current=e,n()}),[e]);return(0,R.useSyncExternalStore)(n,()=>t.current)}var CK=kU({default:()=>wK});function wK(e){let t=jy(),n=eb(),r=kH(WH),o=AH(WH,{editor:t,selector:e=>e.selectedThreadId?{id:e.selectedThreadId,position:e.threadPositions.get(e.selectedThreadId)}:void 0}),s=FH({trailingBlock:!1,dictionary:{...n,placeholders:{emptyDocument:n.placeholders.comment_reply}},schema:r.commentEditorSchema||RH,extensions:[BH({submitOnEnter:r.submitOnEnter,onSubmit:async e=>{o&&(await r.threadStore.addComment({comment:{body:e.document},threadId:o.id}),e.removeBlocks(e.document))}})]},[o?.id]),c=SK(),l=(0,R.useMemo)(()=>o?c.get(o.id):void 0,[o,c]),u=(0,R.useMemo)(()=>({...e.floatingUIOptions,useFloatingOptions:{open:!!o,onOpenChange:(e,i,a)=>{if(!e){if(!zH({hasUnsavedContent:!s.isEmpty,confirmBeforeDiscard:r.confirmBeforeDiscard,message:n.comments.discard_pending_comment}))return;a===`escape-key`&&t.focus(),r.selectThread(void 0)}},placement:`bottom`,middleware:[h(10),a(),i()],...e.floatingUIOptions?.useFloatingOptions},focusManagerProps:{disabled:!0,...e.floatingUIOptions?.focusManagerProps},elementProps:{style:{zIndex:30},...e.floatingUIOptions?.elementProps}}),[r,n,t,s,e.floatingUIOptions,o]),d=e.floatingThread||xK;return(0,z.jsx)(Gy,{target:e.portalElement,children:(0,z.jsx)(PH,{position:o?.position,...u,children:l&&(0,z.jsx)(d,{thread:l,selected:!0,newCommentEditor:s})})})}R.memo(({thread:e,selectedThreadId:t,maxCommentsBeforeCollapse:n,referenceText:r,orphaned:i})=>{let a=kH(WH),o=(0,R.useCallback)(t=>{t.target.closest(`.bn-action-toolbar`)||a.selectThread(e.id)},[a,e.id]),s=(0,R.useCallback)(e=>{if(!e.relatedTarget||e.relatedTarget.closest(`.bn-action-toolbar`))return;let t=e.target instanceof Node?e.target:null,n=e.relatedTarget instanceof Node?e.relatedTarget.closest(`.bn-thread`):null;t&&n&&n.contains(t)||a.selectThread(void 0)},[a]);return(0,z.jsx)(xK,{thread:e,selected:e.id===t,orphaned:i,referenceText:r,maxCommentsBeforeCollapse:n,onFocus:o,onBlur:s,tabIndex:0})});function TK(e){let t=(0,R.useRef)(null);return(0,R.useEffect)(()=>{e&&t.current?.focus({preventScroll:!0})},[e]),t}function EK(e){return e.currentTarget instanceof HTMLElement&&e.relatedTarget instanceof HTMLElement&&e.currentTarget.contains(e.relatedTarget)}function DK({onBlur:e,onFocus:t}={}){let n=(0,R.useRef)(null),[r,i]=(0,R.useState)(!1),a=(0,R.useRef)(!1),o=e=>{i(e),a.current=e},s=(0,R.useCallback)(e=>{a.current||(o(!0),t?.(e))},[t]),c=(0,R.useCallback)(t=>{a.current&&!EK(t)&&(o(!1),e?.(t))},[e]);return(0,R.useEffect)(()=>{let e=n.current;if(e)return e.addEventListener(`focusin`,s),e.addEventListener(`focusout`,c),()=>{e?.removeEventListener(`focusin`,s),e?.removeEventListener(`focusout`,c)}},[s,c]),{ref:n,focused:r}}function OK(e){return(0,z.jsx)(cU,{as:`span`,className:`bn-inline-content-section`,"data-inline-content-type":e.inlineContentType,...Kj(e.inlineContentProps,e.propSchema),children:e.children})}function kK(e,t,n){let r=mO.create({name:e.type,inline:!0,group:`inline`,selectable:e.content!==`none`,atom:e.content===`none`,draggable:t.meta?.draggable,code:t.meta?.code,content:e.content===`styled`?`inline*`:e.content===`plain`?`text*`:``,marks(){return e.content===`plain`?vO(this.editor):void 0},addAttributes(){return TM(e.propSchema)},addKeyboardShortcuts(){return GM(e)},parseHTML(){return JR(e,t.parse,t.parseContent)},renderHTML({node:n}){let r=this.options.editor,i=oM(n,r.schema.inlineContentSchema,r.schema.styleSchema),a=t.toExternalHTML||t.render;return WM(QG(e=>(0,z.jsx)(a,{contentRef:t=>{e(t),t&&(t.dataset.editable=``)},inlineContent:i,updateInlineContent:()=>{},editor:r,node:n,getPos:()=>void 0}),r),e.type,n.attrs,e.propSchema)},addNodeView(){let n=this.options.editor;return r=>SU(r=>{let i=sU().nodeViewContentRef;if(!i)throw Error(`nodeViewContentRef is not set`);let a=t.render;return(0,z.jsx)(OK,{inlineContentProps:r.node.attrs,inlineContentType:e.type,propSchema:e.propSchema,children:(0,z.jsx)(a,{contentRef:e=>{i(e),e&&(e.dataset.editable=``)},editor:n,node:r.node,getPos:r.getPos,inlineContent:oM(r.node,n.schema.inlineContentSchema,n.schema.styleSchema),updateInlineContent:e=>{let t=jN([e],n.pmSchema),i=r.getPos();i!==void 0&&n.transact(e=>e.replaceWith(i,i+r.node.nodeSize,t))}})})},{className:`bn-ic-react-node-view-renderer`,as:`span`})(r)}});return KM(e,{...t,node:r,render(n,r,i){let a=t.render,o=jN([n],i.pmSchema)[0];return QG(t=>(0,z.jsx)(OK,{inlineContentProps:n.props,inlineContentType:e.type,propSchema:e.propSchema,children:(0,z.jsx)(a,{contentRef:e=>{t(e),e&&(e.dataset.editable=``)},editor:i,inlineContent:n,updateInlineContent:r,node:o,getPos:()=>void 0})}),i)},toExternalHTML(n,r){let i=t.toExternalHTML||t.render,a=jN([n],r.pmSchema)[0];return QG(t=>(0,z.jsx)(OK,{inlineContentProps:n.props,inlineContentType:e.type,propSchema:e.propSchema,children:(0,z.jsx)(i,{contentRef:e=>{t(e),e&&(e.dataset.editable=``)},editor:r,inlineContent:n,updateInlineContent:()=>{},node:a,getPos:()=>void 0})}),r)}},n)}function AK(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.top<r.top,a=n.bottom>r.bottom;return i&&a?`both`:i?`top`:a?`bottom`:`none`}function jK(e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}function MK(e){return(0,R.useMemo)(()=>jK(e),e)}function NK(e){zj()?e.preventDefault():bee()&&e.currentTarget.focus()}var PK={};function FK(e,t){let n=R.useRef(PK);return n.current===PK&&(n.current=e(t)),n}function IK(e,t,n,r){let i=FK(RK).current;return zK(i,e,t,n,r)&&VK(i,[e,t,n,r]),i.callback}function LK(e){let t=FK(RK).current;return BK(t,e)&&VK(t,e),t.callback}function RK(){return{callback:null,cleanup:null,refs:[]}}function zK(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function BK(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function VK(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var HK=19;function UK(e){return HK>=e}function WK(e){if(!R.isValidElement(e))return null;let t=e,n=t.props;return(UK(19)?n?.ref:t.ref)??null}function GK(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function KK(){}var qK=Object.freeze([]),JK=Object.freeze({});function YK(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function XK(e,t){return typeof e==`function`?e(t):e}function ZK(e,t){return typeof e==`function`?e(t):e}var QK={};function $K(e,t,n,r,i){if(!n&&!r&&!i&&!e)return tq(t);let a=tq(e);return t&&(a=nq(a,t)),n&&(a=nq(a,n)),r&&(a=nq(a,r)),i&&(a=nq(a,i)),a}function eq(e){if(e.length===0)return QK;if(e.length===1)return tq(e[0]);let t=tq(e[0]);for(let n=1;n<e.length;n+=1)t=nq(t,e[n]);return t}function tq(e){return oq(e)?{...e(QK)}:rq(e)}function nq(e,t){return oq(t)?t(e):iq(e,t)}function rq(e){let t={...e};for(let e in t){let n=t[e];aq(e,n)&&(t[e]=cq(n))}return t}function iq(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=GK(e.style,r);break;case`className`:e[n]=uq(e.className,r);break;default:e[n]=aq(n,r)?sq(e[n],r):r}}return e}function aq(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function oq(e){return typeof e==`function`}function sq(e,t){return t?e?(...n)=>{let r=n[0];if(dq(r)){let i=r;lq(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:cq(t):e}function cq(e){return e&&((...t)=>{let n=t[0];return dq(n)&&lq(n),e(...t)})}function lq(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function uq(e,t){return t?e?t+` `+e:t:e}function dq(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function fq(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=gq(r));let i=pq(t,n,r);if(n.enabled===!1)return null;let a=n.state??JK;return _q(e,r,i,a)}function pq(e,t,n){let{className:r,style:i}=e,{state:a=JK,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?XK(r,a):void 0,d=l?ZK(i,a):void 0,f=l?YK(a,c):JK,p=l&&s?mq(s):void 0,m=l?GK(f,p)??{}:JK;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?LK([m.ref,WK(n),...o]):IK(m.ref,WK(n),o):IK(null,null)),l?(u!==void 0&&(m.className=uq(m.className,u)),d!==void 0&&(m.style=GK(m.style,d)),m):JK}function mq(e){return Array.isArray(e)?eq(e):$K(void 0,e)}var hq=Symbol.for(`react.lazy`);function gq(e){if(e?.$$typeof!==hq)return e;let t=R.Children.toArray(e)[0];return R.isValidElement(t)?t:e}function _q(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=$K(n,t.props);return e.ref=n.ref,R.cloneElement(t,e)}return vq(e,n)}function vq(e,t){return e===`button`?(0,R.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,R.createElement)(`img`,{alt:``,...t,key:t.key}):R.createElement(e,t)}function yq(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var bq=yq(`https://base-ui.com/production-error`,`Base UI`),xq=R.createContext(void 0);function Sq(){let e=R.useContext(xq);if(e===void 0)throw Error(bq(13));return e}var Cq={imageLoadingStatus:()=>null},wq=R.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,[o,s]=R.useState(`idle`),c={imageLoadingStatus:o},l=R.useMemo(()=>({imageLoadingStatus:o,setImageLoadingStatus:s}),[o,s]),u=fq(`span`,e,{state:c,ref:t,props:a,stateAttributesMapping:Cq});return(0,z.jsx)(xq.Provider,{value:l,children:u})}),Tq={...R},Eq=Tq.useInsertionEffect,Dq=Eq&&Eq!==Tq.useLayoutEffect?Eq:e=>e();function Oq(e){let t=FK(kq).current;return t.next=e,Dq(t.effect),t.trampoline}function kq(){let e={next:void 0,callback:Aq,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Aq(){}var Q=typeof document<`u`?R.useLayoutEffect:()=>{};function jq(e){R.useEffect(e,qK)}var Mq=null;globalThis.requestAnimationFrame;var Nq=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},Pq=class e{static create(){return new e}static request(e){return Nq.request(e)}static cancel(e){return Nq.cancel(e)}currentId=Mq;request(e){this.cancel(),this.currentId=Nq.request(()=>{this.currentId=Mq,e()})}cancel=()=>{this.currentId!==Mq&&(Nq.cancel(this.currentId),this.currentId=Mq)};disposeEffect=()=>this.cancel};function Fq(){let e=FK(Pq.create).current;return jq(e.disposeEffect),e}function Iq(e){return e==null?e:`current`in e?e.current:e}function Lq(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var Rq=`data-starting-style`,zq=`data-ending-style`,Bq=null;function Vq(e){if(!Bq){let e=[];Bq=e,queueMicrotask(()=>{Bq=null,Oy.flushSync(()=>{for(let t of e)t()})})}Bq.push(e)}function Hq(e,t=!1,n=!1){let r=Fq();return Oq((i,a=null)=>{r.cancel();let o=Iq(e);if(o==null)return;let s=o,c=()=>{n?Vq(()=>{a?.aborted||i()}):Oy.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(Lq(s).map(e=>e.finished.then(KK))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(Lq(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Rq;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function Uq(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=Oq(a),s=Hq(r,n,i);R.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var Wq={[Rq]:``},Gq={[zq]:``},Kq={transitionStatus(e){return e===`starting`?Wq:e===`ending`?Gq:null}};function qq(e,t=!1,n=!1,r=!1){let[i,a]=R.useState(e&&t?`idle`:void 0),[o,s]=R.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),Q(()=>{if(!e&&o&&i!==`ending`&&n){let e=Pq.request(()=>{a(`ending`)});return()=>{Pq.cancel(e)}}},[e,o,i,n]),Q(()=>{if(!e||t||i===void 0)return;let n=Pq.request(()=>{a(void 0)});return()=>{Pq.cancel(n)}},[t,e,i]),Q(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=Pq.request(()=>{a(`idle`)});return()=>{Pq.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function Jq(e,{referrerPolicy:t,crossOrigin:n,sizes:r,srcSet:i},a){let o=R.useState(`idle`),s=o[1];return Q(()=>{if(!a)return KK;if(!e&&!i)return s(`error`),KK;let o=!0,c=new window.Image,l=e=>()=>{o&&s(e)};return s(`loading`),c.onload=l(`loaded`),c.onerror=l(`error`),t&&(c.referrerPolicy=t),c.crossOrigin=n??null,r&&(c.sizes=r),i&&(c.srcset=i),e&&(c.src=e),c.complete&&s(c.naturalWidth>0?`loaded`:`error`),()=>{o=!1}},[a,e,i,r,n,t,s]),o}var Yq={...Cq,...Kq},Xq=R.forwardRef(function(e,t){let{className:n,render:r,onLoadingStatusChange:i,keepMounted:a=!1,style:o,sizes:s,srcSet:c,src:l,...u}=e,{setImageLoadingStatus:d}=Sq(),[f,p]=Jq(l,e,!a),m=f===`loaded`,{mounted:h,transitionStatus:g,setMounted:_}=qq(m),v=R.useRef(null),y=R.useRef(!0);Q(()=>{if(!a)return;let e=y.current;y.current=!1;let t=v.current;if(!t)return;if(!t.complete){p(`loading`);return}let n=t.naturalWidth>0?`loaded`:`error`;p(n),n===`loaded`&&e&&_(!0)},[a,l,c,s,u.crossOrigin,u.referrerPolicy,r,p,_]);let b=a?{"data-loading":f===`loading`?``:void 0,"data-error":f===`error`?``:void 0,"aria-hidden":f!==`loaded`||void 0,onLoad(){p(`loaded`)},onError(){p(`error`)}}:void 0,x=Oq(e=>{i?.(e),d(e)});Q(()=>{f!==`idle`&&x(f)},[f,x]),Q(()=>()=>d(`idle`),[d]),Uq({enabled:!m,open:m,ref:v,onComplete(){m||_(!1)}});let S={imageLoadingStatus:f,transitionStatus:a&&g===`ending`?void 0:g},C=a||h,w={};s!==void 0&&(w.sizes=s),c!==void 0&&(w.srcSet=c),l!==void 0&&(w.src=l);let T=fq(`img`,e,{state:S,ref:[t,v],props:[b,u,w],stateAttributesMapping:Yq,enabled:C});return C?T:null}),Zq=0,Qq=class e{static create(){return new e}currentId=Zq;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Zq,t()},e)}isStarted(){return this.currentId!==Zq}clear=()=>{this.currentId!==Zq&&(clearTimeout(this.currentId),this.currentId=Zq)};disposeEffect=()=>this.clear};function $q(){let e=FK(Qq.create).current;return jq(e.disposeEffect),e}var eJ=R.forwardRef(function(e,t){let{className:n,render:r,delay:i=0,style:a,...o}=e,{imageLoadingStatus:s}=Sq(),[c,l]=R.useState(i===0),u=$q();return R.useEffect(()=>(i>0?u.start(i,()=>l(!0)):l(!0),u.clear),[u,i]),fq(`span`,e,{state:{imageLoadingStatus:s},ref:t,props:o,stateAttributesMapping:Cq,enabled:s!==`loaded`&&(i===0||c)})}),tJ=`-`,nJ=e=>{let t=oJ(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split(tJ);return n[0]===``&&n.length!==1&&n.shift(),rJ(n,t)||aJ(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},rJ=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?rJ(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(tJ);return t.validators.find(({validator:e})=>e(a))?.classGroupId},iJ=/^\[(.+)\]$/,aJ=e=>{if(iJ.test(e)){let t=iJ.exec(e)[1],n=t?.substring(0,t.indexOf(`:`));if(n)return`arbitrary..`+n}},oJ=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return uJ(Object.entries(e.classGroups),n).forEach(([e,n])=>{sJ(n,r,e,t)}),r},sJ=(e,t,n,r)=>{e.forEach(e=>{if(typeof e==`string`){let r=e===``?t:cJ(t,e);r.classGroupId=n}else if(typeof e==`function`){if(lJ(e)){sJ(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n})}else Object.entries(e).forEach(([e,i])=>{sJ(i,cJ(t,e),n,r)})})},cJ=(e,t)=>{let n=e;return t.split(tJ).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},lJ=e=>e.isThemeGetter,uJ=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>typeof e==`string`?t+e:typeof e==`object`?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,dJ=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);if(t!==void 0)return t;if((t=r.get(e))!==void 0)return i(e,t),t},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},fJ=`!`,pJ=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,o=e=>{let n=[],o=0,s=0,c;for(let l=0;l<e.length;l++){let u=e[l];if(o===0){if(u===i&&(r||e.slice(l,l+a)===t)){n.push(e.slice(s,l)),s=l+a;continue}if(u===`/`){c=l;continue}}u===`[`?o++:u===`]`&&o--}let l=n.length===0?e:e.substring(s),u=l.startsWith(fJ);return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:c&&c>s?c-s:void 0}};return n?e=>n({className:e,parseClassName:o}):o},mJ=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{e[0]===`[`?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},hJ=e=>({cache:dJ(e.cacheSize),parseClassName:pJ(e),...nJ(e)}),gJ=/\s+/,_J=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(gJ),s=``;for(let e=o.length-1;e>=0;--e){let t=o[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:d}=n(t),f=!!d,p=r(f?u.substring(0,d):u);if(!p){if(!f||(p=r(u),!p)){s=t+(s.length>0?` `+s:s);continue}f=!1}let m=mJ(c).join(`:`),h=l?m+fJ:m,g=h+p;if(a.includes(g))continue;a.push(g);let _=i(p,f);for(let e=0;e<_.length;++e){let t=_[e];a.push(h+t)}s=t+(s.length>0?` `+s:s)}return s};function vJ(){let e=0,t,n,r=``;for(;e<arguments.length;)(t=arguments[e++])&&(n=yJ(t))&&(r&&(r+=` `),r+=n);return r}var yJ=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=yJ(e[r]))&&(n&&(n+=` `),n+=t);return n};function bJ(e,...t){let n,r,i,a=o;function o(o){return n=hJ(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)}function s(e){let t=r(e);if(t)return t;let a=_J(e,n);return i(e,a),a}return function(){return a(vJ.apply(null,arguments))}}var xJ=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},SJ=/^\[(?:([a-z-]+):)?(.+)\]$/i,CJ=/^\d+\/\d+$/,wJ=new Set([`px`,`full`,`screen`]),TJ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,EJ=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,DJ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,OJ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kJ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,AJ=e=>MJ(e)||wJ.has(e)||CJ.test(e),jJ=e=>GJ(e,`length`,KJ),MJ=e=>!!e&&!Number.isNaN(Number(e)),NJ=e=>GJ(e,`number`,MJ),PJ=e=>!!e&&Number.isInteger(Number(e)),FJ=e=>e.endsWith(`%`)&&MJ(e.slice(0,-1)),IJ=e=>SJ.test(e),LJ=e=>TJ.test(e),RJ=new Set([`length`,`size`,`percentage`]),zJ=e=>GJ(e,RJ,qJ),BJ=e=>GJ(e,`position`,qJ),VJ=new Set([`image`,`url`]),HJ=e=>GJ(e,VJ,YJ),UJ=e=>GJ(e,``,JJ),WJ=()=>!0,GJ=(e,t,n)=>{let r=SJ.exec(e);return r?r[1]?typeof t==`string`?r[1]===t:t.has(r[1]):n(r[2]):!1},KJ=e=>EJ.test(e)&&!DJ.test(e),qJ=()=>!1,JJ=e=>OJ.test(e),YJ=e=>kJ.test(e),XJ=bJ(()=>{let e=xJ(`colors`),t=xJ(`spacing`),n=xJ(`blur`),r=xJ(`brightness`),i=xJ(`borderColor`),a=xJ(`borderRadius`),o=xJ(`borderSpacing`),s=xJ(`borderWidth`),c=xJ(`contrast`),l=xJ(`grayscale`),u=xJ(`hueRotate`),d=xJ(`invert`),f=xJ(`gap`),p=xJ(`gradientColorStops`),m=xJ(`gradientColorStopPositions`),h=xJ(`inset`),g=xJ(`margin`),_=xJ(`opacity`),v=xJ(`padding`),y=xJ(`saturate`),b=xJ(`scale`),x=xJ(`sepia`),S=xJ(`skew`),C=xJ(`space`),w=xJ(`translate`),T=()=>[`auto`,`contain`,`none`],E=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],D=()=>[`auto`,IJ,t],O=()=>[IJ,t],k=()=>[``,AJ,jJ],A=()=>[`auto`,MJ,IJ],j=()=>[`bottom`,`center`,`left`,`left-bottom`,`left-top`,`right`,`right-bottom`,`right-top`,`top`],M=()=>[`solid`,`dashed`,`dotted`,`double`,`none`],N=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],P=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`],F=()=>[``,`0`,IJ],I=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],L=()=>[MJ,IJ];return{cacheSize:500,separator:`:`,theme:{colors:[WJ],spacing:[AJ,jJ],blur:[`none`,``,LJ,IJ],brightness:L(),borderColor:[e],borderRadius:[`none`,``,`full`,LJ,IJ],borderSpacing:O(),borderWidth:k(),contrast:L(),grayscale:F(),hueRotate:L(),invert:F(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[FJ,jJ],inset:D(),margin:D(),opacity:L(),padding:O(),saturate:L(),scale:L(),sepia:F(),skew:L(),space:O(),translate:O()},classGroups:{aspect:[{aspect:[`auto`,`square`,`video`,IJ]}],container:[`container`],columns:[{columns:[LJ]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:[...j(),IJ]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[`auto`,PJ,IJ]}],basis:[{basis:D()}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`wrap`,`wrap-reverse`,`nowrap`]}],flex:[{flex:[`1`,`auto`,`initial`,`none`,IJ]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:[`first`,`last`,`none`,PJ,IJ]}],"grid-cols":[{"grid-cols":[WJ]}],"col-start-end":[{col:[`auto`,{span:[`full`,PJ,IJ]},IJ]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[WJ]}],"row-start-end":[{row:[`auto`,{span:[PJ,IJ]},IJ]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":[`auto`,`min`,`max`,`fr`,IJ]}],"auto-rows":[{"auto-rows":[`auto`,`min`,`max`,`fr`,IJ]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:[`normal`,...P()]}],"justify-items":[{"justify-items":[`start`,`end`,`center`,`stretch`]}],"justify-self":[{"justify-self":[`auto`,`start`,`end`,`center`,`stretch`]}],"align-content":[{content:[`normal`,...P(),`baseline`]}],"align-items":[{items:[`start`,`end`,`center`,`baseline`,`stretch`]}],"align-self":[{self:[`auto`,`start`,`end`,`center`,`stretch`,`baseline`]}],"place-content":[{"place-content":[...P(),`baseline`]}],"place-items":[{"place-items":[`start`,`end`,`center`,`baseline`,`stretch`]}],"place-self":[{"place-self":[`auto`,`start`,`end`,`center`,`stretch`]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":[C]}],"space-y-reverse":[`space-y-reverse`],w:[{w:[`auto`,`min`,`max`,`fit`,`svw`,`lvw`,`dvw`,IJ,t]}],"min-w":[{"min-w":[IJ,t,`min`,`max`,`fit`]}],"max-w":[{"max-w":[IJ,t,`none`,`full`,`min`,`max`,`fit`,`prose`,{screen:[LJ]},LJ]}],h:[{h:[IJ,t,`auto`,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"min-h":[{"min-h":[IJ,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"max-h":[{"max-h":[IJ,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],size:[{size:[IJ,t,`auto`,`min`,`max`,`fit`]}],"font-size":[{text:[`base`,LJ,jJ]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`,NJ]}],"font-family":[{font:[WJ]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`,IJ]}],"line-clamp":[{"line-clamp":[`none`,MJ,NJ]}],leading:[{leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`,AJ,IJ]}],"list-image":[{"list-image":[`none`,IJ]}],"list-style-type":[{list:[`none`,`disc`,`decimal`,IJ]}],"list-style-position":[{list:[`inside`,`outside`]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...M(),`wavy`]}],"text-decoration-thickness":[{decoration:[`auto`,`from-font`,AJ,jJ]}],"underline-offset":[{"underline-offset":[`auto`,AJ,IJ]}],"text-decoration-color":[{decoration:[e]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:O()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,IJ]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,IJ]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:[...j(),BJ]}],"bg-repeat":[{bg:[`no-repeat`,{repeat:[``,`x`,`y`,`round`,`space`]}]}],"bg-size":[{bg:[`auto`,`cover`,`contain`,zJ]}],"bg-image":[{bg:[`none`,{"gradient-to":[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},HJ]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...M(),`hidden`]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":[`divide-y-reverse`],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:M()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[``,...M()]}],"outline-offset":[{"outline-offset":[AJ,IJ]}],"outline-w":[{outline:[AJ,jJ]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:k()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[AJ,jJ]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:[``,`inner`,`none`,LJ,UJ]}],"shadow-color":[{shadow:[WJ]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...N(),`plus-lighter`,`plus-darker`]}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:[``,`none`]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":[``,`none`,LJ,IJ]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":[``,`none`]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[`none`,`all`,``,`colors`,`opacity`,`shadow`,`transform`,IJ]}],duration:[{duration:L()}],ease:[{ease:[`linear`,`in`,`out`,`in-out`,IJ]}],delay:[{delay:L()}],animate:[{animate:[`none`,`spin`,`ping`,`pulse`,`bounce`,IJ]}],transform:[{transform:[``,`gpu`,`none`]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[PJ,IJ]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:[`center`,`top`,`top-right`,`right`,`bottom-right`,`bottom`,`bottom-left`,`left`,`top-left`,IJ]}],accent:[{accent:[`auto`,e]}],appearance:[{appearance:[`none`,`auto`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,IJ]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":[`none`,`auto`]}],resize:[{resize:[`none`,`y`,`x`,``]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,IJ]}],fill:[{fill:[e,`none`]}],"stroke-w":[{stroke:[AJ,jJ,NJ]}],stroke:[{stroke:[e,`none`]}],sr:[`sr-only`,`not-sr-only`],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]}}});function ZJ(e){return fq(e.defaultTagName??`div`,e,e)}var QJ=R.createContext(void 0);function $J(e=!1){let t=R.useContext(QJ);if(t===void 0&&!e)throw Error(bq(16));return t}function eY(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:R.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function tY(e){return e?.ownerDocument||document}function nY(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(k(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function rY(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=R.useRef(null),s=$J(!0),c=a??s!==void 0,{props:l}=eY({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=R.useCallback(()=>{let e=o.current;iY(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Q(u,[u]),{getButtonProps:R.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return $K({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(lq(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=iY(r),s=!i&&aY(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),nY(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),nY(r,e)))},onKeyUp(e){t||(lq(e),a?.(e),e.target===e.currentTarget&&i&&c&&iY(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),nY(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:Oq(e=>{o.current=e,u()})}}function iY(e){return ae(e)&&e.tagName===`BUTTON`}function aY(e){return ae(e)&&e.tagName===`A`&&!!e.href}var oY=R.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=rY({disabled:i,focusableWhenDisabled:a,native:o});return fq(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),sY=R.createContext(void 0);function cY(e){let t=R.useContext(sY);if(t===void 0&&!e)throw Error(bq(33));return t}var lY=R.createContext(void 0);function uY(e){let t=R.useContext(lY);if(t===void 0&&!e)throw Error(bq(36));return t}var dY=`data-open`,fY=`data-closed`,pY=`data-anchor-hidden`,mY=`data-popup-open`,hY=`data-pressed`,gY={[mY]:``},_Y={[mY]:``,[hY]:``},vY={[dY]:``},yY={[fY]:``},bY={[pY]:``},xY={open(e){return e?gY:null}},SY={open(e){return e?_Y:null}},CY={open(e){return e?vY:yY},anchorHidden(e){return e?bY:null}},wY={...CY,...Kq},TY=R.createContext(void 0);function EY(e=!0){let t=R.useContext(TY);if(t===void 0&&!e)throw Error(bq(25));return t}var DY=`none`,OY=`trigger-press`,kY=`trigger-hover`,AY=`trigger-focus`,jY=`outside-press`,MY=`item-press`,NY=`focus-out`,PY=`escape-key`,FY=`list-navigation`,IY=`keyboard`,LY=`pointer`,RY=`cancel-open`,zY=`sibling-open`,BY=`disabled`,VY=`missing`,HY=`initial`,UY=`imperative-action`,WY=`window-resize`;function GY({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=R.useRef(e!==void 0),[a,o]=R.useState(()=>t);return[i&&e!==void 0?e:a,R.useCallback(e=>{i||o(e)},[])]}var KY=R.createContext(null);function qY(e=`root`){let t=R.useContext(KY),n=R.useContext(lY);return t===null||n===void 0?null:(e===`submenu-trigger`?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}var JY={visible:!0,ref:null};function YY(){return JY}function XY(e,t,n=`root`){let r=qY(n),i=((n===`submenu-trigger`?r?.useSubmenuTrigger:r?.useItem)??YY)({label:e.label,children:e.children,render:e.render}),a=IK(t,i.ref);return{visible:i.visible,ref:a,props:i.props}}var ZY=R.createContext(void 0);function QY(){let e=R.useContext(ZY);if(e===void 0)throw Error(bq(30));return e}function $Y(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:eX,platform:tX,maxTouchPoints:nX}=$Y(),rX=eX.toLowerCase(),iX=tX.toLowerCase(),aX=/^i(os$|p)/.test(iX)||iX===`macintel`&&nX>1,oX=`android`,sX=iX===oX||rX.includes(oX),cX=!aX&&iX.startsWith(`mac`);iX.startsWith(`win`),!sX&&/^(linux|chrome os)/.test(iX);var lX=cX||aX,uX=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!uX&&rX.includes(`firefox`),!uX&&rX.includes(`chrom`);var dX=lX,fX=/jsdom|happydom/.test(rX);function pX(e){e.preventDefault()}function mX(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,l=uY(),u=EY(!0),d=c.type===`submenu-trigger`,f=d?l.parentVirtualFocus:l.virtualFocus,p=(d&&l.parent.type===`menu`?l.parent.store:l.store).useState(`webkitAriaSelected`,n),{events:m}=a.useState(`floatingTreeRoot`),h=a.useState(`open`),g=u!==void 0,_=!f&&h&&n?0:-1;return R.useMemo(()=>({id:r,role:`menuitem`,tabIndex:_,"aria-selected":p,onMouseDown:f?pX:void 0,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&m.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&m.emit(`close`,{domEvent:e.nativeEvent,reason:MY})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,g&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||g&&!cX&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!g||e.button===2)&&c.type===`regular-item`&&nY(s.current,e,{detail:1,pointerType:`mouse`})}}),[t,_,r,m,i,a.context.allowMouseUpTriggerRef,o,s,u,g,c.type,p,f])}var hX={type:`regular-item`};function gX(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=R.useRef(null),{getButtonProps:d,buttonRef:f}=rY({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=mX({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=R.useCallback(e=>$K(p,{onMouseEnter(e){c.type===`submenu-trigger`&&c.setActive(e.nativeEvent)}},e,d),[p,d,c]),h=IK(u,f);return R.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var _X=R.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function vX(){return R.useContext(_X)}function yX(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=vX(),u=R.useRef(-1),[d,f]=R.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=R.useRef(null),h=R.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return Q(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}function bX(){let[,e]=R.useState({});return R.useCallback(()=>{e({})},[])}var xX=0;function SX(e,t=`mui`){let n=R.useRef(void 0),r=bX(),i=e??n.current;return R.useEffect(()=>{n.current??(xX+=1,n.current=`${t}-${xX}`,e??r())},[e,t,r]),i}var CX=Tq.useId;function wX(e,t){if(CX!==void 0){let n=CX();return e??(t?`${t}-${n}`:n)}return SX(e,t)}function TX(e){return wX(e,`base-ui`)}var EX=`data-checked`,DX=`data-unchecked`,OX={checked(e){return e?{[EX]:``}:{[DX]:``}},...Kq};function kX(e,t,n,r){let i=!1,a=!1,o=r??JK;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function AX(e,t,n){let r=n??JK;return{reason:e,event:t??new Event(`base-ui`),...r}}var jX=R.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!1,checked:l=!1,onCheckedChange:u,style:d,...f}=e,{store:p}=uY(),m=yX({guess:!0,label:a}),h=TX(i),g=p.useState(`disabled`),_=p.useState(`isActive`,m.index),v=p.useState(`floatingNodeId`),y=p.useState(`itemProps`),b=s||g,{getItemProps:x,itemRef:S}=gX({closeOnClick:c,disabled:b,highlighted:_,id:h,store:p,nativeButton:o,nodeId:v,itemMetadata:hX}),C=R.useMemo(()=>({disabled:b,highlighted:_,checked:l}),[b,_,l]);function w(e){let t=kX(MY,e.nativeEvent,void 0,{preventUnmountOnClose:KK});u?.(!l,t)}let T=fq(`div`,e,{state:C,stateAttributesMapping:OX,props:[y,{role:`menuitemcheckbox`,"aria-checked":l,onClick:w},f,x],ref:[S,t,m.ref]});return(0,z.jsx)(ZY.Provider,{value:C,children:T})}),MX=R.forwardRef(function(e,t){let{checked:n,defaultChecked:r,onCheckedChange:i,...a}=e,[o,s]=GY({controlled:n,default:r??!1,name:`MenuCheckboxItem`,state:`checked`}),c=XY(e,t);function l(e,t){i?.(e,t),t.isCanceled||s(e)}return c.visible?(0,z.jsx)(jX,{...a,checked:o,onCheckedChange:l,ref:c.ref}):null}),NX=R.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=QY(),c=R.useRef(null),{transitionStatus:l,mounted:u,setMounted:d}=qq(s.checked);return Uq({batch:!0,enabled:!s.checked,open:s.checked,ref:c,onComplete(){s.checked||d(!1)}}),fq(`span`,e,{state:{checked:s.checked,disabled:s.disabled,highlighted:s.highlighted,transitionStatus:l},ref:[t,c],stateAttributesMapping:OX,props:{"aria-hidden":!0,...o},enabled:a||u})}),PX=R.createContext(void 0);function FX(){let e=R.useContext(PX);if(e===void 0)throw Error(bq(31));return e}var IX=R.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=R.useState(void 0),c=fq(`div`,e,{ref:t,props:{role:`group`,"aria-labelledby":o,...a}});return(0,z.jsx)(PX.Provider,{value:s,children:c})}),LX=R.forwardRef(function(e,t){let n=qY()?.Group??IX;return(0,z.jsx)(n,{...e,ref:t})}),RX=R.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=TX(a),c=FX();return Q(()=>(c(s),()=>{c(e=>e===s?void 0:e)}),[c,s]),fq(`div`,e,{ref:t,props:{id:s,"aria-hidden":!0,...o}})}),zX=R.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,{store:d}=uY(),f=yX({guess:!0,label:a}),p=TX(i),m=d.useState(`disabled`),h=d.useState(`isActive`,f.index),g=d.useState(`floatingNodeId`),_=d.useState(`itemProps`),v=s||m,{getItemProps:y,itemRef:b}=gX({closeOnClick:c,disabled:v,highlighted:h,id:p,store:d,nativeButton:o,nodeId:g,itemMetadata:hX});return fq(`div`,e,{state:{disabled:v,highlighted:h},props:[_,u,y],ref:[b,t,f.ref]})}),Oee=R.forwardRef(function(e,t){let n=XY(e,t);return n.visible?(0,z.jsx)(zX,{...e,ref:n.ref}):null});function BX(e){e.preventDefault(),e.stopPropagation()}function VX(e){return`nativeEvent`in e}function HX(e){return e.pointerType===``&&e.isTrusted?!0:sX&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function UX(e){return fX?!1:!sX&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(sX||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function WX(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function GX(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function KX(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function qX(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&se(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function JX(e,t){let n=e;for(;n;){if(ve(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(se(n)?n.host:null)}return null}function YX(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var XX=`data-base-ui-focusable`,ZX=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,QX=`ArrowLeft`,$X=`ArrowRight`,eZ=`ArrowUp`,tZ=`ArrowDown`,nZ=`data-trigger-disabled`;function rZ(e,t){if(!ve(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(nZ);for(let[,e]of t.entries())if(qX(e,n))return!e.hasAttribute(nZ);return!1}function iZ(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function aZ(e){return e.matches(`html,body`)}function oZ(e){return ae(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function sZ(e){return JX(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ZX}`)!=null}function cZ(e){return e?e.getAttribute(`role`)===`combobox`&&oZ(e):!1}function lZ(e){if(!e||fX)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function uZ(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function dZ(e,t){return t!=null&&!WX(t)?0:typeof e==`function`?e():e}function fZ(e,t,n){let r=dZ(e,n);return typeof r==`number`?r:r?.[t]}function pZ(e){return typeof e==`function`?e():e}function mZ(e,t){return t||e===`click`||e===`mousedown`}function hZ(e){return e?.includes(`mouse`)&&e!==`mousedown`}var gZ=R.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Qq,currentIdRef:{current:null},currentContextRef:{current:null}});function _Z(e,t){e.current=t.current}function vZ(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=R.useRef(n),a=R.useRef(n),o=R.useRef(null),s=R.useRef(null),c=$q();return Q(()=>{a.current=n,o.current?i.current={open:fZ(i.current,`open`),close:fZ(n,`close`)}:i.current=n},[n,o,i,a]),(0,z.jsx)(gZ.Provider,{value:R.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function yZ(e,t={open:!1}){let{open:n}=t,r=e.useState(`floatingId`),{currentIdRef:i,delayRef:a,timeoutMs:o,initialDelayRef:s,currentContextRef:c,hasProvider:l,timeout:u}=R.useContext(gZ),[d,f]=R.useState(!1),p=R.useRef(n);return Q(()=>{p.current=n},[n]),Q(()=>{function t(){c.current?.setIsInstantPhase(!1),i.current=null,c.current=null,a.current=s.current,u.clear()}if(i.current&&!n&&i.current===r){if(f(!1),o){let n=r;return u.start(o,()=>{e.select(`open`)||i.current&&i.current!==n||t()}),()=>{(p.current||i.current!==n)&&u.clear()}}t()}},[n,r,i,a,o,s,c,u,e]),Q(()=>{if(!n)return;let t=c.current,o=i.current;u.clear(),c.current={onOpenChange:e.setOpen,setIsInstantPhase:f},i.current=r,a.current={open:0,close:fZ(s.current,`close`)},o!==null&&o!==r?(f(!0),t?.setIsInstantPhase(!0),t?.onOpenChange(!1,kX(DY))):(f(!1),t?.setIsInstantPhase(!1))},[n,r,e,i,a,s,c,u]),Q(()=>()=>{if(i.current===r){if(c.current=null,!p.current)return;i.current=null,_Z(a,s),u.clear()}},[c,i,a,r,s,u]),R.useMemo(()=>({activeIdRef:i,hasProvider:l,delayRef:a,isInstantPhase:d}),[i,l,a,d])}function bZ(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function xZ(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function SZ(e){let t=FK(CZ,e).current;return t.next=e,Q(t.effect),t}function CZ(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var wZ={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},TZ={...wZ,position:`fixed`,margin:0,top:0,left:0},EZ={...wZ,position:`absolute`},DZ=R.forwardRef(function(e,t){let[n,r]=R.useState();Q(()=>{dX&&uX&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,z.jsx)(`span`,{...e,ref:t,style:TZ,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function OZ(e,t){return t<0||t>=e.length}function kZ(e,t){return MZ(e.current,{disabledIndices:t})}function AZ(e,t){return MZ(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function jZ(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>MZ(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:OZ(e,u)?-1:u,wrapped:d}}function MZ(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&NZ(e,a,r));return a}function NZ(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!FZ(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function PZ(e){return e.visibility===`hidden`||e.visibility===`collapse`}function FZ(e,t=e?g(e):null){return!e||!e.isConnected||!t||PZ(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var IZ=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function LZ(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return se(n)?n.host:null}function RZ(e){for(let t of Array.from(e.children))if(v(t)===`summary`)return t;return null}function zZ(e,t){let n=RZ(t);return!!n&&(e===n||qX(n,e))}function BZ(e){let t=e?v(e):``;return e!=null&&e.matches(IZ)&&(t!==`summary`||e.parentElement!=null&&v(e.parentElement)===`details`&&RZ(e.parentElement)===e)&&(t!==`details`||RZ(e)==null)&&(t!==`input`||e.type!==`hidden`)}function VZ(e){if(!BZ(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=LZ(t)){let n=t!==e,r=v(t)===`slot`;if(t.hasAttribute(`inert`)||n&&v(t)===`details`&&!t.open&&!zZ(e,t)||t.hasAttribute(`hidden`)||!r&&!HZ(t,n))return!1}return!0}function HZ(e,t){let n=g(e);return t?n.display!==`none`:FZ(e,n)}function UZ(e){let t=e.tabIndex;if(t<0){let t=v(e);if(t===`details`||t===`audio`||t===`video`||ae(e)&&e.isContentEditable)return 0}return t}function WZ(e){if(v(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function GZ(e,t){let n=WZ(e);if(!n)return!0;let r=t.find(e=>{let t=WZ(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=WZ(e);return t?.name===n.name&&t.form===n.form})===n}function KZ(e){if(ae(e)&&v(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return ae(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function qZ(e,t){KZ(e).forEach(e=>{BZ(e)&&t.push(e),qZ(e,t)})}function JZ(e,t,n){KZ(e).forEach(e=>{ae(e)&&e.matches(t)&&n.push(e),JZ(e,t,n)})}function YZ(e){return VZ(e)&&UZ(e)>=0}function XZ(e){let t=[];return qZ(e,t),t.filter(VZ)}function ZZ(e){let t=XZ(e);return t.filter(e=>UZ(e)>=0&&GZ(e,t))}function QZ(e,t){let n=ZZ(e),r=n.length;if(r===0)return;let i=KX(tY(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function $Z(e){return QZ(tY(e).body,1)||e}function eQ(e){return QZ(tY(e).body,-1)||e}function tQ(e,t,n){if(!e)return null;let r=[];qZ(tY(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(VZ);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!qX(n,o)&&YZ(o)&&GZ(o,a))return o}return r[i]}function nQ(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!qX(n,r)}function rQ(e){ZZ(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function iQ(e){let t=[];JZ(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function aQ(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...aQ(e,t.id,n)])}function oQ(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function sQ(e){return`data-base-ui-${e}`}var cQ=0;function lQ(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(cQ);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),KK;let o=requestAnimationFrame(a);return cQ=o,()=>{cQ===o&&(cancelAnimationFrame(o),cQ=0)}}var uQ=`data-base-ui-inert`,dQ=new WeakMap,fQ=new WeakSet,pQ=new WeakMap,mQ=0;function hQ(e){return e?se(e)?e.host:hQ(e.parentNode):null}var gQ=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=hQ(t);return e.contains(n)?n:null}).filter(e=>e!=null),_Q=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},vQ=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{v(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function yQ(e,t,n,{mark:r=!0}){let i=gQ(t,e),a=r?vQ(t,_Q(i),new Set(i)):[],o=[],s=[];if(n){let e=gQ(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);vQ(t,_Q(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(dQ.get(e)||0)+1;dQ.set(e,r),o.push(e),r===1&&n&&fQ.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(pQ.get(e)||0)+1;pQ.set(e,t),s.push(e),t===1&&e.setAttribute(uQ,``)}),mQ+=1,()=>{o.forEach(e=>{let t=(dQ.get(e)||0)-1;dQ.set(e,t),t||(fQ.has(e)||e.removeAttribute(`aria-hidden`),fQ.delete(e))}),r&&s.forEach(e=>{let t=(pQ.get(e)||0)-1;pQ.set(e,t),t||e.removeAttribute(uQ)}),--mQ,mQ||(dQ=new WeakMap,fQ=new WeakSet,pQ=new WeakMap)}}function bQ(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=tY(e[0]).body;return yQ(e,i,n,{mark:r})}var xQ={style:{transition:`none`}},SQ=`data-base-ui-click-trigger`,CQ={fallbackAxisSide:`none`},wQ={fallbackAxisSide:`end`},TQ={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},EQ=R.createContext(null),DQ=()=>R.useContext(EQ),OQ=sQ(`portal`);function kQ(e={}){let{ref:t,container:n,componentProps:r=JK,elementProps:i}=e,a=wX(),o=DQ()?.portalNode,[s,c]=R.useState(null),[l,u]=R.useState(null),d=Oq(e=>{e!==null&&u(e)}),f=R.useRef(null);Q(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(I(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=fq(`div`,r,{ref:[t,d],props:[{id:a,[OQ]:``},i]}),m=s&&p?Oy.createPortal(p,s):null;return{node:l,nodeId:R.isValidElement(p)?p.props.id:void 0,subtree:m}}var AQ=R.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=kQ({container:o,ref:t,componentProps:e,elementProps:c}),f=R.useRef(null),p=R.useRef(null),m=R.useRef(null),h=R.useRef(null),[g,_]=R.useState(null),v=R.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;R.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&nQ(e)&&(e.type===`focusin`?v.current&&=(iQ(l),!1):(rQ(l),v.current=!0))}return xZ(bZ(l,`focusin`,e,!0),bZ(l,`focusout`,e,!0))},[l,y]),Q(()=>{l&&b===!0&&v.current&&(iQ(l),v.current=!1)},[b,l]);let S=R.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,z.jsxs)(R.Fragment,{children:[d,(0,z.jsxs)(EQ.Provider,{value:S,children:[x&&l&&(0,z.jsx)(DZ,{"data-type":`outside`,ref:f,onFocus:e=>{nQ(e,l)?m.current?.focus():eQ(g?g.domReference:null)?.focus()}}),x&&l&&(0,z.jsx)(`span`,{role:s,"aria-owns":u,style:TQ}),l&&Oy.createPortal(a,l),x&&l&&(0,z.jsx)(DZ,{"data-type":`outside`,ref:p,onFocus:e=>{nQ(e,l)?h.current?.focus():($Z(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,kX(`focus-out`,e.nativeEvent)))}})]})]})});function jQ(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var MQ=class{nodesRef={current:[]};events=jQ();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},NQ=R.createContext(null),PQ=R.createContext(null),FQ=()=>R.useContext(NQ)?.id||null,IQ=e=>{let t=R.useContext(PQ);return e??t};function LQ(e){let t=wX(),n=IQ(e),r=FQ();return Q(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function RQ(e){let{children:t,id:n}=e,r=FQ();return(0,z.jsx)(NQ.Provider,{value:R.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function zQ(e){let{children:t,externalTree:n}=e,r=FK(()=>n??new MQ).current;return(0,z.jsx)(PQ.Provider,{value:r,children:t})}function BQ(e,t){let n=k(YX(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(HX(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var VQ=20,HQ=[];function UQ(){HQ=HQ.filter(e=>e.deref()?.isConnected)}function WQ(e){UQ(),e&&v(e)!==`body`&&(HQ.push(new WeakRef(e)),HQ.length>VQ&&(HQ=HQ.slice(-20)))}function GQ(){return UQ(),HQ[HQ.length-1]?.deref()}function KQ(e){return e?YZ(e)?e:ZZ(e)[0]||e:null}function qQ(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=XZ(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return YZ(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function JQ(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),y=t.useState(`floatingElement`),{events:b,dataRef:x}=t.context,S=Oq(()=>x.current.floatingContext?.nodeId),C=i===!1,w=cZ(_)&&C,T=SZ(i),E=SZ(a),D=SZ(o),O=SZ(u),k=SZ(g),A=IQ(m),j=DQ(),M=R.useRef(!1),N=R.useRef(!1),P=R.useRef(!1),F=R.useRef(null),I=R.useRef(``),L=R.useRef(``),ee=R.useRef(null),te=R.useRef(null),ne=IK(ee,p,j?.beforeInsideRef),re=IK(te,j?.afterInsideRef),ie=$q(),oe=$q(),se=Fq(),ce=j!=null,le=uZ(y),ue=Oq((e=le)=>e?ZZ(e):[]),de=Oq(()=>h?.().filter(e=>e!=null)??[]);R.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&qX(le,KX(tY(le)))&&ue().length===0&&!w&&BX(e)}return bZ(tY(le),`keydown`,e)},[r,le,c,w,ue]),R.useEffect(()=>{if(r||!g)return;let e=tY(le);function t(){P.current=!1}function n(e){let t=YX(e),n=de(),r=qX(y,t)||qX(_,t)||qX(j?.portalNode,t)||n.some(e=>e===t||qX(e,t));P.current=!r,L.current=e.pointerType||`keyboard`,JX(t,`[data-base-ui-click-trigger]`)&&(N.current=!0,oe.start(0,()=>{N.current=!1}))}function i(){L.current=`keyboard`}return xZ(bZ(e,`pointerdown`,n,!0),bZ(e,`pointerup`,t,!0),bZ(e,`pointercancel`,t,!0),bZ(e,`keydown`,i,!0),t)},[r,y,_,le,g,j,oe,de]),R.useEffect(()=>{if(r||!l)return;let e=tY(le);function n(){N.current=!0,oe.start(0,()=>{N.current=!1})}function i(e){let t=YX(e);YZ(t)&&(F.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=YX(n);c&&r==null&&a!=null&&qX(y,a)&&WQ(a),queueMicrotask(()=>{let o=S(),l=t.context.triggerElements,u=de(),p=r?.hasAttribute(sQ(`focus-guard`))&&[ee.current,te.current,j?.beforeInsideRef.current,j?.afterInsideRef.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,Iq(f),Iq(d)].includes(r),m=!(qX(_,r)||qX(y,r)||qX(r,y)||qX(j?.portalNode,r)||u.some(e=>e===r||qX(e,r))||l.hasMatchingElement(e=>qX(e,r))||p||A&&(aQ(A.nodesRef.current,o).find(e=>qX(e.context?.elements.floating,r)||qX(e.context?.elements.domReference,r))||oQ(A.nodesRef.current,o).find(e=>[e.context?.elements.floating,uZ(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&le&&qQ(le),s&&i!==_&&!FZ(a)&&KX(e)===e.body){if(ae(le)&&(le.focus(),s===`popup`)){se.request(()=>{le.focus()});return}let e=ue(),t=F.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||le;ae(n)&&n.focus()}x.current.insideReactTree?x.current.insideReactTree=!1:(w||!c)&&r&&m&&!N.current&&(w||r!==GQ())&&(M.current=!0,t.setOpen(!1,kX(NY,n)))})}function o(){P.current||(x.current.insideReactTree=!0,ie.start(0,()=>{x.current.insideReactTree=!1}))}let u=ae(_)?_:null;if(y||u)return xZ(u&&bZ(u,`focusout`,a),u&&bZ(u,`pointerdown`,n),y&&bZ(y,`focusin`,i),y&&bZ(y,`focusout`,a),y&&j&&bZ(y,`focusout`,o,!0))},[r,_,y,le,c,A,j,t,l,s,ue,w,S,x,ie,oe,se,d,f,de]),R.useEffect(()=>{if(r||!y||!g)return;let e=Array.from(j?.portalNode?.querySelectorAll(`[${sQ(`portal`)}]`)||[]),t=(A?oQ(A.nodesRef.current,S()):[]).find(e=>cZ(e.context?.elements.domReference||null))?.context?.elements.domReference,n=bQ([y,...e,ee.current,te.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,...de(),t,Iq(f),Iq(d),w?_:null].filter(e=>e!=null),{ariaHidden:c||w,mark:!1}),i=bQ([y,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,y,c,j,w,A,S,d,f,de]),Q(()=>{if(!g||r||!ae(le))return;I.current=``,L.current=``;let e=tY(le),t=KX(e);queueMicrotask(()=>{let n=T.current,r=typeof n==`function`?n(O.current||``):n;if(r===void 0||r===!1||qX(le,t))return;let i=null,a=()=>(i??=ue(le),i[0]||le),o;o=r===!0||r===null?a():Iq(r),o||=a();let s=qX(le,KX(e)),c=x.current.openEvent,l=c?.type===`mousedown`&&HX(c);lQ(o,{sync:l,preventScroll:o===le,shouldFocus(){if(!k.current)return!1;if(s)return!0;let t=KX(e);return!(t!==o&&qX(le,t))}})})},[r,g,le,ue,T,O,k,x]);let fe=R.useRef(null);Q(()=>{if(r||!le){fe.current=null;return}fe.current&&=(fe.current.cancelled=!0,null);let e=tY(le),t=KX(e),n=O.current==null;WQ(t);function i(e){if(e.open||(I.current=BQ(e.nativeEvent,L.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(sQ(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(M.current=!0),e.reason===`outside-press`){if(e.nested)M.current=!1;else if(HX(e.nativeEvent)||UX(e.nativeEvent))M.current=!1;else{let e=!1;tY(le).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?M.current=!1:M.current=!0}}}b.on(`openchange`,i);function a(e){let r=E.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&v(t)!==`body`?t:null,s=n?o||a:a||o;return s||=GQ()||null,typeof i==`boolean`?s:Iq(i)||s||null}return()=>{b.off(`openchange`,i);let t=KX(e),n=de(),r=qX(y,t)||n.some(e=>e===t||qX(e,t))||A&&aQ(A.nodesRef.current,S(),!1).some(e=>qX(e.context?.elements.floating,t)),o=E.current,s=I.current,c=a(s),l={cancelled:!1};fe.current=l,queueMicrotask(()=>{fe.current===l&&(fe.current=null);let n=KQ(c),i=D.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!M.current&&ae(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}M.current=!1})}},[r,y,le,E,D,O,b,A,_,S,de]),Q(()=>{if(!uX||g||!y)return;let e=KX(tY(y));ae(e)&&oZ(e)&&qX(y,e)&&e.blur()},[g,y]),Q(()=>{if(!r&&j)return j.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{j.setFocusManagerState(null)}},[r,j,c,g,t,l,_]),Q(()=>{if(!r&&le)return qQ(le),()=>{queueMicrotask(UQ)}},[r,le]);let pe=!r&&(!c||!w)&&(ce||c);return(0,z.jsxs)(R.Fragment,{children:[pe&&(0,z.jsx)(DZ,{"data-type":`inside`,ref:ne,onFocus:e=>{if(c){let e=ue();lQ(e[e.length-1])}else j?.portalNode&&(M.current=!1,nQ(e,j.portalNode)?$Z(_)?.focus():Iq(f??j.beforeOutsideRef)?.focus())}}),n,pe&&(0,z.jsx)(DZ,{"data-type":`inside`,ref:re,onFocus:e=>{c?lQ(ue()[0]):j?.portalNode&&(l&&(M.current=!0),nQ(e,j.portalNode)?eQ(_)?.focus():Iq(d??j.afterOutsideRef)?.focus())}})]})}function YQ(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=OY}=t,l=e.context.dataRef,u=R.useRef(void 0),d=Fq(),f=$q(),p=R.useMemo(()=>{function t(t,n,r,i){let a=kX(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=WX(e.pointerType,!0)&&UX(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||WX(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=YX(s),p=oZ(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:WX(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return R.useMemo(()=>n?{reference:p}:JK,[n,p])}function XQ(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,(!i||c)&&(d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function ZQ(e){return e!=null&&e.clientX!=null}function QQ(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=e.useState(`open`),a=e.useState(`floatingElement`),o=e.useState(`domReferenceElement`),s=e.context.dataRef,c=R.useRef(!1),l=R.useRef(null),[u,d]=R.useState(),[f,p]=R.useState([]),m=Oq(t=>{e.set(`positionReference`,t)}),h=Oq((t,n,i)=>{c.current||(!s.current.openEvent||ZQ(s.current.openEvent))&&e.set(`positionReference`,XQ(i??o,{x:t,y:n,axis:r,dataRef:s,pointerType:u}))}),g=Oq(e=>{i?l.current||(h(e.clientX,e.clientY,e.currentTarget),p([])):h(e.clientX,e.clientY,e.currentTarget)}),_=WX(u)?a:i;R.useEffect(()=>{if(!n){m(o);return}if(!_)return;function e(){l.current?.(),l.current=null}let t=k(a);function r(t){let n=YX(t);qX(a,n)?e():h(t.clientX,t.clientY)}return!s.current.openEvent||ZQ(s.current.openEvent)?l.current=bZ(t,`mousemove`,r):m(o),e},[_,n,a,s,o,e,h,m,f]),R.useEffect(()=>()=>{e.set(`positionReference`,null)},[e]),R.useEffect(()=>{n&&!a&&(c.current=!1)},[n,a]),R.useEffect(()=>{!n&&i&&(c.current=!0)},[n,i]);let v=R.useMemo(()=>{function e(e){d(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return R.useMemo(()=>n?{reference:v,trigger:v}:{},[n,v])}function $Q(){return!1}function e$(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function t$(e,t={}){let{enabled:n=!0,escapeKey:i=!0,outsidePress:a=!0,outsidePressEvent:o=`sloppy`,referencePress:s=$Q,bubbles:c,externalTree:l}=t,u=e.useState(`open`),d=e.useState(`floatingElement`),{dataRef:f,events:p}=e.context,m=IQ(l),h=Oq(typeof a==`function`?a:()=>!1),_=typeof a==`function`?h:a,v=_!==!1,y=Oq(()=>o),{escapeKey:b,outsidePress:x}=e$(c),S=R.useRef(!1),C=R.useRef(!1),w=R.useRef(!1),T=R.useRef(!1),E=R.useRef(!1),D=R.useRef(``),O=R.useRef(null),k=$q(),A=$q(),j=$q(),M=Oq(()=>{A.clear(),f.current.insideReactTree=!1}),N=Oq(e=>{let t=f.current.floatingContext?.nodeId;return(m?aQ(m.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),P=Oq(t=>iZ(t,e.select(`floatingElement`))||iZ(t,e.select(`domReferenceElement`))),F=Oq(t=>{s()&&e.setOpen(!1,kX(OY,t.nativeEvent))}),I=Oq(t=>{if(!u||!n||!i||t.key!==`Escape`)return;let r=VX(t)?t.nativeEvent:t;if(E.current||r.isComposing||!b&&N(`__escapeKeyBubbles`))return;let a=kX(PY,r);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!b&&!a.isPropagationAllowed&&t.stopPropagation()}),L=Oq(()=>{f.current.insideReactTree=!0,A.start(0,M)}),ee=Oq(t=>{if(!u||!n||t.button!==0)return;let r=YX(t.nativeEvent);qX(e.select(`floatingElement`),r)&&(S.current||(S.current=!0,C.current=!1))}),te=Oq(e=>{u&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&S.current&&(C.current=!0)});R.useEffect(()=>{function e(e){e.open||(T.current=!1)}return p.on(`openchange`,e),()=>{p.off(`openchange`,e)}},[p]),R.useEffect(()=>M,[M]),R.useEffect(()=>{if(!u||!n)return u||(T.current=!1,E.current=!1,D.current=``,O.current=null),M;f.current.__escapeKeyBubbles=b,f.current.__outsidePressBubbles=x;let t=new Qq,a=tY(d);function o(){j.clear(),E.current=!0}function s(){E.current=!0,j.start(uX?5:0,()=>{E.current=!1})}function c(){w.current=!0,t.start(0,()=>{w.current=!1})}function l(){S.current=!1,C.current=!1}function p(){let e=D.current,t=e===`pen`||!e?`mouse`:e,n=y(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function h(e){let t=p();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function A(e){let t=f.current.floatingContext?.nodeId,n=m&&aQ(m.nodesRef.current,t).some(t=>iZ(e,t.context?.elements.floating));return P(e)||n}function F(n){if(h(n)){n.type!==`click`&&!P(n)&&(t.clear(),w.current=!1),M();return}if(f.current.insideReactTree){M();return}let i=YX(n),a=`[${sQ(`inert`)}]`,o=ve(i)?i.getRootNode():null,s=Array.from((se(o)?o:tY(e.select(`floatingElement`))).querySelectorAll(a)),c=e.context.triggerElements;if(i&&(c.hasElement(i)||c.hasMatchingElement(e=>qX(e,i))))return;let l=ve(i)?i:null;for(;l&&!me(l);){let e=r(l);if(me(e)||!ve(e))break;l=e}if(!(s.length&&ve(i)&&!aZ(i)&&!qX(i,e.select(`floatingElement`))&&s.every(e=>!qX(l,e)))){if(ae(i)&&!(`touches`in n)){let e=me(i),t=g(i),r=/auto|scroll/,a=e||r.test(t.overflowX),o=e||r.test(t.overflowY),s=a&&i.clientWidth>0&&i.scrollWidth>i.clientWidth,c=o&&i.clientHeight>0&&i.scrollHeight>i.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=i.offsetWidth-i.clientWidth:n.offsetX>i.clientWidth),d=s&&n.offsetY>i.clientHeight;if(u||d)return}if(!A(n)){if(p()===`intentional`){if(n.detail!==0&&!HX(n)&&!T.current)return;if(w.current){t.clear(),w.current=!1;return}}typeof _==`function`&&!_(n)||N(`__outsidePressBubbles`)||(e.setOpen(!1,kX(jY,n)),M())}}}function L(t){p()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!P(t)&&F(t)}function ee(t){if(p()!==`sloppy`||!e.select(`open`)||!n||P(t))return;let r=t.touches[0];r&&(O.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},k.start(1e3,()=>{O.current&&(O.current.dismissOnTouchEnd=!1,O.current.dismissOnMouseDown=!1)}))}function te(e,t){let n=YX(e);if(!n)return;let r=bZ(n,e.type,()=>{t(e),r()})}function ne(e){D.current=`touch`,te(e,ee)}function re(e){k.clear(),e.type===`pointerdown`&&(e.button===0&&(T.current=!0),D.current=e.pointerType),(e.type!==`mousedown`||!O.current||O.current.dismissOnMouseDown)&&te(e,e=>{e.type===`pointerdown`?L(e):F(e)})}function ie(e){if(e.type===`pointercancel`&&(T.current=!1),!S.current)return;let n=C.current;l(),p()===`intentional`&&(e.type===`pointercancel`?n&&c():A(e)||(n?c():(typeof _!=`function`||_(e))&&(t.clear(),w.current=!0,M())))}function oe(e){if(p()!==`sloppy`||!O.current||P(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-O.current.startX),r=Math.abs(t.clientY-O.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(O.current.dismissOnTouchEnd=!0),i>10&&(F(e),k.clear(),O.current=null)}function ce(e){te(e,oe)}function le(e){p()===`sloppy`&&O.current&&!P(e)&&(O.current.dismissOnTouchEnd&&F(e),k.clear(),O.current=null)}function ue(e){te(e,le)}let de=xZ(i&&xZ(bZ(a,`keydown`,I),bZ(a,`compositionstart`,o),bZ(a,`compositionend`,s)),v&&xZ(bZ(a,`click`,re,!0),bZ(a,`pointerdown`,re,!0),bZ(a,`pointerup`,ie,!0),bZ(a,`pointercancel`,ie,!0),bZ(a,`mousedown`,re,!0),bZ(a,`mouseup`,ie,!0),bZ(a,`touchstart`,ne,{capture:!0,passive:!0}),bZ(a,`touchmove`,ce,{capture:!0,passive:!0}),bZ(a,`touchend`,ue,{capture:!0,passive:!0})));return()=>{de(),t.clear(),l(),w.current=!1}},[f,d,i,v,_,u,n,b,x,I,M,y,N,P,m,e,k,j]);let ne=R.useMemo(()=>({onKeyDown:I,onPointerDown:F,onClick:F}),[I,F]),re=R.useMemo(()=>({onKeyDown:I,onPointerDown:te,onMouseDown:te,onClickCapture:L,onMouseDownCapture(e){L(),ee(e)},onPointerDownCapture(e){L(),ee(e)},onMouseUpCapture:L,onTouchEndCapture:L,onTouchMoveCapture:L}),[I,L,ee,te]);return R.useMemo(()=>n?{reference:ne,floating:re,trigger:ne}:{},[n,ne,re])}function n$(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),Q(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};ve(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function r$(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=Oq(i),{mounted:c,setMounted:l,transitionStatus:u}=qq(t,!1,!1,o),d=!t&&r;Q(()=>{t&&s(!1)},[t,s]);let f=R.useRef(c),p=R.useRef(!1),m=bX(),h=()=>{f.current=!1,l(!1),a()};Q(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=Oq(()=>{f.current&&(t?(p.current=!0,m()):h())});return Uq({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var i$={tabIndex:-1,[XX]:``};function a$(e){return t=>t!==`touch`||e.current}function o$(e,t=!1){let n=wX(),r=FQ()!=null,i=FK(()=>e(n,r)).current;return n$({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function s$({handle:e,store:t}){return Q(()=>e.attachStore(t),[e,t]),null}function c$(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function l$(e,t){let n=R.useRef(null);return Oq(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;let a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),c$(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),c$(t))})}function u$(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function d$(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function f$(e,t,n,r={}){let i=n.reason,a=i===kY,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=d$(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i=u$(e.state,t,n.trigger,c()),l={...r.extraState,...i};o?l.instantType=`focus`:s?l.instantType=`dismiss`:a&&(l.instantType=void 0),e.update(l)};a?Oy.flushSync(l):l()}function p$(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=l$(e,n),o=Oq(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){let e={activeTriggerElement:t,...i?r:null};n.update(e)}else if(a==null&&i&&!n.state.openedWithoutTrigger){let i={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(i)}}),s=Oq(e=>{a(e),e&&o(e)});return Q(()=>(s(t.current),()=>s(null)),[s,t,n,e]),Q(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function m$(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=R.useRef(null),i=e.useState(`open`);Q(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=kX(DY);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function h$(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=r$({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return FK(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function g$(e,t){e.useSyncedValues(t),Q(()=>()=>{e.update({activeTriggerProps:JK,inactiveTriggerProps:JK,popupProps:JK})},[e])}function _$(e,t){Q(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),Q(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var v$=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},y$=[],b$=void 0;function x$(){return b$}function S$(e){y$.push(e)}function C$(e){let t=(t,n)=>{let r=FK(T$).current,i;try{b$=r;for(let e of y$)e.before(r);i=e(t,n);for(let e of y$)e.after(r);r.didInitialize=!0}finally{b$=void 0}return i};return t.displayName=e.displayName||e.name,t}function w$(e){return R.forwardRef(C$(e))}function T$(){return{didInitialize:!1}}var E$=UK(19)?k$:A$;function D$(e,t,n,r,i){return E$(e,t,n,r,i)}function O$(e,t,n,r,i){let a=R.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,YH.useSyncExternalStore)(e.subscribe,a,a)}S$({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,YH.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function k$(e,t,n,r,i){let a=x$();if(!a)return O$(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function A$(e,t,n,r,i){return(0,XH.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var j$=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return D$(this,e,t,n,r)}},M$=class extends j${constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){R.useDebugValue(e);let n=this;Q(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;Q(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Q(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){R.useDebugValue(e);let n=this,r=t!==void 0;Q(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return R.useDebugValue(e),D$(this,this.selectors[e],t,n,r)}useContextCallback(e,t){R.useDebugValue(e);let n=Oq(t??KK);this.context[e]=n}useStateSetter(e){let t=R.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},N$={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},P$=class extends M${constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:jQ(),nested:n,triggerElements:i},N$),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&GX(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function F$(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new P$({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:JK,inactiveTriggerProps:JK,popupProps:JK}}var I$=e=>e.triggerIdProp??e.activeTriggerId,L$=e=>e.openProp??e.open,R$=e=>(e.popupElement?.id??e.floatingId)||void 0;function z$(e,t){return t!==void 0&&L$(e)&&I$(e)===t}function B$(e,t){return z$(e,t)?!0:t!==void 0&&L$(e)&&I$(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var V$={open:L$,mounted:e=>e.mounted,transitionStatus:e=>L$(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:I$,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:R$,isTriggerActive:(e,t)=>t!==void 0&&I$(e)===t,isOpenedByTrigger:(e,t)=>z$(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&I$(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>B$(e,t)?R$(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function H$(e){let t=R.useCallback(t=>e===void 0?KK:e.subscribeStore(t),[e]),n=R.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,YH.useSyncExternalStore)(t,n,()=>e?.serverStore)}function U$(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=wX(),a=FQ()!=null,o=FK(()=>new P$({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new v$,floatingId:i,syncOnly:!1,nested:a})).current;return Q(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=ve(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}var W$=cX&&uX;function G$(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=R.useRef(!1),s=R.useRef(null),c=R.useRef(!0),l=$q();R.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=k(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&ae(t)&&t===KX(tY(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return xZ(bZ(r,`blur`,i),W$&&bZ(r,`keydown`,a,!0),W$&&bZ(r,`pointerdown`,l,!0))},[e,n]),R.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);ve(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=R.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=YX(n.nativeEvent);if(ve(a)){if(W$&&!n.relatedTarget){if(!c.current&&!oZ(a))return}else if(!lZ(a))return}let u=rZ(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,kX(AY,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,kX(AY,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=ve(r)&&r.hasAttribute(sQ(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=KX(tY(t));!r&&n===t||qX(a.current.floatingContext?.refs.floating.current,n)||qX(t,n)||o||rZ(r??n,e.context.triggerElements)||e.setOpen(!1,kX(AY,i))})}}},[a,r,e,l]);return R.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var K$=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new Qq;restTimeout=new Qq;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},q$=new WeakMap;function J$(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&q$.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),q$.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Y$(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=q$.get(n);a&&a!==e&&J$(a),J$(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,q$.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function X$(e){let t=e.context.dataRef.current,n=FK(()=>t.hoverInteractionState??K$.create()).current;return t.hoverInteractionState||=n,jq(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Z$(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState(`open`),o=e.useState(`floatingElement`),s=e.useState(`domReferenceElement`),{dataRef:c}=e.context,l=IQ(),u=FQ(),d=X$(e),f=$q(),p=Oq(()=>mZ(c.current.openEvent?.type,d.interactedInside)),m=Oq(()=>hZ(c.current.openEvent?.type)),h=Oq(()=>{J$(d)});Q(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),R.useEffect(()=>h,[h]),Q(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&ve(s)&&o){let e=s,t=o,n=tY(o),r=l?.nodesRef.current.find(e=>e.id===u)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=d.pointerEventsScopeElement===t?null:d.pointerEventsScopeElement,a=r===t?null:r,c=d.handleCloseOptions?.getScope?.()??i??a??JX(e,`[data-rootownerid]`)??n.body;return Y$(d,{scopeElement:c,referenceElement:e,floatingElement:t}),()=>{h()}}},[n,a,s,o,d,m,l,u,h]),R.useEffect(()=>{if(!n)return;function t(){return!!(l&&u&&aQ(l.nodesRef.current,u).length>0)}function a(t){let n=fZ(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,kX(kY,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=YX(e);sZ(t)?d.interactedInside=JX(t,`[aria-haspopup]`)!=null:d.interactedInside=!1}function g(){d.openChangeTimeout.clear(),f.clear(),l?.events.off(`floating.closed`,v),h()}function _(n){if(t()&&l){l.events.on(`floating.closed`,v);return}if(rZ(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&ve(o)&&aQ(l.nodesRef.current,r,!1).some(e=>qX(e.context?.elements.floating,o))||(d.handler?d.handler(n):(h(),m()&&!p()&&a(n)))}function v(n){l&&u&&!t()&&f.start(0,()=>{l.events.off(`floating.closed`,v),e.setOpen(!1,kX(kY,n)),l.events.emit(`floating.closed`,n)})}let y=o;return xZ(y&&bZ(y,`mouseenter`,g),y&&bZ(y,`mouseleave`,_),y&&bZ(y,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var Q$={current:null};function $$(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Q$,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:h,events:g}=e.context,_=IQ(l),v=X$(e),y=R.useRef(!1),b=SZ(i),x=SZ(r),S=SZ(o),C=SZ(n),w=SZ(p),T=SZ(f),E=Oq(()=>mZ(h.current.openEvent?.type,v.interactedInside)),D=Oq(()=>w.current?.()!==!1),O=Oq((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!qX(t,n);if(!ve(r))return!1;let a=r;return i.hasMatchingElement(e=>qX(e,a))&&(!t||!qX(t,a))}),k=Oq(()=>{v.handler&&=(tY(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=Oq(()=>{J$(v)});return u&&(v.handleCloseOptions=i?.__options),R.useEffect(()=>k,[k]),R.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===kY,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),R.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=fZ(x.current,`close`,v.pointerType);r?v.openChangeTimeout.start(r,()=>{e.setOpen(!1,kX(kY,t)),_?.events.emit(`floating.closed`,t)}):n&&(v.openChangeTimeout.clear(),e.setOpen(!1,kX(kY,t)),_?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!ve(r))return;function i(t){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!WX(v.pointerType))return;let n=pZ(S.current),r=fZ(x.current,`open`,v.pointerType),i=YX(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(ve(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(qX(t,i)){c=t;break}}ve(o)&&ve(s)&&!e.context.triggerElements.hasElement(o)&&qX(o,s)&&(c=s);let l=c!=null&&O(s,c,i),u=e.select(`open`),d=T.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&y.current,p=!l&&ve(c)&&ve(s)&&qX(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?D()&&e.setOpen(!0,kX(kY,t,c)):m||(r?v.openChangeTimeout.start(r,()=>{g&&D()&&e.setOpen(!0,kX(kY,t,c))}):g&&D()&&e.setOpen(!0,kX(kY,t,c)))}function o(n){if(E()){A();return}k();let r=tY(e.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let i=h.current.floatingContext??d?.();if(!rZ(n.relatedTarget,e.context.triggerElements)){if(b.current&&i){e.select(`open`)||v.openChangeTimeout.clear();let a=c.current;v.handler=b.current({...i,tree:_,x:n.clientX,y:n.clientY,onClose(){A(),k(),C.current&&!E()&&a===e.select(`domReferenceElement`)&&t(n,!0)}}),r.addEventListener(`mousemove`,v.handler),v.handler(n)}else v.pointerType===`touch`&&qX(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){qX(r,e.relatedTarget)||(v.openChangeTimeout.clear(),v.restTimeout.clear(),v.restTimeoutPending=!1)}let f=m?bZ(r,`mouseout`,l):void 0;return s?xZ(bZ(r,`mousemove`,i,{once:!0}),bZ(r,`mouseenter`,i),bZ(r,`mouseleave`,o),f):xZ(bZ(r,`mouseenter`,i),bZ(r,`mouseleave`,o),f)},[k,A,h,x,e,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D,m]),R.useMemo(()=>{if(!n)return;function t(e){v.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=O(i,r,t.target);if(a&&!WX(v.pointerType))return;if(o&&s&&v.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=v.handleCloseOptions?.getScope?.()??r.ownerDocument.body;Y$(v,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=pZ(S.current);if(o&&!s||c===0||!s&&v.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;v.restTimeout.clear();function l(){if(v.restTimeoutPending=!1,E())return;let t=e.select(`open`);!v.blockMouseMove&&(!t||s)&&D()&&e.setOpen(!0,kX(kY,n,r))}v.pointerType===`touch`?Oy.flushSync(()=>{l()}):s&&o?l():(v.restTimeoutPending=!0,v.restTimeout.start(c,l))}}},[n,v,E,O,a,e,S,D])}function e1(e){return uX&&e.movementX===0&&e.movementY===0}function t1(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function n1(e,t){return t1(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function r1(e,t,n){return t1(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function i1(e,t,n){return t1(t,n?e===QX:e===$X,e===tZ)}function a1(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:t1(t,n?e===$X:e===QX,e===eZ)}function o1(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,triggerOrientation:_=g,parentOrientation:v,id:y,resetOnPointerLeave:b=!0,externalTree:x,nestedReturnFocusRef:S,grid:C}=t,w=C!=null,T=e.useState(`open`),E=e.useState(`floatingElement`),D=e.useState(`domReferenceElement`),O=e.context.dataRef,k=uZ(E),A=cZ(D),j=SZ(k),M=FQ(),N=IQ(x),P=R.useRef(f),F=R.useRef(o??-1),I=R.useRef(null),L=R.useRef(!0),ee=Oq(e=>{i(F.current===-1?null:F.current,e)}),te=R.useRef(!!E),ne=R.useRef(T),re=R.useRef(!1),ie=R.useRef(!1),oe=R.useRef(null),se=SZ(h),ce=SZ(T),le=SZ(o),ue=SZ(b),de=Fq(),fe=Fq(),pe=Oq(()=>{de.cancel();function e(e){d||(oe.current=lQ(e,{sync:re.current,preventScroll:!0}))}let t=n.current[F.current],r=ie.current;t&&e(t),(re.current?e=>e():e=>de.request(e))(()=>{let i=n.current[F.current]||t;i&&(t||e(i),ye&&(r||!L.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});Q(()=>{O.current.orientation=g},[O,g]),Q(()=>{T||(I.current=null),T&&f===`auto`||(P.current=f)},[T,f]),Q(()=>{a&&(T&&E?(F.current=o??-1,P.current&&o!=null&&(ie.current=!0,ee())):te.current&&(F.current=-1,ee()))},[a,T,E,o,ee]),Q(()=>{if(a){if(!T)re.current=!1;else if(E){if(r==null){if(re.current=!1,le.current!=null)return;if(te.current&&(F.current=-1,pe()),(!ne.current||!te.current)&&P.current&&(I.current!=null||P.current===!0&&I.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>fe.request(e):queueMicrotask)(t),e+=1):(F.current=I.current==null||r1(I.current,_,u)||l?kZ(n):AZ(n),I.current=null,ee())};t()}}else OZ(n.current,r)||(F.current=r,pe(),ie.current=!1)}}},[a,T,E,r,le,l,n,_,u,ee,pe,fe]),Q(()=>{if(!a||E||!N||d||!te.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===M)?.context?.elements.floating,n=KX(tY(D??t??null)),r=e.some(e=>e.context&&qX(e.context.elements.floating,n));t&&!r&&L.current&&t.focus({preventScroll:!0})},[a,E,D,N,M,d]),Q(()=>{ne.current=T,te.current=!!E});let me=r!=null,he=Oq(e=>{if(!ce.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(F.current!==t||r!==t)&&(F.current=t,ee(e))}),ge=Oq(()=>v??N?.nodesRef.current.find(e=>e.id===M)?.context?.dataRef?.current.orientation),_e=Oq(()=>kZ(n,se.current)),ve=Oq(t=>{if(L.current=!1,re.current=!0,t.which===229||!ce.current&&t.currentTarget===j.current)return;if(l&&a1(t.key,g,u,w)){n1(t.key,ge())||BX(t),e.setOpen(!1,kX(FY,t.nativeEvent));let n=S?.current??D;ae(n)&&n.focus();return}r!=null&&r!==F.current&&!OZ(n.current,r)&&(F.current=r);let i=F.current,a=kZ(n,h),o=AZ(n,h);if(A||(t.key===`Home`&&(BX(t),F.current=a,ee(t)),t.key===`End`&&(BX(t),F.current=o,ee(t))),C!=null){let e=C(t,F.current,n,g,c,u,h,a,o);if(e!=null&&e!==F.current&&(F.current=e,ee(t)),g===`both`)return}if(n1(t.key,g)){BX(t);let e=KX(t.currentTarget.ownerDocument);if(T&&!d&&qX(t.currentTarget,e)&&!n.current.some(t=>t!=null&&qX(t,e))){F.current=r1(t.key,g,u)?a:o,ee(t),r===F.current&&pe();return}let{index:l,wrapped:f}=jZ(n.current,i,{decrement:!r1(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(re.current=!1),F.current=l,ee(t)}}),ye=R.useMemo(()=>({onFocus(e){re.current=!0,he(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){e1(e)||(re.current=!0,ie.current=!1,p&&he(e))},onPointerLeave(e){if(!ce.current||!L.current||e.pointerType===`touch`)return;re.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&ue.current&&(oe.current?.(),oe.current=null,F.current=-1,ee(e),!d)){let e=j.current,t=KX(tY(e));e&&qX(e,t)&&e.focus({preventScroll:!0})}}}),[he,ce,j,p,n,ee,ue,d]),be=R.useMemo(()=>d&&T&&me&&{"aria-activedescendant":`${y}-${r}`},[d,T,me,y,r]),xe=R.useMemo(()=>({...A?{}:be,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&T&&!d){let n=YX(t.nativeEvent);if(n&&!qX(j.current,n))return;BX(t);let r=kX(NY,t.nativeEvent);e.setOpen(!1,r);let i=S?.current??D;!r.isCanceled&&ae(i)&&i.focus()}else ve(t)},onPointerMove(e){e1(e)||(L.current=!0)}}),[be,ve,j,A,e,T,d,D,S]),Se=R.useMemo(()=>{function t(t){e.setOpen(!0,kX(FY,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&HX(e.nativeEvent)&&(P.current=!d)}function r(e){P.current=f,f===`auto`&&UX(e.nativeEvent)&&(P.current=!0)}return{onKeyDown(n){let r=e.select(`open`);L.current=!1;let i=n.key.startsWith(`Arrow`),a=i1(n.key,ge(),u),o=n1(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||oZ(n.currentTarget)))return ve(n);if(r||m||!i){if(s){let e=n1(n.key,ge());I.current=l&&e?null:n.key}l?a&&(BX(n),r?(F.current=_e(),ee(n),d&&j.current?.focus()):t(n)):o&&(le.current!=null&&(F.current=le.current),BX(n),!r&&m?t(n):ve(n),r&&ee(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(F.current=-1,ee(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[ve,f,_e,l,ee,e,m,g,_,ge,u,le,d,j]),Ce=R.useMemo(()=>({...be,...Se}),[be,Se]);return R.useMemo(()=>a?{reference:Ce,floating:xe,item:ye,trigger:Se}:{},[a,Ce,xe,Se,ye])}function s1(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=Oq(s),f=e.useState(`open`),p=$q(),m=R.useRef(``),h=R.useRef(u??i??-1),g=R.useRef(null),_=Oq(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!FZ(n)||n?.matches(`:disabled`)?!1:o==null||!NZ(qK,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(BX(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(BX(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),v=Oq(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);qX(r,n)||qX(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});Q(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let y=R.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return R.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var c1=.1,l1=c1*c1,u1=.5;function d1(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function f1(e,t,n,r,i,a,o,s,c,l){let u=!1;return d1(e,t,n,r,i,a)&&(u=!u),d1(e,t,i,a,o,s)&&(u=!u),d1(e,t,o,s,c,l)&&(u=!u),d1(e,t,c,l,n,r)&&(u=!u),u}function p1(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function m1(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function h1(e={}){let{blockPointerEvents:t=!1}=e,n=new Qq,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*l1;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=YX(r),g=r.type===`mouseleave`,_=qX(u,h),v=qX(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&ve(r.relatedTarget)&&qX(u,r.relatedTarget))return;function y(){return!!(s&&aQ(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=m1(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=m1(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=m1(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=m1(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!p1(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?u1/2:u1*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+u1+1,o=C||T?S.bottom-u1:S.top,s=C?T?S.bottom-u1:S.top:S.bottom-u1;M=f1(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?u1/2:u1*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-u1,o=C||T?S.top+u1:S.bottom,s=C?T?S.top+u1:S.bottom:S.top+u1;M=f1(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?u1/2:u1*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+u1+1,o=w||E?S.right-u1:S.left,s=w?E?S.right-u1:S.left:S.right-u1;M=f1(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?u1/2:u1*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-u1,o=w||E?S.left+u1:S.right,s=w?E?S.left+u1:S.right:S.left+u1;M=f1(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var g1=R.createContext(void 0);function _1(e){let t=R.useContext(g1);if(t===void 0&&!e)throw Error(bq(69));return t}var v1=`ArrowUp`,y1=`ArrowDown`,b1=`ArrowLeft`,x1=`ArrowRight`,S1=new Set([v1,y1,b1,x1,`Home`,`End`]),C1=[`Shift`,`Control`,`Alt`,`Meta`];function w1(e){return ae(e)&&e.tagName===`INPUT`}function T1(e){return!!(w1(e)&&e.selectionStart!=null||ae(e)&&e.tagName===`TEXTAREA`)}function E1(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=D1(e,t,`left`),a=O1(e),o=O1(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=D1(e,t,`top`),r=O1(e),i=O1(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function D1(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function O1(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function k1(e){return e===`starting`?xQ:JK}var A1=R.createContext(void 0);function j1(){return R.useContext(A1)}function M1(e,t){let n=gq(e.render);if(R.isValidElement(n)){let e=n.props;if(Object.hasOwn(e,`id`))return e.id??``}return e.id??t}function N1(e,t,n){let r=M1(e,t),i=r===t?void 0:r;return[r,R.useCallback(e=>n?.(e?i:void 0),[i,n])]}function P1(e,t,n){let r=gq(e.render),i=R.isValidElement(r)?r.props:void 0,a=e[`aria-label`]??i?.[`aria-label`],o=e[`aria-labelledby`]??i?.[`aria-labelledby`];return o==null&&!a&&(o=t?t.id||void 0:n||void 0),o}var F1=R.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,id:o,initialFocus:s,...c}=e,{store:l,defaultFloatingId:u,setRenderedFloatingId:d,virtualFocus:f,orientation:p}=uY(),m=j1(),{side:h,align:g}=cY(),_=_1(!0)!=null,v=l.useState(`open`),y=l.useState(`transitionStatus`),b=l.useState(`popupProps`),x=l.useState(`mounted`),S=l.useState(`instantType`),C=l.useState(`activeTriggerElement`),w=l.useState(`parent`),T=l.useState(`lastOpenChangeReason`),E=l.useState(`rootId`),D=l.useState(`floatingRootContext`),O=l.useState(`floatingTreeRoot`),k=l.useState(`closeDelay`),A=l.useState(`hoverEnabled`),j=l.useState(`disabled`),M=l.useState(`openMethod`),N=l.useState(`activeTriggerId`),P=l.useState(`listElement`),[F,I]=N1(e,u,d),L=P1(e,C,N),ee=w.type===`menu`?m:void 0,te=w.type===`context-menu`,ne=s??w.type!==`menu`;s===void 0&&P&&w.type!==`menu`&&(ne=()=>l.state.activeIndex===null&&P),Uq({open:v,ref:l.context.popupRef,onComplete(){v&&l.context.onOpenChangeComplete?.(!0)}}),R.useEffect(()=>{function e(e){l.setOpen(!1,kX(e.reason,e.domEvent))}return O.events.on(`close`,e),()=>{O.events.off(`close`,e)}},[O.events,l]),Z$(D,{enabled:A&&!j&&!te&&w.type!==`menubar`,closeDelay:k});let re=l.useStateSetter(`popupElement`),{parentVirtualFocusRef:ie,handleFocus:ae}=(R.useContext(KY)?.useParentHandoff??L1)(l,w,v,f),oe=fq(`div`,e,{state:{transitionStatus:y,side:h,align:g,open:v,nested:w.type===`menu`,instant:S},ref:[t,l.context.popupRef,re,I],stateAttributesMapping:wY,props:[b,{id:F,...P?{role:`presentation`}:{role:`menu`,"aria-orientation":p===`horizontal`?`horizontal`:void 0,"aria-labelledby":L},onKeyDown(e){ee?.onPopupKeyDown?.(e),_&&S1.has(e.key)&&e.stopPropagation()},onFocus:ae},k1(y),c,{"data-rootownerid":E}]}),se=w.type===void 0||te;(C||w.type===`menubar`&&T!==`outside-press`)&&(se=!0);let ce=ee?.getReturnElement??ie;return(0,z.jsx)(JQ,{context:D,openInteractionType:M,modal:te,disabled:!x,returnFocus:a??ce??se,explicitReturnFocus:a===void 0&&ce?!1:void 0,initialFocus:ne,restoreFocus:!0,getInsideElements:w.type===void 0?()=>[l.context.beforeTriggerFocusGuardRef.current]:void 0,externalTree:w.type===`menubar`?void 0:O,previousFocusableElement:C,nextFocusableElement:w.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:oe})}),I1={parentVirtualFocusRef:void 0,handleFocus:void 0};function L1(){return I1}var R1=R.forwardRef(function(e,t){let n=qY()?.Popup??F1;return(0,z.jsx)(n,{...e,ref:t})}),z1=R.createContext(void 0);function B1(){let e=R.useContext(z1);if(e===void 0)throw Error(bq(32));return e}var V1=R.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=uY();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,z.jsx)(z1.Provider,{value:n,children:(0,z.jsx)(AQ,{ref:t,...r,portalOwnerRole:o})})});function H1(e){return UK(19)?e:e?`true`:void 0}function U1(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=R.useState(null),d=R.useRef(null),f=IQ(n),p=R.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=ue({...e,elements:{...p,...l&&{reference:l}}}),h=R.useCallback(e=>{let t=ve(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=R.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=R.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),v=R.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return Q(()=>{o&&(d.current=o)},[o]),Q(()=>{r.context.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),R.useMemo(()=>({...m,context:v,refs:g,elements:_,rootStore:r}),[m,g,_,v,r])}var W1=R.createContext(void 0);function G1(){return R.useContext(W1)?.direction??`ltr`}var K1=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=te(e,t)||{};if(l==null)return{};let d=le(u),f={x:n,y:r},p=O(i),m=A(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=s.floating[y]||a.floating[m],C=b/2-x/2,w=S/2-h[m]/2-1,E=Math.min(d[_],w),D=Math.min(d[v],w),k=E,j=S-h[m]-D,M=S/2-h[m]/2+C,N=T(k,M,j),P=!c.arrow&&ye(i)!=null&&M!==N&&a.reference[m]/2-(M<k?E:D)-h[m]/2<0,F=P?M<k?M-k:M-j:0;return{[p]:f[p]+F,data:{[p]:N,centerOffset:M-N-F,...P&&{alignmentOffset:F}},reset:P}}}),q1=(e,t)=>{let{name:n,fn:r}=K1(e);return{name:n,fn:r,options:[e,t]}},J1={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},Y1={sideX:`left`,sideY:`top`},X1=`--available-width`,Z1=`--available-height`,Q1=`--anchor-width`,$1=`--anchor-height`,e0=`--transform-origin`,t0=X1,n0=Z1;function r0(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function i0(e,t,n){let{rects:r,placement:i}=e;return{side:r0(t,ne(i),n),align:ye(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function a0(e){return o0(e,U1)}function o0(e,t){let{anchor:n,positionMethod:r=`absolute`,side:o=`bottom`,sideOffset:s=0,align:l=`center`,alignOffset:d=0,collisionBoundary:f,collisionPadding:m=5,sticky:g=!1,arrowPadding:_=5,disableAnchorTracking:v=!1,inline:y,keepMounted:b=!1,floatingRootContext:x,mounted:S,collisionAvoidance:C,shift:w,nodeId:T,adaptiveOrigin:E,lazyFlip:D=!1,externalTree:O}=e,A=C.side||`flip`,j=C.align||`flip`,M=C.fallbackAxisSide||`end`,P=w?.crossAxis??!1,F=w?.rootBoundary,I=typeof n==`function`?n:void 0,L=Oq(I),ee=I?L:n,te=SZ(n),re=SZ(S),ie=G1()===`rtl`,[ae,oe]=R.useState(null);!S&&ae!==null&&oe(null);let se=D===`placement`,ce=ae?ne(ae):null,le=ae&&se?ye(ae)||`center`:null,ue=ce||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":ie?`left`:`right`,"inline-start":ie?`right`:`left`}[o],de=le||l,fe=de===`center`?ue:`${ue}-${de}`,pe=m;typeof pe==`number`?pe={top:pe,right:pe,bottom:pe,left:pe}:pe&&={top:pe.top||0,right:pe.right||0,bottom:pe.bottom||0,left:pe.left||0};let me=+(o===`bottom`),he=+(o===`top`),ge=+(o===`right`),_e=+(o===`left`),ve={boundary:f===`clipping-ancestors`?`clippingAncestors`:f,padding:pe},be=R.useRef(null),xe=SZ(s),Se=SZ(d),Ce=typeof s==`function`?0:s,we=typeof d==`function`?0:d,Te=[];y&&Te.push(y),Te.push(h(e=>{let t=i0(e,o,ie),n=typeof xe.current==`function`?xe.current(t):xe.current,r=typeof Se.current==`function`?Se.current(t):Se.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[Ce,we,ie,o]));let Ee=j===`none`&&A!==`shift`,De=!Ee&&(g||P||A===`shift`),Oe=A===`none`?null:i({...ve,padding:{top:pe.top+1+me,right:pe.right+1+_e,bottom:pe.bottom+1+he,left:pe.left+1+ge},mainAxis:!P&&A===`flip`,crossAxis:j===`flip`&&`alignment`,fallbackAxisSideDirection:M}),ke=Ee?null:a({...ve,rootBoundary:F,mainAxis:j!==`none`,crossAxis:De,limiter:g||P?void 0:p(e=>{if(!be.current)return{};let{width:t,height:n}=be.current.getBoundingClientRect(),r=N(ne(e.placement)),i=r===`y`?t:n,a=r===`y`?pe.left+pe.right:pe.top+pe.bottom;return{offset:i/2+a/2}})},[ve,g,P,F,pe,j]);A===`shift`||j===`shift`||de===`center`?Te.push(ke,Oe):Te.push(Oe,ke),Te.push(u({...ve,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!re.current)return;let i=e.style;i.setProperty(t0,`${t}px`),i.setProperty(n0,`${n}px`);let a=k(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(Q1,`${u}px`),i.setProperty($1,`${d}px`)}}),q1(e=>({element:be.current||tY(e.elements.floating).createElement(`div`),padding:be.current?_:0}),[_]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:i,rects:a,y:c}=e,l=ne(r),u=ye(r),d=N(l)===`y`,f=be.current,p=typeof s==`function`?s(i0(e,o,ie)):s,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&i.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return De&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${a.reference.y+a.reference.height/2-c}px`),t.style.setProperty(e0,d?`${m} ${h}`:`${h} ${m}`),{}}},J1,E),Q(()=>{!S&&x&&x.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[S,x]);let Ae=R.useMemo(()=>({ancestorScroll:!v,elementResize:!v&&typeof ResizeObserver<`u`,layoutShift:!v&&typeof IntersectionObserver<`u`}),[v]),{refs:je,elements:Me,x:Ne,y:Pe,middlewareData:Fe,update:Ie,placement:Le,context:Re,isPositioned:ze,floatingStyles:Be}=t({rootContext:x,open:b?S:void 0,placement:fe,middleware:Te,strategy:r,whileElementsMounted:b?void 0:(...e)=>c(...e,Ae),nodeId:T,externalTree:O}),{sideX:Ve,sideY:He}=Fe.adaptiveOrigin||Y1,Ue=ze?r:`fixed`,We=R.useMemo(()=>{let e;return e=ze?E?{position:Ue,[Ve]:Ne,[He]:Pe}:{...Be,position:Ue}:{position:Ue,top:0,left:0},e[t0]=`100vw`,e[n0]=`100vh`,ze||(e.opacity=0),e},[E,Ue,Ve,Ne,He,Pe,Be,ze]),Ge=R.useRef(null);Q(()=>{if(!S)return;let e=te.current,t=typeof e==`function`?e():e,n=(s0(t)?t.current:t)||null;n!==Ge.current&&(je.setPositionReference(n),Ge.current=n)},[S,je,ee,te]),R.useEffect(()=>{if(!S)return;let e=te.current;typeof e!=`function`&&s0(e)&&e.current!==Ge.current&&(je.setPositionReference(e.current),Ge.current=e.current)},[S,je,ee,te]),R.useEffect(()=>{if(b&&S&&Me.reference&&Me.floating)return c(Me.reference,Me.floating,Ie,Ae)},[b,S,Me,Ie,Ae]);let Ke=ne(Le),qe=r0(o,Ke,ie),Je=ye(Le)||`center`,Ye=!!Fe.hide?.referenceHidden;Q(()=>{D&&S&&ze&&(Ke!==ue||se&&Je!==de)&&oe(Le)},[D,se,S,ze,Le,Ke,Je,ue,de]);let Xe=R.useMemo(()=>({position:`absolute`,top:Fe.arrow?.y,left:Fe.arrow?.x}),[Fe.arrow]),Ze=Fe.arrow?.centerOffset!==0;return R.useMemo(()=>({positionerStyles:We,arrowStyles:Xe,arrowRef:be,arrowUncentered:Ze,side:qe,align:Je,physicalSide:Ke,anchorHidden:Ye,refs:je,context:Re,isPositioned:ze,update:Ie}),[We,Xe,be,Ze,qe,Je,Ke,Ye,je,Re,ze,Ie])}function s0(e){return e!=null&&`current`in e}function c0(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=Oq(i),[,o]=R.useState(0),s=FK(u0).current,c=FK(l0).current,l=R.useRef(0),u=R.useRef(!0),d=R.useRef(null),f=R.useRef(null),p=Oq(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=Oq((e,t)=>{c.set(e,t),p()}),h=Oq(e=>{c.delete(e),p()}),g=Oq(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!p0(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&m0(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=f0(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=Oq(()=>{let[e,t]=d0(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});Q(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),Q(()=>{u.current&&v()}),Q(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=Oq(e=>(s.add(e),()=>{s.delete(e)})),b=R.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,z.jsx)(_X.Provider,{value:b,children:t})}function l0(){return new Map}function u0(){return new Set}function d0(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>m0(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function f0(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function p0(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function m0(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var h0=R.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,z.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function g0(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=R.useRef(null),o=R.useRef(null),s=Hq(r);Q(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),Q(()=>{let e=n,r=a.current;if(e&&(a.current=e),!r||!e||e===r||!t.select(`open`))return;t.set(`instantType`,void 0);let i=new AbortController;return o.current=i,s(()=>{t.select(`open`)&&t.set(`instantType`,`trigger-change`)},i.signal),()=>{i.abort()}},[n,s,t])}function _0(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),fq(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},k1(r),i],stateAttributesMapping:CY})}var v0={},y0={},b0=``;function x0(e,t){return S(e)?e:t}function S0(e,t,n){return/hidden|clip/.test(e.getComputedStyle(x0(t,n)).overflowY)}function C0(e){if(typeof document>`u`)return!1;let t=tY(e);return k(t).innerWidth-t.documentElement.clientWidth>0}function w0(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=tY(e),n=t.documentElement,r=t.body,i=x0(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function T0(e){let t=tY(e),n=t.documentElement,r=t.body,i=x0(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function E0(e){let t=tY(e),n=t.documentElement,r=t.body,i=k(n),a=0,o=0,s=!1,c=Pq.create();if(uX&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,v0={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},b0=n.style.scrollBehavior,y0={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=x0(n,r);s=w0(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,v0),Object.assign(r.style,y0),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=b0)}function d(){u(),c.request(l)}l();let f=bZ(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var D0=new class{lockCount=0;restore=null;timeoutLock=Qq.create();timeoutUnlock=Qq.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=tY(e),n=t.documentElement,r=t.body,i=k(n);if(S0(i,n,r)){let t=new i.MutationObserver(()=>{S0(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=aX||!C0(e);this.restore=a?T0(e):E0(e)}};function O0(e=!0,t=null){Q(()=>{if(e)return D0.acquire(t)},[e,t])}var k0=20;function A0(e,t,n,r){let[i,a]=R.useState(!1);Q(()=>{if(!e||!t||n==null){a(!1);return}let r=tY(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-k0)},[e,t,n]),O0(e&&(!t||i),r)}var j0=R.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=CQ,style:g,..._}=e,{store:v,virtualFocus:y,syncHighlightedItem:b}=uY(),x=B1(),S=EY(!0),C=v.useState(`parent`),w=v.useState(`floatingRootContext`),T=v.useState(`floatingTreeRoot`),E=v.useState(`mounted`),D=v.useState(`open`),O=v.useState(`modal`),k=v.useState(`openMethod`),A=v.useState(`activeTriggerElement`),j=v.useState(`transitionStatus`),M=v.useState(`positionerElement`),N=v.useState(`instantType`),P=v.useState(`adaptiveOrigin`),F=v.useState(`lastOpenChangeReason`),I=v.useState(`floatingNodeId`),L=v.useState(`floatingParentNodeId`),ee=w.useState(`domReferenceElement`),te=n,ne=c,re=l,ie=s,ae=h;C.type===`context-menu`&&(te=n??C.context?.anchor,ie??=`start`,!o&&ie!==`center`&&(re=e.alignOffset??2,ne=e.sideOffset??-5));let oe=o,se=ie;C.type===`menu`?(oe??=`inline-end`,se??=`start`,ae=e.collisionAvoidance??wQ):C.type===`menubar`&&(oe??=C.context.orientation===`vertical`?`inline-end`:`bottom`,se??=`start`);let ce=C.type===`context-menu`,le=a0({anchor:te,floatingRootContext:w,positionMethod:S?`fixed`:r,mounted:E,side:oe,sideOffset:ne,align:se,alignOffset:re,arrowPadding:ce?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:I,keepMounted:x,disableAnchorTracking:m,collisionAvoidance:ae,shift:ce?{crossAxis:!(`side`in ae&&ae.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:T,adaptiveOrigin:P,lazyFlip:y?`placement`:!1});R.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===I&&v.set(`hoverEnabled`,!1),e.nodeId!==I&&e.parentNodeId===v.select(`floatingParentNodeId`)&&v.setOpen(!1,kX(zY)))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[v,T.events,I]),R.useEffect(()=>{if(v.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==v.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;v.setOpen(!1,kX(t))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[T.events,v]);let ue=$q();R.useEffect(()=>{D||ue.clear()},[D,ue]),R.useEffect(()=>{function e(e){if(D&&e.nodeId===v.select(`floatingParentNodeId`)){if(e.target&&A&&A!==e.target){let e=v.select(`closeDelay`);e>0?ue.isStarted()||ue.start(e,()=>{v.setOpen(!1,kX(zY))}):v.setOpen(!1,kX(zY))}else ue.clear()}}return T.events.on(`itemhover`,e),()=>{T.events.off(`itemhover`,e)}},[T.events,D,A,v,ue]),R.useEffect(()=>{let e={open:D,nodeId:I,parentNodeId:L,reason:v.select(`lastOpenChangeReason`)};T.events.emit(`menuopenchange`,e)},[T.events,D,v,I,L]),g0({store:v,domReference:ee,positionerElement:M,open:D});let de={open:D,side:le.side,align:le.align,anchorHidden:le.anchorHidden,nested:C.type===`menu`,instant:N},fe=C.type===`menubar`&&C.context.modal;A0(D&&(fe||O&&F!==`trigger-hover`),k===`touch`,M,A);let pe=_0(e,de,{styles:le.positionerStyles,transitionStatus:j,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!E,inert:!D}),me=E&&C.type!==`menu`&&(C.type!==`menubar`&&O&&F!==`trigger-hover`||C.type===`menubar`&&C.context.modal),he=null;return C.type===`menubar`?he=C.context.contentElement:C.type===void 0&&(he=A),(0,z.jsxs)(sY.Provider,{value:le,children:[me&&(0,z.jsx)(h0,{ref:C.type===`context-menu`||C.type===`nested-context-menu`?C.context.internalBackdropRef:null,inert:H1(!D),cutout:he}),(0,z.jsx)(RQ,{id:I,children:(0,z.jsx)(c0,{elementsRef:v.context.itemDomElements,labelsRef:v.context.itemLabels,onMapChange:b,children:pe})})]})}),M0=R.createContext(null);function N0(e){let t=R.useContext(M0);if(t===null&&!e)throw Error(bq(5));return t}function P0(e){let t=R.useRef(``),n=R.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:R.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function F0(e,t){let n=R.useRef(e),r=Oq(t);Q(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function I0(e,t){let{onClick:n,onPointerDown:r}=P0(Oq((n,r)=>{(typeof e==`function`?e():e)||t(r||(aX?`touch`:``))}));return R.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function L0(e){let[t,n]=R.useState(null),r=I0(e,n);return F0(e,t=>{t&&!e&&n(null)}),R.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function R0(e){return e==null?DY:e.type.startsWith(`key`)?IY:e.type.startsWith(`mouse`)||e.type.startsWith(`pointer`)?LY:DY}var z0={...V$,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,keyboardOpen:e=>e.keyboardOpen,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,listElement:e=>e.listElement,triggerControlsId:(e,t)=>{let n=V$.triggerPopupId(e,t);return n?e.listElement?.id||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>uX&&e.inputFocused&&t?!0:void 0,highlightedItemId:e=>e.highlightedItem?.id||void 0,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType===`trigger-change`&&!V$.open(e)?void 0:e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},B0=class extends M${constructor(e,t,n=!1){let r=new v$,i=H0(r,t,n,e);super(i,V0(r),z0),this.observe(`parent`,e=>{e.type===`menu`?this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef:e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef)})}subscribeToParentMenu(){let e=this.state.parent;if(e.type!==`menu`)return;let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);return e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}setActiveIndex(e,t,n){if(this.state.activeIndex!==e){let r=(e===null?void 0:this.context.itemDomElements.current[e])===this.context.reportedItem;this.context.highlightReason=r?`none`:t,this.context.highlightEvent=r?void 0:n}this.set(`activeIndex`,e)}highlightItem(e,t,n){let r=this.context.itemDomElements.current.indexOf(e);r>-1&&this.setActiveIndex(r,t,n)}};function V0(e){return{positionerRef:R.createRef(),popupRef:R.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},highlightReason:`none`,highlightEvent:void 0,reportedItem:void 0,allowMouseUpTriggerRef:{current:!1},virtualFocusRef:void 0,triggerFocusTargetRef:R.createRef(),beforeTriggerFocusGuardRef:R.createRef(),beforeContentFocusGuardRef:R.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function H0(e,t,n=!1,r){return{...F$(e,t,n),disabled:!1,modal:!0,openMethod:null,keyboardOpen:!1,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,listElement:null,filterTriggerProps:JK,inputProps:JK,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new MQ,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:JK,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var U0=R.createContext(null);function W0(e,t){return(e===`trigger-press`||e===`item-press`)&&t?.detail===0}function G0(e,t){return e===`list-navigation`||W0(e,t)}var K0=C$(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,onItemHighlighted:a,defaultOpen:o=!1,disabled:s=!1,modal:c,loopFocus:l=!0,orientation:u=`vertical`,actionsRef:d,closeParentOnEsc:f=!1,handle:p,triggerId:m,defaultTriggerId:h=null,highlightItemOnHover:g=!0,isSubmenu:_=!1,virtualFocus:v=!1,virtualFocusRef:y,allowEscape:b=!0,resetOnPointerLeave:x=!0}=e,S=EY(!0),C=uY(!0),w=N0(!0),T=C?.store,E=C?.virtualFocus??!1,D=R.useMemo(()=>_&&T?{type:`menu`,store:T}:w?{type:`menubar`,context:w}:S&&!T?{type:`context-menu`,context:S}:{type:void 0},[S,T,w,_]),O=TX(),k=TX(),[A,j]=R.useState(void 0),M=(A??k)||void 0,N=FQ(),P=D.type===`menu`?D.store:void 0,F=(n??o)&&P?.state.transitionStatus===`starting`,I=FK(()=>F?P?.state.instantType:void 0).current,L=FK(()=>{let e=new B0({open:o,openProp:n,activeTriggerId:h,triggerIdProp:m,parent:D,disabled:s,highlightItemOnHover:g,modal:D.type===void 0?c:void 0,rootId:O,instantType:I},M,N!=null);return e.context.virtualFocusRef=y,e}).current;L.useControlledProp(`openProp`,n),L.useControlledProp(`triggerIdProp`,m),L.useContextCallback(`onOpenChangeComplete`,i);let ee=L.useState(`floatingTreeRoot`),te=LQ(ee),ne=L.useState(`open`),re=L.useState(`activeTriggerElement`),ie=L.useState(`positionerElement`),ae=L.useState(`hoverEnabled`),oe=L.useState(`disabled`),se=L.useState(`lastOpenChangeReason`),ce=L.useState(`parent`),le=L.useState(`activeIndex`),ue=L.useState(`keyboardOpen`),de=L.useState(`payload`),fe=L.useState(`floatingParentNodeId`),pe=R.useRef(null),me=R.useRef(ce.type!==`context-menu`),he=$q(),ge=R.useRef(!0),_e=$q(),ve=fe!=null,{openMethod:ye,triggerProps:be}=L0(ne);L.useSyncedValues({disabled:s,highlightItemOnHover:g,modal:ce.type===void 0?c:void 0,openMethod:ye,rootId:O}),m$(L);let{forceUnmount:xe,transitionStatus:Se}=h$(ne,L,()=>{L.set(`allowMouseEnter`,!1)},F),Ce=Hq(L.context.popupRef);R.useEffect(()=>{if(I===void 0)return;let e=()=>{L.state.instantType===I&&L.set(`instantType`,void 0)};if(!ne){e();return}if(Se!==void 0)return;if(L.context.popupRef.current==null){e();return}let t=new AbortController;return Ce(e,t.signal),()=>{t.abort()}},[I,ne,Se,Ce,L]),Q(()=>{S&&!C?L.update({parent:{type:`context-menu`,context:S},floatingNodeId:te,floatingParentNodeId:N}):(C||!L.select(`activeTriggerElement`))&&L.update({floatingNodeId:te,floatingParentNodeId:N})},[S,C,te,N,re,L]),R.useEffect(()=>{ne||(pe.current=null),ce.type===`context-menu`&&(ne?he.start(500,()=>{me.current=!0}):(he.clear(),me.current=!1))},[he,ne,ce.type]),Q(()=>{!ne&&!ae&&L.set(`hoverEnabled`,!0)},[ne,ae,L]);let we=Oq((e,t)=>{let n=t.reason;if(!e&&!L.select(`open`)||ne===e&&t.trigger===re&&se===n)return;let i=d$(t);if(!e&&t.trigger==null&&(t.trigger=re??void 0),r?.(e,t),t.isCanceled)return;L.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&n!==`item-press`&&a?.type===`click`&&a.pointerType===`touch`&&!ge.current)return;e&&n===`trigger-focus`?(ge.current=!1,_e.start(300,()=>{ge.current=!0})):(ge.current=!0,_e.clear());let o=!e&&(n===`escape-key`||n==null);pe.current=t.event;let s=u$(L.state,e,t.trigger,i());s.openChangeReason=n,s.keyboardOpen=e&&G0(n,a),s.instantType=ce.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:W0(n,a)?`click`:o?`dismiss`:void 0,L.update(s)}),Te=n$({popupStore:L,floatingRootContext:L.state.floatingRootContext,floatingId:M,nested:N!=null,onOpenChange:we}),Ee=Te.context.events;Q(()=>{let e=({open:e,eventDetails:t})=>we(e,t);return Ee.on(`setOpen`,e),()=>{Ee?.off(`setOpen`,e)}},[Ee,we]),Q(()=>L.subscribeToParentMenu(),[L]);let De=R.useCallback(()=>{L.setOpen(!1,kX(UY))},[L]);R.useImperativeHandle(d,()=>({unmount:xe,close:De}),[xe,De]);let Oe;ce.type===`context-menu`&&(Oe=ce.context),R.useImperativeHandle(Oe?.positionerRef,()=>ie,[ie]),R.useImperativeHandle(Oe?.actionsRef,()=>({setOpen:we}),[we]);let ke=t$(Te,{enabled:!oe,bubbles:{escapeKey:f&&ce.type===`menu`},outsidePress(){return ce.type!==`context-menu`||pe.current?.type===`contextmenu`||me.current},externalTree:ve?ee:void 0}),Ae=G1(),je=o1(Te,{enabled:!oe,listRef:L.context.itemDomElements,activeIndex:le,virtual:v,nested:ce.type===`menubar`||!v&&ce.type!==void 0,parentOrientation:ce.type===`menubar`?ce.context.orientation:void 0,loopFocus:l,focusItemOnOpen:v?ue:void 0,allowEscape:v&&l&&b,orientation:u,triggerOrientation:v?`vertical`:u,rtl:Ae===`rtl`,disabledIndices:qK,onNavigate(e,t){L.setActiveIndex(e,R0(t),t?.nativeEvent)},openOnArrowKeyDown:ce.type!==`context-menu`&&!(v&&_),externalTree:!v&&ve?ee:void 0,nestedReturnFocusRef:P?.context.virtualFocusRef,focusItemOnHover:g,resetOnPointerLeave:x}),Me=R.useCallback(e=>{L.context.typingRef.current=e},[L]),Ne=s1(Te,{enabled:!oe&&!v,listRef:L.context.itemLabels,elementsRef:L.context.itemDomElements,activeIndex:le,resetMs:500,onMatch:(e,t)=>{ne&&e!==le&&L.setActiveIndex(e,IY,t.nativeEvent)},onTyping:Me}),Pe=Oq(a),Fe=R.useRef(-1),Ie=Oq(()=>{let e=L.state.activeIndex,t=e===null?void 0:L.context.itemDomElements.current[e]??void 0;if(t?.isConnected===!1)return;let n=t===void 0?-1:e;if(Fe.current===n&&L.context.reportedItem===t)return;Fe.current=n,L.context.reportedItem=t,v&&L.set(`highlightedItem`,t);let{highlightReason:r,highlightEvent:i}=L.context;L.context.highlightReason=DY,L.context.highlightEvent=void 0,a&&Pe(t,AX(r,i,{label:t===void 0?void 0:L.context.itemLabels.current[n]??void 0}))});Q(()=>{Ie()},[le,Ie]);let Le=R.useMemo(()=>{if(!v)return je.reference;if(!je.trigger)return JK;let{onFocus:e,...t}=je.trigger;return t},[v,je.reference,je.trigger]);L.useSyncedValue(`inputProps`,v?je.reference??JK:JK);let Re=R.useMemo(()=>{let e=$K(Ne.reference,Le,ke.reference,{onMouseMove(){L.set(`allowMouseEnter`,!0)}},be);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=ne,e},[L,Ne.reference,Le,ke.reference,be,ne]),ze=R.useMemo(()=>{let e=$K(je.trigger,ke.trigger,be);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[je.trigger,ke.trigger,be]);FK(()=>(L.update({inactiveTriggerProps:ze}),null)),g$(L,{floatingRootContext:Te,activeTriggerProps:Re,inactiveTriggerProps:ze,popupProps:R.useMemo(()=>$K(i$,{onMouseMove(){L.set(`allowMouseEnter`,!0),ce.type===`menu`&&L.set(`hoverEnabled`,!1)},onClick(){L.select(`hoverEnabled`)&&L.set(`hoverEnabled`,!1)},onKeyDown(e){let t=L.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},Ne.floating,je.floating,ke.floating),[ce.type,L,Ne.floating,je.floating,ke.floating]),itemProps:je.item??JK});let Be=R.useMemo(()=>({store:L,parent:D,orientation:u,loopFocus:l,allowEscape:b,defaultFloatingId:k,setRenderedFloatingId:j,virtualFocus:v,parentVirtualFocus:E,syncHighlightedItem:Ie}),[L,D,u,l,b,k,v,E,Ie]),Ve=typeof t==`function`?t({payload:de}):t,He=(0,z.jsxs)(lY.Provider,{value:Be,children:[p&&(0,z.jsx)(s$,{handle:p,store:L}),Ve]});return(ce.type===void 0||ce.type===`context-menu`)&&(He=(0,z.jsx)(zQ,{externalTree:ee,children:He})),He});function q0(e){let t=R.useContext(U0);if(t===null)return(0,z.jsx)(K0,{...e});let n=t.Root;return(0,z.jsx)(U0.Provider,{value:null,children:(0,z.jsx)(n,{...t.options,...e})})}var J0={};function Y0(e){uY();let t=R.useContext(U0);if(t!==null){let n=t.SubmenuRoot;return(0,z.jsx)(U0.Provider,{value:null,children:(0,z.jsx)(n,{...t.options,...e})})}return(0,z.jsx)(A1.Provider,{value:J0,children:(0,z.jsx)(K0,{...e,isSubmenu:!0})})}var X0=5;function Z0(e,t){let n=Q0(t);return e.clientX>=n.left-X0&&e.clientX<=n.right+X0&&e.clientY>=n.top-X0&&e.clientY<=n.bottom+X0}function Q0(e){let t=e.getBoundingClientRect(),n=k(e);if(fX)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function $0(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=$J(),{ref:i,index:a}=yX(e),o=n===a,s=R.useRef(null),c=IK(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function e2(e){let{render:t,className:n,style:r,state:i=JK,props:a=qK,refs:o=qK,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=$0({metadata:s});return fq(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function t2(e){if(ae(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!me(e))return t2(r(e))}function n2(e,t){function n(n,r,i){let a=n.currentTarget;Oy.flushSync(()=>{e.setOpen(!1,kX(NY,n.nativeEvent,a))}),tQ(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&nQ(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function r2(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=R.useRef(!1);return R.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,tY(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:JK,[t,n,r])}var i2=w$(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,openOnHover:c,delay:l=100,closeDelay:u=0,handle:d,payload:f,...p}=e,m=uY(!0),h=H$(d)??m?.store;if(!h)throw Error(bq(85));let g=TX(s),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerControlsId`,g),x=R.useRef(null),S=o2(),C=$J(!0),w=IQ(),T=R.useMemo(()=>w??new MQ,[w]),{registerTrigger:E,isMountedByThisTrigger:D}=p$(g,x,h,{payload:f,closeDelay:u,parent:S,floatingTreeRoot:T,floatingNodeId:LQ(T),floatingParentNodeId:FQ(),keyboardEventRelay:C?.relayKeyboardEvent}),O=S.type===`menubar`,k=h.useState(`disabled`),A=a||k||O&&S.context.disabled,{getButtonProps:j,buttonRef:M}=rY({disabled:A,native:o});R.useEffect(()=>{!y&&S.type===void 0&&(h.context.allowMouseUpTriggerRef.current=!1)},[h,y,S.type]);let N=R.useRef(null),P=$q(),F=Oq(e=>{if(!N.current)return;P.clear(),h.context.allowMouseUpTriggerRef.current=!1;let t=e.target;qX(N.current,t)||qX(h.select(`positionerElement`),t)||t===N.current||t!=null&&t2(t)===h.select(`rootId`)||Z0(e,N.current)||T.events.emit(`close`,{domEvent:e,reason:RY})});R.useEffect(()=>{let e=tY(N.current);if(y&&h.select(`lastOpenChangeReason`)===`trigger-hover`)return e.addEventListener(`mouseup`,F,{once:!0}),()=>{e.removeEventListener(`mouseup`,F)}},[y,F,h]);let I=O&&S.context.hasSubmenuOpen,L=$$(v,{enabled:(c??I)&&!A&&(!O||I&&!D),handleClose:h1({blockPointerEvents:!O}),mouseOnly:!0,move:!1,restMs:S.type===void 0?l:void 0,delay:{close:u},triggerElementRef:x,externalTree:T,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),ee=a2(y,h.select(`lastOpenChangeReason`)),te=YQ(v,{enabled:!A,event:y&&O?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:S.type===void 0&&ee}),ne=G$(v,{enabled:!A&&I}),re=r2({open:y,enabled:O,mouseDownAction:`open`}),ie=R.useMemo(()=>$K(ne.reference,te.reference),[ne.reference,te.reference]),ae=h.useState(`triggerProps`,D),oe=h.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:se,handleFocusTargetFocus:ce}=n2(h,x),le={disabled:A,open:y},ue=[N,t,M,E,x],de=[ie,L??JK,ae,{"aria-haspopup":`menu`,"aria-controls":b,id:g,onMouseDown:e=>{h.select(`open`)||(P.start(200,()=>{h.context.allowMouseUpTriggerRef.current=!0}),tY(e.currentTarget).addEventListener(`mouseup`,F,{once:!0}))}},oe,O?{role:`menuitem`}:{},re,p,j],fe=fq(`button`,e,{enabled:!O,stateAttributesMapping:SY,state:le,ref:ue,props:de});return O?(0,z.jsx)(e2,{tag:`button`,render:n,className:r,style:i,state:le,refs:ue,props:de,stateAttributesMapping:SY}):y?(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(DZ,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:se},`${g}-pre-focus-guard`),(0,z.jsx)(R.Fragment,{children:fe},g),(0,z.jsx)(DZ,{ref:h.context.triggerFocusTargetRef,onFocus:ce},`${g}-post-focus-guard`)]}):(0,z.jsx)(R.Fragment,{children:fe},g)});function a2(e,t){let n=$q(),[r,i]=R.useState(!1);return Q(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function o2(){let e=N0(!0);return R.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}function s2(e){let[t,n]=R.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}var c2=R.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return fq(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function l2(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var u2={"aria-expanded":void 0},d2=R.forwardRef(function(e,t){let{render:n,className:r,style:i,label:a,id:o,nativeButton:s=!1,openOnHover:c=!0,delay:l=100,closeDelay:u=0,disabled:d=!1,...f}=e,p=uY(!0);if(p?.parent.type!==`menu`)throw Error(bq(37));let m=cY(),h=j1(),{store:g,parentVirtualFocus:_}=p,v=p.parent.store,y=yX({guess:!0,label:a}),b=TX(o),x=g.useState(`open`),S=R.useRef(!1),C=g.useState(`positionerElement`),w=g.useState(`floatingRootContext`),T=g.useState(`floatingTreeRoot`),E=g.useState(`triggerPopupId`,b),D=l$(b,g),O=Oq(e=>{D(e);let t=g.select(`activeTriggerElement`);e!==null&&g.select(`open`)&&(t===e||g.select(`activeTriggerId`)==null)&&g.update({activeTriggerId:b??null,activeTriggerElement:e,closeDelay:u})}),k=R.useRef(null),A=R.useCallback(e=>{k.current=e,g.set(`activeTriggerElement`,e)},[g]);Q(()=>(O(k.current),()=>O(null)),[O,b,g]),Q(()=>{if(!x||!C)return;function e(e){YX(e)===g.context.beforeContentFocusGuardRef.current&&(S.current=e.relatedTarget===k.current)}return C.addEventListener(`focusout`,e,!0),()=>{S.current=!1,C.removeEventListener(`focusout`,e,!0)}},[x,C,g]),g.useSyncedValue(`closeDelay`,u);let j=g.useState(`disabled`),M=v.useState(`disabled`),N=d||j||M,P=v.useState(`itemProps`),F=v.useState(`isActive`,y.index),I=R.useMemo(()=>({type:`submenu-trigger`,setActive(e){v.select(`highlightItemOnHover`)&&v.setActiveIndex(y.index,LY,e)}}),[v,y.index]),{getItemProps:L,itemRef:ee}=gX({closeOnClick:!1,disabled:N,highlighted:F,id:b,store:g,typingRef:v.context.typingRef,nativeButton:s,itemMetadata:I,nodeId:m?.context.nodeId}),te=$$(w,{enabled:g.useState(`hoverEnabled`)&&c&&!N,handleClose:h1({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:l,delay:{open:l,close:u},shouldOpen:l>0?()=>v.select(`allowMouseEnter`):void 0,triggerElementRef:k,externalTree:T,isClosing:()=>g.select(`transitionStatus`)===`ending`,guardStaleOpen:!0}),ne=YQ(w,{enabled:!N,event:`mousedown`,toggle:!0,ignoreMouse:c,stickIfOpen:c}).reference??JK,re=g.useState(`triggerProps`,!0);delete re.id;let ie={disabled:N,highlighted:F,open:x},ae=g.useState(`openMethod`),oe=g.useState(`lastOpenChangeReason`)===`list-navigation`||ae===`keyboard`,se=x&&oe&&dX;return fq(`div`,e,{state:ie,stateAttributesMapping:xY,props:[ne,te,re,h?.onTriggerKeyDown?{onKeyDown:h.onTriggerKeyDown}:void 0,P,se?u2:void 0,{"aria-controls":E,tabIndex:_||!(x||F)?-1:0,onFocus(e){g.select(`open`)&&S.current&&(S.current=!1,g.setOpen(!1,kX(NY,e.nativeEvent)))},onBlur(){F&&v.setActiveIndex(null,DY)}},f,L],ref:[t,y.ref,ee,O,A]})}),f2=R.forwardRef(function(e,t){let n=XY(e,t,`submenu-trigger`);if(!n.visible)return null;let r=n.props?$K(n.props,e):e;return(0,z.jsx)(d2,{...r,ref:n.ref})});function p2(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function m2(e){return typeof e==`object`&&!!e&&Array.isArray(e.items)}function h2(e){return m2(e?.[0])}function g2(e){return h2(e)?e.flatMap(e=>e.items):e}function _2(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(h2(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function v2(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return p2(e)}function y2(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?p2(e.value):p2(e)}function b2(e,t,n){function r(){return v2(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??r();if(Array.isArray(t)){let n=g2(t);if(typeof e!=`object`||!e){let t=n.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=n.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function x2(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,z.jsx)(R.Fragment,{children:b2(r,t,n)},i)),e),[])}var S2=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),C2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),w2=e=>{let t=C2(e);return t.charAt(0).toUpperCase()+t.slice(1)},T2=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),E2=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},D2={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},O2=(0,R.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,R.createElement)(`svg`,{ref:c,...D2,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:T2(`lucide`,i),...!a&&!E2(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,R.createElement)(e,t)),...Array.isArray(a)?a:[a]])),k2=(e,t)=>{let n=(0,R.forwardRef)(({className:n,...r},i)=>(0,R.createElement)(O2,{ref:i,iconNode:t,className:T2(`lucide-${S2(w2(e))}`,`lucide-${e}`,n),...r}));return n.displayName=w2(e),n},A2=k2(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),j2=k2(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),M2=k2(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),N2=k2(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),P2=`data-valid`,F2=`data-invalid`,I2={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},L2={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},R2={valid(e){return e===null?null:e?{[P2]:``}:{[F2]:``}}},z2={invalid:void 0,name:void 0,validityData:{state:I2,errors:[],error:``,value:``,initialValue:null},setValidityData:KK,disabled:void 0,setTouched:KK,setDirty:KK,setFilled:KK,setFocused:KK,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:L2,registerFieldControl:KK,validation:{getValidationProps:(e,t=JK)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:KK,getInputControl:()=>null,commit:async()=>{},change:KK}},B2=R.createContext(z2);function V2(e=!0){let t=R.useContext(B2);if(t.setValidityData===KK&&!e)throw Error(bq(28));return t}var H2=R.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:KK,validationMode:`onSubmit`,submitCountRef:{current:0}});function U2(){return R.useContext(H2)}var W2=R.createContext({controlId:void 0,registerControlId:KK,resetControlId:KK,labelId:void 0,setLabelId:KK,messageIds:[],setMessageIds:KK,getDescriptionProps:e=>e});function G2(){return R.useContext(W2)}function K2(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=G2(),o=TX(),s=FK(()=>Symbol()),c=R.useRef(!1),l=R.useRef(!1),u=Oq(()=>{c.current&&i!==KK&&(c.current=!1,i(s.current,void 0))});return Q(()=>{if(!n||i===KK){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),Q(()=>u,[u]),(n?r:void 0)??t??o}function q2(e,t,n){let{setFocused:r,focusOwnerRef:i}=V2(),a=Oq(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return Q(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}function J2(e,t,n,r,i=!0,a){let{registerFieldControl:o}=V2(),s=FK(()=>Symbol());Q(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),Q(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var Y2=R.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFilled:y,validationMode:b,validation:x}=V2(),{clearErrors:S,elementRef:C,submitCountRef:w}=U2(),T=h||s,E=m??a,D={...p,disabled:T},{labelId:O}=G2(),k=K2({id:i}),A=o!==void 0,j=o==null?void 0:String(o),M=Oq(()=>x.inputRef.current?.value);J2(x.inputRef,k,j,M,!T,a),Q(()=>{let e=j??x.inputRef.current?.value;e!==void 0&&y(e!==``)},[j,l,x.inputRef,y]),F0(j,()=>{j!==void 0&&(S(E),_(j!==(v.initialValue??``)),x.change(j))});let N=R.useRef(null),P=q2(T,N),F=$q();return fq(`input`,e,{ref:[t,N],state:D,props:[{id:k,disabled:T,name:E,ref:x.inputRef,"aria-labelledby":O,autoFocus:u,...A?{value:o}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=kX(DY,e.nativeEvent);c?.(t,n),!A&&(_(t!==(v.initialValue??``)),y(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(S(E),x.change(t)))},onFocus(){P(!0)},onBlur(e){if(g(!0),P(!1),b===`onBlur`){let t=e.currentTarget.value;x.commit(t),A&&queueMicrotask(()=>{let e=x.inputRef.current?.value;e!==void 0&&e!==t&&e!==(v.initialValue??``)&&x.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){g(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===C.current&&!e.defaultPrevented){let t=e.currentTarget,n=w.current;F.start(0,()=>{w.current===n&&x.commit(t.value)})}else x.commit(t)}}},f,e=>x.getValidationProps(T,e)],stateAttributesMapping:R2})}),X2=R.forwardRef(function(e,t){return(0,z.jsx)(Y2,{ref:t,...e})}),Z2=R.createContext(void 0);function Q2(e){let t=R.useContext(Z2);if(t===void 0&&!e)throw Error(bq(47));return t}var $2={...V$,disabled:e=>e.disabled,instantType:e=>e.instantType===`trigger-change`&&!V$.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===`trigger-press`&&V$.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod===`touch`&&e.openChangeReason===`trigger-press`,hasTriggerFocusGuards:(e,t)=>V$.isOpenedByTrigger(e,t)&&!e.focusManagerModal,modal:e=>e.modal,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},e4=class extends M${constructor(e,t,n){let r=new v$;super(t4(e,r,t,n),n4(r),$2)}setOpen=(e,t)=>{let n=t.reason===kY,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=d$(t),o=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&o!=null&&(t.trigger=this.context.triggerElements.getById(o)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n=u$(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};n?(this.context.stickIfOpen=!0,this.context.stickIfOpenTimeout.start(500,()=>{this.context.stickIfOpen=!1}),Oy.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function t4(e,t,n,r=!1){let i={...F$(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function n4(e){return{popupRef:R.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:R.createRef(),beforeTriggerFocusGuardRef:R.createRef(),beforeContentFocusGuardRef:R.createRef(),stickIfOpenTimeout:new Qq,stickIfOpen:!0,triggerElements:e}}var r4=C$(function({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=a4(s,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),f=u.useState(`mounted`),p=u.useState(`payload`);u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),_$(u,d),m$(u);let{forceUnmount:m}=h$(d,u,()=>{u.context.stickIfOpen=!0,u.set(`openChangeReason`,null)});u.useSyncedValues({modal:o}),R.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]),R.useImperativeHandle(e.actionsRef,()=>({unmount:m,close:()=>u.setOpen(!1,kX(UY))}),[m,u]);let h=d||f||s!=null;return(0,z.jsxs)(Z2.Provider,{value:u,children:[s&&(0,z.jsx)(s$,{handle:s,store:u}),h&&(0,z.jsx)(o4,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})});function i4(e){return Q2(!0)?(0,z.jsx)(r4,{props:e}):(0,z.jsx)(zQ,{children:(0,z.jsx)(r4,{props:e})})}function a4(e,t){let n=o$((e,n)=>new e4(t,e,n));return R.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function o4({store:e,modal:t}){let n=t$(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return g$(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var s4=w$(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,handle:s,payload:c,openOnHover:l=!1,delay:u=300,closeDelay:d=0,id:f,...p}=e,m=Q2(!0),h=H$(s)??m;if(!h)throw Error(bq(74));let g=TX(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerPopupId`,g),x=R.useRef(null),{registerTrigger:S,isMountedByThisTrigger:C}=p$(g,x,h,{payload:c,disabled:a,openOnHover:l,closeDelay:d}),w=h.useState(`isPressOpenedByTrigger`,g),T=h.useState(`isTouchPressOpen`,l),E=h.useState(`hasTriggerFocusGuards`,g),D=$$(v,{enabled:!a&&l&&!T,mouseOnly:!0,move:!1,handleClose:h1(),restMs:u,delay:{close:d},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),O=YQ(v,{stickIfOpen:Oq(()=>h.context.stickIfOpen)}),k=I0(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),A=h.useState(`triggerProps`,C),{getButtonProps:j,buttonRef:M}=rY({disabled:a,native:o}),N={open(e){return w?SY.open(e):xY.open(e)}},{handlePreFocusGuardFocus:P,handleFocusTargetFocus:F}=n2(h,x),I=fq(`button`,e,{state:{disabled:a,open:y},ref:[M,t,S,x],props:[O.reference,D,A,k,{[SQ]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":y,"aria-controls":b},p,j],stateAttributesMapping:N}),L=(0,z.jsx)(R.Fragment,{children:I},g);return E?(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(DZ,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:P}),L,(0,z.jsx)(DZ,{ref:h.context.triggerFocusTargetRef,onFocus:F})]}):L}),c4=R.createContext(void 0);function l4(){let e=R.useContext(c4);if(e===void 0)throw Error(bq(45));return e}var u4=R.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Q2().useState(`mounted`)||n?(0,z.jsx)(c4.Provider,{value:n,children:(0,z.jsx)(AQ,{ref:t,...r})}):null}),d4=R.createContext(void 0);function f4(){let e=R.useContext(d4);if(!e)throw Error(bq(46));return e}var p4=R.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=wQ,..._}=e,v=Q2(),y=l4(),b=LQ(),x=v.useState(`floatingRootContext`),S=v.useState(`mounted`),C=v.useState(`open`),w=v.useState(`openChangeReason`),T=v.useState(`activeTriggerElement`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`positionerElement`),k=v.useState(`instantType`),A=v.useState(`transitionStatus`),j=a0({anchor:a,floatingRootContext:x,positionMethod:o,mounted:S,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:y,nodeId:b,collisionAvoidance:g,adaptiveOrigin:v.useState(`adaptiveOrigin`)});g0({store:v,domReference:x.useState(`domReferenceElement`),positionerElement:O,open:C});let M=E===!0&&w!==`trigger-hover`;A0(C&&M,D===`touch`,O,T);let N=v.useStateSetter(`positionerElement`),P=_0(e,{open:C,side:j.side,align:j.align,anchorHidden:j.anchorHidden,instant:k},{styles:j.positionerStyles,transitionStatus:A,props:_,refs:[t,N],hidden:!S,inert:!C});return(0,z.jsxs)(d4.Provider,{value:j,children:[S&&M&&(0,z.jsx)(h0,{inert:H1(!C),cutout:T}),(0,z.jsx)(RQ,{id:b,children:P})]})}),m4=R.createContext(void 0);function h4(){let[e,t]=R.useState(0),n=Oq(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:R.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var g4=R.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Q2(),l=f4(),u=_1(!0)!=null,{context:d,hasClosePart:f}=h4(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),_=c.useState(`popupProps`),v=c.useState(`titleElementId`),y=c.useState(`descriptionElementId`),b=c.useState(`modal`),x=c.useState(`mounted`),S=c.useState(`openChangeReason`),C=c.useState(`activeTriggerElement`),w=c.useState(`floatingRootContext`),T=w.useState(`floatingId`),E=c.useState(`disabled`),D=c.useState(`openOnHover`),O=c.useState(`closeDelay`);Uq({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),Z$(w,{enabled:D&&!E,closeDelay:O});let k=a===void 0?a$(c.context.popupRef):a,A=b!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M=fq(`div`,e,{state:{open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},ref:[t,c.context.popupRef,j],props:[_,{id:T,role:`dialog`,...i$,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&S1.has(e.key)&&e.stopPropagation()}},k1(g),s],stateAttributesMapping:wY});return(0,z.jsx)(JQ,{context:w,openInteractionType:m,modal:A,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,getInsideElements:()=>[c.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:ae(C)?C:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,z.jsx)(m4.Provider,{value:d,children:M})})});function _4(e){let t=R.useRef(!0);t.current&&(t.current=!1,e())}var v4=R.createContext(void 0),y4=R.createContext(void 0);function b4(){let e=R.useContext(v4);if(e===void 0)throw Error(bq(60));return e}function x4(){let e=R.useContext(y4);if(e===void 0)throw Error(bq(61));return e}function S4(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let i=0;i<r;i+=1)if(!n(e[i],t[i]))return!1;return!0}var C4=(e,t)=>Object.is(e,t);function w4(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function T4(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!S4(e,t,(e,t)=>w4(e,t,n)):e!==t}function E4(e,t,n){return e?e.some(e=>e!==void 0&&w4(t,e,n)):!1}function D4(e,t,n){return e?e.findIndex(e=>e!==void 0&&w4(e,t,n)):-1}function O4(e,t){if(t!==C4)return n=>E4(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(t!==0||e.some(e=>Object.is(t,e)))}function k4(e,t,n,r){let i=r&&Array.isArray(t)?e.findIndex(O4(t,n)):D4(e,t,n);return i===-1?null:i}function A4(e,t,n,r,i,a){return E4(r,t,i)?a!=null&&e>a&&E4(r,n[a],i)?a:e:e===a?k4(n,r,i,!0):a}function j4(e,t,n){return e.filter(e=>!w4(t,e,n))}var M4={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,multiple:e=>e.multiple,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,highlightItemOnHover:e=>e.highlightItemOnHover,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:y2(t,r)!==``},hasNullItemLabel:(e,t)=>t?_2(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>w4(t,e,n)):w4(t,r,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,itemRoot:e=>e.itemRoot,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};function N4(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function P4(e,t){return Math.max(0,e-t)}function F4(e,t){if(t<=0)return 0;let n=N4(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function I4(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,name:c,form:l,autoComplete:u,disabled:d=!1,readOnly:f=!1,required:p=!1,modal:m=!0,actionsRef:h,inputRef:g,onOpenChangeComplete:_,items:v,multiple:y=!1,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S=C4,highlightItemOnHover:C=!0,children:w}=e,{clearErrors:T}=U2(),{setDirty:E,setTouched:D,setFocused:O,validityData:k,setFilled:A,name:j,disabled:M,validation:N,validationMode:P}=V2(),F=K2({id:t}),I=M||d,L=j??c,[ee,te]=GY({controlled:n,default:y?r??qK:r,name:`Select`,state:`value`}),[ne,re]=GY({controlled:a,default:o,name:`Select`,state:`open`}),ie=R.useRef([]),ae=R.useRef([]),oe=R.useRef(null),se=R.useRef(null),ce=R.useRef(0),le=R.useRef(null),ue=R.useRef([]),de=R.useRef(!1),fe=R.useRef(null),pe=R.useRef(null),me=R.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),he=R.useRef(!1),ge=R.useRef(ee),{openMethod:_e,triggerProps:ve}=L0(ne),ye=FK(()=>new M$({id:F,labelId:void 0,modal:m,multiple:y,disabled:I,readOnly:f,required:p,highlightItemOnHover:C,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S,value:ee,open:ne,mounted:ne,transitionStatus:void 0,items:v,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:JK,triggerProps:JK,itemRoot:{props:JK,multiple:y,disabled:I,readOnly:f,isItemEqualToValue:S},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:KK,setOpen:KK,handleScrollArrowVisibility:KK,onOpenChangeComplete:KK,listRef:ie,popupRef:oe,scrollHandlerRef:se,scrollArrowsMountedCountRef:ce,valueRef:le,valuesRef:ue,labelsRef:ae,typingRef:de,selectionRef:me,firstItemTextRef:fe,selectedItemTextRef:pe,alignItemWithTriggerActiveRef:he,initialValueRef:ge},M4)).current,[be,xe]=R.useState(!1),{mounted:Se,transitionStatus:Ce,forceUnmount:we}=r$({open:ne,ref:oe,preventUnmountOnClose:be,setPreventUnmountOnClose:xe,onUnmount(){ye.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),_?.(!1)}}),Te=ye.useState(`activeIndex`),Ee=ye.useState(`selectedIndex`),De=ye.useState(`triggerElement`),Oe=ye.useState(`positionerElement`),ke=s2(_e),Ae=_e??ke,je=R.useMemo(()=>y?``:y2(ee,x),[y,ee,x]),Me=R.useMemo(()=>y&&Array.isArray(ee)?ee.map(e=>y2(e,x)):y2(ee,x),[y,ee,x]);J2(SZ(De),F,ee,Oq(()=>Me),!I,c);let Ne=y?Array.isArray(ee)&&ee.length>0:ee!=null&&je!==``;Q(()=>{A(Ne)},[Ne,A]),Q(function(){let e=k4(ue.current,ee,S,y);e===null&&(pe.current=null),!ne&&ye.set(`selectedIndex`,e)},[y,ne,ee,S,ye]),F0(ee,()=>{T(L),E(T4(ee,k.initialValue,S)),N.change(ee)});let Pe=Oq((e,t)=>{let n=t,r=d$(n);s?.(e,n),!t.isCanceled&&(e||xe(r()),re(e),e||t.reason!==`focus-out`&&t.reason!==`outside-press`||(D(!0),O(!1),P===`onBlur`&&N.commit(ee)))});R.useImperativeHandle(h,()=>({unmount:we,close:()=>{ye.state.open&&Pe(!1,kX(UY))}}),[we,Pe,ye]);let Fe=Oq((e,t)=>{i?.(e,t),!t.isCanceled&&te(e)}),Ie=Oq(e=>{let t=P4(e.scrollHeight,e.clientHeight),n=F4(e.scrollTop,t),r=n>0,i=n<t;ye.set(`scrollUpArrowVisible`,r),ye.set(`scrollDownArrowVisible`,i)}),Le=U$({open:ne,onOpenChange:Pe,elements:{reference:De,floating:Oe}}),Re=YQ(Le,{enabled:!I,event:`mousedown`}),ze=t$(Le),Be=o1(Le,{enabled:!I,listRef:ie,activeIndex:Te,selectedIndex:Ee,disabledIndices:qK,onNavigate(e){(e!==null||ne)&&ye.set(`activeIndex`,e)},focusItemOnHover:C}),Ve=s1(Le,{enabled:!I&&(ne||!f&&!y),listRef:ae,activeIndex:Te,selectedIndex:Ee,disabledIndices:e=>l2(ie.current[e]),onMatch(e){ne?ye.set(`activeIndex`,e):Fe(ue.current[e],kX(DY))},onTyping(e){de.current=e}}),He=R.useMemo(()=>$K(Ve.reference,Be.reference,ze.reference,Re.reference,ve),[Re.reference,Ve.reference,Be.reference,ze.reference,ve]),Ue=R.useMemo(()=>$K(i$,Ve.floating,Be.floating,ze.floating),[Ve.floating,Be.floating,ze.floating]),We=Be.item??JK,Ge=R.useMemo(()=>({props:We,multiple:y,disabled:I,readOnly:f,isItemEqualToValue:S}),[We,y,I,f,S]);ye.useContextCallback(`setValue`,Fe),ye.useContextCallback(`setOpen`,Pe),ye.useContextCallback(`handleScrollArrowVisibility`,Ie),ye.useContextCallback(`onOpenChangeComplete`,_),_4(()=>{ye.update({popupProps:Ue,triggerProps:He,itemRoot:Ge})}),ye.useSyncedValues({id:F,modal:m,multiple:y,disabled:I,readOnly:f,required:p,highlightItemOnHover:C,value:ee,open:ne,mounted:Se,transitionStatus:Ce,popupProps:Ue,triggerProps:He,itemRoot:Ge,items:v,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S,openMethod:Ae});let Ke=IK(g,N.inputRef),qe=y?void 0:L,Je=R.useMemo(()=>!y||!Array.isArray(ee)||!L?null:ee.map(e=>{let t=y2(e,x);return(0,z.jsx)(`input`,{type:`hidden`,form:l,name:L,value:t,disabled:I},t)}),[y,ee,l,L,x,I]);return(0,z.jsxs)(v4.Provider,{value:ye,children:[(0,z.jsx)(y4.Provider,{value:Le,children:w}),(0,z.jsx)(`input`,{...N.getValidationProps(I,{onFocus(){ye.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||I||f)return;let t=e.currentTarget.value,n=kX(DY,e.nativeEvent);function r(){if(y)return;let e=t.toLowerCase(),r=ue.current.findIndex(t=>y2(t,x).toLowerCase()===e||v2(t,b).toLowerCase()===e);r===-1&&(r=ue.current.findIndex((t,n)=>{let r=ae.current[n];return r!=null&&r.toLowerCase()===e}));let i=ue.current[r];i!=null&&Fe(i,n)}ye.set(`forceMount`,!0),queueMicrotask(r)}}),id:F&&qe==null?`${F}-hidden-input`:void 0,form:l,name:qe,autoComplete:u,value:je,disabled:I,required:p&&!(y&&Ne),readOnly:f,ref:Ke,style:L?EZ:TZ,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Je]})}function L4(e,t){return e??t}var R4=`data-popup-side`,z4=400,B4={...SY,...R2,popupSide:e=>e?{[R4]:e}:null,value:()=>null},V4=R.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{setTouched:l,validationMode:u,validation:d,state:f,disabled:p}=V2(),{labelId:m}=G2(),h=b4(),g=h.useState(`readOnly`),_=h.useState(`required`),v=h.useState(`disabled`),y=p||v||a,b=h.useState(`open`),x=h.useState(`mounted`),S=h.useState(`value`),C=h.useState(`triggerProps`),w=h.useState(`positionerElement`),T=h.useState(`listElement`),E=h.useState(`popupSide`),D=h.useState(`id`),O=h.useState(`labelId`),k=h.useState(`hasSelectedValue`),A=x&&w?E:null,j=i??D,M=L4(m,O);K2({id:i});let N=SZ(w),P=R.useRef(null),F=q2(y,P),{getButtonProps:I,buttonRef:L}=rY({disabled:y,native:o}),ee=h.useStateSetter(`triggerElement`),te=$q(),ne=$q(),re=$q();R.useEffect(()=>{if(b)return re.start(z4,()=>{h.context.selectionRef.current.allowUnselectedMouseUp=!0,h.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{re.clear()};h.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},ne.clear()},[b,h,ne,re]);let ie=$K(C,{id:j,role:`combobox`,"aria-expanded":b,"aria-haspopup":`listbox`,"aria-controls":b?T?.id??uZ(w)?.id:void 0,"aria-labelledby":M,"aria-readonly":g||void 0,"aria-required":_||void 0,tabIndex:y?-1:0,onFocus(e){F(!0),b&&h.context.alignItemWithTriggerActiveRef.current&&h.context.setOpen(!1,kX(DY,e.nativeEvent)),te.start(0,()=>{h.set(`forceMount`,!0)})},onBlur(e){qX(w,e.relatedTarget)||(l(!0),F(!1),u===`onBlur`&&d.commit(S))},onMouseDown(e){if(b)return;let t=tY(e.currentTarget);function n(e){if(!P.current)return;let t=e.target;qX(P.current,t)||qX(N.current,t)||Z0(e,P.current)||h.context.setOpen(!1,kX(RY,e))}ne.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},c,I),ae=d.getValidationProps(y,ie);ae.role=`combobox`;let oe={...f,open:b,disabled:y,value:S,readOnly:g,popupSide:A,placeholder:!k};return fq(`button`,e,{ref:[t,P,L,ee],state:oe,stateAttributesMapping:B4,props:ae})}),H4={value:()=>null},U4=R.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,c=b4(),l=c.useState(`value`),u=c.useState(`items`),d=c.useState(`itemToStringLabel`),f=c.useState(`hasSelectedValue`),p=!f&&a!=null&&i==null,m=c.useState(`hasNullItemLabel`,p),h={value:l,placeholder:!f},g=null;return g=typeof i==`function`?i(l):i??(p&&!m?a:Array.isArray(l)?x2(l,u,d):b2(l,u,d)),fq(`span`,e,{state:h,ref:[t,c.context.valueRef],props:[{children:g},s],stateAttributesMapping:H4})}),W4=R.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return fq(`span`,e,{state:{open:b4().useState(`open`)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:xY})}),G4=R.forwardRef(function(e,t){let n=b4(),r=n.useState(`mounted`),i=n.useState(`forceMount`);return r||i?(0,z.jsx)(AQ,{ref:t,...e}):null}),K4=R.createContext(void 0);function q4(){let e=R.useContext(K4);if(!e)throw Error(bq(59));return e}function J4(e,t){e&&Object.assign(e.style,t)}var Y4={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},X4={position:`fixed`},Z4=R.forwardRef(function(e,t){let{anchor:n,className:r,render:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f,sticky:p,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=CQ,style:_,...v}=e,y=b4(),b=x4(),x=y.useState(`open`),S=y.useState(`mounted`),C=y.useState(`modal`),w=y.useState(`value`),T=y.useState(`openMethod`),E=y.useState(`positionerElement`),D=y.useState(`triggerElement`),O=y.useState(`isItemEqualToValue`),k=y.useState(`transitionStatus`),A=R.useRef(null),j=R.useRef(null),[M,N]=R.useState(h),P=S&&M&&T!==`touch`;!S&&M!==h&&N(h),R.useImperativeHandle(y.context.alignItemWithTriggerActiveRef,()=>P),A0((P||C)&&x,T===`touch`,E,D);let F=a0({anchor:n,floatingRootContext:b,positionMethod:a,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??P,collisionAvoidance:g,keepMounted:!0}),I=P?`none`:F.side,L=P?X4:F.positionerStyles,ee={open:x,side:I,align:F.align,anchorHidden:F.anchorHidden};Q(()=>{y.set(`popupSide`,F.side)},[y,F.side]);let te=_0(e,ee,{styles:L,transitionStatus:k,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!S,inert:!x}),ne=R.useRef(0),re=Oq(e=>{if(y.context.valuesRef.current.length===0)return;let t=ne.current;ne.current=e.size;let n=kX(DY);if(t!==0&&!y.state.multiple&&w!==null&&D4(y.context.valuesRef.current,w,O)===-1){let e=y.context.initialValueRef.current,t=e!=null&&D4(y.context.valuesRef.current,e,O)!==-1?e:null;y.context.setValue(t,n),t===null&&(y.set(`selectedIndex`,null),y.context.selectedItemTextRef.current=null)}if(t!==0&&y.state.multiple&&Array.isArray(w)){let e=w.filter(e=>D4(y.context.valuesRef.current,e,O)!==-1);e.length!==w.length&&(y.context.setValue(e,n),e.length===0&&(y.set(`selectedIndex`,null),y.context.selectedItemTextRef.current=null))}if(x&&P){y.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};J4(E,e),J4(y.context.popupRef.current,e)}}),ie=R.useMemo(()=>({...F,side:I,alignItemWithTriggerActive:P,setControlledAlignItemWithTrigger:N,scrollUpArrowRef:A,scrollDownArrowRef:j}),[F,I,P,N]);return(0,z.jsx)(c0,{elementsRef:y.context.listRef,labelsRef:y.context.labelsRef,onMapChange:re,children:(0,z.jsxs)(K4.Provider,{value:ie,children:[S&&C&&(0,z.jsx)(h0,{inert:H1(!x),cutout:D}),te]})})}),Q4=`base-ui-disable-scrollbar`,$4={className:Q4,getElement(e){return(0,z.jsx)(`style`,{nonce:e,href:Q4,precedence:`base-ui:low`,children:`.${Q4}{scrollbar-width:none}.${Q4}::-webkit-scrollbar{display:none}`})}},e3=R.createContext(void 0),t3={disableStyleElements:!1};function n3(){return R.useContext(e3)??t3}var r3=`--transform-origin`,i3={...CY,...Kq},a3=R.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,s=b4(),c=s.useState(`multiple`),l=s.useState(`readOnly`),u=s.useState(`highlightItemOnHover`),d=x4(),{side:f,align:p,alignItemWithTriggerActive:m,isPositioned:h,setControlledAlignItemWithTrigger:g}=q4(),_=_1(!0)!=null,v=G1(),{nonce:y,disableStyleElements:b}=n3(),x=s.useState(`id`),S=s.useState(`open`),C=s.useState(`openMethod`),w=s.useState(`mounted`),T=s.useState(`popupProps`),E=s.useState(`transitionStatus`),D=s.useState(`triggerElement`),O=s.useState(`positionerElement`),A=s.useState(`listElement`),j=R.useRef(!1),M=R.useRef(!1),N=R.useRef({}),P=Fq(),F=Oq(e=>{if(!O||!s.context.popupRef.current||!M.current)return;let t=O.style.top===`0px`,n=O.style.bottom===`0px`;if(j.current||!m||!t&&!n){s.context.handleScrollArrowVisibility(e);return}let r=c3(O),i=l3(O.getBoundingClientRect().height,`y`,r),a=tY(O),o=k(O),c=o.getComputedStyle(O),l=parseFloat(c.marginTop),u=parseFloat(c.marginBottom),d=o3(o.getComputedStyle(s.context.popupRef.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,h=s3(e),g=null,_=e=>{O.style.height=`${e}px`},v=t?h-p:p,y=Math.min(i+v,f);if(v<=1){let n=N4(v,0,f-i);n>0&&_(i+n),e.scrollTop=t?h:0,f-(i+n)<=1&&(j.current=!0),s.context.handleScrollArrowVisibility(e);return}f-y>1?g=t?1/0:0:n&&p<h&&(g=p-(v-(i+v-f)));let b=Math.ceil(y);if(b!==0&&_(b),g!=null){let t=N4(g,0,s3(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}b>=f-1&&(j.current=!0),s.context.handleScrollArrowVisibility(e)});R.useImperativeHandle(s.context.scrollHandlerRef,()=>F,[F]),Uq({open:S,ref:s.context.popupRef,onComplete(){S&&s.context.onOpenChangeComplete(!0)}});let I={open:S,transitionStatus:E,side:f,align:p};Q(()=>{O&&s.context.popupRef.current&&!Object.keys(N.current).length&&(N.current={top:O.style.top||`0`,left:O.style.left||`0`,right:O.style.right,height:O.style.height,bottom:O.style.bottom,minHeight:O.style.minHeight,maxHeight:O.style.maxHeight,marginTop:O.style.marginTop,marginBottom:O.style.marginBottom})},[s,O]),Q(()=>{S||m||(M.current=!1,j.current=!1,J4(O,N.current))},[S,m,O]),Q(()=>{let e=s.context.popupRef.current;if(!S||!D||!O||!e||m&&!h||s.state.transitionStatus===`ending`)return;if(M.current=!0,e.style.removeProperty(r3),!m){P.request(()=>s.context.handleScrollArrowVisibility(A||e));return}let t=f3(e);try{let t=s.context.selectedItemTextRef.current;t?.isConnected||(t=!s.select(`hasSelectedValue`)&&s.context.firstItemTextRef.current?.isConnected?s.context.firstItemTextRef.current:null);let n=s.context.valueRef.current,r=k(O),i=r.getComputedStyle(O),a=r.getComputedStyle(e),o=tY(D),c=c3(D),l=u3(D.getBoundingClientRect(),c),d=u3(O.getBoundingClientRect(),c),f=l.height,p=A||e,m=p.scrollHeight,h=parseFloat(a.borderBottomWidth),_=parseFloat(i.marginTop)||10,y=parseFloat(i.marginBottom)||10,b=parseFloat(i.minHeight)||100,x=o3(a),S=o.documentElement.clientHeight-_-y,C=o.documentElement.clientWidth,w=S-l.bottom+f,T,E=v===`rtl`?l.right-d.width:l.left,M=0;if(t&&n){let e=u3(n.getBoundingClientRect(),c);T=u3(t.getBoundingClientRect(),c),E=d.left+(v===`rtl`?e.right-T.right:e.left-T.left);let r=e.top-l.top+e.height/2;M=T.top-d.top+T.height/2-r}let P=w+M+y+h,F=Math.min(S,P),I=S-_-y,L=P-F,ee=C-5;O.style.left=`${N4(E,5,ee-d.width)}px`,O.style.height=`${F}px`,O.style.maxHeight=`none`,O.style.marginTop=`${_}px`,O.style.marginBottom=`${y}px`,e.style.height=`100%`;let te=s3(p),ne=L>=te-1;ne&&(F=Math.min(S,d.height)-(L-te));let re=l.top<20||l.bottom>S-20||Math.ceil(F)+1<Math.min(m,b),ie=(r.visualViewport?.scale??1)!==1&&uX;if(re||ie){J4(O,N.current),g(!1);return}let ae=Math.max(b,F);if(ne){let e=Math.max(0,S-P);O.style.top=d.height>=I?`0`:`${e}px`,O.style.height=`${F}px`,p.scrollTop=s3(p)}else O.style.bottom=`0`,p.scrollTop=L;if(T){let t=d.top,n=d.height,r=T.top+T.height/2,i=N4(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(r3,`50% ${i}%`)}(ae===S||F>=x)&&(j.current=!0),s.context.handleScrollArrowVisibility(p),u&&s.state.selectedIndex===null&&s.state.activeIndex===null&&s.context.listRef.current[0]!=null&&s.set(`activeIndex`,0)}finally{t()}},[s,S,O,D,m,g,P,A,u,v,h]),R.useEffect(()=>{if(!m||!O||!S)return;let e=k(O);function t(e){s.context.setOpen(!1,kX(WY,e))}return bZ(e,`resize`,t)},[s,m,O,S]);let L={...A?{role:`presentation`}:{role:`listbox`,"aria-multiselectable":c||void 0,"aria-readonly":l||void 0,id:`${x}-list`},onKeyDown(e){_&&S1.has(e.key)&&e.stopPropagation()},onScroll(e){A||F(e.currentTarget)},...m&&{style:A?{height:`100%`}:Y4},className:!A&&m?$4.className:void 0},ee=fq(`div`,e,{ref:[t,s.context.popupRef],state:I,stateAttributesMapping:i3,props:[T,L,k1(E),o]});return(0,z.jsxs)(R.Fragment,{children:[!b&&$4.getElement(y),(0,z.jsx)(JQ,{context:d,modal:!1,disabled:!w,openInteractionType:C,returnFocus:a,restoreFocus:!0,children:ee})]})});function o3(e){let t=e.maxHeight;return t.endsWith(`px`)&&parseFloat(t)||1/0}function s3(e){return P4(e.scrollHeight,e.clientHeight)}function c3(e){return _.getScale(e)}function l3(e,t,n){return e/n[t]}function u3(e,t){return M({x:l3(e.x,`x`,t),y:l3(e.y,`y`,t),width:l3(e.width,`x`,t),height:l3(e.height,`y`,t)})}var d3=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function f3(e){let{style:t}=e,n={};for(let[e,r]of d3)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of d3){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var p3=R.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=b4(),s=o.useState(`multiple`),c=o.useState(`readOnly`),{alignItemWithTriggerActive:l}=q4(),u=o.useState(`hasScrollArrows`),d=o.useState(`openMethod`),f={id:`${o.useState(`id`)}-list`,role:`listbox`,"aria-multiselectable":s||void 0,"aria-readonly":c||void 0,onScroll(e){o.context.scrollHandlerRef.current?.(e.currentTarget)},...l&&{style:Y4},className:u&&d!==`touch`?$4.className:void 0};return fq(`div`,e,{ref:[t,o.useStateSetter(`listElement`)],props:[f,a]})}),m3=R.createContext(void 0);function h3(){let e=R.useContext(m3);if(!e)throw Error(bq(57));return e}var g3=R.memo(R.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=R.useRef(null),d=yX({guess:!0,label:o,textRef:u}),f=b4(),{props:p,multiple:m,disabled:h,readOnly:g,isItemEqualToValue:_}=f.useState(`itemRoot`),v=h||s,y=f.useState(`isActive`,d.index),b=f.useState(`open`),x=f.useState(`isSelected`,a),S=f.useState(`isSelectedByFocus`,d.index),C=d.index,w=R.useRef(null);Q(()=>{let e=f.context.valuesRef.current;return e[C]=a,()=>{delete e[C]}},[C,a,f]),Q(()=>{let e=f.state.value,t=f.state.selectedIndex,n=t,r;m&&Array.isArray(e)?(n=A4(C,a,f.context.valuesRef.current,e,_,t),r=n===C,C===t&&!r&&(f.context.selectedItemTextRef.current=null)):(r=e!==void 0&&w4(a,e,_),r&&(n=C)),f.set(`selectedIndex`,n),r&&u.current&&(f.context.selectedItemTextRef.current=u.current)},[C,m,_,f,a]);let T=R.useRef(`mouse`),E=R.useRef(!1),{getButtonProps:D,buttonRef:O}=rY({disabled:v,focusableWhenDisabled:!0,native:c,composite:!0}),k={disabled:v,selected:x,highlighted:y};function A(e){if(h||g)return;let t=f.state.value;if(m){let n=Array.isArray(t)?t:[],r=x?j4(n,a,_):[...n,a];f.context.setValue(r,kX(MY,e))}else f.context.setValue(a,kX(MY,e)),f.context.setOpen(!1,kX(MY,e))}function j(){f.context.selectionRef.current.dragY=0}let M={role:`option`,"aria-selected":x,tabIndex:b&&y?0:-1,onKeyDown(e){f.set(`activeIndex`,C),e.key===` `&&f.context.typingRef.current&&e.preventDefault()},onClick(e){let t=T.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&HX(e.nativeEvent)&&(n!==void 0||y),i=t&&!r&&!E.current;E.current=!1,!(v||i)&&A(e.nativeEvent)},onPointerEnter(e){T.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=f.context.selectionRef.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){T.current=e.pointerType,E.current=!0,j()},onMouseUp(){if(j(),v||T.current===`touch`||E.current)return;let e=!f.context.selectionRef.current.allowSelectedMouseUp&&x,t=!f.context.selectionRef.current.allowUnselectedMouseUp&&!x;e||t||(E.current=!0,w.current?.click(),E.current=!1)}},N=fq(`div`,e,{ref:[O,t,d.ref,w],state:k,props:[p,M,l,D]}),P=R.useMemo(()=>({selected:x,index:C,textRef:u,selectedByFocus:S}),[x,C,u,S]);return(0,z.jsx)(m3.Provider,{value:P,children:N})})),_3=R.memo(R.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a,selected:o,...s}=e,c=R.useRef(null),{transitionStatus:l,setMounted:u}=qq(o),d=fq(`span`,e,{ref:[t,c],state:{selected:o,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:Kq});return Uq({batch:!0,enabled:!o,open:o,ref:c,onComplete(){o||u(!1)}}),d})),v3=R.forwardRef(function(e,t){let{selected:n}=h3();return e.keepMounted||n?(0,z.jsx)(_3,{...e,selected:n,ref:t}):null}),y3=R.memo(R.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i}=h3(),a=b4(),{render:o,className:s,style:c,...l}=e;return fq(`div`,e,{ref:[R.useCallback(e=>{e&&(n===0&&(a.context.firstItemTextRef.current=e),i&&(a.context.selectedItemTextRef.current=e))},[a,n,i]),t,r],props:l})})),b3=R.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o,...s}=e,c=a===`up`,l=b4(),{side:u,scrollDownArrowRef:d,scrollUpArrowRef:f}=q4(),p=c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,m=l.useState(p),h=l.useState(`openMethod`),g=m&&h!==`touch`,_=$q(),v=c?f:d,{mounted:y,transitionStatus:b,setMounted:x}=qq(g);Q(()=>(l.context.scrollArrowsMountedCountRef.current+=1,l.set(`hasScrollArrows`,!0),()=>{l.context.scrollArrowsMountedCountRef.current=Math.max(0,l.context.scrollArrowsMountedCountRef.current-1),l.context.scrollArrowsMountedCountRef.current===0&&l.set(`hasScrollArrows`,!1)}),[l]),Uq({open:g,ref:v,onComplete(){g||x(!1)}});let S=fq(`div`,e,{ref:[t,v],state:{direction:a,visible:g,side:u,transitionStatus:b},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||_.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??l.context.popupRef.current;if(!e)return;l.set(`activeIndex`,null),l.context.handleScrollArrowVisibility(e);let n=P4(e.scrollHeight,e.clientHeight),r=F4(e.scrollTop,n),i=r===(c?0:n),a=l.context.listRef.current;if(r!==e.scrollTop&&(e.scrollTop=r),i)_.clear();else{if(a.length>0){let t=v.current?.offsetHeight||0;e.scrollTop=x3(a,c,r,e.clientHeight,t,n)}_.start(40,t)}}_.start(40,t)},onMouseLeave(){_.clear()}},s],stateAttributesMapping:Kq});return y||o?S:null});function x3(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?F4(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?F4(l.offsetTop+l.offsetHeight-r+i,a):a}var S3=R.forwardRef(function(e,t){return(0,z.jsx)(b3,{...e,ref:t,direction:`down`})}),C3=R.forwardRef(function(e,t){return(0,z.jsx)(b3,{...e,ref:t,direction:`up`})}),w3=R.createContext(void 0);function T3(){let e=R.useContext(w3);if(e===void 0)throw Error(bq(64));return e}var E3=`data-activation-direction`,D3={tabActivationDirection:e=>({[E3]:e})},O3=R.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:s,style:c,...l}=e,u=e.defaultValue!==void 0,d=R.useRef([]),[f,p]=R.useState(()=>new Map),[m,h]=GY({controlled:s,default:r,name:`Tabs`,state:`value`}),g=s!==void 0,[_,v]=R.useState(()=>new Map),y=R.useRef(void 0),b=R.useCallback(e=>k3(_,e),[_]),[x,S]=R.useState(()=>({previousValue:m,tabActivationDirection:`none`})),{previousValue:C,tabActivationDirection:w}=x,T=w,E=!1;C!==m&&(T=A3(C,m,a,_),E=C!=null&&m!=null&&b(m)==null);let D=E?C:m,O=C!==D||w!==T;Q(()=>{O&&S({previousValue:D,tabActivationDirection:T})},[D,O,T]);let k=Oq((e,t)=>{t.activationDirection=A3(m,e,a,_),i?.(e,t),!t.isCanceled&&h(()=>e)}),A=Oq((e,t)=>{i?.(e,kX(t,void 0,void 0,{activationDirection:`none`}))}),j=Oq((e,t)=>(p(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{p(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),M=R.useCallback(e=>f.get(e),[f]),N=R.useCallback(e=>{for(let t of _.values())if(e===t.value)return t.id},[_]),P=R.useMemo(()=>({getTabElementBySelectedValue:b,getTabIdByPanelValue:N,getTabPanelIdByValue:M,onValueChange:k,orientation:a,registerMountedTabPanel:j,setTabMap:v,tabActivationDirection:T,value:m}),[b,N,M,k,a,j,v,T,m]),F=R.useMemo(()=>{for(let e of _.values())if(e.value===m)return e},[_,m]),I=R.useMemo(()=>{for(let e of _.values())if(!e.disabled)return e.value},[_]),L=R.useRef(!u),ee=R.useRef(r),te=R.useRef(u),ne=R.useRef(!1);Q(()=>{if(g)return;function e(e,t){h(()=>e),S({previousValue:e,tabActivationDirection:`none`}),A(e,t),L.current=!1}if(_.size===0){ne.current&&m!==null&&!y.current?.isConnected&&e(null,VY);return}ne.current=!0,y.current=_.keys().next().value;let t=F?.disabled,n=F==null&&m!==null;if(!t&&m===ee.current&&(te.current=!1),te.current&&t&&m===ee.current)return;let r=L.current;if(t||n){let n=I??null;if(m===n){L.current=!1;return}let i=VY;r?i=HY:t&&(i=BY),e(n,i)}else r&&F!=null&&(A(m,HY),L.current=!1)},[I,g,A,F,h,_,m]);let re=fq(`div`,e,{state:{orientation:a,tabActivationDirection:T},ref:t,props:l,stateAttributesMapping:D3});return(0,z.jsx)(w3.Provider,{value:P,children:(0,z.jsx)(c0,{elementsRef:d,children:re})})});function k3(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function A3(e,t,n,r){if(e==null||t==null)return`none`;let[i,a,o]=n===`horizontal`?[`left`,`left`,`right`]:[`top`,`up`,`down`],s=k3(r,e),c=k3(r,t);if(s==null||c==null)return s!==c&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?t>e?o:a:`none`;let l=s.getBoundingClientRect()[i],u=c.getBoundingClientRect()[i];return u<l?a:u>l?o:`none`}var j3=`data-composite-item-active`,M3=R.createContext(void 0);function N3(){let e=R.useContext(M3);if(e===void 0)throw Error(bq(65));return e}var P3=R.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:d,onValueChange:f,orientation:p,tabActivationDirection:m}=T3(),{activateOnFocus:h,registerTabResizeObserverElement:g,tabsListElement:_}=N3(),{highlightedIndex:v,onHighlightedIndexChange:y}=$J(),b=TX(o),{compositeProps:x,compositeRef:S,index:C}=$0({metadata:R.useMemo(()=>({disabled:r,id:b,value:a}),[r,b,a])}),w=a===u,T=R.useRef(!1),E=R.useRef(null),D=Oq(e=>{E.current?.(),E.current=e?g(e):null});Q(()=>{if(T.current){T.current=!1;return}if(!(w&&C>-1&&v!==C))return;let e=_;if(e!=null){let t=KX(tY(e));if(t&&qX(e,t))return}r||y(C)},[w,C,v,y,r,_]);let{getButtonProps:O,buttonRef:k}=rY({disabled:r,native:s,focusableWhenDisabled:!0}),A=d(a),j=R.useRef(!1),M=R.useRef(!1);function N(e){f(a,kX(DY,e.nativeEvent,void 0,{activationDirection:`none`}))}function P(e){w||r||N(e)}function F(e){w||r||h&&(!j.current||M.current)&&N(e)}function I(e){if(w||r)return;j.current=!0,M.current=e.button===0;let t=tY(e.currentTarget);function n(){j.current=!1,M.current=!1,t.removeEventListener(`pointerup`,n),t.removeEventListener(`pointercancel`,n)}t.addEventListener(`pointerup`,n),t.addEventListener(`pointercancel`,n)}return fq(`button`,e,{state:{disabled:r,active:w,orientation:p,tabActivationDirection:m},ref:[t,k,S,D],props:[x,{role:`tab`,"aria-controls":A,"aria-selected":w,id:b,onClick:P,onFocus:F,onPointerDown:I,[j3]:w?``:void 0,onKeyDownCapture(){T.current=!0}},l,O],stateAttributesMapping:D3})}),F3=`data-index`,I3={...D3,...Kq},L3=R.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...s}=e,{value:c,getTabIdByPanelValue:l,orientation:u,tabActivationDirection:d,registerMountedTabPanel:f}=T3(),p=TX(),{ref:m,index:h}=yX(),g=r===c,{mounted:_,transitionStatus:v,setMounted:y}=qq(g),b=!_,x=l(r),S={hidden:b,orientation:u,tabActivationDirection:d,transitionStatus:v},C=R.useRef(null),w=fq(`div`,e,{state:S,ref:[t,m,C],props:[{"aria-labelledby":x,hidden:b,id:p,role:`tabpanel`,tabIndex:g?0:-1,inert:H1(!g),[F3]:h},s],stateAttributesMapping:I3});return Uq({open:g,ref:C,onComplete(){g||y(!1)}}),Q(()=>{if(!(p==null||b&&!a))return f(r,p)},[b,a,r,p,f]),a||_?w:null});function R3(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:a,highlightedIndex:o,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:l=!1,stopEventPropagation:u,disabledIndices:d,modifierKeys:f=qK}=e,[p,m]=R.useState(0),h=r!=null,g=R.useRef(null),_=IK(g,c),v=R.useRef([]),y=R.useRef(!1),b=R.useRef(null),x=o??p,S=Oq((e,t=!1)=>{if(b.current=v.current[e]??null,(s??m)(e),t){let t=v.current[e];E1(g.current,t,a,n)}}),C=Oq(e=>{if(e.size===0)return;if(y.current){let e=v.current,t=e.indexOf(b.current);if(t===-1){let t=e[x];!t||NZ(e,x,d)?S(z3(e,d)):b.current=t}else t!==x&&S(t);return}y.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?e.get(r)?.index??-1:-1;if(i!==-1)S(i);else if(NZ(t,x,d)){let e=MZ(t,{disabledIndices:d});OZ(t,e)||S(e)}E1(g.current,r,a,n)});Q(()=>{if(d==null||o!=null||!y.current)return;let e=v.current;if(NZ(e,x,d)){let t=MZ(e,{disabledIndices:d});OZ(e,t)||S(t)}},[d,o,x,v,S]);let w=Oq((e,t,n)=>i?i(e,t,n,v):n),T=Oq(e=>{let o=e.key===`Home`||e.key===`End`;if(!S1.has(e.key)||!l&&o||B3(e,f)||!g.current)return;let s=a===`rtl`,c=s?b1:x1,p=s?x1:b1,m=n===`vertical`?y1:c,_=n===`vertical`?v1:p,y=YX(e.nativeEvent);if(y!=null&&T1(y)&&!l2(y)){let t=y.selectionStart,n=y.selectionEnd,r=y.value;if(t==null||e.shiftKey||t!==n||e.key!==_&&t<r.length||e.key!==m&&t>0)return}let b=x,C=kZ(v,d),T=AZ(v,d);r!=null&&(b=r({disabledIndices:d,elementsRef:v,event:e,highlightedIndex:x,loopFocus:t,maxIndex:T,minIndex:C,onLoop:w,orientation:n,rtl:s}));let E=n!==`vertical`&&e.key===c||n!==`horizontal`&&e.key===`ArrowDown`,D=n!==`vertical`&&e.key===p||n!==`horizontal`&&e.key===`ArrowUp`;l&&(e.key===`Home`?b=C:e.key===`End`&&(b=T)),b===x&&(E||D)&&(t&&b===T&&E?(b=C,i&&(b=i(e,x,b,v))):t&&b===C&&D?(b=T,i&&(b=i(e,x,b,v))):b=MZ(v.current,{startingIndex:b,decrement:D,disabledIndices:d})),b!==x&&!OZ(v.current,b)&&(u&&e.stopPropagation(),(h||o||E||D)&&e.preventDefault(),S(b,!0),queueMicrotask(()=>{v.current[b]?.focus()}))});return{props:{ref:_,onFocus(e){let t=g.current,n=YX(e.nativeEvent);t&&n!=null&&T1(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:T},highlightedIndex:x,onHighlightedIndexChange:S,elementsRef:v,onMapChange:C,relayKeyboardEvent:T}}function z3(e,t){let n=-1;for(let r=0;r<e.length;r+=1){let i=e[r];if(i&&!NZ(e,r,t)){if(i.hasAttribute(`data-composite-item-active`))return r;n===-1&&(n=r)}}return Math.max(n,0)}function B3(e,t){for(let n of C1)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function V3(e){let{render:t,className:n,style:r,refs:i=qK,props:a=qK,state:o=JK,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,grid:d,loopFocus:f,onLoop:p,enableHomeAndEndKeys:m,onMapChange:h,stopEventPropagation:g=!0,rootRef:_,disabledIndices:v,modifierKeys:y,highlightItemOnHover:b=!1,tag:x=`div`,...S}=e,{props:C,highlightedIndex:w,onHighlightedIndexChange:T,elementsRef:E,onMapChange:D,relayKeyboardEvent:O}=R3({grid:d,loopFocus:f,onLoop:p,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:_,stopEventPropagation:g,enableHomeAndEndKeys:m,direction:G1(),disabledIndices:v,modifierKeys:y}),k=fq(x,e,{state:o,ref:i,props:[C,...a,S],stateAttributesMapping:s}),A=R.useMemo(()=>({highlightedIndex:w,onHighlightedIndexChange:T,highlightItemOnHover:b,relayKeyboardEvent:O}),[w,T,b,O]);return(0,z.jsx)(QJ.Provider,{value:A,children:(0,z.jsx)(c0,{elementsRef:E,onMapChange:e=>{h?.(e),D(e)},children:k})})}var H3=R.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...s}=e,{orientation:c,setTabMap:l,tabActivationDirection:u}=T3(),[d,f]=R.useState(0),[p,m]=R.useState(null),h=R.useRef(new Set),g=R.useRef(new Set),_=R.useRef(null);Q(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{h.current.forEach(e=>{e()})});return _.current=e,p&&e.observe(p),g.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),_.current=null}},[p]);let v=Oq(e=>(h.current.add(e),()=>{h.current.delete(e)})),y=Oq(e=>(g.current.add(e),_.current?.observe(e),()=>{g.current.delete(e),_.current?.unobserve(e)})),b={orientation:c,tabActivationDirection:u},x={"aria-orientation":c===`vertical`?`vertical`:void 0,role:`tablist`},S=R.useMemo(()=>({activateOnFocus:n,registerIndicatorUpdateListener:v,registerTabResizeObserverElement:y,tabsListElement:p}),[n,v,y,p]);return(0,z.jsx)(M3.Provider,{value:S,children:(0,z.jsx)(V3,{render:a,className:r,style:o,state:b,refs:[t,m],props:[x,s],stateAttributesMapping:D3,highlightedIndex:d,enableHomeAndEndKeys:!0,loopFocus:i,orientation:c,onHighlightedIndexChange:f,onMapChange:l,disabledIndices:qK})})}),U3=R.createContext(void 0);function W3(){return R.useContext(U3)}var G3=R.forwardRef(function(e,t){let{className:n,defaultPressed:r=!1,disabled:i=!1,form:a,onPressedChange:o,pressed:s,render:c,type:l,value:u,nativeButton:d=!0,style:f,...p}=e,m=TX(u||void 0),h=W3(),g=h?.value??[],_=(i||h?.disabled)??!1,[v,y]=GY({controlled:h?m!==void 0&&g.indexOf(m)>-1:s,default:r,name:`Toggle`,state:`pressed`}),{getButtonProps:b,buttonRef:x}=rY({disabled:_,native:d}),S={disabled:_,pressed:v},C=[x,t],w=[{"aria-pressed":v,onClick(e){let t=!v,n=kX(DY,e.nativeEvent);o?.(t,n),!n.isCanceled&&(m&&h?.setGroupValue?.(m,t,n),!n.isCanceled&&y(t))}},p,b],T=fq(`button`,e,{enabled:!h,state:S,ref:C,props:w}),E=R.useMemo(()=>({disabled:_,focusableWhenDisabled:!1}),[_]);return h?(0,z.jsx)(e2,{tag:`button`,render:c,className:n,style:f,metadata:E,state:S,refs:C,props:w}):T}),K3=R.createContext(void 0);function q3(e){let t=R.useContext(K3);if(t===void 0&&!e)throw Error(bq(72));return t}var J3={...V$,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,appliedTriggerProps:(e,t)=>t?e.activeTriggerProps:void 0,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Y3=class extends M${constructor(e,t,n){let r=new v$;super(X3(e,r,t,n),Z3(r),J3)}setOpen=(e,t)=>{f$(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,kX(OY,e))}};function X3(e,t,n,r=!1){return{...F$(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function Z3(e){return{popupRef:R.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var Q3=C$(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=o$((e,t)=>new Y3({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),m$(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=h$(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=R.useRef(null);Q(()=>{m&&t&&p.setOpen(!1,kX(BY))},[m,t,p]),Q(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),Q(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),R.useImperativeHandle(o,()=>({unmount:y,close:()=>p.setOpen(!1,kX(UY))}),[y,p]);let T=h||_||!t&&a!==`none`;return(0,z.jsxs)(K3.Provider,{value:p,children:[l&&(0,z.jsx)(s$,{handle:l,store:p}),T&&(0,z.jsx)($3,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function $3({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=t$(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=QQ(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=R.useMemo(()=>$K(a.reference,i.reference),[a.reference,i.reference]);return g$(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??JK}),null}var e6=R.createContext(void 0);function t6(){return R.useContext(e6)}var n6=`data-base-ui-tooltip-trigger`;function r6(e){let t=YX(e);return ve(t)?t:null}var i6=w$(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=q3(!0),m=H$(a)??p;if(!m)throw Error(bq(82));let h=TX(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=R.useRef(null),b=u??0,{registerTrigger:x,isMountedByThisTrigger:S}=p$(h,y,m,{payload:o,closeOnClick:l,closeDelay:b}),C=t6(),{activeIdRef:w,delayRef:T,isInstantPhase:E,hasProvider:D}=yZ(v,{open:_}),O=X$(v);m.useSyncedValue(`isInstantPhase`,E);let k=m.useState(`disabled`),A=s??k,j=SZ(A),M=m.useState(`trackCursorAxis`),N=m.useState(`disableHoverablePopup`),P=R.useRef(!1),F=$q(),I=R.useRef(void 0);function L(){return D&&w.current!=null?0:c??C??600}function ee(e){let t=y.current;if(!t||!e)return!1;let n=JX(e,`[${n6}]`);return n!==null&&n!==t&&qX(t,n)}function te(e){let t=ee(e);return P.current=t,t&&(O.openChangeTimeout.clear(),O.restTimeout.clear(),O.restTimeoutPending=!1,F.clear()),t}let ne=$$(v,{enabled:!A,mouseOnly:!0,move:!1,handleClose:!N&&M!==`both`?h1():null,restMs:L,delay(){return u==null&&D?{close:fZ(T.current,`close`)}:{close:b}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!P.current}}),re=G$(v,{enabled:!A}).reference,ie=e=>{let t=P.current,n=r6(e),r=te(n),i=y.current,a=i&&n&&qX(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`)m.setOpen(!1,kX(kY,e));else if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&WX(I.current)){let t=()=>{P.current||j.current||m.select(`open`)||m.setOpen(!0,kX(kY,e,i))},n=L();n===0?(F.clear(),t()):F.start(n,t)}},ae=m.useState(`appliedTriggerProps`,S||M!==`none`);return fq(`button`,e,{state:{open:_},ref:[t,x,y],props:[ne,re,ae,{onMouseOver(e){ie(e.nativeEvent)},onFocus(e){ee(r6(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){P.current=!1,F.clear(),I.current=void 0},onPointerEnter(e){I.current=e.pointerType},onPointerDown(e){I.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[nZ]:A?``:void 0,[n6]:A?void 0:``},f],stateAttributesMapping:xY})}),a6=R.createContext(void 0);function o6(){let e=R.useContext(a6);if(e===void 0)throw Error(bq(70));return e}var s6=R.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=kQ({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,z.jsxs)(R.Fragment,{children:[l,c&&Oy.createPortal(n,c)]})}),c6=R.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return q3().useState(`mounted`)||n?(0,z.jsx)(a6.Provider,{value:n,children:(0,z.jsx)(s6,{ref:t,...r})}):null}),l6=R.createContext(void 0);function u6(){let e=R.useContext(l6);if(e===void 0)throw Error(bq(71));return e}var d6=R.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=wQ,style:g,..._}=e,v=q3(),y=o6(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=a0({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`adaptiveOrigin`)}),O=_0(e,R.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,z.jsx)(l6.Provider,{value:D,children:O})}),f6=R.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=q3(),{side:s,align:c}=u6(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);Uq({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Z$(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return fq(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[i$,f,k1(d),a],stateAttributesMapping:wY})}),p6=R.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=q3(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=u6();return fq(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:CY})}),m6=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=R.useMemo(()=>({open:t,close:n}),[t,n]);return(0,z.jsx)(e6.Provider,{value:t,children:(0,z.jsx)(vZ,{delay:i,timeoutMs:r,children:e.children})})},h6=e=>{let{children:t,onSubmit:n,submitButton:r,...i}=e;return Fj(i),(0,z.jsxs)(`form`,{className:`bn-form`,onSubmit:e=>{e.preventDefault(),n?.()},children:[t,r===`none`?null:r]})};function g6(...e){return XJ(de(e))}function _6({className:e,size:t=`default`,...n}){return(0,z.jsx)(wq,{"data-slot":`avatar`,"data-size":t,className:g6(`group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten`,e),...n})}function v6({className:e,...t}){return(0,z.jsx)(Xq,{"data-slot":`avatar-image`,className:g6(`aspect-square size-full rounded-full object-cover`,e),...t})}function y6({className:e,...t}){return(0,z.jsx)(eJ,{"data-slot":`avatar-fallback`,className:g6(`flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs`,e),...t})}var b6=d(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function x6({className:e,variant:t=`default`,render:n,...r}){return ZJ({defaultTagName:`span`,props:$K({className:g6(b6({variant:t}),e)},r),render:n,state:{slot:`badge`,variant:t}})}var S6=d(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5`,lg:`h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-9`,"icon-xs":`size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function C6({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,z.jsx)(oY,{"data-slot":`button`,className:g6(S6({variant:t,size:n,className:e})),...r})}function w6({className:e,size:t=`default`,...n}){return(0,z.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:g6(`group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,e),...n})}function T6({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-content`,className:g6(`px-(--card-spacing)`,e),...t})}function E6({...e}){return(0,z.jsx)(q0,{"data-slot":`dropdown-menu`,...e})}function D6({...e}){return(0,z.jsx)(i2,{"data-slot":`dropdown-menu-trigger`,...e})}function O6({align:e=`start`,alignOffset:t=0,side:n=`bottom`,sideOffset:r=4,className:i,container:a,...o}){return(0,z.jsx)(V1,{container:a,children:(0,z.jsx)(j0,{className:`isolate z-50 outline-none`,align:e,alignOffset:t,side:n,sideOffset:r,children:(0,z.jsx)(R1,{"data-slot":`dropdown-menu-content`,className:g6(`z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95`,i),...o})})})}function k6({...e}){return(0,z.jsx)(LX,{"data-slot":`dropdown-menu-group`,...e})}function A6({className:e,inset:t,...n}){return(0,z.jsx)(RX,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:g6(`px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8`,e),...n})}function j6({className:e,inset:t,variant:n=`default`,...r}){return(0,z.jsx)(Oee,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:g6(`group/dropdown-menu-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function M6({...e}){return(0,z.jsx)(Y0,{"data-slot":`dropdown-menu-sub`,...e})}function N6({className:e,inset:t,children:n,...r}){return(0,z.jsxs)(f2,{"data-slot":`dropdown-menu-sub-trigger`,"data-inset":t,className:g6(`flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,z.jsx)(M2,{className:`ml-auto`})]})}function P6({align:e=`start`,alignOffset:t=-3,side:n=`right`,sideOffset:r=0,className:i,...a}){return(0,z.jsx)(O6,{"data-slot":`dropdown-menu-sub-content`,className:g6(`w-auto min-w-[96px] rounded-md bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,i),align:e,alignOffset:t,side:n,sideOffset:r,...a})}function F6({className:e,children:t,checked:n,inset:r,...i}){return(0,z.jsxs)(MX,{"data-slot":`dropdown-menu-checkbox-item`,"data-inset":r,className:g6(`relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:n,...i,children:[(0,z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`,"data-slot":`dropdown-menu-checkbox-item-indicator`,children:(0,z.jsx)(NX,{children:(0,z.jsx)(A2,{})})}),t]})}function I6({className:e,...t}){return(0,z.jsx)(c2,{"data-slot":`dropdown-menu-separator`,className:g6(`-mx-1 my-1 h-px bg-border`,e),...t})}function L6({className:e,type:t,...n}){return(0,z.jsx)(X2,{type:t,"data-slot":`input`,className:g6(`h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}function R6({className:e,...t}){return(0,z.jsx)(`label`,{"data-slot":`label`,className:g6(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}function z6({...e}){return(0,z.jsx)(i4,{"data-slot":`popover`,...e})}function B6({...e}){return(0,z.jsx)(s4,{"data-slot":`popover-trigger`,...e})}function V6({className:e,align:t=`center`,alignOffset:n=0,side:r=`bottom`,sideOffset:i=4,container:a,...o}){return(0,z.jsx)(u4,{container:a,children:(0,z.jsx)(p4,{align:t,alignOffset:n,side:r,sideOffset:i,className:`isolate z-50`,children:(0,z.jsx)(g4,{"data-slot":`popover-content`,className:g6(`z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...o})})})}var H6=I4;function U6({className:e,...t}){return(0,z.jsx)(U4,{"data-slot":`select-value`,className:g6(`flex flex-1 text-left`,e),...t})}function W6({className:e,size:t=`default`,children:n,...r}){return(0,z.jsxs)(V4,{"data-slot":`select-trigger`,"data-size":t,className:g6(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,z.jsx)(W4,{render:(0,z.jsx)(j2,{className:`text-muted-foreground pointer-events-none size-4`})})]})}function G6({className:e,children:t,side:n=`bottom`,sideOffset:r=4,align:i=`center`,alignOffset:a=0,alignItemWithTrigger:o=!0,container:s,...c}){return(0,z.jsx)(G4,{container:s,children:(0,z.jsx)(Z4,{side:n,sideOffset:r,align:i,alignOffset:a,alignItemWithTrigger:o,className:`isolate z-50`,children:(0,z.jsxs)(a3,{"data-slot":`select-content`,"data-align-trigger":o,className:g6(`relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...c,children:[(0,z.jsx)(q6,{}),(0,z.jsx)(p3,{children:t}),(0,z.jsx)(J6,{})]})})})}function K6({className:e,children:t,...n}){return(0,z.jsxs)(g3,{"data-slot":`select-item`,className:g6(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,z.jsx)(y3,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:t}),(0,z.jsx)(v3,{render:(0,z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`}),children:(0,z.jsx)(A2,{className:`pointer-events-none`})})]})}function q6({className:e,...t}){return(0,z.jsx)(C3,{"data-slot":`select-scroll-up-button`,className:g6(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,z.jsx)(N2,{})})}function J6({className:e,...t}){return(0,z.jsx)(S3,{"data-slot":`select-scroll-down-button`,className:g6(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,z.jsx)(j2,{})})}function Y6({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`skeleton`,className:g6(`animate-pulse rounded-md bg-muted`,e),...t})}function X6({className:e,orientation:t=`horizontal`,...n}){return(0,z.jsx)(O3,{"data-slot":`tabs`,"data-orientation":t,className:g6(`group/tabs flex gap-2 data-[orientation=horizontal]:flex-col`,e),...n})}var Z6=d(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function Q6({className:e,variant:t=`default`,...n}){return(0,z.jsx)(H3,{"data-slot":`tabs-list`,"data-variant":t,className:g6(Z6({variant:t}),e),...n})}function $6({className:e,...t}){return(0,z.jsx)(P3,{"data-slot":`tabs-trigger`,className:g6(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,e),...t})}function e8({className:e,...t}){return(0,z.jsx)(L3,{"data-slot":`tabs-content`,className:g6(`flex-1 text-sm outline-none`,e),...t})}var t8=d(`group/toggle inline-flex items-center justify-center gap-1 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent shadow-xs hover:bg-muted`},size:{default:`h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,sm:`h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5`,lg:`h-10 min-w-10 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`}},defaultVariants:{variant:`default`,size:`default`}});function n8({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,z.jsx)(G3,{"data-slot":`toggle`,className:g6(t8({variant:t,size:n,className:e})),...r})}function r8({delay:e=0,...t}){return(0,z.jsx)(m6,{"data-slot":`tooltip-provider`,delay:e,...t})}function i8({...e}){return(0,z.jsx)(Q3,{"data-slot":`tooltip`,...e})}function a8({...e}){return(0,z.jsx)(i6,{"data-slot":`tooltip-trigger`,...e})}function o8({className:e,side:t=`top`,sideOffset:n=4,align:r=`center`,alignOffset:i=0,children:a,container:o,...s}){return(0,z.jsx)(c6,{container:o,children:(0,z.jsx)(d6,{align:r,alignOffset:i,side:t,sideOffset:n,className:`isolate z-50`,children:(0,z.jsxs)(f6,{"data-slot":`tooltip-content`,className:g6(`z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...s,children:[a,(0,z.jsx)(p6,{className:`bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`})]})})})}var s8={Avatar:{Avatar:_6,AvatarFallback:y6,AvatarImage:v6},Badge:{Badge:x6},Button:{Button:C6},Card:{Card:w6,CardContent:T6},DropdownMenu:{DropdownMenu:E6,DropdownMenuCheckboxItem:F6,DropdownMenuContent:O6,DropdownMenuGroup:k6,DropdownMenuItem:j6,DropdownMenuLabel:A6,DropdownMenuSeparator:I6,DropdownMenuSub:M6,DropdownMenuSubContent:P6,DropdownMenuSubTrigger:N6,DropdownMenuTrigger:D6},Input:{Input:L6},Label:{Label:R6},Popover:{Popover:z6,PopoverContent:V6,PopoverTrigger:B6},Select:{Select:H6,SelectContent:G6,SelectItem:K6,SelectTrigger:W6,SelectValue:U6},Skeleton:{Skeleton:Y6},Tabs:{Tabs:X6,TabsContent:e8,TabsList:Q6,TabsTrigger:$6},Toggle:{Toggle:n8},Tooltip:{Tooltip:i8,TooltipContent:o8,TooltipProvider:r8,TooltipTrigger:a8}},c8=(0,R.createContext)(void 0);function l8(){return(0,R.useContext)(c8)}var u8=(0,R.forwardRef)((e,t)=>{let{className:n,name:r,label:i,variant:a,icon:o,value:s,autoFocus:c,placeholder:l,disabled:u,onKeyDown:d,onChange:f,autoComplete:p,"aria-activedescendant":m,rightSection:h,...g}=e;Fj(g);let _=MK([TK(c),t]),v=l8();return(0,z.jsxs)(`div`,{className:g6(n,`border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,`text-foreground items-center gap-2`),children:[o,(0,z.jsxs)(`div`,{className:`flex-1`,children:[i&&(0,z.jsx)(v.Label.Label,{htmlFor:i,children:i}),(0,z.jsx)(v.Input.Input,{className:g6(n,`h-auto border-none p-0`),id:i,name:r,placeholder:l,disabled:u,value:s,onKeyDown:d,onChange:f,ref:_,"aria-activedescendant":m})]}),h]})});function d8(e){return e?{onFocusCapture(e){let t=e.relatedTarget;t instanceof HTMLElement&&!e.currentTarget.contains(t)&&t.focus({preventScroll:!0})}}:{}}var f8=(0,R.createContext)({portalElement:null,preventFocusOnOpen:!1}),p8=e=>{let{children:t,onOpenChange:n,position:r,portalElement:i,preventFocusOnOpen:a,sub:o,...s}=e;Fj(s);let c=l8(),l={portalElement:i,preventFocusOnOpen:a??!1};return o?(0,z.jsx)(c.DropdownMenu.DropdownMenuSub,{onOpenChange:n,children:(0,z.jsx)(f8.Provider,{value:l,children:t})}):(0,z.jsx)(c.DropdownMenu.DropdownMenu,{modal:!1,onOpenChange:n,children:(0,z.jsx)(f8.Provider,{value:l,children:t})})},m8=e=>{let{children:t,sub:n,...r}=e;Fj(r);let i=l8();return n?(0,z.jsx)(i.DropdownMenu.DropdownMenuSubTrigger,{children:t}):(0,z.jsx)(i.DropdownMenu.DropdownMenuTrigger,{render:t})},h8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,sub:i,...a}=e;Fj(a);let o=l8(),{portalElement:s,preventFocusOnOpen:c}=(0,R.useContext)(f8);return i?(0,z.jsx)(o.DropdownMenu.DropdownMenuSubContent,{className:n,container:s,ref:t,children:r}):(0,z.jsx)(o.DropdownMenu.DropdownMenuContent,{className:n,container:s,ref:t,...d8(c),children:r})}),g8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,icon:i,checked:a,disabled:o,subTrigger:s,onClick:c,...l}=e;Fj(l);let u=l8();return s?(0,z.jsxs)(z.Fragment,{children:[i,r]}):a===void 0?(0,z.jsxs)(u.DropdownMenu.DropdownMenuItem,{className:n,ref:t,onClick:c,disabled:o,onMouseDown:NK,...l,children:[i,r,s&&(0,z.jsx)(M2,{className:`ml-auto h-4 w-4`})]}):(0,z.jsxs)(u.DropdownMenu.DropdownMenuCheckboxItem,{className:g6(n,`gap-1`,a?``:`px-2`),ref:t,checked:a,onClick:c,disabled:o,onMouseDown:NK,...l,children:[i,r]})}),_8=(0,R.forwardRef)((e,t)=>{let{className:n,...r}=e;Fj(r);let i=l8();return(0,z.jsx)(i.DropdownMenu.DropdownMenuSeparator,{className:n,ref:t})}),v8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,...i}=e;Fj(i);let a=l8();return(0,z.jsx)(a.DropdownMenu.DropdownMenuGroup,{children:(0,z.jsx)(a.DropdownMenu.DropdownMenuLabel,{className:n,ref:t,children:r})})}),y8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,icon:i,onClick:a,onDragEnd:o,onDragStart:s,draggable:c,label:l,...u}=e;Fj(u,!1);let d=l8();return(0,z.jsxs)(d.Button.Button,{variant:`ghost`,className:g6(n,`text-gray-400`),ref:t,"aria-label":l,onClick:a,onDragStart:s,onDragEnd:o,draggable:c,...u,children:[i,r]})}),b8=(0,R.forwardRef)((e,t)=>{let{className:n,tabs:r,defaultOpenTab:i,openTab:a,setOpenTab:o,loading:s,...c}=e;Fj(c);let l=l8();return(0,z.jsxs)(l.Tabs.Tabs,{className:g6(n,`bg-popover max-w-screen rounded-lg p-2`),ref:t,value:a,defaultValue:i,onValueChange:o,children:[(0,z.jsx)(l.Tabs.TabsList,{children:r.map(e=>(0,z.jsx)(l.Tabs.TabsTrigger,{value:e.name,children:e.name},e.name))}),r.map(e=>(0,z.jsx)(l.Tabs.TabsContent,{value:e.name,children:(0,z.jsx)(l.Card.Card,{children:(0,z.jsx)(l.Card.CardContent,{className:`p-4`,children:e.tabPanel})})},e.name))]})}),x8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,...i}=e;return Fj(i),(0,z.jsx)(`div`,{className:g6(n,`flex flex-col items-start justify-center gap-2`),ref:t,children:r})}),S8=(0,R.forwardRef)((e,t)=>{let{className:n,value:r,placeholder:i,onKeyDown:a,onChange:o,...s}=e;Fj(s);let c=l8();return(0,z.jsx)(c.Input.Input,{"data-test":`embed-input`,className:g6(n,`w-80 max-w-full`),ref:t,value:r,placeholder:i,onKeyDown:a,onChange:o})}),C8=(0,R.createContext)(null),w8=e=>{let{children:t,open:n,onOpenChange:r,position:i,portalElement:a,...o}=e;Fj(o);let s=l8();return(0,z.jsx)(s.Popover.Popover,{open:n,onOpenChange:r,children:(0,z.jsx)(C8.Provider,{value:a,children:t})})},T8=(0,R.forwardRef)((e,t)=>{let{children:n,...r}=e;Fj(r);let i=l8();return(0,z.jsx)(i.Popover.PopoverTrigger,{ref:t,render:n})}),E8=(0,R.forwardRef)((e,t)=>{let{className:n,variant:r,children:i,...a}=e;Fj(a);let o=l8(),s=(0,R.useContext)(C8);return(0,z.jsx)(o.Popover.PopoverContent,{sideOffset:8,container:s,initialFocus:!1,className:g6(n,`flex flex-col gap-2`,r===`panel-popover`?`w-fit max-w-none border-none p-0 shadow-none`:``),ref:t,children:i})}),D8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,...i}=e;return Fj(i,!1),(0,z.jsx)(`div`,{className:n,ref:t,...i,children:r})}),O8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,icon:i,onClick:a,onDragEnd:o,onDragStart:s,draggable:c,label:l,...u}=e;Fj(u,!1);let d=l8();return(0,z.jsxs)(d.Button.Button,{variant:`ghost`,className:g6(n,`text-gray-400`),ref:t,"aria-label":l,onClick:a,onDragStart:s,onDragEnd:o,draggable:c,...u,children:[i,r]})}),k8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,id:i,columns:a,...o}=e;return Fj(o),(0,z.jsx)(`div`,{className:g6(`bg-popover text-popover-foreground z-50 min-w-32 overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 ring-foreground/10`,`grid`,n),style:{gridTemplateColumns:`repeat(${a}, 1fr)`},ref:t,id:i,role:`grid`,children:r})}),A8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,columns:i,...a}=e;return Fj(a),(0,z.jsx)(`div`,{className:n,style:{gridColumn:`1 / ${i+1}`},ref:t,children:r})}),j8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,id:i,...a}=e;return Fj(a),(0,z.jsx)(`div`,{id:i,role:`listbox`,className:g6(`bg-popover text-popover-foreground z-50 min-w-32 overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 ring-foreground/10`,n),ref:t,children:r})}),M8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,...i}=e;return Fj(i),(0,z.jsx)(`div`,{className:g6(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*=text-])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*=size-])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,`hover:bg-accent hover:text-accent-foreground data-[variant=destructive]:hover:bg-destructive/10 dark:data-[variant=destructive]:hover:bg-destructive/20 data-[variant=destructive]:hover:text-destructive`,`aria-selected:bg-accent aria-selected:text-accent-foreground data-[variant=destructive]:aria-selected:bg-destructive/10 dark:data-[variant=destructive]:aria-selected:bg-destructive/20 data-[variant=destructive]:aria-selected:text-destructive`,n),ref:t,children:(0,z.jsx)(`div`,{children:r})})}),N8=(0,R.forwardRef)((e,t)=>{let n=l8(),{className:r,item:i,isSelected:a,onClick:o,id:s,...c}=e;Fj(c);let l=(0,R.useRef)(null);return(0,R.useEffect)(()=>{l.current&&a&&AK(l.current,l.current.closest(`.bn-suggestion-menu, #ai-suggestion-menu`))!==`none`&&l.current.scrollIntoView({block:`nearest`})},[a]),(0,z.jsxs)(`div`,{className:g6(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*=text-])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*=size-])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,`hover:bg-accent hover:text-accent-foreground data-[variant=destructive]:hover:bg-destructive/10 dark:data-[variant=destructive]:hover:bg-destructive/20 data-[variant=destructive]:hover:text-destructive`,`aria-selected:bg-accent aria-selected:text-accent-foreground data-[variant=destructive]:aria-selected:bg-destructive/10 dark:data-[variant=destructive]:aria-selected:bg-destructive/20 data-[variant=destructive]:aria-selected:text-destructive`,e.item.size===`small`?`gap-3 py-1`:``,r),"data-highlighted":!0,ref:jK([t,l]),id:s,onMouseDown:e=>e.preventDefault(),onClick:o,role:`option`,"aria-selected":a||void 0,children:[i.icon&&(0,z.jsx)(`div`,{className:g6(`p-3`,e.item.size===`small`?`p-0`:``,r),"data-position":`left`,children:i.icon}),(0,z.jsxs)(`div`,{className:`flex-1`,children:[(0,z.jsx)(`div`,{className:g6(`text-base`,e.item.size===`small`?`text-sm`:``,r),children:i.title}),(0,z.jsx)(`div`,{className:g6(`text-xs`,e.item.size===`small`?`hidden`:``,r),children:i.subtext})]}),i.badge&&(0,z.jsx)(`div`,{"data-position":`right`,className:`text-xs`,children:(0,z.jsx)(n.Badge.Badge,{variant:`secondary`,children:i.badge})})]})}),P8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,...i}=e;return Fj(i),(0,z.jsx)(`div`,{className:g6(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,n),ref:t,children:r})}),F8=(0,R.forwardRef)((e,t)=>{let{className:n,...r}=e;return Fj(r),(0,z.jsx)(`div`,{className:g6(n,`animate-spin`),ref:t,children:(0,z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:`1em`,viewBox:`0 -960 960 960`,width:`1em`,fill:`#e8eaed`,children:(0,z.jsx)(`path`,{d:`M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480-80Z`})})})}),I8=(0,R.forwardRef)((e,t)=>{let{className:n,markClassName:r,backgroundColor:i,children:a,...o}=e;return Fj(o),(0,z.jsx)(`span`,{className:g6(n,r),style:r?void 0:{backgroundColor:i},ref:t,children:a})}),L8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,onMouseDown:i,onClick:a,...o}=e;Fj(o,!1);let s=l8();return(0,z.jsx)(s.Button.Button,{variant:`ghost`,className:g6(n,`h-full w-full p-0 text-gray-400`,n?.includes(`extend-button-add-remove-columns`)?`ml-1`:`mt-1`,n?.includes(`extend-button-editing`)?`bg-accent text-accent-foreground`:``),ref:t,onClick:a,onMouseDown:i,...o,children:r})}),R8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,draggable:i,onDragStart:a,onDragEnd:o,style:s,label:c,...l}=e;Fj(l,!1);let u=l8();return(0,z.jsx)(u.Button.Button,{variant:`ghost`,className:g6(n,`h-fit w-fit p-0 text-gray-400`),ref:t,"aria-label":c,draggable:i,onDragStart:a,onDragEnd:o,style:s,...l,children:r})}),z8=(0,R.forwardRef)((e,t)=>{let{className:n,"aria-label":r,children:i,onMouseEnter:a,onMouseLeave:o,trapFocus:s,variant:c,...l}=e;Fj(l);let u=l8();return(0,z.jsx)(u.Tooltip.TooltipProvider,{delay:0,children:(0,z.jsx)(`div`,{className:g6(n,`bg-popover text-popover-foreground flex h-fit gap-1 rounded-lg border p-1 shadow-md`,c===`action-toolbar`?`w-fit`:``),role:`toolbar`,"aria-label":r,ref:t,onMouseEnter:a,onMouseLeave:o,children:i})})}),B8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,mainTooltip:i,secondaryTooltip:a,icon:o,isSelected:s,isDisabled:c,onClick:l,label:u,variant:d,onMouseDown:f,...p}=e;Fj(p,!1);let m=l8(),h=Uy(),g=e=>{NK(e),f?.(e)},_=s===void 0?(0,z.jsxs)(m.Button.Button,{className:g6(n,d===`compact`?`h-6 min-w-6 p-0`:``),variant:`ghost`,size:d===`compact`?`sm`:`default`,disabled:c,onClick:l,ref:t,"aria-label":u,...p,onMouseDown:g,children:[o,r]}):(0,z.jsxs)(m.Toggle.Toggle,{className:g6(n,`aria-expanded:bg-accent aria-expanded:text-accent-foreground`,d===`compact`?`h-6 min-w-6 p-0`:``),size:d===`compact`?`sm`:`default`,"aria-label":u,onClick:l,pressed:s,disabled:c,ref:t,...p,onMouseDown:g,children:[o,r]});return(0,z.jsxs)(m.Tooltip.Tooltip,{children:[(0,z.jsx)(m.Tooltip.TooltipTrigger,{render:_}),(0,z.jsxs)(m.Tooltip.TooltipContent,{container:h,className:`flex flex-col items-center whitespace-pre-wrap`,children:[(0,z.jsx)(`span`,{children:i}),a&&(0,z.jsx)(`span`,{children:a})]})]})}),V8=(0,R.forwardRef)((e,t)=>{let{className:n,items:r,isDisabled:i,portalElement:a,preventFocusOnOpen:o,...s}=e;Fj(s);let c=l8(),l=e=>(0,z.jsxs)(`div`,{className:`flex items-center gap-1`,children:[e.icon,e.text]}),u=r.filter(e=>e.isSelected)[0];return u?(0,z.jsxs)(c.Select.Select,{value:u.text,onValueChange:e=>r.find(t=>t.text===e).onClick?.(),disabled:i,children:[(0,z.jsx)(c.Select.SelectTrigger,{className:`border-none`,onMouseDown:NK,children:(0,z.jsx)(c.Select.SelectValue,{})}),(0,z.jsx)(c.Select.SelectContent,{className:n,container:a,alignItemWithTrigger:!1,ref:t,...d8(o??!1),children:r.map(e=>(0,z.jsx)(c.Select.SelectItem,{disabled:e.isDisabled,value:e.text,onMouseDown:NK,children:(0,z.jsx)(l,{...e})},e.text))})]}):null}),H8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,selected:i,headerText:a,onFocus:o,onBlur:s,tabIndex:c,...l}=e;Fj(l);let u=l8();return(0,z.jsxs)(u.Card.Card,{className:g6(n,`w-[300px]`,i?`bg-accent text-accent-foreground`:``),onFocus:o,onBlur:s,tabIndex:c,ref:t,children:[a&&(0,z.jsx)(`div`,{className:`px-4 pt-4 text-sm italic`,children:a}),r]})}),U8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,...i}=e;return Fj(i),(0,z.jsx)(`div`,{className:g6(n,`p-4`,n?.includes(`thread-comments`)?`flex flex-col gap-6 border-b`:``),ref:t,children:r})}),W8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,...i}=e;Fj(i,!1);let a=l8();return(0,z.jsx)(a.Button.Button,{className:g6(n,`text-foreground w-fit bg-transparent p-0 hover:bg-transparent`),ref:t,children:r})}),G8=(0,R.forwardRef)((e,t)=>{let{authorInfo:n,timeString:r,edited:i,...a}=e,o=eb();Fj(a,!1);let s=l8();return n===`loading`?(0,z.jsxs)(`div`,{className:`flex flex-row flex-nowrap items-center gap-4`,children:[(0,z.jsx)(s.Skeleton.Skeleton,{className:`size-7 animate-pulse rounded-full bg-neutral-400`}),(0,z.jsx)(s.Skeleton.Skeleton,{className:`h-3 w-32 animate-pulse rounded-full bg-neutral-400`})]}):(0,z.jsxs)(`div`,{className:`flex flex-row flex-nowrap items-center gap-4`,children:[(0,z.jsxs)(s.Avatar.Avatar,{children:[(0,z.jsx)(s.Avatar.AvatarImage,{src:n.avatarUrl,alt:n.username,className:`h-7 rounded-full`}),(0,z.jsx)(s.Avatar.AvatarFallback,{children:n.username[0]})]}),(0,z.jsxs)(`div`,{className:`flex flex-row flex-nowrap items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`text-sm font-bold`,children:n.username}),(0,z.jsxs)(`span`,{className:`text-xs`,children:[r,` `,i&&`(${o.comments.edited})`]})]})]})}),K8=(0,R.forwardRef)((e,t)=>{let{className:n,showActions:r,authorInfo:i,timeString:a,actions:o,edited:s,emojiPickerOpen:c,children:l,...u}=e;Fj(u);let[d,f]=(0,R.useState)(!1),{focused:p,ref:m}=DK(),h=o&&(r===!0||r===void 0||r===`hover`&&d||p||c);return(0,z.jsxs)(`div`,{ref:t,className:g6(n,`relative flex flex-col gap-2`),onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[h?(0,z.jsx)(`div`,{className:`absolute top-0 right-0 z-10`,ref:m,children:o}):null,(0,z.jsx)(G8,{...e}),l]})}),q8=(0,R.forwardRef)((e,t)=>{let{className:n,onFocus:r,onBlur:i,autoFocus:a,editor:o,editable:s,...c}=e;Fj(c);let l=Ay();return(0,z.jsx)(o5,{autoFocus:a,className:g6(n,``),theme:l?.colorSchemePreference,editor:e.editor,sideMenu:!1,slashMenu:!1,tableHandles:!1,filePanel:!1,formattingToolbar:!1,editable:s,ref:t,onFocus:r,onBlur:i,children:(0,z.jsx)(DW,{formattingToolbar:J8})})}),J8=()=>{let e=hW([]).filter(e=>e.key!==`nestBlockButton`&&e.key!==`unnestBlockButton`);return(0,z.jsx)(gW,{blockTypeSelectItems:[],children:e})},Y8=(0,R.forwardRef)((e,t)=>{let{className:n,text:r,icon:i,isSelected:a,mainTooltip:o,secondaryTooltip:s,onClick:c,onMouseEnter:l,...u}=e;Fj(u,!1);let d=l8(),f=Uy(),p=(0,z.jsxs)(d.Button.Button,{variant:a?`secondary`:`outline`,className:g6(n,`flex h-7 items-center gap-1 rounded-full px-2.5`),onClick:c,onMouseEnter:l,ref:t,children:[(0,z.jsx)(`span`,{children:i}),(0,z.jsx)(`span`,{children:r})]});return o?(0,z.jsxs)(d.Tooltip.Tooltip,{children:[(0,z.jsx)(d.Tooltip.TooltipTrigger,{render:p}),(0,z.jsxs)(d.Tooltip.TooltipContent,{container:f,className:`flex flex-col items-center whitespace-pre-wrap`,children:[(0,z.jsx)(`span`,{children:o}),s&&(0,z.jsx)(`span`,{children:s})]})]}):p}),X8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,...i}=e;Fj(i);let a=l8();return(0,z.jsx)(a.Tooltip.TooltipProvider,{delay:0,children:(0,z.jsx)(`div`,{className:g6(n,`flex w-full flex-row flex-wrap gap-1`),ref:t,children:r})})}),Z8=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,"aria-label":i,...a}=e;return Fj(a,!1),(0,z.jsx)(`div`,{className:g6(n,`flex min-h-0 flex-1 flex-col overflow-hidden px-4`),ref:t,role:`region`,"aria-label":i,children:r})});function Q8(e){let{className:t,title:n,actions:r,closeAction:i,...a}=e;return Fj(a,!1),(0,z.jsxs)(`div`,{className:g6(t,`flex shrink-0 items-center justify-between pt-4 pb-2`),children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,z.jsx)(`h2`,{className:`text-card-foreground m-0 text-lg font-bold`,children:n}),r]}),i]})}function $8(e){let t=l8();return e.mode===`display`?(0,z.jsx)(`span`,{className:`bn-snapshot-name`,children:e.value}):(0,z.jsx)(`span`,{className:`bn-snapshot-name-sizer`,"data-value":e.value===``?e.placeholder:e.value,children:(0,z.jsx)(t.Input.Input,{ref:e.inputRef,className:`bn-snapshot-name h-auto shadow-none focus-visible:ring-0`,type:`text`,value:e.value,placeholder:e.placeholder,"aria-label":e[`aria-label`],onChange:e.onChange,onClick:e.onClick,onKeyDown:e.onKeyDown,onBlur:e.onBlur})})}var e5=(0,R.forwardRef)((e,t)=>{let{className:n,id:r,"aria-label":i,state:a,tabIndex:o,"aria-busy":s,onClick:c,onKeyDown:l,onFocus:u,actions:d,name:f,date:p,restoredFrom:m,secondaryLabel:h,comparingLabel:g,comparingIcon:_,...v}=e;Fj(v,!1);let y=l8();return(0,z.jsxs)(y.Card.Card,{className:g6(n,`group relative mb-1 flex w-full cursor-pointer flex-col gap-1.5 overflow-visible rounded-lg border border-transparent px-3.5 py-3 text-card-foreground shadow-none transition-colors hover:bg-accent focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary`,(a===`selected`||a===`comparison-source`)&&`selected bg-primary text-primary-foreground hover:bg-primary focus-visible:-outline-offset-4 focus-visible:outline-primary-foreground`,a===`comparison-baseline`&&`comparing bg-primary/10`,(a===`comparison-source`||a===`comparison-baseline`)&&`border-primary ring-1 ring-primary`),id:r,role:`listitem`,"aria-label":i,"aria-current":a===`selected`||a===`comparison-source`?`true`:void 0,"aria-busy":s,tabIndex:o,onClick:c,onKeyDown:l,onFocus:u,ref:t,children:[g&&(0,z.jsxs)(`div`,{className:`bn-snapshot-comparing-to text-primary dark:text-primary flex items-center gap-1 text-[13px] font-semibold`,children:[_,(0,z.jsx)(`span`,{children:g})]}),(0,z.jsxs)(`div`,{className:`bn-snapshot-body flex flex-col gap-0.5 text-[13px]`,children:[(0,z.jsx)(`div`,{className:`bn-snapshot-title-row flex min-h-5 min-w-0 items-center gap-1.5 pr-5`,children:f}),p&&(0,z.jsx)(`div`,{className:`bn-snapshot-date leading-[1.3]`,children:p}),m&&(0,z.jsx)(`div`,{className:`bn-snapshot-original-date text-muted-foreground leading-[1.3]`,children:m}),h&&(0,z.jsx)(`div`,{className:`bn-snapshot-secondary-label text-muted-foreground leading-[1.3]`,children:h})]}),d&&(0,z.jsx)(`div`,{className:`bn-snapshot-menu absolute top-2 right-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 group-focus-visible:opacity-100`,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:d})]})}),t5=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,type:i,onClick:a,label:o,...s}=e;Fj(s);let c=l8();return(0,z.jsx)(c.Button.Button,{type:i,className:n,"aria-label":o,ref:t,onClick:a,children:r})}),n5=(0,R.forwardRef)((e,t)=>{let{className:n,accept:r,value:i,placeholder:a,onChange:o,...s}=e;Fj(s);let c=l8();return(0,z.jsx)(c.Input.Input,{type:`file`,className:n,ref:t,accept:r,value:i?i.name:void 0,onChange:async e=>o?.(e.target.files[0]),placeholder:a})}),r5=(0,R.forwardRef)((e,t)=>{let{className:n,isSelected:r,onClick:i,item:a,id:o,...s}=e;Fj(s);let c=(0,R.useRef)(null);return(0,R.useEffect)(()=>{c.current&&r&&AK(c.current,c.current.closest(`.bn-grid-suggestion-menu`))!==`none`&&c.current.scrollIntoView({block:`nearest`})},[r]),(0,z.jsx)(`div`,{className:g6(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*=text-])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm p-2 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*=size-])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,`hover:bg-accent hover:text-accent-foreground data-[variant=destructive]:hover:bg-destructive/10 dark:data-[variant=destructive]:hover:bg-destructive/20 data-[variant=destructive]:hover:text-destructive`,`aria-selected:bg-accent aria-selected:text-accent-foreground data-[variant=destructive]:aria-selected:bg-destructive/10 dark:data-[variant=destructive]:aria-selected:bg-destructive/20 data-[variant=destructive]:aria-selected:text-destructive`,`text-base!`,n),ref:jK([t,c]),id:o,role:`option`,onClick:i,"aria-selected":r||void 0,children:a.icon})}),i5=(0,R.forwardRef)((e,t)=>{let{className:n,children:r,columns:i,...a}=e;return Fj(a),(0,z.jsx)(`div`,{className:n,style:{gridColumn:`1 / ${i+1}`},ref:t,children:r})}),a5={FormattingToolbar:{Root:z8,Button:B8,Select:V8},FilePanel:{Root:b8,Button:t5,FileInput:n5,TabPanel:x8,TextInput:S8},LinkToolbar:{Root:z8,Button:B8,Select:V8},SideMenu:{Root:D8,Button:O8},SuggestionMenu:{Root:j8,Item:N8,EmptyItem:M8,Label:P8,Loader:F8},GridSuggestionMenu:{Root:k8,Item:r5,EmptyItem:A8,Loader:i5},TableHandle:{Root:R8,ExtendButton:L8},Comments:{Comment:K8,Editor:q8,Card:H8,CardSection:U8,ExpandSectionsPrompt:W8},Versioning:{Sidebar:Z8,Header:Q8,Name:$8,Snapshot:e5,Loader:F8},AttributionTooltip:{Root:I8},Generic:{Badge:{Root:Y8,Group:X8},Toolbar:{Root:z8,Button:B8,Select:V8},Form:{Root:h6,TextInput:u8},Menu:{Root:p8,Trigger:m8,Dropdown:h8,Divider:_8,Label:v8,Item:g8,Button:y8},Popover:{Root:w8,Trigger:T8,Content:E8}}},o5=e=>{let{className:t,shadCNComponents:n,...r}=e,i=(0,R.useMemo)(()=>({...s8,...n}),[n]);return(0,z.jsx)(c8.Provider,{value:i,children:(0,z.jsx)(Qy.Provider,{value:a5,children:(0,z.jsx)(YG,{className:Lj(`bn-shadcn`,t||``),...r})})})};function s5(e){return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([e])=>e!==`type`)))}function c5(e){if(typeof e==`string`)try{let t=JSON.parse(e);return typeof t.of!=`string`||t.of===``?void 0:{type:`component`,of:t.of,...typeof t.width==`number`?{width:t.width}:{},...typeof t.height==`number`?{height:t.height}:{},...typeof t.at==`number`?{at:t.at}:{},...typeof t.alt==`string`?{alt:t.alt}:{},...typeof t.caption==`string`?{caption:t.caption}:{},...t.align===`center`||t.align===`right`?{align:t.align}:{},props:Object.fromEntries(Object.entries(t.props??{}).filter(e=>typeof e[1]==`string`))}}catch{return}}function l5(e){return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([e])=>e!==`type`)))}var u5=[...xe,`none`];function d5(e){if(typeof e!=`string`)return;let t;try{t=JSON.parse(e)}catch{return}let n=t.kind;if(typeof n!=`string`||!Fe.includes(n))return;let r=e=>typeof t[e]==`string`?{[e]:t[e]}:{},i=e=>typeof t[e]==`number`&&Number.isFinite(t[e])?{[e]:t[e]}:{},a=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`)?e:void 0,o=Array.isArray(t.table)?t.table.map(a):void 0,s=a(t.series),c=a(t.colors),l=a(t.labels)?.filter(e=>Nl.includes(e)),u=t.legend;return{type:`chart`,kind:n,...r(`title`),...o?.every(e=>e!==void 0)?{table:o}:{},...r(`data`),...r(`categories`),...s===void 0?{}:{series:s},...typeof u==`string`&&u5.includes(u)?{legend:u}:{},...l===void 0?{}:{labels:l},...r(`format`),...i(`min`),...i(`max`),...c===void 0?{}:{colors:c},...i(`width`),...i(`height`),...r(`alt`)}}var f5={[Ml.math]:`math`,[Ml.mermaid]:`diagram`},p5=`default`,m5=`💡`,h5={paragraph:`paragraph`,heading:`heading`,bullet:`bulletListItem`,numbered:`numberedListItem`,check:`checkListItem`,toggle:`toggleListItem`,quote:`quote`};function g5(e){let t=Object.keys(e).sort();return t.length===0?``:JSON.stringify(Object.fromEntries(t.map(t=>[t,e[t]])))}var _5=[`bold`,`italic`,`underline`,`strike`,`code`];function v5(e){if(typeof e!=`string`||e===``)return{};let t;try{t=JSON.parse(e)}catch{return{}}if(typeof t!=`object`||!t)return{};let n=t,r=n.color,i=n.background;return{...Object.fromEntries(_5.filter(e=>n[e]===!0).map(e=>[e,!0])),...typeof r==`string`?{color:r}:{},...typeof i==`string`?{background:i}:{}}}function y5(e){let t=[];for(let n of e){if(n.note!==void 0){t.push({type:`footnote`,props:{label:n.note,styles:g5(n.styles),href:n.href??``}});continue}let e=n.styles,r={type:`text`,text:n.text,styles:{...e.bold?{bold:!0}:{},...e.italic?{italic:!0}:{},...e.underline?{underline:!0}:{},...e.strike?{strike:!0}:{},...e.code?{code:!0}:{},...e.color===void 0?{}:{textColor:e.color},...e.background===void 0?{}:{backgroundColor:e.background}}};if(n.href===void 0){t.push(r);continue}let i=t.at(-1);i?.type===`link`&&i.href===n.href?i.content.push(r):t.push({type:`link`,href:n.href,content:[r]})}return t}var b5=e=>({textAlignment:e?.align??`left`,textColor:e?.color??p5,backgroundColor:e?.background??p5});function x5(e){let t={...e};delete t.children;let n=JSON.stringify(t),r=2166136261;for(let e=0;e<n.length;e++)r=Math.imul(r^n.charCodeAt(e),16777619)>>>0;return r.toString(36)}function S5(e){let t=new Map,n=(e,r)=>e.map((e,i)=>{let a=r[i];if(!a)return e;let o=x5(a),s=t.get(o)??0;t.set(o,s+1);let c=`d${o}${s===0?``:`-${String(s)}`}`;if(a.type===`columns`)return{...e,id:c,children:(e.children??[]).map((e,t)=>({...e,id:`${c}-c${String(t)}`,children:n(e.children??[],a.columns[t]?.blocks??[])}))};let l=`children`in a?a.children??[]:[];return{...e,id:c,...e.children?{children:n(e.children,l)}:{}}});return n(C5(e),e)}function C5(e){return e.map(e=>{switch(e.type){case`paragraph`:case`bullet`:case`toggle`:case`quote`:case`heading`:case`numbered`:case`check`:return{type:h5[e.type]??`paragraph`,props:{...b5(e.look),...e.type===`heading`?{level:e.level,isToggleable:e.toggle===!0}:{},...e.type===`numbered`&&e.start!==void 0?{start:e.start}:{},...e.type===`check`?{checked:e.checked}:{}},content:y5(e.content),children:C5(e.children??[])};case`callout`:return{type:`callout`,props:{icon:e.icon??`💡`,textColor:e.look?.color??p5,backgroundColor:e.look?.background??p5},content:y5(e.content),children:C5(e.children??[])};case`code`:{let t=e.language===void 0?void 0:f5[e.language];return t===void 0?{type:`codeBlock`,props:{language:e.language??`text`},content:[{type:`text`,text:e.code,styles:{}}]}:{type:t,props:{code:e.code}}}case`image`:return{type:`image`,props:{url:e.src,name:e.alt??``,caption:e.caption??``,textAlignment:e.align??`left`,...e.width===void 0?{}:{previewWidth:e.width}}};case`table`:return{type:`table`,content:{type:`tableContent`,headerRows:e.head===`none`||e.head===`column`?0:1,headerCols:+(e.head===`column`||e.head===`both`),columnWidths:Array.from({length:Math.max(0,...e.rows.map(e=>e.length))},(t,n)=>e.widths?.[n]??void 0),rows:e.rows.map(e=>({cells:e.map(e=>y5(e))}))}};case`divider`:return{type:`divider`};case`pagebreak`:return{type:`pagebreak`};case`note`:return{type:`note`,props:{label:e.label},content:y5(e.content),children:C5(e.children??[])};case`component`:return{type:`component`,props:{data:s5(e)}};case`chart`:return{type:`chart`,props:{data:l5(e)}};case`columns`:return{type:`columns`,children:e.columns.map(e=>({type:`column`,props:{width:e.width??1},children:C5(e.blocks)}))};case`embed`:case`source`:return{type:`embed`,props:{source:e.source}}}})}function w5(e){if(typeof e!=`number`||!Number.isFinite(e)||e<=0)return;let t=Math.round(e*100)/100;return t===1||t<=0?void 0:t}var T5=(e,t)=>JSON.stringify(e,Object.keys(e).sort())===JSON.stringify(t,Object.keys(t).sort());function E5(e){if(typeof e==`string`)return e===``?[]:[{text:e,styles:{}}];if(!Array.isArray(e))return[];let t=[],n=(e,n,r)=>{if(e===``)return;let i=t.at(-1);i&&i.note===void 0&&i.href===r&&T5(i.styles,n)?i.text+=e:t.push({text:e,styles:n,...r===void 0?{}:{href:r}})},r=(e,t)=>{if(e.text===``)return;let r=e.styles,i=typeof r.textColor==`string`?r.textColor:p5,a=typeof r.backgroundColor==`string`?r.backgroundColor:p5,o={...r.bold===!0?{bold:!0}:{},...r.italic===!0?{italic:!0}:{},...r.underline===!0?{underline:!0}:{},...r.strike===!0?{strike:!0}:{},...r.code===!0?{code:!0}:{},...i===p5?{}:{color:i},...a===p5?{}:{background:a}};n(e.text,o,t)};for(let n of e)if(n.type===`text`)r(n);else if(n.type===`link`)for(let e of n.content)r(e,n.href);else{let{label:e,styles:r,href:i}=n.props;if(e===``)continue;t.push({text:e,styles:v5(r),note:e,...typeof i==`string`&&i!==``?{href:i}:{}})}return Ll(t)}function D5(e){let t=e?.textAlignment,n=e?.textColor,r=e?.backgroundColor,i={...t===`center`||t===`right`||t===`justify`?{align:t}:{},...typeof n==`string`&&n!==p5?{color:n}:{},...typeof r==`string`&&r!==p5?{background:r}:{}};return Object.keys(i).length>0?{look:i}:{}}var O5=e=>{let t=A5(e.children??[]);return t.length>0?{children:t}:{}},k5=e=>e===2||e===3||e===4||e===5||e===6?e:1;function A5(e){let t=[];for(let n of e){let e=n.props??{};switch(n.type){case`paragraph`:t.push({type:`paragraph`,...D5(e),content:E5(n.content),...O5(n)});break;case`heading`:t.push({type:`heading`,level:k5(e.level),...e.isToggleable===!0?{toggle:!0}:{},...D5(e),content:E5(n.content),...O5(n)});break;case`bulletListItem`:t.push({type:`bullet`,...D5(e),content:E5(n.content),...O5(n)});break;case`numberedListItem`:{let r=e.start;t.push({type:`numbered`,...typeof r==`number`?{start:r}:{},...D5(e),content:E5(n.content),...O5(n)});break}case`checkListItem`:t.push({type:`check`,checked:e.checked===!0,...D5(e),content:E5(n.content),...O5(n)});break;case`toggleListItem`:t.push({type:`toggle`,...D5(e),content:E5(n.content),...O5(n)});break;case`quote`:t.push({type:`quote`,...D5(e),content:E5(n.content),...O5(n)});break;case`callout`:{let r=e.icon,i=D5(e);t.push({type:`callout`,...typeof r==`string`&&r!==``&&r!==`💡`?{icon:r}:{},...i.look?.color!==void 0||i.look?.background!==void 0?{look:{...i.look.color===void 0?{}:{color:i.look.color},...i.look.background===void 0?{}:{background:i.look.background}}}:{},content:E5(n.content),...O5(n)});break}case`codeBlock`:{let r=e.language;t.push({type:`code`,...typeof r==`string`&&r!==``&&r!==`text`?{language:r}:{},code:E5(n.content).map(e=>e.text).join(``)});break}case`image`:{let n=e.url,r=e.name,i=e.caption;if(typeof n!=`string`||n===``)break;let a=e.previewWidth,o=e.textAlignment;t.push({type:`image`,src:n,...typeof r==`string`&&r!==``?{alt:r}:{},...typeof i==`string`&&i!==``?{caption:i}:{},...typeof a==`number`&&a>0?{width:Math.round(a)}:{},...o===`center`||o===`right`?{align:o}:{}});break}case`table`:{let e=n.content;if(e===void 0||typeof e==`string`||Array.isArray(e))break;let r=(e.headerRows??0)>0,i=(e.headerCols??0)>0,a=(e.columnWidths??[]).map(e=>typeof e==`number`&&e>0?Math.round(e):null);t.push({type:`table`,rows:e.rows.map(e=>e.cells.map(e=>E5(Array.isArray(e)?e:e.content))),...r&&i?{head:`both`}:i?{head:`column`}:r?{}:{head:`none`},...a.some(e=>e!==null)?{widths:a}:{}});break}case`divider`:t.push({type:`divider`});break;case`pagebreak`:t.push({type:`pagebreak`});break;case`note`:{let r=e.label;t.push({type:`note`,label:typeof r==`string`?r:``,content:E5(n.content),...O5(n)});break}case`embed`:{let n=e.source;typeof n==`string`&&n!==``&&t.push({type:`embed`,source:n});break}case`component`:{let n=c5(e.data);n&&t.push(n);break}case`chart`:{let n=d5(e.data);n&&t.push(n);break}case`math`:case`diagram`:{let r=e.code;t.push({type:`code`,language:n.type===`math`?Ml.math:Ml.mermaid,code:typeof r==`string`?r:``});break}case`columns`:{let e=(n.children??[]).filter(e=>e.type===`column`).map(e=>{let t=w5(e.props?.width);return{...t===void 0?{}:{width:t},blocks:A5(e.children??[]).flatMap(e=>e.type===`columns`?e.columns.flatMap(e=>e.blocks):[e])}});e.length<2?t.push(...e.flatMap(e=>e.blocks)):t.push({type:`columns`,columns:e});break}}}return t.map((e,n)=>{if(e.type!==`numbered`||e.start!==1||t[n-1]?.type===`numbered`)return e;let r={...e};return delete r.start,r})}var j5=40,M5=5;function N5(e,t,n=0){if(t===``)return;let r=t.slice(0,j5),i=e.indexOf(r);for(let t=0;t<n&&i>=0;t++)i=e.indexOf(r,i+r.length);return i<0?void 0:e.slice(0,i).split(`
|
|
487
|
+
`).length}function P5(e){let t=document.createRange();t.selectNodeContents(e);let n=[...t.getClientRects()];return n.length>0?n:[e.getBoundingClientRect()]}function F5(e,t,n,r){let i=[],a=new Map;for(let o of e.querySelectorAll(`.bn-block-content`)){let e=o.textContent.trim(),c=a.get(e)??0;if(a.set(e,c+1),!P5(o).some(e=>s(t,e)))continue;let l=N5(r,e,c);if(i.push({name:`the block`,source:{path:n,...l===void 0?{}:{line:l}},...e===``?{}:{text:e}}),i.length===M5)break}return i}function I5(e){let{children:t,...n}=e;return delete n.id,{...n,...t?{children:t.map(I5)}:{}}}var L5=e=>Array.isArray(e.content)?e.content.map(e=>e.type===`text`?e.text:e.type===`link`?e.content.map(e=>e.text).join(``):e.props.label).join(``):``;function R5(e){let t=e.getSelection()?.blocks??[];return t.length>0?t:[e.getTextCursorPosition().block]}var z5=`.doc-scroll, .doc-body, .doc-column, .doc-title-row, .bn-container`,B5=`.doc-slash-menu, .bn-suggestion-menu, .bn-grid-suggestion-menu`;function V5(e,t){let n=document.createRange();n.selectNodeContents(e);let r=Array.from(n.getClientRects()),i=r[0];if(!i)return!0;let a=window.getSelection(),o=a&&a.rangeCount>0?a.getRangeAt(0).getClientRects()[0]:void 0;return o?o.top-i.top<i.height*.6:t||r.every(e=>Math.abs(e.top-i.top)<4)}function H5(e,t,n={}){let{onActions:r,onTitle:i}=n;(0,R.useEffect)(()=>{let n=t.current;if(!n)return;let a=e._tiptapEditor.view,o=a.dom,s=()=>{let t=window.getSelection();if(!t?.focusNode||!t.anchorNode||a.composing)return;let n=e=>o.contains(e)&&(e instanceof Element?e:e.parentElement)?.closest(`.bn-inline-content`)!=null;if(!n(t.focusNode)||!n(t.anchorNode))return;let r=a.state.selection;if(r.toJSON().type===`text`)try{let n=a.posAtDOM(t.anchorNode,t.anchorOffset),i=a.posAtDOM(t.focusNode,t.focusOffset);if(n===r.anchor&&i===r.head)return;e._tiptapEditor.commands.setTextSelection({from:Math.min(n,i),to:Math.max(n,i)})}catch{}},c=(t,n)=>{try{if(t!==n)return e.setSelection(t,n),!0;let r=o.querySelector(`.bn-block-outer[data-id="${CSS.escape(t)}"] .bn-inline-content`);return r?(e._tiptapEditor.commands.setTextSelection({from:a.posAtDOM(r,0),to:a.posAtDOM(r,r.childNodes.length)}),!0):!1}catch{return!1}},l=t=>{if(t.isComposing)return;s();let n=t.metaKey||t.ctrlKey;if(i&&!n&&!t.shiftKey&&!t.altKey&&(t.key===`ArrowUp`||t.key===`Backspace`)&&!document.querySelector(B5)){let n=e.getTextCursorPosition().block,r=e.document[0],s=a.state.selection,c=r?.id!==void 0&&n.id===r.id?o.querySelector(`.bn-block-outer[data-id="${CSS.escape(r.id)}"] .bn-inline-content`):null;if(r?.id!==void 0&&c&&s.anchor===s.head&&s.toJSON().type===`text`){let o=s.head===a.posAtDOM(c,0);if(t.key===`ArrowUp`&&V5(c,o)){t.preventDefault(),t.stopPropagation(),i();return}if(t.key===`Backspace`&&o&&n.type===`paragraph`&&(n.children?.length??0)===0){t.preventDefault(),t.stopPropagation();let a=L5(n);e.document.length>1?e.removeBlocks([r.id]):a!==``&&e.updateBlock(r.id,{type:`paragraph`,content:[]}),i(a);return}}}if(t.key===` `&&!n&&!t.altKey){let n=e.getTextCursorPosition().block;if(n.type===`paragraph`&&n.id!==void 0&&L5(n)===`"`&&(n.children?.length??0)===0){t.preventDefault(),t.stopPropagation(),e.updateBlock(n.id,{type:`quote`,content:[]});return}if(n.type===`paragraph`&&n.id!==void 0&&L5(n)===`>`&&(n.children?.length??0)===0){t.preventDefault(),t.stopPropagation();try{window.localStorage.setItem(`toggle-${n.id}`,`true`)}catch{}e.updateBlock(n.id,{type:`toggleListItem`,content:[]})}}else if(t.key===`Enter`&&!n&&!t.shiftKey&&!t.altKey){let n=e.getTextCursorPosition().block;if(n.type!==`callout`||n.id===void 0||L5(n)===``)return;let r=o.querySelector(`.bn-block-outer[data-id="${CSS.escape(n.id)}"] .bn-inline-content`),i=a.state.selection;if(!r||i.anchor!==i.head||i.head!==a.posAtDOM(r,r.childNodes.length))return;t.preventDefault(),t.stopPropagation();let s=n.children?.[0];s?.id===void 0?e.updateBlock(n.id,{type:n.type,children:[{type:`paragraph`}]}):e.insertBlocks([{type:`paragraph`}],s.id,`before`);let c=e.getBlock(n.id)?.children?.[0];c?.id!==void 0&&e.setTextCursorPosition(c.id,`start`)}else if(t.key===`Escape`&&!n&&!document.querySelector(B5)){let n=e.getTextCursorPosition().block;(e.getSelection()?.blocks??[]).length===0&&n.id!==void 0&&c(n.id,n.id)&&t.preventDefault()}else if(n&&!t.shiftKey&&!t.altKey&&t.key===`d`){let n=R5(e),r=n.at(-1);if(r?.id===void 0)return;t.preventDefault(),t.stopPropagation(),e.insertBlocks(n.map(I5),r.id,`after`)}else if(n&&!t.shiftKey&&!t.altKey&&t.key===`/`){let n=e.getTextCursorPosition().block;if(n.id===void 0||!r)return;t.preventDefault(),t.stopPropagation(),r(n.id)}},u=()=>Array.from(o.querySelectorAll(`:scope > .bn-block-group > .bn-block-outer`)).map(e=>({id:e.getAttribute(`data-id`)??``,box:e.getBoundingClientRect()})),d=(t,n)=>{let r=u(),a=r.at(-1);if(!a){e.focus();return}if(i&&r[0]&&n<r[0].box.top){i();return}let o=r.find(e=>n>=e.box.top&&n<=e.box.bottom),s=o??(n<(r[0]?.box.top??0)?r[0]:a);if(s){try{e.setTextCursorPosition(s.id,o&&t<s.box.left?`start`:`end`)}catch{}e.focus()}},f,p=e=>{if(!f)return;let t=e.clientX-f.x,n=e.clientY-f.y;if(!f.box&&Math.hypot(t,n)<6)return;f.box||(f.box=document.createElement(`div`),f.box.className=`doc-marquee`,document.body.append(f.box));let r=Math.min(f.y,e.clientY),i=Math.max(f.y,e.clientY);Object.assign(f.box.style,{left:`${String(Math.min(f.x,e.clientX))}px`,top:`${String(r)}px`,width:`${String(Math.abs(t))}px`,height:`${String(Math.abs(n))}px`});let a=u().filter(e=>e.box.bottom>=r&&e.box.top<=i),o=a[0],s=a.at(-1);o&&s&&c(o.id,s.id)},m=t=>{let n=f;f=void 0,window.removeEventListener(`mousemove`,p),window.removeEventListener(`mouseup`,m),n?.box?(n.box.remove(),e.focus()):n&&d(t.clientX,t.clientY)},h=e=>{if(e.button!==0)return;let t=e.target;t&&!o.contains(t)&&t.matches(z5)&&(e.preventDefault(),f={x:e.clientX,y:e.clientY,box:void 0},window.addEventListener(`mousemove`,p),window.addEventListener(`mouseup`,m))};return o.addEventListener(`keydown`,l,!0),n.addEventListener(`mousedown`,h),()=>{o.removeEventListener(`keydown`,l,!0),n.removeEventListener(`mousedown`,h),window.removeEventListener(`mousemove`,p),window.removeEventListener(`mouseup`,m),f?.box?.remove()}},[e,r,i,t])}var U5=/^([a-z][a-z0-9+.-]*:|\/\/|#)/i;function W5(e,t){let n=e.split(`/`).filter(Boolean),r=t.split(`/`).filter(Boolean),i=0;for(;i<n.length&&i<r.length-1&&n[i]===r[i];)i++;let a=n.slice(i).map(()=>`..`),o=[...a,...r.slice(i)].join(`/`);return a.length===0?`./${o}`:o}var G5=e=>e.slice(0,Math.max(0,e.lastIndexOf(`/`))),K5=e=>e.slice(e.lastIndexOf(`/`)+1);function q5(e,t){if(U5.test(t))return;let n=t.split(/[?#]/)[0]??``,r;try{r=decodeURIComponent(n)}catch{return}let i=[];for(let t of`${e}/${r}`.split(`/`))if(t!==``&&t!==`.`){if(t!==`..`)i.push(t);else if(i.pop()===void 0)return}return i.length===0?void 0:i.join(`/`)}function J5(e,t){let n=G5(e);return t.filter(t=>t.entry!==e).map(e=>({title:e.title??K5(e.dir),href:W5(n,e.entry),kind:e.kind,place:e.dir}))}function Y5(e,t,n){let r=q5(G5(e),t);if(r!==void 0)return n.find(e=>e.entry===r||e.dir===r)?.entry??r}var X5=(0,R.createContext)(void 0);function Z5({data:e,onData:t}){let n=(0,R.useContext)(X5),r=c5(e),i=r?tr(r):void 0,a=Mt(n?.item,void 0,i!==void 0),o=bt(n?.item,void 0,a===void 0&&i?[i]:[]),s=(0,R.useRef)(null),c=(0,R.useRef)(void 0),[l,u]=(0,R.useState)(),[d,f]=(0,R.useState)(),[p,m]=(0,R.useState)(!1),h=JSON.stringify(i);if((0,R.useEffect)(()=>{let e=s.current;if(!e||!a||!i)return;if(c.current?.url===a.url){c.current.mounted.draw(i);return}let t=c.current?.mounted,n=qt(e,a,i,{onDrawn:e=>{t?.remove(),f(void 0),e&&u(e)},onError:e=>{t?.remove(),f(e)}});c.current={url:a.url,mounted:n,...t?{old:t}:{}}},[a,h]),(0,R.useEffect)(()=>()=>{c.current?.old?.remove(),c.current?.mounted.remove(),c.current=void 0},[]),!r||!i)return(0,z.jsxs)(`div`,{contentEditable:!1,className:`doc-embed`,children:[(0,z.jsx)(Vn,{size:18,"aria-hidden":!0}),(0,z.jsx)(`span`,{className:`doc-embed-note`,children:n?.words?.embed})]});let g=a===void 0?o.get(JSON.stringify(i)):void 0,_=(0,z.jsxs)(`div`,{ref:s,className:`doc-component-frame`,style:{width:`min(100%, ${String(i.width)}px)`,aspectRatio:`${String(i.width)} / ${String(i.height)}`},children:[g!==void 0&&(0,z.jsx)(`img`,{src:g,alt:r.alt??``,className:`doc-component-still`}),d!==void 0&&(0,z.jsxs)(`div`,{role:`alert`,className:`doc-component-error`,children:[(0,z.jsx)(Vn,{size:16,"aria-hidden":!0}),(0,z.jsx)(`span`,{children:er(r)}),(0,z.jsx)(`span`,{className:`doc-component-error-text`,children:d})]})]}),v=!n?.readOnly&&l!==void 0&&Object.keys(l.props).length>0;return(0,z.jsxs)(`figure`,{contentEditable:!1,"data-doc-component":``,className:`doc-component`,style:r.align===void 0?void 0:{textAlign:r.align},children:[(0,z.jsxs)(Ve,{open:v&&p,onOpenChange:m,children:[(0,z.jsx)(Ue,{asChild:!0,children:(0,z.jsx)(`button`,{type:`button`,className:`doc-component-button`,"aria-label":er(r),disabled:!v,children:_})}),v&&(0,z.jsx)(Ge,{align:`start`,className:`w-72`,children:(0,z.jsx)(Bt,{types:l.props,values:r.props,locale:n?.locale??`en`,onChange:(e,n)=>{let i=Object.fromEntries(Object.entries(r.props).flatMap(([t,r])=>t===e?n===void 0?[]:[[t,n]]:[[t,r]]));n!==void 0&&!(e in i)&&(i[e]=n),t(s5({...r,props:i}))}})})]}),r.caption!==void 0&&(0,z.jsx)(`figcaption`,{children:r.caption})]})}var Q5=aK({type:`component`,propSchema:{data:{default:``}},content:`none`},{render:e=>(0,z.jsx)(Z5,{data:e.block.props.data,onData:t=>{e.editor.updateBlock(e.block,{props:{data:t}})}})}),$5=`--doc-col-gap`,e7=`--doc-col-share`,t7=80,n7=e=>Math.round(e*100)/100,r7=e=>w5(e?.props?.width)??1;function i7({editor:e,id:t}){let n=kH(nR),r=(0,R.useRef)(null);return(0,R.useEffect)(()=>{let e=e=>{e.target===r.current&&(e.stopPropagation(),n.hideMenuIfNotFrozen())};return window.addEventListener(`mousemove`,e,!0),()=>{window.removeEventListener(`mousemove`,e,!0)}},[n]),(0,z.jsx)(`div`,{ref:r,contentEditable:!1,className:`doc-col-sizer`,onPointerDown:n=>{if(n.button!==0)return;let r=e.getParentBlock(t)?.children??[],i=r.findIndex(e=>e.id===t),a=r[i-1],o=n.currentTarget.parentElement,s=o?.closest(`.doc-cols`)?.querySelector(`[data-doc-col="${CSS.escape(a?.id??``)}"]`);if(!a?.id||!o||!s)return;n.preventDefault();let c=n.currentTarget;c.setPointerCapture(n.pointerId);let l=s.getBoundingClientRect().width,u=o.getBoundingClientRect().width,d=r7(a)+r7(r[i]),f=n.clientX,p=[r7(a),r7(r[i])],m=e=>{let t=Math.min(Math.max(l+e.clientX-f,t7),l+u-t7),n=n7(d*t/(l+u));p=[n,n7(d-n)],s.style.setProperty(e7,String(p[0])),o.style.setProperty(e7,String(p[1]))},h=()=>{c.removeEventListener(`pointermove`,m),c.removeEventListener(`pointerup`,h),c.removeEventListener(`pointercancel`,h),c.removeAttribute(`data-dragging`),s.style.setProperty(e7,String(r7(a))),o.style.setProperty(e7,String(r7(r[i])));let[n,l]=p;(n!==r7(a)||l!==r7(r[i]))&&e.transact(()=>{e.updateBlock(a.id??``,{type:`column`,props:{width:n}}),e.updateBlock(t,{type:`column`,props:{width:l}})})};c.setAttribute(`data-dragging`,``),c.addEventListener(`pointermove`,m),c.addEventListener(`pointerup`,h),c.addEventListener(`pointercancel`,h)},"aria-hidden":!0})}var a7=aK({type:`columns`,propSchema:{},content:`none`,layoutOnly:!0,children:{allow:[`column`],min:2}},{renderFrame:e=>(0,z.jsx)(`div`,{className:`doc-cols`,style:{[$5]:`32px`},ref:e.slotRef})});function o7({editor:e,id:t,width:n,slotRef:r}){let i=(0,R.useContext)(X5)?.readOnly??!1,a=Ly({editor:e,selector:()=>e.getParentBlock(t)?.children?.[0]?.id===t});return(0,z.jsxs)(`div`,{className:`doc-col`,"data-doc-col":t,style:{[e7]:String(n)},children:[!a&&!i&&e.isEditable&&(0,z.jsx)(i7,{editor:e,id:t}),(0,z.jsx)(`div`,{className:`doc-col-blocks`,ref:r})]})}var s7=aK({type:`column`,propSchema:{width:{default:1}},content:`none`,layoutOnly:!0,placeable:`namedOnly`,children:{exclude:[`columns`]}},{renderFrame:e=>(0,z.jsx)(o7,{editor:e.editor,id:e.block.id,width:e.block.props.width,slotRef:e.slotRef})});function c7(e,t){for(let n=e.getParentBlock(t);n;n=n.id===void 0?void 0:e.getParentBlock(n.id))if(n.type===`column`)return!0;return!1}function l7(e,t){let n=e;return Ly({editor:e,selector:()=>{let e=n.getParentBlock(t);for(;e?.id!==void 0&&e.type!==`column`;)e=n.getParentBlock(e.id);if(e?.type!==`column`||e.id===void 0)return;let r=n.getParentBlock(e.id),i=(r?.children??[]).map(e=>({width:r7(e),blocks:[]}));return vr({columns:i})[i.length===0?0:(r?.children??[]).findIndex(t=>t.id===e.id)]}})}var u7=(0,R.createContext)({page:{},base:``,data:void 0,wantData:()=>void 0,dark:!1}),d7=e=>ql(e).text,f7=[`bottom`,`top`,`left`,`right`,`none`];function p7(e){return{type:`chart`,kind:`column-clustered`,table:[[``,e.series(1),e.series(2)],[e.category(1),`4`,`3`],[e.category(2),`6`,`5`],[e.category(3),`5`,`7`]]}}var m7=e=>Math.max(0,...e.map(e=>e.length)),h7=(e,t,n,r)=>e.map((e,i)=>i===t?Array.from({length:Math.max(e.length,n+1)},(t,i)=>i===n?r:e[i]??``):[...e]),g7=(e,t)=>[...e.map(e=>[...e]),[t.category(e.length),...Array.from({length:m7(e)-1},()=>``)]],_7=(e,t)=>{let n=m7(e);return e.map((e,r)=>[...Array.from({length:n},(t,n)=>e[n]??``),r===0?t.series(n):``])},v7=(e,t)=>e.length<=2||t<1?e.map(e=>[...e]):e.filter((e,n)=>n!==t).map(e=>[...e]),y7=(e,t)=>m7(e)<=2||t<1?e.map(e=>[...e]):e.map(e=>e.filter((e,n)=>n!==t));function b7(e){let[t,n]=(0,R.useState)(e.text),r=()=>{t!==e.text&&e.onCommit(t)},i=(t,n)=>{t.preventDefault(),r(),t.currentTarget.closest(`table`)?.querySelector(`[data-row="${String(e.row+n)}"][data-col="${String(e.col)}"]`)?.focus()};return(0,z.jsx)(`input`,{value:t,"aria-label":e.label,"data-row":e.row,"data-col":e.col,spellCheck:!1,className:l(`text-dense h-7 w-full min-w-14 bg-transparent px-1.5 outline-none`,`focus:bg-sheet focus:outline-pencil focus:outline-1 focus:-outline-offset-1`,e.row>0&&e.col>0&&`text-right tabular-nums`,(e.row===0||e.col===0)&&`font-medium`),onChange:e=>{n(e.target.value)},onFocus:t=>{t.target.select(),e.onFocus()},onBlur:r,onKeyDown:r=>{r.key===`Escape`&&t!==e.text?(r.preventDefault(),r.stopPropagation(),n(e.text)):r.key===`Enter`?i(r,r.shiftKey?-1:1):r.key===`ArrowDown`?i(r,1):r.key===`ArrowUp`&&i(r,-1)}})}function x7({table:e,w:t,sample:n,remove:r,onTable:i}){let[a,o]=(0,R.useState)(),s=m7(e);return(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`div`,{className:`border-rule max-h-56 overflow-auto rounded-md border`,children:(0,z.jsx)(`table`,{className:`w-full border-collapse`,children:(0,z.jsx)(`tbody`,{children:e.map((n,r)=>(0,z.jsx)(`tr`,{className:l(`border-rule border-b last:border-b-0`,r===0&&`bg-paper`),children:Array.from({length:s},(a,s)=>{let c=n[s]??``;return(0,z.jsx)(`td`,{className:`border-rule border-l p-0 first:border-l-0`,children:(0,z.jsx)(b7,{row:r,col:s,text:c,label:t.cell(r+1,s+1),onCommit:t=>{i(h7(e,r,s,t))},onFocus:()=>{o({row:r,col:s})}},c)},s)})},r))})})}),(0,z.jsxs)(`div`,{className:`flex items-center gap-0.5`,children:[(0,z.jsx)(ze,{icon:!0,"aria-label":t.addCategory,title:t.addCategory,onClick:()=>{i(g7(e,n))},children:(0,z.jsx)(jt,{})}),(0,z.jsx)(ze,{icon:!0,"aria-label":t.addSeries,title:t.addSeries,onClick:()=>{i(_7(e,n))},children:(0,z.jsx)(zt,{})}),(0,z.jsxs)(L,{children:[(0,z.jsx)(C,{asChild:!0,children:(0,z.jsx)(ze,{icon:!0,"aria-label":r,title:r,children:(0,z.jsx)(Xt,{})})}),(0,z.jsxs)(E,{align:`start`,className:`text-sm`,children:[(0,z.jsx)(ce,{disabled:e.length<=2,onSelect:()=>{i(v7(e,a&&a.row>0?a.row:e.length-1)),o(void 0)},children:t.deleteCategory}),(0,z.jsx)(ce,{disabled:s<=2,onSelect:()=>{i(y7(e,a&&a.col>0?a.col:s-1)),o(void 0)},children:t.deleteSeries})]})]})]})]})}function S7({block:e,legend:t,problems:n,words:r,onChange:i}){let a=r.chart,o=e.labels?.includes(`value`)===!0,[s,c]=(0,R.useState)(e.title??``),l=t=>Object.fromEntries(Object.entries(e).filter(([e])=>e!==t));return(0,z.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,z.jsxs)(Be,{value:e.kind,onValueChange:t=>{i({...e,kind:t})},children:[(0,z.jsx)(Re,{size:`sm`,className:`w-full`,"aria-label":a.type,children:(0,z.jsx)(We,{})}),(0,z.jsx)(Le,{children:Fe.map(e=>(0,z.jsx)(Ie,{value:e,children:a.types[e]},e))})]}),(0,z.jsx)(yn,{value:s,placeholder:a.title,"aria-label":a.title,className:`h-8 text-sm`,onChange:t=>{c(t.target.value),i(t.target.value===``?l(`title`):{...e,title:t.target.value})}}),(0,z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,z.jsx)(`span`,{className:`text-lead text-xs`,children:a.legend}),(0,z.jsxs)(Be,{value:t,onValueChange:t=>{i({...e,legend:t})},children:[(0,z.jsx)(Re,{size:`sm`,"aria-label":a.legend,children:(0,z.jsx)(We,{})}),(0,z.jsx)(Le,{children:f7.map(e=>(0,z.jsx)(Ie,{value:e,children:a.legendAt[e]},e))})]}),(0,z.jsxs)(`label`,{className:`ml-auto flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`span`,{children:a.dataLabels}),(0,z.jsx)(Ht,{size:`sm`,checked:o,onCheckedChange:t=>{let n=(e.labels??[]).filter(e=>e!==`value`),r=t?[`value`,...n]:n;i(r.length===0?l(`labels`):{...e,labels:[...r]})}})]})]}),e.table===void 0?(0,z.jsx)(`p`,{className:`text-lead text-xs`,children:a.fromFile(e.data??``)}):(0,z.jsx)(x7,{table:e.table,w:a,sample:r.sample,remove:r.remove,onTable:t=>{i({...e,table:t})}}),n.length>0&&(0,z.jsx)(`p`,{role:`alert`,className:`text-problem-text max-h-24 overflow-auto font-mono text-xs whitespace-pre-wrap`,children:n.join(`
|
|
488
|
+
`)})]})}function C7({data:e,room:t,onData:n}){let r=(0,R.useContext)(X5),i=(0,R.useContext)(u7),[a,o]=(0,R.useState)(!1),s=(0,R.useMemo)(()=>d5(e),[e]),c=s?.data!==void 0,{wantData:l}=i;(0,R.useEffect)(()=>{c&&l()},[c,l]);let u=c&&i.data===void 0,d=(0,R.useMemo)(()=>({page:i.page,base:i.base,data:e=>i.data?.[e],font:d7(i.page),dark:i.dark,...t===void 0?{}:{room:t}}),[i.page,i.base,i.data,i.dark,t]),f=(0,R.useMemo)(()=>s===void 0||u?void 0:_r(s,d),[s,u,d]),p=r?.words;if(!s||!p)return(0,z.jsxs)(`div`,{contentEditable:!1,className:`doc-embed`,children:[(0,z.jsx)(Ae,{size:18,"aria-hidden":!0}),(0,z.jsx)(`span`,{className:`doc-embed-note`,children:p?.embed})]});let m=ur(s,t),h=!r.readOnly,g=s.legend??(a?mr(s,d).chart?.legend??`none`:`none`);return(0,z.jsx)(`figure`,{contentEditable:!1,"data-doc-chart":``,className:`doc-component`,children:(0,z.jsxs)(Ve,{open:h&&a,onOpenChange:o,children:[(0,z.jsx)(Ue,{asChild:!0,children:(0,z.jsx)(`button`,{type:`button`,className:`doc-component-button`,"aria-label":s.alt??s.title??p.blocks.chart,disabled:!h,children:(0,z.jsx)(`div`,{className:`doc-component-frame doc-chart-frame`,style:{width:`min(100%, ${String(m.width)}px)`,aspectRatio:`${String(m.width)} / ${String(m.height)}`},children:u?(0,z.jsx)(`div`,{className:`doc-chart-waiting`,children:p.chart.notHere(s.data??``)}):f?.svg===void 0?(0,z.jsxs)(`div`,{role:`alert`,className:`doc-component-error`,children:[(0,z.jsx)(Ae,{size:16,"aria-hidden":!0}),(0,z.jsx)(`span`,{children:p.chart.cannotDraw}),(0,z.jsx)(`span`,{className:`doc-component-error-text`,children:f?.problems.join(`
|
|
489
|
+
`)})]}):(0,z.jsx)(`div`,{className:`doc-chart-svg`,dangerouslySetInnerHTML:{__html:f.svg}})})})}),h&&(0,z.jsx)(Ge,{align:`start`,className:`w-[min(26rem,calc(100vw-2rem))]`,children:(0,z.jsx)(S7,{block:s,legend:g,problems:f?.svg===void 0?[]:f.problems,words:p,onChange:e=>{n(l5(e))}})})]})})}var w7=aK({type:`chart`,propSchema:{data:{default:``}},content:`none`},{render:function(e){return(0,z.jsx)(C7,{data:e.block.props.data,room:l7(e.editor,e.block.id),onData:t=>{e.editor.updateBlock(e.block,{props:{data:t}})}})}}),T7=e=>e.map(e=>e.note===void 0?e.text:``).join(``);function E7(e){let t=new Map;for(let n of Ul(e)){if(n.type!==`note`)continue;let e=[...Ul(n.children??[])].flatMap(e=>`content`in e?[T7(e.content)]:[]),r=n.label.toLowerCase();t.has(r)||t.set(r,[T7(n.content),...e].filter(e=>e!==``).join(` `))}return{numbers:Wl(e),words:t}}var D7=(e,t)=>JSON.stringify([[...e.numbers],[...e.words]])===JSON.stringify([[...t.numbers],[...t.words]]);function O7(e){let t=0,n=e=>{/^\d+$/.test(e)&&(t=Math.max(t,Number(e)))};for(let t of Ul(e)){t.type===`note`&&n(t.label);let e=`content`in t?[t.content]:t.type===`table`?t.rows.flat():[];for(let t of e.flat())t.note!==void 0&&n(t.note)}return String(t+1)}function*k7(e){for(let t of e)yield t,yield*k7(t.children??[])}function A7(e,t){let n=t.toLowerCase();for(let t of k7(e)){let e=t.props?.label;if(t.type===`note`&&typeof e==`string`&&e.toLowerCase()===n)return t}}function j7(e,t){let n=Wl(A5(e)),r=t.map(e=>({label:e,n:n.get(e.toLowerCase())??0})).sort((e,t)=>t.n-e.n);for(let{label:t}of r){let n=A7(e,t)?.id;if(n!==void 0)return{id:n,placement:`after`}}let i=[...k7(e)].find(e=>e.type===`note`)?.id;if(i!==void 0)return{id:i,placement:`before`};let a=e.at(-1)?.id;return a===void 0?void 0:{id:a,placement:`after`}}function M7(e){let{doc:t,selection:n}=e._tiptapEditor.state,r=[];return t.nodesBetween(0,n.from,(e,t)=>{if(e.type.name===`note`)return!1;let i=e.attrs.label;return e.type.name===`footnote`&&t<n.from&&typeof i==`string`&&r.push(i),!0}),r}function N7(e){let t=O7(A5(e.document)),n=j7(e.document,M7(e));e.transact(()=>{e.insertInlineContent([{type:`footnote`,props:{label:t}}],{updateSelection:!0}),n!==void 0&&e.insertBlocks([{type:`note`,props:{label:t}}],n.id,n.placement)});let r=A7(e.document,t);r?.id!==void 0&&(e.setTextCursorPosition(r.id,`end`),e.focus())}var P7={bold:`bold`,italic:`italic`,underline:`underline`,strike:`strike`,code:`code`,textColor:`color`,backgroundColor:`background`};function F7(e){let t=[];return e.forEach((n,r)=>{n.steps.forEach((i,a)=>{let o=i.toJSON();if(o.stepType!==`addMark`&&o.stepType!==`removeMark`||o.from===void 0||o.to===void 0||o.mark?.type===void 0)return;let s=n.mapping.slice(a+1);for(let t of e.slice(r+1))s.appendMapping(t.mapping);t.push({from:s.map(o.from,1),to:s.map(o.to,-1),add:o.stepType===`addMark`,type:o.mark.type,attrs:o.mark.attrs??{}})})}),t}function I7(e,t){let n=typeof e.href==`string`?e.href:``,r=v5(e.styles);if(t.type===`link`){let e=t.add?t.attrs.href:``;return{styles:g5(r),href:typeof e==`string`?e:``}}let i=P7[t.type];if(i===void 0)return;let a=Object.fromEntries(Object.entries(r).filter(([e])=>e!==i)),o=a;if(t.add&&(i===`color`||i===`background`)){let e=t.attrs.stringValue;if(typeof e!=`string`)return;e!=="default"&&(o={...a,[i]:e})}else t.add&&(o={...a,[i]:!0});return{styles:g5(o),href:n}}var L7=EO(({editor:e})=>({key:`docFootnotes`,keyboardShortcuts:{"Mod-Alt-f":()=>(N7(e),!0)},prosemirrorPlugins:[new ut({appendTransaction(e,t,n){let r=F7(e);if(r.length===0)return null;let i=n.tr;for(let e of r)e.from>=e.to||i.doc.nodesBetween(e.from,e.to,(t,n)=>{if(t.type.name!==`footnote`)return!0;let r=I7(t.attrs,e);return r&&(r.styles!==t.attrs.styles||r.href!==t.attrs.href)&&i.setNodeMarkup(n,void 0,{...t.attrs,...r}),!1});return i.docChanged?i:null}})]}))(),R7=[`gray`,`brown`,`red`,`orange`,`yellow`,`green`,`blue`,`purple`,`pink`];function z7(e){return{type:`columns`,children:Array.from({length:e},()=>({type:`column`,children:[{type:`paragraph`}]}))}}var B7=[{key:`paragraph`,icon:Fn,aliases:[`text`,`p`,`正文`,`文字`,`段落`],block:{type:`paragraph`}},{key:`heading1`,hint:`#`,icon:Tn,aliases:[`h1`,`title`,`标题`,`一级`],block:{type:`heading`,props:{level:1}}},{key:`heading2`,hint:`##`,icon:En,aliases:[`h2`,`标题`,`二级`],block:{type:`heading`,props:{level:2}}},{key:`heading3`,hint:`###`,icon:Dn,aliases:[`h3`,`标题`,`三级`],block:{type:`heading`,props:{level:3}}},{key:`bullet`,hint:`-`,icon:en,aliases:[`ul`,`list`,`bullet`,`列表`,`无序`],block:{type:`bulletListItem`}},{key:`numbered`,hint:`1.`,icon:Et,aliases:[`ol`,`list`,`number`,`列表`,`有序`,`编号`],block:{type:`numberedListItem`}},{key:`check`,hint:`[]`,icon:jn,aliases:[`todo`,`task`,`checkbox`,`待办`,`任务`,`清单`],block:{type:`checkListItem`}},{key:`toggle`,hint:`>`,icon:An,aliases:[`fold`,`collapse`,`折叠`,`展开`],block:{type:`toggleListItem`}},{key:`quote`,hint:`"`,icon:In,aliases:[`blockquote`,`引用`],block:{type:`quote`}},{key:`callout`,icon:On,aliases:[`note`,`tip`,`warning`,`提示`,`注意`,`标注`],block:{type:`callout`}},{key:`code`,hint:"```",icon:Sn,aliases:[`pre`,`代码`],block:{type:`codeBlock`}},{key:`divider`,hint:`---`,icon:sn,aliases:[`hr`,`line`,`rule`,`分隔`,`横线`],block:{type:`divider`}},{key:`table`,icon:Lt,aliases:[`grid`,`表格`],block:{type:`table`,content:{type:`tableContent`,rows:[{cells:[[],[],[]]},{cells:[[],[],[]]}]}}},{key:`image`,icon:kt,aliases:[`picture`,`photo`,`img`,`图片`,`照片`],block:{type:`image`}},{key:`chart`,icon:Ae,aliases:[`graph`,`plot`,`bar`,`line`,`pie`,`图表`,`柱状图`],make:e=>({type:`chart`,props:{data:l5(p7(e.sample))}})},{key:`equation`,hint:`$$`,icon:Bn,aliases:[`math`,`tex`,`latex`,`formula`,`公式`,`数学`],block:{type:`math`,props:{code:String.raw`e^{i\pi} + 1 = 0`}}},{key:`diagram`,icon:Wn,aliases:[`mermaid`,`flowchart`,`graph`,`图示`,`流程图`],block:{type:`diagram`,props:{code:`graph LR
|
|
490
|
+
A --> B
|
|
491
|
+
B --> C`}}},{key:`pagebreak`,icon:Rn,aliases:[`page`,`break`,`new page`,`分页`,`分页符`],block:{type:`pagebreak`}},{key:`footnote`,icon:Hn,aliases:[`note`,`source`,`cite`,`reference`,`脚注`,`注释`],run:`footnote`},{key:`columns2`,icon:Cn,aliases:[`columns`,`side`,`layout`,`分栏`,`两栏`,`列`],block:z7(2)},{key:`columns3`,icon:wn,aliases:[`columns`,`side`,`layout`,`分栏`,`三栏`,`列`],block:z7(3)}],V7=[`paragraph`,`heading1`,`heading2`,`heading3`,`bullet`,`numbered`,`check`,`toggle`,`quote`,`callout`];function H7(e){let t=B7.find(t=>t.key===e);return t&&V7.includes(e)?t.block:void 0}function U7(e,t,n=[]){let r=t.trim().toLowerCase(),i=e=>e.title.toLowerCase().includes(r)||e.key.includes(r)||e.aliases.some(e=>e.toLowerCase().includes(r)),a=[...B7.map(({make:t,...n})=>({...n,title:e.blocks[n.key],...t?{block:t(e)}:{}})),...n.map(t=>({key:`component:${t.of}`,title:t.title,icon:Vn,aliases:[`component`,`组件`,e.component,t.name],block:{type:`component`,props:{data:s5({type:`component`,of:t.of,props:{}})}}}))];if(r===``)return a;let o=V7.flatMap(t=>{let n=B7.find(e=>e.key===t);return n?.block?[{key:`turn:${t}`,title:`${e.turnInto} ${e.blocks[t]}`,icon:n.icon,aliases:[`turn`,`转换`,`变成`,e.turnInto],update:n.block}]:[]}),s=R7.flatMap(t=>[{key:`color:text:${t}`,title:`${e.colorNames[t]} ${e.text}`,icon:Pn,aliases:[t,`color`,`颜色`,e.colorNames[t]],update:{type:``,props:{textColor:t}}},{key:`color:background:${t}`,title:`${e.colorNames[t]} ${e.background}`,icon:Pn,aliases:[t,`background`,`背景`,e.colorNames[t]],update:{type:``,props:{backgroundColor:t}}}]),c=[...o,...s].filter(e=>e.aliases.some(e=>e.toLowerCase().startsWith(r))||e.title.toLowerCase().startsWith(r));return[...a.filter(i),...c]}function W7(){let e=jy();return t=>{if(t.run===`footnote`){N7(e);return}if(t.block){fF(e,t.block);return}if(!t.update)return;let n=e.getTextCursorPosition().block,{type:r,...i}=t.update;e.updateBlock(n,{...r===``?{}:{type:r},...i})}}var G7={doc:Nn,video:gn,slides:bn,sheet:zn,scenery:hn,model:vn,website:mn},K7=8;function q7(e,t){let n=t.trim().toLowerCase();return e.filter(e=>n===``||e.title.toLowerCase().includes(n)||e.place.toLowerCase().includes(n)).slice(0,K7).map(e=>({key:`link:${e.href}`,title:e.title,hint:e.place,icon:G7[e.kind],aliases:[]}))}function J7({items:e,selectedIndex:t,onItemClick:n,empty:r,testId:i=`doc-slash-menu`}){let a=(0,R.useRef)(null),[o,s]=(0,R.useState)(),[c,l]=(0,R.useState)(t);c!==t&&(l(t),s(void 0));let u=o??t,d=(0,R.useRef)(n);return(0,R.useEffect)(()=>{d.current=n}),(0,R.useEffect)(()=>{if(o===void 0)return;let t=e[o],n=e=>{e.key===`Enter`&&t&&(e.preventDefault(),e.stopImmediatePropagation(),d.current?.(t))};return window.addEventListener(`keydown`,n,!0),()=>{window.removeEventListener(`keydown`,n,!0)}},[o,e]),(0,R.useEffect)(()=>{a.current?.querySelector(`[aria-selected="true"]`)?.scrollIntoView({block:`nearest`})},[t]),(0,z.jsx)(`div`,{ref:a,role:`listbox`,"data-testid":i,className:`doc-menu doc-slash-menu`,children:e.length===0?(0,z.jsx)(`p`,{className:`doc-menu-empty`,children:r}):e.map((e,t)=>{let r=e.icon;return(0,z.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":t===u,"data-item":e.key,className:`doc-menu-item`,onMouseMove:()=>{o!==t&&s(t)},onMouseDown:e=>{e.preventDefault()},onClick:()=>{n?.(e)},children:[(0,z.jsx)(r,{size:16,"aria-hidden":!0,className:`doc-menu-icon`}),(0,z.jsx)(`span`,{className:`doc-menu-title`,children:e.title}),e.hint!==void 0&&(0,z.jsx)(`span`,{className:`doc-menu-hint`,"aria-hidden":!0,children:e.hint})]},e.key)})})}var Y7=[{value:`left`,icon:we},{value:`center`,icon:be},{value:`right`,icon:je},{value:`justify`,icon:wt}];function X7({names:e}){let t=jy(),n=$y(),r=Uy(),i=Ly({editor:t,selector:({editor:e})=>{let t=e.getTextCursorPosition().block,n=t.props?.textAlignment;return typeof n==`string`?`${n}:${t.content===void 0?`placed`:`text`}`:void 0}});if(!n||i===void 0)return null;let[a,o]=i.split(`:`),s=Y7.filter(({value:e})=>o===`text`||e!==`justify`),c=s.find(e=>e.value===a)?.icon??we,l=e[a??`left`];return(0,z.jsxs)(n.Generic.Menu.Root,{position:`bottom-start`,portalElement:r,preventFocusOnOpen:!0,children:[(0,z.jsx)(n.Generic.Menu.Trigger,{children:(0,z.jsx)(n.FormattingToolbar.Button,{className:`doc-align-button`,label:l,mainTooltip:l,children:(0,z.jsx)(c,{size:15,"aria-hidden":!0})})}),(0,z.jsx)(n.Generic.Menu.Dropdown,{className:`bn-menu-dropdown doc-align-menu`,children:s.map(({value:r,icon:i})=>(0,z.jsx)(n.Generic.Menu.Item,{className:`bn-menu-item`,icon:(0,z.jsx)(i,{size:15,"aria-hidden":!0}),checked:a===r,onClick:()=>{let e=t.getSelection()?.blocks??[t.getTextCursorPosition().block];for(let n of e)t.updateBlock(n,{props:{textAlignment:r}})},children:e[r]},r))})]})}function Z7({aligns:e}){return(0,z.jsxs)(gW,{children:[(0,z.jsx)(iW,{},`type`),(0,z.jsx)(LU,{basicTextStyle:`bold`},`bold`),(0,z.jsx)(LU,{basicTextStyle:`italic`},`italic`),(0,z.jsx)(LU,{basicTextStyle:`underline`},`underline`),(0,z.jsx)(LU,{basicTextStyle:`strike`},`strike`),(0,z.jsx)(LU,{basicTextStyle:`code`},`code`),(0,z.jsx)(WU,{},`color`),(0,z.jsx)(YU,{},`link`),(0,z.jsx)(X7,{names:e},`align`)]})}function Q7({strings:e,onActions:t}){let n=jy(),r=$y(),i=AH(nR,{selector:e=>e?.block});return!r||!i?null:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(r.Generic.Menu.Item,{className:`bn-menu-item`,onClick:()=>{i.id!==void 0&&t(i.id)},children:[(0,z.jsx)(Ln,{size:15,"aria-hidden":!0}),e.turnInto,`…`]}),(0,z.jsxs)(r.Generic.Menu.Item,{className:`bn-menu-item`,onClick:()=>{i.id!==void 0&&n.insertBlocks([I5(i)],i.id,`after`)},children:[(0,z.jsx)(Gt,{size:15,"aria-hidden":!0}),e.duplicate]})]})}function $7({label:e}){let t=jy(),n=$y(),r=AH(nR,{selector:e=>e?.block});return!n||!r?null:(0,z.jsxs)(n.Generic.Menu.Item,{className:`bn-menu-item doc-menu-danger`,onClick:()=>{let e=t.getSelection()?.blocks;t.removeBlocks(e?.some(e=>e.id===r.id)?e:[r])},children:[(0,z.jsx)(Xt,{size:15,"aria-hidden":!0}),e]})}function e9({strings:e,onActions:t,...n}){return(0,z.jsx)(UW,{...n,dragHandleMenu:()=>(0,z.jsxs)(VW,{children:[(0,z.jsx)(Q7,{strings:e,onActions:t}),(0,z.jsxs)(LW,{children:[(0,z.jsx)(Pn,{size:15,"aria-hidden":!0}),e.colors]}),(0,z.jsx)($7,{label:e.remove})]})})}function t9({actions:e,placeholder:t,empty:n,at:r,onClose:i}){let[a,o]=(0,R.useState)(``),[s,c]=(0,R.useState)(0),l=(0,R.useRef)(null),u=a.trim().toLowerCase(),d=e.filter(e=>u===``||e.title.toLowerCase().includes(u)||(e.group??``).toLowerCase().includes(u)||e.key.includes(u)),f=Math.min(s,Math.max(0,d.length-1));return(0,R.useEffect)(()=>{l.current?.querySelector(`[aria-selected="true"]`)?.scrollIntoView({block:`nearest`})},[f,a]),(0,z.jsxs)(`div`,{className:`doc-actions`,style:{left:r.x,top:r.y},"data-testid":`doc-actions`,onMouseDown:e=>{e.stopPropagation()},children:[(0,z.jsx)(`input`,{autoFocus:!0,value:a,placeholder:t,"aria-label":t,className:`doc-actions-find`,onChange:e=>{o(e.target.value),c(0)},onBlur:i,onKeyDown:e=>{if(e.key===`Escape`&&i(),e.key===`ArrowDown`&&(e.preventDefault(),c(Math.min(f+1,d.length-1))),e.key===`ArrowUp`&&(e.preventDefault(),c(Math.max(f-1,0))),e.key===`Enter`){e.preventDefault();let t=d[f];i(),t?.run()}}}),(0,z.jsx)(`div`,{ref:l,role:`listbox`,className:`doc-menu doc-actions-list`,children:d.length===0?(0,z.jsx)(`p`,{className:`doc-menu-empty`,children:n}):d.map((e,t)=>{let n=e.icon,r=e.group!==void 0&&d[t-1]?.group!==e.group;return(0,z.jsxs)(`div`,{children:[r?(0,z.jsx)(`p`,{className:`doc-menu-group`,children:e.group}):null,(0,z.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":t===f,"data-item":e.key,className:`doc-menu-item`,onMouseDown:e=>{e.preventDefault()},onClick:()=>{i(),e.run()},children:[(0,z.jsx)(n,{size:16,"aria-hidden":!0,className:`doc-menu-icon`}),(0,z.jsx)(`span`,{className:`doc-menu-title`,children:e.title})]})]},e.key)})})]})}function n9(e){return B7.find(t=>t.key===e)?.icon??Fn}function r9(e,t,n){for(let r of e){if(r.id===t)return{block:r,parent:n};let e=r9(r.children??[],t,r);if(e)return e}}var i9=(e,t)=>e.id===t||(e.children??[]).some(e=>i9(e,t)),a9=e=>({type:`column`,props:{width:1},children:e});function o9(e,t){return e.flatMap(e=>{if(t.has(e))return[];if(!e.children)return[e];let n=o9(e.children,t);if(e.type!==`columns`)return[{...e,children:n}];let r=n.filter(e=>(e.children??[]).length>0);return r.length<2?r.flatMap(e=>e.children??[]):[{...e,children:r}]})}function s9(e,t){let n=r9(e,t);if(n)return n.block.type===`column`?`column`:n.parent===void 0?`block`:void 0}function c9(e,t,n){let r=t.map(t=>r9(e,t)?.block);if(r.length===0||r.some(e=>e===void 0))return;let i=r;if(i.some(e=>e.type===`columns`||e.type===`column`)||i.some(e=>i9(e,n.id)))return;let a=r9(e,n.id);if(!a)return;let o=i.map(e=>({...e})),s=new Set(i),c=(e,t)=>e.flatMap(e=>e===a.block?t(e):e.children&&i9(e,n.id)?[{...e,children:c(e.children,t)}]:[e]),l;if(a.block.type===`column`){if((a.block.children??[]).filter(e=>!s.has(e)).length===0)return;let t=a9(o);l=c(e,e=>n.side===`left`?[t,e]:[e,t])}else{if(a.parent!==void 0)return;let t=a9(o);l=c(e,e=>[{type:`columns`,children:n.side===`left`?[t,a9([e])]:[a9([e]),t]}])}return o9(l,s)}var l9={share:.2,most:96,least:24};function u9(e){let t=e.dragging?.slice;if(!t||t.openStart>0)return[];let n=[];return t.content.forEach(e=>{let t=e.attrs.id;typeof t==`string`&&n.push(t)}),n}function d9(e,t,n,r){let i=t.firstElementChild?.getBoundingClientRect();if(!i)return;let a=Math.min(Math.max(n,i.left+4),i.right-4),o;for(let e of t.ownerDocument.elementsFromPoint(a,r)){if(!t.contains(e))continue;let n=e.closest(`[data-id]`)?.getAttribute(`data-id`);if(n){o=n;break}}for(let n=o===void 0?void 0:e.getBlock(o);n;){if(n.id===void 0)return;let r=e.getParentBlock(n.id),i=n.type===`column`?n:r===void 0||r.type===`column`?r??n:void 0;if(i?.id!==void 0){let e=t.querySelector(i.type===`column`?`[data-doc-col="${CSS.escape(i.id)}"]`:`.bn-block-outer[data-id="${CSS.escape(i.id)}"]`);return e?{id:i.id,box:e.getBoundingClientRect()}:void 0}n=r}}function f9(){let e;return{dropCursor:{color:`var(--allyhub-pencil)`,width:3,hooks:{computeDropPosition:({editor:t,event:n,view:r,defaultPosition:i})=>{e=void 0;let a=t,o=u9(r);if(o.length===0||!a.isEditable)return i;let s=d9(a,r.dom,n.clientX,n.clientY);if(!s)return i;let c=Math.min(l9.most,Math.max(l9.least,s.box.width*l9.share)),l=n.clientX<s.box.left+c?`left`:n.clientX>s.box.right-c?`right`:void 0;if(l===void 0||!s9(a.document,s.id))return i;let u={id:s.id,side:l};if(!c9(a.document,o,u))return i;let d=PF(s.id,r.state.doc);return d?(e=u,{pos:d.posBeforeNode,orientation:l===`left`?`block-vertical-left`:`block-vertical-right`}):i}}},extension:EO(({editor:t})=>({key:`docColumnDrop`,prosemirrorPlugins:[new ut({appendTransaction(e,t,n){if(!e.some(e=>e.getMeta(`uiEvent`)===`drop`))return null;let r=new Map;t.doc.descendants(e=>(e.type.name===`column`&&r.set(e.attrs.id,XR(e)),!e.isTextblock));let i=[];if(n.doc.descendants((e,t)=>{if(e.type.name!==`columns`)return!e.isTextblock;let n=[];return e.forEach(e=>n.push(e)),n.some(e=>XR(e)&&r.get(e.attrs.id)!==!0)&&i.push(t),!1}),i.length===0)return null;let a=n.tr;for(let e of i.reverse())ZR(a,e);return a},props:{handleDrop(n,r,i){let a=e;if(e=void 0,!a)return!1;let o=t,s=u9({dragging:{slice:i}}),c=c9(o.document,s,a);if(!c)return!1;let l=o.document,u=ee(l,c,e=>JSON.stringify(e));return o.transact(()=>{for(let e of u){let t=l.slice(e.at,e.at+e.remove).flatMap(e=>e.id===void 0?[]:[e.id]);if(t.length>0)o.replaceBlocks(t,e.insert);else if(e.insert.length>0){let t=l[e.at]?.id,n=l.at(-1)?.id;t===void 0?n!==void 0&&o.insertBlocks(e.insert,n,`after`):o.insertBlocks(e.insert,t,`before`)}}}),!0}}})]}))()}}function p9({picture:e,title:t,meta:n,variant:r=`bare`,aspect:i=`video`,orientation:a=`column`,className:o,children:s,...c}){return(0,z.jsxs)(`button`,{type:`button`,"data-slot":`tile`,...c,className:l(`liftable group/tile relative flex min-w-0 rounded-lg text-left`,a===`column`?`flex-col gap-1.5`:`flex-row items-center gap-3 pr-3`,t===void 0?`p-0`:`p-2`,r===`bare`?`hover:bg-hover`:`border border-rule bg-sheet hover:border-rule-strong hover:shadow-float`,o),children:[e!==void 0&&(0,z.jsx)(`span`,{"data-picture":``,className:l(`flex w-full flex-none items-center justify-center overflow-hidden rounded-md border border-rule bg-stone-2 text-lead [&>img]:size-full [&>img]:object-cover`,a===`row`?`size-9 w-9 border-0`:i===`video`?`aspect-video`:i===`square`?`aspect-square`:`aspect-[3/1]`,t===void 0&&`size-full rounded-[inherit] border-0 aspect-auto`),children:e}),t!==void 0&&(0,z.jsxs)(`span`,{className:l(`flex min-w-0 flex-col`,a===`column`?`gap-0.5 px-0.5`:`flex-1`),children:[(0,z.jsx)(`span`,{className:l(`text-sm font-medium text-ink`,a===`column`?`line-clamp-2`:`truncate`),children:t}),n!==void 0&&(0,z.jsx)(`span`,{className:l(`text-xs text-lead`,a===`column`?`line-clamp-3`:`truncate`),children:n})]}),s]})}var m9={ground:`#ECE3CC`,ink:`#2F4A2E`,middle:`#5E7D3A`,soft:`#F6F0E0`,notes:[`#C4683A`,`#6F8FAE`,`#6B5A7A`,`#D9A93A`],tone:`#C4683A`},h9={ground:`#E6D8BB`,ink:`#1F3B63`,middle:`#4A6F96`,soft:`#F4ECDB`,notes:[`#1F3B63`,`#4A6F96`,`#8FB3D9`,`#B7A27C`],tone:`#8FB3D9`},g9={ground:`#E8E2D2`,ink:`#3E3A4C`,middle:`#7F7B9C`,soft:`#F4F0E6`,notes:[`#B9776A`,`#6B8AA6`,`#7D9474`,`#D2A874`],tone:`#A85F55`},_9={ground:`#DDE6E2`,ink:`#22303B`,middle:`#5B8299`,soft:`#EEF3F0`,notes:[`#5F8A6A`,`#3F6F9A`,`#9A5A40`,`#C4A066`],tone:`#C4A066`},v9=[`dots`,`scales`,`bay`,`stacks`,`steam`,`dusk`,`lake`],y9=1800,b9=600,x9=`width="${String(y9)}" height="${String(b9)}"`,$=e=>String(Math.round(e*10)/10),S9=e=>String(Math.round(e));function C9(e){let t=e>>>0;return()=>{t=t+1831565813>>>0;let e=t;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}}function w9(e,t){let n=e[Math.min(e.length-1,Math.floor(t*e.length))];if(n===void 0)throw Error(`An empty list.`);return n}function T9(e,t){return`<linearGradient id="${e}" x1="0" y1="0" x2="0" y2="1">${t.map(([e,t,n])=>`<stop offset="${$(e)}" stop-color="${t}"${n===void 0?``:` stop-opacity="${$(n)}"`}/>`).join(``)}</linearGradient>`}var E9=`<filter id="grain" x="0" y="0" width="100%" height="100%"><feTurbulence type="fractalNoise" baseFrequency=".75" numOctaves="2" seed="3" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0 0 0 -.18"/></filter>`,D9=`<rect ${x9} filter="url(#grain)" opacity=".5"/>`;function O9(e,t,n=.012){return`<filter id="${e}" x="-5%" y="-5%" width="110%" height="110%"><feTurbulence type="fractalNoise" baseFrequency="${String(n)}" numOctaves="3" seed="7"/><feDisplacementMap in="SourceGraphic" scale="${String(t)}" xChannelSelector="R" yChannelSelector="G"/></filter>`}function k9(e,t){return`<filter id="${e}" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="${String(t)}"/></filter>`}function A9(e,t){return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${String(y9)} ${String(b9)}" preserveAspectRatio="xMidYMid slice"><defs>${E9}${e}</defs>${t}${D9}</svg>`}var j9=class{by=new Map;add(e,t){this.by.set(e,`${this.by.get(e)??``}${t}`)}draw(e){let t=``;for(let[n,r]of this.by)t+=`<path d="${r}" stroke="${n}" stroke-width="${$(e)}" stroke-linecap="round" fill="none"/>`;return t}};function M9(e,t,n){let r=(e,t)=>Number.parseInt(e.slice(1+t*2,3+t*2),16);return`#${[0,1,2].map(i=>Math.round(r(e,i)+(r(t,i)-r(e,i))*n).toString(16).padStart(2,`0`)).join(``)}`}function N9(e,t,n,r){let i=``;for(let a=-20;a<=1820;a+=12){let o=e-t*(Math.sin(a*n+r)*.55+Math.sin(a*n*2.3+r*1.7)*.3+Math.sin(a*n*5.9+r*.6)*.12);i+=`${i===``?`M`:`L`}${S9(a)} ${S9(o)}`}return`${i}L1820 620L-20 620Z`}function kee(){let e=m9,t=C9(1884),n={base:`#E7E3CF`,own:[e.soft,e.ground,`#E9DDB0`,`#F1E7C6`],other:[`#BCCAD6`,`#CFC6DA`]},r={base:`#AEBBC8`,own:[`#94A9C0`,e.notes[1],`#C3CFDA`,e.soft],other:[`#E2C27E`,`#C99FB8`]},i={base:`#97A350`,own:[`#A6B262`,`#C6B65A`,e.notes[3],`#93A752`,`#D8B85A`],other:[e.notes[0],`#E09A68`]},a={base:`#34463E`,own:[e.ink,`#3E3A4C`,`#3B5848`,`#46506A`],other:[e.notes[2],e.notes[1],`#8C6A8E`]},o={base:`#3E5836`,own:[e.ink,`#46633A`,`#3B5848`,`#55703F`],other:[e.notes[2],e.notes[1]]},s={base:`#2F3A30`,own:[e.ink,`#2B3530`,`#3E3A4C`],other:[e.notes[2],`#4E4466`]},c={base:`#3A3550`,own:[`#3E3A4C`,`#4E4466`,`#2F3A4A`,`#5A4E74`],other:[e.notes[1],`#8C6A8E`]},l={base:`#4E4466`,own:[e.notes[2],`#5A4E74`,`#3E3A4C`,`#6E5E86`],other:[`#8C6A8E`]},u=e=>228+Math.sin(e/210)*5+Math.sin(e/47)*3,d=e=>300+Math.sin(e/260)*12+Math.sin(e/61)*4,f=e=>336+e*.17+Math.sin(e/140)*14,p=[[150,.05],[420,-.04],[1540,.06],[1720,-.03]],m=(e,t)=>t<470&&p.some(([n,r])=>Math.abs(e-(n+(t-400)*r))<8+Math.max(0,Math.min(1,t/420))*12),h=(e,t)=>p.some(([n])=>((e-n)/230)**2+((t-40)/150)**2<1+Math.sin(e/23+t/31)*.12),g=1180,_=(e,t)=>t>316&&t<414&&Math.abs(e-g-(t-316)*.08)<20+(t-316)*.2||((e-g-36)/26)**2+((t-344)/28)**2<1||((e-g)/18)**2+((t-298)/30)**2<1||((e-g+3)/13)**2+((t-258)/15)**2<1,v=(e,t)=>t<240&&((e-g+16)/78)**2+((t-240)/52)**2<1,y=(e,t)=>v(e,t)?l:_(e,t)?c:m(e,t)?s:h(e,t)?o:t<u(e)?n:t<d(e)?r:t>f(e)?a:i,b=new j9;for(let e=4;e<b9;e+=15*.82)for(let i=4+t()*15;i<y9;i+=15*(.8+t()*.4)){let a=i+(t()-.5)*15*.5,o=e+(t()-.5)*15*.5,s=y(a,o);if((s===n||s===r)&&t()<.3)continue;let c=t()<.72?w9(s.own,t()):w9(s.other,t()),l=(t()-.5)*1.6;b.add(c,`M${S9(a)} ${S9(o)}l${S9(Math.cos(l)*4)} ${S9(Math.sin(l)*4)}`)}let x=e=>Array.from({length:37},(t,n)=>`L${S9(n*50)} ${S9(e(n*50))}`).join(``);return A9(``,`${`<rect ${x9} fill="${n.base}"/><path d="M0 600L0 ${S9(u(0))}${x(u)}L1800 600Z" fill="${r.base}"/><path d="M0 600L0 ${S9(d(0))}${x(d)}L1800 600Z" fill="${i.base}"/><path d="M0 600L0 ${S9(f(0))}${x(f)}L1800 600Z" fill="${a.base}"/>`}${b.draw(9)}`)}function Aee(){let e=h9,[,,t,n]=e.notes,r=(t,n,r,i)=>`<g id="${t}"><circle r="110" fill="${n}" stroke="${e.ink}" stroke-width="3.6"/>${[.8,.62,.44,.26].map((e,t)=>`<circle r="${$(110*e)}" fill="none" stroke="${t===3?i:r}" stroke-width="${t===3?`4.4`:`3.4`}"/>`).join(``)}</g>`,i=``,a=0;for(let e=432;e<710;e+=55,a++)for(let t=a%2==0?0:110;t<2020;t+=220)i+=`<use href="#${a%4==2?`b`:`a`}" x="${$(t)}" y="${$(e)}"/>`;let o=``;for(let e=1;e<6;e++){let t=-96+e*32;o+=`M${$(t)} -206Q${$(t+14)} -112 ${$(t)} -24`}let s=`<g transform="translate(1250 ${$(346.2)}) scale(.62) rotate(-3)" stroke="${e.ink}" stroke-linejoin="round"><path d="M-96 -206H96Q124 -112 96 -24H-96Q-68 -112 -96 -206Z" fill="${M9(e.soft,n,.3)}" stroke-width="4.6"/><path d="${o}" fill="none" stroke-width="3.4"/><g fill="${e.ink}"><path d="M-210 -26L-170 -6H150L232 -58L218 4Q160 30 40 30H-150Q-196 12 -210 -26Z"/><path d="M-4 -234H4V-6H-4Z"/><path d="M-110 -214H110" stroke-width="8"/></g></g>`;return A9(`${r(`a`,e.soft,e.middle,n)}${r(`b`,t,e.ink,e.soft)}${T9(`bokashi`,[[0,e.ink],[.22,e.middle],[.5,M9(e.tone,e.soft,.5)],[.62,e.soft]])}${O9(`cut`,3,.04)}`,`<rect ${x9} fill="url(#bokashi)"/><g filter="url(#cut)">${s}${i}</g>`)}function jee(){let e=h9,t=C9(1857),n=new j9;for(let r=0;r<22;r++){let i=r/21,a=342+i**1.6*250,o=10+i*34,s=o*(1.6+t()*.6);for(let r=-t()*s;r<y9;r+=s)n.add(i<.35?e.soft:i<.7?e.tone:e.middle,`M${S9(r)} ${S9(a+(t()-.5)*4)}h${S9(o)}`)}let r=(t,n,r)=>`<path d="M${$(t)} ${$(n)}l${$(r*.1)} ${$(-r)}l${$(r*.55)} ${$(r*.12)}l${$(-r*.05)} ${$(r*.88)}Z" fill="${e.soft}"/><path d="M${$(t-r*.2)} ${$(n)}h${$(r*1.1)}l${$(-r*.15)} ${$(r*.14)}h${$(-r*.8)}Z" fill="${e.ink}"/>`,i=(e,t,n)=>{let r=`M${$(e-n/2)} ${$(t)}`;for(let i=0;i<6;i++){let a=e-n/2+i*n/6;r+=`Q${$(a+n/12)} ${$(t-n*(.16+.08*Math.sin(i*1.7)))} ${$(a+n/6)} ${$(t)}`}return`${r}Q${$(e)} ${$(t+n*.08)} ${$(e-n/2)} ${$(t)}Z`},a=`<path d="M-20 600 C 40 470 90 380 150 300 C 200 236 280 196 380 178 L 386 192 C 300 210 228 252 186 318 C 140 390 104 480 70 600 Z"/>
|
|
492
|
+
<path d="M170 300 C 230 290 300 300 360 330 L 352 340 C 296 314 236 306 176 314 Z"/>
|
|
493
|
+
<path d="M250 214 C 300 170 360 150 420 150 L 420 162 C 364 164 310 182 262 222 Z"/>
|
|
494
|
+
<path d="${i(370,168,170)}${i(440,146,120)}${i(300,236,150)}${i(380,332,150)}${i(110,262,190)}${i(60,380,160)}${i(200,168,120)}"/>`;return A9(`${T9(`sky`,[[0,e.ink],[.24,e.middle],[.5,e.ground],[.56,e.soft]])}${T9(`sea`,[[0,e.tone],[.35,e.middle],[.8,e.ink]])}${O9(`block`,3,.03)}`,`<rect ${x9} fill="url(#sky)"/>
|
|
495
|
+
<rect y="330" width="${String(y9)}" height="270" fill="url(#sea)"/>
|
|
496
|
+
<g filter="url(#block)">
|
|
497
|
+
<path d="M1040 334 L1250 210 Q1270 200 1290 210 L1500 334 Z" fill="${e.middle}"/>
|
|
498
|
+
<path d="M1196 242 L1250 210 Q1270 200 1290 210 L1344 242 L1322 238 L1304 252 L1286 236 L1268 254 L1250 238 L1232 252 L1216 238 Z" fill="#FFFDF6"/>
|
|
499
|
+
<path d="M560 336 C 700 324 860 326 1000 334 L 1000 340 L 560 340 Z" fill="${e.ink}" opacity=".75"/>
|
|
500
|
+
${r(760,352,34)}${r(850,348,22)}${r(1560,352,28)}
|
|
501
|
+
${n.draw(3)}
|
|
502
|
+
<g fill="${e.ground}"><rect x="440" y="250" width="560" height="24" rx="12"/><rect x="620" y="284" width="380" height="18" rx="9"/><rect x="1420" y="262" width="440" height="22" rx="11"/><rect x="1180" y="140" width="680" height="20" rx="10"/></g>
|
|
503
|
+
<g fill="#13263F">${a}</g>
|
|
504
|
+
</g>`)}function Mee(){let e=g9,t=C9(1891),n=(e,t,n)=>{let r=`M${$(e-n)} ${$(t)}C${$(e-n*1.04)} ${$(t-n*.35)} ${$(e-n*1.12)} ${$(t-n*.7)} ${$(e-n*1.08)} ${$(t-n*.86)}C${$(e-n*.92)} ${$(t-n*1.4)} ${$(e-n*.42)} ${$(t-n*2.08)} ${$(e-n*.04)} ${$(t-n*2.16)}`,i=`${r}Q${$(e+n*.04)} ${$(t-n*2.2)} ${$(e+n*.12)} ${$(t-n*2.16)}C${$(e+n*.5)} ${$(t-n*2.06)} ${$(e+n*.96)} ${$(t-n*1.4)} ${$(e+n*1.1)} ${$(t-n*.86)}C${$(e+n*1.14)} ${$(t-n*.7)} ${$(e+n*1.04)} ${$(t-n*.35)} ${$(e+n)} ${$(t)}Z`,a=`shade${S9(e)}`;return`<path d="M${$(e)} ${$(t+n*.02)}L${$(e+n*5)} ${$(t+n*.12)}Q${$(e+n*5.2)} ${$(t+n*.22)} ${$(e+n*4.8)} ${$(t+n*.3)}L${$(e-n*.7)} ${$(t+n*.22)}Z" fill="#6A62A0" opacity=".6" filter="url(#soft)"/>
|
|
505
|
+
<clipPath id="${a}"><path d="M${$(e+n*.2)} ${$(t-n*2.3)}Q${$(e-n*.25)} ${$(t-n)} ${$(e+n*.05)} ${$(t+n*.1)}H${$(e+n*1.3)}V${$(t-n*2.3)}Z"/></clipPath>
|
|
506
|
+
<g filter="url(#dab)">
|
|
507
|
+
<path d="${i}" fill="#B07468"/>
|
|
508
|
+
<path d="${i}" fill="#55508A" opacity=".55" clip-path="url(#${a})"/>
|
|
509
|
+
<path d="${r}" stroke="#F0A860" stroke-width="${$(n*.13)}" fill="none" stroke-linecap="round"/>
|
|
510
|
+
</g>`},r=new j9;for(let n=0;n<1800;n++){let n=t()*y9,i=t()*b9,a=i<150?[`#8E86A4`,`#A08AA0`,e.middle,`#B49AA4`]:i<270?[e.notes[0],`#C98B78`,`#D9A88A`,`#B9A0B0`]:i<318?[`#E7C996`,`#F0D9AE`,e.notes[3],`#DDB792`]:i<352?[`#9C93AE`,e.middle,`#A79AB0`]:[`#C9A877`,`#B9A06E`,`#9DA578`,e.notes[2],`#D7B680`,`#A48FA6`],o=8+t()*14;r.add(w9(a,t()),`M${S9(n)} ${S9(i)}l${S9(o)} ${S9((t()-.5)*3)}`)}let i=`M-20 360`;for(let e=-20;e<=1840;e+=60)i+=`L${S9(e)} ${S9(328-Math.sin(e/300)*10-t()*8)}`;return i+=`L1840 362Z`,A9(`${T9(`sky`,[[0,`#8F87A6`],[.32,e.notes[0]],[.5,`#E9C995`],[.56,`#EED7A8`]])}${T9(`field`,[[0,`#CFAE7A`],[1,`#8F9670`]])}<radialGradient id="sun" cx=".16" cy=".5" r=".32"><stop offset="0" stop-color="#FBEBC4"/><stop offset="1" stop-color="#FBEBC4" stop-opacity="0"/></radialGradient>${O9(`paint`,8,.02)}${O9(`dab`,7,.09)}${k9(`soft`,5)}`,`<rect ${x9} fill="url(#sky)"/><rect y="350" width="${String(y9)}" height="250" fill="url(#field)"/>
|
|
511
|
+
<g filter="url(#paint)">
|
|
512
|
+
<rect ${x9} fill="url(#sky)"/>
|
|
513
|
+
<rect y="350" width="${String(y9)}" height="250" fill="url(#field)"/>
|
|
514
|
+
<path d="${i}" fill="#9A92AE"/>
|
|
515
|
+
<g opacity=".55">${r.draw(6)}</g>
|
|
516
|
+
<rect ${x9} fill="url(#sun)"/>
|
|
517
|
+
</g>
|
|
518
|
+
${n(1040,452,72)}${n(1350,408,40)}`)}function Nee(){let e=_9,[,t,n,r]=e.notes,i=C9(1877),a={x:900,y:70},o=``;for(let e=-9;e<=9;e++){let t=a.x+e*110,n=a.y+Math.abs(e)*((300-a.y)/9);o+=`M${S9(t)} ${S9(n)}V${S9(n-140)}`}let s=(t,n)=>{let r=``;for(let e=0;e<8;e++){let i=e*Math.PI/4;r+=`M${$(t)} ${$(432-n)}l${$(Math.cos(i)*n*.86)} ${$(Math.sin(i)*n*.86)}`}return`<circle cx="${$(t)}" cy="${$(432-n)}" r="${$(n)}" fill="none" stroke="${e.ink}" stroke-width="9"/><path d="${r}" stroke="${e.ink}" stroke-width="4"/><circle cx="${$(t)}" cy="${$(432-n)}" r="${$(n*.18)}" fill="${e.ink}"/>`},c=[560,676],l=``,u=``;for(let t=0;t<34;t++){let n=((t+i())/34)**1.3,r=446+n*900+(i()-.5)*60*(1+n),a=246-Math.sqrt(n)*90+n*40+(i()-.5)*40*(1+n),o=34+n*120+i()*30,s=26+n*46+i()*16;u+=`<ellipse cx="${$(r+14)}" cy="${$(a+s*.5)}" rx="${$(o*.9)}" ry="${$(s*.6)}"/>`,l+=`<ellipse cx="${$(r)}" cy="${$(a)}" rx="${$(o)}" ry="${$(s)}" fill="${w9([e.soft,`#FFFFFF`,e.ground],i())}" opacity="${$(.95-n*.5)}"/>`}return A9(`${T9(`lazare-air`,[[0,M9(e.middle,e.ink,.25)],[.5,M9(e.middle,e.soft,.55)],[.72,e.soft],[1,e.ground]])}${k9(`lazare-steam`,16)}${k9(`lazare-far`,6)}${O9(`lazare-paint`,6,.015)}`,`<rect ${x9} fill="url(#lazare-air)"/>
|
|
519
|
+
<g filter="url(#lazare-far)" opacity=".55"><path d="M520 426V330H600V300H660V318H740V286H800V310H880V276H930V300H1010V322H1090V296H1150V330H1240V426Z" fill="${M9(e.middle,e.soft,.45)}"/></g>
|
|
520
|
+
<g filter="url(#lazare-paint)">
|
|
521
|
+
<path d="M-20 300 L${String(a.x)} ${String(a.y)} L1820 300 V-20 H-20 Z" fill="${M9(e.middle,e.ink,.35)}" opacity=".55"/>
|
|
522
|
+
<path d="${o}" stroke="${e.ink}" stroke-width="3" opacity=".3"/>
|
|
523
|
+
<path d="M-20 300 L${String(a.x)} ${String(a.y)} L1820 300" stroke="${e.ink}" stroke-width="9" fill="none" opacity=".7"/>
|
|
524
|
+
<path d="M-20 292 H1820" stroke="${e.ink}" stroke-width="4" opacity=".4"/>
|
|
525
|
+
<rect x="-20" y="432" width="1840" height="208" fill="${M9(e.middle,e.ink,.45)}"/>
|
|
526
|
+
<path d="M-20 434 H1820" stroke="${e.ink}" stroke-width="6"/>
|
|
527
|
+
<path d="M-20 472 H1820" stroke="${M9(e.middle,e.soft,.4)}" stroke-width="3" opacity=".6"/>
|
|
528
|
+
<path d="M1300 432 V352 H1720 V432 Z" fill="${M9(e.middle,e.ink,.5)}" opacity=".55"/>
|
|
529
|
+
<path d="M1320 368 H1700" stroke="${e.soft}" stroke-width="10" stroke-dasharray="34 18" opacity=".35"/>
|
|
530
|
+
<path d="M856 404 V318 H1010 V404 Z" fill="${M9(e.ink,t,.2)}"/>
|
|
531
|
+
<path d="M370 388 H1020 V404 H370 Z" fill="${e.ink}"/>
|
|
532
|
+
<path d="M420 322 H740 V388 H420 Z" fill="${M9(e.ink,t,.35)}"/>
|
|
533
|
+
<path d="M420 338 H740" stroke="${r}" stroke-width="3" opacity=".7"/>
|
|
534
|
+
<path d="M420 322 Q382 324 382 355 Q382 386 420 388 Z" fill="${e.ink}"/>
|
|
535
|
+
<path d="M430 322 V276 H424 V264 H466 V276 H460 V322 Z" fill="${e.ink}"/>
|
|
536
|
+
<path d="M560 322 Q560 296 584 296 Q608 296 608 322 Z" fill="${r}"/>
|
|
537
|
+
<path d="M732 398 V270 H842 V398 Z" fill="${M9(e.ink,t,.2)}"/>
|
|
538
|
+
<path d="M720 270 H854 V258 H720 Z" fill="${e.ink}"/>
|
|
539
|
+
<rect x="756" y="290" width="60" height="44" rx="4" fill="${M9(e.soft,r,.25)}" opacity=".85"/>
|
|
540
|
+
<rect x="362" y="378" width="22" height="26" fill="${n}"/>
|
|
541
|
+
${s(452,30)}${c.map(e=>s(e,46)).join(``)}${s(900,26)}${s(970,26)}
|
|
542
|
+
<path d="M${$(c[0]??0)} 402 H${$(c[1]??0)}" stroke="${r}" stroke-width="8" stroke-linecap="round"/>
|
|
543
|
+
</g>
|
|
544
|
+
<g filter="url(#lazare-steam)"><g fill="${M9(e.middle,e.ink,.2)}" opacity=".35">${u}</g>${l}</g>`)}function Pee(){let e=g9,[t,,,n]=e.notes,r=[{base:352,amp:46,f:.0042,phase:.6,fill:M9(t,e.middle,.45)},{base:388,amp:52,f:.0055,phase:2.1,fill:e.middle},{base:428,amp:48,f:.0071,phase:4,fill:M9(e.middle,e.ink,.55)},{base:486,amp:40,f:.0093,phase:1.2,fill:e.ink}];return A9(`${T9(`dusk-sky`,[[0,M9(e.tone,t,.35)],[.36,M9(t,n,.25)],[.56,n],[.68,M9(n,e.soft,.6)]])}<radialGradient id="dusk-glow" cx="1140" cy="328" r="440" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="${e.soft}" stop-opacity=".85"/><stop offset=".25" stop-color="${n}" stop-opacity=".45"/><stop offset="1" stop-color="${n}" stop-opacity="0"/></radialGradient>${k9(`dusk-mist`,14)}${O9(`dusk-cut`,4,.03)}`,`<rect ${x9} fill="url(#dusk-sky)"/><rect ${x9} fill="url(#dusk-glow)"/>
|
|
545
|
+
<circle cx="1140" cy="328" r="66" fill="${e.soft}"/>
|
|
546
|
+
<g filter="url(#dusk-cut)">${r.map((t,n)=>`<path d="${N9(t.base,t.amp,t.f,t.phase)}" fill="${t.fill}"/>${n<r.length-1?`<rect y="${String(t.base+4)}" width="${String(y9)}" height="26" fill="${e.soft}" opacity=".16" filter="url(#dusk-mist)"/>`:``}`).join(``)}</g>`)}function Fee(){let e=h9,t=C9(1833),n=[{base:330,amp:40,f:.0038,phase:1.4,fill:M9(e.tone,e.middle,.35)},{base:372,amp:46,f:.0052,phase:3.3,fill:M9(e.tone,e.middle,.8)},{base:418,amp:36,f:.0069,phase:.4,fill:M9(e.middle,e.ink,.45)}],r=new j9;for(let n=0;n<64;n++){let n=t(),i=468+n*124,a=t()<.7,o=a?640+(t()-.5)*(90+n*220):t()*y9,s=(a?24:40)+t()*(a?70:90);r.add(a?e.soft:M9(e.tone,e.soft,.5),`M${S9(o-s/2)} ${S9(i)}h${S9(s)}`)}let i=``;for(let e=0;e<7;e++){let n=1060+e*52+(t()-.5)*16,r=214+Math.abs(e-2)*16+(t()-.5)*8,a=15-Math.abs(e-2)*1.2;i+=`M${$(n-a)} ${$(r-a*.3)}Q${$(n-a*.45)} ${$(r-a*.5)} ${$(n)} ${$(r)}Q${$(n+a*.45)} ${$(r-a*.5)} ${$(n+a)} ${$(r-a*.3)}`}return A9(`${T9(`lake-sky`,[[0,e.tone],[.55,M9(e.tone,e.soft,.7)],[.74,e.soft]])}${T9(`lake-water`,[[0,M9(e.middle,e.ink,.35)],[1,e.ink]])}<radialGradient id="lake-glow" cx="640" cy="318" r="380" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="${e.soft}" stop-opacity=".95"/><stop offset=".3" stop-color="${M9(e.soft,e.notes[3],.3)}" stop-opacity=".45"/><stop offset="1" stop-color="${e.soft}" stop-opacity="0"/></radialGradient>${k9(`lake-mist`,16)}${O9(`lake-cut`,4,.03)}`,`<rect ${x9} fill="url(#lake-sky)"/><rect ${x9} fill="url(#lake-glow)"/>
|
|
547
|
+
<g filter="url(#lake-cut)">${n.map(t=>`<path d="${N9(t.base,t.amp,t.f,t.phase)}" fill="${t.fill}"/><rect y="${String(t.base+6)}" width="${String(y9)}" height="24" fill="${e.soft}" opacity=".18" filter="url(#lake-mist)"/>`).join(``)}
|
|
548
|
+
<rect y="452" width="${String(y9)}" height="148" fill="url(#lake-water)"/></g>
|
|
549
|
+
<g opacity=".5">${r.draw(3)}</g>
|
|
550
|
+
<path d="${i}" fill="none" stroke="${e.ink}" stroke-width="3.4" stroke-linecap="round" opacity=".8"/>`)}var Iee={dots:kee,scales:Aee,bay:jee,stacks:Mee,steam:Nee,dusk:Pee,lake:Fee},P9=new Map;function F9(e){let t=P9.get(e);return t===void 0&&(t=Iee[e](),P9.set(e,t)),t}function Lee(e){return`cover-${e}.svg`}var Ree=/\.(png|jpe?g|gif|webp|avif|svg)$/iu;function I9(e){let t=re(),[n,r]=(0,R.useState)();return(0,R.useEffect)(()=>{if(e===void 0)return;let n=!0;return t[`files/url`]({path:e}).then(t=>{n&&r({path:e,url:t.url})},()=>void 0),()=>{n=!1}},[t,e]),n!==void 0&&n.path===e?n.url:void 0}var L9=e=>e.slice(0,Math.max(0,e.lastIndexOf(`/`)));async function zee(e,t){let{files:n}=await e[`files/list`]({dir:``}),r=e=>L9(e)===t;return n.map(e=>e.path).filter(e=>Ree.test(e)).sort((e,t)=>Number(r(t))-Number(r(e))||e.localeCompare(t))}async function Bee(e){let t=new Uint8Array(await e.arrayBuffer()),n=``;for(let e=0;e<t.length;e+=32768)n+=String.fromCharCode(...t.subarray(e,e+32768));return btoa(n)}async function R9(e,t,n){return W5(t,(await e[`files/upload`]({dir:t,name:n.name,data:await Bee(n)})).path)}function Vee(e){let t=e=>e.slice(e.lastIndexOf(`/`)+1),n=new Map;for(let r of e)n.set(t(r),(n.get(t(r))??0)+1);return new Map(e.map(e=>[e,(n.get(t(e))??0)>1?e:t(e)]))}function Hee({path:e,label:t,chosen:n,onChoose:r}){let i=I9(e);return(0,z.jsx)(p9,{aspect:`wide`,title:(0,z.jsx)(`span`,{className:`block truncate text-xs font-normal`,children:t}),"aria-label":e,"aria-pressed":n,className:`aria-pressed:bg-here`,"data-testid":`doc-cover-picture`,"data-path":e,picture:i===void 0?void 0:(0,z.jsx)(`img`,{src:i,alt:``,loading:`lazy`,draggable:!1}),onClick:r})}function Uee(e){return v9.map(t=>({key:t,label:e.cover.names[t],src:`data:image/svg+xml;charset=utf-8,${encodeURIComponent(F9(t))}`,file:Lee(t),bytes:()=>Promise.resolve(new Blob([F9(t)],{type:`image/svg+xml`}))}))}function Wee({cover:e,chosen:t,disabled:n,onChoose:r}){return(0,z.jsx)(`div`,{title:e.label,className:`contents`,children:(0,z.jsx)(p9,{"aria-label":e.label,"aria-pressed":t,disabled:n,className:`aspect-[3/1] p-1 aria-pressed:bg-here`,"data-testid":`doc-cover-gallery-picture`,"data-name":e.key,picture:(0,z.jsx)(`img`,{src:e.src,alt:``,loading:`lazy`,draggable:!1}),onClick:r})})}function z9({dir:e,current:t,words:n,onPick:r}){let i=re(),[a,o]=(0,R.useState)(),[s,c]=(0,R.useState)(),[l,u]=(0,R.useState)(!1),d=(0,R.useRef)(null);(0,R.useEffect)(()=>{let t=!0;return zee(i,e).then(e=>{t&&o(e)},()=>{t&&o([])}),()=>{t=!1}},[i,e]);let f=t=>e===``?t:`${e}/${t}`,p=a?.some(t=>L9(t)===e)??!1,m=s??(p?`project`:`gallery`),h=async t=>{u(!0);try{r(await R9(i,e,t))}catch{}finally{u(!1)}},g=t=>{let n=f(t.file);a?.includes(n)?r(W5(e,n)):(u(!0),t.bytes().then(e=>h(new File([e],t.file,{type:e.type})),()=>{u(!1)}))},_=Vee(a??[]);return(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,"data-testid":`doc-cover-picker`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,z.jsx)(`div`,{role:`tablist`,className:`flex flex-1 gap-1`,children:[`gallery`,`project`].map(e=>(0,z.jsx)(ze,{role:`tab`,"aria-selected":m===e,"data-testid":`doc-cover-tab-${e}`,onClick:()=>{c(e)},children:n.cover[e]},e))}),(0,z.jsxs)(ze,{disabled:l,onClick:()=>d.current?.click(),"data-testid":`doc-cover-upload`,children:[(0,z.jsx)(Un,{}),n.cover.upload]}),(0,z.jsx)(`input`,{ref:d,type:`file`,accept:`image/*`,hidden:!0,onChange:e=>{let t=e.target.files?.[0];e.target.value=``,t&&h(t)}})]}),m===`gallery`?(0,z.jsx)(`div`,{role:`tabpanel`,className:`-mx-1 grid max-h-80 grid-cols-2 gap-1 overflow-y-auto`,"data-testid":`doc-cover-gallery`,children:Uee(n).map(e=>(0,z.jsx)(Wee,{cover:e,chosen:t===f(e.file),disabled:l,onChoose:()=>{g(e)}},e.key))}):a===void 0?(0,z.jsx)(`div`,{role:`tabpanel`,className:`h-24`}):a.length===0?(0,z.jsx)(`p`,{role:`tabpanel`,className:`px-1 pb-2 text-sm text-lead`,children:n.cover.none}):(0,z.jsx)(`div`,{role:`tabpanel`,className:`-mx-1 grid max-h-80 grid-cols-3 gap-1 overflow-y-auto`,children:a.map(n=>(0,z.jsx)(Hee,{path:n,label:_.get(n)??n,chosen:n===t,onChoose:()=>{r(W5(e,n))}},n))})]})}var Gee=`opacity-0 focus-visible:opacity-100 aria-expanded:opacity-100 motion-safe:transition-opacity`;function B9({place:e,look:t,dir:n,words:r,editable:i,onLook:a}){let[o,s]=(0,R.useState)(!1),c=(0,R.useCallback)(e=>{s(!1),e!==t.cover&&a(by(t,e))},[t,a]),l=t.cover,u=l===void 0||U5.test(l)?void 0:q5(n,l),d=I9(u),f=l===void 0?void 0:U5.test(l)?l:u===void 0?null:d,[p,m]=(0,R.useState)(),[h,g]=(0,R.useState)(),_=h!==void 0&&h.of===l?h.y:void 0,v=(0,R.useCallback)(e=>{g(e===void 0||l===void 0?void 0:{of:l,y:e})},[l]),y=(0,R.useRef)(null),b=(0,R.useRef)(null),x=(0,R.useRef)(void 0),S=_??t.coverY??50,C=(0,R.useCallback)(()=>{x.current=void 0,v(void 0)},[v]),w=(0,R.useCallback)(()=>{if(_!==void 0){let e=xy(t,_);(e.coverY??50)!==(t.coverY??50)&&a(e)}C()},[C,t,_,a]);(0,R.useEffect)(()=>{if(_===void 0)return;let e=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),C())};return window.addEventListener(`keydown`,e,!0),()=>{window.removeEventListener(`keydown`,e,!0)}},[C,_]);let T=()=>{let e=y.current?.getBoundingClientRect(),t=b.current;if(!e||!t||t.naturalWidth===0)return 0;let n=t.naturalHeight*e.width/t.naturalWidth-e.height;return n>.5?100/n:0},E=e=>{_!==void 0&&e.button===0&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),x.current={y:e.clientY,from:_,pointer:e.pointerId})},D=e=>{let t=x.current;if(t?.pointer!==e.pointerId)return;let n=t.from-(e.clientY-t.y)*T();v(Math.min(100,Math.max(0,n)))},O=e=>{x.current?.pointer===e.pointerId&&(x.current=void 0)},k=e=>{if(_===void 0)return;let t=e.shiftKey?10:1;if(e.key===`ArrowUp`||e.key===`ArrowDown`){e.preventDefault();let n=_+(e.key===`ArrowUp`?t:-t);v(Math.min(100,Math.max(0,n)))}else e.key===`Enter`&&(e.preventDefault(),w())};if(e===`title`)return l===void 0&&i?(0,z.jsx)(`div`,{className:`doc-cover-add`,children:(0,z.jsxs)(Ve,{open:o,onOpenChange:s,children:[(0,z.jsx)(Ue,{asChild:!0,children:(0,z.jsxs)(ze,{className:`${Gee} group-hover/title:opacity-100`,"data-testid":`doc-cover-add`,children:[(0,z.jsx)(kt,{}),r.cover.add]})}),(0,z.jsx)(Ge,{align:`start`,className:`w-[26rem] p-2`,children:(0,z.jsx)(z9,{dir:n,current:void 0,words:r,onPick:c})})]})}):null;if(l===void 0)return null;let A=f===null||f!==void 0&&p===f;return(0,z.jsxs)(`div`,{ref:y,className:`doc-cover group/cover`,"data-testid":`doc-cover`,"data-missing":A?``:void 0,"data-moving":_===void 0?void 0:``,..._===void 0?{}:{role:`slider`,tabIndex:0,"aria-label":r.cover.drag,"aria-orientation":`vertical`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(S)},onPointerDown:E,onPointerMove:D,onPointerUp:O,onPointerCancel:O,onKeyDown:k,children:[A?(0,z.jsx)(`span`,{className:`doc-cover-path`,children:l}):f!==void 0&&(0,z.jsx)(`img`,{ref:b,src:f,alt:``,draggable:!1,style:{objectPosition:`50% ${String(S)}%`},onError:()=>{m(f)}}),_!==void 0&&(0,z.jsx)(`span`,{className:`pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-md bg-media/60 px-3 py-1.5 text-xs text-on-media`,children:r.cover.drag}),i&&(0,z.jsx)(`div`,{className:`absolute right-2 bottom-2 flex gap-0.5 rounded-lg border border-rule bg-sheet/95 p-0.5 shadow-float ${_===void 0?`opacity-0 group-hover/cover:opacity-100 group-focus-within/cover:opacity-100 has-[[aria-expanded=true]]:opacity-100 motion-safe:transition-opacity`:``}`,onPointerDown:e=>{e.stopPropagation()},children:_===void 0?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(Ve,{open:o,onOpenChange:s,children:[(0,z.jsx)(Ue,{asChild:!0,children:(0,z.jsxs)(ze,{"data-testid":`doc-cover-change`,children:[(0,z.jsx)(kt,{}),r.cover.change]})}),(0,z.jsx)(Ge,{align:`end`,className:`w-[26rem] p-2`,children:(0,z.jsx)(z9,{dir:n,current:u,words:r,onPick:c})})]}),!A&&(0,z.jsxs)(ze,{"data-testid":`doc-cover-reposition`,onClick:()=>{v(t.coverY??50),requestAnimationFrame(()=>y.current?.focus())},children:[(0,z.jsx)(Mn,{}),r.cover.reposition]}),(0,z.jsxs)(ze,{"data-testid":`doc-cover-remove`,onClick:()=>{a(by(t,void 0))},children:[(0,z.jsx)(Xt,{}),r.cover.remove]})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(ze,{"data-testid":`doc-cover-save`,onClick:w,children:r.cover.save}),(0,z.jsx)(ze,{"data-testid":`doc-cover-cancel`,onClick:C,children:r.cover.cancel})]})})]})}var V9=(0,R.createContext)({numbers:new Map,words:new Map});function Kee(e){let[t,n]=(0,R.useState)(()=>E7(A5(e.document)));return(0,R.useEffect)(()=>e.onChange(()=>{let t=E7(A5(e.document));n(e=>D7(e,t)?e:t)}),[e]),t}var qee=()=>typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion: reduce)`).matches;function Jee(e,t){let n=A7(e.document,t);if(n?.id!==void 0){try{e.setTextCursorPosition(n.id,`end`),e.focus()}catch{}document.querySelector(`.bn-block-outer[data-id="${CSS.escape(n.id)}"]`)?.scrollIntoView({block:`center`,behavior:qee()?`auto`:`smooth`})}}function Yee({label:e,editor:t}){let n=(0,R.useContext)(V9),r=e.toLowerCase(),i=n.words.get(r),a=n.numbers.get(r),o=i===void 0||a===void 0?`[${e}]`:String(a),s=(0,z.jsx)(`button`,{type:`button`,className:`doc-fn-mark`,"data-doc-footnote":e,onMouseDown:e=>{e.preventDefault()},onClick:()=>{Jee(t,e)},children:o});return(0,z.jsx)(`sup`,{className:`doc-fn`,contentEditable:!1,children:i===void 0||i===``?s:(0,z.jsxs)(dn,{children:[(0,z.jsx)(un,{asChild:!0,children:s}),(0,z.jsx)(ln,{side:`top`,className:`doc-fn-words max-w-72 text-left`,"data-testid":`doc-footnote-words`,children:i})]})})}var Xee=kK({type:`footnote`,propSchema:{label:{default:``},styles:{default:``},href:{default:``}},content:`none`},{render:e=>(0,z.jsx)(Yee,{label:e.inlineContent.props.label,editor:e.editor})});function Zee({label:e}){let t=(0,R.useContext)(V9).numbers.get(e.toLowerCase());return(0,z.jsx)(`span`,{contentEditable:!1,className:`doc-note-number`,"data-unmarked":t===void 0?``:void 0,children:t===void 0?`–`:`${String(t)}.`})}var Qee=aK({type:`note`,propSchema:{label:{default:``}},content:`inline`},{render:e=>(0,z.jsxs)(`div`,{className:`doc-note`,"data-doc-note":e.block.props.label,children:[(0,z.jsx)(Zee,{label:e.block.props.label}),(0,z.jsx)(`div`,{className:`doc-note-text`,ref:e.contentRef})]})});function $ee(){let e=(0,R.useContext)(X5)?.words;return(0,z.jsx)(`div`,{contentEditable:!1,className:`doc-pagebreak`,"data-doc-pagebreak":``,children:(0,z.jsx)(`span`,{children:e?.blocks.pagebreak})})}var ete=aK({type:`pagebreak`,propSchema:{},content:`none`},{render:()=>(0,z.jsx)($ee,{})}),tte=`Ag`;function nte({look:e,words:t,onLook:n}){let r=e.font??`sans`,i=(t,r)=>{let i=Object.fromEntries(Object.entries(e).filter(([e])=>e!==t));n(r===void 0?i:{...i,[t]:r})};return(0,z.jsxs)(Ve,{children:[(0,z.jsx)(Ue,{asChild:!0,children:(0,z.jsxs)(ze,{"data-testid":`doc-style`,children:[(0,z.jsx)(xn,{}),t.style]})}),(0,z.jsxs)(Ge,{align:`start`,className:`flex w-72 flex-col gap-3 p-3`,children:[(0,z.jsx)(`div`,{role:`radiogroup`,"aria-label":t.style,className:`grid grid-cols-3 gap-1.5`,children:Pl.map(e=>(0,z.jsxs)(Zt,{variant:`box`,checked:r===e,onClick:()=>{i(`font`,e===`sans`?void 0:e)},children:[(0,z.jsx)(`span`,{"aria-hidden":!0,className:`text-2xl leading-tight`,style:{fontFamily:ql({font:e}).text},children:tte}),(0,z.jsx)(`span`,{className:`text-lead text-xs`,children:t.fonts[e]})]},e))}),(0,z.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,z.jsx)(`span`,{className:`text-lead text-xs`,children:t.accent}),(0,z.jsxs)(`div`,{role:`radiogroup`,"aria-label":t.accent,className:`flex flex-wrap gap-1.5`,children:[(0,z.jsx)(Pe,{color:`var(--allyhub-ink)`,label:t.defaultColor,checked:e.accent===void 0,onClick:()=>{i(`accent`,void 0)}}),R7.map(n=>(0,z.jsx)(Pe,{color:sr(n)??n,label:t.colorNames[n],checked:e.accent===n,onClick:()=>{i(`accent`,n)}},n))]})]}),(0,z.jsxs)(`label`,{className:`flex items-center justify-between gap-2 text-sm`,children:[(0,z.jsx)(`span`,{children:t.pageNumbers}),(0,z.jsx)(Ht,{size:`sm`,"data-testid":`doc-page-numbers`,checked:e.pageNumbers!==!1,onCheckedChange:t=>{n(yy(e,t))}})]})]})]})}function rte(e){return typeof e==`string`?e:Array.isArray(e)?e.map(e=>e.type===`text`?e.text:e.type===`link`?e.content.map(e=>e.text).join(``):``).join(``):``}function H9(e){let t=[];for(let n of e){if(n.type===`columns`||n.type===`column`){t.push(...H9(n.children??[]));continue}let e=n.props?.level;if(n.type!==`heading`||typeof e!=`number`||e>3||n.id===void 0)continue;let r=rte(n.content).trim();r!==``&&t.push({id:n.id,level:e,text:r})}return t}function ite({entries:e,label:t,scroller:n,onGo:r}){let[i,a]=(0,R.useState)();return(0,R.useEffect)(()=>{let t=n.current;if(!t)return;let r=()=>{let n=t.getBoundingClientRect().top+96,r;for(let i of e){let e=t.querySelector(`.bn-block-outer[data-id="${CSS.escape(i.id)}"]`);if(e){if(e.getBoundingClientRect().top<=n)r=i.id;else break}}a(r??e[0]?.id)};return r(),t.addEventListener(`scroll`,r,{passive:!0}),()=>{t.removeEventListener(`scroll`,r)}},[e,n]),e.length<3?null:(0,z.jsxs)(`nav`,{"aria-label":t,className:`doc-outline`,"data-testid":`doc-outline`,children:[(0,z.jsx)(`p`,{className:`doc-outline-label`,children:t}),e.map(e=>(0,z.jsx)(`button`,{type:`button`,"data-level":e.level,"aria-current":i===e.id?`location`:void 0,className:`doc-outline-item`,onClick:()=>{r(e.id)},children:e.text},e.id))]})}var ate,U9=Promise.resolve(),W9=0,ote=()=>ate??=_n(()=>import(`./mermaid.core-CVH2hRmI.js`).then(e=>e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url);function ste(e,t){let n=U9.then(async()=>{let n=await ote(),r=$n({font:t.font,accent:t.accent});n.initialize({...r,...t.dark?{theme:`dark`,themeVariables:{fontFamily:t.font,fontSize:`14px`}}:{},suppressErrorRendering:!0}),W9+=1;let{svg:i}=await n.render(`doc-diagram-${String(W9)}`,e);return cte(i)});return U9=n.catch(()=>void 0),n}function cte(e){let t=new DOMParser().parseFromString(e,`image/svg+xml`).documentElement;if(t.nodeName!==`svg`)return e;for(let e of t.querySelectorAll(`.today`))e.remove();let n=(t.getAttribute(`viewBox`)??``).trim().split(/[\s,]+/u).map(Number),[,,r,i]=n;return n.length===4&&r!==void 0&&i!==void 0&&r>0&&i>0&&(t.setAttribute(`width`,String(r)),t.setAttribute(`height`,String(i)),t.style.removeProperty(`max-width`)),new XMLSerializer().serializeToString(t)}function lte(e){let t=(0,R.useMemo)(()=>e.trim()===``?void 0:jl(e),[e]),[n,r]=(0,R.useState)();return t!==void 0&&t.error===void 0&&t.html!==n&&r(t.html),t===void 0?{}:t.error===void 0?{html:t.html}:{html:n??t.html,error:t.error}}var ute=150;function dte(e,t,n,r){let[i,a]=(0,R.useState)({});return(0,R.useEffect)(()=>{if(e.trim()===``)return;let i=!0,o=setTimeout(()=>{ste(e,{font:t,dark:n,accent:r}).then(e=>{i&&a({html:e})},e=>{i&&a(t=>({...t.html===void 0?{}:{html:t.html},error:e instanceof Error?e.message:String(e)}))})},ute);return()=>{i=!1,clearTimeout(o)}},[e,t,n,r]),e.trim()===``?{}:i}function fte({kind:e,code:t,drawn:n,empty:r}){return t.trim()===``?(0,z.jsx)(`span`,{className:`doc-drawn-empty`,children:r}):n.html===void 0?(0,z.jsx)(`pre`,{className:`doc-drawn-code`,children:t}):(0,z.jsx)(`div`,{className:e===`equation`?`doc-math`:`doc-diagram`,dangerouslySetInnerHTML:{__html:n.html}})}function G9({kind:e,code:t,onCode:n}){let r=(0,R.useContext)(X5),i=(0,R.useContext)(u7),[a,o]=(0,R.useState)(!1),[s,c]=(0,R.useState)(t);!a&&s!==t&&c(t);let l=lte(e===`equation`?s:``),u=dte(e===`diagram`?s:``,d7(i.page),i.dark,Jl(i.page)),d=e===`equation`?l:u,f=r?.words,p=e===`equation`?f?.blocks.equation:f?.blocks.diagram,m=(e===`equation`?f?.emptyEquation:f?.emptyDiagram)??``,h=r?.readOnly!==!0;return(0,z.jsx)(`figure`,{contentEditable:!1,"data-doc-drawn":e,className:`doc-drawn`,children:(0,z.jsxs)(Ve,{open:h&&a,onOpenChange:o,children:[(0,z.jsx)(Ue,{asChild:!0,children:(0,z.jsx)(`button`,{type:`button`,className:`doc-drawn-button`,"aria-label":p,disabled:!h,children:(0,z.jsx)(fte,{kind:e,code:s,drawn:d,empty:m})})}),h&&(0,z.jsxs)(Ge,{align:`center`,className:`flex w-[min(36rem,calc(100vw-2rem))] flex-col gap-2 p-2`,children:[(0,z.jsx)(Me,{value:s,"aria-label":p,spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`,className:`max-h-[50vh] min-h-20 resize-none font-mono text-xs [font-variant-ligatures:none] md:text-xs`,onChange:e=>{c(e.target.value),n(e.target.value)}}),d.error!==void 0&&(0,z.jsx)(`p`,{role:`alert`,className:`text-problem-text max-h-32 overflow-auto font-mono text-xs whitespace-pre-wrap`,children:d.error})]})]})})}var pte=aK({type:`math`,propSchema:{code:{default:``}},content:`none`},{render:e=>(0,z.jsx)(G9,{kind:`equation`,code:e.block.props.code,onCode:t=>{e.editor.updateBlock(e.block,{props:{code:t}})}})}),mte=aK({type:`diagram`,propSchema:{code:{default:``}},content:`none`},{render:e=>(0,z.jsx)(G9,{kind:`diagram`,code:e.block.props.code,onCode:t=>{e.editor.updateBlock(e.block,{props:{code:t}})}})}),K9=(0,R.createContext)(void 0);function hte(e){let t=(/^<\s*([A-Za-z][\w.]*)/.exec(e.trim())?.[1]??``).replace(/([a-z0-9])([A-Z])/g,`$1 $2`).toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}function gte({source:e}){let t=(0,R.useContext)(K9);return(0,z.jsxs)(`div`,{contentEditable:!1,"data-doc-embed":``,className:`doc-embed`,children:[(0,z.jsx)(Vn,{size:18,"aria-hidden":!0}),(0,z.jsx)(`span`,{className:`doc-embed-name`,children:hte(e)}),(0,z.jsx)(`span`,{className:`doc-embed-note`,children:t?.embed})]})}var _te=aK({type:`embed`,propSchema:{source:{default:``}},content:`none`},{render:e=>(0,z.jsx)(gte,{source:e.block.props.source})}),q9=[m5,`ℹ️`,`⚠️`,`❗`,`✅`,`📌`],vte=aK({type:`callout`,propSchema:{icon:{default:m5},textColor:{default:`default`},backgroundColor:{default:`default`}},content:`inline`},{render:e=>(0,z.jsxs)(`div`,{className:`doc-callout`,"data-doc-callout":``,children:[(0,z.jsx)(`button`,{type:`button`,contentEditable:!1,className:`doc-callout-icon`,"aria-label":e.block.props.icon,onMouseDown:e=>{e.preventDefault()},onClick:()=>{let t=q9.indexOf(e.block.props.icon);e.editor.updateBlock(e.block,{props:{icon:q9[(t+1)%q9.length]??`💡`}})},children:e.block.props.icon}),(0,z.jsx)(`div`,{className:`doc-callout-text`,ref:e.contentRef})]})}),yte=new Set([`audio`,`video`,`file`]),bte=Object.fromEntries(Object.entries(hF).filter(([e])=>!yte.has(e))),xte=xF.create({blockSpecs:{...bte,embed:_te(),callout:vte(),component:Q5(),chart:w7(),math:pte(),diagram:mte(),columns:a7(),column:s7(),note:Qee(),pagebreak:ete()},inlineContentSpecs:{...yF,footnote:Xee}});function Ste(e,t){let n=t.blocks,r=e.slash_menu,i=(e,t)=>({[e]:{...r[e],title:t}});return{...e,slash_menu:{...r,...i(`paragraph`,n.paragraph),...i(`heading`,n.heading1),...i(`heading_2`,n.heading2),...i(`heading_3`,n.heading3),...i(`bullet_list`,n.bullet),...i(`numbered_list`,n.numbered),...i(`check_list`,n.check),...i(`toggle_list`,n.toggle),...i(`quote`,n.quote),...i(`code_block`,n.code),...i(`table`,n.table),...i(`image`,n.image),...i(`divider`,n.divider)},placeholders:{...e.placeholders,default:t.placeholder,heading:t.heading,note:t.blocks.footnote}}}function J9(e){let t=e[0];return e.length===1&&t?.type===`paragraph`&&t.content.every(e=>e.text===``)&&t.look===void 0&&(t.children?.length??0)===0}var Y9=e=>`doc-toggles:${e}`;function Cte(e){return typeof e!=`object`||!e||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(e=>typeof e[1]==`boolean`))}var X9=e=>e.type===`toggleListItem`||e.type===`heading`&&e.props?.isToggleable===!0;function*Z9(e){for(let t of e)yield t,yield*Z9(t.children??[])}function wte(e,t){for(let n of Z9(e)){if(!X9(n)||n.id===void 0)continue;let e=t[n.id.slice(1).replace(/-\d+$/,``)];if(e!==void 0)try{window.localStorage.setItem(`toggle-${n.id}`,String(e))}catch{return}}}function Tte(e,t){let n={};for(let r of Z9(e)){if(!X9(r)||r.id===void 0)continue;let e=A5([r])[0];e&&(n[x5(e)]=t?.querySelector(`.bn-block-outer[data-id="${CSS.escape(r.id)}"] .bn-toggle-button`)?.getAttribute(`aria-expanded`)===`true`)}return n}var Q9=30,Ete=8,Dte=160,$9=yG;function Ote({words:e,components:t}){let n=W7(),r=jy(),i=(0,R.useCallback)(t=>(0,z.jsx)(J7,{...t,empty:e.nothing}),[e.nothing]);return(0,z.jsx)($9,{triggerCharacter:`/`,getItems:async n=>{let i=U7(e,n,await t()),a=r.getTextCursorPosition().block.id;return c7(r,a)?i.filter(e=>e.block?.type!==`columns`):i},suggestionMenuComponent:i,onItemClick:e=>{n(e)}})}function kte({links:e,empty:t}){let n=jy(),r=(0,R.useCallback)(e=>(0,z.jsx)(J7,{...e,empty:t,testId:`doc-mention-menu`}),[t]),i=(0,R.useRef)([]);return(0,z.jsx)($9,{triggerCharacter:`@`,shouldOpen:e=>{let t=e.selection.$from,n=t.parent.textBetween(0,t.parentOffset).replace(/@$/,``);return!/[A-Za-z0-9._-]$/.test(n)},getItems:async t=>(i.current=await e(),q7(i.current,t)),suggestionMenuComponent:r,onItemClick:e=>{let t=i.current.find(t=>`link:${t.href}`===e.key);t&&n.insertInlineContent([{type:`link`,href:t.href,content:t.title},` `])}})}function Ate(e){let t=e instanceof Element?e:e?.contextElement;if(!t)return 0;let n=t.getBoundingClientRect().top,r=t.querySelector(`.bn-inline-content`);if(r){let e=document.createRange();e.selectNodeContents(r);let t=e.getClientRects()[0]??r.getBoundingClientRect();return t.top+t.height/2-n-Q9/2}let i=(t.querySelector(`.bn-block-content`)??t).getBoundingClientRect();return i.top-n+Math.max(0,Math.min(i.height,54)/2-Q9/2)}function jte({path:e,file:t,toggles:n,words:r,context:i,autoFocus:a,className:o,onUnreadable:s}){let c=re(),l=G5(e),[u]=(0,R.useState)(()=>new Cy(t.text)),[d]=(0,R.useState)(()=>oy(u.shown())),f=py(i.locale),[p]=(0,R.useState)(f9),m=FH({schema:xte,dropCursor:p.dropCursor,extensions:[p.extension,L7],sideMenu:{hoverMargin:Dte},dictionary:Ste(f,r),tables:{headers:!0},...d.body.length>0?{initialContent:(()=>{let e=S5(d.body);return wte(e,n),e})()}:{},uploadFile:e=>R9(c,l,e),resolveFileUrl:async e=>{let t=q5(l,e);return t===void 0?e:(await c[`files/url`]({path:t})).url}},[u]),g=m,_=Kee(m),v=(0,R.useRef)(null),y=`block:`,S=e=>v.current?.querySelector(`.bn-block-outer[data-id="${CSS.escape(e)}"]`)??void 0;b({anchorAt:({x:e,y:t})=>{let n=document.elementFromPoint(e,t)?.closest(`.bn-block-outer[data-id]`)?.dataset.id;return n===void 0?void 0:`${y}${n}`},placement:e=>{if(!e.startsWith(y))return;let t=S(e.slice(6)),n=v.current?.getBoundingClientRect();if(!t||!n||!v.current)return null;let r=t.getBoundingClientRect();return{x:r.x,y:r.y,sx:1,sy:1,clip:{x:n.x,y:n.y,width:v.current.clientWidth,height:v.current.clientHeight}}},onMoved:e=>{let t=v.current;if(!t)return()=>void 0;let n=new MutationObserver(e);n.observe(t,{childList:!0,subtree:!0,characterData:!0});let r=new ResizeObserver(e);return r.observe(t),()=>{n.disconnect(),r.disconnect()}},where:({x:e,y:t})=>{let n=document.elementFromPoint(e,t)?.closest(`.bn-block-outer[data-id]`),r=[...v.current?.querySelectorAll(`.bn-block-outer[data-id]`)??[]],i=n?r.indexOf(n):-1;for(let e=i;e>=0;e--){let t=(r[e]?.querySelector(`[data-content-type="heading"]`))?.textContent.trim()??``;if(t!==``)return`under the heading ${JSON.stringify(t)}`}},show:e=>{let t=e.startsWith(y)?S(e.slice(6)):void 0;return t?.scrollIntoView({block:`center`,behavior:`smooth`}),Promise.resolve(t!==void 0)},hold:()=>Promise.resolve({key:`${e}@${String(t.text.length)}`,what:`The doc ${e}`,source:{path:e}}),locate:n=>Promise.resolve(F5(document,n,e,t.text))});let[C,w]=(0,R.useState)(t.state);(0,R.useEffect)(()=>t.onState(w),[t]);let[T,E]=(0,R.useState)(()=>u.page),O=(0,R.useRef)(void 0),k=(0,R.useCallback)(()=>{let e=O.current;e&&vy(e,u.page)&&(O.current=void 0)},[u]),A=(0,R.useCallback)(e=>{O.current=e,E(e),t.edited()},[t]),[j,M]=(0,R.useState)(!1),N=(0,R.useCallback)(()=>{M(!0)},[]),[F,I]=(0,R.useState)(0);P(`project/changed`,e=>{I(e.revision)});let[L,te]=(0,R.useState)();(0,R.useEffect)(()=>{if(!j)return;let e=!0;return D(c,`doc/data`,{item:l}).then(t=>{e&&te(t.data)},()=>void 0),()=>{e=!1}},[c,l,j,F]);let{font:ne,accent:ie}=T,ae=(0,R.useMemo)(()=>({...ne===void 0?{}:{font:ne},...ie===void 0?{}:{accent:ie}}),[ne,ie]),se=(0,R.useMemo)(()=>({page:ae,base:l,data:L,wantData:N,dark:i.theme===`dark`}),[ae,l,L,N,i.theme]),[ce,le]=(0,R.useState)(()=>H9(g.document)),[ue,de]=(0,R.useState)(()=>({block:d.title,value:sy(d.title)})),fe=(0,R.useRef)(ue),me=(0,R.useRef)(null),he=(0,R.useCallback)((e,t)=>{fe.current={block:e,value:t},de(fe.current)},[]),ge=(0,R.useCallback)(()=>{let e=A5(g.document),t=J9(e)&&!J9(oy(u.shown()).body);return ly(fe.current.block,t?[]:e)},[g,u]),_e=(0,R.useCallback)(e=>e<0?void 0:u.lineOf(e+ +!!oy(u.shown()).title),[u]),ve=(0,R.useCallback)(()=>g.document.map(e=>({id:e.id??``,model:A5([e])[0]})),[g]),ye=(0,R.useCallback)(e=>{let{title:t,body:n}=oy(e),r=sy(t),i=fe.current.value;he(t,i.replace(/\s+/g,` `).trim()===r?i:r);let a=ve().filter(e=>e.model!==void 0),o=J9(a.map(e=>e.model)),s=ee(o?[]:a.map(e=>e.model),n,Bl);g.transact(e=>{e.setMeta(`addToHistory`,!1);for(let e of s){let t=a.slice(e.at,e.at+e.remove).map(e=>e.id),n=C5(e.insert);if(o){let e=a[0];e&&n.length>0&&g.replaceBlocks([e.id],n)}else if(t.length>0)g.replaceBlocks(t,n);else if(n.length>0){let t=a[e.at],r=a.at(-1)??ve().at(-1);t?g.insertBlocks(n,t.id,`before`):r&&g.insertBlocks(n,r.id,`after`)}}})},[g,he,ve]),be=(0,R.useCallback)(e=>{let t=u.incoming(e,ge());u.unreadable?s(e):(t&&ye(t),k(),O.current===void 0&&E(e=>vy(e,u.page)?e:u.page))},[ge,u,s,k,ye]),xe=(0,R.useRef)({held:ge,take:be,settleLook:k});(0,R.useLayoutEffect)(()=>{xe.current={held:ge,take:be,settleLook:k}},[ge,be,k]),(0,R.useLayoutEffect)(()=>(t.attach({save:e=>(u.adopt(e),xe.current.settleLook(),u.unreadable?void 0:u.textFor(xe.current.held(),O.current)),take:(e,t)=>{u.adopt(t),xe.current.take(e)}}),()=>{if(t.state!==`unsaved`||u.unreadable)return;let e;try{e=xe.current.held()}catch{return}let n=O.current;t.attach({save:t=>(u.adopt(t),u.unreadable?void 0:u.textFor(e,n)),take:()=>void 0}),t.flush()}),[t,u]);let Se=(0,R.useRef)(JSON.stringify(n)),we=(0,R.useCallback)(()=>{let t=Tte(g.document,v.current),n=JSON.stringify(t);n!==Se.current&&(Se.current=n,c[`storage/set`]({key:Y9(e),value:Object.keys(t).length===0?null:t}).catch(()=>void 0))},[g,c,e]),Te=(0,R.useCallback)(()=>{le(H9(g.document)),we(),t.edited()},[t,g,we]),Ee=(0,R.useCallback)(e=>{let t=e.replace(/\n/g,` `);he(cy(fe.current.block,t),t),Te()},[Te,he]);(0,R.useLayoutEffect)(()=>{let e=me.current;if(!e)return;let t=()=>{e.style.height=`0`,e.style.height=`${String(e.scrollHeight)}px`};t();let n=new ResizeObserver(t);return e.parentElement&&n.observe(e.parentElement),()=>{n.disconnect()}},[ue.value]);let De=(0,R.useCallback)(e=>{let t=g.document[0];if(t?.id===void 0)return;let n=t.id;e===void 0||e===``&&J9(A5([t]))||(g.insertBlocks([{type:`paragraph`,content:e===``?[]:[{type:`text`,text:e,styles:{}}]}],t.id,`before`),n=g.document[0]?.id??t.id);try{m.setTextCursorPosition(n,`start`)}catch{}m.focus()},[m,g]),Oe=(0,R.useCallback)(e=>{let t=me.current;if(!t)return;let n=fe.current.value.length;e!==void 0&&e!==``&&Ee(fe.current.value+e),t.focus(),requestAnimationFrame(()=>{t.setSelectionRange(n,n)})},[Ee]),[ke]=(0,R.useState)(a);(0,R.useEffect)(()=>{if(!ke)return;let e=requestAnimationFrame(()=>{fe.current.value.trim()===``?Oe():De()});return()=>{cancelAnimationFrame(e)}},[ke,De,Oe]);let Ae=(0,R.useCallback)(e=>{if(e.nativeEvent.isComposing)return;let t=e.currentTarget;if(e.key===`Enter`){e.preventDefault();let n=t.value.slice(t.selectionEnd);n!==``&&Ee(t.value.slice(0,t.selectionStart)),De(n);return}let n=parseFloat(getComputedStyle(t).lineHeight)||0,r=t.selectionEnd===t.value.length||t.scrollHeight<n*1.5;(e.key===`ArrowDown`&&r||e.key===`Tab`&&!e.shiftKey)&&(e.preventDefault(),De())},[Ee,De]),je=(0,R.useRef)([]),Me=(0,R.useCallback)(async()=>{try{je.current=(await D(c,`project/items`,{})).items}catch{}return je.current},[c]);(0,R.useEffect)(()=>{Me()},[Me]);let Ne=(0,R.useCallback)(async()=>J5(e,await Me()),[Me,e]),Pe=(0,R.useRef)([]),Fe=(0,R.useCallback)(async()=>{try{let e=x(i.locale);Pe.current=(await D(c,`components/list`,{item:l})).components.map(t=>({of:t.of,name:t.name,title:typeof t.label==`string`?t.label:t.label?.[e]??t.label?.en??t.name}))}catch{}return Pe.current},[c,l,i.locale]);(0,R.useEffect)(()=>{let t=v.current;if(!t)return;let n=e=>{if(e.button!==0)return;let t=e.target?.closest(`.bn-editor a[href]`)?.getAttribute(`href`);return t!=null&&t!==``&&!U5.test(t)?t:void 0},r=e=>{n(e)!==void 0&&(e.preventDefault(),e.stopPropagation())},i=t=>{let r=n(t);r!==void 0&&(t.preventDefault(),t.stopPropagation(),Me().then(t=>{let n=Y5(e,r,t);n!==void 0&&c[`items/open`]({target:{type:`file`,path:n}}).catch(()=>void 0)}))};return t.addEventListener(`mousedown`,r,!0),t.addEventListener(`mouseup`,r,!0),t.addEventListener(`click`,i,!0),()=>{t.removeEventListener(`mousedown`,r,!0),t.removeEventListener(`mouseup`,r,!0),t.removeEventListener(`click`,i,!0)}},[c,Me,e]),(0,R.useEffect)(()=>{let e=v.current;if(!e)return;let t=e=>{e.target?.closest(`.bn-toggle-button`)&&we()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}},[we]);let Ie=(0,R.useCallback)(()=>(0,z.jsx)(Z7,{aligns:r.aligns}),[r.aligns]),[Le,Re]=(0,R.useState)(),ze=(0,R.useCallback)(e=>{let t=v.current?.querySelector(`.bn-block-outer[data-id="${CSS.escape(e)}"]`),n=v.current?.closest(`.doc-sheet`);if(!t||!n)return;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();Re({id:e,at:{x:Math.max(8,r.left-i.left),y:Math.min(r.top-i.top+28,i.height-320)}})},[]);H5(m,v,(0,R.useMemo)(()=>({onActions:ze,onTitle:Oe}),[ze,Oe]));let Be=(0,R.useMemo)(()=>{let t=Le?.id;if(t===void 0)return[];let n=()=>{let e=g.getSelection()?.blocks??[],n=g.document.find(e=>e.id===t);return e.some(e=>e.id===t)?e:n?[n]:[]};return[...V7.flatMap(e=>{let t=H7(e);return t?[{key:`turn:${e}`,title:r.blocks[e],icon:n9(e),group:r.turnInto,run:()=>{for(let e of n())e.id!==void 0&&g.updateBlock(e.id,t)}}]:[]}),{key:`duplicate`,title:r.duplicate,icon:Gt,run:()=>{let e=n(),t=e.at(-1);t?.id!==void 0&&g.insertBlocks(e.map(I5),t.id,`after`)}},{key:`place`,title:r.copyPlace,icon:kn,run:()=>{let n=_e(g.document.findIndex(e=>e.id===t));navigator.clipboard.writeText(n===void 0?e:`${e}:${String(n)}`).catch(()=>void 0)}},{key:`delete`,title:r.remove,icon:Xt,run:()=>{g.removeBlocks(n().flatMap(e=>e.id===void 0?[]:[e.id]))}}]},[Le,g,_e,e,r]),Ve=(0,R.useCallback)(e=>(0,z.jsx)(e9,{...e,strings:r,onActions:ze}),[ze,r]),Ue=(0,R.useMemo)(()=>({useFloatingOptions:{middleware:[h(({elements:e})=>({mainAxis:Ete,crossAxis:Ate(e.reference)}))]}}),[]),We=(0,R.useCallback)(e=>{v.current?.querySelector(`.bn-block-outer[data-id="${CSS.escape(e)}"]`)?.scrollIntoView({block:`start`,behavior:`smooth`})},[]),Ge=ue.block?.type===`heading`?ue.block.look?.align:void 0,Ke=i.readOnly===!0,{ask:qe}=oe(),Je=!Ke&&i.viewer!==!0,Ye=ql(T),Xe=Jl(T),Ze={"--doc-text":Ye.text,"--doc-heading":Ye.heading,...Xe===void 0?{}:{"--doc-accent":Xe}};return(0,z.jsx)(u7.Provider,{value:se,children:(0,z.jsx)(V9.Provider,{value:_,children:(0,z.jsx)(fn,{children:(0,z.jsx)(`div`,{className:o,"data-testid":`doc-editor`,"data-state":C,"data-read-only":Ke?``:void 0,lang:pe[x(i.locale)],onKeyDownCapture:Ke?e=>{Ce(e.nativeEvent)&&qe()}:void 0,onPasteCapture:Ke?qe:void 0,onDropCapture:Ke?qe:void 0,children:(0,z.jsxs)(`div`,{className:`doc-sheet`,style:Ze,"data-font":T.font??`sans`,"data-accent":Xe===void 0?void 0:``,children:[(0,z.jsx)(He,{saved:{state:C},start:Je?(0,z.jsx)(nte,{look:T,words:r,onLook:A}):void 0}),Le!==void 0&&(0,z.jsx)(t9,{actions:Be,placeholder:r.find,empty:r.nothing,at:Le.at,onClose:()=>{Re(void 0)}}),(0,z.jsxs)(`div`,{className:`doc-scroll`,ref:v,children:[(0,z.jsx)(B9,{place:`top`,look:T,dir:l,words:r,editable:Je,onLook:A}),(0,z.jsxs)(`div`,{className:`doc-body`,children:[(0,z.jsxs)(`div`,{className:`doc-column`,children:[(0,z.jsxs)(`div`,{className:`doc-title-row group/title`,children:[(0,z.jsx)(B9,{place:`title`,look:T,dir:l,words:r,editable:Je,onLook:A}),(0,z.jsx)(`textarea`,{ref:me,className:`doc-title`,"data-testid":`doc-title-field`,rows:1,value:ue.value,placeholder:r.untitled,"aria-label":r.title,readOnly:Ke,style:Ge?{textAlign:Ge}:void 0,onChange:e=>{Ee(e.target.value)},onKeyDown:Ae})]}),(0,z.jsxs)(o5,{editor:m,editable:!Ke,theme:i.theme,formattingToolbar:!1,slashMenu:!1,sideMenu:!1,onChange:Te,children:[(0,z.jsx)(DW,{formattingToolbar:Ie}),(0,z.jsx)(Ote,{words:r,components:Fe}),(0,z.jsx)(kte,{links:Ne,empty:r.nothingToLink}),(0,z.jsx)(GW,{sideMenu:Ve,floatingUIOptions:Ue})]})]}),(0,z.jsx)(ite,{entries:ce,label:r.outline,scroller:v,onGo:We})]})]})]})})})})})}function Mte(e){let t=re(),n=fe(),r=e.path??n?.item.entry,i=fy.of(n?.locale),[a,o]=(0,R.useState)(),[s,c]=(0,R.useState)(),[l,u]=(0,R.useState)(),[d,f]=(0,R.useState)(0);(0,R.useEffect)(()=>{if(r===void 0)return;let e=!0,n;return Promise.all([Se.open(t,r),(e=>t[`storage/get`]({key:e}).then(e=>e.value,()=>null))(Y9(r))]).then(([t,i])=>{n=t,e?(o({path:r,file:t,toggles:Cte(i)}),u(Sy(jv(t.text))?t.text:void 0),c(void 0)):t.close()},t=>{e&&c(t instanceof Error?t.message:``)}),()=>{e=!1,n?.close()}},[t,r]);let p=a?.file;(0,R.useEffect)(()=>{p&&l!==void 0&&p.attach({save:()=>void 0,take:e=>{Sy(jv(e))?u(e):(u(void 0),f(e=>e+1))}})},[p,l]);let m=`doc-page${e.bare===!0?` doc-bare`:``} ${e.className??``}`,h=pe[x(n?.locale)];return s===void 0?!a||!n||a.path!==r?(0,z.jsx)(`div`,{className:m,lang:h,children:(0,z.jsx)(`div`,{className:`doc-sheet`,children:(0,z.jsx)(`p`,{className:`doc-message`,children:i.loading})})}):l===void 0?(0,z.jsx)(K9.Provider,{value:i,children:(0,z.jsx)(X5.Provider,{value:{item:r.replace(/\/?doc\.mdx$/u,``),locale:x(n.locale),readOnly:n.readOnly===!0,words:i},children:(0,z.jsx)(jte,{path:r,file:a.file,toggles:a.toggles,words:i,context:n,autoFocus:e.autoFocus??!1,className:m,onUnreadable:u},`${r}:${String(d)}`)})}):(0,z.jsx)(Nte,{className:m,text:l,words:i,lang:h}):(0,z.jsx)(`div`,{className:m,lang:h,children:(0,z.jsx)(`div`,{className:`doc-sheet`,children:(0,z.jsx)(`p`,{role:`alert`,className:`doc-message doc-message-problem`,children:s})})})}function Nte({className:e,text:t,words:n,lang:r}){let i=jv(t).problems[0]?.message;return(0,z.jsx)(`div`,{className:e,lang:r,children:(0,z.jsx)(`div`,{className:`doc-sheet`,children:(0,z.jsxs)(`div`,{className:`doc-scroll doc-unreadable`,"data-testid":`doc-unreadable`,children:[(0,z.jsx)(`p`,{className:`doc-message`,children:n.unreadable}),(0,z.jsx)(`p`,{className:`doc-message doc-message-problem`,children:i}),(0,z.jsx)(`pre`,{children:t})]})})})}export{Mte as DocEditor};
|