diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d18d039..9bbec18d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: with: ref: "${{ github.head_ref }}" - name: Install dependencies and Build Theme - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 - run: npm install - run: npm run assets - name: Commit and push Chart.js changes diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 86810e12..4b9db7db 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1,6 +1,6 @@ /*! Blowfish | MIT License | https://github.com/nunocoracao/blowfish */ -/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com */ +/*! tailwindcss v3.3.4 | MIT License | https://tailwindcss.com */ /* 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index ce797c16..ff6665f5 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -89,7 +89,7 @@ smartTOCHideUnfocusedChildren = false constrainItemsWidth = false [sitemap] - excludedKinds = ["taxonomy","term"] + excludedKinds = [] [taxonomy] showTermCount = true diff --git a/exampleSite/content/pagtest/_index.md b/exampleSite/content/pagtest/_index.md deleted file mode 100644 index a2578a5c..00000000 --- a/exampleSite/content/pagtest/_index.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: "TEST" -date: 2022-06-13T20:55:37+01:00 -draft: true - -showDate : false -showDateUpdated : false -showHeadingAnchors : false -showPagination : false -showReadingTime : false -showTableOfContents : true -showTaxonomies : false -showWordCount : false -showSummary : false -sharingLinks : false - -cardView: false ---- - diff --git a/exampleSite/content/pagtest/file1 copy 10.md b/exampleSite/content/pagtest/file1 copy 10.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 10.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 11.md b/exampleSite/content/pagtest/file1 copy 11.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 11.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 12.md b/exampleSite/content/pagtest/file1 copy 12.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 12.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 13.md b/exampleSite/content/pagtest/file1 copy 13.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 13.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 14.md b/exampleSite/content/pagtest/file1 copy 14.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 14.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 15.md b/exampleSite/content/pagtest/file1 copy 15.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 15.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 16.md b/exampleSite/content/pagtest/file1 copy 16.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 16.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 17.md b/exampleSite/content/pagtest/file1 copy 17.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 17.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 18.md b/exampleSite/content/pagtest/file1 copy 18.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 18.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 19.md b/exampleSite/content/pagtest/file1 copy 19.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 19.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 2.md b/exampleSite/content/pagtest/file1 copy 2.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 2.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 20.md b/exampleSite/content/pagtest/file1 copy 20.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 20.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 21.md b/exampleSite/content/pagtest/file1 copy 21.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 21.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 22.md b/exampleSite/content/pagtest/file1 copy 22.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 22.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 23.md b/exampleSite/content/pagtest/file1 copy 23.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 23.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 24.md b/exampleSite/content/pagtest/file1 copy 24.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 24.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 25.md b/exampleSite/content/pagtest/file1 copy 25.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 25.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 26.md b/exampleSite/content/pagtest/file1 copy 26.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 26.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 27.md b/exampleSite/content/pagtest/file1 copy 27.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 27.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 28.md b/exampleSite/content/pagtest/file1 copy 28.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 28.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 3.md b/exampleSite/content/pagtest/file1 copy 3.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 3.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 4.md b/exampleSite/content/pagtest/file1 copy 4.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 4.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 5.md b/exampleSite/content/pagtest/file1 copy 5.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 5.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 6.md b/exampleSite/content/pagtest/file1 copy 6.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 6.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 7.md b/exampleSite/content/pagtest/file1 copy 7.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 7.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 8.md b/exampleSite/content/pagtest/file1 copy 8.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 8.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy 9.md b/exampleSite/content/pagtest/file1 copy 9.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy 9.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1 copy.md b/exampleSite/content/pagtest/file1 copy.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1 copy.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/pagtest/file1.md b/exampleSite/content/pagtest/file1.md deleted file mode 100644 index 6c1f9414..00000000 --- a/exampleSite/content/pagtest/file1.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Charts" -date: 2019-03-06 -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] -showDate: false ---- \ No newline at end of file diff --git a/exampleSite/content/users/joush007.github.io/feature.jpg b/exampleSite/content/users/joush007.github.io/feature.jpg new file mode 100644 index 00000000..830905d7 Binary files /dev/null and b/exampleSite/content/users/joush007.github.io/feature.jpg differ diff --git a/exampleSite/content/users/joush007.github.io/index.md b/exampleSite/content/users/joush007.github.io/index.md new file mode 100644 index 00000000..58302376 --- /dev/null +++ b/exampleSite/content/users/joush007.github.io/index.md @@ -0,0 +1,13 @@ +--- + title: "joush007.github.io" + tags: [Personal Site] + externalUrl: "https://joush007.github.io" + date: 9933-08-08 + showDate: false + showAuthor: false + showReadingTime: false + showEdit: false + showLikes: false + showViews: false + layoutBackgroundHeaderSpace: false + --- diff --git a/exampleSite/content/users/kylemalloy.com/feature.jpg b/exampleSite/content/users/kylemalloy.com/feature.jpg new file mode 100644 index 00000000..dc6c275b Binary files /dev/null and b/exampleSite/content/users/kylemalloy.com/feature.jpg differ diff --git a/exampleSite/content/users/kylemalloy.com/index.md b/exampleSite/content/users/kylemalloy.com/index.md new file mode 100644 index 00000000..496bd753 --- /dev/null +++ b/exampleSite/content/users/kylemalloy.com/index.md @@ -0,0 +1,13 @@ +--- + title: "kylemalloy.com" + tags: [Personal site] + externalUrl: "https://kylemalloy.com" + date: 9934-08-08 + showDate: false + showAuthor: false + showReadingTime: false + showEdit: false + showLikes: false + showViews: false + layoutBackgroundHeaderSpace: false + --- diff --git a/exampleSite/content/users/users.json b/exampleSite/content/users/users.json index bd88b3b8..465be64d 100644 --- a/exampleSite/content/users/users.json +++ b/exampleSite/content/users/users.json @@ -454,5 +454,19 @@ "tags": [ "Technology Blog" ] + }, + { + "title": "kylemalloy.com", + "url": "https://kylemalloy.com", + "tags": [ + "Personal site" + ] + }, + { + "title": "joush007.github.io", + "url": "https://joush007.github.io", + "tags": [ + "Personal Site" + ] } ] diff --git a/layouts/_default/sitemap.xml b/layouts/_default/sitemap.xml index 45789c64..94c04d55 100644 --- a/layouts/_default/sitemap.xml +++ b/layouts/_default/sitemap.xml @@ -1,28 +1,23 @@ {{ printf "" | safeHTML }} - {{ range .Data.Pages }} - {{ if not (in .Site.Params.sitemap.excludedKinds .Kind) }} - {{ if and (.Param "xml" | default true) (not (isset .Params "externalUrl")) }} - {{- if .Permalink -}} - - {{ .Permalink }}{{ if not .Lastmod.IsZero }} - {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} - {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} - {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} - {{ end }} - {{ end }} - - {{- end -}} - {{ end }} - {{ end }} - {{ end }} +{{ range .Data.Pages }}{{ if not (in .Site.Params.sitemap.excludedKinds .Kind) }}{{ if and (.Param "xml" | default true) (or (not .Params.externalUrl) (and (.Params.externalUrl) (and (not (hasPrefix .Params.externalUrl "http://")) (not (hasPrefix .Params.externalUrl "https://"))))) }} +{{- if .Permalink -}}{{ $link := .Permalink }}{{ if .Params.externalUrl }}{{ $link = printf "%s%s" .Site.BaseURL (substr .Params.externalUrl 1) }}{{ end }} + + {{ $link }}{{ if not .Lastmod.IsZero }} + {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} + {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} + {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} + {{ end }} + {{ end }} + +{{- end -}}{{ end }}{{ end }}{{ end }} diff --git a/package-lock.json b/package-lock.json index 07a667d2..6d6f3675 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", "@tailwindcss/forms": "^0.5.6", - "commander": "^11.0.0" + "commander": "^11.1.0" }, "devDependencies": { "@tailwindcss/typography": "^0.5.10", @@ -25,9 +25,9 @@ "prettier": "^3.0.3", "prettier-plugin-go-template": "^0.0.15", "prettier-plugin-tailwindcss": "^0.5.6", - "puppeteer": "^21.3.8", + "puppeteer": "^21.4.1", "rimraf": "^5.0.5", - "tailwindcss": "^3.3.3", + "tailwindcss": "^3.3.4", "tw-elements": "1.0.0", "typeit": "^8.7.1", "vendor-copy": "^3.0.1" @@ -227,9 +227,9 @@ } }, "node_modules/@puppeteer/browsers": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.7.1.tgz", - "integrity": "sha512-nIb8SOBgDEMFY2iS2MdnUZOg2ikcYchRrBoF+wtdjieRFKR2uGRipHY/oFLo+2N6anDualyClPzGywTHRGrLfw==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.8.0.tgz", + "integrity": "sha512-TkRHIV6k2D8OlUe8RtG+5jgOF/H98Myx0M6AOafC8DdNVOFiBSFa5cpRDtpm8LXOa9sVwe0+e6Q3FC56X/DZfg==", "dev": true, "dependencies": { "debug": "4.3.4", @@ -238,7 +238,7 @@ "proxy-agent": "6.3.1", "tar-fs": "3.0.4", "unbzip2-stream": "1.4.3", - "yargs": "17.7.1" + "yargs": "17.7.2" }, "bin": { "browsers": "lib/cjs/main-cli.js" @@ -280,9 +280,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.8.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.4.tgz", - "integrity": "sha512-ZVPnqU58giiCjSxjVUESDtdPk4QR5WQhhINbc9UBrKLU68MX5BF6kbQzTrkwbolyr0X8ChBpXfavr5mZFKZQ5A==", + "version": "20.8.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.8.tgz", + "integrity": "sha512-YRsdVxq6OaLfmR9Hy816IMp33xOBjfyOgUd77ehqg96CFywxAPbDbXvAsuN2KVg2HOT8Eh6uAfU+l4WffwPVrQ==", "dev": true, "optional": true, "dependencies": { @@ -290,9 +290,9 @@ } }, "node_modules/@types/yauzl": { - "version": "2.10.1", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.1.tgz", - "integrity": "sha512-CHzgNU3qYBnp/O4S3yv2tXPlvMTq0YWSTVg2/JYLqWZGHwwgJGAwd00poay/11asPq8wLFwHzubyInqHIFmmiw==", + "version": "2.10.2", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.2.tgz", + "integrity": "sha512-Km7XAtUIduROw7QPgvcft0lIupeG8a8rdKL8RiSyKvlE7dYY31fEn41HVuQsRFDuROA8tA4K2UVL+WdfFmErBA==", "dev": true, "optional": true, "dependencies": { @@ -593,9 +593,9 @@ } }, "node_modules/chromium-bidi": { - "version": "0.4.31", - "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.31.tgz", - "integrity": "sha512-OtvEg2JMRQrHsmLx4FV3u1Hf9waYxB5PmL+yM0HkFpc9H2x3TMbUqS+GP2/fC4399hzOO+EQF8uVU43By9ILag==", + "version": "0.4.32", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.32.tgz", + "integrity": "sha512-RJnw0PW3sNdx1WclINVfVVx8JUH+tWTHZNpnEzlcM+Qgvf40dUH34U7gJq+cc/0LE+rbPxeT6ldqWrCbUf4jeg==", "dev": true, "dependencies": { "mitt": "3.0.1", @@ -716,9 +716,9 @@ "dev": true }, "node_modules/commander": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-11.0.0.tgz", - "integrity": "sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", + "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", "engines": { "node": ">=16" } @@ -859,9 +859,9 @@ } }, "node_modules/devtools-protocol": { - "version": "0.0.1179426", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1179426.tgz", - "integrity": "sha512-KKC7IGwdOr7u9kTGgjUvGTov/z1s2H7oHi3zKCdR9eSDyCPia5CBi4aRhtp7d8uR7l0GS5UTDw3TjKGu5CqINg==", + "version": "0.0.1191157", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1191157.tgz", + "integrity": "sha512-Fu2mUhX7zkzLHMJZk5wQTiHdl1eJrhK0GypUoSzogUt51MmYEv/46pCz4PtGGFlr0f2ZyYDzzx5CPtbEkuvcTA==", "dev": true }, "node_modules/didyoumean": { @@ -1007,9 +1007,9 @@ "dev": true }, "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -1406,9 +1406,9 @@ } }, "node_modules/jiti": { - "version": "1.18.2", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz", - "integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==", + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.20.0.tgz", + "integrity": "sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==", "bin": { "jiti": "bin/jiti.js" } @@ -2154,31 +2154,31 @@ } }, "node_modules/puppeteer": { - "version": "21.3.8", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.3.8.tgz", - "integrity": "sha512-4OrInVIAtDgcznENUV4Du4gYSZhRmbCkckvOoPstXrUH4JsQ3atSegY+9f/tOKCDB2qh7sXaszDcFEn+RymY0g==", + "version": "21.4.1", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.4.1.tgz", + "integrity": "sha512-opJqQeYMjAB3ICG8lCF3wtSs9k05dozmrEMrHgo3ZWbISiy8qbv/yAJz/6Io221qSh3yURfVf6Z7crrlzKZjLQ==", "dev": true, "hasInstallScript": true, "dependencies": { - "@puppeteer/browsers": "1.7.1", + "@puppeteer/browsers": "1.8.0", "cosmiconfig": "8.3.6", - "puppeteer-core": "21.3.8" + "puppeteer-core": "21.4.1" }, "engines": { "node": ">=16.3.0" } }, "node_modules/puppeteer-core": { - "version": "21.3.8", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.3.8.tgz", - "integrity": "sha512-yv12E/+zZ7Lei5tJB4sUkSrsuqKibuYpYxLGbmtLUjjYIqGE5HKz9OUI2I/RFHEvF+pHi2bTbv5bWydeCGJ6Mw==", + "version": "21.4.1", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.4.1.tgz", + "integrity": "sha512-Lh0e+oGhUquxVOi1U701gTfFLFvw5gDBFh3CWpnfAvtItmyZKUce4R54VNfOJfi+KKnzhVPdB/lDrg65gdRIng==", "dev": true, "dependencies": { - "@puppeteer/browsers": "1.7.1", - "chromium-bidi": "0.4.31", + "@puppeteer/browsers": "1.8.0", + "chromium-bidi": "0.4.32", "cross-fetch": "4.0.0", "debug": "4.3.4", - "devtools-protocol": "0.0.1179426", + "devtools-protocol": "0.0.1191157", "ws": "8.14.2" }, "engines": { @@ -2651,19 +2651,19 @@ } }, "node_modules/tailwindcss": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.3.tgz", - "integrity": "sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==", + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.4.tgz", + "integrity": "sha512-JXZNOkggUAc9T5E7nCrimoXHcSf9h3NWFe5sh36CGD/3M5TRLuQeFnQoDsit2uVTqgoOZHLx5rTykLUu16vsMQ==", "dependencies": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", "chokidar": "^3.5.3", "didyoumean": "^1.2.2", "dlv": "^1.1.3", - "fast-glob": "^3.2.12", + "fast-glob": "^3.3.0", "glob-parent": "^6.0.2", "is-glob": "^4.0.3", - "jiti": "^1.18.2", + "jiti": "^1.19.1", "lilconfig": "^2.1.0", "micromatch": "^4.0.5", "normalize-path": "^3.0.0", @@ -3154,9 +3154,9 @@ } }, "node_modules/yargs": { - "version": "17.7.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", - "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, "dependencies": { "cliui": "^8.0.1", diff --git a/package.json b/package.json index b987fdbc..a9613971 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.43.0", + "version": "2.43.1", "description": "Blowfish theme for Hugo", "scripts": { "fullinstall": "npm run preinstall && npm install && npm run postinstall", @@ -43,9 +43,9 @@ "prettier": "^3.0.3", "prettier-plugin-go-template": "^0.0.15", "prettier-plugin-tailwindcss": "^0.5.6", - "puppeteer": "^21.3.8", + "puppeteer": "^21.4.1", "rimraf": "^5.0.5", - "tailwindcss": "^3.3.3", + "tailwindcss": "^3.3.4", "tw-elements": "1.0.0", "typeit": "^8.7.1", "vendor-copy": "^3.0.1" @@ -97,6 +97,6 @@ "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", "@tailwindcss/forms": "^0.5.6", - "commander": "^11.0.0" + "commander": "^11.1.0" } } diff --git a/static/js/zoom.min.js b/static/js/zoom.min.js index 938bfd5e..b1214b7c 100644 --- a/static/js/zoom.min.js +++ b/static/js/zoom.min.js @@ -1 +1,2 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).mediumZoom=t()}(this,(function(){"use strict";var e=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},c=window.Promise||function(e){function t(){}e(t,t)},u=function(e){var t=e.target;t!==N?-1!==O.indexOf(t)&&w({target:t}):E()},s=function(){if(!A&&T.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(k-e)>S.scrollOffset&&setTimeout(E,150)}},f=function(e){var t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||E()},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t;if(t.background&&(N.style.background=t.background),t.container&&t.container instanceof Object&&(n.container=e({},S.container,t.container)),t.template){var i=o(t.template)?t.template:document.querySelector(t.template);n.template=i}return S=e({},S,n),O.forEach((function(e){e.dispatchEvent(m("medium-zoom:update",{detail:{zoom:j}}))})),j},g=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t(e({},S,o))},v=function(){for(var e=arguments.length,t=Array(e),o=0;o0?t.reduce((function(e,t){return[].concat(e,i(t))}),[]):O;return n.forEach((function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(m("medium-zoom:detach",{detail:{zoom:j}}))})),O=O.filter((function(e){return-1===n.indexOf(e)})),j},z=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O.forEach((function(n){n.addEventListener("medium-zoom:"+e,t,o)})),x.push({type:"medium-zoom:"+e,listener:t,options:o}),j},y=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O.forEach((function(n){n.removeEventListener("medium-zoom:"+e,t,o)})),x=x.filter((function(o){return!(o.type==="medium-zoom:"+e&&o.listener.toString()===t.toString())})),j},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.target,r=function(){var t={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},i=void 0,r=void 0;if(S.container)if(S.container instanceof Object)i=(t=e({},t,S.container)).width-t.left-t.right-2*S.margin,r=t.height-t.top-t.bottom-2*S.margin;else{var d=(o(S.container)?S.container:document.querySelector(S.container)).getBoundingClientRect(),m=d.width,a=d.height,l=d.left,c=d.top;t=e({},t,{width:m,height:a,left:l,top:c})}i=i||t.width-2*S.margin,r=r||t.height-2*S.margin;var u=T.zoomedHd||T.original,s=n(u)?i:u.naturalWidth||i,f=n(u)?r:u.naturalHeight||r,p=u.getBoundingClientRect(),g=p.top,v=p.left,h=p.width,z=p.height,y=Math.min(s,i)/h,b=Math.min(f,r)/z,E=Math.min(y,b),w="scale("+E+") translate3d("+((i-h)/2-v+S.margin+t.left)/E+"px, "+((r-z)/2-g+S.margin+t.top)/E+"px, 0)";T.zoomed.style.transform=w,T.zoomedHd&&(T.zoomedHd.style.transform=w)};return new c((function(e){if(i&&-1===O.indexOf(i))e(j);else{if(T.zoomed)e(j);else{if(i)T.original=i;else{if(!(O.length>0))return void e(j);var t=O;T.original=t[0]}if(T.original.dispatchEvent(m("medium-zoom:open",{detail:{zoom:j}})),k=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,A=!0,T.zoomed=d(T.original),document.body.appendChild(N),S.template){var n=o(S.template)?S.template:document.querySelector(S.template);T.template=document.createElement("div"),T.template.appendChild(n.content.cloneNode(!0)),document.body.appendChild(T.template)}if(document.body.appendChild(T.zoomed),window.requestAnimationFrame((function(){document.body.classList.add("medium-zoom--opened")})),T.original.classList.add("medium-zoom-image--hidden"),T.zoomed.classList.add("medium-zoom-image--opened"),T.zoomed.addEventListener("click",E),T.zoomed.addEventListener("transitionend",(function t(){A=!1,T.zoomed.removeEventListener("transitionend",t),T.original.dispatchEvent(m("medium-zoom:opened",{detail:{zoom:j}})),e(j)})),T.original.getAttribute("data-zoom-src")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("srcset"),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.src=T.zoomed.getAttribute("data-zoom-src"),T.zoomedHd.onerror=function(){clearInterval(a),console.warn("Unable to reach the zoom image target "+T.zoomedHd.src),T.zoomedHd=null,r()};var a=setInterval((function(){T.zoomedHd.complete&&(clearInterval(a),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",E),document.body.appendChild(T.zoomedHd),r())}),10)}else if(T.original.hasAttribute("srcset")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.removeAttribute("loading");var l=T.zoomedHd.addEventListener("load",(function(){T.zoomedHd.removeEventListener("load",l),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",E),document.body.appendChild(T.zoomedHd),r()}))}else r()}}}))},E=function(){return new c((function(e){if(!A&&T.original){A=!0,document.body.classList.remove("medium-zoom--opened"),T.zoomed.style.transform="",T.zoomedHd&&(T.zoomedHd.style.transform=""),T.template&&(T.template.style.transition="opacity 150ms",T.template.style.opacity=0),T.original.dispatchEvent(m("medium-zoom:close",{detail:{zoom:j}})),T.zoomed.addEventListener("transitionend",(function t(){T.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(T.zoomed),T.zoomedHd&&document.body.removeChild(T.zoomedHd),document.body.removeChild(N),T.zoomed.classList.remove("medium-zoom-image--opened"),T.template&&document.body.removeChild(T.template),A=!1,T.zoomed.removeEventListener("transitionend",t),T.original.dispatchEvent(m("medium-zoom:closed",{detail:{zoom:j}})),T.original=null,T.zoomed=null,T.zoomedHd=null,T.template=null,e(j)}))}else e(j)}))},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;return T.original?E():b({target:t})},L=function(){return S},H=function(){return O},C=function(){return T.original},O=[],x=[],A=!1,k=0,S=l,T={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(a)?S=a:(a||"string"==typeof a)&&v(a),S=e({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},S);var N=r(S.background);document.addEventListener("click",u),document.addEventListener("keyup",f),document.addEventListener("scroll",s),window.addEventListener("resize",E);var j={open:b,close:E,toggle:w,update:p,clone:g,attach:v,detach:h,on:z,off:y,getOptions:L,getImages:H,getZoomedImage:C};return j}})); \ No newline at end of file +/*! medium-zoom 1.0.6 | MIT License | https://github.com/francoischalifour/medium-zoom */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).mediumZoom=t()}(this,(function(){"use strict";var e=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},c=window.Promise||function(e){function t(){}e(t,t)},u=function(e){var t=e.target;t!==N?-1!==O.indexOf(t)&&w({target:t}):E()},s=function(){if(!A&&T.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(k-e)>S.scrollOffset&&setTimeout(E,150)}},f=function(e){var t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||E()},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t;if(t.background&&(N.style.background=t.background),t.container&&t.container instanceof Object&&(n.container=e({},S.container,t.container)),t.template){var i=o(t.template)?t.template:document.querySelector(t.template);n.template=i}return S=e({},S,n),O.forEach((function(e){e.dispatchEvent(m("medium-zoom:update",{detail:{zoom:j}}))})),j},g=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t(e({},S,o))},v=function(){for(var e=arguments.length,t=Array(e),o=0;o0?t.reduce((function(e,t){return[].concat(e,i(t))}),[]):O;return n.forEach((function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(m("medium-zoom:detach",{detail:{zoom:j}}))})),O=O.filter((function(e){return-1===n.indexOf(e)})),j},z=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O.forEach((function(n){n.addEventListener("medium-zoom:"+e,t,o)})),x.push({type:"medium-zoom:"+e,listener:t,options:o}),j},y=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O.forEach((function(n){n.removeEventListener("medium-zoom:"+e,t,o)})),x=x.filter((function(o){return!(o.type==="medium-zoom:"+e&&o.listener.toString()===t.toString())})),j},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.target,r=function(){var t={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},i=void 0,r=void 0;if(S.container)if(S.container instanceof Object)i=(t=e({},t,S.container)).width-t.left-t.right-2*S.margin,r=t.height-t.top-t.bottom-2*S.margin;else{var d=(o(S.container)?S.container:document.querySelector(S.container)).getBoundingClientRect(),m=d.width,a=d.height,l=d.left,c=d.top;t=e({},t,{width:m,height:a,left:l,top:c})}i=i||t.width-2*S.margin,r=r||t.height-2*S.margin;var u=T.zoomedHd||T.original,s=n(u)?i:u.naturalWidth||i,f=n(u)?r:u.naturalHeight||r,p=u.getBoundingClientRect(),g=p.top,v=p.left,h=p.width,z=p.height,y=Math.min(s,i)/h,b=Math.min(f,r)/z,E=Math.min(y,b),w="scale("+E+") translate3d("+((i-h)/2-v+S.margin+t.left)/E+"px, "+((r-z)/2-g+S.margin+t.top)/E+"px, 0)";T.zoomed.style.transform=w,T.zoomedHd&&(T.zoomedHd.style.transform=w)};return new c((function(e){if(i&&-1===O.indexOf(i))e(j);else{if(T.zoomed)e(j);else{if(i)T.original=i;else{if(!(O.length>0))return void e(j);var t=O;T.original=t[0]}if(T.original.dispatchEvent(m("medium-zoom:open",{detail:{zoom:j}})),k=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,A=!0,T.zoomed=d(T.original),document.body.appendChild(N),S.template){var n=o(S.template)?S.template:document.querySelector(S.template);T.template=document.createElement("div"),T.template.appendChild(n.content.cloneNode(!0)),document.body.appendChild(T.template)}if(document.body.appendChild(T.zoomed),window.requestAnimationFrame((function(){document.body.classList.add("medium-zoom--opened")})),T.original.classList.add("medium-zoom-image--hidden"),T.zoomed.classList.add("medium-zoom-image--opened"),T.zoomed.addEventListener("click",E),T.zoomed.addEventListener("transitionend",(function t(){A=!1,T.zoomed.removeEventListener("transitionend",t),T.original.dispatchEvent(m("medium-zoom:opened",{detail:{zoom:j}})),e(j)})),T.original.getAttribute("data-zoom-src")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("srcset"),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.src=T.zoomed.getAttribute("data-zoom-src"),T.zoomedHd.onerror=function(){clearInterval(a),console.warn("Unable to reach the zoom image target "+T.zoomedHd.src),T.zoomedHd=null,r()};var a=setInterval((function(){T.zoomedHd.complete&&(clearInterval(a),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",E),document.body.appendChild(T.zoomedHd),r())}),10)}else if(T.original.hasAttribute("srcset")){T.zoomedHd=T.zoomed.cloneNode(),T.zoomedHd.removeAttribute("sizes"),T.zoomedHd.removeAttribute("loading");var l=T.zoomedHd.addEventListener("load",(function(){T.zoomedHd.removeEventListener("load",l),T.zoomedHd.classList.add("medium-zoom-image--opened"),T.zoomedHd.addEventListener("click",E),document.body.appendChild(T.zoomedHd),r()}))}else r()}}}))},E=function(){return new c((function(e){if(!A&&T.original){A=!0,document.body.classList.remove("medium-zoom--opened"),T.zoomed.style.transform="",T.zoomedHd&&(T.zoomedHd.style.transform=""),T.template&&(T.template.style.transition="opacity 150ms",T.template.style.opacity=0),T.original.dispatchEvent(m("medium-zoom:close",{detail:{zoom:j}})),T.zoomed.addEventListener("transitionend",(function t(){T.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(T.zoomed),T.zoomedHd&&document.body.removeChild(T.zoomedHd),document.body.removeChild(N),T.zoomed.classList.remove("medium-zoom-image--opened"),T.template&&document.body.removeChild(T.template),A=!1,T.zoomed.removeEventListener("transitionend",t),T.original.dispatchEvent(m("medium-zoom:closed",{detail:{zoom:j}})),T.original=null,T.zoomed=null,T.zoomedHd=null,T.template=null,e(j)}))}else e(j)}))},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;return T.original?E():b({target:t})},L=function(){return S},H=function(){return O},C=function(){return T.original},O=[],x=[],A=!1,k=0,S=l,T={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(a)?S=a:(a||"string"==typeof a)&&v(a),S=e({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},S);var N=r(S.background);document.addEventListener("click",u),document.addEventListener("keyup",f),document.addEventListener("scroll",s),window.addEventListener("resize",E);var j={open:b,close:E,toggle:w,update:p,clone:g,attach:v,detach:h,on:z,off:y,getOptions:L,getImages:H,getZoomedImage:C};return j}}));