diff --git a/404.html b/404.html new file mode 100644 index 000000000..80c6d6a6f --- /dev/null +++ b/404.html @@ -0,0 +1,23 @@ + + + + + + 404 | Twikoo 文档 + + + + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/CNAME b/CNAME new file mode 100644 index 000000000..fe1afcc6f --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +twikoo.js.org diff --git a/QQ_API.html b/QQ_API.html new file mode 100644 index 000000000..2c9eed76f --- /dev/null +++ b/QQ_API.html @@ -0,0 +1,121 @@ + + + + + + QQ私有化部署文档 | Twikoo 文档 + + + + + + + + + + + + + + + +
Skip to content

QQ私有化部署文档

1. 下载go-cq

前往go-cqhttp release下载对应系统版本。

2. 配置服务

解压

Windows下请使用自己熟悉的解压软件自行解压

Linux下在命令行中输入tar -xzvf [文件名] 使用

Windows 标准方法

双击,根据提示生成运行脚本go-cqhttp_*.exe

[WARNING]: 尝试加载配置文件 config.yml 失败: 文件不存在 [INFO]: 默认配置文件已生成,请编辑 config.yml 后重启程序.

配置文件请参考下方config.yml

config.yml配置好后 再次双击运行脚本

[INFO]: 登录成功 欢迎使用: balabala

如出现需要认证的信息, 请自行认证设备。

此时, 基础配置完成

Linux 标准方法

通过 SSH 连接到服务器

cd到解压目录

输入 , 运行 ./go-cqhttp

[WARNING]: 尝试加载配置文件 config.yml 失败: 文件不存在 [INFO]: 默认配置文件已生成,请编辑 config.yml 后重启程序.

配置config.yml

yaml

+# go-cqhttp 默认配置文件
+
+account: # 账号相关
+  uin:  # QQ账号
+  password: '' # 密码为空时使用扫码登录
+  encrypt: false  # 是否开启密码加密
+  status: 0      # 在线状态 请参考 https://docs.go-cqhttp.org/guide/config.html#在线状态
+  relogin: # 重连设置
+    delay: 3   # 首次重连延迟, 单位秒
+    interval: 3   # 重连间隔
+    max-times: 0  # 最大重连次数, 0为无限制
+
+  # 是否使用服务器下发的新地址进行重连
+  # 注意, 此设置可能导致在海外服务器上连接情况更差
+  use-sso-address: true
+
+heartbeat:
+  # 心跳频率, 单位秒
+  # -1 为关闭心跳
+  interval: 5
+
+message:
+  # 上报数据类型
+  # 可选: string,array
+  post-format: string
+  # 是否忽略无效的CQ码, 如果为假将原样发送
+  ignore-invalid-cqcode: false
+  # 是否强制分片发送消息
+  # 分片发送将会带来更快的速度
+  # 但是兼容性会有些问题
+  force-fragment: false
+  # 是否将url分片发送
+  fix-url: false
+  # 下载图片等请求网络代理
+  proxy-rewrite: ''
+  # 是否上报自身消息
+  report-self-message: false
+  # 移除服务端的Reply附带的At
+  remove-reply-at: false
+  # 为Reply附加更多信息
+  extra-reply-data: false
+
+output:
+  # 日志等级 trace,debug,info,warn,error
+  log-level: warn
+  # 是否启用 DEBUG
+  debug: false # 开启调试模式
+
+# 默认中间件锚点
+default-middlewares: &default
+  # 访问密钥, 强烈推荐在公网的服务器设置
+  access-token: ''
+  # 事件过滤器文件目录
+  filter: ''
+  # API限速设置
+  # 该设置为全局生效
+  # 原 cqhttp 虽然启用了 rate_limit 后缀, 但是基本没插件适配
+  # 目前该限速设置为令牌桶算法, 请参考:
+  # https://baike.baidu.com/item/%E4%BB%A4%E7%89%8C%E6%A1%B6%E7%AE%97%E6%B3%95/6597000?fr=aladdin
+  rate-limit:
+    enabled: true # 是否启用限速
+    frequency: 1  # 令牌回复频率, 单位秒
+    bucket: 1     # 令牌桶大小
+
+database: # 数据库相关设置
+  leveldb:
+    # 是否启用内置leveldb数据库
+    # 启用将会增加10-20MB的内存占用和一定的磁盘空间
+    # 关闭将无法使用 撤回 回复 get_msg 等上下文相关功能
+    enable: true
+
+# 连接服务列表
+servers:
+  # 添加方式,同一连接方式可添加多个,具体配置说明请查看文档
+  #- http: # http 通信
+  #- ws:   # 正向 Websocket
+  #- ws-reverse: # 反向 Websocket
+  #- pprof: #性能分析服务器
+  # HTTP 通信设置
+  - http:
+      # 服务端监听地址
+      host: 127.0.0.1
+      # 服务端监听端口
+      port: 5700
+      # 反向HTTP超时时间, 单位秒
+      # 最小值为5,小于5将会忽略本项设置
+      timeout: 5
+      middlewares:
+        <<: *default # 引用默认中间件
+      # 反向HTTP POST地址列表
+      post:
+      #- url: '' # 地址
+      #  secret: ''           # 密钥
+      #- url: 127.0.0.1:5701 # 地址
+      #  secret: ''          # 密钥

再次运行./go-cqhttp

[INFO]: 登录成功 欢迎使用: balabala

如出现需要认证的信息, 请自行认证设备。

此时, 基础配置完成

注意:将你配置的端口号在防火墙里面放行或者使用反向代理将你设置的端口绑定到域名

注意:公网使用一定要配置token

3. twikoo配置

在twikoo中QQ私有化API配置项填写如下内容

QQ号 http://你的IP地址:端口号(或者域名)/send_private_msg?user_id=QQ号?token=你配置的token

QQ群 http://你的IP地址:端口号(或者域名)/send_group_msg?token=你配置的token?group_id=群号

配置完成

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/api.html b/api.html new file mode 100644 index 000000000..5ab66db5a --- /dev/null +++ b/api.html @@ -0,0 +1,85 @@ + + + + + + API 文档 | Twikoo 文档 + + + + + + + + + + + + + + + +
Skip to content

API 文档

通过 Twikoo API,主题开发者可以实现一些特殊的功能,例如:在文章列表显示文章评论数,在首页显示最新评论,等。

调用 Twikoo API 前,不需要 执行 twikoo.init()

Get comments count

批量获取文章评论数。

Version

>= 0.2.7

Example

js
twikoo.getCommentsCount({
+  envId: '您的环境id', // 环境 ID
+  // region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai,如果您的环境地域不是上海,需传此参数
+  urls: [ // 不包含协议、域名、参数的文章路径列表,必传参数
+    '/2020/10/post-1.html',
+    '/2020/11/post-2.html',
+    '/2020/12/post-3.html'
+  ],
+  includeReply: false // 评论数是否包括回复,默认:false
+}).then(function (res) {
+  console.log(res);
+  // 返回示例: [
+  //   { url: '/2020/10/post-1.html', count: 10 },
+  //   { url: '/2020/11/post-2.html', count: 0 },
+  //   { url: '/2020/12/post-3.html', count: 20 }
+  // ]
+}).catch(function (err) {
+  // 发生错误
+  console.error(err);
+});

Get recent comments

获取最新评论。

Version

>= 0.2.7

Example

js
twikoo.getRecentComments({
+  envId: '您的环境id', // 环境 ID
+  // region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai,如果您的环境地域不是上海,需传此参数
+  urls: [ // 要求云函数版本 >= 1.6.27。不包含协议、域名、参数的文章路径列表,不传默认获取所有最新评论
+    '/2020/10/post-1.html',
+    '/2020/11/post-2.html',
+    '/2020/12/post-3.html'
+  ],
+  pageSize: 10, // 获取多少条,默认:10,最大:100
+  includeReply: false // 是否包括最新回复,默认:false
+}).then(function (res) {
+  console.log(res);
+  // 返回 Array,包含最新评论的
+  //   * id:           评论 ID
+  //   * url:          评论地址
+  //   * nick:         昵称
+  //   * mailMd5:      邮箱的 MD5 值,可用于展示头像
+  //   * link:         网址
+  //   * comment:      HTML 格式的评论内容
+  //   * commentText:  纯文本格式的评论内容
+  //   * created:      评论时间,格式为毫秒级时间戳
+  //   * avatar:       头像地址(0.2.9 新增)
+  //   * relativeTime: 相对评论时间,如 “1 小时前”(0.2.9 新增)
+  // 返回示例: [ // 从新到旧顺序
+  //   { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 },
+  //   { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 },
+  //   { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 }
+  // ]
+}).catch(function (err) {
+  // 发生错误
+  console.error(err);
+});

On Twikoo loaded

Twikoo 成功挂载后的回调函数。
环境 ID 错误、网络异常、挂载失败等情况时不会触发。

Version

>= 0.5.2

Example

js
twikoo.init({
+  ......
+}).then(function () {
+  console.log('Twikoo 加载完成');
+});

On comment loaded

评论加载成功后的回调函数。
发表评论后自动刷新评论时、加载下一页评论时,也会触发。
评论加载失败时不会触发。

Version

>= 0.5.2

Example

js
twikoo.init({
+  ......,
+  onCommentLoaded: function () {
+    console.log('评论加载完成');
+  }
+});

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/assets/QQ_API.md.9FF6FGGE.js b/assets/QQ_API.md.9FF6FGGE.js new file mode 100644 index 000000000..440709117 --- /dev/null +++ b/assets/QQ_API.md.9FF6FGGE.js @@ -0,0 +1,96 @@ +import{_ as s,c as i,o as a,a5 as n}from"./chunks/framework.CVd-vdtw.js";const c=JSON.parse('{"title":"QQ私有化部署文档","description":"","frontmatter":{},"headers":[],"relativePath":"QQ_API.md","filePath":"QQ_API.md","lastUpdated":null}'),l={name:"QQ_API.md"},p=n(`

QQ私有化部署文档

1. 下载go-cq

前往go-cqhttp release下载对应系统版本。

2. 配置服务

解压

Windows下请使用自己熟悉的解压软件自行解压

Linux下在命令行中输入tar -xzvf [文件名] 使用

Windows 标准方法

双击,根据提示生成运行脚本go-cqhttp_*.exe

[WARNING]: 尝试加载配置文件 config.yml 失败: 文件不存在 [INFO]: 默认配置文件已生成,请编辑 config.yml 后重启程序.

配置文件请参考下方config.yml

config.yml配置好后 再次双击运行脚本

[INFO]: 登录成功 欢迎使用: balabala

如出现需要认证的信息, 请自行认证设备。

此时, 基础配置完成

Linux 标准方法

通过 SSH 连接到服务器

cd到解压目录

输入 , 运行 ./go-cqhttp

[WARNING]: 尝试加载配置文件 config.yml 失败: 文件不存在 [INFO]: 默认配置文件已生成,请编辑 config.yml 后重启程序.

配置config.yml

yaml

+# go-cqhttp 默认配置文件
+
+account: # 账号相关
+  uin:  # QQ账号
+  password: '' # 密码为空时使用扫码登录
+  encrypt: false  # 是否开启密码加密
+  status: 0      # 在线状态 请参考 https://docs.go-cqhttp.org/guide/config.html#在线状态
+  relogin: # 重连设置
+    delay: 3   # 首次重连延迟, 单位秒
+    interval: 3   # 重连间隔
+    max-times: 0  # 最大重连次数, 0为无限制
+
+  # 是否使用服务器下发的新地址进行重连
+  # 注意, 此设置可能导致在海外服务器上连接情况更差
+  use-sso-address: true
+
+heartbeat:
+  # 心跳频率, 单位秒
+  # -1 为关闭心跳
+  interval: 5
+
+message:
+  # 上报数据类型
+  # 可选: string,array
+  post-format: string
+  # 是否忽略无效的CQ码, 如果为假将原样发送
+  ignore-invalid-cqcode: false
+  # 是否强制分片发送消息
+  # 分片发送将会带来更快的速度
+  # 但是兼容性会有些问题
+  force-fragment: false
+  # 是否将url分片发送
+  fix-url: false
+  # 下载图片等请求网络代理
+  proxy-rewrite: ''
+  # 是否上报自身消息
+  report-self-message: false
+  # 移除服务端的Reply附带的At
+  remove-reply-at: false
+  # 为Reply附加更多信息
+  extra-reply-data: false
+
+output:
+  # 日志等级 trace,debug,info,warn,error
+  log-level: warn
+  # 是否启用 DEBUG
+  debug: false # 开启调试模式
+
+# 默认中间件锚点
+default-middlewares: &default
+  # 访问密钥, 强烈推荐在公网的服务器设置
+  access-token: ''
+  # 事件过滤器文件目录
+  filter: ''
+  # API限速设置
+  # 该设置为全局生效
+  # 原 cqhttp 虽然启用了 rate_limit 后缀, 但是基本没插件适配
+  # 目前该限速设置为令牌桶算法, 请参考:
+  # https://baike.baidu.com/item/%E4%BB%A4%E7%89%8C%E6%A1%B6%E7%AE%97%E6%B3%95/6597000?fr=aladdin
+  rate-limit:
+    enabled: true # 是否启用限速
+    frequency: 1  # 令牌回复频率, 单位秒
+    bucket: 1     # 令牌桶大小
+
+database: # 数据库相关设置
+  leveldb:
+    # 是否启用内置leveldb数据库
+    # 启用将会增加10-20MB的内存占用和一定的磁盘空间
+    # 关闭将无法使用 撤回 回复 get_msg 等上下文相关功能
+    enable: true
+
+# 连接服务列表
+servers:
+  # 添加方式,同一连接方式可添加多个,具体配置说明请查看文档
+  #- http: # http 通信
+  #- ws:   # 正向 Websocket
+  #- ws-reverse: # 反向 Websocket
+  #- pprof: #性能分析服务器
+  # HTTP 通信设置
+  - http:
+      # 服务端监听地址
+      host: 127.0.0.1
+      # 服务端监听端口
+      port: 5700
+      # 反向HTTP超时时间, 单位秒
+      # 最小值为5,小于5将会忽略本项设置
+      timeout: 5
+      middlewares:
+        <<: *default # 引用默认中间件
+      # 反向HTTP POST地址列表
+      post:
+      #- url: '' # 地址
+      #  secret: ''           # 密钥
+      #- url: 127.0.0.1:5701 # 地址
+      #  secret: ''          # 密钥

再次运行./go-cqhttp

[INFO]: 登录成功 欢迎使用: balabala

如出现需要认证的信息, 请自行认证设备。

此时, 基础配置完成

注意:将你配置的端口号在防火墙里面放行或者使用反向代理将你设置的端口绑定到域名

注意:公网使用一定要配置token

3. twikoo配置

在twikoo中QQ私有化API配置项填写如下内容

QQ号 http://你的IP地址:端口号(或者域名)/send_private_msg?user_id=QQ号?token=你配置的token

QQ群 http://你的IP地址:端口号(或者域名)/send_group_msg?token=你配置的token?group_id=群号

配置完成

`,33),h=[p];function k(t,e,r,d,E,g){return a(),i("div",null,h)}const A=s(l,[["render",k]]);export{c as __pageData,A as default}; diff --git a/assets/QQ_API.md.9FF6FGGE.lean.js b/assets/QQ_API.md.9FF6FGGE.lean.js new file mode 100644 index 000000000..69bf009d2 --- /dev/null +++ b/assets/QQ_API.md.9FF6FGGE.lean.js @@ -0,0 +1 @@ +import{_ as s,c as i,o as a,a5 as n}from"./chunks/framework.CVd-vdtw.js";const c=JSON.parse('{"title":"QQ私有化部署文档","description":"","frontmatter":{},"headers":[],"relativePath":"QQ_API.md","filePath":"QQ_API.md","lastUpdated":null}'),l={name:"QQ_API.md"},p=n("",33),h=[p];function k(t,e,r,d,E,g){return a(),i("div",null,h)}const A=s(l,[["render",k]]);export{c as __pageData,A as default}; diff --git a/assets/api.md.C_fIw0W7.js b/assets/api.md.C_fIw0W7.js new file mode 100644 index 000000000..1b40dc29d --- /dev/null +++ b/assets/api.md.C_fIw0W7.js @@ -0,0 +1,60 @@ +import{_ as s,c as i,o as a,a5 as n}from"./chunks/framework.CVd-vdtw.js";const g=JSON.parse('{"title":"API 文档","description":"","frontmatter":{},"headers":[],"relativePath":"api.md","filePath":"api.md","lastUpdated":null}'),l={name:"api.md"},h=n(`

API 文档

通过 Twikoo API,主题开发者可以实现一些特殊的功能,例如:在文章列表显示文章评论数,在首页显示最新评论,等。

调用 Twikoo API 前,不需要 执行 twikoo.init()

Get comments count

批量获取文章评论数。

Version

>= 0.2.7

Example

js
twikoo.getCommentsCount({
+  envId: '您的环境id', // 环境 ID
+  // region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai,如果您的环境地域不是上海,需传此参数
+  urls: [ // 不包含协议、域名、参数的文章路径列表,必传参数
+    '/2020/10/post-1.html',
+    '/2020/11/post-2.html',
+    '/2020/12/post-3.html'
+  ],
+  includeReply: false // 评论数是否包括回复,默认:false
+}).then(function (res) {
+  console.log(res);
+  // 返回示例: [
+  //   { url: '/2020/10/post-1.html', count: 10 },
+  //   { url: '/2020/11/post-2.html', count: 0 },
+  //   { url: '/2020/12/post-3.html', count: 20 }
+  // ]
+}).catch(function (err) {
+  // 发生错误
+  console.error(err);
+});

Get recent comments

获取最新评论。

Version

>= 0.2.7

Example

js
twikoo.getRecentComments({
+  envId: '您的环境id', // 环境 ID
+  // region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai,如果您的环境地域不是上海,需传此参数
+  urls: [ // 要求云函数版本 >= 1.6.27。不包含协议、域名、参数的文章路径列表,不传默认获取所有最新评论
+    '/2020/10/post-1.html',
+    '/2020/11/post-2.html',
+    '/2020/12/post-3.html'
+  ],
+  pageSize: 10, // 获取多少条,默认:10,最大:100
+  includeReply: false // 是否包括最新回复,默认:false
+}).then(function (res) {
+  console.log(res);
+  // 返回 Array,包含最新评论的
+  //   * id:           评论 ID
+  //   * url:          评论地址
+  //   * nick:         昵称
+  //   * mailMd5:      邮箱的 MD5 值,可用于展示头像
+  //   * link:         网址
+  //   * comment:      HTML 格式的评论内容
+  //   * commentText:  纯文本格式的评论内容
+  //   * created:      评论时间,格式为毫秒级时间戳
+  //   * avatar:       头像地址(0.2.9 新增)
+  //   * relativeTime: 相对评论时间,如 “1 小时前”(0.2.9 新增)
+  // 返回示例: [ // 从新到旧顺序
+  //   { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 },
+  //   { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 },
+  //   { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 }
+  // ]
+}).catch(function (err) {
+  // 发生错误
+  console.error(err);
+});

On Twikoo loaded

Twikoo 成功挂载后的回调函数。
环境 ID 错误、网络异常、挂载失败等情况时不会触发。

Version

>= 0.5.2

Example

js
twikoo.init({
+  ......
+}).then(function () {
+  console.log('Twikoo 加载完成');
+});

On comment loaded

评论加载成功后的回调函数。
发表评论后自动刷新评论时、加载下一页评论时,也会触发。
评论加载失败时不会触发。

Version

>= 0.5.2

Example

js
twikoo.init({
+  ......,
+  onCommentLoaded: function () {
+    console.log('评论加载完成');
+  }
+});
`,27),e=[h];function t(p,k,r,E,d,o){return a(),i("div",null,e)}const y=s(l,[["render",t]]);export{g as __pageData,y as default}; diff --git a/assets/api.md.C_fIw0W7.lean.js b/assets/api.md.C_fIw0W7.lean.js new file mode 100644 index 000000000..4ea89e1ff --- /dev/null +++ b/assets/api.md.C_fIw0W7.lean.js @@ -0,0 +1 @@ +import{_ as s,c as i,o as a,a5 as n}from"./chunks/framework.CVd-vdtw.js";const g=JSON.parse('{"title":"API 文档","description":"","frontmatter":{},"headers":[],"relativePath":"api.md","filePath":"api.md","lastUpdated":null}'),l={name:"api.md"},h=n("",27),e=[h];function t(p,k,r,E,d,o){return a(),i("div",null,e)}const y=s(l,[["render",t]]);export{g as __pageData,y as default}; diff --git a/assets/app.CDe7poYC.js b/assets/app.CDe7poYC.js new file mode 100644 index 000000000..2836fdeae --- /dev/null +++ b/assets/app.CDe7poYC.js @@ -0,0 +1 @@ +import{U as o,a6 as p,a7 as u,a8 as l,a9 as c,aa as f,ab as d,ac as m,ad as h,ae as g,af as A,d as P,u as v,y,x as w,ag as C,ah as R,ai as b,aj as E}from"./chunks/framework.CVd-vdtw.js";import{R as S}from"./chunks/theme.ChSyJpHJ.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(S),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return y(()=>{w(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&C(),R(),b(),s.setup&&s.setup(),()=>E(s.Layout)}});async function _(){globalThis.__VITEPRESS__=!0;const e=x(),a=j();a.provide(u,e);const t=l(e.route);return a.provide(c,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function j(){return h(T)}function x(){let e=o,a;return g(t=>{let n=A(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&_().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{_ as createApp}; diff --git a/assets/backend.md.DQdzpw3a.js b/assets/backend.md.DQdzpw3a.js new file mode 100644 index 000000000..da499c718 --- /dev/null +++ b/assets/backend.md.DQdzpw3a.js @@ -0,0 +1,17 @@ +import{_ as e,c as i,o as t,a5 as a}from"./chunks/framework.CVd-vdtw.js";const s="/assets/vercel-1.Czytea8u.png",l="/assets/netlify-1.CBH5jdAK.png",o="/assets/netlify-2.CoU6-6Qj.png",n="/assets/netlify-3.BRAuDkNv.png",r="/assets/netlify-4.BPwUhUpI.png",d="/assets/netlify-5.BSv5GDZV.png",c="/assets/hugging-1.qykHscdz.png",p="/assets/hugging-2.BZLt3AFG.png",h="/assets/hugging-3.BE7bV_x9.png",k="/assets/hugging-4.IZDT8YRp.png",g="/assets/hugging-5.Cw4bsoD7.png",u="/assets/hugging-6.CxsVPwFh.png",b="/assets/hugging-7.ey7RVDUh.png",m="/assets/hugging-8.bn1zLPri.png",f="/assets/hugging-9.BfxLMyMQ.png",x=JSON.parse('{"title":"云函数部署","description":"","frontmatter":{},"headers":[],"relativePath":"backend.md","filePath":"backend.md","lastUpdated":null}'),y={name:"backend.md"},E=a(`

云函数部署

部署方式
推荐度描述
腾讯云一键部署★☆☆☆☆虽然方便,但是仅支持按量计费环境——也就是说,一键部署的环境,当免费资源用尽后,将会产生费用。且按量计费环境无法切换为包年包月环境。免费额度数据库读操作数只有 500 次 / 天,无法支撑 Twikoo 的运行需求
腾讯云手动部署★★☆☆☆手动部署到腾讯云云开发环境,在中国大陆访问速度较快。需要付费购买环境才能部署。
腾讯云命令行部署★☆☆☆☆仅针对有 Node.js 经验的开发者。
Vercel 部署★★★☆☆适用于想要免费部署的用户,在中国大陆访问速度较慢甚至无法访问,绑定自己的域名可以提高访问速度。
Railway 部署★★☆☆☆有免费额度但不足以支持一个月连续运行,部署简单,适合全球访问。
Zeabur 部署★☆☆☆☆需要绑定支付宝或信用卡,部署简单,适合中国大陆访问,免费计划环境随时可能会被删除。
Netlify 部署★★★★☆有充足的免费额度,中国大陆访问速度不错。
Hugging Face 部署★★★★☆免费,中国大陆访问速度不错。允许通过 Cloudflare Tunnels 自定义域名。
AWS Lambda 部署★★★☆☆全球最大的云平台,适合已经使用 AWS 全家桶的用户。
Cloudflare workers 部署★★☆☆☆部署需使用命令行,冷启动时间较短,功能有部分限制。
私有部署★★☆☆☆适用于有服务器的用户,需要自行申请 HTTPS 证书。
私有部署 (Docker)★★★☆☆适用于有服务器的用户,需要自行申请 HTTPS 证书。

腾讯云一键部署

  1. 点击以下按钮将 Twikoo 一键部署到云开发
    部署到云开发
  2. 进入环境-登录授权,启用“匿名登录”
  3. 进入环境-安全配置,将网站域名添加到“WEB安全域名”

腾讯云手动部署

如果您打算部署到一个现有的云开发环境,请直接从第 3 步开始。

  1. 进入云开发CloudBase活动页面,滚动到“新用户专享”部分,选择适合的套餐,点击“立即购买”,按提示创建好环境。

提示

  1. 进入云开发控制台
  2. 进入环境-登录授权,启用“匿名登录”
  3. 进入环境-安全配置,将网站域名添加到“WEB安全域名”
  4. 进入环境-云函数,点击“新建云函数”
  5. 函数名称请填写:twikoo,创建方式请选择:空白函数,运行环境请选择:Nodejs 16.13,函数内存请选择:128MB,点击“下一步”
  6. 清空输入框中的示例代码,复制以下代码、粘贴到“函数代码”输入框中,点击“确定”
js
exports.main = require('twikoo-func').main
  1. 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 package.json,回车
  2. 复制以下代码、粘贴到代码框中,点击“保存并安装依赖”
json
{ "dependencies": { "twikoo-func": "1.6.38" } }

腾讯云命令行部署

注意

如果您打算部署到一个现有的云开发环境,请直接从第 3 步开始。

  1. 进入云开发CloudBase活动页面,滚动到“新用户专享”部分,选择适合的套餐(一般 0 元套餐即可),点击“立即购买”,按提示创建好环境。
  2. 进入云开发控制台
  3. 进入环境-登录授权,启用“匿名登录”
  4. 进入环境-安全配置,将网站域名添加到“WEB安全域名”
  5. 克隆本仓库
sh
git clone https://github.com/twikoojs/twikoo.git # 或 git clone https://e.coding.net/imaegoo/twikoo/twikoo.git
+cd twikoo

如果您没有安装 Git,也可以从 Release 页面下载最新的 Source code
如果您所在的地区访问 Github 速度慢,也可以尝试另一个仓库地址:https://imaegoo.coding.net/public/twikoo/twikoo/git

  1. 安装依赖项
sh
npm install -g yarn # 已安装 yarn 可以跳过此步
+yarn install
  1. 授权云开发环境(此命令会弹出浏览器要求授权,需在有图形界面的系统下进行)
sh
yarn run login
  1. 自动部署
sh
yarn deploy -e 您的环境id

Vercel 部署

注意

Vercel 部署的环境需配合 1.4.0 以上版本的 twikoo.js 使用

默认域名 *.vercel.app 在中国大陆访问速度较慢甚至无法访问,绑定自己的域名可以提高访问速度

查看视频教程

  1. 申请 MongoDB Atlas 账号,获取 MongoDB 连接字符串
  2. 申请 Vercel 账号
  3. 点击以下按钮将 Twikoo 一键部署到 Vercel

Deploy

  1. 进入 Settings - Environment Variables,添加环境变量 MONGODB_URI,值为前面记录的数据库连接字符串
  2. 进入 Settings - Deployment Protection,设置 Vercel Authentication 为 Disabled,并 Save

  1. 进入 Deployments , 然后在任意一项后面点击更多(三个点) , 然后点击 Redeploy , 最后点击下面的 Redeploy
  2. 进入 Overview,点击 Domains 下方的链接,如果环境配置正确,可以看到 “Twikoo 云函数运行正常” 的提示
  3. Vercel Domains(包含 https:// 前缀,例如 https://xxx.vercel.app)即为您的环境 id

Railway 部署

注意

Railway 部署的环境需配合 1.4.0 以上版本的 twikoo.js 使用

请一定要创建 MongoDB,不创建 MongoDB 也能正常使用,但重新部署后数据会丢失!

  1. Railway 申请并登录账号,点击 New Project - Provision MongoDB,名称随意
  2. 打开 twikoojs/twikoo-zeabur 点击 fork 将仓库 fork 到自己的账号下
  3. 回到 Railway 点击 New - GitHub Repo - Configure GitHub App - 授权 GitHub - 选择刚才 fork 的仓库,等待部署完成
  4. 点开环境卡片 - Variables - New Variable,左边输入 PORT 右边输入 8080 然后点 Add
  5. 同样地,添加 MongoDB 相关环境变量 - New Variable - Add Reference - MONGO* - Add,重复步骤以添加 MONGOHOSTMONGOPASSWORDMONGOPORTMONGOUSERMONGO_URL 环境变量。
  6. 点开环境卡片 - Settings - Environment - Domains,绑定一个域名(例如 mytwikoo.up.railway.app
  7. 到博客配置文件中配置 envId 为 https:// 加域名(例如 https://mytwikoo.up.railway.app

Zeabur 部署

注意

Zeabur 部署的环境需配合 1.4.0 以上版本的 twikoo.js 使用

请一定要创建 MongoDB,不创建 MongoDB 也能正常使用,但重新部署后数据会丢失!

  1. Zeabur 申请并登录账号,点击部署新服务 - 部署其他服务 - 部署 MongoDB,名称随意
  2. 打开 twikoojs/twikoo-zeabur 点击 fork 将仓库 fork 到自己的账号下
  3. 回到 Zeabur 点击部署新服务 - 部署你的源代码 - 授权 GitHub - 选择刚才 fork 的仓库,名称随意

无需配置数据库连接字符串! Zeabur 已自动配置

  1. 部署好后点开环境卡片 - 设置 - 域名,绑定一个域名(例如 mytwikoo.zeabur.app
  2. 到博客配置文件中配置 envId 为 https:// 加域名(例如 https://mytwikoo.zeabur.app

Netlify 部署

注意

Netlify 部署的环境需配合 1.4.0 以上版本的 twikoo.js 使用

Netlify 免费等级(Functions Level 0)支持每月 125,000 请求次数和 100 小时函数计算时长

  1. 申请 MongoDB Atlas 账号,获取 MongoDB 连接字符串
  2. 申请并登录 Netlify 账号,创建一个 Team
  3. 打开 twikoojs/twikoo-netlify 点击 fork 将仓库 fork 到自己的账号下
  4. 回到 Netlify,点击 Add new site - Import an existing project

  1. 点击 Deploy with GitHub,如果未授权 GitHub 账号,先授权,然后选择前面 fork 的 twikoo-netlify 项目

  1. 点击 Add environment variables - New variable,Key 输入 MONGODB_URI,Value 输入前面记录的数据库连接字符串,点击 Deploy twikoo-netlify

  1. 部署完成后,点击 Domain settings - 右侧 Options - Edit site name,可以设置属于自己的三级域名(https://xxx.netlify.app

  1. 进入 Site overview,点击上方的链接,如果环境配置正确,可以看到 “Twikoo 云函数运行正常” 的提示

  1. 云函数地址(包含 https:// 前缀和 /.netlify/functions/twikoo 后缀,例如 https://xxx.netlify.app/.netlify/functions/twikoo)即为您的环境 id

Hugging Face 部署

  1. 申请 MongoDB Atlas 账号,获取 MongoDB 连接字符串
  2. 申请 Hugging Face 账号
  3. 登录,点击 Spaces - Create new Space

  1. 输入 Space name,Select the Space SDK 选择 Docker,Choose a Docker template 选择 Blank,Space hardware 选择 FREE,选择 Public,点击 Create Space

  1. 进入刚刚创建的 Space,点击页面上方的 Settings,滚动到 Variables and secrets 部分,点击 New secret,Name 输入 MONGODB_URI,Value 输入前面记录的数据库连接字符串,点击 Save

  1. 点击页面上方的 Files - Add file - Create a new file

  1. 在 Name your file 中输入 Dockerfile,在 Edit 区域输入以下内容
Dockerfile
FROM imaegoo/twikoo
+ENV TWIKOO_PORT 7860
+EXPOSE 7860

  1. 点击 Commit new file to main
  2. 点击右上角 Settings 右方的菜单(三个点)图标 - Embed this Space,Direct URL 下的内容(例如 https://xxx-xxx.hf.space)即为您的环境 id

如果你需要自定义域名

自定义域名教程由 Hoshino-Yumetsuki 提供

ps:除了 CF_ZERO_TRUST_TOKEN 这个环境变量以外,其他环境变量的配置方式与上一步相同

  1. 申请 Cloudflare Zero Trust,关于申请方式请自行查找

  1. 添加一条隧道,连接方式选择 Cloudflared,名称任意

  1. 添加一个 Public Hostname,回源选择 HTTP,端口选择 8080
  2. Clone Twikoo 仓库,找到 src\\server\\hf-space
  3. 去 Hugging Face 创建一个 Space,然后 Clone 下来,将 hf-space 文件夹内的所有内容复制进去
  4. 在 Hugging Face Space 的设置中添加一个环境变量,变量名 CF_ZERO_TRUST_TOKEN,值是 Tunnels 给的令牌(删掉 cloudflared.exe service install,只保留令牌部分)

  1. Push 到 Hugging Face Space 仓库

AWS Lambda 部署

  1. 注册 AWS 账号并配置 Terraform CLI。
  2. 如需使用托管的 MongoDB 数据库,可申请 MongoDB Atlas 账号。
  3. 参考 src/server/aws-lambda/terraform 目录中 Terraform 代码创建 AWS 资源。
  4. 部署完成后,Terraform 会将 lambda_function_url 打印在屏幕上,您也可以使用 terraform output 获取这一 URL,如:
$ terraform output
+lambda_function_url = "https://axtoiiithbcexamplegq7ozalu0cnkii.lambda-url.us-west-2.on.aws/"

该 URL 即为您的环境 ID,请记下这一 URL 用于前端配置。

Cloudflare workers 部署

请参考 github.com/twikoojs/twikoo-cloudflare

私有部署

注意

私有部署的环境需配合 1.6.0 或以上版本的 twikoo.js 使用

私有部署对服务器系统没有要求,Windows、Ubuntu、CentOS、macOS 等常用系统均支持。

私有部署涉及终端操作、申请证书、配置反向代理或负载均衡等高级操作,如果对这些不太了解,建议优先选择其他方式部署。

  1. 服务端下载安装 Node.js
  2. 安装 Twikoo server: npm i -g tkserver
  3. 根据需要配置环境变量,所有的环境变量都是可选的
名称描述默认值
MONGODB_URIMongoDB 数据库连接字符串,不传则使用 lokijsnull
MONGO_URLMongoDB 数据库连接字符串,不传则使用 lokijsnull
TWIKOO_DATAlokijs 数据库存储路径./data
TWIKOO_PORT端口号8080
TWIKOO_THROTTLEIP 请求限流,当同一 IP 短时间内请求次数超过阈值将对该 IP 返回错误250
TWIKOO_LOCALHOST_ONLYtrue时只监听本地请求,使得 nginx 等服务器反代之后不暴露原始端口null
TWIKOO_LOG_LEVEL日志级别,支持 verbose / info / warn / errorinfo
TWIKOO_IP_HEADERS在一些特殊情况下使用,如使用了 CloudFlare CDN 它会将请求 IP 写到请求头的 cf-connecting-ip 字段上,为了能够正确的获取请求 IP 你可以写成 ["headers.cf-connecting-ip"][]
  1. 启动 Twikoo server: tkserver
  2. 访问 http://服务端IP:8080 测试服务是否启动成功
  3. 配置前置代理实现 HTTPS 访问(可以用 Nginx、负载均衡或 Cloudflare 等)
  4. 到博客配置文件中配置 envId 为 https:// 加域名(例如 https://twikoo.yourdomain.com

提示

  1. Linux 服务器可以用 nohup tkserver >> tkserver.log 2>&1 & 命令后台启动
  2. 数据默认在 data 目录,请注意定期备份数据
  3. 默认端口为8080,自定义端口使用可使用 TWIKOO_PORT=1234 tkserver 启动。
  4. 配置systemctl服务配合TWIKOO_PORT=1234 tkserver设置开机启动

私有部署 (Docker)

注意

私有部署的环境需配合 1.6.0 或以上版本的 twikoo.js 使用

私有部署涉及终端操作、申请证书、配置反向代理或负载均衡等高级操作,如果对这些不太了解,建议优先选择其他方式部署。

Docker

sh
docker run --name twikoo -e TWIKOO_THROTTLE=1000 -p 8080:8080 -v \${PWD}/data:/app/data -d imaegoo/twikoo

Docker Compose

yml
version: '3'
+services:
+  twikoo:
+    image: imaegoo/twikoo
+    container_name: twikoo
+    restart: unless-stopped
+    ports:
+      - 8080:8080
+    environment:
+      TWIKOO_THROTTLE: 1000
+    volumes:
+      - ./data:/app/data
`,94),F=[E];function v(w,_,C,B,D,O){return t(),i("div",null,F)}const q=e(y,[["render",v]]);export{x as __pageData,q as default}; diff --git a/assets/backend.md.DQdzpw3a.lean.js b/assets/backend.md.DQdzpw3a.lean.js new file mode 100644 index 000000000..2aa0e562c --- /dev/null +++ b/assets/backend.md.DQdzpw3a.lean.js @@ -0,0 +1 @@ +import{_ as e,c as i,o as t,a5 as a}from"./chunks/framework.CVd-vdtw.js";const s="/assets/vercel-1.Czytea8u.png",l="/assets/netlify-1.CBH5jdAK.png",o="/assets/netlify-2.CoU6-6Qj.png",n="/assets/netlify-3.BRAuDkNv.png",r="/assets/netlify-4.BPwUhUpI.png",d="/assets/netlify-5.BSv5GDZV.png",c="/assets/hugging-1.qykHscdz.png",p="/assets/hugging-2.BZLt3AFG.png",h="/assets/hugging-3.BE7bV_x9.png",k="/assets/hugging-4.IZDT8YRp.png",g="/assets/hugging-5.Cw4bsoD7.png",u="/assets/hugging-6.CxsVPwFh.png",b="/assets/hugging-7.ey7RVDUh.png",m="/assets/hugging-8.bn1zLPri.png",f="/assets/hugging-9.BfxLMyMQ.png",x=JSON.parse('{"title":"云函数部署","description":"","frontmatter":{},"headers":[],"relativePath":"backend.md","filePath":"backend.md","lastUpdated":null}'),y={name:"backend.md"},E=a("",94),F=[E];function v(w,_,C,B,D,O){return t(),i("div",null,F)}const q=e(y,[["render",v]]);export{x as __pageData,q as default}; diff --git a/assets/chunks/VPAlgoliaSearchBox.DadAos7f.js b/assets/chunks/VPAlgoliaSearchBox.DadAos7f.js new file mode 100644 index 000000000..8c6c089f2 --- /dev/null +++ b/assets/chunks/VPAlgoliaSearchBox.DadAos7f.js @@ -0,0 +1,14 @@ +import{d as Zr,a4 as Qr,L as Gr,y as Yr,v as Xr,R as eo,o as to,c as no}from"./framework.CVd-vdtw.js";import{u as ro}from"./theme.ChSyJpHJ.js";/*! @docsearch/js 3.6.1 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */function on(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function N(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n3)for(n=[n],i=3;i0?Ue(m.type,m.props,m.key,null,m.__v):m)!=null){if(m.__=n,m.__b=n.__b+1,(p=g[a])===null||p&&m.key==p.key&&m.type===p.type)g[a]=void 0;else for(v=0;v<_;v++){if((p=g[v])&&m.key==p.key&&m.type===p.type){g[v]=void 0;break}p=null}Qt(t,m,p=p||Et,o,i,u,s,l,f),h=m.__e,(v=m.ref)&&p.ref!=v&&(y||(y=[]),p.ref&&y.push(p.ref,null,m),y.push(v,m.__c||h,m)),h!=null?(d==null&&(d=h),typeof m.type=="function"&&m.__k!=null&&m.__k===p.__k?m.__d=l=vr(m,l,t):l=dr(t,m,p,g,h,l),f||n.type!=="option"?typeof n.type=="function"&&(n.__d=l):t.value=""):l&&p.__e==l&&l.parentNode!=t&&(l=nt(p))}for(n.__e=d,a=_;a--;)g[a]!=null&&(typeof n.type=="function"&&g[a].__e!=null&&g[a].__e==n.__d&&(n.__d=nt(r,a+1)),gr(g[a],g[a]));if(y)for(a=0;a3)for(n=[n],i=3;i=n.__.length&&n.__.push({}),n.__[t]}function Gt(t){return Ce=1,br(Sr,t)}function br(t,e,n){var r=it(xe++,2);return r.t=t,r.__c||(r.__=[n?n(e):Sr(void 0,e),function(o){var i=r.t(r.__[0],o);r.__[0]!==i&&(r.__=[i,r.__[1]],r.__c.setState({}))}],r.__c=K),r.__}function Yt(t,e){var n=it(xe++,3);!j.__s&&Xt(n.__H,e)&&(n.__=t,n.__H=e,K.__H.__h.push(n))}function hn(t,e){var n=it(xe++,4);!j.__s&&Xt(n.__H,e)&&(n.__=t,n.__H=e,K.__h.push(n))}function Ct(t,e){var n=it(xe++,7);return Xt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function lo(){Ft.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(bt),t.__H.__h.forEach(Bt),t.__H.__h=[]}catch(e){t.__H.__h=[],j.__e(e,t.__v)}}),Ft=[]}j.__b=function(t){K=null,fn&&fn(t)},j.__r=function(t){mn&&mn(t),xe=0;var e=(K=t.__c).__H;e&&(e.__h.forEach(bt),e.__h.forEach(Bt),e.__h=[])},j.diffed=function(t){pn&&pn(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(Ft.push(e)!==1&&sn===j.requestAnimationFrame||((sn=j.requestAnimationFrame)||function(n){var r,o=function(){clearTimeout(i),yn&&cancelAnimationFrame(r),setTimeout(n)},i=setTimeout(o,100);yn&&(r=requestAnimationFrame(o))})(lo)),K=void 0},j.__c=function(t,e){e.some(function(n){try{n.__h.forEach(bt),n.__h=n.__h.filter(function(r){return!r.__||Bt(r)})}catch(r){e.some(function(o){o.__h&&(o.__h=[])}),e=[],j.__e(r,n.__v)}}),vn&&vn(t,e)},j.unmount=function(t){dn&&dn(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(bt)}catch(n){j.__e(n,e.__v)}};var yn=typeof requestAnimationFrame=="function";function bt(t){var e=K;typeof t.__c=="function"&&t.__c(),K=e}function Bt(t){var e=K;t.__c=t.__(),K=e}function Xt(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function Sr(t,e){return typeof e=="function"?e(t):e}function Or(t,e){for(var n in e)t[n]=e[n];return t}function Vt(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function Kt(t){this.props=t}(Kt.prototype=new te).isPureReactComponent=!0,Kt.prototype.shouldComponentUpdate=function(t,e){return Vt(this.props,t)||Vt(this.state,e)};var gn=j.__b;j.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),gn&&gn(t)};var so=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,_n=function(t,e){return t==null?null:ie(ie(t).map(e))},fo={map:_n,forEach:_n,count:function(t){return t?ie(t).length:0},only:function(t){var e=ie(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:ie},mo=j.__e;function St(){this.__u=0,this.t=null,this.__b=null}function wr(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function qe(){this.u=null,this.o=null}j.__e=function(t,e,n){if(t.then){for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e)}mo(t,e,n)},(St.prototype=new te).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=wr(r.__v),i=!1,u=function(){i||(i=!0,n.componentWillUnmount=n.__c,o?o(s):s())};n.__c=n.componentWillUnmount,n.componentWillUnmount=function(){u(),n.__c&&n.__c()};var s=function(){if(!--r.__u){if(r.state.__e){var f=r.state.__e;r.__v.__k[0]=function v(p,m,h){return p&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(d){return v(d,m,h)}),p.__c&&p.__c.__P===m&&(p.__e&&h.insertBefore(p.__e,p.__d),p.__c.__e=!0,p.__c.__P=h)),p}(f,f.__c.__P,f.__c.__O)}var a;for(r.setState({__e:r.__b=null});a=r.t.pop();)a.forceUpdate()}},l=e.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(u,u)},St.prototype.componentWillUnmount=function(){this.t=[]},St.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function i(u,s,l){return u&&(u.__c&&u.__c.__H&&(u.__c.__H.__.forEach(function(f){typeof f.__c=="function"&&f.__c()}),u.__c.__H=null),(u=Or({},u)).__c!=null&&(u.__c.__P===l&&(u.__c.__P=s),u.__c=null),u.__k=u.__k&&u.__k.map(function(f){return i(f,s,l)})),u}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__e&&ee(pe,null,t.fallback);return o&&(o.__h=null),[ee(pe,null,e.__e?null:t.children),o]};var bn=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(r)}}),rt(ee(po,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Er(t,e){return ee(vo,{__v:t,i:e})}(qe.prototype=new te).__e=function(t){var e=this,n=wr(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),bn(e,t,r)):o()};n?n(i):i()}},qe.prototype.render=function(t){this.u=null,this.o=new Map;var e=ie(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},qe.prototype.componentDidUpdate=qe.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){bn(t,n,e)})};var jr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ho=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,yo=function(t){return(typeof Symbol<"u"&&D(Symbol())=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};function Pr(t,e,n){return e.__k==null&&(e.textContent=""),rt(t,e),typeof n=="function"&&n(),t?t.__c:null}te.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(te.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Sn=j.event;function go(){}function _o(){return this.cancelBubble}function bo(){return this.defaultPrevented}j.event=function(t){return Sn&&(t=Sn(t)),t.persist=go,t.isPropagationStopped=_o,t.isDefaultPrevented=bo,t.nativeEvent=t};var Ir,On={configurable:!0,get:function(){return this.class}},wn=j.vnode;j.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){for(var o in r={},n){var i=n[o];o==="value"&&"defaultValue"in n&&i==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+e)&&!yo(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():ho.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():i===null&&(i=void 0),r[o]=i)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=ie(n.children).forEach(function(u){u.props.selected=r.value.indexOf(u.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=ie(n.children).forEach(function(u){u.props.selected=r.multiple?r.defaultValue.indexOf(u.props.value)!=-1:r.defaultValue==u.props.value})),t.props=r}e&&n.class!=n.className&&(On.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",On)),t.$$typeof=jr,wn&&wn(t)};var En=j.__r;j.__r=function(t){En&&En(t),Ir=t.__c};var So={ReactCurrentDispatcher:{current:{readContext:function(t){return Ir.__n[t.__c].props.value}}}};function jn(t){return!!t&&t.$$typeof===jr}(typeof performance>"u"?"undefined":D(performance))=="object"&&typeof performance.now=="function"&&performance.now.bind(performance);var c={useState:Gt,useReducer:br,useEffect:Yt,useLayoutEffect:hn,useRef:function(t){return Ce=5,Ct(function(){return{current:t}},[])},useImperativeHandle:function(t,e,n){Ce=6,hn(function(){typeof t=="function"?t(e()):t&&(t.current=e())},n==null?n:n.concat(t))},useMemo:Ct,useCallback:function(t,e){return Ce=8,Ct(function(){return t},e)},useContext:function(t){var e=K.context[t.__c],n=it(xe++,9);return n.__c=t,e?(n.__==null&&(n.__=!0,e.sub(K)),e.props.value):t.__},useDebugValue:function(t,e){j.useDebugValue&&j.useDebugValue(e?e(t):t)},version:"16.8.0",Children:fo,render:Pr,hydrate:function(t,e,n){return _r(t,e),typeof n=="function"&&n(),t?t.__c:null},unmountComponentAtNode:function(t){return!!t.__k&&(rt(null,t),!0)},createPortal:Er,createElement:ee,createContext:function(t,e){var n={__c:e="__cC"+sr++,__:t,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(u){this.props.value!==u.value&&o.some(Ut)},this.sub=function(u){o.push(u);var s=u.componentWillUnmount;u.componentWillUnmount=function(){o.splice(o.indexOf(u),1),s&&s.call(u)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(t){return ee.bind(null,t)},cloneElement:function(t){return jn(t)?uo.apply(null,arguments):t},createRef:function(){return{current:null}},Fragment:pe,isValidElement:jn,findDOMNode:function(t){return t&&(t.base||t.nodeType===1&&t)||null},Component:te,PureComponent:Kt,memo:function(t,e){function n(o){var i=this.props.ref,u=i==o.ref;return!u&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!u:Vt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,ee(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(t){function e(n,r){var o=Or({},n);return delete o.ref,t(o,(r=n.ref||r)&&(D(r)!="object"||"current"in r)?r:null)}return e.$$typeof=so,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e},unstable_batchedUpdates:function(t,e){return t(e)},StrictMode:pe,Suspense:St,SuspenseList:qe,lazy:function(t){var e,n,r;function o(i){if(e||(e=t()).then(function(u){n=u.default||u},function(u){r=u}),r)throw r;if(!n)throw e;return ee(n,i)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:So},Oo=["facetName","facetQuery"];function Pn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Fe(t){for(var e=1;e=0||(a[l]=u[l]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function be(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,u,s=[],l=!0,f=!1;try{for(o=o.call(n);!(l=(i=o.next()).done)&&(s.push(i.value),!r||s.length!==r);l=!0);}catch(a){f=!0,u=a}finally{try{l||o.return==null||o.return()}finally{if(f)throw u}}return s}}(t,e)||Dr(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Dr(t,e){if(t){if(typeof t=="string")return Wt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wt(t,e):void 0}}function Wt(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(a[l]=u[l]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function An(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ae(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:20,n=[],r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=3||p===2&&m>=4||p===1&&m>=10);function d(y,g,_){if(h&&_!==void 0){var b=_[0].__autocomplete_algoliaCredentials,S={"X-Algolia-Application-Id":b.appId,"X-Algolia-API-Key":b.apiKey};a.apply(void 0,[y].concat(st(g),[{headers:S}]))}else a.apply(void 0,[y].concat(st(g)))}return{init:function(y,g){a("init",{appId:y,apiKey:g})},setUserToken:function(y){a("setUserToken",y)},clickedObjectIDsAfterSearch:function(){for(var y=arguments.length,g=new Array(y),_=0;_0&&d("clickedObjectIDsAfterSearch",ft(g),g[0].items)},clickedObjectIDs:function(){for(var y=arguments.length,g=new Array(y),_=0;_0&&d("clickedObjectIDs",ft(g),g[0].items)},clickedFilters:function(){for(var y=arguments.length,g=new Array(y),_=0;_0&&a.apply(void 0,["clickedFilters"].concat(g))},convertedObjectIDsAfterSearch:function(){for(var y=arguments.length,g=new Array(y),_=0;_0&&d("convertedObjectIDsAfterSearch",ft(g),g[0].items)},convertedObjectIDs:function(){for(var y=arguments.length,g=new Array(y),_=0;_0&&d("convertedObjectIDs",ft(g),g[0].items)},convertedFilters:function(){for(var y=arguments.length,g=new Array(y),_=0;_0&&a.apply(void 0,["convertedFilters"].concat(g))},viewedObjectIDs:function(){for(var y=arguments.length,g=new Array(y),_=0;_0&&g.reduce(function(b,S){var O=S.items,E=xr(S,Co);return[].concat(st(b),st(xo(Ae(Ae({},E),{},{objectIDs:(O==null?void 0:O.map(function(k){return k.objectID}))||E.objectIDs})).map(function(k){return{items:O,payload:k}})))},[]).forEach(function(b){var S=b.items;return d("viewedObjectIDs",[b.payload],S)})},viewedFilters:function(){for(var y=arguments.length,g=new Array(y),_=0;_0&&a.apply(void 0,["viewedFilters"].concat(g))}}}(u),l={current:[]},f=Cr(function(a){var v=a.state;if(v.isOpen){var p=v.collections.reduce(function(m,h){return[].concat(Oe(m),Oe(h.items))},[]).filter(xt);Ar(l.current.map(function(m){return m.objectID}),p.map(function(m){return m.objectID}))||(l.current=p,p.length>0&&Lo({onItemsChange:r,items:p,insights:s,state:v}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(a){var v=a.setContext,p=a.onSelect,m=a.onActive;u("addAlgoliaAgent","insights-plugin"),v({algoliaInsightsPlugin:{__algoliaSearchParameters:{clickAnalytics:!0},insights:s}}),p(function(h){var d=h.item,y=h.state,g=h.event;xt(d)&&o({state:y,event:g,insights:s,item:d,insightsEvents:[me({eventName:"Item Selected"},kn({item:d,items:l.current}))]})}),m(function(h){var d=h.item,y=h.state,g=h.event;xt(d)&&i({state:y,event:g,insights:s,item:d,insightsEvents:[me({eventName:"Item Active"},kn({item:d,items:l.current}))]})})},onStateChange:function(a){var v=a.state;f({state:v})},__autocomplete_pluginOptions:t}}function wt(t,e){var n=e;return{then:function(r,o){return wt(t.then(mt(r,n,t),mt(o,n,t)),n)},catch:function(r){return wt(t.catch(mt(r,n,t)),n)},finally:function(r){return r&&n.onCancelList.push(r),wt(t.finally(mt(r&&function(){return n.onCancelList=[],r()},n,t)),n)},cancel:function(){n.isCanceled=!0;var r=n.onCancelList;n.onCancelList=[],r.forEach(function(o){o()})},isCanceled:function(){return n.isCanceled===!0}}}function Nn(t){return wt(t,{isCanceled:!1,onCancelList:[]})}function mt(t,e,n){return t?function(r){return e.isCanceled?r:t(r)}:n}function Tn(t,e,n,r){if(!n)return null;if(t<0&&(e===null||r!==null&&e===0))return n+t;var o=(e===null?-1:e)+t;return o<=-1||o>=n?r===null?null:0:o}function Rn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ln(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(M[w]=P[w]);return M}(_,b);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(_);for(O=0;O=0||Object.prototype.propertyIsEnumerable.call(_,S)&&(E[S]=_[S])}return E}(t,Wo);Le&&o.environment.clearTimeout(Le);var f=l.setCollections,a=l.setIsOpen,v=l.setQuery,p=l.setActiveItemId,m=l.setStatus;if(v(i),p(o.defaultActiveItemId),!i&&o.openOnFocus===!1){var h,d=s.getState().collections.map(function(_){return Re(Re({},_),{},{items:[]})});m("idle"),f(d),a((h=r.isOpen)!==null&&h!==void 0?h:o.shouldPanelOpen({state:s.getState()}));var y=Nn(Kn(d).then(function(){return Promise.resolve()}));return s.pendingRequests.add(y)}m("loading"),Le=o.environment.setTimeout(function(){m("stalled")},o.stallThreshold);var g=Nn(Kn(o.getSources(Re({query:i,refresh:u,state:s.getState()},l)).then(function(_){return Promise.all(_.map(function(b){return Promise.resolve(b.getItems(Re({query:i,refresh:u,state:s.getState()},l))).then(function(S){return function(O,E,k){if(I=O,!!(I!=null&&I.execute)){var P=O.requesterId==="algolia"?Object.assign.apply(Object,[{}].concat(Tr(Object.keys(k.context).map(function(w){var T;return(T=k.context[w])===null||T===void 0?void 0:T.__algoliaSearchParameters})))):{};return Ee(Ee({},O),{},{requests:O.queries.map(function(w){return{query:O.requesterId==="algolia"?Ee(Ee({},w),{},{params:Ee(Ee({},P),w.params)}):w,sourceId:E,transformResponse:O.transformResponse}})})}var I;return{items:O,sourceId:E}}(S,b.sourceId,s.getState())})})).then(Ko).then(function(b){return function(S,O,E){return O.map(function(k){var P,I=S.filter(function(C){return C.sourceId===k.sourceId}),w=I.map(function(C){return C.items}),T=I[0].transformResponse,M=T?T({results:P=w,hits:P.map(function(C){return C.hits}).filter(Boolean),facetHits:P.map(function(C){var z;return(z=C.facetHits)===null||z===void 0?void 0:z.map(function(ae){return{label:ae.value,count:ae.count,_highlightResult:{label:{value:ae.highlighted}}}})}).filter(Boolean)}):w;return k.onResolve({source:k,results:w,items:M,state:E.getState()}),M.every(Boolean),'The `getItems` function from source "'.concat(k.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),`. + +Did you forget to return items? + +See: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems`),{source:k,items:M}})}(b,_,s)}).then(function(b){return function(S){var O=S.props,E=S.state,k=S.collections.reduce(function(I,w){return vt(vt({},I),{},Nr({},w.source.sourceId,vt(vt({},w.source),{},{getItems:function(){return ot(w.items)}})))},{}),P=O.plugins.reduce(function(I,w){return w.reshape?w.reshape(I):I},{sourcesBySourceId:k,state:E}).sourcesBySourceId;return ot(O.reshape({sourcesBySourceId:P,sources:Object.values(P),state:E})).filter(Boolean).map(function(I){return{source:I,items:I.getItems()}})}({collections:b,props:o,state:s.getState()})})}))).then(function(_){var b;m("idle"),f(_);var S=o.shouldPanelOpen({state:s.getState()});a((b=r.isOpen)!==null&&b!==void 0?b:o.openOnFocus&&!i&&S||S);var O=De(s.getState());if(s.getState().activeItemId!==null&&O){var E=O.item,k=O.itemInputValue,P=O.itemUrl,I=O.source;I.onActive(Re({event:e,item:E,itemInputValue:k,itemUrl:P,refresh:u,source:I,state:s.getState()},l))}}).finally(function(){m("idle"),Le&&o.environment.clearTimeout(Le)});return s.pendingRequests.add(g)}function Ge(t){return Ge=typeof Symbol=="function"&&D(Symbol.iterator)=="symbol"?function(e){return D(e)}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":D(e)},Ge(t)}var Jo=["event","props","refresh","store"];function Wn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ye(t){for(var e=1;e=0||(a[l]=u[l]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Xe(t){return Xe=typeof Symbol=="function"&&D(Symbol.iterator)=="symbol"?function(e){return D(e)}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":D(e)},Xe(t)}function Jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ri(t){for(var e=1;e0},reshape:function(m){return m.sources}},l),{},{id:(a=l.id)!==null&&a!==void 0?a:"autocomplete-".concat(Io++),plugins:p,initialState:we({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},l.initialState),onStateChange:function(m){var h;(h=l.onStateChange)===null||h===void 0||h.call(l,m),p.forEach(function(d){var y;return(y=d.onStateChange)===null||y===void 0?void 0:y.call(d,m)})},onSubmit:function(m){var h;(h=l.onSubmit)===null||h===void 0||h.call(l,m),p.forEach(function(d){var y;return(y=d.onSubmit)===null||y===void 0?void 0:y.call(d,m)})},onReset:function(m){var h;(h=l.onReset)===null||h===void 0||h.call(l,m),p.forEach(function(d){var y;return(y=d.onReset)===null||y===void 0?void 0:y.call(d,m)})},getSources:function(m){return Promise.all([].concat(function(h){return function(d){if(Array.isArray(d))return Tt(d)}(h)||function(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}(h)||function(d,y){if(d){if(typeof d=="string")return Tt(d,y);var g=Object.prototype.toString.call(d).slice(8,-1);return g==="Object"&&d.constructor&&(g=d.constructor.name),g==="Map"||g==="Set"?Array.from(d):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?Tt(d,y):void 0}}(h)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(p.map(function(h){return h.getSources})),[l.getSources]).filter(Boolean).map(function(h){return function(d,y){var g=[];return Promise.resolve(d(y)).then(function(_){return Promise.all(_.filter(function(b){return!!b}).map(function(b){if(b.sourceId,g.includes(b.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(b.sourceId)," is not unique."));g.push(b.sourceId);var S={getItemInputValue:function(E){return E.state.query},getItemUrl:function(){},onSelect:function(E){(0,E.setIsOpen)(!1)},onActive:Ot,onResolve:Ot};Object.keys(S).forEach(function(E){S[E].__default=!0});var O=Ln(Ln({},S),b);return Promise.resolve(O)}))})}(h,m)})).then(function(h){return ot(h)}).then(function(h){return h.map(function(d){return we(we({},d),{},{onSelect:function(y){d.onSelect(y),f.forEach(function(g){var _;return(_=g.onSelect)===null||_===void 0?void 0:_.call(g,y)})},onActive:function(y){d.onActive(y),f.forEach(function(g){var _;return(_=g.onActive)===null||_===void 0?void 0:_.call(g,y)})},onResolve:function(y){d.onResolve(y),f.forEach(function(g){var _;return(_=g.onResolve)===null||_===void 0?void 0:_.call(g,y)})}})})})},navigator:we({navigate:function(m){var h=m.itemUrl;v.location.assign(h)},navigateNewTab:function(m){var h=m.itemUrl,d=v.open(h,"_blank","noopener");d==null||d.focus()},navigateNewWindow:function(m){var h=m.itemUrl;v.open(h,"_blank","noopener")}},l.navigator)})}(t,e),r=function(l,f,a){var v,p=f.initialState;return{getState:function(){return p},dispatch:function(m,h){var d=function(y){for(var g=1;g=0||(ct[G]=Se[G]);return ct}(q,ne);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(q);for(V=0;V=0||Object.prototype.propertyIsEnumerable.call(q,$)&&(ce[$]=q[$])}return ce}(I,Jo);if(w.key==="ArrowUp"||w.key==="ArrowDown"){var ae=function(){var q=T.environment.document.getElementById("".concat(T.id,"-item-").concat(C.getState().activeItemId));q&&(q.scrollIntoViewIfNeeded?q.scrollIntoViewIfNeeded(!1):q.scrollIntoView(!1))},at=function(){var q=De(C.getState());if(C.getState().activeItemId!==null&&q){var ne=q.item,$=q.itemInputValue,V=q.itemUrl,ce=q.source;ce.onActive(ye({event:w,item:ne,itemInputValue:$,itemUrl:V,refresh:M,source:ce,state:C.getState()},z))}};w.preventDefault(),C.getState().isOpen===!1&&(T.openOnFocus||C.getState().query)?je(ye({event:w,props:T,query:C.getState().query,refresh:M,store:C},z)).then(function(){C.dispatch(w.key,{nextActiveItemId:T.defaultActiveItemId}),at(),setTimeout(ae,0)}):(C.dispatch(w.key,{}),at(),ae())}else if(w.key==="Escape")w.preventDefault(),C.dispatch(w.key,null),C.pendingRequests.cancelAll();else if(w.key==="Tab")C.dispatch("blur",null),C.pendingRequests.cancelAll();else if(w.key==="Enter"){if(C.getState().activeItemId===null||C.getState().collections.every(function(q){return q.items.length===0}))return void(T.debug||C.pendingRequests.cancelAll());w.preventDefault();var de=De(C.getState()),H=de.item,he=de.itemInputValue,J=de.itemUrl,Z=de.source;if(w.metaKey||w.ctrlKey)J!==void 0&&(Z.onSelect(ye({event:w,item:H,itemInputValue:he,itemUrl:J,refresh:M,source:Z,state:C.getState()},z)),T.navigator.navigateNewTab({itemUrl:J,item:H,state:C.getState()}));else if(w.shiftKey)J!==void 0&&(Z.onSelect(ye({event:w,item:H,itemInputValue:he,itemUrl:J,refresh:M,source:Z,state:C.getState()},z)),T.navigator.navigateNewWindow({itemUrl:J,item:H,state:C.getState()}));else if(!w.altKey){if(J!==void 0)return Z.onSelect(ye({event:w,item:H,itemInputValue:he,itemUrl:J,refresh:M,source:Z,state:C.getState()},z)),void T.navigator.navigate({itemUrl:J,item:H,state:C.getState()});je(ye({event:w,nextState:{isOpen:!1},props:T,query:he,refresh:M,store:C},z)).then(function(){Z.onSelect(ye({event:w,item:H,itemInputValue:he,itemUrl:J,refresh:M,source:Z,state:C.getState()},z))})}}})(F({event:P,props:f,refresh:a,store:v},p))},onFocus:y,onBlur:Ot,onClick:function(P){h.inputElement!==f.environment.document.activeElement||v.getState().isOpen||y(P)}},S)},getPanelProps:function(h){return F({onMouseDown:function(d){d.preventDefault()},onMouseLeave:function(){v.dispatch("mouseleave",null)}},h)},getListProps:function(h){var d=h||{},y=d.sourceIndex,g=ge(d,ei);return F({role:"listbox","aria-labelledby":"".concat(m(f.id,y),"-label"),id:"".concat(m(f.id,y),"-list")},g)},getItemProps:function(h){var d=h.item,y=h.source,g=h.sourceIndex,_=ge(h,ti);return F({id:"".concat(m(f.id,g),"-item-").concat(d.__autocomplete_id),role:"option","aria-selected":v.getState().activeItemId===d.__autocomplete_id,onMouseMove:function(b){if(d.__autocomplete_id!==v.getState().activeItemId){v.dispatch("mousemove",d.__autocomplete_id);var S=De(v.getState());if(v.getState().activeItemId!==null&&S){var O=S.item,E=S.itemInputValue,k=S.itemUrl,P=S.source;P.onActive(F({event:b,item:O,itemInputValue:E,itemUrl:k,refresh:a,source:P,state:v.getState()},p))}}},onMouseDown:function(b){b.preventDefault()},onClick:function(b){var S=y.getItemInputValue({item:d,state:v.getState()}),O=y.getItemUrl({item:d,state:v.getState()});(O?Promise.resolve():je(F({event:b,nextState:{isOpen:!1},props:f,query:S,refresh:a,store:v},p))).then(function(){y.onSelect(F({event:b,item:d,itemInputValue:S,itemUrl:O,refresh:a,source:y,state:v.getState()},p))})}},_)}}}(_e({props:n,refresh:u,store:r,navigator:n.navigator},o));function u(){return je(_e({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,navigator:n.navigator,query:r.getState().query,refresh:u,store:r},o))}if(t.insights&&!n.plugins.some(function(l){return l.name==="aa.algoliaInsightsPlugin"})){var s=typeof t.insights=="boolean"?{}:t.insights;n.plugins.push(qo(s))}return n.plugins.forEach(function(l){var f;return(f=l.subscribe)===null||f===void 0?void 0:f.call(l,_e(_e({},o),{},{navigator:n.navigator,refresh:u,onSelect:function(a){e.push({onSelect:a})},onActive:function(a){e.push({onActive:a})},onResolve:function(a){e.push({onResolve:a})}}))}),function(l){var f,a,v=l.metadata,p=l.environment;if(!((f=p.navigator)===null||f===void 0||(a=f.userAgent)===null||a===void 0)&&a.includes("Algolia Crawler")){var m=p.document.createElement("meta"),h=p.document.querySelector("head");m.name="algolia:metadata",setTimeout(function(){m.content=JSON.stringify(v),h.appendChild(m)},0)}}({metadata:oi({plugins:n.plugins,options:t}),environment:n.environment}),_e(_e({refresh:u,navigator:n.navigator},i),o)}function li(t){var e=t.translations,n=(e===void 0?{}:e).searchByText,r=n===void 0?"Search by":n;return c.createElement("a",{href:"https://www.algolia.com/ref/docsearch/?utm_source=".concat(window.location.hostname,"&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch"),target:"_blank",rel:"noopener noreferrer"},c.createElement("span",{className:"DocSearch-Label"},r),c.createElement("svg",{width:"77",height:"19","aria-label":"Algolia",role:"img",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2196.2 500"},c.createElement("defs",null,c.createElement("style",null,".cls-1,.cls-2{fill:#003dff;}.cls-2{fill-rule:evenodd;}")),c.createElement("path",{className:"cls-2",d:"M1070.38,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),c.createElement("rect",{className:"cls-1",x:"1845.88",y:"104.73",width:"62.58",height:"277.9",rx:"5.9",ry:"5.9"}),c.createElement("path",{className:"cls-2",d:"M1851.78,71.38h50.77c3.26,0,5.9-2.64,5.9-5.9V5.9c0-3.62-3.24-6.39-6.82-5.83l-50.77,7.95c-2.87,.45-4.99,2.92-4.99,5.83v51.62c0,3.26,2.64,5.9,5.9,5.9Z"}),c.createElement("path",{className:"cls-2",d:"M1764.03,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),c.createElement("path",{className:"cls-2",d:"M1631.95,142.72c-11.14-12.25-24.83-21.65-40.78-28.31-15.92-6.53-33.26-9.85-52.07-9.85-18.78,0-36.15,3.17-51.92,9.85-15.59,6.66-29.29,16.05-40.76,28.31-11.47,12.23-20.38,26.87-26.76,44.03-6.38,17.17-9.24,37.37-9.24,58.36,0,20.99,3.19,36.87,9.55,54.21,6.38,17.32,15.14,32.11,26.45,44.36,11.29,12.23,24.83,21.62,40.6,28.46,15.77,6.83,40.12,10.33,52.4,10.48,12.25,0,36.78-3.82,52.7-10.48,15.92-6.68,29.46-16.23,40.78-28.46,11.29-12.25,20.05-27.04,26.25-44.36,6.22-17.34,9.24-33.22,9.24-54.21,0-20.99-3.34-41.19-10.03-58.36-6.38-17.17-15.14-31.8-26.43-44.03Zm-44.43,163.75c-11.47,15.75-27.56,23.7-48.09,23.7-20.55,0-36.63-7.8-48.1-23.7-11.47-15.75-17.21-34.01-17.21-61.2,0-26.89,5.59-49.14,17.06-64.87,11.45-15.75,27.54-23.52,48.07-23.52,20.55,0,36.63,7.78,48.09,23.52,11.47,15.57,17.36,37.98,17.36,64.87,0,27.19-5.72,45.3-17.19,61.2Z"}),c.createElement("path",{className:"cls-2",d:"M894.42,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),c.createElement("path",{className:"cls-2",d:"M2133.97,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),c.createElement("path",{className:"cls-2",d:"M1314.05,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-11.79,18.34-19.6,39.64-22.11,62.59-.58,5.3-.88,10.68-.88,16.14s.31,11.15,.93,16.59c4.28,38.09,23.14,71.61,50.66,94.52,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47h0c17.99,0,34.61-5.93,48.16-15.97,16.29-11.58,28.88-28.54,34.48-47.75v50.26h-.11v11.08c0,21.84-5.71,38.27-17.34,49.36-11.61,11.08-31.04,16.63-58.25,16.63-11.12,0-28.79-.59-46.6-2.41-2.83-.29-5.46,1.5-6.27,4.22l-12.78,43.11c-1.02,3.46,1.27,7.02,4.83,7.53,21.52,3.08,42.52,4.68,54.65,4.68,48.91,0,85.16-10.75,108.89-32.21,21.48-19.41,33.15-48.89,35.2-88.52V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,64.1s.65,139.13,0,143.36c-12.08,9.77-27.11,13.59-43.49,14.7-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-1.32,0-2.63-.03-3.94-.1-40.41-2.11-74.52-37.26-74.52-79.38,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33Z"}),c.createElement("path",{className:"cls-1",d:"M249.83,0C113.3,0,2,110.09,.03,246.16c-2,138.19,110.12,252.7,248.33,253.5,42.68,.25,83.79-10.19,120.3-30.03,3.56-1.93,4.11-6.83,1.08-9.51l-23.38-20.72c-4.75-4.21-11.51-5.4-17.36-2.92-25.48,10.84-53.17,16.38-81.71,16.03-111.68-1.37-201.91-94.29-200.13-205.96,1.76-110.26,92-199.41,202.67-199.41h202.69V407.41l-115-102.18c-3.72-3.31-9.42-2.66-12.42,1.31-18.46,24.44-48.53,39.64-81.93,37.34-46.33-3.2-83.87-40.5-87.34-86.81-4.15-55.24,39.63-101.52,94-101.52,49.18,0,89.68,37.85,93.91,85.95,.38,4.28,2.31,8.27,5.52,11.12l29.95,26.55c3.4,3.01,8.79,1.17,9.63-3.3,2.16-11.55,2.92-23.58,2.07-35.92-4.82-70.34-61.8-126.93-132.17-131.26-80.68-4.97-148.13,58.14-150.27,137.25-2.09,77.1,61.08,143.56,138.19,145.26,32.19,.71,62.03-9.41,86.14-26.95l150.26,133.2c6.44,5.71,16.61,1.14,16.61-7.47V9.48C499.66,4.25,495.42,0,490.18,0H249.83Z"})))}function yt(t){return c.createElement("svg",{width:"15",height:"15","aria-label":t.ariaLabel,role:"img"},c.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"},t.children))}function si(t){var e=t.translations,n=e===void 0?{}:e,r=n.selectText,o=r===void 0?"to select":r,i=n.selectKeyAriaLabel,u=i===void 0?"Enter key":i,s=n.navigateText,l=s===void 0?"to navigate":s,f=n.navigateUpKeyAriaLabel,a=f===void 0?"Arrow up":f,v=n.navigateDownKeyAriaLabel,p=v===void 0?"Arrow down":v,m=n.closeText,h=m===void 0?"to close":m,d=n.closeKeyAriaLabel,y=d===void 0?"Escape key":d,g=n.searchByText,_=g===void 0?"Search by":g;return c.createElement(c.Fragment,null,c.createElement("div",{className:"DocSearch-Logo"},c.createElement(li,{translations:{searchByText:_}})),c.createElement("ul",{className:"DocSearch-Commands"},c.createElement("li",null,c.createElement("kbd",{className:"DocSearch-Commands-Key"},c.createElement(yt,{ariaLabel:u},c.createElement("path",{d:"M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"}))),c.createElement("span",{className:"DocSearch-Label"},o)),c.createElement("li",null,c.createElement("kbd",{className:"DocSearch-Commands-Key"},c.createElement(yt,{ariaLabel:p},c.createElement("path",{d:"M7.5 3.5v8M10.5 8.5l-3 3-3-3"}))),c.createElement("kbd",{className:"DocSearch-Commands-Key"},c.createElement(yt,{ariaLabel:a},c.createElement("path",{d:"M7.5 11.5v-8M10.5 6.5l-3-3-3 3"}))),c.createElement("span",{className:"DocSearch-Label"},l)),c.createElement("li",null,c.createElement("kbd",{className:"DocSearch-Commands-Key"},c.createElement(yt,{ariaLabel:y},c.createElement("path",{d:"M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"}))),c.createElement("span",{className:"DocSearch-Label"},h))))}function fi(t){var e=t.hit,n=t.children;return c.createElement("a",{href:e.url},n)}function mi(){return c.createElement("svg",{viewBox:"0 0 38 38",stroke:"currentColor",strokeOpacity:".5"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},c.createElement("circle",{strokeOpacity:".3",cx:"18",cy:"18",r:"18"}),c.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},c.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}function pi(){return c.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},c.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},c.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),c.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function Jt(){return c.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},c.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function vi(){return c.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},c.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},c.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),c.createElement("path",{d:"M8 17l-6-6 6-6"})))}var di=function(){return c.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},c.createElement("path",{d:"M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))};function hi(t){switch(t.type){case"lvl1":return c.createElement(di,null);case"content":return c.createElement(gi,null);default:return c.createElement(yi,null)}}function yi(){return c.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},c.createElement("path",{d:"M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function gi(){return c.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},c.createElement("path",{d:"M17 5H3h14zm0 5H3h14zm0 5H3h14z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function Gn(){return c.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},c.createElement("path",{d:"M10 14.2L5 17l1-5.6-4-4 5.5-.7 2.5-5 2.5 5 5.6.8-4 4 .9 5.5z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function _i(){return c.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},c.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function bi(){return c.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},c.createElement("path",{d:"M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"}))}function Si(t){var e=t.translations,n=e===void 0?{}:e,r=n.titleText,o=r===void 0?"Unable to fetch results":r,i=n.helpText,u=i===void 0?"You might want to check your network connection.":i;return c.createElement("div",{className:"DocSearch-ErrorScreen"},c.createElement("div",{className:"DocSearch-Screen-Icon"},c.createElement(_i,null)),c.createElement("p",{className:"DocSearch-Title"},o),c.createElement("p",{className:"DocSearch-Help"},u))}var Oi=["translations"];function wi(t){var e=t.translations,n=e===void 0?{}:e,r=ve(t,Oi),o=n.noResultsText,i=o===void 0?"No results for":o,u=n.suggestedQueryText,s=u===void 0?"Try searching for":u,l=n.reportMissingResultsText,f=l===void 0?"Believe this query should return results?":l,a=n.reportMissingResultsLinkText,v=a===void 0?"Let us know.":a,p=r.state.context.searchSuggestions;return c.createElement("div",{className:"DocSearch-NoResults"},c.createElement("div",{className:"DocSearch-Screen-Icon"},c.createElement(bi,null)),c.createElement("p",{className:"DocSearch-Title"},i,' "',c.createElement("strong",null,r.state.query),'"'),p&&p.length>0&&c.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},c.createElement("p",{className:"DocSearch-Help"},s,":"),c.createElement("ul",null,p.slice(0,3).reduce(function(m,h){return[].concat(function(d){return function(y){if(Array.isArray(y))return Wt(y)}(d)||function(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}(d)||Dr(d)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(m),[c.createElement("li",{key:h},c.createElement("button",{className:"DocSearch-Prefill",key:h,type:"button",onClick:function(){r.setQuery(h.toLowerCase()+" "),r.refresh(),r.inputRef.current.focus()}},h))])},[]))),r.getMissingResultsUrl&&c.createElement("p",{className:"DocSearch-Help"},"".concat(f," "),c.createElement("a",{href:r.getMissingResultsUrl({query:r.state.query}),target:"_blank",rel:"noopener noreferrer"},v)))}var Ei=["hit","attribute","tagName"];function Yn(t,e){return e.split(".").reduce(function(n,r){return n!=null&&n[r]?n[r]:null},t)}function Pe(t){var e=t.hit,n=t.attribute,r=t.tagName;return ee(r===void 0?"span":r,Fe(Fe({},ve(t,Ei)),{},{dangerouslySetInnerHTML:{__html:Yn(e,"_snippetResult.".concat(n,".value"))||Yn(e,n)}}))}function $t(t){return t.collection&&t.collection.items.length!==0?c.createElement("section",{className:"DocSearch-Hits"},c.createElement("div",{className:"DocSearch-Hit-source"},t.title),c.createElement("ul",t.getListProps(),t.collection.items.map(function(e,n){return c.createElement(ji,B({key:[t.title,e.objectID].join(":"),item:e,index:n},t))}))):null}function ji(t){var e=t.item,n=t.index,r=t.renderIcon,o=t.renderAction,i=t.getItemProps,u=t.onItemClick,s=t.collection,l=t.hitComponent,f=be(c.useState(!1),2),a=f[0],v=f[1],p=be(c.useState(!1),2),m=p[0],h=p[1],d=c.useRef(null),y=l;return c.createElement("li",B({className:["DocSearch-Hit",e.__docsearch_parent&&"DocSearch-Hit--Child",a&&"DocSearch-Hit--deleting",m&&"DocSearch-Hit--favoriting"].filter(Boolean).join(" "),onTransitionEnd:function(){d.current&&d.current()}},i({item:e,source:s.source,onClick:function(g){u(e,g)}})),c.createElement(y,{hit:e},c.createElement("div",{className:"DocSearch-Hit-Container"},r({item:e,index:n}),e.hierarchy[e.type]&&e.type==="lvl1"&&c.createElement("div",{className:"DocSearch-Hit-content-wrapper"},c.createElement(Pe,{className:"DocSearch-Hit-title",hit:e,attribute:"hierarchy.lvl1"}),e.content&&c.createElement(Pe,{className:"DocSearch-Hit-path",hit:e,attribute:"content"})),e.hierarchy[e.type]&&(e.type==="lvl2"||e.type==="lvl3"||e.type==="lvl4"||e.type==="lvl5"||e.type==="lvl6")&&c.createElement("div",{className:"DocSearch-Hit-content-wrapper"},c.createElement(Pe,{className:"DocSearch-Hit-title",hit:e,attribute:"hierarchy.".concat(e.type)}),c.createElement(Pe,{className:"DocSearch-Hit-path",hit:e,attribute:"hierarchy.lvl1"})),e.type==="content"&&c.createElement("div",{className:"DocSearch-Hit-content-wrapper"},c.createElement(Pe,{className:"DocSearch-Hit-title",hit:e,attribute:"content"}),c.createElement(Pe,{className:"DocSearch-Hit-path",hit:e,attribute:"hierarchy.lvl1"})),o({item:e,runDeleteTransition:function(g){v(!0),d.current=g},runFavoriteTransition:function(g){h(!0),d.current=g}}))))}function Xn(t,e,n){return t.reduce(function(r,o){var i=e(o);return r.hasOwnProperty(i)||(r[i]=[]),r[i].length<(n||5)&&r[i].push(o),r},{})}function er(t){return t}function gt(t){return t.button===1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}function Pi(){}var Lr=/(|<\/mark>)/g,Ii=RegExp(Lr.source);function qr(t){var e,n,r=t;if(!r.__docsearch_parent&&!t._highlightResult)return t.hierarchy.lvl0;var o=((r.__docsearch_parent?(e=r.__docsearch_parent)===null||e===void 0||(e=e._highlightResult)===null||e===void 0||(e=e.hierarchy)===null||e===void 0?void 0:e.lvl0:(n=t._highlightResult)===null||n===void 0||(n=n.hierarchy)===null||n===void 0?void 0:n.lvl0)||{}).value;return o&&Ii.test(o)?o.replace(Lr,""):o}function Di(t){return c.createElement("div",{className:"DocSearch-Dropdown-Container"},t.state.collections.map(function(e){if(e.items.length===0)return null;var n=qr(e.items[0]);return c.createElement($t,B({},t,{key:e.source.sourceId,title:n,collection:e,renderIcon:function(r){var o,i=r.item,u=r.index;return c.createElement(c.Fragment,null,i.__docsearch_parent&&c.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},c.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},i.__docsearch_parent!==((o=e.items[u+1])===null||o===void 0?void 0:o.__docsearch_parent)?c.createElement("path",{d:"M8 6v21M20 27H8.3"}):c.createElement("path",{d:"M8 6v42M20 27H8.3"}))),c.createElement("div",{className:"DocSearch-Hit-icon"},c.createElement(hi,{type:i.type})))},renderAction:function(){return c.createElement("div",{className:"DocSearch-Hit-action"},c.createElement(vi,null))}}))}),t.resultsFooterComponent&&c.createElement("section",{className:"DocSearch-HitsFooter"},c.createElement(t.resultsFooterComponent,{state:t.state})))}var ki=["translations"];function Ci(t){var e=t.translations,n=e===void 0?{}:e,r=ve(t,ki),o=n.recentSearchesTitle,i=o===void 0?"Recent":o,u=n.noRecentSearchesText,s=u===void 0?"No recent searches":u,l=n.saveRecentSearchButtonTitle,f=l===void 0?"Save this search":l,a=n.removeRecentSearchButtonTitle,v=a===void 0?"Remove this search from history":a,p=n.favoriteSearchesTitle,m=p===void 0?"Favorite":p,h=n.removeFavoriteSearchButtonTitle,d=h===void 0?"Remove this search from favorites":h;return r.state.status==="idle"&&r.hasCollections===!1?r.disableUserPersonalization?null:c.createElement("div",{className:"DocSearch-StartScreen"},c.createElement("p",{className:"DocSearch-Help"},s)):r.hasCollections===!1?null:c.createElement("div",{className:"DocSearch-Dropdown-Container"},c.createElement($t,B({},r,{title:i,collection:r.state.collections[0],renderIcon:function(){return c.createElement("div",{className:"DocSearch-Hit-icon"},c.createElement(pi,null))},renderAction:function(y){var g=y.item,_=y.runFavoriteTransition,b=y.runDeleteTransition;return c.createElement(c.Fragment,null,c.createElement("div",{className:"DocSearch-Hit-action"},c.createElement("button",{className:"DocSearch-Hit-action-button",title:f,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),_(function(){r.favoriteSearches.add(g),r.recentSearches.remove(g),r.refresh()})}},c.createElement(Gn,null))),c.createElement("div",{className:"DocSearch-Hit-action"},c.createElement("button",{className:"DocSearch-Hit-action-button",title:v,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),b(function(){r.recentSearches.remove(g),r.refresh()})}},c.createElement(Jt,null))))}})),c.createElement($t,B({},r,{title:m,collection:r.state.collections[1],renderIcon:function(){return c.createElement("div",{className:"DocSearch-Hit-icon"},c.createElement(Gn,null))},renderAction:function(y){var g=y.item,_=y.runDeleteTransition;return c.createElement("div",{className:"DocSearch-Hit-action"},c.createElement("button",{className:"DocSearch-Hit-action-button",title:d,type:"submit",onClick:function(b){b.preventDefault(),b.stopPropagation(),_(function(){r.favoriteSearches.remove(g),r.refresh()})}},c.createElement(Jt,null)))}})))}var Ai=["translations"],xi=c.memo(function(t){var e=t.translations,n=e===void 0?{}:e,r=ve(t,Ai);if(r.state.status==="error")return c.createElement(Si,{translations:n==null?void 0:n.errorScreen});var o=r.state.collections.some(function(i){return i.items.length>0});return r.state.query?o===!1?c.createElement(wi,B({},r,{translations:n==null?void 0:n.noResultsScreen})):c.createElement(Di,r):c.createElement(Ci,B({},r,{hasCollections:o,translations:n==null?void 0:n.startScreen}))},function(t,e){return e.state.status==="loading"||e.state.status==="stalled"}),Ni=["translations"];function Ti(t){var e=t.translations,n=e===void 0?{}:e,r=ve(t,Ni),o=n.resetButtonTitle,i=o===void 0?"Clear the query":o,u=n.resetButtonAriaLabel,s=u===void 0?"Clear the query":u,l=n.cancelButtonText,f=l===void 0?"Cancel":l,a=n.cancelButtonAriaLabel,v=a===void 0?"Cancel":a,p=n.searchInputLabel,m=p===void 0?"Search":p,h=r.getFormProps({inputElement:r.inputRef.current}).onReset;return c.useEffect(function(){r.autoFocus&&r.inputRef.current&&r.inputRef.current.focus()},[r.autoFocus,r.inputRef]),c.useEffect(function(){r.isFromSelection&&r.inputRef.current&&r.inputRef.current.select()},[r.isFromSelection,r.inputRef]),c.createElement(c.Fragment,null,c.createElement("form",{className:"DocSearch-Form",onSubmit:function(d){d.preventDefault()},onReset:h},c.createElement("label",B({className:"DocSearch-MagnifierLabel"},r.getLabelProps()),c.createElement(kr,null),c.createElement("span",{className:"DocSearch-VisuallyHiddenForAccessibility"},m)),c.createElement("div",{className:"DocSearch-LoadingIndicator"},c.createElement(mi,null)),c.createElement("input",B({className:"DocSearch-Input",ref:r.inputRef},r.getInputProps({inputElement:r.inputRef.current,autoFocus:r.autoFocus,maxLength:64}))),c.createElement("button",{type:"reset",title:i,className:"DocSearch-Reset","aria-label":s,hidden:!r.state.query},c.createElement(Jt,null))),c.createElement("button",{className:"DocSearch-Cancel",type:"reset","aria-label":v,onClick:r.onClose},f))}var Ri=["_highlightResult","_snippetResult"];function tr(t){var e=t.key,n=t.limit,r=n===void 0?5:n,o=function(u){return function(){var s="__TEST_KEY__";try{return localStorage.setItem(s,""),localStorage.removeItem(s),!0}catch{return!1}}()===!1?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(s){return window.localStorage.setItem(u,JSON.stringify(s))},getItem:function(){var s=window.localStorage.getItem(u);return s?JSON.parse(s):[]}}}(e),i=o.getItem().slice(0,r);return{add:function(u){var s=u,l=(s._highlightResult,s._snippetResult,ve(s,Ri)),f=i.findIndex(function(a){return a.objectID===l.objectID});f>-1&&i.splice(f,1),i.unshift(l),i=i.slice(0,r),o.setItem(i)},remove:function(u){i=i.filter(function(s){return s.objectID!==u.objectID}),o.setItem(i)},getAll:function(){return i}}}function Li(t){var e,n="algoliasearch-client-js-".concat(t.key),r=function(){return e===void 0&&(e=t.localStorage||window.localStorage),e},o=function(){return JSON.parse(r().getItem(n)||"{}")},i=function(u){r().setItem(n,JSON.stringify(u))};return{get:function(u,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){(function(){var a=t.timeToLive?1e3*t.timeToLive:null,v=o(),p=Object.fromEntries(Object.entries(v).filter(function(h){return Ie(h,2)[1].timestamp!==void 0}));if(i(p),a){var m=Object.fromEntries(Object.entries(p).filter(function(h){var d=Ie(h,2)[1],y=new Date().getTime();return!(d.timestamp+a2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return o().then(function(u){return Promise.all([u,i.miss(u)])}).then(function(u){return Ie(u,1)[0]})},set:function(r,o){return Promise.resolve(o)},delete:function(r){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(r,o,i).catch(function(){return Me({caches:e}).get(r,o,i)})},set:function(r,o){return n.set(r,o).catch(function(){return Me({caches:e}).set(r,o)})},delete:function(r){return n.delete(r).catch(function(){return Me({caches:e}).delete(r)})},clear:function(){return n.clear().catch(function(){return Me({caches:e}).clear()})}}}function qt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},e={};return{get:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(n);if(i in e)return Promise.resolve(t.serializable?JSON.parse(e[i]):e[i]);var u=r(),s=o&&o.miss||function(){return Promise.resolve()};return u.then(function(l){return s(l)}).then(function(){return u})},set:function(n,r){return e[JSON.stringify(n)]=t.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(n){return delete e[JSON.stringify(n)],Promise.resolve()},clear:function(){return e={},Promise.resolve()}}}function qi(t){for(var e=t.length-1;e>0;e--){var n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}return t}function Mr(t,e){return e&&Object.keys(e).forEach(function(n){t[n]=e[n](t)}),t}function Pt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0?r:void 0,timeout:n.timeout||e,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var ke={Read:1,Write:2,Any:3};function rr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return N(N({},t),{},{status:e,lastUpdate:Date.now()})}function Hr(t){return typeof t=="string"?{protocol:"https",url:t,accept:ke.Any}:{protocol:t.protocol||"https",url:t.url,accept:t.accept||ke.Any}}var It="POST";function or(t,e,n,r){var o=[],i=function(p,m){if(p.method!=="GET"&&(p.data!==void 0||m.data!==void 0)){var h=Array.isArray(p.data)?p.data:N(N({},p.data),m.data);return JSON.stringify(h)}}(n,r),u=function(p,m){var h=N(N({},p.headers),m.headers),d={};return Object.keys(h).forEach(function(y){var g=h[y];d[y.toLowerCase()]=g}),d}(t,r),s=n.method,l=n.method!=="GET"?{}:N(N({},n.data),r.data),f=N(N(N({"x-algolia-agent":t.userAgent.value},t.queryParameters),l),r.queryParameters),a=0,v=function p(m,h){var d=m.pop();if(d===void 0)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:ir(o)};var y={data:i,headers:u,method:s,url:Hi(d,n.path,f),connectTimeout:h(a,t.timeouts.connect),responseTimeout:h(a,r.timeout)},g=function(b){var S={request:y,response:b,host:d,triesLeft:m.length};return o.push(S),S},_={onSuccess:function(b){return function(S){try{return JSON.parse(S.content)}catch(O){throw function(E,k){return{name:"DeserializationError",message:E,response:k}}(O.message,S)}}(b)},onRetry:function(b){var S=g(b);return b.isTimedOut&&a++,Promise.all([t.logger.info("Retryable failure",Fr(S)),t.hostsCache.set(d,rr(d,b.isTimedOut?3:2))]).then(function(){return p(m,h)})},onFail:function(b){throw g(b),function(S,O){var E=S.content,k=S.status,P=E;try{P=JSON.parse(E).message}catch{}return function(I,w,T){return{name:"ApiError",message:I,status:w,transporterStackTrace:T}}(P,k,O)}(b,ir(o))}};return t.requester.send(y).then(function(b){return function(S,O){return function(E){var k=E.status;return E.isTimedOut||function(P){var I=P.isTimedOut,w=P.status;return!I&&~~w==0}(E)||~~(k/100)!=2&&~~(k/100)!=4}(S)?O.onRetry(S):~~(S.status/100)==2?O.onSuccess(S):O.onFail(S)}(b,_)})};return function(p,m){return Promise.all(m.map(function(h){return p.get(h,function(){return Promise.resolve(rr(h))})})).then(function(h){var d=h.filter(function(_){return function(b){return b.status===1||Date.now()-b.lastUpdate>12e4}(_)}),y=h.filter(function(_){return function(b){return b.status===3&&Date.now()-b.lastUpdate<=12e4}(_)}),g=[].concat(_t(d),_t(y));return{getTimeout:function(_,b){return(y.length===0&&_===0?1:y.length+3+_)*b},statelessHosts:g.length>0?g.map(function(_){return Hr(_)}):m}})}(t.hostsCache,e).then(function(p){return v(_t(p.statelessHosts).reverse(),p.getTimeout)})}function Mi(t){var e={value:"Algolia for JavaScript (".concat(t,")"),add:function(n){var r="; ".concat(n.segment).concat(n.version!==void 0?" (".concat(n.version,")"):"");return e.value.indexOf(r)===-1&&(e.value="".concat(e.value).concat(r)),e}};return e}function Hi(t,e,n){var r=Ur(n),o="".concat(t.protocol,"://").concat(t.url,"/").concat(e.charAt(0)==="/"?e.substr(1):e);return r.length&&(o+="?".concat(r)),o}function Ur(t){return Object.keys(t).map(function(e){return Pt("%s=%s",e,(n=t[e],Object.prototype.toString.call(n)==="[object Object]"||Object.prototype.toString.call(n)==="[object Array]"?JSON.stringify(t[e]):t[e]));var n}).join("&")}function ir(t){return t.map(function(e){return Fr(e)})}function Fr(t){var e=t.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return N(N({},t),{},{request:N(N({},t.request),{},{headers:N(N({},t.request.headers),e)})})}var Ui=function(t){return function(e,n){return e.method==="GET"?t.transporter.read(e,n):t.transporter.write(e,n)}},Br=function(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Mr({transporter:t.transporter,appId:t.appId,indexName:e},n.methods)}},ar=function(t){return function(e,n){var r=e.map(function(o){return N(N({},o),{},{params:Ur(o.params||{})})});return t.transporter.read({method:It,path:"1/indexes/*/queries",data:{requests:r},cacheable:!0},n)}},cr=function(t){return function(e,n){return Promise.all(e.map(function(r){var o=r.params,i=o.facetName,u=o.facetQuery,s=function(l,f){if(l==null)return{};var a,v,p=function(h,d){if(h==null)return{};var y,g,_={},b=Object.keys(h);for(g=0;g=0||(_[y]=h[y]);return _}(l,f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);for(v=0;v=0||Object.prototype.propertyIsEnumerable.call(l,a)&&(p[a]=l[a])}return p}(o,Oo);return Br(t)(r.indexName,{methods:{searchForFacetValues:Vr}}).searchForFacetValues(i,u,N(N({},n),s))}))}},Fi=function(t){return function(e,n,r){return t.transporter.read({method:It,path:Pt("1/answers/%s/prediction",t.indexName),data:{query:e,queryLanguages:n},cacheable:!0},r)}},Bi=function(t){return function(e,n){return t.transporter.read({method:It,path:Pt("1/indexes/%s/query",t.indexName),data:{query:e},cacheable:!0},n)}},Vr=function(t){return function(e,n,r){return t.transporter.read({method:It,path:Pt("1/indexes/%s/facets/%s/query",t.indexName,e),data:{facetQuery:n},cacheable:!0},r)}};function Kr(t,e,n){var r={appId:t,apiKey:e,timeouts:{connect:1,read:2,write:30},requester:{send:function(o){return new Promise(function(i){var u=new XMLHttpRequest;u.open(o.method,o.url,!0),Object.keys(o.headers).forEach(function(a){return u.setRequestHeader(a,o.headers[a])});var s,l=function(a,v){return setTimeout(function(){u.abort(),i({status:0,content:v,isTimedOut:!0})},1e3*a)},f=l(o.connectTimeout,"Connection timeout");u.onreadystatechange=function(){u.readyState>u.OPENED&&s===void 0&&(clearTimeout(f),s=l(o.responseTimeout,"Socket timeout"))},u.onerror=function(){u.status===0&&(clearTimeout(f),clearTimeout(s),i({content:u.responseText||"Network request failed",status:u.status,isTimedOut:!1}))},u.onload=function(){clearTimeout(f),clearTimeout(s),i({content:u.responseText,status:u.status,isTimedOut:!1})},u.send(o.data)})}},logger:{debug:function(o,i){return Promise.resolve()},info:function(o,i){return Promise.resolve()},error:function(o,i){return console.error(o,i),Promise.resolve()}},responsesCache:qt(),requestsCache:qt({serializable:!1}),hostsCache:Me({caches:[Li({key:"4.19.1-".concat(t)}),qt()]}),userAgent:Mi("4.19.1").add({segment:"Browser",version:"lite"}),authMode:0};return function(o){var i=o.appId,u=function(f,a,v){var p={"x-algolia-api-key":v,"x-algolia-application-id":a};return{headers:function(){return f===1?p:{}},queryParameters:function(){return f===0?p:{}}}}(o.authMode!==void 0?o.authMode:1,i,o.apiKey),s=function(f){var a=f.hostsCache,v=f.logger,p=f.requester,m=f.requestsCache,h=f.responsesCache,d=f.timeouts,y=f.userAgent,g=f.hosts,_=f.queryParameters,b={hostsCache:a,logger:v,requester:p,requestsCache:m,responsesCache:h,timeouts:d,userAgent:y,headers:f.headers,queryParameters:_,hosts:g.map(function(S){return Hr(S)}),read:function(S,O){var E=nr(O,b.timeouts.read),k=function(){return or(b,b.hosts.filter(function(I){return(I.accept&ke.Read)!=0}),S,E)};if((E.cacheable!==void 0?E.cacheable:S.cacheable)!==!0)return k();var P={request:S,mappedRequestOptions:E,transporter:{queryParameters:b.queryParameters,headers:b.headers}};return b.responsesCache.get(P,function(){return b.requestsCache.get(P,function(){return b.requestsCache.set(P,k()).then(function(I){return Promise.all([b.requestsCache.delete(P),I])},function(I){return Promise.all([b.requestsCache.delete(P),Promise.reject(I)])}).then(function(I){var w=Ie(I,2);return w[0],w[1]})})},{miss:function(I){return b.responsesCache.set(P,I)}})},write:function(S,O){return or(b,b.hosts.filter(function(E){return(E.accept&ke.Write)!=0}),S,nr(O,b.timeouts.write))}};return b}(N(N({hosts:[{url:"".concat(i,"-dsn.algolia.net"),accept:ke.Read},{url:"".concat(i,".algolia.net"),accept:ke.Write}].concat(qi([{url:"".concat(i,"-1.algolianet.com")},{url:"".concat(i,"-2.algolianet.com")},{url:"".concat(i,"-3.algolianet.com")}]))},o),{},{headers:N(N({},u.headers()),{},{"content-type":"application/x-www-form-urlencoded"},o.headers),queryParameters:N(N({},u.queryParameters()),o.queryParameters)})),l={transporter:s,appId:i,addAlgoliaAgent:function(f,a){s.userAgent.add({segment:f,version:a})},clearCache:function(){return Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(function(){})}};return Mr(l,o.methods)}(N(N(N({},r),n),{},{methods:{search:ar,searchForFacetValues:cr,multipleQueries:ar,multipleSearchForFacetValues:cr,customRequest:Ui,initIndex:function(o){return function(i){return Br(o)(i,{methods:{search:Bi,searchForFacetValues:Vr,findAnswers:Fi}})}}}}))}Kr.version="4.19.1";var Vi=["footer","searchBox"];function Ki(t){var e=t.appId,n=t.apiKey,r=t.indexName,o=t.placeholder,i=o===void 0?"Search docs":o,u=t.searchParameters,s=t.maxResultsPerGroup,l=t.onClose,f=l===void 0?Pi:l,a=t.transformItems,v=a===void 0?er:a,p=t.hitComponent,m=p===void 0?fi:p,h=t.resultsFooterComponent,d=h===void 0?function(){return null}:h,y=t.navigator,g=t.initialScrollY,_=g===void 0?0:g,b=t.transformSearchClient,S=b===void 0?er:b,O=t.disableUserPersonalization,E=O!==void 0&&O,k=t.initialQuery,P=k===void 0?"":k,I=t.translations,w=I===void 0?{}:I,T=t.getMissingResultsUrl,M=t.insights,C=M!==void 0&&M,z=w.footer,ae=w.searchBox,at=ve(w,Vi),de=be(c.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),H=de[0],he=de[1],J=c.useRef(null),Z=c.useRef(null),q=c.useRef(null),ne=c.useRef(null),$=c.useRef(null),V=c.useRef(10),ce=c.useRef(typeof window<"u"?window.getSelection().toString().slice(0,64):"").current,Q=c.useRef(P||ce).current,Se=function(A,R,U){return c.useMemo(function(){var W=Kr(A,R);return W.addAlgoliaAgent("docsearch","3.6.1"),/docsearch.js \(.*\)/.test(W.transporter.userAgent.value)===!1&&W.addAlgoliaAgent("docsearch-react","3.6.1"),U(W)},[A,R,U])}(e,n,S),ue=c.useRef(tr({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(r),limit:10})).current,G=c.useRef(tr({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(r),limit:ue.getAll().length===0?7:4})).current,Y=c.useCallback(function(A){if(!E){var R=A.type==="content"?A.__docsearch_parent:A;R&&ue.getAll().findIndex(function(U){return U.objectID===R.objectID})===-1&&G.add(R)}},[ue,G,E]),ct=c.useCallback(function(A){if(H.context.algoliaInsightsPlugin&&A.__autocomplete_id){var R=A,U={eventName:"Item Selected",index:R.__autocomplete_indexName,items:[R],positions:[A.__autocomplete_id],queryID:R.__autocomplete_queryID};H.context.algoliaInsightsPlugin.insights.clickedObjectIDsAfterSearch(U)}},[H.context.algoliaInsightsPlugin]),le=c.useMemo(function(){return ui({id:"docsearch",defaultActiveItemId:0,placeholder:i,openOnFocus:!0,initialState:{query:Q,context:{searchSuggestions:[]}},insights:C,navigator:y,onStateChange:function(A){he(A.state)},getSources:function(A){var R=A.query,U=A.state,W=A.setContext,se=A.setStatus;if(!R)return E?[]:[{sourceId:"recentSearches",onSelect:function(L){var X=L.item,Ne=L.event;Y(X),gt(Ne)||f()},getItemUrl:function(L){return L.item.url},getItems:function(){return G.getAll()}},{sourceId:"favoriteSearches",onSelect:function(L){var X=L.item,Ne=L.event;Y(X),gt(Ne)||f()},getItemUrl:function(L){return L.item.url},getItems:function(){return ue.getAll()}}];var fe=!!C;return Se.search([{query:R,indexName:r,params:Fe({attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat(V.current),"hierarchy.lvl2:".concat(V.current),"hierarchy.lvl3:".concat(V.current),"hierarchy.lvl4:".concat(V.current),"hierarchy.lvl5:".concat(V.current),"hierarchy.lvl6:".concat(V.current),"content:".concat(V.current)],snippetEllipsisText:"…",highlightPreTag:"",highlightPostTag:"",hitsPerPage:20,clickAnalytics:fe},u)}]).catch(function(L){throw L.name==="RetryError"&&se("error"),L}).then(function(L){var X=L.results[0],Ne=X.hits,Jr=X.nbHits,Dt=Xn(Ne,function(kt){return qr(kt)},s);U.context.searchSuggestions.length0&&(en(),$.current&&$.current.focus())},[Q,en]),c.useEffect(function(){function A(){if(Z.current){var R=.01*window.innerHeight;Z.current.style.setProperty("--docsearch-vh","".concat(R,"px"))}}return A(),window.addEventListener("resize",A),function(){window.removeEventListener("resize",A)}},[]),c.createElement("div",B({ref:J},zr({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container",H.status==="stalled"&&"DocSearch-Container--Stalled",H.status==="error"&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(A){A.target===A.currentTarget&&f()}}),c.createElement("div",{className:"DocSearch-Modal",ref:Z},c.createElement("header",{className:"DocSearch-SearchBar",ref:q},c.createElement(Ti,B({},le,{state:H,autoFocus:Q.length===0,inputRef:$,isFromSelection:!!Q&&Q===ce,translations:ae,onClose:f}))),c.createElement("div",{className:"DocSearch-Dropdown",ref:ne},c.createElement(xi,B({},le,{indexName:r,state:H,hitComponent:m,resultsFooterComponent:d,disableUserPersonalization:E,recentSearches:G,favoriteSearches:ue,inputRef:$,translations:at,getMissingResultsUrl:T,onItemClick:function(A,R){ct(A),Y(A),gt(R)||f()}}))),c.createElement("footer",{className:"DocSearch-Footer"},c.createElement(si,{translations:z}))))}function Wi(t){var e,n,r=c.useRef(null),o=be(c.useState(!1),2),i=o[0],u=o[1],s=be(c.useState((t==null?void 0:t.initialQuery)||void 0),2),l=s[0],f=s[1],a=c.useCallback(function(){u(!0)},[u]),v=c.useCallback(function(){u(!1)},[u]);return function(p){var m=p.isOpen,h=p.onOpen,d=p.onClose,y=p.onInput,g=p.searchButtonRef;c.useEffect(function(){function _(b){var S;(b.keyCode===27&&m||((S=b.key)===null||S===void 0?void 0:S.toLowerCase())==="k"&&(b.metaKey||b.ctrlKey)||!function(O){var E=O.target,k=E.tagName;return E.isContentEditable||k==="INPUT"||k==="SELECT"||k==="TEXTAREA"}(b)&&b.key==="/"&&!m)&&(b.preventDefault(),m?d():document.body.classList.contains("DocSearch--active")||document.body.classList.contains("DocSearch--active")||h()),g&&g.current===document.activeElement&&y&&/[a-zA-Z0-9]/.test(String.fromCharCode(b.keyCode))&&y(b)}return window.addEventListener("keydown",_),function(){window.removeEventListener("keydown",_)}},[m,h,d,y,g])}({isOpen:i,onOpen:a,onClose:v,onInput:c.useCallback(function(p){u(!0),f(p.key)},[u,f]),searchButtonRef:r}),c.createElement(c.Fragment,null,c.createElement(Po,{ref:r,translations:t==null||(e=t.translations)===null||e===void 0?void 0:e.button,onClick:a}),i&&Er(c.createElement(Ki,B({},t,{initialScrollY:window.scrollY,initialQuery:l,translations:t==null||(n=t.translations)===null||n===void 0?void 0:n.modal,onClose:v})),document.body))}function zi(t){Pr(c.createElement(Wi,Mt({},t,{transformSearchClient:function(e){return e.addAlgoliaAgent("docsearch.js","3.6.1"),t.transformSearchClient?t.transformSearchClient(e):e}})),function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;return typeof e=="string"?n.document.querySelector(e):e}(t.container,t.environment))}const Ji={id:"docsearch"},Qi=Zr({__name:"VPAlgoliaSearchBox",props:{algolia:{}},setup(t){const e=t,n=Qr(),r=Gr(),{site:o,localeIndex:i,lang:u}=ro();Yr(s),Xr(i,s);async function s(){var m,h;await eo();const a={...e.algolia,...(m=e.algolia.locales)==null?void 0:m[i.value]},v=((h=a.searchParameters)==null?void 0:h.facetFilters)??[],p=[...(Array.isArray(v)?v:[v]).filter(d=>!d.startsWith("lang:")),`lang:${u.value}`];l({...a,searchParameters:{...a.searchParameters,facetFilters:p}})}function l(a){const v=Object.assign({},a,{container:"#docsearch",navigator:{navigate({itemUrl:p}){const{pathname:m}=new URL(window.location.origin+p);r.path===m?window.location.assign(window.location.origin+p):n.go(p)}},transformItems(p){return p.map(m=>Object.assign({},m,{url:f(m.url)}))},hitComponent({hit:p,children:m}){return{__v:null,type:"a",ref:void 0,constructor:void 0,key:void 0,props:{href:p.url,children:m}}}});zi(v)}function f(a){const{pathname:v,hash:p}=new URL(a,location.origin);return v.replace(/\.html$/,o.value.cleanUrls?"":".html")+p}return(a,v)=>(to(),no("div",Ji))}});export{Qi as default}; diff --git a/assets/chunks/framework.CVd-vdtw.js b/assets/chunks/framework.CVd-vdtw.js new file mode 100644 index 000000000..c9e3c8e0b --- /dev/null +++ b/assets/chunks/framework.CVd-vdtw.js @@ -0,0 +1,17 @@ +/** +* @vue/shared v3.4.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function hr(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const re={},mt=[],Te=()=>{},go=()=>!1,Vt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pr=e=>e.startsWith("onUpdate:"),ue=Object.assign,gr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},mo=Object.prototype.hasOwnProperty,z=(e,t)=>mo.call(e,t),U=Array.isArray,yt=e=>bn(e)==="[object Map]",Fs=e=>bn(e)==="[object Set]",W=e=>typeof e=="function",oe=e=>typeof e=="string",Je=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",$s=e=>(Z(e)||W(e))&&W(e.then)&&W(e.catch),Hs=Object.prototype.toString,bn=e=>Hs.call(e),yo=e=>bn(e).slice(8,-1),js=e=>bn(e)==="[object Object]",mr=e=>oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_t=hr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_o=/-(\w)/g,Oe=vn(e=>e.replace(_o,(t,n)=>n?n.toUpperCase():"")),bo=/\B([A-Z])/g,Qe=vn(e=>e.replace(bo,"-$1").toLowerCase()),wn=vn(e=>e.charAt(0).toUpperCase()+e.slice(1)),on=vn(e=>e?`on${wn(e)}`:""),Ye=(e,t)=>!Object.is(e,t),$n=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},vo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},wo=e=>{const t=oe(e)?Number(e):NaN;return isNaN(t)?e:t};let Vr;const Vs=()=>Vr||(Vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function yr(e){if(U(e)){const t={};for(let n=0;n{if(n){const r=n.split(Co);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _r(e){let t="";if(oe(e))t=e;else if(U(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Ro=e=>oe(e)?e:e==null?"":U(e)||Z(e)&&(e.toString===Hs||!W(e.toString))?Bs(e)?Ro(e.value):JSON.stringify(e,ks,2):String(e),ks=(e,t)=>Bs(t)?ks(e,t.value):yt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Hn(r,i)+" =>"]=s,n),{})}:Fs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Hn(n))}:Je(t)?Hn(t):Z(t)&&!U(t)&&!js(t)?String(t):t,Hn=(e,t="")=>{var n;return Je(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let we;class Oo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=we;try{return we=this,t()}finally{we=n}}}on(){we=this}off(){we=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),et()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=qe,n=ct;try{return qe=!0,ct=this,this._runnings++,Ur(this),this.fn()}finally{Br(this),this._runnings--,ct=n,qe=t}}stop(){this.active&&(Ur(this),Br(this),this.onStop&&this.onStop(),this.active=!1)}}function Mo(e){return e.value}function Ur(e){e._trackId++,e._depsLength=0}function Br(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},fn=new WeakMap,at=Symbol(""),sr=Symbol("");function be(e,t,n){if(qe&&ct){let r=fn.get(e);r||fn.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Ys(()=>r.delete(n))),Gs(ct,s)}}function He(e,t,n,r,s,i){const o=fn.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&U(e)){const c=Number(r);o.forEach((u,d)=>{(d==="length"||!Je(d)&&d>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":U(e)?mr(n)&&l.push(o.get("length")):(l.push(o.get(at)),yt(e)&&l.push(o.get(sr)));break;case"delete":U(e)||(l.push(o.get(at)),yt(e)&&l.push(o.get(sr)));break;case"set":yt(e)&&l.push(o.get(at));break}vr();for(const c of l)c&&Xs(c,4);wr()}function Po(e,t){const n=fn.get(e);return n&&n.get(t)}const No=hr("__proto__,__v_isRef,__isVue"),zs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je)),kr=Fo();function Fo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=J(this);for(let i=0,o=this.length;i{e[t]=function(...n){Ze(),vr();const r=J(this)[t].apply(this,n);return wr(),et(),r}}),e}function $o(e){Je(e)||(e=String(e));const t=J(this);return be(t,"has",e),t.hasOwnProperty(e)}class Js{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Yo:ti:i?ei:Zs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=U(t);if(!s){if(o&&z(kr,n))return Reflect.get(kr,n,r);if(n==="hasOwnProperty")return $o}const l=Reflect.get(t,n,r);return(Je(n)?zs.has(n):No(n))||(s||be(t,"get",n),i)?l:pe(l)?o&&mr(n)?l:l.value:Z(l)?s?Sn(l):Cn(l):l}}class Qs extends Js{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const c=dt(i);if(!Ct(r)&&!dt(r)&&(i=J(i),r=J(r)),!U(t)&&pe(i)&&!pe(r))return c?!1:(i.value=r,!0)}const o=U(t)&&mr(n)?Number(n)e,En=e=>Reflect.getPrototypeOf(e);function Gt(e,t,n=!1,r=!1){e=e.__v_raw;const s=J(e),i=J(t);n||(Ye(t,i)&&be(s,"get",t),be(s,"get",i));const{has:o}=En(s),l=r?Er:n?xr:Ft;if(o.call(s,t))return l(e.get(t));if(o.call(s,i))return l(e.get(i));e!==s&&e.get(t)}function Xt(e,t=!1){const n=this.__v_raw,r=J(n),s=J(e);return t||(Ye(e,s)&&be(r,"has",e),be(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Yt(e,t=!1){return e=e.__v_raw,!t&&be(J(e),"iterate",at),Reflect.get(e,"size",e)}function Kr(e,t=!1){!t&&!Ct(e)&&!dt(e)&&(e=J(e));const n=J(this);return En(n).has.call(n,e)||(n.add(e),He(n,"add",e,e)),this}function Wr(e,t,n=!1){!n&&!Ct(t)&&!dt(t)&&(t=J(t));const r=J(this),{has:s,get:i}=En(r);let o=s.call(r,e);o||(e=J(e),o=s.call(r,e));const l=i.call(r,e);return r.set(e,t),o?Ye(t,l)&&He(r,"set",e,t):He(r,"add",e,t),this}function qr(e){const t=J(this),{has:n,get:r}=En(t);let s=n.call(t,e);s||(e=J(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&He(t,"delete",e,void 0),i}function Gr(){const e=J(this),t=e.size!==0,n=e.clear();return t&&He(e,"clear",void 0,void 0),n}function zt(e,t){return function(r,s){const i=this,o=i.__v_raw,l=J(o),c=t?Er:e?xr:Ft;return!e&&be(l,"iterate",at),o.forEach((u,d)=>r.call(s,c(u),c(d),i))}}function Jt(e,t,n){return function(...r){const s=this.__v_raw,i=J(s),o=yt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,u=s[e](...r),d=n?Er:t?xr:Ft;return!t&&be(i,"iterate",c?sr:at),{next(){const{value:h,done:y}=u.next();return y?{value:h,done:y}:{value:l?[d(h[0]),d(h[1])]:d(h),done:y}},[Symbol.iterator](){return this}}}}function Ve(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Uo(){const e={get(i){return Gt(this,i)},get size(){return Yt(this)},has:Xt,add:Kr,set:Wr,delete:qr,clear:Gr,forEach:zt(!1,!1)},t={get(i){return Gt(this,i,!1,!0)},get size(){return Yt(this)},has:Xt,add(i){return Kr.call(this,i,!0)},set(i,o){return Wr.call(this,i,o,!0)},delete:qr,clear:Gr,forEach:zt(!1,!0)},n={get(i){return Gt(this,i,!0)},get size(){return Yt(this,!0)},has(i){return Xt.call(this,i,!0)},add:Ve("add"),set:Ve("set"),delete:Ve("delete"),clear:Ve("clear"),forEach:zt(!0,!1)},r={get(i){return Gt(this,i,!0,!0)},get size(){return Yt(this,!0)},has(i){return Xt.call(this,i,!0)},add:Ve("add"),set:Ve("set"),delete:Ve("delete"),clear:Ve("clear"),forEach:zt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Jt(i,!1,!1),n[i]=Jt(i,!0,!1),t[i]=Jt(i,!1,!0),r[i]=Jt(i,!0,!0)}),[e,n,t,r]}const[Bo,ko,Ko,Wo]=Uo();function Cr(e,t){const n=t?e?Wo:Ko:e?ko:Bo;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(z(n,s)&&s in r?n:r,s,i)}const qo={get:Cr(!1,!1)},Go={get:Cr(!1,!0)},Xo={get:Cr(!0,!1)};const Zs=new WeakMap,ei=new WeakMap,ti=new WeakMap,Yo=new WeakMap;function zo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jo(e){return e.__v_skip||!Object.isExtensible(e)?0:zo(yo(e))}function Cn(e){return dt(e)?e:Sr(e,!1,jo,qo,Zs)}function Qo(e){return Sr(e,!1,Vo,Go,ei)}function Sn(e){return Sr(e,!0,Do,Xo,ti)}function Sr(e,t,n,r,s){if(!Z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Jo(e);if(o===0)return e;const l=new Proxy(e,o===2?r:n);return s.set(e,l),l}function bt(e){return dt(e)?bt(e.__v_raw):!!(e&&e.__v_isReactive)}function dt(e){return!!(e&&e.__v_isReadonly)}function Ct(e){return!!(e&&e.__v_isShallow)}function ni(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function ln(e){return Object.isExtensible(e)&&Ds(e,"__v_skip",!0),e}const Ft=e=>Z(e)?Cn(e):e,xr=e=>Z(e)?Sn(e):e;class ri{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new br(()=>t(this._value),()=>Lt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=J(this);return(!t._cacheable||t.effect.dirty)&&Ye(t._value,t._value=t.effect.run())&&Lt(t,4),Tr(t),t.effect._dirtyLevel>=2&&Lt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Zo(e,t,n=!1){let r,s;const i=W(e);return i?(r=e,s=Te):(r=e.get,s=e.set),new ri(r,s,i||!s,n)}function Tr(e){var t;qe&&ct&&(e=J(e),Gs(ct,(t=e.dep)!=null?t:e.dep=Ys(()=>e.dep=void 0,e instanceof ri?e:void 0)))}function Lt(e,t=4,n,r){e=J(e);const s=e.dep;s&&Xs(s,t)}function pe(e){return!!(e&&e.__v_isRef===!0)}function le(e){return ii(e,!1)}function si(e){return ii(e,!0)}function ii(e,t){return pe(e)?e:new el(e,t)}class el{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:J(t),this._value=n?t:Ft(t)}get value(){return Tr(this),this._value}set value(t){const n=this.__v_isShallow||Ct(t)||dt(t);t=n?t:J(t),Ye(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:Ft(t),Lt(this,4))}}function oi(e){return pe(e)?e.value:e}const tl={get:(e,t,n)=>oi(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return pe(s)&&!pe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function li(e){return bt(e)?e:new Proxy(e,tl)}class nl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Tr(this),()=>Lt(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function rl(e){return new nl(e)}class sl{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Po(J(this._object),this._key)}}class il{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ol(e,t,n){return pe(e)?e:W(e)?new il(e):Z(e)&&arguments.length>1?ll(e,t,n):le(e)}function ll(e,t,n){const r=e[t];return pe(r)?r:new sl(e,t,n)}/** +* @vue/runtime-core v3.4.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Ge(e,t,n,r){try{return r?e(...r):e()}catch(s){Ut(s,t,n)}}function Ae(e,t,n,r){if(W(e)){const s=Ge(e,t,n,r);return s&&$s(s)&&s.catch(i=>{Ut(i,t,n)}),s}if(U(e)){const s=[];for(let i=0;i>>1,s=de[r],i=Ht(s);iPe&&de.splice(t,1)}function fl(e){U(e)?vt.push(...e):(!ke||!ke.includes(e,e.allowRecurse?it+1:it))&&vt.push(e),ai()}function Xr(e,t,n=$t?Pe+1:0){for(;nHt(n)-Ht(r));if(vt.length=0,ke){ke.push(...t);return}for(ke=t,it=0;ite.id==null?1/0:e.id,dl=(e,t)=>{const n=Ht(e)-Ht(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ui(e){ir=!1,$t=!0,de.sort(dl);try{for(Pe=0;Pe{r._d&&cs(-1);const i=hn(t);let o;try{o=e(...s)}finally{hn(i),r._d&&cs(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Me(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o{e.isMounted=!0}),mi(()=>{e.isUnmounting=!0}),e}const Ce=[Function,Array],fi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ce,onEnter:Ce,onAfterEnter:Ce,onEnterCancelled:Ce,onBeforeLeave:Ce,onLeave:Ce,onAfterLeave:Ce,onLeaveCancelled:Ce,onBeforeAppear:Ce,onAppear:Ce,onAfterAppear:Ce,onAppearCancelled:Ce},di=e=>{const t=e.subTree;return t.component?di(t.component):t},gl={name:"BaseTransition",props:fi,setup(e,{slots:t}){const n=Mn(),r=pl();return()=>{const s=t.default&&pi(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const y of s)if(y.type!==me){i=y;break}}const o=J(e),{mode:l}=o;if(r.isLeaving)return jn(i);const c=Yr(i);if(!c)return jn(i);let u=or(c,o,r,n,y=>u=y);pn(c,u);const d=n.subTree,h=d&&Yr(d);if(h&&h.type!==me&&!lt(c,h)&&di(n).type!==me){const y=or(h,o,r,n);if(pn(h,y),l==="out-in"&&c.type!==me)return r.isLeaving=!0,y.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},jn(i);l==="in-out"&&c.type!==me&&(y.delayLeave=(C,A,I)=>{const B=hi(r,h);B[String(h.key)]=h,C[Ke]=()=>{A(),C[Ke]=void 0,delete u.delayedLeave},u.delayedLeave=I})}return i}}},ml=gl;function hi(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function or(e,t,n,r,s){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:d,onEnterCancelled:h,onBeforeLeave:y,onLeave:C,onAfterLeave:A,onLeaveCancelled:I,onBeforeAppear:B,onAppear:G,onAfterAppear:D,onAppearCancelled:g}=t,m=String(e.key),P=hi(n,e),O=(M,b)=>{M&&Ae(M,r,9,b)},k=(M,b)=>{const N=b[1];O(M,b),U(M)?M.every(S=>S.length<=1)&&N():M.length<=1&&N()},V={mode:o,persisted:l,beforeEnter(M){let b=c;if(!n.isMounted)if(i)b=B||c;else return;M[Ke]&&M[Ke](!0);const N=P[m];N&<(e,N)&&N.el[Ke]&&N.el[Ke](),O(b,[M])},enter(M){let b=u,N=d,S=h;if(!n.isMounted)if(i)b=G||u,N=D||d,S=g||h;else return;let q=!1;const ee=M[Qt]=ne=>{q||(q=!0,ne?O(S,[M]):O(N,[M]),V.delayedLeave&&V.delayedLeave(),M[Qt]=void 0)};b?k(b,[M,ee]):ee()},leave(M,b){const N=String(e.key);if(M[Qt]&&M[Qt](!0),n.isUnmounting)return b();O(y,[M]);let S=!1;const q=M[Ke]=ee=>{S||(S=!0,b(),ee?O(I,[M]):O(A,[M]),M[Ke]=void 0,P[N]===e&&delete P[N])};P[N]=e,C?k(C,[M,q]):q()},clone(M){const b=or(M,t,n,r,s);return s&&s(b),b}};return V}function jn(e){if(Bt(e))return e=ze(e),e.children=null,e}function Yr(e){if(!Bt(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&W(n.default))return n.default()}}function pn(e,t){e.shapeFlag&6&&e.component?pn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function pi(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Ya(e){W(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:i,suspensible:o=!0,onError:l}=e;let c=null,u,d=0;const h=()=>(d++,c=null,y()),y=()=>{let C;return c||(C=c=t().catch(A=>{if(A=A instanceof Error?A:new Error(String(A)),l)return new Promise((I,B)=>{l(A,()=>I(h()),()=>B(A),d+1)});throw A}).then(A=>C!==c&&c?c:(A&&(A.__esModule||A[Symbol.toStringTag]==="Module")&&(A=A.default),u=A,A)))};return Rr({name:"AsyncComponentWrapper",__asyncLoader:y,get __asyncResolved(){return u},setup(){const C=ae;if(u)return()=>Dn(u,C);const A=D=>{c=null,Ut(D,C,13,!r)};if(o&&C.suspense||Kt)return y().then(D=>()=>Dn(D,C)).catch(D=>(A(D),()=>r?ie(r,{error:D}):null));const I=le(!1),B=le(),G=le(!!s);return s&&setTimeout(()=>{G.value=!1},s),i!=null&&setTimeout(()=>{if(!I.value&&!B.value){const D=new Error(`Async component timed out after ${i}ms.`);A(D),B.value=D}},i),y().then(()=>{I.value=!0,C.parent&&Bt(C.parent.vnode)&&(C.parent.effect.dirty=!0,Tn(C.parent.update))}).catch(D=>{A(D),B.value=D}),()=>{if(I.value&&u)return Dn(u,C);if(B.value&&r)return ie(r,{error:B.value});if(n&&!G.value)return ie(n)}}})}function Dn(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,o=ie(e,r,s);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const Bt=e=>e.type.__isKeepAlive;function yl(e,t){gi(e,"a",t)}function _l(e,t){gi(e,"da",t)}function gi(e,t,n=ae){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Rn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Bt(s.parent.vnode)&&bl(r,t,n,s),s=s.parent}}function bl(e,t,n,r){const s=Rn(t,e,r,!0);On(()=>{gr(r[t],s)},n)}function Rn(e,t,n=ae,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Ze();const l=kt(n),c=Ae(t,n,e,o);return l(),et(),c});return r?s.unshift(i):s.push(i),i}}const De=e=>(t,n=ae)=>{(!Kt||e==="sp")&&Rn(e,(...r)=>t(...r),n)},vl=De("bm"),xt=De("m"),wl=De("bu"),El=De("u"),mi=De("bum"),On=De("um"),Cl=De("sp"),Sl=De("rtg"),xl=De("rtc");function Tl(e,t=ae){Rn("ec",e,t)}const yi="components";function za(e,t){return bi(yi,e,!0,t)||e}const _i=Symbol.for("v-ndc");function Ja(e){return oe(e)?bi(yi,e,!1)||e:e||_i}function bi(e,t,n=!0,r=!1){const s=he||ae;if(s){const i=s.type;{const l=yc(i,!1);if(l&&(l===t||l===Oe(t)||l===wn(Oe(t))))return i}const o=zr(s[e]||i[e],t)||zr(s.appContext[e],t);return!o&&r?i:o}}function zr(e,t){return e&&(e[t]||e[Oe(t)]||e[wn(Oe(t))])}function Qa(e,t,n,r){let s;const i=n;if(U(e)||oe(e)){s=new Array(e.length);for(let o=0,l=e.length;ot(o,l,void 0,i));else{const o=Object.keys(e);s=new Array(o.length);for(let l=0,c=o.length;lyn(t)?!(t.type===me||t.type===_e&&!vi(t.children)):!0)?e:null}function eu(e,t){const n={};for(const r in e)n[/[A-Z]/.test(r)?`on:${r}`:on(r)]=e[r];return n}const lr=e=>e?Wi(e)?Mr(e):lr(e.parent):null,It=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>lr(e.parent),$root:e=>lr(e.root),$emit:e=>e.emit,$options:e=>Or(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Tn(e.update)}),$nextTick:e=>e.n||(e.n=xn.bind(e.proxy)),$watch:e=>Zl.bind(e)}),Vn=(e,t)=>e!==re&&!e.__isScriptSetup&&z(e,t),Al={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const C=o[t];if(C!==void 0)switch(C){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Vn(r,t))return o[t]=1,r[t];if(s!==re&&z(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&z(u,t))return o[t]=3,i[t];if(n!==re&&z(n,t))return o[t]=4,n[t];cr&&(o[t]=0)}}const d=It[t];let h,y;if(d)return t==="$attrs"&&be(e.attrs,"get",""),d(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==re&&z(n,t))return o[t]=4,n[t];if(y=c.config.globalProperties,z(y,t))return y[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Vn(s,t)?(s[t]=n,!0):r!==re&&z(r,t)?(r[t]=n,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let l;return!!n[o]||e!==re&&z(e,o)||Vn(t,o)||(l=i[0])&&z(l,o)||z(r,o)||z(It,o)||z(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function tu(){return Rl().slots}function Rl(){const e=Mn();return e.setupContext||(e.setupContext=Gi(e))}function Jr(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let cr=!0;function Ol(e){const t=Or(e),n=e.proxy,r=e.ctx;cr=!1,t.beforeCreate&&Qr(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:l,provide:c,inject:u,created:d,beforeMount:h,mounted:y,beforeUpdate:C,updated:A,activated:I,deactivated:B,beforeDestroy:G,beforeUnmount:D,destroyed:g,unmounted:m,render:P,renderTracked:O,renderTriggered:k,errorCaptured:V,serverPrefetch:M,expose:b,inheritAttrs:N,components:S,directives:q,filters:ee}=t;if(u&&Ll(u,r,null),o)for(const Y in o){const $=o[Y];W($)&&(r[Y]=$.bind(n))}if(s){const Y=s.call(n,n);Z(Y)&&(e.data=Cn(Y))}if(cr=!0,i)for(const Y in i){const $=i[Y],Fe=W($)?$.bind(n,n):W($.get)?$.get.bind(n,n):Te,Wt=!W($)&&W($.set)?$.set.bind(n):Te,tt=se({get:Fe,set:Wt});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>tt.value,set:Le=>tt.value=Le})}if(l)for(const Y in l)wi(l[Y],r,n,Y);if(c){const Y=W(c)?c.call(n):c;Reflect.ownKeys(Y).forEach($=>{$l($,Y[$])})}d&&Qr(d,e,"c");function j(Y,$){U($)?$.forEach(Fe=>Y(Fe.bind(n))):$&&Y($.bind(n))}if(j(vl,h),j(xt,y),j(wl,C),j(El,A),j(yl,I),j(_l,B),j(Tl,V),j(xl,O),j(Sl,k),j(mi,D),j(On,m),j(Cl,M),U(b))if(b.length){const Y=e.exposed||(e.exposed={});b.forEach($=>{Object.defineProperty(Y,$,{get:()=>n[$],set:Fe=>n[$]=Fe})})}else e.exposed||(e.exposed={});P&&e.render===Te&&(e.render=P),N!=null&&(e.inheritAttrs=N),S&&(e.components=S),q&&(e.directives=q)}function Ll(e,t,n=Te){U(e)&&(e=ar(e));for(const r in e){const s=e[r];let i;Z(s)?"default"in s?i=Et(s.from||r,s.default,!0):i=Et(s.from||r):i=Et(s),pe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Qr(e,t,n){Ae(U(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function wi(e,t,n,r){const s=r.includes(".")?$i(n,r):()=>n[r];if(oe(e)){const i=t[e];W(i)&&Ne(s,i)}else if(W(e))Ne(s,e.bind(n));else if(Z(e))if(U(e))e.forEach(i=>wi(i,t,n,r));else{const i=W(e.handler)?e.handler.bind(n):t[e.handler];W(i)&&Ne(s,i,e)}}function Or(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(u=>gn(c,u,o,!0)),gn(c,t,o)),Z(t)&&i.set(t,c),c}function gn(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&gn(e,i,n,!0),s&&s.forEach(o=>gn(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const l=Il[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Il={data:Zr,props:es,emits:es,methods:Ot,computed:Ot,beforeCreate:ge,created:ge,beforeMount:ge,mounted:ge,beforeUpdate:ge,updated:ge,beforeDestroy:ge,beforeUnmount:ge,destroyed:ge,unmounted:ge,activated:ge,deactivated:ge,errorCaptured:ge,serverPrefetch:ge,components:Ot,directives:Ot,watch:Pl,provide:Zr,inject:Ml};function Zr(e,t){return t?e?function(){return ue(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function Ml(e,t){return Ot(ar(e),ar(t))}function ar(e){if(U(e)){const t={};for(let n=0;n1)return n&&W(t)?t.call(r&&r.proxy):t}}const Ci={},Si=()=>Object.create(Ci),xi=e=>Object.getPrototypeOf(e)===Ci;function Hl(e,t,n,r=!1){const s={},i=Si();e.propsDefaults=Object.create(null),Ti(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Qo(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function jl(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,l=J(s),[c]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[y,C]=Ai(h,t,!0);ue(o,y),C&&l.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!c)return Z(e)&&r.set(e,mt),mt;if(U(i))for(let d=0;d-1,C[1]=I<0||A-1||z(C,"default"))&&l.push(h)}}}const u=[o,l];return Z(e)&&r.set(e,u),u}function ts(e){return e[0]!=="$"&&!_t(e)}function ns(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function rs(e,t){return ns(e)===ns(t)}function ss(e,t){return U(t)?t.findIndex(n=>rs(n,e)):W(t)&&rs(t,e)?0:-1}const Ri=e=>e[0]==="_"||e==="$stable",Lr=e=>U(e)?e.map(xe):[xe(e)],Vl=(e,t,n)=>{if(t._n)return t;const r=hl((...s)=>Lr(t(...s)),n);return r._c=!1,r},Oi=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ri(s))continue;const i=e[s];if(W(i))t[s]=Vl(s,i,r);else if(i!=null){const o=Lr(i);t[s]=()=>o}}},Li=(e,t)=>{const n=Lr(t);e.slots.default=()=>n},Ii=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Ul=(e,t,n)=>{const r=e.slots=Si();if(e.vnode.shapeFlag&32){const s=t._;s?(Ii(r,t,n),n&&Ds(r,"_",s,!0)):Oi(t,r)}else t&&Li(e,t)},Bl=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=re;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Ii(s,t,n):(i=!t.$stable,Oi(t,s)),o=t}else t&&(Li(e,t),o={default:1});if(i)for(const l in s)!Ri(l)&&o[l]==null&&delete s[l]};function mn(e,t,n,r,s=!1){if(U(e)){e.forEach((y,C)=>mn(y,t&&(U(t)?t[C]:t),n,r,s));return}if(wt(r)&&!s)return;const i=r.shapeFlag&4?Mr(r.component):r.el,o=s?null:i,{i:l,r:c}=e,u=t&&t.r,d=l.refs===re?l.refs={}:l.refs,h=l.setupState;if(u!=null&&u!==c&&(oe(u)?(d[u]=null,z(h,u)&&(h[u]=null)):pe(u)&&(u.value=null)),W(c))Ge(c,l,12,[o,d]);else{const y=oe(c),C=pe(c);if(y||C){const A=()=>{if(e.f){const I=y?z(h,c)?h[c]:d[c]:c.value;s?U(I)&&gr(I,i):U(I)?I.includes(i)||I.push(i):y?(d[c]=[i],z(h,c)&&(h[c]=d[c])):(c.value=[i],e.k&&(d[e.k]=c.value))}else y?(d[c]=o,z(h,c)&&(h[c]=o)):C&&(c.value=o,e.k&&(d[e.k]=o))};o?(A.id=-1,ye(A,n)):A()}}}const kl=Symbol("_vte"),Kl=e=>e.__isTeleport;let is=!1;const gt=()=>{is||(console.error("Hydration completed but contains mismatches."),is=!0)},Wl=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",ql=e=>e.namespaceURI.includes("MathML"),Zt=e=>{if(Wl(e))return"svg";if(ql(e))return"mathml"},en=e=>e.nodeType===8;function Gl(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:u}}=e,d=(g,m)=>{if(!m.hasChildNodes()){n(null,g,m),dn(),m._vnode=g;return}h(m.firstChild,g,null,null,null),dn(),m._vnode=g},h=(g,m,P,O,k,V=!1)=>{V=V||!!m.dynamicChildren;const M=en(g)&&g.data==="[",b=()=>I(g,m,P,O,k,M),{type:N,ref:S,shapeFlag:q,patchFlag:ee}=m;let ne=g.nodeType;m.el=g,ee===-2&&(V=!1,m.dynamicChildren=null);let j=null;switch(N){case ut:ne!==3?m.children===""?(c(m.el=s(""),o(g),g),j=g):j=b():(g.data!==m.children&&(gt(),g.data=m.children),j=i(g));break;case me:D(g)?(j=i(g),G(m.el=g.content.firstChild,g,P)):ne!==8||M?j=b():j=i(g);break;case Pt:if(M&&(g=i(g),ne=g.nodeType),ne===1||ne===3){j=g;const Y=!m.children.length;for(let $=0;${V=V||!!m.dynamicChildren;const{type:M,props:b,patchFlag:N,shapeFlag:S,dirs:q,transition:ee}=m,ne=M==="input"||M==="option";if(ne||N!==-1){q&&Me(m,null,P,"created");let j=!1;if(D(g)){j=Mi(O,ee)&&P&&P.vnode.props&&P.vnode.props.appear;const $=g.content.firstChild;j&&ee.beforeEnter($),G($,g,P),m.el=g=$}if(S&16&&!(b&&(b.innerHTML||b.textContent))){let $=C(g.firstChild,m,g,P,O,k,V);for(;$;){gt();const Fe=$;$=$.nextSibling,l(Fe)}}else S&8&&g.textContent!==m.children&&(gt(),g.textContent=m.children);if(b){if(ne||!V||N&48)for(const $ in b)(ne&&($.endsWith("value")||$==="indeterminate")||Vt($)&&!_t($)||$[0]===".")&&r(g,$,null,b[$],void 0,P);else if(b.onClick)r(g,"onClick",null,b.onClick,void 0,P);else if(N&4&&bt(b.style))for(const $ in b.style)b.style[$]}let Y;(Y=b&&b.onVnodeBeforeMount)&&Se(Y,P,m),q&&Me(m,null,P,"beforeMount"),((Y=b&&b.onVnodeMounted)||q||j)&&ji(()=>{Y&&Se(Y,P,m),j&&ee.enter(g),q&&Me(m,null,P,"mounted")},O)}return g.nextSibling},C=(g,m,P,O,k,V,M)=>{M=M||!!m.dynamicChildren;const b=m.children,N=b.length;for(let S=0;S{const{slotScopeIds:M}=m;M&&(k=k?k.concat(M):M);const b=o(g),N=C(i(g),m,b,P,O,k,V);return N&&en(N)&&N.data==="]"?i(m.anchor=N):(gt(),c(m.anchor=u("]"),b,N),N)},I=(g,m,P,O,k,V)=>{if(gt(),m.el=null,V){const N=B(g);for(;;){const S=i(g);if(S&&S!==N)l(S);else break}}const M=i(g),b=o(g);return l(g),n(null,m,b,M,P,O,Zt(b),k),M},B=(g,m="[",P="]")=>{let O=0;for(;g;)if(g=i(g),g&&en(g)&&(g.data===m&&O++,g.data===P)){if(O===0)return i(g);O--}return g},G=(g,m,P)=>{const O=m.parentNode;O&&O.replaceChild(g,m);let k=P;for(;k;)k.vnode.el===m&&(k.vnode.el=k.subTree.el=g),k=k.parent},D=g=>g.nodeType===1&&g.tagName.toLowerCase()==="template";return[d,h]}const ye=ji;function Xl(e){return Yl(e,Gl)}function Yl(e,t){const n=Vs();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:l,createComment:c,setText:u,setElementText:d,parentNode:h,nextSibling:y,setScopeId:C=Te,insertStaticContent:A}=e,I=(a,f,p,w=null,_=null,E=null,R=void 0,x=null,T=!!f.dynamicChildren)=>{if(a===f)return;a&&!lt(a,f)&&(w=qt(a),Le(a,_,E,!0),a=null),f.patchFlag===-2&&(T=!1,f.dynamicChildren=null);const{type:v,ref:L,shapeFlag:H}=f;switch(v){case ut:B(a,f,p,w);break;case me:G(a,f,p,w);break;case Pt:a==null&&D(f,p,w,R);break;case _e:S(a,f,p,w,_,E,R,x,T);break;default:H&1?P(a,f,p,w,_,E,R,x,T):H&6?q(a,f,p,w,_,E,R,x,T):(H&64||H&128)&&v.process(a,f,p,w,_,E,R,x,T,ht)}L!=null&&_&&mn(L,a&&a.ref,E,f||a,!f)},B=(a,f,p,w)=>{if(a==null)r(f.el=l(f.children),p,w);else{const _=f.el=a.el;f.children!==a.children&&u(_,f.children)}},G=(a,f,p,w)=>{a==null?r(f.el=c(f.children||""),p,w):f.el=a.el},D=(a,f,p,w)=>{[a.el,a.anchor]=A(a.children,f,p,w,a.el,a.anchor)},g=({el:a,anchor:f},p,w)=>{let _;for(;a&&a!==f;)_=y(a),r(a,p,w),a=_;r(f,p,w)},m=({el:a,anchor:f})=>{let p;for(;a&&a!==f;)p=y(a),s(a),a=p;s(f)},P=(a,f,p,w,_,E,R,x,T)=>{f.type==="svg"?R="svg":f.type==="math"&&(R="mathml"),a==null?O(f,p,w,_,E,R,x,T):M(a,f,_,E,R,x,T)},O=(a,f,p,w,_,E,R,x)=>{let T,v;const{props:L,shapeFlag:H,transition:F,dirs:K}=a;if(T=a.el=o(a.type,E,L&&L.is,L),H&8?d(T,a.children):H&16&&V(a.children,T,null,w,_,Un(a,E),R,x),K&&Me(a,null,w,"created"),k(T,a,a.scopeId,R,w),L){for(const te in L)te!=="value"&&!_t(te)&&i(T,te,null,L[te],E,w);"value"in L&&i(T,"value",null,L.value,E),(v=L.onVnodeBeforeMount)&&Se(v,w,a)}K&&Me(a,null,w,"beforeMount");const X=Mi(_,F);X&&F.beforeEnter(T),r(T,f,p),((v=L&&L.onVnodeMounted)||X||K)&&ye(()=>{v&&Se(v,w,a),X&&F.enter(T),K&&Me(a,null,w,"mounted")},_)},k=(a,f,p,w,_)=>{if(p&&C(a,p),w)for(let E=0;E{for(let v=T;v{const x=f.el=a.el;let{patchFlag:T,dynamicChildren:v,dirs:L}=f;T|=a.patchFlag&16;const H=a.props||re,F=f.props||re;let K;if(p&&nt(p,!1),(K=F.onVnodeBeforeUpdate)&&Se(K,p,f,a),L&&Me(f,a,p,"beforeUpdate"),p&&nt(p,!0),(H.innerHTML&&F.innerHTML==null||H.textContent&&F.textContent==null)&&d(x,""),v?b(a.dynamicChildren,v,x,p,w,Un(f,_),E):R||$(a,f,x,null,p,w,Un(f,_),E,!1),T>0){if(T&16)N(x,H,F,p,_);else if(T&2&&H.class!==F.class&&i(x,"class",null,F.class,_),T&4&&i(x,"style",H.style,F.style,_),T&8){const X=f.dynamicProps;for(let te=0;te{K&&Se(K,p,f,a),L&&Me(f,a,p,"updated")},w)},b=(a,f,p,w,_,E,R)=>{for(let x=0;x{if(f!==p){if(f!==re)for(const E in f)!_t(E)&&!(E in p)&&i(a,E,f[E],null,_,w);for(const E in p){if(_t(E))continue;const R=p[E],x=f[E];R!==x&&E!=="value"&&i(a,E,x,R,_,w)}"value"in p&&i(a,"value",f.value,p.value,_)}},S=(a,f,p,w,_,E,R,x,T)=>{const v=f.el=a?a.el:l(""),L=f.anchor=a?a.anchor:l("");let{patchFlag:H,dynamicChildren:F,slotScopeIds:K}=f;K&&(x=x?x.concat(K):K),a==null?(r(v,p,w),r(L,p,w),V(f.children||[],p,L,_,E,R,x,T)):H>0&&H&64&&F&&a.dynamicChildren?(b(a.dynamicChildren,F,p,_,E,R,x),(f.key!=null||_&&f===_.subTree)&&Pi(a,f,!0)):$(a,f,p,L,_,E,R,x,T)},q=(a,f,p,w,_,E,R,x,T)=>{f.slotScopeIds=x,a==null?f.shapeFlag&512?_.ctx.activate(f,p,w,R,T):ee(f,p,w,_,E,R,T):ne(a,f,T)},ee=(a,f,p,w,_,E,R)=>{const x=a.component=hc(a,w,_);if(Bt(a)&&(x.ctx.renderer=ht),pc(x,!1,R),x.asyncDep){if(_&&_.registerDep(x,j,R),!a.el){const T=x.subTree=ie(me);G(null,T,f,p)}}else j(x,a,f,p,_,E,R)},ne=(a,f,p)=>{const w=f.component=a.component;if(sc(a,f,p))if(w.asyncDep&&!w.asyncResolved){Y(w,f,p);return}else w.next=f,ul(w.update),w.effect.dirty=!0,w.update();else f.el=a.el,w.vnode=f},j=(a,f,p,w,_,E,R)=>{const x=()=>{if(a.isMounted){let{next:L,bu:H,u:F,parent:K,vnode:X}=a;{const pt=Ni(a);if(pt){L&&(L.el=X.el,Y(a,L,R)),pt.asyncDep.then(()=>{a.isUnmounted||x()});return}}let te=L,Q;nt(a,!1),L?(L.el=X.el,Y(a,L,R)):L=X,H&&$n(H),(Q=L.props&&L.props.onVnodeBeforeUpdate)&&Se(Q,K,L,X),nt(a,!0);const ce=Bn(a),Re=a.subTree;a.subTree=ce,I(Re,ce,h(Re.el),qt(Re),a,_,E),L.el=ce.el,te===null&&ic(a,ce.el),F&&ye(F,_),(Q=L.props&&L.props.onVnodeUpdated)&&ye(()=>Se(Q,K,L,X),_)}else{let L;const{el:H,props:F}=f,{bm:K,m:X,parent:te}=a,Q=wt(f);if(nt(a,!1),K&&$n(K),!Q&&(L=F&&F.onVnodeBeforeMount)&&Se(L,te,f),nt(a,!0),H&&Fn){const ce=()=>{a.subTree=Bn(a),Fn(H,a.subTree,a,_,null)};Q?f.type.__asyncLoader().then(()=>!a.isUnmounted&&ce()):ce()}else{const ce=a.subTree=Bn(a);I(null,ce,p,w,a,_,E),f.el=ce.el}if(X&&ye(X,_),!Q&&(L=F&&F.onVnodeMounted)){const ce=f;ye(()=>Se(L,te,ce),_)}(f.shapeFlag&256||te&&wt(te.vnode)&&te.vnode.shapeFlag&256)&&a.a&&ye(a.a,_),a.isMounted=!0,f=p=w=null}},T=a.effect=new br(x,Te,()=>Tn(v),a.scope),v=a.update=()=>{T.dirty&&T.run()};v.i=a,v.id=a.uid,nt(a,!0),v()},Y=(a,f,p)=>{f.component=a;const w=a.vnode.props;a.vnode=f,a.next=null,jl(a,f.props,w,p),Bl(a,f.children,p),Ze(),Xr(a),et()},$=(a,f,p,w,_,E,R,x,T=!1)=>{const v=a&&a.children,L=a?a.shapeFlag:0,H=f.children,{patchFlag:F,shapeFlag:K}=f;if(F>0){if(F&128){Wt(v,H,p,w,_,E,R,x,T);return}else if(F&256){Fe(v,H,p,w,_,E,R,x,T);return}}K&8?(L&16&&Tt(v,_,E),H!==v&&d(p,H)):L&16?K&16?Wt(v,H,p,w,_,E,R,x,T):Tt(v,_,E,!0):(L&8&&d(p,""),K&16&&V(H,p,w,_,E,R,x,T))},Fe=(a,f,p,w,_,E,R,x,T)=>{a=a||mt,f=f||mt;const v=a.length,L=f.length,H=Math.min(v,L);let F;for(F=0;FL?Tt(a,_,E,!0,!1,H):V(f,p,w,_,E,R,x,T,H)},Wt=(a,f,p,w,_,E,R,x,T)=>{let v=0;const L=f.length;let H=a.length-1,F=L-1;for(;v<=H&&v<=F;){const K=a[v],X=f[v]=T?We(f[v]):xe(f[v]);if(lt(K,X))I(K,X,p,null,_,E,R,x,T);else break;v++}for(;v<=H&&v<=F;){const K=a[H],X=f[F]=T?We(f[F]):xe(f[F]);if(lt(K,X))I(K,X,p,null,_,E,R,x,T);else break;H--,F--}if(v>H){if(v<=F){const K=F+1,X=KF)for(;v<=H;)Le(a[v],_,E,!0),v++;else{const K=v,X=v,te=new Map;for(v=X;v<=F;v++){const ve=f[v]=T?We(f[v]):xe(f[v]);ve.key!=null&&te.set(ve.key,v)}let Q,ce=0;const Re=F-X+1;let pt=!1,Hr=0;const At=new Array(Re);for(v=0;v=Re){Le(ve,_,E,!0);continue}let Ie;if(ve.key!=null)Ie=te.get(ve.key);else for(Q=X;Q<=F;Q++)if(At[Q-X]===0&<(ve,f[Q])){Ie=Q;break}Ie===void 0?Le(ve,_,E,!0):(At[Ie-X]=v+1,Ie>=Hr?Hr=Ie:pt=!0,I(ve,f[Ie],p,null,_,E,R,x,T),ce++)}const jr=pt?zl(At):mt;for(Q=jr.length-1,v=Re-1;v>=0;v--){const ve=X+v,Ie=f[ve],Dr=ve+1{const{el:E,type:R,transition:x,children:T,shapeFlag:v}=a;if(v&6){tt(a.component.subTree,f,p,w);return}if(v&128){a.suspense.move(f,p,w);return}if(v&64){R.move(a,f,p,ht);return}if(R===_e){r(E,f,p);for(let H=0;Hx.enter(E),_);else{const{leave:H,delayLeave:F,afterLeave:K}=x,X=()=>r(E,f,p),te=()=>{H(E,()=>{X(),K&&K()})};F?F(E,X,te):te()}else r(E,f,p)},Le=(a,f,p,w=!1,_=!1)=>{const{type:E,props:R,ref:x,children:T,dynamicChildren:v,shapeFlag:L,patchFlag:H,dirs:F,cacheIndex:K}=a;if(H===-2&&(_=!1),x!=null&&mn(x,null,p,a,!0),K!=null&&(f.renderCache[K]=void 0),L&256){f.ctx.deactivate(a);return}const X=L&1&&F,te=!wt(a);let Q;if(te&&(Q=R&&R.onVnodeBeforeUnmount)&&Se(Q,f,a),L&6)po(a.component,p,w);else{if(L&128){a.suspense.unmount(p,w);return}X&&Me(a,null,f,"beforeUnmount"),L&64?a.type.remove(a,f,p,ht,w):v&&!v.hasOnce&&(E!==_e||H>0&&H&64)?Tt(v,f,p,!1,!0):(E===_e&&H&384||!_&&L&16)&&Tt(T,f,p),w&&Fr(a)}(te&&(Q=R&&R.onVnodeUnmounted)||X)&&ye(()=>{Q&&Se(Q,f,a),X&&Me(a,null,f,"unmounted")},p)},Fr=a=>{const{type:f,el:p,anchor:w,transition:_}=a;if(f===_e){ho(p,w);return}if(f===Pt){m(a);return}const E=()=>{s(p),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(a.shapeFlag&1&&_&&!_.persisted){const{leave:R,delayLeave:x}=_,T=()=>R(p,E);x?x(a.el,E,T):T()}else E()},ho=(a,f)=>{let p;for(;a!==f;)p=y(a),s(a),a=p;s(f)},po=(a,f,p)=>{const{bum:w,scope:_,update:E,subTree:R,um:x,m:T,a:v}=a;os(T),os(v),w&&$n(w),_.stop(),E&&(E.active=!1,Le(R,a,f,p)),x&&ye(x,f),ye(()=>{a.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&a.asyncDep&&!a.asyncResolved&&a.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Tt=(a,f,p,w=!1,_=!1,E=0)=>{for(let R=E;R{if(a.shapeFlag&6)return qt(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const f=y(a.anchor||a.el),p=f&&f[kl];return p?y(p):f};let Pn=!1;const $r=(a,f,p)=>{a==null?f._vnode&&Le(f._vnode,null,null,!0):I(f._vnode||null,a,f,null,null,null,p),Pn||(Pn=!0,Xr(),dn(),Pn=!1),f._vnode=a},ht={p:I,um:Le,m:tt,r:Fr,mt:ee,mc:V,pc:$,pbc:b,n:qt,o:e};let Nn,Fn;return t&&([Nn,Fn]=t(ht)),{render:$r,hydrate:Nn,createApp:Fl($r,Nn)}}function Un({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function nt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Mi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Pi(e,t,n=!1){const r=e.children,s=t.children;if(U(r)&&U(s))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Ni(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ni(t)}function os(e){if(e)for(let t=0;tEt(Jl);function Fi(e,t){return Ln(e,null,t)}function nu(e,t){return Ln(e,null,{flush:"post"})}const tn={};function Ne(e,t,n){return Ln(e,t,n)}function Ln(e,t,{immediate:n,deep:r,flush:s,once:i,onTrack:o,onTrigger:l}=re){if(t&&i){const O=t;t=(...k)=>{O(...k),P()}}const c=ae,u=O=>r===!0?O:ot(O,r===!1?1:void 0);let d,h=!1,y=!1;if(pe(e)?(d=()=>e.value,h=Ct(e)):bt(e)?(d=()=>u(e),h=!0):U(e)?(y=!0,h=e.some(O=>bt(O)||Ct(O)),d=()=>e.map(O=>{if(pe(O))return O.value;if(bt(O))return u(O);if(W(O))return Ge(O,c,2)})):W(e)?t?d=()=>Ge(e,c,2):d=()=>(C&&C(),Ae(e,c,3,[A])):d=Te,t&&r){const O=d;d=()=>ot(O())}let C,A=O=>{C=g.onStop=()=>{Ge(O,c,4),C=g.onStop=void 0}},I;if(Kt)if(A=Te,t?n&&Ae(t,c,3,[d(),y?[]:void 0,A]):d(),s==="sync"){const O=Ql();I=O.__watcherHandles||(O.__watcherHandles=[])}else return Te;let B=y?new Array(e.length).fill(tn):tn;const G=()=>{if(!(!g.active||!g.dirty))if(t){const O=g.run();(r||h||(y?O.some((k,V)=>Ye(k,B[V])):Ye(O,B)))&&(C&&C(),Ae(t,c,3,[O,B===tn?void 0:y&&B[0]===tn?[]:B,A]),B=O)}else g.run()};G.allowRecurse=!!t;let D;s==="sync"?D=G:s==="post"?D=()=>ye(G,c&&c.suspense):(G.pre=!0,c&&(G.id=c.uid),D=()=>Tn(G));const g=new br(d,Te,D),m=Ks(),P=()=>{g.stop(),m&&gr(m.effects,g)};return t?n?G():B=g.run():s==="post"?ye(g.run.bind(g),c&&c.suspense):g.run(),I&&I.push(P),P}function Zl(e,t,n){const r=this.proxy,s=oe(e)?e.includes(".")?$i(r,e):()=>r[e]:e.bind(r,r);let i;W(t)?i=t:(i=t.handler,n=t);const o=kt(this),l=Ln(s,i.bind(r),n);return o(),l}function $i(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{ot(r,t,n)});else if(js(e)){for(const r in e)ot(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&ot(e[r],t,n)}return e}const ec=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Oe(t)}Modifiers`]||e[`${Qe(t)}Modifiers`];function tc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||re;let s=n;const i=t.startsWith("update:"),o=i&&ec(r,t.slice(7));o&&(o.trim&&(s=n.map(d=>oe(d)?d.trim():d)),o.number&&(s=n.map(vo)));let l,c=r[l=on(t)]||r[l=on(Oe(t))];!c&&i&&(c=r[l=on(Qe(t))]),c&&Ae(c,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ae(u,e,6,s)}}function Hi(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},l=!1;if(!W(e)){const c=u=>{const d=Hi(u,t,!0);d&&(l=!0,ue(o,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(Z(e)&&r.set(e,null),null):(U(i)?i.forEach(c=>o[c]=null):ue(o,i),Z(e)&&r.set(e,o),o)}function In(e,t){return!e||!Vt(t)?!1:(t=t.slice(2).replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,Qe(t))||z(e,t))}function Bn(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:l,emit:c,render:u,renderCache:d,props:h,data:y,setupState:C,ctx:A,inheritAttrs:I}=e,B=hn(e);let G,D;try{if(n.shapeFlag&4){const m=s||r,P=m;G=xe(u.call(P,m,d,h,C,y,A)),D=l}else{const m=t;G=xe(m.length>1?m(h,{attrs:l,slots:o,emit:c}):m(h,null)),D=t.props?l:nc(l)}}catch(m){Nt.length=0,Ut(m,e,1),G=ie(me)}let g=G;if(D&&I!==!1){const m=Object.keys(D),{shapeFlag:P}=g;m.length&&P&7&&(i&&m.some(pr)&&(D=rc(D,i)),g=ze(g,D,!1,!0))}return n.dirs&&(g=ze(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(g.transition=n.transition),G=g,hn(B),G}const nc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vt(n))&&((t||(t={}))[n]=e[n]);return t},rc=(e,t)=>{const n={};for(const r in e)(!pr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function sc(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:l,patchFlag:c}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ls(r,o,u):!!o;if(c&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function ji(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):fl(e)}const _e=Symbol.for("v-fgt"),ut=Symbol.for("v-txt"),me=Symbol.for("v-cmt"),Pt=Symbol.for("v-stc"),Nt=[];let Ee=null;function Di(e=!1){Nt.push(Ee=e?null:[])}function lc(){Nt.pop(),Ee=Nt[Nt.length-1]||null}let jt=1;function cs(e){jt+=e,e<0&&Ee&&(Ee.hasOnce=!0)}function Vi(e){return e.dynamicChildren=jt>0?Ee||mt:null,lc(),jt>0&&Ee&&Ee.push(e),e}function ru(e,t,n,r,s,i){return Vi(ki(e,t,n,r,s,i,!0))}function Ui(e,t,n,r,s){return Vi(ie(e,t,n,r,s,!0))}function yn(e){return e?e.__v_isVNode===!0:!1}function lt(e,t){return e.type===t.type&&e.key===t.key}const Bi=({key:e})=>e??null,cn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?oe(e)||pe(e)||W(e)?{i:he,r:e,k:t,f:!!n}:e:null);function ki(e,t=null,n=null,r=0,s=null,i=e===_e?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bi(t),ref:t&&cn(t),scopeId:An,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:he};return l?(Ir(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=oe(n)?8:16),jt>0&&!o&&Ee&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ee.push(c),c}const ie=cc;function cc(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===_i)&&(e=me),yn(e)){const l=ze(e,t,!0);return n&&Ir(l,n),jt>0&&!i&&Ee&&(l.shapeFlag&6?Ee[Ee.indexOf(e)]=l:Ee.push(l)),l.patchFlag=-2,l}if(_c(e)&&(e=e.__vccOpts),t){t=ac(t);let{class:l,style:c}=t;l&&!oe(l)&&(t.class=_r(l)),Z(c)&&(ni(c)&&!U(c)&&(c=ue({},c)),t.style=yr(c))}const o=oe(e)?1:oc(e)?128:Kl(e)?64:Z(e)?4:W(e)?2:0;return ki(e,t,n,r,s,o,i,!0)}function ac(e){return e?ni(e)||xi(e)?ue({},e):e:null}function ze(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:l,transition:c}=e,u=t?uc(s||{},t):s,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Bi(u),ref:t&&t.ref?n&&i?U(i)?i.concat(cn(t)):[i,cn(t)]:cn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ze(e.ssContent),ssFallback:e.ssFallback&&ze(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&pn(d,c.clone(d)),d}function Ki(e=" ",t=0){return ie(ut,null,e,t)}function su(e,t){const n=ie(Pt,null,e);return n.staticCount=t,n}function iu(e="",t=!1){return t?(Di(),Ui(me,null,e)):ie(me,null,e)}function xe(e){return e==null||typeof e=="boolean"?ie(me):U(e)?ie(_e,null,e.slice()):typeof e=="object"?We(e):ie(ut,null,String(e))}function We(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ze(e)}function Ir(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Ir(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!xi(t)?t._ctx=he:s===3&&he&&(he.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else W(t)?(t={default:t,_ctx:he},n=32):(t=String(t),r&64?(n=16,t=[Ki(t)]):n=8);e.children=t,e.shapeFlag|=n}function uc(...e){const t={};for(let n=0;nae||he;let _n,fr;{const e=Vs(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};_n=t("__VUE_INSTANCE_SETTERS__",n=>ae=n),fr=t("__VUE_SSR_SETTERS__",n=>Kt=n)}const kt=e=>{const t=ae;return _n(e),e.scope.on(),()=>{e.scope.off(),_n(t)}},as=()=>{ae&&ae.scope.off(),_n(null)};function Wi(e){return e.vnode.shapeFlag&4}let Kt=!1;function pc(e,t=!1,n=!1){t&&fr(t);const{props:r,children:s}=e.vnode,i=Wi(e);Hl(e,r,i,t),Ul(e,s,n);const o=i?gc(e,t):void 0;return t&&fr(!1),o}function gc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Al);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Gi(e):null,i=kt(e);Ze();const o=Ge(r,e,0,[e.props,s]);if(et(),i(),$s(o)){if(o.then(as,as),t)return o.then(l=>{us(e,l,t)}).catch(l=>{Ut(l,e,0)});e.asyncDep=o}else us(e,o,t)}else qi(e,t)}function us(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=li(t)),qi(e,n)}let fs;function qi(e,t,n){const r=e.type;if(!e.render){if(!t&&fs&&!r.render){const s=r.template||Or(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,u=ue(ue({isCustomElement:i,delimiters:l},o),c);r.render=fs(s,u)}}e.render=r.render||Te}{const s=kt(e);Ze();try{Ol(e)}finally{et(),s()}}}const mc={get(e,t){return be(e,"get",""),e[t]}};function Gi(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,mc),slots:e.slots,emit:e.emit,expose:t}}function Mr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(li(ln(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in It)return It[n](e)},has(t,n){return n in t||n in It}})):e.proxy}function yc(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}function _c(e){return W(e)&&"__vccOpts"in e}const se=(e,t)=>Zo(e,t,Kt);function dr(e,t,n){const r=arguments.length;return r===2?Z(t)&&!U(t)?yn(t)?ie(e,null,[t]):ie(e,t):ie(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&yn(n)&&(n=[n]),ie(e,t,n))}const bc="3.4.34";/** +* @vue/runtime-dom v3.4.34 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const vc="http://www.w3.org/2000/svg",wc="http://www.w3.org/1998/Math/MathML",$e=typeof document<"u"?document:null,ds=$e&&$e.createElement("template"),Ec={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?$e.createElementNS(vc,e):t==="mathml"?$e.createElementNS(wc,e):n?$e.createElement(e,{is:n}):$e.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>$e.createTextNode(e),createComment:e=>$e.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$e.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{ds.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const l=ds.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ue="transition",Rt="animation",Dt=Symbol("_vtc"),Xi=(e,{slots:t})=>dr(ml,Cc(e),t);Xi.displayName="Transition";const Yi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Xi.props=ue({},fi,Yi);const rt=(e,t=[])=>{U(e)?e.forEach(n=>n(...t)):e&&e(...t)},hs=e=>e?U(e)?e.some(t=>t.length>1):e.length>1:!1;function Cc(e){const t={};for(const S in e)S in Yi||(t[S]=e[S]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=o,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:C=`${n}-leave-to`}=e,A=Sc(s),I=A&&A[0],B=A&&A[1],{onBeforeEnter:G,onEnter:D,onEnterCancelled:g,onLeave:m,onLeaveCancelled:P,onBeforeAppear:O=G,onAppear:k=D,onAppearCancelled:V=g}=t,M=(S,q,ee)=>{st(S,q?d:l),st(S,q?u:o),ee&&ee()},b=(S,q)=>{S._isLeaving=!1,st(S,h),st(S,C),st(S,y),q&&q()},N=S=>(q,ee)=>{const ne=S?k:D,j=()=>M(q,S,ee);rt(ne,[q,j]),ps(()=>{st(q,S?c:i),Be(q,S?d:l),hs(ne)||gs(q,r,I,j)})};return ue(t,{onBeforeEnter(S){rt(G,[S]),Be(S,i),Be(S,o)},onBeforeAppear(S){rt(O,[S]),Be(S,c),Be(S,u)},onEnter:N(!1),onAppear:N(!0),onLeave(S,q){S._isLeaving=!0;const ee=()=>b(S,q);Be(S,h),Be(S,y),Ac(),ps(()=>{S._isLeaving&&(st(S,h),Be(S,C),hs(m)||gs(S,r,B,ee))}),rt(m,[S,ee])},onEnterCancelled(S){M(S,!1),rt(g,[S])},onAppearCancelled(S){M(S,!0),rt(V,[S])},onLeaveCancelled(S){b(S),rt(P,[S])}})}function Sc(e){if(e==null)return null;if(Z(e))return[kn(e.enter),kn(e.leave)];{const t=kn(e);return[t,t]}}function kn(e){return wo(e)}function Be(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Dt]||(e[Dt]=new Set)).add(t)}function st(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Dt];n&&(n.delete(t),n.size||(e[Dt]=void 0))}function ps(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xc=0;function gs(e,t,n,r){const s=e._endId=++xc,i=()=>{s===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=Tc(e,t);if(!o)return r();const u=o+"end";let d=0;const h=()=>{e.removeEventListener(u,y),i()},y=C=>{C.target===e&&++d>=c&&h()};setTimeout(()=>{d(n[A]||"").split(", "),s=r(`${Ue}Delay`),i=r(`${Ue}Duration`),o=ms(s,i),l=r(`${Rt}Delay`),c=r(`${Rt}Duration`),u=ms(l,c);let d=null,h=0,y=0;t===Ue?o>0&&(d=Ue,h=o,y=i.length):t===Rt?u>0&&(d=Rt,h=u,y=c.length):(h=Math.max(o,u),d=h>0?o>u?Ue:Rt:null,y=d?d===Ue?i.length:c.length:0);const C=d===Ue&&/\b(transform|all)(,|$)/.test(r(`${Ue}Property`).toString());return{type:d,timeout:h,propCount:y,hasTransform:C}}function ms(e,t){for(;e.lengthys(n)+ys(e[r])))}function ys(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ac(){return document.body.offsetHeight}function Rc(e,t,n){const r=e[Dt];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const _s=Symbol("_vod"),Oc=Symbol("_vsh"),Lc=Symbol(""),Ic=/(^|;)\s*display\s*:/;function Mc(e,t,n){const r=e.style,s=oe(n);let i=!1;if(n&&!s){if(t)if(oe(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&an(r,l,"")}else for(const o in t)n[o]==null&&an(r,o,"");for(const o in n)o==="display"&&(i=!0),an(r,o,n[o])}else if(s){if(t!==n){const o=r[Lc];o&&(n+=";"+o),r.cssText=n,i=Ic.test(n)}}else t&&e.removeAttribute("style");_s in e&&(e[_s]=i?r.display:"",e[Oc]&&(r.display="none"))}const bs=/\s*!important$/;function an(e,t,n){if(U(n))n.forEach(r=>an(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Pc(e,t);bs.test(n)?e.setProperty(Qe(r),n.replace(bs,""),"important"):e[r]=n}}const vs=["Webkit","Moz","ms"],Kn={};function Pc(e,t){const n=Kn[t];if(n)return n;let r=Oe(t);if(r!=="filter"&&r in e)return Kn[t]=r;r=wn(r);for(let s=0;sWn||(Dc.then(()=>Wn=0),Wn=Date.now());function Uc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ae(Bc(r,n.value),t,5,[r])};return n.value=e,n.attached=Vc(),n}function Bc(e,t){if(U(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const xs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,kc=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?Rc(e,r,o):t==="style"?Mc(e,n,r):Vt(t)?pr(t)||Hc(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Kc(e,t,r,o))?(Nc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Es(e,t,r,o,i,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Es(e,t,r,o))};function Kc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&xs(t)&&W(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return xs(t)&&oe(n)?!1:t in e}const Wc=["ctrl","shift","alt","meta"],qc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Wc.some(n=>e[`${n}Key`]&&!t.includes(n))},ou=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=Qe(s.key);if(t.some(o=>o===i||Gc[o]===i))return e(s)})},Xc=ue({patchProp:kc},Ec);let qn,Ts=!1;function Yc(){return qn=Ts?qn:Xl(Xc),Ts=!0,qn}const cu=(...e)=>{const t=Yc().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Jc(r);if(s)return n(s,!0,zc(s))},t};function zc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Jc(e){return oe(e)?document.querySelector(e):e}const au=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Qc="modulepreload",Zc=function(e){return"/"+e},As={},uu=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),o=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.all(n.map(l=>{if(l=Zc(l),l in As)return;As[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Qc,c||(d.as="script",d.crossOrigin=""),d.href=l,o&&d.setAttribute("nonce",o),document.head.appendChild(d),c)return new Promise((h,y)=>{d.addEventListener("load",h),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${l}`)))})}))}return s.then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},ea=window.__VP_SITE_DATA__;function Pr(e){return Ks()?(Io(e),!0):!1}function Xe(e){return typeof e=="function"?e():oi(e)}const zi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ta=Object.prototype.toString,na=e=>ta.call(e)==="[object Object]",Ji=()=>{},Rs=ra();function ra(){var e,t;return zi&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function sa(e,t){function n(...r){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(i)})}return n}const Qi=e=>e();function ia(e=Qi){const t=le(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...i)=>{t.value&&e(...i)};return{isActive:Sn(t),pause:n,resume:r,eventFilter:s}}function oa(e){return Mn()}function Zi(...e){if(e.length!==1)return ol(...e);const t=e[0];return typeof t=="function"?Sn(rl(()=>({get:t,set:Ji}))):le(t)}function la(e,t,n={}){const{eventFilter:r=Qi,...s}=n;return Ne(e,sa(r,t),s)}function ca(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:i,pause:o,resume:l,isActive:c}=ia(r);return{stop:la(e,t,{...s,eventFilter:i}),pause:o,resume:l,isActive:c}}function Nr(e,t=!0,n){oa()?xt(e,n):t?e():xn(e)}function eo(e){var t;const n=Xe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const je=zi?window:void 0;function St(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=je):[t,n,r,s]=e,!t)return Ji;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(d=>d()),i.length=0},l=(d,h,y,C)=>(d.addEventListener(h,y,C),()=>d.removeEventListener(h,y,C)),c=Ne(()=>[eo(t),Xe(s)],([d,h])=>{if(o(),!d)return;const y=na(h)?{...h}:h;i.push(...n.flatMap(C=>r.map(A=>l(d,C,A,y))))},{immediate:!0,flush:"post"}),u=()=>{c(),o()};return Pr(u),u}function aa(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function fu(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=je,eventName:i="keydown",passive:o=!1,dedupe:l=!1}=r,c=aa(t);return St(s,i,d=>{d.repeat&&Xe(l)||c(d)&&n(d)},o)}function ua(){const e=le(!1),t=Mn();return t&&xt(()=>{e.value=!0},t),e}function fa(e){const t=ua();return se(()=>(t.value,!!e()))}function to(e,t={}){const{window:n=je}=t,r=fa(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const i=le(!1),o=u=>{i.value=u.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",o):s.removeListener(o))},c=Fi(()=>{r.value&&(l(),s=n.matchMedia(Xe(e)),"addEventListener"in s?s.addEventListener("change",o):s.addListener(o),i.value=s.matches)});return Pr(()=>{c(),l(),s=void 0}),i}const nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},rn="__vueuse_ssr_handlers__",da=ha();function ha(){return rn in nn||(nn[rn]=nn[rn]||{}),nn[rn]}function no(e,t){return da[e]||t}function pa(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ga={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Os="vueuse-storage";function ma(e,t,n,r={}){var s;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:d,window:h=je,eventFilter:y,onError:C=b=>{console.error(b)},initOnMounted:A}=r,I=(d?si:le)(typeof t=="function"?t():t);if(!n)try{n=no("getDefaultStorage",()=>{var b;return(b=je)==null?void 0:b.localStorage})()}catch(b){C(b)}if(!n)return I;const B=Xe(t),G=pa(B),D=(s=r.serializer)!=null?s:ga[G],{pause:g,resume:m}=ca(I,()=>O(I.value),{flush:i,deep:o,eventFilter:y});h&&l&&Nr(()=>{St(h,"storage",V),St(h,Os,M),A&&V()}),A||V();function P(b,N){h&&h.dispatchEvent(new CustomEvent(Os,{detail:{key:e,oldValue:b,newValue:N,storageArea:n}}))}function O(b){try{const N=n.getItem(e);if(b==null)P(N,null),n.removeItem(e);else{const S=D.write(b);N!==S&&(n.setItem(e,S),P(N,S))}}catch(N){C(N)}}function k(b){const N=b?b.newValue:n.getItem(e);if(N==null)return c&&B!=null&&n.setItem(e,D.write(B)),B;if(!b&&u){const S=D.read(N);return typeof u=="function"?u(S,B):G==="object"&&!Array.isArray(S)?{...B,...S}:S}else return typeof N!="string"?N:D.read(N)}function V(b){if(!(b&&b.storageArea!==n)){if(b&&b.key==null){I.value=B;return}if(!(b&&b.key!==e)){g();try{(b==null?void 0:b.newValue)!==D.write(I.value)&&(I.value=k(b))}catch(N){C(N)}finally{b?xn(m):m()}}}}function M(b){V(b.detail)}return I}function ro(e){return to("(prefers-color-scheme: dark)",e)}function ya(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:s=je,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:u,disableTransition:d=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},y=ro({window:s}),C=se(()=>y.value?"dark":"light"),A=c||(o==null?Zi(r):ma(o,r,i,{window:s,listenToStorageChanges:l})),I=se(()=>A.value==="auto"?C.value:A.value),B=no("updateHTMLAttrs",(m,P,O)=>{const k=typeof m=="string"?s==null?void 0:s.document.querySelector(m):eo(m);if(!k)return;let V;if(d&&(V=s.document.createElement("style"),V.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),s.document.head.appendChild(V)),P==="class"){const M=O.split(/\s/g);Object.values(h).flatMap(b=>(b||"").split(/\s/g)).filter(Boolean).forEach(b=>{M.includes(b)?k.classList.add(b):k.classList.remove(b)})}else k.setAttribute(P,O);d&&(s.getComputedStyle(V).opacity,document.head.removeChild(V))});function G(m){var P;B(t,n,(P=h[m])!=null?P:m)}function D(m){e.onChanged?e.onChanged(m,G):G(m)}Ne(I,D,{flush:"post",immediate:!0}),Nr(()=>D(I.value));const g=se({get(){return u?A.value:I.value},set(m){A.value=m}});try{return Object.assign(g,{store:A,system:C,state:I})}catch{return g}}function _a(e={}){const{valueDark:t="dark",valueLight:n="",window:r=je}=e,s=ya({...e,onChanged:(l,c)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,l==="dark",c,l):c(l)},modes:{dark:t,light:n}}),i=se(()=>s.system?s.system.value:ro({window:r}).value?"dark":"light");return se({get(){return s.value==="dark"},set(l){const c=l?"dark":"light";i.value===c?s.value="auto":s.value=c}})}function Gn(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function so(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Xn=new WeakMap;function du(e,t=!1){const n=le(t);let r=null,s="";Ne(Zi(e),l=>{const c=Gn(Xe(l));if(c){const u=c;if(Xn.get(u)||Xn.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const i=()=>{const l=Gn(Xe(e));!l||n.value||(Rs&&(r=St(l,"touchmove",c=>{ba(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},o=()=>{const l=Gn(Xe(e));!l||!n.value||(Rs&&(r==null||r()),l.style.overflow=s,Xn.delete(l),n.value=!1)};return Pr(o),se({get(){return n.value},set(l){l?i():o()}})}function hu(e={}){const{window:t=je,behavior:n="auto"}=e;if(!t)return{x:le(0),y:le(0)};const r=le(t.scrollX),s=le(t.scrollY),i=se({get(){return r.value},set(l){scrollTo({left:l,behavior:n})}}),o=se({get(){return s.value},set(l){scrollTo({top:l,behavior:n})}});return St(t,"scroll",()=>{r.value=t.scrollX,s.value=t.scrollY},{capture:!1,passive:!0}),{x:i,y:o}}function pu(e={}){const{window:t=je,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:i=!0}=e,o=le(n),l=le(r),c=()=>{t&&(i?(o.value=t.innerWidth,l.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(c(),Nr(c),St("resize",c,{passive:!0}),s){const u=to("(orientation: portrait)");Ne(u,()=>c())}return{width:o,height:l}}var Yn={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},zn={};const io=/^(?:[a-z]+:|\/\/)/i,va="vitepress-theme-appearance",wa=/#.*$/,Ea=/[?#].*$/,Ca=/(?:(^|\/)index)?\.(?:md|html)$/,fe=typeof document<"u",oo={relativePath:"404.md",filePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function Sa(e,t,n=!1){if(t===void 0)return!1;if(e=Ls(`/${e}`),n)return new RegExp(t).test(e);if(Ls(t)!==e)return!1;const r=t.match(wa);return r?(fe?location.hash:"")===r[0]:!0}function Ls(e){return decodeURI(e).replace(Ea,"").replace(Ca,"$1")}function xa(e){return io.test(e)}function Ta(e,t){return Object.keys((e==null?void 0:e.locales)||{}).find(n=>n!=="root"&&!xa(n)&&Sa(t,`/${n}/`,!0))||"root"}function Aa(e,t){var r,s,i,o,l,c,u;const n=Ta(e,t);return Object.assign({},e,{localeIndex:n,lang:((r=e.locales[n])==null?void 0:r.lang)??e.lang,dir:((s=e.locales[n])==null?void 0:s.dir)??e.dir,title:((i=e.locales[n])==null?void 0:i.title)??e.title,titleTemplate:((o=e.locales[n])==null?void 0:o.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:co(e.head,((c=e.locales[n])==null?void 0:c.head)??[]),themeConfig:{...e.themeConfig,...(u=e.locales[n])==null?void 0:u.themeConfig}})}function lo(e,t){const n=t.title||e.title,r=t.titleTemplate??e.titleTemplate;if(typeof r=="string"&&r.includes(":title"))return r.replace(/:title/g,n);const s=Ra(e.title,r);return n===s.slice(3)?n:`${n}${s}`}function Ra(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function Oa(e,t){const[n,r]=t;if(n!=="meta")return!1;const s=Object.entries(r)[0];return s==null?!1:e.some(([i,o])=>i===n&&o[s[0]]===s[1])}function co(e,t){return[...e.filter(n=>!Oa(t,n)),...t]}const La=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,Ia=/^[a-z]:/i;function Is(e){const t=Ia.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(La,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const Jn=new Set;function Ma(e){if(Jn.size===0){const n=typeof process=="object"&&(zn==null?void 0:zn.VITE_EXTRA_EXTENSIONS)||(Yn==null?void 0:Yn.VITE_EXTRA_EXTENSIONS)||"";("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip"+(n&&typeof n=="string"?","+n:"")).split(",").forEach(r=>Jn.add(r))}const t=e.split(".").pop();return t==null||!Jn.has(t.toLowerCase())}const Pa=Symbol(),ft=si(ea);function gu(e){const t=se(()=>Aa(ft.value,e.data.relativePath)),n=t.value.appearance,r=n==="force-dark"?le(!0):n?_a({storageKey:va,initialValue:()=>n==="dark"?"dark":"auto",...typeof n=="object"?n:{}}):le(!1),s=le(fe?location.hash:"");return fe&&window.addEventListener("hashchange",()=>{s.value=location.hash}),Ne(()=>e.data,()=>{s.value=fe?location.hash:""}),{site:t,theme:se(()=>t.value.themeConfig),page:se(()=>e.data),frontmatter:se(()=>e.data.frontmatter),params:se(()=>e.data.params),lang:se(()=>t.value.lang),dir:se(()=>e.data.frontmatter.dir||t.value.dir),localeIndex:se(()=>t.value.localeIndex||"root"),title:se(()=>lo(t.value,e.data)),description:se(()=>e.data.description||t.value.description),isDark:r,hash:se(()=>s.value)}}function Na(){const e=Et(Pa);if(!e)throw new Error("vitepress data not properly injected in app");return e}function Fa(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function Ms(e){return io.test(e)||!e.startsWith("/")?e:Fa(ft.value.base,e)}function $a(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),fe){const n="/";t=Is(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let r=__VP_HASH_MAP__[t.toLowerCase()];if(r||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",r=__VP_HASH_MAP__[t.toLowerCase()]),!r)return null;t=`${n}assets/${t}.${r}.js`}else t=`./${Is(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let un=[];function mu(e){un.push(e),On(()=>{un=un.filter(t=>t!==e)})}function Ha(){let e=ft.value.scrollOffset,t=0,n=24;if(typeof e=="object"&&"padding"in e&&(n=e.padding,e=e.selector),typeof e=="number")t=e;else if(typeof e=="string")t=Ps(e,n);else if(Array.isArray(e))for(const r of e){const s=Ps(r,n);if(s){t=s;break}}return t}function Ps(e,t){const n=document.querySelector(e);if(!n)return 0;const r=n.getBoundingClientRect().bottom;return r<0?0:r+t}const ja=Symbol(),ao="http://a.com",Da=()=>({path:"/",component:null,data:oo});function yu(e,t){const n=Cn(Da()),r={route:n,go:s};async function s(l=fe?location.href:"/"){var c,u;l=Qn(l),await((c=r.onBeforeRouteChange)==null?void 0:c.call(r,l))!==!1&&(fe&&l!==Qn(location.href)&&(history.replaceState({scrollPosition:window.scrollY},""),history.pushState({},"",l)),await o(l),await((u=r.onAfterRouteChanged)==null?void 0:u.call(r,l)))}let i=null;async function o(l,c=0,u=!1){var y;if(await((y=r.onBeforePageLoad)==null?void 0:y.call(r,l))===!1)return;const d=new URL(l,ao),h=i=d.pathname;try{let C=await e(h);if(!C)throw new Error(`Page not found: ${h}`);if(i===h){i=null;const{default:A,__pageData:I}=C;if(!A)throw new Error(`Invalid route component: ${A}`);n.path=fe?h:Ms(h),n.component=ln(A),n.data=ln(I),fe&&xn(()=>{let B=ft.value.base+I.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!ft.value.cleanUrls&&!B.endsWith("/")&&(B+=".html"),B!==d.pathname&&(d.pathname=B,l=B+d.search+d.hash,history.replaceState({},"",l)),d.hash&&!c){let G=null;try{G=document.getElementById(decodeURIComponent(d.hash).slice(1))}catch(D){console.warn(D)}if(G){Ns(G,d.hash);return}}window.scrollTo(0,c)})}}catch(C){if(!/fetch|Page not found/.test(C.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(C),!u)try{const A=await fetch(ft.value.base+"hashmap.json");window.__VP_HASH_MAP__=await A.json(),await o(l,c,!0);return}catch{}if(i===h){i=null,n.path=fe?h:Ms(h),n.component=t?ln(t):null;const A=fe?h.replace(/(^|\/)$/,"$1index").replace(/(\.html)?$/,".md").replace(/^\//,""):"404.md";n.data={...oo,relativePath:A}}}}return fe&&(history.state===null&&history.replaceState({},""),window.addEventListener("click",l=>{if(l.defaultPrevented||!(l.target instanceof Element)||l.target.closest("button")||l.button!==0||l.ctrlKey||l.shiftKey||l.altKey||l.metaKey)return;const c=l.target.closest("a");if(!c||c.closest(".vp-raw")||c.hasAttribute("download")||c.hasAttribute("target"))return;const u=c.getAttribute("href")??(c instanceof SVGAElement?c.getAttribute("xlink:href"):null);if(u==null)return;const{href:d,origin:h,pathname:y,hash:C,search:A}=new URL(u,c.baseURI),I=new URL(location.href);h===I.origin&&Ma(y)&&(l.preventDefault(),y===I.pathname&&A===I.search?(C!==I.hash&&(history.pushState({},"",d),window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:I.href,newURL:d}))),C?Ns(c,C,c.classList.contains("header-anchor")):window.scrollTo(0,0)):s(d))},{capture:!0}),window.addEventListener("popstate",async l=>{var c;l.state!==null&&(await o(Qn(location.href),l.state&&l.state.scrollPosition||0),(c=r.onAfterRouteChanged)==null||c.call(r,location.href))}),window.addEventListener("hashchange",l=>{l.preventDefault()})),r}function Va(){const e=Et(ja);if(!e)throw new Error("useRouter() is called without provider.");return e}function uo(){return Va().route}function Ns(e,t,n=!1){let r=null;try{r=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t).slice(1))}catch(s){console.warn(s)}if(r){let s=function(){!n||Math.abs(o-window.scrollY)>window.innerHeight?window.scrollTo(0,o):window.scrollTo({left:0,top:o,behavior:"smooth"})};const i=parseInt(window.getComputedStyle(r).paddingTop,10),o=window.scrollY+r.getBoundingClientRect().top-Ha()+i;requestAnimationFrame(s)}}function Qn(e){const t=new URL(e,ao);return t.pathname=t.pathname.replace(/(^|\/)index(\.html)?$/,"$1"),ft.value.cleanUrls?t.pathname=t.pathname.replace(/\.html$/,""):!t.pathname.endsWith("/")&&!t.pathname.endsWith(".html")&&(t.pathname+=".html"),t.pathname+t.search+t.hash}const Zn=()=>un.forEach(e=>e()),_u=Rr({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=uo(),{site:n}=Na();return()=>dr(e.as,n.value.contentProps??{style:{position:"relative"}},[t.component?dr(t.component,{onVnodeMounted:Zn,onVnodeUpdated:Zn,onVnodeUnmounted:Zn}):"404 Page Not Found"])}}),bu=Rr({setup(e,{slots:t}){const n=le(!1);return xt(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function vu(){fe&&window.addEventListener("click",e=>{var n;const t=e.target;if(t.matches(".vp-code-group input")){const r=(n=t.parentElement)==null?void 0:n.parentElement;if(!r)return;const s=Array.from(r.querySelectorAll("input")).indexOf(t);if(s<0)return;const i=r.querySelector(".blocks");if(!i)return;const o=Array.from(i.children).find(u=>u.classList.contains("active"));if(!o)return;const l=i.children[s];if(!l||o===l)return;o.classList.remove("active"),l.classList.add("active");const c=r==null?void 0:r.querySelector(`label[for="${t.id}"]`);c==null||c.scrollIntoView({block:"nearest"})}})}function wu(){if(fe){const e=new WeakMap;window.addEventListener("click",t=>{var r;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const s=n.parentElement,i=(r=n.nextElementSibling)==null?void 0:r.nextElementSibling;if(!s||!i)return;const o=/language-(shellscript|shell|bash|sh|zsh)/.test(s.className),l=[".vp-copy-ignore",".diff.remove"],c=i.cloneNode(!0);c.querySelectorAll(l.join(",")).forEach(d=>d.remove());let u=c.textContent||"";o&&(u=u.replace(/^ *(\$|>) /gm,"").trim()),Ua(u).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const d=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,d)})}})}}async function Ua(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const r=document.getSelection(),s=r?r.rangeCount>0&&r.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),s&&(r.removeAllRanges(),r.addRange(s)),n&&n.focus()}}function Eu(e,t){let n=!0,r=[];const s=i=>{if(n){n=!1,i.forEach(l=>{const c=er(l);for(const u of document.head.children)if(u.isEqualNode(c)){r.push(u);return}});return}const o=i.map(er);r.forEach((l,c)=>{const u=o.findIndex(d=>d==null?void 0:d.isEqualNode(l??null));u!==-1?delete o[u]:(l==null||l.remove(),delete r[c])}),o.forEach(l=>l&&document.head.appendChild(l)),r=[...r,...o].filter(Boolean)};Fi(()=>{const i=e.data,o=t.value,l=i&&i.description,c=i&&i.frontmatter.head||[],u=lo(o,i);u!==document.title&&(document.title=u);const d=l||o.description;let h=document.querySelector("meta[name=description]");h?h.getAttribute("content")!==d&&h.setAttribute("content",d):er(["meta",{name:"description",content:d}]),s(co(o.head,ka(c)))})}function er([e,t,n]){const r=document.createElement(e);for(const s in t)r.setAttribute(s,t[s]);return n&&(r.innerHTML=n),e==="script"&&!t.async&&(r.async=!1),r}function Ba(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function ka(e){return e.filter(t=>!Ba(t))}const tr=new Set,fo=()=>document.createElement("link"),Ka=e=>{const t=fo();t.rel="prefetch",t.href=e,document.head.appendChild(t)},Wa=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let sn;const qa=fe&&(sn=fo())&&sn.relList&&sn.relList.supports&&sn.relList.supports("prefetch")?Ka:Wa;function Cu(){if(!fe||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const r=()=>{n&&n.disconnect(),n=new IntersectionObserver(i=>{i.forEach(o=>{if(o.isIntersecting){const l=o.target;n.unobserve(l);const{pathname:c}=l;if(!tr.has(c)){tr.add(c);const u=$a(c);u&&qa(u)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(i=>{const{hostname:o,pathname:l}=new URL(i.href instanceof SVGAnimatedString?i.href.animVal:i.href,i.baseURI),c=l.match(/\.\w+$/);c&&c[0]!==".html"||i.target!=="_blank"&&o===location.hostname&&(l!==location.pathname?n.observe(i):tr.add(l))})})};xt(r);const s=uo();Ne(()=>s.path,r),On(()=>{n&&n.disconnect()})}export{eu as $,nu as A,El as B,Ha as C,za as D,Qa as E,_e as F,si as G,mu as H,ie as I,Ja as J,io as K,uo as L,uc as M,Et as N,pu as O,yr as P,fu as Q,xn as R,hu as S,Xi as T,fe as U,Sn as V,Ya as W,uu as X,du as Y,$l as Z,au as _,Ki as a,lu as a0,mi as a1,ou as a2,tu as a3,Va as a4,su as a5,Eu as a6,ja as a7,gu as a8,Pa as a9,_u as aa,bu as ab,ft as ac,cu as ad,yu as ae,$a as af,Cu as ag,wu as ah,vu as ai,dr as aj,Ui as b,ru as c,Rr as d,iu as e,Ma as f,Ms as g,se as h,xa as i,ki as j,oi as k,Xa as l,Sa as m,_r as n,Di as o,Ga as p,to as q,Za as r,le as s,Ro as t,Na as u,Ne as v,hl as w,Fi as x,xt as y,On as z}; diff --git a/assets/chunks/katex.B5umXGHV.js b/assets/chunks/katex.B5umXGHV.js new file mode 100644 index 000000000..deae2457e --- /dev/null +++ b/assets/chunks/katex.B5umXGHV.js @@ -0,0 +1 @@ +const s="/assets/katex.D3zUHQ6F.png";export{s as _}; diff --git a/assets/chunks/readme-3.hEA_5CR-.js b/assets/chunks/readme-3.hEA_5CR-.js new file mode 100644 index 000000000..0715d9784 --- /dev/null +++ b/assets/chunks/readme-3.hEA_5CR-.js @@ -0,0 +1 @@ +const s="/assets/logo.KgWMX3A2.png",t="/assets/readme-1.CjiL5qF9.png",a="/assets/readme-2.DKgivwJl.png",e="/assets/readme-3.CRRWEqvl.jpg";export{s as _,t as a,a as b,e as c}; diff --git a/assets/chunks/theme.ChSyJpHJ.js b/assets/chunks/theme.ChSyJpHJ.js new file mode 100644 index 000000000..0a9c70446 --- /dev/null +++ b/assets/chunks/theme.ChSyJpHJ.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPAlgoliaSearchBox.DadAos7f.js","assets/chunks/framework.CVd-vdtw.js"])))=>i.map(i=>d[i]); +import{d as m,o as a,c,r as l,n as M,a as O,t as N,b as _,w as h,e as f,T as ve,_ as b,u as Ue,i as je,f as Je,g as pe,h as y,j as v,k as r,p as B,l as H,m as q,q as le,s as I,v as G,x as Z,y as W,z as x,A as he,B as Ke,C as We,D as z,F as C,E,G as Pe,H as ee,I as k,J as F,K as Le,L as te,M as K,N as ne,O as qe,P as Ve,Q as ze,R as Re,S as Se,U as oe,V as Ye,W as Xe,X as Qe,Y as we,Z as Te,$ as Ze,a0 as xe,a1 as et,a2 as tt,a3 as nt,a4 as ot}from"./framework.CVd-vdtw.js";const st=m({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(n){return(e,t)=>(a(),c("span",{class:M(["VPBadge",e.type])},[l(e.$slots,"default",{},()=>[O(N(e.text),1)])],2))}}),at={key:0,class:"VPBackdrop"},rt=m({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(n){return(e,t)=>(a(),_(ve,{name:"fade"},{default:h(()=>[e.show?(a(),c("div",at)):f("",!0)]),_:1}))}}),it=b(rt,[["__scopeId","data-v-54a304ca"]]),S=Ue;function lt(n,e){let t,s=!1;return()=>{t&&clearTimeout(t),s?t=setTimeout(n,e):(n(),(s=!0)&&setTimeout(()=>s=!1,e))}}function ce(n){return/^\//.test(n)?n:`/${n}`}function fe(n){const{pathname:e,search:t,hash:s,protocol:o}=new URL(n,"http://a.com");if(je(n)||n.startsWith("#")||!o.startsWith("http")||!Je(e))return n;const{site:i}=S(),u=e.endsWith("/")||e.endsWith(".html")?n:n.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${t}${s}`);return pe(u)}function Y({correspondingLink:n=!1}={}){const{site:e,localeIndex:t,page:s,theme:o,hash:i}=S(),u=y(()=>{var d,g;return{label:(d=e.value.locales[t.value])==null?void 0:d.label,link:((g=e.value.locales[t.value])==null?void 0:g.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:y(()=>Object.entries(e.value.locales).flatMap(([d,g])=>u.value.label===g.label?[]:{text:g.label,link:ct(g.link||(d==="root"?"/":`/${d}/`),o.value.i18nRouting!==!1&&n,s.value.relativePath.slice(u.value.link.length-1),!e.value.cleanUrls)+i.value})),currentLang:u}}function ct(n,e,t,s){return e?n.replace(/\/$/,"")+ce(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):n}const ut=n=>(B("data-v-6ff51ddd"),n=n(),H(),n),dt={class:"NotFound"},vt={class:"code"},pt={class:"title"},ht=ut(()=>v("div",{class:"divider"},null,-1)),ft={class:"quote"},_t={class:"action"},mt=["href","aria-label"],kt=m({__name:"NotFound",setup(n){const{theme:e}=S(),{currentLang:t}=Y();return(s,o)=>{var i,u,p,d,g;return a(),c("div",dt,[v("p",vt,N(((i=r(e).notFound)==null?void 0:i.code)??"404"),1),v("h1",pt,N(((u=r(e).notFound)==null?void 0:u.title)??"PAGE NOT FOUND"),1),ht,v("blockquote",ft,N(((p=r(e).notFound)==null?void 0:p.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),v("div",_t,[v("a",{class:"link",href:r(pe)(r(t).link),"aria-label":((d=r(e).notFound)==null?void 0:d.linkLabel)??"go to home"},N(((g=r(e).notFound)==null?void 0:g.linkText)??"Take me home"),9,mt)])])}}}),bt=b(kt,[["__scopeId","data-v-6ff51ddd"]]);function Ie(n,e){if(Array.isArray(n))return X(n);if(n==null)return[];e=ce(e);const t=Object.keys(n).sort((o,i)=>i.split("/").length-o.split("/").length).find(o=>e.startsWith(ce(o))),s=t?n[t]:[];return Array.isArray(s)?X(s):X(s.items,s.base)}function gt(n){const e=[];let t=0;for(const s in n){const o=n[s];if(o.items){t=e.push(o);continue}e[t]||e.push({items:[]}),e[t].items.push(o)}return e}function $t(n){const e=[];function t(s){for(const o of s)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(n),e}function ue(n,e){return Array.isArray(e)?e.some(t=>ue(n,t)):q(n,e.link)?!0:e.items?ue(n,e.items):!1}function X(n,e){return[...n].map(t=>{const s={...t},o=s.base||e;return o&&s.link&&(s.link=o+s.link),s.items&&(s.items=X(s.items,o)),s})}function U(){const{frontmatter:n,page:e,theme:t}=S(),s=le("(min-width: 960px)"),o=I(!1),i=y(()=>{const A=t.value.sidebar,T=e.value.relativePath;return A?Ie(A,T):[]}),u=I(i.value);G(i,(A,T)=>{JSON.stringify(A)!==JSON.stringify(T)&&(u.value=i.value)});const p=y(()=>n.value.sidebar!==!1&&u.value.length>0&&n.value.layout!=="home"),d=y(()=>g?n.value.aside==null?t.value.aside==="left":n.value.aside==="left":!1),g=y(()=>n.value.layout==="home"?!1:n.value.aside!=null?!!n.value.aside:t.value.aside!==!1),w=y(()=>p.value&&s.value),P=y(()=>p.value?gt(u.value):[]);function $(){o.value=!0}function L(){o.value=!1}function V(){o.value?L():$()}return{isOpen:o,sidebar:u,sidebarGroups:P,hasSidebar:p,hasAside:g,leftAside:d,isSidebarEnabled:w,open:$,close:L,toggle:V}}function yt(n,e){let t;Z(()=>{t=n.value?document.activeElement:void 0}),W(()=>{window.addEventListener("keyup",s)}),x(()=>{window.removeEventListener("keyup",s)});function s(o){o.key==="Escape"&&n.value&&(e(),t==null||t.focus())}}function Pt(n){const{page:e,hash:t}=S(),s=I(!1),o=y(()=>n.value.collapsed!=null),i=y(()=>!!n.value.link),u=I(!1),p=()=>{u.value=q(e.value.relativePath,n.value.link)};G([e,n,t],p),W(p);const d=y(()=>u.value?!0:n.value.items?ue(e.value.relativePath,n.value.items):!1),g=y(()=>!!(n.value.items&&n.value.items.length));Z(()=>{s.value=!!(o.value&&n.value.collapsed)}),he(()=>{(u.value||d.value)&&(s.value=!1)});function w(){o.value&&(s.value=!s.value)}return{collapsed:s,collapsible:o,isLink:i,isActiveLink:u,hasActiveLink:d,hasChildren:g,toggle:w}}function Lt(){const{hasSidebar:n}=U(),e=le("(min-width: 960px)"),t=le("(min-width: 1280px)");return{isAsideEnabled:y(()=>!t.value&&!e.value?!1:n.value?t.value:e.value)}}const de=[];function Ne(n){return typeof n.outline=="object"&&!Array.isArray(n.outline)&&n.outline.label||n.outlineTitle||"On this page"}function _e(n){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const s=Number(t.tagName[1]);return{element:t,title:Vt(t),link:"#"+t.id,level:s}});return St(e,n)}function Vt(n){let e="";for(const t of n.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function St(n,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[s,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;n=n.filter(u=>u.level>=s&&u.level<=o),de.length=0;for(const{element:u,link:p}of n)de.push({element:u,link:p});const i=[];e:for(let u=0;u=0;d--){const g=n[d];if(g.level{requestAnimationFrame(i),window.addEventListener("scroll",s)}),Ke(()=>{u(location.hash)}),x(()=>{window.removeEventListener("scroll",s)});function i(){if(!t.value)return;const p=window.scrollY,d=window.innerHeight,g=document.body.offsetHeight,w=Math.abs(p+d-g)<1,P=de.map(({element:L,link:V})=>({link:V,top:Tt(L)})).filter(({top:L})=>!Number.isNaN(L)).sort((L,V)=>L.top-V.top);if(!P.length){u(null);return}if(p<1){u(null);return}if(w){u(P[P.length-1].link);return}let $=null;for(const{link:L,top:V}of P){if(V>p+We()+4)break;$=L}u($)}function u(p){o&&o.classList.remove("active"),p==null?o=null:o=n.value.querySelector(`a[href="${decodeURIComponent(p)}"]`);const d=o;d?(d.classList.add("active"),e.value.style.top=d.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function Tt(n){let e=0;for(;n!==document.body;){if(n===null)return NaN;e+=n.offsetTop,n=n.offsetParent}return e}const It=["href","title"],Nt=m({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(n){function e({target:t}){const s=t.href.split("#")[1],o=document.getElementById(decodeURIComponent(s));o==null||o.focus({preventScroll:!0})}return(t,s)=>{const o=z("VPDocOutlineItem",!0);return a(),c("ul",{class:M(["VPDocOutlineItem",t.root?"root":"nested"])},[(a(!0),c(C,null,E(t.headers,({children:i,link:u,title:p})=>(a(),c("li",null,[v("a",{class:"outline-link",href:u,onClick:e,title:p},N(p),9,It),i!=null&&i.length?(a(),_(o,{key:0,headers:i},null,8,["headers"])):f("",!0)]))),256))],2)}}}),Me=b(Nt,[["__scopeId","data-v-53c99d69"]]),Mt={class:"content"},At={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Ct=m({__name:"VPDocAsideOutline",setup(n){const{frontmatter:e,theme:t}=S(),s=Pe([]);ee(()=>{s.value=_e(e.value.outline??t.value.outline)});const o=I(),i=I();return wt(o,i),(u,p)=>(a(),c("nav",{"aria-labelledby":"doc-outline-aria-label",class:M(["VPDocAsideOutline",{"has-outline":s.value.length>0}]),ref_key:"container",ref:o},[v("div",Mt,[v("div",{class:"outline-marker",ref_key:"marker",ref:i},null,512),v("div",At,N(r(Ne)(r(t))),1),k(Me,{headers:s.value,root:!0},null,8,["headers"])])],2))}}),Bt=b(Ct,[["__scopeId","data-v-f610f197"]]),Ht={class:"VPDocAsideCarbonAds"},Et=m({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(n){const e=()=>null;return(t,s)=>(a(),c("div",Ht,[k(r(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Ft=n=>(B("data-v-cb998dce"),n=n(),H(),n),Dt={class:"VPDocAside"},Ot=Ft(()=>v("div",{class:"spacer"},null,-1)),Gt=m({__name:"VPDocAside",setup(n){const{theme:e}=S();return(t,s)=>(a(),c("div",Dt,[l(t.$slots,"aside-top",{},void 0,!0),l(t.$slots,"aside-outline-before",{},void 0,!0),k(Bt),l(t.$slots,"aside-outline-after",{},void 0,!0),Ot,l(t.$slots,"aside-ads-before",{},void 0,!0),r(e).carbonAds?(a(),_(Et,{key:0,"carbon-ads":r(e).carbonAds},null,8,["carbon-ads"])):f("",!0),l(t.$slots,"aside-ads-after",{},void 0,!0),l(t.$slots,"aside-bottom",{},void 0,!0)]))}}),Ut=b(Gt,[["__scopeId","data-v-cb998dce"]]);function jt(){const{theme:n,page:e}=S();return y(()=>{const{text:t="Edit this page",pattern:s=""}=n.value.editLink||{};let o;return typeof s=="function"?o=s(e.value):o=s.replace(/:path/g,e.value.filePath),{url:o,text:t}})}function Jt(){const{page:n,theme:e,frontmatter:t}=S();return y(()=>{var g,w,P,$,L,V,A,T;const s=Ie(e.value.sidebar,n.value.relativePath),o=$t(s),i=Kt(o,j=>j.link.replace(/[?#].*$/,"")),u=i.findIndex(j=>q(n.value.relativePath,j.link)),p=((g=e.value.docFooter)==null?void 0:g.prev)===!1&&!t.value.prev||t.value.prev===!1,d=((w=e.value.docFooter)==null?void 0:w.next)===!1&&!t.value.next||t.value.next===!1;return{prev:p?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((P=i[u-1])==null?void 0:P.docFooterText)??(($=i[u-1])==null?void 0:$.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((L=i[u-1])==null?void 0:L.link)},next:d?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((V=i[u+1])==null?void 0:V.docFooterText)??((A=i[u+1])==null?void 0:A.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((T=i[u+1])==null?void 0:T.link)}}})}function Kt(n,e){const t=new Set;return n.filter(s=>{const o=e(s);return t.has(o)?!1:t.add(o)})}const D=m({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(n){const e=n,t=y(()=>e.tag??(e.href?"a":"span")),s=y(()=>e.href&&Le.test(e.href)||e.target==="_blank");return(o,i)=>(a(),_(F(t.value),{class:M(["VPLink",{link:o.href,"vp-external-link-icon":s.value,"no-icon":o.noIcon}]),href:o.href?r(fe)(o.href):void 0,target:o.target??(s.value?"_blank":void 0),rel:o.rel??(s.value?"noreferrer":void 0)},{default:h(()=>[l(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Wt={class:"VPLastUpdated"},qt=["datetime"],zt=m({__name:"VPDocFooterLastUpdated",setup(n){const{theme:e,page:t,lang:s}=S(),o=y(()=>new Date(t.value.lastUpdated)),i=y(()=>o.value.toISOString()),u=I("");return W(()=>{Z(()=>{var p,d,g;u.value=new Intl.DateTimeFormat((d=(p=e.value.lastUpdated)==null?void 0:p.formatOptions)!=null&&d.forceLocale?s.value:void 0,((g=e.value.lastUpdated)==null?void 0:g.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(o.value)})}),(p,d)=>{var g;return a(),c("p",Wt,[O(N(((g=r(e).lastUpdated)==null?void 0:g.text)||r(e).lastUpdatedText||"Last updated")+": ",1),v("time",{datetime:i.value},N(u.value),9,qt)])}}}),Rt=b(zt,[["__scopeId","data-v-1bb0c8a8"]]),Ae=n=>(B("data-v-1bcd8184"),n=n(),H(),n),Yt={key:0,class:"VPDocFooter"},Xt={key:0,class:"edit-info"},Qt={key:0,class:"edit-link"},Zt=Ae(()=>v("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),xt={key:1,class:"last-updated"},en={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},tn=Ae(()=>v("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),nn={class:"pager"},on=["innerHTML"],sn=["innerHTML"],an={class:"pager"},rn=["innerHTML"],ln=["innerHTML"],cn=m({__name:"VPDocFooter",setup(n){const{theme:e,page:t,frontmatter:s}=S(),o=jt(),i=Jt(),u=y(()=>e.value.editLink&&s.value.editLink!==!1),p=y(()=>t.value.lastUpdated),d=y(()=>u.value||p.value||i.value.prev||i.value.next);return(g,w)=>{var P,$,L,V;return d.value?(a(),c("footer",Yt,[l(g.$slots,"doc-footer-before",{},void 0,!0),u.value||p.value?(a(),c("div",Xt,[u.value?(a(),c("div",Qt,[k(D,{class:"edit-link-button",href:r(o).url,"no-icon":!0},{default:h(()=>[Zt,O(" "+N(r(o).text),1)]),_:1},8,["href"])])):f("",!0),p.value?(a(),c("div",xt,[k(Rt)])):f("",!0)])):f("",!0),(P=r(i).prev)!=null&&P.link||($=r(i).next)!=null&&$.link?(a(),c("nav",en,[tn,v("div",nn,[(L=r(i).prev)!=null&&L.link?(a(),_(D,{key:0,class:"pager-link prev",href:r(i).prev.link},{default:h(()=>{var A;return[v("span",{class:"desc",innerHTML:((A=r(e).docFooter)==null?void 0:A.prev)||"Previous page"},null,8,on),v("span",{class:"title",innerHTML:r(i).prev.text},null,8,sn)]}),_:1},8,["href"])):f("",!0)]),v("div",an,[(V=r(i).next)!=null&&V.link?(a(),_(D,{key:0,class:"pager-link next",href:r(i).next.link},{default:h(()=>{var A;return[v("span",{class:"desc",innerHTML:((A=r(e).docFooter)==null?void 0:A.next)||"Next page"},null,8,rn),v("span",{class:"title",innerHTML:r(i).next.text},null,8,ln)]}),_:1},8,["href"])):f("",!0)])])):f("",!0)])):f("",!0)}}}),un=b(cn,[["__scopeId","data-v-1bcd8184"]]),dn=n=>(B("data-v-e6f2a212"),n=n(),H(),n),vn={class:"container"},pn=dn(()=>v("div",{class:"aside-curtain"},null,-1)),hn={class:"aside-container"},fn={class:"aside-content"},_n={class:"content"},mn={class:"content-container"},kn={class:"main"},bn=m({__name:"VPDoc",setup(n){const{theme:e}=S(),t=te(),{hasSidebar:s,hasAside:o,leftAside:i}=U(),u=y(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(p,d)=>{const g=z("Content");return a(),c("div",{class:M(["VPDoc",{"has-sidebar":r(s),"has-aside":r(o)}])},[l(p.$slots,"doc-top",{},void 0,!0),v("div",vn,[r(o)?(a(),c("div",{key:0,class:M(["aside",{"left-aside":r(i)}])},[pn,v("div",hn,[v("div",fn,[k(Ut,null,{"aside-top":h(()=>[l(p.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":h(()=>[l(p.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":h(()=>[l(p.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[l(p.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[l(p.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[l(p.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):f("",!0),v("div",_n,[v("div",mn,[l(p.$slots,"doc-before",{},void 0,!0),v("main",kn,[k(g,{class:M(["vp-doc",[u.value,r(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),k(un,null,{"doc-footer-before":h(()=>[l(p.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),l(p.$slots,"doc-after",{},void 0,!0)])])]),l(p.$slots,"doc-bottom",{},void 0,!0)],2)}}}),gn=b(bn,[["__scopeId","data-v-e6f2a212"]]),$n=m({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(n){const e=n,t=y(()=>e.href&&Le.test(e.href)),s=y(()=>e.tag||e.href?"a":"button");return(o,i)=>(a(),_(F(s.value),{class:M(["VPButton",[o.size,o.theme]]),href:o.href?r(fe)(o.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:h(()=>[O(N(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),yn=b($n,[["__scopeId","data-v-c9cf0e3c"]]),Pn=["src","alt"],Ln=m({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(n){return(e,t)=>{const s=z("VPImage",!0);return e.image?(a(),c(C,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),c("img",K({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:r(pe)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Pn)):(a(),c(C,{key:1},[k(s,K({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),k(s,K({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):f("",!0)}}}),Q=b(Ln,[["__scopeId","data-v-ab19afbb"]]),Vn=n=>(B("data-v-b10c5094"),n=n(),H(),n),Sn={class:"container"},wn={class:"main"},Tn={key:0,class:"name"},In=["innerHTML"],Nn=["innerHTML"],Mn=["innerHTML"],An={key:0,class:"actions"},Cn={key:0,class:"image"},Bn={class:"image-container"},Hn=Vn(()=>v("div",{class:"image-bg"},null,-1)),En=m({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(n){const e=ne("hero-image-slot-exists");return(t,s)=>(a(),c("div",{class:M(["VPHero",{"has-image":t.image||r(e)}])},[v("div",Sn,[v("div",wn,[l(t.$slots,"home-hero-info-before",{},void 0,!0),l(t.$slots,"home-hero-info",{},()=>[t.name?(a(),c("h1",Tn,[v("span",{innerHTML:t.name,class:"clip"},null,8,In)])):f("",!0),t.text?(a(),c("p",{key:1,innerHTML:t.text,class:"text"},null,8,Nn)):f("",!0),t.tagline?(a(),c("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,Mn)):f("",!0)],!0),l(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(a(),c("div",An,[(a(!0),c(C,null,E(t.actions,o=>(a(),c("div",{key:o.link,class:"action"},[k(yn,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):f("",!0),l(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||r(e)?(a(),c("div",Cn,[v("div",Bn,[Hn,l(t.$slots,"home-hero-image",{},()=>[t.image?(a(),_(Q,{key:0,class:"image-src",image:t.image},null,8,["image"])):f("",!0)],!0)])])):f("",!0)])],2))}}),Fn=b(En,[["__scopeId","data-v-b10c5094"]]),Dn=m({__name:"VPHomeHero",setup(n){const{frontmatter:e}=S();return(t,s)=>r(e).hero?(a(),_(Fn,{key:0,class:"VPHomeHero",name:r(e).hero.name,text:r(e).hero.text,tagline:r(e).hero.tagline,image:r(e).hero.image,actions:r(e).hero.actions},{"home-hero-info-before":h(()=>[l(t.$slots,"home-hero-info-before")]),"home-hero-info":h(()=>[l(t.$slots,"home-hero-info")]),"home-hero-info-after":h(()=>[l(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":h(()=>[l(t.$slots,"home-hero-actions-after")]),"home-hero-image":h(()=>[l(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):f("",!0)}}),On=n=>(B("data-v-bd37d1a2"),n=n(),H(),n),Gn={class:"box"},Un={key:0,class:"icon"},jn=["innerHTML"],Jn=["innerHTML"],Kn=["innerHTML"],Wn={key:4,class:"link-text"},qn={class:"link-text-value"},zn=On(()=>v("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Rn=m({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(n){return(e,t)=>(a(),_(D,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:h(()=>[v("article",Gn,[typeof e.icon=="object"&&e.icon.wrap?(a(),c("div",Un,[k(Q,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(a(),_(Q,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(a(),c("div",{key:2,class:"icon",innerHTML:e.icon},null,8,jn)):f("",!0),v("h2",{class:"title",innerHTML:e.title},null,8,Jn),e.details?(a(),c("p",{key:3,class:"details",innerHTML:e.details},null,8,Kn)):f("",!0),e.linkText?(a(),c("div",Wn,[v("p",qn,[O(N(e.linkText)+" ",1),zn])])):f("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Yn=b(Rn,[["__scopeId","data-v-bd37d1a2"]]),Xn={key:0,class:"VPFeatures"},Qn={class:"container"},Zn={class:"items"},xn=m({__name:"VPFeatures",props:{features:{}},setup(n){const e=n,t=y(()=>{const s=e.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s>3)return"grid-4"}else return});return(s,o)=>s.features?(a(),c("div",Xn,[v("div",Qn,[v("div",Zn,[(a(!0),c(C,null,E(s.features,i=>(a(),c("div",{key:i.title,class:M(["item",[t.value]])},[k(Yn,{icon:i.icon,title:i.title,details:i.details,link:i.link,"link-text":i.linkText,rel:i.rel,target:i.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):f("",!0)}}),eo=b(xn,[["__scopeId","data-v-b1eea84a"]]),to=m({__name:"VPHomeFeatures",setup(n){const{frontmatter:e}=S();return(t,s)=>r(e).features?(a(),_(eo,{key:0,class:"VPHomeFeatures",features:r(e).features},null,8,["features"])):f("",!0)}}),no=m({__name:"VPHomeContent",setup(n){const{width:e}=qe({initialWidth:0,includeScrollbar:!1});return(t,s)=>(a(),c("div",{class:"vp-doc container",style:Ve(r(e)?{"--vp-offset":`calc(50% - ${r(e)/2}px)`}:{})},[l(t.$slots,"default",{},void 0,!0)],4))}}),oo=b(no,[["__scopeId","data-v-c141a4bd"]]),so={class:"VPHome"},ao=m({__name:"VPHome",setup(n){const{frontmatter:e}=S();return(t,s)=>{const o=z("Content");return a(),c("div",so,[l(t.$slots,"home-hero-before",{},void 0,!0),k(Dn,null,{"home-hero-info-before":h(()=>[l(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":h(()=>[l(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":h(()=>[l(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":h(()=>[l(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":h(()=>[l(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),l(t.$slots,"home-hero-after",{},void 0,!0),l(t.$slots,"home-features-before",{},void 0,!0),k(to),l(t.$slots,"home-features-after",{},void 0,!0),r(e).markdownStyles!==!1?(a(),_(oo,{key:0},{default:h(()=>[k(o)]),_:1})):(a(),_(o,{key:1}))])}}}),ro=b(ao,[["__scopeId","data-v-07b1ad08"]]),io={},lo={class:"VPPage"};function co(n,e){const t=z("Content");return a(),c("div",lo,[l(n.$slots,"page-top"),k(t),l(n.$slots,"page-bottom")])}const uo=b(io,[["render",co]]),vo=m({__name:"VPContent",setup(n){const{page:e,frontmatter:t}=S(),{hasSidebar:s}=U();return(o,i)=>(a(),c("div",{class:M(["VPContent",{"has-sidebar":r(s),"is-home":r(t).layout==="home"}]),id:"VPContent"},[r(e).isNotFound?l(o.$slots,"not-found",{key:0},()=>[k(bt)],!0):r(t).layout==="page"?(a(),_(uo,{key:1},{"page-top":h(()=>[l(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":h(()=>[l(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):r(t).layout==="home"?(a(),_(ro,{key:2},{"home-hero-before":h(()=>[l(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":h(()=>[l(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":h(()=>[l(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":h(()=>[l(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":h(()=>[l(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":h(()=>[l(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":h(()=>[l(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":h(()=>[l(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":h(()=>[l(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):r(t).layout&&r(t).layout!=="doc"?(a(),_(F(r(t).layout),{key:3})):(a(),_(gn,{key:4},{"doc-top":h(()=>[l(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":h(()=>[l(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":h(()=>[l(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":h(()=>[l(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":h(()=>[l(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":h(()=>[l(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":h(()=>[l(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[l(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[l(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[l(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":h(()=>[l(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),po=b(vo,[["__scopeId","data-v-9a6c75ad"]]),ho={class:"container"},fo=["innerHTML"],_o=["innerHTML"],mo=m({__name:"VPFooter",setup(n){const{theme:e,frontmatter:t}=S(),{hasSidebar:s}=U();return(o,i)=>r(e).footer&&r(t).footer!==!1?(a(),c("footer",{key:0,class:M(["VPFooter",{"has-sidebar":r(s)}])},[v("div",ho,[r(e).footer.message?(a(),c("p",{key:0,class:"message",innerHTML:r(e).footer.message},null,8,fo)):f("",!0),r(e).footer.copyright?(a(),c("p",{key:1,class:"copyright",innerHTML:r(e).footer.copyright},null,8,_o)):f("",!0)])],2)):f("",!0)}}),ko=b(mo,[["__scopeId","data-v-566314d4"]]);function bo(){const{theme:n,frontmatter:e}=S(),t=Pe([]),s=y(()=>t.value.length>0);return ee(()=>{t.value=_e(e.value.outline??n.value.outline)}),{headers:t,hasLocalNav:s}}const go=n=>(B("data-v-883964e0"),n=n(),H(),n),$o={class:"menu-text"},yo=go(()=>v("span",{class:"vpi-chevron-right icon"},null,-1)),Po={class:"header"},Lo={class:"outline"},Vo=m({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(n){const e=n,{theme:t}=S(),s=I(!1),o=I(0),i=I(),u=I();function p(P){var $;($=i.value)!=null&&$.contains(P.target)||(s.value=!1)}G(s,P=>{if(P){document.addEventListener("click",p);return}document.removeEventListener("click",p)}),ze("Escape",()=>{s.value=!1}),ee(()=>{s.value=!1});function d(){s.value=!s.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function g(P){P.target.classList.contains("outline-link")&&(u.value&&(u.value.style.transition="none"),Re(()=>{s.value=!1}))}function w(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(P,$)=>(a(),c("div",{class:"VPLocalNavOutlineDropdown",style:Ve({"--vp-vh":o.value+"px"}),ref_key:"main",ref:i},[P.headers.length>0?(a(),c("button",{key:0,onClick:d,class:M({open:s.value})},[v("span",$o,N(r(Ne)(r(t))),1),yo],2)):(a(),c("button",{key:1,onClick:w},N(r(t).returnToTopLabel||"Return to top"),1)),k(ve,{name:"flyout"},{default:h(()=>[s.value?(a(),c("div",{key:0,ref_key:"items",ref:u,class:"items",onClick:g},[v("div",Po,[v("a",{class:"top-link",href:"#",onClick:w},N(r(t).returnToTopLabel||"Return to top"),1)]),v("div",Lo,[k(Me,{headers:P.headers},null,8,["headers"])])],512)):f("",!0)]),_:1})],4))}}),So=b(Vo,[["__scopeId","data-v-883964e0"]]),wo=n=>(B("data-v-2488c25a"),n=n(),H(),n),To={class:"container"},Io=["aria-expanded"],No=wo(()=>v("span",{class:"vpi-align-left menu-icon"},null,-1)),Mo={class:"menu-text"},Ao=m({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(n){const{theme:e,frontmatter:t}=S(),{hasSidebar:s}=U(),{headers:o}=bo(),{y:i}=Se(),u=I(0);W(()=>{u.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),ee(()=>{o.value=_e(t.value.outline??e.value.outline)});const p=y(()=>o.value.length===0),d=y(()=>p.value&&!s.value),g=y(()=>({VPLocalNav:!0,"has-sidebar":s.value,empty:p.value,fixed:d.value}));return(w,P)=>r(t).layout!=="home"&&(!d.value||r(i)>=u.value)?(a(),c("div",{key:0,class:M(g.value)},[v("div",To,[r(s)?(a(),c("button",{key:0,class:"menu","aria-expanded":w.open,"aria-controls":"VPSidebarNav",onClick:P[0]||(P[0]=$=>w.$emit("open-menu"))},[No,v("span",Mo,N(r(e).sidebarMenuLabel||"Menu"),1)],8,Io)):f("",!0),k(So,{headers:r(o),navHeight:u.value},null,8,["headers","navHeight"])])],2)):f("",!0)}}),Co=b(Ao,[["__scopeId","data-v-2488c25a"]]);function Bo(){const n=I(!1);function e(){n.value=!0,window.addEventListener("resize",o)}function t(){n.value=!1,window.removeEventListener("resize",o)}function s(){n.value?t():e()}function o(){window.outerWidth>=768&&t()}const i=te();return G(()=>i.path,t),{isScreenOpen:n,openScreen:e,closeScreen:t,toggleScreen:s}}const Ho={},Eo={class:"VPSwitch",type:"button",role:"switch"},Fo={class:"check"},Do={key:0,class:"icon"};function Oo(n,e){return a(),c("button",Eo,[v("span",Fo,[n.$slots.default?(a(),c("span",Do,[l(n.$slots,"default",{},void 0,!0)])):f("",!0)])])}const Go=b(Ho,[["render",Oo],["__scopeId","data-v-b4ccac88"]]),Ce=n=>(B("data-v-be9742d9"),n=n(),H(),n),Uo=Ce(()=>v("span",{class:"vpi-sun sun"},null,-1)),jo=Ce(()=>v("span",{class:"vpi-moon moon"},null,-1)),Jo=m({__name:"VPSwitchAppearance",setup(n){const{isDark:e,theme:t}=S(),s=ne("toggle-appearance",()=>{e.value=!e.value}),o=I("");return he(()=>{o.value=e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme"}),(i,u)=>(a(),_(Go,{title:o.value,class:"VPSwitchAppearance","aria-checked":r(e),onClick:r(s)},{default:h(()=>[Uo,jo]),_:1},8,["title","aria-checked","onClick"]))}}),me=b(Jo,[["__scopeId","data-v-be9742d9"]]),Ko={key:0,class:"VPNavBarAppearance"},Wo=m({__name:"VPNavBarAppearance",setup(n){const{site:e}=S();return(t,s)=>r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),c("div",Ko,[k(me)])):f("",!0)}}),qo=b(Wo,[["__scopeId","data-v-3f90c1a5"]]),ke=I();let Be=!1,ie=0;function zo(n){const e=I(!1);if(oe){!Be&&Ro(),ie++;const t=G(ke,s=>{var o,i,u;s===n.el.value||(o=n.el.value)!=null&&o.contains(s)?(e.value=!0,(i=n.onFocus)==null||i.call(n)):(e.value=!1,(u=n.onBlur)==null||u.call(n))});x(()=>{t(),ie--,ie||Yo()})}return Ye(e)}function Ro(){document.addEventListener("focusin",He),Be=!0,ke.value=document.activeElement}function Yo(){document.removeEventListener("focusin",He)}function He(){ke.value=document.activeElement}const Xo={class:"VPMenuLink"},Qo=m({__name:"VPMenuLink",props:{item:{}},setup(n){const{page:e}=S();return(t,s)=>(a(),c("div",Xo,[k(D,{class:M({active:r(q)(r(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:h(()=>[O(N(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),se=b(Qo,[["__scopeId","data-v-f51f088d"]]),Zo={class:"VPMenuGroup"},xo={key:0,class:"title"},es=m({__name:"VPMenuGroup",props:{text:{},items:{}},setup(n){return(e,t)=>(a(),c("div",Zo,[e.text?(a(),c("p",xo,N(e.text),1)):f("",!0),(a(!0),c(C,null,E(e.items,s=>(a(),c(C,null,["link"in s?(a(),_(se,{key:0,item:s},null,8,["item"])):f("",!0)],64))),256))]))}}),ts=b(es,[["__scopeId","data-v-a6b0397c"]]),ns={class:"VPMenu"},os={key:0,class:"items"},ss=m({__name:"VPMenu",props:{items:{}},setup(n){return(e,t)=>(a(),c("div",ns,[e.items?(a(),c("div",os,[(a(!0),c(C,null,E(e.items,s=>(a(),c(C,{key:JSON.stringify(s)},["link"in s?(a(),_(se,{key:0,item:s},null,8,["item"])):"component"in s?(a(),_(F(s.component),K({key:1,ref_for:!0},s.props),null,16)):(a(),_(ts,{key:2,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):f("",!0),l(e.$slots,"default",{},void 0,!0)]))}}),as=b(ss,[["__scopeId","data-v-20ed86d6"]]),rs=n=>(B("data-v-af5898d3"),n=n(),H(),n),is=["aria-expanded","aria-label"],ls={key:0,class:"text"},cs=["innerHTML"],us=rs(()=>v("span",{class:"vpi-chevron-down text-icon"},null,-1)),ds={key:1,class:"vpi-more-horizontal icon"},vs={class:"menu"},ps=m({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(n){const e=I(!1),t=I();zo({el:t,onBlur:s});function s(){e.value=!1}return(o,i)=>(a(),c("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:i[1]||(i[1]=u=>e.value=!0),onMouseleave:i[2]||(i[2]=u=>e.value=!1)},[v("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:i[0]||(i[0]=u=>e.value=!e.value)},[o.button||o.icon?(a(),c("span",ls,[o.icon?(a(),c("span",{key:0,class:M([o.icon,"option-icon"])},null,2)):f("",!0),o.button?(a(),c("span",{key:1,innerHTML:o.button},null,8,cs)):f("",!0),us])):(a(),c("span",ds))],8,is),v("div",vs,[k(as,{items:o.items},{default:h(()=>[l(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),be=b(ps,[["__scopeId","data-v-af5898d3"]]),hs=["href","aria-label","innerHTML"],fs=m({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(n){const e=n,t=y(()=>typeof e.icon=="object"?e.icon.svg:``);return(s,o)=>(a(),c("a",{class:"VPSocialLink no-icon",href:s.link,"aria-label":s.ariaLabel??(typeof s.icon=="string"?s.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,hs))}}),_s=b(fs,[["__scopeId","data-v-358b6670"]]),ms={class:"VPSocialLinks"},ks=m({__name:"VPSocialLinks",props:{links:{}},setup(n){return(e,t)=>(a(),c("div",ms,[(a(!0),c(C,null,E(e.links,({link:s,icon:o,ariaLabel:i})=>(a(),_(_s,{key:s,icon:o,link:s,ariaLabel:i},null,8,["icon","link","ariaLabel"]))),128))]))}}),ge=b(ks,[["__scopeId","data-v-e71e869c"]]),bs={key:0,class:"group translations"},gs={class:"trans-title"},$s={key:1,class:"group"},ys={class:"item appearance"},Ps={class:"label"},Ls={class:"appearance-action"},Vs={key:2,class:"group"},Ss={class:"item social-links"},ws=m({__name:"VPNavBarExtra",setup(n){const{site:e,theme:t}=S(),{localeLinks:s,currentLang:o}=Y({correspondingLink:!0}),i=y(()=>s.value.length&&o.value.label||e.value.appearance||t.value.socialLinks);return(u,p)=>i.value?(a(),_(be,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:h(()=>[r(s).length&&r(o).label?(a(),c("div",bs,[v("p",gs,N(r(o).label),1),(a(!0),c(C,null,E(r(s),d=>(a(),_(se,{key:d.link,item:d},null,8,["item"]))),128))])):f("",!0),r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),c("div",$s,[v("div",ys,[v("p",Ps,N(r(t).darkModeSwitchLabel||"Appearance"),1),v("div",Ls,[k(me)])])])):f("",!0),r(t).socialLinks?(a(),c("div",Vs,[v("div",Ss,[k(ge,{class:"social-links-list",links:r(t).socialLinks},null,8,["links"])])])):f("",!0)]),_:1})):f("",!0)}}),Ts=b(ws,[["__scopeId","data-v-f953d92f"]]),Is=n=>(B("data-v-6bee1efd"),n=n(),H(),n),Ns=["aria-expanded"],Ms=Is(()=>v("span",{class:"container"},[v("span",{class:"top"}),v("span",{class:"middle"}),v("span",{class:"bottom"})],-1)),As=[Ms],Cs=m({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(n){return(e,t)=>(a(),c("button",{type:"button",class:M(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=s=>e.$emit("click"))},As,10,Ns))}}),Bs=b(Cs,[["__scopeId","data-v-6bee1efd"]]),Hs=["innerHTML"],Es=m({__name:"VPNavBarMenuLink",props:{item:{}},setup(n){const{page:e}=S();return(t,s)=>(a(),_(D,{class:M({VPNavBarMenuLink:!0,active:r(q)(r(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,noIcon:t.item.noIcon,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:h(()=>[v("span",{innerHTML:t.item.text},null,8,Hs)]),_:1},8,["class","href","noIcon","target","rel"]))}}),Fs=b(Es,[["__scopeId","data-v-08fbf4b6"]]),Ds=m({__name:"VPNavBarMenuGroup",props:{item:{}},setup(n){const e=n,{page:t}=S(),s=i=>"component"in i?!1:"link"in i?q(t.value.relativePath,i.link,!!e.item.activeMatch):i.items.some(s),o=y(()=>s(e.item));return(i,u)=>(a(),_(be,{class:M({VPNavBarMenuGroup:!0,active:r(q)(r(t).relativePath,i.item.activeMatch,!!i.item.activeMatch)||o.value}),button:i.item.text,items:i.item.items},null,8,["class","button","items"]))}}),Os=n=>(B("data-v-afb2845e"),n=n(),H(),n),Gs={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Us=Os(()=>v("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),js=m({__name:"VPNavBarMenu",setup(n){const{theme:e}=S();return(t,s)=>r(e).nav?(a(),c("nav",Gs,[Us,(a(!0),c(C,null,E(r(e).nav,o=>(a(),c(C,{key:JSON.stringify(o)},["link"in o?(a(),_(Fs,{key:0,item:o},null,8,["item"])):"component"in o?(a(),_(F(o.component),K({key:1,ref_for:!0},o.props),null,16)):(a(),_(Ds,{key:2,item:o},null,8,["item"]))],64))),128))])):f("",!0)}}),Js=b(js,[["__scopeId","data-v-afb2845e"]]);function Ks(n){const{localeIndex:e,theme:t}=S();function s(o){var V,A,T;const i=o.split("."),u=(V=t.value.search)==null?void 0:V.options,p=u&&typeof u=="object",d=p&&((T=(A=u.locales)==null?void 0:A[e.value])==null?void 0:T.translations)||null,g=p&&u.translations||null;let w=d,P=g,$=n;const L=i.pop();for(const j of i){let J=null;const R=$==null?void 0:$[j];R&&(J=$=R);const ae=P==null?void 0:P[j];ae&&(J=P=ae);const re=w==null?void 0:w[j];re&&(J=w=re),R||($=J),ae||(P=J),re||(w=J)}return(w==null?void 0:w[L])??(P==null?void 0:P[L])??($==null?void 0:$[L])??""}return s}const Ws=["aria-label"],qs={class:"DocSearch-Button-Container"},zs=v("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),Rs={class:"DocSearch-Button-Placeholder"},Ys=v("span",{class:"DocSearch-Button-Keys"},[v("kbd",{class:"DocSearch-Button-Key"}),v("kbd",{class:"DocSearch-Button-Key"},"K")],-1),$e=m({__name:"VPNavBarSearchButton",setup(n){const t=Ks({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(s,o)=>(a(),c("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":r(t)("button.buttonAriaLabel")},[v("span",qs,[zs,v("span",Rs,N(r(t)("button.buttonText")),1)]),Ys],8,Ws))}}),Xs={class:"VPNavBarSearch"},Qs={id:"local-search"},Zs={key:1,id:"docsearch"},xs=m({__name:"VPNavBarSearch",setup(n){const e=()=>null,t=Xe(()=>Qe(()=>import("./VPAlgoliaSearchBox.DadAos7f.js"),__vite__mapDeps([0,1]))),{theme:s}=S(),o=I(!1),i=I(!1),u=()=>{const $="VPAlgoliaPreconnect";(window.requestIdleCallback||setTimeout)(()=>{var A;const V=document.createElement("link");V.id=$,V.rel="preconnect",V.href=`https://${(((A=s.value.search)==null?void 0:A.options)??s.value.algolia).appId}-dsn.algolia.net`,V.crossOrigin="",document.head.appendChild(V)})};W(()=>{u();const $=V=>{(V.key.toLowerCase()==="k"&&(V.metaKey||V.ctrlKey)||!g(V)&&V.key==="/")&&(V.preventDefault(),p(),L())},L=()=>{window.removeEventListener("keydown",$)};window.addEventListener("keydown",$),x(L)});function p(){o.value||(o.value=!0,setTimeout(d,16))}function d(){const $=new Event("keydown");$.key="k",$.metaKey=!0,window.dispatchEvent($),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||d()},16)}function g($){const L=$.target,V=L.tagName;return L.isContentEditable||V==="INPUT"||V==="SELECT"||V==="TEXTAREA"}const w=I(!1),P="algolia";return($,L)=>{var V;return a(),c("div",Xs,[r(P)==="local"?(a(),c(C,{key:0},[w.value?(a(),_(r(e),{key:0,onClose:L[0]||(L[0]=A=>w.value=!1)})):f("",!0),v("div",Qs,[k($e,{onClick:L[1]||(L[1]=A=>w.value=!0)})])],64)):r(P)==="algolia"?(a(),c(C,{key:1},[o.value?(a(),_(r(t),{key:0,algolia:((V=r(s).search)==null?void 0:V.options)??r(s).algolia,onVnodeBeforeMount:L[2]||(L[2]=A=>i.value=!0)},null,8,["algolia"])):f("",!0),i.value?f("",!0):(a(),c("div",Zs,[k($e,{onClick:p})]))],64)):f("",!0)])}}}),ea=m({__name:"VPNavBarSocialLinks",setup(n){const{theme:e}=S();return(t,s)=>r(e).socialLinks?(a(),_(ge,{key:0,class:"VPNavBarSocialLinks",links:r(e).socialLinks},null,8,["links"])):f("",!0)}}),ta=b(ea,[["__scopeId","data-v-ef6192dc"]]),na=["href","rel","target"],oa={key:1},sa={key:2},aa=m({__name:"VPNavBarTitle",setup(n){const{site:e,theme:t}=S(),{hasSidebar:s}=U(),{currentLang:o}=Y(),i=y(()=>{var d;return typeof t.value.logoLink=="string"?t.value.logoLink:(d=t.value.logoLink)==null?void 0:d.link}),u=y(()=>{var d;return typeof t.value.logoLink=="string"||(d=t.value.logoLink)==null?void 0:d.rel}),p=y(()=>{var d;return typeof t.value.logoLink=="string"||(d=t.value.logoLink)==null?void 0:d.target});return(d,g)=>(a(),c("div",{class:M(["VPNavBarTitle",{"has-sidebar":r(s)}])},[v("a",{class:"title",href:i.value??r(fe)(r(o).link),rel:u.value,target:p.value},[l(d.$slots,"nav-bar-title-before",{},void 0,!0),r(t).logo?(a(),_(Q,{key:0,class:"logo",image:r(t).logo},null,8,["image"])):f("",!0),r(t).siteTitle?(a(),c("span",oa,N(r(t).siteTitle),1)):r(t).siteTitle===void 0?(a(),c("span",sa,N(r(e).title),1)):f("",!0),l(d.$slots,"nav-bar-title-after",{},void 0,!0)],8,na)],2))}}),ra=b(aa,[["__scopeId","data-v-0ad69264"]]),ia={class:"items"},la={class:"title"},ca=m({__name:"VPNavBarTranslations",setup(n){const{theme:e}=S(),{localeLinks:t,currentLang:s}=Y({correspondingLink:!0});return(o,i)=>r(t).length&&r(s).label?(a(),_(be,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:r(e).langMenuLabel||"Change language"},{default:h(()=>[v("div",ia,[v("p",la,N(r(s).label),1),(a(!0),c(C,null,E(r(t),u=>(a(),_(se,{key:u.link,item:u},null,8,["item"]))),128))])]),_:1},8,["label"])):f("",!0)}}),ua=b(ca,[["__scopeId","data-v-acee064b"]]),da=n=>(B("data-v-9fd4d1dd"),n=n(),H(),n),va={class:"wrapper"},pa={class:"container"},ha={class:"title"},fa={class:"content"},_a={class:"content-body"},ma=da(()=>v("div",{class:"divider"},[v("div",{class:"divider-line"})],-1)),ka=m({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(n){const e=n,{y:t}=Se(),{hasSidebar:s}=U(),{frontmatter:o}=S(),i=I({});return he(()=>{i.value={"has-sidebar":s.value,home:o.value.layout==="home",top:t.value===0,"screen-open":e.isScreenOpen}}),(u,p)=>(a(),c("div",{class:M(["VPNavBar",i.value])},[v("div",va,[v("div",pa,[v("div",ha,[k(ra,null,{"nav-bar-title-before":h(()=>[l(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[l(u.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),v("div",fa,[v("div",_a,[l(u.$slots,"nav-bar-content-before",{},void 0,!0),k(xs,{class:"search"}),k(Js,{class:"menu"}),k(ua,{class:"translations"}),k(qo,{class:"appearance"}),k(ta,{class:"social-links"}),k(Ts,{class:"extra"}),l(u.$slots,"nav-bar-content-after",{},void 0,!0),k(Bs,{class:"hamburger",active:u.isScreenOpen,onClick:p[0]||(p[0]=d=>u.$emit("toggle-screen"))},null,8,["active"])])])])]),ma],2))}}),ba=b(ka,[["__scopeId","data-v-9fd4d1dd"]]),ga={key:0,class:"VPNavScreenAppearance"},$a={class:"text"},ya=m({__name:"VPNavScreenAppearance",setup(n){const{site:e,theme:t}=S();return(s,o)=>r(e).appearance&&r(e).appearance!=="force-dark"&&r(e).appearance!=="force-auto"?(a(),c("div",ga,[v("p",$a,N(r(t).darkModeSwitchLabel||"Appearance"),1),k(me)])):f("",!0)}}),Pa=b(ya,[["__scopeId","data-v-a3e2920d"]]),La=m({__name:"VPNavScreenMenuLink",props:{item:{}},setup(n){const e=ne("close-screen");return(t,s)=>(a(),_(D,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:r(e),innerHTML:t.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),Va=b(La,[["__scopeId","data-v-1a934d60"]]),Sa=m({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(n){const e=ne("close-screen");return(t,s)=>(a(),_(D,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:r(e)},{default:h(()=>[O(N(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Ee=b(Sa,[["__scopeId","data-v-aea78dd1"]]),wa={class:"VPNavScreenMenuGroupSection"},Ta={key:0,class:"title"},Ia=m({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(n){return(e,t)=>(a(),c("div",wa,[e.text?(a(),c("p",Ta,N(e.text),1)):f("",!0),(a(!0),c(C,null,E(e.items,s=>(a(),_(Ee,{key:s.text,item:s},null,8,["item"]))),128))]))}}),Na=b(Ia,[["__scopeId","data-v-f60dbfa7"]]),Ma=n=>(B("data-v-d99bfeec"),n=n(),H(),n),Aa=["aria-controls","aria-expanded"],Ca=["innerHTML"],Ba=Ma(()=>v("span",{class:"vpi-plus button-icon"},null,-1)),Ha=["id"],Ea={key:0,class:"item"},Fa={key:1,class:"item"},Da={key:2,class:"group"},Oa=m({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(n){const e=n,t=I(!1),s=y(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(i,u)=>(a(),c("div",{class:M(["VPNavScreenMenuGroup",{open:t.value}])},[v("button",{class:"button","aria-controls":s.value,"aria-expanded":t.value,onClick:o},[v("span",{class:"button-text",innerHTML:i.text},null,8,Ca),Ba],8,Aa),v("div",{id:s.value,class:"items"},[(a(!0),c(C,null,E(i.items,p=>(a(),c(C,{key:JSON.stringify(p)},["link"in p?(a(),c("div",Ea,[k(Ee,{item:p},null,8,["item"])])):"component"in p?(a(),c("div",Fa,[(a(),_(F(p.component),K({ref_for:!0},p.props,{"screen-menu":""}),null,16))])):(a(),c("div",Da,[k(Na,{text:p.text,items:p.items},null,8,["text","items"])]))],64))),128))],8,Ha)],2))}}),Ga=b(Oa,[["__scopeId","data-v-d99bfeec"]]),Ua={key:0,class:"VPNavScreenMenu"},ja=m({__name:"VPNavScreenMenu",setup(n){const{theme:e}=S();return(t,s)=>r(e).nav?(a(),c("nav",Ua,[(a(!0),c(C,null,E(r(e).nav,o=>(a(),c(C,{key:JSON.stringify(o)},["link"in o?(a(),_(Va,{key:0,item:o},null,8,["item"])):"component"in o?(a(),_(F(o.component),K({key:1,ref_for:!0},o.props,{"screen-menu":""}),null,16)):(a(),_(Ga,{key:2,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):f("",!0)}}),Ja=m({__name:"VPNavScreenSocialLinks",setup(n){const{theme:e}=S();return(t,s)=>r(e).socialLinks?(a(),_(ge,{key:0,class:"VPNavScreenSocialLinks",links:r(e).socialLinks},null,8,["links"])):f("",!0)}}),Fe=n=>(B("data-v-516e4bc3"),n=n(),H(),n),Ka=Fe(()=>v("span",{class:"vpi-languages icon lang"},null,-1)),Wa=Fe(()=>v("span",{class:"vpi-chevron-down icon chevron"},null,-1)),qa={class:"list"},za=m({__name:"VPNavScreenTranslations",setup(n){const{localeLinks:e,currentLang:t}=Y({correspondingLink:!0}),s=I(!1);function o(){s.value=!s.value}return(i,u)=>r(e).length&&r(t).label?(a(),c("div",{key:0,class:M(["VPNavScreenTranslations",{open:s.value}])},[v("button",{class:"title",onClick:o},[Ka,O(" "+N(r(t).label)+" ",1),Wa]),v("ul",qa,[(a(!0),c(C,null,E(r(e),p=>(a(),c("li",{key:p.link,class:"item"},[k(D,{class:"link",href:p.link},{default:h(()=>[O(N(p.text),1)]),_:2},1032,["href"])]))),128))])],2)):f("",!0)}}),Ra=b(za,[["__scopeId","data-v-516e4bc3"]]),Ya={class:"container"},Xa=m({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(n){const e=I(null),t=we(oe?document.body:null);return(s,o)=>(a(),_(ve,{name:"fade",onEnter:o[0]||(o[0]=i=>t.value=!0),onAfterLeave:o[1]||(o[1]=i=>t.value=!1)},{default:h(()=>[s.open?(a(),c("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[v("div",Ya,[l(s.$slots,"nav-screen-content-before",{},void 0,!0),k(ja,{class:"menu"}),k(Ra,{class:"translations"}),k(Pa,{class:"appearance"}),k(Ja,{class:"social-links"}),l(s.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):f("",!0)]),_:3}))}}),Qa=b(Xa,[["__scopeId","data-v-2dd6d0c7"]]),Za={key:0,class:"VPNav"},xa=m({__name:"VPNav",setup(n){const{isScreenOpen:e,closeScreen:t,toggleScreen:s}=Bo(),{frontmatter:o}=S(),i=y(()=>o.value.navbar!==!1);return Te("close-screen",t),Z(()=>{oe&&document.documentElement.classList.toggle("hide-nav",!i.value)}),(u,p)=>i.value?(a(),c("header",Za,[k(ba,{"is-screen-open":r(e),onToggleScreen:r(s)},{"nav-bar-title-before":h(()=>[l(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[l(u.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":h(()=>[l(u.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":h(()=>[l(u.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),k(Qa,{open:r(e)},{"nav-screen-content-before":h(()=>[l(u.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":h(()=>[l(u.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):f("",!0)}}),er=b(xa,[["__scopeId","data-v-7ad780c2"]]),De=n=>(B("data-v-edd2eed8"),n=n(),H(),n),tr=["role","tabindex"],nr=De(()=>v("div",{class:"indicator"},null,-1)),or=De(()=>v("span",{class:"vpi-chevron-right caret-icon"},null,-1)),sr=[or],ar={key:1,class:"items"},rr=m({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(n){const e=n,{collapsed:t,collapsible:s,isLink:o,isActiveLink:i,hasActiveLink:u,hasChildren:p,toggle:d}=Pt(y(()=>e.item)),g=y(()=>p.value?"section":"div"),w=y(()=>o.value?"a":"div"),P=y(()=>p.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),$=y(()=>o.value?void 0:"button"),L=y(()=>[[`level-${e.depth}`],{collapsible:s.value},{collapsed:t.value},{"is-link":o.value},{"is-active":i.value},{"has-active":u.value}]);function V(T){"key"in T&&T.key!=="Enter"||!e.item.link&&d()}function A(){e.item.link&&d()}return(T,j)=>{const J=z("VPSidebarItem",!0);return a(),_(F(g.value),{class:M(["VPSidebarItem",L.value])},{default:h(()=>[T.item.text?(a(),c("div",K({key:0,class:"item",role:$.value},Ze(T.item.items?{click:V,keydown:V}:{},!0),{tabindex:T.item.items&&0}),[nr,T.item.link?(a(),_(D,{key:0,tag:w.value,class:"link",href:T.item.link,rel:T.item.rel,target:T.item.target},{default:h(()=>[(a(),_(F(P.value),{class:"text",innerHTML:T.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),_(F(P.value),{key:1,class:"text",innerHTML:T.item.text},null,8,["innerHTML"])),T.item.collapsed!=null&&T.item.items&&T.item.items.length?(a(),c("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:A,onKeydown:xe(A,["enter"]),tabindex:"0"},sr,32)):f("",!0)],16,tr)):f("",!0),T.item.items&&T.item.items.length?(a(),c("div",ar,[T.depth<5?(a(!0),c(C,{key:0},E(T.item.items,R=>(a(),_(J,{key:R.text,item:R,depth:T.depth+1},null,8,["item","depth"]))),128)):f("",!0)])):f("",!0)]),_:1},8,["class"])}}}),ir=b(rr,[["__scopeId","data-v-edd2eed8"]]),lr=m({__name:"VPSidebarGroup",props:{items:{}},setup(n){const e=I(!0);let t=null;return W(()=>{t=setTimeout(()=>{t=null,e.value=!1},300)}),et(()=>{t!=null&&(clearTimeout(t),t=null)}),(s,o)=>(a(!0),c(C,null,E(s.items,i=>(a(),c("div",{key:i.text,class:M(["group",{"no-transition":e.value}])},[k(ir,{item:i,depth:0},null,8,["item"])],2))),128))}}),cr=b(lr,[["__scopeId","data-v-51288d80"]]),Oe=n=>(B("data-v-42c4c606"),n=n(),H(),n),ur=Oe(()=>v("div",{class:"curtain"},null,-1)),dr={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},vr=Oe(()=>v("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),pr=m({__name:"VPSidebar",props:{open:{type:Boolean}},setup(n){const{sidebarGroups:e,hasSidebar:t}=U(),s=n,o=I(null),i=we(oe?document.body:null);G([s,o],()=>{var p;s.open?(i.value=!0,(p=o.value)==null||p.focus()):i.value=!1},{immediate:!0,flush:"post"});const u=I(0);return G(e,()=>{u.value+=1},{deep:!0}),(p,d)=>r(t)?(a(),c("aside",{key:0,class:M(["VPSidebar",{open:p.open}]),ref_key:"navEl",ref:o,onClick:d[0]||(d[0]=tt(()=>{},["stop"]))},[ur,v("nav",dr,[vr,l(p.$slots,"sidebar-nav-before",{},void 0,!0),(a(),_(cr,{items:r(e),key:u.value},null,8,["items"])),l(p.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):f("",!0)}}),hr=b(pr,[["__scopeId","data-v-42c4c606"]]),fr=m({__name:"VPSkipLink",setup(n){const e=te(),t=I();G(()=>e.path,()=>t.value.focus());function s({target:o}){const i=document.getElementById(decodeURIComponent(o.hash).slice(1));if(i){const u=()=>{i.removeAttribute("tabindex"),i.removeEventListener("blur",u)};i.setAttribute("tabindex","-1"),i.addEventListener("blur",u),i.focus(),window.scrollTo(0,0)}}return(o,i)=>(a(),c(C,null,[v("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),v("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}}),_r=b(fr,[["__scopeId","data-v-c8291ffa"]]),mr=m({__name:"Layout",setup(n){const{isOpen:e,open:t,close:s}=U(),o=te();G(()=>o.path,s),yt(e,s);const{frontmatter:i}=S(),u=nt(),p=y(()=>!!u["home-hero-image"]);return Te("hero-image-slot-exists",p),(d,g)=>{const w=z("Content");return r(i).layout!==!1?(a(),c("div",{key:0,class:M(["Layout",r(i).pageClass])},[l(d.$slots,"layout-top",{},void 0,!0),k(_r),k(it,{class:"backdrop",show:r(e),onClick:r(s)},null,8,["show","onClick"]),k(er,null,{"nav-bar-title-before":h(()=>[l(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[l(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":h(()=>[l(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":h(()=>[l(d.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":h(()=>[l(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":h(()=>[l(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),k(Co,{open:r(e),onOpenMenu:r(t)},null,8,["open","onOpenMenu"]),k(hr,{open:r(e)},{"sidebar-nav-before":h(()=>[l(d.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":h(()=>[l(d.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),k(po,null,{"page-top":h(()=>[l(d.$slots,"page-top",{},void 0,!0)]),"page-bottom":h(()=>[l(d.$slots,"page-bottom",{},void 0,!0)]),"not-found":h(()=>[l(d.$slots,"not-found",{},void 0,!0)]),"home-hero-before":h(()=>[l(d.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":h(()=>[l(d.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":h(()=>[l(d.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":h(()=>[l(d.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":h(()=>[l(d.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":h(()=>[l(d.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":h(()=>[l(d.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":h(()=>[l(d.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":h(()=>[l(d.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":h(()=>[l(d.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":h(()=>[l(d.$slots,"doc-before",{},void 0,!0)]),"doc-after":h(()=>[l(d.$slots,"doc-after",{},void 0,!0)]),"doc-top":h(()=>[l(d.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":h(()=>[l(d.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":h(()=>[l(d.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":h(()=>[l(d.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":h(()=>[l(d.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[l(d.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[l(d.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[l(d.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),k(ko),l(d.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),_(w,{key:1}))}}}),kr=b(mr,[["__scopeId","data-v-d8b57b2d"]]),Ge={Layout:kr,enhanceApp:({app:n})=>{n.component("Badge",st)}},br={class:"comment-container vp-raw"},gr=v("link",{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css",integrity:"sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X",crossorigin:"anonymous"},null,-1),$r=v("link",{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/lightgallery@2.1.8/css/lightgallery.css",integrity:"sha384-U8ohOXEVyF0NGY2LQnH83V4wGxOmFhim4U5xhfE/WDCHdPO2iUKPPYkhpDl9U/Yf",crossorigin:"anonymous"},null,-1),yr=v("div",{id:"twikoo"},null,-1),Pr="https://twikoojsorg.imaegoo.com",ye={__name:"Twikoo",setup(n){const e=I(null),t=ot();function s(){try{twikoo.init({envId:Pr,onCommentLoaded:o})}catch{}}function o(){for(var p=[...document.getElementsByClassName("vp-doc"),...document.getElementsByClassName("tk-content")],d=0;d0){for(var P=0;P{s(),i()}),(p,d)=>(a(),c("div",br,[gr,(a(),_(F("script"),{defer:"",src:"https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js",integrity:"sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4",crossorigin:"anonymous"})),(a(),_(F("script"),{defer:"",src:"https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js",integrity:"sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa",crossorigin:"anonymous"})),$r,(a(),_(F("script"),{src:"https://cdn.jsdelivr.net/npm/lightgallery@2.1.8/lightgallery.min.js",integrity:"sha384-l5lFB9srHFAyvfCoHya9X1JwGGTNPvDtikieqZp7qu/bomCw0e0+yoyiL0f7UXLD",crossorigin:"anonymous"})),yr,(a(),_(F("script"),{src:"https://cdn.jsdelivr.net/npm/twikoo@1.6.38/dist/twikoo.min.js",crossorigin:"anonymous",ref_key:"twikooJs",ref:e},null,512))]))}},Lr={class:"home-comment-container"},Vr={__name:"Layout",setup(n){const{Layout:e}=Ge;return(t,s)=>(a(),_(r(e),null,{"home-features-after":h(()=>[v("div",Lr,[k(ye)])]),"doc-after":h(()=>[k(ye)]),_:1}))}},wr={...Ge,Layout:Vr};export{wr as R,S as u}; diff --git a/assets/cms.md.BdzG_o1m.js b/assets/cms.md.BdzG_o1m.js new file mode 100644 index 000000000..d95d17e4f --- /dev/null +++ b/assets/cms.md.BdzG_o1m.js @@ -0,0 +1 @@ +import{_ as a,c as t,o as s,j as e,a as o}from"./chunks/framework.CVd-vdtw.js";const x=JSON.parse('{"title":"反垃圾","description":"","frontmatter":{},"headers":[],"relativePath":"cms.md","filePath":"cms.md","lastUpdated":null}'),c={name:"cms.md"},r=e("h1",{id:"反垃圾",tabindex:"-1"},[o("反垃圾 "),e("a",{class:"header-anchor",href:"#反垃圾","aria-label":'Permalink to "反垃圾"'},"​")],-1),n=e("p",null,[e("a",{href:"./faq.html#如何配置反垃圾"},"如何配置反垃圾?")],-1),d=[r,n];function l(i,_,m,h,p,f){return s(),t("div",null,d)}const $=a(c,[["render",l]]);export{x as __pageData,$ as default}; diff --git a/assets/cms.md.BdzG_o1m.lean.js b/assets/cms.md.BdzG_o1m.lean.js new file mode 100644 index 000000000..d95d17e4f --- /dev/null +++ b/assets/cms.md.BdzG_o1m.lean.js @@ -0,0 +1 @@ +import{_ as a,c as t,o as s,j as e,a as o}from"./chunks/framework.CVd-vdtw.js";const x=JSON.parse('{"title":"反垃圾","description":"","frontmatter":{},"headers":[],"relativePath":"cms.md","filePath":"cms.md","lastUpdated":null}'),c={name:"cms.md"},r=e("h1",{id:"反垃圾",tabindex:"-1"},[o("反垃圾 "),e("a",{class:"header-anchor",href:"#反垃圾","aria-label":'Permalink to "反垃圾"'},"​")],-1),n=e("p",null,[e("a",{href:"./faq.html#如何配置反垃圾"},"如何配置反垃圾?")],-1),d=[r,n];function l(i,_,m,h,p,f){return s(),t("div",null,d)}const $=a(c,[["render",l]]);export{x as __pageData,$ as default}; diff --git a/assets/configuration.md.DCZb7-7K.js b/assets/configuration.md.DCZb7-7K.js new file mode 100644 index 000000000..af10a9c9d --- /dev/null +++ b/assets/configuration.md.DCZb7-7K.js @@ -0,0 +1 @@ +import{_ as e,c as a,o,a5 as r}from"./chunks/framework.CVd-vdtw.js";const u=JSON.parse('{"title":"配置","description":"","frontmatter":{},"headers":[],"relativePath":"configuration.md","filePath":"configuration.md","lastUpdated":null}'),t={name:"configuration.md"},l=r('

配置

注意

因图形化配置界面已上线,此文档已废弃且不再维护,其中的内容可能已经过时

  • 配置是可选的,即使没有配置也可以使用。
  • 请确保 config 表的权限不是“所有用户可读”,以保证 SMTP 密码等信息不会泄露。
    不过放心,默认权限是安全的,您不需要更改。
  • 请将配置项放在一条数据记录中。

通用

SITE_NAME

类型: String
默认值: null
必要性: false
示例: 虹墨空间站

博客、站点名称。

SITE_URL

类型: String
默认值: null
必要性: false
示例: https://www.imaegoo.com

博客、站点地址。

BLOGGER_EMAIL

类型: String
默认值: null
必要性: false
示例: 12345@qq.com

博主的邮箱地址,用于邮件通知、博主标识。

反垃圾

AKISMET_KEY

类型: String
默认值: null
必要性: false
示例: 8651783ed123

反垃圾评论 API key。

微信通知

SC_SENDKEY

类型: String
默认值: null
必要性: false
示例: SCT1364TKdsiGjGvyAZNYDVnuHW12345

Server酱微信推送的 SCKEY

邮件通知

SENDER_EMAIL

类型: String
默认值: null
必要性: false
示例: blog@imaegoo.com

邮件通知邮箱地址。对于大多数邮箱服务商,SENDER_EMAIL 必须和 SMTP_USER 保持一致,否则无法发送邮件。

SENDER_NAME

类型: String
默认值: null
必要性: false
示例: 虹墨空间站评论提醒

邮件通知标题。

SMTP_SERVICE

类型: String
默认值: null
必要性: false
示例: qiye.aliyun

邮件通知邮箱服务商。
完整列表请参考:Supported services

SMTP_USER

类型: String
默认值: null
必要性: false
示例: blog@imaegoo.com

邮件通知邮箱用户名。

SMTP_PASS

类型: String
默认值: null
必要性: false
示例: password

邮件通知邮箱密码,QQ邮箱请填写授权码。

',36),c=[l];function d(i,n,s,h,b,p){return o(),a("div",null,c)}const _=e(t,[["render",d]]);export{u as __pageData,_ as default}; diff --git a/assets/configuration.md.DCZb7-7K.lean.js b/assets/configuration.md.DCZb7-7K.lean.js new file mode 100644 index 000000000..be953231b --- /dev/null +++ b/assets/configuration.md.DCZb7-7K.lean.js @@ -0,0 +1 @@ +import{_ as e,c as a,o,a5 as r}from"./chunks/framework.CVd-vdtw.js";const u=JSON.parse('{"title":"配置","description":"","frontmatter":{},"headers":[],"relativePath":"configuration.md","filePath":"configuration.md","lastUpdated":null}'),t={name:"configuration.md"},l=r("",36),c=[l];function d(i,n,s,h,b,p){return o(),a("div",null,c)}const _=e(t,[["render",d]]);export{u as __pageData,_ as default}; diff --git a/assets/en_api.md.CW0wM_jf.js b/assets/en_api.md.CW0wM_jf.js new file mode 100644 index 000000000..c4566ccb1 --- /dev/null +++ b/assets/en_api.md.CW0wM_jf.js @@ -0,0 +1,55 @@ +import{_ as s,c as i,o as a,a5 as n}from"./chunks/framework.CVd-vdtw.js";const g=JSON.parse('{"title":"API reference","description":"","frontmatter":{},"headers":[],"relativePath":"en/api.md","filePath":"en/api.md","lastUpdated":null}'),e={name:"en/api.md"},t=n(`

API reference

Through Twikoo API, theme developers can implement some special features, such as displaying the number of article comments in the article list, displaying the latest comments on the home page, etc.

It is not necessary to execute twikoo.init() before calling the Twikoo API.

Get comments count

Get the number of article comments in batch.

Version

>= 0.2.7

Example

js
twikoo.getCommentsCount({
+  envId: 'Environment ID', // Tencent CloudBase Environment ID
+  // region: 'ap-guangzhou', // Environment locale, default is ap-shanghai, if your environment locale is not Shanghai, you need to pass this parameter
+  urls: [ // List of article paths without protocols, domains and parameters. It is a mandatory parameter
+    '/2020/10/post-1.html',
+    '/2020/11/post-2.html',
+    '/2020/12/post-3.html'
+  ],
+  includeReply: false // Whether the number of comments includes replies, the default parameter is false
+}).then(function (res) {
+  console.log(res);
+  // example: [
+  //   { url: '/2020/10/post-1.html', count: 10 },
+  //   { url: '/2020/11/post-2.html', count: 0 },
+  //   { url: '/2020/12/post-3.html', count: 20 }
+  // ]
+}).catch(function (err) {
+  // If an error occurs
+  console.error(err);
+});

Get recent comments

Get the latest comments.

Version

>= 0.2.7

Example

js
twikoo.getRecentComments({
+  envId: '您的环境id', // Tencent CloudBase Environment ID
+  // region: 'ap-guangzhou', // Environment locale, default is ap-shanghai, if your environment locale is not Shanghai, you need to pass this parameter
+  pageSize: 10, // Get how many bars, the default parameter is 10, the maximum parameter is 100
+  includeReply: false // Whether to include the latest reply, the default parameter is false
+}).then(function (res) {
+  console.log(res);
+  // Returns Array with the latest comments
+  // * id: comment ID
+  // * url: address of the comment
+  // * nick: nickname
+  // * mailMd5: The MD5 value of the mailbox, which can be used to display the avatar
+  // * link: URL
+  // * comment: the content of the comment in HTML format
+  // * commentText: comment content in plain text format
+  // * created: comment time, in millisecond timestamp format
+  // * avatar: the address of the avatar (new in 0.2.9)
+  // * relativeTime: relative comment time, e.g. "1 hour ago" (new in 0.2.9)
+  // Return example: [ // order from new to old
+  // { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 }
+  // { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 },
+  // { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 }
+  // ]
+}).catch(function (err) {
+  // If an error occurs
+  console.error(err);
+});

On Twikoo loaded

Callback function after Twikoo is successfully mounted.
It will not be triggered in case of environment ID error, network exception, mount failure, etc.

Version

>= 0.5.2

Example

js
twikoo.init({
+  ......
+}).then(function () {
+  console.log('Twikoo is ready to go!');
+});

On comment loaded

Callback function after comments are loaded successfully.
It will also be triggered when the comment is automatically refreshed after posting and when the next page of comments is loaded.
It will not be triggered when the comment fails to load.

Version

>= 0.5.2

Example

js
twikoo.init({
+  ......,
+  onCommentLoaded: function () {
+    console.log('Comment loading complete');
+  }
+});
`,27),l=[t];function h(p,k,r,o,d,E){return a(),i("div",null,l)}const m=s(e,[["render",h]]);export{g as __pageData,m as default}; diff --git a/assets/en_api.md.CW0wM_jf.lean.js b/assets/en_api.md.CW0wM_jf.lean.js new file mode 100644 index 000000000..dbd754535 --- /dev/null +++ b/assets/en_api.md.CW0wM_jf.lean.js @@ -0,0 +1 @@ +import{_ as s,c as i,o as a,a5 as n}from"./chunks/framework.CVd-vdtw.js";const g=JSON.parse('{"title":"API reference","description":"","frontmatter":{},"headers":[],"relativePath":"en/api.md","filePath":"en/api.md","lastUpdated":null}'),e={name:"en/api.md"},t=n("",27),l=[t];function h(p,k,r,o,d,E){return a(),i("div",null,l)}const m=s(e,[["render",h]]);export{g as __pageData,m as default}; diff --git a/assets/en_backend.md.Be2ntHYx.js b/assets/en_backend.md.Be2ntHYx.js new file mode 100644 index 000000000..e8973969a --- /dev/null +++ b/assets/en_backend.md.Be2ntHYx.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a}from"./chunks/framework.CVd-vdtw.js";const l=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en/backend.md","filePath":"en/backend.md","lastUpdated":null}'),n={name:"en/backend.md"};function c(r,o,s,d,p,_){return a(),t("div")}const m=e(n,[["render",c]]);export{l as __pageData,m as default}; diff --git a/assets/en_backend.md.Be2ntHYx.lean.js b/assets/en_backend.md.Be2ntHYx.lean.js new file mode 100644 index 000000000..e8973969a --- /dev/null +++ b/assets/en_backend.md.Be2ntHYx.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a}from"./chunks/framework.CVd-vdtw.js";const l=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en/backend.md","filePath":"en/backend.md","lastUpdated":null}'),n={name:"en/backend.md"};function c(r,o,s,d,p,_){return a(),t("div")}const m=e(n,[["render",c]]);export{l as __pageData,m as default}; diff --git a/assets/en_faq.md.C_sMydwc.js b/assets/en_faq.md.C_sMydwc.js new file mode 100644 index 000000000..d8122331b --- /dev/null +++ b/assets/en_faq.md.C_sMydwc.js @@ -0,0 +1,17 @@ +import{_ as e}from"./chunks/katex.B5umXGHV.js";import{_ as i,c as t,o as s,a5 as a}from"./chunks/framework.CVd-vdtw.js";const m=JSON.parse('{"title":"FAQ","description":"","frontmatter":{},"headers":[],"relativePath":"en/faq.md","filePath":"en/faq.md","lastUpdated":null}'),n={name:"en/faq.md"},o=a(`

FAQ

How do I change my avatar?

https://gravatar.com Register and set your avatar by email and leave the same email when commenting.

Visitors can also comment by entering their digital QQ email address and using their QQ avatar.

How do I change or reset the administrator password?

云开发控制台Edit the configuration, delete the config.ADMIN_PASS configuration item, and then go to the Twikoo administration panel to reset the password.

How to get the private key file of the admin panel?

  1. 环境-登录授权Click "Private Key Download" on the right of "Custom Login" to download the private key file
  2. Open the private key file with a text editor and copy all the contents
  3. Click the "pinion" (settings) icon in the comment window, paste the contents of the private key file, and set the administrator password

How to turn on article visit statistics?

You can add where you need to show the number of article visits:

html
<span id="twikoo_visitors">0</span>

to display the number of visits. We do not support site-wide visit statistics at the moment.

How can I test if the Akismet anti-spam configuration is in effect?

Please fill in viagra-test-123 as a nickname, or akismet-guaranteed-spam@example.com as an email address to post a comment, which will definitely be considered as a spam comment.

Note that due to the slow response time of the Akismet service (about 6 seconds), which affects the user experience, Twikoo adopts a "release first, detect later" policy, and spam comments will be visible for a short time after they are posted.

How are free resources calculated?

环境总览See resource usage. twikoo consumes database and cloud functions, both with a free usage of -

  • Database: 50,000 reads/day, 50,000 writes/day
  • Cloud functions: 40,000 GBs/month

The memory consumption of Twikoo cloud functions is constant at 0.1GB, which means that Twikoo cloud functions have a running time of up to 400,000 seconds per month, and the bottleneck of free resources is mainly in the daily read limit of the database. It is recommended that webmasters pay attention to the usage of free resources.

How do I enable Katex support?

Twikoo supports Katex formulas, but to limit the package size of Twikoo, Twikoo does not have the full Katex built-in, you need to load katex.js additionally in the page.

example

html
<head>
+  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous">
+  <script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js" integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4" crossorigin="anonymous"></script>
+  <script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js" integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa" crossorigin="anonymous"></script>
+</head>

After loading, you can send $$c = \\pm\\sqrt{a^2 + b^2}$$ to test the effect.

katex

You can also pass in a custom katex configuration during twikoo.init, see Katex Auto-render Extension for details.

js
twikoo.init({
+  envId: 'Environment id',
+  el: '#tcomment',
+  katex: {
+    delimiters: [
+      { left: '$$', right: '$$', display: true },
+      { left: '$', right: '$', display: false },
+      { left: '\\\\(', right: '\\\\)', display: false },
+      { left: '\\\\[', right: '\\\\]', display: true }
+    ],
+    throwOnError: false
+  }
+});

How to configure anti-spam?

Using Tencent Cloud Content Security Service

Twikoo supports access to Tencent Cloud Text Content Detection, which uses deep learning technology to identify harmful content involving pornography, politics, terrorism, etc. It also supports user-configurable thesaurus to combat customized offending text.

Tencent Cloud text content detection is a paid service, offering a 1-month free trial, after which the price is 25 RMB per 10,000 entries. If you don't have high requirements for anti-spam comments, you can also use the free Akismet.

How to apply for Tencent Cloud Text Content Inspection?

  1. Visit Tencent Cloud Console - Text Content Security to open the text content security service
  2. Visit Tencent Cloud Console - User List, click New User, and click Quick Create.
  3. Enter the user name, select "Programmatic Access" as the access method, cancel "AdministratorAccess" as the user privilege, and only check the box "QcloudCMSFullAccess". QcloudCMSFullAccess".
  4. Click "Create User". 5.
  5. Copy the "SecretId" and "SecretKey" from the "Successful New User" page to the Twikoo administration panel Configure them in the "Anti-Spam" module
  6. Test the anti-spam effect

After success, webmasters can configure custom text content filtering in Tencent Cloud Console - Custom Library Management.

Using Akismet Anti-Spam Service

Akismet (Automattic Kismet) is a widely used spam filtering system by Matt Mullenweg, the founder of WordPress, Akismet is also the default plugin installed in WordPress and is very widely used. The goal of the design is to help blog sites to filter spam messages.

  1. Register akismet.com
  2. Select Akismet Personal subscription, copy the Akismet API Key and configure it in the Twikoo admin panel "Anti-Spam" module

Error encountered in login administration panel AUTH_INVALID_CUSTOM_LOGIN_TICKET

Generally, after configuring the login private key, the login private key is downloaded again, which causes the previously configured login private key to be invalid.
Solution: Go to Cloud Development Console, database, delete the config, and then reconfigure the private key.

Can't receive emails?

If it is a cloud function deployed by Vercel, please configure foreign mail service providers to avoid being judged as spam behavior by mail service providers. If it is other reasons, please go to Twikoo management panel, find mail test function, enter your personal mailbox and troubleshoot the reasons according to the test results.

In order to avoid performance problems caused by frequent mailbox checking, the mail configuration has a cache of about 10 minutes, if you are sure the configuration is fine but the test fails, you can wait for 10 minutes and then test again.

Vercel can't upload images?

The Tencent Cloud environment comes with cloud storage, so you can upload images directly in the Tencent Cloud environment, and the images are saved in the cloud storage. However, Vercel environment does not, the upload image function relies on third party image bed, please configure the image bed in the admin panel, Twikoo supports the following image bed:

BedAddressFeatures
qcloudNoneTencent Cloud environment comes with it, can be viewed in Cloud Development - Cloud Storage
7buhttps://7bu.topGo to No Bed, powered by 杜老师, no free packages
smmshttps://sm.msSMMS image bed, there is a free package, please register your account, IMAGE_CDN_TOKEN can be obtained in Dashboard
lsky-proPrivate DeploymentLankenGraphics 2.0 version, IMAGE_CDN please configure the URL address of the home page of the graph bed (such as https://7bu.top), IMAGE_CDN_TOKEN get way please refer to the tutorial 杜老师 said the graph bed: new version Go not to the bed Token acquisition and emptying, the format of the obtained token should be 1|1bJbwlqBfnggmOMEZqXT5XusaIwqiZjCDs7r1Ob5)

Can it be deployed privately?

Yes.

`,47),r=[o];function l(h,p,d,k,c,u){return s(),t("div",null,r)}const y=i(n,[["render",l]]);export{m as __pageData,y as default}; diff --git a/assets/en_faq.md.C_sMydwc.lean.js b/assets/en_faq.md.C_sMydwc.lean.js new file mode 100644 index 000000000..a38a74377 --- /dev/null +++ b/assets/en_faq.md.C_sMydwc.lean.js @@ -0,0 +1 @@ +import{_ as e}from"./chunks/katex.B5umXGHV.js";import{_ as i,c as t,o as s,a5 as a}from"./chunks/framework.CVd-vdtw.js";const m=JSON.parse('{"title":"FAQ","description":"","frontmatter":{},"headers":[],"relativePath":"en/faq.md","filePath":"en/faq.md","lastUpdated":null}'),n={name:"en/faq.md"},o=a("",47),r=[o];function l(h,p,d,k,c,u){return s(),t("div",null,r)}const y=i(n,[["render",l]]);export{m as __pageData,y as default}; diff --git a/assets/en_frontend.md.CNDYx125.js b/assets/en_frontend.md.CNDYx125.js new file mode 100644 index 000000000..26f05b14a --- /dev/null +++ b/assets/en_frontend.md.CNDYx125.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as n}from"./chunks/framework.CVd-vdtw.js";const i=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en/frontend.md","filePath":"en/frontend.md","lastUpdated":null}'),a={name:"en/frontend.md"};function r(o,s,d,c,f,p){return n(),t("div")}const l=e(a,[["render",r]]);export{i as __pageData,l as default}; diff --git a/assets/en_frontend.md.CNDYx125.lean.js b/assets/en_frontend.md.CNDYx125.lean.js new file mode 100644 index 000000000..26f05b14a --- /dev/null +++ b/assets/en_frontend.md.CNDYx125.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as n}from"./chunks/framework.CVd-vdtw.js";const i=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en/frontend.md","filePath":"en/frontend.md","lastUpdated":null}'),a={name:"en/frontend.md"};function r(o,s,d,c,f,p){return n(),t("div")}const l=e(a,[["render",r]]);export{i as __pageData,l as default}; diff --git a/assets/en_index.md.DCYeD9X8.js b/assets/en_index.md.DCYeD9X8.js new file mode 100644 index 000000000..c092125e4 --- /dev/null +++ b/assets/en_index.md.DCYeD9X8.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as i}from"./chunks/framework.CVd-vdtw.js";const p=JSON.parse('{"title":"Twikoo","titleTemplate":"A simple, safe, free comment system","description":"","frontmatter":{"layout":"home","title":"Twikoo","titleTemplate":"A simple, safe, free comment system","hero":{"name":"Twikoo","text":"Comment system","tagline":"Simple, safe, free","actions":[{"theme":"brand","text":"Quick start","link":"/en/quick-start"},{"theme":"alt","text":"Introduction","link":"/en/intro"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/twikoojs/twikoo"}],"image":{"src":"/twikoo-logo-home.png","alt":"Twikoo"}},"features":[{"icon":"🚀","title":"简单","details":"免费搭建,简单部署"},{"icon":"😃","title":"易用","details":"功能丰富,兼容性强"},{"icon":"🛡️","title":"安全","details":"隐私安全,内容安全"},{"icon":"⏰","title":"即时","details":"邮件提醒,即时消息推送"},{"icon":"🌈","title":"个性","details":"自定义背景图,博主标识"},{"icon":"⚙️","title":"便捷管理","details":"内嵌式管理面板,通过密码登录"}]},"headers":[],"relativePath":"en/index.md","filePath":"en/index.md","lastUpdated":null}'),o={name:"en/index.md"};function n(a,s,l,m,c,r){return i(),t("div")}const f=e(o,[["render",n]]);export{p as __pageData,f as default}; diff --git a/assets/en_index.md.DCYeD9X8.lean.js b/assets/en_index.md.DCYeD9X8.lean.js new file mode 100644 index 000000000..c092125e4 --- /dev/null +++ b/assets/en_index.md.DCYeD9X8.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as i}from"./chunks/framework.CVd-vdtw.js";const p=JSON.parse('{"title":"Twikoo","titleTemplate":"A simple, safe, free comment system","description":"","frontmatter":{"layout":"home","title":"Twikoo","titleTemplate":"A simple, safe, free comment system","hero":{"name":"Twikoo","text":"Comment system","tagline":"Simple, safe, free","actions":[{"theme":"brand","text":"Quick start","link":"/en/quick-start"},{"theme":"alt","text":"Introduction","link":"/en/intro"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/twikoojs/twikoo"}],"image":{"src":"/twikoo-logo-home.png","alt":"Twikoo"}},"features":[{"icon":"🚀","title":"简单","details":"免费搭建,简单部署"},{"icon":"😃","title":"易用","details":"功能丰富,兼容性强"},{"icon":"🛡️","title":"安全","details":"隐私安全,内容安全"},{"icon":"⏰","title":"即时","details":"邮件提醒,即时消息推送"},{"icon":"🌈","title":"个性","details":"自定义背景图,博主标识"},{"icon":"⚙️","title":"便捷管理","details":"内嵌式管理面板,通过密码登录"}]},"headers":[],"relativePath":"en/index.md","filePath":"en/index.md","lastUpdated":null}'),o={name:"en/index.md"};function n(a,s,l,m,c,r){return i(),t("div")}const f=e(o,[["render",n]]);export{p as __pageData,f as default}; diff --git a/assets/en_intro.md.DkP2ESGI.js b/assets/en_intro.md.DkP2ESGI.js new file mode 100644 index 000000000..6d3fbc811 --- /dev/null +++ b/assets/en_intro.md.DkP2ESGI.js @@ -0,0 +1,3 @@ +import{_ as e,a,b as t,c as i}from"./chunks/readme-3.hEA_5CR-.js";import{_ as o,c as l,o as s,a5 as r}from"./chunks/framework.CVd-vdtw.js";const q=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en/intro.md","filePath":"en/intro.md","lastUpdated":null}'),n={name:"en/intro.md"},h=r('Twikoo
       

A simple, safe, free comment system.
简体中文 | English

This document is for American English. This document has many bugs.

Features

Simple

  • Free Build.(Using CloudBase / Vercel / self-hosted as the commenting backend)
  • Simple Deployment.(Support CloudBase / Vercel one-click deployment)

Easy to use

  • Support reply, like.
  • No additional adaptations, support with light theme and dark theme use.
  • Support API , batch get article comment count, latest comments.
  • Visitors entering QQ number in the nickname field will automatically complete the QQ nickname and QQ email.
  • Visitors fill in the digital QQ e-mail, will use the QQ avatar as the comment avatar.
  • Support the comment to paste pictures.(Can be disabled)
  • Support inserting pictures.(Can be disabled)
  • Support 7bu image bed, Tencent CloudBase image bed.
  • Support inserting emoji.(Can be disabled)
  • Support Ctrl + Enter reply.
  • Comments are saved in draft in real time and will not be lost when refreshed.
  • Support Katex formulas.
  • Support for code highlighting by language.

Security

  • Privacy and information security. (sensitive fields (email, IP, environment configuration, etc.) are not leaked through Tencent cloud function control)
  • Support for Akismet spam comment detection.(View Details akismet.com
  • Support Tencent Cloud content security spam comment detection.(View Details Tencent Cloud Content Security
  • Support manual review mode.
  • Anti XSS Attack.
  • Support for limiting the maximum number of comments per IP per 10 minutes.

notification

  • E-mail(Visitors and Blogger)
  • Wechat(only Blogger, Server酱
  • QQ(only Blogger, Qmsg酱

Personalization

  • Background image.
  • the "blogger" logo text.
  • Notification Email Template.
  • Comment prompt message.(placeholder)
  • emoji(OwO 的数据格式
  • 【Nickname】 【Email】 【Website】 Required / Optional
  • Code highlighting theme.

Management

  • Embedded panel with password login to easily view comments, hide comments, delete comments and modify configuration.
  • Support to hide the management portal and show it by entering a secret code.
  • Support for importing comments from Valine, Artalk, Disqus.

Disadvantages

  • IE is not supported.

Preview

Comments

Comments

Management

Management

Notification

Notification

Quick Start

Deploy

View Details

If you want to get updates, make suggestions and participate in the test, welcome to join the discussion group:1080829142 (QQ)
1080829142

Special Thanks

Icon design:Maemo Lee

Release notes & plans

Update logs & Development Plan

Development

If you want to develop locally for a second time, you can refer to the following commands:

sh
yarn dev # (http://localhost:9820/demo.html)
+yarn lint 
+yarn build # (dist/twikoo.all.min.js)

If your changes can help more people, feel free to submit a Pull Request!

I18N

Support Simplified Chinese, Traditional Chinese, English. translate Pull Request.

License

FOSSA Status

`,47),p=[h];function m(c,d,u,g,k,f){return s(),l("div",null,p)}const _=o(n,[["render",m]]);export{q as __pageData,_ as default}; diff --git a/assets/en_intro.md.DkP2ESGI.lean.js b/assets/en_intro.md.DkP2ESGI.lean.js new file mode 100644 index 000000000..2aa5e3d02 --- /dev/null +++ b/assets/en_intro.md.DkP2ESGI.lean.js @@ -0,0 +1 @@ +import{_ as e,a,b as t,c as i}from"./chunks/readme-3.hEA_5CR-.js";import{_ as o,c as l,o as s,a5 as r}from"./chunks/framework.CVd-vdtw.js";const q=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en/intro.md","filePath":"en/intro.md","lastUpdated":null}'),n={name:"en/intro.md"},h=r("",47),p=[h];function m(c,d,u,g,k,f){return s(),l("div",null,p)}const _=o(n,[["render",m]]);export{q as __pageData,_ as default}; diff --git a/assets/en_link.md.BKDF_GOK.js b/assets/en_link.md.BKDF_GOK.js new file mode 100644 index 000000000..9bf452173 --- /dev/null +++ b/assets/en_link.md.BKDF_GOK.js @@ -0,0 +1 @@ +import{_ as a,c as t,o as n,j as e,a as s}from"./chunks/framework.CVd-vdtw.js";const f=JSON.parse('{"title":"Links","description":"","frontmatter":{},"headers":[],"relativePath":"en/link.md","filePath":"en/link.md","lastUpdated":null}'),i={name:"en/link.md"},o=e("h1",{id:"links",tabindex:"-1"},[s("Links "),e("a",{class:"header-anchor",href:"#links","aria-label":'Permalink to "Links"'},"​")],-1),r=[o];function l(c,d,_,k,p,h){return n(),t("div",null,r)}const u=a(i,[["render",l]]);export{f as __pageData,u as default}; diff --git a/assets/en_link.md.BKDF_GOK.lean.js b/assets/en_link.md.BKDF_GOK.lean.js new file mode 100644 index 000000000..9bf452173 --- /dev/null +++ b/assets/en_link.md.BKDF_GOK.lean.js @@ -0,0 +1 @@ +import{_ as a,c as t,o as n,j as e,a as s}from"./chunks/framework.CVd-vdtw.js";const f=JSON.parse('{"title":"Links","description":"","frontmatter":{},"headers":[],"relativePath":"en/link.md","filePath":"en/link.md","lastUpdated":null}'),i={name:"en/link.md"},o=e("h1",{id:"links",tabindex:"-1"},[s("Links "),e("a",{class:"header-anchor",href:"#links","aria-label":'Permalink to "Links"'},"​")],-1),r=[o];function l(c,d,_,k,p,h){return n(),t("div",null,r)}const u=a(i,[["render",l]]);export{f as __pageData,u as default}; diff --git a/assets/en_quick-start.md.DfWqNlSK.js b/assets/en_quick-start.md.DfWqNlSK.js new file mode 100644 index 000000000..ce78756d9 --- /dev/null +++ b/assets/en_quick-start.md.DfWqNlSK.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,a5 as s}from"./chunks/framework.CVd-vdtw.js";const k=JSON.parse('{"title":"Quick start","description":"","frontmatter":{},"headers":[],"relativePath":"en/quick-start.md","filePath":"en/quick-start.md","lastUpdated":null}'),c={name:"en/quick-start.md"},i=s('

Quick start

Tip

The English document is being built. Please refer to the Chinese document.

',2),r=[i];function o(n,_,l,u,d,p){return a(),e("div",null,r)}const m=t(c,[["render",o]]);export{k as __pageData,m as default}; diff --git a/assets/en_quick-start.md.DfWqNlSK.lean.js b/assets/en_quick-start.md.DfWqNlSK.lean.js new file mode 100644 index 000000000..52f783380 --- /dev/null +++ b/assets/en_quick-start.md.DfWqNlSK.lean.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as a,a5 as s}from"./chunks/framework.CVd-vdtw.js";const k=JSON.parse('{"title":"Quick start","description":"","frontmatter":{},"headers":[],"relativePath":"en/quick-start.md","filePath":"en/quick-start.md","lastUpdated":null}'),c={name:"en/quick-start.md"},i=s("",2),r=[i];function o(n,_,l,u,d,p){return a(),e("div",null,r)}const m=t(c,[["render",o]]);export{k as __pageData,m as default}; diff --git a/assets/en_update.md.BE1f21Kp.js b/assets/en_update.md.BE1f21Kp.js new file mode 100644 index 000000000..56cfc60e1 --- /dev/null +++ b/assets/en_update.md.BE1f21Kp.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a}from"./chunks/framework.CVd-vdtw.js";const l=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en/update.md","filePath":"en/update.md","lastUpdated":null}'),n={name:"en/update.md"};function r(o,s,d,p,c,_){return a(),t("div")}const m=e(n,[["render",r]]);export{l as __pageData,m as default}; diff --git a/assets/en_update.md.BE1f21Kp.lean.js b/assets/en_update.md.BE1f21Kp.lean.js new file mode 100644 index 000000000..56cfc60e1 --- /dev/null +++ b/assets/en_update.md.BE1f21Kp.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o as a}from"./chunks/framework.CVd-vdtw.js";const l=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"en/update.md","filePath":"en/update.md","lastUpdated":null}'),n={name:"en/update.md"};function r(o,s,d,p,c,_){return a(),t("div")}const m=e(n,[["render",r]]);export{l as __pageData,m as default}; diff --git a/assets/faq-1.CGQdkUsI.png b/assets/faq-1.CGQdkUsI.png new file mode 100644 index 000000000..b87119bba Binary files /dev/null and b/assets/faq-1.CGQdkUsI.png differ diff --git a/assets/faq.md.C9Rjxs18.js b/assets/faq.md.C9Rjxs18.js new file mode 100644 index 000000000..aa98bd9ee --- /dev/null +++ b/assets/faq.md.C9Rjxs18.js @@ -0,0 +1,17 @@ +import{_ as s}from"./chunks/katex.B5umXGHV.js";import{_ as i,c as a,o as t,a5 as e}from"./chunks/framework.CVd-vdtw.js";const n="/assets/faq-1.CGQdkUsI.png",u=JSON.parse('{"title":"常见问题","description":"","frontmatter":{},"headers":[],"relativePath":"faq.md","filePath":"faq.md","lastUpdated":null}'),h={name:"faq.md"},l=e('

常见问题

如何修改头像?

请前往 https://weavatar.com 通过邮箱注册并设定头像,评论时,请留下相同的邮箱。

访客还可以通过输入数字 QQ 邮箱地址,使用 QQ 头像发表评论。

如何修改、重置管理员密码?

腾讯云请前往云开发控制台,Vercel 请前往 MongoDB,私有部署请直接编辑 data/db.json.1,编辑配置,删除 config.ADMIN_PASS 配置项,然后前往 Twikoo 管理面板重新设置密码。

如何获得管理面板的私钥文件?

  1. 进入环境-登录授权,点击“自定义登录”右边的“私钥下载”,下载私钥文件
  2. 用文本编辑器打开私钥文件,复制全部内容
  3. 点击评论窗口的“小齿轮”图标,粘贴私钥文件内容,并设置管理员密码

忘记暗号,无法进入管理面板怎么办?

在包含评论框的页面,打开浏览器开发者工具(Windows 下快捷键为 F12),点击 Network 标签,刷新一下页面,点击放大镜图标(Search),在出现的搜索栏中输入 HIDE_ADMIN_CRYPT,点击搜索栏旁边的刷新图标(Refresh),即可找到您的暗号。

请注意,暗号并非管理面板的加密手段,仅用于向普通访客隐藏管理面板,请勿把暗号和管理面板的密码设置为相同的字符串。

如何开启文章访问量统计?

您可以在需要展示文章访问量的地方添加:

html
<span id="twikoo_visitors">0</span>

来展示访问量。暂不支持全站访问量统计。

如何启用 Katex 支持?

Twikoo 支持 Katex 公式,但为了限制 Twikoo 的包大小,Twikoo 没有内置完整的 Katex,您需要在页面中额外加载 katex.js

html
<head>
+  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous">
+  <script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js" integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4" crossorigin="anonymous"></script>
+  <script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js" integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa" crossorigin="anonymous"></script>
+</head>

载入后,您可以发送 $$c = \\pm\\sqrt{a^2 + b^2}$$ 测试效果。

katex

您还可以在 twikoo.init 时传入自定义 katex 配置,详细配置请查看 Katex Auto-render Extension

js
twikoo.init({
+  envId: '您的环境id',
+  el: '#tcomment',
+  katex: {
+    delimiters: [
+      { left: '$$', right: '$$', display: true },
+      { left: '$', right: '$', display: false },
+      { left: '\\\\(', right: '\\\\)', display: false },
+      { left: '\\\\[', right: '\\\\]', display: true }
+    ],
+    throwOnError: false
+  }
+});

如何配置反垃圾?

使用腾讯云内容安全服务

Twikoo 支持接入腾讯云文本内容检测,使用深度学习技术,识别涉黄、涉政、涉恐等有害内容,同时支持用户配置词库,打击自定义的违规文本。

腾讯云文本内容检测是付费服务,提供 1 个月的免费试用,之后价格为 25 元/万条。如果您对反垃圾评论要求不高,也可以使用免费的 Akismet。

如何申请腾讯云文本内容检测

  1. 访问腾讯云控制台-文本内容安全,开通文本内容安全服务
  2. 访问腾讯云控制台-用户列表,点击新建用户,点击快速创建
  3. 输入用户名,访问方式选择“编程访问”,用户权限取消“AdministratorAccess”,只勾选“QcloudCMSFullAccess”
  4. 点击“创建用户”
  5. 复制“成功新建用户”页面的“SecretId”和“SecretKey”,到 Twikoo 管理面板“反垃圾”模块中配置
  6. 测试反垃圾效果

成功后,站长可以在腾讯云控制台-自定义库管理配置自定义文本内容过滤。

使用 Akismet 反垃圾服务

Akismet (Automattic Kismet) 是应用广泛的一个垃圾留言过滤系统,其作者是大名鼎鼎的 WordPress 创始人 Matt Mullenweg,Akismet 也是 WordPress 默认安装的插件,其使用非常广泛,设计目标便是帮助博客网站来过滤垃圾留言。

  1. 注册 akismet.com
  2. 选择 Akismet Personal 订阅,复制得到的 Akismet API Key,到 Twikoo 管理面板“反垃圾”模块中配置

如何测试 Akismet 反垃圾配置是否生效?

请填写 viagra-test-123 作为昵称,或填写 akismet-guaranteed-spam@example.com 作为邮箱,发表评论,这条评论将一定会被视为垃圾评论。

需要注意的是,由于 Akismet 服务响应速度较慢(大约 6 秒),影响用户体验,Twikoo 采取 “先放行,后检测” 的策略,垃圾评论会在发表后短暂可见。

登录管理面板遇到错误 AUTH_INVALID_CUSTOM_LOGIN_TICKET

一般是配置好登录私钥之后,又重新下载了登录私钥,导致之前配置的登录私钥失效了。
解决方法:到云开发控制台,数据库,删掉 config,然后重新配置私钥。

收不到提醒邮件?

如果是 Vercel 部署的云函数,请配置国外邮件服务商,避免被邮件服务商判定为垃圾邮件行为。如果是其他原因,请前往 Twikoo 管理面板,找到邮件测试功能,输入个人邮箱,根据测试结果排查原因。

为了避免频繁检查邮箱带来的性能问题,邮件配置有 10 分钟左右的缓存,如果确定配置没有问题,但测试失败,可以等待 10 分钟后再测试。

由于博主发表评论时,不会通知博主,如果您想实际测试通知功能,请注销管理面板后用非博主邮箱发表或回复评论。

Vercel、私有部署无法上传图片?

腾讯云环境自带云存储,所以腾讯云环境下可以直接上传图片,图片保存在云存储中。然而 Vercel 环境没有,上传图片功能依赖第三方图床,请在管理面板中配置图床,Twikoo 支持以下图床:

图床地址特点
qcloud腾讯云环境自带,可在云开发 - 云存储中查看
7buhttps://7bu.top去不图床,由杜老师提供支持,无免费套餐
smmshttps://sm.msSMMS 图床,有免费套餐,请自行注册账号,IMAGE_CDN_TOKEN 可在 Dashboard 中获取
lsky-pro私有部署兰空图床 2.0 版本,IMAGE_CDN 请配置图床首页 URL 地址(如 https://7bu.top),IMAGE_CDN_TOKEN 获取方式请参考教程 杜老师说图床:新版本去不图床 Token 的获取与清空,获取到的 token 格式应为 1|1bJbwlqBfnggmOMEZqXT5XusaIwqiZjCDs7r1Ob5

私有部署能连接自己的数据库吗?

Twikoo 私有部署版默认使用内置数据库:LokiJS 数据库,支持的数据库容量大约为 1 GB,不需要连接外部数据库,数据存储在启动 twikoo 时所在目录下的 data 目录,您可以直接复制该目录以完成数据备份。

如果您有 MongoDB 实例,可以连接 MongoDB 作为外部数据库,只需配置环境变量 MONGODB_URI 为数据库连接地址即可,如:mongodb://<username>:<password>@<host>/

部署后遇到评论失败: 0,管理面板进不去?

在包含评论框的页面,打开浏览器开发者工具(Windows 下快捷键为 F12),点击 Console 标签,查找包含 twikoo 关键字的报错。

如果看到 ERR_BLOCKED_BY_CLIENT,请禁用浏览器去广告插件或将当前网站加入白名单,然后刷新重试。

如果看到 ERR_CONNECTION_CLOSED,请检查自己所处的地区网络环境是否正常,能够连通云函数,部分地区无法访问 Vercel 等服务,请更换部署方式再试。

如果看到 Access to XMLHttpRequest at 'https://tcb-api.tencentcloudapi.com/web?env=...' from origin '...' has been blocked by CORS policy...:请检查前端 js 文件版本是否最新,并确保 envId 以 https:// 开头。

如果看到 Access to XMLHttpRequest at ... No 'Access-Control-Allow-Origin' header is present on the requested resource.:请先访问一下 envId 查看云函数是否运行正常,如果没有运行正常的提示,请重新部署云函数,确保不要漏下任何步骤;如果提示运行正常,请本地启动网站(localhost)并访问管理面板-配置管理-通用,清空 CORS_ALLOW_ORIGIN 字段并保存,然后刷新重试。

如果看到其他错误,请 提交 issue 并附上错误信息。

`,55),r=[l];function k(p,o,d,E,c,g){return t(),a("div",null,r)}const m=i(h,[["render",k]]);export{u as __pageData,m as default}; diff --git a/assets/faq.md.C9Rjxs18.lean.js b/assets/faq.md.C9Rjxs18.lean.js new file mode 100644 index 000000000..d825df683 --- /dev/null +++ b/assets/faq.md.C9Rjxs18.lean.js @@ -0,0 +1 @@ +import{_ as s}from"./chunks/katex.B5umXGHV.js";import{_ as i,c as a,o as t,a5 as e}from"./chunks/framework.CVd-vdtw.js";const n="/assets/faq-1.CGQdkUsI.png",u=JSON.parse('{"title":"常见问题","description":"","frontmatter":{},"headers":[],"relativePath":"faq.md","filePath":"faq.md","lastUpdated":null}'),h={name:"faq.md"},l=e("",55),r=[l];function k(p,o,d,E,c,g){return t(),a("div",null,r)}const m=i(h,[["render",k]]);export{u as __pageData,m as default}; diff --git a/assets/frontend.md.DAVaEwKX.js b/assets/frontend.md.DAVaEwKX.js new file mode 100644 index 000000000..2c683770d --- /dev/null +++ b/assets/frontend.md.DAVaEwKX.js @@ -0,0 +1,21 @@ +import{_ as e,c as a,o as t,a5 as i}from"./chunks/framework.CVd-vdtw.js";const m=JSON.parse('{"title":"前端部署","description":"","frontmatter":{},"headers":[],"relativePath":"frontend.md","filePath":"frontend.md","lastUpdated":null}'),s={name:"frontend.md"},h=i(`

前端部署

在 Hexo 中使用

Hexo Butterfly 主题使用

请参考 Butterfly 安裝文檔(四) 主題配置-2 进行配置

Hexo Keep 主题使用

请参考 hexo-theme-keep/_config.yml 进行配置

Hexo Volantis 主题使用

请参考 hexo-theme-volantis/_config.yml 进行配置

Hexo Ayer 主题使用

请参考 hexo-theme-ayer/_config.yml 进行配置

Hexo NexT 主题使用

暂不支持 NexT 8 以下的版本,请先升级到 NexT 8。然后在 Hexo 项目根目录执行

sh
# For NexT version >= 8.0.0 && < 8.4.0
+npm install hexo-next-twikoo@1.0.0
+# For NexT version >= 8.4.0
+npm install hexo-next-twikoo@1.0.3

然后在配置中添加

yml
twikoo:
+  enable: true
+  visitor: true
+  envId: xxxxxxxxxxxxxxx # 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app)
+  # region: ap-guangzhou # 环境地域,默认为 ap-shanghai,腾讯云环境填 ap-shanghai 或 ap-guangzhou;Vercel 环境不填

Hexo Matery 主题使用

请参考 hexo-theme-matery/_config.yml 进行配置

Hexo Icarus 主题使用

请参考 基于腾讯云,给你的 Icarus 博客配上 Twikoo 评论系统 by 异次元de机智君💯

Hexo MengD(萌典) 主题使用

请参考 hexo-theme-MengD/_config.yml 进行配置

hexo-theme-fluid 主题使用

请参考 配置指南-评论 进行配置

hexo-theme-cards 主题使用

请参考 hexo-theme-cards/_config.yml 进行配置

maupassant-hexo 主题使用

请参考 maupassant-hexo/_config.yml 进行配置

hexo-theme-redefine 主题使用

请参考 Redefine 官方文档 #comment 进行配置

Hexo-Theme-Solitude 主题使用

请参考 Solitude 文档 进行配置

在 Hugo 中使用

hugo-theme-stack 主题使用

请参考 Comments | Stackhugo-theme-stack/config.yaml#L83 进行配置

FixIt 主题使用

请参考 入门篇 - FixIt #主题配置hugo-fixit/FixIt/config.toml#L613-L624 进行配置

在 VitePress 中使用

请参考 VitePress 集成 twikoo 参考解决方案 进行配置。

通过 CDN 引入

提示

如果您使用的博客主题不支持 Twikoo,并且您不知道如何引入 Twikoo,您可以向博客主题开发者提交适配请求

html
<div id="tcomment"></div>
+<script src="https://cdn.jsdelivr.net/npm/twikoo@1.6.38/dist/twikoo.all.min.js"></script>
+<script>
+twikoo.init({
+  envId: '您的环境id', // 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app)
+  el: '#tcomment', // 容器元素
+  // region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai,腾讯云环境填 ap-shanghai 或 ap-guangzhou;Vercel 环境不填
+  // path: location.pathname, // 用于区分不同文章的自定义 js 路径,如果您的文章路径不是 location.pathname,需传此参数
+  // lang: 'zh-CN', // 用于手动设定评论区语言,支持的语言列表 https://github.com/twikoojs/twikoo/blob/main/src/client/utils/i18n/index.js
+})
+</script>

不同版本之间的区别

  • twikoo.all.min.js: 包含腾讯云云开发(tcb)的完整版本,如果您使用腾讯云云开发部署,请选择此版本
  • twikoo.min.js: 去除了腾讯云云开发(tcb)的精简版本,体积更小,适合所有非腾讯云云开发部署的用户
  • twikoo.nocss.js: 在完整版本的基础上剥离了样式,需要同时引入 twikoo.css 才能正常显示,适合想要魔改评论区样式的用户

更换 CDN 镜像

如果遇到默认 CDN 加载速度缓慢,可更换其他 CDN 镜像。以下为可供选择的公共 CDN,其中一些 CDN 可能需要数天时间同步最新版本:

  • https://s4.zstatic.net/ajax/libs/twikoo/1.6.38/twikoo.all.min.js
  • https://registry.npmmirror.com/twikoo/1.6.38/files/dist/twikoo.all.min.js
  • https://lib.baomitu.com/twikoo/1.6.38/twikoo.all.min.js
  • https://cdn.jsdelivr.net/npm/twikoo@1.6.38/dist/twikoo.all.min.js

注意

建议使用 CDN 引入 Twikoo 的用户在链接地址上锁定版本,以免将来 Twikoo 升级时受到非兼容性更新的影响。

注意

建议使用 CDN 引入 Twikoo 的用户在代码中加入 SRI 以确保完整性,例:

html
<script
+  src="https://cdn.jsdelivr.net/npm/twikoo@1.6.36/dist/twikoo.all.min.js"
+  integrity="sha384-4KfOjEinLSkv1i1J8TzlkC/RTnuiLoR1OLerVgjEKoH5djYtbf7mzEFsz9p3nfuA"
+  crossorigin="anonymous"></script>

其中 integrity 的值可以在 SRI Hash Generator 查询。

开启管理面板(腾讯云环境)

  1. 进入环境-登录授权,点击“自定义登录”右边的“私钥下载”,下载私钥文件
  2. 用文本编辑器打开私钥文件,复制全部内容
  3. 点击评论窗口的“小齿轮”图标,粘贴私钥文件内容,并设置管理员密码

配置好登录私钥之后无需留存私钥文件,请勿再次下载登录私钥,否则会导致之前配置的登录私钥失效。

开启管理面板(非腾讯云环境)

点击评论窗口的“小齿轮”图标,设置管理员密码

`,53),n=[h];function r(o,l,p,k,c,d){return t(),a("div",null,n)}const u=e(s,[["render",r]]);export{m as __pageData,u as default}; diff --git a/assets/frontend.md.DAVaEwKX.lean.js b/assets/frontend.md.DAVaEwKX.lean.js new file mode 100644 index 000000000..906fc0534 --- /dev/null +++ b/assets/frontend.md.DAVaEwKX.lean.js @@ -0,0 +1 @@ +import{_ as e,c as a,o as t,a5 as i}from"./chunks/framework.CVd-vdtw.js";const m=JSON.parse('{"title":"前端部署","description":"","frontmatter":{},"headers":[],"relativePath":"frontend.md","filePath":"frontend.md","lastUpdated":null}'),s={name:"frontend.md"},h=i("",53),n=[h];function r(o,l,p,k,c,d){return t(),a("div",null,n)}const u=e(s,[["render",r]]);export{m as __pageData,u as default}; diff --git a/assets/hugging-1.qykHscdz.png b/assets/hugging-1.qykHscdz.png new file mode 100644 index 000000000..f008477a3 Binary files /dev/null and b/assets/hugging-1.qykHscdz.png differ diff --git a/assets/hugging-2.BZLt3AFG.png b/assets/hugging-2.BZLt3AFG.png new file mode 100644 index 000000000..fe927ea2f Binary files /dev/null and b/assets/hugging-2.BZLt3AFG.png differ diff --git a/assets/hugging-3.BE7bV_x9.png b/assets/hugging-3.BE7bV_x9.png new file mode 100644 index 000000000..1372a36ac Binary files /dev/null and b/assets/hugging-3.BE7bV_x9.png differ diff --git a/assets/hugging-4.IZDT8YRp.png b/assets/hugging-4.IZDT8YRp.png new file mode 100644 index 000000000..7dea50b7c Binary files /dev/null and b/assets/hugging-4.IZDT8YRp.png differ diff --git a/assets/hugging-5.Cw4bsoD7.png b/assets/hugging-5.Cw4bsoD7.png new file mode 100644 index 000000000..f078f1dbf Binary files /dev/null and b/assets/hugging-5.Cw4bsoD7.png differ diff --git a/assets/hugging-6.CxsVPwFh.png b/assets/hugging-6.CxsVPwFh.png new file mode 100644 index 000000000..2f6fac05b Binary files /dev/null and b/assets/hugging-6.CxsVPwFh.png differ diff --git a/assets/hugging-7.ey7RVDUh.png b/assets/hugging-7.ey7RVDUh.png new file mode 100644 index 000000000..038200128 Binary files /dev/null and b/assets/hugging-7.ey7RVDUh.png differ diff --git a/assets/hugging-8.bn1zLPri.png b/assets/hugging-8.bn1zLPri.png new file mode 100644 index 000000000..4007d2bec Binary files /dev/null and b/assets/hugging-8.bn1zLPri.png differ diff --git a/assets/hugging-9.BfxLMyMQ.png b/assets/hugging-9.BfxLMyMQ.png new file mode 100644 index 000000000..50d410009 Binary files /dev/null and b/assets/hugging-9.BfxLMyMQ.png differ diff --git a/assets/index.md.n-q4nD01.js b/assets/index.md.n-q4nD01.js new file mode 100644 index 000000000..f4e4faa69 --- /dev/null +++ b/assets/index.md.n-q4nD01.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as i}from"./chunks/framework.CVd-vdtw.js";const p=JSON.parse('{"title":"Twikoo","titleTemplate":"一个简洁、安全、免费的静态网站评论系统","description":"","frontmatter":{"layout":"home","title":"Twikoo","titleTemplate":"一个简洁、安全、免费的静态网站评论系统","hero":{"name":"Twikoo","text":"网站评论系统","tagline":"简洁、安全、免费","actions":[{"theme":"brand","text":"快速上手","link":"/quick-start"},{"theme":"alt","text":"简介","link":"/intro"},{"theme":"alt","text":"QQ 群","link":"https://jq.qq.com/?_wv=1027&k=2l9ZGIoL"},{"theme":"alt","text":"GitHub","link":"https://github.com/twikoojs/twikoo"}],"image":{"src":"/twikoo-logo-home.png","alt":"Twikoo"}},"features":[{"icon":"🚀","title":"简单","details":"免费搭建,简单部署"},{"icon":"😃","title":"易用","details":"功能丰富,兼容性强"},{"icon":"🛡️","title":"安全","details":"隐私安全,内容安全"},{"icon":"⏰","title":"即时","details":"邮件提醒,即时消息推送"},{"icon":"🌈","title":"个性","details":"自定义背景图,博主标识"},{"icon":"⚙️","title":"便捷管理","details":"内嵌式管理面板,通过密码登录"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":null}'),o={name:"index.md"};function a(l,n,s,c,r,d){return i(),e("div")}const k=t(o,[["render",a]]);export{p as __pageData,k as default}; diff --git a/assets/index.md.n-q4nD01.lean.js b/assets/index.md.n-q4nD01.lean.js new file mode 100644 index 000000000..f4e4faa69 --- /dev/null +++ b/assets/index.md.n-q4nD01.lean.js @@ -0,0 +1 @@ +import{_ as t,c as e,o as i}from"./chunks/framework.CVd-vdtw.js";const p=JSON.parse('{"title":"Twikoo","titleTemplate":"一个简洁、安全、免费的静态网站评论系统","description":"","frontmatter":{"layout":"home","title":"Twikoo","titleTemplate":"一个简洁、安全、免费的静态网站评论系统","hero":{"name":"Twikoo","text":"网站评论系统","tagline":"简洁、安全、免费","actions":[{"theme":"brand","text":"快速上手","link":"/quick-start"},{"theme":"alt","text":"简介","link":"/intro"},{"theme":"alt","text":"QQ 群","link":"https://jq.qq.com/?_wv=1027&k=2l9ZGIoL"},{"theme":"alt","text":"GitHub","link":"https://github.com/twikoojs/twikoo"}],"image":{"src":"/twikoo-logo-home.png","alt":"Twikoo"}},"features":[{"icon":"🚀","title":"简单","details":"免费搭建,简单部署"},{"icon":"😃","title":"易用","details":"功能丰富,兼容性强"},{"icon":"🛡️","title":"安全","details":"隐私安全,内容安全"},{"icon":"⏰","title":"即时","details":"邮件提醒,即时消息推送"},{"icon":"🌈","title":"个性","details":"自定义背景图,博主标识"},{"icon":"⚙️","title":"便捷管理","details":"内嵌式管理面板,通过密码登录"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":null}'),o={name:"index.md"};function a(l,n,s,c,r,d){return i(),e("div")}const k=t(o,[["render",a]]);export{p as __pageData,k as default}; diff --git a/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 b/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 new file mode 100644 index 000000000..b6b603d59 Binary files /dev/null and b/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 differ diff --git a/assets/inter-italic-cyrillic.By2_1cv3.woff2 b/assets/inter-italic-cyrillic.By2_1cv3.woff2 new file mode 100644 index 000000000..def40a4f6 Binary files /dev/null and b/assets/inter-italic-cyrillic.By2_1cv3.woff2 differ diff --git a/assets/inter-italic-greek-ext.1u6EdAuj.woff2 b/assets/inter-italic-greek-ext.1u6EdAuj.woff2 new file mode 100644 index 000000000..e070c3d30 Binary files /dev/null and b/assets/inter-italic-greek-ext.1u6EdAuj.woff2 differ diff --git a/assets/inter-italic-greek.DJ8dCoTZ.woff2 b/assets/inter-italic-greek.DJ8dCoTZ.woff2 new file mode 100644 index 000000000..a3c16ca40 Binary files /dev/null and b/assets/inter-italic-greek.DJ8dCoTZ.woff2 differ diff --git a/assets/inter-italic-latin-ext.CN1xVJS-.woff2 b/assets/inter-italic-latin-ext.CN1xVJS-.woff2 new file mode 100644 index 000000000..2210a899e Binary files /dev/null and b/assets/inter-italic-latin-ext.CN1xVJS-.woff2 differ diff --git a/assets/inter-italic-latin.C2AdPX0b.woff2 b/assets/inter-italic-latin.C2AdPX0b.woff2 new file mode 100644 index 000000000..790d62dc7 Binary files /dev/null and b/assets/inter-italic-latin.C2AdPX0b.woff2 differ diff --git a/assets/inter-italic-vietnamese.BSbpV94h.woff2 b/assets/inter-italic-vietnamese.BSbpV94h.woff2 new file mode 100644 index 000000000..1eec0775a Binary files /dev/null and b/assets/inter-italic-vietnamese.BSbpV94h.woff2 differ diff --git a/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 b/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 new file mode 100644 index 000000000..2cfe61536 Binary files /dev/null and b/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 differ diff --git a/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 b/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 new file mode 100644 index 000000000..e3886dd14 Binary files /dev/null and b/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 differ diff --git a/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 b/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 new file mode 100644 index 000000000..36d67487d Binary files /dev/null and b/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 differ diff --git a/assets/inter-roman-greek.BBVDIX6e.woff2 b/assets/inter-roman-greek.BBVDIX6e.woff2 new file mode 100644 index 000000000..2bed1e85e Binary files /dev/null and b/assets/inter-roman-greek.BBVDIX6e.woff2 differ diff --git a/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 b/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 new file mode 100644 index 000000000..9a8d1e2b5 Binary files /dev/null and b/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 differ diff --git a/assets/inter-roman-latin.Di8DUHzh.woff2 b/assets/inter-roman-latin.Di8DUHzh.woff2 new file mode 100644 index 000000000..07d3c53ae Binary files /dev/null and b/assets/inter-roman-latin.Di8DUHzh.woff2 differ diff --git a/assets/inter-roman-vietnamese.BjW4sHH5.woff2 b/assets/inter-roman-vietnamese.BjW4sHH5.woff2 new file mode 100644 index 000000000..57bdc22ae Binary files /dev/null and b/assets/inter-roman-vietnamese.BjW4sHH5.woff2 differ diff --git a/assets/intro.md.C3yQSchs.js b/assets/intro.md.C3yQSchs.js new file mode 100644 index 000000000..55b0c9cf6 --- /dev/null +++ b/assets/intro.md.C3yQSchs.js @@ -0,0 +1,3 @@ +import{_ as a,a as t,b as e,c as i}from"./chunks/readme-3.hEA_5CR-.js";import{_ as r,c as l,o as s,a5 as o}from"./chunks/framework.CVd-vdtw.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"intro.md","filePath":"intro.md","lastUpdated":null}'),h={name:"intro.md"},n=o('Twikoo
       

一个简洁、安全、免费的静态网站评论系统。
A simple, safe, free comment system.

简体中文 | English

特色

简单

  • 免费搭建(使用云开发 / Vercel / 私有服务器作为评论后台)
  • 简单部署(支持云开发 / Vercel 一键部署)

易用

  • 支持回复、点赞
  • 无需额外适配,支持搭配浅色主题与深色主题使用
  • 支持 API 调用,批量获取文章评论数、最新评论
  • 访客在昵称栏输入 QQ 号,会自动补全 QQ 昵称和 QQ 邮箱
  • 访客填写数字 QQ 邮箱,会使用 QQ 头像作为评论头像
  • 支持评论框粘贴图片(可禁用)
  • 支持插入图片(可禁用)
  • 支持去不图床、云开发图床
  • 支持插入表情(可禁用)
  • 支持 Ctrl + Enter 快捷回复
  • 评论框内容实时保存草稿,刷新不会丢失
  • 支持 Katex 公式
  • 支持按语言的代码高亮

安全

  • 隐私信息安全(通过云函数控制敏感字段(邮箱、IP、环境配置等)不会泄露)
  • 支持 Akismet 垃圾评论检测(需自行注册 akismet.com
  • 支持腾讯云内容安全垃圾评论检测(需自行注册 腾讯云内容安全
  • 支持人工审核模式
  • 防 XSS 注入
  • 支持限制每个 IP 每 10 分钟最多发表多少条评论

即时

  • 支持邮件提醒(访客和博主)
  • 支持微信提醒(仅针对博主,基于 Server酱,需自行注册)
  • 支持 QQ 提醒(仅针对博主,基于 Qmsg酱,需自行注册)
  • 支持 QQ 提醒(针对博主QQ或者群,基于 go-cqhttp,需自己有服务器)

个性

  • 支持自定义评论框背景图片
  • 支持自定义“博主”标识文字
  • 支持自定义通知邮件模板
  • 支持自定义评论框提示信息(placeholder)
  • 支持自定义表情列表(兼容 OwO 的数据格式
  • 支持自定义【昵称】【邮箱】【网址】必填 / 选填
  • 支持自定义代码高亮主题

便捷管理

  • 内嵌式管理面板,通过密码登录,可方便地查看评论、隐藏评论、删除评论、修改配置
  • 支持隐藏管理入口,通过输入暗号显示
  • 支持从 Valine、Artalk、Disqus 导入评论

缺点

  • 不支持 IE

预览

评论

评论

评论管理

评论管理

推送通知

推送通知

交流群

如果你想获取更新动态、建言献策、参与测试,欢迎加入讨论群:
1080829142

浏览器支持

提示

技术原因,不兼容 IE

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
iOS Safari
iOS Safari
Edgelast versionlast versionlast versionlast version

Generated by browsers-support-badges

更新日志 & 开发计划

更新日志 & 开发计划

特别感谢

图标设计:Maemo Lee

开发

如果您想在本地二次开发,可以参考以下命令:

sh
yarn dev # 开发 (http://localhost:9820/demo.html)
+yarn lint # 代码检查
+yarn build # 编译 (dist/twikoo.all.min.js)

如果您的改动能够帮助到更多人,欢迎提交 Pull Request!

国际化

支持简体中文、繁体中文、English。欢迎提交翻译 PR

许可

FOSSA Status

`,49),p=[n];function c(d,m,g,b,k,u){return s(),l("div",null,p)}const q=r(h,[["render",c]]);export{_ as __pageData,q as default}; diff --git a/assets/intro.md.C3yQSchs.lean.js b/assets/intro.md.C3yQSchs.lean.js new file mode 100644 index 000000000..3f974bd33 --- /dev/null +++ b/assets/intro.md.C3yQSchs.lean.js @@ -0,0 +1 @@ +import{_ as a,a as t,b as e,c as i}from"./chunks/readme-3.hEA_5CR-.js";import{_ as r,c as l,o as s,a5 as o}from"./chunks/framework.CVd-vdtw.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"intro.md","filePath":"intro.md","lastUpdated":null}'),h={name:"intro.md"},n=o("",49),p=[n];function c(d,m,g,b,k,u){return s(),l("div",null,p)}const q=r(h,[["render",c]]);export{_ as __pageData,q as default}; diff --git a/assets/katex.D3zUHQ6F.png b/assets/katex.D3zUHQ6F.png new file mode 100644 index 000000000..40bbfe75f Binary files /dev/null and b/assets/katex.D3zUHQ6F.png differ diff --git a/assets/link.md.FqUVzlOx.js b/assets/link.md.FqUVzlOx.js new file mode 100644 index 000000000..9297e3d58 --- /dev/null +++ b/assets/link.md.FqUVzlOx.js @@ -0,0 +1 @@ +import{_ as e,c as t,o,a5 as r}from"./chunks/framework.CVd-vdtw.js";const f=JSON.parse('{"title":"相关文档","description":"","frontmatter":{},"headers":[],"relativePath":"link.md","filePath":"link.md","lastUpdated":null}'),a={name:"link.md"},l=r('

相关文档

',2),i=[l];function n(s,h,c,b,_,w){return o(),t("div",null,i)}const p=e(a,[["render",n]]);export{f as __pageData,p as default}; diff --git a/assets/link.md.FqUVzlOx.lean.js b/assets/link.md.FqUVzlOx.lean.js new file mode 100644 index 000000000..75ac8c5a8 --- /dev/null +++ b/assets/link.md.FqUVzlOx.lean.js @@ -0,0 +1 @@ +import{_ as e,c as t,o,a5 as r}from"./chunks/framework.CVd-vdtw.js";const f=JSON.parse('{"title":"相关文档","description":"","frontmatter":{},"headers":[],"relativePath":"link.md","filePath":"link.md","lastUpdated":null}'),a={name:"link.md"},l=r("",2),i=[l];function n(s,h,c,b,_,w){return o(),t("div",null,i)}const p=e(a,[["render",n]]);export{f as __pageData,p as default}; diff --git a/assets/logo.KgWMX3A2.png b/assets/logo.KgWMX3A2.png new file mode 100644 index 000000000..2efeb5eca Binary files /dev/null and b/assets/logo.KgWMX3A2.png differ diff --git a/assets/mongodb-1.kzmwAvw2.png b/assets/mongodb-1.kzmwAvw2.png new file mode 100644 index 000000000..03120cd12 Binary files /dev/null and b/assets/mongodb-1.kzmwAvw2.png differ diff --git a/assets/mongodb-2.wGC2d7_O.png b/assets/mongodb-2.wGC2d7_O.png new file mode 100644 index 000000000..f746a45d6 Binary files /dev/null and b/assets/mongodb-2.wGC2d7_O.png differ diff --git a/assets/mongodb-3.BlCbBw8p.png b/assets/mongodb-3.BlCbBw8p.png new file mode 100644 index 000000000..3e3c38b12 Binary files /dev/null and b/assets/mongodb-3.BlCbBw8p.png differ diff --git a/assets/mongodb-atlas.md.DTzY58WF.js b/assets/mongodb-atlas.md.DTzY58WF.js new file mode 100644 index 000000000..9f5382908 --- /dev/null +++ b/assets/mongodb-atlas.md.DTzY58WF.js @@ -0,0 +1 @@ +import{_ as o,c as t,o as e,a5 as a}from"./chunks/framework.CVd-vdtw.js";const s="/assets/mongodb-1.kzmwAvw2.png",l="/assets/mongodb-2.wGC2d7_O.png",n="/assets/mongodb-3.BlCbBw8p.png",D=JSON.parse('{"title":"MongoDB Atlas","description":"","frontmatter":{},"headers":[],"relativePath":"mongodb-atlas.md","filePath":"mongodb-atlas.md","lastUpdated":null}'),r={name:"mongodb-atlas.md"},d=a('

MongoDB Atlas

MongoDB Atlas 是 MongoDB Inc 提供的 MongoDB 数据库托管服务。免费账户可以永久使用 500 MiB 的数据库,足够存储 Twikoo 评论使用。

  1. 申请 MongoDB AtLas 账号
  2. 创建免费 MongoDB 数据库,区域推荐选择离 Twikoo 后端(Vercel / Netlify / AWS Lambda / VPS)地理位置较近的数据中心以获得更低的数据库连接延迟。如果不清楚自己的后端在哪个区域,也可选择 AWS / Oregon (us-west-2),该数据中心基建成熟,故障率低,且使用 Oregon 州的清洁能源,较为环保
  3. 在 Database Access 页面点击 Add New Database User 创建数据库用户,Authentication Method 选 Password,在 Password Authentication 下设置数据库用户名和密码,建议点击 Auto Generate 自动生成一个不含特殊符号的强壮密码并妥善保存。点击 Database User Privileges 下方的 Add Built In Role,Select Role 选择 Atlas Admin,最后点击 Add User

  1. 在 Network Access 页面点击 Add IP Address 添加网络白名单。因为 Vercel / Netlify / Lambda 的出口地址不固定,因此 Access List Entry 输入 0.0.0.0/0(允许所有 IP 地址的连接)即可。如果 Twikoo 部署在自己的服务器上,这里可以填入固定 IP 地址。点击 Confirm 保存

  1. 在 Database 页面点击 Connect,连接方式选择 Drivers,并记录数据库连接字符串,请将连接字符串中的 <username>:<password> 修改为刚刚创建的数据库 用户名:密码

  1. (可选)默认的连接字符串没有指定数据库名称,Twikoo 会连接到默认的名为 test 的数据库。如果需要在同一个 MongoDB 里运行其他业务或供多个 Twikoo 实例使用,建立加入数据库名称并配置对应的 ACL。

连接字符串包含了连接到 MongoDB 数据库的所有信息,一旦泄露会导致评论被任何人添加、修改、删除,并有可能获取你的 SMTP、图床 token 等信息。请妥善记录这一字符串,之后需要填入到 Twikoo 的部署平台里。

',10),i=[d];function c(_,g,m,p,A,b){return e(),t("div",null,i)}const h=o(r,[["render",c]]);export{D as __pageData,h as default}; diff --git a/assets/mongodb-atlas.md.DTzY58WF.lean.js b/assets/mongodb-atlas.md.DTzY58WF.lean.js new file mode 100644 index 000000000..81f64caa3 --- /dev/null +++ b/assets/mongodb-atlas.md.DTzY58WF.lean.js @@ -0,0 +1 @@ +import{_ as o,c as t,o as e,a5 as a}from"./chunks/framework.CVd-vdtw.js";const s="/assets/mongodb-1.kzmwAvw2.png",l="/assets/mongodb-2.wGC2d7_O.png",n="/assets/mongodb-3.BlCbBw8p.png",D=JSON.parse('{"title":"MongoDB Atlas","description":"","frontmatter":{},"headers":[],"relativePath":"mongodb-atlas.md","filePath":"mongodb-atlas.md","lastUpdated":null}'),r={name:"mongodb-atlas.md"},d=a("",10),i=[d];function c(_,g,m,p,A,b){return e(),t("div",null,i)}const h=o(r,[["render",c]]);export{D as __pageData,h as default}; diff --git a/assets/netlify-1.CBH5jdAK.png b/assets/netlify-1.CBH5jdAK.png new file mode 100644 index 000000000..6b5adf242 Binary files /dev/null and b/assets/netlify-1.CBH5jdAK.png differ diff --git a/assets/netlify-2.CoU6-6Qj.png b/assets/netlify-2.CoU6-6Qj.png new file mode 100644 index 000000000..e30ce5824 Binary files /dev/null and b/assets/netlify-2.CoU6-6Qj.png differ diff --git a/assets/netlify-3.BRAuDkNv.png b/assets/netlify-3.BRAuDkNv.png new file mode 100644 index 000000000..d086765d0 Binary files /dev/null and b/assets/netlify-3.BRAuDkNv.png differ diff --git a/assets/netlify-4.BPwUhUpI.png b/assets/netlify-4.BPwUhUpI.png new file mode 100644 index 000000000..118292159 Binary files /dev/null and b/assets/netlify-4.BPwUhUpI.png differ diff --git a/assets/netlify-5.BSv5GDZV.png b/assets/netlify-5.BSv5GDZV.png new file mode 100644 index 000000000..dcdd0e733 Binary files /dev/null and b/assets/netlify-5.BSv5GDZV.png differ diff --git a/assets/quick-start.md.Bj0dD2Y3.js b/assets/quick-start.md.Bj0dD2Y3.js new file mode 100644 index 000000000..bccb098e6 --- /dev/null +++ b/assets/quick-start.md.Bj0dD2Y3.js @@ -0,0 +1 @@ +import{_ as t,c as a,o as e,a5 as o}from"./chunks/framework.CVd-vdtw.js";const u=JSON.parse('{"title":"快速上手","description":"","frontmatter":{},"headers":[],"relativePath":"quick-start.md","filePath":"quick-start.md","lastUpdated":null}'),i={name:"quick-start.md"},r=o('

快速上手

Twikoo 分为云函数和前端两部分,若要在您的网站上集成 Twikoo,您需要同时部署云函数和前端,部署时请注意保持二者版本一致。

  • 云函数部署 有多种方式,请选择适合自己的部署平台。
  • 前端部署 有 2 种方式,如果您的网站主题支持 Twikoo,您只需在配置文件中指定 Twikoo 即可;如果您的网站主题不支持 Twikoo,您需要修改源码手动引入 Twikoo 的 js 文件并初始化。
  • 若您已部署旧版本 Twikoo,请参考 版本更新 升级云函数和前端版本。
',3),s=[r];function l(_,c,n,d,h,k){return e(),a("div",null,s)}const f=t(i,[["render",l]]);export{u as __pageData,f as default}; diff --git a/assets/quick-start.md.Bj0dD2Y3.lean.js b/assets/quick-start.md.Bj0dD2Y3.lean.js new file mode 100644 index 000000000..99e073876 --- /dev/null +++ b/assets/quick-start.md.Bj0dD2Y3.lean.js @@ -0,0 +1 @@ +import{_ as t,c as a,o as e,a5 as o}from"./chunks/framework.CVd-vdtw.js";const u=JSON.parse('{"title":"快速上手","description":"","frontmatter":{},"headers":[],"relativePath":"quick-start.md","filePath":"quick-start.md","lastUpdated":null}'),i={name:"quick-start.md"},r=o("",3),s=[r];function l(_,c,n,d,h,k){return e(),a("div",null,s)}const f=t(i,[["render",l]]);export{u as __pageData,f as default}; diff --git a/assets/readme-1.CjiL5qF9.png b/assets/readme-1.CjiL5qF9.png new file mode 100644 index 000000000..1f6f3c280 Binary files /dev/null and b/assets/readme-1.CjiL5qF9.png differ diff --git a/assets/readme-2.DKgivwJl.png b/assets/readme-2.DKgivwJl.png new file mode 100644 index 000000000..4752e3480 Binary files /dev/null and b/assets/readme-2.DKgivwJl.png differ diff --git a/assets/readme-3.CRRWEqvl.jpg b/assets/readme-3.CRRWEqvl.jpg new file mode 100644 index 000000000..5d33c487e Binary files /dev/null and b/assets/readme-3.CRRWEqvl.jpg differ diff --git a/assets/style.CGoFi8jv.css b/assets/style.CGoFi8jv.css new file mode 100644 index 000000000..7f92b4392 --- /dev/null +++ b/assets/style.CGoFi8jv.css @@ -0,0 +1 @@ +.shields{display:inline-block}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-cyrillic.C5lxZ8CY.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-greek-ext.CqjqNYQ-.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-greek.BBVDIX6e.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-vietnamese.BjW4sHH5.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-latin-ext.4ZJIpNVo.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-latin.Di8DUHzh.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-cyrillic-ext.r48I6akx.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-cyrillic.By2_1cv3.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-greek-ext.1u6EdAuj.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-greek.DJ8dCoTZ.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-vietnamese.BSbpV94h.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-latin-ext.CN1xVJS-.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-latin.C2AdPX0b.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Punctuation SC;font-weight:400;src:local("PingFang SC Regular"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:500;src:local("PingFang SC Medium"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:600;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:700;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}:root{--vp-c-white: #ffffff;--vp-c-black: #000000;--vp-c-neutral: var(--vp-c-black);--vp-c-neutral-inverse: var(--vp-c-white)}.dark{--vp-c-neutral: var(--vp-c-white);--vp-c-neutral-inverse: var(--vp-c-black)}:root{--vp-c-gray-1: #dddde3;--vp-c-gray-2: #e4e4e9;--vp-c-gray-3: #ebebef;--vp-c-gray-soft: rgba(142, 150, 170, .14);--vp-c-indigo-1: #3451b2;--vp-c-indigo-2: #3a5ccc;--vp-c-indigo-3: #5672cd;--vp-c-indigo-soft: rgba(100, 108, 255, .14);--vp-c-purple-1: #6f42c1;--vp-c-purple-2: #7e4cc9;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .14);--vp-c-green-1: #18794e;--vp-c-green-2: #299764;--vp-c-green-3: #30a46c;--vp-c-green-soft: rgba(16, 185, 129, .14);--vp-c-yellow-1: #915930;--vp-c-yellow-2: #946300;--vp-c-yellow-3: #9f6a00;--vp-c-yellow-soft: rgba(234, 179, 8, .14);--vp-c-red-1: #b8272c;--vp-c-red-2: #d5393e;--vp-c-red-3: #e0575b;--vp-c-red-soft: rgba(244, 63, 94, .14);--vp-c-sponsor: #db2777}.dark{--vp-c-gray-1: #515c67;--vp-c-gray-2: #414853;--vp-c-gray-3: #32363f;--vp-c-gray-soft: rgba(101, 117, 133, .16);--vp-c-indigo-1: #a8b1ff;--vp-c-indigo-2: #5c73e7;--vp-c-indigo-3: #3e63dd;--vp-c-indigo-soft: rgba(100, 108, 255, .16);--vp-c-purple-1: #c8abfa;--vp-c-purple-2: #a879e6;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .16);--vp-c-green-1: #3dd68c;--vp-c-green-2: #30a46c;--vp-c-green-3: #298459;--vp-c-green-soft: rgba(16, 185, 129, .16);--vp-c-yellow-1: #f9b44e;--vp-c-yellow-2: #da8b17;--vp-c-yellow-3: #a46a0a;--vp-c-yellow-soft: rgba(234, 179, 8, .16);--vp-c-red-1: #f66f81;--vp-c-red-2: #f14158;--vp-c-red-3: #b62a3c;--vp-c-red-soft: rgba(244, 63, 94, .16)}:root{--vp-c-bg: #ffffff;--vp-c-bg-alt: #f6f6f7;--vp-c-bg-elv: #ffffff;--vp-c-bg-soft: #f6f6f7}.dark{--vp-c-bg: #1b1b1f;--vp-c-bg-alt: #161618;--vp-c-bg-elv: #202127;--vp-c-bg-soft: #202127}:root{--vp-c-border: #c2c2c4;--vp-c-divider: #e2e2e3;--vp-c-gutter: #e2e2e3}.dark{--vp-c-border: #3c3f44;--vp-c-divider: #2e2e32;--vp-c-gutter: #000000}:root{--vp-c-text-1: rgba(60, 60, 67);--vp-c-text-2: rgba(60, 60, 67, .78);--vp-c-text-3: rgba(60, 60, 67, .56)}.dark{--vp-c-text-1: rgba(255, 255, 245, .86);--vp-c-text-2: rgba(235, 235, 245, .6);--vp-c-text-3: rgba(235, 235, 245, .38)}:root{--vp-c-default-1: var(--vp-c-gray-1);--vp-c-default-2: var(--vp-c-gray-2);--vp-c-default-3: var(--vp-c-gray-3);--vp-c-default-soft: var(--vp-c-gray-soft);--vp-c-brand-1: var(--vp-c-indigo-1);--vp-c-brand-2: var(--vp-c-indigo-2);--vp-c-brand-3: var(--vp-c-indigo-3);--vp-c-brand-soft: var(--vp-c-indigo-soft);--vp-c-brand: var(--vp-c-brand-1);--vp-c-tip-1: var(--vp-c-brand-1);--vp-c-tip-2: var(--vp-c-brand-2);--vp-c-tip-3: var(--vp-c-brand-3);--vp-c-tip-soft: var(--vp-c-brand-soft);--vp-c-note-1: var(--vp-c-brand-1);--vp-c-note-2: var(--vp-c-brand-2);--vp-c-note-3: var(--vp-c-brand-3);--vp-c-note-soft: var(--vp-c-brand-soft);--vp-c-success-1: var(--vp-c-green-1);--vp-c-success-2: var(--vp-c-green-2);--vp-c-success-3: var(--vp-c-green-3);--vp-c-success-soft: var(--vp-c-green-soft);--vp-c-important-1: var(--vp-c-purple-1);--vp-c-important-2: var(--vp-c-purple-2);--vp-c-important-3: var(--vp-c-purple-3);--vp-c-important-soft: var(--vp-c-purple-soft);--vp-c-warning-1: var(--vp-c-yellow-1);--vp-c-warning-2: var(--vp-c-yellow-2);--vp-c-warning-3: var(--vp-c-yellow-3);--vp-c-warning-soft: var(--vp-c-yellow-soft);--vp-c-danger-1: var(--vp-c-red-1);--vp-c-danger-2: var(--vp-c-red-2);--vp-c-danger-3: var(--vp-c-red-3);--vp-c-danger-soft: var(--vp-c-red-soft);--vp-c-caution-1: var(--vp-c-red-1);--vp-c-caution-2: var(--vp-c-red-2);--vp-c-caution-3: var(--vp-c-red-3);--vp-c-caution-soft: var(--vp-c-red-soft)}:root{--vp-font-family-base: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;font-optical-sizing:auto}:root:where(:lang(zh)){--vp-font-family-base: "Punctuation SC", "Inter", ui-sans-serif, system-ui, "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Heiti SC", "Microsoft YaHei", "DengXian", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}:root{--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, .12), 0 3px 9px rgba(0, 0, 0, .12);--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .16)}:root{--vp-z-index-footer: 10;--vp-z-index-local-nav: 20;--vp-z-index-nav: 30;--vp-z-index-layout-top: 40;--vp-z-index-backdrop: 50;--vp-z-index-sidebar: 60}@media (min-width: 960px){:root{--vp-z-index-sidebar: 25}}:root{--vp-layout-max-width: 1440px}:root{--vp-header-anchor-symbol: "#"}:root{--vp-code-line-height: 1.7;--vp-code-font-size: .875em;--vp-code-color: var(--vp-c-brand-1);--vp-code-link-color: var(--vp-c-brand-1);--vp-code-link-hover-color: var(--vp-c-brand-2);--vp-code-bg: var(--vp-c-default-soft);--vp-code-block-color: var(--vp-c-text-2);--vp-code-block-bg: var(--vp-c-bg-alt);--vp-code-block-divider-color: var(--vp-c-gutter);--vp-code-lang-color: var(--vp-c-text-3);--vp-code-line-highlight-color: var(--vp-c-default-soft);--vp-code-line-number-color: var(--vp-c-text-3);--vp-code-line-diff-add-color: var(--vp-c-success-soft);--vp-code-line-diff-add-symbol-color: var(--vp-c-success-1);--vp-code-line-diff-remove-color: var(--vp-c-danger-soft);--vp-code-line-diff-remove-symbol-color: var(--vp-c-danger-1);--vp-code-line-warning-color: var(--vp-c-warning-soft);--vp-code-line-error-color: var(--vp-c-danger-soft);--vp-code-copy-code-border-color: var(--vp-c-divider);--vp-code-copy-code-bg: var(--vp-c-bg-soft);--vp-code-copy-code-hover-border-color: var(--vp-c-divider);--vp-code-copy-code-hover-bg: var(--vp-c-bg);--vp-code-copy-code-active-text: var(--vp-c-text-2);--vp-code-copy-copied-text-content: "Copied";--vp-code-tab-divider: var(--vp-code-block-divider-color);--vp-code-tab-text-color: var(--vp-c-text-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-1);--vp-code-tab-active-text-color: var(--vp-c-text-1);--vp-code-tab-active-bar-color: var(--vp-c-brand-1)}:root{--vp-button-brand-border: transparent;--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand-3);--vp-button-brand-hover-border: transparent;--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-2);--vp-button-brand-active-border: transparent;--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-c-brand-1);--vp-button-alt-border: transparent;--vp-button-alt-text: var(--vp-c-text-1);--vp-button-alt-bg: var(--vp-c-default-3);--vp-button-alt-hover-border: transparent;--vp-button-alt-hover-text: var(--vp-c-text-1);--vp-button-alt-hover-bg: var(--vp-c-default-2);--vp-button-alt-active-border: transparent;--vp-button-alt-active-text: var(--vp-c-text-1);--vp-button-alt-active-bg: var(--vp-c-default-1);--vp-button-sponsor-border: var(--vp-c-text-2);--vp-button-sponsor-text: var(--vp-c-text-2);--vp-button-sponsor-bg: transparent;--vp-button-sponsor-hover-border: var(--vp-c-sponsor);--vp-button-sponsor-hover-text: var(--vp-c-sponsor);--vp-button-sponsor-hover-bg: transparent;--vp-button-sponsor-active-border: var(--vp-c-sponsor);--vp-button-sponsor-active-text: var(--vp-c-sponsor);--vp-button-sponsor-active-bg: transparent}:root{--vp-custom-block-font-size: 14px;--vp-custom-block-code-font-size: 13px;--vp-custom-block-info-border: transparent;--vp-custom-block-info-text: var(--vp-c-text-1);--vp-custom-block-info-bg: var(--vp-c-default-soft);--vp-custom-block-info-code-bg: var(--vp-c-default-soft);--vp-custom-block-note-border: transparent;--vp-custom-block-note-text: var(--vp-c-text-1);--vp-custom-block-note-bg: var(--vp-c-default-soft);--vp-custom-block-note-code-bg: var(--vp-c-default-soft);--vp-custom-block-tip-border: transparent;--vp-custom-block-tip-text: var(--vp-c-text-1);--vp-custom-block-tip-bg: var(--vp-c-tip-soft);--vp-custom-block-tip-code-bg: var(--vp-c-tip-soft);--vp-custom-block-important-border: transparent;--vp-custom-block-important-text: var(--vp-c-text-1);--vp-custom-block-important-bg: var(--vp-c-important-soft);--vp-custom-block-important-code-bg: var(--vp-c-important-soft);--vp-custom-block-warning-border: transparent;--vp-custom-block-warning-text: var(--vp-c-text-1);--vp-custom-block-warning-bg: var(--vp-c-warning-soft);--vp-custom-block-warning-code-bg: var(--vp-c-warning-soft);--vp-custom-block-danger-border: transparent;--vp-custom-block-danger-text: var(--vp-c-text-1);--vp-custom-block-danger-bg: var(--vp-c-danger-soft);--vp-custom-block-danger-code-bg: var(--vp-c-danger-soft);--vp-custom-block-caution-border: transparent;--vp-custom-block-caution-text: var(--vp-c-text-1);--vp-custom-block-caution-bg: var(--vp-c-caution-soft);--vp-custom-block-caution-code-bg: var(--vp-c-caution-soft);--vp-custom-block-details-border: var(--vp-custom-block-info-border);--vp-custom-block-details-text: var(--vp-custom-block-info-text);--vp-custom-block-details-bg: var(--vp-custom-block-info-bg);--vp-custom-block-details-code-bg: var(--vp-custom-block-info-code-bg)}:root{--vp-input-border-color: var(--vp-c-border);--vp-input-bg-color: var(--vp-c-bg-alt);--vp-input-switch-bg-color: var(--vp-c-default-soft)}:root{--vp-nav-height: 64px;--vp-nav-bg-color: var(--vp-c-bg);--vp-nav-screen-bg-color: var(--vp-c-bg);--vp-nav-logo-height: 24px}.hide-nav{--vp-nav-height: 0px}.hide-nav .VPSidebar{--vp-nav-height: 22px}:root{--vp-local-nav-bg-color: var(--vp-c-bg)}:root{--vp-sidebar-width: 272px;--vp-sidebar-bg-color: var(--vp-c-bg-alt)}:root{--vp-backdrop-bg-color: rgba(0, 0, 0, .6)}:root{--vp-home-hero-name-color: var(--vp-c-brand-1);--vp-home-hero-name-background: transparent;--vp-home-hero-image-background-image: none;--vp-home-hero-image-filter: none}:root{--vp-badge-info-border: transparent;--vp-badge-info-text: var(--vp-c-text-2);--vp-badge-info-bg: var(--vp-c-default-soft);--vp-badge-tip-border: transparent;--vp-badge-tip-text: var(--vp-c-tip-1);--vp-badge-tip-bg: var(--vp-c-tip-soft);--vp-badge-warning-border: transparent;--vp-badge-warning-text: var(--vp-c-warning-1);--vp-badge-warning-bg: var(--vp-c-warning-soft);--vp-badge-danger-border: transparent;--vp-badge-danger-text: var(--vp-c-danger-1);--vp-badge-danger-bg: var(--vp-c-danger-soft)}:root{--vp-carbon-ads-text-color: var(--vp-c-text-1);--vp-carbon-ads-poweredby-color: var(--vp-c-text-2);--vp-carbon-ads-bg-color: var(--vp-c-bg-soft);--vp-carbon-ads-hover-text-color: var(--vp-c-brand-1);--vp-carbon-ads-hover-poweredby-color: var(--vp-c-text-1)}:root{--vp-local-search-bg: var(--vp-c-bg);--vp-local-search-result-bg: var(--vp-c-bg);--vp-local-search-result-border: var(--vp-c-divider);--vp-local-search-result-selected-bg: var(--vp-c-bg);--vp-local-search-result-selected-border: var(--vp-c-brand-1);--vp-local-search-highlight-bg: var(--vp-c-brand-1);--vp-local-search-highlight-text: var(--vp-c-neutral-inverse)}@media (prefers-reduced-motion: reduce){*,:before,:after{animation-delay:-1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important;transition-duration:0s!important;transition-delay:0s!important}}*,:before,:after{box-sizing:border-box}html{line-height:1.4;font-size:16px;-webkit-text-size-adjust:100%}html.dark{color-scheme:dark}body{margin:0;width:100%;min-width:320px;min-height:100vh;line-height:24px;font-family:var(--vp-font-family-base);font-size:16px;font-weight:400;color:var(--vp-c-text-1);background-color:var(--vp-c-bg);font-synthesis:style;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin:0;line-height:24px;font-size:16px;font-weight:400}p{margin:0}strong,b{font-weight:600}a,area,button,[role=button],input,label,select,summary,textarea{touch-action:manipulation}a{color:inherit;text-decoration:inherit}ol,ul{list-style:none;margin:0;padding:0}blockquote{margin:0}pre,code,kbd,samp{font-family:var(--vp-font-family-mono)}img,svg,video,canvas,audio,iframe,embed,object{display:block}figure{margin:0}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{border:0;padding:0;line-height:inherit;color:inherit}button{padding:0;font-family:inherit;background-color:transparent;background-image:none}button:enabled,[role=button]:enabled{cursor:pointer}button:focus,button:focus-visible{outline:1px dotted;outline:4px auto -webkit-focus-ring-color}button:focus:not(:focus-visible){outline:none!important}input:focus,textarea:focus,select:focus{outline:none}table{border-collapse:collapse}input{background-color:transparent}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:var(--vp-c-text-3)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:var(--vp-c-text-3)}input::placeholder,textarea::placeholder{color:var(--vp-c-text-3)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}textarea{resize:vertical}select{-webkit-appearance:none}fieldset{margin:0;padding:0}h1,h2,h3,h4,h5,h6,li,p{overflow-wrap:break-word}vite-error-overlay{z-index:9999}mjx-container{overflow-x:auto}mjx-container>svg{display:inline-block;margin:auto}[class^=vpi-],[class*=" vpi-"],.vp-icon{width:1em;height:1em}[class^=vpi-].bg,[class*=" vpi-"].bg,.vp-icon.bg{background-size:100% 100%;background-color:transparent}[class^=vpi-]:not(.bg),[class*=" vpi-"]:not(.bg),.vp-icon:not(.bg){-webkit-mask:var(--icon) no-repeat;mask:var(--icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit}.vpi-align-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 6H3M15 12H3M17 18H3'/%3E%3C/svg%3E")}.vpi-arrow-right,.vpi-arrow-down,.vpi-arrow-left,.vpi-arrow-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E")}.vpi-chevron-right,.vpi-chevron-down,.vpi-chevron-left,.vpi-chevron-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")}.vpi-chevron-down,.vpi-arrow-down{transform:rotate(90deg)}.vpi-chevron-left,.vpi-arrow-left{transform:rotate(180deg)}.vpi-chevron-up,.vpi-arrow-up{transform:rotate(-90deg)}.vpi-square-pen{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z'/%3E%3C/svg%3E")}.vpi-plus{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E")}.vpi-sun{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E")}.vpi-moon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E")}.vpi-more-horizontal{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E")}.vpi-languages{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m5 8 6 6M4 14l6-6 2-3M2 5h12M7 2h1M22 22l-5-10-5 10M14 18h6'/%3E%3C/svg%3E")}.vpi-heart{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E")}.vpi-search{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")}.vpi-layout-list{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Cpath d='M14 4h7M14 9h7M14 15h7M14 20h7'/%3E%3C/svg%3E")}.vpi-delete{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 5H9l-7 7 7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2ZM18 9l-6 6M12 9l6 6'/%3E%3C/svg%3E")}.vpi-corner-down-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 10-5 5 5 5'/%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E")}:root{--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E");--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E")}.vpi-social-discord{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z'/%3E%3C/svg%3E")}.vpi-social-facebook{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/%3E%3C/svg%3E")}.vpi-social-github{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")}.vpi-social-instagram{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.03.084c-1.277.06-2.149.264-2.91.563a5.874 5.874 0 0 0-2.124 1.388 5.878 5.878 0 0 0-1.38 2.127C.321 4.926.12 5.8.064 7.076.008 8.354-.005 8.764.001 12.023c.007 3.259.021 3.667.083 4.947.061 1.277.264 2.149.563 2.911.308.789.72 1.457 1.388 2.123a5.872 5.872 0 0 0 2.129 1.38c.763.295 1.636.496 2.913.552 1.278.056 1.689.069 4.947.063 3.257-.007 3.668-.021 4.947-.082 1.28-.06 2.147-.265 2.91-.563a5.881 5.881 0 0 0 2.123-1.388 5.881 5.881 0 0 0 1.38-2.129c.295-.763.496-1.636.551-2.912.056-1.28.07-1.69.063-4.948-.006-3.258-.02-3.667-.081-4.947-.06-1.28-.264-2.148-.564-2.911a5.892 5.892 0 0 0-1.387-2.123 5.857 5.857 0 0 0-2.128-1.38C19.074.322 18.202.12 16.924.066 15.647.009 15.236-.006 11.977 0 8.718.008 8.31.021 7.03.084m.14 21.693c-1.17-.05-1.805-.245-2.228-.408a3.736 3.736 0 0 1-1.382-.895 3.695 3.695 0 0 1-.9-1.378c-.165-.423-.363-1.058-.417-2.228-.06-1.264-.072-1.644-.08-4.848-.006-3.204.006-3.583.061-4.848.05-1.169.246-1.805.408-2.228.216-.561.477-.96.895-1.382a3.705 3.705 0 0 1 1.379-.9c.423-.165 1.057-.361 2.227-.417 1.265-.06 1.644-.072 4.848-.08 3.203-.006 3.583.006 4.85.062 1.168.05 1.804.244 2.227.408.56.216.96.475 1.382.895.421.42.681.817.9 1.378.165.422.362 1.056.417 2.227.06 1.265.074 1.645.08 4.848.005 3.203-.006 3.583-.061 4.848-.051 1.17-.245 1.805-.408 2.23-.216.56-.477.96-.896 1.38a3.705 3.705 0 0 1-1.378.9c-.422.165-1.058.362-2.226.418-1.266.06-1.645.072-4.85.079-3.204.007-3.582-.006-4.848-.06m9.783-16.192a1.44 1.44 0 1 0 1.437-1.442 1.44 1.44 0 0 0-1.437 1.442M5.839 12.012a6.161 6.161 0 1 0 12.323-.024 6.162 6.162 0 0 0-12.323.024M8 12.008A4 4 0 1 1 12.008 16 4 4 0 0 1 8 12.008'/%3E%3C/svg%3E")}.vpi-social-linkedin{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E")}.vpi-social-mastodon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z'/%3E%3C/svg%3E")}.vpi-social-npm{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z'/%3E%3C/svg%3E")}.vpi-social-slack{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zm10.122 2.521a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zm-1.268 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zm-2.523 10.122a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zm0-1.268a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z'/%3E%3C/svg%3E")}.vpi-social-twitter,.vpi-social-x{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E")}.vpi-social-youtube{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E")}.visually-hidden{position:absolute;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden}.custom-block{border:1px solid transparent;border-radius:8px;padding:16px 16px 8px;line-height:24px;font-size:var(--vp-custom-block-font-size);color:var(--vp-c-text-2)}.custom-block.info{border-color:var(--vp-custom-block-info-border);color:var(--vp-custom-block-info-text);background-color:var(--vp-custom-block-info-bg)}.custom-block.info a,.custom-block.info code{color:var(--vp-c-brand-1)}.custom-block.info a:hover,.custom-block.info a:hover>code{color:var(--vp-c-brand-2)}.custom-block.info code{background-color:var(--vp-custom-block-info-code-bg)}.custom-block.note{border-color:var(--vp-custom-block-note-border);color:var(--vp-custom-block-note-text);background-color:var(--vp-custom-block-note-bg)}.custom-block.note a,.custom-block.note code{color:var(--vp-c-brand-1)}.custom-block.note a:hover,.custom-block.note a:hover>code{color:var(--vp-c-brand-2)}.custom-block.note code{background-color:var(--vp-custom-block-note-code-bg)}.custom-block.tip{border-color:var(--vp-custom-block-tip-border);color:var(--vp-custom-block-tip-text);background-color:var(--vp-custom-block-tip-bg)}.custom-block.tip a,.custom-block.tip code{color:var(--vp-c-tip-1)}.custom-block.tip a:hover,.custom-block.tip a:hover>code{color:var(--vp-c-tip-2)}.custom-block.tip code{background-color:var(--vp-custom-block-tip-code-bg)}.custom-block.important{border-color:var(--vp-custom-block-important-border);color:var(--vp-custom-block-important-text);background-color:var(--vp-custom-block-important-bg)}.custom-block.important a,.custom-block.important code{color:var(--vp-c-important-1)}.custom-block.important a:hover,.custom-block.important a:hover>code{color:var(--vp-c-important-2)}.custom-block.important code{background-color:var(--vp-custom-block-important-code-bg)}.custom-block.warning{border-color:var(--vp-custom-block-warning-border);color:var(--vp-custom-block-warning-text);background-color:var(--vp-custom-block-warning-bg)}.custom-block.warning a,.custom-block.warning code{color:var(--vp-c-warning-1)}.custom-block.warning a:hover,.custom-block.warning a:hover>code{color:var(--vp-c-warning-2)}.custom-block.warning code{background-color:var(--vp-custom-block-warning-code-bg)}.custom-block.danger{border-color:var(--vp-custom-block-danger-border);color:var(--vp-custom-block-danger-text);background-color:var(--vp-custom-block-danger-bg)}.custom-block.danger a,.custom-block.danger code{color:var(--vp-c-danger-1)}.custom-block.danger a:hover,.custom-block.danger a:hover>code{color:var(--vp-c-danger-2)}.custom-block.danger code{background-color:var(--vp-custom-block-danger-code-bg)}.custom-block.caution{border-color:var(--vp-custom-block-caution-border);color:var(--vp-custom-block-caution-text);background-color:var(--vp-custom-block-caution-bg)}.custom-block.caution a,.custom-block.caution code{color:var(--vp-c-caution-1)}.custom-block.caution a:hover,.custom-block.caution a:hover>code{color:var(--vp-c-caution-2)}.custom-block.caution code{background-color:var(--vp-custom-block-caution-code-bg)}.custom-block.details{border-color:var(--vp-custom-block-details-border);color:var(--vp-custom-block-details-text);background-color:var(--vp-custom-block-details-bg)}.custom-block.details a{color:var(--vp-c-brand-1)}.custom-block.details a:hover,.custom-block.details a:hover>code{color:var(--vp-c-brand-2)}.custom-block.details code{background-color:var(--vp-custom-block-details-code-bg)}.custom-block-title{font-weight:600}.custom-block p+p{margin:8px 0}.custom-block.details summary{margin:0 0 8px;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none}.custom-block.details summary+p{margin:8px 0}.custom-block a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;transition:opacity .25s}.custom-block a:hover{opacity:.75}.custom-block code{font-size:var(--vp-custom-block-code-font-size)}.custom-block.custom-block th,.custom-block.custom-block blockquote>p{font-size:var(--vp-custom-block-font-size);color:inherit}.dark .vp-code span{color:var(--shiki-dark, inherit)}html:not(.dark) .vp-code span{color:var(--shiki-light, inherit)}.vp-code-group{margin-top:16px}.vp-code-group .tabs{position:relative;display:flex;margin-right:-24px;margin-left:-24px;padding:0 12px;background-color:var(--vp-code-tab-bg);overflow-x:auto;overflow-y:hidden;box-shadow:inset 0 -1px var(--vp-code-tab-divider)}@media (min-width: 640px){.vp-code-group .tabs{margin-right:0;margin-left:0;border-radius:8px 8px 0 0}}.vp-code-group .tabs input{position:fixed;opacity:0;pointer-events:none}.vp-code-group .tabs label{position:relative;display:inline-block;border-bottom:1px solid transparent;padding:0 12px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-code-tab-text-color);white-space:nowrap;cursor:pointer;transition:color .25s}.vp-code-group .tabs label:after{position:absolute;right:8px;bottom:-1px;left:8px;z-index:1;height:2px;border-radius:2px;content:"";background-color:transparent;transition:background-color .25s}.vp-code-group label:hover{color:var(--vp-code-tab-hover-text-color)}.vp-code-group input:checked+label{color:var(--vp-code-tab-active-text-color)}.vp-code-group input:checked+label:after{background-color:var(--vp-code-tab-active-bar-color)}.vp-code-group div[class*=language-],.vp-block{display:none;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.vp-code-group div[class*=language-].active,.vp-block.active{display:block}.vp-block{padding:20px 24px}.vp-doc h1,.vp-doc h2,.vp-doc h3,.vp-doc h4,.vp-doc h5,.vp-doc h6{position:relative;font-weight:600;outline:none}.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:28px}.vp-doc h2{margin:48px 0 16px;border-top:1px solid var(--vp-c-divider);padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.vp-doc h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.vp-doc h4{margin:24px 0 0;letter-spacing:-.01em;line-height:24px;font-size:18px}.vp-doc .header-anchor{position:absolute;top:0;left:0;margin-left:-.87em;font-weight:500;-webkit-user-select:none;user-select:none;opacity:0;text-decoration:none;transition:color .25s,opacity .25s}.vp-doc .header-anchor:before{content:var(--vp-header-anchor-symbol)}.vp-doc h1:hover .header-anchor,.vp-doc h1 .header-anchor:focus,.vp-doc h2:hover .header-anchor,.vp-doc h2 .header-anchor:focus,.vp-doc h3:hover .header-anchor,.vp-doc h3 .header-anchor:focus,.vp-doc h4:hover .header-anchor,.vp-doc h4 .header-anchor:focus,.vp-doc h5:hover .header-anchor,.vp-doc h5 .header-anchor:focus,.vp-doc h6:hover .header-anchor,.vp-doc h6 .header-anchor:focus{opacity:1}@media (min-width: 768px){.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:32px}}.vp-doc h2 .header-anchor{top:24px}.vp-doc p,.vp-doc summary{margin:16px 0}.vp-doc p{line-height:28px}.vp-doc blockquote{margin:16px 0;border-left:2px solid var(--vp-c-divider);padding-left:16px;transition:border-color .5s;color:var(--vp-c-text-2)}.vp-doc blockquote>p{margin:0;font-size:16px;transition:color .5s}.vp-doc a{font-weight:500;color:var(--vp-c-brand-1);text-decoration:underline;text-underline-offset:2px;transition:color .25s,opacity .25s}.vp-doc a:hover{color:var(--vp-c-brand-2)}.vp-doc strong{font-weight:600}.vp-doc ul,.vp-doc ol{padding-left:1.25rem;margin:16px 0}.vp-doc ul{list-style:disc}.vp-doc ol{list-style:decimal}.vp-doc li+li{margin-top:8px}.vp-doc li>ol,.vp-doc li>ul{margin:8px 0 0}.vp-doc table{display:block;border-collapse:collapse;margin:20px 0;overflow-x:auto}.vp-doc tr{background-color:var(--vp-c-bg);border-top:1px solid var(--vp-c-divider);transition:background-color .5s}.vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}.vp-doc th,.vp-doc td{border:1px solid var(--vp-c-divider);padding:8px 16px}.vp-doc th{text-align:left;font-size:14px;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-doc td{font-size:14px}.vp-doc hr{margin:16px 0;border:none;border-top:1px solid var(--vp-c-divider)}.vp-doc .custom-block{margin:16px 0}.vp-doc .custom-block p{margin:8px 0;line-height:24px}.vp-doc .custom-block p:first-child{margin:0}.vp-doc .custom-block div[class*=language-]{margin:8px 0;border-radius:8px}.vp-doc .custom-block div[class*=language-] code{font-weight:400;background-color:transparent}.vp-doc .custom-block .vp-code-group .tabs{margin:0;border-radius:8px 8px 0 0}.vp-doc :not(pre,h1,h2,h3,h4,h5,h6)>code{font-size:var(--vp-code-font-size);color:var(--vp-code-color)}.vp-doc :not(pre)>code{border-radius:4px;padding:3px 6px;background-color:var(--vp-code-bg);transition:color .25s,background-color .5s}.vp-doc a>code{color:var(--vp-code-link-color)}.vp-doc a:hover>code{color:var(--vp-code-link-hover-color)}.vp-doc h1>code,.vp-doc h2>code,.vp-doc h3>code,.vp-doc h4>code{font-size:.9em}.vp-doc div[class*=language-],.vp-block{position:relative;margin:16px -24px;background-color:var(--vp-code-block-bg);overflow-x:auto;transition:background-color .5s}@media (min-width: 640px){.vp-doc div[class*=language-],.vp-block{border-radius:8px;margin:16px 0}}@media (max-width: 639px){.vp-doc li div[class*=language-]{border-radius:8px 0 0 8px}}.vp-doc div[class*=language-]+div[class*=language-],.vp-doc div[class$=-api]+div[class*=language-],.vp-doc div[class*=language-]+div[class$=-api]>div[class*=language-]{margin-top:-8px}.vp-doc [class*=language-] pre,.vp-doc [class*=language-] code{direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.vp-doc [class*=language-] pre{position:relative;z-index:1;margin:0;padding:20px 0;background:transparent;overflow-x:auto}.vp-doc [class*=language-] code{display:block;padding:0 24px;width:fit-content;min-width:100%;line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-block-color);transition:color .5s}.vp-doc [class*=language-] code .highlighted{background-color:var(--vp-code-line-highlight-color);transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .highlighted.error{background-color:var(--vp-code-line-error-color)}.vp-doc [class*=language-] code .highlighted.warning{background-color:var(--vp-code-line-warning-color)}.vp-doc [class*=language-] code .diff{transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .diff:before{position:absolute;left:10px}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){filter:blur(.095rem);opacity:.4;transition:filter .35s,opacity .35s}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){opacity:.7;transition:filter .35s,opacity .35s}.vp-doc [class*=language-]:hover .has-focused-lines .line:not(.has-focus){filter:blur(0);opacity:1}.vp-doc [class*=language-] code .diff.remove{background-color:var(--vp-code-line-diff-remove-color);opacity:.7}.vp-doc [class*=language-] code .diff.remove:before{content:"-";color:var(--vp-code-line-diff-remove-symbol-color)}.vp-doc [class*=language-] code .diff.add{background-color:var(--vp-code-line-diff-add-color)}.vp-doc [class*=language-] code .diff.add:before{content:"+";color:var(--vp-code-line-diff-add-symbol-color)}.vp-doc div[class*=language-].line-numbers-mode{padding-left:32px}.vp-doc .line-numbers-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:3;border-right:1px solid var(--vp-code-block-divider-color);padding-top:20px;width:32px;text-align:center;font-family:var(--vp-font-family-mono);line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-line-number-color);transition:border-color .5s,color .5s}.vp-doc [class*=language-]>button.copy{direction:ltr;position:absolute;top:12px;right:12px;z-index:3;border:1px solid var(--vp-code-copy-code-border-color);border-radius:4px;width:40px;height:40px;background-color:var(--vp-code-copy-code-bg);opacity:0;cursor:pointer;background-image:var(--vp-icon-copy);background-position:50%;background-size:20px;background-repeat:no-repeat;transition:border-color .25s,background-color .25s,opacity .25s}.vp-doc [class*=language-]:hover>button.copy,.vp-doc [class*=language-]>button.copy:focus{opacity:1}.vp-doc [class*=language-]>button.copy:hover,.vp-doc [class*=language-]>button.copy.copied{border-color:var(--vp-code-copy-code-hover-border-color);background-color:var(--vp-code-copy-code-hover-bg)}.vp-doc [class*=language-]>button.copy.copied,.vp-doc [class*=language-]>button.copy:hover.copied{border-radius:0 4px 4px 0;background-color:var(--vp-code-copy-code-hover-bg);background-image:var(--vp-icon-copied)}.vp-doc [class*=language-]>button.copy.copied:before,.vp-doc [class*=language-]>button.copy:hover.copied:before{position:relative;top:-1px;transform:translate(calc(-100% - 1px));display:flex;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-hover-border-color);border-right:0;border-radius:4px 0 0 4px;padding:0 10px;width:fit-content;height:40px;text-align:center;font-size:12px;font-weight:500;color:var(--vp-code-copy-code-active-text);background-color:var(--vp-code-copy-code-hover-bg);white-space:nowrap;content:var(--vp-code-copy-copied-text-content)}.vp-doc [class*=language-]>span.lang{position:absolute;top:2px;right:8px;z-index:2;font-size:12px;font-weight:500;color:var(--vp-code-lang-color);transition:color .4s,opacity .4s}.vp-doc [class*=language-]:hover>button.copy+span.lang,.vp-doc [class*=language-]>button.copy:focus+span.lang{opacity:0}.vp-doc .VPTeamMembers{margin-top:24px}.vp-doc .VPTeamMembers.small.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-doc .VPTeamMembers.small.count-2 .container,.vp-doc .VPTeamMembers.small.count-3 .container{max-width:100%!important}.vp-doc .VPTeamMembers.medium.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}:is(.vp-external-link-icon,.vp-doc a[href*="://"],.vp-doc a[target=_blank]):not(.no-icon):after{display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;background:currentColor;color:var(--vp-c-text-3);flex-shrink:0;--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");-webkit-mask-image:var(--icon);mask-image:var(--icon)}.vp-external-link-icon:after{content:""}.external-link-icon-enabled :is(.vp-doc a[href*="://"],.vp-doc a[target=_blank]):after{content:"";color:currentColor}.vp-sponsor{border-radius:16px;overflow:hidden}.vp-sponsor.aside{border-radius:12px}.vp-sponsor-section+.vp-sponsor-section{margin-top:4px}.vp-sponsor-tier{margin:0 0 4px!important;text-align:center;letter-spacing:1px!important;line-height:24px;width:100%;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-sponsor.normal .vp-sponsor-tier{padding:13px 0 11px;font-size:14px}.vp-sponsor.aside .vp-sponsor-tier{padding:9px 0 7px;font-size:12px}.vp-sponsor-grid+.vp-sponsor-tier{margin-top:4px}.vp-sponsor-grid{display:flex;flex-wrap:wrap;gap:4px}.vp-sponsor-grid.xmini .vp-sponsor-grid-link{height:64px}.vp-sponsor-grid.xmini .vp-sponsor-grid-image{max-width:64px;max-height:22px}.vp-sponsor-grid.mini .vp-sponsor-grid-link{height:72px}.vp-sponsor-grid.mini .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.small .vp-sponsor-grid-link{height:96px}.vp-sponsor-grid.small .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.medium .vp-sponsor-grid-link{height:112px}.vp-sponsor-grid.medium .vp-sponsor-grid-image{max-width:120px;max-height:36px}.vp-sponsor-grid.big .vp-sponsor-grid-link{height:184px}.vp-sponsor-grid.big .vp-sponsor-grid-image{max-width:192px;max-height:56px}.vp-sponsor-grid[data-vp-grid="2"] .vp-sponsor-grid-item{width:calc((100% - 4px)/2)}.vp-sponsor-grid[data-vp-grid="3"] .vp-sponsor-grid-item{width:calc((100% - 4px * 2) / 3)}.vp-sponsor-grid[data-vp-grid="4"] .vp-sponsor-grid-item{width:calc((100% - 12px)/4)}.vp-sponsor-grid[data-vp-grid="5"] .vp-sponsor-grid-item{width:calc((100% - 16px)/5)}.vp-sponsor-grid[data-vp-grid="6"] .vp-sponsor-grid-item{width:calc((100% - 4px * 5) / 6)}.vp-sponsor-grid-item{flex-shrink:0;width:100%;background-color:var(--vp-c-bg-soft);transition:background-color .25s}.vp-sponsor-grid-item:hover{background-color:var(--vp-c-default-soft)}.vp-sponsor-grid-item:hover .vp-sponsor-grid-image{filter:grayscale(0) invert(0)}.vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.dark .vp-sponsor-grid-item:hover{background-color:var(--vp-c-white)}.dark .vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.vp-sponsor-grid-link{display:flex}.vp-sponsor-grid-box{display:flex;justify-content:center;align-items:center;width:100%}.vp-sponsor-grid-image{max-width:100%;filter:grayscale(1);transition:filter .25s}.dark .vp-sponsor-grid-image{filter:grayscale(1) invert(1)}.VPBadge{display:inline-block;margin-left:2px;border:1px solid transparent;border-radius:12px;padding:0 10px;line-height:22px;font-size:12px;font-weight:500;transform:translateY(-2px)}.VPBadge.small{padding:0 6px;line-height:18px;font-size:10px;transform:translateY(-8px)}.VPDocFooter .VPBadge{display:none}.vp-doc h1>.VPBadge{margin-top:4px;vertical-align:top}.vp-doc h2>.VPBadge{margin-top:3px;padding:0 8px;vertical-align:top}.vp-doc h3>.VPBadge{vertical-align:middle}.vp-doc h4>.VPBadge,.vp-doc h5>.VPBadge,.vp-doc h6>.VPBadge{vertical-align:middle;line-height:18px}.VPBadge.info{border-color:var(--vp-badge-info-border);color:var(--vp-badge-info-text);background-color:var(--vp-badge-info-bg)}.VPBadge.tip{border-color:var(--vp-badge-tip-border);color:var(--vp-badge-tip-text);background-color:var(--vp-badge-tip-bg)}.VPBadge.warning{border-color:var(--vp-badge-warning-border);color:var(--vp-badge-warning-text);background-color:var(--vp-badge-warning-bg)}.VPBadge.danger{border-color:var(--vp-badge-danger-border);color:var(--vp-badge-danger-text);background-color:var(--vp-badge-danger-bg)}.VPBackdrop[data-v-54a304ca]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vp-z-index-backdrop);background:var(--vp-backdrop-bg-color);transition:opacity .5s}.VPBackdrop.fade-enter-from[data-v-54a304ca],.VPBackdrop.fade-leave-to[data-v-54a304ca]{opacity:0}.VPBackdrop.fade-leave-active[data-v-54a304ca]{transition-duration:.25s}@media (min-width: 1280px){.VPBackdrop[data-v-54a304ca]{display:none}}.NotFound[data-v-6ff51ddd]{padding:64px 24px 96px;text-align:center}@media (min-width: 768px){.NotFound[data-v-6ff51ddd]{padding:96px 32px 168px}}.code[data-v-6ff51ddd]{line-height:64px;font-size:64px;font-weight:600}.title[data-v-6ff51ddd]{padding-top:12px;letter-spacing:2px;line-height:20px;font-size:20px;font-weight:700}.divider[data-v-6ff51ddd]{margin:24px auto 18px;width:64px;height:1px;background-color:var(--vp-c-divider)}.quote[data-v-6ff51ddd]{margin:0 auto;max-width:256px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.action[data-v-6ff51ddd]{padding-top:20px}.link[data-v-6ff51ddd]{display:inline-block;border:1px solid var(--vp-c-brand-1);border-radius:16px;padding:3px 16px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:border-color .25s,color .25s}.link[data-v-6ff51ddd]:hover{border-color:var(--vp-c-brand-2);color:var(--vp-c-brand-2)}.root[data-v-53c99d69]{position:relative;z-index:1}.nested[data-v-53c99d69]{padding-right:16px;padding-left:16px}.outline-link[data-v-53c99d69]{display:block;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .5s}.outline-link[data-v-53c99d69]:hover,.outline-link.active[data-v-53c99d69]{color:var(--vp-c-text-1);transition:color .25s}.outline-link.nested[data-v-53c99d69]{padding-left:13px}.VPDocAsideOutline[data-v-f610f197]{display:none}.VPDocAsideOutline.has-outline[data-v-f610f197]{display:block}.content[data-v-f610f197]{position:relative;border-left:1px solid var(--vp-c-divider);padding-left:16px;font-size:13px;font-weight:500}.outline-marker[data-v-f610f197]{position:absolute;top:32px;left:-1px;z-index:0;opacity:0;width:2px;border-radius:2px;height:18px;background-color:var(--vp-c-brand-1);transition:top .25s cubic-bezier(0,1,.5,1),background-color .5s,opacity .25s}.outline-title[data-v-f610f197]{line-height:32px;font-size:14px;font-weight:600}.VPDocAside[data-v-cb998dce]{display:flex;flex-direction:column;flex-grow:1}.spacer[data-v-cb998dce]{flex-grow:1}.VPDocAside[data-v-cb998dce] .spacer+.VPDocAsideSponsors,.VPDocAside[data-v-cb998dce] .spacer+.VPDocAsideCarbonAds{margin-top:24px}.VPDocAside[data-v-cb998dce] .VPDocAsideSponsors+.VPDocAsideCarbonAds{margin-top:16px}.VPLastUpdated[data-v-1bb0c8a8]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 640px){.VPLastUpdated[data-v-1bb0c8a8]{line-height:32px;font-size:14px;font-weight:500}}.VPDocFooter[data-v-1bcd8184]{margin-top:64px}.edit-info[data-v-1bcd8184]{padding-bottom:18px}@media (min-width: 640px){.edit-info[data-v-1bcd8184]{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}}.edit-link-button[data-v-1bcd8184]{display:flex;align-items:center;border:0;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.edit-link-button[data-v-1bcd8184]:hover{color:var(--vp-c-brand-2)}.edit-link-icon[data-v-1bcd8184]{margin-right:8px}.prev-next[data-v-1bcd8184]{border-top:1px solid var(--vp-c-divider);padding-top:24px;display:grid;grid-row-gap:8px}@media (min-width: 640px){.prev-next[data-v-1bcd8184]{grid-template-columns:repeat(2,1fr);grid-column-gap:16px}}.pager-link[data-v-1bcd8184]{display:block;border:1px solid var(--vp-c-divider);border-radius:8px;padding:11px 16px 13px;width:100%;height:100%;transition:border-color .25s}.pager-link[data-v-1bcd8184]:hover{border-color:var(--vp-c-brand-1)}.pager-link.next[data-v-1bcd8184]{margin-left:auto;text-align:right}.desc[data-v-1bcd8184]{display:block;line-height:20px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.title[data-v-1bcd8184]{display:block;line-height:20px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.VPDoc[data-v-e6f2a212]{padding:32px 24px 96px;width:100%}@media (min-width: 768px){.VPDoc[data-v-e6f2a212]{padding:48px 32px 128px}}@media (min-width: 960px){.VPDoc[data-v-e6f2a212]{padding:48px 32px 0}.VPDoc:not(.has-sidebar) .container[data-v-e6f2a212]{display:flex;justify-content:center;max-width:992px}.VPDoc:not(.has-sidebar) .content[data-v-e6f2a212]{max-width:752px}}@media (min-width: 1280px){.VPDoc .container[data-v-e6f2a212]{display:flex;justify-content:center}.VPDoc .aside[data-v-e6f2a212]{display:block}}@media (min-width: 1440px){.VPDoc:not(.has-sidebar) .content[data-v-e6f2a212]{max-width:784px}.VPDoc:not(.has-sidebar) .container[data-v-e6f2a212]{max-width:1104px}}.container[data-v-e6f2a212]{margin:0 auto;width:100%}.aside[data-v-e6f2a212]{position:relative;display:none;order:2;flex-grow:1;padding-left:32px;width:100%;max-width:256px}.left-aside[data-v-e6f2a212]{order:1;padding-left:unset;padding-right:32px}.aside-container[data-v-e6f2a212]{position:fixed;top:0;padding-top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 48px);width:224px;height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.aside-container[data-v-e6f2a212]::-webkit-scrollbar{display:none}.aside-curtain[data-v-e6f2a212]{position:fixed;bottom:0;z-index:10;width:224px;height:32px;background:linear-gradient(transparent,var(--vp-c-bg) 70%)}.aside-content[data-v-e6f2a212]{display:flex;flex-direction:column;min-height:calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px));padding-bottom:32px}.content[data-v-e6f2a212]{position:relative;margin:0 auto;width:100%}@media (min-width: 960px){.content[data-v-e6f2a212]{padding:0 32px 128px}}@media (min-width: 1280px){.content[data-v-e6f2a212]{order:1;margin:0;min-width:640px}}.content-container[data-v-e6f2a212]{margin:0 auto}.VPDoc.has-aside .content-container[data-v-e6f2a212]{max-width:688px}.VPButton[data-v-c9cf0e3c]{display:inline-block;border:1px solid transparent;text-align:center;font-weight:600;white-space:nowrap;transition:color .25s,border-color .25s,background-color .25s}.VPButton[data-v-c9cf0e3c]:active{transition:color .1s,border-color .1s,background-color .1s}.VPButton.medium[data-v-c9cf0e3c]{border-radius:20px;padding:0 20px;line-height:38px;font-size:14px}.VPButton.big[data-v-c9cf0e3c]{border-radius:24px;padding:0 24px;line-height:46px;font-size:16px}.VPButton.brand[data-v-c9cf0e3c]{border-color:var(--vp-button-brand-border);color:var(--vp-button-brand-text);background-color:var(--vp-button-brand-bg)}.VPButton.brand[data-v-c9cf0e3c]:hover{border-color:var(--vp-button-brand-hover-border);color:var(--vp-button-brand-hover-text);background-color:var(--vp-button-brand-hover-bg)}.VPButton.brand[data-v-c9cf0e3c]:active{border-color:var(--vp-button-brand-active-border);color:var(--vp-button-brand-active-text);background-color:var(--vp-button-brand-active-bg)}.VPButton.alt[data-v-c9cf0e3c]{border-color:var(--vp-button-alt-border);color:var(--vp-button-alt-text);background-color:var(--vp-button-alt-bg)}.VPButton.alt[data-v-c9cf0e3c]:hover{border-color:var(--vp-button-alt-hover-border);color:var(--vp-button-alt-hover-text);background-color:var(--vp-button-alt-hover-bg)}.VPButton.alt[data-v-c9cf0e3c]:active{border-color:var(--vp-button-alt-active-border);color:var(--vp-button-alt-active-text);background-color:var(--vp-button-alt-active-bg)}.VPButton.sponsor[data-v-c9cf0e3c]{border-color:var(--vp-button-sponsor-border);color:var(--vp-button-sponsor-text);background-color:var(--vp-button-sponsor-bg)}.VPButton.sponsor[data-v-c9cf0e3c]:hover{border-color:var(--vp-button-sponsor-hover-border);color:var(--vp-button-sponsor-hover-text);background-color:var(--vp-button-sponsor-hover-bg)}.VPButton.sponsor[data-v-c9cf0e3c]:active{border-color:var(--vp-button-sponsor-active-border);color:var(--vp-button-sponsor-active-text);background-color:var(--vp-button-sponsor-active-bg)}html:not(.dark) .VPImage.dark[data-v-ab19afbb]{display:none}.dark .VPImage.light[data-v-ab19afbb]{display:none}.VPHero[data-v-b10c5094]{margin-top:calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px}@media (min-width: 640px){.VPHero[data-v-b10c5094]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px}}@media (min-width: 960px){.VPHero[data-v-b10c5094]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px}}.container[data-v-b10c5094]{display:flex;flex-direction:column;margin:0 auto;max-width:1152px}@media (min-width: 960px){.container[data-v-b10c5094]{flex-direction:row}}.main[data-v-b10c5094]{position:relative;z-index:10;order:2;flex-grow:1;flex-shrink:0}.VPHero.has-image .container[data-v-b10c5094]{text-align:center}@media (min-width: 960px){.VPHero.has-image .container[data-v-b10c5094]{text-align:left}}@media (min-width: 960px){.main[data-v-b10c5094]{order:1;width:calc((100% / 3) * 2)}.VPHero.has-image .main[data-v-b10c5094]{max-width:592px}}.name[data-v-b10c5094],.text[data-v-b10c5094]{max-width:392px;letter-spacing:-.4px;line-height:40px;font-size:32px;font-weight:700;white-space:pre-wrap}.VPHero.has-image .name[data-v-b10c5094],.VPHero.has-image .text[data-v-b10c5094]{margin:0 auto}.name[data-v-b10c5094]{color:var(--vp-home-hero-name-color)}.clip[data-v-b10c5094]{background:var(--vp-home-hero-name-background);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--vp-home-hero-name-color)}@media (min-width: 640px){.name[data-v-b10c5094],.text[data-v-b10c5094]{max-width:576px;line-height:56px;font-size:48px}}@media (min-width: 960px){.name[data-v-b10c5094],.text[data-v-b10c5094]{line-height:64px;font-size:56px}.VPHero.has-image .name[data-v-b10c5094],.VPHero.has-image .text[data-v-b10c5094]{margin:0}}.tagline[data-v-b10c5094]{padding-top:8px;max-width:392px;line-height:28px;font-size:18px;font-weight:500;white-space:pre-wrap;color:var(--vp-c-text-2)}.VPHero.has-image .tagline[data-v-b10c5094]{margin:0 auto}@media (min-width: 640px){.tagline[data-v-b10c5094]{padding-top:12px;max-width:576px;line-height:32px;font-size:20px}}@media (min-width: 960px){.tagline[data-v-b10c5094]{line-height:36px;font-size:24px}.VPHero.has-image .tagline[data-v-b10c5094]{margin:0}}.actions[data-v-b10c5094]{display:flex;flex-wrap:wrap;margin:-6px;padding-top:24px}.VPHero.has-image .actions[data-v-b10c5094]{justify-content:center}@media (min-width: 640px){.actions[data-v-b10c5094]{padding-top:32px}}@media (min-width: 960px){.VPHero.has-image .actions[data-v-b10c5094]{justify-content:flex-start}}.action[data-v-b10c5094]{flex-shrink:0;padding:6px}.image[data-v-b10c5094]{order:1;margin:-76px -24px -48px}@media (min-width: 640px){.image[data-v-b10c5094]{margin:-108px -24px -48px}}@media (min-width: 960px){.image[data-v-b10c5094]{flex-grow:1;order:2;margin:0;min-height:100%}}.image-container[data-v-b10c5094]{position:relative;margin:0 auto;width:320px;height:320px}@media (min-width: 640px){.image-container[data-v-b10c5094]{width:392px;height:392px}}@media (min-width: 960px){.image-container[data-v-b10c5094]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;transform:translate(-32px,-32px)}}.image-bg[data-v-b10c5094]{position:absolute;top:50%;left:50%;border-radius:50%;width:192px;height:192px;background-image:var(--vp-home-hero-image-background-image);filter:var(--vp-home-hero-image-filter);transform:translate(-50%,-50%)}@media (min-width: 640px){.image-bg[data-v-b10c5094]{width:256px;height:256px}}@media (min-width: 960px){.image-bg[data-v-b10c5094]{width:320px;height:320px}}[data-v-b10c5094] .image-src{position:absolute;top:50%;left:50%;max-width:192px;max-height:192px;transform:translate(-50%,-50%)}@media (min-width: 640px){[data-v-b10c5094] .image-src{max-width:256px;max-height:256px}}@media (min-width: 960px){[data-v-b10c5094] .image-src{max-width:320px;max-height:320px}}.VPFeature[data-v-bd37d1a2]{display:block;border:1px solid var(--vp-c-bg-soft);border-radius:12px;height:100%;background-color:var(--vp-c-bg-soft);transition:border-color .25s,background-color .25s}.VPFeature.link[data-v-bd37d1a2]:hover{border-color:var(--vp-c-brand-1)}.box[data-v-bd37d1a2]{display:flex;flex-direction:column;padding:24px;height:100%}.box[data-v-bd37d1a2]>.VPImage{margin-bottom:20px}.icon[data-v-bd37d1a2]{display:flex;justify-content:center;align-items:center;margin-bottom:20px;border-radius:6px;background-color:var(--vp-c-default-soft);width:48px;height:48px;font-size:24px;transition:background-color .25s}.title[data-v-bd37d1a2]{line-height:24px;font-size:16px;font-weight:600}.details[data-v-bd37d1a2]{flex-grow:1;padding-top:8px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.link-text[data-v-bd37d1a2]{padding-top:8px}.link-text-value[data-v-bd37d1a2]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.link-text-icon[data-v-bd37d1a2]{margin-left:6px}.VPFeatures[data-v-b1eea84a]{position:relative;padding:0 24px}@media (min-width: 640px){.VPFeatures[data-v-b1eea84a]{padding:0 48px}}@media (min-width: 960px){.VPFeatures[data-v-b1eea84a]{padding:0 64px}}.container[data-v-b1eea84a]{margin:0 auto;max-width:1152px}.items[data-v-b1eea84a]{display:flex;flex-wrap:wrap;margin:-8px}.item[data-v-b1eea84a]{padding:8px;width:100%}@media (min-width: 640px){.item.grid-2[data-v-b1eea84a],.item.grid-4[data-v-b1eea84a],.item.grid-6[data-v-b1eea84a]{width:50%}}@media (min-width: 768px){.item.grid-2[data-v-b1eea84a],.item.grid-4[data-v-b1eea84a]{width:50%}.item.grid-3[data-v-b1eea84a],.item.grid-6[data-v-b1eea84a]{width:calc(100% / 3)}}@media (min-width: 960px){.item.grid-4[data-v-b1eea84a]{width:25%}}.container[data-v-c141a4bd]{margin:auto;width:100%;max-width:1280px;padding:0 24px}@media (min-width: 640px){.container[data-v-c141a4bd]{padding:0 48px}}@media (min-width: 960px){.container[data-v-c141a4bd]{width:100%;padding:0 64px}}.vp-doc[data-v-c141a4bd] .VPHomeSponsors,.vp-doc[data-v-c141a4bd] .VPTeamPage{margin-left:var(--vp-offset, calc(50% - 50vw) );margin-right:var(--vp-offset, calc(50% - 50vw) )}.vp-doc[data-v-c141a4bd] .VPHomeSponsors h2{border-top:none;letter-spacing:normal}.vp-doc[data-v-c141a4bd] .VPHomeSponsors a,.vp-doc[data-v-c141a4bd] .VPTeamPage a{text-decoration:none}.VPHome[data-v-07b1ad08]{margin-bottom:96px}@media (min-width: 768px){.VPHome[data-v-07b1ad08]{margin-bottom:128px}}.VPContent[data-v-9a6c75ad]{flex-grow:1;flex-shrink:0;margin:var(--vp-layout-top-height, 0px) auto 0;width:100%}.VPContent.is-home[data-v-9a6c75ad]{width:100%;max-width:100%}.VPContent.has-sidebar[data-v-9a6c75ad]{margin:0}@media (min-width: 960px){.VPContent[data-v-9a6c75ad]{padding-top:var(--vp-nav-height)}.VPContent.has-sidebar[data-v-9a6c75ad]{margin:var(--vp-layout-top-height, 0px) 0 0;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPContent.has-sidebar[data-v-9a6c75ad]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.VPFooter[data-v-566314d4]{position:relative;z-index:var(--vp-z-index-footer);border-top:1px solid var(--vp-c-gutter);padding:32px 24px;background-color:var(--vp-c-bg)}.VPFooter.has-sidebar[data-v-566314d4]{display:none}.VPFooter[data-v-566314d4] a{text-decoration-line:underline;text-underline-offset:2px;transition:color .25s}.VPFooter[data-v-566314d4] a:hover{color:var(--vp-c-text-1)}@media (min-width: 768px){.VPFooter[data-v-566314d4]{padding:32px}}.container[data-v-566314d4]{margin:0 auto;max-width:var(--vp-layout-max-width);text-align:center}.message[data-v-566314d4],.copyright[data-v-566314d4]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.VPLocalNavOutlineDropdown[data-v-883964e0]{padding:12px 20px 11px}@media (min-width: 960px){.VPLocalNavOutlineDropdown[data-v-883964e0]{padding:12px 36px 11px}}.VPLocalNavOutlineDropdown button[data-v-883964e0]{display:block;font-size:12px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;position:relative}.VPLocalNavOutlineDropdown button[data-v-883964e0]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPLocalNavOutlineDropdown button.open[data-v-883964e0]{color:var(--vp-c-text-1)}.icon[data-v-883964e0]{display:inline-block;vertical-align:middle;margin-left:2px;font-size:14px;transform:rotate(0);transition:transform .25s}@media (min-width: 960px){.VPLocalNavOutlineDropdown button[data-v-883964e0]{font-size:14px}.icon[data-v-883964e0]{font-size:16px}}.open>.icon[data-v-883964e0]{transform:rotate(90deg)}.items[data-v-883964e0]{position:absolute;top:40px;right:16px;left:16px;display:grid;gap:1px;border:1px solid var(--vp-c-border);border-radius:8px;background-color:var(--vp-c-gutter);max-height:calc(var(--vp-vh, 100vh) - 86px);overflow:hidden auto;box-shadow:var(--vp-shadow-3)}@media (min-width: 960px){.items[data-v-883964e0]{right:auto;left:calc(var(--vp-sidebar-width) + 32px);width:320px}}.header[data-v-883964e0]{background-color:var(--vp-c-bg-soft)}.top-link[data-v-883964e0]{display:block;padding:0 16px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.outline[data-v-883964e0]{padding:8px 0;background-color:var(--vp-c-bg-soft)}.flyout-enter-active[data-v-883964e0]{transition:all .2s ease-out}.flyout-leave-active[data-v-883964e0]{transition:all .15s ease-in}.flyout-enter-from[data-v-883964e0],.flyout-leave-to[data-v-883964e0]{opacity:0;transform:translateY(-16px)}.VPLocalNav[data-v-2488c25a]{position:sticky;top:0;left:0;z-index:var(--vp-z-index-local-nav);border-bottom:1px solid var(--vp-c-gutter);padding-top:var(--vp-layout-top-height, 0px);width:100%;background-color:var(--vp-local-nav-bg-color)}.VPLocalNav.fixed[data-v-2488c25a]{position:fixed}@media (min-width: 960px){.VPLocalNav[data-v-2488c25a]{top:var(--vp-nav-height)}.VPLocalNav.has-sidebar[data-v-2488c25a]{padding-left:var(--vp-sidebar-width)}.VPLocalNav.empty[data-v-2488c25a]{display:none}}@media (min-width: 1280px){.VPLocalNav[data-v-2488c25a]{display:none}}@media (min-width: 1440px){.VPLocalNav.has-sidebar[data-v-2488c25a]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.container[data-v-2488c25a]{display:flex;justify-content:space-between;align-items:center}.menu[data-v-2488c25a]{display:flex;align-items:center;padding:12px 24px 11px;line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.menu[data-v-2488c25a]:hover{color:var(--vp-c-text-1);transition:color .25s}@media (min-width: 768px){.menu[data-v-2488c25a]{padding:0 32px}}@media (min-width: 960px){.menu[data-v-2488c25a]{display:none}}.menu-icon[data-v-2488c25a]{margin-right:8px;font-size:14px}.VPOutlineDropdown[data-v-2488c25a]{padding:12px 24px 11px}@media (min-width: 768px){.VPOutlineDropdown[data-v-2488c25a]{padding:12px 32px 11px}}.VPSwitch[data-v-b4ccac88]{position:relative;border-radius:11px;display:block;width:40px;height:22px;flex-shrink:0;border:1px solid var(--vp-input-border-color);background-color:var(--vp-input-switch-bg-color);transition:border-color .25s!important}.VPSwitch[data-v-b4ccac88]:hover{border-color:var(--vp-c-brand-1)}.check[data-v-b4ccac88]{position:absolute;top:1px;left:1px;width:18px;height:18px;border-radius:50%;background-color:var(--vp-c-neutral-inverse);box-shadow:var(--vp-shadow-1);transition:transform .25s!important}.icon[data-v-b4ccac88]{position:relative;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden}.icon[data-v-b4ccac88] [class^=vpi-]{position:absolute;top:3px;left:3px;width:12px;height:12px;color:var(--vp-c-text-2)}.dark .icon[data-v-b4ccac88] [class^=vpi-]{color:var(--vp-c-text-1);transition:opacity .25s!important}.sun[data-v-be9742d9]{opacity:1}.moon[data-v-be9742d9],.dark .sun[data-v-be9742d9]{opacity:0}.dark .moon[data-v-be9742d9]{opacity:1}.dark .VPSwitchAppearance[data-v-be9742d9] .check{transform:translate(18px)}.VPNavBarAppearance[data-v-3f90c1a5]{display:none}@media (min-width: 1280px){.VPNavBarAppearance[data-v-3f90c1a5]{display:flex;align-items:center}}.VPMenuGroup+.VPMenuLink[data-v-f51f088d]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.link[data-v-f51f088d]{display:block;border-radius:6px;padding:0 12px;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);white-space:nowrap;transition:background-color .25s,color .25s}.link[data-v-f51f088d]:hover{color:var(--vp-c-brand-1);background-color:var(--vp-c-default-soft)}.link.active[data-v-f51f088d]{color:var(--vp-c-brand-1)}.VPMenuGroup[data-v-a6b0397c]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.VPMenuGroup[data-v-a6b0397c]:first-child{margin-top:0;border-top:0;padding-top:0}.VPMenuGroup+.VPMenuGroup[data-v-a6b0397c]{margin-top:12px;border-top:1px solid var(--vp-c-divider)}.title[data-v-a6b0397c]{padding:0 12px;line-height:32px;font-size:14px;font-weight:600;color:var(--vp-c-text-2);white-space:nowrap;transition:color .25s}.VPMenu[data-v-20ed86d6]{border-radius:12px;padding:12px;min-width:128px;border:1px solid var(--vp-c-divider);background-color:var(--vp-c-bg-elv);box-shadow:var(--vp-shadow-3);transition:background-color .5s;max-height:calc(100vh - var(--vp-nav-height));overflow-y:auto}.VPMenu[data-v-20ed86d6] .group{margin:0 -12px;padding:0 12px 12px}.VPMenu[data-v-20ed86d6] .group+.group{border-top:1px solid var(--vp-c-divider);padding:11px 12px 12px}.VPMenu[data-v-20ed86d6] .group:last-child{padding-bottom:0}.VPMenu[data-v-20ed86d6] .group+.item{border-top:1px solid var(--vp-c-divider);padding:11px 16px 0}.VPMenu[data-v-20ed86d6] .item{padding:0 16px;white-space:nowrap}.VPMenu[data-v-20ed86d6] .label{flex-grow:1;line-height:28px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.VPMenu[data-v-20ed86d6] .action{padding-left:24px}.VPFlyout[data-v-af5898d3]{position:relative}.VPFlyout[data-v-af5898d3]:hover{color:var(--vp-c-brand-1);transition:color .25s}.VPFlyout:hover .text[data-v-af5898d3]{color:var(--vp-c-text-2)}.VPFlyout:hover .icon[data-v-af5898d3]{fill:var(--vp-c-text-2)}.VPFlyout.active .text[data-v-af5898d3]{color:var(--vp-c-brand-1)}.VPFlyout.active:hover .text[data-v-af5898d3]{color:var(--vp-c-brand-2)}.VPFlyout:hover .menu[data-v-af5898d3],.button[aria-expanded=true]+.menu[data-v-af5898d3]{opacity:1;visibility:visible;transform:translateY(0)}.button[aria-expanded=false]+.menu[data-v-af5898d3]{opacity:0;visibility:hidden;transform:translateY(0)}.button[data-v-af5898d3]{display:flex;align-items:center;padding:0 12px;height:var(--vp-nav-height);color:var(--vp-c-text-1);transition:color .5s}.text[data-v-af5898d3]{display:flex;align-items:center;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.option-icon[data-v-af5898d3]{margin-right:0;font-size:16px}.text-icon[data-v-af5898d3]{margin-left:4px;font-size:14px}.icon[data-v-af5898d3]{font-size:20px;transition:fill .25s}.menu[data-v-af5898d3]{position:absolute;top:calc(var(--vp-nav-height) / 2 + 20px);right:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .25s}.VPSocialLink[data-v-358b6670]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;color:var(--vp-c-text-2);transition:color .5s}.VPSocialLink[data-v-358b6670]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPSocialLink[data-v-358b6670]>svg,.VPSocialLink[data-v-358b6670]>[class^=vpi-social-]{width:20px;height:20px;fill:currentColor}.VPSocialLinks[data-v-e71e869c]{display:flex;justify-content:center}.VPNavBarExtra[data-v-f953d92f]{display:none;margin-right:-12px}@media (min-width: 768px){.VPNavBarExtra[data-v-f953d92f]{display:block}}@media (min-width: 1280px){.VPNavBarExtra[data-v-f953d92f]{display:none}}.trans-title[data-v-f953d92f]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.item.appearance[data-v-f953d92f],.item.social-links[data-v-f953d92f]{display:flex;align-items:center;padding:0 12px}.item.appearance[data-v-f953d92f]{min-width:176px}.appearance-action[data-v-f953d92f]{margin-right:-2px}.social-links-list[data-v-f953d92f]{margin:-4px -8px}.VPNavBarHamburger[data-v-6bee1efd]{display:flex;justify-content:center;align-items:center;width:48px;height:var(--vp-nav-height)}@media (min-width: 768px){.VPNavBarHamburger[data-v-6bee1efd]{display:none}}.container[data-v-6bee1efd]{position:relative;width:16px;height:14px;overflow:hidden}.VPNavBarHamburger:hover .top[data-v-6bee1efd]{top:0;left:0;transform:translate(4px)}.VPNavBarHamburger:hover .middle[data-v-6bee1efd]{top:6px;left:0;transform:translate(0)}.VPNavBarHamburger:hover .bottom[data-v-6bee1efd]{top:12px;left:0;transform:translate(8px)}.VPNavBarHamburger.active .top[data-v-6bee1efd]{top:6px;transform:translate(0) rotate(225deg)}.VPNavBarHamburger.active .middle[data-v-6bee1efd]{top:6px;transform:translate(16px)}.VPNavBarHamburger.active .bottom[data-v-6bee1efd]{top:6px;transform:translate(0) rotate(135deg)}.VPNavBarHamburger.active:hover .top[data-v-6bee1efd],.VPNavBarHamburger.active:hover .middle[data-v-6bee1efd],.VPNavBarHamburger.active:hover .bottom[data-v-6bee1efd]{background-color:var(--vp-c-text-2);transition:top .25s,background-color .25s,transform .25s}.top[data-v-6bee1efd],.middle[data-v-6bee1efd],.bottom[data-v-6bee1efd]{position:absolute;width:16px;height:2px;background-color:var(--vp-c-text-1);transition:top .25s,background-color .5s,transform .25s}.top[data-v-6bee1efd]{top:0;left:0;transform:translate(0)}.middle[data-v-6bee1efd]{top:6px;left:0;transform:translate(8px)}.bottom[data-v-6bee1efd]{top:12px;left:0;transform:translate(4px)}.VPNavBarMenuLink[data-v-08fbf4b6]{display:flex;align-items:center;padding:0 12px;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.VPNavBarMenuLink.active[data-v-08fbf4b6],.VPNavBarMenuLink[data-v-08fbf4b6]:hover{color:var(--vp-c-brand-1)}.VPNavBarMenu[data-v-afb2845e]{display:none}@media (min-width: 768px){.VPNavBarMenu[data-v-afb2845e]{display:flex}}/*! @docsearch/css 3.6.1 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */:root{--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 hsla(0,0%,100%,.5),0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 1px 0 rgba(30,35,90,.4);--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12)}html[data-theme=dark]{--docsearch-text-color:#f5f6f7;--docsearch-container-background:rgba(9,10,17,.8);--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,.3);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 1px 1px 0 rgba(3,4,9,.30196078431372547);--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 rgba(73,76,106,.5),0 -4px 8px 0 rgba(0,0,0,.2);--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;margin:0 0 0 16px;padding:0 8px;-webkit-user-select:none;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:none}.DocSearch-Button-Container{align-items:center;display:flex}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;position:relative;padding:0 0 2px;border:0;top:-1px;width:20px}.DocSearch-Button-Key--pressed{transform:translate3d(0,1px,0);box-shadow:var(--docsearch-key-pressed-shadow)}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder{display:none}}.DocSearch--active{overflow:hidden!important}.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Container a{text-decoration:none}.DocSearch-Link{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:none;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator{display:none}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}}.DocSearch-Reset{animation:fade-in .1s ease-in forwards;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Cancel{display:none}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:transparent}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Help{font-size:.9em;margin:0;-webkit-user-select:none;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{color:var(--docsearch-muted-color);display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--deleting{transition:none}}.DocSearch-Hit--deleting{opacity:0;transition:all .25s linear}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--favoriting{transition:none}}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:all .25s linear;transition-delay:.25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;stroke-width:var(--docsearch-icon-stroke-width);width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit[aria-selected=true] mark{text-decoration:underline}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color);stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:background-color .1s ease-in}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{transition:none}}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:none}}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:none;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li{align-items:center;display:flex}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:2px;box-shadow:var(--docsearch-key-shadow);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;color:var(--docsearch-muted-color);border:0;width:20px}.DocSearch-VisuallyHiddenForAccessibility{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media (max-width:768px){:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Dropdown{max-height:calc(var(--docsearch-vh, 1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Cancel{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:none;overflow:hidden;padding:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[class*=DocSearch]{--docsearch-primary-color: var(--vp-c-brand-1);--docsearch-highlight-color: var(--docsearch-primary-color);--docsearch-text-color: var(--vp-c-text-1);--docsearch-muted-color: var(--vp-c-text-2);--docsearch-searchbox-shadow: none;--docsearch-searchbox-background: transparent;--docsearch-searchbox-focus-background: transparent;--docsearch-key-gradient: transparent;--docsearch-key-shadow: none;--docsearch-modal-background: var(--vp-c-bg-soft);--docsearch-footer-background: var(--vp-c-bg)}.dark [class*=DocSearch]{--docsearch-modal-shadow: none;--docsearch-footer-shadow: none;--docsearch-logo-color: var(--vp-c-text-2);--docsearch-hit-background: var(--vp-c-default-soft);--docsearch-hit-color: var(--vp-c-text-2);--docsearch-hit-shadow: none}.DocSearch-Button{display:flex;justify-content:center;align-items:center;margin:0;padding:0;width:48px;height:55px;background:transparent;transition:border-color .25s}.DocSearch-Button:hover{background:transparent}.DocSearch-Button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.DocSearch-Button-Key--pressed{transform:none;box-shadow:none}.DocSearch-Button:focus:not(:focus-visible){outline:none!important}@media (min-width: 768px){.DocSearch-Button{justify-content:flex-start;border:1px solid transparent;border-radius:8px;padding:0 10px 0 12px;width:100%;height:40px;background-color:var(--vp-c-bg-alt)}.DocSearch-Button:hover{border-color:var(--vp-c-brand-1);background:var(--vp-c-bg-alt)}}.DocSearch-Button .DocSearch-Button-Container{display:flex;align-items:center}.DocSearch-Button .DocSearch-Search-Icon{position:relative;width:16px;height:16px;color:var(--vp-c-text-1);fill:currentColor;transition:color .5s}.DocSearch-Button:hover .DocSearch-Search-Icon{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Search-Icon{top:1px;margin-right:8px;width:14px;height:14px;color:var(--vp-c-text-2)}}.DocSearch-Button .DocSearch-Button-Placeholder{display:none;margin-top:2px;padding:0 16px 0 0;font-size:13px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.DocSearch-Button:hover .DocSearch-Button-Placeholder{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Placeholder{display:inline-block}}.DocSearch-Button .DocSearch-Button-Keys{direction:ltr;display:none;min-width:auto}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Keys{display:flex;align-items:center}}.DocSearch-Button .DocSearch-Button-Key{display:block;margin:2px 0 0;border:1px solid var(--vp-c-divider);border-right:none;border-radius:4px 0 0 4px;padding-left:6px;min-width:0;width:auto;height:22px;line-height:22px;font-family:var(--vp-font-family-base);font-size:12px;font-weight:500;transition:color .5s,border-color .5s}.DocSearch-Button .DocSearch-Button-Key+.DocSearch-Button-Key{border-right:1px solid var(--vp-c-divider);border-left:none;border-radius:0 4px 4px 0;padding-left:2px;padding-right:6px}.DocSearch-Button .DocSearch-Button-Key:first-child{font-size:0!important}.DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"Ctrl";font-size:12px;letter-spacing:normal;color:var(--docsearch-muted-color)}.mac .DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"⌘"}.DocSearch-Button .DocSearch-Button-Key:first-child>*{display:none}.DocSearch-Search-Icon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke-width='1.6' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' d='m14.386 14.386 4.088 4.088-4.088-4.088A7.533 7.533 0 1 1 3.733 3.733a7.533 7.533 0 0 1 10.653 10.653z'/%3E%3C/svg%3E")}.VPNavBarSearch{display:flex;align-items:center}@media (min-width: 768px){.VPNavBarSearch{flex-grow:1;padding-left:24px}}@media (min-width: 960px){.VPNavBarSearch{padding-left:32px}}.dark .DocSearch-Footer{border-top:1px solid var(--vp-c-divider)}.DocSearch-Form{border:1px solid var(--vp-c-brand-1);background-color:var(--vp-c-white)}.dark .DocSearch-Form{background-color:var(--vp-c-default-soft)}.DocSearch-Screen-Icon>svg{margin:auto}.VPNavBarSocialLinks[data-v-ef6192dc]{display:none}@media (min-width: 1280px){.VPNavBarSocialLinks[data-v-ef6192dc]{display:flex;align-items:center}}.title[data-v-0ad69264]{display:flex;align-items:center;border-bottom:1px solid transparent;width:100%;height:var(--vp-nav-height);font-size:16px;font-weight:600;color:var(--vp-c-text-1);transition:opacity .25s}@media (min-width: 960px){.title[data-v-0ad69264]{flex-shrink:0}.VPNavBarTitle.has-sidebar .title[data-v-0ad69264]{border-bottom-color:var(--vp-c-divider)}}[data-v-0ad69264] .logo{margin-right:8px;height:var(--vp-nav-logo-height)}.VPNavBarTranslations[data-v-acee064b]{display:none}@media (min-width: 1280px){.VPNavBarTranslations[data-v-acee064b]{display:flex;align-items:center}}.title[data-v-acee064b]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.VPNavBar[data-v-9fd4d1dd]{position:relative;height:var(--vp-nav-height);pointer-events:none;white-space:nowrap;transition:background-color .25s}.VPNavBar.screen-open[data-v-9fd4d1dd]{transition:none;background-color:var(--vp-nav-bg-color);border-bottom:1px solid var(--vp-c-divider)}.VPNavBar[data-v-9fd4d1dd]:not(.home){background-color:var(--vp-nav-bg-color)}@media (min-width: 960px){.VPNavBar[data-v-9fd4d1dd]:not(.home){background-color:transparent}.VPNavBar[data-v-9fd4d1dd]:not(.has-sidebar):not(.home.top){background-color:var(--vp-nav-bg-color)}}.wrapper[data-v-9fd4d1dd]{padding:0 8px 0 24px}@media (min-width: 768px){.wrapper[data-v-9fd4d1dd]{padding:0 32px}}@media (min-width: 960px){.VPNavBar.has-sidebar .wrapper[data-v-9fd4d1dd]{padding:0}}.container[data-v-9fd4d1dd]{display:flex;justify-content:space-between;margin:0 auto;max-width:calc(var(--vp-layout-max-width) - 64px);height:var(--vp-nav-height);pointer-events:none}.container>.title[data-v-9fd4d1dd],.container>.content[data-v-9fd4d1dd]{pointer-events:none}.container[data-v-9fd4d1dd] *{pointer-events:auto}@media (min-width: 960px){.VPNavBar.has-sidebar .container[data-v-9fd4d1dd]{max-width:100%}}.title[data-v-9fd4d1dd]{flex-shrink:0;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .title[data-v-9fd4d1dd]{position:absolute;top:0;left:0;z-index:2;padding:0 32px;width:var(--vp-sidebar-width);height:var(--vp-nav-height);background-color:transparent}}@media (min-width: 1440px){.VPNavBar.has-sidebar .title[data-v-9fd4d1dd]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}.content[data-v-9fd4d1dd]{flex-grow:1}@media (min-width: 960px){.VPNavBar.has-sidebar .content[data-v-9fd4d1dd]{position:relative;z-index:1;padding-right:32px;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .content[data-v-9fd4d1dd]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.content-body[data-v-9fd4d1dd]{display:flex;justify-content:flex-end;align-items:center;height:var(--vp-nav-height);transition:background-color .5s}@media (min-width: 960px){.VPNavBar:not(.home.top) .content-body[data-v-9fd4d1dd]{position:relative;background-color:var(--vp-nav-bg-color)}.VPNavBar:not(.has-sidebar):not(.home.top) .content-body[data-v-9fd4d1dd]{background-color:transparent}}@media (max-width: 767px){.content-body[data-v-9fd4d1dd]{column-gap:.5rem}}.menu+.translations[data-v-9fd4d1dd]:before,.menu+.appearance[data-v-9fd4d1dd]:before,.menu+.social-links[data-v-9fd4d1dd]:before,.translations+.appearance[data-v-9fd4d1dd]:before,.appearance+.social-links[data-v-9fd4d1dd]:before{margin-right:8px;margin-left:8px;width:1px;height:24px;background-color:var(--vp-c-divider);content:""}.menu+.appearance[data-v-9fd4d1dd]:before,.translations+.appearance[data-v-9fd4d1dd]:before{margin-right:16px}.appearance+.social-links[data-v-9fd4d1dd]:before{margin-left:16px}.social-links[data-v-9fd4d1dd]{margin-right:-8px}.divider[data-v-9fd4d1dd]{width:100%;height:1px}@media (min-width: 960px){.VPNavBar.has-sidebar .divider[data-v-9fd4d1dd]{padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .divider[data-v-9fd4d1dd]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.divider-line[data-v-9fd4d1dd]{width:100%;height:1px;transition:background-color .5s}.VPNavBar:not(.home) .divider-line[data-v-9fd4d1dd]{background-color:var(--vp-c-gutter)}@media (min-width: 960px){.VPNavBar:not(.home.top) .divider-line[data-v-9fd4d1dd]{background-color:var(--vp-c-gutter)}.VPNavBar:not(.has-sidebar):not(.home.top) .divider[data-v-9fd4d1dd]{background-color:var(--vp-c-gutter)}}.VPNavScreenAppearance[data-v-a3e2920d]{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 14px 12px 16px;background-color:var(--vp-c-bg-soft)}.text[data-v-a3e2920d]{line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.VPNavScreenMenuLink[data-v-1a934d60]{display:block;border-bottom:1px solid var(--vp-c-divider);padding:12px 0 11px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:border-color .25s,color .25s}.VPNavScreenMenuLink[data-v-1a934d60]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupLink[data-v-aea78dd1]{display:block;margin-left:12px;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-1);transition:color .25s}.VPNavScreenMenuGroupLink[data-v-aea78dd1]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupSection[data-v-f60dbfa7]{display:block}.title[data-v-f60dbfa7]{line-height:32px;font-size:13px;font-weight:700;color:var(--vp-c-text-2);transition:color .25s}.VPNavScreenMenuGroup[data-v-d99bfeec]{border-bottom:1px solid var(--vp-c-divider);height:48px;overflow:hidden;transition:border-color .5s}.VPNavScreenMenuGroup .items[data-v-d99bfeec]{visibility:hidden}.VPNavScreenMenuGroup.open .items[data-v-d99bfeec]{visibility:visible}.VPNavScreenMenuGroup.open[data-v-d99bfeec]{padding-bottom:10px;height:auto}.VPNavScreenMenuGroup.open .button[data-v-d99bfeec]{padding-bottom:6px;color:var(--vp-c-brand-1)}.VPNavScreenMenuGroup.open .button-icon[data-v-d99bfeec]{transform:rotate(45deg)}.button[data-v-d99bfeec]{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 11px 0;width:100%;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.button[data-v-d99bfeec]:hover{color:var(--vp-c-brand-1)}.button-icon[data-v-d99bfeec]{transition:transform .25s}.group[data-v-d99bfeec]:first-child{padding-top:0}.group+.group[data-v-d99bfeec],.group+.item[data-v-d99bfeec]{padding-top:4px}.VPNavScreenTranslations[data-v-516e4bc3]{height:24px;overflow:hidden}.VPNavScreenTranslations.open[data-v-516e4bc3]{height:auto}.title[data-v-516e4bc3]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-text-1)}.icon[data-v-516e4bc3]{font-size:16px}.icon.lang[data-v-516e4bc3]{margin-right:8px}.icon.chevron[data-v-516e4bc3]{margin-left:4px}.list[data-v-516e4bc3]{padding:4px 0 0 24px}.link[data-v-516e4bc3]{line-height:32px;font-size:13px;color:var(--vp-c-text-1)}.VPNavScreen[data-v-2dd6d0c7]{position:fixed;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px));right:0;bottom:0;left:0;padding:0 32px;width:100%;background-color:var(--vp-nav-screen-bg-color);overflow-y:auto;transition:background-color .25s;pointer-events:auto}.VPNavScreen.fade-enter-active[data-v-2dd6d0c7],.VPNavScreen.fade-leave-active[data-v-2dd6d0c7]{transition:opacity .25s}.VPNavScreen.fade-enter-active .container[data-v-2dd6d0c7],.VPNavScreen.fade-leave-active .container[data-v-2dd6d0c7]{transition:transform .25s ease}.VPNavScreen.fade-enter-from[data-v-2dd6d0c7],.VPNavScreen.fade-leave-to[data-v-2dd6d0c7]{opacity:0}.VPNavScreen.fade-enter-from .container[data-v-2dd6d0c7],.VPNavScreen.fade-leave-to .container[data-v-2dd6d0c7]{transform:translateY(-8px)}@media (min-width: 768px){.VPNavScreen[data-v-2dd6d0c7]{display:none}}.container[data-v-2dd6d0c7]{margin:0 auto;padding:24px 0 96px;max-width:288px}.menu+.translations[data-v-2dd6d0c7],.menu+.appearance[data-v-2dd6d0c7],.translations+.appearance[data-v-2dd6d0c7]{margin-top:24px}.menu+.social-links[data-v-2dd6d0c7]{margin-top:16px}.appearance+.social-links[data-v-2dd6d0c7]{margin-top:16px}.VPNav[data-v-7ad780c2]{position:relative;top:var(--vp-layout-top-height, 0px);left:0;z-index:var(--vp-z-index-nav);width:100%;pointer-events:none;transition:background-color .5s}@media (min-width: 960px){.VPNav[data-v-7ad780c2]{position:fixed}}.VPSidebarItem.level-0[data-v-edd2eed8]{padding-bottom:24px}.VPSidebarItem.collapsed.level-0[data-v-edd2eed8]{padding-bottom:10px}.item[data-v-edd2eed8]{position:relative;display:flex;width:100%}.VPSidebarItem.collapsible>.item[data-v-edd2eed8]{cursor:pointer}.indicator[data-v-edd2eed8]{position:absolute;top:6px;bottom:6px;left:-17px;width:2px;border-radius:2px;transition:background-color .25s}.VPSidebarItem.level-2.is-active>.item>.indicator[data-v-edd2eed8],.VPSidebarItem.level-3.is-active>.item>.indicator[data-v-edd2eed8],.VPSidebarItem.level-4.is-active>.item>.indicator[data-v-edd2eed8],.VPSidebarItem.level-5.is-active>.item>.indicator[data-v-edd2eed8]{background-color:var(--vp-c-brand-1)}.link[data-v-edd2eed8]{display:flex;align-items:center;flex-grow:1}.text[data-v-edd2eed8]{flex-grow:1;padding:4px 0;line-height:24px;font-size:14px;transition:color .25s}.VPSidebarItem.level-0 .text[data-v-edd2eed8]{font-weight:700;color:var(--vp-c-text-1)}.VPSidebarItem.level-1 .text[data-v-edd2eed8],.VPSidebarItem.level-2 .text[data-v-edd2eed8],.VPSidebarItem.level-3 .text[data-v-edd2eed8],.VPSidebarItem.level-4 .text[data-v-edd2eed8],.VPSidebarItem.level-5 .text[data-v-edd2eed8]{font-weight:500;color:var(--vp-c-text-2)}.VPSidebarItem.level-0.is-link>.item>.link:hover .text[data-v-edd2eed8],.VPSidebarItem.level-1.is-link>.item>.link:hover .text[data-v-edd2eed8],.VPSidebarItem.level-2.is-link>.item>.link:hover .text[data-v-edd2eed8],.VPSidebarItem.level-3.is-link>.item>.link:hover .text[data-v-edd2eed8],.VPSidebarItem.level-4.is-link>.item>.link:hover .text[data-v-edd2eed8],.VPSidebarItem.level-5.is-link>.item>.link:hover .text[data-v-edd2eed8]{color:var(--vp-c-brand-1)}.VPSidebarItem.level-0.has-active>.item>.text[data-v-edd2eed8],.VPSidebarItem.level-1.has-active>.item>.text[data-v-edd2eed8],.VPSidebarItem.level-2.has-active>.item>.text[data-v-edd2eed8],.VPSidebarItem.level-3.has-active>.item>.text[data-v-edd2eed8],.VPSidebarItem.level-4.has-active>.item>.text[data-v-edd2eed8],.VPSidebarItem.level-5.has-active>.item>.text[data-v-edd2eed8],.VPSidebarItem.level-0.has-active>.item>.link>.text[data-v-edd2eed8],.VPSidebarItem.level-1.has-active>.item>.link>.text[data-v-edd2eed8],.VPSidebarItem.level-2.has-active>.item>.link>.text[data-v-edd2eed8],.VPSidebarItem.level-3.has-active>.item>.link>.text[data-v-edd2eed8],.VPSidebarItem.level-4.has-active>.item>.link>.text[data-v-edd2eed8],.VPSidebarItem.level-5.has-active>.item>.link>.text[data-v-edd2eed8]{color:var(--vp-c-text-1)}.VPSidebarItem.level-0.is-active>.item .link>.text[data-v-edd2eed8],.VPSidebarItem.level-1.is-active>.item .link>.text[data-v-edd2eed8],.VPSidebarItem.level-2.is-active>.item .link>.text[data-v-edd2eed8],.VPSidebarItem.level-3.is-active>.item .link>.text[data-v-edd2eed8],.VPSidebarItem.level-4.is-active>.item .link>.text[data-v-edd2eed8],.VPSidebarItem.level-5.is-active>.item .link>.text[data-v-edd2eed8]{color:var(--vp-c-brand-1)}.caret[data-v-edd2eed8]{display:flex;justify-content:center;align-items:center;margin-right:-7px;width:32px;height:32px;color:var(--vp-c-text-3);cursor:pointer;transition:color .25s;flex-shrink:0}.item:hover .caret[data-v-edd2eed8]{color:var(--vp-c-text-2)}.item:hover .caret[data-v-edd2eed8]:hover{color:var(--vp-c-text-1)}.caret-icon[data-v-edd2eed8]{font-size:18px;transform:rotate(90deg);transition:transform .25s}.VPSidebarItem.collapsed .caret-icon[data-v-edd2eed8]{transform:rotate(0)}.VPSidebarItem.level-1 .items[data-v-edd2eed8],.VPSidebarItem.level-2 .items[data-v-edd2eed8],.VPSidebarItem.level-3 .items[data-v-edd2eed8],.VPSidebarItem.level-4 .items[data-v-edd2eed8],.VPSidebarItem.level-5 .items[data-v-edd2eed8]{border-left:1px solid var(--vp-c-divider);padding-left:16px}.VPSidebarItem.collapsed .items[data-v-edd2eed8]{display:none}.no-transition[data-v-51288d80] .caret-icon{transition:none}.group+.group[data-v-51288d80]{border-top:1px solid var(--vp-c-divider);padding-top:10px}@media (min-width: 960px){.group[data-v-51288d80]{padding-top:10px;width:calc(var(--vp-sidebar-width) - 64px)}}.VPSidebar[data-v-42c4c606]{position:fixed;top:var(--vp-layout-top-height, 0px);bottom:0;left:0;z-index:var(--vp-z-index-sidebar);padding:32px 32px 96px;width:calc(100vw - 64px);max-width:320px;background-color:var(--vp-sidebar-bg-color);opacity:0;box-shadow:var(--vp-c-shadow-3);overflow-x:hidden;overflow-y:auto;transform:translate(-100%);transition:opacity .5s,transform .25s ease;overscroll-behavior:contain}.VPSidebar.open[data-v-42c4c606]{opacity:1;visibility:visible;transform:translate(0);transition:opacity .25s,transform .5s cubic-bezier(.19,1,.22,1)}.dark .VPSidebar[data-v-42c4c606]{box-shadow:var(--vp-shadow-1)}@media (min-width: 960px){.VPSidebar[data-v-42c4c606]{padding-top:var(--vp-nav-height);width:var(--vp-sidebar-width);max-width:100%;background-color:var(--vp-sidebar-bg-color);opacity:1;visibility:visible;box-shadow:none;transform:translate(0)}}@media (min-width: 1440px){.VPSidebar[data-v-42c4c606]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}@media (min-width: 960px){.curtain[data-v-42c4c606]{position:sticky;top:-64px;left:0;z-index:1;margin-top:calc(var(--vp-nav-height) * -1);margin-right:-32px;margin-left:-32px;height:var(--vp-nav-height);background-color:var(--vp-sidebar-bg-color)}}.nav[data-v-42c4c606]{outline:0}.VPSkipLink[data-v-c8291ffa]{top:8px;left:8px;padding:8px 16px;z-index:999;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:var(--vp-c-brand-1);box-shadow:var(--vp-shadow-3);background-color:var(--vp-c-bg)}.VPSkipLink[data-v-c8291ffa]:focus{height:auto;width:auto;clip:auto;clip-path:none}@media (min-width: 1280px){.VPSkipLink[data-v-c8291ffa]{top:14px;left:16px}}.Layout[data-v-d8b57b2d]{display:flex;flex-direction:column;min-height:100vh}.VPHomeSponsors[data-v-3dc26e1d]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPHomeSponsors[data-v-3dc26e1d]{margin:96px 0}@media (min-width: 768px){.VPHomeSponsors[data-v-3dc26e1d]{margin:128px 0}}.VPHomeSponsors[data-v-3dc26e1d]{padding:0 24px}@media (min-width: 768px){.VPHomeSponsors[data-v-3dc26e1d]{padding:0 48px}}@media (min-width: 960px){.VPHomeSponsors[data-v-3dc26e1d]{padding:0 64px}}.container[data-v-3dc26e1d]{margin:0 auto;max-width:1152px}.love[data-v-3dc26e1d]{margin:0 auto;width:fit-content;font-size:28px;color:var(--vp-c-text-3)}.icon[data-v-3dc26e1d]{display:inline-block}.message[data-v-3dc26e1d]{margin:0 auto;padding-top:10px;max-width:320px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.sponsors[data-v-3dc26e1d]{padding-top:32px}.action[data-v-3dc26e1d]{padding-top:40px;text-align:center}.VPTeamPage[data-v-a5329171]{margin:96px 0}@media (min-width: 768px){.VPTeamPage[data-v-a5329171]{margin:128px 0}}.VPHome .VPTeamPageTitle[data-v-a5329171-s]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPTeamPageSection+.VPTeamPageSection[data-v-a5329171-s],.VPTeamMembers+.VPTeamPageSection[data-v-a5329171-s]{margin-top:64px}.VPTeamMembers+.VPTeamMembers[data-v-a5329171-s]{margin-top:24px}@media (min-width: 768px){.VPTeamPageTitle+.VPTeamPageSection[data-v-a5329171-s]{margin-top:16px}.VPTeamPageSection+.VPTeamPageSection[data-v-a5329171-s],.VPTeamMembers+.VPTeamPageSection[data-v-a5329171-s]{margin-top:96px}}.VPTeamMembers[data-v-a5329171-s]{padding:0 24px}@media (min-width: 768px){.VPTeamMembers[data-v-a5329171-s]{padding:0 48px}}@media (min-width: 960px){.VPTeamMembers[data-v-a5329171-s]{padding:0 64px}}.VPTeamPageTitle[data-v-46c5e327]{padding:48px 32px;text-align:center}@media (min-width: 768px){.VPTeamPageTitle[data-v-46c5e327]{padding:64px 48px 48px}}@media (min-width: 960px){.VPTeamPageTitle[data-v-46c5e327]{padding:80px 64px 48px}}.title[data-v-46c5e327]{letter-spacing:0;line-height:44px;font-size:36px;font-weight:500}@media (min-width: 768px){.title[data-v-46c5e327]{letter-spacing:-.5px;line-height:56px;font-size:48px}}.lead[data-v-46c5e327]{margin:0 auto;max-width:512px;padding-top:12px;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 768px){.lead[data-v-46c5e327]{max-width:592px;letter-spacing:.15px;line-height:28px;font-size:20px}}.VPTeamPageSection[data-v-3bf2e850]{padding:0 32px}@media (min-width: 768px){.VPTeamPageSection[data-v-3bf2e850]{padding:0 48px}}@media (min-width: 960px){.VPTeamPageSection[data-v-3bf2e850]{padding:0 64px}}.title[data-v-3bf2e850]{position:relative;margin:0 auto;max-width:1152px;text-align:center;color:var(--vp-c-text-2)}.title-line[data-v-3bf2e850]{position:absolute;top:16px;left:0;width:100%;height:1px;background-color:var(--vp-c-divider)}.title-text[data-v-3bf2e850]{position:relative;display:inline-block;padding:0 24px;letter-spacing:0;line-height:32px;font-size:20px;font-weight:500;background-color:var(--vp-c-bg)}.lead[data-v-3bf2e850]{margin:0 auto;max-width:480px;padding-top:12px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.members[data-v-3bf2e850]{padding-top:40px}.VPTeamMembersItem[data-v-acff304e]{display:flex;flex-direction:column;gap:2px;border-radius:12px;width:100%;height:100%;overflow:hidden}.VPTeamMembersItem.small .profile[data-v-acff304e]{padding:32px}.VPTeamMembersItem.small .data[data-v-acff304e]{padding-top:20px}.VPTeamMembersItem.small .avatar[data-v-acff304e]{width:64px;height:64px}.VPTeamMembersItem.small .name[data-v-acff304e]{line-height:24px;font-size:16px}.VPTeamMembersItem.small .affiliation[data-v-acff304e]{padding-top:4px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .desc[data-v-acff304e]{padding-top:12px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .links[data-v-acff304e]{margin:0 -16px -20px;padding:10px 0 0}.VPTeamMembersItem.medium .profile[data-v-acff304e]{padding:48px 32px}.VPTeamMembersItem.medium .data[data-v-acff304e]{padding-top:24px;text-align:center}.VPTeamMembersItem.medium .avatar[data-v-acff304e]{width:96px;height:96px}.VPTeamMembersItem.medium .name[data-v-acff304e]{letter-spacing:.15px;line-height:28px;font-size:20px}.VPTeamMembersItem.medium .affiliation[data-v-acff304e]{padding-top:4px;font-size:16px}.VPTeamMembersItem.medium .desc[data-v-acff304e]{padding-top:16px;max-width:288px;font-size:16px}.VPTeamMembersItem.medium .links[data-v-acff304e]{margin:0 -16px -12px;padding:16px 12px 0}.profile[data-v-acff304e]{flex-grow:1;background-color:var(--vp-c-bg-soft)}.data[data-v-acff304e]{text-align:center}.avatar[data-v-acff304e]{position:relative;flex-shrink:0;margin:0 auto;border-radius:50%;box-shadow:var(--vp-shadow-3)}.avatar-img[data-v-acff304e]{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;object-fit:cover}.name[data-v-acff304e]{margin:0;font-weight:600}.affiliation[data-v-acff304e]{margin:0;font-weight:500;color:var(--vp-c-text-2)}.org.link[data-v-acff304e]{color:var(--vp-c-text-2);transition:color .25s}.org.link[data-v-acff304e]:hover{color:var(--vp-c-brand-1)}.desc[data-v-acff304e]{margin:0 auto}.desc[data-v-acff304e] a{font-weight:500;color:var(--vp-c-brand-1);text-decoration-style:dotted;transition:color .25s}.links[data-v-acff304e]{display:flex;justify-content:center;height:56px}.sp-link[data-v-acff304e]{display:flex;justify-content:center;align-items:center;text-align:center;padding:16px;font-size:14px;font-weight:500;color:var(--vp-c-sponsor);background-color:var(--vp-c-bg-soft);transition:color .25s,background-color .25s}.sp .sp-link.link[data-v-acff304e]:hover,.sp .sp-link.link[data-v-acff304e]:focus{outline:none;color:var(--vp-c-white);background-color:var(--vp-c-sponsor)}.sp-icon[data-v-acff304e]{margin-right:8px;font-size:16px}.VPTeamMembers.small .container[data-v-bf782009]{grid-template-columns:repeat(auto-fit,minmax(224px,1fr))}.VPTeamMembers.small.count-1 .container[data-v-bf782009]{max-width:276px}.VPTeamMembers.small.count-2 .container[data-v-bf782009]{max-width:576px}.VPTeamMembers.small.count-3 .container[data-v-bf782009]{max-width:876px}.VPTeamMembers.medium .container[data-v-bf782009]{grid-template-columns:repeat(auto-fit,minmax(256px,1fr))}@media (min-width: 375px){.VPTeamMembers.medium .container[data-v-bf782009]{grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}}.VPTeamMembers.medium.count-1 .container[data-v-bf782009]{max-width:368px}.VPTeamMembers.medium.count-2 .container[data-v-bf782009]{max-width:760px}.container[data-v-bf782009]{display:grid;gap:24px;margin:0 auto;max-width:1152px}.home-comment-container{position:relative;margin-top:64px;padding:0 24px}@media (min-width: 640px){.home-comment-container{padding:0 48px}}@media (min-width: 960px){.home-comment-container{padding:0 64px}}.home-comment-container .comment-container{margin:0 auto;max-width:1152px}.twikoo .el-loading-spinner .circular{margin-left:auto;margin-right:auto} diff --git a/assets/update.md.DCykfFwB.js b/assets/update.md.DCykfFwB.js new file mode 100644 index 000000000..b6c08222e --- /dev/null +++ b/assets/update.md.DCykfFwB.js @@ -0,0 +1 @@ +import{_ as e,c as a,o,a5 as t}from"./chunks/framework.CVd-vdtw.js";const g=JSON.parse('{"title":"版本更新","description":"","frontmatter":{},"headers":[],"relativePath":"update.md","filePath":"update.md","lastUpdated":null}'),i={name:"update.md"},l=t('

版本更新

不同部署方式的更新方式也不同,请对号入座。更新部署成功后,请不要忘记同时更新前端的 Twikoo CDN 地址中的 x.x.x 数字版本号,使之与云函数版本号相同,然后部署网站。

针对腾讯云一键部署的更新方式

登录环境-我的应用,输入

  • 来源地址:https://github.com/twikoojs/twikoo/tree/main
  • 部署分支:main

应用目录无需填写,点击“确定”,部署完成。

针对腾讯云手动部署的更新方式

登录环境-云函数,点击 twikoo,点击函数代码,打开 package.json 文件,将 "twikoo-func": "x.x.x" 其中的版本号修改为最新版本号,点击“保存并安装依赖”即可。

提示

如果您的云函数是 1.0.0 之前的版本,因为 1.0.0 版本修改了部署步骤,请先参考手动部署,从第 5 步开始,重新创建云函数,再按照此步骤更新。

如果升级后出现无法读取评论列表,云函数报错,请在函数编辑页面,删除 node_modules 目录(删除需要半分钟左右,请耐心等待删除完成),再点击保存并安装依赖。如果仍然不能解决,请删除并重新创建 Twikoo 云函数。

针对腾讯云命令行部署的更新方式

进入 Twikoo 源码目录,执行以下命令更新现有的云函数

sh
yarn deploy -e 您的环境id

针对 Vercel 部署的更新方式

  1. 进入 Vercel 仪表板 - twikoo - Settings - Git
  2. 点击 Connected Git Repository 下方的仓库地址
  3. 打开 package.json,点击编辑
  4. "twikoo-vercel": "latest" 其中的 latest 修改为最新版本号。点击 Commit changes
  5. 部署会自动触发,可以回到 Vercel 仪表板,查看部署状态

针对 Railway 和 Zeabur 部署的更新方式

  1. 登录 Github,找到部署时 fork 到自己账号下的名为 twikoo-zeabur 的仓库
  2. 打开 package.json,点击编辑
  3. "tkserver": "latest" 其中的 latest 修改为最新版本号。点击 Commit changes
  4. 部署会自动触发

针对 Netlify 部署的更新方式

  1. 登录 Github,找到部署时 fork 到自己账号下的名为 twikoo-netlify 的仓库
  2. 打开 package.json,点击编辑
  3. "twikoo-vercel": "latest" 其中的 latest 修改为最新版本号。点击 Commit changes
  4. 部署会自动触发

针对 Hugging Face 部署的更新方式

  1. 登录 Hugging Face,找到部署的 Space,点击上方 Settings,往下滚动找到并点击 Factory rebuild

针对私有部署的更新方式

  1. 停止旧版本 kill $(ps -ef | grep tkserver | grep -v 'grep' | awk '{print $2}')
  2. 拉取新版本 npm i -g tkserver@latest
  3. 启动新版本 nohup tkserver >> tkserver.log 2>&1 &

针对私有部署 (Docker) 的更新方式

  1. 拉取新版本 docker pull imaegoo/twikoo
  2. 停止旧版本容器 docker stop twikoo
  3. 删除旧版本容器 docker rm twikoo
  4. 启动新版本容器

自动更新

考虑到可用性和安全性问题,Twikoo 没有实现自动更新,也没有计划实现自动更新。如果您希望实现自动更新,可以参考 MHuiG 基于 Github 工作流的 twikoo-update 的实现方式。

',26),r=[l];function c(s,d,n,h,u,p){return o(),a("div",null,r)}const b=e(i,[["render",c]]);export{g as __pageData,b as default}; diff --git a/assets/update.md.DCykfFwB.lean.js b/assets/update.md.DCykfFwB.lean.js new file mode 100644 index 000000000..ce524da73 --- /dev/null +++ b/assets/update.md.DCykfFwB.lean.js @@ -0,0 +1 @@ +import{_ as e,c as a,o,a5 as t}from"./chunks/framework.CVd-vdtw.js";const g=JSON.parse('{"title":"版本更新","description":"","frontmatter":{},"headers":[],"relativePath":"update.md","filePath":"update.md","lastUpdated":null}'),i={name:"update.md"},l=t("",26),r=[l];function c(s,d,n,h,u,p){return o(),a("div",null,r)}const b=e(i,[["render",c]]);export{g as __pageData,b as default}; diff --git a/assets/vercel-1.Czytea8u.png b/assets/vercel-1.Czytea8u.png new file mode 100644 index 000000000..7d952918f Binary files /dev/null and b/assets/vercel-1.Czytea8u.png differ diff --git a/backend.html b/backend.html new file mode 100644 index 000000000..923561812 --- /dev/null +++ b/backend.html @@ -0,0 +1,42 @@ + + + + + + 云函数部署 | Twikoo 文档 + + + + + + + + + + + + + + + +
Skip to content

云函数部署

部署方式
推荐度描述
腾讯云一键部署★☆☆☆☆虽然方便,但是仅支持按量计费环境——也就是说,一键部署的环境,当免费资源用尽后,将会产生费用。且按量计费环境无法切换为包年包月环境。免费额度数据库读操作数只有 500 次 / 天,无法支撑 Twikoo 的运行需求
腾讯云手动部署★★☆☆☆手动部署到腾讯云云开发环境,在中国大陆访问速度较快。需要付费购买环境才能部署。
腾讯云命令行部署★☆☆☆☆仅针对有 Node.js 经验的开发者。
Vercel 部署★★★☆☆适用于想要免费部署的用户,在中国大陆访问速度较慢甚至无法访问,绑定自己的域名可以提高访问速度。
Railway 部署★★☆☆☆有免费额度但不足以支持一个月连续运行,部署简单,适合全球访问。
Zeabur 部署★☆☆☆☆需要绑定支付宝或信用卡,部署简单,适合中国大陆访问,免费计划环境随时可能会被删除。
Netlify 部署★★★★☆有充足的免费额度,中国大陆访问速度不错。
Hugging Face 部署★★★★☆免费,中国大陆访问速度不错。允许通过 Cloudflare Tunnels 自定义域名。
AWS Lambda 部署★★★☆☆全球最大的云平台,适合已经使用 AWS 全家桶的用户。
Cloudflare workers 部署★★☆☆☆部署需使用命令行,冷启动时间较短,功能有部分限制。
私有部署★★☆☆☆适用于有服务器的用户,需要自行申请 HTTPS 证书。
私有部署 (Docker)★★★☆☆适用于有服务器的用户,需要自行申请 HTTPS 证书。

腾讯云一键部署

  1. 点击以下按钮将 Twikoo 一键部署到云开发
    部署到云开发
  2. 进入环境-登录授权,启用“匿名登录”
  3. 进入环境-安全配置,将网站域名添加到“WEB安全域名”

腾讯云手动部署

如果您打算部署到一个现有的云开发环境,请直接从第 3 步开始。

  1. 进入云开发CloudBase活动页面,滚动到“新用户专享”部分,选择适合的套餐,点击“立即购买”,按提示创建好环境。

提示

  • 推荐创建上海环境。如选择广州环境,需要在 twikoo.init() 时额外指定环境 region: "ap-guangzhou"
  • 环境名称自由填写
  • 推荐选择计费方式包年包月,套餐版本基础版 1,超出免费额度不会收费
  • 如果提示选择“应用模板”,请选择“空模板”
  1. 进入云开发控制台
  2. 进入环境-登录授权,启用“匿名登录”
  3. 进入环境-安全配置,将网站域名添加到“WEB安全域名”
  4. 进入环境-云函数,点击“新建云函数”
  5. 函数名称请填写:twikoo,创建方式请选择:空白函数,运行环境请选择:Nodejs 16.13,函数内存请选择:128MB,点击“下一步”
  6. 清空输入框中的示例代码,复制以下代码、粘贴到“函数代码”输入框中,点击“确定”
js
exports.main = require('twikoo-func').main
  1. 创建完成后,点击“twikoo"进入云函数详情页,进入“函数代码”标签,点击“文件 - 新建文件”,输入 package.json,回车
  2. 复制以下代码、粘贴到代码框中,点击“保存并安装依赖”
json
{ "dependencies": { "twikoo-func": "1.6.38" } }

腾讯云命令行部署

注意

  • 请确保您已经安装了 Node.js
  • 请将命令、代码中“您的环境id”替换为您自己的环境id
  • 第 7 步会弹出浏览器要求授权,需在有图形界面的系统下进行
  • 请勿在 Termux 下操作。虽然可以部署成功,但是使用时会报错 [FUNCTIONS_EXECUTE_FAIL] Error: EACCES: permission denied, open '/var/user/index.js'

如果您打算部署到一个现有的云开发环境,请直接从第 3 步开始。

  1. 进入云开发CloudBase活动页面,滚动到“新用户专享”部分,选择适合的套餐(一般 0 元套餐即可),点击“立即购买”,按提示创建好环境。
  2. 进入云开发控制台
  3. 进入环境-登录授权,启用“匿名登录”
  4. 进入环境-安全配置,将网站域名添加到“WEB安全域名”
  5. 克隆本仓库
sh
git clone https://github.com/twikoojs/twikoo.git # 或 git clone https://e.coding.net/imaegoo/twikoo/twikoo.git
+cd twikoo

如果您没有安装 Git,也可以从 Release 页面下载最新的 Source code
如果您所在的地区访问 Github 速度慢,也可以尝试另一个仓库地址:https://imaegoo.coding.net/public/twikoo/twikoo/git

  1. 安装依赖项
sh
npm install -g yarn # 已安装 yarn 可以跳过此步
+yarn install
  1. 授权云开发环境(此命令会弹出浏览器要求授权,需在有图形界面的系统下进行)
sh
yarn run login
  1. 自动部署
sh
yarn deploy -e 您的环境id

Vercel 部署

注意

Vercel 部署的环境需配合 1.4.0 以上版本的 twikoo.js 使用

默认域名 *.vercel.app 在中国大陆访问速度较慢甚至无法访问,绑定自己的域名可以提高访问速度

查看视频教程

  1. 申请 MongoDB Atlas 账号,获取 MongoDB 连接字符串
  2. 申请 Vercel 账号
  3. 点击以下按钮将 Twikoo 一键部署到 Vercel

Deploy

  1. 进入 Settings - Environment Variables,添加环境变量 MONGODB_URI,值为前面记录的数据库连接字符串
  2. 进入 Settings - Deployment Protection,设置 Vercel Authentication 为 Disabled,并 Save

  1. 进入 Deployments , 然后在任意一项后面点击更多(三个点) , 然后点击 Redeploy , 最后点击下面的 Redeploy
  2. 进入 Overview,点击 Domains 下方的链接,如果环境配置正确,可以看到 “Twikoo 云函数运行正常” 的提示
  3. Vercel Domains(包含 https:// 前缀,例如 https://xxx.vercel.app)即为您的环境 id

Railway 部署

注意

Railway 部署的环境需配合 1.4.0 以上版本的 twikoo.js 使用

请一定要创建 MongoDB,不创建 MongoDB 也能正常使用,但重新部署后数据会丢失!

  1. Railway 申请并登录账号,点击 New Project - Provision MongoDB,名称随意
  2. 打开 twikoojs/twikoo-zeabur 点击 fork 将仓库 fork 到自己的账号下
  3. 回到 Railway 点击 New - GitHub Repo - Configure GitHub App - 授权 GitHub - 选择刚才 fork 的仓库,等待部署完成
  4. 点开环境卡片 - Variables - New Variable,左边输入 PORT 右边输入 8080 然后点 Add
  5. 同样地,添加 MongoDB 相关环境变量 - New Variable - Add Reference - MONGO* - Add,重复步骤以添加 MONGOHOSTMONGOPASSWORDMONGOPORTMONGOUSERMONGO_URL 环境变量。
  6. 点开环境卡片 - Settings - Environment - Domains,绑定一个域名(例如 mytwikoo.up.railway.app
  7. 到博客配置文件中配置 envId 为 https:// 加域名(例如 https://mytwikoo.up.railway.app

Zeabur 部署

注意

Zeabur 部署的环境需配合 1.4.0 以上版本的 twikoo.js 使用

请一定要创建 MongoDB,不创建 MongoDB 也能正常使用,但重新部署后数据会丢失!

  1. Zeabur 申请并登录账号,点击部署新服务 - 部署其他服务 - 部署 MongoDB,名称随意
  2. 打开 twikoojs/twikoo-zeabur 点击 fork 将仓库 fork 到自己的账号下
  3. 回到 Zeabur 点击部署新服务 - 部署你的源代码 - 授权 GitHub - 选择刚才 fork 的仓库,名称随意

无需配置数据库连接字符串! Zeabur 已自动配置

  1. 部署好后点开环境卡片 - 设置 - 域名,绑定一个域名(例如 mytwikoo.zeabur.app
  2. 到博客配置文件中配置 envId 为 https:// 加域名(例如 https://mytwikoo.zeabur.app

Netlify 部署

注意

Netlify 部署的环境需配合 1.4.0 以上版本的 twikoo.js 使用

Netlify 免费等级(Functions Level 0)支持每月 125,000 请求次数和 100 小时函数计算时长

  1. 申请 MongoDB Atlas 账号,获取 MongoDB 连接字符串
  2. 申请并登录 Netlify 账号,创建一个 Team
  3. 打开 twikoojs/twikoo-netlify 点击 fork 将仓库 fork 到自己的账号下
  4. 回到 Netlify,点击 Add new site - Import an existing project

  1. 点击 Deploy with GitHub,如果未授权 GitHub 账号,先授权,然后选择前面 fork 的 twikoo-netlify 项目

  1. 点击 Add environment variables - New variable,Key 输入 MONGODB_URI,Value 输入前面记录的数据库连接字符串,点击 Deploy twikoo-netlify

  1. 部署完成后,点击 Domain settings - 右侧 Options - Edit site name,可以设置属于自己的三级域名(https://xxx.netlify.app

  1. 进入 Site overview,点击上方的链接,如果环境配置正确,可以看到 “Twikoo 云函数运行正常” 的提示

  1. 云函数地址(包含 https:// 前缀和 /.netlify/functions/twikoo 后缀,例如 https://xxx.netlify.app/.netlify/functions/twikoo)即为您的环境 id

Hugging Face 部署

  1. 申请 MongoDB Atlas 账号,获取 MongoDB 连接字符串
  2. 申请 Hugging Face 账号
  3. 登录,点击 Spaces - Create new Space

  1. 输入 Space name,Select the Space SDK 选择 Docker,Choose a Docker template 选择 Blank,Space hardware 选择 FREE,选择 Public,点击 Create Space

  1. 进入刚刚创建的 Space,点击页面上方的 Settings,滚动到 Variables and secrets 部分,点击 New secret,Name 输入 MONGODB_URI,Value 输入前面记录的数据库连接字符串,点击 Save

  1. 点击页面上方的 Files - Add file - Create a new file

  1. 在 Name your file 中输入 Dockerfile,在 Edit 区域输入以下内容
Dockerfile
FROM imaegoo/twikoo
+ENV TWIKOO_PORT 7860
+EXPOSE 7860

  1. 点击 Commit new file to main
  2. 点击右上角 Settings 右方的菜单(三个点)图标 - Embed this Space,Direct URL 下的内容(例如 https://xxx-xxx.hf.space)即为您的环境 id

如果你需要自定义域名

自定义域名教程由 Hoshino-Yumetsuki 提供

ps:除了 CF_ZERO_TRUST_TOKEN 这个环境变量以外,其他环境变量的配置方式与上一步相同

  1. 申请 Cloudflare Zero Trust,关于申请方式请自行查找

  1. 添加一条隧道,连接方式选择 Cloudflared,名称任意

  1. 添加一个 Public Hostname,回源选择 HTTP,端口选择 8080
  2. Clone Twikoo 仓库,找到 src\server\hf-space
  3. 去 Hugging Face 创建一个 Space,然后 Clone 下来,将 hf-space 文件夹内的所有内容复制进去
  4. 在 Hugging Face Space 的设置中添加一个环境变量,变量名 CF_ZERO_TRUST_TOKEN,值是 Tunnels 给的令牌(删掉 cloudflared.exe service install,只保留令牌部分)

  1. Push 到 Hugging Face Space 仓库

AWS Lambda 部署

  1. 注册 AWS 账号并配置 Terraform CLI。
  2. 如需使用托管的 MongoDB 数据库,可申请 MongoDB Atlas 账号。
  3. 参考 src/server/aws-lambda/terraform 目录中 Terraform 代码创建 AWS 资源。
  4. 部署完成后,Terraform 会将 lambda_function_url 打印在屏幕上,您也可以使用 terraform output 获取这一 URL,如:
$ terraform output
+lambda_function_url = "https://axtoiiithbcexamplegq7ozalu0cnkii.lambda-url.us-west-2.on.aws/"

该 URL 即为您的环境 ID,请记下这一 URL 用于前端配置。

Cloudflare workers 部署

请参考 github.com/twikoojs/twikoo-cloudflare

私有部署

注意

私有部署的环境需配合 1.6.0 或以上版本的 twikoo.js 使用

私有部署对服务器系统没有要求,Windows、Ubuntu、CentOS、macOS 等常用系统均支持。

私有部署涉及终端操作、申请证书、配置反向代理或负载均衡等高级操作,如果对这些不太了解,建议优先选择其他方式部署。

  1. 服务端下载安装 Node.js
  2. 安装 Twikoo server: npm i -g tkserver
  3. 根据需要配置环境变量,所有的环境变量都是可选的
名称描述默认值
MONGODB_URIMongoDB 数据库连接字符串,不传则使用 lokijsnull
MONGO_URLMongoDB 数据库连接字符串,不传则使用 lokijsnull
TWIKOO_DATAlokijs 数据库存储路径./data
TWIKOO_PORT端口号8080
TWIKOO_THROTTLEIP 请求限流,当同一 IP 短时间内请求次数超过阈值将对该 IP 返回错误250
TWIKOO_LOCALHOST_ONLYtrue时只监听本地请求,使得 nginx 等服务器反代之后不暴露原始端口null
TWIKOO_LOG_LEVEL日志级别,支持 verbose / info / warn / errorinfo
TWIKOO_IP_HEADERS在一些特殊情况下使用,如使用了 CloudFlare CDN 它会将请求 IP 写到请求头的 cf-connecting-ip 字段上,为了能够正确的获取请求 IP 你可以写成 ["headers.cf-connecting-ip"][]
  1. 启动 Twikoo server: tkserver
  2. 访问 http://服务端IP:8080 测试服务是否启动成功
  3. 配置前置代理实现 HTTPS 访问(可以用 Nginx、负载均衡或 Cloudflare 等)
  4. 到博客配置文件中配置 envId 为 https:// 加域名(例如 https://twikoo.yourdomain.com

提示

  1. Linux 服务器可以用 nohup tkserver >> tkserver.log 2>&1 & 命令后台启动
  2. 数据默认在 data 目录,请注意定期备份数据
  3. 默认端口为8080,自定义端口使用可使用 TWIKOO_PORT=1234 tkserver 启动。
  4. 配置systemctl服务配合TWIKOO_PORT=1234 tkserver设置开机启动

私有部署 (Docker)

注意

私有部署的环境需配合 1.6.0 或以上版本的 twikoo.js 使用

私有部署涉及终端操作、申请证书、配置反向代理或负载均衡等高级操作,如果对这些不太了解,建议优先选择其他方式部署。

Docker

sh
docker run --name twikoo -e TWIKOO_THROTTLE=1000 -p 8080:8080 -v ${PWD}/data:/app/data -d imaegoo/twikoo

Docker Compose

yml
version: '3'
+services:
+  twikoo:
+    image: imaegoo/twikoo
+    container_name: twikoo
+    restart: unless-stopped
+    ports:
+      - 8080:8080
+    environment:
+      TWIKOO_THROTTLE: 1000
+    volumes:
+      - ./data:/app/data

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/cms.html b/cms.html new file mode 100644 index 000000000..55fae8684 --- /dev/null +++ b/cms.html @@ -0,0 +1,26 @@ + + + + + + 反垃圾 | Twikoo 文档 + + + + + + + + + + + + + + + +
Skip to content

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/configuration.html b/configuration.html new file mode 100644 index 000000000..d9e6bd95d --- /dev/null +++ b/configuration.html @@ -0,0 +1,26 @@ + + + + + + 配置 | Twikoo 文档 + + + + + + + + + + + + + + + +
Skip to content

配置

注意

因图形化配置界面已上线,此文档已废弃且不再维护,其中的内容可能已经过时

  • 配置是可选的,即使没有配置也可以使用。
  • 请确保 config 表的权限不是“所有用户可读”,以保证 SMTP 密码等信息不会泄露。
    不过放心,默认权限是安全的,您不需要更改。
  • 请将配置项放在一条数据记录中。

通用

SITE_NAME

类型: String
默认值: null
必要性: false
示例: 虹墨空间站

博客、站点名称。

SITE_URL

类型: String
默认值: null
必要性: false
示例: https://www.imaegoo.com

博客、站点地址。

BLOGGER_EMAIL

类型: String
默认值: null
必要性: false
示例: 12345@qq.com

博主的邮箱地址,用于邮件通知、博主标识。

反垃圾

AKISMET_KEY

类型: String
默认值: null
必要性: false
示例: 8651783ed123

反垃圾评论 API key。

微信通知

SC_SENDKEY

类型: String
默认值: null
必要性: false
示例: SCT1364TKdsiGjGvyAZNYDVnuHW12345

Server酱微信推送的 SCKEY

邮件通知

SENDER_EMAIL

类型: String
默认值: null
必要性: false
示例: blog@imaegoo.com

邮件通知邮箱地址。对于大多数邮箱服务商,SENDER_EMAIL 必须和 SMTP_USER 保持一致,否则无法发送邮件。

SENDER_NAME

类型: String
默认值: null
必要性: false
示例: 虹墨空间站评论提醒

邮件通知标题。

SMTP_SERVICE

类型: String
默认值: null
必要性: false
示例: qiye.aliyun

邮件通知邮箱服务商。
完整列表请参考:Supported services

SMTP_USER

类型: String
默认值: null
必要性: false
示例: blog@imaegoo.com

邮件通知邮箱用户名。

SMTP_PASS

类型: String
默认值: null
必要性: false
示例: password

邮件通知邮箱密码,QQ邮箱请填写授权码。

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/en/api.html b/en/api.html new file mode 100644 index 000000000..d38f9a08d --- /dev/null +++ b/en/api.html @@ -0,0 +1,80 @@ + + + + + + API reference | Twikoo Docs + + + + + + + + + + + + + + + +
Skip to content

API reference

Through Twikoo API, theme developers can implement some special features, such as displaying the number of article comments in the article list, displaying the latest comments on the home page, etc.

It is not necessary to execute twikoo.init() before calling the Twikoo API.

Get comments count

Get the number of article comments in batch.

Version

>= 0.2.7

Example

js
twikoo.getCommentsCount({
+  envId: 'Environment ID', // Tencent CloudBase Environment ID
+  // region: 'ap-guangzhou', // Environment locale, default is ap-shanghai, if your environment locale is not Shanghai, you need to pass this parameter
+  urls: [ // List of article paths without protocols, domains and parameters. It is a mandatory parameter
+    '/2020/10/post-1.html',
+    '/2020/11/post-2.html',
+    '/2020/12/post-3.html'
+  ],
+  includeReply: false // Whether the number of comments includes replies, the default parameter is false
+}).then(function (res) {
+  console.log(res);
+  // example: [
+  //   { url: '/2020/10/post-1.html', count: 10 },
+  //   { url: '/2020/11/post-2.html', count: 0 },
+  //   { url: '/2020/12/post-3.html', count: 20 }
+  // ]
+}).catch(function (err) {
+  // If an error occurs
+  console.error(err);
+});

Get recent comments

Get the latest comments.

Version

>= 0.2.7

Example

js
twikoo.getRecentComments({
+  envId: '您的环境id', // Tencent CloudBase Environment ID
+  // region: 'ap-guangzhou', // Environment locale, default is ap-shanghai, if your environment locale is not Shanghai, you need to pass this parameter
+  pageSize: 10, // Get how many bars, the default parameter is 10, the maximum parameter is 100
+  includeReply: false // Whether to include the latest reply, the default parameter is false
+}).then(function (res) {
+  console.log(res);
+  // Returns Array with the latest comments
+  // * id: comment ID
+  // * url: address of the comment
+  // * nick: nickname
+  // * mailMd5: The MD5 value of the mailbox, which can be used to display the avatar
+  // * link: URL
+  // * comment: the content of the comment in HTML format
+  // * commentText: comment content in plain text format
+  // * created: comment time, in millisecond timestamp format
+  // * avatar: the address of the avatar (new in 0.2.9)
+  // * relativeTime: relative comment time, e.g. "1 hour ago" (new in 0.2.9)
+  // Return example: [ // order from new to old
+  // { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 }
+  // { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 },
+  // { id: '', url: '', nick: '', mailMd5: '', link: '', comment: '', commentText: '', created: 0 }
+  // ]
+}).catch(function (err) {
+  // If an error occurs
+  console.error(err);
+});

On Twikoo loaded

Callback function after Twikoo is successfully mounted.
It will not be triggered in case of environment ID error, network exception, mount failure, etc.

Version

>= 0.5.2

Example

js
twikoo.init({
+  ......
+}).then(function () {
+  console.log('Twikoo is ready to go!');
+});

On comment loaded

Callback function after comments are loaded successfully.
It will also be triggered when the comment is automatically refreshed after posting and when the next page of comments is loaded.
It will not be triggered when the comment fails to load.

Version

>= 0.5.2

Example

js
twikoo.init({
+  ......,
+  onCommentLoaded: function () {
+    console.log('Comment loading complete');
+  }
+});

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/en/backend.html b/en/backend.html new file mode 100644 index 000000000..7b7cb08a6 --- /dev/null +++ b/en/backend.html @@ -0,0 +1,26 @@ + + + + + + Twikoo Docs + + + + + + + + + + + + + + + +
Skip to content

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/en/faq.html b/en/faq.html new file mode 100644 index 000000000..3155f64a5 --- /dev/null +++ b/en/faq.html @@ -0,0 +1,43 @@ + + + + + + FAQ | Twikoo Docs + + + + + + + + + + + + + + + + +
Skip to content

FAQ

How do I change my avatar?

https://gravatar.com Register and set your avatar by email and leave the same email when commenting.

Visitors can also comment by entering their digital QQ email address and using their QQ avatar.

How do I change or reset the administrator password?

云开发控制台Edit the configuration, delete the config.ADMIN_PASS configuration item, and then go to the Twikoo administration panel to reset the password.

How to get the private key file of the admin panel?

  1. 环境-登录授权Click "Private Key Download" on the right of "Custom Login" to download the private key file
  2. Open the private key file with a text editor and copy all the contents
  3. Click the "pinion" (settings) icon in the comment window, paste the contents of the private key file, and set the administrator password

How to turn on article visit statistics?

You can add where you need to show the number of article visits:

html
<span id="twikoo_visitors">0</span>

to display the number of visits. We do not support site-wide visit statistics at the moment.

How can I test if the Akismet anti-spam configuration is in effect?

Please fill in viagra-test-123 as a nickname, or akismet-guaranteed-spam@example.com as an email address to post a comment, which will definitely be considered as a spam comment.

Note that due to the slow response time of the Akismet service (about 6 seconds), which affects the user experience, Twikoo adopts a "release first, detect later" policy, and spam comments will be visible for a short time after they are posted.

How are free resources calculated?

环境总览See resource usage. twikoo consumes database and cloud functions, both with a free usage of -

  • Database: 50,000 reads/day, 50,000 writes/day
  • Cloud functions: 40,000 GBs/month

The memory consumption of Twikoo cloud functions is constant at 0.1GB, which means that Twikoo cloud functions have a running time of up to 400,000 seconds per month, and the bottleneck of free resources is mainly in the daily read limit of the database. It is recommended that webmasters pay attention to the usage of free resources.

How do I enable Katex support?

Twikoo supports Katex formulas, but to limit the package size of Twikoo, Twikoo does not have the full Katex built-in, you need to load katex.js additionally in the page.

example

html
<head>
+  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous">
+  <script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js" integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4" crossorigin="anonymous"></script>
+  <script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js" integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa" crossorigin="anonymous"></script>
+</head>

After loading, you can send $$c = \pm\sqrt{a^2 + b^2}$$ to test the effect.

katex

You can also pass in a custom katex configuration during twikoo.init, see Katex Auto-render Extension for details.

js
twikoo.init({
+  envId: 'Environment id',
+  el: '#tcomment',
+  katex: {
+    delimiters: [
+      { left: '$$', right: '$$', display: true },
+      { left: '$', right: '$', display: false },
+      { left: '\\(', right: '\\)', display: false },
+      { left: '\\[', right: '\\]', display: true }
+    ],
+    throwOnError: false
+  }
+});

How to configure anti-spam?

Using Tencent Cloud Content Security Service

Twikoo supports access to Tencent Cloud Text Content Detection, which uses deep learning technology to identify harmful content involving pornography, politics, terrorism, etc. It also supports user-configurable thesaurus to combat customized offending text.

Tencent Cloud text content detection is a paid service, offering a 1-month free trial, after which the price is 25 RMB per 10,000 entries. If you don't have high requirements for anti-spam comments, you can also use the free Akismet.

How to apply for Tencent Cloud Text Content Inspection?

  1. Visit Tencent Cloud Console - Text Content Security to open the text content security service
  2. Visit Tencent Cloud Console - User List, click New User, and click Quick Create.
  3. Enter the user name, select "Programmatic Access" as the access method, cancel "AdministratorAccess" as the user privilege, and only check the box "QcloudCMSFullAccess". QcloudCMSFullAccess".
  4. Click "Create User". 5.
  5. Copy the "SecretId" and "SecretKey" from the "Successful New User" page to the Twikoo administration panel Configure them in the "Anti-Spam" module
  6. Test the anti-spam effect

After success, webmasters can configure custom text content filtering in Tencent Cloud Console - Custom Library Management.

Using Akismet Anti-Spam Service

Akismet (Automattic Kismet) is a widely used spam filtering system by Matt Mullenweg, the founder of WordPress, Akismet is also the default plugin installed in WordPress and is very widely used. The goal of the design is to help blog sites to filter spam messages.

  1. Register akismet.com
  2. Select Akismet Personal subscription, copy the Akismet API Key and configure it in the Twikoo admin panel "Anti-Spam" module

Error encountered in login administration panel AUTH_INVALID_CUSTOM_LOGIN_TICKET

Generally, after configuring the login private key, the login private key is downloaded again, which causes the previously configured login private key to be invalid.
Solution: Go to Cloud Development Console, database, delete the config, and then reconfigure the private key.

Can't receive emails?

If it is a cloud function deployed by Vercel, please configure foreign mail service providers to avoid being judged as spam behavior by mail service providers. If it is other reasons, please go to Twikoo management panel, find mail test function, enter your personal mailbox and troubleshoot the reasons according to the test results.

In order to avoid performance problems caused by frequent mailbox checking, the mail configuration has a cache of about 10 minutes, if you are sure the configuration is fine but the test fails, you can wait for 10 minutes and then test again.

Vercel can't upload images?

The Tencent Cloud environment comes with cloud storage, so you can upload images directly in the Tencent Cloud environment, and the images are saved in the cloud storage. However, Vercel environment does not, the upload image function relies on third party image bed, please configure the image bed in the admin panel, Twikoo supports the following image bed:

BedAddressFeatures
qcloudNoneTencent Cloud environment comes with it, can be viewed in Cloud Development - Cloud Storage
7buhttps://7bu.topGo to No Bed, powered by 杜老师, no free packages
smmshttps://sm.msSMMS image bed, there is a free package, please register your account, IMAGE_CDN_TOKEN can be obtained in Dashboard
lsky-proPrivate DeploymentLankenGraphics 2.0 version, IMAGE_CDN please configure the URL address of the home page of the graph bed (such as https://7bu.top), IMAGE_CDN_TOKEN get way please refer to the tutorial 杜老师 said the graph bed: new version Go not to the bed Token acquisition and emptying, the format of the obtained token should be 1|1bJbwlqBfnggmOMEZqXT5XusaIwqiZjCDs7r1Ob5)

Can it be deployed privately?

Yes.

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/en/frontend.html b/en/frontend.html new file mode 100644 index 000000000..a5b403f97 --- /dev/null +++ b/en/frontend.html @@ -0,0 +1,26 @@ + + + + + + Twikoo Docs + + + + + + + + + + + + + + + +
Skip to content

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/en/index.html b/en/index.html new file mode 100644 index 000000000..d42c424f7 --- /dev/null +++ b/en/index.html @@ -0,0 +1,26 @@ + + + + + + Twikoo | A simple, safe, free comment system + + + + + + + + + + + + + + + +
Skip to content

Twikoo

Comment system

Simple, safe, free

Twikoo

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/en/intro.html b/en/intro.html new file mode 100644 index 000000000..65da7fbee --- /dev/null +++ b/en/intro.html @@ -0,0 +1,29 @@ + + + + + + Twikoo Docs + + + + + + + + + + + + + + + + +
Skip to content
Twikoo
       

A simple, safe, free comment system.
简体中文 | English

This document is for American English. This document has many bugs.

Features

Simple

  • Free Build.(Using CloudBase / Vercel / self-hosted as the commenting backend)
  • Simple Deployment.(Support CloudBase / Vercel one-click deployment)

Easy to use

  • Support reply, like.
  • No additional adaptations, support with light theme and dark theme use.
  • Support API , batch get article comment count, latest comments.
  • Visitors entering QQ number in the nickname field will automatically complete the QQ nickname and QQ email.
  • Visitors fill in the digital QQ e-mail, will use the QQ avatar as the comment avatar.
  • Support the comment to paste pictures.(Can be disabled)
  • Support inserting pictures.(Can be disabled)
  • Support 7bu image bed, Tencent CloudBase image bed.
  • Support inserting emoji.(Can be disabled)
  • Support Ctrl + Enter reply.
  • Comments are saved in draft in real time and will not be lost when refreshed.
  • Support Katex formulas.
  • Support for code highlighting by language.

Security

  • Privacy and information security. (sensitive fields (email, IP, environment configuration, etc.) are not leaked through Tencent cloud function control)
  • Support for Akismet spam comment detection.(View Details akismet.com
  • Support Tencent Cloud content security spam comment detection.(View Details Tencent Cloud Content Security
  • Support manual review mode.
  • Anti XSS Attack.
  • Support for limiting the maximum number of comments per IP per 10 minutes.

notification

  • E-mail(Visitors and Blogger)
  • Wechat(only Blogger, Server酱
  • QQ(only Blogger, Qmsg酱

Personalization

  • Background image.
  • the "blogger" logo text.
  • Notification Email Template.
  • Comment prompt message.(placeholder)
  • emoji(OwO 的数据格式
  • 【Nickname】 【Email】 【Website】 Required / Optional
  • Code highlighting theme.

Management

  • Embedded panel with password login to easily view comments, hide comments, delete comments and modify configuration.
  • Support to hide the management portal and show it by entering a secret code.
  • Support for importing comments from Valine, Artalk, Disqus.

Disadvantages

  • IE is not supported.

Preview

Comments

Comments

Management

Management

Notification

Notification

Quick Start

Deploy

View Details

If you want to get updates, make suggestions and participate in the test, welcome to join the discussion group:1080829142 (QQ)
1080829142

Special Thanks

Icon design:Maemo Lee

Release notes & plans

Update logs & Development Plan

Development

If you want to develop locally for a second time, you can refer to the following commands:

sh
yarn dev # (http://localhost:9820/demo.html)
+yarn lint 
+yarn build # (dist/twikoo.all.min.js)

If your changes can help more people, feel free to submit a Pull Request!

I18N

Support Simplified Chinese, Traditional Chinese, English. translate Pull Request.

License

FOSSA Status

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/en/link.html b/en/link.html new file mode 100644 index 000000000..1fb89d7e8 --- /dev/null +++ b/en/link.html @@ -0,0 +1,26 @@ + + + + + + Links | Twikoo Docs + + + + + + + + + + + + + + + +
Skip to content

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/en/quick-start.html b/en/quick-start.html new file mode 100644 index 000000000..6a477c80d --- /dev/null +++ b/en/quick-start.html @@ -0,0 +1,26 @@ + + + + + + Quick start | Twikoo Docs + + + + + + + + + + + + + + + +
Skip to content

Quick start

Tip

The English document is being built. Please refer to the Chinese document.

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/en/update.html b/en/update.html new file mode 100644 index 000000000..42b08751b --- /dev/null +++ b/en/update.html @@ -0,0 +1,26 @@ + + + + + + Twikoo Docs + + + + + + + + + + + + + + + +
Skip to content

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/faq.html b/faq.html new file mode 100644 index 000000000..2d5a9aee3 --- /dev/null +++ b/faq.html @@ -0,0 +1,43 @@ + + + + + + 常见问题 | Twikoo 文档 + + + + + + + + + + + + + + + + +
Skip to content

常见问题

如何修改头像?

请前往 https://weavatar.com 通过邮箱注册并设定头像,评论时,请留下相同的邮箱。

访客还可以通过输入数字 QQ 邮箱地址,使用 QQ 头像发表评论。

如何修改、重置管理员密码?

腾讯云请前往云开发控制台,Vercel 请前往 MongoDB,私有部署请直接编辑 data/db.json.1,编辑配置,删除 config.ADMIN_PASS 配置项,然后前往 Twikoo 管理面板重新设置密码。

如何获得管理面板的私钥文件?

  1. 进入环境-登录授权,点击“自定义登录”右边的“私钥下载”,下载私钥文件
  2. 用文本编辑器打开私钥文件,复制全部内容
  3. 点击评论窗口的“小齿轮”图标,粘贴私钥文件内容,并设置管理员密码

忘记暗号,无法进入管理面板怎么办?

在包含评论框的页面,打开浏览器开发者工具(Windows 下快捷键为 F12),点击 Network 标签,刷新一下页面,点击放大镜图标(Search),在出现的搜索栏中输入 HIDE_ADMIN_CRYPT,点击搜索栏旁边的刷新图标(Refresh),即可找到您的暗号。

请注意,暗号并非管理面板的加密手段,仅用于向普通访客隐藏管理面板,请勿把暗号和管理面板的密码设置为相同的字符串。

如何开启文章访问量统计?

您可以在需要展示文章访问量的地方添加:

html
<span id="twikoo_visitors">0</span>

来展示访问量。暂不支持全站访问量统计。

如何启用 Katex 支持?

Twikoo 支持 Katex 公式,但为了限制 Twikoo 的包大小,Twikoo 没有内置完整的 Katex,您需要在页面中额外加载 katex.js

html
<head>
+  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous">
+  <script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js" integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4" crossorigin="anonymous"></script>
+  <script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js" integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa" crossorigin="anonymous"></script>
+</head>

载入后,您可以发送 $$c = \pm\sqrt{a^2 + b^2}$$ 测试效果。

katex

您还可以在 twikoo.init 时传入自定义 katex 配置,详细配置请查看 Katex Auto-render Extension

js
twikoo.init({
+  envId: '您的环境id',
+  el: '#tcomment',
+  katex: {
+    delimiters: [
+      { left: '$$', right: '$$', display: true },
+      { left: '$', right: '$', display: false },
+      { left: '\\(', right: '\\)', display: false },
+      { left: '\\[', right: '\\]', display: true }
+    ],
+    throwOnError: false
+  }
+});

如何配置反垃圾?

使用腾讯云内容安全服务

Twikoo 支持接入腾讯云文本内容检测,使用深度学习技术,识别涉黄、涉政、涉恐等有害内容,同时支持用户配置词库,打击自定义的违规文本。

腾讯云文本内容检测是付费服务,提供 1 个月的免费试用,之后价格为 25 元/万条。如果您对反垃圾评论要求不高,也可以使用免费的 Akismet。

如何申请腾讯云文本内容检测

  1. 访问腾讯云控制台-文本内容安全,开通文本内容安全服务
  2. 访问腾讯云控制台-用户列表,点击新建用户,点击快速创建
  3. 输入用户名,访问方式选择“编程访问”,用户权限取消“AdministratorAccess”,只勾选“QcloudCMSFullAccess”
  4. 点击“创建用户”
  5. 复制“成功新建用户”页面的“SecretId”和“SecretKey”,到 Twikoo 管理面板“反垃圾”模块中配置
  6. 测试反垃圾效果

成功后,站长可以在腾讯云控制台-自定义库管理配置自定义文本内容过滤。

使用 Akismet 反垃圾服务

Akismet (Automattic Kismet) 是应用广泛的一个垃圾留言过滤系统,其作者是大名鼎鼎的 WordPress 创始人 Matt Mullenweg,Akismet 也是 WordPress 默认安装的插件,其使用非常广泛,设计目标便是帮助博客网站来过滤垃圾留言。

  1. 注册 akismet.com
  2. 选择 Akismet Personal 订阅,复制得到的 Akismet API Key,到 Twikoo 管理面板“反垃圾”模块中配置

如何测试 Akismet 反垃圾配置是否生效?

请填写 viagra-test-123 作为昵称,或填写 akismet-guaranteed-spam@example.com 作为邮箱,发表评论,这条评论将一定会被视为垃圾评论。

需要注意的是,由于 Akismet 服务响应速度较慢(大约 6 秒),影响用户体验,Twikoo 采取 “先放行,后检测” 的策略,垃圾评论会在发表后短暂可见。

登录管理面板遇到错误 AUTH_INVALID_CUSTOM_LOGIN_TICKET

一般是配置好登录私钥之后,又重新下载了登录私钥,导致之前配置的登录私钥失效了。
解决方法:到云开发控制台,数据库,删掉 config,然后重新配置私钥。

收不到提醒邮件?

如果是 Vercel 部署的云函数,请配置国外邮件服务商,避免被邮件服务商判定为垃圾邮件行为。如果是其他原因,请前往 Twikoo 管理面板,找到邮件测试功能,输入个人邮箱,根据测试结果排查原因。

为了避免频繁检查邮箱带来的性能问题,邮件配置有 10 分钟左右的缓存,如果确定配置没有问题,但测试失败,可以等待 10 分钟后再测试。

由于博主发表评论时,不会通知博主,如果您想实际测试通知功能,请注销管理面板后用非博主邮箱发表或回复评论。

Vercel、私有部署无法上传图片?

腾讯云环境自带云存储,所以腾讯云环境下可以直接上传图片,图片保存在云存储中。然而 Vercel 环境没有,上传图片功能依赖第三方图床,请在管理面板中配置图床,Twikoo 支持以下图床:

图床地址特点
qcloud腾讯云环境自带,可在云开发 - 云存储中查看
7buhttps://7bu.top去不图床,由杜老师提供支持,无免费套餐
smmshttps://sm.msSMMS 图床,有免费套餐,请自行注册账号,IMAGE_CDN_TOKEN 可在 Dashboard 中获取
lsky-pro私有部署兰空图床 2.0 版本,IMAGE_CDN 请配置图床首页 URL 地址(如 https://7bu.top),IMAGE_CDN_TOKEN 获取方式请参考教程 杜老师说图床:新版本去不图床 Token 的获取与清空,获取到的 token 格式应为 1|1bJbwlqBfnggmOMEZqXT5XusaIwqiZjCDs7r1Ob5

私有部署能连接自己的数据库吗?

Twikoo 私有部署版默认使用内置数据库:LokiJS 数据库,支持的数据库容量大约为 1 GB,不需要连接外部数据库,数据存储在启动 twikoo 时所在目录下的 data 目录,您可以直接复制该目录以完成数据备份。

如果您有 MongoDB 实例,可以连接 MongoDB 作为外部数据库,只需配置环境变量 MONGODB_URI 为数据库连接地址即可,如:mongodb://<username>:<password>@<host>/

部署后遇到评论失败: 0,管理面板进不去?

在包含评论框的页面,打开浏览器开发者工具(Windows 下快捷键为 F12),点击 Console 标签,查找包含 twikoo 关键字的报错。

如果看到 ERR_BLOCKED_BY_CLIENT,请禁用浏览器去广告插件或将当前网站加入白名单,然后刷新重试。

如果看到 ERR_CONNECTION_CLOSED,请检查自己所处的地区网络环境是否正常,能够连通云函数,部分地区无法访问 Vercel 等服务,请更换部署方式再试。

如果看到 Access to XMLHttpRequest at 'https://tcb-api.tencentcloudapi.com/web?env=...' from origin '...' has been blocked by CORS policy...:请检查前端 js 文件版本是否最新,并确保 envId 以 https:// 开头。

如果看到 Access to XMLHttpRequest at ... No 'Access-Control-Allow-Origin' header is present on the requested resource.:请先访问一下 envId 查看云函数是否运行正常,如果没有运行正常的提示,请重新部署云函数,确保不要漏下任何步骤;如果提示运行正常,请本地启动网站(localhost)并访问管理面板-配置管理-通用,清空 CORS_ALLOW_ORIGIN 字段并保存,然后刷新重试。

如果看到其他错误,请 提交 issue 并附上错误信息。

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/frontend.html b/frontend.html new file mode 100644 index 000000000..d0f37f7d5 --- /dev/null +++ b/frontend.html @@ -0,0 +1,46 @@ + + + + + + 前端部署 | Twikoo 文档 + + + + + + + + + + + + + + + +
Skip to content

前端部署

在 Hexo 中使用

Hexo Butterfly 主题使用

请参考 Butterfly 安裝文檔(四) 主題配置-2 进行配置

Hexo Keep 主题使用

请参考 hexo-theme-keep/_config.yml 进行配置

Hexo Volantis 主题使用

请参考 hexo-theme-volantis/_config.yml 进行配置

Hexo Ayer 主题使用

请参考 hexo-theme-ayer/_config.yml 进行配置

Hexo NexT 主题使用

暂不支持 NexT 8 以下的版本,请先升级到 NexT 8。然后在 Hexo 项目根目录执行

sh
# For NexT version >= 8.0.0 && < 8.4.0
+npm install hexo-next-twikoo@1.0.0
+# For NexT version >= 8.4.0
+npm install hexo-next-twikoo@1.0.3

然后在配置中添加

yml
twikoo:
+  enable: true
+  visitor: true
+  envId: xxxxxxxxxxxxxxx # 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app)
+  # region: ap-guangzhou # 环境地域,默认为 ap-shanghai,腾讯云环境填 ap-shanghai 或 ap-guangzhou;Vercel 环境不填

Hexo Matery 主题使用

请参考 hexo-theme-matery/_config.yml 进行配置

Hexo Icarus 主题使用

请参考 基于腾讯云,给你的 Icarus 博客配上 Twikoo 评论系统 by 异次元de机智君💯

Hexo MengD(萌典) 主题使用

请参考 hexo-theme-MengD/_config.yml 进行配置

hexo-theme-fluid 主题使用

请参考 配置指南-评论 进行配置

hexo-theme-cards 主题使用

请参考 hexo-theme-cards/_config.yml 进行配置

maupassant-hexo 主题使用

请参考 maupassant-hexo/_config.yml 进行配置

hexo-theme-redefine 主题使用

请参考 Redefine 官方文档 #comment 进行配置

Hexo-Theme-Solitude 主题使用

请参考 Solitude 文档 进行配置

在 Hugo 中使用

hugo-theme-stack 主题使用

请参考 Comments | Stackhugo-theme-stack/config.yaml#L83 进行配置

FixIt 主题使用

请参考 入门篇 - FixIt #主题配置hugo-fixit/FixIt/config.toml#L613-L624 进行配置

在 VitePress 中使用

请参考 VitePress 集成 twikoo 参考解决方案 进行配置。

通过 CDN 引入

提示

如果您使用的博客主题不支持 Twikoo,并且您不知道如何引入 Twikoo,您可以向博客主题开发者提交适配请求

html
<div id="tcomment"></div>
+<script src="https://cdn.jsdelivr.net/npm/twikoo@1.6.38/dist/twikoo.all.min.js"></script>
+<script>
+twikoo.init({
+  envId: '您的环境id', // 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app)
+  el: '#tcomment', // 容器元素
+  // region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai,腾讯云环境填 ap-shanghai 或 ap-guangzhou;Vercel 环境不填
+  // path: location.pathname, // 用于区分不同文章的自定义 js 路径,如果您的文章路径不是 location.pathname,需传此参数
+  // lang: 'zh-CN', // 用于手动设定评论区语言,支持的语言列表 https://github.com/twikoojs/twikoo/blob/main/src/client/utils/i18n/index.js
+})
+</script>

不同版本之间的区别

  • twikoo.all.min.js: 包含腾讯云云开发(tcb)的完整版本,如果您使用腾讯云云开发部署,请选择此版本
  • twikoo.min.js: 去除了腾讯云云开发(tcb)的精简版本,体积更小,适合所有非腾讯云云开发部署的用户
  • twikoo.nocss.js: 在完整版本的基础上剥离了样式,需要同时引入 twikoo.css 才能正常显示,适合想要魔改评论区样式的用户

更换 CDN 镜像

如果遇到默认 CDN 加载速度缓慢,可更换其他 CDN 镜像。以下为可供选择的公共 CDN,其中一些 CDN 可能需要数天时间同步最新版本:

  • https://s4.zstatic.net/ajax/libs/twikoo/1.6.38/twikoo.all.min.js
  • https://registry.npmmirror.com/twikoo/1.6.38/files/dist/twikoo.all.min.js
  • https://lib.baomitu.com/twikoo/1.6.38/twikoo.all.min.js
  • https://cdn.jsdelivr.net/npm/twikoo@1.6.38/dist/twikoo.all.min.js

注意

建议使用 CDN 引入 Twikoo 的用户在链接地址上锁定版本,以免将来 Twikoo 升级时受到非兼容性更新的影响。

注意

建议使用 CDN 引入 Twikoo 的用户在代码中加入 SRI 以确保完整性,例:

html
<script
+  src="https://cdn.jsdelivr.net/npm/twikoo@1.6.36/dist/twikoo.all.min.js"
+  integrity="sha384-4KfOjEinLSkv1i1J8TzlkC/RTnuiLoR1OLerVgjEKoH5djYtbf7mzEFsz9p3nfuA"
+  crossorigin="anonymous"></script>

其中 integrity 的值可以在 SRI Hash Generator 查询。

开启管理面板(腾讯云环境)

  1. 进入环境-登录授权,点击“自定义登录”右边的“私钥下载”,下载私钥文件
  2. 用文本编辑器打开私钥文件,复制全部内容
  3. 点击评论窗口的“小齿轮”图标,粘贴私钥文件内容,并设置管理员密码

配置好登录私钥之后无需留存私钥文件,请勿再次下载登录私钥,否则会导致之前配置的登录私钥失效。

开启管理面板(非腾讯云环境)

点击评论窗口的“小齿轮”图标,设置管理员密码

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json new file mode 100644 index 000000000..dfe599837 --- /dev/null +++ b/hashmap.json @@ -0,0 +1 @@ +{"api.md":"C_fIw0W7","backend.md":"DQdzpw3a","cms.md":"BdzG_o1m","configuration.md":"DCZb7-7K","en_api.md":"CW0wM_jf","en_backend.md":"Be2ntHYx","en_faq.md":"C_sMydwc","en_frontend.md":"CNDYx125","en_index.md":"DCYeD9X8","en_intro.md":"DkP2ESGI","en_link.md":"BKDF_GOK","en_quick-start.md":"DfWqNlSK","en_update.md":"BE1f21Kp","faq.md":"C9Rjxs18","frontend.md":"DAVaEwKX","index.md":"n-q4nD01","intro.md":"C3yQSchs","link.md":"FqUVzlOx","mongodb-atlas.md":"DTzY58WF","qq_api.md":"9FF6FGGE","quick-start.md":"Bj0dD2Y3","update.md":"DCykfFwB"} diff --git a/index.html b/index.html new file mode 100644 index 000000000..d15a428c4 --- /dev/null +++ b/index.html @@ -0,0 +1,26 @@ + + + + + + Twikoo | 一个简洁、安全、免费的静态网站评论系统 + + + + + + + + + + + + + + + +
Skip to content

Twikoo

网站评论系统

简洁、安全、免费

Twikoo

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/intro.html b/intro.html new file mode 100644 index 000000000..bb5b8268c --- /dev/null +++ b/intro.html @@ -0,0 +1,29 @@ + + + + + + Twikoo 文档 + + + + + + + + + + + + + + + + +
Skip to content
Twikoo
       

一个简洁、安全、免费的静态网站评论系统。
A simple, safe, free comment system.

简体中文 | English

特色

简单

  • 免费搭建(使用云开发 / Vercel / 私有服务器作为评论后台)
  • 简单部署(支持云开发 / Vercel 一键部署)

易用

  • 支持回复、点赞
  • 无需额外适配,支持搭配浅色主题与深色主题使用
  • 支持 API 调用,批量获取文章评论数、最新评论
  • 访客在昵称栏输入 QQ 号,会自动补全 QQ 昵称和 QQ 邮箱
  • 访客填写数字 QQ 邮箱,会使用 QQ 头像作为评论头像
  • 支持评论框粘贴图片(可禁用)
  • 支持插入图片(可禁用)
  • 支持去不图床、云开发图床
  • 支持插入表情(可禁用)
  • 支持 Ctrl + Enter 快捷回复
  • 评论框内容实时保存草稿,刷新不会丢失
  • 支持 Katex 公式
  • 支持按语言的代码高亮

安全

  • 隐私信息安全(通过云函数控制敏感字段(邮箱、IP、环境配置等)不会泄露)
  • 支持 Akismet 垃圾评论检测(需自行注册 akismet.com
  • 支持腾讯云内容安全垃圾评论检测(需自行注册 腾讯云内容安全
  • 支持人工审核模式
  • 防 XSS 注入
  • 支持限制每个 IP 每 10 分钟最多发表多少条评论

即时

  • 支持邮件提醒(访客和博主)
  • 支持微信提醒(仅针对博主,基于 Server酱,需自行注册)
  • 支持 QQ 提醒(仅针对博主,基于 Qmsg酱,需自行注册)
  • 支持 QQ 提醒(针对博主QQ或者群,基于 go-cqhttp,需自己有服务器)

个性

  • 支持自定义评论框背景图片
  • 支持自定义“博主”标识文字
  • 支持自定义通知邮件模板
  • 支持自定义评论框提示信息(placeholder)
  • 支持自定义表情列表(兼容 OwO 的数据格式
  • 支持自定义【昵称】【邮箱】【网址】必填 / 选填
  • 支持自定义代码高亮主题

便捷管理

  • 内嵌式管理面板,通过密码登录,可方便地查看评论、隐藏评论、删除评论、修改配置
  • 支持隐藏管理入口,通过输入暗号显示
  • 支持从 Valine、Artalk、Disqus 导入评论

缺点

  • 不支持 IE

预览

评论

评论

评论管理

评论管理

推送通知

推送通知

交流群

如果你想获取更新动态、建言献策、参与测试,欢迎加入讨论群:
1080829142

浏览器支持

提示

技术原因,不兼容 IE

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
iOS Safari
iOS Safari
Edgelast versionlast versionlast versionlast version

Generated by browsers-support-badges

更新日志 & 开发计划

更新日志 & 开发计划

特别感谢

图标设计:Maemo Lee

开发

如果您想在本地二次开发,可以参考以下命令:

sh
yarn dev # 开发 (http://localhost:9820/demo.html)
+yarn lint # 代码检查
+yarn build # 编译 (dist/twikoo.all.min.js)

如果您的改动能够帮助到更多人,欢迎提交 Pull Request!

国际化

支持简体中文、繁体中文、English。欢迎提交翻译 PR

许可

FOSSA Status

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/link.html b/link.html new file mode 100644 index 000000000..91f63952b --- /dev/null +++ b/link.html @@ -0,0 +1,26 @@ + + + + + + 相关文档 | Twikoo 文档 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/mongodb-atlas.html b/mongodb-atlas.html new file mode 100644 index 000000000..7b7401c30 --- /dev/null +++ b/mongodb-atlas.html @@ -0,0 +1,26 @@ + + + + + + MongoDB Atlas | Twikoo 文档 + + + + + + + + + + + + + + + +
Skip to content

MongoDB Atlas

MongoDB Atlas 是 MongoDB Inc 提供的 MongoDB 数据库托管服务。免费账户可以永久使用 500 MiB 的数据库,足够存储 Twikoo 评论使用。

  1. 申请 MongoDB AtLas 账号
  2. 创建免费 MongoDB 数据库,区域推荐选择离 Twikoo 后端(Vercel / Netlify / AWS Lambda / VPS)地理位置较近的数据中心以获得更低的数据库连接延迟。如果不清楚自己的后端在哪个区域,也可选择 AWS / Oregon (us-west-2),该数据中心基建成熟,故障率低,且使用 Oregon 州的清洁能源,较为环保
  3. 在 Database Access 页面点击 Add New Database User 创建数据库用户,Authentication Method 选 Password,在 Password Authentication 下设置数据库用户名和密码,建议点击 Auto Generate 自动生成一个不含特殊符号的强壮密码并妥善保存。点击 Database User Privileges 下方的 Add Built In Role,Select Role 选择 Atlas Admin,最后点击 Add User

  1. 在 Network Access 页面点击 Add IP Address 添加网络白名单。因为 Vercel / Netlify / Lambda 的出口地址不固定,因此 Access List Entry 输入 0.0.0.0/0(允许所有 IP 地址的连接)即可。如果 Twikoo 部署在自己的服务器上,这里可以填入固定 IP 地址。点击 Confirm 保存

  1. 在 Database 页面点击 Connect,连接方式选择 Drivers,并记录数据库连接字符串,请将连接字符串中的 <username>:<password> 修改为刚刚创建的数据库 用户名:密码

  1. (可选)默认的连接字符串没有指定数据库名称,Twikoo 会连接到默认的名为 test 的数据库。如果需要在同一个 MongoDB 里运行其他业务或供多个 Twikoo 实例使用,建立加入数据库名称并配置对应的 ACL。

连接字符串包含了连接到 MongoDB 数据库的所有信息,一旦泄露会导致评论被任何人添加、修改、删除,并有可能获取你的 SMTP、图床 token 等信息。请妥善记录这一字符串,之后需要填入到 Twikoo 的部署平台里。

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/quick-start.html b/quick-start.html new file mode 100644 index 000000000..77ae277fd --- /dev/null +++ b/quick-start.html @@ -0,0 +1,26 @@ + + + + + + 快速上手 | Twikoo 文档 + + + + + + + + + + + + + + + +
Skip to content

快速上手

Twikoo 分为云函数和前端两部分,若要在您的网站上集成 Twikoo,您需要同时部署云函数和前端,部署时请注意保持二者版本一致。

  • 云函数部署 有多种方式,请选择适合自己的部署平台。
  • 前端部署 有 2 种方式,如果您的网站主题支持 Twikoo,您只需在配置文件中指定 Twikoo 即可;如果您的网站主题不支持 Twikoo,您需要修改源码手动引入 Twikoo 的 js 文件并初始化。
  • 若您已部署旧版本 Twikoo,请参考 版本更新 升级云函数和前端版本。

Released under the MIT License.

+ + + + \ No newline at end of file diff --git a/twikoo-logo-home.png b/twikoo-logo-home.png new file mode 100644 index 000000000..c92c67da2 Binary files /dev/null and b/twikoo-logo-home.png differ diff --git a/twikoo-logo-mini.png b/twikoo-logo-mini.png new file mode 100644 index 000000000..462134075 Binary files /dev/null and b/twikoo-logo-mini.png differ diff --git a/update.html b/update.html new file mode 100644 index 000000000..736b4abb4 --- /dev/null +++ b/update.html @@ -0,0 +1,26 @@ + + + + + + 版本更新 | Twikoo 文档 + + + + + + + + + + + + + + + +
Skip to content

版本更新

不同部署方式的更新方式也不同,请对号入座。更新部署成功后,请不要忘记同时更新前端的 Twikoo CDN 地址中的 x.x.x 数字版本号,使之与云函数版本号相同,然后部署网站。

针对腾讯云一键部署的更新方式

登录环境-我的应用,输入

  • 来源地址:https://github.com/twikoojs/twikoo/tree/main
  • 部署分支:main

应用目录无需填写,点击“确定”,部署完成。

针对腾讯云手动部署的更新方式

登录环境-云函数,点击 twikoo,点击函数代码,打开 package.json 文件,将 "twikoo-func": "x.x.x" 其中的版本号修改为最新版本号,点击“保存并安装依赖”即可。

提示

如果您的云函数是 1.0.0 之前的版本,因为 1.0.0 版本修改了部署步骤,请先参考手动部署,从第 5 步开始,重新创建云函数,再按照此步骤更新。

如果升级后出现无法读取评论列表,云函数报错,请在函数编辑页面,删除 node_modules 目录(删除需要半分钟左右,请耐心等待删除完成),再点击保存并安装依赖。如果仍然不能解决,请删除并重新创建 Twikoo 云函数。

针对腾讯云命令行部署的更新方式

进入 Twikoo 源码目录,执行以下命令更新现有的云函数

sh
yarn deploy -e 您的环境id

针对 Vercel 部署的更新方式

  1. 进入 Vercel 仪表板 - twikoo - Settings - Git
  2. 点击 Connected Git Repository 下方的仓库地址
  3. 打开 package.json,点击编辑
  4. "twikoo-vercel": "latest" 其中的 latest 修改为最新版本号。点击 Commit changes
  5. 部署会自动触发,可以回到 Vercel 仪表板,查看部署状态

针对 Railway 和 Zeabur 部署的更新方式

  1. 登录 Github,找到部署时 fork 到自己账号下的名为 twikoo-zeabur 的仓库
  2. 打开 package.json,点击编辑
  3. "tkserver": "latest" 其中的 latest 修改为最新版本号。点击 Commit changes
  4. 部署会自动触发

针对 Netlify 部署的更新方式

  1. 登录 Github,找到部署时 fork 到自己账号下的名为 twikoo-netlify 的仓库
  2. 打开 package.json,点击编辑
  3. "twikoo-vercel": "latest" 其中的 latest 修改为最新版本号。点击 Commit changes
  4. 部署会自动触发

针对 Hugging Face 部署的更新方式

  1. 登录 Hugging Face,找到部署的 Space,点击上方 Settings,往下滚动找到并点击 Factory rebuild

针对私有部署的更新方式

  1. 停止旧版本 kill $(ps -ef | grep tkserver | grep -v 'grep' | awk '{print $2}')
  2. 拉取新版本 npm i -g tkserver@latest
  3. 启动新版本 nohup tkserver >> tkserver.log 2>&1 &

针对私有部署 (Docker) 的更新方式

  1. 拉取新版本 docker pull imaegoo/twikoo
  2. 停止旧版本容器 docker stop twikoo
  3. 删除旧版本容器 docker rm twikoo
  4. 启动新版本容器

自动更新

考虑到可用性和安全性问题,Twikoo 没有实现自动更新,也没有计划实现自动更新。如果您希望实现自动更新,可以参考 MHuiG 基于 Github 工作流的 twikoo-update 的实现方式。

Released under the MIT License.

+ + + + \ No newline at end of file