egatari 0.6.14 → 0.6.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/CHANGELOG.md +62 -1
  2. package/README.ja.md +65 -64
  3. package/README.md +40 -39
  4. package/bin/egatari.mjs +3 -3
  5. package/components.lock.json +507 -153
  6. package/components2.lock.json +1710 -33
  7. package/kit/check-messages.mjs +105 -71
  8. package/kit/check.mjs +17 -11
  9. package/kit/core/article-messages.mjs +15 -15
  10. package/kit/core/article-render.mjs +1 -1
  11. package/kit/core/article-text.mjs +3 -1
  12. package/kit/core/build-core.mjs +23 -1
  13. package/kit/core/check-parity.mjs +2 -2
  14. package/kit/core/check-rules.mjs +12 -7
  15. package/kit/core/colab-core.mjs +2 -2
  16. package/kit/core/comment-core.mjs +6 -0
  17. package/kit/core/export-name.mjs +2 -2
  18. package/kit/core/geometry-check.mjs +363 -25
  19. package/kit/core/layout-scan.mjs +75 -5
  20. package/kit/core/live-policy.mjs +2 -2
  21. package/kit/core/live.mjs +2 -2
  22. package/kit/core/llm-fix.mjs +24 -13
  23. package/kit/core/llm-insert.mjs +11 -11
  24. package/kit/core/llm-outline.mjs +7 -7
  25. package/kit/core/llm-pack-assemble.mjs +5 -2
  26. package/kit/core/llm-pack-data.mjs +225 -39
  27. package/kit/core/llm-pack.mjs +3 -3
  28. package/kit/core/new-deck.mjs +17 -3
  29. package/kit/core/part-labels.mjs +6 -0
  30. package/kit/core/parts2.mjs +5 -5
  31. package/kit/core/player.mjs +18 -0
  32. package/kit/core/portable.mjs +26 -8
  33. package/kit/core/purposes.mjs +2 -2
  34. package/kit/core/ref-voice.mjs +1 -1
  35. package/kit/core/scorm.mjs +1 -1
  36. package/kit/core/sound-preferences.mjs +1 -1
  37. package/kit/core/theme-derive.mjs +209 -0
  38. package/kit/core/themes-list.mjs +1 -1
  39. package/kit/core/themes-lock.mjs +1 -1
  40. package/kit/core/tier-a.mjs +20 -8
  41. package/kit/deck.js +7 -4
  42. package/kit/instruction-version.json +1 -1
  43. package/kit/live.js +20 -20
  44. package/kit/player.json +1 -1
  45. package/kit/player.lock.json +2 -2
  46. package/kit/presenter.js +5 -3
  47. package/kit/templates/new-deck.mjs +6 -6
  48. package/kit/tools.js +13 -6
  49. package/kit/track.js +1 -1
  50. package/package.json +4 -2
  51. package/server/dev.mjs +3 -2
  52. package/server/editor-ui.js +28 -20
  53. package/server/hints.js +22 -2
  54. package/tts/yomi.yaml +8 -0
  55. package/vendor/components/CATALOG.md +21 -14
  56. package/vendor/components/sha256/000cc8b85d22854d93587d53fe07585e0d9f0abee86d863c5ed1f6c53967912b/README.en.md +40 -0
  57. package/vendor/components/sha256/000cc8b85d22854d93587d53fe07585e0d9f0abee86d863c5ed1f6c53967912b/index.js +408 -0
  58. package/vendor/components/sha256/0396a1895978803ae342b7f598f187b17ead47800e8f8317a5cb041111349813/index.js +278 -0
  59. package/vendor/components/sha256/07b8bfd9240585ee76082632c6f9483017d46ad3c74e509e715c27294970606c/README.en.md +26 -0
  60. package/vendor/components/sha256/07b8bfd9240585ee76082632c6f9483017d46ad3c74e509e715c27294970606c/index.js +322 -0
  61. package/vendor/components/sha256/08778858e2fb42765077b50e08f848089b1d11ea394909a4f611557b94b3acf2/README.en.md +54 -0
  62. package/vendor/components/sha256/08778858e2fb42765077b50e08f848089b1d11ea394909a4f611557b94b3acf2/index.js +470 -0
  63. package/vendor/components/sha256/0a08eb254e59cb306adb32c940ffe54e88efa3c9b7ef05ee021c38995996e742/README.en.md +18 -0
  64. package/vendor/components/sha256/0a08eb254e59cb306adb32c940ffe54e88efa3c9b7ef05ee021c38995996e742/index.js +279 -0
  65. package/vendor/components/sha256/1001b3cfcd3fbc34370accbb37aa550c8cadbb54bf8e8155d417219de3797be9/README.en.md +31 -0
  66. package/vendor/components/sha256/1001b3cfcd3fbc34370accbb37aa550c8cadbb54bf8e8155d417219de3797be9/index.js +267 -0
  67. package/vendor/components/sha256/109c302247e0c62720872be35392a73bea72804b0ed421ef8ced3f030f72e537/README.en.md +53 -0
  68. package/vendor/components/sha256/109c302247e0c62720872be35392a73bea72804b0ed421ef8ced3f030f72e537/index.js +171 -0
  69. package/vendor/components/sha256/1117758820dc561f41cf9d1cc0bab8cf3173cde7771ac10a12b94c96007c0f55/index.js +268 -0
  70. package/vendor/components/sha256/137017ad452afe209bdff81bc02ffae99c6b60a1c4aed2383515974f65511ff2/index.js +205 -0
  71. package/vendor/components/sha256/1a1471ba5f68e54304825a64e736afeda421e3763cdcbcdab2e45509562a0291/index.js +607 -0
  72. package/vendor/components/sha256/1b15fcc12b2fa43821e6299e87aae31aa69dbbc5a0d1b80088a5d7c5f8b8f7f5/index.js +429 -0
  73. package/vendor/components/sha256/1cc1732d052e58f7913ee50c0fc834d896db6b00ba779164de11b442347863db/README.en.md +23 -0
  74. package/vendor/components/sha256/1cc1732d052e58f7913ee50c0fc834d896db6b00ba779164de11b442347863db/index.js +147 -0
  75. package/vendor/components/sha256/21c099461befc0d382ddfe982f2a6cd8eeb6dd731252164ac619525e4bacdf0d/index.js +242 -0
  76. package/vendor/components/sha256/2352e0e22460f4a3c46dca6cef27cd9c63f161a411f1cf56c75c585e9124503c/index.js +315 -0
  77. package/vendor/components/sha256/2564dd8096be4cb3ba43703dc76029c1ba3965b831e430597c754865df4b67f4/README.en.md +53 -0
  78. package/vendor/components/sha256/2564dd8096be4cb3ba43703dc76029c1ba3965b831e430597c754865df4b67f4/index.js +171 -0
  79. package/vendor/components/sha256/2bae0f89ba91574c6ffb654e246365acd9aaf16a7aae92d95e1bad045671fbd2/README.en.md +38 -0
  80. package/vendor/components/sha256/2bae0f89ba91574c6ffb654e246365acd9aaf16a7aae92d95e1bad045671fbd2/index.js +414 -0
  81. package/vendor/components/sha256/2c68c355d60fdc879728c39245b7cf964b193628b63e9ab87df09c6bc2bfa7d3/README.en.md +45 -0
  82. package/vendor/components/sha256/2c68c355d60fdc879728c39245b7cf964b193628b63e9ab87df09c6bc2bfa7d3/index.js +211 -0
  83. package/vendor/components/sha256/2f111b900898579b3ec1611c2110db336a46d9133171a0cbb125ee37bd1f24f8/index.js +592 -0
  84. package/vendor/components/sha256/2fd81df4107ecb28c0dcecfdb3fd8fb9a474b5a7e0aeb16d8c0c6b1275c3a178/README.en.md +45 -0
  85. package/vendor/components/sha256/2fd81df4107ecb28c0dcecfdb3fd8fb9a474b5a7e0aeb16d8c0c6b1275c3a178/index.js +211 -0
  86. package/vendor/components/sha256/337febae1374670413653c453feee7cec169892e130248617c6642a91678564e/README.en.md +20 -0
  87. package/vendor/components/sha256/337febae1374670413653c453feee7cec169892e130248617c6642a91678564e/index.js +310 -0
  88. package/vendor/components/sha256/38f6385118112c679b520909d677935176e0c7aa2183a877324eeb5108606eae/README.en.md +35 -0
  89. package/vendor/components/sha256/38f6385118112c679b520909d677935176e0c7aa2183a877324eeb5108606eae/index.js +179 -0
  90. package/vendor/components/sha256/3af0b84b1799fc64ec74d6da9cbd343eccd89e8a11c81bfb444562c911284442/index.js +342 -0
  91. package/vendor/components/sha256/3c69bf3b3c6b9f76048fbc0839b3aa9699723570086d3d44bac799230ed6de5b/index.js +121 -0
  92. package/vendor/components/sha256/3f2f66da34496213cf6140ae041122c31f13c77e5ee18ad11a3390fbc4a6ecca/README.en.md +37 -0
  93. package/vendor/components/sha256/3f2f66da34496213cf6140ae041122c31f13c77e5ee18ad11a3390fbc4a6ecca/index.js +501 -0
  94. package/vendor/components/sha256/41b82d13037c4597e560cf2b3adebea4495ebb4711a8bb82b1a84495839b8fc8/README.en.md +38 -0
  95. package/vendor/components/sha256/41b82d13037c4597e560cf2b3adebea4495ebb4711a8bb82b1a84495839b8fc8/index.js +414 -0
  96. package/vendor/components/sha256/4220949efd68ff86e73ee6a0920b9f5b53f445cfcd657db72ecb2b55da1cc019/README.en.md +30 -0
  97. package/vendor/components/sha256/4220949efd68ff86e73ee6a0920b9f5b53f445cfcd657db72ecb2b55da1cc019/index.js +305 -0
  98. package/vendor/components/sha256/47f7ea3e2551abb250a9f5883716791026f0f54ae9cca6d82fabdb92478c69ae/README.en.md +31 -0
  99. package/vendor/components/sha256/47f7ea3e2551abb250a9f5883716791026f0f54ae9cca6d82fabdb92478c69ae/index.js +236 -0
  100. package/vendor/components/sha256/4b515bfb3a39a6c1e2b04f235affc5bc84e74d80bfd7f9e6d9b5d84d0a9eeb57/README.en.md +21 -0
  101. package/vendor/components/sha256/4b515bfb3a39a6c1e2b04f235affc5bc84e74d80bfd7f9e6d9b5d84d0a9eeb57/index.js +108 -0
  102. package/vendor/components/sha256/4e7ba7759ddebfa5432b733e5f10abfd336ef7d6cc4d46305d5ff7d00ed3a423/README.en.md +28 -0
  103. package/vendor/components/sha256/4e7ba7759ddebfa5432b733e5f10abfd336ef7d6cc4d46305d5ff7d00ed3a423/index.js +213 -0
  104. package/vendor/components/sha256/52149f061935e65502b8353cf70285bba93ab24451d2daac26b994d3901d3864/README.en.md +35 -0
  105. package/vendor/components/sha256/52149f061935e65502b8353cf70285bba93ab24451d2daac26b994d3901d3864/index.js +179 -0
  106. package/vendor/components/sha256/5644e63364f46ee53d5f8623355149753147cdc4720e4c66fc9b8a32627e68a5/README.en.md +53 -0
  107. package/vendor/components/sha256/5644e63364f46ee53d5f8623355149753147cdc4720e4c66fc9b8a32627e68a5/index.js +171 -0
  108. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/ABCJS-ADAPTER.md +101 -0
  109. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/LICENSE-abcjs.txt +21 -0
  110. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/chords.json +89 -0
  111. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/doremi.json +261 -0
  112. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/extras.json +192 -0
  113. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/kaeru.json +521 -0
  114. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/rhythm.json +248 -0
  115. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/ties.json +360 -0
  116. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/index.js +508 -0
  117. package/vendor/components/sha256/59996a56df462b36e24a928d4397c9308d9e39ad8224ebd19fb5c981608ef458/index.js +521 -0
  118. package/vendor/components/sha256/5afcaf27e9209a32a8a8e6667b637ea434326b76f563689552716de953c94a98/README.en.md +30 -0
  119. package/vendor/components/sha256/5afcaf27e9209a32a8a8e6667b637ea434326b76f563689552716de953c94a98/index.js +305 -0
  120. package/vendor/components/sha256/5cf9baec12bac716d9218d6fbc4f95446adf31658da62564aa403bb5bdee542e/README.en.md +30 -0
  121. package/vendor/components/sha256/5cf9baec12bac716d9218d6fbc4f95446adf31658da62564aa403bb5bdee542e/index.js +192 -0
  122. package/vendor/components/sha256/5ffac218340cc51ce842a530f6021fc916090376b243e2ad5d4c0ef48a040ce9/README.en.md +20 -0
  123. package/vendor/components/sha256/5ffac218340cc51ce842a530f6021fc916090376b243e2ad5d4c0ef48a040ce9/index.js +307 -0
  124. package/vendor/components/sha256/6084fd3102b7d450db3804120ac27aa585ab44937734d980fb50c51f39fc98a7/README.en.md +24 -0
  125. package/vendor/components/sha256/6084fd3102b7d450db3804120ac27aa585ab44937734d980fb50c51f39fc98a7/index.js +554 -0
  126. package/vendor/components/sha256/60e3e41c34034e16f9f7ee9ce6c8d669ebb753614989fc2e5e181ef295e83631/README.en.md +25 -0
  127. package/vendor/components/sha256/60e3e41c34034e16f9f7ee9ce6c8d669ebb753614989fc2e5e181ef295e83631/index.js +316 -0
  128. package/vendor/components/sha256/6156a8a03235e1ed92d3cd3ba1f40df86667059003d82e47297bd3917ef562b8/README.en.md +18 -0
  129. package/vendor/components/sha256/6156a8a03235e1ed92d3cd3ba1f40df86667059003d82e47297bd3917ef562b8/index.js +279 -0
  130. package/vendor/components/sha256/624acb997c4975ace65570b529b3ba00baa421c80ecb7fc80f392a64e8c573a7/index.js +107 -0
  131. package/vendor/components/sha256/62602488ee33dd4bdef8516de16da5ab27d7f7265d5041681beab80e08f1d482/index.js +97 -0
  132. package/vendor/components/sha256/67eaf344bddac79b74ed03fdcd70285c7b52b160e6c5ffbd6897848179aa5230/index.js +818 -0
  133. package/vendor/components/sha256/682c9c8871eccd19ff1264e0323a2e4c5798b0488b612ba0339c6fe85aab5914/index.js +926 -0
  134. package/vendor/components/sha256/6937967bbf62098aca7cef99f14f97fa11c861a12da6a1d8fe5fa55a6b4551f2/README.en.md +51 -0
  135. package/vendor/components/sha256/6937967bbf62098aca7cef99f14f97fa11c861a12da6a1d8fe5fa55a6b4551f2/index.js +230 -0
  136. package/vendor/components/sha256/72138936ed0b8fd3cb0214ae7ed250ae3f1f8b21ed6fd593544947774064ba0d/index.js +250 -0
  137. package/vendor/components/sha256/74c1a0f3ed1370c5003aa5770ee28cea2ce994d415680116a92fdbcd5854ba62/index.js +198 -0
  138. package/vendor/components/sha256/76125035eb153b98befa9c735bcd9fc4f99f774dc1d082fdae40acaadfe7d95b/index.js +818 -0
  139. package/vendor/components/sha256/7728cf7dde88a6688aba0ed70f23f7e21362a147beac09c1fa1a4b773e08e93b/index.js +354 -0
  140. package/vendor/components/sha256/7822f137d446604a83c1dbc3b40fdb455001dc55da12276ff3e7079d270dd143/README.en.md +23 -0
  141. package/vendor/components/sha256/7822f137d446604a83c1dbc3b40fdb455001dc55da12276ff3e7079d270dd143/index.js +289 -0
  142. package/vendor/components/sha256/7c2b93508a09a5dd36639ab1329ca6d00487b326c53db436b14295174dc03369/README.en.md +31 -0
  143. package/vendor/components/sha256/7c2b93508a09a5dd36639ab1329ca6d00487b326c53db436b14295174dc03369/index.js +236 -0
  144. package/vendor/components/sha256/7d50e50fbb6c5ec636b62509bd88ddaac1870e0522cf11bcc293ce924d48072d/index.js +312 -0
  145. package/vendor/components/sha256/82ffee434e7f2213031190f832f3a75a8cdf59554fdbc092c0b079d6b0753cad/README.en.md +42 -0
  146. package/vendor/components/sha256/82ffee434e7f2213031190f832f3a75a8cdf59554fdbc092c0b079d6b0753cad/index.js +549 -0
  147. package/vendor/components/sha256/87fc302c41b2bfeea88951ed689ec01b4dc79218c4bc69b310dc2228dfa2e153/index.js +926 -0
  148. package/vendor/components/sha256/8886ccd82d68dc1bbf5b7ffcef746074ce8a3d26414d55691dc5e691e4976ded/README.en.md +24 -0
  149. package/vendor/components/sha256/8886ccd82d68dc1bbf5b7ffcef746074ce8a3d26414d55691dc5e691e4976ded/index.js +103 -0
  150. package/vendor/components/sha256/89c8c16788e24df17920542ed6eb6557dea4a10e835de8fe839e439ccbba8014/index.js +69 -0
  151. package/vendor/components/sha256/8beed7e471fa0d6b801b5c540f69ab77220e228c58ff16b0bc2b1a6eef30800e/README.en.md +44 -0
  152. package/vendor/components/sha256/8beed7e471fa0d6b801b5c540f69ab77220e228c58ff16b0bc2b1a6eef30800e/index.js +304 -0
  153. package/vendor/components/sha256/8d9af78aef44ad2f98101c67d32473373d39725a09c923969aa621d5f5b124bb/index.js +121 -0
  154. package/vendor/components/sha256/8f861d71df72a82be86a3e63abf7d69bbab5aac6fa68be6e077c4e19c3519ed8/index.js +312 -0
  155. package/vendor/components/sha256/90415da5ad04e1944258e29c929c5de65c8152c829414e911ba55a84ac89f348/README.en.md +54 -0
  156. package/vendor/components/sha256/90415da5ad04e1944258e29c929c5de65c8152c829414e911ba55a84ac89f348/index.js +470 -0
  157. package/vendor/components/sha256/91a1e0e48e20cac705cbe6e33e66a24a2851b1dc88c5164ed906bcecba4d943f/README.en.md +24 -0
  158. package/vendor/components/sha256/91a1e0e48e20cac705cbe6e33e66a24a2851b1dc88c5164ed906bcecba4d943f/index.js +214 -0
  159. package/vendor/components/sha256/91a9353a0c3b3744765944783aa1537b3f6ff1677c67caede643cdf2f52289cf/README.en.md +33 -0
  160. package/vendor/components/sha256/91a9353a0c3b3744765944783aa1537b3f6ff1677c67caede643cdf2f52289cf/index.js +390 -0
  161. package/vendor/components/sha256/9289efef4a75afe011e54a17e34db08cfb16a450b2e0653e6a98525495cfba99/index.js +315 -0
  162. package/vendor/components/sha256/93256a923199ea51108cdb7491c3c96f376dbef15b64cbf1a1aa7cc5726b4970/index.js +429 -0
  163. package/vendor/components/sha256/94f4891971b26f5bc157ef9f7f630b1528fc7e2a4c63e84e01951a5a3f94cedc/README.en.md +24 -0
  164. package/vendor/components/sha256/94f4891971b26f5bc157ef9f7f630b1528fc7e2a4c63e84e01951a5a3f94cedc/index.js +550 -0
  165. package/vendor/components/sha256/94f4f798fdd070fc1693494e772ff479d3e694a07a0c97b6e97c3b3895cad478/README.en.md +28 -0
  166. package/vendor/components/sha256/94f4f798fdd070fc1693494e772ff479d3e694a07a0c97b6e97c3b3895cad478/index.js +213 -0
  167. package/vendor/components/sha256/95583538da2982ec5f508217a8f2821796e6a34cf755baa66f2aaeb1c6dae814/README.en.md +40 -0
  168. package/vendor/components/sha256/95583538da2982ec5f508217a8f2821796e6a34cf755baa66f2aaeb1c6dae814/index.js +348 -0
  169. package/vendor/components/sha256/97c074a5473618c65f4c23263f056870a0b7940e73475f2a1f32f68c08d8eb0f/index.js +198 -0
  170. package/vendor/components/sha256/98e1957b1fac2d55d9bfa6a0990ead6a2730d571c988055ca280df05a0e9ea37/README.en.md +66 -0
  171. package/vendor/components/sha256/98e1957b1fac2d55d9bfa6a0990ead6a2730d571c988055ca280df05a0e9ea37/index.js +984 -0
  172. package/vendor/components/sha256/99a26795f8b351ade4a4cbbea845aeb149c96b09fe96151edda57128082185fa/README.en.md +34 -0
  173. package/vendor/components/sha256/99a26795f8b351ade4a4cbbea845aeb149c96b09fe96151edda57128082185fa/index.js +244 -0
  174. package/vendor/components/sha256/a18b2b15d00c76462a43823b5c270c7ddd7c31794da9c236f74f20f80ec2ffdb/index.js +354 -0
  175. package/vendor/components/sha256/a744049fc56e0a5d5b1638bef597a4e65f99d0776a35d830a389f216f314f1bc/README.en.md +32 -0
  176. package/vendor/components/sha256/a744049fc56e0a5d5b1638bef597a4e65f99d0776a35d830a389f216f314f1bc/index.js +222 -0
  177. package/vendor/components/sha256/a979207c60fbd2a12cb557297eb0217eb098d660de684530a0f43d0d9c64e6ef/index.js +312 -0
  178. package/vendor/components/sha256/aba898152e40ca44e1e7bea22242bd6897a31e0254cbfd70e426907b65379af2/README.en.md +34 -0
  179. package/vendor/components/sha256/aba898152e40ca44e1e7bea22242bd6897a31e0254cbfd70e426907b65379af2/index.js +244 -0
  180. package/vendor/components/sha256/af7ed69b8969f6da14784b6e9d26e4dfd20147772ea172a99bd936a71be10fcd/index.js +278 -0
  181. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/ABCJS-ADAPTER.md +101 -0
  182. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/LICENSE-abcjs.txt +21 -0
  183. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/chords.json +89 -0
  184. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/doremi.json +261 -0
  185. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/extras.json +192 -0
  186. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/kaeru.json +521 -0
  187. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/rhythm.json +248 -0
  188. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/ties.json +360 -0
  189. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/index.js +508 -0
  190. package/vendor/components/sha256/b28d136dffb03a3e855b2ff959712a143da9a84c3a4fd13a1126d7711083a2d6/README.en.md +66 -0
  191. package/vendor/components/sha256/b28d136dffb03a3e855b2ff959712a143da9a84c3a4fd13a1126d7711083a2d6/index.js +990 -0
  192. package/vendor/components/sha256/b2d9c417f258745c56c04e05dc9463a412a4978d46c3ffff2556f0b0fafbbfc2/README.en.md +24 -0
  193. package/vendor/components/sha256/b2d9c417f258745c56c04e05dc9463a412a4978d46c3ffff2556f0b0fafbbfc2/index.js +550 -0
  194. package/vendor/components/sha256/b8096d7a60609520981273673761a110e40e3bdf52a7ab5548363b20e16f6e93/index.js +404 -0
  195. package/vendor/components/sha256/b9e27e84b2c534b87d6da5da30ee808d7863cbd1b818082b4c11d1f8b7129b1a/README.en.md +32 -0
  196. package/vendor/components/sha256/b9e27e84b2c534b87d6da5da30ee808d7863cbd1b818082b4c11d1f8b7129b1a/index.js +222 -0
  197. package/vendor/components/sha256/bd8e3893df02411deccc1d6d7b02292ca0d59dfeddfafcf99419430981572c82/index.js +351 -0
  198. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/ABCJS-ADAPTER.md +101 -0
  199. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/LICENSE-abcjs.txt +21 -0
  200. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/chords.json +89 -0
  201. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/doremi.json +261 -0
  202. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/extras.json +192 -0
  203. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/kaeru.json +521 -0
  204. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/rhythm.json +248 -0
  205. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/ties.json +360 -0
  206. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/index.js +508 -0
  207. package/vendor/components/sha256/c5226220649a5854d56ceeaea16722fe54a79b4197f71c51c4e1523bf22bec32/README.en.md +31 -0
  208. package/vendor/components/sha256/c5226220649a5854d56ceeaea16722fe54a79b4197f71c51c4e1523bf22bec32/index.js +267 -0
  209. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/LICENSE-strokesvg.txt +115 -0
  210. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/OFL.txt +93 -0
  211. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/index.js +749 -0
  212. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/strokes-CHANGES.md +20 -0
  213. package/vendor/components/sha256/c791e69e722f64146242f97acb29a341160d0c327cfe1d76307954d80e70db85/index.js +268 -0
  214. package/vendor/components/sha256/c8c0de41d603b61c6ec4dc1da5b50559e213dd1f3693ee5019df858016fd6daf/index.js +747 -0
  215. package/vendor/components/sha256/c99d4f2ab443484b9f462e405c72ea4794838b88f8823f27c606d12cbbedb996/index.js +404 -0
  216. package/vendor/components/sha256/cbde046e30c35db60259911a88e2ae0bedaf545e29b1da8b8ce13bc602a33c19/index.js +465 -0
  217. package/vendor/components/sha256/ccdd16ed76838ac9d6abb4ee695769bfecb802ae490ac91914ed68131ad04434/README.en.md +51 -0
  218. package/vendor/components/sha256/ccdd16ed76838ac9d6abb4ee695769bfecb802ae490ac91914ed68131ad04434/index.js +228 -0
  219. package/vendor/components/sha256/ce0a52fa13ae579020d1172845647daee9ba78e070736e47740f2d2feabffe7e/README.en.md +35 -0
  220. package/vendor/components/sha256/ce0a52fa13ae579020d1172845647daee9ba78e070736e47740f2d2feabffe7e/index.js +179 -0
  221. package/vendor/components/sha256/cf0985ffcd8e7cbe2175ddb9a4342b2a4aa3f322794188fc99af8789b494460d/index.js +521 -0
  222. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/LICENSE-strokesvg.txt +115 -0
  223. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/OFL.txt +93 -0
  224. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/index.js +749 -0
  225. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/strokes-CHANGES.md +20 -0
  226. package/vendor/components/sha256/d01dc7fd78d08dd720ed86b39d7877dc0913d72e914036088a86af2df2faee52/index.js +484 -0
  227. package/vendor/components/sha256/d448fec2aeb436f187875c493b1592b373c6a18274ffc64231dbe3f1b54f8cbc/README.en.md +24 -0
  228. package/vendor/components/sha256/d448fec2aeb436f187875c493b1592b373c6a18274ffc64231dbe3f1b54f8cbc/index.js +214 -0
  229. package/vendor/components/sha256/d4aa3ffb394d5db7f47081b1818958547fe164bb968df03131f9400c103b97c4/README.en.md +31 -0
  230. package/vendor/components/sha256/d4aa3ffb394d5db7f47081b1818958547fe164bb968df03131f9400c103b97c4/index.js +271 -0
  231. package/vendor/components/sha256/d582d02ceeaf1ec4d94115b806852ddb66c009788e67728ae0e08cb8d29ca546/README.en.md +25 -0
  232. package/vendor/components/sha256/d582d02ceeaf1ec4d94115b806852ddb66c009788e67728ae0e08cb8d29ca546/index.js +316 -0
  233. package/vendor/components/sha256/d75ab2c8f6c01082bfcaeaba44290367d6b49654e2bf538422b7b3e499de9acf/README.en.md +23 -0
  234. package/vendor/components/sha256/d75ab2c8f6c01082bfcaeaba44290367d6b49654e2bf538422b7b3e499de9acf/index.js +120 -0
  235. package/vendor/components/sha256/d8f5272dac33066a04ecefa9a828ca11d18dec581866899f55433573ba4472d6/README.en.md +40 -0
  236. package/vendor/components/sha256/d8f5272dac33066a04ecefa9a828ca11d18dec581866899f55433573ba4472d6/index.js +405 -0
  237. package/vendor/components/sha256/dd1ff8de877573e30635928e9abce0b1fba8dfc95a079eca86703a884d3c3d59/README.en.md +66 -0
  238. package/vendor/components/sha256/dd1ff8de877573e30635928e9abce0b1fba8dfc95a079eca86703a884d3c3d59/index.js +984 -0
  239. package/vendor/components/sha256/ddd4b9cbbc282cbb3117ff662e1a14ecdb3cc7c16072a574418ec6a6eecef4d8/index.js +107 -0
  240. package/vendor/components/sha256/e24a4235a661bfda4049e1c72b6c376066fcc65e27a2bdfe77942a3394726c81/README.en.md +22 -0
  241. package/vendor/components/sha256/e24a4235a661bfda4049e1c72b6c376066fcc65e27a2bdfe77942a3394726c81/index.js +145 -0
  242. package/vendor/components/sha256/e2da948daac7bfac158857877b5a6932dbd2369e73901abcef118c92dd20b725/index.js +747 -0
  243. package/vendor/components/sha256/e40201a655bf5c556d70fbf45b5052dd48c33fc8030b331a9d9cbc96913d02a6/README.en.md +42 -0
  244. package/vendor/components/sha256/e40201a655bf5c556d70fbf45b5052dd48c33fc8030b331a9d9cbc96913d02a6/index.js +268 -0
  245. package/vendor/components/sha256/e653a4da80f7761442dc5b504ea5b0700fd0acf1979beeff56122cfdb3d4654c/index.js +607 -0
  246. package/vendor/components/sha256/ea217c6821e931b2d8474bf56d38f2dcc89ec705fe1d276f313e1c7e8db2b98a/index.js +233 -0
  247. package/vendor/components/sha256/ea2e4e24838574f607879c7d05556281258c018331e4da3e6f3a5263173f2e99/index.js +75 -0
  248. package/vendor/components/sha256/eb0b402dc4738b2dca2918c7f64a4d6fc3c27b4ba419270bbe8240a3c8a77f0c/README.en.md +42 -0
  249. package/vendor/components/sha256/eb0b402dc4738b2dca2918c7f64a4d6fc3c27b4ba419270bbe8240a3c8a77f0c/index.js +549 -0
  250. package/vendor/components/sha256/f219b47f32b0a78e8f8f5dac83596acfed24dd6e8bfe3f05f8ebfb9582d64485/README.en.md +44 -0
  251. package/vendor/components/sha256/f219b47f32b0a78e8f8f5dac83596acfed24dd6e8bfe3f05f8ebfb9582d64485/index.js +203 -0
  252. package/vendor/components/sha256/f4204773037ae296786e3614b5bfd7487b0f5ba6d5cf92ce20262bb7613e1b6b/README.en.md +34 -0
  253. package/vendor/components/sha256/f4204773037ae296786e3614b5bfd7487b0f5ba6d5cf92ce20262bb7613e1b6b/index.js +244 -0
  254. package/vendor/components/sha256/fa1a09c10181456143d125d68dbbdcacde6bab2e4a2b3e573367103ce28ebf55/index.js +228 -0
  255. package/vendor/components/sha256/fa9c9f63d74a514636961bcb8af75063e00e39bdf85655ecf5d4d7bbc05a831a/README.en.md +51 -0
  256. package/vendor/components/sha256/fa9c9f63d74a514636961bcb8af75063e00e39bdf85655ecf5d4d7bbc05a831a/index.js +228 -0
  257. package/vendor/components/sha256/facebe095849528396ee91d7d6856cb6945ba89ca8b1f34dce488dccb29e9d40/README.en.md +23 -0
  258. package/vendor/components/sha256/facebe095849528396ee91d7d6856cb6945ba89ca8b1f34dce488dccb29e9d40/index.js +147 -0
  259. package/vendor/components/sha256/fb0a77a344098c53cc90215685cee32b0d31362a1de5b5ac0eee422ed2c3c430/README.en.md +20 -0
  260. package/vendor/components/sha256/fb0a77a344098c53cc90215685cee32b0d31362a1de5b5ac0eee422ed2c3c430/index.js +307 -0
  261. package/vendor/components/sha256/fc48e703adab4715157f8dbb0e33c8b5c00099358ae522484290a7098fda2910/README.en.md +26 -0
  262. package/vendor/components/sha256/fc48e703adab4715157f8dbb0e33c8b5c00099358ae522484290a7098fda2910/index.js +322 -0
  263. package/vendor/components-2/manifest-2.12.0.json +2348 -0
  264. package/vendor/components-2/manifest-2.13.0.json +2477 -0
  265. package/vendor/components-2/manifest-2.14.0.json +2460 -0
  266. package/vendor/components-2/manifest-2.14.1.json +2460 -0
  267. package/vendor/components-2/manifest-2.15.0.json +2460 -0
  268. package/vendor/egatari-spec/SOURCE.json +3 -3
  269. package/vendor/egatari-spec/schema/deck-meta.schema.json +16 -1
  270. package/vendor/egatari-spec/schema/egatari-metadata.schema.json +17 -2
@@ -23,7 +23,7 @@
23
23
  // だから外の名前を使わない(中だけで閉じる)。仲立ちはデッキの script の要素の中にそのまま入るので、閉じるタグと HTML の注釈の始まりを書かない(tools/build-app.mjs が確かめる)
24
24
 
25
25
  import { findRawMath } from './raw-math.mjs';
26
- import { geometryScan, geometryTate } from './geometry-check.mjs';
26
+ import { geometryScan, geometrySteps, geometryTate, WITHIN_ATTRS, WITHIN_NAME } from './geometry-check.mjs';
27
27
  import { TEXT_BANDS, DEFAULT_BAND } from './text-band.mjs';
28
28
 
29
29
  // わざと切る印(CLIP_ATTR。docs/contract.md §10):その要素の中(子孫も、SVG の字も)は、箱で切れる・スライドの外に出る・
@@ -38,6 +38,11 @@ export const ANNOT_ATTR = 'data-annot';
38
38
  // その SVG の字は textOverlap だけを見ない。値は "ok" だけ(空の属性やほかの値は効かない)。部品全体でなく、重ねる字だけに付ける。
39
39
  export const OVERLAP_ATTR = 'data-overlap';
40
40
 
41
+ // 描いた図の形の点検(kit/core/geometry-check.mjs)に渡す値:字の範囲の表(kit/core/text-band.mjs)・わざと重ねる印の名前(OVERLAP_ATTR。R-geometry も見る、handoff #45)・
42
+ // 枠の中の印の名前(WITHIN_ATTRS)と値の形(WITHIN_NAME。handoff #46)・わざと切る印の名前(CLIP_ATTR。その中は図の端で欠ける線 geoClippedStroke を見ない、handoff #52)。
43
+ // コマンド版(kit/check.mjs)・編集アプリ(withLayoutScan)・試験が同じこれを使う
44
+ export const GEO_OPTS = Object.freeze({ bands: TEXT_BANDS, dflt: DEFAULT_BAND, overlap: OVERLAP_ATTR, within: WITHIN_ATTRS.within, frame: WITHIN_ATTRS.frame, name: WITHIN_NAME, clip: CLIP_ATTR });
45
+
41
46
  export function layoutScan(s, o) {
42
47
  const JA = !!o.JA, CLIP = o.clip, ANNOT = o.annot, OVERLAP = o.overlap, refRe = new RegExp(o.refRe);
43
48
  // テーマの寸法(1280×720 の px)。既定は kit/core/theme-metrics.mjs の DEFAULT_METRICS と同じ値
@@ -248,7 +253,7 @@ export function layoutScan(s, o) {
248
253
  }
249
254
  // 箱が字を切るか(縦・横)。HTML の箱は内側(padding の箱)、SVG はその表示の枠(viewBox を写した場所)
250
255
  const over = (p, q, x, y) => Math.max(x ? q.l - p.l : 0, x ? p.r - q.r : 0, y ? q.t - p.t : 0, y ? p.b - q.b : 0);
251
- const found = { textClipped: null, svgTextOut: null, svgTextBox: null, outsideBody: null, partSvgOut: null, textOffSlide: null, textOverlap: null, cellWordBreak: null };
256
+ const found = { textClipped: null, svgTextOut: null, svgTextBox: null, outsideBody: null, partSvgOut: null, colOverflow: null, textOffSlide: null, textOverlap: null, cellWordBreak: null };
252
257
  const note = (code, a) => { const f = found[code]; if (f) f.n++; else found[code] = Object.assign({ n: 1 }, a); };
253
258
  const done = new Set(); // 上の 4 つ(textClipped・svgTextOut・svgTextBox・outsideBody)か、スライドの外(textOffSlide)で知らせた字。重なり(textOverlap)では見ない
254
259
  // 表紙・章の扉(.body のないスライド)の知らせには、置ける子要素を添える
@@ -506,7 +511,72 @@ export function layoutScan(s, o) {
506
511
  const same = [...s.querySelectorAll(e.localName)], label = (e.getAttribute('aria-label') || '').trim();
507
512
  note('partSvgOut', { tag: e.localName, ...(same.length > 1 ? { index: same.indexOf(e) } : {}), ...(label ? { label: label.slice(0, 40) } : {}), px: Math.round(px) });
508
513
  });
509
- for (const code of ['textClipped', 'svgTextOut', 'svgTextBox', 'outsideBody', 'partSvgOut', 'textOffSlide', 'textOverlap', 'cellWordBreak']) if (found[code]) add('warn', code, found[code]);
514
+ // ---------------------------------------------------------------- 横並び(.cols)の列からはみ出す中身(handoff Issue #40。警告)
515
+ // .cols の子(列)ごとに、中の字(Range の行の矩形)・KaTeX の式の見た目の箱(.katex-html の .base を合わせた箱。式の箱 .katex-display では切らない)・
516
+ // 画像と図(img・svg・video・canvas・table)の箱が、列の箱から列の並ぶ向き(ふつうは左右、縦組みの .cols は上下)に TOL より外に出る。
517
+ // 列は min-width:0 なので、折り返せない式や語は列の幅を超えて隣の列の上に描かれる(textOverlap は式の箱を .katex-display で切って見るので見えない)。
518
+ // 隣の列の箱に入れば into にその列の番号を添える。overflow が visible でない列(中で切れる:textClipped が見る)、見えない列、わざと切る印(CLIP)の中は見ない。
519
+ // パーツ(m-*)の中はパーツの描き方(partSvgOut・compLayout)が見るので数えない。知らせはスライドの最初の 1 つと数
520
+ s.querySelectorAll('.cols').forEach((cs) => {
521
+ if (skip(cs) || !shown(cs) || hiddenEl(cs)) return;
522
+ const cols = [...cs.children].filter((e) => !/^(script|style|template)$/i.test(e.localName) && shown(e) && !skip(e));
523
+ if (cols.length < 2) return;
524
+ const cbs = cols.map((e) => box(e.getBoundingClientRect()));
525
+ // 列の並ぶ向き:2 列目が 1 列目の横にあれば左右、でなければ上下
526
+ const horiz = cbs[1].l >= cbs[0].r - TOL || cbs[1].r <= cbs[0].l + TOL;
527
+ const lo = horiz ? 'l' : 't', hi = horiz ? 'r' : 'b';
528
+ const order = cbs.map((q, i) => i).sort((i, j) => cbs[i][lo] - cbs[j][lo]);
529
+ order.forEach((ci, pos) => {
530
+ const col = cols[ci], q = cbs[ci];
531
+ if (!(q.r > q.l && q.b > q.t)) return;
532
+ const st = getComputedStyle(col);
533
+ if (st.overflowX !== 'visible' || st.overflowY !== 'visible') return;
534
+ let worst = null;
535
+ // own:el がその箱の要素そのものか(字の Range の箱なら false:字の要素の overflow も切る)
536
+ const take = (b, t, el, own) => {
537
+ const { v } = seen(b, el, own, col);
538
+ if (!v) return;
539
+ const d = Math.max(q[lo] - v[lo], v[hi] - q[hi]);
540
+ if (d > TOL && (!worst || d > worst.d)) worst = { d, v, t };
541
+ };
542
+ const inPart = (el) => { for (let e = el; e && e !== col; e = e.parentElement) if (/^m-/.test(e.localName)) return true; return false; };
543
+ const tw = document.createTreeWalker(col, NodeFilter.SHOW_TEXT);
544
+ let n;
545
+ while ((n = tw.nextNode())) {
546
+ if (!n.textContent.trim()) continue;
547
+ const e = n.parentElement;
548
+ if (!e || e.closest('svg, .katex') || skip(e) || inPart(e) || !shown(e) || hiddenEl(e)) continue;
549
+ const rg = document.createRange(); rg.selectNodeContents(n);
550
+ for (const r of rg.getClientRects()) if (r.width > 0 && r.height > 0) take(box(r), sample(n.textContent), e, false);
551
+ }
552
+ col.querySelectorAll('.katex').forEach((kx) => {
553
+ if (kx.parentElement.closest('.katex') || skip(kx) || inPart(kx) || !shown(kx) || hiddenEl(kx)) return;
554
+ const html = kx.querySelector('.katex-html');
555
+ if (!html) return;
556
+ let u = null;
557
+ for (const e of html.children) {
558
+ const r = e.getBoundingClientRect();
559
+ if (!r.width || !r.height) continue;
560
+ const b = box(r);
561
+ u = u ? { l: Math.min(u.l, b.l), t: Math.min(u.t, b.t), r: Math.max(u.r, b.r), b: Math.max(u.b, b.b) } : b;
562
+ }
563
+ // 知らせの字は書いた式(TeX)のほうが原稿で探しやすい。なければ見えている字
564
+ const tex = kx.querySelector('annotation[encoding="application/x-tex"]');
565
+ if (u) take(u, sample((tex ? tex.textContent : html.textContent).replace(/\u200b/g, '')), kx, true);
566
+ });
567
+ col.querySelectorAll('img, svg, video, canvas, table').forEach((e) => {
568
+ if ((e.localName === 'svg' && e.parentElement.closest('svg')) || e.closest('.katex') || skip(e) || inPart(e) || !shown(e) || hiddenEl(e)) return;
569
+ const r = e.getBoundingClientRect();
570
+ if (r.width || r.height) take(box(r), e.localName === 'img' ? (e.getAttribute('alt') || '<img>').slice(0, 24) : '<' + e.localName + '>', e, true);
571
+ });
572
+ if (!worst) return;
573
+ // 隣の列に入るか:はみ出した側の隣の列の箱に TOL より深く入る
574
+ const side = worst.v[hi] - q[hi] >= q[lo] - worst.v[lo] ? 1 : -1, nb = order[pos + side];
575
+ const into = nb !== undefined && (side > 0 ? worst.v[hi] - cbs[nb][lo] : cbs[nb][hi] - worst.v[lo]) > TOL ? pos + side + 1 : null;
576
+ note('colOverflow', { t: worst.t, px: Math.round(worst.d), col: pos + 1, cols: cols.length, ...(into ? { into } : {}), ...(horiz ? {} : { v: true }) });
577
+ });
578
+ });
579
+ for (const code of ['textClipped', 'svgTextOut', 'svgTextBox', 'outsideBody', 'partSvgOut', 'colOverflow', 'textOffSlide', 'textOverlap', 'cellWordBreak']) if (found[code]) add('warn', code, found[code]);
510
580
 
511
581
  // 章の扉(.sec)の題は h1。h2 だけで書いた扉を知らせる(#128。CSS は h2 も読めるようにしたが、書き方は h1 にそろえる)
512
582
  if (s.classList.contains('sec') && s.querySelector('h2') && !s.querySelector('h1')) add('warn', 'secHeading', { t: sample((s.querySelector('h2').textContent || '').replace(/\s+/g, ' ').trim()) });
@@ -694,9 +764,9 @@ export async function metricsFonts(doc, timeoutMs) {
694
764
 
695
765
  // 編集アプリの仲立ち(app/frame-shim.js の文字列。「(function frameShim(cfg){…})」)に、この関数・寸法の比べ方(metricsProbe・metricsFonts)・残った数式の検出(findRawMath)と印の名前を渡す形にする。
696
766
  // 戻り値も「(…)(cfg)」で呼べる 1 つの式(仲立ちの中では layoutScan・metricsProbe・metricsFonts・findRawMath・LAYOUT_CLIP・LAYOUT_ANNOT・LAYOUT_OVERLAP という名前で使える)
697
- // 描いた図の形の点検(kit/core/geometry-check.mjs の geometryScan・geometryTate)と字の範囲の表(GEO_OPTS = {bands: TEXT_BANDS, dflt: DEFAULT_BAND})も同じ名前で渡す
767
+ // 描いた図の形の点検(kit/core/geometry-check.mjs の geometryScan・geometrySteps・geometryTate)とその値(上の GEO_OPTS)も同じ名前で渡す
698
768
  export function withLayoutScan(shimSrc) {
699
769
  // 仲立ちの文字列は注釈の行から始まるので、return の後ろで改行して括弧で囲む(return の直後の改行で式が切れないように)
700
770
  // findRawMath(kit/core/raw-math.mjs):組まれずに残った数式(rawMath)。コマンド版(kit/check.mjs)と同じ関数を仲立ちにも渡す
701
- return `(function(layoutScan, LAYOUT_CLIP, LAYOUT_ANNOT, LAYOUT_OVERLAP, metricsProbe, metricsFonts, findRawMath, geometryScan, geometryTate, GEO_OPTS){return (\n${String(shimSrc).trim()}\n);})(${layoutScan}, ${JSON.stringify(CLIP_ATTR)}, ${JSON.stringify(ANNOT_ATTR)}, ${JSON.stringify(OVERLAP_ATTR)}, ${metricsProbe}, ${metricsFonts}, ${findRawMath}, ${geometryScan}, ${geometryTate}, ${JSON.stringify({ bands: TEXT_BANDS, dflt: DEFAULT_BAND })})`;
771
+ return `(function(layoutScan, LAYOUT_CLIP, LAYOUT_ANNOT, LAYOUT_OVERLAP, metricsProbe, metricsFonts, findRawMath, geometryScan, geometrySteps, geometryTate, GEO_OPTS){return (\n${String(shimSrc).trim()}\n);})(${layoutScan}, ${JSON.stringify(CLIP_ATTR)}, ${JSON.stringify(ANNOT_ATTR)}, ${JSON.stringify(OVERLAP_ATTR)}, ${metricsProbe}, ${metricsFonts}, ${findRawMath}, ${geometryScan}, ${geometrySteps}, ${geometryTate}, ${JSON.stringify(GEO_OPTS)})`;
702
772
  }
@@ -80,9 +80,9 @@ export function LivePolicy(opts) {
80
80
  if (!parseEndpoint(live.endpoint)) add('endpoint', 'live.endpoint', {}, 'live.endpoint: not an https origin (e.g. https://live.example.org)');
81
81
  if (!str(live.room) || !RE.room.test(live.room)) add('room', 'live.room', {}, 'live.room: not a room id (r- and 8 characters a-z, 2-7)');
82
82
  if (wantKey) { if (!str(live.key) || !RE.key.test(live.key)) add('key', 'live.key', {}, 'live.key: not a key (22 or more characters A-Z a-z 0-9 _ -)'); }
83
- else if (own(live, 'key')) add('keyStored', 'live.key', {}, 'live.key: the key must not be stored in the lesson (it goes only into the exported file)');
83
+ else if (own(live, 'key')) add('keyStored', 'live.key', {}, 'live.key: the key must not be stored in the file (it goes only into the exported file)');
84
84
  if (own(live, 'sourceSha256')) {
85
- if (!wantKey) add('unknownMember', 'live.sourceSha256', { member: 'sourceSha256' }, 'live.sourceSha256: only in the exported file (the lesson has its own sourceSha256)');
85
+ if (!wantKey) add('unknownMember', 'live.sourceSha256', { member: 'sourceSha256' }, 'live.sourceSha256: only in the exported file (the file has its own sourceSha256)');
86
86
  else if (!str(live.sourceSha256) || !RE.sha256.test(live.sourceSha256)) add('sourceSha256', 'live.sourceSha256', {}, 'live.sourceSha256: not 64 lowercase hex digits');
87
87
  }
88
88
  var w = live.window;
package/kit/core/live.mjs CHANGED
@@ -231,8 +231,8 @@ export function localToRfc3339(value, offsetMin) {
231
231
  const LABEL_MAX = LP.LIMITS.label;
232
232
  const HEADING_MAX = 24;
233
233
  const WORDS = {
234
- ja: { whole: '教材全体', step: (k) => `ステップ ${k}`, concl: '結論', slide: (n, h, st) => `${n} 枚目『${h}』・${st}`, fb: (s, st) => `${s} · ${st}` },
235
- en: { whole: 'whole lesson', step: (k) => `step ${k}`, concl: 'conclusion', slide: (n, h, st) => `Slide ${n} '${h}', ${st}`, fb: (s, st) => `${s} · ${st}` },
234
+ ja: { whole: 'ファイル全体', step: (k) => `ステップ ${k}`, concl: '結論', slide: (n, h, st) => `${n} 枚目『${h}』・${st}`, fb: (s, st) => `${s} · ${st}` },
235
+ en: { whole: 'whole file', step: (k) => `step ${k}`, concl: 'conclusion', slide: (n, h, st) => `Slide ${n} '${h}', ${st}`, fb: (s, st) => `${s} · ${st}` },
236
236
  };
237
237
  const words = (lang) => WORDS[lang === 'en' ? 'en' : 'ja'];
238
238
  const cut = (t, n) => { const c = [...t]; return c.length <= n ? t : c.slice(0, n - 1).join('').trimEnd() + '…'; };
@@ -15,9 +15,20 @@ import { sectionsOf, narrSections } from './llm-import.mjs';
15
15
  import { cleanErrorText } from './error-text.mjs';
16
16
  import { quoteJa } from './quote-ja.mjs';
17
17
  import { plural } from './plural.mjs';
18
+ import { normPart, entryStrokes } from './comment-core.mjs';
18
19
  import { commonBody, componentsIn, componentNotes } from './llm-pack.mjs';
19
20
  import { DEFAULT_METRICS, limitsOf } from './theme-metrics.mjs';
20
21
 
22
+ // 「修正…」に足すコメント 1 件。パーツはマーカーだけ。点の近くの字はこれまでどおり残す。
23
+ export function commentNoteLine(c, lang = 'en') {
24
+ const ja = lang === 'ja', part = entryStrokes(c) ? normPart(c.part) : null;
25
+ const line = ja ? `- ${c.where}${c.quote ? `「${c.quote}」` : ''}:${c.text}`
26
+ : `- ${c.where}${c.quote ? ` “${c.quote}”` : ''}: ${c.text}`;
27
+ if (!part) return line;
28
+ return line + '\n ' + (ja ? `パーツ:${part.name}${part.id ? `(data-id: ${part.id})` : ''}`
29
+ : `Part: ${part.name}${part.id ? ` (data-id: ${part.id})` : ''}`);
30
+ }
31
+
21
32
  export function guideRules(guide) {
22
33
  const out = new Map();
23
34
  const lines = String(guide).replace(/\r\n?/g, '\n').split('\n');
@@ -40,7 +51,7 @@ compData: ['R-components'], consoleError: ['R-components'],
40
51
  contrast: ['R-colors'], formula: ['R-formula'], missingSection: ['R-headings'], narrHeadingDiffers: ['R-headings'], markTarget: ['R-marks'],
41
52
  // 体裁の検査(kit/core/layout-scan.mjs)がブラウザ版にも出すコマンド版の code
42
53
  titleColon: ['R-title'], tateTitle: ['R-title'], tateBodyHead: ['R-fit'], bodyConclCol: ['R-fit'], bodyLeft: ['R-fit'], smallSvgText: ['R-fit'],
43
- textClipped: ['R-fit'], svgTextOut: ['R-fit'], svgTextBox: ['R-fit'], outsideBody: ['R-fit'], partSvgOut: ['R-fit'],
54
+ textClipped: ['R-fit'], svgTextOut: ['R-fit'], svgTextBox: ['R-fit'], outsideBody: ['R-fit'], partSvgOut: ['R-fit'], colOverflow: ['R-fit'],
44
55
  textOffSlide: ['R-fit'], textOverlap: ['R-fit'], cellWordBreak: ['R-fit'],
45
56
  };
46
57
  const BY_TEXT = [
@@ -63,19 +74,19 @@ export function rulesFor(p) {
63
74
 
64
75
  const L = {
65
76
  en: {
66
- head: 'Fix request for an Egatari lesson (deck.html + narration.md). The instructions you followed are the Egatari authoring guide; the standards are quoted below.',
77
+ head: 'Fix request for Egatari slides and script (deck.html + narration.md). The instructions you followed are the Egatari authoring guide; the standards are quoted below.',
67
78
  ask: 'Fix only the findings listed. Keep everything else as it is, and keep every id="…" and {#…} exactly (R-noids). Do not use Canvas, slide-making or file features: reply in the body of your chat message with exactly two fenced code blocks, ```deck.html and ```narration.md (R-output).',
68
- askPartial: (n) => `The lesson is long, so only the ${n} ${plural(n, 'slide')} with problems ${n === 1 ? 'is' : 'are'} included below. Reply with the same two blocks, but put only those <section> elements in the deck.html block (no <html>, keep their ids) and only their sections in the narration.md block (keep the {#id} headings) (R-output).`,
69
- problems: 'Findings', rules: 'Standards', components: 'Parts used in this lesson (from the instructions)', files: 'Current files', partialFiles: 'Current slides with problems',
70
- where: (p) => (p.i === null || p.i === undefined ? 'Whole lesson' : `Slide ${p.i + 1}${p.id ? ` (id ${p.id})` : ''}${p.title ? ` “${p.title}”` : ''}`),
79
+ askPartial: (n) => `The file is long, so only the ${n} ${plural(n, 'slide')} with problems ${n === 1 ? 'is' : 'are'} included below. Reply with the same two blocks, but put only those <section> elements in the deck.html block (no <html>, keep their ids) and only their sections in the narration.md block (keep the {#id} headings) (R-output).`,
80
+ problems: 'Findings', rules: 'Standards', components: 'Parts used in this file (from the instructions)', files: 'Current files', partialFiles: 'Current slides with problems',
81
+ where: (p) => (p.i === null || p.i === undefined ? 'Whole file' : `Slide ${p.i + 1}${p.id ? ` (id ${p.id})` : ''}${p.title ? ` “${p.title}”` : ''}`),
71
82
  sev: { error: 'error', warn: 'warning' },
72
83
  },
73
84
  ja: {
74
- head: 'Egatari の教材(deck.html と narration.md)の修正依頼です。書くときに従った指示は Egatari の書き方の指示(authoring guide)で、規格の文章は下に引いています。',
75
- ask: '挙げた指摘だけを直してください。ほかは変えず、id="…" と {#…} はすべてそのまま残してください(R-noids)。Canvas・スライド作成・ファイルの機能は使わず、チャットの本文に、ちょうど 2 つの灰色の枠(コードブロック) ```deck.html と ```narration.md を書いてください(R-output)。',
76
- askPartial: (n) => `教材が長いので、問題のあるスライド ${n} 枚だけを下に載せています。出力は同じ 2 つのコードブロックで、deck.html のコードブロックにはそのスライドの <section> だけを(<html> なしで、id はそのまま)、narration.md のコードブロックにはその節だけを({#id} の見出しのまま)入れてください(R-output)。`,
77
- problems: '指摘', rules: '規格', components: 'この教材で使っているパーツ(指示の説明)', files: '今のファイル', partialFiles: '問題のあるスライド(今のもの)',
78
- where: (p) => (p.i === null || p.i === undefined ? '教材全体' : `スライド ${p.i + 1}${p.id ? `(id ${p.id})` : ''}${p.title ? quoteJa(p.title) : ''}`),
85
+ head: 'Egatari のスライドと台本(deck.html と narration.md)の修正依頼です。書くときに従った指示は Egatari の書き方の指示(authoring guide)で、規格の文章は下に引いています。',
86
+ ask: '挙げた指摘だけを修正してください。ほかは変えず、id="…" と {#…} はすべて変えないでください(R-noids)。Canvas・スライド作成・ファイルの機能は使わず、チャットの本文に、ちょうど 2 つの灰色の枠(コードブロック) ```deck.html と ```narration.md を書いてください(R-output)。',
87
+ askPartial: (n) => `ファイルが長いので、問題のあるスライド ${n} 枚だけを下に載せています。出力は同じ 2 つのコードブロックで、deck.html のコードブロックにはそのスライドの <section> だけを(<html> なしで、id はそのまま)、narration.md のコードブロックにはその節だけを({#id} の見出しのまま)書いてください(R-output)。`,
88
+ problems: '指摘', rules: '規格', components: 'このファイルで使っているパーツ(指示の説明)', files: '今のファイル', partialFiles: '問題のあるスライド(今のもの)',
89
+ where: (p) => (p.i === null || p.i === undefined ? 'ファイル全体' : `スライド ${p.i + 1}${p.id ? `(id ${p.id})` : ''}${p.title ? quoteJa(p.title) : ''}`),
79
90
  sev: { error: 'エラー', warn: '警告' },
80
91
  },
81
92
  };
@@ -138,14 +149,14 @@ export function partHeightHint(p, deck, secs, lang = 'en') {
138
149
  export function cutOffRequest(err, lang = 'en') {
139
150
  if (err && err.code === 'no-blocks') {
140
151
  return lang === 'ja'
141
- ? '前の出力には灰色の枠(コードブロック)がありませんでした。ファイル・キャンバス・添付では出さず、チャットの本文に、2 つのコードブロック ```deck.html と ```narration.md を書いて送り直してください。どちらも最後まで書いて閉じてください(R-output)。\n'
152
+ ? '前の出力には灰色の枠(コードブロック)がありませんでした。ファイル・キャンバス・添付では出さず、チャットの本文に、2 つのコードブロック ```deck.html と ```narration.md を書いて送信し直してください。どちらも最後まで書いて閉じてください(R-output)。\n'
142
153
  : 'Your previous reply had no code blocks. Do not output files, a canvas or attachments: write both code blocks, ```deck.html and ```narration.md, in the body of your chat message, complete and closed (R-output).\n';
143
154
  }
144
155
  const file = err.kind === 'deck' ? 'deck.html' : err.kind === 'narration' ? 'narration.md' : null;
145
156
  return lang === 'ja'
146
- ? `前の出力は途中で切れていました${file ? `(${file} の灰色の枠(コードブロック)が閉じていません)` : ''}。${file === 'narration.md' ? 'narration.md のコードブロックだけを、最初から最後まで書いて閉じた形で送り直してください(deck.html は受け取りました)。' : `同じ教材を、枚数を減らした短い形で、2 つの${file ? 'コードブロック' : '灰色の枠(コードブロック)'} \`\`\`deck.html と \`\`\`narration.md をどちらも閉じて送り直してください。`}コードブロックの途中で終わらないでください(R-output)。
157
+ ? `前の出力は途中で切れていました${file ? `(${file} の灰色の枠(コードブロック)が閉じていません)` : ''}。${file === 'narration.md' ? 'narration.md のコードブロックだけを、最初から最後まで書いて閉じた形で送信し直してください(deck.html は受け取りました)。' : `同じスライドと台本を、枚数を減らした短い形で、2 つの${file ? 'コードブロック' : '灰色の枠(コードブロック)'} \`\`\`deck.html と \`\`\`narration.md をどちらも閉じて送信し直してください。`}コードブロックの途中で終わらないでください(R-output)。
147
158
  `
148
- : `Your previous reply was cut off${file ? ` (the ${file} block is not closed)` : ''}. ${file === 'narration.md' ? 'Send only the narration.md block again, complete and closed (the deck.html block arrived).' : 'Send the lesson again in a shorter form (fewer slides), as two closed blocks, ```deck.html and ```narration.md.'} Never stop in the middle of a block (R-output).
159
+ : `Your previous reply was cut off${file ? ` (the ${file} block is not closed)` : ''}. ${file === 'narration.md' ? 'Send only the narration.md block again, complete and closed (the deck.html block arrived).' : 'Send the slides and script again in a shorter form (fewer slides), as two closed blocks, ```deck.html and ```narration.md.'} Never stop in the middle of a block (R-output).
149
160
  `;
150
161
  }
151
162
 
@@ -15,26 +15,26 @@ import { placeholderLine } from './template-text.mjs';
15
15
 
16
16
  const L = {
17
17
  ja: {
18
- head: '# スライドを足してほしい',
19
- lead: '今の教材にスライドを足してください。規格(R-…)と出力の形(R-output)は、教材を作ったときの AI への指示のとおりです。',
18
+ head: '# スライドの挿入の依頼',
19
+ lead: '今のスライドに、スライドを挿入してください。規格(R-…)と出力の形(R-output)は、最初に作ったときの AI への指示のとおりです。',
20
20
  where: (x) => (x ? `スライド ${x.n}「${x.h}」の後ろ` : '先頭'),
21
- one: (w) => `- 頼みたいこと:ここ(${w})に、スライドを 1 枚足してください`,
22
- many: (w, n) => `- 頼みたいこと:${w}に、続きのスライドを ${n} 枚足してください`,
23
- wish: (t) => `- 足したいこと:${t}`,
24
- list: (n) => `## 今の教材のスライド(全 ${n} 枚、順に。返さない)`,
25
- here: '← この後ろに足す',
26
- near: '## 足す場所の前のスライド(参考。返さない)',
21
+ one: (w) => `- 依頼:ここ(${w})に、スライドを 1 枚挿入してください`,
22
+ many: (w, n) => `- 依頼:${w}に、続きのスライドを ${n} 枚挿入してください`,
23
+ wish: (t) => `- 挿入したい内容:${t}`,
24
+ list: (n) => `## 今のスライド(全 ${n} 枚、順に。返さない)`,
25
+ here: '← この後ろに挿入する',
26
+ near: '## 挿入する場所の前のスライド(参考。返さない)',
27
27
  reply: '## 返し方',
28
- replyText: '足すスライドだけを返してください。```deck.html の灰色の枠(コードブロック)に <section class="slide"> だけを並べ(<!DOCTYPE>・<html>・<head> は付けない。id は書かない)、```narration.md のコードブロックに、そのスライドの台本の節(## 見出し と [0] からの行)を同じ順で書きます。ほかのスライドは返しません。',
28
+ replyText: '挿入するスライドだけを返してください。```deck.html の灰色の枠(コードブロック)に <section class="slide"> だけを並べ(<!DOCTYPE>・<html>・<head> は付けない。id は書かない)、```narration.md のコードブロックに、そのスライドの台本の節(## 見出し と [0] からの行)を同じ順で書きます。ほかのスライドは返しません。',
29
29
  },
30
30
  en: {
31
31
  head: '# Please add slides',
32
- lead: 'Add slides to the current lesson. The standards (R-…) and the output format (R-output) are the ones in the instructions for the AI used to make it.',
32
+ lead: 'Add slides to the current file. The standards (R-…) and the output format (R-output) are the ones in the instructions for the AI used to make it.',
33
33
  where: (x) => (x ? `after slide ${x.n}, “${x.h}”` : 'at the beginning'),
34
34
  one: (w) => `- What I want: one slide here, ${w}`,
35
35
  many: (w, n) => `- What I want: the next ${n} slides, ${w}`,
36
36
  wish: (t) => `- What to add: ${t}`,
37
- list: (n) => `## The slides of the lesson now (${n} in all, in order; do not send them back)`,
37
+ list: (n) => `## The slides of the file now (${n} in all, in order; do not send them back)`,
38
38
  here: '← add after this one',
39
39
  near: '## The slide before the new ones (for reference; do not send it back)',
40
40
  reply: '## How to reply',
@@ -36,27 +36,27 @@ export function slideCountOf(text) {
36
36
  const L = {
37
37
  ja: {
38
38
  outlineHead: '# まず構成案だけを返してください',
39
- outlineText: (n) => `この教材は ${n} 枚あるので、2 回に分けて作ります。今回は deck.html と narration.md はまだ書かず、構成案だけを返してください(R-outline)。` +
39
+ outlineText: (n) => `スライドは全 ${n} 枚あるので、2 回に分けて作ります。今回は deck.html と narration.md はまだ書かず、構成案だけを返してください(R-outline)。` +
40
40
  '```outline の灰色の枠(コードブロック) 1 つに、Markdown の表を書きます。列は「番号」「見出し」「要点(1 行)」で、スライドごとに 1 行、全スライドを順に並べます。コードブロックの外には 1 行の添え書きだけ。',
41
41
  tableHead: '| 番号 | 見出し | 要点 |',
42
42
  batchHead: (a, b) => `# 構成案の ${a}〜${b} 枚目を作ってください`,
43
- batchFirst: (a, b, n) => `構成案(全 ${n} 枚)の ${a}〜${b} 枚目を、ちょうど ${b - a + 1} 枚作ってください。規格(R-…)と出力の形(R-output)は AI への指示のとおりで、deck.html は <!DOCTYPE html> からの全体を書きます。残りのスライドは後で頼みます。`,
44
- batchNext: (a, b, n, x) => `構成案(全 ${n} 枚)の ${a}〜${b} 枚目を、ちょうど ${b - a + 1} 枚作ってください。今の教材の${x}の後ろに入ります。規格と出力の形は、教材を作ったときの AI への指示のとおりです。`,
43
+ batchFirst: (a, b, n) => `構成案(全 ${n} 枚)の ${a}〜${b} 枚目を、ちょうど ${b - a + 1} 枚作ってください。規格(R-…)と出力の形(R-output)は AI への指示のとおりで、deck.html は <!DOCTYPE html> からの全体を書きます。残りのスライドは後で依頼します。`,
44
+ batchNext: (a, b, n, x) => `構成案(全 ${n} 枚)の ${a}〜${b} 枚目を、ちょうど ${b - a + 1} 枚作ってください。今のスライドの${x}の後ろに挿入します。規格と出力の形は、最初に作ったときの AI への指示のとおりです。`,
45
45
  where: (x) => `スライド ${x.n}「${x.h}」`,
46
46
  outlineList: '## 構成案(全体。返さない)', range: (a, b) => `← 今回は ${a}〜${b} 枚目`,
47
- near: '## 足す場所の前のスライド(参考。返さない)',
47
+ near: '## 挿入する場所の前のスライド(参考。返さない)',
48
48
  reply: '## 返し方',
49
49
  replyFirst: '```deck.html の灰色の枠(コードブロック)に deck.html の全体(今回のスライドだけ)を、```narration.md のコードブロックにその台本を書きます。',
50
- replyNext: '足すスライドだけを返してください。```deck.html の灰色の枠(コードブロック)に <section class="slide"> だけを並べ(<!DOCTYPE>・<html>・<head> は付けない。id は書かない)、```narration.md のコードブロックに、そのスライドの台本の節(## 見出し と [0] からの行)を同じ順で書きます。',
50
+ replyNext: '挿入するスライドだけを返してください。```deck.html の灰色の枠(コードブロック)に <section class="slide"> だけを並べ(<!DOCTYPE>・<html>・<head> は付けない。id は書かない)、```narration.md のコードブロックに、そのスライドの台本の節(## 見出し と [0] からの行)を同じ順で書きます。',
51
51
  },
52
52
  en: {
53
53
  outlineHead: '# First, send only the outline',
54
- outlineText: (n) => `This lesson has ${n} slides, so it is made in two passes. This time, write no deck.html or narration.md yet: send only the outline (R-outline). ` +
54
+ outlineText: (n) => `There are ${n} slides, so they are made in two passes. This time, write no deck.html or narration.md yet: send only the outline (R-outline). ` +
55
55
  'In one ```outline block, write a Markdown table with the columns “#”, “Heading” and “Point (one line)”, one row per slide, every slide in order. Outside the block, at most a one-line note.',
56
56
  tableHead: '| # | Heading | Point |',
57
57
  batchHead: (a, b) => `# Please make slides ${a}–${b} of the outline`,
58
58
  batchFirst: (a, b, n) => `Make slides ${a}–${b} of the outline (${n} slides in all), exactly ${b - a + 1} ${plural(b - a + 1, 'slide')}. The standards (R-…) and the output format (R-output) are those of the instructions for the AI; write the whole deck.html from <!DOCTYPE html>. The other slides are requested later.`,
59
- batchNext: (a, b, n, x) => `Make slides ${a}–${b} of the outline (${n} slides in all), exactly ${b - a + 1} ${plural(b - a + 1, 'slide')}. They go ${x} of the current lesson. The standards and the output format are those of the instructions for the AI used to make it.`,
59
+ batchNext: (a, b, n, x) => `Make slides ${a}–${b} of the outline (${n} slides in all), exactly ${b - a + 1} ${plural(b - a + 1, 'slide')}. They go ${x} of the current file. The standards and the output format are those of the instructions for the AI used to make it.`,
60
60
  where: (x) => `after slide ${x.n}, “${x.h}”,`,
61
61
  outlineList: '## The outline (all of it; do not send it back)', range: (a, b) => `← this time: ${a}–${b}`,
62
62
  near: '## The slide before the new ones (for reference; do not send it back)',
@@ -55,7 +55,7 @@ export const planName = (plan) => (plan === 'paid' ? 'paid' : 'free');
55
55
  export function briefParts(data, plan = 'free', short = false, full = null) {
56
56
  if (planName(plan) === 'paid') return [];
57
57
  const keep = Array.isArray(full) ? full : short ? [] : FREE_CORE;
58
- return Object.keys(data.en.components).sort().filter((t) => data.en.components[t].set === STANDARD && !keep.includes(t));
58
+ return Object.keys(data.en.components).sort().filter((t) => data.en.components[t].set === STANDARD && !data.en.components[t].paidOnly && !keep.includes(t));
59
59
  }
60
60
  export function normalizeSets(sets, data) {
61
61
  if (sets === undefined || sets === null) return [];
@@ -95,8 +95,11 @@ export function goneParts(data, lang, exclude, sets) {
95
95
  export const membersOf = (D, set) => Object.keys(D.components).sort().filter((n) => D.components[n].set === set);
96
96
 
97
97
  // 共通の本体(標準の部品の一覧と説明・言いたいことの表)。sets:入っている束(表が指す部品を決める。既定 [] は標準だけ。null ならすべて)。off:外した札
98
- export function commonOf(data, lang, { exclude = [], sets = [], off = [], plan = 'free', short = false, full = null } = {}) {
98
+ // 有料のプランの指示にだけ入る部品(材料の paidOnly:受け皿のない束のパーツ。tools/make-llm-guide.mjs の hasReceiver)
99
+ export const paidOnlyParts = (data) => Object.keys(data.en.components).sort().filter((t) => data.en.components[t].paidOnly);
100
+ export function commonOf(data, lang, { exclude: exclude0 = [], sets = [], off = [], plan = 'free', short = false, full = null } = {}) {
99
101
  const D = langOf(data, lang);
102
+ const exclude = planName(plan) === 'free' ? [...new Set([...exclude0, ...paidOnlyParts(data)])] : exclude0;
100
103
  const ss = sets === null ? [...data.sets] : normalizeSets(sets, data);
101
104
  const gone = goneParts(data, lang, exclude, ss);
102
105
  const table = () => (data.purposes ? purposesTable(data.purposes, data.parts || [], lang, data.partsSrc || '', { exclude, sets: ss, off }) : '');