UNPKG

smoosic

Version:

<sub>[Github site](https://github.com/Smoosic/smoosic) | [source documentation](https://smoosic.github.io/Smoosic/release/docs/modules.html) | [change notes](https://aarondavidnewman.github.io/Smoosic/changes.html) | [application](https://smoosic.github.i

28 lines (26 loc) 21.7 MB
/* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) * or disable the default devtool with "devtool: false". * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["Smo"] = factory(); else root["Smo"] = factory(); })(this, () => { return /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/vexflow_smoosic/build/cjs/vexflow-debug.js": /*!*****************************************************************!*\ !*** ./node_modules/vexflow_smoosic/build/cjs/vexflow-debug.js ***! \*****************************************************************/ /***/ (function(module) { eval("{/*!\n * VexFlow 4.2.11 2025-07-30T03:08:17.323Z fa206f9538afb757e049e24d734f430f164d3af5\n * Vexflow_smoosic, forked from :\n * Copyright (c) 2010 Mohit Muthanna Cheppudira <mohit@muthanna.com>\n * https://www.vexflow.com https://github.com/0xfe/vexflow\n */\n/*\n * ATTENTION: An \"eval-source-map\" devtool has been used.\n * This devtool is neither made for production nor for readable output files.\n * It uses \"eval()\" calls to create a separate source file with attached SourceMaps in the browser devtools.\n * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)\n * or disable the default devtool with \"devtool: false\".\n * If you are looking for production-ready output files, see mode: \"production\" (https://webpack.js.org/configuration/mode/).\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(true)\n\t\tmodule.exports = factory();\n\telse // removed by dead control flow\n{}\n})((typeof window !== 'undefined' ? window : typeof globalThis !== 'undefined' ? globalThis : this), () => {\nreturn /******/ (() => { // webpackBootstrap\n/******/ \t\"use strict\";\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ \"./src/version.ts\":\n/*!************************!*\\\n !*** ./src/version.ts ***!\n \\************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ DATE: () => (/* binding */ DATE),\\n/* harmony export */ ID: () => (/* binding */ ID),\\n/* harmony export */ VERSION: () => (/* binding */ VERSION)\\n/* harmony export */ });\\nconst VERSION = '4.2.11';\\nconst ID = 'fa206f9538afb757e049e24d734f430f164d3af5';\\nconst DATE = '2025-07-30T03:08:17.323Z';\\n//# sourceURL=[module]\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdmVyc2lvbi50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBTyxNQUFNLE9BQU8sR0FBVztBQUN4QixNQUFNLEVBQUUsR0FBVyxzQkFBc0IsQ0FBQztBQUMxQyxNQUFNLElBQUksR0FBVyxtQkFBbUIsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL1ZleC8uL3NyYy92ZXJzaW9uLnRzP2YyMTIiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFZFUlNJT046IHN0cmluZyA9ICdfX1ZGX1ZFUlNJT05fXyc7XG5leHBvcnQgY29uc3QgSUQ6IHN0cmluZyA9ICdfX1ZGX0dJVF9DT01NSVRfSURfXyc7XG5leHBvcnQgY29uc3QgREFURTogc3RyaW5nID0gJ19fVkZfQlVJTERfREFURV9fJztcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\\n//# sourceURL=webpack-internal:///./src/version.ts\\n\");\n\n/***/ }),\n\n/***/ \"./entry/vexflow-debug.ts\":\n/*!********************************!*\\\n !*** ./entry/vexflow-debug.ts ***!\n \\********************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ Accidental: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Accidental),\\n/* harmony export */ Annotation: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Annotation),\\n/* harmony export */ AnnotationHorizontalJustify: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.AnnotationHorizontalJustify),\\n/* harmony export */ AnnotationVerticalJustify: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.AnnotationVerticalJustify),\\n/* harmony export */ Articulation: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Articulation),\\n/* harmony export */ BEAM_BOTH: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.BEAM_BOTH),\\n/* harmony export */ BEAM_LEFT: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.BEAM_LEFT),\\n/* harmony export */ BEAM_RIGHT: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.BEAM_RIGHT),\\n/* harmony export */ BarNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.BarNote),\\n/* harmony export */ Barline: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Barline),\\n/* harmony export */ BarlineType: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.BarlineType),\\n/* harmony export */ Beam: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Beam),\\n/* harmony export */ Bend: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Bend),\\n/* harmony export */ BoundingBox: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.BoundingBox),\\n/* harmony export */ BoundingBoxComputation: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.BoundingBoxComputation),\\n/* harmony export */ Builder: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Builder),\\n/* harmony export */ CanvasContext: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.CanvasContext),\\n/* harmony export */ Category: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Category),\\n/* harmony export */ ChordSymbol: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.ChordSymbol),\\n/* harmony export */ ChordSymbolHorizontalJustify: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.ChordSymbolHorizontalJustify),\\n/* harmony export */ ChordSymbolVerticalJustify: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.ChordSymbolVerticalJustify),\\n/* harmony export */ Clef: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Clef),\\n/* harmony export */ ClefNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.ClefNote),\\n/* harmony export */ Crescendo: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Crescendo),\\n/* harmony export */ Curve: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Curve),\\n/* harmony export */ CurvePosition: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.CurvePosition),\\n/* harmony export */ Dot: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Dot),\\n/* harmony export */ EasyScore: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.EasyScore),\\n/* harmony export */ EasyScoreGrammar: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.EasyScoreGrammar),\\n/* harmony export */ Element: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Element),\\n/* harmony export */ Factory: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Factory),\\n/* harmony export */ Flow: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Flow),\\n/* harmony export */ Font: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Font),\\n/* harmony export */ FontStyle: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.FontStyle),\\n/* harmony export */ FontWeight: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.FontWeight),\\n/* harmony export */ Formatter: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Formatter),\\n/* harmony export */ Fraction: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Fraction),\\n/* harmony export */ FretHandFinger: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.FretHandFinger),\\n/* harmony export */ GhostNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.GhostNote),\\n/* harmony export */ Glyph: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Glyph),\\n/* harmony export */ GlyphNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.GlyphNote),\\n/* harmony export */ GraceNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.GraceNote),\\n/* harmony export */ GraceNoteGroup: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.GraceNoteGroup),\\n/* harmony export */ GraceTabNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.GraceTabNote),\\n/* harmony export */ KeyManager: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.KeyManager),\\n/* harmony export */ KeySigNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.KeySigNote),\\n/* harmony export */ KeySignature: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.KeySignature),\\n/* harmony export */ Modifier: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Modifier),\\n/* harmony export */ ModifierContext: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.ModifierContext),\\n/* harmony export */ ModifierPosition: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.ModifierPosition),\\n/* harmony export */ MultiMeasureRest: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.MultiMeasureRest),\\n/* harmony export */ Music: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Music),\\n/* harmony export */ Note: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Note),\\n/* harmony export */ NoteHead: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.NoteHead),\\n/* harmony export */ NoteSubGroup: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.NoteSubGroup),\\n/* harmony export */ Ornament: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Ornament),\\n/* harmony export */ OutlineCode: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.OutlineCode),\\n/* harmony export */ Parenthesis: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Parenthesis),\\n/* harmony export */ Parser: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Parser),\\n/* harmony export */ PedalMarking: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.PedalMarking),\\n/* harmony export */ Piece: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Piece),\\n/* harmony export */ Registry: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Registry),\\n/* harmony export */ RenderContext: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.RenderContext),\\n/* harmony export */ Renderer: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Renderer),\\n/* harmony export */ RendererBackends: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.RendererBackends),\\n/* harmony export */ RendererLineEndType: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.RendererLineEndType),\\n/* harmony export */ RepeatNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.RepeatNote),\\n/* harmony export */ Repetition: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Repetition),\\n/* harmony export */ RuntimeError: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.RuntimeError),\\n/* harmony export */ SVGContext: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.SVGContext),\\n/* harmony export */ Stave: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Stave),\\n/* harmony export */ StaveConnector: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StaveConnector),\\n/* harmony export */ StaveHairpin: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StaveHairpin),\\n/* harmony export */ StaveLine: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StaveLine),\\n/* harmony export */ StaveModifier: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StaveModifier),\\n/* harmony export */ StaveModifierPosition: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StaveModifierPosition),\\n/* harmony export */ StaveNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StaveNote),\\n/* harmony export */ StaveSection: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StaveSection),\\n/* harmony export */ StaveTempo: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StaveTempo),\\n/* harmony export */ StaveText: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StaveText),\\n/* harmony export */ StaveTie: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StaveTie),\\n/* harmony export */ Stem: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Stem),\\n/* harmony export */ StemmableNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StemmableNote),\\n/* harmony export */ StringNumber: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.StringNumber),\\n/* harmony export */ Stroke: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Stroke),\\n/* harmony export */ SymbolModifiers: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.SymbolModifiers),\\n/* harmony export */ SymbolTypes: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.SymbolTypes),\\n/* harmony export */ System: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.System),\\n/* harmony export */ TabNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TabNote),\\n/* harmony export */ TabSlide: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TabSlide),\\n/* harmony export */ TabStave: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TabStave),\\n/* harmony export */ TabTie: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TabTie),\\n/* harmony export */ TextBracket: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TextBracket),\\n/* harmony export */ TextBracketPosition: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TextBracketPosition),\\n/* harmony export */ TextDynamics: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TextDynamics),\\n/* harmony export */ TextFormatter: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TextFormatter),\\n/* harmony export */ TextJustification: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TextJustification),\\n/* harmony export */ TextNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TextNote),\\n/* harmony export */ TickContext: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TickContext),\\n/* harmony export */ Tickable: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Tickable),\\n/* harmony export */ TimeSigNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TimeSigNote),\\n/* harmony export */ TimeSignature: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TimeSignature),\\n/* harmony export */ TimeSignatureGlyph: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TimeSignatureGlyph),\\n/* harmony export */ Tremolo: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Tremolo),\\n/* harmony export */ Tuning: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Tuning),\\n/* harmony export */ Tuplet: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Tuplet),\\n/* harmony export */ TupletLocation: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.TupletLocation),\\n/* harmony export */ Vex: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Vex),\\n/* harmony export */ Vibrato: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Vibrato),\\n/* harmony export */ VibratoBracket: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.VibratoBracket),\\n/* harmony export */ Voice: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Voice),\\n/* harmony export */ VoiceMode: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.VoiceMode),\\n/* harmony export */ Volta: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.Volta),\\n/* harmony export */ VoltaType: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.VoltaType),\\n/* harmony export */ \\\"default\\\": () => (/* reexport module object */ _src_index__WEBPACK_IMPORTED_MODULE_3__),\\n/* harmony export */ defined: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.defined),\\n/* harmony export */ drawDot: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.drawDot),\\n/* harmony export */ globalObject: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.globalObject),\\n/* harmony export */ isAccidental: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isAccidental),\\n/* harmony export */ isAnnotation: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isAnnotation),\\n/* harmony export */ isBarline: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isBarline),\\n/* harmony export */ isCategory: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isCategory),\\n/* harmony export */ isDot: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isDot),\\n/* harmony export */ isGraceNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isGraceNote),\\n/* harmony export */ isGraceNoteGroup: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isGraceNoteGroup),\\n/* harmony export */ isHTMLCanvas: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isHTMLCanvas),\\n/* harmony export */ isHTMLDiv: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isHTMLDiv),\\n/* harmony export */ isNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isNote),\\n/* harmony export */ isRenderContext: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isRenderContext),\\n/* harmony export */ isStaveNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isStaveNote),\\n/* harmony export */ isStemmableNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isStemmableNote),\\n/* harmony export */ isTabNote: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.isTabNote),\\n/* harmony export */ log: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.log),\\n/* harmony export */ midLine: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.midLine),\\n/* harmony export */ normalizeAngle: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.normalizeAngle),\\n/* harmony export */ prefix: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.prefix),\\n/* harmony export */ sumArray: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.sumArray),\\n/* harmony export */ warn: () => (/* reexport safe */ _src_index__WEBPACK_IMPORTED_MODULE_3__.warn)\\n/* harmony export */ });\\n/* harmony import */ var _src_flow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/flow */ \\\"./src/flow.ts\\\");\\n/* harmony import */ var _src_fonts_load_all__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../src/fonts/load_all */ \\\"./src/fonts/load_all.ts\\\");\\n/* harmony import */ var _src_fonts_textfonts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../src/fonts/textfonts */ \\\"./src/fonts/textfonts.ts\\\");\\n/* harmony import */ var _src_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../src/index */ \\\"./src/index.ts\\\");\\n// [VexFlow](https://vexflow.com) - Copyright (c) Mohit Muthanna 2010.\\n// MIT License\\n//\\n// vexflow-debug.ts is the entry point for the build output file vexflow-debug.js.\\n// It statically bundles all the music engraving fonts.\\n// Currently, it is identical to vexflow.ts, but the webpack config inside Gruntfile.js\\n// sets the webpack mode to 'development' to produce an unminified build.\\n// In the future, we could do something different with this entry file, such as turn on flags for logging.\\n\\n\\n\\n(0,_src_fonts_load_all__WEBPACK_IMPORTED_MODULE_1__.loadAllMusicFonts)();\\n_src_flow__WEBPACK_IMPORTED_MODULE_0__.Flow.setMusicFont('Bravura', 'Gonville', 'Custom');\\n(0,_src_fonts_textfonts__WEBPACK_IMPORTED_MODULE_2__.loadTextFonts)();\\n// Re-export all exports from index.ts.\\n\\n// Also collect all exports into a default export for CJS projects.\\n\\n//# sourceURL=[module]\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9lbnRyeS92ZXhmbG93LWRlYnVnLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxzRUFBc0U7QUFDdEUsY0FBYztBQUNkLEVBQUU7QUFDRixrRkFBa0Y7QUFDbEYsdURBQXVEO0FBRXZELHVGQUF1RjtBQUN2Rix5RUFBeUU7QUFFekUsMEdBQTBHO0FBRXZFO0FBQ3VCO0FBQ0g7QUFFdkQsc0VBQWlCLEVBQUUsQ0FBQztBQUNwQiwyQ0FBSSxDQUFDLFlBQVksQ0FBQyxTQUFTLEVBQUUsVUFBVSxFQUFFLFFBQVEsQ0FBQyxDQUFDO0FBQ25ELG1FQUFhLEVBQUUsQ0FBQztBQUVoQix1Q0FBdUM7QUFDVjtBQUM3QixtRUFBbUU7QUFDM0IiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9WZXgvLi9lbnRyeS92ZXhmbG93LWRlYnVnLnRzP2JmOTAiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gW1ZleEZsb3ddKGh0dHBzOi8vdmV4Zmxvdy5jb20pIC0gQ29weXJpZ2h0IChjKSBNb2hpdCBNdXRoYW5uYSAyMDEwLlxuLy8gTUlUIExpY2Vuc2Vcbi8vXG4vLyB2ZXhmbG93LWRlYnVnLnRzIGlzIHRoZSBlbnRyeSBwb2ludCBmb3IgdGhlIGJ1aWxkIG91dHB1dCBmaWxlIHZleGZsb3ctZGVidWcuanMuXG4vLyBJdCBzdGF0aWNhbGx5IGJ1bmRsZXMgYWxsIHRoZSBtdXNpYyBlbmdyYXZpbmcgZm9udHMuXG5cbi8vIEN1cnJlbnRseSwgaXQgaXMgaWRlbnRpY2FsIHRvIHZleGZsb3cudHMsIGJ1dCB0aGUgd2VicGFjayBjb25maWcgaW5zaWRlIEdydW50ZmlsZS5qc1xuLy8gc2V0cyB0aGUgd2VicGFjayBtb2RlIHRvICdkZXZlbG9wbWVudCcgdG8gcHJvZHVjZSBhbiB1bm1pbmlmaWVkIGJ1aWxkLlxuXG4vLyBJbiB0aGUgZnV0dXJlLCB3ZSBjb3VsZCBkbyBzb21ldGhpbmcgZGlmZmVyZW50IHdpdGggdGhpcyBlbnRyeSBmaWxlLCBzdWNoIGFzIHR1cm4gb24gZmxhZ3MgZm9yIGxvZ2dpbmcuXG5cbmltcG9ydCB7IEZsb3cgfSBmcm9tICcuLi9zcmMvZmxvdyc7XG5pbXBvcnQgeyBsb2FkQWxsTXVzaWNGb250cyB9IGZyb20gJy4uL3NyYy9mb250cy9sb2FkX2FsbCc7XG5pbXBvcnQgeyBsb2FkVGV4dEZvbnRzIH0gZnJvbSAnLi4vc3JjL2ZvbnRzL3RleHRmb250cyc7XG5cbmxvYWRBbGxNdXNpY0ZvbnRzKCk7XG5GbG93LnNldE11c2ljRm9udCgnQnJhdnVyYScsICdHb252aWxsZScsICdDdXN0b20nKTtcbmxvYWRUZXh0Rm9udHMoKTtcblxuLy8gUmUtZXhwb3J0IGFsbCBleHBvcnRzIGZyb20gaW5kZXgudHMuXG5leHBvcnQgKiBmcm9tICcuLi9zcmMvaW5kZXgnO1xuLy8gQWxzbyBjb2xsZWN0IGFsbCBleHBvcnRzIGludG8gYSBkZWZhdWx0IGV4cG9ydCBmb3IgQ0pTIHByb2plY3RzLlxuZXhwb3J0ICogYXMgZGVmYXVsdCBmcm9tICcuLi9zcmMvaW5kZXgnO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\\n//# sourceURL=webpack-internal:///./entry/vexflow-debug.ts\\n\");\n\n/***/ }),\n\n/***/ \"./src/accidental.ts\":\n/*!***************************!*\\\n !*** ./src/accidental.ts ***!\n \\***************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ Accidental: () => (/* binding */ Accidental)\\n/* harmony export */ });\\n/* harmony import */ var _fraction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fraction */ \\\"./src/fraction.ts\\\");\\n/* harmony import */ var _glyph__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./glyph */ \\\"./src/glyph.ts\\\");\\n/* harmony import */ var _modifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modifier */ \\\"./src/modifier.ts\\\");\\n/* harmony import */ var _music__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./music */ \\\"./src/music.ts\\\");\\n/* harmony import */ var _tables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tables */ \\\"./src/tables.ts\\\");\\n/* harmony import */ var _typeguard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typeguard */ \\\"./src/typeguard.ts\\\");\\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./util */ \\\"./src/util.ts\\\");\\n// [VexFlow](https://vexflow.com) - Copyright (c) Mohit Muthanna 2010.\\n// MIT License\\n// @author Mohit Cheppudira\\n// @author Greg Ristow (modifications)\\n\\n\\n\\n\\n\\n\\n\\n// eslint-disable-next-line\\nfunction L(...args) {\\n if (Accidental.DEBUG)\\n (0,_util__WEBPACK_IMPORTED_MODULE_6__.log)('Vex.Flow.Accidental', args);\\n}\\n/**\\n * An `Accidental` inherits from `Modifier`, and is formatted within a\\n * `ModifierContext`. Accidentals are modifiers that can be attached to\\n * notes. Support is included for both western and microtonal accidentals.\\n *\\n * See `tests/accidental_tests.ts` for usage examples.\\n */\\nclass Accidental extends _modifier__WEBPACK_IMPORTED_MODULE_2__.Modifier {\\n /** Accidentals category string. */\\n static get CATEGORY() {\\n return _typeguard__WEBPACK_IMPORTED_MODULE_5__.Category.Accidental;\\n }\\n /** Arrange accidentals inside a ModifierContext. */\\n static format(accidentals, state) {\\n // If there are no accidentals, no need to format their positions.\\n if (!accidentals || accidentals.length === 0)\\n return;\\n const musicFont = _tables__WEBPACK_IMPORTED_MODULE_4__.Tables.currentMusicFont();\\n const noteheadAccidentalPadding = musicFont.lookupMetric('accidental.noteheadAccidentalPadding');\\n const leftShift = state.left_shift + noteheadAccidentalPadding;\\n const accidentalSpacing = musicFont.lookupMetric('accidental.accidentalSpacing');\\n const additionalPadding = musicFont.lookupMetric('accidental.leftPadding'); // padding to the left of all accidentals\\n const accList = [];\\n let prevNote = undefined;\\n let shiftL = 0;\\n // First determine the accidentals' Y positions from the note.keys\\n for (let i = 0; i < accidentals.length; ++i) {\\n const acc = accidentals[i];\\n const note = acc.getNote();\\n const stave = note.getStave();\\n const index = acc.checkIndex();\\n const props = note.getKeyProps()[index];\\n if (note !== prevNote) {\\n // Iterate through all notes to get the displaced pixels\\n for (let n = 0; n < note.keys.length; ++n) {\\n shiftL = Math.max(note.getLeftDisplacedHeadPx() - note.getXShift(), shiftL);\\n }\\n prevNote = note;\\n }\\n if (stave) {\\n const lineSpace = stave.getSpacingBetweenLines();\\n const y = stave.getYForLine(props.line);\\n const accLine = Math.round((y / lineSpace) * 2) / 2;\\n accList.push({ y, line: accLine, shift: shiftL, acc, lineSpace });\\n }\\n else {\\n accList.push({ line: props.line, shift: shiftL, acc });\\n }\\n }\\n // Sort accidentals by line number.\\n accList.sort((a, b) => b.line - a.line);\\n // FIXME: Confusing name. Each object in this array has a property called `line`.\\n // So if this is a list of lines, you end up with: `line.line` which is very awkward.\\n const lineList = [];\\n // amount by which all accidentals must be shifted right or left for\\n // stem flipping, notehead shifting concerns.\\n let accShift = 0;\\n let previousLine = undefined;\\n // Create an array of unique line numbers (lineList) from accList\\n for (let i = 0; i < accList.length; i++) {\\n const acc = accList[i];\\n // if this is the first line, or a new line, add a lineList\\n if (previousLine === undefined || previousLine !== acc.line) {\\n lineList.push({\\n line: acc.line,\\n flatLine: true,\\n dblSharpLine: true,\\n numAcc: 0,\\n width: 0,\\n column: 0,\\n });\\n }\\n // if this accidental is not a flat, the accidental needs 3.0 lines lower\\n // clearance instead of 2.5 lines for b or bb.\\n // FIXME: Naming could use work. acc.acc is very awkward\\n if (acc.acc.type !== 'b' && acc.acc.type !== 'bb') {\\n lineList[lineList.length - 1].flatLine = false;\\n }\\n // if this accidental is not a double sharp, the accidental needs 3.0 lines above\\n if (acc.acc.type !== '##') {\\n lineList[lineList.length - 1].dblSharpLine = false;\\n }\\n // Track how many accidentals are on this line:\\n lineList[lineList.length - 1].numAcc++;\\n // Track the total x_offset needed for this line which will be needed\\n // for formatting lines w/ multiple accidentals:\\n // width = accidental width + universal spacing between accidentals\\n lineList[lineList.length - 1].width += acc.acc.getWidth() + accidentalSpacing;\\n // if this accShift is larger, use it to keep first column accidentals in the same line\\n accShift = acc.shift > accShift ? acc.shift : accShift;\\n previousLine = acc.line;\\n }\\n // ### Place Accidentals in Columns\\n //\\n // Default to a classic triangular layout (middle accidental farthest left),\\n // but follow exceptions as outlined in G. Read's _Music Notation_ and\\n // Elaine Gould's _Behind Bars_.\\n //\\n // Additionally, this implements different vertical collision rules for\\n // flats (only need 2.5 lines clearance below) and double sharps (only\\n // need 2.5 lines of clearance above or below).\\n //\\n // Classic layouts and exception patterns are found in the 'tables.js'\\n // in 'Tables.accidentalColumnsTable'\\n //\\n // Beyond 6 vertical accidentals, default to the parallel ascending lines approach,\\n // using as few columns as possible for the verticle structure.\\n //\\n // TODO (?): Allow column to be specified for an accidental at run-time?\\n let totalColumns = 0;\\n // establish the boundaries for a group of notes with clashing accidentals:\\n for (let i = 0; i < lineList.length; i++) {\\n let noFurtherConflicts = false;\\n const groupStart = i;\\n let groupEnd = i;\\n while (groupEnd + 1 < lineList.length && !noFurtherConflicts) {\\n // if this note conflicts with the next:\\n if (this.checkCollision(lineList[groupEnd], lineList[groupEnd + 1])) {\\n // include the next note in the group:\\n groupEnd++;\\n }\\n else {\\n noFurtherConflicts = true;\\n }\\n }\\n // Gets an a line from the `lineList`, relative to the current group\\n const getGroupLine = (index) => lineList[groupStart + index];\\n const getGroupLines = (indexes) => indexes.map(getGroupLine);\\n const lineDifference = (indexA, indexB) => {\\n const [a, b] = getGroupLines([indexA, indexB]).map((item) => item.line);\\n return a - b;\\n };\\n const notColliding = (...indexPairs) => indexPairs.map(getGroupLines).every(([line1, line2]) => !this.checkCollision(line1, line2));\\n // Set columns for the lines in this group:\\n const groupLength = groupEnd - groupStart + 1;\\n // Set the accidental column for each line of the group\\n let endCase = this.checkCollision(lineList[groupStart], lineList[groupEnd]) ? 'a' : 'b';\\n switch (groupLength) {\\n case 3:\\n if (endCase === 'a' && lineDifference(1, 2) === 0.5 && lineDifference(0, 1) !== 0.5) {\\n endCase = 'second_on_bottom';\\n }\\n break;\\n case 4:\\n if (notColliding([0, 2], [1, 3])) {\\n endCase = 'spaced_out_tetrachord';\\n }\\n break;\\n case 5:\\n if (endCase === 'b' && notColliding([1, 3])) {\\n endCase = 'spaced_out_pentachord';\\n if (notColliding([0, 2], [2, 4])) {\\n endCase = 'very_spaced_out_pentachord';\\n }\\n }\\n break;\\n case 6:\\n if (notColliding([0, 3], [1, 4], [2, 5])) {\\n endCase = 'spaced_out_hexachord';\\n }\\n if (notColliding([0, 2], [2, 4], [1, 3], [3, 5])) {\\n endCase = 'very_spaced_out_hexachord';\\n }\\n break;\\n default:\\n break;\\n }\\n let groupMember;\\n let column;\\n // If the group contains seven members or more, use ascending parallel lines\\n // of accidentals, using as few columns as possible while avoiding collisions.\\n if (groupLength >= 7) {\\n // First, determine how many columns to use:\\n let patternLength = 2;\\n let collisionDetected = true;\\n while (collisionDetected === true) {\\n collisionDetected = false;\\n for (let line = 0; line + patternLength < lineList.length; line++) {\\n if (this.checkCollision(lineList[line], lineList[line + patternLength])) {\\n collisionDetected = true;\\n patternLength++;\\n break;\\n }\\n }\\n }\\n // Then, assign a column to each line of accidentals\\n for (groupMember = i; groupMember <= groupEnd; groupMember++) {\\n column = ((groupMember - i) % patternLength) + 1;\\n lineList[groupMember].column = column;\\n totalColumns = totalColumns > column ? totalColumns : column;\\n }\\n }\\n else {\\n // If the group contains fewer than seven members, use the layouts from\\n // the Tables.accidentalColumnsTable (See: tables.ts).\\n for (groupMember = i; groupMember <= groupEnd; groupMember++) {\\n column = _tables__WEBPACK_IMPORTED_MODULE_4__.Tables.accidentalColumnsTable[groupLength][endCase][groupMember - i];\\n lineList[groupMember].column = column;\\n totalColumns = totalColumns > column ? totalColumns : column;\\n }\\n }\\n // Increment i to the last note that was set, so that if a lower set of notes\\n // does not conflict at all with this group, it can have its own classic shape.\\n i = groupEnd;\\n }\\n // ### Convert Columns to x_offsets\\n //\\n // This keeps columns aligned, even if they have different accidentals within them\\n // which sometimes results in a larger x_offset than is an accidental might need\\n // to preserve the symmetry of the accidental shape.\\n //\\n // Neither A.C. Vinci nor G. Read address this, and it typically only happens in\\n // music with complex chord clusters.\\n //\\n // TODO (?): Optionally allow closer compression of accidentals, instead of forcing\\n // parallel columns.\\n // track each column's max width, which will be used as initial shift of later columns:\\n const columnWidths = [];\\n const columnXOffsets = [];\\n for (let i = 0; i <= totalColumns; i++) {\\n columnWidths[i] = 0;\\n columnXOffsets[i] = 0;\\n }\\n columnWidths[0] = accShift + leftShift;\\n columnXOffsets[0] = accShift + leftShift;\\n // Fill columnWidths with widest needed x-space;\\n // this is what keeps the columns parallel.\\n lineList.forEach((line) => {\\n if (line.width > columnWidths[line.column])\\n columnWidths[line.column] = line.width;\\n });\\n for (let i = 1; i < columnWidths.length; i++) {\\n // this column's offset = this column's width + previous column's offset\\n columnXOffsets[i] = columnWidths[i] + columnXOffsets[i - 1];\\n }\\n const totalShift = columnXOffsets[columnXOffsets.length - 1];\\n // Set the xShift for each accidental according to column offsets:\\n let accCount = 0;\\n lineList.forEach((line) => {\\n let lineWidth = 0;\\n const lastAccOnLine = accCount + line.numAcc;\\n // handle all of the accidentals on a given line:\\n for (accCount; accCount < lastAccOnLine; accCount++) {\\n const xShift = columnXOffsets[line.column - 1] + lineWidth;\\n accList[accCount].acc.setXShift(xShift);\\n // keep track of the width of accidentals we've added so far, so that when\\n // we loop, we add space for them.\\n lineWidth += accList[accCount].acc.getWidth() + accidentalSpacing;\\n L('Line, accCount, shift: ', line.line, accCount, xShift);\\n }\\n });\\n // update the overall layout with the full width of the accidental shapes:\\n state.left_shift += totalShift + additionalPadding;\\n }\\n /** Helper function to determine whether two lines of accidentals collide vertically */\\n static checkCollision(line1, line2) {\\n let clearance = line2.line - line1.line;\\n let clearanceRequired = 3;\\n // But less clearance is required for certain accidentals: b, bb and ##.\\n if (clearance > 0) {\\n // then line 2 is on top\\n clearanceRequired = line2.flatLine || line2.dblSharpLine ? 2.5 : 3.0;\\n if (line1.dblSharpLine)\\n clearance -= 0.5;\\n }\\n else {\\n // line 1 is on top\\n clearanceRequired = line1.flatLine || line1.dblSharpLine ? 2.5 : 3.0;\\n if (line2.dblSharpLine)\\n clearance -= 0.5;\\n }\\n const collision = Math.abs(clearance) < clearanceRequired;\\n L('Line_1, Line_2, Collision: ', line1.line, line2.line, collision);\\n return collision;\\n }\\n /**\\n * Use this method to automatically apply accidentals to a set of `voices`.\\n * The accidentals will be remembered between all the voices provided.\\n * Optionally, you can also provide an initial `keySignature`.\\n */\\n static applyAccidentals(voices, keySignature) {\\n const tickPositions = [];\\n const tickNoteMap = {};\\n // Sort the tickables in each voice by their tick position in the voice.\\n voices.forEach((voice) => {\\n const tickPosition = new _fraction__WEBPACK_IMPORTED_MODULE_0__.Fraction(0, 1);\\n const tickable = voice.getTickables();\\n tickable.forEach((t) => {\\n if (t.shouldIgnoreTicks())\\n return;\\n const notesAtPosition = tickNoteMap[tickPosition.value()];\\n if (!notesAtPosition) {\\n tickPositions.push(tickPosition.value());\\n tickNoteMap[tickPosition.value()] = [t];\\n }\\n else {\\n notesAtPosition.push(t);\\n }\\n tickPosition.add(t.getTicks());\\n });\\n });\\n const music = new _music__WEBPACK_IMPORTED_MODULE_3__.Music();\\n // Default key signature is C major.\\n if (!keySignature)\\n keySignature = 'C';\\n // Get the scale map, which represents the current state of each pitch.\\n const scaleMapKey = music.createScaleMap(keySignature);\\n const scaleMap = {};\\n tickPositions.forEach((tickPos) => {\\n const tickables = tickNoteMap[tickPos];\\n // Array to store all pitches that modified accidental states\\n // at this tick position\\n const modifiedPitches = [];\\n const processNote = (t) => {\\n // Only StaveNote implements .addModifier(), which is used below.\\n if (!(0,_typeguard__WEBPACK_IMPORTED_MODULE_5__.isStaveNote)(t) || t.isRest() || t.shouldIgnoreTicks()) {\\n return;\\n }\\n // Go through each key and determine if an accidental should be applied.\\n const staveNote = t;\\n staveNote.keys.forEach((keyString, keyIndex) => {\\n const key = music.getNoteParts(keyString.split('/')[0]);\\n const octave = keyString.split('/')[1];\\n // Force a natural for every key without an accidental\\n const accidentalString = key.accidental || 'n';\\n const pitch = key.root + accidentalString;\\n // Determine if the current pitch has the same accidental\\n // as the scale state\\n if (!scaleMap[key.root + octave])\\n scaleMap[key.root + octave] = scaleMapKey[key.root];\\n const sameAccidental = scaleMap[key.root + octave] === pitch;\\n // Determine if an identical pitch in the chord already\\n // modified the accidental state\\n const previouslyModified = modifiedPitches.indexOf(keyString) > -1;\\n // Remove accidentals\\n staveNote.getModifiers().forEach((modifier, index) => {\\n if ((0,_typeguard__WEBPACK_IMPORTED_MODULE_5__.isAccidental)(modifier) && modifier.type == accidentalString && modifier.getIndex() == keyIndex) {\\n staveNote.getModifiers().splice(index, 1);\\n }\\n });\\n // Add the accidental to the StaveNote\\n if (!sameAccidental || (sameAccidental && previouslyModified)) {\\n // Modify the scale map so that the root pitch has an\\n // updated state\\n scaleMap[key.root + octave] = pitch;\\n // Create the accidental\\n const accidental = new Accidental(accidentalString);\\n // Attach the accidental to the StaveNote\\n staveNote.addModifier(accidental, keyIndex);\\n // Add the pitch to list of pitches that modified accidentals\\n modifiedPitches.push(keyString);\\n }\\n });\\n // process grace notes\\n staveNote.getModifiers().forEach((modifier) => {\\n if ((0,_typeguard__WEBPACK_IMPORTED_MODULE_5__.isGraceNoteGroup)(modifier)) {\\n modifier.getGraceNotes().forEach(processNote);\\n }\\n });\\n };\\n tickables.forEach(processNote);\\n });\\n }\\n /**\\n * Create accidental.\\n * @param type value from `Vex.Flow.accidentalCodes.accidentals` table in `tables.ts`.\\n * For example: `#`, `##`, `b`, `n`, etc.\\n */\\n constructor(type) {\\n super();\\n L('New accidental: ', type);\\n this.type = type;\\n this.position = _modifier__WEBPACK_IMPORTED_MODULE_2__.Modifier.Position.LEFT;\\n this.render_options = {\\n // Font size for glyphs\\n font_scale: _tables__WEBPACK_IMPORTED_MODULE_4__.Tables.NOTATION_FONT_SCALE,\\n // Padding between accidental and parentheses on each side\\n parenLeftPadding: 2,\\n parenRightPadding: 2,\\n };\\n this.accidental = _tables__WEBPACK_IMPORTED_MODULE_4__.Tables.accidentalCodes(this.type);\\n (0,_util__WEBPACK_IMPORTED_MODULE_6__.defined)(this.accidental, 'ArgumentError', `Unknown accidental type: ${type}`);\\n // Cautionary accidentals have parentheses around them\\n this.cautionary = false;\\n this.reset();\\n }\\n reset() {\\n const fontScale = this.render_options.font_scale;\\n this.glyph = new _glyph__WEBPACK_IMPORTED_MODULE_1__.Glyph(this.accidental.code, fontScale);\\n this.glyph.setOriginX(1.0);\\n if (this.cautionary) {\\n this.parenLeft = new _glyph__WEBPACK_IMPORTED_MODULE_1__.Glyph(_tables__WEBPACK_IMPORTED_MODULE_4__.Tables.accidentalCodes('{').code, fontScale);\\n this.parenRight = new _glyph__WEBPACK_IMPORTED_MODULE_1__.Glyph(_tables__WEBPACK_IMPORTED_MODULE_4__.Tables.accidentalCodes('}').code, fontScale);\\n this.parenLeft.setOriginX(1.0);\\n this.parenRight.setOriginX(1.0);\\n }\\n }\\n /** Get width in pixels. */\\n getWidth() {\\n if (this.cautionary) {\\n const parenLeft = (0,_util__WEBPACK_IMPORTED_MODULE_6__.defined)(this.parenLeft);\\n const parenRight = (0,_util__WEBPACK_IMPORTED_MODULE_6__.defined)(this.parenRight);\\n const parenWidth = parenLeft.getMetrics().width +\\n parenRight.getMetrics().width +\\n this.render_options.parenLeftPadding +\\n this.render_options.parenRightPadding;\\n return this.glyph.getMetrics().width + parenWidth;\\n }\\n else {\\n return this.glyph.getMetrics().width;\\n }\\n }\\n /** Attach this accidental to `note`, which must be a `StaveNote`. */\\n setNote(note) {\\n (0,_util__WEBPACK_IMPORTED_MODULE_6__.defined)(note, 'ArgumentError', `Bad note value: ${note}`);\\n this.note = note;\\n // Accidentals attached to grace notes are rendered smaller.\\n if ((0,_typeguard__WEBPACK_IMPORTED_MODULE_5__.isGraceNote)(note)) {\\n this.render_options.font_scale = 25;\\n this.reset();\\n }\\n return this;\\n }\\n /** If called, draws parenthesis around accidental. */\\n setAsCautionary() {\\n this.cautionary = true;\\n this.render_options.font_scale = 28;\\n this.reset();\\n return this;\\n }\\n /** Render accidental onto canvas. */\\n draw() {\\n const { type, position, index, cautionary, x_shift, y_shift, glyph, render_options: { parenLeftPadding, parenRightPadding }, } = this;\\n const ctx = this.checkContext();\\n const note = this.checkAttachedNote();\\n this.setRendered();\\n // Figure out the start `x` and `y` coordinates for note and index.\\n const start = note.getModifierStartXY(position, index);\\n let accX = start.x + x_shift;\\n const accY = start.y + y_shift;\\n L('Rendering: ', type, accX, accY);\\n if (!cautionary) {\\n glyph.render(ctx, accX, accY);\\n }\\n else {\\n const parenLeft = (0,_util__WEBPACK_IMPORTED_MODULE_6__.defined)(this.parenLeft);\\n const parenRight = (0,_util__WEBPACK_IMPORTED_MODULE_6__.defined)(this.parenRight);\\n // Render the accidental in parentheses.\\n parenRight.render(ctx, accX, accY);\\n accX -= parenRight.getMetrics().width;\\n accX -= parenRightPadding;\\n accX -= this.accidental.parenRightPaddingAdjustment;\\n glyph.render(ctx, accX, accY);\\n accX -= glyph.getMetrics().width;\\n accX -= parenLeftPadding;\\n parenLeft.render(ctx, accX, accY);\\n }\\n }\\n}\\n/** To enable logging for this class. Set `Vex.Flow.Accidental.DEBUG` to `true`. */\\nAccidental.DEBUG = false;\\n//# sourceURL=[module]\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYWNjaWRlbnRhbC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBLHNFQUFzRTtBQUN0RSxjQUFjO0FBQ2QsMkJBQTJCO0FBQzN