@xiee/utils 1.13.46 → 1.13.48

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.
@@ -1,7 +1,7 @@
1
1
  /* CSS for https://yihui.org/litedown/ */
2
2
 
3
- /* hide 4th-level TOC items when printing to PDF */
4
- .pagesjs #TOC > ul > li > ul > li > ul > li > ul {
3
+ /* hide 4th-level TOC items when printing to PDF and 3rd-level in chapter TOC */
4
+ .pagesjs #TOC > ul > li > ul > li > ul > li > ul, .chapter-toc > ul > li > ul > li > ul {
5
5
  display: none;
6
6
  }
7
7
 
@@ -33,6 +33,65 @@
33
33
  * {
34
34
  flex: 1;
35
35
  }
36
+ pre:has(code[data-file]) {
37
+ &, &::before {
38
+ border: groove mintcream;
39
+ }
40
+ code {
41
+ border: none;
42
+ border-top: 1px dashed lightgray;
43
+ }
44
+ & {
45
+ border-top: none;
46
+ }
47
+ &::before {
48
+ border-left: none;
49
+ border-bottom: none;
50
+ }
51
+ }
52
+ }
53
+
54
+ code[data-file]::before {
55
+ content: attr(data-file);
56
+ font-size: .9em;
57
+ float: right;
58
+ background-color: lightyellow;
59
+ display: inline-block;
60
+ padding: .5em;
61
+ margin: -1em -1em 1em 1em;
62
+ }
63
+
64
+ pre:has(code[data-file]) {
65
+ &::before {
66
+ content: "Output";
67
+ text-transform: uppercase;
68
+ font-weight: bold;
69
+ display: inline-block;
70
+ padding: .5em 1em;
71
+ border-bottom: none;
72
+ }
73
+ &:has(code[data-file$=".Rmd"])::before {
74
+ content: "♧ Example";
75
+ }
76
+ &.pagesjs-fragmented:first-child {
77
+ &::before, code::before {
78
+ content: unset;
79
+ }
80
+ code {
81
+ border-top: none;
82
+ }
83
+ }
84
+ code, &::before {
85
+ border: groove mintcream;
86
+ }
87
+ &.pagesjs-fragmented:last-child {
88
+ code {
89
+ border-bottom: none;
90
+ }
91
+ }
92
+ &::before {
93
+ border-bottom: none;
94
+ }
36
95
  }
37
96
 
38
97
  .larger { font-size: 1.5em; }
@@ -1,2 +1,2 @@
1
- .pagesjs #TOC>ul>li>ul>li>ul>li>ul{display:none}.new-road{& p{justify-content:center;gap:.5em;display:flex}& button:before{font-size:200%}& .old-knit,& .new-fuse{&:hover:before{content:"❓ "}}& .old-knit{&:before{content:"🧶 "}&:focus:before{content:"😡 "}}& .new-fuse:before{content:"↯ "}& .new-preview:before{content:"⏵ "}& .new-fuse:focus:before{content:"😇 "}}.flex-col{justify-content:space-between;gap:.5em;display:flex;& *{flex:1}}.larger{font-size:1.5em}
1
+ .pagesjs #TOC>ul>li>ul>li>ul>li>ul,.chapter-toc>ul>li>ul>li>ul{display:none}.new-road{& p{justify-content:center;gap:.5em;display:flex}& button:before{font-size:200%}& .old-knit,& .new-fuse{&:hover:before{content:"❓ "}}& .old-knit{&:before{content:"🧶 "}&:focus:before{content:"😡 "}}& .new-fuse:before{content:"↯ "}& .new-preview:before{content:"⏵ "}& .new-fuse:focus:before{content:"😇 "}}.flex-col{justify-content:space-between;gap:.5em;display:flex;& *{flex:1}& pre:has(code[data-file]){&,&:before{border:groove #f5fffa}& code{border:none;border-top:1px dashed #d3d3d3}&{border-top:none}&:before{border-bottom:none;border-left:none}}}code[data-file]:before{content:attr(data-file);float:right;background-color:#ffffe0;margin:-1em -1em 1em 1em;padding:.5em;font-size:.9em;display:inline-block}pre:has(code[data-file]){&:before{content:"Output";text-transform:uppercase;border-bottom:none;padding:.5em 1em;font-weight:700;display:inline-block}&:has(code[data-file$=\.Rmd]):before{content:"♧ Example"}&.pagesjs-fragmented:first-child{&:before,& code:before{content:unset}& code{border-top:none}}& code,&:before{border:groove #f5fffa}&.pagesjs-fragmented:last-child{& code{border-bottom:none}}&:before{border-bottom:none}}.larger{font-size:1.5em}
2
2
  /*# sourceMappingURL=book-litedown.min.css.map */
@@ -1 +1 @@
1
- {"version":3,"mappings":"AAGA,gDAKA,UACE,iDAKA,+BACA,wBACE,+BAEF,YACE,yBACA,gCAEF,kCACA,qCACA,0CAIF,8DAIE,YAKF","sources":["book-litedown.css"],"sourcesContent":["/* CSS for https://yihui.org/litedown/ */\n\n/* hide 4th-level TOC items when printing to PDF */\n.pagesjs #TOC > ul > li > ul > li > ul > li > ul {\n display: none;\n}\n\n/* a tale of two buttons */\n.new-road {\n p {\n display: flex;\n justify-content: center;\n gap: .5em;\n }\n button::before { font-size: 200%; }\n .old-knit, .new-fuse {\n &:hover::before { content: \"❓ \"; }\n }\n .old-knit {\n &::before { content: \"🧶 \"; }\n &:focus::before { content: \"😡 \"; }\n }\n .new-fuse::before { content: \"↯ \"; }\n .new-preview::before { content: \"⏵ \"; }\n .new-fuse:focus::before { content: \"😇 \"; }\n}\n\n/* arrange elements in columns */\n.flex-col {\n display: flex;\n justify-content: space-between;\n gap: .5em;\n * {\n flex: 1;\n }\n}\n\n.larger { font-size: 1.5em; }\n"],"names":[]}
1
+ {"version":3,"mappings":"AAGA,4EAKA,UACE,iDAKA,+BACA,wBACE,+BAEF,YACE,yBACA,gCAEF,kCACA,qCACA,0CAIF,8DAIE,WAGA,2BACE,iCAGA,iDAIA,kBAGA,+CAOJ,8JAUA,yBACE,4HAQA,2DAGA,iCACE,qCAGA,wBAIF,sCAGA,gCACE,2BAIF,6BAKF","sources":["book-litedown.css"],"sourcesContent":["/* CSS for https://yihui.org/litedown/ */\n\n/* hide 4th-level TOC items when printing to PDF and 3rd-level in chapter TOC */\n.pagesjs #TOC > ul > li > ul > li > ul > li > ul, .chapter-toc > ul > li > ul > li > ul {\n display: none;\n}\n\n/* a tale of two buttons */\n.new-road {\n p {\n display: flex;\n justify-content: center;\n gap: .5em;\n }\n button::before { font-size: 200%; }\n .old-knit, .new-fuse {\n &:hover::before { content: \"❓ \"; }\n }\n .old-knit {\n &::before { content: \"🧶 \"; }\n &:focus::before { content: \"😡 \"; }\n }\n .new-fuse::before { content: \"↯ \"; }\n .new-preview::before { content: \"⏵ \"; }\n .new-fuse:focus::before { content: \"😇 \"; }\n}\n\n/* arrange elements in columns */\n.flex-col {\n display: flex;\n justify-content: space-between;\n gap: .5em;\n * {\n flex: 1;\n }\n pre:has(code[data-file]) {\n &, &::before {\n border: groove mintcream;\n }\n code {\n border: none;\n border-top: 1px dashed lightgray;\n }\n & {\n border-top: none;\n }\n &::before {\n border-left: none;\n border-bottom: none;\n }\n }\n}\n\ncode[data-file]::before {\n content: attr(data-file);\n font-size: .9em;\n float: right;\n background-color: lightyellow;\n display: inline-block;\n padding: .5em;\n margin: -1em -1em 1em 1em;\n}\n\npre:has(code[data-file]) {\n &::before {\n content: \"Output\";\n text-transform: uppercase;\n font-weight: bold;\n display: inline-block;\n padding: .5em 1em;\n border-bottom: none;\n }\n &:has(code[data-file$=\".Rmd\"])::before {\n content: \"♧ Example\";\n }\n &.pagesjs-fragmented:first-child {\n &::before, code::before {\n content: unset;\n }\n code {\n border-top: none;\n }\n }\n code, &::before {\n border: groove mintcream;\n }\n &.pagesjs-fragmented:last-child {\n code {\n border-bottom: none;\n }\n }\n &::before {\n border-bottom: none;\n }\n}\n\n.larger { font-size: 1.5em; }\n"],"names":[]}
package/css/book.css CHANGED
@@ -2,7 +2,7 @@ body {
2
2
  font-size: 1em;
3
3
  font-family: Palatino, Georgia, serif;
4
4
  }
5
- .footnotes, code, .side, .body .side {
5
+ .footnotes, code, .side, .body .side, .chapter-toc {
6
6
  font-size: .85em;
7
7
  }
8
8
  .frontmatter, .chapter {
@@ -23,14 +23,26 @@ body {
23
23
  margin-top: -1em;
24
24
  }
25
25
  }
26
- #TOC {
26
+ #TOC.side {
27
27
  margin-left: calc(-200px - .8em);
28
28
  }
29
29
  @media (max-width: 1264px) {
30
- #TOC {
30
+ #TOC.side {
31
31
  margin-left: auto;
32
32
  }
33
33
  }
34
+ @media (min-width: 1264.02px) {
35
+ body:not(.pagesjs) .chapter-toc {
36
+ display: none;
37
+ }
38
+ }
39
+ .chapter-toc {
40
+ border: 1px solid #eee;
41
+ border-radius: 5px;
42
+ padding: 1em;
43
+ columns: 2;
44
+ margin-bottom: 2em;
45
+ }
34
46
  .chapter:not(.appendix) .main-number {
35
47
  &::before {
36
48
  content: "Chapter ";
package/css/book.min.css CHANGED
@@ -1,2 +1,2 @@
1
- body{font-family:Palatino,Georgia,serif;font-size:1em}.footnotes,code,.side,.body .side{font-size:.85em}.frontmatter,.chapter{min-height:calc(100vh - 1em)}.frontmatter{background-color:#fff;background-image:radial-gradient(#b6cee2 1px,#fff 1px);background-size:2em 2em;padding-bottom:0;&>div{background-color:#ebf6f9;margin:0 -1em;padding:1em}& .title{margin-top:-1em;padding:20vh 1em 1em}}#TOC{margin-left:calc(-200px - .8em)}@media (width<=1264px){#TOC{margin-left:auto}}.chapter:not(.appendix) .main-number{&:before{content:"Chapter "}&:after{content:none}}.chapter h1{border-bottom:1px solid;margin:1em auto 3em}h1 .section-number{border-bottom:4px solid;margin-bottom:-4px;display:inline-block}.body h2{border-bottom-style:dashed}
1
+ body{font-family:Palatino,Georgia,serif;font-size:1em}.footnotes,code,.side,.body .side,.chapter-toc{font-size:.85em}.frontmatter,.chapter{min-height:calc(100vh - 1em)}.frontmatter{background-color:#fff;background-image:radial-gradient(#b6cee2 1px,#fff 1px);background-size:2em 2em;padding-bottom:0;&>div{background-color:#ebf6f9;margin:0 -1em;padding:1em}& .title{margin-top:-1em;padding:20vh 1em 1em}}#TOC.side{margin-left:calc(-200px - .8em)}@media (width<=1264px){#TOC.side{margin-left:auto}}@media (width>=1264.02px){body:not(.pagesjs) .chapter-toc{display:none}}.chapter-toc{columns:2;border:1px solid #eee;border-radius:5px;margin-bottom:2em;padding:1em}.chapter:not(.appendix) .main-number{&:before{content:"Chapter "}&:after{content:none}}.chapter h1{border-bottom:1px solid;margin:1em auto 3em}h1 .section-number{border-bottom:4px solid;margin-bottom:-4px;display:inline-block}.body h2{border-bottom-style:dashed}
2
2
  /*# sourceMappingURL=book.min.css.map */
@@ -1 +1 @@
1
- {"version":3,"mappings":"AAAA,sDAIA,kDAGA,mDAGA,mIAKE,yDAKA,+CAKF,qCAGA,uBACE,uBAIF,qCACE,4BAGA,sBAIF,wDAIA,mFAKA","sources":["book.css"],"sourcesContent":["body {\n font-size: 1em;\n font-family: Palatino, Georgia, serif;\n}\n.footnotes, code, .side, .body .side {\n font-size: .85em;\n}\n.frontmatter, .chapter {\n min-height: calc(100vh - 1em);\n}\n.frontmatter {\n background-image: radial-gradient(#b6cee2 1px, #fff 1px);\n background-size: 2em 2em;\n background-color: #fff;\n padding-bottom: 0;\n & > div {\n margin: 0 -1em;\n background-color: #ebf6f9;\n padding: 1em;\n }\n & .title {\n padding: 20vh 1em 1em;\n margin-top: -1em;\n }\n}\n#TOC {\n margin-left: calc(-200px - .8em);\n}\n@media (max-width: 1264px) {\n #TOC {\n margin-left: auto;\n }\n}\n.chapter:not(.appendix) .main-number {\n &::before {\n content: \"Chapter \";\n }\n &::after {\n content: none;\n }\n}\n.chapter h1 {\n margin: 1em auto 3em;\n border-bottom: 1px solid;\n}\nh1 .section-number {\n display: inline-block;\n border-bottom: 4px solid;\n margin-bottom: -4px;\n}\n.body h2 { border-bottom-style: dashed; }\n/* TODO: style for h1.part and printing */\n"],"names":[]}
1
+ {"version":3,"mappings":"AAAA,sDAIA,+DAGA,mDAGA,mIAKE,yDAKA,+CAKF,0CAGA,uBACE,4BAIF,0BACE,8CAIF,6FAOA,qCACE,4BAGA,sBAIF,wDAIA,mFAKA","sources":["book.css"],"sourcesContent":["body {\n font-size: 1em;\n font-family: Palatino, Georgia, serif;\n}\n.footnotes, code, .side, .body .side, .chapter-toc {\n font-size: .85em;\n}\n.frontmatter, .chapter {\n min-height: calc(100vh - 1em);\n}\n.frontmatter {\n background-image: radial-gradient(#b6cee2 1px, #fff 1px);\n background-size: 2em 2em;\n background-color: #fff;\n padding-bottom: 0;\n & > div {\n margin: 0 -1em;\n background-color: #ebf6f9;\n padding: 1em;\n }\n & .title {\n padding: 20vh 1em 1em;\n margin-top: -1em;\n }\n}\n#TOC.side {\n margin-left: calc(-200px - .8em);\n}\n@media (max-width: 1264px) {\n #TOC.side {\n margin-left: auto;\n }\n}\n@media (min-width: 1264.02px) {\n body:not(.pagesjs) .chapter-toc {\n display: none;\n }\n}\n.chapter-toc {\n border: 1px solid #eee;\n border-radius: 5px;\n padding: 1em;\n columns: 2;\n margin-bottom: 2em;\n}\n.chapter:not(.appendix) .main-number {\n &::before {\n content: \"Chapter \";\n }\n &::after {\n content: none;\n }\n}\n.chapter h1 {\n margin: 1em auto 3em;\n border-bottom: 1px solid;\n}\nh1 .section-number {\n display: inline-block;\n border-bottom: 4px solid;\n margin-bottom: -4px;\n}\n.body h2 { border-bottom-style: dashed; }\n/* TODO: style for h1.part and printing */\n"],"names":[]}
package/css/default.css CHANGED
@@ -5,7 +5,7 @@ body {
5
5
  padding: 1em;
6
6
  line-height: 1.5;
7
7
  }
8
- body, .abstract, code, .footnotes, #refs { font-size: .9em; }
8
+ body, .abstract, code, .footnotes, #refs, .caption { font-size: .9em; }
9
9
  li li { font-size: .95em; }
10
10
  ul:has(li > input[type="checkbox"]) { list-style: none; padding-left: 1em; }
11
11
  *, :before, :after { box-sizing: border-box; }
@@ -14,7 +14,7 @@ pre, img { max-width: 100%; }
14
14
  pre, pre:hover, fieldset pre { white-space: pre-wrap; word-break: break-word; }
15
15
  pre code { display: block; padding: 1em; overflow-x: auto; }
16
16
  code { font-family: 'DejaVu Sans Mono', 'Droid Sans Mono', 'Lucida Console', Consolas, Monaco, monospace; }
17
- :not(pre) > code, code[class], .box > div { background-color: #f8f8f8; }
17
+ :not(pre) > code, code[class], .box > .caption { background-color: #f8f8f8; }
18
18
  pre > code:not([class]), pre > .language-plain, .box { background-color: inherit; border: 1px solid #eee; }
19
19
  pre > .message { border-color: #9eeaf9; }
20
20
  pre > .warning { background: #fff3cd; border-color: #fff3cd; }
@@ -26,13 +26,11 @@ pre > .error { background: #f8d7da; border-color: #f8d7da; }
26
26
  border-left: 2px solid;
27
27
  &:hover { opacity: inherit; }
28
28
  }
29
- .box { margin: 1em 0; }
30
- .box > :first-child > p:first-child, .box > :last-child > p:last-child { padding: 1em; }
31
- .box > :first-child, .box > :first-child > p:first-child { margin-top: 0; }
32
- .box > :last-child, .box > :last-child > p:last-child { margin-bottom: 0; }
29
+ .box, table { margin: 1em auto; }
30
+ .box > .caption { padding: 1px 1em; }
33
31
  .figure > :is(p:has(img), pre:has(svg)) { text-align: center; }
34
32
  table {
35
- margin: auto; border-top: 1px solid #666;
33
+ border-top: 1px solid #666;
36
34
  thead th { border-bottom: 1px solid #ddd; }
37
35
  th, td { padding: 5px; font-variant-numeric: tabular-nums; }
38
36
  thead, tfoot, tr:nth-child(even) { background: #eee; }
@@ -57,6 +55,7 @@ hr, .footnotes::before { border: 1px dashed #ddd; }
57
55
  table, .body h2 { border-bottom: 1px solid #666; }
58
56
  .body .appendix, .appendix ~ h2 { border-bottom-style: dashed; }
59
57
  .main-number::after { content: "."; }
58
+ span[class^="ref-number-"] { font-weight: bold; }
60
59
  .ref-number-fig::after, .ref-number-tab::after { content: ":"; }
61
60
  .cross-ref-chp::before { content: "Chapter "; }
62
61
  .cross-ref-sec::before { content: "Section "; }
@@ -87,5 +86,5 @@ section.footnotes {
87
86
  tr, img { page-break-inside: avoid; }
88
87
  }
89
88
  @media only screen and (min-width: 992px) {
90
- pre { white-space: pre; }
89
+ pre:has(.line-numbers) { white-space: pre; }
91
90
  }
@@ -1,2 +1,2 @@
1
- body{max-width:800px;margin:auto;padding:1em;font-family:sans-serif;line-height:1.5}body,.abstract,code,.footnotes,#refs{font-size:.9em}li li{font-size:.95em}ul:has(li>input[type=checkbox]){padding-left:1em;list-style:none}*,:before,:after{box-sizing:border-box}a{color:#4682b4}pre,img{max-width:100%}pre,pre:hover,fieldset pre{white-space:pre-wrap;word-break:break-word}pre code{padding:1em;display:block;overflow-x:auto}code{font-family:DejaVu Sans Mono,Droid Sans Mono,Lucida Console,Consolas,Monaco,monospace}:not(pre)>code,code[class],.box>div{background-color:#f8f8f8}pre>code:not([class]),pre>.language-plain,.box{background-color:inherit;border:1px solid #eee}pre>.message{border-color:#9eeaf9}pre>.warning{background:#fff3cd;border-color:#fff3cd}pre>.error{background:#f8d7da;border-color:#f8d7da}.fenced-chunk{border-left:1px solid #666}.code-fence{opacity:.4;border:1px dashed #666;border-left:2px solid;&:hover{opacity:inherit}}.box{margin:1em 0}.box>:first-child>p:first-child,.box>:last-child>p:last-child{padding:1em}.box>:first-child,.box>:first-child>p:first-child{margin-top:0}.box>:last-child,.box>:last-child>p:last-child{margin-bottom:0}.figure>:is(p:has(img),pre:has(svg)){text-align:center}table{border-top:1px solid #666;margin:auto;& thead th{border-bottom:1px solid #ddd}& th,& td{font-variant-numeric:tabular-nums;padding:5px}& thead,& tfoot,& tr:nth-child(2n){background:#eee}}.table-full{width:100%;& td{vertical-align:baseline}}blockquote{color:#666;border-left:.5em solid #eee;margin:0;padding:1px 1em}hr,.footnotes:before{border:1px dashed #ddd}.frontmatter{text-align:center}#TOC .numbered{padding-left:0;& li{list-style:none}& ul{padding-left:1em}}table,.body h2{border-bottom:1px solid #666}.body .appendix,.appendix~h2{border-bottom-style:dashed}.main-number:after{content:"."}.ref-number-fig:after,.ref-number-tab:after{content:":"}.cross-ref-chp:before{content:"Chapter "}.cross-ref-sec:before{content:"Section "}.cross-ref-fig:before,.ref-number-fig:before{content:"Figure "}.cross-ref-tab:before,.ref-number-tab:before{content:"Table "}.cross-ref-eqn:before,.MathJax_ref:has(mjx-mtext>mjx-c+mjx-c):before{content:"Equation "}.abstract,#refs{&:before{margin:1em auto;font-weight:700;display:block}}.abstract:before{content:"Abstract";text-align:center}#refs:before{content:"Bibliography";font-size:1.5em}.ref-paren-open:before{content:"("}.ref-paren-close:after{content:")"}.ref-semicolon:after{content:"; "}.ref-and:after{content:" and "}.ref-et-al:after{content:" et al.";font-style:italic}.footnote-ref a{&:before{content:"["}&:after{content:"]"}}section.footnotes{margin-top:2em;&:before{content:"";max-width:20em;display:block}}@media print{body{max-width:100%}tr,img{page-break-inside:avoid}}@media only screen and (width>=992px){pre{white-space:pre}}
1
+ body{max-width:800px;margin:auto;padding:1em;font-family:sans-serif;line-height:1.5}body,.abstract,code,.footnotes,#refs,.caption{font-size:.9em}li li{font-size:.95em}ul:has(li>input[type=checkbox]){padding-left:1em;list-style:none}*,:before,:after{box-sizing:border-box}a{color:#4682b4}pre,img{max-width:100%}pre,pre:hover,fieldset pre{white-space:pre-wrap;word-break:break-word}pre code{padding:1em;display:block;overflow-x:auto}code{font-family:DejaVu Sans Mono,Droid Sans Mono,Lucida Console,Consolas,Monaco,monospace}:not(pre)>code,code[class],.box>.caption{background-color:#f8f8f8}pre>code:not([class]),pre>.language-plain,.box{background-color:inherit;border:1px solid #eee}pre>.message{border-color:#9eeaf9}pre>.warning{background:#fff3cd;border-color:#fff3cd}pre>.error{background:#f8d7da;border-color:#f8d7da}.fenced-chunk{border-left:1px solid #666}.code-fence{opacity:.4;border:1px dashed #666;border-left:2px solid;&:hover{opacity:inherit}}.box,table{margin:1em auto}.box>.caption{padding:1px 1em}.figure>:is(p:has(img),pre:has(svg)){text-align:center}table{border-top:1px solid #666;& thead th{border-bottom:1px solid #ddd}& th,& td{font-variant-numeric:tabular-nums;padding:5px}& thead,& tfoot,& tr:nth-child(2n){background:#eee}}.table-full{width:100%;& td{vertical-align:baseline}}blockquote{color:#666;border-left:.5em solid #eee;margin:0;padding:1px 1em}hr,.footnotes:before{border:1px dashed #ddd}.frontmatter{text-align:center}#TOC .numbered{padding-left:0;& li{list-style:none}& ul{padding-left:1em}}table,.body h2{border-bottom:1px solid #666}.body .appendix,.appendix~h2{border-bottom-style:dashed}.main-number:after{content:"."}span[class^=ref-number-]{font-weight:700}.ref-number-fig:after,.ref-number-tab:after{content:":"}.cross-ref-chp:before{content:"Chapter "}.cross-ref-sec:before{content:"Section "}.cross-ref-fig:before,.ref-number-fig:before{content:"Figure "}.cross-ref-tab:before,.ref-number-tab:before{content:"Table "}.cross-ref-eqn:before,.MathJax_ref:has(mjx-mtext>mjx-c+mjx-c):before{content:"Equation "}.abstract,#refs{&:before{margin:1em auto;font-weight:700;display:block}}.abstract:before{content:"Abstract";text-align:center}#refs:before{content:"Bibliography";font-size:1.5em}.ref-paren-open:before{content:"("}.ref-paren-close:after{content:")"}.ref-semicolon:after{content:"; "}.ref-and:after{content:" and "}.ref-et-al:after{content:" et al.";font-style:italic}.footnote-ref a{&:before{content:"["}&:after{content:"]"}}section.footnotes{margin-top:2em;&:before{content:"";max-width:20em;display:block}}@media print{body{max-width:100%}tr,img{page-break-inside:avoid}}@media only screen and (width>=992px){pre:has(.line-numbers){white-space:pre}}
2
2
  /*# sourceMappingURL=default.min.css.map */
@@ -1 +1 @@
1
- {"version":3,"mappings":"AAAA,oFAOA,oDACA,sBACA,iEACA,uCACA,gBACA,uBACA,sEACA,mDACA,2FACA,6DACA,8FACA,kCACA,qDACA,mDACA,yCACA,oEAIE,yBAEF,kBACA,0EACA,+DACA,+DACA,uDACA,4CAEE,wCACA,wDACA,oDAEF,uBAEE,8BAEF,2EAMA,4CACA,+BACA,8BAEE,qBACA,uBAEF,4CACA,wDACA,+BACA,wDACA,yCACA,yCACA,+DACA,8DACA,yFACA,gBACE,wDAEF,sDACA,oDACA,mCACA,mCACA,kCACA,+BACA,qDACA,gBACE,qBACA,qBAEF,iCAEE,kDAGF,aACE,oBACA,gCAEF,sCACE","sources":["default.css"],"sourcesContent":["body {\n font-family: sans-serif;\n max-width: 800px;\n margin: auto;\n padding: 1em;\n line-height: 1.5;\n}\nbody, .abstract, code, .footnotes, #refs { font-size: .9em; }\nli li { font-size: .95em; }\nul:has(li > input[type=\"checkbox\"]) { list-style: none; padding-left: 1em; }\n*, :before, :after { box-sizing: border-box; }\na { color: steelblue; }\npre, img { max-width: 100%; }\npre, pre:hover, fieldset pre { white-space: pre-wrap; word-break: break-word; }\npre code { display: block; padding: 1em; overflow-x: auto; }\ncode { font-family: 'DejaVu Sans Mono', 'Droid Sans Mono', 'Lucida Console', Consolas, Monaco, monospace; }\n:not(pre) > code, code[class], .box > div { background-color: #f8f8f8; }\npre > code:not([class]), pre > .language-plain, .box { background-color: inherit; border: 1px solid #eee; }\npre > .message { border-color: #9eeaf9; }\npre > .warning { background: #fff3cd; border-color: #fff3cd; }\npre > .error { background: #f8d7da; border-color: #f8d7da; }\n.fenced-chunk { border-left: 1px solid #666; }\n.code-fence {\n opacity: .4;\n border: 1px dashed #666;\n border-left: 2px solid;\n &:hover { opacity: inherit; }\n}\n.box { margin: 1em 0; }\n.box > :first-child > p:first-child, .box > :last-child > p:last-child { padding: 1em; }\n.box > :first-child, .box > :first-child > p:first-child { margin-top: 0; }\n.box > :last-child, .box > :last-child > p:last-child { margin-bottom: 0; }\n.figure > :is(p:has(img), pre:has(svg)) { text-align: center; }\ntable {\n margin: auto; border-top: 1px solid #666;\n thead th { border-bottom: 1px solid #ddd; }\n th, td { padding: 5px; font-variant-numeric: tabular-nums; }\n thead, tfoot, tr:nth-child(even) { background: #eee; }\n}\n.table-full {\n width: 100%;\n td { vertical-align: baseline; }\n}\nblockquote {\n color: #666;\n margin: 0;\n padding: 1px 1em;\n border-left: .5em solid #eee;\n}\nhr, .footnotes::before { border: 1px dashed #ddd; }\n.frontmatter { text-align: center; }\n#TOC .numbered {\n padding-left: 0;\n li { list-style: none; }\n ul { padding-left: 1em; }\n}\ntable, .body h2 { border-bottom: 1px solid #666; }\n.body .appendix, .appendix ~ h2 { border-bottom-style: dashed; }\n.main-number::after { content: \".\"; }\n.ref-number-fig::after, .ref-number-tab::after { content: \":\"; }\n.cross-ref-chp::before { content: \"Chapter \"; }\n.cross-ref-sec::before { content: \"Section \"; }\n.cross-ref-fig::before, .ref-number-fig::before { content: \"Figure \"; }\n.cross-ref-tab::before, .ref-number-tab::before { content: \"Table \"; }\n.cross-ref-eqn::before, .MathJax_ref:has(mjx-mtext > mjx-c + mjx-c)::before { content: \"Equation \"; }\n.abstract, #refs {\n &::before { display: block; margin: 1em auto; font-weight: bold; }\n}\n.abstract::before { content: \"Abstract\"; text-align: center; }\n#refs::before { content: \"Bibliography\"; font-size: 1.5em; }\n.ref-paren-open::before { content: \"(\"; }\n.ref-paren-close::after { content: \")\"; }\n.ref-semicolon::after { content: \"; \"; }\n.ref-and::after { content: \" and \"; }\n.ref-et-al::after { content: \" et al.\"; font-style: italic; }\n.footnote-ref a {\n &::before { content: \"[\"; }\n &::after { content: \"]\"; }\n}\nsection.footnotes {\n margin-top: 2em;\n &::before { content: \"\"; display: block; max-width: 20em; }\n}\n\n@media print {\n body { max-width: 100%; }\n tr, img { page-break-inside: avoid; }\n}\n@media only screen and (min-width: 992px) {\n pre { white-space: pre; }\n}\n"],"names":[]}
1
+ {"version":3,"mappings":"AAAA,oFAOA,6DACA,sBACA,iEACA,uCACA,gBACA,uBACA,sEACA,mDACA,2FACA,kEACA,8FACA,kCACA,qDACA,mDACA,yCACA,oEAIE,yBAEF,2BACA,8BACA,uDACA,gCAEE,wCACA,wDACA,oDAEF,uBAEE,8BAEF,2EAMA,4CACA,+BACA,8BAEE,qBACA,uBAEF,4CACA,wDACA,+BACA,yCACA,wDACA,yCACA,yCACA,+DACA,8DACA,yFACA,gBACE,wDAEF,sDACA,oDACA,mCACA,mCACA,kCACA,+BACA,qDACA,gBACE,qBACA,qBAEF,iCAEE,kDAGF,aACE,oBACA,gCAEF,sCACE","sources":["default.css"],"sourcesContent":["body {\n font-family: sans-serif;\n max-width: 800px;\n margin: auto;\n padding: 1em;\n line-height: 1.5;\n}\nbody, .abstract, code, .footnotes, #refs, .caption { font-size: .9em; }\nli li { font-size: .95em; }\nul:has(li > input[type=\"checkbox\"]) { list-style: none; padding-left: 1em; }\n*, :before, :after { box-sizing: border-box; }\na { color: steelblue; }\npre, img { max-width: 100%; }\npre, pre:hover, fieldset pre { white-space: pre-wrap; word-break: break-word; }\npre code { display: block; padding: 1em; overflow-x: auto; }\ncode { font-family: 'DejaVu Sans Mono', 'Droid Sans Mono', 'Lucida Console', Consolas, Monaco, monospace; }\n:not(pre) > code, code[class], .box > .caption { background-color: #f8f8f8; }\npre > code:not([class]), pre > .language-plain, .box { background-color: inherit; border: 1px solid #eee; }\npre > .message { border-color: #9eeaf9; }\npre > .warning { background: #fff3cd; border-color: #fff3cd; }\npre > .error { background: #f8d7da; border-color: #f8d7da; }\n.fenced-chunk { border-left: 1px solid #666; }\n.code-fence {\n opacity: .4;\n border: 1px dashed #666;\n border-left: 2px solid;\n &:hover { opacity: inherit; }\n}\n.box, table { margin: 1em auto; }\n.box > .caption { padding: 1px 1em; }\n.figure > :is(p:has(img), pre:has(svg)) { text-align: center; }\ntable {\n border-top: 1px solid #666;\n thead th { border-bottom: 1px solid #ddd; }\n th, td { padding: 5px; font-variant-numeric: tabular-nums; }\n thead, tfoot, tr:nth-child(even) { background: #eee; }\n}\n.table-full {\n width: 100%;\n td { vertical-align: baseline; }\n}\nblockquote {\n color: #666;\n margin: 0;\n padding: 1px 1em;\n border-left: .5em solid #eee;\n}\nhr, .footnotes::before { border: 1px dashed #ddd; }\n.frontmatter { text-align: center; }\n#TOC .numbered {\n padding-left: 0;\n li { list-style: none; }\n ul { padding-left: 1em; }\n}\ntable, .body h2 { border-bottom: 1px solid #666; }\n.body .appendix, .appendix ~ h2 { border-bottom-style: dashed; }\n.main-number::after { content: \".\"; }\nspan[class^=\"ref-number-\"] { font-weight: bold; }\n.ref-number-fig::after, .ref-number-tab::after { content: \":\"; }\n.cross-ref-chp::before { content: \"Chapter \"; }\n.cross-ref-sec::before { content: \"Section \"; }\n.cross-ref-fig::before, .ref-number-fig::before { content: \"Figure \"; }\n.cross-ref-tab::before, .ref-number-tab::before { content: \"Table \"; }\n.cross-ref-eqn::before, .MathJax_ref:has(mjx-mtext > mjx-c + mjx-c)::before { content: \"Equation \"; }\n.abstract, #refs {\n &::before { display: block; margin: 1em auto; font-weight: bold; }\n}\n.abstract::before { content: \"Abstract\"; text-align: center; }\n#refs::before { content: \"Bibliography\"; font-size: 1.5em; }\n.ref-paren-open::before { content: \"(\"; }\n.ref-paren-close::after { content: \")\"; }\n.ref-semicolon::after { content: \"; \"; }\n.ref-and::after { content: \" and \"; }\n.ref-et-al::after { content: \" et al.\"; font-style: italic; }\n.footnote-ref a {\n &::before { content: \"[\"; }\n &::after { content: \"]\"; }\n}\nsection.footnotes {\n margin-top: 2em;\n &::before { content: \"\"; display: block; max-width: 20em; }\n}\n\n@media print {\n body { max-width: 100%; }\n tr, img { page-break-inside: avoid; }\n}\n@media only screen and (min-width: 992px) {\n pre:has(.line-numbers) { white-space: pre; }\n}\n"],"names":[]}
@@ -0,0 +1,16 @@
1
+ // copy chapter TOC to each chapter's first page (under h1)
2
+ (d => {
3
+ d.querySelector('.chapter-toc') || d.querySelectorAll('#TOC > ul > li > a[href^="#"]').forEach(a => {
4
+ const id = a.getAttribute('href'), h = d.getElementById(id.replace(/^#/, ''));
5
+ if (h?.tagName !== 'H1') return;
6
+ if (h.nextElementSibling?.tagName === 'H1') return;
7
+ const u = a.nextElementSibling;
8
+ if (u?.tagName === 'UL') {
9
+ const toc = d.createElement('div');
10
+ toc.className = 'chapter-toc'; toc.id = 'TOC';
11
+ toc.append(u.cloneNode(true));
12
+ toc.firstChild.className = a.parentNode.parentNode.className;
13
+ h.after(toc);
14
+ }
15
+ });
16
+ })(document);
@@ -0,0 +1,2 @@
1
+ (e=>{e.querySelector(".chapter-toc")||e.querySelectorAll('#TOC > ul > li > a[href^="#"]').forEach((t=>{const a=t.getAttribute("href"),r=e.getElementById(a.replace(/^#/,""));if("H1"!==r?.tagName)return;if("H1"===r.nextElementSibling?.tagName)return;const l=t.nextElementSibling;if("UL"===l?.tagName){const a=e.createElement("div");a.className="chapter-toc",a.id="TOC",a.append(l.cloneNode(!0)),a.firstChild.className=t.parentNode.parentNode.className,r.after(a)}}))})(document);
2
+ //# sourceMappingURL=chapter-toc.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["d","querySelector","querySelectorAll","forEach","a","id","getAttribute","h","getElementById","replace","tagName","nextElementSibling","u","toc","createElement","className","append","cloneNode","firstChild","parentNode","after","document"],"sources":["chapter-toc.js"],"mappings":"AACA,CAACA,IACCA,EAAEC,cAAc,iBAAmBD,EAAEE,iBAAiB,iCAAiCC,SAAQC,IAC7F,MAAMC,EAAKD,EAAEE,aAAa,QAASC,EAAIP,EAAEQ,eAAeH,EAAGI,QAAQ,KAAM,KACzE,GAAmB,OAAfF,GAAGG,QAAkB,OACzB,GAAsC,OAAlCH,EAAEI,oBAAoBD,QAAkB,OAC5C,MAAME,EAAIR,EAAEO,mBACZ,GAAmB,OAAfC,GAAGF,QAAkB,CACvB,MAAMG,EAAMb,EAAEc,cAAc,OAC5BD,EAAIE,UAAY,cAAeF,EAAIR,GAAK,MACxCQ,EAAIG,OAAOJ,EAAEK,WAAU,IACvBJ,EAAIK,WAAWH,UAAYX,EAAEe,WAAWA,WAAWJ,UACnDR,EAAEa,MAAMP,EACV,IAEH,EAdD,CAcGQ","ignoreList":[]}
package/js/pages.js CHANGED
@@ -5,7 +5,7 @@
5
5
  function $$(s, el = d) { return el ? el.querySelectorAll(s) : []; }
6
6
  function nChild(el) { return el.childElementCount; }
7
7
 
8
- const tpl = d.createElement('div'), book = $$('h1').length > 1;
8
+ const tpl = d.createElement('div'), book = $$('h1').length > 1, fr_cls = 'pagesjs-fragmented';
9
9
  tpl.className = 'pagesjs-page';
10
10
  tpl.innerHTML = `<div class="pagesjs-header"></div>
11
11
  <div class="pagesjs-body"></div>
@@ -50,6 +50,7 @@
50
50
  const tag = el.tagName, is_code = tag === 'CODE';
51
51
  // if <code>, keep fragmenting; otherwise exit when box fits
52
52
  if (!(is_code && container) && box.scrollHeight <= H) return;
53
+ el.classList.add(fr_cls);
53
54
  const box_cur = page || box, el2 = el.cloneNode(); // shallow clone (wrapper only)
54
55
  // add the clone to current box, and move original el to next box
55
56
  container ? container.append(el2) : (
@@ -91,8 +92,10 @@
91
92
  if (removeBlank(parent)) return; // exit if <pre> is empty
92
93
  }
93
94
  }
95
+ const el2_empty = removeBlank(el2);
94
96
  // if the clone is empty, remove it, otherwise keep fragmenting the remaining el
95
- if (!removeBlank(el2) || is_code || prev) fragment(container ? parent : el);
97
+ el2_empty && el.classList.remove(fr_cls);
98
+ if (!el2_empty || is_code || prev) fragment(container ? parent : el);
96
99
  }
97
100
 
98
101
  // use data-short-title of a header if exists, and fall back to inner text
package/js/pages.min.js CHANGED
@@ -1,2 +1,2 @@
1
- (e=>{function t(t,n=e){return n?.querySelector(t)}function n(t,n=e){return n?n.querySelectorAll(t):[]}function r(e){return e.childElementCount}const a=e.createElement("div"),s=n("h1").length>1;a.className="pagesjs-page",a.innerHTML='<div class="pagesjs-header"></div>\n<div class="pagesjs-body"></div>\n<div class="pagesjs-footer"></div>';let i,o,c,l=[];function d(e){return e&&!t(".pagesjs-body",e)&&e.insertAdjacentHTML("afterbegin",a.innerHTML),i=e||a.cloneNode(!0),o=i.children[1],l.length&&i.classList.add(...l),i}function f(e){if(!e)return!1;const t=""===e.innerText.trim();return t&&e.remove(),t}function p(e){if(e.classList.contains("pagesjs-page"))return i.after(d(e)),void(r(e)>3&&(o.append(...[...e.children].slice(3)),i.after(d())));if(i.scrollHeight>c){const[e,t]=[i,o];e.after(d()),r(t)>1&&o.append(t.lastChild)}o.append(e),g(e)}function g(e,t,n,a){const s=e.tagName,l="CODE"===s;if((!l||!t)&&i.scrollHeight<=c)return;const p=a||i,h=e.cloneNode();if(t?t.append(h):(o.append(h),p.after(d()),o.append(e)),"PRE"===s){const t=e.firstElementChild;"CODE"==t?.tagName&&/\n/.test(t.innerHTML)&&g(t,h,e,p)}else"DIV"===s&&1===r(e)&&g(e.firstElementChild,h,e,p);const u=h.previousElementSibling;if(["UL","OL","BLOCKQUOTE"].includes(s)&&r(e)>1)for(;;){const t=e.firstChild;if(!t)break;if(h.append(t),p.scrollHeight>c){(u||r(h)>1)&&e.insertBefore(t,e.firstChild),"OL"===s&&(e.start+=r(h));break}}if(l){const t=e.innerHTML.split("\n"),r=[];for(let e of t)if(r.push(e),h.innerHTML=r.join("\n"),p.scrollHeight>c){r.pop(),h.innerHTML=r.join("\n");break}if(r.length>0&&(e.innerHTML=t.slice(r.length).join("\n"),f(n)))return}(!f(h)||l||u)&&g(t?n:e)}function h(e){return e&&(e.dataset.shortTitle||e.innerText)}const u=h(t("h1.title, .frontmatter h1, .title, h1")),m=(s?"h1":"h2")+":not(.frontmatter *)",b=["top","bottom"].map((t=>+getComputedStyle(e.documentElement).getPropertyValue(`--paper-margin-${t}`).replace("px","")||0));function E(){if("complete"!==e.readyState)return setTimeout(E,10);const r=e.body.classList;if(r.contains("pagesjs"))return;r.add("pagesjs"),s&&r.add("page-book"),e.body.insertAdjacentElement("afterbegin",d()),c=i.clientHeight||window.innerHeight,n(":is(#TOC, .footnotes, .chapter-before, .chapter-after):is(.side-left, .side-right).side").forEach((e=>{e.classList.remove("side","side-left","side-right")})),r.add("pagesjs-filling"),[t(".frontmatter"),t("#TOC"),t(".abstract")].forEach((e=>{e&&(p(e),s&&i.after(d()))})),n(".body").forEach((e=>{l=["chapter","appendix"].filter((t=>e.classList.contains(t))),s&&(""===i.innerText?d(i):i.after(d())),[...e.children].map(p),f(e.parentNode),f(e)})),r.remove("pagesjs-filling"),n('#TOC a[href^="#"]').forEach((t=>{const n=e.createElement("span"),r=t.firstElementChild;for(r?.classList.contains("section-number")?r.after(n):t.insertAdjacentElement("afterbegin",n);n.nextSibling;)n.append(n.nextSibling);t.insertAdjacentHTML("beforeend",'<span class="dot-leader"></span>'),t.dataset.pageNumber="000"}));let a,o=0;n(".pagesjs-page").forEach((e=>{if(f(e))return;if(s){if(t(".frontmatter",e))return;t(m,e)&&(a="")}const r=function(e){let t=+e.dataset.pagesOffset;if(t)return t;const r=e.scrollHeight;if(t=Math.ceil(r/c),t<=1)return t;const a=b.concat([...n("thead",e)].map((e=>+e.offsetHeight))).reduce(((e,t)=>e+t));if(!a)return t;function s(){return Math.ceil((r+(t-1)*a)/c)}let i=s();for(;i>t;)t=i,i=s();return t}(e);r>1&&e.classList.add("page-multiple"),o+=r,e.classList.add("page-"+(o%2==0?"even":"odd"));const i={pageNumber:o,mainTitle:u,pageTitle:a};let l;[e.children[0],e.children[2]].forEach((e=>{for(const t in i)i[t]&&(e.dataset[t]=i[t])})),a=h([...n(m,e)].pop())||a,n(".footnotes",e).forEach(((t,n)=>{0===n?(l=t,e.children[1].after(t)):(l.append(...t.children),t.remove())}))})),n('#TOC a[href^="#"]').forEach((e=>{const n=t(`.pagesjs-page:has(#${CSS.escape(e.getAttribute("href").replace(/^#/,""))}) .pagesjs-header`);e.dataset.pageNumber=n?n.dataset.pageNumber:""}))}addEventListener("beforeprint",E);let L=sessionStorage.getItem("pagesjs");L&&E(),addEventListener("keypress",(e=>"p"===e.key&&(E(),L=L?"":"1",sessionStorage.setItem("pagesjs",L),L||location.reload())))})(document);
1
+ (e=>{function t(t,n=e){return n?.querySelector(t)}function n(t,n=e){return n?n.querySelectorAll(t):[]}function r(e){return e.childElementCount}const s=e.createElement("div"),a=n("h1").length>1,i="pagesjs-fragmented";s.className="pagesjs-page",s.innerHTML='<div class="pagesjs-header"></div>\n<div class="pagesjs-body"></div>\n<div class="pagesjs-footer"></div>';let o,c,l,d=[];function f(e){return e&&!t(".pagesjs-body",e)&&e.insertAdjacentHTML("afterbegin",s.innerHTML),o=e||s.cloneNode(!0),c=o.children[1],d.length&&o.classList.add(...d),o}function p(e){if(!e)return!1;const t=""===e.innerText.trim();return t&&e.remove(),t}function g(e){if(e.classList.contains("pagesjs-page"))return o.after(f(e)),void(r(e)>3&&(c.append(...[...e.children].slice(3)),o.after(f())));if(o.scrollHeight>l){const[e,t]=[o,c];e.after(f()),r(t)>1&&c.append(t.lastChild)}c.append(e),h(e)}function h(e,t,n,s){const a=e.tagName,d="CODE"===a;if((!d||!t)&&o.scrollHeight<=l)return;e.classList.add(i);const g=s||o,u=e.cloneNode();if(t?t.append(u):(c.append(u),g.after(f()),c.append(e)),"PRE"===a){const t=e.firstElementChild;"CODE"==t?.tagName&&/\n/.test(t.innerHTML)&&h(t,u,e,g)}else"DIV"===a&&1===r(e)&&h(e.firstElementChild,u,e,g);const m=u.previousElementSibling;if(["UL","OL","BLOCKQUOTE"].includes(a)&&r(e)>1)for(;;){const t=e.firstChild;if(!t)break;if(u.append(t),g.scrollHeight>l){(m||r(u)>1)&&e.insertBefore(t,e.firstChild),"OL"===a&&(e.start+=r(u));break}}if(d){const t=e.innerHTML.split("\n"),r=[];for(let e of t)if(r.push(e),u.innerHTML=r.join("\n"),g.scrollHeight>l){r.pop(),u.innerHTML=r.join("\n");break}if(r.length>0&&(e.innerHTML=t.slice(r.length).join("\n"),p(n)))return}const b=p(u);b&&e.classList.remove(i),(!b||d||m)&&h(t?n:e)}function u(e){return e&&(e.dataset.shortTitle||e.innerText)}const m=u(t("h1.title, .frontmatter h1, .title, h1")),b=(a?"h1":"h2")+":not(.frontmatter *)",L=["top","bottom"].map((t=>+getComputedStyle(e.documentElement).getPropertyValue(`--paper-margin-${t}`).replace("px","")||0));function E(){if("complete"!==e.readyState)return setTimeout(E,10);const r=e.body.classList;if(r.contains("pagesjs"))return;r.add("pagesjs"),a&&r.add("page-book"),e.body.insertAdjacentElement("afterbegin",f()),l=o.clientHeight||window.innerHeight,n(":is(#TOC, .footnotes, .chapter-before, .chapter-after):is(.side-left, .side-right).side").forEach((e=>{e.classList.remove("side","side-left","side-right")})),r.add("pagesjs-filling"),[t(".frontmatter"),t("#TOC"),t(".abstract")].forEach((e=>{e&&(g(e),a&&o.after(f()))})),n(".body").forEach((e=>{d=["chapter","appendix"].filter((t=>e.classList.contains(t))),a&&(""===o.innerText?f(o):o.after(f())),[...e.children].map(g),p(e.parentNode),p(e)})),r.remove("pagesjs-filling"),n('#TOC a[href^="#"]').forEach((t=>{const n=e.createElement("span"),r=t.firstElementChild;for(r?.classList.contains("section-number")?r.after(n):t.insertAdjacentElement("afterbegin",n);n.nextSibling;)n.append(n.nextSibling);t.insertAdjacentHTML("beforeend",'<span class="dot-leader"></span>'),t.dataset.pageNumber="000"}));let s,i=0;n(".pagesjs-page").forEach((e=>{if(p(e))return;if(a){if(t(".frontmatter",e))return;t(b,e)&&(s="")}const r=function(e){let t=+e.dataset.pagesOffset;if(t)return t;const r=e.scrollHeight;if(t=Math.ceil(r/l),t<=1)return t;const s=L.concat([...n("thead",e)].map((e=>+e.offsetHeight))).reduce(((e,t)=>e+t));if(!s)return t;function a(){return Math.ceil((r+(t-1)*s)/l)}let i=a();for(;i>t;)t=i,i=a();return t}(e);r>1&&e.classList.add("page-multiple"),i+=r,e.classList.add("page-"+(i%2==0?"even":"odd"));const o={pageNumber:i,mainTitle:m,pageTitle:s};let c;[e.children[0],e.children[2]].forEach((e=>{for(const t in o)o[t]&&(e.dataset[t]=o[t])})),s=u([...n(b,e)].pop())||s,n(".footnotes",e).forEach(((t,n)=>{0===n?(c=t,e.children[1].after(t)):(c.append(...t.children),t.remove())}))})),n('#TOC a[href^="#"]').forEach((e=>{const n=t(`.pagesjs-page:has(#${CSS.escape(e.getAttribute("href").replace(/^#/,""))}) .pagesjs-header`);e.dataset.pageNumber=n?n.dataset.pageNumber:""}))}addEventListener("beforeprint",E);let j=sessionStorage.getItem("pagesjs");j&&E(),addEventListener("keypress",(e=>"p"===e.key&&(E(),j=j?"":"1",sessionStorage.setItem("pagesjs",j),j||location.reload())))})(document);
2
2
  //# sourceMappingURL=pages.min.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["d","$","s","el","querySelector","$$","querySelectorAll","nChild","childElementCount","tpl","createElement","book","length","className","innerHTML","box","box_body","H","box_cls","newPage","insertAdjacentHTML","cloneNode","children","classList","add","removeBlank","v","innerText","trim","remove","fill","contains","after","append","slice","scrollHeight","box2","box_body2","lastChild","fragment","container","parent","page","tag","tagName","is_code","box_cur","el2","code","firstElementChild","test","prev","previousElementSibling","includes","item","firstChild","insertBefore","start","split","code2","i","push","join","pop","shortTitle","h","dataset","main","ps","tb","map","getComputedStyle","documentElement","getPropertyValue","replace","paginate","readyState","setTimeout","cls","body","insertAdjacentElement","clientHeight","window","innerHeight","forEach","filter","parentNode","a","n","nextSibling","pageNumber","page_title","N","pagesOffset","Math","ceil","m","concat","offsetHeight","reduce","m1","m2","newPages","n2","calcPages","info","mainTitle","pageTitle","ft","key","p","CSS","escape","getAttribute","addEventListener","pg","sessionStorage","getItem","e","setItem","location","reload","document"],"sources":["pages.js"],"mappings":"AAEA,CAACA,IACC,SAAUC,EAAEC,EAAGC,EAAKH,GAAK,OAAOG,GAAIC,cAAcF,EAAI,CACtD,SAASG,EAAGH,EAAGC,EAAKH,GAAK,OAAOG,EAAKA,EAAGG,iBAAiBJ,GAAK,EAAI,CAClE,SAASK,EAAOJ,GAAM,OAAOA,EAAGK,iBAAmB,CAEnD,MAAMC,EAAMT,EAAEU,cAAc,OAAQC,EAAON,EAAG,MAAMO,OAAS,EAC7DH,EAAII,UAAY,eAChBJ,EAAIK,UAAY,2GAGhB,IAAIC,EAAKC,EAAUC,EAAGC,EAAU,GAChC,SAASC,EAAQhB,GAIf,OAHAA,IAAOF,EAAE,gBAAiBE,IAAOA,EAAGiB,mBAAmB,aAAcX,EAAIK,WACzEC,EAAMZ,GAAMM,EAAIY,WAAU,GAAOL,EAAWD,EAAIO,SAAS,GACzDJ,EAAQN,QAAUG,EAAIQ,UAAUC,OAAON,GAChCH,CACT,CACA,SAASU,EAAYtB,GACnB,IAAKA,EAAI,OAAO,EAChB,MAAMuB,EAA4B,KAAxBvB,EAAGwB,UAAUC,OAEvB,OADAF,GAAKvB,EAAG0B,SACDH,CACT,CACA,SAASI,EAAK3B,GAEZ,GAAIA,EAAGoB,UAAUQ,SAAS,gBAQxB,OAPAhB,EAAIiB,MAAMb,EAAQhB,SAEdI,EAAOJ,GAAM,IACfa,EAASiB,UAAU,IAAI9B,EAAGmB,UAAUY,MAAM,IAE1CnB,EAAIiB,MAAMb,OAKd,GAAIJ,EAAIoB,aAAelB,EAAG,CACxB,MAAOmB,EAAMC,GAAa,CAACtB,EAAKC,GAChCoB,EAAKJ,MAAMb,KAEXZ,EAAO8B,GAAa,GAAKrB,EAASi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MwC,UAAahB,GAOnD,IAAIiB,EALJ,CAAC7F,EAAIO,SAAS,GAAIP,EAAIO,SAAS,IAAI8D,SAAQjF,IACzC,IAAK,MAAM0G,KAAOJ,EAAMA,EAAKI,KAAS1G,EAAG+D,QAAQ2C,GAAOJ,EAAKI,GAAK,IAGpElB,EAAa3B,EAAW,IAAI3D,EAAG+D,EAAIrD,IAAMgD,QAAU4B,EAGnDtF,EAAG,aAAcU,GAAKqE,SAAQ,CAACjF,EAAIyD,KAC3B,IAANA,GAAWgD,EAAKzG,EAAIY,EAAIO,SAAS,GAAGU,MAAM7B,KAAQyG,EAAG3E,UAAU9B,EAAGmB,UAAWnB,EAAG0B,SAAS,GACzF,IAIJxB,EAAG,qBAAqB+E,SAAQG,IAC9B,MACEuB,EAAI7G,EAAE,sBADG8G,IAAIC,OAAOzB,EAAE0B,aAAa,QAAQvC,QAAQ,KAAM,yBAE3Da,EAAErB,QAAQwB,WAAaoB,EAAIA,EAAE5C,QAAQwB,WAAa,EAAE,GAExD,CACAwB,iBAAiB,cAAevC,GAEhC,IAAIwC,EAAKC,eAAeC,QAAQ,WAChCF,GAAMxC,IACNuC,iBAAiB,YAAYI,GAAe,MAAVA,EAAET,MAClClC,IAAYwC,EAAKA,EAAK,GAAK,IAAKC,eAAeG,QAAQ,UAAWJ,GAAKA,GAAMK,SAASC,WAEzF,EAhND,CAgNGC","ignoreList":[]}
1
+ {"version":3,"names":["d","$","s","el","querySelector","$$","querySelectorAll","nChild","childElementCount","tpl","createElement","book","length","fr_cls","className","innerHTML","box","box_body","H","box_cls","newPage","insertAdjacentHTML","cloneNode","children","classList","add","removeBlank","v","innerText","trim","remove","fill","contains","after","append","slice","scrollHeight","box2","box_body2","lastChild","fragment","container","parent","page","tag","tagName","is_code","box_cur","el2","code","firstElementChild","test","prev","previousElementSibling","includes","item","firstChild","insertBefore","start","split","code2","i","push","join","pop","el2_empty","shortTitle","h","dataset","main","ps","tb","map","getComputedStyle","documentElement","getPropertyValue","replace","paginate","readyState","setTimeout","cls","body","insertAdjacentElement","clientHeight","window","innerHeight","forEach","filter","parentNode","a","n","nextSibling","pageNumber","page_title","N","pagesOffset","Math","ceil","m","concat","offsetHeight","reduce","m1","m2","newPages","n2","calcPages","info","mainTitle","pageTitle","ft","key","p","CSS","escape","getAttribute","addEventListener","pg","sessionStorage","getItem","e","setItem","location","reload","document"],"sources":["pages.js"],"mappings":"AAEA,CAACA,IACC,SAAUC,EAAEC,EAAGC,EAAKH,GAAK,OAAOG,GAAIC,cAAcF,EAAI,CACtD,SAASG,EAAGH,EAAGC,EAAKH,GAAK,OAAOG,EAAKA,EAAGG,iBAAiBJ,GAAK,EAAI,CAClE,SAASK,EAAOJ,GAAM,OAAOA,EAAGK,iBAAmB,CAEnD,MAAMC,EAAMT,EAAEU,cAAc,OAAQC,EAAON,EAAG,MAAMO,OAAS,EAAGC,EAAS,qBACzEJ,EAAIK,UAAY,eAChBL,EAAIM,UAAY,2GAGhB,IAAIC,EAAKC,EAAUC,EAAGC,EAAU,GAChC,SAASC,EAAQjB,GAIf,OAHAA,IAAOF,EAAE,gBAAiBE,IAAOA,EAAGkB,mBAAmB,aAAcZ,EAAIM,WACzEC,EAAMb,GAAMM,EAAIa,WAAU,GAAOL,EAAWD,EAAIO,SAAS,GACzDJ,EAAQP,QAAUI,EAAIQ,UAAUC,OAAON,GAChCH,CACT,CACA,SAASU,EAAYvB,GACnB,IAAKA,EAAI,OAAO,EAChB,MAAMwB,EAA4B,KAAxBxB,EAAGyB,UAAUC,OAEvB,OADAF,GAAKxB,EAAG2B,SACDH,CACT,CACA,SAASI,EAAK5B,GAEZ,GAAIA,EAAGqB,UAAUQ,SAAS,gBAQxB,OAPAhB,EAAIiB,MAAMb,EAAQjB,SAEdI,EAAOJ,GAAM,IACfc,EAASiB,UAAU,IAAI/B,EAAGoB,UAAUY,MAAM,IAE1CnB,EAAIiB,MAAMb,OAKd,GAAIJ,EAAIoB,aAAelB,EAAG,CACxB,MAAOmB,EAAMC,GA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E,EAAI,GAAG9E,EAAIQ,UAAUC,IAAI,iBAC7BoC,GAAKiC,EACL9E,EAAIQ,UAAUC,IAAI,SAAQoC,EAAI,GAAM,EAAI,OAAS,QACjD,MAAM8C,EAAO,CACXf,WAAc/B,EAAG+C,UAAavC,EAAMwC,UAAahB,GAOnD,IAAIiB,EALJ,CAAC9F,EAAIO,SAAS,GAAIP,EAAIO,SAAS,IAAI+D,SAAQnF,IACzC,IAAK,MAAM4G,KAAOJ,EAAMA,EAAKI,KAAS5G,EAAGiE,QAAQ2C,GAAOJ,EAAKI,GAAK,IAGpElB,EAAa3B,EAAW,IAAI7D,EAAGiE,EAAItD,IAAMgD,QAAU6B,EAGnDxF,EAAG,aAAcW,GAAKsE,SAAQ,CAACnF,EAAI0D,KAC3B,IAANA,GAAWiD,EAAK3G,EAAIa,EAAIO,SAAS,GAAGU,MAAM9B,KAAQ2G,EAAG5E,UAAU/B,EAAGoB,UAAWpB,EAAG2B,SAAS,GACzF,IAIJzB,EAAG,qBAAqBiF,SAAQG,IAC9B,MACEuB,EAAI/G,EAAE,sBADGgH,IAAIC,OAAOzB,EAAE0B,aAAa,QAAQvC,QAAQ,KAAM,yBAE3Da,EAAErB,QAAQwB,WAAaoB,EAAIA,EAAE5C,QAAQwB,WAAa,EAAE,GAExD,CACAwB,iBAAiB,cAAevC,GAEhC,IAAIwC,EAAKC,eAAeC,QAAQ,WAChCF,GAAMxC,IACNuC,iBAAiB,YAAYI,GAAe,MAAVA,EAAET,MAClClC,IAAYwC,EAAKA,EAAK,GAAK,IAAKC,eAAeG,QAAQ,UAAWJ,GAAKA,GAAMK,SAASC,WAEzF,EAnND,CAmNGC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiee/utils",
3
- "version": "1.13.46",
3
+ "version": "1.13.48",
4
4
  "description": "Miscellaneous tools and utilities to manipulate HTML pages",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"