diff --git a/config.toml b/config.toml index 9917adc..6ff8c2f 100644 --- a/config.toml +++ b/config.toml @@ -1,19 +1,38 @@ -baseURL = 'https://m2.nz/' -languageCode = 'en' -title = 'Daniel Mason' -theme = 'LoveIt' +baseURL = "https://m2.nz/" -# Defined later -# [markup.goldmark.renderer] -# unsafe = true - -# Markup related configuration in Hugo -# [markup] -# # Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting) -# [markup.highlight] -# # false is a necessary configuration (https://github.com/dillonzq/LoveIt/issues/158) -# noClasses = false +# Change the default theme to be use when building the site with Hugo +theme = "LoveIt" +# website title +title = "Daniel Mason" + +# language code ["en", "zh-CN", "fr", "pl", ...] +languageCode = "en" +# language name ["English", "简体中文", "Français", "Polski", ...] +languageName = "English" +# whether to include Chinese/Japanese/Korean +hasCJKLanguage = false + +# copyright description used only for seo schema +copyright = "" + +# whether to use robots.txt +enableRobotsTXT = true +# whether to use git commit log +enableGitInfo = true +# whether to use emoji code +enableEmoji = true + +# ignore some build errors +ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] + +# Pagination config +[pagination] + disableAliases = false + pagerSize = 10 + path = "page" + +# Menu config [menu] [[menu.main]] identifier = "home" @@ -21,56 +40,104 @@ theme = 'LoveIt' url = "/" weight = 1 [[menu.main]] + weight = 2 identifier = "posts" + # you can add extra information before the name (HTML format is supported), such as icons + pre = "" + # you can add extra information after the name (HTML format is supported), such as icons + post = "" name = "Posts" url = "/posts/" - weight = 2 + # title will be shown when you hover on this menu link + title = "" [[menu.main]] identifier = "about" name = "CV" url = "/cv/" - weight = 4 + weight = 3 [params] - defaultTheme = 'dark' - dateFormat = '2006-01-02' - title = 'Daniel Mason' - author = "Daniel Mason" - description = "Personal blog" - images = ["/favicon.ico"] + # site default theme ["auto", "light", "dark"] + defaultTheme = "dark" + # public git repo url only then enableGitInfo is true + gitRepo = "https://github.com/idanoo/m2.nz/" + # which hash function used for SRI, when empty, no SRI is used + # ["sha256", "sha384", "sha512", "md5"] + fingerprint = "" + # date format + dateFormat = "2006-01-02" + # website title for Open Graph and Twitter Cards + title = "m2.nz - Daniel Mason" + # website description for RSS, SEO, Open Graph and Twitter Cards + description = "m2.nz - Daniel Mason" + # website images for Open Graph and Twitter Cards + images = ["/avatar.png"] + +# Author config + [params.author] + name = "Daniel Mason" + email = "daniel@m2.nz" + link = "" # Header config [params.header] - # desktop header mode ("fixed", "normal", "auto") + # desktop header mode ["fixed", "normal", "auto"] desktopMode = "fixed" - # mobile header mode ("fixed", "normal", "auto") + # mobile header mode ["fixed", "normal", "auto"] mobileMode = "auto" - # LoveIt NEW | 0.2.0 Header title config + # Header title config [params.header.title] # URL of the LOGO logo = "" # title name - name = "Daniel Mason" + name = "" # you can add extra information before the name (HTML format is supported), such as icons pre = "" # you can add extra information after the name (HTML format is supported), such as icons post = "" - # LoveIt NEW | 0.2.5 whether to use typeit animation for title name + # whether to use typeit animation for title name typeit = false + # Footer config [params.footer] enable = true + # Custom content (HTML format is supported) custom = '' - hugo = false + # whether to show Hugo and theme info + hugo = true + # whether to show copyright info copyright = true + # whether to show the author author = true - since = 2020 - license = '' + # Site creation time + since = 2019 + # ICP info only in China (HTML format is supported) + icp = "" + # license info (HTML format is supported) + license = 'CC BY-NC 4.0' - # LoveIt NEW | 0.2.0 App icon config + # Section (all posts) page config + [params.section] + # special amount of posts in each section page + paginate = 20 + # date format (month and day) + dateFormat = "01-02" + # amount of RSS pages + rss = 10 + + # List (category or tag) page config + [params.list] + # special amount of posts in each list page + paginate = 20 + # date format (month and day) + dateFormat = "01-02" + # amount of RSS pages + rss = 10 + + # App icon config [params.app] # optional site title override for the app when added to an iOS home screen or Android launcher - title = "Daniel Mason" + title = "My cool site" # whether to omit favicon resource links noFavicon = false # modern SVG favicon to use in place of older style .png and .ico files @@ -82,9 +149,31 @@ theme = 'LoveIt' # Windows v8-10 tile color tileColor = "#da532c" + # Search config + [params.search] + enable = true + # type of search engine ["lunr", "algolia"] + type = "lunr" + # max index length of the chunked content + contentLength = 4000 + # placeholder of the search bar + placeholder = "" + # max number of results length + maxResultLength = 10 + # snippet length of the result + snippetLength = 30 + # HTML tag name of the highlight part in results + highlightTag = "em" + # whether to use the absolute URL based on the baseURL in search index + absoluteURL = false + [params.search.algolia] + index = "" + appID = "" + searchKey = "" + # Home page config [params.home] - # LoveIt NEW | 0.2.0 amount of RSS pages + # amount of RSS pages rss = 10 # Home page profile [params.home.profile] @@ -92,27 +181,27 @@ theme = 'LoveIt' # Gravatar Email for preferred avatar in home page gravatarEmail = "daniel@m2.nz" # URL of avatar shown in home page - avatarURL = "/bitmoji.jpg" - # LoveIt CHANGED | 0.2.7 title shown in home page (HTML format is supported) + avatarURL = "/images/avatar.png" + # title shown in home page (HTML format is supported) title = "Daniel Mason" - # subtitle shown in home page + # subtitle shown in home page (HTML format is supported) subtitle = "Site Reliability Engineer, Dad, Pilot" # whether to use typeit animation for subtitle - typeit = false + typeit = true # whether to show social links social = true - # LoveIt NEW | 0.2.0 disclaimer (HTML format is supported) + # disclaimer (HTML format is supported) disclaimer = "" # Home page posts [params.home.posts] enable = true # special amount of posts in each home posts page - paginate = 5 - # LoveIt DELETED | 0.2.0 replaced with hiddenFromHomePage in params.page + paginate = 6 + # replaced with hiddenFromHomePage in params.page # default behavior when you don't set "hiddenFromHomePage" in front matter defaultHiddenFromHomePage = false -# Social config about the author + # Social config about the author [params.social] GitHub = "idanoo" Linkedin = "idanoo" @@ -121,7 +210,7 @@ theme = 'LoveIt' Facebook = "" Telegram = "" Medium = "" - Gitlab = "" + Gitlab = "idanoo" Youtubelegacy = "" Youtubecustom = "" Youtubechannel = "" @@ -169,73 +258,86 @@ theme = 'LoveIt' Vine = "" Googlescholar = "" Researchgate = "" - # Mastodon = "@idanoo@mastodon.nz" + Mastodon = "" Thingiverse = "" Devto = "" Gitea = "" XMPP = "" Matrix = "" Bilibili = "" + Discord = "" + DiscordInvite = "" + Lichess = "" + ORCID = "" + Pleroma = "" + Kaggle = "" + MediaWiki= "" + Plume = "" + HackTheBox = "" + RootMe= "" + Malt = "" + TikTok = "" + TryHackMe = "" + Codeberg = "" + Phone = "" Email = "daniel@m2.nz" - RSS = false # LoveIt NEW | 0.2.0 - Pixelfed = "https://pixelfed.nz/idanoo" + RSS = false - - # LoveIt CHANGED | 0.2.0 Page global config + # Page global config [params.page] - # LoveIt NEW | 0.2.0 whether to hide a page from home page + # whether to hide a page from home page hiddenFromHomePage = false - # LoveIt NEW | 0.2.0 whether to hide a page from search results + # whether to hide a page from search results hiddenFromSearch = false - # LoveIt NEW | 0.2.0 whether to enable twemoji + # whether to enable twemoji twemoji = false # whether to enable lightgallery - lightgallery = true - # LoveIt NEW | 0.2.0 whether to enable the ruby extended syntax + lightgallery = false + # whether to enable the ruby extended syntax ruby = true - # LoveIt NEW | 0.2.0 whether to enable the fraction extended syntax + # whether to enable the fraction extended syntax fraction = true - # LoveIt NEW | 0.2.0 whether to enable the fontawesome extended syntax + # whether to enable the fontawesome extended syntax fontawesome = true # whether to show link to Raw Markdown content of the content linkToMarkdown = true - # LoveIt NEW | 0.2.4 whether to show the full text content in RSS + # whether to show the full text content in RSS rssFullText = false - # LoveIt NEW | 0.2.0 Table of the contents config + # Table of the contents config [params.page.toc] # whether to enable the table of the contents - enable = false - # LoveIt NEW | 0.2.9 whether to keep the static table of the contents in front of the post + enable = true + # whether to keep the static table of the contents in front of the post keepStatic = false # whether to make the table of the contents in the sidebar automatically collapsed auto = true - # LoveIt CHANGED | 0.2.0 KaTeX mathematical formulas + # KaTeX mathematical formulas [params.page.math] enable = true - # default inline delimiter is $ ... $ and \( ... \) + # default inline delimiter is $ ... $ and \( ... \) inlineLeftDelimiter = "" inlineRightDelimiter = "" - # default block delimiter is $$ ... $$, \[ ... \], \begin{equation} ... \end{equation} and some other functions + # default block delimiter is $$ ... $$, \[ ... \], \begin{equation} ... \end{equation} and some other functions blockLeftDelimiter = "" blockRightDelimiter = "" # KaTeX extension copy_tex copyTex = true # KaTeX extension mhchem mhchem = true - # LoveIt NEW | 0.2.0 Code config + # Code config [params.page.code] # whether to show the copy button of the code block copy = true # the maximum number of lines of displayed code by default maxShownLines = 50 - # LoveIt NEW | 0.2.0 Mapbox GL JS config + # Mapbox GL JS config [params.page.mapbox] # access token of Mapbox GL JS accessToken = "" # style for the light theme - lightStyle = "mapbox://styles/mapbox/light-v9" + lightStyle = "mapbox://styles/mapbox/light-v10?optimize=true" # style for the dark theme - darkStyle = "mapbox://styles/mapbox/dark-v9" + darkStyle = "mapbox://styles/mapbox/dark-v10?optimize=true" # whether to add NavigationControl navigation = true # whether to add GeolocateControl @@ -244,16 +346,16 @@ theme = 'LoveIt' scale = true # whether to add FullscreenControl fullscreen = true - # LoveIt CHANGED | 0.2.0 social share links in post page + # social share links in post page [params.page.share] enable = false - Twitter = false + Twitter = true Facebook = true Linkedin = false - Whatsapp = true + Whatsapp = false Pinterest = false Tumblr = false - HackerNews = false + HackerNews = true Reddit = false VK = false Buffer = false @@ -261,31 +363,27 @@ theme = 'LoveIt' Line = true Instapaper = false Pocket = false - Digg = false - Stumbleupon = false Flipboard = false Weibo = true - Renren = false - Myspace = true - Blogger = true + Blogger = false Baidu = false Odnoklassniki = false - Evernote = true + Evernote = false Skype = false Trello = false Mix = false - # LoveIt CHANGED | 0.2.0 Comment config + # Comment config [params.page.comment] enable = false # Disqus comment config [params.page.comment.disqus] - # LoveIt NEW | 0.1.1 + # enable = false # Disqus shortname to use Disqus in posts shortname = "" # Gitalk comment config [params.page.comment.gitalk] - # LoveIt NEW | 0.1.1 + # enable = false owner = "" repo = "" @@ -300,17 +398,18 @@ theme = 'LoveIt' avatar = "mp" meta= "" pageSize = 10 + # automatically adapt the current theme i18n configuration when empty lang = "" visitor = true recordIP = true highlight = true enableQQ = false serverURLs = "" - # LoveIt NEW | 0.2.6 emoji data file name, default is "google.yml" - # ("apple.yml", "google.yml", "facebook.yml", "twitter.yml") - # located in "themes/LoveIt/assets/data/emoji/" directory + # emoji data file name, default is "google.yml" + # ["apple.yml", "google.yml", "facebook.yml", "twitter.yml"] + # located in "themes/LoveIt/assets/lib/valine/emoji/" directory # you can store your own data files in the same path under your project: - # "assets/data/emoji/" + # "assets/lib/valine/emoji/" emoji = "" # Facebook comment config [params.page.comment.facebook] @@ -318,8 +417,9 @@ theme = 'LoveIt' width = "100%" numPosts = 10 appId = "" + # automatically adapt the current theme i18n configuration when empty languageCode = "" - # LoveIt NEW | 0.2.0 Telegram comments config + # Telegram comments config [params.page.comment.telegram] enable = false siteID = "" @@ -329,10 +429,10 @@ theme = 'LoveIt' colorful = true dislikes = false outlined = false - # LoveIt NEW | 0.2.0 Commento comment config + # Commento comment config [params.page.comment.commento] enable = false - # LoveIt NEW | 0.2.5 Utterances comment config + # utterances comment config [params.page.comment.utterances] enable = false # owner/repo @@ -341,7 +441,24 @@ theme = 'LoveIt' label = "" lightTheme = "github-light" darkTheme = "github-dark" - # LoveIt NEW | 0.2.7 Third-party library config + # giscus comment config (https://giscus.app/) + [params.page.comment.giscus] + # You can refer to the official documentation of giscus to use the following configuration. + enable = false + repo = "" + repoId = "" + category = "Announcements" + categoryId = "" + # automatically adapt the current theme i18n configuration when empty + lang = "" + mapping = "pathname" + reactionsEnabled = "1" + emitMetadata = "0" + inputPosition = "bottom" + lazyLoading = false + lightTheme = "light" + darkTheme = "dark" + # Third-party library config [params.page.library] [params.page.library.css] # someCSS = "some.css" @@ -353,7 +470,7 @@ theme = 'LoveIt' # located in "assets/" # Or # someJavascript = "https://cdn.example.com/some.js" - # LoveIt CHANGED | 0.2.10 Page SEO config + # Page SEO config [params.page.seo] # image URL images = [] @@ -362,7 +479,7 @@ theme = 'LoveIt' name = "" logoUrl = "" - # LoveIt NEW | 0.2.5 TypeIt config + # TypeIt config [params.typeit] # typing speed between each step (measured in milliseconds) speed = 100 @@ -381,14 +498,14 @@ theme = 'LoveIt' pinterest = "" baidu = "" - # LoveIt NEW | 0.2.10 Site SEO config + # Site SEO config [params.seo] # image URL image = "" # thumbnail URL thumbnailUrl = "" - # LoveIt NEW | 0.2.0 Analytics config + # Analytics config [params.analytics] enable = false # Google Analytics @@ -401,26 +518,32 @@ theme = 'LoveIt' id = "" # server url for your tracker if you're self hosting server = "" + # Plausible Analytics + [params.analytics.plausible] + dataDomain = "" + # Yandex Metrica + [params.analytics.yandexMetrica] + id = "" - # LoveIt NEW | 0.2.7 Cookie consent config + # Cookie consent config [params.cookieconsent] - enable = false + enable = true # text strings used for Cookie consent banner [params.cookieconsent.content] message = "" dismiss = "" link = "" - # LoveIt CHANGED | 0.2.7 CDN config for third-party library files + # CDN config for third-party library files [params.cdn] # CDN data file name, disabled by default - # ("jsdelivr.yml") + # ["jsdelivr.yml"] # located in "themes/LoveIt/assets/data/cdn/" directory # you can store your own data files in the same path under your project: # "assets/data/cdn/" data = "" - # LoveIt NEW | 0.2.8 Compatibility config + # Compatibility config [params.compatibility] # whether to use Polyfill.io to be compatible with older browsers polyfill = false @@ -436,7 +559,7 @@ theme = 'LoveIt' lineNos = true lineNumbersInTable = true # false is a necessary configuration - # (https://github.com/dillonzq/LoveIt/issues/158 ) + # (https://github.com/dillonzq/LoveIt/issues/158) noClasses = false # Goldmark is from Hugo 0.60 the default library used for Markdown [markup.goldmark] @@ -456,12 +579,6 @@ theme = 'LoveIt' startLevel = 2 endLevel = 6 -# Author config -[author] - name = "idanoo" - email = "daniel@m2.nz" - link = "https://m2.nz" - # Sitemap config [sitemap] changefreq = "weekly" @@ -475,7 +592,7 @@ theme = 'LoveIt' # Privacy config [privacy] - # LoveIt DELETED | 0.2.0 privacy of the Google Analytics (replaced by params.analytics.google) + # privacy of the Google Analytics (replaced by params.analytics.google) [privacy.googleAnalytics] # ... [privacy.twitter] @@ -496,10 +613,9 @@ theme = 'LoveIt' # Options to make hugo output files [outputs] - # LoveIt CHANGED | 0.2.0 + # home = ["HTML", "RSS", "JSON"] page = ["HTML", "MarkDown"] section = ["HTML", "RSS"] taxonomy = ["HTML", "RSS"] - taxonomyTerm = ["HTML"] - + taxonomyTerm = ["HTML"] \ No newline at end of file diff --git a/content/posts/configuring_aprs.md b/content/posts/configuring_aprs.md index f0f9d50..3a45405 100644 --- a/content/posts/configuring_aprs.md +++ b/content/posts/configuring_aprs.md @@ -1,8 +1,8 @@ --- title: "Configuring an APRS receiver with an RTL-SDR and Direwolf" tags: ["aprs", "amateur radio", "direwolf"] -date: "2021-12-16" -featuredimagepreview: "/aprs.jpg" +date: 2021-12-16 +# featuredimagepreview: "/aprs.jpg" --- What is APRS? Automatic Packet Reporting System! Essentially a VHF radio sending out GPS location pings in the 2M ham band which can be seen at [aprs.fi](https://aprs.fi/). If you take a look at that link you will often see radiosondes and their reported data, weather stations as well as bunch of amateur operators transmitting data all over the world. Fascinating stuff. diff --git a/content/posts/expand_opnsense_root_disk.md b/content/posts/expand_opnsense_root_disk.md index f3230d1..df5aff1 100644 --- a/content/posts/expand_opnsense_root_disk.md +++ b/content/posts/expand_opnsense_root_disk.md @@ -1,8 +1,8 @@ --- title: "Expanding OpnSense root disk (21.7+)" tags: ["opnsense", "disk"] -date: "2024-01-13" -featuredimagepreview: "/opnsense_expand.jpg" +date: 2024-01-13 +# featuredimagepreview: "/opnsense_expand.jpg" --- Expanding root partition on OpnSense VM diff --git a/content/posts/installing_latest_nginx.md b/content/posts/installing_latest_nginx.md new file mode 100644 index 0000000..90175d7 --- /dev/null +++ b/content/posts/installing_latest_nginx.md @@ -0,0 +1,38 @@ +--- +title: "Nginx stable install on debian/ubuntu from official repos" +tags: ["nginx", "debian", "ubuntu"] +date: 2025-02-22 +--- + +A lot of the time, intsalling nginx from ubuntu/debian repositories is out of date and sometimes we just want the latest version :shrug:. + +First up we want to install all required software and pull the latest signing key. + +**Run the following commands as the root user** +```shell +apt install -y curl gnupg2 ca-certificates lsb-release debian-archive-keyring +curl -s https://nginx.org/keys/nginx_signing.key | gpg --dearmor > /usr/share/keyrings/nginx-archive-keyring.gpg +``` + +The next step will vary depending on if you are using debian or ubuntu. + +**Debian:** +```shell +echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \ +http://nginx.org/packages/debian `lsb_release -cs` nginx" \ + | tee /etc/apt/sources.list.d/nginx.list +``` + +**Ubuntu:** +```shell +echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \ +http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \ + | tee /etc/apt/sources.list.d/nginx.list +``` + +Once we have the packages && keyring setup, it's time to install: +```shell +apt update && apt install -y nginx +``` + +Keep in mind, the latest version will have the vhosts configured under `/etc/nginx/conf.d` instead of the legacy `sites-enabled` folder. \ No newline at end of file diff --git a/content/posts/mastodon_influx.md b/content/posts/mastodon_influx.md index 62033ff..237ef65 100644 --- a/content/posts/mastodon_influx.md +++ b/content/posts/mastodon_influx.md @@ -1,8 +1,8 @@ --- title: "Mastodon.nz and the recent twitter influx" tags: ["mastodon", "twitter", "self hosting"] -date: "2022-05-09" -featuredimagepreview: "/server1.jpg" +date: 2022-05-09 +# featuredimagepreview: "/server1.jpg" --- Where to begin.. It's been an interesting fortnight! diff --git a/content/posts/nginx_geo_block.md b/content/posts/nginx_geo_block.md index 19eb874..59d67b9 100644 --- a/content/posts/nginx_geo_block.md +++ b/content/posts/nginx_geo_block.md @@ -1,7 +1,7 @@ --- title: "GeoIP blocking countries using Nginx" tags: ["nginx", "geoip", "spam", "geo block"] -date: "2024-04-06" +date: 2024-04-06 --- Quick and easy way to block entire countries using simple nginx rules. diff --git a/content/posts/proxmox_rm_recovery.md b/content/posts/proxmox_rm_recovery.md index ea5f8de..b498043 100644 --- a/content/posts/proxmox_rm_recovery.md +++ b/content/posts/proxmox_rm_recovery.md @@ -1,8 +1,8 @@ --- title: "Recovering from a root 'rm' and why you need backups" tags: ["recovery", "backup", "proxmox"] -date: "2021-02-06" -featuredimagepreview: "/proxmox.jpg" +date: 2021-02-06 +# featuredimagepreview: "/proxmox.jpg" --- Last week I was finally getting around to fixing my backup tooling and validating the recovery procedures. I thought it would be a good idea to have rolling nightly backups on a secondary ZFS pool with weekly syncs to an external disk. I ended up using this exact command to purge the rolling backups: diff --git a/content/posts/ssh_icloud_sync.md b/content/posts/ssh_icloud_sync.md index 8cab8c3..52e4da6 100644 --- a/content/posts/ssh_icloud_sync.md +++ b/content/posts/ssh_icloud_sync.md @@ -1,8 +1,8 @@ --- title: "iCloud synced SSH configs on macOS" tags: ["syncing", "config", "ssh"] -date: "2023-08-17" -featuredimagepreview: "/cathacker1.jpg" +date: 2023-08-17 +# featuredimagepreview: "/cathacker1.jpg" --- Maintaining SSH configs can be a pain when you're hopping between multiple devices, even more when syncing apps (Synology/NextCloud/etc) are blocked on some networks/devices. diff --git a/static/bitmoji.jpg b/static/bitmoji.jpg deleted file mode 100644 index c417a9c..0000000 Binary files a/static/bitmoji.jpg and /dev/null differ diff --git a/static/cathacker1.jpg b/static/cathacker1.jpg deleted file mode 100644 index 522055a..0000000 Binary files a/static/cathacker1.jpg and /dev/null differ diff --git a/themes/LoveIt/.babelrc b/themes/LoveIt/.babelrc index 5672c7a..9ae7a75 100644 --- a/themes/LoveIt/.babelrc +++ b/themes/LoveIt/.babelrc @@ -3,7 +3,7 @@ [ "@babel/preset-env", { - "targets": "> 0.25%, not dead" + "targets": "> 0.01%" } ] ] diff --git a/themes/LoveIt/.circleci/config.yml b/themes/LoveIt/.circleci/config.yml index 4752606..1d844bb 100644 --- a/themes/LoveIt/.circleci/config.yml +++ b/themes/LoveIt/.circleci/config.yml @@ -1,17 +1,37 @@ version: 2.1 + +executors: + hugo: + parameters: + version: + description: "version tag" + type: string + docker: + - image: cibuilds/hugo:<> + jobs: build-check: - docker: - - image: cibuilds/hugo:0.62 + parameters: + version: + description: "version tag" + type: string + executor: + name: hugo + version: <> working_directory: ~/LoveIt steps: - checkout - run: git submodule sync - run: git submodule update --init - - run: hugo --source=exampleSite -v --gc - - run: htmlproofer exampleSite/public --check-html --allow-hash-href --empty-alt-ignore --disable-external + - run: hugo --source exampleSite --gc --minify --environment production + - run: htmlproofer exampleSite/public --disable-external true --ignore-missing-alt true workflows: - build-check-exampleSite: + build-check: jobs: - - build-check + - build-check: + name: build-check-min + version: 0.128.0 + - build-check: + name: build-check-max + version: 0.144.2 diff --git a/themes/LoveIt/.husky/pre-commit b/themes/LoveIt/.husky/pre-commit index c628ef0..1819979 100755 --- a/themes/LoveIt/.husky/pre-commit +++ b/themes/LoveIt/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/zsh . "$(dirname "$0")/_/husky.sh" -npm run build && npm run copy && git add resources assets/js +npm run compile && npm run compile-lunr-segmentit && npm run hugo-production && npm run copy-resources && git add resources assets diff --git a/themes/LoveIt/README.md b/themes/LoveIt/README.md index d0de810..a14cbf2 100644 --- a/themes/LoveIt/README.md +++ b/themes/LoveIt/README.md @@ -1,9 +1,9 @@ -# LoveIt Theme | Hugo [![Netlify Status](https://api.netlify.com/api/v1/badges/e60303f2-862c-4342-bf59-7c9adb10812e/deploy-status)](https://app.netlify.com/sites/hugo-loveit/deploys) +# LoveIt Theme | Hugo [![GitHub release (latest by date)](https://img.shields.io/github/v/release/dillonzq/LoveIt?style=flat-square)](https://github.com/dillonzq/LoveIt/releases) -[![Hugo](https://img.shields.io/badge/Hugo-%5E0.62.0-ff4088?style=flat-square&logo=hugo)](https://gohugo.io/) +[![Hugo](https://img.shields.io/badge/Hugo-%5E0.128.0-ff4088?style=flat-square&logo=hugo)](https://gohugo.io/) [![License](https://img.shields.io/github/license/dillonzq/LoveIt?style=flat-square)](https://github.com/dillonzq/LoveIt/blob/master/LICENSE) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=dillonzq_LoveIt&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=dillonzq_LoveIt) +[![Netlify Status](https://api.netlify.com/api/v1/badges/e60303f2-862c-4342-bf59-7c9adb10812e/deploy-status)](https://app.netlify.com/sites/hugo-loveit/deploys) [![CircleCI](https://circleci.com/gh/dillonzq/LoveIt/tree/master.svg?style=svg)](https://circleci.com/gh/dillonzq/LoveIt/tree/master) English README | [简体中文说明](https://github.com/dillonzq/LoveIt/blob/master/README.zh-cn.md) @@ -85,7 +85,7 @@ I hope you will LoveIt ❤️! * **Gravatar** supported by [Gravatar](https://gravatar.com) * Local **Avatar** supported -* Up to **73** social links supported +* Up to **76** social links supported * Up to **24** share sites supported * **Disqus** comment system supported by [Disqus](https://disqus.com) * **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk) @@ -137,7 +137,7 @@ LoveIt supports the following languages: * Traditional Chinese * French * Polish -* Brazilian Portuguese +* Portuguese (Brazil) * Italian * Spanish * German @@ -153,6 +153,8 @@ LoveIt supports the following languages: * Turkish * Korean * Hindi +* Dutch +* Bengali * [Contribute with a new language](https://github.com/dillonzq/LoveIt/pulls) [Languages Compatibility](https://hugoloveit.com/theme-documentation-basics/#language-compatibility) diff --git a/themes/LoveIt/README.zh-cn.md b/themes/LoveIt/README.zh-cn.md index 1d76eb3..bbfd97e 100644 --- a/themes/LoveIt/README.zh-cn.md +++ b/themes/LoveIt/README.zh-cn.md @@ -1,9 +1,9 @@ -# LoveIt 主题 | Hugo [![Netlify Status](https://api.netlify.com/api/v1/badges/e60303f2-862c-4342-bf59-7c9adb10812e/deploy-status)](https://app.netlify.com/sites/hugo-loveit/deploys) +# LoveIt 主题 | Hugo [![GitHub release (latest by date)](https://img.shields.io/github/v/release/dillonzq/LoveIt?style=flat-square)](https://github.com/dillonzq/LoveIt/releases) -[![Hugo](https://img.shields.io/badge/Hugo-%5E0.62.0-ff4088?style=flat-square&logo=hugo)](https://gohugo.io/) +[![Hugo](https://img.shields.io/badge/Hugo-%5E0.128.0-ff4088?style=flat-square&logo=hugo)](https://gohugo.io/) [![License](https://img.shields.io/github/license/dillonzq/LoveIt?style=flat-square)](https://github.com/dillonzq/LoveIt/blob/master/LICENSE) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=dillonzq_LoveIt&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=dillonzq_LoveIt) +[![Netlify Status](https://api.netlify.com/api/v1/badges/e60303f2-862c-4342-bf59-7c9adb10812e/deploy-status)](https://app.netlify.com/sites/hugo-loveit/deploys) [![CircleCI](https://circleci.com/gh/dillonzq/LoveIt/tree/master.svg?style=svg)](https://circleci.com/gh/dillonzq/LoveIt/tree/master) [English README](https://github.com/dillonzq/LoveIt/blob/master/README.md) | 简体中文说明 @@ -62,7 +62,7 @@ * 支持 **[Fathom Analytics](https://usefathom.com/)** * 支持 **[Plausible Analytics](https://plausible.io/)** * 支持 **[Yandex Metrica](https://metrica.yandex.com/)** -* 支持搜索引擎的**网站验证** (Google, Bind, Yandex and Baidu) +* 支持搜索引擎的**网站验证** (Google, Bind, Yandex 和 Baidu) * 支持所有第三方库的 **CDN** * 基于 [lazysizes](https://github.com/aFarkas/lazysizes) 自动转换图片为**懒加载** @@ -80,7 +80,7 @@ * 支持 **[Gravatar](https://gravatar.com)** 头像 * 支持本地**头像** -* 支持多达 **73** 种社交链接 +* 支持多达 **76** 种社交链接 * 支持多达 **24** 种网站分享 * 支持 **[Disqus](https://disqus.com)** 评论系统 * 支持 **[Gitalk](https://github.com/gitalk/gitalk)** 评论系统 @@ -132,7 +132,7 @@ LoveIt 支持下列语言: * 繁体中文 * 法语 * 波兰语 -* 巴西葡萄牙语 +* 葡萄牙语(巴西) * 意大利语 * 西班牙语 * 德语 @@ -148,6 +148,8 @@ LoveIt 支持下列语言: * 土耳其语 * 韩语 * 印地语 +* 荷兰语 +* 孟加拉语 * [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls) [语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility) diff --git a/themes/LoveIt/archetypes/default.md b/themes/LoveIt/archetypes/default.md index b37d5eb..55df0fa 100644 --- a/themes/LoveIt/archetypes/default.md +++ b/themes/LoveIt/archetypes/default.md @@ -29,6 +29,7 @@ rssFullText: false toc: enable: true auto: true + keepStatic: false code: copy: true maxShownLines: 50 diff --git a/themes/LoveIt/assets/css/_core/_header.scss b/themes/LoveIt/assets/css/_core/_header.scss index b17aa94..ae38595 100644 --- a/themes/LoveIt/assets/css/_core/_header.scss +++ b/themes/LoveIt/assets/css/_core/_header.scss @@ -328,7 +328,7 @@ header { &.open { .header-wrapper { - margin-top: -var(--header-height); + margin-top: calc(0px - var(--header-height)); } .menu { diff --git a/themes/LoveIt/assets/css/_core/_media.scss b/themes/LoveIt/assets/css/_core/_media.scss index f90315d..48ce093 100644 --- a/themes/LoveIt/assets/css/_core/_media.scss +++ b/themes/LoveIt/assets/css/_core/_media.scss @@ -1,10 +1,16 @@ +@media only screen and (max-width: 1440px) { + .page { + width: 60%; + } +} + @media only screen and (max-width: 1440px) { .page { width: 56%; } } -@media only screen and (max-width: 1200px) { +@media only screen and (max-width: 1280px) { .page { width: 52%; } diff --git a/themes/LoveIt/assets/css/_page/_home.scss b/themes/LoveIt/assets/css/_page/_home.scss index ae7988a..6b68e11 100644 --- a/themes/LoveIt/assets/css/_page/_home.scss +++ b/themes/LoveIt/assets/css/_page/_home.scss @@ -1,4 +1,6 @@ .home { + padding-bottom: 5rem; + .home-profile { @include transform(translateY( 16vh)); padding: 0 0 .5rem; diff --git a/themes/LoveIt/assets/css/_page/_index.scss b/themes/LoveIt/assets/css/_page/_index.scss index 98437a8..1c1db65 100644 --- a/themes/LoveIt/assets/css/_page/_index.scss +++ b/themes/LoveIt/assets/css/_page/_index.scss @@ -1,7 +1,7 @@ .page { position: relative; - max-width: 800px; - width: 60%; + max-width: 1080px; + width: 64%; margin: 0 auto; [data-header-desktop] & { diff --git a/themes/LoveIt/assets/css/_page/_single.scss b/themes/LoveIt/assets/css/_page/_single.scss index 20c1579..9eeb2d8 100644 --- a/themes/LoveIt/assets/css/_page/_single.scss +++ b/themes/LoveIt/assets/css/_page/_single.scss @@ -167,7 +167,13 @@ } } - .table-wrapper { + table { + width: 100%; + max-width: 100%; + margin: .625rem 0; + border-spacing: 0; + background: $table-background-color; + border-collapse: collapse; overflow-x: auto; &::-webkit-scrollbar { @@ -178,33 +184,24 @@ } } - > table { - width: 100%; - max-width: 100%; - margin: .625rem 0; - border-spacing: 0; - background: $table-background-color; - border-collapse: collapse; + [theme=dark] & { + background: $table-background-color-dark; + } + + thead { + background: $table-thead-color; [theme=dark] & { - background: $table-background-color-dark; + background-color: $table-thead-color-dark; } + } - thead { - background: $table-thead-color; + th, td { + padding: .3rem 1rem; + border: 1px solid darken($table-thead-color, 2%); - [theme=dark] & { - background-color: $table-thead-color-dark; - } - } - - th, td { - padding: .3rem 1rem; - border: 1px solid darken($table-thead-color, 2%); - - [theme=dark] & { - border-color: darken($table-thead-color-dark, 2%); - } + [theme=dark] & { + border-color: darken($table-thead-color-dark, 2%); } } } @@ -212,6 +209,7 @@ img { max-width: 100%; min-height: 1em; + height: auto; } figure { @@ -263,6 +261,7 @@ } @import "../_partial/_single/code"; + @import "../_partial/_single/gist"; @import "../_partial/_single/instagram"; @import "../_partial/_single/admonition"; @import "../_partial/_single/echarts"; @@ -312,7 +311,7 @@ img { vertical-align: -12%; max-height: 1.1em; - margin-right: 0ex; + margin-right: 0; border-radius: 50%; } } diff --git a/themes/LoveIt/assets/css/_partial/_fixed-button.scss b/themes/LoveIt/assets/css/_partial/_fixed-button.scss index eaad26e..c430e51 100644 --- a/themes/LoveIt/assets/css/_partial/_fixed-button.scss +++ b/themes/LoveIt/assets/css/_partial/_fixed-button.scss @@ -2,11 +2,16 @@ display: none; } -.fixed-button { +#fixed-buttons-hidden { display: none; +} + +.fixed-button { + display: block; z-index: 100; position: fixed; right: 1.5rem; + bottom: 1.5rem; font-size: 1rem; line-height: 1.3rem; padding: .6rem .6rem; @@ -34,13 +39,16 @@ color: $global-font-color-dark; } } -} -#back-to-top { - display: block; - bottom: 1.5rem; -} + &:nth-last-of-type(1) { + bottom: 1.5rem; + } -#view-comments { - bottom: 4.5rem; + &:nth-last-of-type(2) { + bottom: 4.5rem; + } + + &:nth-last-of-type(3) { + bottom: 7.5rem; + } } diff --git a/themes/LoveIt/assets/css/_partial/_single/_code.scss b/themes/LoveIt/assets/css/_partial/_single/_code.scss index a573d46..76d2183 100644 --- a/themes/LoveIt/assets/css/_partial/_single/_code.scss +++ b/themes/LoveIt/assets/css/_partial/_single/_code.scss @@ -1,5 +1,5 @@ code { - display:inline-block; + display: inline-block; max-width: 100%; padding: 0 .4rem; @include overflow-wrap(break-word); @@ -15,7 +15,7 @@ code { pre { margin: 0; - padding: .25rem 0 .25rem .5rem; + padding: 8px; @include tab-size(4); code { @@ -29,106 +29,51 @@ pre { } } -code, pre, .highlight table, .highlight tr, .highlight td { - background: $code-background-color !important; +code, pre { + background: $code-background-color; [theme=dark] & { - background: $code-background-color-dark !important; + background: $code-background-color-dark; } } -.highlight { - font-family: var(--code-font-family); - font-size: var(--code-font-size); +.code-block { line-height: 1.4em; margin: .5rem 0; - .table-wrapper { - > table, - > table thead, - > table tr, - > table td { - margin: 0; - padding: 0; - border: none !important; + .code-header { + display: flex; + justify-content: space-between; + align-items: center; + box-sizing: border-box; + width: 100%; + font-family: var(--global-font-family); + font-weight: bold; + color: $code-info-color; + background: darken($code-background-color, 8%); - span.c { - white-space: nowrap; - } + [theme=dark] & { + color: $code-info-color-dark; + background: darken($code-background-color-dark, 6%); } - } - > .chroma { - position: relative; + &:hover { + cursor: pointer; + } - .code-header { - display: flex; - justify-content: space-between; - align-items: center; - box-sizing: border-box; + .code-title { width: 100%; - font-family: var(--global-font-family); - font-weight: bold; - color: $code-info-color; - background: darken($code-background-color, 8%); - - [theme=dark] & { - color: $code-info-color-dark; - background: darken($code-background-color-dark, 6%); - } - - &:hover { - cursor: pointer; - } - - .code-title { - width: 100%; - padding: .4rem; - } - - .code-title::after { - padding-left: .2rem; - content: "Code"; - } - - @each $type, $text in $code-type-list { - &.#{$type} .code-title::after { - content: $text; - } - } + padding: .4rem; } - .lntd:first-child { - min-width: 1.6rem; - text-align: right; + .code-title::after { + padding-left: .2rem; + content: "Code"; } - .lntd:last-child { - width: 100%; - - pre { - @include max-content(min-width); - } - } - - .ln { - padding-right: .75rem; - } - - .hl { - display: block; - background-color: darken($code-background-color, 10%); - - [theme=dark] & { - background-color: darken($code-background-color-dark, 5%); - } - } - - .ln, .lnt { - color: $global-font-secondary-color; - - [theme=dark] & { - color: $global-font-secondary-color-dark; + @each $type, $text in $code-type-list { + &.#{$type} .code-title::after { + content: $text; } } @@ -154,25 +99,57 @@ code, pre, .highlight table, .highlight tr, .highlight td { } } } + } - .table-wrapper { - max-height: 0; - overflow-y: hidden; - @include details-transition-open; + .highlight { + position: relative; + max-height: 0; + overflow-y: hidden; + @include details-transition-open; + background: $code-background-color; + + [theme=dark] & { + background: $code-background-color-dark; } - &.open { - .code-header { - background: darken($code-background-color, 3%); + .hl { + background-color: darken($code-background-color, 10%); - [theme=dark] & { - background: darken($code-background-color-dark, 3%); - } + [theme=dark] & { + background-color: darken($code-background-color-dark, 5%); } + } - .table-wrapper { - max-height: 10000px; - @include details-transition-close; + .c, /* Comment */ + .ch /* CommentHashbang */, + .cm /* CommentMultiline */, + .c1 /* CommentSingle */, + .cs /* CommentSpecial */, + .cp /* CommentPreproc */, + .cpf /* CommentPreprocFile */ { + font-style: italic + } + .gl /* GenericUnderline */ { + text-decoration: underline + } + + @each $class, $color in $code-highlight-color-map { + .#{$class} { color: $color; } + } + + [theme=dark] & { + @each $class, $color in $code-highlight-color-map-dark { + .#{$class} { color: $color; } + } + } + } + + &.open { + .code-header { + background: darken($code-background-color, 3%); + + [theme=dark] & { + background: darken($code-background-color-dark, 3%); } .arrow { @@ -187,213 +164,29 @@ code, pre, .highlight table, .highlight tr, .highlight td { display: inline; } } - } - /* Comment */ .c, - /* CommentHashbang */ .ch, - /* CommentMultiline */ .cm, - /* CommentSingle */ .c1, - /* CommentSpecial */ .cs, - /* CommentPreproc */ .cp, - /* CommentPreprocFile */ .cpf { font-style: italic } - /* GenericUnderline */ .gl { text-decoration: underline } - - @each $class, $color in $code-highlight-color-map { - .#{$class} { color: $color; } - } - - [theme=dark] & { - @each $class, $color in $code-highlight-color-map-dark { - .#{$class} { color: $color; } - } - } -} - -.gist { - font-family: var(--code-font-family); - font-size: var(--code-font-size); - - .table-wrapper { - > table, - > table thead, - > table tr, - > table td { - margin: 0; - padding: 0; - border: none !important; - } - } - - .gist-file, .gist-data, .gist-meta { - border: none; - } - - .gist-meta { - padding: .4rem .8rem; - background-color: darken($code-background-color, 5%); - - @include link(false, false); - - [theme=dark] & { - background-color: darken($code-background-color-dark, 5%); - } - } - - [theme=dark] & { - // imported from https://github.com/lonekorean/gist-syntax-themes/blob/master/stylesheets/one-dark.css .highlight { - background: #141414; + max-height: 10000px; + @include details-transition-close; } - .blob-num, - .blob-code-inner, - .highlight, - .pl-enm, - .pl-ko, - .pl-mo, - .pl-mp1 .pl-sf, - .pl-ms, - .pl-pdc1, - .pl-scp, - .pl-smc, - .pl-som, - .pl-va, - .pl-vpf, - .pl-vpu, - .pl-mdr { - color: #aab1bf; - } - .pl-mb, - .pl-pdb { - font-weight: 700; - } - .pl-c, - .pl-c span, - .pl-pdc { - color: #5b6270; - font-style: italic; - } - .pl-sr .pl-cce { - color: #56b5c2; - font-weight: 400; - } - .pl-ef, - .pl-en, - .pl-enf, - .pl-eoai, - .pl-kos, - .pl-mh .pl-pdh, - .pl-mr { - color: #61afef; - } - .pl-ens, - .pl-vi { - color: #be5046; - } - .pl-enti, - .pl-mai .pl-sf, - .pl-ml, - .pl-sf, - .pl-sr, - .pl-sr .pl-sra, - .pl-src, - .pl-st, - .pl-vo { - color: #56b5c2; - } - .pl-eoi, - .pl-mri, - .pl-pds, - .pl-pse .pl-s1, - .pl-s, - .pl-s1 { - color: #97c279; - } - .pl-k, - .pl-kolp, - .pl-mc, - .pl-pde { - color: #c578dd; - } - .pl-mi, - .pl-pdi { - color: #c578dd; - font-style: italic; - } - .pl-mp, - .pl-stp { - color: #818896; - } - .pl-mdh, - .pl-mdi, - .pl-mdr { - font-weight: 400; - } - .pl-mdht, - .pl-mi1 { - color: #97c279; - background: #020; - } - .pl-md, - .pl-mdhf { - color: #df6b75; - background: #200; - } - .pl-corl { - color: #df6b75; - text-decoration: underline; - } - .pl-ib { - background: #df6b75; - } - .pl-ii { - background: #e0c184; - color: #fff; - } - .pl-iu { - background: #e05151; - } - .pl-ms1 { - color: #aab1bf; - background: #373b41; - } - .pl-c1, - .pl-cn, - .pl-e, - .pl-eoa, - .pl-eoac, - .pl-eoac .pl-pde, - .pl-kou, - .pl-mm, - .pl-mp .pl-s3, - .pl-mq, - .pl-s3, - .pl-sok, - .pl-sv, - .pl-mb { - color: #d19965; - } - .pl-enc, - .pl-entc, - .pl-pse .pl-s2, - .pl-s2, - .pl-sc, - .pl-smp, - .pl-sr .pl-sre, - .pl-stj, - .pl-v, - .pl-pdb { - color: #e4bf7a; - } - .pl-ent, - .pl-entl, - .pl-entm, - .pl-mh, - .pl-pdv, - .pl-smi, - .pl-sol, - .pl-mdh, - .pl-mdi { - color: #df6b75; + } + + &.code-line-numbers { + span.line::before { + display: inline-block; + counter-increment: code-block; + content: counter(code-block); + min-width: 4ch; + text-align: right; + text-wrap: nowrap; + box-sizing: border-box; + border-width: 0; + margin-right: 1rem; + color: $code-info-color; + + [theme=dark] & { + color: $code-info-color-dark; + } } } } diff --git a/themes/LoveIt/assets/css/_partial/_single/_gist.scss b/themes/LoveIt/assets/css/_partial/_single/_gist.scss new file mode 100644 index 0000000..fabb8ad --- /dev/null +++ b/themes/LoveIt/assets/css/_partial/_single/_gist.scss @@ -0,0 +1,186 @@ +.gist { + font-family: var(--code-font-family); + font-size: var(--code-font-size); + + table, + table thead, + table tr, + table td { + margin: 0; + padding: 0; + border: none; + } + + .gist-file, .gist-data, .gist-meta { + border: none; + } + + .gist-meta { + padding: .4rem .8rem; + background-color: darken($code-background-color, 5%); + + @include link(false, false); + + [theme=dark] & { + background-color: darken($code-background-color-dark, 5%); + } + } + + [theme=dark] & { + // imported from https://github.com/lonekorean/gist-syntax-themes/blob/master/stylesheets/one-dark.css + .highlight { + background: #141414; + } + .blob-num, + .blob-code-inner, + .highlight, + .pl-enm, + .pl-ko, + .pl-mo, + .pl-mp1 .pl-sf, + .pl-ms, + .pl-pdc1, + .pl-scp, + .pl-smc, + .pl-som, + .pl-va, + .pl-vpf, + .pl-vpu, + .pl-mdr { + color: #aab1bf; + } + .pl-mb, + .pl-pdb { + font-weight: 700; + } + .pl-c, + .pl-c span, + .pl-pdc { + color: #5b6270; + font-style: italic; + } + .pl-sr .pl-cce { + color: #56b5c2; + font-weight: 400; + } + .pl-ef, + .pl-en, + .pl-enf, + .pl-eoai, + .pl-kos, + .pl-mh .pl-pdh, + .pl-mr { + color: #61afef; + } + .pl-ens, + .pl-vi { + color: #be5046; + } + .pl-enti, + .pl-mai .pl-sf, + .pl-ml, + .pl-sf, + .pl-sr, + .pl-sr .pl-sra, + .pl-src, + .pl-st, + .pl-vo { + color: #56b5c2; + } + .pl-eoi, + .pl-mri, + .pl-pds, + .pl-pse .pl-s1, + .pl-s, + .pl-s1 { + color: #97c279; + } + .pl-k, + .pl-kolp, + .pl-mc, + .pl-pde { + color: #c578dd; + } + .pl-mi, + .pl-pdi { + color: #c578dd; + font-style: italic; + } + .pl-mp, + .pl-stp { + color: #818896; + } + .pl-mdh, + .pl-mdi, + .pl-mdr { + font-weight: 400; + } + .pl-mdht, + .pl-mi1 { + color: #97c279; + background: #020; + } + .pl-md, + .pl-mdhf { + color: #df6b75; + background: #200; + } + .pl-corl { + color: #df6b75; + text-decoration: underline; + } + .pl-ib { + background: #df6b75; + } + .pl-ii { + background: #e0c184; + color: #fff; + } + .pl-iu { + background: #e05151; + } + .pl-ms1 { + color: #aab1bf; + background: #373b41; + } + .pl-c1, + .pl-cn, + .pl-e, + .pl-eoa, + .pl-eoac, + .pl-eoac .pl-pde, + .pl-kou, + .pl-mm, + .pl-mp .pl-s3, + .pl-mq, + .pl-s3, + .pl-sok, + .pl-sv, + .pl-mb { + color: #d19965; + } + .pl-enc, + .pl-entc, + .pl-pse .pl-s2, + .pl-s2, + .pl-sc, + .pl-smp, + .pl-sr .pl-sre, + .pl-stj, + .pl-v, + .pl-pdb { + color: #e4bf7a; + } + .pl-ent, + .pl-entl, + .pl-entm, + .pl-mh, + .pl-pdv, + .pl-smi, + .pl-sol, + .pl-mdh, + .pl-mdi { + color: #df6b75; + } + } +} diff --git a/themes/LoveIt/assets/css/_variables.scss b/themes/LoveIt/assets/css/_variables.scss index 915753d..a5dffc2 100644 --- a/themes/LoveIt/assets/css/_variables.scss +++ b/themes/LoveIt/assets/css/_variables.scss @@ -78,7 +78,7 @@ $search-background-color-dark: #363636 !default; // ========== Single Content ========== // // Font size of the TOC $toc-title-font-size: 1.2rem !default; -$toc-content-font-size: 1rem !default; +$toc-content-font-size: 0.875rem !default; // Color of the single link $single-link-color: #2d96bd !default; @@ -163,6 +163,7 @@ $code-type-list: "language-perl" "Perl", "language-powershell" "PowerShell", "language-posh" "PowerShell", + "language-puppet" "Puppet", "language-pwsh" "PowerShell", "language-python" "Python", "language-r" "R", diff --git a/themes/LoveIt/assets/data/cdn/cdnjs.yml b/themes/LoveIt/assets/data/cdn/cdnjs.yml index 6a923fa..d227063 100644 --- a/themes/LoveIt/assets/data/cdn/cdnjs.yml +++ b/themes/LoveIt/assets/data/cdn/cdnjs.yml @@ -11,8 +11,8 @@ libFiles: autocompleteJS: autocomplete.js/0.38.1/autocomplete.min.js # lunr.js@2.3.9 https://lunrjs.com/ lunrJS: lunr.js/2.3.9/lunr.min.js - # algoliasearch@4.13.1 https://github.com/algolia/algoliasearch-client-javascript - algoliasearchJS: algoliasearch/4.13.1/algoliasearch-lite.umd.min.js + # algoliasearch@5.19.0 https://github.com/algolia/algoliasearch-client-javascript + algoliasearchJS: algoliasearch/5.19.0/lite/builds/browser.umd.min.js # lazysizes@5.3.2 https://github.com/aFarkas/lazysizes lazysizesJS: lazysizes/5.3.2/lazysizes.min.js # object-fit-images@3.2.4 https://github.com/fregante/object-fit-images @@ -43,12 +43,12 @@ libFiles: mapboxGLJS: mapbox-gl/2.9.1/mapbox-gl.min.js # aplayer@1.10.1 https://github.com/MoePlayer/APlayer aplayerCSS: aplayer/1.10.1/APlayer.min.css - aplayerJS: aplayer/1.10.1/APlayer.min.js + #aplayerJS: aplayer/1.10.1/APlayer.min.js # gitalk@1.7.2 https://github.com/gitalk/gitalk gitalkCSS: gitalk/1.7.2/gitalk.min.css gitalkJS: gitalk/1.7.2/gitalk.min.js - # valine@1.5.0 https://valine.js.org/ - valineJS: valine/1.5.0/Valine.min.js + # valine@1.5.3 https://valine.js.org/ + valineJS: valine/1.5.3/Valine.min.js # cookieconsent@3.1.1 https://github.com/osano/cookieconsent cookieconsentCSS: cookieconsent/3.1.1/cookieconsent.min.css cookieconsentJS: cookieconsent/3.1.1/cookieconsent.min.js diff --git a/themes/LoveIt/assets/data/cdn/jsdelivr.yml b/themes/LoveIt/assets/data/cdn/jsdelivr.yml index b37dfe4..d5cae62 100644 --- a/themes/LoveIt/assets/data/cdn/jsdelivr.yml +++ b/themes/LoveIt/assets/data/cdn/jsdelivr.yml @@ -11,8 +11,8 @@ libFiles: autocompleteJS: autocomplete.js@0.38.1/dist/autocomplete.min.js # lunr.js@2.3.9 https://lunrjs.com/ lunrJS: lunr@2.3.9/lunr.min.js - # algoliasearch@4.13.1 https://github.com/algolia/algoliasearch-client-javascript - algoliasearchJS: algoliasearch@4.13.1/dist/algoliasearch-lite.umd.min.js + # algoliasearch@5.20.2 https://github.com/algolia/algoliasearch-client-javascript + algoliasearchJS: algoliasearch@5.20.2/dist/lite/builds/browser.umd.min.js # lazysizes@5.3.2 https://github.com/aFarkas/lazysizes lazysizesJS: lazysizes@5.3.2/lazysizes.min.js # object-fit-images@3.2.4 https://github.com/fregante/object-fit-images @@ -45,14 +45,14 @@ libFiles: mapboxGLJS: mapbox-gl@2.9.1/dist/mapbox-gl.min.js # aplayer@1.10.1 https://github.com/MoePlayer/APlayer aplayerCSS: aplayer@1.10.1/dist/APlayer.min.css - aplayerJS: aplayer@1.10.1/dist/APlayer.min.js + #aplayerJS: aplayer@1.10.1/dist/APlayer.min.js # meting@2.0.1 https://github.com/metowolf/MetingJS metingJS: meting@2.0.1/dist/Meting.min.js # gitalk@1.7.2 https://github.com/gitalk/gitalk gitalkCSS: gitalk@1.7.2/dist/gitalk.min.css gitalkJS: gitalk@1.7.2/dist/gitalk.min.js - # valine@1.5.0 https://valine.js.org/ - valineJS: valine@1.5.0/dist/Valine.min.js + # valine@1.5.3 https://valine.js.org/ + valineJS: valine@1.5.3/dist/Valine.min.js # cookieconsent@3.1.1 https://github.com/osano/cookieconsent cookieconsentCSS: cookieconsent@3.1.1/build/cookieconsent.min.css cookieconsentJS: cookieconsent@3.1.1/build/cookieconsent.min.js diff --git a/themes/LoveIt/assets/data/social.yml b/themes/LoveIt/assets/data/social.yml index b5f3fe3..f3410e4 100644 --- a/themes/LoveIt/assets/data/social.yml +++ b/themes/LoveIt/assets/data/social.yml @@ -49,7 +49,7 @@ telegram: # 007: Medium medium: Weight: 7 - Prefix: https://medium.com/ + Prefix: https://medium.com/@ Title: Medium Icon: Class: fab fa-medium fa-fw @@ -569,13 +569,37 @@ rootme: Icon: Src: svg/icons/rootme.svg -# 073: Pixelfed -pixelfed: +# 073: Malt +malt: Weight: 73 - Title: Pixelfed - Newtab: true + Prefix: https://www.malt.fr/profile/ + Title: Malt Icon: - Class: fas fa-camera fa-fw + Src: svg/icons/malt.svg + +# 074: TikTok +tiktok: + Weight: 74 + Url: https://www.tiktok.com/ + Title: TikTok + Icon: + Simpleicons: tiktok + +# 075: TryHackMe +tryhackme: + Weight: 75 + Title: TryHackMe + Prefix: https://tryhackme.com/p/ + Icon: + Simpleicons: Tryhackme + +# 076: Codeberg +codeberg: + Weight: 76 + Title: Codeberg + Prefix: https://codeberg.org/ + Icon: + Simpleicons: codeberg # Phone phone: diff --git a/themes/LoveIt/assets/js/theme.js b/themes/LoveIt/assets/js/theme.js index 6f2f730..a0d410d 100644 --- a/themes/LoveIt/assets/js/theme.js +++ b/themes/LoveIt/assets/js/theme.js @@ -2,6 +2,14 @@ function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); } +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } + +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } + +function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } + +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } @@ -27,7 +35,7 @@ var Util = /*#__PURE__*/function () { _classCallCheck(this, Util); } - _createClass(Util, [{ + _createClass(Util, null, [{ key: "forEach", value: function forEach(elements, handler) { elements = elements || []; @@ -83,8 +91,7 @@ var Theme = /*#__PURE__*/function () { this.config = window.config; this.data = this.config.data; this.isDark = document.body.getAttribute('theme') === 'dark'; - this.util = new Util(); - this.newScrollTop = this.util.getScrollTop(); + this.newScrollTop = Util.getScrollTop(); this.oldScrollTop = this.newScrollTop; this.scrollEventSet = new Set(); this.resizeEventSet = new Set(); @@ -98,14 +105,14 @@ var Theme = /*#__PURE__*/function () { value: function initRaw() { var _this = this; - this.util.forEach(document.querySelectorAll('[data-raw]'), function ($raw) { + Util.forEach(document.querySelectorAll('[data-raw]'), function ($raw) { $raw.innerHTML = _this.data[$raw.id]; }); } }, { key: "initSVGIcon", value: function initSVGIcon() { - this.util.forEach(document.querySelectorAll('[data-svg-src]'), function ($icon) { + Util.forEach(document.querySelectorAll('[data-svg-src]'), function ($icon) { fetch($icon.getAttribute('data-svg-src')).then(function (response) { return response.text(); }).then(function (svg) { @@ -150,7 +157,7 @@ var Theme = /*#__PURE__*/function () { value: function initSwitchTheme() { var _this2 = this; - this.util.forEach(document.getElementsByClassName('theme-switch'), function ($themeSwitch) { + Util.forEach(document.getElementsByClassName('theme-switch'), function ($themeSwitch) { $themeSwitch.addEventListener('click', function () { if (document.body.getAttribute('theme') === 'dark') document.body.setAttribute('theme', 'light');else document.body.setAttribute('theme', 'dark'); _this2.isDark = !_this2.isDark; @@ -178,7 +185,7 @@ var Theme = /*#__PURE__*/function () { var _this3 = this; var searchConfig = this.config.search; - var isMobile = this.util.isMobile(); + var isMobile = Util.isMobile(); if (!searchConfig || isMobile && this._searchMobileOnce || !isMobile && this._searchDesktopOnce) return; var maxResultLength = searchConfig.maxResultLength ? searchConfig.maxResultLength : 10; var snippetLength = searchConfig.snippetLength ? searchConfig.snippetLength : 50; @@ -291,10 +298,10 @@ var Theme = /*#__PURE__*/function () { position -= snippetLength / 5; if (position > 0) { - position += context.substr(position, 20).lastIndexOf(' ') + 1; - context = '...' + context.substr(position, snippetLength); + position += context.slice(position, position + 20).lastIndexOf(' ') + 1; + context = '...' + context.slice(position, position + snippetLength); } else { - context = context.substr(0, snippetLength); + context = context.slice(0, snippetLength); } Object.keys(metadata).forEach(function (key) { @@ -349,17 +356,24 @@ var Theme = /*#__PURE__*/function () { }); } else finish(search()); } else if (searchConfig.type === 'algolia') { - _this3._algoliaIndex = _this3._algoliaIndex || algoliasearch(searchConfig.algoliaAppID, searchConfig.algoliaSearchKey).initIndex(searchConfig.algoliaIndex); + var algoliasearch = window['algoliasearch/lite'].liteClient; + _this3._algoliaIndex = _this3._algoliaIndex || algoliasearch(searchConfig.algoliaAppID, searchConfig.algoliaSearchKey); - _this3._algoliaIndex.search(query, { - offset: 0, - length: maxResultLength * 8, - attributesToHighlight: ['title'], - attributesToSnippet: ["content:".concat(snippetLength)], - highlightPreTag: "<".concat(highlightTag, ">"), - highlightPostTag: "") + _this3._algoliaIndex.search({ + requests: [{ + indexName: searchConfig.algoliaIndex, + query: query, + offset: 0, + length: maxResultLength * 8, + attributesToHighlight: ['title'], + attributesToSnippet: ["content:".concat(snippetLength)], + highlightPreTag: "<".concat(highlightTag, ">"), + highlightPostTag: "") + }] }).then(function (_ref3) { - var hits = _ref3.hits; + var _ref3$results = _slicedToArray(_ref3.results, 1), + hits = _ref3$results[0].hits; + var results = {}; hits.forEach(function (_ref4) { var uri = _ref4.uri, @@ -427,7 +441,7 @@ var Theme = /*#__PURE__*/function () { if (script.readyState) { script.onreadystatechange = function () { - if (script.readyState == 'loaded' || script.readyState == 'complete') { + if (script.readyState === 'loaded' || script.readyState === 'complete') { script.onreadystatechange = null; initAutosearch(); } @@ -444,7 +458,7 @@ var Theme = /*#__PURE__*/function () { }, { key: "initDetails", value: function initDetails() { - this.util.forEach(document.getElementsByClassName('details'), function ($details) { + Util.forEach(document.getElementsByClassName('details'), function ($details) { var $summary = $details.getElementsByClassName('details-summary')[0]; $summary.addEventListener('click', function () { $details.classList.toggle('open'); @@ -471,78 +485,45 @@ var Theme = /*#__PURE__*/function () { }, { key: "initHighlight", value: function initHighlight() { - var _this5 = this; + Util.forEach(document.querySelectorAll('.code-block'), function ($codeBlock) { + var $codeTitle = $codeBlock.querySelector('.code-header > .code-title'); - this.util.forEach(document.querySelectorAll('.highlight > pre.chroma'), function ($preChroma) { - var $chroma = document.createElement('div'); - $chroma.className = $preChroma.className; - var $table = document.createElement('table'); - $chroma.appendChild($table); - var $tbody = document.createElement('tbody'); - $table.appendChild($tbody); - var $tr = document.createElement('tr'); - $tbody.appendChild($tr); - var $td = document.createElement('td'); - $tr.appendChild($td); - $preChroma.parentElement.replaceChild($chroma, $preChroma); - $td.appendChild($preChroma); - }); - this.util.forEach(document.querySelectorAll('.highlight > .chroma'), function ($chroma) { - var $codeElements = $chroma.querySelectorAll('pre.chroma > code'); - - if ($codeElements.length) { - var $code = $codeElements[$codeElements.length - 1]; - var $header = document.createElement('div'); - $header.className = 'code-header ' + $code.className.toLowerCase(); - var $title = document.createElement('span'); - $title.classList.add('code-title'); - $title.insertAdjacentHTML('afterbegin', ''); - $title.addEventListener('click', function () { - $chroma.classList.toggle('open'); + if ($codeTitle) { + $codeTitle.addEventListener('click', function () { + $codeBlock.classList.toggle('open'); }, false); - $header.appendChild($title); - var $ellipses = document.createElement('span'); - $ellipses.insertAdjacentHTML('afterbegin', ''); - $ellipses.classList.add('ellipses'); - $ellipses.addEventListener('click', function () { - $chroma.classList.add('open'); - }, false); - $header.appendChild($ellipses); - var $copy = document.createElement('span'); - $copy.insertAdjacentHTML('afterbegin', ''); - $copy.classList.add('copy'); - var code = $code.innerText; - if (_this5.config.code.maxShownLines < 0 || code.split('\n').length < _this5.config.code.maxShownLines + 2) $chroma.classList.add('open'); - - if (_this5.config.code.copyTitle) { - $copy.setAttribute('data-clipboard-text', code); - $copy.title = _this5.config.code.copyTitle; - var clipboard = new ClipboardJS($copy); - clipboard.on('success', function (_e) { - _this5.util.animateCSS($code, 'animate__flash'); - }); - $header.appendChild($copy); - } - - $chroma.insertBefore($header, $chroma.firstChild); } - }); - } - }, { - key: "initTable", - value: function initTable() { - this.util.forEach(document.querySelectorAll('.content table'), function ($table) { - var $wrapper = document.createElement('div'); - $wrapper.className = 'table-wrapper'; - $table.parentElement.replaceChild($wrapper, $table); - $wrapper.appendChild($table); + + var $ellipses = $codeBlock.querySelector('.code-header .ellipses'); + + if ($ellipses) { + $ellipses.addEventListener('click', function () { + $codeBlock.classList.toggle('open'); + }, false); + } + + var $copy = $codeBlock.querySelector('.code-header .copy'); + + if ($copy) { + var $code = $codeBlock.querySelector('code'); + $copy.setAttribute('data-clipboard-text', $code.innerText); + var clipboard = new ClipboardJS($copy); + var $codeLines = $code.querySelectorAll('span.cl'); + clipboard.on('success', function (_e) { + if ($codeLines) { + Util.forEach($codeLines, function ($codeLine) { + return Util.animateCSS($codeLine, 'animate__flash'); + }); + } + }); + } }); } }, { key: "initHeaderLink", value: function initHeaderLink() { for (var num = 1; num <= 6; num++) { - this.util.forEach(document.querySelectorAll('.single .content > h' + num), function ($header) { + Util.forEach(document.querySelectorAll('.single .content > h' + num), function ($header) { $header.classList.add('headerLink'); $header.insertAdjacentHTML('afterbegin', "")); }); @@ -551,12 +532,12 @@ var Theme = /*#__PURE__*/function () { }, { key: "initToc", value: function initToc() { - var _this6 = this; + var _this5 = this; var $tocCore = document.getElementById('TableOfContents'); if ($tocCore === null) return; - if (document.getElementById('toc-static').getAttribute('data-kept') || this.util.isTocStatic()) { + if (document.getElementById('toc-static').getAttribute('data-kept') || Util.isTocStatic()) { var $tocContentStatic = document.getElementById('toc-content-static'); if ($tocCore.parentElement !== $tocContentStatic) { @@ -593,10 +574,10 @@ var Theme = /*#__PURE__*/function () { var maxTocTop = footerTop - $toc.getBoundingClientRect().height; var maxScrollTop = maxTocTop - TOP_SPACING + (headerIsFixed ? 0 : headerHeight); - if (_this6.newScrollTop < minScrollTop) { + if (_this5.newScrollTop < minScrollTop) { $toc.style.position = 'absolute'; $toc.style.top = "".concat(minTocTop, "px"); - } else if (_this6.newScrollTop > maxScrollTop) { + } else if (_this5.newScrollTop > maxScrollTop) { $toc.style.position = 'absolute'; $toc.style.top = "".concat(maxTocTop, "px"); } else { @@ -604,14 +585,12 @@ var Theme = /*#__PURE__*/function () { $toc.style.top = "".concat(TOP_SPACING, "px"); } - _this6.util.forEach($tocLinkElements, function ($tocLink) { + Util.forEach($tocLinkElements, function ($tocLink) { $tocLink.classList.remove('active'); }); - - _this6.util.forEach($tocLiElements, function ($tocLi) { + Util.forEach($tocLiElements, function ($tocLi) { $tocLi.classList.remove('has-active'); }); - var INDEX_SPACING = 20 + (headerIsFixed ? headerHeight : 0); var activeTocIndex = $headerLinkElements.length - 1; @@ -619,7 +598,7 @@ var Theme = /*#__PURE__*/function () { var thisTop = $headerLinkElements[i].getBoundingClientRect().top; var nextTop = $headerLinkElements[i + 1].getBoundingClientRect().top; - if (i == 0 && thisTop > INDEX_SPACING || thisTop <= INDEX_SPACING && nextTop > INDEX_SPACING) { + if (i === 0 && thisTop > INDEX_SPACING || thisTop <= INDEX_SPACING && nextTop > INDEX_SPACING) { activeTocIndex = i; break; } @@ -649,7 +628,7 @@ var Theme = /*#__PURE__*/function () { }, { key: "initMermaid", value: function initMermaid() { - var _this7 = this; + var _this6 = this; this._mermaidOnSwitchTheme = this._mermaidOnSwitchTheme || function () { var $mermaidElements = document.getElementsByClassName('mermaid'); @@ -657,12 +636,11 @@ var Theme = /*#__PURE__*/function () { if ($mermaidElements.length) { mermaid.initialize({ startOnLoad: false, - theme: _this7.isDark ? 'dark' : 'neutral', + theme: _this6.isDark ? 'dark' : 'neutral', securityLevel: 'loose' }); - - _this7.util.forEach($mermaidElements, function ($mermaid) { - mermaid.render('svg-' + $mermaid.id, _this7.data[$mermaid.id], function (svgCode) { + Util.forEach($mermaidElements, function ($mermaid) { + mermaid.render('svg-' + $mermaid.id, _this6.data[$mermaid.id], function (svgCode) { $mermaid.innerHTML = svgCode; }, $mermaid); }); @@ -676,28 +654,27 @@ var Theme = /*#__PURE__*/function () { }, { key: "initEcharts", value: function initEcharts() { - var _this8 = this; + var _this7 = this; if (this.config.echarts) { echarts.registerTheme('light', this.config.echarts.lightTheme); echarts.registerTheme('dark', this.config.echarts.darkTheme); this._echartsOnSwitchTheme = this._echartsOnSwitchTheme || function () { - _this8._echartsArr = _this8._echartsArr || []; + _this7._echartsArr = _this7._echartsArr || []; - for (var i = 0; i < _this8._echartsArr.length; i++) { - _this8._echartsArr[i].dispose(); + for (var i = 0; i < _this7._echartsArr.length; i++) { + _this7._echartsArr[i].dispose(); } - _this8._echartsArr = []; - - _this8.util.forEach(document.getElementsByClassName('echarts'), function ($echarts) { - var chart = echarts.init($echarts, _this8.isDark ? 'dark' : 'light', { + _this7._echartsArr = []; + Util.forEach(document.getElementsByClassName('echarts'), function ($echarts) { + var chart = echarts.init($echarts, _this7.isDark ? 'dark' : 'light', { renderer: 'svg' }); - chart.setOption(JSON.parse(_this8.data[$echarts.id])); + chart.setOption(JSON.parse(_this7.data[$echarts.id])); - _this8._echartsArr.push(chart); + _this7._echartsArr.push(chart); }); }; @@ -706,8 +683,8 @@ var Theme = /*#__PURE__*/function () { this._echartsOnSwitchTheme(); this._echartsOnResize = this._echartsOnResize || function () { - for (var i = 0; i < _this8._echartsArr.length; i++) { - _this8._echartsArr[i].resize(); + for (var i = 0; i < _this7._echartsArr.length; i++) { + _this7._echartsArr[i].resize(); } }; @@ -717,30 +694,30 @@ var Theme = /*#__PURE__*/function () { }, { key: "initMapbox", value: function initMapbox() { - var _this9 = this; + var _this8 = this; if (this.config.mapbox) { mapboxgl.accessToken = this.config.mapbox.accessToken; mapboxgl.setRTLTextPlugin(this.config.mapbox.RTLTextPlugin); this._mapboxArr = this._mapboxArr || []; - this.util.forEach(document.getElementsByClassName('mapbox'), function ($mapbox) { - var _this9$data$$mapbox$i = _this9.data[$mapbox.id], - lng = _this9$data$$mapbox$i.lng, - lat = _this9$data$$mapbox$i.lat, - zoom = _this9$data$$mapbox$i.zoom, - lightStyle = _this9$data$$mapbox$i.lightStyle, - darkStyle = _this9$data$$mapbox$i.darkStyle, - marked = _this9$data$$mapbox$i.marked, - navigation = _this9$data$$mapbox$i.navigation, - geolocate = _this9$data$$mapbox$i.geolocate, - scale = _this9$data$$mapbox$i.scale, - fullscreen = _this9$data$$mapbox$i.fullscreen; + Util.forEach(document.getElementsByClassName('mapbox'), function ($mapbox) { + var _this8$data$$mapbox$i = _this8.data[$mapbox.id], + lng = _this8$data$$mapbox$i.lng, + lat = _this8$data$$mapbox$i.lat, + zoom = _this8$data$$mapbox$i.zoom, + lightStyle = _this8$data$$mapbox$i.lightStyle, + darkStyle = _this8$data$$mapbox$i.darkStyle, + marked = _this8$data$$mapbox$i.marked, + navigation = _this8$data$$mapbox$i.navigation, + geolocate = _this8$data$$mapbox$i.geolocate, + scale = _this8$data$$mapbox$i.scale, + fullscreen = _this8$data$$mapbox$i.fullscreen; var mapbox = new mapboxgl.Map({ container: $mapbox, center: [lng, lat], zoom: zoom, minZoom: .2, - style: _this9.isDark ? darkStyle : lightStyle, + style: _this8.isDark ? darkStyle : lightStyle, attributionControl: false }); @@ -772,16 +749,16 @@ var Theme = /*#__PURE__*/function () { mapbox.addControl(new MapboxLanguage()); - _this9._mapboxArr.push(mapbox); + _this8._mapboxArr.push(mapbox); }); this._mapboxOnSwitchTheme = this._mapboxOnSwitchTheme || function () { - _this9.util.forEach(_this9._mapboxArr, function (mapbox) { + Util.forEach(_this8._mapboxArr, function (mapbox) { var $mapbox = mapbox.getContainer(); - var _this9$data$$mapbox$i2 = _this9.data[$mapbox.id], - lightStyle = _this9$data$$mapbox$i2.lightStyle, - darkStyle = _this9$data$$mapbox$i2.darkStyle; - mapbox.setStyle(_this9.isDark ? darkStyle : lightStyle); + var _this8$data$$mapbox$i2 = _this8.data[$mapbox.id], + lightStyle = _this8$data$$mapbox$i2.lightStyle, + darkStyle = _this8$data$$mapbox$i2.darkStyle; + mapbox.setStyle(_this8.isDark ? darkStyle : lightStyle); mapbox.addControl(new MapboxLanguage()); }); }; @@ -792,7 +769,7 @@ var Theme = /*#__PURE__*/function () { }, { key: "initTypeit", value: function initTypeit() { - var _this10 = this; + var _this9 = this; if (this.config.typeit) { var typeitConfig = this.config.typeit; @@ -802,8 +779,8 @@ var Theme = /*#__PURE__*/function () { Object.values(typeitConfig.data).forEach(function (group) { var typeone = function typeone(i) { var id = group[i]; - var instance = new TypeIt("#".concat(id), { - strings: _this10.data[id], + new TypeIt("#".concat(id), { + strings: _this9.data[id], speed: speed, lifeLike: true, cursorSpeed: cursorSpeed, @@ -830,7 +807,7 @@ var Theme = /*#__PURE__*/function () { }, { key: "initComment", value: function initComment() { - var _this11 = this; + var _this10 = this; if (this.config.comment) { if (this.config.comment.gitalk) { @@ -857,7 +834,7 @@ var Theme = /*#__PURE__*/function () { this._utterancesOnSwitchTheme = this._utterancesOnSwitchTheme || function () { var message = { type: 'set-theme', - theme: _this11.isDark ? utterancesConfig.darkTheme : utterancesConfig.lightTheme + theme: _this10.isDark ? utterancesConfig.darkTheme : utterancesConfig.lightTheme }; var iframe = document.querySelector('.utterances-frame'); iframe.contentWindow.postMessage(message, 'https://utteranc.es'); @@ -889,7 +866,7 @@ var Theme = /*#__PURE__*/function () { this._giscusOnSwitchTheme = this._giscusOnSwitchTheme || function () { var message = { setConfig: { - theme: _this11.isDark ? giscusConfig.darkTheme : giscusConfig.lightTheme, + theme: _this10.isDark ? giscusConfig.darkTheme : giscusConfig.lightTheme, reactionsEnabled: false } }; @@ -912,7 +889,7 @@ var Theme = /*#__PURE__*/function () { }, { key: "onScroll", value: function onScroll() { - var _this12 = this; + var _this11 = this; var $headers = []; if (document.body.getAttribute('data-header-desktop') === 'auto') $headers.push(document.getElementById('header-desktop')); @@ -921,52 +898,46 @@ var Theme = /*#__PURE__*/function () { if (document.getElementById('comments')) { var $viewComments = document.getElementById('view-comments'); $viewComments.href = "#comments"; - $viewComments.style.display = 'block'; + $viewComments.parentElement.removeChild($viewComments); + document.getElementById('fixed-buttons').appendChild($viewComments); } var $fixedButtons = document.getElementById('fixed-buttons'); var ACCURACY = 20, MINIMUM = 100; window.addEventListener('scroll', function () { - _this12.newScrollTop = _this12.util.getScrollTop(); - var scroll = _this12.newScrollTop - _this12.oldScrollTop; - - var isMobile = _this12.util.isMobile(); - - _this12.util.forEach($headers, function ($header) { + _this11.newScrollTop = Util.getScrollTop(); + var scroll = _this11.newScrollTop - _this11.oldScrollTop; + var isMobile = Util.isMobile(); + Util.forEach($headers, function ($header) { if (scroll > ACCURACY) { $header.classList.remove('animate__fadeInDown'); - - _this12.util.animateCSS($header, ['animate__fadeOutUp', 'animate__faster'], true); + Util.animateCSS($header, ['animate__fadeOutUp', 'animate__faster'], true); } else if (scroll < -ACCURACY) { $header.classList.remove('animate__fadeOutUp'); - - _this12.util.animateCSS($header, ['animate__fadeInDown', 'animate__faster'], true); + Util.animateCSS($header, ['animate__fadeInDown', 'animate__faster'], true); } }); - if (_this12.newScrollTop > MINIMUM) { + if (_this11.newScrollTop > MINIMUM) { if (isMobile && scroll > ACCURACY) { $fixedButtons.classList.remove('animate__fadeIn'); - - _this12.util.animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true); + Util.animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true); } else if (!isMobile || scroll < -ACCURACY) { $fixedButtons.style.display = 'block'; $fixedButtons.classList.remove('animate__fadeOut'); - - _this12.util.animateCSS($fixedButtons, ['animate__fadeIn', 'animate__faster'], true); + Util.animateCSS($fixedButtons, ['animate__fadeIn', 'animate__faster'], true); } } else { if (!isMobile) { $fixedButtons.classList.remove('animate__fadeIn'); - - _this12.util.animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true); + Util.animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true); } $fixedButtons.style.display = 'none'; } - var _iterator2 = _createForOfIteratorHelper(_this12.scrollEventSet), + var _iterator2 = _createForOfIteratorHelper(_this11.scrollEventSet), _step2; try { @@ -980,20 +951,20 @@ var Theme = /*#__PURE__*/function () { _iterator2.f(); } - _this12.oldScrollTop = _this12.newScrollTop; + _this11.oldScrollTop = _this11.newScrollTop; }, false); } }, { key: "onResize", value: function onResize() { - var _this13 = this; + var _this12 = this; window.addEventListener('resize', function () { - if (!_this13._resizeTimeout) { - _this13._resizeTimeout = window.setTimeout(function () { - _this13._resizeTimeout = null; + if (!_this12._resizeTimeout) { + _this12._resizeTimeout = window.setTimeout(function () { + _this12._resizeTimeout = null; - var _iterator3 = _createForOfIteratorHelper(_this13.resizeEventSet), + var _iterator3 = _createForOfIteratorHelper(_this12.resizeEventSet), _step3; try { @@ -1007,11 +978,11 @@ var Theme = /*#__PURE__*/function () { _iterator3.f(); } - _this13.initToc(); + _this12.initToc(); - _this13.initMermaid(); + _this12.initMermaid(); - _this13.initSearch(); + _this12.initSearch(); }, 100); } }, false); @@ -1019,10 +990,10 @@ var Theme = /*#__PURE__*/function () { }, { key: "onClickMask", value: function onClickMask() { - var _this14 = this; + var _this13 = this; document.getElementById('mask').addEventListener('click', function () { - var _iterator4 = _createForOfIteratorHelper(_this14.clickMaskEventSet), + var _iterator4 = _createForOfIteratorHelper(_this13.clickMaskEventSet), _step4; try { @@ -1042,7 +1013,7 @@ var Theme = /*#__PURE__*/function () { }, { key: "init", value: function init() { - var _this15 = this; + var _this14 = this; try { this.initRaw(); @@ -1054,7 +1025,6 @@ var Theme = /*#__PURE__*/function () { this.initDetails(); this.initLightGallery(); this.initHighlight(); - this.initTable(); this.initHeaderLink(); this.initMath(); this.initMermaid(); @@ -1067,15 +1037,15 @@ var Theme = /*#__PURE__*/function () { } window.setTimeout(function () { - _this15.initToc(); + _this14.initToc(); - _this15.initComment(); + _this14.initComment(); - _this15.onScroll(); + _this14.onScroll(); - _this15.onResize(); + _this14.onResize(); - _this15.onClickMask(); + _this14.onClickMask(); }, 100); } }]); diff --git a/themes/LoveIt/assets/lib/VERSION b/themes/LoveIt/assets/lib/VERSION deleted file mode 100644 index 42d8aff..0000000 --- a/themes/LoveIt/assets/lib/VERSION +++ /dev/null @@ -1,24 +0,0 @@ -normalize.css@8.0.1 https://github.com/necolas/normalize.css -fontawesome-free@6.1.1 https://fontawesome.com/ -simple-icons@7.3.0 https://github.com/simple-icons/simple-icons -animate.css@4.1.1 https://github.com/daneden/animate.css -autocomplete@0.38.1 https://github.com/algolia/autocomplete -lunr.js@2.3.9 https://lunrjs.com/ -algoliasearch@4.13.1 https://github.com/algolia/algoliasearch-client-javascript -lazysizes@5.3.2 https://github.com/aFarkas/lazysizes -object-fit-images@3.2.4 https://github.com/fregante/object-fit-images -twemoji@14.0.2 https://github.com/twitter/twemoji -emoji-data@14.0.0 https://github.com/iamcal/emoji-data -lightgallery@2.5.0 https://github.com/sachinchoolur/lightgallery -clipboard.js@2.0.11 https://github.com/zenorocha/clipboard.js -sharer.js@0.5.1 https://github.com/ellisonleao/sharer.js -typeit@8.6.0 https://github.com/alexmacarthur/typeit -katex@0.16.0 https://katex.org/ -mermaid@9.1.3 https://github.com/mermaid-js/mermaid -echarts@5.3.3 https://echarts.apache.org/ -mapbox-gl@2.9.1 https://github.com/mapbox/mapbox-gl-js -aplayer@1.10.1 https://github.com/MoePlayer/APlayer -meting@2.0.1 https://github.com/metowolf/MetingJS -gitalk@1.7.2 https://github.com/gitalk/gitalk -valine@1.5.0 https://valine.js.org/ -cookieconsent@3.1.1 https://github.com/osano/cookieconsent diff --git a/themes/LoveIt/assets/lib/VERSION.md b/themes/LoveIt/assets/lib/VERSION.md new file mode 100644 index 0000000..a280edf --- /dev/null +++ b/themes/LoveIt/assets/lib/VERSION.md @@ -0,0 +1,28 @@ +# Dependency Libraries Version + +| Dependency Library | Directory | Version | +|:------------------------------------------------------------------------------------|:------------------|--------:| +| [Algolia Search Client](https://github.com/algolia/algoliasearch-client-javascript) | algoliasearch | 5.20.2 | +| [Animate.css](https://github.com/daneden/animate.css) | animate | 4.1.1 | +| [APlayer](https://github.com/MoePlayer/APlayer) | aplayer | 1.10.1 | +| [Autocomplete](https://github.com/algolia/autocomplete) | autocomplete | 0.38.1 | +| [clipboard.js](https://github.com/zenorocha/clipboard.js) | clipboard | 2.0.11 | +| [Cookie Consent](https://github.com/osano/cookieconsent) | cookieconsent | 3.1.1 | +| [Apache ECharts](https://github.com/apache/echarts) | echarts | 5.3.3 | +| [emoji-data](https://github.com/iamcal/emoji-data) | emoji-data | 15.1.2 | +| [Font Awesome Free](https://github.com/FortAwesome/Font-Awesome) | fontawesome-free | 6.1.1 | +| [Gitalk](https://github.com/gitalk/gitalk) | gitalk | 1.7.2 | +| [KaTeX](https://github.com/KaTeX/KaTeX) | katex | 0.16.0 | +| [lazysizes](https://github.com/aFarkas/lazysizes) | lazysizes | 5.3.2 | +| [lightGallery](https://github.com/sachinchoolur/lightgallery) | lightgallery | 2.5.0 | +| [Lunr.js](https://github.com/olivernn/lunr.js) | lunr | 2.3.9 | +| [Mapbox GL JS](https://github.com/mapbox/mapbox-gl-js) | mapbox-gl | 2.9.1 | +| [Mermaid](https://github.com/mermaid-js/mermaid) | mermaid | 9.1.3 | +| [MetingJS](https://github.com/metowolf/MetingJS) | meting | 2.0.1 | +| [normalize.css](https://github.com/necolas/normalize.css) | normalize | 8.0.1 | +| [object-fit-images](https://github.com/fregante/object-fit-images) | object-fit-images | 3.2.4 | +| [sharer.js](https://github.com/ellisonleao/sharer.js) | sharer | 0.5.1 | +| [Simple Icons](https://github.com/simple-icons/simple-icons) | simple-icons | 7.3.0 | +| [Twemoji](https://github.com/twitter/twemoji) | twemoji | 14.0.2 | +| [TypeIt](https://github.com/alexmacarthur/typeit) | typeit | 8.6.0 | +| [Valine](https://github.com/xCss/Valine) | valine | 1.5.3 | diff --git a/themes/LoveIt/assets/lib/algoliasearch/algoliasearch-lite.umd.min.js b/themes/LoveIt/assets/lib/algoliasearch/algoliasearch-lite.umd.min.js deleted file mode 100644 index 7eaf513..0000000 --- a/themes/LoveIt/assets/lib/algoliasearch/algoliasearch-lite.umd.min.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Skipped minification because the original files appears to be already minified. - * Original file: /npm/algoliasearch@4.13.1/dist/algoliasearch-lite.umd.js - * - * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files - */ -/*! algoliasearch-lite.umd.js | 4.13.1 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).algoliasearch=t()}(this,(function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var r=JSON.stringify(e),n=a()[r];return Promise.all([n||t(),void 0!==n])})).then((function(e){var t=o(e,2),n=t[0],a=t[1];return Promise.all([n,a||r.miss(n)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var o=a();return o[JSON.stringify(e)]=t,n().setItem(r,JSON.stringify(o)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=a();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r)}))}}}function i(e){var t=a(e.caches),r=t.shift();return void 0===r?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},n=t();return n.then((function(e){return Promise.all([e,r.miss(e)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(e,n,o).catch((function(){return i({caches:t}).get(e,n,o)}))},set:function(e,n){return r.set(e,n).catch((function(){return i({caches:t}).set(e,n)}))},delete:function(e){return r.delete(e).catch((function(){return i({caches:t}).delete(e)}))},clear:function(){return r.clear().catch((function(){return i({caches:t}).clear()}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var u=n(),i=o&&o.miss||function(){return Promise.resolve()};return u.then((function(e){return i(e)})).then((function(){return u}))},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function l(e,t){return t?(Object.keys(t).forEach((function(r){e[r]=t[r](e)})),e):e}function f(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var m={Read:1,Write:2,Any:3},p=1,v=2,y=3;function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return r(r({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:m.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||m.Any}}var O="GET",P="POST";function q(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(g(t))}))}))).then((function(e){var r=e.filter((function(e){return function(e){return e.status===p||Date.now()-e.lastUpdate>12e4}(e)})),n=e.filter((function(e){return function(e){return e.status===y&&Date.now()-e.lastUpdate<=12e4}(e)})),o=[].concat(a(r),a(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:o.length>0?o.map((function(e){return b(e)})):t}}))}function w(e,t,n,o){var u=[],i=function(e,t){if(e.method===O||void 0===e.data&&void 0===t.data)return;var n=Array.isArray(e.data)?e.data:r(r({},e.data),t.data);return JSON.stringify(n)}(n,o),s=function(e,t){var n=r(r({},e.headers),t.headers),o={};return Object.keys(n).forEach((function(e){var t=n[e];o[e.toLowerCase()]=t})),o}(e,o),c=n.method,l=n.method!==O?{}:r(r({},n.data),o.data),f=r(r(r({"x-algolia-agent":e.userAgent.value},e.queryParameters),l),o.queryParameters),h=0,d=function t(r,a){var l=r.pop();if(void 0===l)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:A(u)};var d={data:i,headers:s,method:c,url:S(l,n.path,f),connectTimeout:a(h,e.timeouts.connect),responseTimeout:a(h,o.timeout)},m=function(e){var t={request:d,response:e,host:l,triesLeft:r.length};return u.push(t),t},p={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(n){var o=m(n);return n.isTimedOut&&h++,Promise.all([e.logger.info("Retryable failure",x(o)),e.hostsCache.set(l,g(l,n.isTimedOut?y:v))]).then((function(){return t(r,a)}))},onFail:function(e){throw m(e),function(e,t){var r=e.content,n=e.status,o=r;try{o=JSON.parse(r).message}catch(e){}return function(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}(o,n,t)}(e,A(u))}};return e.requester.send(d).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,r=e.status;return!t&&0==~~r}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,p)}))};return q(e.hostsCache,t).then((function(e){return d(a(e.statelessHosts).reverse(),e.getTimeout)}))}function j(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var r="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(r)&&(t.value="".concat(t.value).concat(r)),t}};return t}function S(e,t,r){var n=T(r),o="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return n.length&&(o+="?".concat(n)),o}function T(e){return Object.keys(e).map((function(t){return f("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function A(e){return e.map((function(e){return x(e)}))}function x(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},e),{},{request:r(r({},e.request),{},{headers:r(r({},e.request.headers),t)})})}var N=function(e){var t=e.appId,n=function(e,t,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers:function(){return e===h.WithinHeaders?n:{}},queryParameters:function(){return e===h.WithinQueryParameters?n:{}}}}(void 0!==e.authMode?e.authMode:h.WithinHeaders,t,e.apiKey),a=function(e){var t=e.hostsCache,r=e.logger,n=e.requester,a=e.requestsCache,u=e.responsesCache,i=e.timeouts,s=e.userAgent,c=e.hosts,l=e.queryParameters,f={hostsCache:t,logger:r,requester:n,requestsCache:a,responsesCache:u,timeouts:i,userAgent:s,headers:e.headers,queryParameters:l,hosts:c.map((function(e){return b(e)})),read:function(e,t){var r=d(t,f.timeouts.read),n=function(){return w(f,f.hosts.filter((function(e){return 0!=(e.accept&m.Read)})),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return n();var a={request:e,mappedRequestOptions:r,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(a,(function(){return f.requestsCache.get(a,(function(){return f.requestsCache.set(a,n()).then((function(e){return Promise.all([f.requestsCache.delete(a),e])}),(function(e){return Promise.all([f.requestsCache.delete(a),Promise.reject(e)])})).then((function(e){var t=o(e,2);t[0];return t[1]}))}))}),{miss:function(e){return f.responsesCache.set(a,e)}})},write:function(e,t){return w(f,f.hosts.filter((function(e){return 0!=(e.accept&m.Write)})),e,d(t,f.timeouts.write))}};return f}(r(r({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:m.Read},{url:"".concat(t,".algolia.net"),accept:m.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:r(r(r({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:r(r({},n.queryParameters()),e.queryParameters)}));return l({transporter:a,appId:t,addAlgoliaAgent:function(e,t){a.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},e.methods)},C=function(e){return function(t,r){return t.method===O?e.transporter.read(t,r):e.transporter.write(t,r)}},k=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={transporter:e.transporter,appId:e.appId,indexName:t};return l(n,r.methods)}},J=function(e){return function(t,n){var o=t.map((function(e){return r(r({},e),{},{params:T(e.params||{})})}));return e.transporter.read({method:P,path:"1/indexes/*/queries",data:{requests:o},cacheable:!0},n)}},E=function(e){return function(t,o){return Promise.all(t.map((function(t){var a=t.params,u=a.facetName,i=a.facetQuery,s=n(a,["facetName","facetQuery"]);return k(e)(t.indexName,{methods:{searchForFacetValues:R}}).searchForFacetValues(u,i,r(r({},o),s))})))}},I=function(e){return function(t,r,n){return e.transporter.read({method:P,path:f("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},F=function(e){return function(t,r){return e.transporter.read({method:P,path:f("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},R=function(e){return function(t,r,n){return e.transporter.read({method:P,path:f("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},D=1,W=2,H=3;function Q(e,t,n){var o,a={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return r.setRequestHeader(t,e.headers[t])}));var n,o=function(e,n){return setTimeout((function(){r.abort(),t({status:0,content:n,isTimedOut:!0})}),1e3*e)},a=o(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=o(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},logger:(o=H,{debug:function(e,t){return D>=o&&console.debug(e,t),Promise.resolve()},info:function(e,t){return W>=o&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:i({caches:[u({key:"".concat("4.13.1","-").concat(e)}),s()]}),userAgent:j("4.13.1").add({segment:"Browser",version:"lite"}),authMode:h.WithinQueryParameters};return N(r(r(r({},a),n),{},{methods:{search:J,searchForFacetValues:E,multipleQueries:J,multipleSearchForFacetValues:E,customRequest:C,initIndex:function(e){return function(t){return k(e)(t,{methods:{search:F,searchForFacetValues:R,findAnswers:I}})}}}}))}return Q.version="4.13.1",Q})); \ No newline at end of file diff --git a/themes/LoveIt/assets/lib/algoliasearch/lite/browser.umd.js b/themes/LoveIt/assets/lib/algoliasearch/lite/browser.umd.js new file mode 100644 index 0000000..0b153a0 --- /dev/null +++ b/themes/LoveIt/assets/lib/algoliasearch/lite/browser.umd.js @@ -0,0 +1,12 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : + typeof define === 'function' && define.amd ? define(['exports'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["algoliasearch/lite"] = {})); +})(this, (function (exports) { 'use strict'; + + function F(){function r(e){return new Promise(o=>{let t=new XMLHttpRequest;t.open(e.method,e.url,true),Object.keys(e.headers).forEach(a=>t.setRequestHeader(a,e.headers[a]));let s=(a,n)=>setTimeout(()=>{t.abort(),o({status:0,content:n,isTimedOut:true});},a),m=s(e.connectTimeout,"Connection timeout"),i;t.onreadystatechange=()=>{t.readyState>t.OPENED&&i===void 0&&(clearTimeout(m),i=s(e.responseTimeout,"Socket timeout"));},t.onerror=()=>{t.status===0&&(clearTimeout(m),clearTimeout(i),o({content:t.responseText||"Network request failed",status:t.status,isTimedOut:false}));},t.onload=()=>{clearTimeout(m),clearTimeout(i),o({content:t.responseText,status:t.status,isTimedOut:false});},t.send(e.data);})}return {send:r}}function W(r){let e,o=`algolia-client-js-${r.key}`;function t(){return e===void 0&&(e=r.localStorage||window.localStorage),e}function s(){return JSON.parse(t().getItem(o)||"{}")}function m(a){t().setItem(o,JSON.stringify(a));}function i(){let a=r.timeToLive?r.timeToLive*1e3:null,n=s(),p=Object.fromEntries(Object.entries(n).filter(([,h])=>h.timestamp!==void 0));if(m(p),!a)return;let f=Object.fromEntries(Object.entries(p).filter(([,h])=>{let P=new Date().getTime();return !(h.timestamp+aPromise.resolve()}){return Promise.resolve().then(()=>(i(),s()[JSON.stringify(a)])).then(f=>Promise.all([f?f.value:n(),f!==void 0])).then(([f,h])=>Promise.all([f,h||p.miss(f)])).then(([f])=>f)},set(a,n){return Promise.resolve().then(()=>{let p=s();return p[JSON.stringify(a)]={timestamp:new Date().getTime(),value:n},t().setItem(o,JSON.stringify(p)),n})},delete(a){return Promise.resolve().then(()=>{let n=s();delete n[JSON.stringify(a)],t().setItem(o,JSON.stringify(n));})},clear(){return Promise.resolve().then(()=>{t().removeItem(o);})}}}function K(){return {get(r,e,o={miss:()=>Promise.resolve()}){return e().then(s=>Promise.all([s,o.miss(s)])).then(([s])=>s)},set(r,e){return Promise.resolve(e)},delete(r){return Promise.resolve()},clear(){return Promise.resolve()}}}function v(r){let e=[...r.caches],o=e.shift();return o===void 0?K():{get(t,s,m={miss:()=>Promise.resolve()}){return o.get(t,s,m).catch(()=>v({caches:e}).get(t,s,m))},set(t,s){return o.set(t,s).catch(()=>v({caches:e}).set(t,s))},delete(t){return o.delete(t).catch(()=>v({caches:e}).delete(t))},clear(){return o.clear().catch(()=>v({caches:e}).clear())}}}function A(r={serializable:true}){let e={};return {get(o,t,s={miss:()=>Promise.resolve()}){let m=JSON.stringify(o);if(m in e)return Promise.resolve(r.serializable?JSON.parse(e[m]):e[m]);let i=t();return i.then(a=>s.miss(a)).then(()=>i)},set(o,t){return e[JSON.stringify(o)]=r.serializable?JSON.stringify(t):t,Promise.resolve(t)},delete(o){return delete e[JSON.stringify(o)],Promise.resolve()},clear(){return e={},Promise.resolve()}}}function Y(r){let e={value:`Algolia for JavaScript (${r})`,add(o){let t=`; ${o.segment}${o.version!==void 0?` (${o.version})`:""}`;return e.value.indexOf(t)===-1&&(e.value=`${e.value}${t}`),e}};return e}function M(r,e,o="WithinHeaders"){let t={"x-algolia-api-key":e,"x-algolia-application-id":r};return {headers(){return o==="WithinHeaders"?t:{}},queryParameters(){return o==="WithinQueryParameters"?t:{}}}}function j({algoliaAgents:r,client:e,version:o}){let t=Y(o).add({segment:e,version:o});return r.forEach(s=>t.add(s)),t}function I(){return {debug(r,e){return Promise.resolve()},info(r,e){return Promise.resolve()},error(r,e){return Promise.resolve()}}}var H=2*60*1e3;function U(r,e="up"){let o=Date.now();function t(){return e==="up"||Date.now()-o>H}function s(){return e==="timed out"&&Date.now()-o<=H}return {...r,status:e,lastUpdate:o,isUp:t,isTimedOut:s}}var J=class extends Error{name="AlgoliaError";constructor(r,e){super(r),e&&(this.name=e);}},z=class extends J{stackTrace;constructor(r,e,o){super(r,o),this.stackTrace=e;}},Z=class extends z{constructor(r){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",r,"RetryError");}},N=class extends z{status;constructor(r,e,o,t="ApiError"){super(r,o,t),this.status=e;}},ee=class extends J{response;constructor(r,e){super(r,"DeserializationError"),this.response=e;}},re=class extends N{error;constructor(r,e,o,t){super(r,e,t,"DetailedApiError"),this.error=o;}};function G(r){let e=r;for(let o=r.length-1;o>0;o--){let t=Math.floor(Math.random()*(o+1)),s=r[o];e[o]=r[t],e[t]=s;}return e}function te(r,e,o){let t=oe(o),s=`${r.protocol}://${r.url}${r.port?`:${r.port}`:""}/${e.charAt(0)==="/"?e.substring(1):e}`;return t.length&&(s+=`?${t}`),s}function oe(r){return Object.keys(r).filter(e=>r[e]!==void 0).sort().map(e=>`${e}=${encodeURIComponent(Object.prototype.toString.call(r[e])==="[object Array]"?r[e].join(","):r[e]).replace(/\+/g,"%20")}`).join("&")}function ae(r,e){if(r.method==="GET"||r.data===void 0&&e.data===void 0)return;let o=Array.isArray(r.data)?r.data:{...r.data,...e.data};return JSON.stringify(o)}function se(r,e,o){let t={Accept:"application/json",...r,...e,...o},s={};return Object.keys(t).forEach(m=>{let i=t[m];s[m.toLowerCase()]=i;}),s}function ne(r){try{return JSON.parse(r.content)}catch(e){throw new ee(e.message,r)}}function ie({content:r,status:e},o){try{let t=JSON.parse(r);return "error"in t?new re(t.message,e,t.error,o):new N(t.message,e,o)}catch{}return new N(r,e,o)}function ce({isTimedOut:r,status:e}){return !r&&~~e===0}function me({isTimedOut:r,status:e}){return r||ce({isTimedOut:r,status:e})||~~(e/100)!==2&&~~(e/100)!==4}function ue({status:r}){return ~~(r/100)===2}function le(r){return r.map(e=>Q(e))}function Q(r){let e=r.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return {...r,request:{...r.request,headers:{...r.request.headers,...e}}}}function B({hosts:r,hostsCache:e,baseHeaders:o,logger:t,baseQueryParameters:s,algoliaAgent:m,timeouts:i,requester:a,requestsCache:n,responsesCache:p}){async function f(u){let c=await Promise.all(u.map(l=>e.get(l,()=>Promise.resolve(U(l))))),x=c.filter(l=>l.isUp()),g=c.filter(l=>l.isTimedOut()),w=[...x,...g];return {hosts:w.length>0?w:u,getTimeout(l,T){return (g.length===0&&l===0?1:g.length+3+l)*T}}}async function h(u,c,x=true){let g=[],w=ae(u,c),y=se(o,u.headers,c.headers),l=u.method==="GET"?{...u.data,...c.data}:{},T={...s,...u.queryParameters,...l};if(m.value&&(T["x-algolia-agent"]=m.value),c&&c.queryParameters)for(let d of Object.keys(c.queryParameters))!c.queryParameters[d]||Object.prototype.toString.call(c.queryParameters[d])==="[object Object]"?T[d]=c.queryParameters[d]:T[d]=c.queryParameters[d].toString();let S=0,L=async(d,b)=>{let E=d.pop();if(E===void 0)throw new Z(le(g));let q={...i,...c.timeouts},D={data:w,headers:y,method:u.method,url:te(E,u.path,T),connectTimeout:b(S,q.connect),responseTimeout:b(S,x?q.read:q.write)},$=C=>{let k={request:D,response:C,host:E,triesLeft:d.length};return g.push(k),k},R=await a.send(D);if(me(R)){let C=$(R);return R.isTimedOut&&S++,t.info("Retryable failure",Q(C)),await e.set(E,U(E,R.isTimedOut?"timed out":"down")),L(d,b)}if(ue(R))return ne(R);throw $(R),ie(R,g)},X=r.filter(d=>d.accept==="readWrite"||(x?d.accept==="read":d.accept==="write")),_=await f(X);return L([..._.hosts].reverse(),_.getTimeout)}function P(u,c={}){let x=u.useReadTransporter||u.method==="GET";if(!x)return h(u,c,x);let g=()=>h(u,c);if((c.cacheable||u.cacheable)!==true)return g();let y={request:u,requestOptions:c,transporter:{queryParameters:s,headers:o}};return p.get(y,()=>n.get(y,()=>n.set(y,g()).then(l=>Promise.all([n.delete(y),l]),l=>Promise.all([n.delete(y),Promise.reject(l)])).then(([l,T])=>T)),{miss:l=>p.set(y,l)})}return {hostsCache:e,requester:a,timeouts:i,logger:t,algoliaAgent:m,baseHeaders:o,baseQueryParameters:s,hosts:r,request:P,requestsCache:n,responsesCache:p}}var O="5.20.2";function pe(r){return [{url:`${r}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${r}.algolia.net`,accept:"write",protocol:"https"}].concat(G([{url:`${r}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${r}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${r}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}function V({appId:r,apiKey:e,authMode:o,algoliaAgents:t,...s}){let m=M(r,e,o),i=B({hosts:pe(r),...s,algoliaAgent:j({algoliaAgents:t,client:"Lite",version:O}),baseHeaders:{"content-type":"text/plain",...m.headers(),...s.baseHeaders},baseQueryParameters:{...m.queryParameters(),...s.baseQueryParameters}});return {transporter:i,appId:r,apiKey:e,clearCache(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then(()=>{})},get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(a,n){i.algoliaAgent.add({segment:a,version:n});},setClientApiKey({apiKey:a}){!o||o==="WithinHeaders"?i.baseHeaders["x-algolia-api-key"]=a:i.baseQueryParameters["x-algolia-api-key"]=a;},searchForHits(a,n){return this.search(a,n)},searchForFacets(a,n){return this.search(a,n)},customPost({path:a,parameters:n,body:p},f){if(!a)throw new Error("Parameter `path` is required when calling `customPost`.");let c={method:"POST",path:"/{path}".replace("{path}",a),queryParameters:n||{},headers:{},data:p||{}};return i.request(c,f)},getRecommendations(a,n){if(a&&Array.isArray(a)&&(a={requests:a}),!a)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!a.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");let P={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:a,useReadTransporter:true,cacheable:true};return i.request(P,n)},search(a,n){if(a&&Array.isArray(a)&&(a={requests:a.map(({params:c,...x})=>x.type==="facet"?{...x,...c,type:"facet"}:{...x,...c,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}),!a)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!a.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");let P={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:a,useReadTransporter:true,cacheable:true};return i.request(P,n)}}}function It(r,e,o){if(!r||typeof r!="string")throw new Error("`appId` is missing.");if(!e||typeof e!="string")throw new Error("`apiKey` is missing.");return V({appId:r,apiKey:e,timeouts:{connect:1e3,read:2e3,write:3e4},logger:I(),requester:F(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:A(),requestsCache:A({serializable:false}),hostsCache:v({caches:[W({key:`${O}-${r}`}),A()]}),...o})} + + exports.apiClientVersion = O; + exports.liteClient = It; + +})); diff --git a/themes/LoveIt/assets/lib/aplayer/APlayer.min.js b/themes/LoveIt/assets/lib/aplayer/APlayer.min.js index 6ba17e3..ea619c7 100644 --- a/themes/LoveIt/assets/lib/aplayer/APlayer.min.js +++ b/themes/LoveIt/assets/lib/aplayer/APlayer.min.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("APlayer",[],t):"object"==typeof exports?exports.APlayer=t():e.APlayer=t()}(window,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=41)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/mobile/i.test(window.navigator.userAgent),a={secondToTime:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),i=Math.floor(e-3600*t-60*n);return(t>0?[t,n,i]:[n,i]).map(function(e){return e<10?"0"+e:""+e}).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,n=e.offsetParent,i=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==n&&n!==e;)t+=n.offsetLeft,n=n.offsetParent;else for(;null!==n;)t+=n.offsetLeft,n=n.offsetParent;return t-i},getElementViewTop:function(e,t){for(var n,i=e.offsetTop,a=e.offsetParent;null!==a;)i+=a.offsetTop,a=a.offsetParent;return n=document.body.scrollTop+document.documentElement.scrollTop,t?i:i-n},isMobile:i,storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:i?"touchstart":"mousedown",dragMove:i?"touchmove":"mousemove",dragEnd:i?"touchend":"mouseup"},randomOrder:function(e){return function(e){for(var t=e.length-1;t>=0;t--){var n=Math.floor(Math.random()*(t+1)),i=e[n];e[n]=e[t],e[t]=i}return e}([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t\n ',t+=r(n+s),t+='\n ',t+=r(e.name),t+='\n ',t+=r(e.artist),t+="\n\n"}),t}},function(e,t,n){"use strict";e.exports=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=g(n(33)),a=g(n(32)),r=g(n(31)),o=g(n(30)),s=g(n(29)),l=g(n(28)),u=g(n(27)),c=g(n(26)),p=g(n(25)),d=g(n(24)),h=g(n(23)),y=g(n(22)),f=g(n(21)),v=g(n(20)),m=g(n(19));function g(e){return e&&e.__esModule?e:{default:e}}var w={play:i.default,pause:a.default,volumeUp:r.default,volumeDown:o.default,volumeOff:s.default,orderRandom:l.default,orderList:u.default,menu:c.default,loopAll:p.default,loopOne:d.default,loopNone:h.default,loading:y.default,right:f.default,skip:v.default,lrc:m.default};t.default=w},function(e,t,n){"use strict";var i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":a(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";var i,a,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};void 0===(a="function"==typeof(i=function(){if("object"===("undefined"==typeof window?"undefined":r(window))&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var e=function(e,t,n,i){return n>i?t:e+(t-e)*((a=n/i)<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1);var a},t=function(t,n,i,a){n=n||500;var r=(a=a||window).scrollTop||window.pageYOffset;if("number"==typeof t)var o=parseInt(t);else var o=function(e,t){return"HTML"===e.nodeName?-t:e.getBoundingClientRect().top+t}(t,r);var s=Date.now(),l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)};!function u(){var c=Date.now()-s;a!==window?a.scrollTop=e(r,o,c,n):window.scroll(0,e(r,o,c,n)),c>n?"function"==typeof i&&i(t):l(u)}()},n=function(e){if(!e.defaultPrevented){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var n=document.getElementById(this.hash.substring(1));if(!n)return;t(n,500,function(e){location.replace("#"+e.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var e,t=document.querySelectorAll('a[href^="#"]:not([href="#"])'),i=t.length;e=t[--i];)e.addEventListener("click",n,!1)}),t}})?i.call(t,n,t,e):i)||(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n1),n=0===this.audios.length;this.player.template.listOl.innerHTML+=(0,a.default)({theme:this.player.options.theme,audio:e,index:this.audios.length+1}),this.audios=this.audios.concat(e),t&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=r.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=e.theme||this.player.options.theme,n&&("random"===this.player.options.order?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(e){if(this.player.events.trigger("listremove",{index:e}),this.audios[e])if(this.audios.length>1){var t=this.player.container.querySelectorAll(".aplayer-list li");t[e].remove(),this.audios.splice(e,1),this.player.lrc&&this.player.lrc.remove(e),e===this.index&&(this.audios[e]?this.switch(e):this.switch(e-1)),this.index>e&&this.index--;for(var n=e;nt&&!e.player.audio.paused&&(e.player.container.classList.remove("aplayer-loading"),i=!1),t=n)},100)}},{key:"enable",value:function(e){this["enable"+e+"Checker"]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable"+e+"Checker"]=!1}},{key:"destroy",value:function(){var e=this;this.types.forEach(function(t){e["enable"+t+"Checker"]=!1,e[t+"Checker"]&&clearInterval(e[t+"Checker"])})}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n1?"one"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=r.default.loopNone):"none"===e.player.options.loop?(e.player.options.loop="all",e.player.template.loop.innerHTML=r.default.loopAll):"all"===e.player.options.loop&&(e.player.options.loop="one",e.player.template.loop.innerHTML=r.default.loopOne):"one"===e.player.options.loop||"all"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=r.default.loopNone):"none"===e.player.options.loop&&(e.player.options.loop="all",e.player.template.loop.innerHTML=r.default.loopAll)})}},{key:"initMenuButton",value:function(){var e=this;this.player.template.menu.addEventListener("click",function(){e.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var e=this;this.player.template.miniSwitcher.addEventListener("click",function(){e.player.setMode("mini"===e.player.mode?"normal":"mini")})}},{key:"initSkipButton",value:function(){var e=this;this.player.template.skipBackButton.addEventListener("click",function(){e.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){e.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){e.player.toggle()})}},{key:"initLrcButton",value:function(){var e=this;this.player.template.lrcButton.addEventListener("click",function(){e.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(e.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.show()):(e.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.hide())})}}]),e}();t.default=s},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.lyrics,r=(e.$value,e.$index,i.$escape);return n(a,function(e,n){t+="\n \n"}),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||e=this.current[this.index+1][0])for(var t=0;t=this.current[t][0]&&(!this.current[t+1]||e=200&&n.status<300||304===n.status?t.parsed[e]=t.parse(n.responseText):(t.player.notice("LRC file request fails: status "+n.status),t.parsed[e]=[["00:00","Not available"]]),t.container.innerHTML=(0,o.default)({lyrics:t.parsed[e]}),t.update(0),t.current=t.parsed[e])};var i=this.player.list.audios[e].lrc;n.open("get",i,!0),n.send(null)}else this.player.list.audios[e].lrc?this.parsed[e]=this.parse(this.player.list.audios[e].lrc):this.parsed[e]=[["00:00","Not available"]];this.container.innerHTML=(0,o.default)({lyrics:this.parsed[e]}),this.update(0),this.current=this.parsed[e]}},{key:"parse",value:function(e){if(e){for(var t=(e=e.replace(/([^\]^\n])\[/g,function(e,t){return t+"\n["})).split("\n"),n=[],i=t.length,a=0;a/g,"").replace(/^\s+|\s+$/g,"");if(r)for(var s=r.length,l=0;l]/;a.$escape=function(e){return function(e){var t=""+e,n=r.exec(t);if(!n)return e;var i="",a=void 0,o=void 0,s=void 0;for(a=n.index,o=0;a\n \n
',t+=s.play,t+='
\n \n \n
\n
\n\n
\n
\n
\n'):(t+='\n
\n
\n
',t+=s.play,t+='
\n
\n
\n
\n No audio\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n ',t+=s.loading,t+='\n \n
\n
\n
\n
\n \n 00:00 / 00:00\n \n \n ',t+=s.skip,t+='\n \n \n ',t+=s.play,t+='\n \n \n ',t+=s.skip,t+='\n \n
\n \n
\n
\n
\n
\n
\n
\n \n \n \n \n
\n
\n
\n
\n
\n
\n
\n '},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t,n){"use strict";var i,a,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var u,c=[],p=!1,d=-1;function h(){p&&u&&(p=!1,u.length?c=u.concat(c):d=-1,c.length&&y())}function y(){if(!p){var e=l(h);p=!0;for(var t=c.length;t;){for(u=c,c=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(35),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){"use strict";(function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=setTimeout;function a(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void l(t.promise,e)}s(t.promise,i)}else(1===e._state?s:l)(t.promise,e._value)})):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":n(t))||"function"==typeof t)){var i=t.then;if(t instanceof r)return e._state=3,e._value=t,void u(e);if("function"==typeof i)return void c((a=i,o=t,function(){a.apply(o,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}var a,o}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&r._immediateFn(function(){e._handled||r._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t1&&this.container.classList.add("aplayer-withlist"),r.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,2===this.options.lrcType||!0===this.options.lrcType)for(var n=this.container.getElementsByClassName("aplayer-lrc-content"),i=0;i1?(e.notice("An audio error has occurred, player will skip forward in 2 seconds."),t=setTimeout(function(){e.skipForward(),e.paused||e.play()},2e3)):1===e.list.audios.length&&e.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){t&&clearTimeout(t)}),this.on("ended",function(){"none"===e.options.loop?"list"===e.options.order?e.list.index0&&void 0!==arguments[0]?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.list.index;(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.list.audios[t]&&(this.list.audios[t].theme=e),this.template.listCurs[t]&&(this.template.listCurs[t].style.backgroundColor=e),t===this.list.index&&(this.template.pic.style.backgroundColor=e,this.template.played.style.background=e,this.template.thumb.style.background=e,this.template.volume.style.background=e)}},{key:"seek",value:function(e){e=Math.max(e,0),e=Math.min(e,this.duration),this.audio.currentTime=e,this.bar.set("played",e/this.duration,"width"),this.template.ptime.innerHTML=r.default.secondToTime(e)}},{key:"setUIPlaying",value:function(){var e=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){e.template.button.innerHTML=o.default.pause},100),this.template.skipPlayButton.innerHTML=o.default.pause),this.timer.enable("loading"),this.options.mutex)for(var t=0;t=.95?this.template.volumeButton.innerHTML=o.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=o.default.volumeDown:this.template.volumeButton.innerHTML=o.default.volumeOff}},{key:"volume",value:function(e,t){return e=parseFloat(e),isNaN(e)||(e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"height"),t||this.storage.set("volume",e),this.audio.volume=e,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(e){this.list.switch(e)}},{key:"addAudio",value:function(e){this.list.add(e)}},{key:"removeAudio",value:function(e){this.list.remove(e)}},{key:"destroy",value:function(){m.splice(m.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";this.mode=e,"mini"===e?this.container.classList.add("aplayer-narrow"):"normal"===e&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=i,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:e}),n&&(this.noticeTime=setTimeout(function(){t.template.notice.style.opacity=0,t.events.trigger("noticehide")},n))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return 0===e?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[e-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return(this.list.index+1)%this.list.audios.length;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return e===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[e+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),e}();t.default=g},,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(40);var i,a=n(38),r=(i=a)&&i.__esModule?i:{default:i};console.log("\n %c APlayer v1.10.1 af84efb %c http://aplayer.js.org \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),t.default=r.default}]).default}); +!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define("APlayer",[],a):"object"==typeof exports?exports.APlayer=a():e.APlayer=a()}(window,(function(){return function(e){var a={};function t(r){if(a[r])return a[r].exports;var i=a[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(1&a&&(e=t(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var i in e)t.d(r,i,function(a){return e[a]}.bind(null,i));return r},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="/",t(t.s=31)}([function(e,a,t){var r=t(2);e.exports=function(e){"use strict";e=e||{};var a="",t=r.$each,i=e.audio,n=(e.$value,e.$index,r.$escape),o=e.theme,l=e.index;return t(i,(function(e,t){a+='\n
  • \n \n ',a+=n(t+l),a+='\n ',a+=n(e.name),a+='\n ',a+=n(e.artist),a+="\n
  • \n"})),a}},function(e,a){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":t(window))&&(r=window)}e.exports=r},function(e,a,t){"use strict";e.exports=t(30)},function(e,a,t){"use strict";var r=t(6),i=t.n(r),n=t(7),o=t.n(n)()(i.a);o.push([e.i,'.aplayer{background:#fff;font-family:Arial,Helvetica,sans-serif;margin:5px;box-shadow:0 2px 2px 0 rgba(0,0,0,.07),0 1px 5px 0 rgba(0,0,0,.1);border-radius:2px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;position:relative}.aplayer *{box-sizing:content-box}.aplayer svg{width:100%;height:100%}.aplayer svg circle,.aplayer svg path{fill:#fff}.aplayer.aplayer-withlist .aplayer-info{border-bottom:1px solid #e9e9e9}.aplayer.aplayer-withlist .aplayer-list{display:block}.aplayer.aplayer-withlist .aplayer-icon-order,.aplayer.aplayer-withlist .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu{display:inline}.aplayer.aplayer-withlrc .aplayer-pic{height:90px;width:90px}.aplayer.aplayer-withlrc .aplayer-info{margin-left:90px;height:90px;padding:10px 7px 0}.aplayer.aplayer-withlrc .aplayer-lrc{display:block}.aplayer.aplayer-narrow{width:66px}.aplayer.aplayer-narrow .aplayer-info,.aplayer.aplayer-narrow .aplayer-list{display:none}.aplayer.aplayer-narrow .aplayer-body,.aplayer.aplayer-narrow .aplayer-pic{height:66px;width:66px}.aplayer.aplayer-fixed{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;overflow:visible;max-width:400px;box-shadow:none}.aplayer.aplayer-fixed .aplayer-list{margin-bottom:65px;border:1px solid #eee;border-bottom:none}.aplayer.aplayer-fixed .aplayer-body{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;background:#fff;padding-right:18px;transition:all .3s ease;max-width:400px}.aplayer.aplayer-fixed .aplayer-lrc{display:block;position:fixed;bottom:10px;left:0;right:0;margin:0;z-index:98;pointer-events:none;text-shadow:-1px -1px 0 #fff}.aplayer.aplayer-fixed .aplayer-lrc:after,.aplayer.aplayer-fixed .aplayer-lrc:before{display:none}.aplayer.aplayer-fixed .aplayer-info{transform:scaleX(1);transform-origin:0 0;transition:all .3s ease;border-bottom:none;border-top:1px solid #e9e9e9}.aplayer.aplayer-fixed .aplayer-info .aplayer-music{width:calc(100% - 105px)}.aplayer.aplayer-fixed .aplayer-miniswitcher{display:block}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-info{display:block;transform:scaleX(0)}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body{width:66px!important}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-miniswitcher .aplayer-icon{transform:rotateY(0)}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-lrc,.aplayer.aplayer-fixed .aplayer-icon-play{display:inline-block}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-menu,.aplayer.aplayer-fixed .aplayer-icon-play{position:absolute;bottom:27px;width:20px;height:20px}.aplayer.aplayer-fixed .aplayer-icon-back{right:75px}.aplayer.aplayer-fixed .aplayer-icon-play{right:50px}.aplayer.aplayer-fixed .aplayer-icon-forward{right:25px}.aplayer.aplayer-fixed .aplayer-icon-menu{right:0}.aplayer.aplayer-arrow .aplayer-icon-loop,.aplayer.aplayer-arrow .aplayer-icon-order,.aplayer.aplayer-mobile .aplayer-icon-volume-down{display:none}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-loading-icon{display:block}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{transform:scale(1)}.aplayer .aplayer-body{position:relative}.aplayer .aplayer-icon{width:15px;height:15px;border:none;background-color:transparent;outline:none;cursor:pointer;opacity:.8;vertical-align:middle;padding:0;font-size:12px;margin:0;display:inline-block}.aplayer .aplayer-icon path{transition:all .2s ease-in-out}.aplayer .aplayer-icon-back,.aplayer .aplayer-icon-forward,.aplayer .aplayer-icon-lrc,.aplayer .aplayer-icon-order,.aplayer .aplayer-icon-play{display:none}.aplayer .aplayer-icon-lrc-inactivity svg{opacity:.4}.aplayer .aplayer-icon-forward{transform:rotate(180deg)}.aplayer .aplayer-lrc-content{display:none}.aplayer .aplayer-pic{position:relative;float:left;height:66px;width:66px;background-size:cover;background-position:50%;transition:all .3s ease;cursor:pointer}.aplayer .aplayer-pic:hover .aplayer-button{opacity:1}.aplayer .aplayer-pic .aplayer-button{position:absolute;border-radius:50%;opacity:.8;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 1px 1px rgba(0,0,0,.2);background:rgba(0,0,0,.2);transition:all .1s ease}.aplayer .aplayer-pic .aplayer-button path{fill:#fff}.aplayer .aplayer-pic .aplayer-hide{display:none}.aplayer .aplayer-pic .aplayer-play{width:26px;height:26px;border:2px solid #fff;bottom:50%;right:50%;margin:0 -15px -15px 0}.aplayer .aplayer-pic .aplayer-play svg{position:absolute;top:3px;left:4px;height:20px;width:20px}.aplayer .aplayer-pic .aplayer-pause{width:16px;height:16px;border:2px solid #fff;bottom:4px;right:4px}.aplayer .aplayer-pic .aplayer-pause svg{position:absolute;top:2px;left:2px;height:12px;width:12px}.aplayer .aplayer-info{margin-left:66px;padding:14px 7px 0 10px;height:66px;box-sizing:border-box}.aplayer .aplayer-info .aplayer-music{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 0 13px 5px;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;cursor:default;padding-bottom:2px;height:20px}.aplayer .aplayer-info .aplayer-music .aplayer-title{font-size:14px}.aplayer .aplayer-info .aplayer-music .aplayer-author{font-size:12px;color:#666}.aplayer .aplayer-info .aplayer-controller{position:relative;display:flex}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap{margin:0 0 0 5px;padding:4px 0;cursor:pointer!important;flex:1}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap:hover .aplayer-bar .aplayer-played .aplayer-thumb{transform:scale(1)}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar{position:relative;height:2px;width:100%;background:#cdcdcd}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded{position:absolute;left:0;top:0;bottom:0;background:#aaa;height:2px;transition:all .5s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played{position:absolute;left:0;top:0;bottom:0;height:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:10px;width:10px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0)}.aplayer .aplayer-info .aplayer-controller .aplayer-time{position:relative;right:0;bottom:4px;height:17px;color:#999;font-size:11px;padding-left:7px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-time-inner{vertical-align:middle}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon{cursor:pointer;transition:all .2s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon path{fill:#666}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-loop{margin-right:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon:hover path{fill:#000}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-mode{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap{position:relative;display:inline-block;margin-left:3px;cursor:pointer!important}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap:hover .aplayer-volume-bar-wrap{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap{position:absolute;bottom:15px;right:-3px;width:25px;height:0;z-index:99;overflow:hidden;transition:all .2s ease-in-out}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap.aplayer-volume-bar-wrap-active{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar{position:absolute;bottom:0;right:10px;width:5px;height:35px;background:#aaa;border-radius:2.5px;overflow:hidden}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar .aplayer-volume{position:absolute;bottom:0;right:0;width:5px;transition:all .1s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon svg{position:absolute;-webkit-animation:rotate 1s linear infinite;animation:rotate 1s linear infinite}.aplayer .aplayer-lrc{display:none;position:relative;height:30px;text-align:center;overflow:hidden;margin:-10px 0 7px}.aplayer .aplayer-lrc:before{top:0;height:10%;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#00ffffff",GradientType=0)}.aplayer .aplayer-lrc:after,.aplayer .aplayer-lrc:before{position:absolute;z-index:1;display:block;overflow:hidden;width:100%;content:" "}.aplayer .aplayer-lrc:after{bottom:0;height:33%;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,.8));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffffff",endColorstr="#ccffffff",GradientType=0)}.aplayer .aplayer-lrc p{font-size:12px;color:#666;line-height:16px!important;height:16px!important;padding:0!important;margin:0!important;transition:all .5s ease-out;opacity:.4;overflow:hidden}.aplayer .aplayer-lrc p.aplayer-lrc-current{opacity:1;overflow:visible;height:auto!important;min-height:16px}.aplayer .aplayer-lrc.aplayer-lrc-hide{display:none}.aplayer .aplayer-lrc .aplayer-lrc-contents{width:100%;transition:all .5s ease-out;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;cursor:default}.aplayer .aplayer-list{overflow:auto;transition:all .5s ease;will-change:height;display:none;overflow:hidden;list-style-type:none;margin:0;padding:0;overflow-y:auto}.aplayer .aplayer-list::-webkit-scrollbar{width:5px}.aplayer .aplayer-list::-webkit-scrollbar-thumb{border-radius:3px;background-color:#eee}.aplayer .aplayer-list::-webkit-scrollbar-thumb:hover{background-color:#ccc}.aplayer .aplayer-list li{position:relative;height:32px;line-height:32px;padding:0 15px;font-size:12px;border-top:1px solid #e9e9e9;cursor:pointer;transition:all .2s ease;overflow:hidden;margin:0}.aplayer .aplayer-list li:first-child{border-top:none}.aplayer .aplayer-list li:hover{background:#efefef}.aplayer .aplayer-list li.aplayer-list-light{background:#e9e9e9}.aplayer .aplayer-list li.aplayer-list-light .aplayer-list-cur{display:inline-block}.aplayer .aplayer-list li .aplayer-list-cur{display:none;width:3px;height:22px;position:absolute;left:0;top:5px;cursor:pointer}.aplayer .aplayer-list li .aplayer-list-index{color:#666;margin-right:12px;cursor:pointer}.aplayer .aplayer-list li .aplayer-list-author{color:#666;float:right;cursor:pointer}.aplayer .aplayer-notice{opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:12px;border-radius:4px;padding:5px 10px;transition:all .3s ease-in-out;overflow:hidden;color:#fff;pointer-events:none;background-color:#f4f4f5;color:#909399}.aplayer .aplayer-miniswitcher{display:none;position:absolute;top:0;right:0;bottom:0;height:100%;background:#e6e6e6;width:18px;border-radius:0 2px 2px 0}.aplayer .aplayer-miniswitcher .aplayer-icon{height:100%;width:100%;transform:rotateY(180deg);transition:all .3s ease}.aplayer .aplayer-miniswitcher .aplayer-icon path{fill:#666}.aplayer .aplayer-miniswitcher .aplayer-icon:hover path{fill:#000}@-webkit-keyframes aplayer-roll{0%{left:0}to{left:-100%}}@keyframes aplayer-roll{0%{left:0}to{left:-100%}}@-webkit-keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./src/css/index.scss"],names:[],mappings:"AAAA,SAAS,eAAe,CAAC,sCAAsC,CAAC,UAAU,CAAC,iEAAiE,CAAC,iBAAiB,CAAC,eAAe,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,WAAW,sBAAsB,CAAC,aAAa,UAAU,CAAC,WAAW,CAAC,sCAAsC,SAAS,CAAC,wCAAwC,+BAA+B,CAAC,wCAAwC,aAAa,CAAC,wJAAwJ,cAAc,CAAC,sCAAsC,WAAW,CAAC,UAAU,CAAC,uCAAuC,gBAAgB,CAAC,WAAW,CAAC,kBAAkB,CAAC,sCAAsC,aAAa,CAAC,wBAAwB,UAAU,CAAC,4EAA4E,YAAY,CAAC,2EAA2E,WAAW,CAAC,UAAU,CAAC,uBAAuB,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC,eAAe,CAAC,eAAe,CAAC,qCAAqC,kBAAkB,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,qCAAqC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,eAAe,CAAC,oCAAoC,aAAa,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,4BAA4B,CAAC,qFAAqF,YAAY,CAAC,qCAAqC,mBAAmB,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,4BAA4B,CAAC,oDAAoD,wBAAwB,CAAC,6CAA6C,aAAa,CAAC,oDAAoD,aAAa,CAAC,mBAAmB,CAAC,oDAAoD,oBAAoB,CAAC,0EAA0E,oBAAoB,CAAC,0KAA0K,oBAAoB,CAAC,2KAA2K,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,WAAW,CAAC,0CAA0C,UAAU,CAAC,0CAA0C,UAAU,CAAC,6CAA6C,UAAU,CAAC,0CAA0C,OAAO,CAAC,uIAAuI,YAAY,CAAC,iFAAiF,aAAa,CAAC,yHAAyH,kBAAkB,CAAC,uBAAuB,iBAAiB,CAAC,uBAAuB,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC,4BAA4B,CAAC,YAAY,CAAC,cAAc,CAAC,UAAU,CAAC,qBAAqB,CAAC,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,oBAAoB,CAAC,4BAA4B,8BAA8B,CAAC,+IAA+I,YAAY,CAAC,0CAA0C,UAAU,CAAC,+BAA+B,wBAAwB,CAAC,8BAA8B,YAAY,CAAC,sBAAsB,iBAAiB,CAAC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,qBAAqB,CAAC,uBAAuB,CAAC,uBAAuB,CAAC,cAAc,CAAC,4CAA4C,SAAS,CAAC,sCAAsC,iBAAiB,CAAC,iBAAiB,CAAC,UAAU,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,yBAAyB,CAAC,uBAAuB,CAAC,2CAA2C,SAAS,CAAC,oCAAoC,YAAY,CAAC,oCAAoC,UAAU,CAAC,WAAW,CAAC,qBAAqB,CAAC,UAAU,CAAC,SAAS,CAAC,sBAAsB,CAAC,wCAAwC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,qCAAqC,UAAU,CAAC,WAAW,CAAC,qBAAqB,CAAC,UAAU,CAAC,SAAS,CAAC,yCAAyC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,uBAAuB,gBAAgB,CAAC,uBAAuB,CAAC,WAAW,CAAC,qBAAqB,CAAC,sCAAsC,eAAe,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,cAAc,CAAC,kBAAkB,CAAC,WAAW,CAAC,qDAAqD,cAAc,CAAC,sDAAsD,cAAc,CAAC,UAAU,CAAC,2CAA2C,iBAAiB,CAAC,YAAY,CAAC,6DAA6D,gBAAgB,CAAC,aAAa,CAAC,wBAAwB,CAAC,MAAM,CAAC,+GAA+G,kBAAkB,CAAC,0EAA0E,iBAAiB,CAAC,UAAU,CAAC,UAAU,CAAC,kBAAkB,CAAC,0FAA0F,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,uBAAuB,CAAC,0FAA0F,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,yGAAyG,iBAAiB,CAAC,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,kBAAkB,CAAC,WAAW,CAAC,UAAU,CAAC,iBAAiB,CAAC,cAAc,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,yDAAyD,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,cAAc,CAAC,gBAAgB,CAAC,6EAA6E,qBAAqB,CAAC,uEAAuE,cAAc,CAAC,uBAAuB,CAAC,4EAA4E,SAAS,CAAC,yFAAyF,gBAAgB,CAAC,kFAAkF,SAAS,CAAC,yRAAyR,YAAY,CAAC,gEAAgE,iBAAiB,CAAC,oBAAoB,CAAC,eAAe,CAAC,wBAAwB,CAAC,+FAA+F,WAAW,CAAC,yFAAyF,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,8BAA8B,CAAC,wHAAwH,WAAW,CAAC,6GAA6G,iBAAiB,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,WAAW,CAAC,eAAe,CAAC,mBAAmB,CAAC,eAAe,CAAC,6HAA6H,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,uBAAuB,CAAC,iEAAiE,YAAY,CAAC,qEAAqE,iBAAiB,CAAC,2CAA2C,CAAC,mCAAmC,CAAC,sBAAsB,YAAY,CAAC,iBAAiB,CAAC,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,kBAAkB,CAAC,6BAA6B,KAAK,CAAC,UAAU,CAAC,2DAA2D,CAAC,iHAAiH,CAAC,yDAAyD,iBAAiB,CAAC,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,UAAU,CAAC,WAAW,CAAC,4BAA4B,QAAQ,CAAC,UAAU,CAAC,yEAAyE,CAAC,mHAAmH,CAAC,wBAAwB,cAAc,CAAC,UAAU,CAAC,0BAA0B,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,2BAA2B,CAAC,UAAU,CAAC,eAAe,CAAC,4CAA4C,SAAS,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,CAAC,uCAAuC,YAAY,CAAC,4CAA4C,UAAU,CAAC,2BAA2B,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,cAAc,CAAC,uBAAuB,aAAa,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,YAAY,CAAC,eAAe,CAAC,oBAAoB,CAAC,QAAQ,CAAC,SAAS,CAAC,eAAe,CAAC,0CAA0C,SAAS,CAAC,gDAAgD,iBAAiB,CAAC,qBAAqB,CAAC,sDAAsD,qBAAqB,CAAC,0BAA0B,iBAAiB,CAAC,WAAW,CAAC,gBAAgB,CAAC,cAAc,CAAC,cAAc,CAAC,4BAA4B,CAAC,cAAc,CAAC,uBAAuB,CAAC,eAAe,CAAC,QAAQ,CAAC,sCAAsC,eAAe,CAAC,gCAAgC,kBAAkB,CAAC,6CAA6C,kBAAkB,CAAC,+DAA+D,oBAAoB,CAAC,4CAA4C,YAAY,CAAC,SAAS,CAAC,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,8CAA8C,UAAU,CAAC,iBAAiB,CAAC,cAAc,CAAC,+CAA+C,UAAU,CAAC,WAAW,CAAC,cAAc,CAAC,yBAAyB,SAAS,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC,cAAc,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,8BAA8B,CAAC,eAAe,CAAC,UAAU,CAAC,mBAAmB,CAAC,wBAAwB,CAAC,aAAa,CAAC,+BAA+B,YAAY,CAAC,iBAAiB,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,kBAAkB,CAAC,UAAU,CAAC,yBAAyB,CAAC,6CAA6C,WAAW,CAAC,UAAU,CAAC,yBAAyB,CAAC,uBAAuB,CAAC,kDAAkD,SAAS,CAAC,wDAAwD,SAAS,CAAC,gCAAgC,GAAG,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,wBAAwB,GAAG,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,0BAA0B,GAAG,mBAAmB,CAAC,GAAG,uBAAuB,CAAC,CAAC,kBAAkB,GAAG,mBAAmB,CAAC,GAAG,uBAAuB,CAAC",sourcesContent:['.aplayer{background:#fff;font-family:Arial,Helvetica,sans-serif;margin:5px;box-shadow:0 2px 2px 0 rgba(0,0,0,.07),0 1px 5px 0 rgba(0,0,0,.1);border-radius:2px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;position:relative}.aplayer *{box-sizing:content-box}.aplayer svg{width:100%;height:100%}.aplayer svg circle,.aplayer svg path{fill:#fff}.aplayer.aplayer-withlist .aplayer-info{border-bottom:1px solid #e9e9e9}.aplayer.aplayer-withlist .aplayer-list{display:block}.aplayer.aplayer-withlist .aplayer-icon-order,.aplayer.aplayer-withlist .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu{display:inline}.aplayer.aplayer-withlrc .aplayer-pic{height:90px;width:90px}.aplayer.aplayer-withlrc .aplayer-info{margin-left:90px;height:90px;padding:10px 7px 0}.aplayer.aplayer-withlrc .aplayer-lrc{display:block}.aplayer.aplayer-narrow{width:66px}.aplayer.aplayer-narrow .aplayer-info,.aplayer.aplayer-narrow .aplayer-list{display:none}.aplayer.aplayer-narrow .aplayer-body,.aplayer.aplayer-narrow .aplayer-pic{height:66px;width:66px}.aplayer.aplayer-fixed{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;overflow:visible;max-width:400px;box-shadow:none}.aplayer.aplayer-fixed .aplayer-list{margin-bottom:65px;border:1px solid #eee;border-bottom:none}.aplayer.aplayer-fixed .aplayer-body{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;background:#fff;padding-right:18px;transition:all .3s ease;max-width:400px}.aplayer.aplayer-fixed .aplayer-lrc{display:block;position:fixed;bottom:10px;left:0;right:0;margin:0;z-index:98;pointer-events:none;text-shadow:-1px -1px 0 #fff}.aplayer.aplayer-fixed .aplayer-lrc:after,.aplayer.aplayer-fixed .aplayer-lrc:before{display:none}.aplayer.aplayer-fixed .aplayer-info{transform:scaleX(1);transform-origin:0 0;transition:all .3s ease;border-bottom:none;border-top:1px solid #e9e9e9}.aplayer.aplayer-fixed .aplayer-info .aplayer-music{width:calc(100% - 105px)}.aplayer.aplayer-fixed .aplayer-miniswitcher{display:block}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-info{display:block;transform:scaleX(0)}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body{width:66px!important}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-miniswitcher .aplayer-icon{transform:rotateY(0)}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-lrc,.aplayer.aplayer-fixed .aplayer-icon-play{display:inline-block}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-menu,.aplayer.aplayer-fixed .aplayer-icon-play{position:absolute;bottom:27px;width:20px;height:20px}.aplayer.aplayer-fixed .aplayer-icon-back{right:75px}.aplayer.aplayer-fixed .aplayer-icon-play{right:50px}.aplayer.aplayer-fixed .aplayer-icon-forward{right:25px}.aplayer.aplayer-fixed .aplayer-icon-menu{right:0}.aplayer.aplayer-arrow .aplayer-icon-loop,.aplayer.aplayer-arrow .aplayer-icon-order,.aplayer.aplayer-mobile .aplayer-icon-volume-down{display:none}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-loading-icon{display:block}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{transform:scale(1)}.aplayer .aplayer-body{position:relative}.aplayer .aplayer-icon{width:15px;height:15px;border:none;background-color:transparent;outline:none;cursor:pointer;opacity:.8;vertical-align:middle;padding:0;font-size:12px;margin:0;display:inline-block}.aplayer .aplayer-icon path{transition:all .2s ease-in-out}.aplayer .aplayer-icon-back,.aplayer .aplayer-icon-forward,.aplayer .aplayer-icon-lrc,.aplayer .aplayer-icon-order,.aplayer .aplayer-icon-play{display:none}.aplayer .aplayer-icon-lrc-inactivity svg{opacity:.4}.aplayer .aplayer-icon-forward{transform:rotate(180deg)}.aplayer .aplayer-lrc-content{display:none}.aplayer .aplayer-pic{position:relative;float:left;height:66px;width:66px;background-size:cover;background-position:50%;transition:all .3s ease;cursor:pointer}.aplayer .aplayer-pic:hover .aplayer-button{opacity:1}.aplayer .aplayer-pic .aplayer-button{position:absolute;border-radius:50%;opacity:.8;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 1px 1px rgba(0,0,0,.2);background:rgba(0,0,0,.2);transition:all .1s ease}.aplayer .aplayer-pic .aplayer-button path{fill:#fff}.aplayer .aplayer-pic .aplayer-hide{display:none}.aplayer .aplayer-pic .aplayer-play{width:26px;height:26px;border:2px solid #fff;bottom:50%;right:50%;margin:0 -15px -15px 0}.aplayer .aplayer-pic .aplayer-play svg{position:absolute;top:3px;left:4px;height:20px;width:20px}.aplayer .aplayer-pic .aplayer-pause{width:16px;height:16px;border:2px solid #fff;bottom:4px;right:4px}.aplayer .aplayer-pic .aplayer-pause svg{position:absolute;top:2px;left:2px;height:12px;width:12px}.aplayer .aplayer-info{margin-left:66px;padding:14px 7px 0 10px;height:66px;box-sizing:border-box}.aplayer .aplayer-info .aplayer-music{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 0 13px 5px;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;cursor:default;padding-bottom:2px;height:20px}.aplayer .aplayer-info .aplayer-music .aplayer-title{font-size:14px}.aplayer .aplayer-info .aplayer-music .aplayer-author{font-size:12px;color:#666}.aplayer .aplayer-info .aplayer-controller{position:relative;display:flex}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap{margin:0 0 0 5px;padding:4px 0;cursor:pointer!important;flex:1}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap:hover .aplayer-bar .aplayer-played .aplayer-thumb{transform:scale(1)}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar{position:relative;height:2px;width:100%;background:#cdcdcd}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded{position:absolute;left:0;top:0;bottom:0;background:#aaa;height:2px;transition:all .5s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played{position:absolute;left:0;top:0;bottom:0;height:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:10px;width:10px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0)}.aplayer .aplayer-info .aplayer-controller .aplayer-time{position:relative;right:0;bottom:4px;height:17px;color:#999;font-size:11px;padding-left:7px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-time-inner{vertical-align:middle}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon{cursor:pointer;transition:all .2s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon path{fill:#666}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-loop{margin-right:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon:hover path{fill:#000}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-mode{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap{position:relative;display:inline-block;margin-left:3px;cursor:pointer!important}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap:hover .aplayer-volume-bar-wrap{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap{position:absolute;bottom:15px;right:-3px;width:25px;height:0;z-index:99;overflow:hidden;transition:all .2s ease-in-out}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap.aplayer-volume-bar-wrap-active{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar{position:absolute;bottom:0;right:10px;width:5px;height:35px;background:#aaa;border-radius:2.5px;overflow:hidden}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar .aplayer-volume{position:absolute;bottom:0;right:0;width:5px;transition:all .1s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon svg{position:absolute;-webkit-animation:rotate 1s linear infinite;animation:rotate 1s linear infinite}.aplayer .aplayer-lrc{display:none;position:relative;height:30px;text-align:center;overflow:hidden;margin:-10px 0 7px}.aplayer .aplayer-lrc:before{top:0;height:10%;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#00ffffff",GradientType=0)}.aplayer .aplayer-lrc:after,.aplayer .aplayer-lrc:before{position:absolute;z-index:1;display:block;overflow:hidden;width:100%;content:" "}.aplayer .aplayer-lrc:after{bottom:0;height:33%;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,.8));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffffff",endColorstr="#ccffffff",GradientType=0)}.aplayer .aplayer-lrc p{font-size:12px;color:#666;line-height:16px!important;height:16px!important;padding:0!important;margin:0!important;transition:all .5s ease-out;opacity:.4;overflow:hidden}.aplayer .aplayer-lrc p.aplayer-lrc-current{opacity:1;overflow:visible;height:auto!important;min-height:16px}.aplayer .aplayer-lrc.aplayer-lrc-hide{display:none}.aplayer .aplayer-lrc .aplayer-lrc-contents{width:100%;transition:all .5s ease-out;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;cursor:default}.aplayer .aplayer-list{overflow:auto;transition:all .5s ease;will-change:height;display:none;overflow:hidden;list-style-type:none;margin:0;padding:0;overflow-y:auto}.aplayer .aplayer-list::-webkit-scrollbar{width:5px}.aplayer .aplayer-list::-webkit-scrollbar-thumb{border-radius:3px;background-color:#eee}.aplayer .aplayer-list::-webkit-scrollbar-thumb:hover{background-color:#ccc}.aplayer .aplayer-list li{position:relative;height:32px;line-height:32px;padding:0 15px;font-size:12px;border-top:1px solid #e9e9e9;cursor:pointer;transition:all .2s ease;overflow:hidden;margin:0}.aplayer .aplayer-list li:first-child{border-top:none}.aplayer .aplayer-list li:hover{background:#efefef}.aplayer .aplayer-list li.aplayer-list-light{background:#e9e9e9}.aplayer .aplayer-list li.aplayer-list-light .aplayer-list-cur{display:inline-block}.aplayer .aplayer-list li .aplayer-list-cur{display:none;width:3px;height:22px;position:absolute;left:0;top:5px;cursor:pointer}.aplayer .aplayer-list li .aplayer-list-index{color:#666;margin-right:12px;cursor:pointer}.aplayer .aplayer-list li .aplayer-list-author{color:#666;float:right;cursor:pointer}.aplayer .aplayer-notice{opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:12px;border-radius:4px;padding:5px 10px;transition:all .3s ease-in-out;overflow:hidden;color:#fff;pointer-events:none;background-color:#f4f4f5;color:#909399}.aplayer .aplayer-miniswitcher{display:none;position:absolute;top:0;right:0;bottom:0;height:100%;background:#e6e6e6;width:18px;border-radius:0 2px 2px 0}.aplayer .aplayer-miniswitcher .aplayer-icon{height:100%;width:100%;transform:rotateY(180deg);transition:all .3s ease}.aplayer .aplayer-miniswitcher .aplayer-icon path{fill:#666}.aplayer .aplayer-miniswitcher .aplayer-icon:hover path{fill:#000}@-webkit-keyframes aplayer-roll{0%{left:0}to{left:-100%}}@keyframes aplayer-roll{0%{left:0}to{left:-100%}}@-webkit-keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}'],sourceRoot:""}]),a.a=o},function(e,a,t){var r=t(2);e.exports=function(e){"use strict";e=e||{};var a="",t=r.$each,i=e.lyrics,n=(e.$value,e.$index,r.$escape);return t(i,(function(e,t){a+="\n \n"})),a}},function(e,a,t){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},n=function(){var e={};return function(a){if(void 0===e[a]){var t=document.querySelector(a);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[a]=t}return e[a]}}(),o=[];function l(e){for(var a=-1,t=0;te.length)&&(a=e.length);for(var t=0,r=new Array(a);t'},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a){e.exports=''},function(e,a,t){var r=t(2);e.exports=function(e){"use strict";var a="",i=(e=e||{}).options,n=e.cover,o=r.$escape,l=e.icons,s=(arguments[1],function(e){return a+=e}),p=e.getObject;e.theme,e.audio,e.index;return i.fixed?(a+='\n
      \n
      ',a+=l.play,a+='
      \n
    \n \n
    \n
    \n\n
    \n
    \n
    \n'):(a+='\n
    \n
    \n
    ',a+=l.play,a+='
    \n
    \n
    \n
    \n No audio\n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n ',a+=l.loading,a+='\n \n
    \n
    \n
    \n
    \n \n 00:00 / 00:00\n \n \n ',a+=l.skip,a+='\n \n \n ',a+=l.play,a+='\n \n \n ',a+=l.skip,a+='\n \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
      =0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),a))},t(28),a.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,a.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,t(1))},function(e,a,t){(function(e,a){!function(e,t){"use strict";if(!e.setImmediate){var r,i,n,o,l,s=1,p={},c=!1,y=e.document,A=Object.getPrototypeOf&&Object.getPrototypeOf(e);A=A&&A.setTimeout?A:e,"[object process]"==={}.toString.call(e.process)?r=function(e){a.nextTick((function(){d(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var a=!0,t=e.onmessage;return e.onmessage=function(){a=!1},e.postMessage("","*"),e.onmessage=t,a}}()?e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){d(e.data)},r=function(e){n.port2.postMessage(e)}):y&&"onreadystatechange"in y.createElement("script")?(i=y.documentElement,r=function(e){var a=y.createElement("script");a.onreadystatechange=function(){d(e),a.onreadystatechange=null,i.removeChild(a),a=null},i.appendChild(a)}):r=function(e){setTimeout(d,0,e)}:(o="setImmediate$"+Math.random()+"$",l=function(a){a.source===e&&"string"==typeof a.data&&0===a.data.indexOf(o)&&d(+a.data.slice(o.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),r=function(a){e.postMessage(o+a,"*")}),A.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var a=new Array(arguments.length-1),t=0;t1)for(var t=1;t]/;r.$escape=function(e){return function(e){var a=""+e,t=i.exec(a);if(!t)return e;var r="",n=void 0,o=void 0,l=void 0;for(n=t.index,o=0;ne.length)&&(a=e.length);for(var t=0,r=new Array(a);t0?[a,t,r]:[t,r]).map((function(e){return e<10?"0"+e:""+e})).join(":")},isMobile:c,storage:{set:function(e,a){localStorage.setItem(e,a)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:c?"touchstart":"mousedown",dragMove:c?"touchmove":"mousemove",dragEnd:c?"touchend":"mouseup"},randomOrder:function(e){return function(e){for(var a=e.length-1;a>=0;a--){var t=Math.floor(Math.random()*(a+1)),r=e[t];e[t]=e[a],e[a]=r}return e}(s(Array(e)).map((function(e,a){return a})))}},A=t(11),u=t.n(A),d=t(12),h=t.n(d),f=t(13),m=t.n(f),C=t(14),v=t.n(C),g=t(15),b=t.n(g),w=t(16),x=t.n(w),B=t(17),k=t.n(B),M=t(18),T=t.n(M),S=t(19),q=t.n(S),L=t(20),U=t.n(L),E=t(21),O=t.n(E),W=t(22),z=t.n(W),H=t(23),I=t.n(H),j=t(24),_=t.n(j),F=t(25),P=t.n(F),Y={play:u.a,pause:h.a,volumeUp:m.a,volumeDown:v.a,volumeOff:b.a,orderRandom:x.a,orderList:k.a,menu:T.a,loopAll:q.a,loopOne:U.a,loopNone:O.a,loading:z.a,right:I.a,skip:_.a,lrc:P.a},N=function(e){var a={container:e.element||document.getElementsByClassName("aplayer")[0],mini:e.narrow||e.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:e.showlrc||e.lrc||0,preload:"metadata",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:e.fixed,listMaxHeight:e.listmaxheight||250,audio:e.music||[],storageName:"aplayer-setting"};for(var t in a)a.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=a[t]);return e.listMaxHeight=parseFloat(e.listMaxHeight),"[object Array]"!==Object.prototype.toString.call(e.audio)&&(e.audio=[e.audio]),e.audio.map((function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e})),e.audio.length<=1&&"one"===e.loop&&(e.loop="all"),e},D=t(26),Q=t.n(D);function R(e,a){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||e=this.current[this.index+1][0])for(var a=0;a=this.current[a][0]&&(!this.current[a+1]||e=200&&t.status<300||304===t.status?a.parsed[e]=a.parse(t.responseText):(a.player.notice("LRC file request fails: status ".concat(t.status)),a.parsed[e]=[["00:00","Not available"]]),a.container.innerHTML=Z()({lyrics:a.parsed[e]}),a.update(0),a.current=a.parsed[e])};var r=this.player.list.audios[e].lrc;t.open("get",r,!0),t.send(null)}else this.player.list.audios[e].lrc?this.parsed[e]=this.parse(this.player.list.audios[e].lrc):this.parsed[e]=[["00:00","Not available"]];this.container.innerHTML=Z()({lyrics:this.parsed[e]}),this.current=this.parsed[e],this.update(0)}},{key:"parse",value:function(e){if(e){for(var a=(e=e.replace(/([^\]^\n])\[/g,(function(e,a){return a+"\n["}))).split("\n"),t=[],r=a.length,i=0;i/g,"").replace(/^\s+|\s+$/g,"");if(n)for(var l=n.length,s=0;s1?"one"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=Y.loopNone):"none"===e.player.options.loop?(e.player.options.loop="all",e.player.template.loop.innerHTML=Y.loopAll):"all"===e.player.options.loop&&(e.player.options.loop="one",e.player.template.loop.innerHTML=Y.loopOne):"one"===e.player.options.loop||"all"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=Y.loopNone):"none"===e.player.options.loop&&(e.player.options.loop="all",e.player.template.loop.innerHTML=Y.loopAll)}))}},{key:"initMenuButton",value:function(){var e=this;this.player.template.menu.addEventListener("click",(function(){e.player.list.toggle()}))}},{key:"initMiniSwitcher",value:function(){var e=this;this.player.template.miniSwitcher.addEventListener("click",(function(){e.player.setMode("mini"===e.player.mode?"normal":"mini")}))}},{key:"initSkipButton",value:function(){var e=this;this.player.template.skipBackButton.addEventListener("click",(function(){e.player.skipBack()})),this.player.template.skipForwardButton.addEventListener("click",(function(){e.player.skipForward()})),this.player.template.skipPlayButton.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initLrcButton",value:function(){var e=this;this.player.template.lrcButton.addEventListener("click",(function(){e.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(e.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.show()):(e.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.hide())}))}}])&&te(a.prototype,t),r&&te(a,r),e}();function ie(e,a){for(var t=0;ta&&!e.player.audio.paused&&(e.player.container.classList.remove("aplayer-loading"),r=!1),a=t)}),100)}},{key:"enable",value:function(e){this["enable".concat(e,"Checker")]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable".concat(e,"Checker")]=!1}},{key:"destroy",value:function(){var e=this;this.types.forEach((function(a){e["enable".concat(a,"Checker")]=!1,e["".concat(a,"Checker")]&&clearInterval(e["".concat(a,"Checker")])}))}}])&&ie(a.prototype,t),r&&ie(a,r),e}();function oe(e,a){for(var t=0;t1),t=0===this.audios.length;this.player.template.list.innerHTML+=pe()({theme:this.player.options.theme,audio:e,index:this.audios.length+1}),this.audios=this.audios.concat(e),a&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=y.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=e.theme||this.player.options.theme,t&&("random"===this.player.options.order?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(e){if(this.player.events.trigger("listremove",{index:e}),this.audios[e])if(this.audios.length>1){var a=this.player.container.querySelectorAll(".aplayer-list li");a[e].remove(),this.audios.splice(e,1),this.player.lrc&&this.player.lrc.remove(e),e===this.index&&(this.audios[e]?this.switch(e):this.switch(e-1)),this.index>e&&this.index--;for(var t=e;t1&&this.container.classList.add("aplayer-withlist"),y.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),2===this.options.lrcType||!0===this.options.lrcType)for(var t=this.container.getElementsByClassName("aplayer-lrc-content"),r=0;r1?(a.notice("An audio error has occurred, player will skip forward in 2 seconds."),e=setTimeout((function(){a.skipForward(),a.paused||a.play()}),2e3)):1===a.list.audios.length&&a.notice("An audio error has occurred.")})),this.events.on("listswitch",(function(){e&&clearTimeout(e)})),this.on("ended",(function(){"none"===a.options.loop?"list"===a.options.order?a.list.index0&&void 0!==arguments[0]?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.list.index,t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t&&this.list.audios[a]&&(this.list.audios[a].theme=e),this.template.listCurs[a]&&(this.template.listCurs[a].style.backgroundColor=e),a===this.list.index&&(this.template.pic.style.backgroundColor=e,this.template.played.style.background=e,this.template.thumb.style.background=e,this.template.volume.style.background=e)}},{key:"seek",value:function(e){e=Math.max(e,0),e=Math.min(e,this.duration),this.audio.currentTime=e,this.bar.set("played",e/this.duration,"width"),this.template.ptime.innerHTML=y.secondToTime(e)}},{key:"setUIPlaying",value:function(){var e=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout((function(){e.template.button.innerHTML=Y.pause}),100),this.template.skipPlayButton.innerHTML=Y.pause),this.timer.enable("loading"),this.options.mutex)for(var a=0;a=.95?this.template.volumeButton.innerHTML=Y.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=Y.volumeDown:this.template.volumeButton.innerHTML=Y.volumeOff}},{key:"volume",value:function(e,a){return e=parseFloat(e),isNaN(e)||(e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"height"),a||this.storage.set("volume",e),this.audio.volume=e,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(e,a){this.events.on(e,a)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(e){this.list.switch(e)}},{key:"addAudio",value:function(e){this.list.add(e)}},{key:"removeAudio",value:function(e){this.list.remove(e)}},{key:"destroy",value:function(){ue.splice(ue.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";this.mode=e,"mini"===e?this.container.classList.add("aplayer-narrow"):"normal"===e&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(e){var a=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=r,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:e}),t&&(this.noticeTime=setTimeout((function(){a.template.notice.style.opacity=0,a.events.trigger("noticehide")}),t))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return 0===e?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[e-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return(this.list.index+1)%this.list.audios.length;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return e===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[e+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}])&&Ae(a.prototype,t),r&&Ae(a,r),e}();console.log("\n".concat(" %c APlayer v","1.10.1"," ").concat("337c026"," %c http://aplayer.js.org ","\n"),"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;");a.default=de}]).default})); //# sourceMappingURL=APlayer.min.js.map \ No newline at end of file diff --git a/themes/LoveIt/assets/lib/lightgallery/images/loading.gif b/themes/LoveIt/assets/lib/lightgallery/images/loading.gif new file mode 100644 index 0000000..4744c45 Binary files /dev/null and b/themes/LoveIt/assets/lib/lightgallery/images/loading.gif differ diff --git a/themes/LoveIt/assets/lib/valine/Valine.min.js b/themes/LoveIt/assets/lib/valine/Valine.min.js index 5148f01..2895b3b 100755 --- a/themes/LoveIt/assets/lib/valine/Valine.min.js +++ b/themes/LoveIt/assets/lib/valine/Valine.min.js @@ -1,17 +1,17 @@ /*! - * Valine v1.5.0 - * (c) 2017-2022 xCss + * Valine v1.5.3 + * (c) 2017-2024 xCss * Released under the GPL-2.0 License. - * Last Update: 2022-6-24 5:33:28 ├F10: PM┤ + * Last Update: 15/12/2024 下午3:03:31 */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Valine=t():e.Valine=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=108)}([function(e,t,n){"use strict";var r=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var s=function(){throw new o},l=u?function(){try{return arguments.callee,s}catch(e){try{return u(arguments,"callee").get}catch(e){return s}}}():s,c=n(22)(),f=Object.getPrototypeOf||function(e){return e.__proto__},p={},d="undefined"==typeof Uint8Array?void 0:f(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":c?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?f(""[Symbol.iterator]()):void 0,"%Symbol%":c?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},v=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=f(i.prototype))}return h[t]=n,n},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=n(9),y=n(25),b=m.call(Function.call,Array.prototype.concat),D=m.call(Function.apply,Array.prototype.splice),x=m.call(Function.call,String.prototype.replace),w=m.call(Function.call,String.prototype.slice),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,E=function(e){var t=w(e,0,1),n=w(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return x(e,A,function(e,t,n,r){i[i.length]=n?x(r,k,"$1"):t||e}),i},F=function(e,t){var n,i=e;if(y(g,i)&&(n=g[i],i="%"+n[0]+"%"),y(h,i)){var a=h[i];if(a===p&&(a=v(i)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');var n=E(e),i=n.length>0?n[0]:"",a=F("%"+i+"%",t),s=a.name,l=a.value,c=!1,f=a.alias;f&&(i=f[0],D(n,b([0,1],f)));for(var p=1,d=!0;p=n.length){var x=u(l,v);d=!!x,l=d&&"get"in x&&!("originalValue"in x.get)?x.get:l[v]}else d=y(l,v),l=l[v];d&&!c&&(h[s]=l)}}return l}},function(e,t,n){"use strict";var r=n(0),i=n(4),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},function(e,t,n){"use strict";var r=n(88),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,u=Object.defineProperty,s=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)},l=u&&function(){var e={};try{u(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch(e){return!1}}(),c=function(e,t,n,r){(!(t in e)||s(r)&&r())&&(l?u(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},f=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var u=0;u"'`\\]/g,y=RegExp(m.source),b=/&(?:amp|lt|gt|quot|#39|#x60|#x5c);/g,D=RegExp(b.source),x={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\\":"\"},w={};for(var A in x)w[x[A]]=A;var k=null;Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,r;if(null==this)throw new TypeError(" this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(n=t),r=0;r';return n.test(o)?a:""}};t.default=i},function(e,t,n){"use strict";t.__esModule=!0;var r=n(95),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){return(0,i.default)(e,{onTagAttr:function(e,t,n,r){return o(e,t,n,r)},onIgnoreTagAttr:function(e,t,n,r){return o(e,t,n,r)}}).replace(/\<\/?div\>/gi,"")};var o=function(e,t,n,r){if(/video|audio/i.test(e))return"";if(/code|pre|span/i.test(e)){if("style"==t){var o=n.match(/color:([#a-z0-9]{3,7}|\s+[#a-z0-9]{3,8})/gi);return o&&o.length?'style="'+o[0]+'"':""}if("class"==t)return t+"='"+i.default.escapeAttrValue(n)+"'"}return"a"===e&&"class"==t&&"at"===n?t+"='"+i.default.escapeAttrValue(n)+"'":"img"===e&&/src|class/i.test(t)?t+"='"+i.default.escapeAttrValue(n)+"' referrerPolicy='no-referrer'":void 0}},function(e,t,n){"use strict";var r=n(0),i=n(1),o=r("%TypeError%"),a=n(52),u=n(18),s=n(53),l=n(55),c=n(56),f=n(60),p=n(20),d=n(81),h=i("String.prototype.split"),v=Object("a"),g="a"!==v[0]||!(0 in v);e.exports=function(e){var t=f(this),n=g&&d(this)?h(this,""):t,r=c(n);if(!l(e))throw new o("Array.prototype.forEach callback must be a function");var i;arguments.length>1&&(i=arguments[1]);for(var v=0;v=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(5),i=n(1),o=i("Object.prototype.propertyIsEnumerable"),a=i("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var i in t)o(t,i)&&a(n,[i,t[i]]);return n}},function(e,t,n){"use strict";var r=n(27);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},function(e,t,n){"use strict";var r=n(5),i=n(20),o=n(1),a=o("String.prototype.replace"),u=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,s=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=i(r(this));return a(a(e,u,""),s,"")}},function(e,t,n){"use strict";var r=n(29),i="​";e.exports=function(){return String.prototype.trim&&i.trim()===i?String.prototype.trim:r}},function(e,t,n){function r(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}function i(e,t,n){}function o(e,t,n){}function a(e,t,n){}function u(e,t,n){}function s(e){return e.replace(E,"<").replace(F,">")}function l(e,t,n,r){if(n=v(n),"href"===t||"src"===t){if("#"===(n=A.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if($.lastIndex=0,$.test(n))return""}else if("style"===t){if(j.lastIndex=0,j.test(n))return"";if(T.lastIndex=0,T.test(n)&&($.lastIndex=0,$.test(n)))return"";!1!==r&&(r=r||k,n=r.process(n))}return n=g(n)}function c(e){return e.replace(C,""")}function f(e){return e.replace(_,'"')}function p(e){return e.replace(S,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function d(e){return e.replace(O,":").replace(B," ")}function h(e){for(var t="",n=0,r=e.length;n/g,C=/"/g,_=/"/g,S=/&#([a-zA-Z0-9]*);?/gim,O=/:?/gim,B=/&newline;?/gim,$=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,j=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,T=/u\s*r\s*l\s*\(.*/gi;t.whiteList=r(),t.getDefaultWhiteList=r,t.onTag=i,t.onIgnoreTag=o,t.onTagAttr=a,t.onIgnoreTagAttr=u,t.safeAttrValue=l,t.escapeHtml=s,t.escapeQuote=c,t.unescapeQuote=f,t.escapeHtmlEntities=p,t.escapeDangerHtml5Entities=d,t.clearNonPrintableCharacter=h,t.friendlyAttrValue=v,t.escapeAttrValue=g,t.onIgnoreTagStripAll=m,t.StripTagBody=y,t.stripCommentTag=b,t.stripBlankChar=D,t.cssFilter=k,t.getDefaultCSSWhiteList=w},function(e,t,n){function r(e){var t=f.spaceIndex(e);if(-1===t)var n=e.slice(1,-1);else var n=e.slice(1,t+1);return n=f.trim(n).toLowerCase(),"/"===n.slice(0,1)&&(n=n.slice(1)),"/"===n.slice(-1)&&(n=n.slice(0,-1)),n}function i(e){return""===d){o+=n(e.slice(a,u)),p=e.slice(u,l+1),f=r(p),o+=t(u,o.length,f,p,i(p)),a=l+1,u=!1;continue}if('"'===d||"'"===d)for(var h=1,v=e.charAt(l-h);""===v.trim()||"="===v;){if("="===v){s=d;continue e}v=e.charAt(l-++h)}}else if(d===s){s=!1;continue}}return a0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function l(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}function c(e){return l(e)?e.substr(1,e.length-2):e}var f=n(11),p=/[^a-zA-Z0-9_:\.\-]/gim;t.parseTag=o,t.parseAttr=a},function(e,t,n){var r,i,o;/*! +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Valine=t():e.Valine=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=74)}([function(e,t,n){"use strict";e.exports=TypeError},function(e,t,n){"use strict";var r=n(42),i=n(41),o=n(43),a=n(44),u=n(15),s=n(0),l=n(45),c=Function,d=function(e){try{return c('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var f=function(){throw new s},h=p?function(){try{return arguments.callee,f}catch(e){try{return p(arguments,"callee").get}catch(e){return f}}}():f,v=n(50)(),g=n(49)(),m=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},y="undefined"!=typeof Uint8Array&&m?m(Uint8Array):void 0,D={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":v&&m?m([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&m?m(m([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&v&&m?m((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":o,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&v&&m?m((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&m?m(""[Symbol.iterator]()):void 0,"%Symbol%":v?Symbol:void 0,"%SyntaxError%":u,"%ThrowTypeError%":h,"%TypedArray%":y,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(m)try{null.error}catch(e){var w=m(m(e));D["%Error.prototype%"]=w}var x=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&m&&(n=m(i.prototype))}return D[t]=n,n},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=n(6),E=n(18),F=A.call(Function.call,Array.prototype.concat),C=A.call(Function.apply,Array.prototype.splice),_=A.call(Function.call,String.prototype.replace),B=A.call(Function.call,String.prototype.slice),S=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,j=function(e){var t=B(e,0,1),n=B(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,O,function(e,t,n,i){r[r.length]=n?_(i,$,"$1"):t||e}),r},z=function(e,t){var n,r=e;if(E(k,r)&&(n=k[r],r="%"+n[0]+"%"),E(D,r)){var i=D[r];if(i===b&&(i=x(r)),void 0===i&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=j(e),r=n.length>0?n[0]:"",i=z("%"+r+"%",t),o=i.name,a=i.value,l=!1,c=i.alias;c&&(r=c[0],C(n,F([0,1],c)));for(var d=1,f=!0;d=n.length){var m=p(a,h);f=!!m,a=f&&"get"in m&&!("originalValue"in m.get)?m.get:a[h]}else f=E(a,h),a=a[h];f&&!l&&(D[o]=a)}}return a}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=null==e?String(e):{}.toString.call(e)||"object";return"[object Object]"==t&&(t="object"),"[object Function]"==t&&(t="function"),t}function o(e){return"function"==i(e)}function a(e){return null!=e&&e==e.window}function u(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function s(e){return"object"==i(e)}function l(e){return s(e)&&!a(e)&&Object.getPrototypeOf(e)==Object.prototype}t.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d=n(54),p=r(d),f=n(37),h=r(f),v=n(34),g=r(v),m=n(36),b=r(m),y=n(33),D=r(y),w=document,x=navigator,k=/[&<>"'`\\]/g,A=RegExp(k.source),E=/&(?:amp|lt|gt|quot|#39|#x60|#x5c);/g,F=RegExp(E.source),C={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\\":"\"},_={};for(var B in C)_[C[B]]=B;var S=null;Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,r;if(null==this)throw new TypeError(" this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(n=t),r=0;r';return n.test(o)?a:""}};t.default=i},function(e,t,n){"use strict";t.__esModule=!0;var r=n(62),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){return(0,i.default)(e,{onTagAttr:function(e,t,n,r){return o(e,t,n,r)},onIgnoreTagAttr:function(e,t,n,r){return o(e,t,n,r)}}).replace(/\<\/?div\>/gi,"")};var o=function(e,t,n,r){if(/video|audio/i.test(e))return"";if(/code|pre|span/i.test(e)){if("style"==t){var o=n.match(/color:([#a-z0-9]{3,7}|\s+[#a-z0-9]{3,8})/gi);return o&&o.length?'style="'+o[0]+'"':""}if("class"==t)return t+"='"+i.default.escapeAttrValue(n)+"'"}return"a"===e&&"class"==t&&"at"===n?t+"='"+i.default.escapeAttrValue(n)+"'":"img"===e&&/src|class/i.test(t)?t+"='"+i.default.escapeAttrValue(n)+"' referrerPolicy='no-referrer'":void 0}},function(e,t,n){"use strict";var r=n(6),i=n(1),o=n(60),a=n(0),u=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(s,u),c=n(5),d=i("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=l(r,s,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var p=function(){return l(r,u,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},function(e,t){function n(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function r(e,t,n){}function i(e,t,n){}function o(e,t){return a.test(t)?"":t}var a=/javascript\s*\:/gim;t.whiteList=n(),t.getDefaultWhiteList=n,t.onAttr=r,t.onIgnoreAttr=i,t.safeAttrValue=o},function(e,t){e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===l&&d?d.configurable:!l,enumerable:null===u&&d?d.enumerable:!u,value:n,writable:null===s&&d?d.writable:!s});else{if(!c&&(u||s||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},function(e,t,n){"use strict";var r=n(56),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,u=n(13),s=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)},l=n(17)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if(!s(r)||!r())return;l?u(e,t,n,!0):u(e,t,n)},d=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var u=0;u=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(46),i=n(38),o=i("Object.prototype.propertyIsEnumerable"),a=i("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var i in t)o(t,i)&&a(n,[i,t[i]]);return n}},function(e,t,n){"use strict";var r=n(20);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},function(e,t,n){function r(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}function i(e,t,n){}function o(e,t,n){}function a(e,t,n){}function u(e,t,n){}function s(e){return e.replace(E,"<").replace(F,">")}function l(e,t,n,r){if(n=v(n),"href"===t||"src"===t){if("#"===(n=k.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if($.lastIndex=0,$.test(n))return""}else if("style"===t){if(j.lastIndex=0,j.test(n))return"";if(z.lastIndex=0,z.test(n)&&($.lastIndex=0,$.test(n)))return"";!1!==r&&(r=r||A,n=r.process(n))}return n=g(n)}function c(e){return e.replace(C,""")}function d(e){return e.replace(_,'"')}function p(e){return e.replace(B,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function f(e){return e.replace(S,":").replace(O," ")}function h(e){for(var t="",n=0,r=e.length;n/g,C=/"/g,_=/"/g,B=/&#([a-zA-Z0-9]*);?/gim,S=/:?/gim,O=/&newline;?/gim,$=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,j=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,z=/u\s*r\s*l\s*\(.*/gi;t.whiteList=r(),t.getDefaultWhiteList=r,t.onTag=i,t.onIgnoreTag=o,t.onTagAttr=a,t.onIgnoreTagAttr=u,t.safeAttrValue=l,t.escapeHtml=s,t.escapeQuote=c,t.unescapeQuote=d,t.escapeHtmlEntities=p,t.escapeDangerHtml5Entities=f,t.clearNonPrintableCharacter=h,t.friendlyAttrValue=v,t.escapeAttrValue=g,t.onIgnoreTagStripAll=m,t.StripTagBody=b,t.stripCommentTag=y,t.stripBlankChar=D,t.attributeWrapSign='"',t.cssFilter=A,t.getDefaultCSSWhiteList=x},function(e,t,n){function r(e){var t,n=p.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),t=p.trim(t).toLowerCase(),"/"===t.slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function i(e){return""===f||l===c-1){o+=n(e.slice(a,u)),p=e.slice(u,l+1),d=r(p),o+=t(u,o.length,d,p,i(p)),a=l+1,u=!1;continue}if('"'===f||"'"===f)for(var h=1,v=e.charAt(l-h);""===v.trim()||"="===v;){if("="===v){s=f;continue e}v=e.charAt(l-++h)}}else if(f===s){s=!1;continue}}return a0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function c(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}function d(e){return c(e)?e.substr(1,e.length-2):e}var p=n(7),f=/[^a-zA-Z0-9\\_:.-]/gim;t.parseTag=o,t.parseAttr=a},function(e,t,n){var r,i,o;/*! autosize 4.0.4 license: MIT http://www.jacklmoore.com/autosize */ -!function(n,a){i=[e,t],r=a,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,function(e,t){"use strict";function n(e){function t(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function n(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function r(){if(0!==e.scrollHeight){var t=n(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+u+"px",s=e.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop}),r&&(document.documentElement.scrollTop=r)}}function i(){r();var n=Math.round(parseFloat(e.style.height)),i=window.getComputedStyle(e,null),o="content-box"===i.boxSizing?Math.round(parseFloat(i.height)):e.offsetHeight;if(o-1},get:function(n){return t[e.indexOf(n)]},set:function(n,r){-1===e.indexOf(n)&&(e.push(n),t.push(r))},delete:function(n){var r=e.indexOf(n);r>-1&&(e.splice(r,1),t.splice(r,1))}}}(),a=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){a=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var u=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(u=function(e){return e},u.destroy=function(e){return e},u.update=function(e){return e}):(u=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e)}),e},u.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e},u.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e}),t.default=u,e.exports=t.default})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return!!e&&this.init(e),this}function o(e){return new i(e)}var a=n(42),u=r(a),s=n(33),l=r(s),c=n(37),f=r(c),p=n(12),d=r(p),h=n(6),v=n(41),g=r(v),m=n(36),y=r(m),b=n(40),D=n(38),x=r(D),w=n(3),A=r(w),k=n(39),E=r(k),F=n(13),C=r(F),_=n(35),S=(r(_),{comment:"",nick:"",mail:"",link:"",ua:A.default.ua,url:"",QQAvatar:""}),O="",B={},$={cdn:"https://gravatar.loli.net/avatar/",ds:["mp","identicon","monsterid","wavatar","robohash","retro",""],params:"",hide:!1};i.prototype.init=function(e){if("undefined"==typeof document)throw new Error("Sorry, Valine does not support Server-side rendering.");var t=this;return e&&(e=A.default.extend(h.CONFIG,e),t.i18n=(0,f.default)(e.lang||A.default.lang,e.langMode),t.cfg=e,d.default.maps=!!e.emojiMaps&&e.emojiMaps||d.default.maps,d.default.cdn=!!e.emojiCDN&&e.emojiCDN||d.default.cdn,t._init()),t},i.prototype._init=function(){var e=this;try{var t=e.cfg,n=t.avatar,r=t.avatarForce,i=t.avatar_cdn,o=t.visitor,a=t.path,u=void 0===a?location.pathname:a,s=t.pageSize,l=t.recordIP;e.cfg.path=u.replace(/index\.html?$/,"");var c=$.ds,f=r?"&q="+(0,h.RandomStr)():"";$.params="?d="+(c.indexOf(n)>-1?n:"mp")+"&v="+h.VERSION+f,$.hide="hide"===n,$.cdn=/^https?\:\/\//.test(i)?i:$.cdn,e.cfg.pageSize=isNaN(s)?10:s<1?10:s,l&&(0,b.recordIPFn)(function(e){return S.ip=e});var p=e.cfg.el||null,d=(0,A.default)(p);if(p=p instanceof HTMLElement?p:d[d.length-1]||null){e.$el=(0,A.default)(p),e.$el.addClass("v").attr("data-class","v"),$.hide&&e.$el.addClass("hide-avatar"),e.cfg.meta=(e.cfg.guest_info||e.cfg.meta||h.defaultMeta).filter(function(e){return h.defaultMeta.indexOf(e)>-1}),e.cfg.requiredFields=e.cfg.requiredFields.filter(function(e){return h.defaultMeta.indexOf(e)>-1});var v=(0==e.cfg.meta.length?h.defaultMeta:e.cfg.meta).map(function(t){var n="mail"==t?"email":"text";return h.defaultMeta.indexOf(t)>-1?'':""}),g='
      '+v.join("")+'
      Powered By Valine
      v'+h.VERSION+"
      ";e.$el.html(g),e.$el.find(".cancel-reply").on("click",function(t){e.reset()});var m=e.$el.find(".vempty");e.$nodata={show:function(t){return m.html(t||e.i18n.t("sofa")).show(),e},hide:function(){return m.hide(),e}};var D=e.$el.find(".vload-bottom"),w=e.$el.find(".vload-top");e.$loading={show:function(t){return t&&w.show()||D.show(),e.$nodata.hide(),e},hide:function(){return w.hide(),D.hide(),0===e.$el.find(".vcard").length&&e.$nodata.show(),e}}}(0,y.default)(e.cfg,function(t){var n=(0,A.default)(".valine-comment-count"),r=0;!function t(n){var i=n[r++];if(i){var o=(0,A.default)(i).attr("data-xid");!!o&&e.Q(o).count().then(function(e){i.innerText=e,t(n)}).catch(function(e){i.innerText=0})}}(n),o&&T.add(AV.Object.extend("Counter"),e.cfg.path),e.$el&&e.bind()})}catch(t){(0,x.default)(e,t,"init")}};var j=function(e,t){var n=new e,r=new AV.ACL;r.setPublicReadAccess(!0),r.setPublicWriteAccess(!0),n.setACL(r),n.set("url",t.url),n.set("xid",t.xid),n.set("title",t.title),n.set("time",1),n.save().then(function(e){(0,A.default)(t.el).find(".leancloud-visitors-count").text(1)}).catch(function(e){})},T={add:function(e,t){var n=this,r=(0,A.default)(".leancloud_visitors,.leancloud-visitors");if(1===r.length){var i=r[0],o=decodeURI((0,A.default)(i).attr("id")),a=(0,A.default)(i).attr("data-flag-title"),u=encodeURI(o),s={el:i,url:o,xid:u,title:a};if(decodeURI(o)===decodeURI(t)){var l=new AV.Query(e);l.equalTo("url",o),l.find().then(function(t){if(t.length>0){var n=t[0];n.increment("time"),n.save().then(function(e){(0,A.default)(i).find(".leancloud-visitors-count").text(e.get("time"))}).catch(function(e){})}else j(e,s)}).catch(function(t){101==t.code?j(e,s):(0,x.default)(n,t)})}else T.show(e,r)}else T.show(e,r)},show:function(e,t){var n=[];if(t.forEach(function(e){var t=(0,A.default)(e).find(".leancloud-visitors-count");t&&t.text("0"),n.push(/\%/.test((0,A.default)(e).attr("id"))?decodeURI((0,A.default)(e).attr("id")):(0,A.default)(e).attr("id"))}),n.length){var r=new AV.Query(e);r.containedIn("url",n),r.find().then(function(e){e.length>0&&t.forEach(function(t){e.forEach(function(e){var n=e.get("xid")||encodeURI(e.get("url")),r=e.get("time"),i=(0,A.default)(t),o=i.attr("id");if((/\%/.test(o)?o:encodeURI(o))==n){var a=i.find(".leancloud-visitors-count");a&&a.text(r)}})})}).catch(function(e){})}}};i.prototype.Q=function(e){var t=this,n=arguments.length,r=t.cfg.clazzName;if(1==n){var i=new AV.Query(r);i.doesNotExist("rid");var o=new AV.Query(r);o.equalTo("rid","");var a=AV.Query.or(i,o);return"*"===e?a.exists("url"):a.equalTo("url",decodeURI(e)),a.addDescending("createdAt"),a.addDescending("insertedAt"),a}var u=JSON.stringify(arguments[1]).replace(/(\[|\])/g,""),s="select * from "+r+" where rid in ("+u+") order by -createdAt,-createdAt";return AV.Query.doCloudQuery(s)},i.prototype.installLocale=function(e,t){var n=this;return n.i18n(e,t),n},i.prototype.setPath=function(e){return this.config.path=e,this},i.prototype.bind=function(){var e=this,t=e.$el.find(".vemojis"),n=e.$el.find(".vpreview"),r=e.$el.find(".vemoji-btn"),i=e.$el.find(".vpreview-btn"),o=e.$el.find(".veditor"),a=d.default.maps,s=!1,c=function(e){var n=[];for(var r in a)a.hasOwnProperty(r)&&!!d.default.build(r)&&n.push(''+d.default.build(r)+"");t.html(n.join("")),s=!0,t.find("i").on("click",function(e){e.preventDefault(),w(o[0]," :"+(0,A.default)(this).attr("title")+":")})};e.$emoji={show:function(){return!s&&c(),e.$preview.hide(),t.show(),r.addClass("actived"),e.$emoji},hide:function(){return r.removeClass("actived"),t.hide(),e.$emoji}},e.$preview={show:function(){return O?(e.$emoji.hide(),i.addClass("actived"),n.html((0,E.default)(O)).show(),R()):e.$preview.hide(),e.$preview},hide:function(){return i.removeClass("actived"),n.hide().html(""),e.$preview}};var f=function(t){var r=t.val()||"";r||e.$preview.hide(),O!=r&&(O=r,i.hasClass("actived")>-1&&O!=n.html()&&n.html((0,E.default)(O)),R())};r.on("click",function(t){r.hasClass("actived")?e.$emoji.hide():e.$emoji.show()}),i.on("click",function(t){i.hasClass("actived")?e.$preview.hide():e.$preview.show()});var p=e.cfg.meta,v={},m={veditor:"comment"};p.forEach(function(e){m["v"+e]=e});for(var y in m)m.hasOwnProperty(y)&&function(){var t=m[y],n=e.$el.find("."+y);v[t]=n,n.on("input change blur propertychange",function(r){e.cfg.enableQQ&&"blur"===r.type&&"nick"===t&&(isNaN(n.val())?A.default.store.get(h.QQCacheKey)&&A.default.store.get(h.QQCacheKey).nick!=n.val()&&(A.default.store.remove(h.QQCacheKey),S.nick=n.val(),S.mail="",S.QQAvatar=""):(0,b.fetchQQFn)(n.val(),function(e){var t=e.nick||n.val(),r=e.qq+"@qq.com";(0,A.default)(".vnick").val(t),(0,A.default)(".vmail").val(r),S.nick=t,S.mail=r,S.QQAvatar=e.pic})),"comment"===t?((0,l.default)(n[0]),D(function(e){f(n)})()):S[t]=A.default.escape(n.val().replace(/(^\s*)|(\s*$)/g,"")).substring(0,20)})}();var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=void 0;return function(){var r=this,i=arguments;n&&clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}},w=function(e,t){if(document.selection){e.focus();document.selection.createRange().text=t,e.focus()}else if(e.selectionStart||"0"==e.selectionStart){var n=e.selectionStart,r=e.selectionEnd,i=e.scrollTop;e.value=e.value.substring(0,n)+t+e.value.substring(r,e.value.length),e.focus(),e.selectionStart=n+t.length,e.selectionEnd=n+t.length,e.scrollTop=i}else e.focus(),e.value+=t;D(function(t){f((0,A.default)(e))})()},k={no:1,size:e.cfg.pageSize,skip:e.cfg.pageSize},F=e.$el.find(".vpage");F.on("click",function(e){F.hide(),k.no++,_()});var _=function(){var t=k.size,n=k.no,r=Number(e.$el.find(".vnum").text());e.$loading.show();var i=e.Q(e.cfg.path);i.limit(t),i.skip((n-1)*t),i.find().then(function(i){if(k.skip=k.size,i&&i.length){var o=[];i.forEach(function(t){o.push(t.id),T(t,e.$el.find(".vcards"),!0)}),e.Q(e.cfg.path,o).then(function(e){(e&&e.results||[]).forEach(function(e){T(e,(0,A.default)('.vquote[data-self-id="'+e.get("rid")+'"]'))})}).catch(function(e){}),t*n0?(e.$el.find(".vcount").show().find(".vnum").text(t),_()):e.$loading.hide()}).catch(function(t){(0,x.default)(e,t,"count")});var j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=/(https?|http):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/g,n=e.match(t)||[];return n.length>0?n[0]:""},T=function(t,n,r){var i=(0,A.default)('
      '),o=(0,C.default)(t.get("ua")),a="";o&&!/ja/.test(e.cfg.lang)&&(o=A.default.detect(o),a=o.version?o.os?''+o.browser+" "+o.version+' '+o.os+" "+o.osVersion+"":"":''+o.browser+""),"*"===e.cfg.path&&(a=''+t.get("url")+"");var s=t.get("link")?/^https?\:\/\//.test(t.get("link"))?t.get("link"):"http://"+t.get("link"):"",l=A.default.escape((0,C.default)(t.get("nick").substring(0,20))),c=s?''+l+"":''+l+"",f=$.hide?"":e.cfg.enableQQ&&t.get("QQAvatar")?(0,C.default)(''):'',p=f+'
      '+c+" "+a+'
      '+(0,g.default)(t.get("insertedAt"),e.i18n)+''+e.i18n.t("reply")+'
      '+(0,E.default)(t.get("comment"))+'
      ';i.html(p);var d=i.find(".vat");i.find("a:not(.at)").forEach(function(e){(0,A.default)(e).attr({target:"_blank",rel:"noopener"})}),r?n.append(i):n.prepend(i);var h=i.find(".vcontent");h&&P(h),d&&z(d,t)},I={},z=function(t,n){t.on("click",function(r){var i=t.attr("data-vm-id"),o=t.attr("data-self-id"),a=e.$el.find(".vwrap"),u="@"+A.default.escape(n.get("nick"));(0,A.default)('.vreply-wrapper[data-self-id="'+o+'"]').append(a).find(".cancel-reply").show(),I={at:A.default.escape(u)+" ",rid:i,pid:o,rmail:n.get("mail")},v.comment.attr({placeholder:u})[0].focus()})},R=function(){setTimeout(function(){try{e.cfg.mathjax&&"MathJax"in window&&"version"in window.MathJax&&(/^3.*/.test(window.MathJax.version)&&MathJax.typeset()||MathJax.Hub.Queue(["Typeset",MathJax.Hub,document.querySelector(".v")])),"renderMathInElement"in window&&renderMathInElement((0,A.default)(".v")[0],{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1}]})}catch(e){}},100)},P=function(e){setTimeout(function(){e[0].offsetHeight>200&&(e.addClass("expand"),e.on("click",function(t){e.removeClass("expand")}))})};!function(t){if(t=A.default.store.get(h.MetaCacheKey)||t)for(var n in p)if(p.hasOwnProperty(n)){var r=p[n];e.$el.find(".v"+r).val(A.default.unescape(t[r])),S[r]=t[r]}var i=A.default.store.get(h.QQCacheKey);S.QQAvatar=e.cfg.enableQQ&&!!i&&i.pic||""}(),e.reset=function(){S.comment="",v.comment.val(""),f(v.comment),v.comment.attr("placeholder",e.cfg.placeholder),I={},e.$preview.hide(),e.$el.find(".vpanel").append(e.$el.find(".vwrap")),e.$el.find(".cancel-reply").hide(),O="",l.default.update(v.comment[0])};var M=e.$el.find(".vsubmit"),L=function(t){if(e.cfg.requiredFields.indexOf("nick")>-1&&S.nick.length<3)return v.nick[0].focus(),void e.$el.find(".status-bar").text(""+e.i18n.t("nickFail")).empty(3e3);if(e.cfg.requiredFields.indexOf("mail")>-1&&!/[\w-\.]+@([\w-]+\.)+[a-z]{2,3}/.test(S.mail))return v.mail[0].focus(),void e.$el.find(".status-bar").text(""+e.i18n.t("mailFail")).empty(3e3);if(""==O)return void v.comment[0].focus();for(var n in B)if(B.hasOwnProperty(n)){var r=B[n];O=O.replace(n,r),URL.revokeObjectURL(n)}B={},S.comment=(0,C.default)(O),S.nick=S.nick||"Anonymous";var i=A.default.store.get("vlx");if(i){if(Date.now()/1e3-i/1e3<20)return void e.$el.find(".status-bar").text(e.i18n.t("busy")).empty(3e3)}U()},N=function(){var e=new AV.ACL;return e.setPublicReadAccess(!0),e.setPublicWriteAccess(!1),e},U=function(){A.default.store.set("vlx",Date.now()),M.attr({disabled:!0}),e.$loading.show(!0);var t=AV.Object.extend(e.cfg.clazzName||"Comment"),n=new t;if(S.url=decodeURI(e.cfg.path),S.insertedAt=new Date,I.rid){var r=I.pid||I.rid;n.set("rid",I.rid),n.set("pid",r),S.comment=O.replace("

      ",'

      '+I.at+" , ")}for(var i in S)if(S.hasOwnProperty(i)){var o=S[i];n.set(i,o)}n.setACL(N()),n.save().then(function(t){"Anonymous"!=S.nick&&A.default.store.set(h.MetaCacheKey,{nick:S.nick,link:S.link,mail:S.mail});var n=e.$el.find(".vnum");try{I.rid?T(t,(0,A.default)('.vquote[data-self-id="'+I.rid+'"]'),!0):(Number(n.text())?n.text(Number(n.text())+1):e.$el.find(".vcount").show().find(".vnum").text(Number(n.text())+1),T(t,e.$el.find(".vcards")),k.skip++),M.removeAttr("disabled"),e.$loading.hide(),e.reset()}catch(t){(0,x.default)(e,t,"save")}}).catch(function(t){(0,x.default)(e,t,"commitEvt")})};M.on("click",L),(0,A.default)(document).on("keydown",function(e){var t=e.keyCode||e.which||e.charCode;((e.ctrlKey||e.metaKey)&&13===t&&L(),9===t)&&("veditor"==(document.activeElement.id||"")&&(e.preventDefault(),w(o[0]," ")))}).on("paste",function(e){var t="clipboardData"in e?e.clipboardData:e.originalEvent&&e.originalEvent.clipboardData||window.clipboardData;t&&Q(t.items,!0)}),o.on("dragenter dragleave dragover drop",function(e){e.stopPropagation(),e.preventDefault(),"drop"===e.type&&Q(e.dataTransfer.items)});var Q=function(e,t){for(var n=[],r=0,i=e.length;r]+>/g,""))});else if(-1!==a.type.indexOf("image")){n.push(a.getAsFile());continue}}q(n)},q=function(e,t){if(t=t||0,e.length>0)try{var n=e[t],r=URL.createObjectURL(n),i="!["+n.name+"]("+r+")";w(o[0],i);var a=new FileReader;a.onload=function(){B[r]=a.result},a.readAsDataURL(n)}catch(e){}}},e.exports=o,e.exports.default=o},function(e,t,n){"use strict";t.__esModule=!0;var r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=function(e,t){i.default.ajax({url:"https://app-router.com/2/route",body:{appId:e}}).then(function(e){e.json().then(function(e){return t&&t("//"+e.api_server)})})};t.default={getApi:o}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=!1;t.default=function(e,t){if("AV"in window){var n=window.AV.version||window.AV.VERSION;parseInt(n.split(".")[0])>2?o=!!AV.applicationId&&!!AV.applicationKey:i.default.deleteInWin("AV",0)}o?t&&t():i.default.sdkLoader("//unpkg.com/leancloud-storage@3/dist/av-min.js","AV",function(n){var r="https://",i="",a=e.app_id||e.appId,u=e.app_key||e.appKey;if(!e.serverURLs)switch(a.slice(-9)){case"-9Nh9j0Va":r+="tab.";break;case"-MdYXbMMI":r+="us."}i=e.serverURLs||r+"leancloud.cn",AV.init({appId:a,appKey:u,serverURLs:i}),o=!0,t&&t()})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(84),o=r(i),a=n(100),u=r(a),s=n(101),l=r(s),c=n(98),f=r(c),p=n(99),d=r(p),h={zh:u.default,"zh-cn":u.default,"zh-CN":u.default,"zh-TW":l.default,en:f.default,"en-US":f.default,ja:d.default,"ja-JP":d.default};t.default=function(e,t){return!h[e]&&e&&t&&(h[e]=t),new o.default({phrases:h[e||"zh"],locale:e})}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e.$el&&e.$loading.hide().$nodata.hide(),"[object Error]"==={}.toString.call(t)){var n=t.code||t.message||t.error||"";if(isNaN(n))e.$el&&e.$nodata.show('

       '+JSON.stringify(t)+"
      ");else{var r=e.i18n.t("code-"+n),i=(r=="code-"+n?void 0:r)||t.message||t.error||"";101==n||-1==n?e.$nodata.show():e.$el&&e.$nodata.show('
      Code '+n+": "+i+"
      ")}}else e.$el&&e.$nodata.show('
      '+JSON.stringify(t)+"
      ")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(83),o=n(79),a=r(o),u=n(3),s=r(u),l=n(12),c=r(l),f=n(13),p=r(f),d=new i.marked.Renderer;d.code=function(e,t){return'
      '+(t&&hljs.getLanguage(t)?hljs.highlight(t,e).value:s.default.escape(e))+"
      "},i.marked.setOptions({renderer:"hljs"in window?d:new i.marked.Renderer,highlight:function(e,t){return"hljs"in window?t&&hljs.getLanguage(t)&&hljs.highlight(t,e,!0).value||hljs.highlightAuto(e).value:(0,a.default)(e)},gfm:!0,tables:!0,breaks:!0,pedantic:!1,sanitize:!1,smartLists:!0,smartypants:!0,headerPrefix:"v-"}),t.default=function(e){return(0,p.default)((0,i.marked)(c.default.parse(e,!0)))}},function(e,t,n){"use strict";t.__esModule=!0,t.recordIPFn=t.fetchQQFn=void 0;var r=n(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(6),a=function(e,t){var n=i.default.store.get(o.QQCacheKey);n&&n.qq==e?t&&t(n):i.default.ajax({url:"//valine.api.ioliu.cn/getqqinfo",method:"POST",body:{qq:e}}).then(function(e){e.json().then(function(e){e.errmsg||(i.default.store.set(o.QQCacheKey,e),t&&t(e))})})},u=function(e){i.default.ajax({url:"//api.ip.sb/jsonip",method:"jsonp"}).then(function(t){e(t.ip)})};t.fetchQQFn=a,t.recordIPFn=u},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!e)return"";try{var n=i(e).getTime();if(isNaN(n))return"Time format error.";var o=(new Date).getTime(),a=o-n,u=Math.floor(a/864e5);if(0===u){var s=a%864e5,l=Math.floor(s/36e5);if(0===l){var c=s%36e5,f=Math.floor(c/6e4);if(0===f){var p=c%6e4;return Math.round(p/1e3)+" "+t.t("seconds")}return f+" "+t.t("minutes")}return l+" "+t.t("hours")}return u<0?t.t("now"):u<8?u+" "+t.t("days"):r(e)}catch(e){}};var r=function(e){var t=o(e.getDate(),2),n=o(e.getMonth()+1,2);return o(e.getFullYear(),2)+"-"+n+"-"+t},i=function e(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):/GMT/.test(t||"")?e(new Date(t).getTime()):(t=(t||"").replace(/(^\s*)|(\s*$)/g,"").replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))},o=function(e,t){for(var n=e.toString();n.length>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t){return e<>>32-t}function u(e,t,n,r,i,u){return o(a(o(o(t,e),o(r,u)),i),n)}function s(e,t,n,r,i,o,a){return u(t&n|~t&r,e,t,i,o,a)}function l(e,t,n,r,i,o,a){return u(t&r|n&~r,e,t,i,o,a)}function c(e,t,n,r,i,o,a){return u(t^n^r,e,t,i,o,a)}function f(e,t,n,r,i,o,a){return u(n^(t|~r),e,t,i,o,a)}function p(e,t){e[t>>5]|=128<>>9<<4)]=t;var n,r,i,a,u,p=1732584193,d=-271733879,h=-1732584194,v=271733878;for(n=0;n>5]>>>t%32&255);return n}function h(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<16&&(i=p(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=p(o.concat(h(t)),512+8*t.length),d(p(a.concat(r),640))}function m(e){var t,n,r="0123456789abcdef",i="";for(n=0;n>>4&15)+r.charAt(15&t);return i}function y(e){return unescape(encodeURIComponent(e))}function b(e){return v(y(e))}function D(e){return m(b(e))}function x(e,t){return g(y(e),y(t))}function w(e,t){return m(x(e,t))}function A(e,t,n){return t?n?x(t,e):w(t,e):n?b(e):D(e)}void 0!==(r=function(){return A}.call(t,n,t,e))&&(e.exports=r)}()},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(1),a=n(5),u=n(14),s=n(15),l=s(),c=n(44),f=o("Array.prototype.slice"),p=i.apply(l),d=function(e,t){return a(e),p(e,f(arguments,1))};r(d,{getPolyfill:s,implementation:u,shim:c}),e.exports=d},function(e,t,n){"use strict";var r=n(2),i=n(15);e.exports=function(){var e=i();return r(Array.prototype,{forEach:e},{forEach:function(){return Array.prototype.forEach!==e}}),e}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(47),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){return e=(0,i.default)({url:"",method:"get",body:{}},e),new Promise(function(t,n){if("jsonp"==e.method){var r="cb_"+(Date.now()+Math.round(1e3*Math.random())).toString(32),i=document,o=i.body,u=i.createElement("script");return e.body.callback=r,e.body.t=Date.now(),u.src=e.url+"?"+a(e.body),window[r]=function(e){window[r]=null,o.removeChild(u),t(e)},void o.appendChild(u)}var s="XMLHttpRequest"in window?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),l=[],c=[],f={},p=function e(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:e,headers:{keys:function(){return l},entries:function(){return c},get:function(e){return f[e.toLowerCase()]},has:function(e){return e.toLowerCase()in f}}}};e.url=e.url+"?"+("get"==e.method?a(e.body):""),s.open(e.method||"get",e.url,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){l.push(t=t.toLowerCase()),c.push([t,n]),f[t]=f[t]?f[t]+","+n:n}),t(p())},s.onerror=n,s.withCredentials="include"==e.credentials;for(var d in e.headers)s.setRequestHeader(d,e.headers[d]);s.send("post"==e.method?e.body:"get"==e.method?null:a(e.body))})};var o=encodeURIComponent,a=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(o(n)+"="+o(e[n]));return(t=t.join("&").replace(/%20/g,"+"))||null}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){e=e||navigator.userAgent;var t={},n={Trident:e.indexOf("Trident")>-1||e.indexOf("NET CLR")>-1,Presto:e.indexOf("Presto")>-1,WebKit:e.indexOf("AppleWebKit")>-1,Gecko:e.indexOf("Gecko/")>-1,Safari:e.indexOf("Safari")>-1,Edge:e.indexOf("Edge")>-1||e.indexOf("Edg")>-1,Chrome:e.indexOf("Chrome")>-1||e.indexOf("CriOS")>-1,IE:e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1,Firefox:e.indexOf("Firefox")>-1||e.indexOf("FxiOS")>-1,"Firefox Focus":e.indexOf("Focus")>-1,Chromium:e.indexOf("Chromium")>-1,Opera:e.indexOf("Opera")>-1||e.indexOf("OPR")>-1,Vivaldi:e.indexOf("Vivaldi")>-1,Yandex:e.indexOf("YaBrowser")>-1,Kindle:e.indexOf("Kindle")>-1||e.indexOf("Silk/")>-1,360:e.indexOf("360EE")>-1||e.indexOf("360SE")>-1,UC:e.indexOf("UC")>-1||e.indexOf(" UBrowser")>-1,QQBrowser:e.indexOf("QQBrowser")>-1,QQ:e.indexOf("QQ/")>-1,Baidu:e.indexOf("Baidu")>-1||e.indexOf("BIDUBrowser")>-1,Maxthon:e.indexOf("Maxthon")>-1,Sogou:e.indexOf("MetaSr")>-1||e.indexOf("Sogou")>-1,LBBROWSER:e.indexOf("LBBROWSER")>-1,"2345Explorer":e.indexOf("2345Explorer")>-1,TheWorld:e.indexOf("TheWorld")>-1,XiaoMi:e.indexOf("MiuiBrowser")>-1,Quark:e.indexOf("Quark")>-1,Qiyu:e.indexOf("Qiyu")>-1,Wechat:e.indexOf("MicroMessenger")>-1,Taobao:e.indexOf("AliApp(TB")>-1,Alipay:e.indexOf("AliApp(AP")>-1,Weibo:e.indexOf("Weibo")>-1,Douban:e.indexOf("com.douban.frodo")>-1,Suning:e.indexOf("SNEBUY-APP")>-1,iQiYi:e.indexOf("IqiyiApp")>-1,Windows:e.indexOf("Windows")>-1,Linux:e.indexOf("Linux")>-1||e.indexOf("X11")>-1,macOS:e.indexOf("Macintosh")>-1,Android:e.indexOf("Android")>-1||e.indexOf("Adr")>-1,Ubuntu:e.indexOf("Ubuntu")>-1,FreeBSD:e.indexOf("FreeBSD")>-1,Debian:e.indexOf("Debian")>-1,"Windows Phone":e.indexOf("IEMobile")>-1||e.indexOf("Windows Phone")>-1,BlackBerry:e.indexOf("BlackBerry")>-1||e.indexOf("RIM")>-1||e.indexOf("BB10")>-1,MeeGo:e.indexOf("MeeGo")>-1,Symbian:e.indexOf("Symbian")>-1,iOS:e.indexOf("like Mac OS X")>-1,"Chrome OS":e.indexOf("CrOS")>-1,WebOS:e.indexOf("hpwOS")>-1,Mobile:e.indexOf("Mobi")>-1||e.indexOf("iPh")>-1||e.indexOf("480")>-1,Tablet:e.indexOf("Tablet")>-1||e.indexOf("Pad")>-1||e.indexOf("Nexus 7")>-1};n.Mobile&&(n.Mobile=!(e.indexOf("iPad")>-1));var r={browser:["Safari","Chrome","Edge","IE","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Kindle","360","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","macOS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"]};for(var i in r)if(r.hasOwnProperty(i))for(var o=0,a=r[i].length;o-1){var n=function(){};e.__proto__={setItem:n,getItem:n,removeItem:n,clear:n}}}finally{"yes"===e.getItem(t)&&e.removeItem(t)}return e}(c),s.prototype={set:function(e,t){if(e&&!r(e))c.setItem(e,a(t));else if(r(e))for(var n in e)this.set(n,e[n]);return this},get:function(e){if(!e){var t={};return this.each(function(e,n){return t[e]=n}),t}if("?"===e.charAt(0))return this.has(e.substr(1));var n=arguments;if(n.length>1){for(var r={},i=0,o=n.length;i-1&&(n[t[r]]=this.get(t[r]));return n}};var f=null;for(var p in s.prototype)l[p]=s.prototype[p];t.default=l},function(e,t,n){var r,i;!function(n,o){var o=function(e,t,n){function r(i,o,a){return a=Object.create(r.fn),i&&a.push.apply(a,i[t]?[i]:""+i===i?/2?arguments[2]:[];if(!a(n))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return u(e,t,n)}},function(e,t,n){"use strict";var r=n(0),i=r("%TypeError%"),o=n(19),a=n(8);e.exports=function(e,t){if("Object"!==a(e))throw new i("Assertion failed: `O` must be an Object");if(!o(t))throw new i("Assertion failed: `P` must be a Property Key");return t in e}},function(e,t,n){"use strict";var r=n(0),i=r("%Array%"),o=!i.isArray&&n(1)("Object.prototype.toString");e.exports=i.isArray||function(e){return"[object Array]"===o(e)}},function(e,t,n){"use strict";e.exports=n(10)},function(e,t,n){"use strict";var r=n(0),i=r("%TypeError%"),o=n(18),a=n(58),u=n(8);e.exports=function(e){if("Object"!==u(e))throw new i("Assertion failed: `obj` must be an Object");return a(o(e,"length"))}},function(e,t,n){"use strict";var r=n(63),i=n(59);e.exports=function(e){var t=i(e);return 0!==t&&(t=r(t)),0===t?0:t}},function(e,t,n){"use strict";var r=n(72),i=n(57);e.exports=function(e){var t=i(e);return t<=0?0:t>r?r:t}},function(e,t,n){"use strict";var r=n(0),i=r("%TypeError%"),o=r("%Number%"),a=r("%RegExp%"),u=r("%parseInt%"),s=n(1),l=n(73),c=n(71),f=s("String.prototype.slice"),p=l(/^0b[01]+$/i),d=l(/^0o[0-7]+$/i),h=l(/^[-+]0x[0-9a-f]+$/i),v=["…","​","￾"].join(""),g=new a("["+v+"]","g"),m=l(g),y=["\t\n\v\f\r  ᠎    ","          \u2028","\u2029\ufeff"].join(""),b=new RegExp("(^["+y+"]+)|(["+y+"]+$)","g"),D=s("String.prototype.replace"),x=function(e){return D(e,b,"")},w=n(61);e.exports=function e(t){var n=c(t)?t:w(t,o);if("symbol"==typeof n)throw new i("Cannot convert a Symbol value to a number");if("bigint"==typeof n)throw new i("Conversion from 'BigInt' to 'number' is not allowed.");if("string"==typeof n){if(p(n))return e(u(f(n,2),2));if(d(n))return e(u(f(n,2),8));if(m(n)||h(n))return NaN;var r=x(n);if(r!==n)return e(r)}return o(n)}},function(e,t,n){"use strict";var r=n(0),i=r("%Object%"),o=n(5);e.exports=function(e){return o(e),i(e)}},function(e,t,n){"use strict";var r=n(76);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},function(e,t,n){"use strict";var r=n(0),i=r("%TypeError%");e.exports=function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e}},function(e,t,n){"use strict";var r=n(67),i=n(68),o=n(64),a=n(70),u=n(69),s=n(74);e.exports=function(e){var t=o(e);return a(t)?0:0!==t&&u(t)?s(t)*i(r(t)):t}},function(e,t,n){"use strict";var r=n(65);e.exports=function(e){var t=r(e,Number);if("string"!=typeof t)return+t;var n=t.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g,"");return/^0[ob]|^[+-]0x/.test(n)?NaN:+n}},function(e,t,n){"use strict";e.exports=n(77)},function(e,t,n){"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},function(e,t,n){"use strict";var r=n(0),i=r("%Math.abs%");e.exports=function(e){return i(e)}},function(e,t,n){"use strict";var r=Math.floor;e.exports=function(e){return r(e)}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!==e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!==e}},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(0),i=r("%Math%"),o=r("%Number%");e.exports=o.MAX_SAFE_INTEGER||i.pow(2,53)-1},function(e,t,n){"use strict";var r=n(0),i=r("RegExp.prototype.test"),o=n(4);e.exports=function(e){return o(i,e)}},function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e){var t=!0,n=!0,r=!1;if("function"==typeof e){try{e.call("f",function(e,n,r){"object"!=typeof r&&(t=!1)}),e.call([null],function(){"use strict";n="string"==typeof this},"x")}catch(e){r=!0}return!r&&t&&n}return!1}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=n(21),o=n(10),a=n(80),u=n(82),s=function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,u="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var n;if(r&&(Symbol.toPrimitive?n=l(e,Symbol.toPrimitive):u(e)&&(n=Symbol.prototype.valueOf)),void 0!==n){var o=n.call(e,t);if(i(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return"default"===t&&(a(e)||u(e))&&(t="string"),s(e,"default"===t?"number":t)}},function(e,t,n){"use strict";var r=Object.prototype.toString,i=n(21),o=n(10),a={"[[DefaultValue]]":function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,u=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a["[[DefaultValue]]"](e,arguments[1]):a["[[DefaultValue]]"](e)}},function(e,t,n){"use strict";var r=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,o=r.call(arguments,1),a=function(){if(this instanceof n){var i=t.apply(this,o.concat(r.call(arguments)));return Object(i)===i?i:this}return t.apply(e,o.concat(r.call(arguments)))},u=Math.max(0,t.length-o.length),s=[],l=0;l'+e+""}var t=function(e,t){return t={exports:{}},e(t,t.exports),t.exports}(function(e){var t=e.exports=function(){return new RegExp("(?:"+t.line().source+")|(?:"+t.block().source+")","gm")};t.line=function(){return/(?:^|\s)\/\/(.+?)$/gm},t.block=function(){return/\/\*([\S\s]*?)\*\//gm}}),n=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"];return function(r,i){void 0===i&&(i={});var o=i.colors;void 0===o&&(o=n);var a=0,u={},s=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,l=/'+n+"";return a=++a%o.length,s})}})},function(e,t,n){"use strict";var r=Date.prototype.getDay,i=function(e){try{return r.call(e),!0}catch(e){return!1}},o=Object.prototype.toString,a=n(24)();e.exports=function(e){return"object"==typeof e&&null!==e&&(a?i(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";var r=String.prototype.valueOf,i=function(e){try{return r.call(e),!0}catch(e){return!1}},o=Object.prototype.toString,a=n(24)();e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(a?i(e):"[object String]"===o.call(e))}},function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(22)()){var i=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,a=function(e){return"symbol"==typeof e.valueOf()&&o.test(i.call(e))};e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return a(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){!function(e,n){n(t)}(0,function(e){"use strict";function t(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function u(t){e.defaults=t}function s(e,t){if(t){if(k.test(e))return e.replace(E,S)}else if(F.test(e))return e.replace(C,S);return e}function l(e){return e.replace(O,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function c(e,t){e=e.source||e,t=t||"";var n={replace:function(t,r){return r=r.source||r,r=r.replace(B,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n}function f(e,t,n){if(e){var r;try{r=decodeURIComponent(l(n)).replace($,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!j.test(n)&&(n=p(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}function p(e,t){T[" "+e]||(I.test(e)?T[" "+e]=e+"/":T[" "+e]=v(e,"/",!0)),e=T[" "+e];var n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(z,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(R,"$1")+t:e+t}function d(e){for(var t,n,r=1;r=0&&"\\"===n[i];)r=!r;return r?"|":" |"}),r=n.split(/ \|/),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function b(e,t,n,r){var i=t.href,o=t.title?s(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;var u={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a,[])};return r.state.inLink=!1,u}return{type:"image",raw:n,href:i,title:o,text:s(a)}}function D(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e}).join("\n")}function x(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function w(e){var t,n,r="",i=e.length;for(t=0;t.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}function A(e,t,n){if(void 0===e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=d({},A.defaults,t||{}),m(t),n){var r,i=t.highlight;try{r=U.lex(e,t)}catch(e){return n(e)}var o=function(e){var o;if(!e)try{t.walkTokens&&A.walkTokens(r,t.walkTokens),o=V.parse(r,t)}catch(t){e=t}return t.highlight=i,e?n(e):n(null,o)};if(!i||i.length<3)return o();if(delete t.highlight,!r.length)return o();var a=0;return A.walkTokens(r,function(e){"code"===e.type&&(a++,setTimeout(function(){i(e.text,e.lang,function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0===--a&&o()})},0))}),void(0===a&&o())}try{var u=U.lex(e,t);return t.walkTokens&&A.walkTokens(u,t.walkTokens),V.parse(u,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

      An error occurred:

      "+s(e.message+"",!0)+"
      ";throw e}}e.defaults=a();var k=/[&<>"']/,E=/[&<>"']/g,F=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,_={"&":"&","<":"<",">":">",'"':""","'":"'"},S=function(e){return _[e]},O=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,B=/(^|[^\[])\^/g,$=/[^\w:]/g,j=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,T={},I=/^[^:]+:\/*[^/]*$/,z=/^([^:]+:)[\s\S]*$/,R=/^([^:]+:\/*[^/]*)[\s\S]*$/,P={exec:function(){}},M=function(){function t(t){this.options=t||e.defaults}var n=t.prototype;return n.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},n.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:v(n,"\n")}}},n.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=D(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},n.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=v(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}var i={type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},n.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},n.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}},n.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,i,a,u,s,l,c,f,p,d,h,v=t[1].trim(),g=v.length>1,m={type:"list",raw:"",ordered:g,start:g?+v.slice(0,-1):"",loose:!1,items:[]};v=g?"\\d{1,9}\\"+v.slice(-1):"\\"+v,this.options.pedantic&&(v=g?v:"[*+-]");for(var y=new RegExp("^( {0,3}"+v+")((?: [^\\n]*)?(?:\\n|$))");e&&(h=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],f=e.split("\n",1)[0],this.options.pedantic?(a=2,d=c.trimLeft()):(a=t[2].search(/[^ ]/),a=a>4?1:a,d=c.slice(a),a+=t[1].length),s=!1,!c&&/^ *$/.test(f)&&(n+=f+"\n",e=e.substring(f.length+1),h=!0),!h)for(var b=new RegExp("^ {0,"+Math.min(3,a-1)+"}(?:[*+-]|\\d{1,9}[.)])");e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!b.test(c));){if(c.search(/[^ ]/)>=a||!c.trim())d+="\n"+c.slice(a);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}m.loose||(l?m.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d))&&(i="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,"")),m.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();var D=m.items.length;for(u=0;u1)return!0}return!1});!m.loose&&x.length&&w&&(m.loose=!0,m.items[u].loose=!0)}return m}},n.html=function(e){var t=this.rules.block.html.exec(e);if(t){var n={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(t[0]):s(t[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}},n.def=function(e){var t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}},n.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:h(t[1]).map(function(e){return{text:e}}),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i,o,a,u=n.align.length;for(r=0;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):s(t[0]):t[0]}},n.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var r=v(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var i=g(t[2],"()");if(i>-1){var o=0===t[0].indexOf("!")?5:4,a=o+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var u=t[2],s="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(u);l&&(u=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return u=u.trim(),/^$/.test(n)?u.slice(1):u.slice(1,-1)),b(t,{href:u?u.replace(this.rules.inline._escapes,"$1"):u,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0],this.lexer)}},n.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return b(n,r,n[0],this.lexer)}},n.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,u=r[0].length-1,s=u,l=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+u);null!=(r=c.exec(t));)if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(a=o.length,r[3]||r[4])s+=a;else if(!((r[5]||r[6])&&u%3)||(u+a)%3){if(!((s-=a)>0)){if(a=Math.min(a,a+s+l),Math.min(u,a)%2){var f=e.slice(1,u+r.index+a);return{type:"em",raw:e.slice(0,u+r.index+a+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}var p=e.slice(2,u+r.index+a-1);return{type:"strong",raw:e.slice(0,u+r.index+a+1),text:p,tokens:this.lexer.inlineTokens(p,[])}}}else l+=a}}},n.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(n=n.substring(1,n.length-1)),n=s(n,!0),{type:"codespan",raw:t[0],text:n}}},n.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},n.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},n.autolink=function(e,t){var n=this.rules.inline.autolink.exec(e);if(n){var r,i;return"@"===n[2]?(r=s(this.options.mangle?t(n[1]):n[1]),i="mailto:"+r):(r=s(n[1]),i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},n.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])r=s(this.options.mangle?t(n[0]):n[0]),i="mailto:"+r;else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=s(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},n.inlineText=function(e,t){var n=this.rules.inline.text.exec(e);if(n){var r;return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):s(n[0]):n[0]:s(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:r}}},t}(),L={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:P,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};L._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,L._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,L.def=c(L.def).replace("label",L._label).replace("title",L._title).getRegex(),L.bullet=/(?:[*+-]|\d{1,9}[.)])/,L.listItemStart=c(/^( *)(bull) */).replace("bull",L.bullet).getRegex(),L.list=c(L.list).replace(/bull/g,L.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+L.def.source+")").getRegex(),L._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",L._comment=/|$)/,L.html=c(L.html,"i").replace("comment",L._comment).replace("tag",L._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),L.paragraph=c(L._paragraph).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex(),L.blockquote=c(L.blockquote).replace("paragraph",L.paragraph).getRegex(),L.normal=d({},L),L.gfm=d({},L.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),L.gfm.table=c(L.gfm.table).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex(),L.gfm.paragraph=c(L._paragraph).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",L.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex(),L.pedantic=d({},L.normal,{html:c("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",L._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,paragraph:c(L.normal._paragraph).replace("hr",L.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",L.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var N={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:P,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:P,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",N.punctuation=c(N.punctuation).replace(/punctuation/g,N._punctuation).getRegex(),N.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,N.escapedEmSt=/\\\*|\\_/g,N._comment=c(L._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),N.emStrong.lDelim=c(N.emStrong.lDelim).replace(/punct/g,N._punctuation).getRegex(),N.emStrong.rDelimAst=c(N.emStrong.rDelimAst,"g").replace(/punct/g,N._punctuation).getRegex(),N.emStrong.rDelimUnd=c(N.emStrong.rDelimUnd,"g").replace(/punct/g,N._punctuation).getRegex(),N._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,N._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,N._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,N.autolink=c(N.autolink).replace("scheme",N._scheme).replace("email",N._email).getRegex(),N._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,N.tag=c(N.tag).replace("comment",N._comment).replace("attribute",N._attribute).getRegex(),N._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,N._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,N._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,N.link=c(N.link).replace("label",N._label).replace("href",N._href).replace("title",N._title).getRegex(),N.reflink=c(N.reflink).replace("label",N._label).replace("ref",L._label).getRegex(),N.nolink=c(N.nolink).replace("ref",L._label).getRegex(),N.reflinkSearch=c(N.reflinkSearch,"g").replace("reflink",N.reflink).replace("nolink",N.nolink).getRegex(),N.normal=d({},N),N.pedantic=d({},N.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:c(/^!?\[(label)\]\((.*?)\)/).replace("label",N._label).getRegex(),reflink:c(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",N._label).getRegex()}),N.gfm=d({},N.normal,{escape:c(N.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?t.push(r):(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(i.raw+="\n"+r.raw,i.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,r=e.slice(1),i=void 0;n.options.extensions.startBlock.forEach(function(e){"number"==typeof(i=e.call({lexer:this},r))&&i>=0&&(t=Math.min(t,i))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(r=this.tokenizer.paragraph(o)))i=t[t.length-1],a&&"paragraph"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r),a=o.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),i=t[t.length-1],i&&"text"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);else if(e){var u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(u)}return this.state.top=!0,t},r.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},r.inlineTokens=function(e,t){var n=this;void 0===t&&(t=[]);var r,i,o,a,u,s,l=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+y("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+y("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,a.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(u||(s=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(i){return!!(r=i.call({lexer:n},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)})))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),i=t[t.length-1],i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),i=t[t.length-1],i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,s))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,w))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,w))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,r=e.slice(1),i=void 0;n.options.extensions.startInline.forEach(function(e){"number"==typeof(i=e.call({lexer:this},r))&&i>=0&&(t=Math.min(t,i))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),r=this.tokenizer.inlineText(o,x))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),u=!0,i=t[t.length-1],i&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(e){var f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(f)}}else e=e.substring(r.raw.length),t.push(r);return t},n(t,null,[{key:"rules",get:function(){return{block:L,inline:N}}}]),t}(),Q=function(){function t(t){this.options=t||e.defaults}var n=t.prototype;return n.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'
      '+(n?e:s(e,!0))+"
      \n":"
      "+(n?e:s(e,!0))+"
      \n"},n.blockquote=function(e){return"
      \n"+e+"
      \n"},n.html=function(e){return e},n.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},n.hr=function(){return this.options.xhtml?"
      \n":"
      \n"},n.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},n.listitem=function(e){return"
    1. "+e+"
    2. \n"},n.checkbox=function(e){return" "},n.paragraph=function(e){return"

      "+e+"

      \n"},n.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
      \n"},n.tablerow=function(e){return"\n"+e+"\n"},n.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},n.strong=function(e){return""+e+""},n.em=function(e){return""+e+""},n.codespan=function(e){return""+e+""},n.br=function(){return this.options.xhtml?"
      ":"
      "},n.del=function(e){return""+e+""},n.link=function(e,t,n){if(null===(e=f(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"},n.image=function(e,t,n){if(null===(e=f(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},n.text=function(e){return e},t}(),q=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),W=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),V=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new Q,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new q,this.slugger=new W}t.parse=function(e,n){return new t(n).parse(e)},t.parseInline=function(e,n){return new t(n).parseInline(e)};var n=t.prototype;return n.parse=function(e,t){void 0===t&&(t=!0);var n,r,i,o,a,u,s,c,f,p,d,h,v,g,m,y,b,D,x,w="",A=e.length;for(n=0;n0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=D+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=D+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:D}):g+=D),g+=this.parse(m.tokens,v),f+=this.renderer.listitem(g,b,y);w+=this.renderer.list(f,d,h);continue;case"html":w+=this.renderer.html(p.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(f=p.tokens?this.parseInline(p.tokens):p.text;n+1An error occurred:

      "+s(e.message+"",!0)+"
      ";throw e}},A.Parser=V,A.parser=V.parse,A.Renderer=Q,A.TextRenderer=q,A.Lexer=U,A.lexer=U.lex,A.Tokenizer=M,A.Slugger=W,A.parse=A;var H=A.options,K=A.setOptions,Z=A.use,G=A.walkTokens,J=A.parseInline,X=A,Y=V.parse,ee=U.lex;e.Lexer=U,e.Parser=V,e.Renderer=Q,e.Slugger=W,e.TextRenderer=q,e.Tokenizer=M,e.getDefaults=a,e.lexer=ee,e.marked=A,e.options=H,e.parse=X,e.parseInline=J,e.parser=Y,e.setOptions=K,e.use=Z,e.walkTokens=G,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){"use strict";function r(e){var t={};return c(f(e),function(e){var n=e[0],r=e[1];c(r,function(e){t[e]=n})}),t}function i(e,t){var n=r(e.pluralTypeToLanguages);return n[t]||n[m.call(t,/-/,1)[0]]||n.en}function o(e,t,n){return e.pluralTypes[t](n)}function a(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if(t===y||n===y)throw new RangeError('"'+y+'" token is reserved for pluralization');return new RegExp(a(t)+"(.*?)"+a(n),"g")}function s(e,t,n,r,i){if("string"!=typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var a=e,u=r||w,s="number"==typeof t?{smart_count:t}:t;if(null!=s.smart_count&&e){var l=i||D,c=m.call(e,y),f=n||"en",p=x(l,f),v=o(l,p,s.smart_count);a=h(c[v]||c[0])}return a=g.call(a,u,function(e,t){return d(s,t)&&null!=s[t]?s[t]:e})}function l(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?s:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||v,this.tokenRegex=u(t.interpolation),this.pluralRules=t.pluralRules||D}var c=n(43),f=n(89),p=n(94),d=n(25),h=n(92),v=function(e){p(!1,e)},g=String.prototype.replace,m=String.prototype.split,y="||||",b=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},D={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:b,chinese:function(){return 0},croatian:b,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:b,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}},x=function(){var e={};return function(t,n){var r=e[n];return r&&!t.pluralTypes[r]&&(r=null,e[n]=r),r||(r=i(t,n))&&(e[n]=r),r}}(),w=/%\{(.*?)\}/g;l.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},l.prototype.extend=function(e,t){c(f(e||{}),function(e){var n=e[0],r=e[1],i=t?t+"."+n:n;"object"==typeof r?this.extend(r,i):this.phrases[i]=r},this)},l.prototype.unset=function(e,t){"string"==typeof e?delete this.phrases[e]:c(f(e||{}),function(e){var n=e[0],r=e[1],i=t?t+"."+n:n;"object"==typeof r?this.unset(r,i):delete this.phrases[i]},this)},l.prototype.clear=function(){this.phrases={}},l.prototype.replace=function(e){this.clear(),this.extend(e)},l.prototype.t=function(e,t){var n,r,i=null==t?{}:t;if("string"==typeof this.phrases[e])n=this.phrases[e];else if("string"==typeof i._)n=i._;else if(this.onMissingKey){var o=this.onMissingKey;r=o(e,i,this.currentLocale,this.tokenRegex,this.pluralRules)}else this.warn('Missing translation for key: "'+e+'"'),r=e;return"string"==typeof n&&(r=s(n,i,this.currentLocale,this.tokenRegex,this.pluralRules)),r},l.prototype.has=function(e){return d(this.phrases,e)},l.transformPhrase=function(e,t,n){return s(e,t,n)},e.exports=l},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/* +!function(n,a){i=[e,t],r=a,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,function(e,t){"use strict";function n(e){function t(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function n(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function r(){if(0!==e.scrollHeight){var t=n(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+u+"px",s=e.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop}),r&&(document.documentElement.scrollTop=r)}}function i(){r();var n=Math.round(parseFloat(e.style.height)),i=window.getComputedStyle(e,null),o="content-box"===i.boxSizing?Math.round(parseFloat(i.height)):e.offsetHeight;if(o-1},get:function(n){return t[e.indexOf(n)]},set:function(n,r){-1===e.indexOf(n)&&(e.push(n),t.push(r))},delete:function(n){var r=e.indexOf(n);r>-1&&(e.splice(r,1),t.splice(r,1))}}}(),a=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){a=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var u=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(u=function(e){return e},u.destroy=function(e){return e},u.update=function(e){return e}):(u=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e)}),e},u.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e},u.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e}),t.default=u,e.exports=t.default})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return!!e&&this.init(e),this}function o(e){return new i(e)}var a=n(32),u=r(a),s=n(24),l=r(s),c=n(27),d=r(c),p=n(8),f=r(p),h=n(3),v=n(31),g=r(v),m=n(26),b=r(m),y=n(30),D=n(28),w=r(D),x=n(2),k=r(x),A=n(29),E=r(A),F=n(9),C=r(F),_={comment:"",nick:"",mail:"",link:"",ua:k.default.ua,url:"",QQAvatar:""},B="",S={},O={cdn:"https://gravatar.loli.net/avatar/",ds:["mp","identicon","monsterid","wavatar","robohash","retro",""],params:"",hide:!1};i.prototype.init=function(e){if("undefined"==typeof document)throw new Error("Sorry, Valine does not support Server-side rendering.");var t=this;return e&&(e=k.default.extend(h.CONFIG,e),t.i18n=(0,d.default)(e.lang||k.default.lang,e.langMode),t.cfg=e,f.default.maps=!!e.emojiMaps&&e.emojiMaps||f.default.maps,f.default.cdn=!!e.emojiCDN&&e.emojiCDN||f.default.cdn,t._init()),t},i.prototype._init=function(){var e=this;try{var t=e.cfg,n=t.avatar,r=t.avatarForce,i=t.avatar_cdn,o=t.avatarCDN,a=t.visitor,u=t.path,s=void 0===u?location.pathname:u,l=t.pageSize,c=t.recordIP,d=o||i;e.cfg.path=s.replace(/index\.html?$/,"");var p=O.ds,f=r?"&q="+(0,h.RandomStr)():"";O.params="?d="+(p.indexOf(n)>-1?n:"mp")+"&v="+h.VERSION+f,O.hide="hide"===n,O.cdn=/^https?\:\/\//.test(d)?d:O.cdn,e.cfg.pageSize=isNaN(l)?10:l<1?10:l,c&&(0,y.recordIPFn)(function(e){return _.ip=e});var v=e.cfg.el||null,g=(0,k.default)(v);if(v=v instanceof HTMLElement?v:g[g.length-1]||null){e.$el=(0,k.default)(v),e.$el.addClass("v").attr("data-class","v"),O.hide&&e.$el.addClass("hide-avatar"),e.cfg.meta=(e.cfg.guest_info||e.cfg.meta||h.defaultMeta).filter(function(e){return h.defaultMeta.indexOf(e)>-1}),e.cfg.requiredFields=e.cfg.requiredFields.filter(function(e){return h.defaultMeta.indexOf(e)>-1});var m=(0==e.cfg.meta.length?h.defaultMeta:e.cfg.meta).map(function(t){var n="mail"==t?"email":"text";return h.defaultMeta.indexOf(t)>-1?'':""}),D='
      '+m.join("")+'
      Powered By Valine
      v'+h.VERSION+"
      ";e.$el.html(D),e.$el.find(".cancel-reply").on("click",function(t){e.reset()});var x=e.$el.find(".vempty");e.$nodata={show:function(t){return x.html(t||e.i18n.t("sofa")).show(),e},hide:function(){return x.hide(),e}};var A=e.$el.find(".vload-bottom"),E=e.$el.find(".vload-top");e.$loading={show:function(t){return t&&E.show()||A.show(),e.$nodata.hide(),e},hide:function(){return E.hide(),A.hide(),0===e.$el.find(".vcard").length&&e.$nodata.show(),e}}}(0,b.default)(e.cfg,function(t){var n=(0,k.default)(".valine-comment-count"),r=0;!function t(n){var i=n[r++];if(i){var o=(0,k.default)(i).attr("data-xid");!!o&&e.Q(o).count().then(function(e){i.innerText=e,t(n)}).catch(function(e){i.innerText=0})}}(n),a&&j.add(AV.Object.extend("Counter"),e.cfg.path),e.$el&&e.bind()})}catch(t){(0,w.default)(e,t,"init")}};var $=function(e,t){var n=new e,r=new AV.ACL;r.setPublicReadAccess(!0),r.setPublicWriteAccess(!0),n.setACL(r),n.set("url",t.url),n.set("xid",t.xid),n.set("title",t.title),n.set("time",1),n.save().then(function(e){(0,k.default)(t.el).find(".leancloud-visitors-count").text(1)}).catch(function(e){})},j={add:function(e,t){var n=this,r=(0,k.default)(".leancloud_visitors,.leancloud-visitors");if(1===r.length){var i=r[0],o=decodeURI((0,k.default)(i).attr("id")),a=(0,k.default)(i).attr("data-flag-title"),u=encodeURI(o),s={el:i,url:o,xid:u,title:a};if(decodeURI(o)===decodeURI(t)){var l=new AV.Query(e);l.equalTo("url",o),l.find().then(function(t){if(t.length>0){var n=t[0];n.increment("time"),n.save().then(function(e){(0,k.default)(i).find(".leancloud-visitors-count").text(e.get("time"))}).catch(function(e){})}else $(e,s)}).catch(function(t){101==t.code?$(e,s):(0,w.default)(n,t)})}else j.show(e,r)}else j.show(e,r)},show:function(e,t){var n=[];if(t.forEach(function(e){var t=(0,k.default)(e).find(".leancloud-visitors-count");t&&t.text("0"),n.push(/\%/.test((0,k.default)(e).attr("id"))?decodeURI((0,k.default)(e).attr("id")):(0,k.default)(e).attr("id"))}),n.length){var r=new AV.Query(e);r.containedIn("url",n),r.find().then(function(e){e.length>0&&t.forEach(function(t){e.forEach(function(e){var n=e.get("xid")||encodeURI(e.get("url")),r=e.get("time"),i=(0,k.default)(t),o=i.attr("id");if((/\%/.test(o)?o:encodeURI(o))==n){var a=i.find(".leancloud-visitors-count");a&&a.text(r)}})})}).catch(function(e){})}}};i.prototype.Q=function(e){var t=this,n=arguments.length,r=t.cfg.clazzName;if(1==n){var i=new AV.Query(r);i.doesNotExist("rid");var o=new AV.Query(r);o.equalTo("rid","");var a=AV.Query.or(i,o);return"*"===e?a.exists("url"):a.equalTo("url",decodeURI(e)),a.addDescending("createdAt"),a.addDescending("insertedAt"),a}var u=JSON.stringify(arguments[1]).replace(/(\[|\])/g,""),s="select * from "+r+" where rid in ("+u+") order by -createdAt,-createdAt";return AV.Query.doCloudQuery(s)},i.prototype.installLocale=function(e,t){var n=this;return n.i18n(e,t),n},i.prototype.setPath=function(e){return this.config.path=e,this},i.prototype.bind=function(){var e=this,t=e.$el.find(".vemojis"),n=e.$el.find(".vpreview"),r=e.$el.find(".vemoji-btn"),i=e.$el.find(".vpreview-btn"),o=e.$el.find(".veditor"),a=f.default.maps,s=!1,c=function(e){var n=[];for(var r in a)a.hasOwnProperty(r)&&!!f.default.build(r)&&n.push(''+f.default.build(r)+"");t.html(n.join("")),s=!0,t.find("i").on("click",function(e){e.preventDefault(),x(o[0]," :"+(0,k.default)(this).attr("title")+":")})};e.$emoji={show:function(){return!s&&c(),e.$preview.hide(),t.show(),r.addClass("actived"),e.$emoji},hide:function(){return r.removeClass("actived"),t.hide(),e.$emoji}},e.$preview={show:function(){return B?(e.$emoji.hide(),i.addClass("actived"),n.html((0,E.default)(B)).show(),R()):e.$preview.hide(),e.$preview},hide:function(){return i.removeClass("actived"),n.hide().html(""),e.$preview}};var d=function(t){var r=t.val()||"";r||e.$preview.hide(),B!=r&&(B=r,i.hasClass("actived")>-1&&B!=n.html()&&n.html((0,E.default)(B)),R())};r.on("click",function(t){r.hasClass("actived")?e.$emoji.hide():e.$emoji.show()}),i.on("click",function(t){i.hasClass("actived")?e.$preview.hide():e.$preview.show()});var p=e.cfg.meta,v={},m={veditor:"comment"};p.forEach(function(e){m["v"+e]=e});for(var b in m)m.hasOwnProperty(b)&&function(){var t=m[b],n=e.$el.find("."+b);v[t]=n,n.on("input change blur propertychange",function(r){e.cfg.enableQQ&&"blur"===r.type&&"nick"===t&&(n.val()&&!isNaN(n.val())?(0,y.fetchQQFn)(n.val(),function(e){var t=e.nick||n.val(),r=e.qq+"@qq.com";(0,k.default)(".vnick").val(t),(0,k.default)(".vmail").val(r),_.nick=t,_.mail=r,_.QQAvatar=e.pic}):k.default.store.get(h.QQCacheKey)&&k.default.store.get(h.QQCacheKey).nick!=n.val()&&(k.default.store.remove(h.QQCacheKey),_.nick=n.val(),_.mail="",_.QQAvatar="")),"comment"===t?((0,l.default)(n[0]),D(function(e){d(n)})()):_[t]=(0,C.default)(n.val().replace(/(^\s*)|(\s*$)/g,"").substring(0,35))})}();var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=void 0;return function(){var r=this,i=arguments;n&&clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}},x=function(e,t){if(document.selection){e.focus();document.selection.createRange().text=t,e.focus()}else if(e.selectionStart||"0"==e.selectionStart){var n=e.selectionStart,r=e.selectionEnd,i=e.scrollTop;e.value=e.value.substring(0,n)+t+e.value.substring(r,e.value.length),e.focus(),e.selectionStart=n+t.length,e.selectionEnd=n+t.length,e.scrollTop=i}else e.focus(),e.value+=t;D(function(t){d((0,k.default)(e))})()},A={no:1,size:e.cfg.pageSize,skip:e.cfg.pageSize},F=e.$el.find(".vpage");F.on("click",function(e){F.hide(),A.no++,$()});var $=function(){var t=A.size,n=A.no,r=Number(e.$el.find(".vnum").text());e.$loading.show();var i=e.Q(e.cfg.path);i.limit(t),i.skip((n-1)*t),i.find().then(function(i){if(A.skip=A.size,i&&i.length){var o=[];i.forEach(function(t){o.push(t.id),z(t,e.$el.find(".vcards"),!0)}),e.Q(e.cfg.path,o).then(function(e){(e&&e.results||[]).forEach(function(e){z(e,(0,k.default)('.vquote[data-self-id="'+e.get("rid")+'"]'))})}).catch(function(e){}),t*n0?(e.$el.find(".vcount").show().find(".vnum").text(t),$()):e.$loading.hide()}).catch(function(t){(0,w.default)(e,t,"count")});var j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=/(https?:\/\/[a-zA-Z0-9\u4e00-\u9fa5][-a-zA-Z0-9\u4e00-\u9fa5.]*[a-zA-Z0-9\u4e00-\u9fa5](\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]*)?(\?[a-zA-Z0-9&=]*)?)/g,n=e.match(t)||[];return n.length>0?n[0]:""},z=function(t,n,r){var i=(0,k.default)('
      '),o=(0,C.default)(t.get("ua")),a="";o&&!/ja/.test(e.cfg.lang)&&(o=k.default.detect(o),a=o.version?o.os?''+o.browser+" "+o.version+' '+o.os+" "+o.osVersion+"":"":''+o.browser+""),"*"===e.cfg.path&&(a=''+t.get("url")+"");var s=t.get("link")?/^https?\:\/\//.test(t.get("link"))?t.get("link"):"http://"+t.get("link"):"",l=k.default.escape((0,C.default)(t.get("nick").substring(0,30))),c=s?''+l+"":''+l+"",d=O.hide?"":e.cfg.enableQQ&&t.get("QQAvatar")?(0,C.default)(''):'',p=d+'
      '+c+" "+a+'
      '+(0,g.default)(t.get("insertedAt"),e.i18n)+''+e.i18n.t("reply")+'
      '+(0,E.default)(t.get("comment"))+'
      ';i.html(p);var f=i.find(".vat");i.find("a:not(.at)").forEach(function(e){(0,k.default)(e).attr({target:"_blank",rel:"noopener"})}),r?n.append(i):n.prepend(i);var h=i.find(".vcontent");h&&P(h),f&&I(f,t)},T={},I=function(t,n){t.on("click",function(r){var i=t.attr("data-vm-id"),o=t.attr("data-self-id"),a=e.$el.find(".vwrap"),u="@"+k.default.escape(n.get("nick"));(0,k.default)('.vreply-wrapper[data-self-id="'+o+'"]').append(a).find(".cancel-reply").show(),T={at:k.default.escape(u)+" ",rid:i,pid:o,rmail:n.get("mail")},v.comment.attr({placeholder:u})[0].focus()})},R=function(){setTimeout(function(){try{e.cfg.mathjax&&"MathJax"in window&&"version"in window.MathJax&&(/^3.*/.test(window.MathJax.version)&&MathJax.typeset()||MathJax.Hub.Queue(["Typeset",MathJax.Hub,document.querySelector(".v")])),"renderMathInElement"in window&&renderMathInElement((0,k.default)(".v")[0],{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1}]})}catch(e){}},100)},P=function(e){setTimeout(function(){e[0].offsetHeight>200&&(e.addClass("expand"),e.on("click",function(t){e.removeClass("expand")}))})};!function(t){if(t=k.default.store.get(h.MetaCacheKey)||t)for(var n in p)if(p.hasOwnProperty(n)){var r=p[n];e.$el.find(".v"+r).val(k.default.unescape(t[r])),_[r]=t[r]}var i=k.default.store.get(h.QQCacheKey);_.QQAvatar=e.cfg.enableQQ&&!!i&&i.pic||""}(),e.reset=function(){_.comment="",v.comment.val(""),d(v.comment),v.comment.attr("placeholder",e.cfg.placeholder),T={},e.$preview.hide(),e.$el.find(".vpanel").append(e.$el.find(".vwrap")),e.$el.find(".cancel-reply").hide(),B="",l.default.update(v.comment[0])};var M=e.$el.find(".vsubmit"),L=function(t){if(e.cfg.requiredFields.indexOf("nick")>-1&&_.nick.length<1)return v.nick[0].focus(),void e.$el.find(".status-bar").text(""+e.i18n.t("nickFail")).empty(3e3);if(e.cfg.requiredFields.indexOf("mail")>-1&&!/[\w-\.]+@([\w-]+\.)+[a-z]{2,3}/.test(_.mail))return v.mail[0].focus(),void e.$el.find(".status-bar").text(""+e.i18n.t("mailFail")).empty(3e3);if(""==B)return void v.comment[0].focus();for(var n in S)if(S.hasOwnProperty(n)){var r=S[n];B=B.replace(n,r),URL.revokeObjectURL(n)}S={},_.comment=(0,C.default)(B),_.nick=_.nick||"Anonymous";var i=k.default.store.get("vlx");if(i){if(Date.now()/1e3-i/1e3<20)return void e.$el.find(".status-bar").text(e.i18n.t("busy")).empty(3e3)}Q()},U=function(){var e=new AV.ACL;return e.setPublicReadAccess(!0),e.setPublicWriteAccess(!1),e},Q=function(){k.default.store.set("vlx",Date.now()),M.attr({disabled:!0}),e.$loading.show(!0);var t=AV.Object.extend(e.cfg.clazzName||"Comment"),n=new t;if(_.url=decodeURI(e.cfg.path),_.insertedAt=new Date,T.rid){var r=T.pid||T.rid;n.set("rid",T.rid),n.set("pid",r),_.comment=B.replace("

      ",'

      '+T.at+" , ")}for(var i in _)if(_.hasOwnProperty(i)){var o=_[i];n.set(i,o)}n.setACL(U()),n.save().then(function(t){"Anonymous"!=_.nick&&k.default.store.set(h.MetaCacheKey,{nick:_.nick,link:_.link,mail:_.mail});var n=e.$el.find(".vnum");try{T.rid?z(t,(0,k.default)('.vquote[data-self-id="'+T.rid+'"]'),!0):(Number(n.text())?n.text(Number(n.text())+1):e.$el.find(".vcount").show().find(".vnum").text(Number(n.text())+1),z(t,e.$el.find(".vcards")),A.skip++),M.removeAttr("disabled"),e.$loading.hide(),e.reset(),"onCommentSubmitted"in e.cfg&&k.default.isFunction(e.cfg.onCommentSubmitted)&&e.cfg.onCommentSubmitted(_)}catch(t){(0,w.default)(e,t,"save")}}).catch(function(t){(0,w.default)(e,t,"commitEvt")})};M.on("click",L),(0,k.default)(document).on("keydown",function(e){e=window.event||e;var t=e.keyCode||e.which||e.charCode;((e.ctrlKey||e.metaKey)&&13===t&&L(),9===t)&&("veditor"==(document.activeElement.id||"")&&(e.preventDefault(),x(o[0]," ")))}).on("paste",function(e){var t="clipboardData"in e?e.clipboardData:e.originalEvent&&e.originalEvent.clipboardData||window.clipboardData;t&&N(t.items,!0)}),o.on("dragenter dragleave dragover drop",function(e){e.stopPropagation(),e.preventDefault(),"drop"===e.type&&N(e.dataTransfer.items)});var N=function(e,t){for(var n=0,r=e.length;n]+>/g,""))});else if(i.type.indexOf("image")>-1){q(i.getAsFile());continue}}},q=function(e){try{var t=URL.createObjectURL(e),n="![image]("+t+") ",r=new FileReader;x(o[0],n),r.onload=function(){S[t]=r.result},r.readAsDataURL(e)}catch(e){}}},e.exports=o,e.exports.default=o},function(e,t,n){"use strict";t.__esModule=!0;var r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=!1;t.default=function(e,t){if("AV"in window){var n=window.AV.version||window.AV.VERSION;parseInt(n.split(".")[0])>2?o=!!AV.applicationId&&!!AV.applicationKey:i.default.deleteInWin("AV",0)}o?t&&t():i.default.sdkLoader("//cdn.jsdelivr.net/npm/leancloud-storage@3/dist/av-min.js","AV",function(n){var r="https://",i="",a=e.app_id||e.appId,u=e.app_key||e.appKey;if(!e.serverURLs)switch(a.slice(-9)){case"-9Nh9j0Va":r+="tab.";break;case"-MdYXbMMI":r+="us."}i=e.serverURLs||r+"leancloud.cn",AV.init({appId:a,appKey:u,serverURLs:i}),o=!0,t&&t()})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(53),o=r(i),a=n(67),u=r(a),s=n(68),l=r(s),c=n(65),d=r(c),p=n(66),f=r(p),h={zh:u.default,"zh-cn":u.default,"zh-CN":u.default,"zh-TW":l.default,en:d.default,"en-US":d.default,ja:f.default,"ja-JP":f.default};t.default=function(e,t){return!h[e]&&e&&t&&(h[e]=t),new o.default({phrases:h[e||"zh"],locale:e})}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e.$el&&e.$loading.hide().$nodata.hide(),"[object Error]"==={}.toString.call(t)){var n=t.code||t.message||t.error||"";if(isNaN(n))e.$el&&e.$nodata.show('

       '+JSON.stringify(t)+"
      ");else{var r=e.i18n.t("code-"+n),i=(r=="code-"+n?void 0:r)||t.message||t.error||"";101==n||-1==n?e.$nodata.show():e.$el&&e.$nodata.show('
      Code '+n+": "+i+"
      ")}}else e.$el&&e.$nodata.show('
      '+JSON.stringify(t)+"
      ")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(52),o=n(48),a=r(o),u=n(2),s=r(u),l=n(8),c=r(l),d=n(9),p=r(d),f=new i.marked.Renderer;f.code=function(e,t){return'
      '+(t&&hljs.getLanguage(t)?hljs.highlight(t,e).value:s.default.escape(e))+"
      "},i.marked.setOptions({renderer:"hljs"in window?f:new i.marked.Renderer,highlight:function(e,t){return"hljs"in window?t&&hljs.getLanguage(t)&&hljs.highlight(t,e,!0).value||hljs.highlightAuto(e).value:(0,a.default)(e)},gfm:!0,tables:!0,breaks:!0,pedantic:!1,sanitize:!1,smartLists:!0,smartypants:!0,headerPrefix:"v-"}),t.default=function(e){return(0,p.default)((0,i.marked)(c.default.parse(e,!0)))}},function(e,t,n){"use strict";t.__esModule=!0,t.recordIPFn=t.fetchQQFn=void 0;var r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(3),a=function(e,t){var n=i.default.store.get(o.QQCacheKey);n&&n.qq==e?t&&t(n):i.default.ajax({url:"https://api.qjqq.cn/api/qqinfo?qq="+e,method:"get"}).then(function(e){return e.json()}).then(function(n){if(200==n.code){var r=n.name,a=n.imgurl,u={nick:r,qq:e,pic:a};i.default.store.set(o.QQCacheKey,u),t&&t(u)}})},u=function(e){i.default.ajax({url:"//pubstatic.b0.upaiyun.com/?_upnode&t="+Date.now(),method:"get"}).then(function(e){return e.json()}).then(function(t){var n=t.remote_addr;e&&e(n)})};t.fetchQQFn=a,t.recordIPFn=u},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!e)return"Invalid Date.";try{var n=i(e).getTime();if(isNaN(n))return"Invalid Date.";var o=(new Date).getTime(),a=o-n,u=Math.floor(a/864e5);if(0===u){var s=a%864e5,l=Math.floor(s/36e5);if(0===l){var c=s%36e5,d=Math.floor(c/6e4);if(0===d){var p=c%6e4;return Math.round(p/1e3)+" "+t.t("seconds")}return d+" "+t.t("minutes")}return l+" "+t.t("hours")}return u<0?t.t("now"):u<8?u+" "+t.t("days"):r(e)}catch(e){}};var r=function(e){var t=o(e.getDate(),2),n=o(e.getMonth()+1,2);return o(e.getFullYear(),2)+"-"+n+"-"+t},i=function e(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):/GMT/.test(t||"")?e(new Date(t).getTime()):(t=(t||"").replace(/(^\s*)|(\s*$)/g,"").replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))},o=function(e,t){for(var n=e.toString();n.length>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t){return e<>>32-t}function u(e,t,n,r,i,u){return o(a(o(o(t,e),o(r,u)),i),n)}function s(e,t,n,r,i,o,a){return u(t&n|~t&r,e,t,i,o,a)}function l(e,t,n,r,i,o,a){return u(t&r|n&~r,e,t,i,o,a)}function c(e,t,n,r,i,o,a){return u(t^n^r,e,t,i,o,a)}function d(e,t,n,r,i,o,a){return u(n^(t|~r),e,t,i,o,a)}function p(e,t){e[t>>5]|=128<>>9<<4)]=t;var n,r,i,a,u,p=1732584193,f=-271733879,h=-1732584194,v=271733878;for(n=0;n>5]>>>t%32&255);return n}function h(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<16&&(i=p(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=p(o.concat(h(t)),512+8*t.length),f(p(a.concat(r),640))}function m(e){var t,n,r="0123456789abcdef",i="";for(n=0;n>>4&15)+r.charAt(15&t);return i}function b(e){return unescape(encodeURIComponent(e))}function y(e){return v(b(e))}function D(e){return m(y(e))}function w(e,t){return g(b(e),b(t))}function x(e,t){return m(w(e,t))}function k(e,t,n){return t?n?w(t,e):x(t,e):n?y(e):D(e)}void 0!==(r=function(){return k}.call(t,n,t,e))&&(e.exports=r)}()},function(e,t,n){"use strict";t.__esModule=!0;var r=n(35),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){return e=(0,i.default)({url:"",method:"get",body:{},callbackName:"cb_"+(Date.now()+Math.round(1e3*Math.random())).toString(32)},e),new Promise(function(t,n){if("jsonp"==e.method){var r=e.callbackName,i=document,o=i.body,u=i.createElement("script");return u.async=!0,u.defer=!0,e.url.indexOf("?")>-1?e.url+="&"+a({callback:r,t:Date.now()}):e.url+="?"+a({callback:r,t:Date.now()}),u.src=e.url,window[r]=function(e){window[r]=null,o.removeChild(u),t(e)},void o.appendChild(u)}var s="XMLHttpRequest"in window?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),l=[],c=[],d={},p=function e(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:e,headers:{keys:function(){return l},entries:function(){return c},get:function(e){return d[e.toLowerCase()]},has:function(e){return e.toLowerCase()in d}}}};a(e.body)&&(e.url=e.url+"?"+("get"==e.method?a(e.body):"")),s.open(e.method||"get",e.url),"blob"==e.dataType&&(s.responseType="blob"),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){l.push(t=t.toLowerCase()),c.push([t,n]),d[t]=d[t]?d[t]+","+n:n}),t(p())},s.onerror=n,s.withCredentials="include"==e.credentials;for(var f in e.headers)s.setRequestHeader(f,e.headers[f]);s.send("post"==e.method?e.body:"get"==e.method?"":a(e.body))})};var o=encodeURIComponent,a=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(o(n)+"="+o(e[n]));return(t=t.join("&").replace(/%20/g,"+"))||""}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){e=e||navigator.userAgent;var t={},n={Trident:e.indexOf("Trident")>-1||e.indexOf("NET CLR")>-1,Presto:e.indexOf("Presto")>-1,WebKit:e.indexOf("AppleWebKit")>-1,Gecko:e.indexOf("Gecko/")>-1,Safari:e.indexOf("Safari")>-1,Edge:e.indexOf("Edge")>-1||e.indexOf("Edg")>-1,Chrome:e.indexOf("Chrome")>-1||e.indexOf("CriOS")>-1,IE:e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1,Firefox:e.indexOf("Firefox")>-1||e.indexOf("FxiOS")>-1,"Firefox Focus":e.indexOf("Focus")>-1,Chromium:e.indexOf("Chromium")>-1,Opera:e.indexOf("Opera")>-1||e.indexOf("OPR")>-1,Vivaldi:e.indexOf("Vivaldi")>-1,Yandex:e.indexOf("YaBrowser")>-1,Kindle:e.indexOf("Kindle")>-1||e.indexOf("Silk/")>-1,360:e.indexOf("360EE")>-1||e.indexOf("360SE")>-1,UC:e.indexOf("UC")>-1||e.indexOf(" UBrowser")>-1,QQBrowser:e.indexOf("QQBrowser")>-1,QQ:e.indexOf("QQ/")>-1,Baidu:e.indexOf("Baidu")>-1||e.indexOf("BIDUBrowser")>-1,Maxthon:e.indexOf("Maxthon")>-1,Sogou:e.indexOf("MetaSr")>-1||e.indexOf("Sogou")>-1,LBBROWSER:e.indexOf("LBBROWSER")>-1,"2345Explorer":e.indexOf("2345Explorer")>-1,TheWorld:e.indexOf("TheWorld")>-1,XiaoMi:e.indexOf("MiuiBrowser")>-1,Quark:e.indexOf("Quark")>-1,Qiyu:e.indexOf("Qiyu")>-1,Wechat:e.indexOf("MicroMessenger")>-1,Taobao:e.indexOf("AliApp(TB")>-1,Alipay:e.indexOf("AliApp(AP")>-1,Weibo:e.indexOf("Weibo")>-1,Douban:e.indexOf("com.douban.frodo")>-1,Suning:e.indexOf("SNEBUY-APP")>-1,iQiYi:e.indexOf("IqiyiApp")>-1,Windows:e.indexOf("Windows")>-1,Linux:e.indexOf("Linux")>-1||e.indexOf("X11")>-1,macOS:e.indexOf("Macintosh")>-1,Android:e.indexOf("Android")>-1||e.indexOf("Adr")>-1,Ubuntu:e.indexOf("Ubuntu")>-1,FreeBSD:e.indexOf("FreeBSD")>-1,Debian:e.indexOf("Debian")>-1,"Windows Phone":e.indexOf("IEMobile")>-1||e.indexOf("Windows Phone")>-1,BlackBerry:e.indexOf("BlackBerry")>-1||e.indexOf("RIM")>-1||e.indexOf("BB10")>-1,MeeGo:e.indexOf("MeeGo")>-1,Symbian:e.indexOf("Symbian")>-1,iOS:e.indexOf("like Mac OS X")>-1,"Chrome OS":e.indexOf("CrOS")>-1,WebOS:e.indexOf("hpwOS")>-1,Mobile:e.indexOf("Mobi")>-1||e.indexOf("iPh")>-1||e.indexOf("480")>-1,Tablet:e.indexOf("Tablet")>-1||e.indexOf("Pad")>-1||e.indexOf("Nexus 7")>-1};n.Mobile&&(n.Mobile=!(e.indexOf("iPad")>-1));var r={browser:["Safari","Chrome","Edge","IE","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Kindle","360","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","macOS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"]};for(var i in r)if(r.hasOwnProperty(i))for(var o=0,a=r[i].length;o-1){var n=function(){};e.__proto__={setItem:n,getItem:n,removeItem:n,clear:n}}}finally{"yes"===e.getItem(t)&&e.removeItem(t)}return e}(c),s.prototype={set:function(e,t){if(e&&!r(e))c.setItem(e,a(t));else if(r(e))for(var n in e)this.set(n,e[n]);return this},get:function(e){if(!e){var t={};return this.each(function(e,n){return t[e]=n}),t}if("?"===e.charAt(0))return this.has(e.substr(1));var n=arguments;if(n.length>1){for(var r={},i=0,o=n.length;i-1&&(n[t[r]]=this.get(t[r]));return n}};var d=null;for(var p in s.prototype)l[p]=s.prototype[p];t.default=l},function(e,t,n){var r,i;!function(n,o){var o=function(e,t,n){function r(i,o,a){return a=Object.create(r.fn),i&&a.push.apply(a,i[t]?[i]:""+i===i?/-1?i(n):n}},function(e,t,n){function r(e){return void 0===e||null===e}function i(e){var t={};for(var n in e)t[n]=e[n];return t}function o(e){e=i(e||{}),e.whiteList=e.whiteList||a.whiteList,e.onAttr=e.onAttr||a.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||a.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||a.safeAttrValue,this.options=e}var a=n(11),u=n(40);n(12);o.prototype.process=function(e){if(e=e||"",!(e=e.toString()))return"";var t=this,n=t.options,i=n.whiteList,o=n.onAttr,a=n.onIgnoreAttr,s=n.safeAttrValue;return u(e,function(e,t,n,u,l){var c=i[n],d=!1;if(!0===c?d=c:"function"==typeof c?d=c(u):c instanceof RegExp&&(d=c.test(u)),!0!==d&&(d=!1),u=s(n,u)){var p={position:t,sourcePosition:e,source:l,isWhite:d};if(d){var f=o(n,u,p);return r(f)?n+":"+u:f}var f=a(n,u,p);return r(f)?void 0:f}})},e.exports=o},function(e,t,n){function r(e,t){function n(){if(!o){var n=i.trim(e.slice(a,u)),r=n.indexOf(":");if(-1!==r){var l=i.trim(n.slice(0,r)),c=i.trim(n.slice(r+1));if(l){var d=t(a,s.length,l,c,n);d&&(s+=d+"; ")}}}a=u+1}e=i.trimRight(e),";"!==e[e.length-1]&&(e+=";");for(var r=e.length,o=!1,a=0,u=0,s="";u0&&arguments[1]||"Cannot call method on "+e);return e}},function(e,t,n){"use strict";var r=Object.prototype.toString,i=Math.max,o=function(e,t){for(var n=[],r=0;r'+e+""}var t=function(e,t){return t={exports:{}},e(t,t.exports),t.exports}(function(e){var t=e.exports=function(){return new RegExp("(?:"+t.line().source+")|(?:"+t.block().source+")","gm")};t.line=function(){return/(?:^|\s)\/\/(.+?)$/gm},t.block=function(){return/\/\*([\S\s]*?)\*\//gm}}),n=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"];return function(r,i){void 0===i&&(i={});var o=i.colors;void 0===o&&(o=n);var a=0,u={},s=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,l=/'+n+"";return a=++a%o.length,s})}})},function(e,t,n){"use strict";var r={__proto__:null,foo:{}},i=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof i)}},function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(51);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;e[t]=42;for(t in e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){!function(e,n){n(t)}(0,function(e){"use strict";function t(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function s(e){var t=u(e,"string");return"symbol"==typeof t?t:String(t)}function l(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function c(t){e.defaults=t}function d(e,t){if(t){if(_.test(e))return e.replace(B,j)}else if(S.test(e))return e.replace(O,j);return e}function p(e){return e.replace(z,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function f(e,t){e="string"==typeof e?e:e.source,t=t||"";var n={replace:function(t,r){return r=r.source||r,r=r.replace(T,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n}function h(e,t,n){if(e){var r;try{r=decodeURIComponent(p(n)).replace(I,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!R.test(n)&&(n=v(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}function v(e,t){P[" "+e]||(M.test(e)?P[" "+e]=e+"/":P[" "+e]=m(e,"/",!0)),e=P[" "+e];var n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(L,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(U,"$1")+t:e+t}function g(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}),r=n.split(/ \|/),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function w(e,t,n,r){var i=t.href,o=t.title?d(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;var u={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,u}return{type:"image",raw:n,href:i,title:o,text:d(a)}}function x(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e}).join("\n")}function k(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function A(e){var t,n,r="",i=e.length;for(t=0;t.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}function E(e,t,n){return function(r){if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){var i="

      An error occurred:

      "+d(r.message+"",!0)+"
      ";return t?Promise.resolve(i):n?void n(null,i):i}if(t)return Promise.reject(r);if(n)return void n(r);throw r}}function F(e,t){return function(n,i,o){"function"==typeof i&&(o=i,i=null);var a=r({},i);i=r({},C.defaults,a);var u=E(i.silent,i.async,o);if(void 0===n||null===n)return u(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(y(i),i.hooks&&(i.hooks.options=i),o){var s,l=i.highlight;try{i.hooks&&(n=i.hooks.preprocess(n)),s=e(n,i)}catch(e){return u(e)}var c=function(e){var n;if(!e)try{i.walkTokens&&C.walkTokens(s,i.walkTokens),n=t(s,i),i.hooks&&(n=i.hooks.postprocess(n))}catch(t){e=t}return i.highlight=l,e?u(e):o(null,n)};if(!l||l.length<3)return c();if(delete i.highlight,!s.length)return c();var d=0;return C.walkTokens(s,function(e){"code"===e.type&&(d++,setTimeout(function(){l(e.text,e.lang,function(t,n){if(t)return c(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0===--d&&c()})},0))}),void(0===d&&c())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then(function(t){return e(t,i)}).then(function(e){return i.walkTokens?Promise.all(C.walkTokens(e,i.walkTokens)).then(function(){return e}):e}).then(function(e){return t(e,i)}).then(function(e){return i.hooks?i.hooks.postprocess(e):e}).catch(u);try{i.hooks&&(n=i.hooks.preprocess(n));var p=e(n,i);i.walkTokens&&C.walkTokens(p,i.walkTokens);var f=t(p,i);return i.hooks&&(f=i.hooks.postprocess(f)),f}catch(e){return u(e)}}}function C(e,t,n){return F(W.lex,G.parse)(e,t,n)}e.defaults=l();var _=/[&<>"']/,B=new RegExp(_.source,"g"),S=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,O=new RegExp(S.source,"g"),$={"&":"&","<":"<",">":">",'"':""","'":"'"},j=function(e){return $[e]},z=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,T=/(^|[^\[])\^/g,I=/[^\w:]/g,R=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,P={},M=/^[^:]+:\/*[^/]*$/,L=/^([^:]+:)[\s\S]*$/,U=/^([^:]+:\/*[^/]*)[\s\S]*$/,Q={exec:function(){}},N=function(){function t(t){this.options=t||e.defaults}var n=t.prototype;return n.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},n.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:m(n,"\n")}}},n.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=x(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}},n.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=m(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}},n.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},n.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;var i=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:i,text:n}}},n.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,i,o,a,u,s,l,c,d,p,f,h=t[1].trim(),v=h.length>1,g={type:"list",raw:"",ordered:v,start:v?+h.slice(0,-1):"",loose:!1,items:[]};h=v?"\\d{1,9}\\"+h.slice(-1):"\\"+h,this.options.pedantic&&(h=v?h:"[*+-]");for(var m=new RegExp("^( {0,3}"+h+")((?:[\t ][^\\n]*)?(?:\\n|$))");e&&(f=!1,t=m.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),l=t[2].split("\n",1)[0].replace(/^\t+/,function(e){return" ".repeat(3*e.length)}),c=e.split("\n",1)[0],this.options.pedantic?(o=2,p=l.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,p=l.slice(o),o+=t[1].length),u=!1,!l&&/^ *$/.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),f=!0),!f)for(var b=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))"),y=new RegExp("^ {0,"+Math.min(3,o-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),D=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:```|~~~)"),w=new RegExp("^ {0,"+Math.min(3,o-1)+"}#");e&&(d=e.split("\n",1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!D.test(c))&&!w.test(c)&&!b.test(c)&&!y.test(e);){if(c.search(/[^ ]/)>=o||!c.trim())p+="\n"+c.slice(o);else{if(u)break;if(l.search(/[^ ]/)>=4)break;if(D.test(l))break;if(w.test(l))break;if(y.test(l))break;p+="\n"+c}u||c.trim()||(u=!0),n+=d+"\n",e=e.substring(d.length+1),l=c.slice(o)}g.loose||(s?g.loose=!0:/\n *\n *$/.test(n)&&(s=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(p))&&(i="[ ] "!==r[0],p=p.replace(/^\[[ xX]\] +/,"")),g.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:p}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=p.trimRight(),g.raw=g.raw.trimRight();var x=g.items.length;for(a=0;a0&&k.some(function(e){return/\n.*\n/.test(e.raw)});g.loose=A}if(g.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}},n.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:g(t[1]).map(function(e){return{text:e}}),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i,o,a,u=n.align.length;for(r=0;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]):t[0]}},n.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var r=m(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var i=b(t[2],"()");if(i>-1){var o=0===t[0].indexOf("!")?5:4,a=o+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var u=t[2],s="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(u);l&&(u=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return u=u.trim(),/^$/.test(n)?u.slice(1):u.slice(1,-1)),w(t,{href:u?u.replace(this.rules.inline._escapes,"$1"):u,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0],this.lexer)}},n.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return w(n,r,n[0],this.lexer)}},n.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,u=r[0].length-1,s=u,l=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+u);null!=(r=c.exec(t));)if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(a=o.length,r[3]||r[4])s+=a;else if(!((r[5]||r[6])&&u%3)||(u+a)%3){if(!((s-=a)>0)){a=Math.min(a,a+s+l);var d=e.slice(0,u+r.index+(r[0].length-o.length)+a);if(Math.min(u,a)%2){var p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}var f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}else l+=a}}},n.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(n=n.substring(1,n.length-1)),n=d(n,!0),{type:"codespan",raw:t[0],text:n}}},n.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},n.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},n.autolink=function(e,t){var n=this.rules.inline.autolink.exec(e);if(n){var r,i;return"@"===n[2]?(r=d(this.options.mangle?t(n[1]):n[1]),i="mailto:"+r):(r=d(n[1]),i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},n.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])r=d(this.options.mangle?t(n[0]):n[0]),i="mailto:"+r;else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=d(n[0]),i="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},n.inlineText=function(e,t){var n=this.rules.inline.text.exec(e);if(n){var r;return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):d(n[0]):n[0]:d(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:r}}},t}(),q={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Q,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};q._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,q._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,q.def=f(q.def).replace("label",q._label).replace("title",q._title).getRegex(),q.bullet=/(?:[*+-]|\d{1,9}[.)])/,q.listItemStart=f(/^( *)(bull) */).replace("bull",q.bullet).getRegex(),q.list=f(q.list).replace(/bull/g,q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+q.def.source+")").getRegex(),q._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",q._comment=/|$)/,q.html=f(q.html,"i").replace("comment",q._comment).replace("tag",q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),q.paragraph=f(q._paragraph).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",q._tag).getRegex(),q.blockquote=f(q.blockquote).replace("paragraph",q.paragraph).getRegex(),q.normal=r({},q),q.gfm=r({},q.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),q.gfm.table=f(q.gfm.table).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",q._tag).getRegex(),q.gfm.paragraph=f(q._paragraph).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",q.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",q._tag).getRegex(),q.pedantic=r({},q.normal,{html:f("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",q._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Q,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:f(q.normal._paragraph).replace("hr",q.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Q,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Q,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",V.punctuation=f(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,V.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,V._comment=f(q._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),V.emStrong.lDelim=f(V.emStrong.lDelim).replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimAst=f(V.emStrong.rDelimAst,"g").replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimUnd=f(V.emStrong.rDelimUnd,"g").replace(/punct/g,V._punctuation).getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,V.autolink=f(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=f(V.tag).replace("comment",V._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=f(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=f(V.reflink).replace("label",V._label).replace("ref",q._label).getRegex(),V.nolink=f(V.nolink).replace("ref",q._label).getRegex(),V.reflinkSearch=f(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal=r({},V),V.pedantic=r({},V.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()}),V.gfm=r({},V.normal,{escape:f(V.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?t.push(r):(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(i.raw+="\n"+r.raw,i.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,r=e.slice(1),i=void 0;n.options.extensions.startBlock.forEach(function(e){"number"==typeof(i=e.call({lexer:this},r))&&i>=0&&(t=Math.min(t,i))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(r=this.tokenizer.paragraph(o)))i=t[t.length-1],a&&"paragraph"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r),a=o.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),i=t[t.length-1],i&&"text"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);else if(e){var u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(u)}return this.state.top=!0,t},r.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},r.inlineTokens=function(e,t){var n=this;void 0===t&&(t=[]);var r,i,o,a,u,s,l=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+D("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+D("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,a.index+a[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(u||(s=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(i){return!!(r=i.call({lexer:n},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)})))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),i=t[t.length-1],i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),i=t[t.length-1],i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,s))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,A))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,A))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,r=e.slice(1),i=void 0;n.options.extensions.startInline.forEach(function(e){"number"==typeof(i=e.call({lexer:this},r))&&i>=0&&(t=Math.min(t,i))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),r=this.tokenizer.inlineText(o,k))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),u=!0,i=t[t.length-1],i&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(d)}}else e=e.substring(r.raw.length),t.push(r);return t},n(t,null,[{key:"rules",get:function(){return{block:q,inline:V}}}]),t}(),H=function(){function t(t){this.options=t||e.defaults}var n=t.prototype;return n.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'
      '+(n?e:d(e,!0))+"
      \n":"
      "+(n?e:d(e,!0))+"
      \n"},n.blockquote=function(e){return"
      \n"+e+"
      \n"},n.html=function(e){return e},n.heading=function(e,t,n,r){if(this.options.headerIds){return"'+e+"\n"}return""+e+"\n"},n.hr=function(){return this.options.xhtml?"
      \n":"
      \n"},n.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},n.listitem=function(e){return"
    3. "+e+"
    4. \n"},n.checkbox=function(e){return" "},n.paragraph=function(e){return"

      "+e+"

      \n"},n.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
      \n"},n.tablerow=function(e){return"\n"+e+"\n"},n.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},n.strong=function(e){return""+e+""},n.em=function(e){return""+e+""},n.codespan=function(e){return""+e+""},n.br=function(){return this.options.xhtml?"
      ":"
      "},n.del=function(e){return""+e+""},n.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"},n.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},n.text=function(e){return e},t}(),K=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),Z=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),G=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new H,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new K,this.slugger=new Z}t.parse=function(e,n){return new t(n).parse(e)},t.parseInline=function(e,n){return new t(n).parseInline(e)};var n=t.prototype;return n.parse=function(e,t){void 0===t&&(t=!0);var n,r,i,o,a,u,s,l,c,d,f,h,v,g,m,b,y,D,w,x="",k=e.length;for(n=0;n0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=D+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=D+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:D}):g+=D),g+=this.parse(m.tokens,v),c+=this.renderer.listitem(g,y,b);x+=this.renderer.list(c,f,h);continue;case"html":x+=this.renderer.html(d.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(c=d.tokens?this.parseInline(d.tokens):d.text;n+1=12&&t<=14)?1:2},b={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:m,chinese:function(){return 0},croatian:m,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:m,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3},romanian:function(e){if(1===e)return 0;var t=e%100;return 0===e||t>=2&&t<=19?1:2},ukrainian:m},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}},y=function(){var e={};return function(t,n){var r=e[n];return r&&!t.pluralTypes[r]&&(r=null,e[n]=r),r||(r=i(t,n))&&(e[n]=r),r}}(),D=/%\{(.*?)\}/g;l.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},l.prototype.extend=function(e,t){for(var n=c(e||{}),r=0;r-1e3&&e<1e3||ne.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-ae(-e):ae(e);if(r!==e){var i=String(r),o=X.call(t,i.length+1);return Y.call(i,n,"$&_")+"."+Y.call(Y.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Y.call(t,n,"$&_")}function i(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function o(e){return Y.call(String(e),/"/g,""")}function a(e){return!("[object Array]"!==g(e)||fe&&"object"==typeof e&&fe in e)}function u(e){return!("[object Date]"!==g(e)||fe&&"object"==typeof e&&fe in e)}function s(e){return!("[object RegExp]"!==g(e)||fe&&"object"==typeof e&&fe in e)}function l(e){return!("[object Error]"!==g(e)||fe&&"object"==typeof e&&fe in e)}function c(e){return!("[object String]"!==g(e)||fe&&"object"==typeof e&&fe in e)}function f(e){return!("[object Number]"!==g(e)||fe&&"object"==typeof e&&fe in e)}function p(e){return!("[object Boolean]"!==g(e)||fe&&"object"==typeof e&&fe in e)}function d(e){if(ce)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!le)return!1;try{return le.call(e),!0}catch(e){}return!1}function h(e){if(!e||"object"!=typeof e||!ue)return!1;try{return ue.call(e),!0}catch(e){}return!1}function v(e,t){return ge.call(e,t)}function g(e){return Z.call(e)}function m(e){if(e.name)return e.name;var t=J.call(G.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function y(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return E(X.call(e,0,t.maxStringLength),t)+r}return i(Y.call(Y.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,F),"single",t)}function F(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+ee.call(t.toString(16))}function C(e){return"Object("+e+")"}function _(e){return e+" { ? }"}function S(e,t,n,r){return e+" ("+t+") {"+(r?$(n,r):ie.call(n,", "))+"}"}function O(e){for(var t=0;t=0)return!1;return!0}function B(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=ie.call(Array(e.indent+1)," ")}return{base:n,prev:ie.call(Array(t+1),n)}}function $(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+ie.call(e,","+n)+"\n"+t.prev}function j(e,t){var n=a(e),r=[];if(n){r.length=e.length;for(var i=0;i0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(v(P,"numericSeparator")&&"boolean"!=typeof P.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var U=P.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return E(t,P);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var Q=String(t);return U?r(t,Q):Q}if("bigint"==typeof t){var q=String(t)+"n";return U?r(t,q):q}var W=void 0===P.depth?5:P.depth;if(void 0===F&&(F=0),F>=W&&W>0&&"object"==typeof t)return a(t)?"[Array]":"[Object]";var V=B(P,F);if(void 0===T)T=[];else if(y(T,t)>=0)return"[Circular]";if("function"==typeof t){var H=m(t),Z=j(t,I);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(Z.length>0?" { "+ie.call(Z,", ")+" }":"")}if(d(t)){var G=ce?Y.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):le.call(t);return"object"!=typeof t||ce?G:C(G)}if(k(t)){for(var J="<"+te.call(String(t.nodeName)),ee=t.attributes||[],ne=0;ne"}if(a(t)){if(0===t.length)return"[]";var ae=j(t,I);return V&&!O(ae)?"["+$(ae,V)+"]":"[ "+ie.call(ae,", ")+" ]"}if(l(t)){var se=j(t,I);return"cause"in t&&!pe.call(t,"cause")?"{ ["+String(t)+"] "+ie.call(re.call("[cause]: "+I(t.cause),se),", ")+" }":0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+ie.call(se,", ")+" }"}if("object"==typeof t&&M){if(ve&&"function"==typeof t[ve])return t[ve]();if("symbol"!==M&&"function"==typeof t.inspect)return t.inspect()}if(b(t)){var he=[];return R.call(t,function(e,n){he.push(I(n,t,!0)+" => "+I(e,t))}),S("Map",z.call(t),he,V)}if(w(t)){var ge=[];return N.call(t,function(e){ge.push(I(e,t))}),S("Set",L.call(t),ge,V)}if(D(t))return _("WeakMap");if(A(t))return _("WeakSet");if(x(t))return _("WeakRef");if(f(t))return C(I(Number(t)));if(h(t))return C(I(ue.call(t)));if(p(t))return C(K.call(t));if(c(t))return C(I(String(t)));if(!u(t)&&!s(t)){var me=j(t,I),ye=de?de(t)===Object.prototype:t instanceof Object||t.constructor===Object,be=t instanceof Object?"":"null prototype",De=!ye&&fe&&Object(t)===t&&fe in t?X.call(g(t),8,-1):be?"Object":"",xe=ye||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",we=xe+(De||be?"["+ie.call(re.call([],De||[],be||[]),": ")+"] ":"");return 0===me.length?we+"{}":V?we+"{"+$(me,V)+"}":we+"{ "+ie.call(me,", ")+" }"}return String(t)};var ge=Object.prototype.hasOwnProperty||function(e){return e in this}},function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(26),u=Object.prototype.propertyIsEnumerable,s=!u.call({toString:null},"toString"),l=u.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),h=function(e){if("undefined"==typeof window||!d)return f(e);try{return f(e)}catch(e){return!1}};r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),u=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=l&&n;if(u&&e.length>0&&!i.call(e,0))for(var d=0;d0)for(var v=0;v1)for(var n=1;n1?n-1:0);for(var r=1;r2?r-2:0);for(var o=2;o";var b=i(s),D=o[n],x=f(b.html,function(e,t){var i=-1!==p.indexOf(D,e),o=l(n,e,t,i);if(!r(o))return o;if(i)return t=h(n,e,t,g),t?e+'="'+t+'"':e;var o=d(n,e,t,i);return r(o)?void 0:o}),s="<"+n;return x&&(s+=" "+x),b.closing&&(s+=" /"),s+=">"}var y=u(n,s,m);return r(y)?v(s):y},v);return m&&(y=m.remove(y)),y},e.exports=a},function(e,t){e.exports={smile:"e3/2018new_weixioa02_org.png",lovely:"09/2018new_keai_org.png",happy:"1e/2018new_taikaixin_org.png",clap:"6e/2018new_guzhang_thumb.png",whee:"33/2018new_xixi_thumb.png",haha:"8f/2018new_haha_thumb.png","laugh and cry":"4a/2018new_xiaoku_thumb.png",wink:"43/2018new_jiyan_org.png",greddy:"fa/2018new_chanzui_org.png",awkward:"a3/2018new_heixian_thumb.png",sweat:"28/2018new_han_org.png","pick nose":"9a/2018new_wabi_thumb.png",hum:"7c/2018new_heng_thumb.png",angry:"f6/2018new_nu_thumb.png",grievance:"a5/2018new_weiqu_thumb.png",poor:"96/2018new_kelian_org.png",disappoint:"aa/2018new_shiwang_thumb.png",sad:"ee/2018new_beishang_org.png",tear:"6e/2018new_leimu_org.png","no way":"83/2018new_kuxiao_org.png",shy:"c1/2018new_haixiu_org.png",dirt:"10/2018new_wu_thumb.png","love you":"f6/2018new_aini_org.png",kiss:"2c/2018new_qinqin_thumb.png",amorousness:"9d/2018new_huaxin_org.png",longing:"c9/2018new_chongjing_org.png",desire:"3e/2018new_tianping_thumb.png","bad laugh":"4d/2018new_huaixiao_org.png",blackness:"9e/2018new_yinxian_org.png","laugh without word":"2d/2018new_xiaoerbuyu_org.png",titter:"71/2018new_touxiao_org.png",cool:"c4/2018new_ku_org.png","not easy":"aa/2018new_bingbujiandan_thumb.png",think:"30/2018new_sikao_org.png",question:"b8/2018new_ningwen_org.png","no idea":"2a/2018new_wenhao_thumb.png",dizzy:"07/2018new_yun_thumb.png",bomb:"a2/2018new_shuai_thumb.png",bone:"a1/2018new_kulou_thumb.png","be quiet":"b0/2018new_xu_org.png","shut up":"62/2018new_bizui_org.png",stupid:"dd/2018new_shayan_org.png","surprise ":"49/2018new_chijing_org.png",vomit:"08/2018new_tu_org.png",cold:"40/2018new_kouzhao_thumb.png",sick:"3b/2018new_shengbing_thumb.png",bye:"fd/2018new_baibai_thumb.png","look down on":"da/2018new_bishi_org.png","white eye":"ef/2018new_landelini_org.png","left hum":"43/2018new_zuohengheng_thumb.png","right hum":"c1/2018new_youhengheng_thumb.png",crazy:"17/2018new_zhuakuang_org.png","scold ":"87/2018new_zhouma_thumb.png","hit on face":"cb/2018new_dalian_org.png",wow:"ae/2018new_ding_org.png",fan:"86/2018new_hufen02_org.png",money:"a2/2018new_qian_thumb.png",yawn:"55/2018new_dahaqian_org.png",sleepy:"3c/2018new_kun_thumb.png",sleep:"e2/2018new_shuijiao_thumb.png","watermelon ":"01/2018new_chigua_thumb.png",doge:"a1/2018new_doge02_org.png",dog:"22/2018new_erha_org.png",cat:"7b/2018new_miaomiao_thumb.png",thumb:"e6/2018new_zan_org.png",good:"8a/2018new_good_org.png",ok:"45/2018new_ok_org.png",yeah:"29/2018new_ye_thumb.png","shack hand":"e9/2018new_woshou_thumb.png",bow:"e7/2018new_zuoyi_org.png",come:"42/2018new_guolai_thumb.png",punch:"86/2018new_quantou_thumb.png"}},function(e,t){e.exports={nick:"NickName",mail:"E-Mail",link:"Website(http://)",nickFail:"NickName cannot be less than 3 bytes.",mailFail:"Please confirm your email address.",sofa:"No comment yet.",submit:"Submit",reply:"Reply",cancelReply:"Cancel reply",comments:"Comments",cancel:"Cancel",confirm:"Confirm",continue:"Continue",more:"Load More...",preview:"Preview",emoji:"Emoji",expand:"See more....",seconds:"seconds ago",minutes:"minutes ago",hours:"hours ago",days:"days ago",now:"just now",uploading:"Uploading ...",uploadDone:"Upload completed!",busy:"Submit is busy, please wait...","code-98":"Valine initialization failed, please check your version of av-min.js.","code-99":"Valine initialization failed, Please check the `el` element in the init method.","code-100":"Valine initialization failed, Please check your appId and appKey.","code-140":"The total number of API calls today has exceeded the development version limit.","code-401":"Unauthorized operation, Please check your appId and appKey.","code-403":"Access denied by API domain white list, Please check your security domain."}},function(e,t){e.exports={nick:"ニックネーム",mail:"メールアドレス",link:"サイト(http://)",nickFail:"3バイト以上のニックネームをご入力ください.",mailFail:"メールアドレスをご確認ください.",sofa:"コメントしましょう~",submit:"提出する",reply:"返信する",cancelReply:"キャンセル",comments:"コメント",cancel:"キャンセル",confirm:"確認する",continue:"继续",more:"さらに読み込む...",preview:"プレビュー",emoji:"絵文字",expand:"もっと見る",seconds:"秒前",minutes:"分前",hours:"時間前",days:"日前",now:"たっだ今",uploading:"アップロード中...",uploadDone:"アップロードが完了しました!",busy:"20 秒間隔で提出してください ...","code-98":"ロードエラーです。av-min.js のバージョンを確認してください.","code-99":"ロードエラーです。initにある`el`エレメントを確認ください.","code-100":"ロードエラーです。AppIdとAppKeyを確認ください.","code-140":"今日のAPIコールの総数が開発バージョンの上限を超えた.","code-401":"権限が制限されています。AppIdとAppKeyを確認ください.","code-403":"アクセスがAPIなどに制限されました、ドメイン名のセキュリティ設定を確認ください"}},function(e,t){e.exports={nick:"昵称",mail:"邮箱",link:"网址(http://)",nickFail:"昵称不能少于3个字符",mailFail:"请填写正确的邮件地址",sofa:"来发评论吧~",submit:"提交",reply:"回复",cancelReply:"取消回复",comments:"评论",cancel:"取消",confirm:"确认",continue:"继续",more:"加载更多...",preview:"预览",emoji:"表情",expand:"查看更多...",seconds:"秒前",minutes:"分钟前",hours:"小时前",days:"天前",now:"刚刚",uploading:"正在传输...",uploadDone:"传输完成!",busy:"操作频繁,请稍候再试...","code-98":"Valine 初始化失败,请检查 av-min.js 版本","code-99":"Valine 初始化失败,请检查init中的`el`元素.","code-100":"Valine 初始化失败,请检查你的AppId和AppKey.","code-140":"今日 API 调用总次数已超过开发版限制.","code-401":"未经授权的操作,请检查你的AppId和AppKey.","code-403":"访问被API域名白名单拒绝,请检查你的安全域名设置."}},function(e,t){e.exports={nick:"暱稱",mail:"郵箱",link:"網址(http://)",nickFail:"昵稱不能少於3個字符",mailFail:"請填寫正確的郵件地址",sofa:"來發評論吧~",submit:"提交",reply:"回覆",cancelReply:"取消回覆",comments:"評論",cancel:"取消",confirm:"確認",continue:"繼續",more:"加載更多...",preview:"預覽",emoji:"表情",expand:"查看更多...",seconds:"秒前",minutes:"分鐘前",hours:"小時前",days:"天前",now:"剛剛",uploading:"正在上傳...",uploadDone:"上傳完成!",busy:"操作頻繁,請稍候再試...","code-98":"Valine 初始化失敗,請檢查 av-min.js 版本","code-99":"Valine 初始化失敗,請檢查init中的`el`元素.","code-100":"Valine 初始化失敗,請檢查你的AppId和AppKey.","code-140":"今日 API 調用總次數已超過開發版限制.","code-401":"未經授權的操作,請檢查你的AppId和AppKey.","code-403":"訪問被API域名白名單拒絕,請檢查你的安全域名設置."}},function(e,t){},function(e,t,n){var r=n(104);"string"==typeof r&&(r=[[e.i,r,""]]);var i={};i.transform=void 0;n(106)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){t=n(105)(!1),t.push([e.i,'.v[data-class=v]{font-size:16px;text-align:left}.v[data-class=v] *{-webkit-box-sizing:border-box;box-sizing:border-box;line-height:1.75}.v[data-class=v] .vinput,.v[data-class=v] .veditor,.v[data-class=v] p,.v[data-class=v] pre code,.v[data-class=v] .status-bar{color:#555}.v[data-class=v] .vtime,.v[data-class=v] .vsys{color:#b3b3b3}.v[data-class=v] .text-right{text-align:right}.v[data-class=v] .text-center{text-align:center}.v[data-class=v] img{max-width:100%;border:none}.v[data-class=v] hr{margin:.825em 0;border-color:#f6f6f6;border-style:dashed}.v[data-class=v].hide-avatar .vimg{display:none}.v[data-class=v] a{position:relative;cursor:pointer;color:#1abc9c;text-decoration:none;display:inline-block}.v[data-class=v] a:hover{color:#d7191a}.v[data-class=v] pre,.v[data-class=v] code{background-color:#f8f8f8;padding:.2em .4em;border-radius:3px;font-size:85%;margin:0}.v[data-class=v] pre{padding:10px;overflow:auto;line-height:1.45}.v[data-class=v] pre code{padding:0;background:transparent;white-space:pre-wrap;word-break:keep-all}.v[data-class=v] blockquote{color:#666;margin:.5em 0;padding:0 0 0 1em;border-left:8px solid rgba(238,238,238,.5)}.v[data-class=v] .vinput{border:none;resize:none;outline:none;padding:10px 5px;max-width:100%;font-size:.775em;-webkit-box-sizing:border-box;box-sizing:border-box}.v[data-class=v] input[type=checkbox],.v[data-class=v] input[type=radio]{display:inline-block;vertical-align:middle;margin-top:-2px}.v[data-class=v] .vicon{cursor:pointer;display:inline-block;overflow:hidden;fill:#555;vertical-align:middle}.v[data-class=v] .vicon+.vicon{margin-left:10px}.v[data-class=v] .vicon.actived{fill:#66b1ff}.v[data-class=v] .vrow{font-size:0;padding:10px 0}.v[data-class=v] .vrow .vcol{display:inline-block;vertical-align:middle;font-size:14px}.v[data-class=v] .vrow .vcol.vcol-20{width:20%}.v[data-class=v] .vrow .vcol.vcol-30{width:30%}.v[data-class=v] .vrow .vcol.vcol-40{width:40%}.v[data-class=v] .vrow .vcol.vcol-50{width:50%}.v[data-class=v] .vrow .vcol.vcol-60{width:60%}.v[data-class=v] .vrow .vcol.vcol-70{width:70%}.v[data-class=v] .vrow .vcol.vcol-80{width:80%}.v[data-class=v] .vrow .vcol.vctrl{font-size:12px}.v[data-class=v] .vemoji,.v[data-class=v] .emoji{width:26px;height:26px;overflow:hidden;vertical-align:middle;margin:0 1px;display:inline-block}.v[data-class=v] .vwrap{border:1px solid #f0f0f0;border-radius:4px;margin-bottom:10px;overflow:hidden;position:relative;padding:10px}.v[data-class=v] .vwrap input{background:transparent}.v[data-class=v] .vwrap .vedit{position:relative;padding-top:10px}.v[data-class=v] .vwrap .cancel-reply-btn{position:absolute;right:5px;top:5px;cursor:pointer}.v[data-class=v] .vwrap .vemojis{display:none;font-size:18px;max-height:145px;overflow:auto;padding-bottom:10px;-webkit-box-shadow:0px 0 1px #f0f0f0;box-shadow:0px 0 1px #f0f0f0}.v[data-class=v] .vwrap .vemojis i{font-style:normal;padding-top:7px;width:36px;cursor:pointer;text-align:center;display:inline-block;vertical-align:middle}.v[data-class=v] .vwrap .vpreview{padding:7px;-webkit-box-shadow:0px 0 1px #f0f0f0;box-shadow:0px 0 1px #f0f0f0}.v[data-class=v] .vwrap .vheader .vinput{width:33.33%;border-bottom:1px #dedede dashed}.v[data-class=v] .vwrap .vheader.item2 .vinput{width:50%}.v[data-class=v] .vwrap .vheader.item1 .vinput{width:100%}.v[data-class=v] .vwrap .vheader .vinput:focus{border-bottom-color:#eb5055}@media screen and (max-width: 520px){.v[data-class=v] .vwrap .vheader .vinput{width:100%}.v[data-class=v] .vwrap .vheader.item2 .vinput{width:100%}}.v[data-class=v] .vpower{color:#999;font-size:.75em;padding:.5em 0}.v[data-class=v] .vpower a{font-size:.75em}.v[data-class=v] .vcount{padding:5px;font-weight:600;font-size:1.25em}.v[data-class=v] ul,.v[data-class=v] ol{padding:0;margin-left:1.25em}.v[data-class=v] .txt-center{text-align:center}.v[data-class=v] .txt-right{text-align:right}.v[data-class=v] .veditor{width:100%;min-height:8.75em;font-size:.875em;background:transparent;resize:vertical;-webkit-transition:all .25s ease;transition:all .25s ease}.v[data-class=v] .vbtn{-webkit-transition-duration:.4s;transition-duration:.4s;text-align:center;color:#555;border:1px solid #ededed;border-radius:.3em;display:inline-block;background:transparent;margin-bottom:0;font-weight:400;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;white-space:nowrap;padding:.5em 1.25em;font-size:.875em;line-height:1.42857143;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none}.v[data-class=v] .vbtn+.vbtn{margin-left:1.25em}.v[data-class=v] .vbtn:active,.v[data-class=v] .vbtn:hover{color:#3090e4;border-color:#3090e4}.v[data-class=v] .vbtn:disabled{border-color:#e1e1e1;color:#e1e1e1;background-color:#fdfafa;cursor:not-allowed}.v[data-class=v] .vempty{padding:1.25em;text-align:center;color:#555;overflow:auto}.v[data-class=v] .vsys{display:inline-block;padding:.2em .5em;font-size:.75em;border-radius:.2em;margin-right:.3em}@media screen and (max-width: 520px){.v[data-class=v] .vsys{display:none}}.v[data-class=v] .vcards{width:100%}.v[data-class=v] .vcards .vcard{padding-top:1.25em;position:relative;display:block}.v[data-class=v] .vcards .vcard:after{content:"";clear:both;display:block}.v[data-class=v] .vcards .vcard .vimg{width:3.125em;height:3.125em;float:left;border-radius:50%;margin-right:.7525em;border:1px solid #f5f5f5;padding:.125em}@media screen and (max-width: 720px){.v[data-class=v] .vcards .vcard .vimg{width:2.5em;height:2.5em}}.v[data-class=v] .vcards .vcard .vhead{line-height:1.5;margin-top:0}.v[data-class=v] .vcards .vcard .vhead .vnick{position:relative;font-size:.875em;font-weight:500;margin-right:.875em;cursor:pointer;text-decoration:none;display:inline-block}.v[data-class=v] .vcards .vcard .vhead .vnick:hover{color:#d7191a}.v[data-class=v] .vcards .vcard .vh{overflow:hidden;padding-bottom:.5em;border-bottom:1px dashed #f5f5f5}.v[data-class=v] .vcards .vcard .vh .vtime{font-size:.75em;margin-right:.875em}.v[data-class=v] .vcards .vcard .vh .vmeta{line-height:1;position:relative}.v[data-class=v] .vcards .vcard .vh .vmeta .vat{font-size:.8125em;color:#ef2f11;cursor:pointer;float:right}.v[data-class=v] .vcards .vcard:last-child .vh{border-bottom:none}.v[data-class=v] .vcards .vcard .vcontent{word-wrap:break-word;word-break:break-all;font-size:.875em;line-height:2;position:relative;margin-bottom:.75em;padding-top:.625em}.v[data-class=v] .vcards .vcard .vcontent.expand{cursor:pointer;max-height:8em;overflow:hidden}.v[data-class=v] .vcards .vcard .vcontent.expand::before{display:block;content:"";position:absolute;width:100%;left:0;top:0;bottom:3.15em;background:-webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, 0.9)));background:linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));z-index:999}.v[data-class=v] .vcards .vcard .vcontent.expand::after{display:block;content:attr(data-expand);text-align:center;color:#828586;position:absolute;width:100%;height:3.15em;line-height:3.15em;left:0;bottom:0;z-index:999;background:rgba(255,255,255,.9)}.v[data-class=v] .vcards .vcard .vquote{padding-left:1em;border-left:1px dashed rgba(238,238,238,.5)}.v[data-class=v] .vcards .vcard .vquote .vimg{width:2.225em;height:2.225em}.v[data-class=v] .vpage .vmore{margin:1em 0}.v[data-class=v] .clear{content:"";display:block;clear:both}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes pulse{50%{background:#dcdcdc}}@keyframes pulse{50%{background:#dcdcdc}}.v[data-class=v] .vspinner{width:22px;height:22px;display:inline-block;border:6px double #a0a0a0;border-top-color:transparent;border-bottom-color:transparent;border-radius:50%;-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear;position:relative;vertical-align:middle;margin:0 5px}[data-theme=dark] .v[data-class=v] .vinput,[data-theme=dark] .v[data-class=v] .veditor,[data-theme=dark] .v[data-class=v] p,[data-theme=dark] .v[data-class=v] pre code,[data-theme=dark] .v[data-class=v] .status-bar,.dark .v[data-class=v] .vinput,.dark .v[data-class=v] .veditor,.dark .v[data-class=v] p,.dark .v[data-class=v] pre code,.dark .v[data-class=v] .status-bar,.theme__dark .v[data-class=v] .vinput,.theme__dark .v[data-class=v] .veditor,.theme__dark .v[data-class=v] p,.theme__dark .v[data-class=v] pre code,.theme__dark .v[data-class=v] .status-bar,.night .v[data-class=v] .vinput,.night .v[data-class=v] .veditor,.night .v[data-class=v] p,.night .v[data-class=v] pre code,.night .v[data-class=v] .status-bar{color:#b2b2b5}[data-theme=dark] .v[data-class=v] .vtime,[data-theme=dark] .v[data-class=v] .vsys,.dark .v[data-class=v] .vtime,.dark .v[data-class=v] .vsys,.theme__dark .v[data-class=v] .vtime,.theme__dark .v[data-class=v] .vsys,.night .v[data-class=v] .vtime,.night .v[data-class=v] .vsys{color:#929298}[data-theme=dark] .v[data-class=v] pre,[data-theme=dark] .v[data-class=v] code,[data-theme=dark] .v[data-class=v] pre code,.dark .v[data-class=v] pre,.dark .v[data-class=v] code,.dark .v[data-class=v] pre code,.theme__dark .v[data-class=v] pre,.theme__dark .v[data-class=v] code,.theme__dark .v[data-class=v] pre code,.night .v[data-class=v] pre,.night .v[data-class=v] code,.night .v[data-class=v] pre code{color:#929298;background-color:#151414}[data-theme=dark] .v[data-class=v] .vwrap,.dark .v[data-class=v] .vwrap,.theme__dark .v[data-class=v] .vwrap,.night .v[data-class=v] .vwrap{border-color:#b2b2b5}[data-theme=dark] .v[data-class=v] .vicon,.dark .v[data-class=v] .vicon,.theme__dark .v[data-class=v] .vicon,.night .v[data-class=v] .vicon{fill:#b2b2b5}[data-theme=dark] .v[data-class=v] .vicon.actived,.dark .v[data-class=v] .vicon.actived,.theme__dark .v[data-class=v] .vicon.actived,.night .v[data-class=v] .vicon.actived{fill:#66b1ff}[data-theme=dark] .v[data-class=v] .vbtn,.dark .v[data-class=v] .vbtn,.theme__dark .v[data-class=v] .vbtn,.night .v[data-class=v] .vbtn{color:#b2b2b5;border-color:#b2b2b5}[data-theme=dark] .v[data-class=v] .vbtn:hover,.dark .v[data-class=v] .vbtn:hover,.theme__dark .v[data-class=v] .vbtn:hover,.night .v[data-class=v] .vbtn:hover{color:#66b1ff;border-color:#66b1ff}[data-theme=dark] .v[data-class=v] a:hover,.dark .v[data-class=v] a:hover,.theme__dark .v[data-class=v] a:hover,.night .v[data-class=v] a:hover{color:#d7191a}[data-theme=dark] .v[data-class=v] .vcards .vcard .vcontent.expand::before,.dark .v[data-class=v] .vcards .vcard .vcontent.expand::before,.theme__dark .v[data-class=v] .vcards .vcard .vcontent.expand::before,.night .v[data-class=v] .vcards .vcard .vcontent.expand::before{background:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), to(rgba(0, 0, 0, 0.7)));background:linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7))}[data-theme=dark] .v[data-class=v] .vcards .vcard .vcontent.expand::after,.dark .v[data-class=v] .vcards .vcard .vcontent.expand::after,.theme__dark .v[data-class=v] .vcards .vcard .vcontent.expand::after,.night .v[data-class=v] .vcards .vcard .vcontent.expand::after{background:rgba(0,0,0,.7)}@media(prefers-color-scheme: dark){.v[data-class=v] .vinput,.v[data-class=v] .veditor,.v[data-class=v] p,.v[data-class=v] pre code,.v[data-class=v] .status-bar{color:#b2b2b5}.v[data-class=v] .vtime,.v[data-class=v] .vsys{color:#929298}.v[data-class=v] pre,.v[data-class=v] code,.v[data-class=v] pre code{color:#929298;background-color:#151414}.v[data-class=v] .vwrap{border-color:#b2b2b5}.v[data-class=v] .vicon{fill:#b2b2b5}.v[data-class=v] .vicon.actived{fill:#66b1ff}.v[data-class=v] .vbtn{color:#b2b2b5;border-color:#b2b2b5}.v[data-class=v] .vbtn:hover{color:#66b1ff;border-color:#66b1ff}.v[data-class=v] a:hover{color:#d7191a}.v[data-class=v] .vcards .vcard .vcontent.expand::before{background:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), to(rgba(0, 0, 0, 0.7)));background:linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7))}.v[data-class=v] .vcards .vcard .vcontent.expand::after{background:rgba(0,0,0,.7)}}',""]),e.exports=t},function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=i(r);return[n].concat(r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")})).concat([o]).join("\n")}return[n].join("\n")}function i(e){return"/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(e)))))," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o=0&&b.splice(t,1)}function u(e){var t=document.createElement("style");return e.attrs.type="text/css",l(t,e.attrs),o(e,t),t}function s(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",l(t,e.attrs),o(e,t),t}function l(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var l=y++;n=m||(m=u(t)),r=f.bind(null,n,l,!1),i=f.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),r=d.bind(null,n,t),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(t),r=p.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function f(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function p(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=D(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),u=e.href;e.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}var h={},v=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),m=null,y=0,b=[],D=n(107);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=v()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=i(e,t);return r(n,t),function(e){for(var o=[],a=0;a0&&!i.call(e,0))for(var f=0;f0)for(var v=0;v1)for(var n=1;n4294967295||s(t)!==t)throw new u("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(l=!1)}return(r||l||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},function(e,t,n){"use strict";(function(t){var n="production"!==t.env.NODE_ENV,r=function(){};if(n){var i=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r2?r-2:0);for(var o=2;o";var D=i(l),w=o[n],x=p(D.html,function(e,t){var i=-1!==f.indexOf(w,e),o=s(n,e,t,i);return r(o)?i?(t=h(n,e,t,m),t?e+"="+g+t+g:e):(o=c(n,e,t,i),r(o)?void 0:o):o});return l="<"+n,x&&(l+=" "+x),D.closing&&(l+=" /"),l+=">"}return y=u(n,l,b),r(y)?v(l):y},v);return b&&(y=b.remove(y)),y},e.exports=u},function(e,t){e.exports={smile:"e3/2018new_weixioa02_org.png",lovely:"09/2018new_keai_org.png",happy:"1e/2018new_taikaixin_org.png",clap:"6e/2018new_guzhang_thumb.png",whee:"33/2018new_xixi_thumb.png",haha:"8f/2018new_haha_thumb.png","laugh and cry":"4a/2018new_xiaoku_thumb.png",wink:"43/2018new_jiyan_org.png",greddy:"fa/2018new_chanzui_org.png",awkward:"a3/2018new_heixian_thumb.png",sweat:"28/2018new_han_org.png","pick nose":"9a/2018new_wabi_thumb.png",hum:"7c/2018new_heng_thumb.png",angry:"f6/2018new_nu_thumb.png",grievance:"a5/2018new_weiqu_thumb.png",poor:"96/2018new_kelian_org.png",disappoint:"aa/2018new_shiwang_thumb.png",sad:"ee/2018new_beishang_org.png",tear:"6e/2018new_leimu_org.png","no way":"83/2018new_kuxiao_org.png",shy:"c1/2018new_haixiu_org.png",dirt:"10/2018new_wu_thumb.png","love you":"f6/2018new_aini_org.png",kiss:"2c/2018new_qinqin_thumb.png",amorousness:"9d/2018new_huaxin_org.png",longing:"c9/2018new_chongjing_org.png",desire:"3e/2018new_tianping_thumb.png","bad laugh":"4d/2018new_huaixiao_org.png",blackness:"9e/2018new_yinxian_org.png","laugh without word":"2d/2018new_xiaoerbuyu_org.png",titter:"71/2018new_touxiao_org.png",cool:"c4/2018new_ku_org.png","not easy":"aa/2018new_bingbujiandan_thumb.png",think:"30/2018new_sikao_org.png",question:"b8/2018new_ningwen_org.png","no idea":"2a/2018new_wenhao_thumb.png",dizzy:"07/2018new_yun_thumb.png",bomb:"a2/2018new_shuai_thumb.png",bone:"a1/2018new_kulou_thumb.png","be quiet":"b0/2018new_xu_org.png","shut up":"62/2018new_bizui_org.png",stupid:"dd/2018new_shayan_org.png","surprise ":"49/2018new_chijing_org.png",vomit:"08/2018new_tu_org.png",cold:"40/2018new_kouzhao_thumb.png",sick:"3b/2018new_shengbing_thumb.png",bye:"fd/2018new_baibai_thumb.png","look down on":"da/2018new_bishi_org.png","white eye":"ef/2018new_landelini_org.png","left hum":"43/2018new_zuohengheng_thumb.png","right hum":"c1/2018new_youhengheng_thumb.png",crazy:"17/2018new_zhuakuang_org.png","scold ":"87/2018new_zhouma_thumb.png","hit on face":"cb/2018new_dalian_org.png",wow:"ae/2018new_ding_org.png",fan:"86/2018new_hufen02_org.png",money:"a2/2018new_qian_thumb.png",yawn:"55/2018new_dahaqian_org.png",sleepy:"3c/2018new_kun_thumb.png",sleep:"e2/2018new_shuijiao_thumb.png","watermelon ":"01/2018new_chigua_thumb.png",doge:"a1/2018new_doge02_org.png",dog:"22/2018new_erha_org.png",cat:"7b/2018new_miaomiao_thumb.png",thumb:"e6/2018new_zan_org.png",good:"8a/2018new_good_org.png",ok:"45/2018new_ok_org.png",yeah:"29/2018new_ye_thumb.png","shack hand":"e9/2018new_woshou_thumb.png",bow:"e7/2018new_zuoyi_org.png",come:"42/2018new_guolai_thumb.png",punch:"86/2018new_quantou_thumb.png"}},function(e,t){e.exports={nick:"NickName",mail:"E-Mail",link:"Website(http://)",nickFail:"NickName cannot be less than 3 bytes.",mailFail:"Please confirm your email address.",sofa:"No comment yet.",submit:"Submit",reply:"Reply",cancelReply:"Cancel reply",comments:"Comments",cancel:"Cancel",confirm:"Confirm",continue:"Continue",more:"Load More...",preview:"Preview",emoji:"Emoji",expand:"See more....",seconds:"seconds ago",minutes:"minutes ago",hours:"hours ago",days:"days ago",now:"just now",uploading:"Uploading ...",uploadDone:"Upload completed!",busy:"Submit is busy, please wait...","code-98":"Valine initialization failed, please check your version of av-min.js.","code-99":"Valine initialization failed, Please check the `el` element in the init method.","code-100":"Valine initialization failed, Please check your appId and appKey.","code-140":"The total number of API calls today has exceeded the development version limit.","code-401":"Unauthorized operation, Please check your appId and appKey.","code-403":"Access denied by API domain white list, Please check your security domain."}},function(e,t){e.exports={nick:"ニックネーム",mail:"メールアドレス",link:"サイト(http://)",nickFail:"3バイト以上のニックネームをご入力ください.",mailFail:"メールアドレスをご確認ください.",sofa:"コメントしましょう~",submit:"提出する",reply:"返信する",cancelReply:"キャンセル",comments:"コメント",cancel:"キャンセル",confirm:"確認する",continue:"继续",more:"さらに読み込む...",preview:"プレビュー",emoji:"絵文字",expand:"もっと見る",seconds:"秒前",minutes:"分前",hours:"時間前",days:"日前",now:"たっだ今",uploading:"アップロード中...",uploadDone:"アップロードが完了しました!",busy:"20 秒間隔で提出してください ...","code-98":"ロードエラーです。av-min.js のバージョンを確認してください.","code-99":"ロードエラーです。initにある`el`エレメントを確認ください.","code-100":"ロードエラーです。AppIdとAppKeyを確認ください.","code-140":"今日のAPIコールの総数が開発バージョンの上限を超えた.","code-401":"権限が制限されています。AppIdとAppKeyを確認ください.","code-403":"アクセスがAPIなどに制限されました、ドメイン名のセキュリティ設定を確認ください"}},function(e,t){e.exports={nick:"昵称",mail:"邮箱",link:"网址(http://)",nickFail:"昵称不能少于3个字符",mailFail:"请填写正确的邮件地址",sofa:"来发评论吧~",submit:"提交",reply:"回复",cancelReply:"取消回复",comments:"评论",cancel:"取消",confirm:"确认",continue:"继续",more:"加载更多...",preview:"预览",emoji:"表情",expand:"查看更多...",seconds:"秒前",minutes:"分钟前",hours:"小时前",days:"天前",now:"刚刚",uploading:"正在传输...",uploadDone:"传输完成!",busy:"操作频繁,请稍候再试...","code-98":"Valine 初始化失败,请检查 av-min.js 版本","code-99":"Valine 初始化失败,请检查init中的`el`元素.","code-100":"Valine 初始化失败,请检查你的AppId和AppKey.","code-140":"今日 API 调用总次数已超过开发版限制.","code-401":"未经授权的操作,请检查你的AppId和AppKey.","code-403":"访问被API域名白名单拒绝,请检查你的安全域名设置."}},function(e,t){e.exports={nick:"暱稱",mail:"郵箱",link:"網址(http://)",nickFail:"昵稱不能少於3個字符",mailFail:"請填寫正確的郵件地址",sofa:"來發評論吧~",submit:"提交",reply:"回覆",cancelReply:"取消回覆",comments:"評論",cancel:"取消",confirm:"確認",continue:"繼續",more:"加載更多...",preview:"預覽",emoji:"表情",expand:"查看更多...",seconds:"秒前",minutes:"分鐘前",hours:"小時前",days:"天前",now:"剛剛",uploading:"正在上傳...",uploadDone:"上傳完成!",busy:"操作頻繁,請稍候再試...","code-98":"Valine 初始化失敗,請檢查 av-min.js 版本","code-99":"Valine 初始化失敗,請檢查init中的`el`元素.","code-100":"Valine 初始化失敗,請檢查你的AppId和AppKey.","code-140":"今日 API 調用總次數已超過開發版限制.","code-401":"未經授權的操作,請檢查你的AppId和AppKey.","code-403":"訪問被API域名白名單拒絕,請檢查你的安全域名設置."}},function(e,t,n){var r=n(70);"string"==typeof r&&(r=[[e.i,r,""]]);var i={};i.transform=void 0;n(72)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){t=n(71)(!1),t.push([e.i,'.v[data-class=v]{font-size:16px;text-align:left}.v[data-class=v] *{-webkit-box-sizing:border-box;box-sizing:border-box;line-height:1.75}.v[data-class=v] .vinput,.v[data-class=v] .veditor,.v[data-class=v] p,.v[data-class=v] pre code,.v[data-class=v] .status-bar{color:#555}.v[data-class=v] .vtime,.v[data-class=v] .vsys{color:#b3b3b3}.v[data-class=v] .text-right{text-align:right}.v[data-class=v] .text-center{text-align:center}.v[data-class=v] img{max-width:100%;border:none}.v[data-class=v] hr{margin:.825em 0;border-color:#f6f6f6;border-style:dashed}.v[data-class=v].hide-avatar .vimg{display:none}.v[data-class=v] a{position:relative;cursor:pointer;color:#1abc9c;text-decoration:none;display:inline-block}.v[data-class=v] a:hover{color:#d7191a}.v[data-class=v] pre,.v[data-class=v] code{background-color:#f8f8f8;padding:.2em .4em;border-radius:3px;font-size:85%;margin:0}.v[data-class=v] pre{padding:10px;overflow:auto;line-height:1.45}.v[data-class=v] pre code{padding:0;background:rgba(0,0,0,0);white-space:pre-wrap;word-break:keep-all}.v[data-class=v] blockquote{color:#666;margin:.5em 0;padding:0 0 0 1em;border-left:8px solid rgba(238,238,238,.5)}.v[data-class=v] .vinput{border:none;resize:none;outline:none;padding:10px 5px;max-width:100%;font-size:.775em;-webkit-box-sizing:border-box;box-sizing:border-box}.v[data-class=v] input[type=checkbox],.v[data-class=v] input[type=radio]{display:inline-block;vertical-align:middle;margin-top:-2px}.v[data-class=v] .vicon{cursor:pointer;display:inline-block;overflow:hidden;fill:#555;vertical-align:middle}.v[data-class=v] .vicon+.vicon{margin-left:10px}.v[data-class=v] .vicon.actived{fill:#66b1ff}.v[data-class=v] .vrow{font-size:0;padding:10px 0}.v[data-class=v] .vrow .vcol{display:inline-block;vertical-align:middle;font-size:14px}.v[data-class=v] .vrow .vcol.vcol-20{width:20%}.v[data-class=v] .vrow .vcol.vcol-30{width:30%}.v[data-class=v] .vrow .vcol.vcol-40{width:40%}.v[data-class=v] .vrow .vcol.vcol-50{width:50%}.v[data-class=v] .vrow .vcol.vcol-60{width:60%}.v[data-class=v] .vrow .vcol.vcol-70{width:70%}.v[data-class=v] .vrow .vcol.vcol-80{width:80%}.v[data-class=v] .vrow .vcol.vctrl{font-size:12px}.v[data-class=v] .vemoji,.v[data-class=v] .emoji{width:26px;height:26px;overflow:hidden;vertical-align:middle;margin:0 1px;display:inline-block}.v[data-class=v] .vwrap{border:1px solid #f0f0f0;border-radius:4px;margin-bottom:10px;overflow:hidden;position:relative;padding:10px}.v[data-class=v] .vwrap input{background:rgba(0,0,0,0)}.v[data-class=v] .vwrap .vedit{position:relative;padding-top:10px}.v[data-class=v] .vwrap .cancel-reply-btn{position:absolute;right:5px;top:5px;cursor:pointer}.v[data-class=v] .vwrap .vemojis{display:none;font-size:18px;max-height:145px;overflow:auto;padding-bottom:10px;-webkit-box-shadow:0px 0 1px #f0f0f0;box-shadow:0px 0 1px #f0f0f0}.v[data-class=v] .vwrap .vemojis i{font-style:normal;padding-top:7px;width:36px;cursor:pointer;text-align:center;display:inline-block;vertical-align:middle}.v[data-class=v] .vwrap .vpreview{padding:7px;-webkit-box-shadow:0px 0 1px #f0f0f0;box-shadow:0px 0 1px #f0f0f0}.v[data-class=v] .vwrap .vheader .vinput{width:33.33%;border-bottom:1px #dedede dashed}.v[data-class=v] .vwrap .vheader.item2 .vinput{width:50%}.v[data-class=v] .vwrap .vheader.item1 .vinput{width:100%}.v[data-class=v] .vwrap .vheader .vinput:focus{border-bottom-color:#eb5055}@media screen and (max-width: 520px){.v[data-class=v] .vwrap .vheader .vinput{width:100%}.v[data-class=v] .vwrap .vheader.item2 .vinput{width:100%}}.v[data-class=v] .vpower{color:#999;font-size:.75em;padding:.5em 0}.v[data-class=v] .vpower a{font-size:.75em}.v[data-class=v] .vcount{padding:5px;font-weight:600;font-size:1.25em}.v[data-class=v] ul,.v[data-class=v] ol{padding:0;margin-left:1.25em}.v[data-class=v] .txt-center{text-align:center}.v[data-class=v] .txt-right{text-align:right}.v[data-class=v] .veditor{width:100%;min-height:8.75em;font-size:.875em;background:rgba(0,0,0,0);resize:vertical;-webkit-transition:all .25s ease;transition:all .25s ease}.v[data-class=v] .vbtn{-webkit-transition-duration:.4s;transition-duration:.4s;text-align:center;color:#555;border:1px solid #ededed;border-radius:.3em;display:inline-block;background:rgba(0,0,0,0);margin-bottom:0;font-weight:400;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;white-space:nowrap;padding:.5em 1.25em;font-size:.875em;line-height:1.42857143;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none}.v[data-class=v] .vbtn+.vbtn{margin-left:1.25em}.v[data-class=v] .vbtn:active,.v[data-class=v] .vbtn:hover{color:#3090e4;border-color:#3090e4}.v[data-class=v] .vbtn:disabled{border-color:#e1e1e1;color:#e1e1e1;background-color:#fdfafa;cursor:not-allowed}.v[data-class=v] .vempty{padding:1.25em;text-align:center;color:#555;overflow:auto}.v[data-class=v] .vsys{display:inline-block;padding:.2em .5em;font-size:.75em;border-radius:.2em;margin-right:.3em}@media screen and (max-width: 520px){.v[data-class=v] .vsys{display:none}}.v[data-class=v] .vcards{width:100%}.v[data-class=v] .vcards .vcard{padding-top:1.25em;position:relative;display:block}.v[data-class=v] .vcards .vcard:after{content:"";clear:both;display:block}.v[data-class=v] .vcards .vcard .vimg{width:3.125em;height:3.125em;float:left;border-radius:50%;margin-right:.7525em;border:1px solid #f5f5f5;padding:.125em}@media screen and (max-width: 720px){.v[data-class=v] .vcards .vcard .vimg{width:2.5em;height:2.5em}}.v[data-class=v] .vcards .vcard .vhead{line-height:1.5;margin-top:0}.v[data-class=v] .vcards .vcard .vhead .vnick{position:relative;font-size:.875em;font-weight:500;margin-right:.875em;cursor:pointer;text-decoration:none;display:inline-block}.v[data-class=v] .vcards .vcard .vhead .vnick:hover{color:#d7191a}.v[data-class=v] .vcards .vcard .vh{overflow:hidden;padding-bottom:.5em;border-bottom:1px dashed #f5f5f5}.v[data-class=v] .vcards .vcard .vh .vtime{font-size:.75em;margin-right:.875em}.v[data-class=v] .vcards .vcard .vh .vmeta{line-height:1;position:relative}.v[data-class=v] .vcards .vcard .vh .vmeta .vat{font-size:.8125em;color:#ef2f11;cursor:pointer;float:right}.v[data-class=v] .vcards .vcard:last-child .vh{border-bottom:none}.v[data-class=v] .vcards .vcard .vcontent{word-wrap:break-word;word-break:break-all;font-size:.875em;line-height:2;position:relative;margin-bottom:.75em;padding-top:.625em}.v[data-class=v] .vcards .vcard .vcontent.expand{cursor:pointer;max-height:8em;overflow:hidden}.v[data-class=v] .vcards .vcard .vcontent.expand::before{display:block;content:"";position:absolute;width:100%;left:0;top:0;bottom:3.15em;background:-webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, 0.9)));background:linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));z-index:999}.v[data-class=v] .vcards .vcard .vcontent.expand::after{display:block;content:attr(data-expand);text-align:center;color:#828586;position:absolute;width:100%;height:3.15em;line-height:3.15em;left:0;bottom:0;z-index:999;background:rgba(255,255,255,.9)}.v[data-class=v] .vcards .vcard .vquote{padding-left:1em;border-left:1px dashed rgba(238,238,238,.5)}.v[data-class=v] .vcards .vcard .vquote .vimg{width:2.225em;height:2.225em}.v[data-class=v] .vpage .vmore{margin:1em 0}.v[data-class=v] .clear{content:"";display:block;clear:both}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes pulse{50%{background:#dcdcdc}}@keyframes pulse{50%{background:#dcdcdc}}.v[data-class=v] .vspinner{width:22px;height:22px;display:inline-block;border:6px double #a0a0a0;border-top-color:rgba(0,0,0,0);border-bottom-color:rgba(0,0,0,0);border-radius:50%;-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear;position:relative;vertical-align:middle;margin:0 5px}[data-theme=dark] .v[data-class=v] .vinput,[data-theme=dark] .v[data-class=v] .veditor,[data-theme=dark] .v[data-class=v] p,[data-theme=dark] .v[data-class=v] pre code,[data-theme=dark] .v[data-class=v] .status-bar,.dark .v[data-class=v] .vinput,.dark .v[data-class=v] .veditor,.dark .v[data-class=v] p,.dark .v[data-class=v] pre code,.dark .v[data-class=v] .status-bar,.theme__dark .v[data-class=v] .vinput,.theme__dark .v[data-class=v] .veditor,.theme__dark .v[data-class=v] p,.theme__dark .v[data-class=v] pre code,.theme__dark .v[data-class=v] .status-bar,.night .v[data-class=v] .vinput,.night .v[data-class=v] .veditor,.night .v[data-class=v] p,.night .v[data-class=v] pre code,.night .v[data-class=v] .status-bar{color:#b2b2b5}[data-theme=dark] .v[data-class=v] .vtime,[data-theme=dark] .v[data-class=v] .vsys,.dark .v[data-class=v] .vtime,.dark .v[data-class=v] .vsys,.theme__dark .v[data-class=v] .vtime,.theme__dark .v[data-class=v] .vsys,.night .v[data-class=v] .vtime,.night .v[data-class=v] .vsys{color:#929298}[data-theme=dark] .v[data-class=v] pre,[data-theme=dark] .v[data-class=v] code,[data-theme=dark] .v[data-class=v] pre code,.dark .v[data-class=v] pre,.dark .v[data-class=v] code,.dark .v[data-class=v] pre code,.theme__dark .v[data-class=v] pre,.theme__dark .v[data-class=v] code,.theme__dark .v[data-class=v] pre code,.night .v[data-class=v] pre,.night .v[data-class=v] code,.night .v[data-class=v] pre code{color:#929298;background-color:#151414}[data-theme=dark] .v[data-class=v] .vwrap,.dark .v[data-class=v] .vwrap,.theme__dark .v[data-class=v] .vwrap,.night .v[data-class=v] .vwrap{border-color:#b2b2b5}[data-theme=dark] .v[data-class=v] .vicon,.dark .v[data-class=v] .vicon,.theme__dark .v[data-class=v] .vicon,.night .v[data-class=v] .vicon{fill:#b2b2b5}[data-theme=dark] .v[data-class=v] .vicon.actived,.dark .v[data-class=v] .vicon.actived,.theme__dark .v[data-class=v] .vicon.actived,.night .v[data-class=v] .vicon.actived{fill:#66b1ff}[data-theme=dark] .v[data-class=v] .vbtn,.dark .v[data-class=v] .vbtn,.theme__dark .v[data-class=v] .vbtn,.night .v[data-class=v] .vbtn{color:#b2b2b5;border-color:#b2b2b5}[data-theme=dark] .v[data-class=v] .vbtn:hover,.dark .v[data-class=v] .vbtn:hover,.theme__dark .v[data-class=v] .vbtn:hover,.night .v[data-class=v] .vbtn:hover{color:#66b1ff;border-color:#66b1ff}[data-theme=dark] .v[data-class=v] a:hover,.dark .v[data-class=v] a:hover,.theme__dark .v[data-class=v] a:hover,.night .v[data-class=v] a:hover{color:#d7191a}[data-theme=dark] .v[data-class=v] .vcards .vcard .vcontent.expand::before,.dark .v[data-class=v] .vcards .vcard .vcontent.expand::before,.theme__dark .v[data-class=v] .vcards .vcard .vcontent.expand::before,.night .v[data-class=v] .vcards .vcard .vcontent.expand::before{background:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), to(rgba(0, 0, 0, 0.7)));background:linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7))}[data-theme=dark] .v[data-class=v] .vcards .vcard .vcontent.expand::after,.dark .v[data-class=v] .vcards .vcard .vcontent.expand::after,.theme__dark .v[data-class=v] .vcards .vcard .vcontent.expand::after,.night .v[data-class=v] .vcards .vcard .vcontent.expand::after{background:rgba(0,0,0,.7)}@media(prefers-color-scheme: dark){.v[data-class=v] .vinput,.v[data-class=v] .veditor,.v[data-class=v] p,.v[data-class=v] pre code,.v[data-class=v] .status-bar{color:#b2b2b5}.v[data-class=v] .vtime,.v[data-class=v] .vsys{color:#929298}.v[data-class=v] pre,.v[data-class=v] code,.v[data-class=v] pre code{color:#929298;background-color:#151414}.v[data-class=v] .vwrap{border-color:#b2b2b5}.v[data-class=v] .vicon{fill:#b2b2b5}.v[data-class=v] .vicon.actived{fill:#66b1ff}.v[data-class=v] .vbtn{color:#b2b2b5;border-color:#b2b2b5}.v[data-class=v] .vbtn:hover{color:#66b1ff;border-color:#66b1ff}.v[data-class=v] a:hover{color:#d7191a}.v[data-class=v] .vcards .vcard .vcontent.expand::before{background:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), to(rgba(0, 0, 0, 0.7)));background:linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7))}.v[data-class=v] .vcards .vcard .vcontent.expand::after{background:rgba(0,0,0,.7)}}',""]),e.exports=t},function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=i(r);return[n].concat(r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")})).concat([o]).join("\n")}return[n].join("\n")}function i(e){return"/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(e)))))," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o=0&&y.splice(t,1)}function u(e){var t=document.createElement("style");return e.attrs.type="text/css",l(t,e.attrs),o(e,t),t}function s(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",l(t,e.attrs),o(e,t),t}function l(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var l=b++;n=m||(m=u(t)),r=d.bind(null,n,l,!1),i=d.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),r=f.bind(null,n,t),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(t),r=p.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function d(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function p(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=D(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),u=e.href;e.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}var h={},v=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),m=null,b=0,y=[],D=n(73);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=v()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=i(e,t);return r(n,t),function(e){for(var o=[],a=0;a diff --git a/themes/LoveIt/exampleSite/content/about/index.en.md b/themes/LoveIt/exampleSite/content/about/index.en.md index 866fbf4..3e2b7ea 100644 --- a/themes/LoveIt/exampleSite/content/about/index.en.md +++ b/themes/LoveIt/exampleSite/content/about/index.en.md @@ -13,7 +13,7 @@ math: {{< style "img { height: 1.25rem; }" >}} [![GitHub release (latest by date)](https://img.shields.io/github/v/release/dillonzq/LoveIt?style=flat-square)](https://github.com/dillonzq/LoveIt/releases) -[![Hugo](https://img.shields.io/badge/Hugo-%5E0.62.0-ff4088?style=flat-square&logo=hugo)](https://gohugo.io/) +[![Hugo](https://img.shields.io/badge/Hugo-%5E0.128.0-ff4088?style=flat-square&logo=hugo)](https://gohugo.io/) [![License](https://img.shields.io/github/license/dillonzq/LoveIt?style=flat-square)](https://github.com/dillonzq/LoveIt/blob/master/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/dillonzq/LoveIt?style=social)](https://github.com/dillonzq/LoveIt) [![GitHub forks](https://img.shields.io/github/forks/dillonzq/LoveIt?style=social)](https://github.com/dillonzq/LoveIt/fork) @@ -53,7 +53,7 @@ math: * :(far fa-user fa-fw): **Gravatar** supported by [Gravatar](https://gravatar.com) * :(fas fa-user-circle fa-fw): Local **Avatar** supported -* :(far fa-id-card fa-fw): Up to **73** social links supported +* :(far fa-id-card fa-fw): Up to **76** social links supported * :(fas fa-share-square fa-fw): Up to **24** share sites supported * :(far fa-comment fa-fw): **Disqus** comment system supported by [Disqus](https://disqus.com) * :(far fa-comment-dots fa-fw): **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk) diff --git a/themes/LoveIt/exampleSite/content/about/index.zh-cn.md b/themes/LoveIt/exampleSite/content/about/index.zh-cn.md index 21fbe12..897f0e1 100644 --- a/themes/LoveIt/exampleSite/content/about/index.zh-cn.md +++ b/themes/LoveIt/exampleSite/content/about/index.zh-cn.md @@ -13,7 +13,7 @@ math: {{< style "img { height: 1.25rem; }" >}} [![GitHub release (latest by date)](https://img.shields.io/github/v/release/dillonzq/LoveIt?style=flat-square)](https://github.com/dillonzq/LoveIt/releases) -[![Hugo](https://img.shields.io/badge/Hugo-%5E0.62.0-ff4088?style=flat-square&logo=hugo)](https://gohugo.io/) +[![Hugo](https://img.shields.io/badge/Hugo-%5E0.128.0-ff4088?style=flat-square&logo=hugo)](https://gohugo.io/) [![License](https://img.shields.io/github/license/dillonzq/LoveIt?style=flat-square)](https://github.com/dillonzq/LoveIt/blob/master/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/dillonzq/LoveIt?style=social)](https://github.com/dillonzq/LoveIt) [![GitHub forks](https://img.shields.io/github/forks/dillonzq/LoveIt?style=social)](https://github.com/dillonzq/LoveIt/fork) @@ -35,7 +35,7 @@ math: * :(far fa-chart-bar fa-fw): 支持 **[Fathom Analytics](https://usefathom.com/)** * :(fas fa-chart-column fa-fw): 支持 **[Plausible Analytics](https://plausible.io/)** * :(fab fa-yandex-international fa-fw): 支持 **[Yandex Metrica](https://metrica.yandex.com/)** -* :(fas fa-sitemap fa-fw): 支持搜索引擎的**网站验证** (Google, Bind, Yandex and Baidu) +* :(fas fa-sitemap fa-fw): 支持搜索引擎的**网站验证** (Google, Bind, Yandex 和 Baidu) * :(fas fa-tachometer-alt fa-fw): 支持所有第三方库的 **CDN** * :(fas fa-cloud-download-alt fa-fw): 基于 [lazysizes](https://github.com/aFarkas/lazysizes) 自动转换图片为**懒加载** @@ -53,7 +53,7 @@ math: * :(far fa-user fa-fw): 支持 **[Gravatar](https://gravatar.com)** 头像 * :(fas fa-user-circle fa-fw): 支持本地**头像** -* :(far fa-id-card fa-fw): 支持多达 **73** 种社交链接 +* :(far fa-id-card fa-fw): 支持多达 **76** 种社交链接 * :(fas fa-share-square fa-fw): 支持多达 **24** 种网站分享 * :(far fa-comment fa-fw): 支持 **[Disqus](https://disqus.com)** 评论系统 * :(far fa-comment-dots fa-fw): 支持 **[Gitalk](https://github.com/gitalk/gitalk)** 评论系统 diff --git a/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.en.md b/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.en.md index 86722df..0c848d9 100644 --- a/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.en.md +++ b/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.en.md @@ -23,7 +23,7 @@ This article offers a sample of basic Markdown syntax that can be used in Hugo c {{< admonition >}} -This article is a shameful copy of the great [Grav original page](http://learn.getgrav.org/content/markdown). +This article is a shameful copy of the great [Grav original page](https://learn.getgrav.org/content/markdown). If you want to know about the extended Markdown syntax of **LoveIt** theme, please read [extended Markdown syntax page](../theme-documentation-content#extended-markdown-syntax). {{< /admonition >}} diff --git a/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.zh-cn.md b/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.zh-cn.md index 2d88270..bd443fc 100644 --- a/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.zh-cn.md +++ b/themes/LoveIt/exampleSite/content/posts/basic-markdown-syntax/index.zh-cn.md @@ -23,7 +23,7 @@ lightgallery: true {{< admonition >}} -这篇文章借鉴了一篇很棒的[来自 Grav 的文章](http://learn.getgrav.org/content/markdown). +这篇文章借鉴了一篇很棒的[来自 Grav 的文章](https://learn.getgrav.org/content/markdown). 如果你想了解 **Loveit** 主题的扩展 Markdown 语法, 请阅读[扩展 Markdown 语法页面](../theme-documentation-content#extended-markdown-syntax). {{< /admonition >}} diff --git a/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/hugo-extended-edition.png b/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/hugo-extended-edition.png new file mode 100644 index 0000000..ab0e3fd Binary files /dev/null and b/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/hugo-extended-edition.png differ diff --git a/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/index.en.md b/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/index.en.md index b961a25..1fe684b 100644 --- a/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -29,14 +29,12 @@ Discover what the Hugo - **LoveIt** theme is all about and the core-concepts beh Thanks to the simplicity of Hugo, [Hugo](https://gohugo.io/) is the only dependency of this theme. -Just install latest version of [:(far fa-file-archive fa-fw): Hugo (> 0.62.0)](https://gohugo.io/getting-started/installing/) for your OS (**Windows**, **Linux**, **macOS**). +Just install latest edition of [:(far fa-file-archive fa-fw): Hugo](https://gohugo.io/getting-started/installing/) for your OS (**Windows**, **Linux**, **macOS**). -{{< admonition note "Why not support earlier versions of Hugo?" >}} -Since [Markdown Render Hooks](https://gohugo.io/getting-started/configuration-markup#markdown-render-hooks) was introduced in the [Hugo Christmas Edition](https://gohugo.io/news/0.62.0-relnotes/), this theme only supports Hugo versions above **0.62.0**. -{{< /admonition >}} +{{< admonition note "When you need to use Hugo extended edition?" false >}} +When you want [style customization](#style-customization), you need to use the Hugo **extended edition** for correct rendering. -{{< admonition tip "Hugo extended version is recommended" >}} -Since some features of this theme need to processes :(fab fa-sass fa-fw): SCSS to :(fab fa-css3 fa-fw): CSS, it is recommended to use Hugo **extended** version for better experience. +![Hugo extended edition](hugo-extended-edition.png "Hugo extended edition") {{< /admonition >}} ## 2 Installation @@ -54,9 +52,9 @@ cd my_website ### 2.2 Install the Theme -The **LoveIt** theme’s repository is: [https://github.com/dillonzq/LoveIt](https://github.com/dillonzq/LoveIt). +The **LoveIt** theme's repository is: [https://github.com/dillonzq/LoveIt](https://github.com/dillonzq/LoveIt). -You can download the [latest release :(far fa-file-archive fa-fw): .zip file](https://github.com/dillonzq/LoveIt/releases) of the theme and extract it in the `themes` directory. +You can download the [release :(far fa-file-archive fa-fw): .zip file](https://github.com/dillonzq/LoveIt/releases) of the theme and extract it in the `themes` directory. Alternatively, clone this repository to the `themes` directory: @@ -71,6 +69,16 @@ git init git submodule add https://github.com/dillonzq/LoveIt.git themes/LoveIt ``` +{{< admonition note "LoveIt theme's compatibility" >}} + +| LoveIt branch or version | Supported Hugo versions | +|:-------------------------|:-----------------------:| +| master(Unstable) | ≥ 0.128.0 | +| **0.3.X(Recommended)** | 0.128.0 - 0.144.2 | +| 0.2.X(Outdated) | 0.68.0 - 0.127.0 | + +{{< /admonition >}} + ### 2.3 Basic Configuration {#basic-configuration} The following is a basic configuration for the LoveIt theme: @@ -89,12 +97,6 @@ languageCode = "en" # language name ["English", "简体中文", "Français", "Polski", ...] languageName = "English" -# Author config -[author] - name = "xxxx" - email = "" - link = "" - # Menu config [menu] [[menu.main]] @@ -134,7 +136,7 @@ languageName = "English" ``` {{< admonition >}} -When building the website, you can set a theme by using `--theme` option. However, we suggest you modify the configuration file (**config.toml**) and set the theme as the default. +When building the website, you can set a theme by using `--theme` option. However, we suggest you modify the configuration file (**hugo.toml**) and set the theme as the default. {{< /admonition >}} ### 2.4 Create Your First Post @@ -174,6 +176,7 @@ it is highly recommended that you add `--disableFastRender` parameter to `hugo s ```bash hugo serve --disableFastRender ``` + {{< /admonition >}} ### 2.6 Build the Website @@ -195,7 +198,7 @@ Alternatively, you can use [AWS Amplify](https://gohugo.io/hosting-and-deploymen ### 3.1 Site Configuration {#site-configuration} -In addition to [Hugo global configuration](https://gohugo.io/overview/configuration/) and [menu configuration](#basic-configuration), **LoveIt** lets you define the following parameters in your site configuration (here is a `config.toml`, whose values are default). +In addition to [Hugo global configuration](https://gohugo.io/overview/configuration/) and [menu configuration](#basic-configuration), **LoveIt** lets you define the following parameters in your site configuration (here is a `hugo.toml`, whose values are default). Please open the code block below to view the complete sample configuration :(far fa-hand-point-down fa-fw):: @@ -215,10 +218,6 @@ languageName = "English" # whether to include Chinese/Japanese/Korean hasCJKLanguage = false -# default amount of posts in each pages -paginate = 12 -# google analytics code [UA-XXXXXXXX-X] -googleAnalytics = "" # copyright description used only for seo schema copyright = "" @@ -232,11 +231,11 @@ enableEmoji = true # ignore some build errors ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] -# Author config -[author] - name = "xxxx" - email = "" - link = "" +# Pagination config +[pagination] + disableAliases = false + pagerSize = 10 + path = "page" # Menu config [menu] @@ -285,6 +284,12 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] # website images for Open Graph and Twitter Cards images = ["/logo.png"] +# Author config + [params.author] + name = "xxxx" + email = "" + link = "" + # Header config [params.header] # desktop header mode ["fixed", "normal", "auto"] @@ -481,6 +486,10 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] Plume = "" HackTheBox = "" RootMe= "" + Malt = "" + TikTok = "" + TryHackMe = "" + Codeberg = "" Phone = "" Email = "xxxx@xxxx.com" RSS = true # {{< version 0.2.0 >}} @@ -510,7 +519,7 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] # whether to enable the table of the contents enable = true # {{< version 0.2.9 >}} whether to keep the static table of the contents in front of the post - keepStatic = true + keepStatic = false # whether to make the table of the contents in the sidebar automatically collapsed auto = true # {{< version 0.2.0 changed >}} {{< link "https://katex.org/" KaTeX >}} mathematical formulas @@ -898,11 +907,12 @@ into `/static`. They’re easily created via [https://realfavicongenerator.net/] Customize `browserconfig.xml` and `site.webmanifest` to set theme-color and background-color. -### 3.3 Style Customization +### 3.3 Style Customization {#style-customization} {{< version 0.2.8 changed >}} -{{< admonition >}} +{{< admonition note "Hugo extended version is necessary" >}} +Since Hugo need to processes :(fab fa-sass fa-fw): SCSS to :(fab fa-css3 fa-fw): CSS, Hugo **extended** version is necessary for the style customization. {{< /admonition >}} @@ -931,30 +941,32 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s {{< version 0.2.10 changed >}} -| Language | Hugo Code | HTML `lang` Attribute | Theme Docs | Lunr.js Support | -|:-------------------- |:---------:|:---------------------:|:-----------------------------:|:-----------------------------:| -| English | `en` | `en` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | -| Simplified Chinese | `zh-cn` | `zh-CN` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | -| Traditional Chinese | `zh-tw` | `zh-TW` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| French | `fr` | `fr` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| Polish | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| Brazilian Portuguese | `pt-br` | `pt-BR` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| Italian | `it` | `it` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| Spanish | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| Serbian | `sr` | `sr` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| Russian | `ru` | `ru` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| Romanian | `ro` | `ro` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| Vietnamese | `vi` | `vi` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| Arabic | `ar` | `ar` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| Catalan | `ca` | `ca` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| Thai | `th` | `th` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| Telugu | `te` | `te` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| Indonesian | `id` | `id` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| Turkish | `tr` | `tr` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| Korean | `ko` | `ko` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| Hindi | `hi` | `hi` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| Language | Hugo Code | HTML `lang` Attribute | Theme Docs | Lunr.js Support | +|:--------------------|:---------:|:---------------------:|:-----------------------------:|:-----------------------------:| +| English | `en` | `en` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | +| Simplified Chinese | `zh-cn` | `zh-CN` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | +| Traditional Chinese | `zh-tw` | `zh-TW` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| French | `fr` | `fr` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Polish | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| Portuguese (Brazil) | `pt-br` | `pt-BR` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Italian | `it` | `it` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Spanish | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| German | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Serbian | `sr` | `sr` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| Russian | `ru` | `ru` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Romanian | `ro` | `ro` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Vietnamese | `vi` | `vi` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Arabic | `ar` | `ar` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Catalan | `ca` | `ca` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| Thai | `th` | `th` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Telugu | `te` | `te` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| Indonesian | `id` | `id` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| Turkish | `tr` | `tr` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Korean | `ko` | `ko` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| Hindi | `hi` | `hi` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| Dutch | `nl` | `nl` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Bengali | `hi` | `hi` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | ### 4.2 Basic Configuration diff --git a/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index edca2e2..7367b4a 100644 --- a/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -27,16 +27,14 @@ toc: ## 1 准备 -由于 Hugo 提供的便利性, [Hugo](https://gohugo.io/) 本身是这个主题唯一的依赖. +由于 Hugo 提供的便利性, [Hugo](https://gohugo.io/) 是这个主题唯一的依赖. -直接安装满足你操作系统 (**Windows**, **Linux**, **macOS**) 的最新版本 [:(far fa-file-archive fa-fw): Hugo (> 0.62.0)](https://gohugo.io/getting-started/installing/). +直接安装满足你操作系统 (**Windows**, **Linux**, **macOS**) 的最新版本 [:(far fa-file-archive fa-fw): Hugo](https://gohugo.io/getting-started/installing/). -{{< admonition note "为什么不支持早期版本的 Hugo?" >}} -由于 [Markdown 渲染钩子函数](https://gohugo.io/getting-started/configuration-markup#markdown-render-hooks) 在 [Hugo 圣诞节版本](https://gohugo.io/news/0.62.0-relnotes/) 中被引入, 本主题只支持高于 **0.62.0** 的 Hugo 版本. -{{< /admonition >}} +{{< admonition note "什么时候需要使用 Hugo extended 版本?" false >}} +当你需要[自定义样式](#style-customization)时, 你要使用 Hugo **extended** 版本来获得正确的渲染效果. -{{< admonition tip "推荐使用 Hugo extended 版本" >}} -由于这个主题的一些特性需要将 :(fab fa-sass fa-fw): SCSS 转换为 :(fab fa-css3 fa-fw): CSS, 推荐使用 Hugo **extended** 版本来获得更好的使用体验. +![Hugo extended 版本](hugo-extended-edition.png "Hugo extended 版本") {{< /admonition >}} ## 2 安装 @@ -56,7 +54,7 @@ cd my_website **LoveIt** 主题的仓库是: [https://github.com/dillonzq/LoveIt](https://github.com/dillonzq/LoveIt). -你可以下载主题的 [最新版本 :(far fa-file-archive fa-fw): .zip 文件](https://github.com/dillonzq/LoveIt/releases) 并且解压放到 `themes` 目录. +你可以下载主题的 [发布版本 :(far fa-file-archive fa-fw): .zip 文件](https://github.com/dillonzq/LoveIt/releases) 并且解压放到 `themes` 目录. 另外, 也可以直接把这个主题克隆到 `themes` 目录: @@ -71,6 +69,16 @@ git init git submodule add https://github.com/dillonzq/LoveIt.git themes/LoveIt ``` +{{< admonition note "主题的兼容性" >}} + +| 分支或版本 | 支持的 Hugo 版本 | +|:--------------|:-----------------:| +| master(不稳定) | ≥ 0.128.0 | +| **0.3.X(推荐)** | 0.128.0 - 0.144.2 | +| 0.2.X(过时) | 0.68.0 - 0.127.0 | + +{{< /admonition >}} + ### 2.3 基础配置 {#basic-configuration} 以下是 LoveIt 主题的基本配置: @@ -91,12 +99,6 @@ languageName = "简体中文" # 是否包括中日韩文字 hasCJKLanguage = true -# 作者配置 -[author] - name = "xxxx" - email = "" - link = "" - # 菜单配置 [menu] [[menu.main]] @@ -136,7 +138,7 @@ hasCJKLanguage = true ``` {{< admonition >}} -在构建网站时, 你可以使用 `--theme` 选项设置主题. 但是, 我建议你修改配置文件 (**config.toml**) 将本主题设置为默认主题. +在构建网站时, 你可以使用 `--theme` 选项设置主题. 但是, 我建议你修改配置文件 (**hugo.toml**) 将本主题设置为默认主题. {{< /admonition >}} ### 2.4 创建你的第一篇文章 @@ -176,6 +178,7 @@ hugo serve ```bash hugo serve --disableFastRender ``` + {{< /admonition >}} ### 2.6 构建网站 @@ -197,7 +200,7 @@ hugo ### 3.1 网站配置 {#site-configuration} -除了 [Hugo 全局配置](https://gohugo.io/overview/configuration/) 和 [菜单配置](#basic-configuration) 之外, **LoveIt** 主题还允许您在网站配置中定义以下参数 (这是一个示例 `config.toml`, 其内容为默认值). +除了 [Hugo 全局配置](https://gohugo.io/overview/configuration/) 和 [菜单配置](#basic-configuration) 之外, **LoveIt** 主题还允许您在网站配置中定义以下参数 (这是一个示例 `hugo.toml`, 其内容为默认值). 请打开下面的代码块查看完整的示例配置 :(far fa-hand-point-down fa-fw):: @@ -217,10 +220,6 @@ languageName = "简体中文" # 是否包括中日韩文字 hasCJKLanguage = true -# 默认每页列表显示的文章数目 -paginate = 12 -# 谷歌分析代号 [UA-XXXXXXXX-X] -googleAnalytics = "" # 版权描述,仅仅用于 SEO copyright = "" @@ -234,11 +233,11 @@ enableEmoji = true # 忽略一些构建错误 ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] -# 作者配置 -[author] - name = "xxxx" - email = "" - link = "" +# 分页配置 +[pagination] + disableAliases = false + pagerSize = 10 + path = "page" # 菜单配置 [menu] @@ -287,6 +286,12 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] # 网站图片, 用于 Open Graph 和 Twitter Cards images = ["/logo.png"] + # 作者配置 + [params.author] + name = "xxxx" + email = "" + link = "" + # 页面头部导航栏配置 [params.header] # 桌面端导航栏模式 ["fixed", "normal", "auto"] @@ -483,6 +488,10 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] Plume = "" HackTheBox = "" RootMe= "" + Malt = "" + TikTok = "" + TryHackMe = "" + Codeberg = "" Phone = "" Email = "xxxx@xxxx.com" RSS = true # {{< version 0.2.0 >}} @@ -512,7 +521,7 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] # 是否使用目录 enable = true # {{< version 0.2.9 >}} 是否保持使用文章前面的静态目录 - keepStatic = true + keepStatic = false # 是否使侧边目录自动折叠展开 auto = true # {{< version 0.2.0 >}} 代码配置 @@ -901,12 +910,12 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] 可以自定义 `browserconfig.xml` 和 `site.webmanifest` 文件来设置 theme-color 和 background-color. -### 3.3 自定义样式 +### 3.3 自定义样式 {#style-customization} {{< version 0.2.8 changed >}} -{{< admonition >}} -Hugo **extended** 版本对于自定义样式是必需的. +{{< admonition note "Hugo extended 版本是必需的" >}} +由于需要将 :(fab fa-sass fa-fw): SCSS 转换为 :(fab fa-css3 fa-fw): CSS, Hugo **extended** 版本对于自定义样式是必需的. {{< /admonition >}} 通过定义自定义 `.scss` 样式文件, **LoveIt** 主题支持可配置的样式. @@ -934,29 +943,31 @@ $code-font-family: Fira Mono, Source Code Pro, Menlo, Consolas, Monaco, monospac {{< version 0.2.10 changed >}} -| 语言 | Hugo 代码 | HTML `lang` 属性 | 主题文档 | Lunr.js 支持 | -|:---- |:----:|:----:|:----:|:----:| -| 英语 | `en` | `en` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | -| 简体中文 | `zh-cn` | `zh-CN` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | -| 繁體中文 | `zh-tw` | `zh-TW` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 法语 | `fr` | `fr` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 波兰语 | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| 巴西葡萄牙语 | `pt-br` | `pt-BR` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 意大利语 | `it` | `it` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 西班牙语 | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 德语 | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 塞尔维亚语 | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| 俄语 | `ru` | `ru` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 罗马尼亚语 | `ro` | `ro` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 越南语 | `vi` | `vi` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 阿拉伯语 | `ar` | `ar` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 加泰罗尼亚语 | `ca` | `ca` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| 泰语 | `th` | `th` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 泰卢固语 | `te` | `te` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| 印尼语 | `id` | `id` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| 土耳其语 | `tr` | `tr` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | -| 韩语 | `ko` | `ko` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | -| 印地语 | `hi` | `hi` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| 语言 | Hugo 代码 | HTML `lang` 属性 | 主题文档 | Lunr.js 支持 | +|:---------|:-------:|:--------------:|:-----------------------------:|:-----------------------------:| +| 英语 | `en` | `en` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | +| 简体中文 | `zh-cn` | `zh-CN` | :(far fa-check-square fa-fw): | :(far fa-check-square fa-fw): | +| 繁体中文 | `zh-tw` | `zh-TW` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 法语 | `fr` | `fr` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 波兰语 | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| 葡萄牙语(巴西) | `pt-br` | `pt-BR` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 意大利语 | `it` | `it` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 西班牙语 | `es` | `es` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 德语 | `de` | `de` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 塞尔维亚语 | `pl` | `pl` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| 俄语 | `ru` | `ru` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 罗马尼亚语 | `ro` | `ro` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 越南语 | `vi` | `vi` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 阿拉伯语 | `ar` | `ar` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 加泰罗尼亚语 | `ca` | `ca` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| 泰语 | `th` | `th` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 泰卢固语 | `te` | `te` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| 印尼语 | `id` | `id` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| 土耳其语 | `tr` | `tr` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 韩语 | `ko` | `ko` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| 印地语 | `hi` | `hi` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| 荷兰语 | `nl` | `nl` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 孟加拉语 | `bn` | `bn` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | ### 4.2 基本配置 diff --git a/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/language-switch.gif b/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/language-switch.gif index 37066df..27e4818 100644 Binary files a/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/language-switch.gif and b/themes/LoveIt/exampleSite/content/posts/theme-documentation-basics/language-switch.gif differ diff --git a/themes/LoveIt/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.en.md b/themes/LoveIt/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.en.md index a94d81e..d50ec9e 100644 --- a/themes/LoveIt/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.en.md +++ b/themes/LoveIt/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.en.md @@ -143,12 +143,12 @@ The rendered output looks like this: Example `tweet` input: ```markdown -{{}} +{{}} ``` The rendered output looks like this: -{{< tweet 917359331535966209 >}} +{{< tweet user=GoHugoIO id=917359331535966209 >}} ## 8 vimeo diff --git a/themes/LoveIt/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.zh-cn.md b/themes/LoveIt/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.zh-cn.md index b0d2146..939ebb7 100644 --- a/themes/LoveIt/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.zh-cn.md +++ b/themes/LoveIt/exampleSite/content/posts/theme-documentation-built-in-shortcodes/index.zh-cn.md @@ -144,12 +144,12 @@ For more information please have a look at GitHub issue [#7879](https://github.c 一个 `tweet` 示例: ```markdown -{{}} +{{}} ``` 呈现的输出效果如下: -{{< tweet 917359331535966209 >}} +{{< tweet user=GoHugoIO id=917359331535966209 >}} ## 8 vimeo diff --git a/themes/LoveIt/exampleSite/content/posts/theme-documentation-content/index.en.md b/themes/LoveIt/exampleSite/content/posts/theme-documentation-content/index.en.md index 7d069b1..7573683 100644 --- a/themes/LoveIt/exampleSite/content/posts/theme-documentation-content/index.en.md +++ b/themes/LoveIt/exampleSite/content/posts/theme-documentation-content/index.en.md @@ -278,13 +278,13 @@ which helps you write raw mathematical formula content. Example `raw` input: ```markdown -Inline Formula: {{}}\(\mathbf{E}=\sum_{i} \mathbf{E}_{i}=\mathbf{E}_{1}+\mathbf{E}_{2}+\mathbf{E}_{3}+\cdots\){{}} +Inline Formula: {?{}{< raw >}}\(\mathbf{E}=\sum_{i} \mathbf{E}_{i}=\mathbf{E}_{1}+\mathbf{E}_{2}+\mathbf{E}_{3}+\cdots\){?{}{< /raw >}} Block Formula: -{{}} +{?{}{< raw >}} \[ a=b+c \\ d+e=f \] -{{}} +{?{}{< /raw >}} ``` The rendered output looks like this: @@ -293,7 +293,7 @@ Inline Formula: {{< raw >}}\(\mathbf{E}=\sum_{i} \mathbf{E}_{i}=\mathbf{E}_{1}+\ Block Formula: -{{< raw>}} +{{< raw >}} \[ a=b+c \\ d+e=f \] {{< /raw >}} {{< /admonition >}} @@ -307,7 +307,7 @@ The default inline delimiters are: For example: -```tex +```markdown $c = \pm\sqrt{a^2 + b^2}$ and \\(f(x)=\int_{-\infty}^{\infty} \hat{f}(\xi) e^{2 \pi i \xi x} d \xi\\) ``` @@ -329,7 +329,7 @@ The default block delimiters are: For example: -```tex +```markdown $$ c = \pm\sqrt{a^2 + b^2} $$ \\[ f(x)=\int_{-\infty}^{\infty} \hat{f}(\xi) e^{2 \pi i \xi x} d \xi \\] diff --git a/themes/LoveIt/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md b/themes/LoveIt/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md index 106674e..b19cea7 100644 --- a/themes/LoveIt/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md +++ b/themes/LoveIt/exampleSite/content/posts/theme-documentation-content/index.zh-cn.md @@ -276,13 +276,13 @@ resources: 一个 `raw` 示例: ```markdown -行内公式: {{}}\(\mathbf{E}=\sum_{i} \mathbf{E}_{i}=\mathbf{E}_{1}+\mathbf{E}_{2}+\mathbf{E}_{3}+\cdots\){{}} +行内公式: {?{}{< raw >}}\(\mathbf{E}=\sum_{i} \mathbf{E}_{i}=\mathbf{E}_{1}+\mathbf{E}_{2}+\mathbf{E}_{3}+\cdots\){?{}{< /raw >}} 公式块: -{{}} +{?{}{< raw >}} \[ a=b+c \\ d+e=f \] -{{}} +{?{}{< /raw >}} ``` 呈现的输出效果如下: @@ -291,7 +291,7 @@ resources: 公式块: -{{< raw>}} +{{< raw >}} \[ a=b+c \\ d+e=f \] {{< /raw >}} {{< /admonition >}} @@ -305,7 +305,7 @@ resources: 例如: -```tex +```markdown $c = \pm\sqrt{a^2 + b^2}$ 和 \\(f(x)=\int_{-\infty}^{\infty} \hat{f}(\xi) e^{2 \pi i \xi x} d \xi\\) ``` @@ -327,7 +327,7 @@ $c = \pm\sqrt{a^2 + b^2}$ 和 \\(f(x)=\int_{-\infty}^{\infty} \hat{f}(\xi) e^{2 例如: -```tex +```markdown $$ c = \pm\sqrt{a^2 + b^2} $$ \\[ f(x)=\int_{-\infty}^{\infty} \hat{f}(\xi) e^{2 \pi i \xi x} d \xi \\] diff --git a/themes/LoveIt/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md b/themes/LoveIt/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md index d06a7c8..3d6c593 100644 --- a/themes/LoveIt/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md +++ b/themes/LoveIt/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.en.md @@ -374,16 +374,11 @@ Block Formula: \[ a=b+c \\ d+e=f \] {{< /raw >}} -{{< script >}} -console.log('Hello LoveIt!'); -{{< /script >}} - -This renders as {{< person "https://dillonzq.com/" Dillon "author of the LoveIt theme" >}}. Raw content using Markdown syntax: {{< raw >}}**Hello**{{< /raw >}} ## 13 person -`person` is a shortcode to insert a link to a personal webpage marked up as [h-card](http://microformats.org/wiki/h-card). +`person` is a shortcode to insert a link to a personal webpage marked up as [h-card](https://microformats.org/wiki/h-card). The `person` shortcode has the following named parameters: diff --git a/themes/LoveIt/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md b/themes/LoveIt/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md index 340553b..3b9d81a 100644 --- a/themes/LoveIt/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md +++ b/themes/LoveIt/exampleSite/content/posts/theme-documentation-extended-shortcodes/index.zh-cn.md @@ -378,7 +378,7 @@ console.log('Hello LoveIt!'); ## 13 person -`person` shortcode 用来在你的文章中以 [h-card](http://microformats.org/wiki/h-card) 的格式插入个人网站链接. +`person` shortcode 用来在你的文章中以 [h-card](https://microformats.org/wiki/h-card) 的格式插入个人网站链接. `person` shortcode 有以下命名参数: diff --git a/themes/LoveIt/exampleSite/config.toml b/themes/LoveIt/exampleSite/hugo.toml similarity index 98% rename from themes/LoveIt/exampleSite/config.toml rename to themes/LoveIt/exampleSite/hugo.toml index 504cb9e..f18b192 100644 --- a/themes/LoveIt/exampleSite/config.toml +++ b/themes/LoveIt/exampleSite/hugo.toml @@ -24,12 +24,6 @@ languageName = "English" # 是否包括中日韩文字 hasCJKLanguage = false -# default amount of posts in each pages -# 默认每页列表显示的文章数目 -paginate = 12 -# google analytics code [UA-XXXXXXXX-X] -# 谷歌分析代号 [UA-XXXXXXXX-X] -googleAnalytics = "" # copyright description used only for seo schema # 版权描述,仅仅用于 SEO copyright = "" @@ -48,12 +42,12 @@ enableEmoji = true # 忽略一些构建错误 ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] -# Author config -# 作者配置 -[author] - name = "xxxx" - email = "" - link = "" +# Pagination config +# 分页配置 +[pagination] + disableAliases = false + pagerSize = 10 + path = "page" # Menu config # 菜单配置 @@ -114,6 +108,13 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] # 网站图片, 用于 Open Graph 和 Twitter Cards images = ["/logo.png"] + # Author config + # 作者配置 + [params.author] + name = "xxxx" + email = "" + link = "" + # Header config # 页面头部导航栏配置 [params.header] @@ -359,6 +360,10 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] Plume = "" HackTheBox = "" RootMe= "" + Malt = "" + TikTok = "" + TryHackMe = "" + Codeberg = "" Email = "" RSS = "" @@ -518,7 +523,7 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] recordIP = true highlight = true enableQQ = false - serverURLs = "https://leancloud.hugoloveit.com" + serverURLs = "https://valine.hugoloveit.com" # emoji data file name, default is "google.yml" # ["apple.yml", "google.yml", "facebook.yml", "twitter.yml"] # located in "themes/LoveIt/assets/lib/valine/emoji/" directory @@ -747,7 +752,7 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] # Permalinks config (https://gohugo.io/content-management/urls/#permalinks) # Permalinks 配置 (https://gohugo.io/content-management/urls/#permalinks) -[Permalinks] +[permalinks] # posts = ":year/:month/:filename" posts = ":filename" @@ -854,9 +859,9 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] highlightTag = "em" absoluteURL = false [languages.en.params.search.algolia] - index = "index.en" - appID = "PASDMWALPK" - searchKey = "b42948e51daaa93df92381c8e2ac0f93" + index = "index" + appID = "4D1IDY8JU6" + searchKey = "05332ac5ed76655a511f0da583a9afac" [languages.en.params.home] rss = 10 [languages.en.params.home.profile] @@ -947,9 +952,9 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] highlightTag = "em" absoluteURL = false [languages.zh-cn.params.search.algolia] - index = "index.zh-cn" - appID = "PASDMWALPK" - searchKey = "b42948e51daaa93df92381c8e2ac0f93" + index = "index" + appID = "GZT24PWKNT" + searchKey = "634ab679e825b815de2663de38908f9d" [languages.zh-cn.params.home] rss = 10 [languages.zh-cn.params.home.profile] diff --git a/themes/LoveIt/exampleSite/static/_redirects b/themes/LoveIt/exampleSite/static/_redirects index 715fccc..8e04d28 100644 --- a/themes/LoveIt/exampleSite/static/_redirects +++ b/themes/LoveIt/exampleSite/static/_redirects @@ -1,2 +1 @@ /zh-cn/* /zh-cn/404.html 404 -/fr/* /fr/404.html 404 diff --git a/themes/LoveIt/config.toml b/themes/LoveIt/hugo.toml similarity index 99% rename from themes/LoveIt/config.toml rename to themes/LoveIt/hugo.toml index 7dd3b9d..45313fc 100644 --- a/themes/LoveIt/config.toml +++ b/themes/LoveIt/hugo.toml @@ -1,7 +1,6 @@ [module] [module.hugoVersion] - extended = true - min = "0.62.0" + min = "0.128.0" [params] # site default theme ["auto", "light", "dark"] @@ -28,6 +27,13 @@ # 网站图片, 用于 Open Graph 和 Twitter Cards images = [] + # Author config + # 作者配置 + [params.author] + name = "xxxx" + email = "" + link = "" + # Header config # 页面头部导航栏配置 [params.header] @@ -273,6 +279,10 @@ Plume = "" HackTheBox = "" RootMe= "" + Malt = "" + TikTok = "" + TryHackMe = "" + Codeberg = "" Email = "" Phone = "" RSS = "" diff --git a/themes/LoveIt/i18n/bn.toml b/themes/LoveIt/i18n/bn.toml new file mode 100644 index 0000000..161c763 --- /dev/null +++ b/themes/LoveIt/i18n/bn.toml @@ -0,0 +1,199 @@ +# Translations for Bengali +# বাংলায় অনুবাদ +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# === baseof == +[backToTop] +other = "উপরে ফিরে যান" + +[viewComments] +other = "মন্তব্যগুলো দেখুন" +# === baseof == + +# === Post === +[posts] +other = "পোস্ট" +# === Post === + +# === Taxonomy === +[allSome] +other = "সকল {{ .Some }}" + +[tag] +other = "ট্যাগ" + +[tags] +other = "ট্যাগ" + +[category] +other = "ক্যাটাগরি" + +[categories] +other = "ক্যাটাগরি" +# === Taxonomy === + +# === Pagination === +[more] +other = "আরো" +# === Pagination === + +# === partials/header.html === +[selectLanguage] +other = "ভাষা নির্বাচন" + +[switchTheme] +other = "থিম পরিবর্তন" +# === partials/header.html === + +# === partials/footer.html === +[poweredBySome] +other = "{{ .Hugo }} দ্বারা চালিত | থিম - {{ .Theme }}" +# === partials/footer.html === + +# === partials/comment.html === +[valineLang] +other = "en" + +[valinePlaceholder] +other = "আপনার মন্তব্য ..." + +[facebookLanguageCode] +other = "bn_IN" + +[giscusLang] +other = "en" +# === partials/comment.html === + +# === partials/assets.html === +[search] +other = "খুঁজুন" + +[searchPlaceholder] +other = "শিরোনাম অথবা কনটেন্ট খুঁজুন..." + +[clear] +other = "পরিষ্কার করুন" + +[cancel] +other = "বাতিল করুন" + +[noResultsFound] +other = "কোনো ফলাফল পাওয়া যায় নি" + +[lunrLanguageCode] +other = "en" + +[copyToClipboard] +other = "ক্লিপবোর্ডে কপি করুন" + +[cookieconsentMessage] +other = "এই ওয়েবসাইটটি আপনার ব্রাউজিং অভিজ্ঞতা সমৃদ্ধ করতে কুকিজ ব্যবহার করে।" + +[cookieconsentDismiss] +other = "বুঝেছি!" + +[cookieconsentLink] +other = "আরো জানুন" +# === partials/assets.html === + +# === partials/plugin/share.html === +[shareOn] +other = "শেয়ার করুন" +# === partials/plugin/share.html === + +# === posts/single.html === +[contents] +other = "বিষয়বস্তু" + +[publishedOnDate] +other = "প্রকাশিত {{ .Date }}" + +[includedInCategories] +other = "ক্যাটাগরি {{ .Categories }}" + +[wordCount] +one = "একটি শব্দ" +other = "{{ .Count }}টি শব্দ" + +[readingTime] +one = "এক মিনিট" +other = "{{ .Count }} মিনিট" + +[views] +other = "ভিউ" + +[author] +other = "লেখক" + +[updatedOnDate] +other = "{{ .Date }} তারিখে আপডেট হয়েছে" + +[readMarkdown] +other = "মার্কডাউন পড়ুন" + +[back] +other = "পিছনে" + +[home] +other = "হোম" + +[readMore] +other = "আরো পড়ুন" +# === posts/single.html === + +# === 404.html === +[pageNotFound] +other = "পেজটি খুঁজে পাওয়া যায় নি" + +[pageNotFoundText] +other = "দুঃখিত, আপনি যে পেজটি খুঁজছেন তার কোনো অস্তিত্ব নেই।" +# === 404.html === + +# === shortcodes/admonition.html === +[note] +other = "নোট" + +[abstract] +other = "সারাংশ" + +[info] +other = "তথ্য" + +[tip] +other = "টিপ" + +[success] +other = "সফল" + +[question] +other = "প্রশ্ন" + +[warning] +other = "সতর্কীকরণ" + +[failure] +other = "ব্যর্থ" + +[danger] +other = "বিপজ্জনক" + +[bug] +other = "বাগ" + +[example] +other = "উদাহরণ" + +[quote] +other = "উক্তি" +# === shortcodes/admonition.html === + +# === shortcodes/version.html === +[new] +other = "নতুন" + +[changed] +other = "পরিবর্তিত" + +[deleted] +other = "মুছে ফেলা হয়েছে" +# === shortcodes/version.html === diff --git a/themes/LoveIt/i18n/de.toml b/themes/LoveIt/i18n/de.toml index 6bfaa50..53b19ae 100644 --- a/themes/LoveIt/i18n/de.toml +++ b/themes/LoveIt/i18n/de.toml @@ -69,7 +69,7 @@ other = "de" other = "Suche" [searchPlaceholder] -other = "Suche nach Titel und Inhalt..." +other = "Suche nach Titel und Inhalt ..." [clear] other = "Leeren" @@ -109,10 +109,10 @@ other = "Teilen auf" other = "Inhalt" [publishedOnDate] -other = "veröffentlicht an {{ .Date }}" +other = "Veröffentlicht am {{ .Date }}" [includedInCategories] -other = "enthalten in {{ .Categories }}" +other = "Enthalten in {{ .Categories }}" [wordCount] one = "Ein Wort" @@ -141,7 +141,7 @@ other = "Zurück" other = "Startseite" [readMore] -other = "Mehr lesen" +other = "Weiterlesen" # === posts/single.html === # === 404.html === diff --git a/themes/LoveIt/i18n/fr.toml b/themes/LoveIt/i18n/fr.toml index fd9d282..971e37b 100644 --- a/themes/LoveIt/i18n/fr.toml +++ b/themes/LoveIt/i18n/fr.toml @@ -4,10 +4,10 @@ # === baseof == [backToTop] -other = "Retour en Haut" +other = "Retour en haut" [viewComments] -other = "Afficher les Commentaires" +other = "Afficher les commentaires" # === baseof == # === Post === @@ -17,7 +17,7 @@ other = "Posts" # === Taxonomy === [allSome] -other = "Tous {{ .Some }}" +other = "Tous les {{ .Some }}" [tag] other = "Balise" @@ -34,7 +34,7 @@ other = "Catégories" # === Pagination === [more] -other = "Plus" +other = "Voir plus" # === Pagination === # === partials/header.html === @@ -42,7 +42,7 @@ other = "Plus" other = "Choisir la langue" [switchTheme] -other = "Changer de Thème" +other = "Changer de thème" # === partials/header.html === # === partials/footer.html === @@ -72,7 +72,7 @@ other = "Chercher" other = "Rechercher des titres, des contenus..." [clear] -other = "Clair" +other = "Effacer" [cancel] other = "Annuler" @@ -93,10 +93,10 @@ other = "Copier dans le presse-papiers" other = "Ce site Web utilise des Cookies pour améliorer votre expérience." [cookieconsentDismiss] -other = "Se mettre d'accord" +other = "J'accepte" [cookieconsentLink] -other = "Apprendre encore plus" +other = "En savoir plus" # === partials/assets.html === # === partials/plugin/share.html === @@ -132,7 +132,7 @@ other = "Auteur" other = "Mis à jour le {{ .Date }}" [readMarkdown] -other = "Lire Markdown" +other = "Lire en Markdown" [back] other = "Retour" @@ -157,7 +157,7 @@ other = "Désolé, la page recherchée n'existe pas." other = "Remarque" [abstract] -other = "Abstrait" +other = "Résumé" [info] other = "Info" @@ -195,8 +195,8 @@ other = "Citation" other = "NOUVEAU" [changed] -other = "CHANGE" +other = "CHANGÉ" [deleted] -other = "EFFACE" +other = "EFFACÉ" # === shortcodes/version.html === diff --git a/themes/LoveIt/i18n/nl.toml b/themes/LoveIt/i18n/nl.toml new file mode 100644 index 0000000..928bd5a --- /dev/null +++ b/themes/LoveIt/i18n/nl.toml @@ -0,0 +1,199 @@ +# Translations for Dutch +# Vertalingen voor het Nederlands +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# === baseof == +[backToTop] +other = "Terug naar boven" + +[viewComments] +other = "Bekijk opmerkingen" +# === baseof == + +# === Post === +[posts] +other = "Berichten" +# === Post === + +# === Taxonomy === +[allSome] +other = "Alle {{ .Some }}" + +[tag] +other = "Tag" + +[tags] +other = "Tags" + +[category] +other = "Categorie" + +[categories] +other = "Categorieën" +# === Taxonomy === + +# === Pagination === +[more] +other = "Meer" +# === Pagination === + +# === partials/header.html === +[selectLanguage] +other = "Selecteer Taal" + +[switchTheme] +other = "Verander Thema" +# === partials/header.html === + +# === partials/footer.html === +[poweredBySome] +other = "Aangedreven door {{ .Hugo }} | Thema - {{ .Theme }}" +# === partials/footer.html === + +# === partials/comment.html === +[valineLang] +other = "nl" + +[valinePlaceholder] +other = "Jouw opmerking" + +[facebookLanguageCode] +other = "nl_nl" + +[giscusLang] +other = "nl" +# === partials/comment.html === + +# === partials/assets.html === +[search] +other = "Zoeken" + +[searchPlaceholder] +other = "Zoek naar titels of andere inhoud..." + +[clear] +other = "Wissen" + +[cancel] +other = "Annuleren" + +[noResultsFound] +other = "Geen resultaten gevonden" + +[lunrLanguageCode] +other = "nl" + +[copyToClipboard] +other = "Kopieer naar klembord" + +[cookieconsentMessage] +other = "Deze website gebruikt cookies om de ervaring beter te maken." + +[cookieconsentDismiss] +other = "Begrepen!" + +[cookieconsentLink] +other = "Meer informatie" +# === partials/assets.html === + +# === partials/plugin/share.html === +[shareOn] +other = "Delen op" +# === partials/plugin/share.html === + +# === posts/single.html === +[contents] +other = "Content" + +[publishedOnDate] +other = "gepubliceerd op {{ .Date }}" + +[includedInCategories] +other = "inbegrepen in {{ .Categories }}" + +[wordCount] +one = "Één woord" +other = "{{ .Count }} woorden" + +[readingTime] +one = "Één minuut" +other = "{{ .Count }} minuten" + +[views] +other = "Aantal keer bekeken" + +[author] +other = "Auteur" + +[updatedOnDate] +other = "Aangepast op {{ .Date }}" + +[readMarkdown] +other = "Lees markdown" + +[back] +other = "Terug" + +[home] +other = "Homepagina" + +[readMore] +other = "Lees Meer" +# === posts/single.html === + +# === 404.html === +[pageNotFound] +other = "Pagina niet gevonden" + +[pageNotFoundText] +other = "De pagina die je zocht bestaat niet, Sorry!" +# === 404.html === + +# === shortcodes/admonition.html === +[note] +other = "Opmerking" + +[abstract] +other = "Abstract" + +[info] +other = "Info" + +[tip] +other = "Tip" + +[success] +other = "Gelukt" + +[question] +other = "Vraag" + +[warning] +other = "Waarschuwing" + +[failure] +other = "Fout" + +[danger] +other = "Gevaar" + +[bug] +other = "Bug" + +[example] +other = "Voorbeeld" + +[quote] +other = "Citaat" +# === shortcodes/admonition.html === + +# === shortcodes/version.html === +[new] +other = "NIEUW" + +[changed] +other = "VERANDERD" + +[deleted] +other = "VERWIJDERD" +# === shortcodes/version.html === diff --git a/themes/LoveIt/i18n/uk.toml b/themes/LoveIt/i18n/uk.toml new file mode 100644 index 0000000..e87ac3f --- /dev/null +++ b/themes/LoveIt/i18n/uk.toml @@ -0,0 +1,198 @@ +# Translations for Ukrainian +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# === baseof == +[backToTop] +other = "Повернутися до початку" + +[viewComments] +other = "Переглянути коментарі" +# === baseof == + +# === Post === +[posts] +other = "Публікації" +# === Post === + +# === Taxonomy === +[allSome] +other = "Всі {{ .Some }}" + +[tag] +other = "Тег" + +[tags] +other = "Теги" + +[category] +other = "Категорія" + +[categories] +other = "Категорії" +# === Taxonomy === + +# === Pagination === +[more] +other = "Більше" +# === Pagination === + +# === partials/header.html === +[selectLanguage] +other = "Змінити мову" + +[switchTheme] +other = "Змінити тему" +# === partials/header.html === + +# === partials/footer.html === +[poweredBySome] +other = "Працює на основі {{ .Hugo }} | Theme - {{ .Theme }}" +# === partials/footer.html === + +# === partials/comment.html === +[valineLang] +other = "en" + +[valinePlaceholder] +other = "Ваш коментар ..." + +[facebookLanguageCode] +other = "uk_UA" + +[giscusLang] +other = "uk" +# === partials/comment.html === + +# === partials/assets.html === +[search] +other = "Пошук" + +[searchPlaceholder] +other = "Search titles or contents..." + +[clear] +other = "Очистити" + +[cancel] +other = "Скасувати" + +[noResultsFound] +other = "Нічого не знайдено" + +[lunrLanguageCode] +other = "uk" + +[copyToClipboard] +other = "Скопіювати до буфера обміну" + +[cookieconsentMessage] +other = "Цей веб-сайт використовує файли cookie, щоб покращити ваш досвід." + +[cookieconsentDismiss] +other = "Зрозуміло!" + +[cookieconsentLink] +other = "Дізнатися більше" +# === partials/assets.html === + +# === partials/plugin/share.html === +[shareOn] +other = "Поділитися в" +# === partials/plugin/share.html === + +# === posts/single.html === +[contents] +other = "Зміст" + +[publishedOnDate] +other = "опубліковано {{ .Date }}" + +[includedInCategories] +other = "включений в{{ .Categories }}" + +[wordCount] +one = "Одне слово" +other = "{{ .Count }} слів" + +[readingTime] +one = "Одна минута" +other = "{{ .Count }} минут" + +[views] +other = "перегляди" + +[author] +other = "Автор" + +[updatedOnDate] +other = "Оновлено {{ .Date }}" + +[readMarkdown] +other = "Читати Markdown" + +[back] +other = "Повернутися" + +[home] +other = "Головна" + +[readMore] +other = "Детальніше" +# === posts/single.html === + +# === 404.html === +[pageNotFound] +other = "Сторінку не знайдено" + +[pageNotFoundText] +other = "Сторінка, яку ви шукаєте, не існує. Вибачте." +# === 404.html === + +# === shortcodes/admonition.html === +[note] +other = "Примітка" + +[abstract] +other = "Анотація" + +[info] +other = "Інформація" + +[tip] +other = "Порада" + +[success] +other = "Успіх" + +[question] +other = "Питання" + +[warning] +other = "Попередження" + +[failure] +other = "Невдача" + +[danger] +other = "Небезпека" + +[bug] +other = "Помилка" + +[example] +other = "Приклад" + +[quote] +other = "Цитата" +# === shortcodes/admonition.html === + +# === shortcodes/version.html === +[new] +other = "НОВИЙ" + +[changed] +other = "ЗМІНЕНИЙ" + +[deleted] +other = "ВИДАЛЕНИЙ" +# === shortcodes/version.html === diff --git a/themes/LoveIt/layouts/_default/_markup/render-codeblock.html b/themes/LoveIt/layouts/_default/_markup/render-codeblock.html new file mode 100644 index 0000000..0b44e80 --- /dev/null +++ b/themes/LoveIt/layouts/_default/_markup/render-codeblock.html @@ -0,0 +1 @@ +{{- dict "Content" .Inner "Lang" .Type "Options" .Options | partial "plugin/code-block.html" -}} diff --git a/themes/LoveIt/layouts/_default/baseof.html b/themes/LoveIt/layouts/_default/baseof.html index 66a6c3c..07f12c8 100644 --- a/themes/LoveIt/layouts/_default/baseof.html +++ b/themes/LoveIt/layouts/_default/baseof.html @@ -35,7 +35,9 @@ + +
      {{- /* comment button */ -}} diff --git a/themes/LoveIt/layouts/_default/summary.html b/themes/LoveIt/layouts/_default/summary.html index 7169220..773e22c 100644 --- a/themes/LoveIt/layouts/_default/summary.html +++ b/themes/LoveIt/layouts/_default/summary.html @@ -24,8 +24,8 @@ {{- /* Meta */ -}}