egatari 0.6.4 → 0.6.5-rc.1
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/NOTICE +36 -0
- package/README.ja.md +16 -4
- package/README.md +16 -4
- package/bin/egatari.mjs +86 -3
- package/components.lock.json +246 -123
- package/components2.lock.json +824 -1
- package/kit/article-steps.mjs +27 -0
- package/kit/build.mjs +50 -1
- package/kit/check-messages.mjs +15 -7
- package/kit/check.mjs +40 -7
- package/kit/cli-hint.mjs +27 -0
- package/kit/core/article-cite.mjs +188 -0
- package/kit/core/article-links.mjs +174 -0
- package/kit/core/article-messages.mjs +115 -0
- package/kit/core/article-page.mjs +183 -0
- package/kit/core/article-render.mjs +410 -0
- package/kit/core/article-text.mjs +501 -0
- package/kit/core/article.mjs +266 -0
- package/kit/core/build-core.mjs +49 -9
- package/kit/core/citeproc-credit.mjs +3 -0
- package/kit/core/colab-core.mjs +1 -1
- package/kit/core/components-lock.mjs +18 -0
- package/kit/core/llm-fix.mjs +2 -1
- package/kit/core/llm-pack-assemble.mjs +5 -3
- package/kit/core/llm-pack-data.mjs +63 -80
- package/kit/core/new-deck.mjs +1 -1
- package/kit/core/part-labels.mjs +17 -5
- package/kit/core/parts2.mjs +11 -1
- package/kit/core/player.mjs +1 -1
- package/kit/core/portable.mjs +132 -16
- package/kit/core/quote-ja.mjs +5 -0
- package/kit/core/themes-lock.mjs +16 -0
- package/kit/core/tier-a.mjs +47 -3
- package/kit/deck.js +195 -45
- package/kit/instruction-version.json +3 -0
- package/kit/layouts.css +11 -10
- package/kit/panes.js +1288 -0
- package/kit/player.json +1 -1
- package/kit/player.lock.json +2 -2
- package/kit/tools.js +81 -20
- package/kit/track.js +308 -0
- package/package.json +20 -3
- package/render/only.mjs +21 -0
- package/render/render.mjs +11 -8
- package/tools/ids.mjs +74 -9
- package/tools/portable.mjs +2 -0
- package/tools/sheet.mjs +5 -3
- package/vendor/components/CATALOG.md +4 -4
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/CHANGELOG.md +37 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/README.md +58 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/demo.html +121 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/index.js +894 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/CHANGELOG.md +44 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/README.md +32 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/demo.html +57 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/chords.json +89 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/extras.json +192 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/ties.json +360 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/index.js +474 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/CHANGELOG.md +28 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/README.md +21 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/demo.html +32 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/index.js +139 -0
- package/vendor/components/sha256/03550bb20d425aa926258bab18b03bbc0cee292072e01bb6c78c429b3ae92c34/README.md +42 -0
- package/vendor/components/sha256/03550bb20d425aa926258bab18b03bbc0cee292072e01bb6c78c429b3ae92c34/index.js +250 -0
- package/vendor/components/sha256/07013c263cc595382dbcfd4931ca8b016f9dfb673440adf28911c95bd465cf9d/README.md +22 -0
- package/vendor/components/sha256/07013c263cc595382dbcfd4931ca8b016f9dfb673440adf28911c95bd465cf9d/index.js +41 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/CHANGELOG.md +25 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/README.md +35 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/demo.html +40 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/index.js +731 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/CHANGELOG.md +19 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/README.md +21 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/demo.html +33 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/index.js +106 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/CHANGELOG.md +21 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/README.md +34 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/demo.html +77 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/index.js +200 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/CHANGELOG.md +31 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/README.md +43 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/demo.html +47 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/index.js +484 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/CHANGELOG.md +23 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/README.md +44 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/demo.html +43 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/index.js +266 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/CHANGELOG.md +34 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/README.md +44 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/demo.html +56 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/index.js +429 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/CHANGELOG.md +25 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/README.md +42 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/demo.html +115 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/index.js +384 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/CHANGELOG.md +19 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/README.md +38 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/demo.html +72 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/index.js +248 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/CHANGELOG.md +19 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/README.md +36 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/demo.html +70 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/index.js +167 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/CHANGELOG.md +34 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/README.md +32 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/demo.html +51 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/index.js +302 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/CHANGELOG.md +41 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/README.md +35 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/demo.html +66 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/index.js +352 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/CHANGELOG.md +35 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/README.md +35 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/demo.html +40 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/index.js +747 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/CHANGELOG.md +35 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/README.md +43 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/demo.html +89 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/index.js +323 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/CHANGELOG.md +24 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/README.md +40 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/demo.html +70 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/index.js +561 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/CHANGELOG.md +27 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/README.md +50 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/demo.html +44 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/index.js +464 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/CHANGELOG.md +23 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/README.md +44 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/demo.html +56 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/index.js +402 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/CHANGELOG.md +27 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/README.md +49 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/demo.html +44 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/index.js +354 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/CHANGELOG.md +20 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/README.md +50 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/demo.html +61 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/index.js +141 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/CHANGELOG.md +42 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/README.md +32 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/demo.html +54 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/index.js +315 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/CHANGELOG.md +30 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/README.md +38 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/demo.html +72 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/index.js +267 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/CHANGELOG.md +16 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/README.md +27 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/demo.html +42 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/index.js +121 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/CHANGELOG.md +33 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/README.md +41 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/demo.html +70 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/index.js +592 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/CHANGELOG.md +23 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/README.md +43 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/demo.html +47 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/index.js +483 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/CHANGELOG.md +19 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/README.md +34 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/demo.html +60 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/index.js +209 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/CHANGELOG.md +30 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/README.md +79 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/demo.html +50 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/index.js +351 -0
- package/vendor/components/sha256/577008a069e7eb08057705a0800d975e82c8dfe0d0ba5fbf4f8974af7b298a7f/README.md +53 -0
- package/vendor/components/sha256/577008a069e7eb08057705a0800d975e82c8dfe0d0ba5fbf4f8974af7b298a7f/index.js +310 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/CHANGELOG.md +20 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/README.md +75 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/demo.html +50 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/index.js +342 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/CHANGELOG.md +24 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/README.md +26 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/demo.html +48 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/index.js +97 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/CHANGELOG.md +22 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/README.md +64 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/demo.html +97 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/index.js +875 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/CHANGELOG.md +21 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/README.md +50 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/demo.html +63 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/index.js +219 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/CHANGELOG.md +28 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/README.md +35 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/demo.html +73 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/index.js +228 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/CHANGELOG.md +34 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/README.md +65 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/demo.html +97 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/index.js +920 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/CHANGELOG.md +31 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/README.md +39 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/demo.html +66 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/index.js +304 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/CHANGELOG.md +31 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/README.md +40 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/demo.html +92 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/index.js +424 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/CHANGELOG.md +26 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/README.md +57 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/demo.html +121 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/index.js +875 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/CHANGELOG.md +20 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/README.md +46 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/demo.html +112 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/index.js +443 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/CHANGELOG.md +22 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/README.md +35 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/demo.html +69 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/index.js +217 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/CHANGELOG.md +46 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/LICENSE-strokesvg.txt +115 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/OFL.txt +93 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/README.md +30 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/demo.html +40 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/index.js +749 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/strokes-CHANGES.md +20 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/CHANGELOG.md +40 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/README.md +36 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/demo.html +52 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/index.js +268 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/CHANGELOG.md +31 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/README.md +46 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/demo.html +112 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/index.js +481 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/CHANGELOG.md +36 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/README.md +73 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/demo.html +76 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/index.js +805 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/CHANGELOG.md +24 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/README.md +35 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/demo.html +53 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/index.js +481 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/CHANGELOG.md +41 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/LICENSE-strokesvg.txt +115 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/OFL.txt +93 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/README.md +33 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/demo.html +40 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/index.js +749 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/strokes-CHANGES.md +20 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/CHANGELOG.md +35 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/README.md +35 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/demo.html +53 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/index.js +521 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/CHANGELOG.md +32 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/README.md +39 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/demo.html +70 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/index.js +166 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/CHANGELOG.md +56 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/README.md +35 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/demo.html +57 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/chords.json +89 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/extras.json +192 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/ties.json +360 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/index.js +508 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/CHANGELOG.md +31 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/README.md +34 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/demo.html +77 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/index.js +222 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/CHANGELOG.md +30 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/README.md +50 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/demo.html +61 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/index.js +171 -0
- package/vendor/components/sha256/bd590a6619f80d659299e4e558f770e75244360450939d504a4eaf7989b0eb97/README.md +21 -0
- package/vendor/components/sha256/bd590a6619f80d659299e4e558f770e75244360450939d504a4eaf7989b0eb97/index.js +93 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/CHANGELOG.md +18 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/README.md +21 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/demo.html +32 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/index.js +53 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/CHANGELOG.md +20 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/README.md +40 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/demo.html +92 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/index.js +399 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/CHANGELOG.md +28 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/README.md +36 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/demo.html +70 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/index.js +179 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/CHANGELOG.md +25 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/README.md +32 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/demo.html +54 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/index.js +251 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/CHANGELOG.md +34 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/README.md +35 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/demo.html +69 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/index.js +244 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/CHANGELOG.md +19 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/README.md +44 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/demo.html +44 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/index.js +334 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/CHANGELOG.md +37 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/README.md +43 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/demo.html +75 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/index.js +348 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/CHANGELOG.md +20 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/README.md +39 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/demo.html +70 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/index.js +134 -0
- package/vendor/components/sha256/d4159ba1206d094364b7735750e5e2532aeabbc299e0d6858e3a0edb84495e11/README.md +22 -0
- package/vendor/components/sha256/d4159ba1206d094364b7735750e5e2532aeabbc299e0d6858e3a0edb84495e11/index.js +59 -0
- package/vendor/components/sha256/d92842c606795528d1246ddb050ac275e1b72659629185750a6e9ac7fdb763a3/README.md +20 -0
- package/vendor/components/sha256/d92842c606795528d1246ddb050ac275e1b72659629185750a6e9ac7fdb763a3/index.js +162 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/CHANGELOG.md +33 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/README.md +46 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/demo.html +43 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/index.js +278 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/CHANGELOG.md +15 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/README.md +25 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/demo.html +48 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/index.js +88 -0
- package/vendor/components/sha256/de9607f86221006e7bad43f1f661c751d9a6f8f9c62da5c7e0d7f1249b9afcd6/README.md +25 -0
- package/vendor/components/sha256/de9607f86221006e7bad43f1f661c751d9a6f8f9c62da5c7e0d7f1249b9afcd6/index.js +122 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/CHANGELOG.md +20 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/README.md +23 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/demo.html +236 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/index.js +572 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/CHANGELOG.md +29 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/README.md +23 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/demo.html +33 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/index.js +121 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/CHANGELOG.md +29 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/README.md +32 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/demo.html +56 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/index.js +232 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/CHANGELOG.md +25 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/README.md +71 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/demo.html +76 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/index.js +777 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/CHANGELOG.md +33 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/README.md +28 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/demo.html +236 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/index.js +600 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/CHANGELOG.md +16 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/README.md +38 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/demo.html +115 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/index.js +361 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/CHANGELOG.md +27 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/README.md +27 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/demo.html +42 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/index.js +233 -0
- package/vendor/components/sha256/f268cf809438c8af63a42f9c9121110fc7263e4d705c40c6206ce46cf7ec167b/README.md +23 -0
- package/vendor/components/sha256/f268cf809438c8af63a42f9c9121110fc7263e4d705c40c6206ce46cf7ec167b/index.js +180 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/CHANGELOG.md +31 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/README.md +36 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/demo.html +50 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/index.js +263 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/CHANGELOG.md +20 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/README.md +39 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/demo.html +66 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/index.js +258 -0
- package/vendor/components/sha256/fadd24868e2730ec14b8f3f1e9cb75b8577a48b8d71beaa12ef089f7a3ba0a7d/README.md +22 -0
- package/vendor/components/sha256/fadd24868e2730ec14b8f3f1e9cb75b8577a48b8d71beaa12ef089f7a3ba0a7d/index.js +37 -0
- package/vendor/components/sha256/faf6a2f0b5df589639de624e75c5b20594f517e4426f6415d152809249b00b92/README.md +19 -0
- package/vendor/components/sha256/faf6a2f0b5df589639de624e75c5b20594f517e4426f6415d152809249b00b92/index.js +200 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/CHANGELOG.md +25 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/README.md +32 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/demo.html +51 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/index.js +270 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/CHANGELOG.md +19 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/README.md +34 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/demo.html +60 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/index.js +209 -0
- package/vendor/components-2/manifest-2.2.0.json +1868 -0
- package/vendor/csl/SOURCE.json +17 -0
- package/vendor/csl/locales/locales-en-US.xml +864 -0
- package/vendor/csl/locales/locales-ja-JP.xml +676 -0
- package/vendor/csl/styles/apa.csl +2278 -0
- package/vendor/csl/styles/ieee.csl +519 -0
- package/vendor/csl/styles/sist02.csl +273 -0
- package/vendor/egatari-spec/SOURCE.json +3 -3
- package/vendor/egatari-spec/schema/deck-meta.schema.json +6 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
// 本文(article-v1、format spec §9C):作業フォルダの本文のファイルを見つけ(§9C.1・§9C.1A)、読み(kit/core/article-text.mjs)、
|
|
2
|
+
// ファイルをまたぐ決まり(章の番号・種類の順・lang・writing-mode・bibliography)と、文書全体の点検(§9C.8:名前の重なり・相互参照・
|
|
3
|
+
// 解答の問・用語・ステップへのリンク・引用の鍵・画像・スライドの data-article)を行う。番号と HTML は kit/core/article-render.mjs。
|
|
4
|
+
// 編集アプリと共有する(node: の読み込み・fs を使わない。読むのは渡された read・exists を通す)。
|
|
5
|
+
import { parseArticleText, visit, plain, ARTICLE_LIMITS, CITE_KEY_RE } from './article-text.mjs';
|
|
6
|
+
import { citationSettings } from './article-cite.mjs';
|
|
7
|
+
|
|
8
|
+
export const ARTICLE_FILE = 'article.md';
|
|
9
|
+
export const CHAPTER_DIR = 'article';
|
|
10
|
+
export const REFERENCES_FILE = 'references.json';
|
|
11
|
+
const KIND_ORDER = { preface: 0, chapter: 1, appendix: 2, afterword: 3 };
|
|
12
|
+
const CHAPTER_RE = /^article\/[^/]+\.md$/;
|
|
13
|
+
|
|
14
|
+
// 作業フォルダのファイルの一覧(作業フォルダからの相対パス、/ 区切り)と egatari.json の object(conf。なければ null)から index.article を決める(§9C.1・§9C.7)。
|
|
15
|
+
// conf.article があればそれ(読む順もそれ。ないファイルは誤り、載っていない章のファイルは警告)。
|
|
16
|
+
// なければ article.md で {path}、article/<名前>.md で {chapters}(名前の符号位置の順。読んだ後に readArticle が種類の順に並べ直す:order: 'kind')。
|
|
17
|
+
// 両方あれば誤り(§9C.8 の 7)。references.json があれば references。本文がなければ index: null
|
|
18
|
+
export function articleLayout(paths, conf = null) {
|
|
19
|
+
const set = new Set(paths);
|
|
20
|
+
const chapters = paths.filter((p) => CHAPTER_RE.test(p)).sort((a, b) => (a < b ? -1 : a > b ? 1 : 0));
|
|
21
|
+
const problems = [];
|
|
22
|
+
const ca = conf && Object.prototype.hasOwnProperty.call(conf, 'article') ? conf.article : undefined;
|
|
23
|
+
if (ca !== undefined) {
|
|
24
|
+
const bad = (why, path = null) => { problems.push(D('error', 'articleConfig', '§9C.7', 'egatari.json', null, { why, path })); };
|
|
25
|
+
if (!ca || typeof ca !== 'object' || Array.isArray(ca)) { bad('shape'); return { index: null, problems, order: 'config' }; }
|
|
26
|
+
const index = {};
|
|
27
|
+
if (ca.path !== undefined) { if (ca.path !== ARTICLE_FILE) bad('path', String(ca.path)); index.path = ca.path; }
|
|
28
|
+
if (ca.chapters !== undefined) {
|
|
29
|
+
if (!Array.isArray(ca.chapters) || !ca.chapters.length || ca.chapters.some((c) => typeof c !== 'string' || !CHAPTER_RE.test(c)) || new Set(ca.chapters).size !== ca.chapters.length) bad('chapters');
|
|
30
|
+
else index.chapters = ca.chapters.slice();
|
|
31
|
+
}
|
|
32
|
+
if (ca.references !== undefined) { index.references = ca.references; if (!set.has(ca.references)) bad('missing', String(ca.references)); }
|
|
33
|
+
for (const p of articleFiles(index)) if (!set.has(p)) bad('missing', p);
|
|
34
|
+
const listed = new Set(articleFiles(index));
|
|
35
|
+
for (const p of [...(set.has(ARTICLE_FILE) ? [ARTICLE_FILE] : []), ...chapters]) if (!listed.has(p)) problems.push(D('warn', 'articleUnlisted', '§9C.1', p, null, {}));
|
|
36
|
+
return { index, problems, order: 'config' };
|
|
37
|
+
}
|
|
38
|
+
let index = null;
|
|
39
|
+
if (set.has(ARTICLE_FILE) && chapters.length) problems.push(D('error', 'articleIndex', '§9C.8', null, null, { why: 'both', chapters: chapters.length }));
|
|
40
|
+
if (set.has(ARTICLE_FILE)) index = { path: ARTICLE_FILE };
|
|
41
|
+
else if (chapters.length) index = { chapters };
|
|
42
|
+
if (index && set.has(REFERENCES_FILE)) index.references = REFERENCES_FILE;
|
|
43
|
+
return { index, problems, order: index && index.chapters ? 'kind' : null };
|
|
44
|
+
}
|
|
45
|
+
export const articleFiles = (index) => (!index ? [] : index.path ? [index.path] : Array.isArray(index.chapters) ? index.chapters.slice() : []);
|
|
46
|
+
|
|
47
|
+
// 本文を読む。read(rel) は文字列を返す(ないときは例外)。opts.lang:metadata.lang(デッキの言語)。opts.convert:変換できる書き方を直す。
|
|
48
|
+
// opts.order:'kind' なら章を種類の順に並べ直す(articleLayout の order。egatari.json に順がないとき)
|
|
49
|
+
// 返すもの:{index, files: [{path, fm, tree, kind, chapter, letter, problems}], lang, writingMode, problems}(problems は全部。file 付き)
|
|
50
|
+
export function readArticle(index, read, opts = {}) {
|
|
51
|
+
const problems = [];
|
|
52
|
+
const files = [];
|
|
53
|
+
if (!index) return { index, files, problems, lang: opts.lang || '', writingMode: 'horizontal-tb' };
|
|
54
|
+
const has = (k) => Object.prototype.hasOwnProperty.call(index, k);
|
|
55
|
+
if (has('path') === has('chapters')) problems.push(D('error', 'articleIndex', '§9C.8', null, null, { why: has('path') ? 'both' : 'neither' }));
|
|
56
|
+
for (const p of articleFiles(index)) {
|
|
57
|
+
let text;
|
|
58
|
+
try { text = read(p); } catch (e) { problems.push(D('error', 'articleRead', '§9C.1', p, null, { why: String(e && e.message || e).slice(0, 120) })); continue; }
|
|
59
|
+
if (text.length > ARTICLE_LIMITS.fileBytes) { problems.push(D('error', 'articleTooLarge', '§9C.1', p, null, { bytes: text.length, max: ARTICLE_LIMITS.fileBytes })); continue; }
|
|
60
|
+
const r = parseArticleText(text, { convert: !!opts.convert });
|
|
61
|
+
const kind = r.fm.kind || 'chapter';
|
|
62
|
+
files.push({ path: p, source: text, lineOffset: r.lineOffset, fm: r.fm, tree: r.tree, kind, chapter: kind === 'chapter' ? r.fm.chapter ?? null : null, letter: null, conversions: r.conversions });
|
|
63
|
+
for (const x of r.problems) problems.push({ ...x, file: p });
|
|
64
|
+
}
|
|
65
|
+
// egatari.json に読む順がなければ、種類の順(前書き・章・付録・後書き)、その中はファイルの名前の順(§9C.7)
|
|
66
|
+
if (opts.order === 'kind' && index.chapters) {
|
|
67
|
+
files.sort((x, y) => KIND_ORDER[x.kind] - KIND_ORDER[y.kind] || (x.path < y.path ? -1 : x.path > y.path ? 1 : 0));
|
|
68
|
+
index.chapters = files.map((f) => f.path);
|
|
69
|
+
}
|
|
70
|
+
// 付録は読む順に A、B、…(§9C.1A)
|
|
71
|
+
let a = 0;
|
|
72
|
+
for (const f of files) if (f.kind === 'appendix') f.letter = letterOf(a++);
|
|
73
|
+
// 章のファイル(§9C.1A・§9C.8 の 7)
|
|
74
|
+
if (index.chapters) {
|
|
75
|
+
let last = -1, lastNum = 0;
|
|
76
|
+
for (const f of files) {
|
|
77
|
+
if (f.kind === 'chapter') {
|
|
78
|
+
if (f.fm.chapter === undefined && !problems.some((p) => p.file === f.path && p.code === 'articleFrontMatterValue' && p.data.member === 'chapter')) problems.push(D('error', 'articleChapterNumber', '§9C.1A', f.path, 1, {}));
|
|
79
|
+
else if (f.fm.chapter <= lastNum) problems.push(D('error', 'articleChapterIncrease', '§9C.1A', f.path, 1, { chapter: f.fm.chapter, before: lastNum }));
|
|
80
|
+
if (f.fm.chapter !== undefined) lastNum = f.fm.chapter;
|
|
81
|
+
if (!f.fm.title) problems.push(D('error', 'articleChapterTitle', '§9C.1A', f.path, 1, {}));
|
|
82
|
+
}
|
|
83
|
+
const o = KIND_ORDER[f.kind];
|
|
84
|
+
if (o < last) problems.push(D('error', 'articleChapterOrder', '§9C.1A', f.path, 1, { kind: f.kind }));
|
|
85
|
+
last = Math.max(last, o);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// lang・writing-mode・bibliography:本文の言語は metadata.lang(§9C.2)。章のファイルどうしで同じ
|
|
89
|
+
const deckLang = opts.lang || '';
|
|
90
|
+
for (const f of files) {
|
|
91
|
+
if (f.fm.lang !== undefined && deckLang && f.fm.lang.toLowerCase() !== deckLang.toLowerCase()) problems.push(D('error', 'articleLang', '§9C.2', f.path, 1, { lang: f.fm.lang, deck: deckLang }));
|
|
92
|
+
if (f.fm.bibliography !== undefined && f.fm.bibliography !== index.references) problems.push(D('error', 'articleBibliography', '§9C.2', f.path, 1, { value: f.fm.bibliography, references: index.references || null }));
|
|
93
|
+
}
|
|
94
|
+
if (files.length > 1) {
|
|
95
|
+
for (const m of ['lang', 'writing-mode', 'bibliography']) {
|
|
96
|
+
const vals = new Set(files.map((f) => (f.fm[m] === undefined ? '' : String(f.fm[m]))));
|
|
97
|
+
if (vals.size > 1) problems.push(D('error', 'articleChapterDiffer', '§9C.2', null, null, { member: m, values: [...vals].map((v) => v || '(none)') }));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const writingMode = (files.find((f) => f.fm['writing-mode']) || { fm: { 'writing-mode': 'horizontal-tb' } }).fm['writing-mode'];
|
|
101
|
+
return { index, files, problems, lang: deckLang || (files.find((f) => f.fm.lang) || { fm: {} }).fm.lang || '', writingMode };
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// 文書全体の点検(§9C.8)。ctx(どれも任意。ないものは見ない):
|
|
105
|
+
// slideIds:スライドの id の Set(名前の重なり・ステップへのリンクの行き先)。otherIds:デッキのほかの id(名前の重なり)
|
|
106
|
+
// resolveStep(slideKey, stepKey):ステップがあれば null、なければ {why: 'slide'|'not-id'|'step'|'concl', max?}(スライドがないときは slideIds だけで見る)
|
|
107
|
+
// dataArticle:[{slide, ids: [...]}](スライドの data-article)
|
|
108
|
+
// references:引用の鍵の Set(references.json の id)。null は「文献のファイルがない」、undefined は見ない
|
|
109
|
+
// exists(path):画像が作業フォルダにあるか
|
|
110
|
+
// citations:metadata.citations(egatari.json。§9C.4。undefined なら書式と一覧の決まりは見ない。null は「書いていない」)
|
|
111
|
+
export function validateArticle(article, ctx = {}) {
|
|
112
|
+
const problems = [];
|
|
113
|
+
const labels = new Map(); // 小文字にした名前 → {label, file, line, type, kind}
|
|
114
|
+
const sections = new Map(); // 節の id → {file, line}
|
|
115
|
+
const exercises = new Set(), solutions = new Map();
|
|
116
|
+
const glossaryTerms = new Set();
|
|
117
|
+
let glossaryAt = null;
|
|
118
|
+
const lineOf = (f, n) => (n && n.position ? n.position.start.line + (f.lineOffset || 0) : null);
|
|
119
|
+
// 行の差(前付け)を木から求められないので、readArticle の parse の結果に合わせて保つ
|
|
120
|
+
for (const f of article.files) if (f.lineOffset === undefined) f.lineOffset = frontLines(f.source);
|
|
121
|
+
// スライドの id とデッキのほかの id(注目の演出の目印など):本文の名前と同じ名前空間(§9C.3)
|
|
122
|
+
const others = new Set([...(ctx.slideIds || []), ...(ctx.otherIds || [])].map((x) => String(x).toLowerCase()));
|
|
123
|
+
// 1 回目:名前・節・問・用語集
|
|
124
|
+
for (const f of article.files) {
|
|
125
|
+
visit(f.tree, (n) => {
|
|
126
|
+
if (n.label && ['heading', 'math', 'container', 'aside', 'proof', 'exercise', 'solution'].includes(n.type) && !(n.type === 'exercise' && n.hidden)) {
|
|
127
|
+
const k = String(n.label).toLowerCase();
|
|
128
|
+
const at = { label: String(n.label), file: f.path, line: lineOf(f, n), type: n.type };
|
|
129
|
+
if (labels.has(k)) { const o = labels.get(k); problems.push(D('error', 'articleLabelDuplicate', '§9C.3', f.path, at.line, { label: at.label, other: o.file, otherLine: o.line })); }
|
|
130
|
+
else labels.set(k, at);
|
|
131
|
+
if (others.has(k)) problems.push(D('error', 'articleLabelSlideId', '§9C.3', f.path, at.line, { label: at.label }));
|
|
132
|
+
if (n.type === 'heading' && n.depth === 2) sections.set(String(n.label), { file: f.path, line: at.line, heading: plain(n), kind: f.kind });
|
|
133
|
+
if (n.type === 'exercise') exercises.add(k);
|
|
134
|
+
}
|
|
135
|
+
if (n.type === 'glossary') {
|
|
136
|
+
if (glossaryAt) problems.push(D('error', 'articleGlossary', '§9C.2', f.path, lineOf(f, n), { why: 'second', other: glossaryAt }));
|
|
137
|
+
else glossaryAt = f.path;
|
|
138
|
+
visit(n, (d) => { if (d.type === 'definitionTerm') glossaryTerms.add(plain(d).trim()); });
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
// 2 回目:参照
|
|
143
|
+
const linkedSections = new Set();
|
|
144
|
+
const cited = new Set();
|
|
145
|
+
for (const f of article.files) {
|
|
146
|
+
let section = null;
|
|
147
|
+
for (const top of f.tree.children || []) {
|
|
148
|
+
if (top.type === 'heading' && top.depth === 2) section = top.label ? String(top.label) : null;
|
|
149
|
+
visit(top, (n, parents) => {
|
|
150
|
+
const line = lineOf(f, n);
|
|
151
|
+
if (n.type === 'link' && String(n.url || '').startsWith('#')) {
|
|
152
|
+
const target = String(n.url).slice(1);
|
|
153
|
+
if (!labels.has(target.toLowerCase())) problems.push(D('error', 'articleXref', '§9C.8', f.path, line, { label: target }));
|
|
154
|
+
}
|
|
155
|
+
if (n.type === 'crossReference' && String(n.identifier || '').startsWith('term-') && !parents.some((p) => p.type === 'admonitionTitle')) {
|
|
156
|
+
const term = String(n.label || '').trim();
|
|
157
|
+
if (!glossaryTerms.has(term)) problems.push(D('error', 'articleTerm', '§9C.8', f.path, line, { term, glossary: !!glossaryAt }));
|
|
158
|
+
}
|
|
159
|
+
if (n.type === 'solution') {
|
|
160
|
+
const t = n.children && n.children[0] && n.children[0].type === 'admonitionTitle' ? n.children[0].children.find((c) => c.type === 'crossReference') : null;
|
|
161
|
+
const target = t ? String(t.label || t.identifier || '') : '';
|
|
162
|
+
const k = target.toLowerCase();
|
|
163
|
+
if (!labels.has(k)) problems.push(D('error', 'articleSolution', '§9C.8', f.path, line, { label: target, why: 'missing' }));
|
|
164
|
+
else if (!exercises.has(k)) problems.push(D('error', 'articleSolution', '§9C.8', f.path, line, { label: target, why: 'not-exercise' }));
|
|
165
|
+
else if (solutions.has(k)) problems.push(D('error', 'articleSolution', '§9C.8', f.path, line, { label: target, why: 'twice', other: solutions.get(k) }));
|
|
166
|
+
else solutions.set(k, `${f.path}:${line}`);
|
|
167
|
+
}
|
|
168
|
+
if (n.type === 'mystRole' && n.name === 'step') {
|
|
169
|
+
const s = parseStep(n.value);
|
|
170
|
+
if (s && section) { linkedSections.add(section); }
|
|
171
|
+
if (s && ctx.slideIds) {
|
|
172
|
+
const r = ctx.resolveStep ? ctx.resolveStep(s.slideKey, s.stepKey) : (ctx.slideIds.has(s.slideKey) ? null : { why: 'slide' });
|
|
173
|
+
if (r) problems.push(D('error', 'articleStep', '§9C.8', f.path, line, { value: `${s.slideKey}:${s.stepKey}`, ...r }));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if (n.type === 'cite') cited.add(String(n.label || n.identifier || ''));
|
|
177
|
+
if (n.type === 'cite' && ctx.references !== undefined) {
|
|
178
|
+
const key = String(n.label || n.identifier || '');
|
|
179
|
+
if (ctx.references === null) problems.push(D('error', 'articleCite', '§9C.8', f.path, line, { key, why: 'no-references' }));
|
|
180
|
+
else if (!ctx.references.has(key)) problems.push(D('error', 'articleCite', '§9C.8', f.path, line, { key, why: 'missing' }));
|
|
181
|
+
}
|
|
182
|
+
if (n.type === 'image' && ctx.exists && !ctx.exists(String(n.url || ''))) problems.push(D('error', 'articleImage', '§9C.8', f.path, line, { path: String(n.url || '') }));
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
// 引用の書式と一覧(§9C.4・§9C.8 の 7):ない書式は既定で組んで警告、list: chapter は chapters のときだけ。引いていない文献は警告(§9C.4)
|
|
187
|
+
if (ctx.citations !== undefined) for (const p of citationSettings(ctx.citations === null ? undefined : ctx.citations, { book: !!(article.index && article.index.chapters) }).problems) problems.push({ ...p, file: 'egatari.json' });
|
|
188
|
+
if (ctx.references) { const un = [...ctx.references].filter((k) => !cited.has(k)); if (un.length) problems.push(D('warn', 'articleUncited', '§9C.4', article.index && article.index.references || 'references.json', null, { keys: un.slice(0, 20), count: un.length })); }
|
|
189
|
+
// スライドの data-article(§9C.5・§9C.8 の 4)
|
|
190
|
+
for (const d of ctx.dataArticle || []) for (const id of d.ids) {
|
|
191
|
+
if (!sections.has(id)) problems.push(D('error', 'articleDataArticle', '§9C.8', null, null, { slide: d.slide, section: id }));
|
|
192
|
+
else linkedSections.add(id);
|
|
193
|
+
}
|
|
194
|
+
// どのスライドにもつながらない節(§9C.8 の SHOULD。スライドがあるときだけ)
|
|
195
|
+
// kind: chapter のファイルの節だけ(前書き・付録・後書きはスライドを持たないのが普通。§9C.8)
|
|
196
|
+
if (ctx.slideIds && ctx.slideIds.size) for (const [id, s] of sections) if (s.kind === 'chapter' && !linkedSections.has(id)) problems.push(D('warn', 'articleSectionUnlinked', '§9C.8', s.file, s.line, { section: id, heading: s.heading.slice(0, 40) }));
|
|
197
|
+
return { problems, labels, sections };
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// 再生器でステップへのリンクの行き先を確かめた結果("<slideKey>:<stepKey>" → DECK.resolveFragment の {error, max} か {legacy, id}。
|
|
201
|
+
// kit/article-steps.mjs の STEP_PROBE)から、validateArticle の resolveStep を作る。check と 1 ファイルへの書き出しが同じものを使う(§9C.8 の 1)
|
|
202
|
+
export const STEP_PROBE = (ls) => Object.fromEntries(ls.map((f) => { const r = DECK.resolveFragment(f); return [f, r.error ? { error: r.error, max: r.max } : { legacy: !!r.legacy, id: r.id }]; })); // eslint-disable-line no-undef
|
|
203
|
+
export function stepResolver(res) {
|
|
204
|
+
return (s, k) => {
|
|
205
|
+
const r = res[`${s}:${k}`];
|
|
206
|
+
if (!r) return null;
|
|
207
|
+
if (r.error === 'unknown slide' || r.error === 'slide number out of range') return { why: 'slide' };
|
|
208
|
+
if (r.error === 'no concl step') return { why: 'concl' };
|
|
209
|
+
if (r.error) return { why: 'step', ...(Number.isInteger(r.max) ? { max: r.max } : {}) };
|
|
210
|
+
return r.legacy || !r.id ? { why: 'not-id' } : null;
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// {step}`s-k3f9q2:3` / {step}`字 <s-k3f9q2:3>` → {text, slideKey, stepKey}(書き方が違えば null)
|
|
215
|
+
export function parseStep(value) {
|
|
216
|
+
const v = String(value || '').trim();
|
|
217
|
+
let m = v.match(/^([A-Za-z][A-Za-z0-9_-]{0,63}):(0|[1-9][0-9]{0,2}|concl)$/);
|
|
218
|
+
if (m) return { text: null, slideKey: m[1], stepKey: m[2] };
|
|
219
|
+
m = v.match(/^([\s\S]*?\S)\s*<([A-Za-z][A-Za-z0-9_-]{0,63}):(0|[1-9][0-9]{0,2}|concl)>$/);
|
|
220
|
+
return m ? { text: m[1], slideKey: m[2], stepKey: m[3] } : null;
|
|
221
|
+
}
|
|
222
|
+
// references.json(CSL-JSON の配列)の鍵と項目。読めなければ {keys: 空, items: [], problem}。
|
|
223
|
+
// 項目の id は重ならず、鍵の書式(§9C.4)に合うこと(合わないものは誤り。組むときは使わない)
|
|
224
|
+
export function referenceKeys(text, file = REFERENCES_FILE) {
|
|
225
|
+
let j;
|
|
226
|
+
try { j = JSON.parse(text); } catch (e) { return { keys: new Set(), items: [], problem: D('error', 'articleReferences', '§9C.4', file, null, { why: 'not JSON' }) }; }
|
|
227
|
+
if (!Array.isArray(j)) return { keys: new Set(), items: [], problem: D('error', 'articleReferences', '§9C.4', file, null, { why: 'not an array' }) };
|
|
228
|
+
const keys = new Set(), items = [], bad = [];
|
|
229
|
+
for (const it of j) {
|
|
230
|
+
if (!it || typeof it !== 'object' || Array.isArray(it) || typeof it.id !== 'string') { bad.push('(no id)'); continue; }
|
|
231
|
+
if (!CITE_KEY_RE.test(it.id) || it.id.length > 64) { bad.push(it.id.slice(0, 40)); continue; }
|
|
232
|
+
if (keys.has(it.id)) { bad.push(`${it.id} (twice)`); continue; }
|
|
233
|
+
keys.add(it.id); items.push(it);
|
|
234
|
+
}
|
|
235
|
+
return { keys, items, problem: bad.length ? D('error', 'articleReferences', '§9C.4', file, null, { why: `bad ids: ${bad.slice(0, 5).join(', ')}` }) : null };
|
|
236
|
+
}
|
|
237
|
+
// スライドの原稿(deck.html)の data-article="sec-… sec-…"(§9C.5)。返すもの:[{slide, ids}]
|
|
238
|
+
export function dataArticleOf(slides) {
|
|
239
|
+
return slides.filter((s) => s.dataArticle).map((s) => ({ slide: s.id || s.key, ids: String(s.dataArticle).trim().split(/\s+/).filter(Boolean) }));
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export const letterOf = (i) => (i < 26 ? String.fromCharCode(65 + i) : letterOf(Math.floor(i / 26) - 1) + String.fromCharCode(65 + (i % 26)));
|
|
243
|
+
function frontLines(src) { const m = String(src || '').replace(/^/, '').replace(/\r\n?/g, '\n').match(/^---\n[\s\S]*?\n---(?:\n|$)/); return m ? m[0].split('\n').length - (m[0].endsWith('\n') ? 1 : 0) : 0; }
|
|
244
|
+
function D(sev, code, spec, file, line, data = {}) { return { sev, code, spec, file, line: line || null, data }; }
|
|
245
|
+
|
|
246
|
+
// 節の id を道具が付ける(§9C.3:id のない ## の見出しの前の行に (sec-xxxxxx)= を足す。作者・AI には書かせない)。
|
|
247
|
+
// taken:避ける id(スライドの id・ほかの本文の名前)。返すもの:{out, added: [{line, id, heading}]}。改行(CRLF / LF)はそのまま
|
|
248
|
+
export function assignSectionIds(text, taken = new Set(), rand = (n) => globalThis.crypto.getRandomValues(new Uint8Array(n))) {
|
|
249
|
+
const B32 = 'abcdefghijklmnopqrstuvwxyz234567';
|
|
250
|
+
const eol = text.includes('\r\n') ? '\r\n' : '\n';
|
|
251
|
+
const r = parseArticleText(text);
|
|
252
|
+
const used = new Set([...taken].map((x) => String(x).toLowerCase()));
|
|
253
|
+
visit(r.tree, (n) => { if (n.label) used.add(String(n.label).toLowerCase()); });
|
|
254
|
+
const lines = text.split(/\r?\n/);
|
|
255
|
+
const added = [];
|
|
256
|
+
for (const n of r.tree.children || []) {
|
|
257
|
+
if (n.type !== 'heading' || n.depth !== 2 || n.label || !n.position) continue;
|
|
258
|
+
let id;
|
|
259
|
+
for (let k = 0; k < 1000 && (!id || used.has(id)); k++) id = 'sec-' + [...rand(6)].map((b) => B32[b & 31]).join('');
|
|
260
|
+
used.add(id);
|
|
261
|
+
added.push({ line: n.position.start.line + r.lineOffset, id, heading: plain(n) });
|
|
262
|
+
}
|
|
263
|
+
// 下から足す(行の番号がずれないように)
|
|
264
|
+
for (const a of [...added].reverse()) lines.splice(a.line - 1, 0, `(${a.id})=`);
|
|
265
|
+
return { out: added.length ? lines.join(eol) : text, added };
|
|
266
|
+
}
|
package/kit/core/build-core.mjs
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
// 書式・記法は kit/build.mjs の頭の注釈、約束事は docs/contract.md
|
|
19
19
|
import { parse } from 'parse5';
|
|
20
20
|
import { short } from './sha1.mjs';
|
|
21
|
+
import { innerJa } from './quote-ja.mjs';
|
|
21
22
|
import { applyMetrics, DEFAULT_METRICS } from './theme-metrics.mjs';
|
|
22
23
|
import { RUNTIME_FORMAT, FORMAT } from './format.mjs';
|
|
23
24
|
import { runtimeAttachTypes } from './attach-content.mjs';
|
|
@@ -27,11 +28,14 @@ import { faviconLink, wantsFavicon } from './favicon.mjs';
|
|
|
27
28
|
import { KATEX_RANGES } from './katex-ranges.mjs';
|
|
28
29
|
import { readLock, vendorDir, resolveComponent, pickVersion, configPins, yankedInfo } from './components-lock.mjs';
|
|
29
30
|
import { readLock2, pickCatalogue, resolveParts, readDefineMeta, metaMismatch, renderFields, subsetCode, lessonText, deckElements, catalogueHint, notInCatalogueError } from './parts2.mjs';
|
|
30
|
-
import { readThemesLock, themesVendorDir, pickThemeVersion, configThemePins, themeUpdate, themePinnedWarning, excludedFromThemeHash } from './themes-lock.mjs';
|
|
31
|
+
import { readThemesLock, themesVendorDir, pickThemeVersion, configThemePins, themeUpdate, themePinnedWarning, excludedFromThemeHash, CSS_URL_RE, themeUrlRel } from './themes-lock.mjs';
|
|
31
32
|
import { documentReasons, SCRIPTING } from './code-scan.mjs';
|
|
32
33
|
import { NotRegularFileError, ReadOverError, utf8Length } from './bounded-read-core.mjs';
|
|
33
34
|
import { normalizeKey, parseNarration, narrationMap, marksMap, MARK_EFFECTS, isSlideId, headingText } from './narration-core.mjs';
|
|
34
35
|
|
|
36
|
+
// 設定のファイルの metadata から deck-meta に写す権利の項目(format spec §4 の deck-meta の表。schema/deck-meta.schema.json)。1 ファイル(portable.mjs)も作業フォルダの組み立ても同じものを写す
|
|
37
|
+
export const DECK_META_RIGHTS = ['license', 'copyright', 'attribution', 'creators'];
|
|
38
|
+
|
|
35
39
|
// ---------------------------------------------------------------- 原稿の解析:スライドの鍵と、編集用の元の位置
|
|
36
40
|
const EDITABLE = new Set(['h1', 'h2', 'p', 'li', 'td', 'th']);
|
|
37
41
|
const EDITABLE_CLASS = ['big', 'note', 'sub', 'venue', 'au', 'thm', 'box', 'lead'];
|
|
@@ -131,7 +135,7 @@ export function analyzeSlideIds(src) {
|
|
|
131
135
|
const rule = id ? 'id' : dk ? 'data-key' : hk ? 'heading' : 'index';
|
|
132
136
|
// headingKey:見出しから作る旧来の鍵(id のあるスライドでも。書き出しが {#id} のない「## 見出し」をそのスライドに結ぶため)
|
|
133
137
|
slides.push({ index: slides.length, id: id === undefined ? null : id, key: id || dk || hk || `s${slides.length + 1}`, rule,
|
|
134
|
-
heading: h ? headingText(inner(src, h)) : '', headingKey: hk, dataKey: dk || null, line: lineOf(off), start: off });
|
|
138
|
+
heading: h ? headingText(inner(src, h)) : '', headingKey: hk, dataKey: dk || null, dataArticle: attr(n, 'data-article') || null, line: lineOf(off), start: off }); // dataArticle:本文の節(§9C.5)
|
|
135
139
|
return;
|
|
136
140
|
}
|
|
137
141
|
const id = attr(n, 'id');
|
|
@@ -489,7 +493,23 @@ function themeAssets(env, t, warn, depth = 0, ud = [], tctx = null) {
|
|
|
489
493
|
const tok = P.join(dir, 'tokens.css');
|
|
490
494
|
// resolveTheme が確かめたが、読む直前にもう一度(同じ根で)
|
|
491
495
|
if (!inRoot(tok)) { warn.push(`refused: テーマの tokens.css(${P.basename(dir)})が許した場所の外を指している(読まない)`); return { css: par ? par.css : '', logos, cfg, metrics, declared }; }
|
|
492
|
-
return { css: (par ? par.css + '\n' : '') + env.readText(tok), logos, cfg, metrics, declared };
|
|
496
|
+
return { css: (par ? par.css + '\n' : '') + themeCssUrls(env, env.readText(tok), dir, inRoot, warn), logos, cfg, metrics, declared };
|
|
497
|
+
}
|
|
498
|
+
// テーマの tokens.css の url(…)(直接でも --cover-bg: url(cover.png) のような変数でも):テーマのフォルダからの相対の参照を data: URI にする
|
|
499
|
+
// (書き出したどのファイルでも画像が出る。組み立てが読むので、テーマの sha256・持ち運べる 1 ファイルの themes/<名前>/ に入る。format spec §6)。
|
|
500
|
+
// data:・http(s):・絶対のパス・#断片は触らない。ロゴと同じ根の決まり(テーマのフォルダの外は読まず、知らせて元のまま)。読みは env(上限つき)を通す
|
|
501
|
+
function themeCssUrls(env, text, dir, inRoot, warn) {
|
|
502
|
+
const P = env.path, name = P.basename(dir);
|
|
503
|
+
return text.replace(CSS_URL_RE, (m, q, ref) => {
|
|
504
|
+
if (ref === undefined) return m; // コメント
|
|
505
|
+
const rel = themeUrlRel(ref), r = String(ref).trim();
|
|
506
|
+
if (!rel) return m;
|
|
507
|
+
const f = P.resolve(dir, rel);
|
|
508
|
+
if (!env.exists(f) || !env.isFile(f)) { warn.push(`missing: テーマ「${name}」の tokens.css の url(${r}) が見つからない(元のまま残す)`); return m; }
|
|
509
|
+
if (!inRoot(f)) { warn.push(`refused: テーマ「${name}」の tokens.css の url(${r}) が許した場所の外にある(読まない)`); return m; }
|
|
510
|
+
if (excludedFromThemeHash(P.relative(dir, f).split(P.sep).join('/'))) { warn.push(`theme: 「${r}」は文書(README・LICENSE・.md)なので埋め込まない(読まない)`); return m; }
|
|
511
|
+
return `url("${dataUri(env, f)}")`;
|
|
512
|
+
});
|
|
493
513
|
}
|
|
494
514
|
export const MIME = { png: 'image/png', jpg: 'image/jpeg', jpeg: 'image/jpeg', gif: 'image/gif', svg: 'image/svg+xml', webp: 'image/webp', avif: 'image/avif', ico: 'image/x-icon',
|
|
495
515
|
wav: 'audio/wav', mp3: 'audio/mpeg', m4a: 'audio/mp4', ogg: 'audio/ogg', opus: 'audio/ogg', mp4: 'video/mp4', webm: 'video/webm', mov: 'video/quicktime',
|
|
@@ -961,7 +981,7 @@ export function build(env0, srcPath, opts = {}) {
|
|
|
961
981
|
for (const w of segs.warnings || []) warn.push(`narration: ${w}`);
|
|
962
982
|
const keySet = new Set(slides.map((s) => s.key));
|
|
963
983
|
// 鍵がどのスライドにも合わない節(## 見出し)。段階のない節も知らせる
|
|
964
|
-
for (const s of segs.sections || segs) if (!keySet.has(s.key ?? s.slideKey)) warn.push(`narration: スライドが見つからない「## ${s.heading || s.key || s.slideKey}」(鍵「${s.key ?? s.slideKey}」、narration.md ${s.line} 行目)`);
|
|
984
|
+
for (const s of segs.sections || segs) if (!keySet.has(s.key ?? s.slideKey)) warn.push(`narration: スライドが見つからない「## ${innerJa(s.heading || s.key || s.slideKey)}」(鍵「${s.key ?? s.slideKey}」、narration.md ${s.line} 行目)`);
|
|
965
985
|
const narration = narrationMap(segs, !!opts.dev);
|
|
966
986
|
const marks = marksMap(segs);
|
|
967
987
|
checkMarks(html, segs, warn);
|
|
@@ -1012,8 +1032,11 @@ export function build(env0, srcPath, opts = {}) {
|
|
|
1012
1032
|
// 実行系(deck.js など)の UI の文字列は全部は入れない(英語のデッキで和文の分割ファイルが増える)。スライドに出る字は RUNTIME_GLYPHS で足す
|
|
1013
1033
|
const lang = html.match(/<html[^>]*\slang="([^"]*)"/)?.[1] || '';
|
|
1014
1034
|
// 字の絞り込みは見える字だけ(ttsParts の読みは画面に出ない)
|
|
1015
|
-
|
|
1016
|
-
|
|
1035
|
+
// opts.articleHtml:再生器の本の窓に出す本文(format spec §9C.6 の <article id="egatari-article">。入れるのは呼び手で、runtimePrefix の中)。
|
|
1036
|
+
// その字も絞り込みに数え、縦書き(明朝で組む)なら明朝の字を入れる。opts.articleCss はその体裁(kit/core/article-render.mjs の ARTICLE_CSS)
|
|
1037
|
+
const articleHtml = opts.articleHtml || '';
|
|
1038
|
+
const textForFont = glyphText(html + articleHtml, narrationMap(segs, !!opts.dev, false), compJs, lang);
|
|
1039
|
+
const fonts = fontCss(env, textForFont, opts.subset !== false && !opts.dev, lang, usesMincho(html, theme.css, compJs) || /class="egatari-vertical"/.test(articleHtml), warn,
|
|
1017
1040
|
{ chosen: chosenFonts(theme.css + '\n' + deckCss(html), theme.cfg && theme.cfg.fonts), italic: italicText(html, compJs, isJapanese(lang)), body: bodyFont(theme.css, theme.cfg && theme.cfg.fonts) });
|
|
1018
1041
|
// 信頼する部分(字・テーマ・実行系の CSS と、実行系のスクリプト)の中身は、それを入れた要素から抜け出せないようにする(</style・</script・<!--)
|
|
1019
1042
|
const styleSafe = (t) => String(t).replace(/<\/style/gi, '<\\/style').replace(/<!--/g, '<\\!--');
|
|
@@ -1021,8 +1044,23 @@ export function build(env0, srcPath, opts = {}) {
|
|
|
1021
1044
|
// 読む順:字 → KaTeX → 実行系(base.css)→ 体裁(layouts.css)→ テーマ(tokens.css。extends の親から順に)→ 英語など(latin.css)。
|
|
1022
1045
|
// テーマは体裁の後に読むので、同じ詳細度の規則ならテーマが勝つ(表紙の題名の位置や本文の欄の余白などをテーマが替えられる。html を前に付けて詳細度で勝たなくてよい)。
|
|
1023
1046
|
// latin.css はテーマの後のまま(日本語以外のデッキの字の既定。docs/reference.md「Themes」)
|
|
1024
|
-
const headCss = `<style id="deck-base">\n${styleSafe(`${fonts.css}${kcss}\n${read(KIT, 'base.css')}\n${read(KIT, 'layouts.css')}\n${theme.css}\n${isJapanese(lang) ? '' : read(KIT, 'latin.css')}`)}</style>`;
|
|
1047
|
+
const headCss = `<style id="deck-base">\n${styleSafe(`${fonts.css}${kcss}\n${read(KIT, 'base.css')}\n${read(KIT, 'layouts.css')}\n${opts.articleCss || ''}\n${theme.css}\n${isJapanese(lang) ? '' : read(KIT, 'latin.css')}`)}</style>`;
|
|
1025
1048
|
if (!/id="bar"/.test(html)) html = html.replace(/<\/body>/, '<div id="bar"></div><div id="jump"></div>\n</body>');
|
|
1049
|
+
// 作業フォルダの組み立ても、設定のファイルの metadata.completion を deck-meta に写す(format spec §9.2。再生器の記録が終えた判定を読む。1 ファイルと同じ)。
|
|
1050
|
+
// 権利の表示と作成者(license・copyright・attribution・creators。§4・§7.3)も写す:再生器のファイルの情報が deck-meta から出す。形の合わない値は写さない
|
|
1051
|
+
const folderCompletion = () => {
|
|
1052
|
+
const cfg = P.join(deckDir, FORMAT.CONFIG_FILE);
|
|
1053
|
+
if (!env.exists(cfg) || !inDeck(cfg)) return {};
|
|
1054
|
+
let c = null; try { c = JSON.parse(env.readText(cfg)); } catch { return {}; }
|
|
1055
|
+
const md = c && typeof c === 'object' && c.metadata && typeof c.metadata === 'object' && !Array.isArray(c.metadata) ? c.metadata : null;
|
|
1056
|
+
if (!md) return {};
|
|
1057
|
+
const m = md.completion, out = m && typeof m === 'object' && !Array.isArray(m) ? { completion: m } : {};
|
|
1058
|
+
for (const k of DECK_META_RIGHTS) {
|
|
1059
|
+
const v = md[k];
|
|
1060
|
+
if (k === 'creators' ? Array.isArray(v) && v.every((x) => typeof x === 'string') : typeof v === 'string') out[k] = k === 'creators' ? [...v] : v;
|
|
1061
|
+
}
|
|
1062
|
+
return out;
|
|
1063
|
+
};
|
|
1026
1064
|
// 2.0 だけの教材は再生器の 1.x 用の土台と公開の補助(DECK.define・DECK.MotionElement・DECK.el …)を外す。ただし作業フォルダの 1.x の部品(legacy)か、
|
|
1027
1065
|
// 原稿自身の <script> がその補助を使うなら残す("componentsCatalogue": "2" でも原稿の DECK.define が黙って動かなくならないように)
|
|
1028
1066
|
const leanPlayer = !!parts2 && !parts2.legacy.length && !deckUse.legacyApi;
|
|
@@ -1030,13 +1068,15 @@ export function build(env0, srcPath, opts = {}) {
|
|
|
1030
1068
|
// 通常の build の原稿の控え。持ち運べる形式は索引の archive にだけ原稿を持つ。
|
|
1031
1069
|
!opts.runtimePrefix && narrSource.includes('{note:') ? j('studio-script-source', narrSource) : '',
|
|
1032
1070
|
j('deck-narration', narration), j('deck-marks', marks), j('deck-audio', audio), j('deck-timing', timing),
|
|
1033
|
-
j('deck-meta', opts.deckMeta || { version: env.version }),
|
|
1071
|
+
j('deck-meta', opts.deckMeta || { version: env.version, ...folderCompletion() }),
|
|
1034
1072
|
// マクロは原稿(macros.tex・<script type="text/x-tex-macros">)から来る。< を \u003c にして </script で抜けられないように
|
|
1035
1073
|
needKatexJs ? `<script>${scriptSafe(read(env.katexDir, 'katex.min.js'))}\nkatex.__macros=${JSON.stringify(macros).replace(/</g, '\\u003c')};</script>` : '',
|
|
1036
1074
|
// DECK.FORMAT:形式の識別子(kit/core/format.mjs。deck.js は形式の名前を書かずにここから読む)
|
|
1037
1075
|
`<script>\nwindow.DECK = window.DECK || {}; DECK.VIEWER_INPUT = ${JSON.stringify(viewerInputs)}; DECK.FORMAT = ${JSON.stringify(RUNTIME_FORMAT_ALL).replace(/</g, '\\u003c')};\n${leanPlayer ? '' : scriptSafe(read(KIT, 'shape.js'))}\n${Object.entries(RUNTIME_MODULES).map(([f, name]) => scriptSafe(classicModule(read(KIT, f), name))).join('\n')}\n${Object.entries(RUNTIME_NAMESPACES).map(([f, name]) => scriptSafe(classicNamespace(read(KIT, f), name))).join('\n')}\n${scriptSafe(leanPlayer ? playerWithoutPartBase(read(KIT, 'deck.js')) : read(KIT, 'deck.js'))}\n</script>`,
|
|
1038
1076
|
`<script>\n${scriptSafe(read(KIT, 'presenter.js'))}\n</script>`,
|
|
1039
1077
|
`<script>\n${scriptSafe(read(KIT, 'tools.js'))}\n</script>`,
|
|
1078
|
+
`<script>\n${scriptSafe(read(KIT, 'panes.js'))}\n</script>`,
|
|
1079
|
+
`<script>\n${scriptSafe(read(KIT, 'track.js'))}\n</script>`,
|
|
1040
1080
|
compJs ? `<script>${scriptSafe(compJs)}\n</script>` : '',
|
|
1041
1081
|
].filter(Boolean);
|
|
1042
1082
|
const scripts = scriptList.join('\n');
|
|
@@ -1121,7 +1161,7 @@ function checkMarks(html, segs, warn) {
|
|
|
1121
1161
|
}
|
|
1122
1162
|
// KaTeX の CSS(字は data: URI で埋め込む)。env ごとに 1 回だけ作る
|
|
1123
1163
|
const _kcss = new WeakMap();
|
|
1124
|
-
function katexCss(env) {
|
|
1164
|
+
export function katexCss(env) { // 本文の頁(kit/article.mjs)も使う
|
|
1125
1165
|
if (_kcss.has(env)) return _kcss.get(env);
|
|
1126
1166
|
const P = env.path, kdir = env.katexDir;
|
|
1127
1167
|
let css = env.readText(P.join(kdir, 'katex.min.css'));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// citeproc-js(npm citeproc。CPAL-1.0 で使う)の Exhibit B の帰属の表示(NOTICE)。citeproc で本文の引用を組んだとき、
|
|
2
|
+
// 使う人が見るところ(組み立て・書き出しのコマンドの出力、将来の編集アプリ)に 1 行出す。どの言語でもこの字のまま(本文の教材・1 ファイルには入れない)
|
|
3
|
+
export const CITEPROC_CREDIT = 'Citations formatted by citeproc-js — (c) Frank Bennett — citeproc-js implements the Citation Style Language — https://citationstyles.org/';
|
package/kit/core/colab-core.mjs
CHANGED
|
@@ -44,7 +44,7 @@ export const COLAB_NOTE_MARK = 'colab-verified'; // docs では <!-- colab-ver
|
|
|
44
44
|
export const JOB = Object.freeze({ tag: 'tts-job', recordsTag: 'tts-records', v: 1 });
|
|
45
45
|
export const COLAB = Object.freeze({
|
|
46
46
|
repo: 'egatari/egatari-studio', notebook: 'colab/egatari-tts.ipynb',
|
|
47
|
-
ref: 'v0.6.
|
|
47
|
+
ref: 'v0.6.5', // バッジの URL は版のタグに固定する(リリースの手順で替える。RELEASING.md)
|
|
48
48
|
pause: 0.35,
|
|
49
49
|
models: Object.freeze({ irodori: 'irodori-tts-500m-v3', kokoro: 'kokoro-82m-v1.0' }),
|
|
50
50
|
// 後処理の版(records の recipe.processing は PROCESSING に '+colab<ノートブックの版>' を付けたもの):ノートブック(colab/egatari_tts.py)の後処理は audio-core.mjs と同じ数。数を変えたら名前も変える
|
|
@@ -123,6 +123,24 @@ export function resolveComponent(P, root, lock, name, version) {
|
|
|
123
123
|
return P.join(vendorDir(P, root), name, version);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
// パーツライブラリ 2.x のカタログが指す写し(components2.lock.json の catalogues.<版>.content.<名前>:そのリリースの manifest の files と
|
|
127
|
+
// ちょうど同じバイトのフォルダの content hash)。部品庫は index.js が同じなら版を付け替えずに README・demo などを直すことがある(版を
|
|
128
|
+
// 上げるのは index.js が変わるときだけ)ので、パーツの版だけでは README・demo のバイトが決まらない。カタログ(どのリリースか)とパーツの
|
|
129
|
+
// 名前で引けば、そのリリースのバイトになる。index.js は同じ版ならどのカタログの写しでも同じ(components2-update が確かめる)。
|
|
130
|
+
// lock:components.lock.json、lock2:components2.lock.json、catalogue:カタログの版、version:省けばそのカタログのパーツの版
|
|
131
|
+
// カタログに content がない(古い固定)・版がカタログのものと違う(設定のファイルで固定した版)なら、版の写し(resolveComponent)に戻る
|
|
132
|
+
export function resolveCatalogueContent(P, root, lock, lock2, catalogue, name, version) {
|
|
133
|
+
const cat = isObj(lock2) && isObj(lock2.catalogues) && own(lock2.catalogues, catalogue) ? lock2.catalogues[catalogue] : null;
|
|
134
|
+
const v = version === undefined && cat && isObj(cat.parts) ? cat.parts[name] : version;
|
|
135
|
+
if (typeof v !== 'string') return null;
|
|
136
|
+
if (cat && isObj(cat.parts) && cat.parts[name] === v && isObj(cat.content) && own(cat.content, name)) {
|
|
137
|
+
if (!NAME_RE.test(name) || !VERSION_RE.test(v)) return null;
|
|
138
|
+
const hash = cat.content[name];
|
|
139
|
+
return typeof hash === 'string' && SHA_RE.test(hash) ? P.join(vendorDir(P, root), 'sha256', hash) : null;
|
|
140
|
+
}
|
|
141
|
+
return resolveComponent(P, root, lock, name, v);
|
|
142
|
+
}
|
|
143
|
+
|
|
126
144
|
// 使う版を決める:want(固定。opts.componentVersions や作業フォルダの設定のファイルの components)が手元にあればそれ、なければ既定の版。
|
|
127
145
|
// 返すもの:{version, note}(note は知らせ。固定した版が手元にないときなど)。部品が固定のファイルにないときは version: null
|
|
128
146
|
export function pickVersion(lock, name, want) {
|
package/kit/core/llm-fix.mjs
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
// deck・narration が合わせて limit(既定 40,000 字)を超えれば、問題のあるスライドだけ(id で)を載せ、そのスライドだけを返してもらう
|
|
14
14
|
import { sectionsOf, narrSections } from './llm-import.mjs';
|
|
15
15
|
import { cleanErrorText } from './error-text.mjs';
|
|
16
|
+
import { quoteJa } from './quote-ja.mjs';
|
|
16
17
|
import { commonBody, componentsIn, componentNotes } from './llm-pack.mjs';
|
|
17
18
|
import { DEFAULT_METRICS, limitsOf } from './theme-metrics.mjs';
|
|
18
19
|
|
|
@@ -73,7 +74,7 @@ const L = {
|
|
|
73
74
|
ask: '挙げた指摘だけを直してください。ほかは変えず、id="…" と {#…} はすべてそのまま残してください(R-noids)。Canvas・スライド作成・ファイルの機能は使わず、チャットの返事の本文に、ちょうど 2 つのコードの囲み ```deck.html と ```narration.md を書いてください(R-output)。',
|
|
74
75
|
askPartial: (n) => `デッキが長いので、問題のあるスライド ${n} 枚だけを下に載せています。返事は同じ 2 つの囲みで、deck.html の囲みにはそのスライドの <section> だけを(<html> なしで、id はそのまま)、narration.md の囲みにはその節だけを({#id} の見出しのまま)入れてください(R-output)。`,
|
|
75
76
|
problems: '指摘', rules: '規格', components: 'この教材で使っている部品(指示の説明)', files: '今のファイル', partialFiles: '問題のあるスライド(今のもの)',
|
|
76
|
-
where: (p) => (p.i === null || p.i === undefined ? 'デッキ全体' : `スライド ${p.i + 1}${p.id ? `(id ${p.id})` : ''}${p.title ?
|
|
77
|
+
where: (p) => (p.i === null || p.i === undefined ? 'デッキ全体' : `スライド ${p.i + 1}${p.id ? `(id ${p.id})` : ''}${p.title ? quoteJa(p.title) : ''}`),
|
|
77
78
|
sev: { error: 'エラー', warn: '警告' },
|
|
78
79
|
},
|
|
79
80
|
};
|
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
import { purposesTable } from './purposes.mjs';
|
|
15
15
|
|
|
16
16
|
// 指示の大きさの上限(KB = 1024 バイト。生成した指示で、頼みたいことは記入欄のまま。写す文に入る内容・場面の節は数えない)。
|
|
17
|
-
// free:無料のプラン。目安は Gemini の無料アカウント・教育用アカウント(32K
|
|
18
|
-
//
|
|
17
|
+
// free:無料のプラン。目安は Gemini の無料アカウント・教育用アカウント(32K トークン)。Gemini の count_tokens で測ると
|
|
18
|
+
// 1,000 トークン ≈ 3.2 KB なので、45 KB ≈ 14K トークン。32K の窓に、ふつうの返事(4K トークン ほど)と
|
|
19
|
+
// 修正のやりとり 2 回分(1.5K トークン ほど ずつ)を残せる(owner 決定、2026-11-03、backlog #169)。
|
|
20
|
+
// 標準の部品すべて(束なし)が収まること(越えたら npm run gen が止まる)。束を足して越えたら、新規作成のメーターが外す候補を出す(kit/core/new-deck.mjs)
|
|
19
21
|
// paid:有料のプラン。PAID_PACK_KB まで
|
|
20
22
|
export const PAID_PACK_KB = 120; // 有料のプランの上限(仮の値。変えるならここだけ)
|
|
21
|
-
export const FREE_PACK_KB =
|
|
23
|
+
export const FREE_PACK_KB = 45;
|
|
22
24
|
export const PACK_CAP_KB = Object.freeze({ free: FREE_PACK_KB, paid: PAID_PACK_KB });
|
|
23
25
|
|
|
24
26
|
// 標準の部品の段の名前(材料の部品の set)
|