diff --git a/404.html b/404.html new file mode 100644 index 0000000..bc0e16b --- /dev/null +++ b/404.html @@ -0,0 +1 @@ +upcloudrabbit blog
Skip to content

404

页面未找到

但是,如果你不改变方向,并且一直寻找,最终可能会到达你要去的地方。

Power by upcloudrabbiit

\ No newline at end of file diff --git a/article/bdav8vie/index.html b/article/bdav8vie/index.html new file mode 100644 index 0000000..113598f --- /dev/null +++ b/article/bdav8vie/index.html @@ -0,0 +1,130 @@ +wait_notify | upcloudrabbit blog
Skip to content

wait_notify

约 679 字大约 2 分钟

2025-02-10

实现如下:

  1. 该版本的实现完全依赖 wait / notify
class Test {
+    public static int i = 0;
+    public static Object object = new Object();
+    public static void main(String[] args) {
+        Thread[] t = new Thread[3];
+        Thread t1 = new Thread(()-> {
+            while (i < 100) {
+                synchronized (object) {
+                    try {
+                        object.wait();
+                        // t2 线程唤醒 t1 线程后理应等待进入 wait,但是如果在 t2 线程进入 wait
+                        // 的这段时间内 t1 线程迅速输出并 notify 则此时会让 t1、t2 两个线程都
+                        // 进入 wait 造成活锁。因此 t1 线程 notify 之前必须保证 t2 线程状态
+                        // 是 wait
+                        while (!Thread.State.WAITING.equals(t[2].getState())) {
+                            object.wait(1);
+                        }
+                        System.out.println("t2:B" + i++);
+                        object.notify();
+                    } catch (Exception e) {
+                    }
+                }
+            }
+        });
+        Thread t2 = new Thread(() -> {
+            while (i < 100) {
+                synchronized (object) {
+                    try {
+                        while (!Thread.State.WAITING.equals(t[1].getState())) {
+                            object.wait(1);
+                        }
+                        System.out.println("t1:A" + i++);
+                        object.notify();
+                        object.wait();
+                    } catch (Exception e) {
+                    }
+                }
+            }
+        });
+        t[1] = t1;
+        t[2] = t2;
+        t1.start();	
+        t2.start();
+    }
+}
  1. 也可以不使用 wait / notify,以下代码需要在 jvm 启动参数上添加 -Xint使 jvm 仅在解释器模式下运行,不触发 c1、c2 的代码优化。以下代码在不加参数 -Xint时也能得到期望的结果,但是一旦把循环次数加到 2000 以上就会开始频繁出现线程安全问题,本质还是需要注意 c1、c2 对代码的优化。
public class Test {
+    private static int i = 0;
+    public static void main(String[] args) {
+        new Thread(() -> {
+            while (i < 99) {
+                if (i % 2 == 0) {
+                    System.out.println("t1: A");
+                    i++;
+                }
+            }
+        }).start();
+        new Thread(() -> {
+            while (i < 100) {
+                if (i % 2 == 1) {
+                    System.out.println("t2: B");
+                    i++;
+                }
+            }
+        }).start();
+    }
+}

wait / notify 顺序输出 A、B、C

解决方案:既然两个线程可用 wait / notify 交替输出,那么把3个线程当作 2 个线程问题即可解决,将线程 1 视为 1 个整体,2、3视为一个整体。此时需要两个对象监视器分别为 object1、object2,object1 控制 1、2,object2 控制 2,3。具体如图所示:

一个循环流程如下表:

时刻t1线程状态t2线程状态t3线程状态
0runingwait(object1)wait(object2)
1nofity(object1)wait(object1)wait(object2)
2wait(object1)runingwait(object2)
3wait(object1)notify(object2)wait(object2)
4wait(object1)wait(object2)runing
5wait(object1)wait(object2)notify(object2)
6wait(object1)notify(object1)wait(object2)
7runingwait(object1)wait(object2)

代码如下:

class test {
+    public static int i = 0;
+    public static Object object1 = new Object();
+    public static Object object2 = new Object();
+    public static void main(String[] args) {
+        Thread[] t = new Thread[4];
+        Thread t1 = new Thread(()-> {
+            while (i < 10000) {
+                synchronized (object2) {
+                    try {
+                        object2.wait();
+                        System.out.println("t3:" + i++);
+                        while (!Thread.State.WAITING.equals(t[2].getState())) {
+                            object2.wait(1);
+                        }
+                        object2.notify();
+                    } catch (Exception e) {
+                    }
+                }
+            }
+        });
+        Thread t2 = new Thread(()-> {
+            while (i < 10000) {
+                synchronized (object1) {
+                    try {
+                        object1.wait();
+                        synchronized (object2) {
+                            System.out.println("t2:" + i++);
+                            while (!Thread.State.WAITING.equals(t[1].getState())) {
+                                object2.wait(1);
+                            }
+                            object2.notify();
+                            object2.wait();
+                        }
+                        while (!Thread.State.WAITING.equals(t[3].getState())) {
+                            object1.wait(1);
+                        }
+                        object1.notify();
+                    } catch (Exception e) {
+                    }
+                }
+            }
+        });
+        Thread t3 = new Thread(()-> {
+            while (i < 10000) {
+                synchronized (object1) {
+                    try {
+                        System.out.println("t1:" + i++);
+                        while (!Thread.State.WAITING.equals(t[2].getState())) {
+                            object1.wait(1);
+                        }
+                        object1.notify();
+                        object1.wait();
+                    } catch (Exception e) {
+                    }
+                }
+            }
+        });
+        t[1] = t1;
+        t[2] = t2;
+        t[3] = t3;
+        t3.start();
+        t2.start();
+        t1.start();
+    }
+}

Power by upcloudrabbiit

\ No newline at end of file diff --git a/article/bds6nvb2/index.html b/article/bds6nvb2/index.html new file mode 100644 index 0000000..7b6a0db --- /dev/null +++ b/article/bds6nvb2/index.html @@ -0,0 +1,54 @@ +Markdown | upcloudrabbit blog
Skip to content

Markdown

约 753 字大约 3 分钟

markdown

2025-02-10

标题 2

标题 3

标题 4

标题 5
标题 6

加粗:加粗文字

斜体: 斜体文字

删除文字

内容 标记

数学表达式: (2n1)-(2^{n-1}) ~ 2n112^{n-1} -1

rωr(yωω)=(yωω){(logy)r+i=1r(1)Ir(ri+1)(logy)riωi}\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right) = \left(\frac {y^{\omega}} {\omega}\right) \left\{(\log y)^r + \sum_{i=1}^r \frac {(-1)^ Ir \cdots (r-i+1) (\log y)^{ri}} {\omega^i} \right\}

19th

H2O

内容居中

内容右对齐

  • 无序列表1
  • 无序列表2
  • 无序列表3
  1. 有序列表1
  2. 有序列表2
  3. 有序列表3
TablesAreCool
col 3 isright-aligned$1600
col 2 iscentered$12
zebra stripesare neat$1

引用内容

引用内容

链接

外部链接

Badge:

  • info badge
  • tip badge
  • warning badge
  • danger badge

图标:

  • home -
  • vscode -
  • twitter -

demo wrapper:

示例

main
aside

代码:

const a = 1
+const b = 2
+const c = a + b
+
+
+const obj = {
+  toLong: {
+    deep: {
+      deep: {
+        deep: {
+          value: 'this is to long text. this is to long text. this is to long text. this is to long text.', 
+        }
+      }
+    }
+  }
+}

代码分组:

tab1
const a = 1
+const b = 2
+const c = a + b

代码块高亮:

function foo() {
+  const a = 1
+
+  console.log(a)
+
+  const b = 2
+  const c = 3
+
+  console.log(a + b + c) 
+  console.log(a + b) 
+}

代码块聚焦:

function foo() {
+  const a = 1
+}

注释

注释内容 link inline code

const a = 1
+const b = 2
+const c = a + b

信息

信息内容 link inline code

const a = 1
+const b = 2
+const c = a + b

提示

提示内容 link inline code

const a = 1
+const b = 2
+const c = a + b

警告

警告内容 link inline code

const a = 1
+const b = 2
+const c = a + b

错误

错误内容 link inline code

const a = 1
+const b = 2
+const c = a + b

重要

重要内容 link inline code

const a = 1
+const b = 2
+const c = a + b

GFM alert:

note

相关信息

info

提示

tip

注意

warning

警告

caution

重要

important

代码演示:

常规示例

一个常规示例

选项卡:

标题1

内容区块

注意

标题1

内容区块

脚注:

脚注 1 链接[1]

脚注 2 链接[2]

行内的脚注[3] 定义。

重复的页脚定义[2:1]


  1. 脚注 可以包含特殊标记

    也可以由多个段落组成 ↩︎

  2. 脚注文字。 ↩︎ ↩︎

  3. 行内脚注文本 ↩︎

Power by upcloudrabbiit

\ No newline at end of file diff --git a/article/j6n6sw4o/index.html b/article/j6n6sw4o/index.html new file mode 100644 index 0000000..efdea99 --- /dev/null +++ b/article/j6n6sw4o/index.html @@ -0,0 +1 @@ +自定义组件 | upcloudrabbit blog
Skip to content

自定义组件

约 20 字小于 1 分钟

预览组件

2025-02-10

Power by upcloudrabbiit

\ No newline at end of file diff --git a/article/zpa70dxk/index.html b/article/zpa70dxk/index.html new file mode 100644 index 0000000..361cad6 --- /dev/null +++ b/article/zpa70dxk/index.html @@ -0,0 +1,8 @@ +test | upcloudrabbit blog
Skip to content

test

约 268 字小于 1 分钟

2025-02-10

The Site is generated using vuepress and vuepress-theme-plume

Install

npm i

Usage

# start dev server
+npm run Other:dev
+# build for production
+npm run Other:build
+# Other production build in local
+npm run Other:Other
+# update vuepress and theme
+npm run vp-update

Deploy to GitHub Pages

The plume theme has been created with GitHub Actions: .github/workflows/docs-deploy.yml. You also need to make the following settings in the GitHub repository:

    • If you are planning to deploy to https://<USERNAME>.github.io/, you can skip this step as base defaults to "/".
    • If you are planning to deploy to https://<USERNAME>.github.io/<REPO>/, meaning your repository URL is https://github.com/<USERNAME>/<REPO>, set base to "/<REPO>/".

To customize a domain name, please refer to Github Pages

Documents

Power by upcloudrabbiit

\ No newline at end of file diff --git a/assets/404.html-B0n372Wn.js b/assets/404.html-B0n372Wn.js new file mode 100644 index 0000000..a4d72d1 --- /dev/null +++ b/assets/404.html-B0n372Wn.js @@ -0,0 +1 @@ +import{_ as e,c as o,e as n,o as r}from"./app-DhYi4InN.js";const a={};function p(c,t){return r(),o("div",null,t[0]||(t[0]=[n("p",null,"404 Not Found",-1)]))}const s=e(a,[["render",p],["__file","404.html.vue"]]),i=JSON.parse('{"path":"/404.html","title":"","lang":"zh-CN","frontmatter":{"layout":"NotFound","description":"404 Not Found","head":[["meta",{"property":"og:url","content":"https://upcloudrabbit.github.com/blog/404.html"}],["meta",{"property":"og:site_name","content":"upcloudrabbit blog"}],["meta",{"property":"og:description","content":"404 Not Found"}],["meta",{"property":"og:type","content":"website"}],["meta",{"property":"og:locale","content":"zh-CN"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"WebPage\\",\\"name\\":\\"\\",\\"description\\":\\"404 Not Found\\"}"]]},"headers":[],"readingTime":{"minutes":0.01,"words":3},"git":{},"autoDesc":true,"filePathRelative":null}');export{s as comp,i as data}; diff --git a/assets/CodeEditor-DRQb67VB.js b/assets/CodeEditor-DRQb67VB.js new file mode 100644 index 0000000..2d8d43c --- /dev/null +++ b/assets/CodeEditor-DRQb67VB.js @@ -0,0 +1,13 @@ +var bn=Object.defineProperty;var yn=(n,e,t)=>e in n?bn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var g=(n,e,t)=>yn(n,typeof e!="symbol"?e+"":e,t);import{k as kn,d as ct,s as lt,w as wn,y as _n,R as vn,S as Cn,U as Sn,_ as An,c as xn,o as Rn,V as Pn,K as Nn,L as Tn,e as En}from"./app-DhYi4InN.js";const Ln={grammars:{kotlin:{displayName:"Kotlin",fileTypes:["kt","kts"],name:"kotlin",patterns:[{include:"#import"},{include:"#package"},{include:"#code"}],repository:{"annotation-simple":{match:"(?<([^<>]|\\g)+>)?"},code:{patterns:[{include:"#comments"},{include:"#keywords"},{include:"#annotation-simple"},{include:"#annotation-site-list"},{include:"#annotation-site"},{include:"#class-declaration"},{include:"#object"},{include:"#type-alias"},{include:"#function"},{include:"#variable-declaration"},{include:"#type-constraint"},{include:"#type-annotation"},{include:"#function-call"},{include:"#method-reference"},{include:"#key"},{include:"#string"},{include:"#string-empty"},{include:"#string-multiline"},{include:"#character"},{include:"#lambda-arrow"},{include:"#operators"},{include:"#self-reference"},{include:"#decimal-literal"},{include:"#hex-literal"},{include:"#binary-literal"},{include:"#boolean-literal"},{include:"#null-literal"}]},"comment-block":{begin:"/\\*(?!\\*)",end:"\\*/",name:"comment.block.kotlin"},"comment-javadoc":{patterns:[{begin:"/\\*\\*",end:"\\*/",name:"comment.block.javadoc.kotlin",patterns:[{match:"@(return|constructor|receiver|sample|see|author|since|suppress)\\b",name:"keyword.other.documentation.javadoc.kotlin"},{captures:{1:{name:"keyword.other.documentation.javadoc.kotlin"},2:{name:"variable.parameter.kotlin"}},match:"(@param|@property)\\s+(\\S+)"},{captures:{1:{name:"keyword.other.documentation.javadoc.kotlin"},2:{name:"variable.parameter.kotlin"}},match:"(@param)\\[(\\S+)\\]"},{captures:{1:{name:"keyword.other.documentation.javadoc.kotlin"},2:{name:"entity.name.type.class.kotlin"}},match:"(@(?:exception|throws))\\s+(\\S+)"},{captures:{1:{name:"keyword.other.documentation.javadoc.kotlin"},2:{name:"entity.name.type.class.kotlin"},3:{name:"variable.parameter.kotlin"}},match:"{(@link)\\s+(\\S+)?#([\\w$]+\\s*\\([^\\(\\)]*\\)).*}"}]}]},"comment-line":{begin:"//",end:"$",name:"comment.line.double-slash.kotlin"},comments:{patterns:[{include:"#comment-line"},{include:"#comment-block"},{include:"#comment-javadoc"}]},"control-keywords":{match:"\\b(if|else|while|do|when|try|throw|break|continue|return|for)\\b",name:"keyword.control.kotlin"},"decimal-literal":{match:"\\b\\d[\\d_]*(\\.[\\d_]+)?((e|E)\\d+)?(u|U)?(L|F|f)?\\b",name:"constant.numeric.decimal.kotlin"},function:{captures:{1:{name:"keyword.hard.fun.kotlin"},2:{patterns:[{include:"#type-parameter"}]},4:{name:"entity.name.type.class.extension.kotlin"},5:{name:"entity.name.function.declaration.kotlin"}},match:"\\b(fun)\\b\\s*(?<([^<>]|\\g)+>)?\\s*(?:(?:(\\w+)\\.)?(\\b\\w+\\b|`[^`]+`))?"},"function-call":{captures:{1:{name:"entity.name.function.call.kotlin"},2:{patterns:[{include:"#type-parameter"}]}},match:"\\??\\.?(\\b\\w+\\b|`[^`]+`)\\s*(?<([^<>]|\\g)+>)?\\s*(?=[({])"},"hard-keywords":{match:"\\b(as|typeof|is|in)\\b",name:"keyword.hard.kotlin"},"hex-literal":{match:"0(x|X)[A-Fa-f0-9][A-Fa-f0-9_]*(u|U)?",name:"constant.numeric.hex.kotlin"},import:{begin:"\\b(import)\\b\\s*",beginCaptures:{1:{name:"keyword.soft.kotlin"}},contentName:"entity.name.package.kotlin",end:";|$",name:"meta.import.kotlin",patterns:[{include:"#comments"},{include:"#hard-keywords"},{match:"\\*",name:"variable.language.wildcard.kotlin"}]},key:{captures:{1:{name:"variable.parameter.kotlin"},2:{name:"keyword.operator.assignment.kotlin"}},match:"\\b(\\w=)\\s*(=)"},keywords:{patterns:[{include:"#prefix-modifiers"},{include:"#postfix-modifiers"},{include:"#soft-keywords"},{include:"#hard-keywords"},{include:"#control-keywords"}]},"lambda-arrow":{match:"->",name:"storage.type.function.arrow.kotlin"},"method-reference":{captures:{1:{name:"entity.name.function.reference.kotlin"}},match:"\\??::(\\b\\w+\\b|`[^`]+`)"},"null-literal":{match:"\\bnull\\b",name:"constant.language.null.kotlin"},object:{captures:{1:{name:"keyword.hard.object.kotlin"},2:{name:"entity.name.type.object.kotlin"}},match:"\\b(object)(?:\\s+(\\b\\w+\\b|`[^`]+`))?"},operators:{patterns:[{match:"(===?|\\!==?|<=|>=|<|>)",name:"keyword.operator.comparison.kotlin"},{match:"([+*/%-]=)",name:"keyword.operator.assignment.arithmetic.kotlin"},{match:"(=)",name:"keyword.operator.assignment.kotlin"},{match:"([+*/%-])",name:"keyword.operator.arithmetic.kotlin"},{match:"(!|&&|\\|\\|)",name:"keyword.operator.logical.kotlin"},{match:"(--|\\+\\+)",name:"keyword.operator.increment-decrement.kotlin"},{match:"(\\.\\.)",name:"keyword.operator.range.kotlin"}]},package:{begin:"\\b(package)\\b\\s*",beginCaptures:{1:{name:"keyword.hard.package.kotlin"}},contentName:"entity.name.package.kotlin",end:";|$",name:"meta.package.kotlin",patterns:[{include:"#comments"}]},"postfix-modifiers":{match:"\\b(where|by|get|set)\\b",name:"storage.modifier.other.kotlin"},"prefix-modifiers":{match:"\\b(abstract|final|enum|open|annotation|sealed|data|override|final|lateinit|private|protected|public|internal|inner|companion|noinline|crossinline|vararg|reified|tailrec|operator|infix|inline|external|const|suspend|value)\\b",name:"storage.modifier.other.kotlin"},"self-reference":{match:"\\b(this|super)(@\\w+)?\\b",name:"variable.language.this.kotlin"},"soft-keywords":{match:"\\b(init|catch|finally|field)\\b",name:"keyword.soft.kotlin"},string:{begin:'(?<([^<>]|\\g)+>)?"},"type-annotation":{captures:{0:{patterns:[{include:"#type-parameter"}]}},match:`(?|(?[<(]([^<>()"']|\\g)+[)>]))+`},"type-parameter":{patterns:[{match:"\\b\\w+\\b",name:"entity.name.type.kotlin"},{match:"\\b(in|out)\\b",name:"storage.modifier.kotlin"}]},"unescaped-annotation":{match:"\\b[\\w\\.]+\\b",name:"entity.name.type.annotation.kotlin"},"variable-declaration":{captures:{1:{name:"keyword.hard.kotlin"},2:{patterns:[{include:"#type-parameter"}]}},match:"\\b(val|var)\\b\\s*(?<([^<>]|\\g)+>)?"}},scopeName:"source.kotlin"},go:{displayName:"Go",name:"go",patterns:[{include:"#statements"}],repository:{after_control_variables:{captures:{1:{patterns:[{include:"#type-declarations-without-brackets"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"(?:\\w+)",name:"variable.other.go"}]}},match:"(?:(?<=\\brange\\b|\\bswitch\\b|\\;|\\bif\\b|\\bfor\\b|\\<|\\>|\\<\\=|\\>\\=|\\=\\=|\\!\\=|\\w(?:\\+|/|\\-|\\*|\\%)|\\w(?:\\+|/|\\-|\\*|\\%)\\=|\\|\\||\\&\\&)(?:\\s*)((?![\\[\\]]+)[[:alnum:]\\-\\_\\!\\.\\[\\]\\<\\>\\=\\*/\\+\\%\\:]+)(?:\\s*)(?=\\{))"},brackets:{patterns:[{begin:"\\{",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.curly.go"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"$self"}]},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"$self"}]},{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.square.go"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"$self"}]}]},built_in_functions:{patterns:[{match:"\\b(append|cap|close|complex|copy|delete|imag|len|panic|print|println|real|recover|min|max|clear)\\b(?=\\()",name:"entity.name.function.support.builtin.go"},{begin:"(?:(\\bnew\\b)(\\())",beginCaptures:{1:{name:"entity.name.function.support.builtin.go"},2:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#functions"},{include:"#struct_variables_types"},{include:"#type-declarations"},{include:"#generic_types"},{match:"(?:\\w+)",name:"entity.name.type.go"},{include:"$self"}]},{begin:"(?:(\\bmake\\b)(?:(\\()((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?:[\\[\\]\\*]+)?(?:(?!\\bmap\\b)(?:[\\w\\.]+))?(\\[(?:(?:[\\S]+)(?:(?:\\,\\s*(?:[\\S]+))*))?\\])?(?:\\,)?)?))",beginCaptures:{1:{name:"entity.name.function.support.builtin.go"},2:{name:"punctuation.definition.begin.bracket.round.go"},3:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"\\w+",name:"entity.name.type.go"}]}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"$self"}]}]},comments:{patterns:[{begin:"(\\/\\*)",beginCaptures:{1:{name:"punctuation.definition.comment.go"}},end:"(\\*\\/)",endCaptures:{1:{name:"punctuation.definition.comment.go"}},name:"comment.block.go"},{begin:"(\\/\\/)",beginCaptures:{1:{name:"punctuation.definition.comment.go"}},end:"(?:\\n|$)",name:"comment.line.double-slash.go"}]},const_assignment:{patterns:[{captures:{1:{patterns:[{include:"#delimiters"},{match:"\\w+",name:"variable.other.constant.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#generic_types"},{match:"\\(",name:"punctuation.definition.begin.bracket.round.go"},{match:"\\)",name:"punctuation.definition.end.bracket.round.go"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\w+",name:"entity.name.type.go"}]}},match:"(?:(?<=\\bconst\\b)(?:\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:\\=)?)?)"},{begin:"(?:(?<=\\bconst\\b)(?:\\s*)(\\())",beginCaptures:{1:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{captures:{1:{patterns:[{include:"#delimiters"},{match:"\\w+",name:"variable.other.constant.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#generic_types"},{match:"\\(",name:"punctuation.definition.begin.bracket.round.go"},{match:"\\)",name:"punctuation.definition.end.bracket.round.go"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\w+",name:"entity.name.type.go"}]}},match:"(?:(?:^\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:\\=)?)?)"},{include:"$self"}]}]},delimiters:{patterns:[{match:"\\,",name:"punctuation.other.comma.go"},{match:"\\.(?!\\.\\.)",name:"punctuation.other.period.go"},{match:":(?!=)",name:"punctuation.other.colon.go"}]},double_parentheses_types:{captures:{1:{patterns:[{include:"#type-declarations-without-brackets"},{match:"\\(",name:"punctuation.definition.begin.bracket.round.go"},{match:"\\)",name:"punctuation.definition.end.bracket.round.go"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\w+",name:"entity.name.type.go"}]}},match:"(?:(?\\-]+(?:\\s*)(?:\\/(?:\\/|\\*).*)?)$)"},{include:"$self"}]},function_param_types:{patterns:[{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#type-declarations-without-brackets"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.parameter.go"}]}},match:"((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)\\s+(?=(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\[\\]\\*]+)?\\b(?:struct|interface)\\b\\s*\\{)"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.parameter.go"}]}},match:"(?:(?:(?<=\\()|^\\s*)((?:(?:\\b\\w+\\,\\s*)+)(?:/(?:/|\\*).*)?)$)"},{captures:{1:{patterns:[{include:"#delimiters"},{match:"\\w+",name:"variable.parameter.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:"(?:((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)(?:\\s+)((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:(?:(?:[\\w\\[\\]\\.\\*]+)?(?:(?:\\bfunc\\b\\((?:[^\\)]+)?\\))(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s*))+(?:(?:(?:[\\w\\*\\.\\[\\]]+)|(?:\\((?:[^\\)]+)?\\))))?)|(?:(?:[\\[\\]\\*]+)?[\\w\\*\\.]+(?:\\[(?:[^\\]]+)\\])?(?:[\\w\\.\\*]+)?)+)))"},{begin:"(?:([\\w\\.\\*]+)?(\\[))",beginCaptures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]},2:{name:"punctuation.definition.begin.bracket.square.go"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#generic_param_types"}]},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"}]},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:"([\\w\\.]+)"},{include:"$self"}]},functions:{begin:"(?:(\\bfunc\\b)(?=\\())",beginCaptures:{1:{name:"keyword.function.go"}},end:"(?:(?<=\\))(\\s*(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?((?:(?:\\s*(?:(?:[\\[\\]\\*]+)?[\\w\\.\\*]+)?(?:(?:\\[(?:(?:[\\w\\.\\*]+)?(?:\\[(?:[^\\]]+)?\\])?(?:\\,\\s+)?)+\\])|(?:\\((?:[^\\)]+)?\\)))?(?:[\\w\\.\\*]+)?)(?:\\s*)(?=\\{))|(?:\\s*(?:(?:(?:[\\[\\]\\*]+)?(?!\\bfunc\\b)(?:[\\w\\.\\*]+)(?:\\[(?:(?:[\\w\\.\\*]+)?(?:\\[(?:[^\\]]+)?\\])?(?:\\,\\s+)?)+\\])?(?:[\\w\\.\\*]+)?)|(?:\\((?:[^\\)]+)?\\)))))?)",endCaptures:{1:{patterns:[{include:"#type-declarations"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},patterns:[{include:"#parameter-variable-types"}]},functions_inline:{captures:{1:{name:"keyword.function.go"},2:{patterns:[{include:"#type-declarations-without-brackets"},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"},{include:"$self"}]},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\{",name:"punctuation.definition.begin.bracket.curly.go"},{match:"\\}",name:"punctuation.definition.end.bracket.curly.go"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:"(?:(\\bfunc\\b)((?:\\((?:[^/]*?)\\))(?:\\s+)(?:\\((?:[^/]*?)\\)))(?:\\s+)(?=\\{))"},generic_param_types:{patterns:[{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#type-declarations-without-brackets"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.parameter.go"}]}},match:"((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)\\s+(?=(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\[\\]\\*]+)?\\b(?:struct|interface)\\b\\s*\\{)"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.parameter.go"}]}},match:"(?:(?:(?<=\\()|^\\s*)((?:(?:\\b\\w+\\,\\s*)+)(?:/(?:/|\\*).*)?)$)"},{captures:{1:{patterns:[{include:"#delimiters"},{match:"\\w+",name:"variable.parameter.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"(?:\\w+)",name:"entity.name.type.go"}]},3:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:"(?:((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)(?:\\s+)((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:(?:(?:[\\w\\[\\]\\.\\*]+)?(?:(?:\\bfunc\\b\\((?:[^\\)]+)?\\))(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s*))+(?:(?:(?:[\\w\\*\\.]+)|(?:\\((?:[^\\)]+)?\\))))?)|(?:(?:(?:[\\w\\*\\.\\~]+)|(?:\\[(?:(?:[\\w\\.\\*]+)?(?:\\[(?:[^\\]]+)?\\])?(?:\\,\\s+)?)+\\]))(?:[\\w\\.\\*]+)?)+)))"},{begin:"(?:([\\w\\.\\*]+)?(\\[))",beginCaptures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]},2:{name:"punctuation.definition.begin.bracket.square.go"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#generic_param_types"}]},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"}]},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:"(?:\\b([\\w\\.]+))"},{include:"$self"}]},generic_types:{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]},2:{patterns:[{include:"#parameter-variable-types"}]}},match:"(?:([\\w\\.\\*]+)(\\[(?:[^\\]]+)?\\]))"},"group-functions":{patterns:[{include:"#function_declaration"},{include:"#functions_inline"},{include:"#functions"},{include:"#built_in_functions"},{include:"#support_functions"}]},"group-types":{patterns:[{include:"#other_struct_interface_expressions"},{include:"#type_assertion_inline"},{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#single_type"},{include:"#multi_types"},{include:"#struct_interface_declaration"},{include:"#double_parentheses_types"},{include:"#switch_types"},{include:"#type-declarations"}]},"group-variables":{patterns:[{include:"#const_assignment"},{include:"#var_assignment"},{include:"#variable_assignment"},{include:"#label_loop_variables"},{include:"#slice_index_variables"},{include:"#property_variables"},{include:"#switch_select_case_variables"},{include:"#other_variables"}]},import:{patterns:[{begin:"\\b(import)\\s+",beginCaptures:{1:{name:"keyword.control.import.go"}},end:"(?!\\G)",patterns:[{include:"#imports"}]}]},imports:{patterns:[{captures:{1:{patterns:[{include:"#delimiters"},{match:"(?:\\w+)",name:"variable.other.import.go"}]},2:{name:"string.quoted.double.go"},3:{name:"punctuation.definition.string.begin.go"},4:{name:"entity.name.import.go"},5:{name:"punctuation.definition.string.end.go"}},match:'(\\s*[\\w\\.]+)?\\s*((")([^"]*)("))'},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.imports.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.imports.end.bracket.round.go"}},patterns:[{include:"#comments"},{include:"#imports"}]},{include:"$self"}]},interface_variables_types:{begin:"(\\binterface\\b)\\s*(\\{)",beginCaptures:{1:{name:"keyword.interface.go"},2:{name:"punctuation.definition.begin.bracket.curly.go"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#interface_variables_types_field"},{include:"$self"}]},interface_variables_types_field:{patterns:[{include:"#support_functions"},{include:"#type-declarations-without-brackets"},{begin:"(?:([\\w\\.\\*]+)?(\\[))",beginCaptures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]},2:{name:"punctuation.definition.begin.bracket.square.go"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#generic_param_types"}]},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"}]},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]}},match:"([\\w\\.]+)"}]},keywords:{patterns:[{match:"\\b(break|case|continue|default|defer|else|fallthrough|for|go|goto|if|range|return|select|switch)\\b",name:"keyword.control.go"},{match:"\\bchan\\b",name:"keyword.channel.go"},{match:"\\bconst\\b",name:"keyword.const.go"},{match:"\\bvar\\b",name:"keyword.var.go"},{match:"\\bfunc\\b",name:"keyword.function.go"},{match:"\\binterface\\b",name:"keyword.interface.go"},{match:"\\bmap\\b",name:"keyword.map.go"},{match:"\\bstruct\\b",name:"keyword.struct.go"},{match:"\\bimport\\b",name:"keyword.control.import.go"},{match:"\\btype\\b",name:"keyword.type.go"}]},label_loop_variables:{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.other.label.go"}]}},match:"((?:^\\s*\\w+:\\s*$)|(?:^\\s*(?:\\bbreak\\b|\\bgoto\\b|\\bcontinue\\b)\\s+\\w+(?:\\s*/(?:/|\\*)\\s*.*)?$))"},language_constants:{captures:{1:{name:"constant.language.boolean.go"},2:{name:"constant.language.null.go"},3:{name:"constant.language.iota.go"}},match:"\\b(?:(true|false)|(nil)|(iota))\\b"},map_types:{begin:"(?:(\\bmap\\b)(\\[))",beginCaptures:{1:{name:"keyword.map.go"},2:{name:"punctuation.definition.begin.bracket.square.go"}},end:"(?:(\\])((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?!(?:[\\[\\]\\*]+)?\\b(?:func|struct|map)\\b)(?:[\\*\\[\\]]+)?(?:[\\w\\.]+)(?:\\[(?:(?:[\\w\\.\\*\\[\\]\\{\\}]+)(?:(?:\\,\\s*(?:[\\w\\.\\*\\[\\]\\{\\}]+))*))?\\])?)?)",endCaptures:{1:{name:"punctuation.definition.end.bracket.square.go"},2:{patterns:[{include:"#type-declarations-without-brackets"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\w+",name:"entity.name.type.go"}]}},patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{include:"#functions"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\{",name:"punctuation.definition.begin.bracket.curly.go"},{match:"\\}",name:"punctuation.definition.end.bracket.curly.go"},{match:"\\(",name:"punctuation.definition.begin.bracket.round.go"},{match:"\\)",name:"punctuation.definition.end.bracket.round.go"},{match:"\\w+",name:"entity.name.type.go"}]},multi_types:{begin:"(\\btype\\b)\\s*(\\()",beginCaptures:{1:{name:"keyword.type.go"},2:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#struct_variables_types"},{include:"#interface_variables_types"},{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"(?:\\w+)",name:"entity.name.type.go"}]},numeric_literals:{captures:{0:{patterns:[{begin:"(?=.)",end:"(?:\\n|$)",patterns:[{captures:{1:{name:"constant.numeric.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},2:{name:"punctuation.separator.constant.numeric.go"},3:{name:"constant.numeric.decimal.point.go"},4:{name:"constant.numeric.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},5:{name:"punctuation.separator.constant.numeric.go"},6:{name:"keyword.other.unit.exponent.decimal.go"},7:{name:"keyword.operator.plus.exponent.decimal.go"},8:{name:"keyword.operator.minus.exponent.decimal.go"},9:{name:"constant.numeric.exponent.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},10:{name:"keyword.other.unit.imaginary.go"},11:{name:"constant.numeric.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},12:{name:"punctuation.separator.constant.numeric.go"},13:{name:"keyword.other.unit.exponent.decimal.go"},14:{name:"keyword.operator.plus.exponent.decimal.go"},15:{name:"keyword.operator.minus.exponent.decimal.go"},16:{name:"constant.numeric.exponent.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},17:{name:"keyword.other.unit.imaginary.go"},18:{name:"constant.numeric.decimal.point.go"},19:{name:"constant.numeric.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},20:{name:"punctuation.separator.constant.numeric.go"},21:{name:"keyword.other.unit.exponent.decimal.go"},22:{name:"keyword.operator.plus.exponent.decimal.go"},23:{name:"keyword.operator.minus.exponent.decimal.go"},24:{name:"constant.numeric.exponent.decimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},25:{name:"keyword.other.unit.imaginary.go"},26:{name:"keyword.other.unit.hexadecimal.go"},27:{name:"constant.numeric.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},28:{name:"punctuation.separator.constant.numeric.go"},29:{name:"constant.numeric.hexadecimal.go"},30:{name:"constant.numeric.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},31:{name:"punctuation.separator.constant.numeric.go"},32:{name:"keyword.other.unit.exponent.hexadecimal.go"},33:{name:"keyword.operator.plus.exponent.hexadecimal.go"},34:{name:"keyword.operator.minus.exponent.hexadecimal.go"},35:{name:"constant.numeric.exponent.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},36:{name:"keyword.other.unit.imaginary.go"},37:{name:"keyword.other.unit.hexadecimal.go"},38:{name:"constant.numeric.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},39:{name:"punctuation.separator.constant.numeric.go"},40:{name:"keyword.other.unit.exponent.hexadecimal.go"},41:{name:"keyword.operator.plus.exponent.hexadecimal.go"},42:{name:"keyword.operator.minus.exponent.hexadecimal.go"},43:{name:"constant.numeric.exponent.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},44:{name:"keyword.other.unit.imaginary.go"},45:{name:"keyword.other.unit.hexadecimal.go"},46:{name:"constant.numeric.hexadecimal.go"},47:{name:"constant.numeric.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},48:{name:"punctuation.separator.constant.numeric.go"},49:{name:"keyword.other.unit.exponent.hexadecimal.go"},50:{name:"keyword.operator.plus.exponent.hexadecimal.go"},51:{name:"keyword.operator.minus.exponent.hexadecimal.go"},52:{name:"constant.numeric.exponent.hexadecimal.go",patterns:[{match:"(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])",name:"punctuation.separator.constant.numeric.go"}]},53:{name:"keyword.other.unit.imaginary.go"}},match:"(?:(?:(?:(?:(?:\\G(?=[0-9.])(?!0[xXbBoO])([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=[0-9])\\.|\\.(?=[0-9])))([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?:(?=|<(?!<)|>(?!>))",name:"keyword.operator.comparison.go"},{match:"(&&|\\|\\||!)",name:"keyword.operator.logical.go"},{match:"(=|\\+=|\\-=|\\|=|\\^=|\\*=|/=|:=|%=|<<=|>>=|&\\^=|&=)",name:"keyword.operator.assignment.go"},{match:"(\\+|\\-|\\*|/|%)",name:"keyword.operator.arithmetic.go"},{match:"(&(?!\\^)|\\||\\^|&\\^|<<|>>|\\~)",name:"keyword.operator.arithmetic.bitwise.go"},{match:"\\.\\.\\.",name:"keyword.operator.ellipsis.go"}]},other_struct_interface_expressions:{patterns:[{include:"#after_control_variables"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]},2:{patterns:[{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.begin.bracket.square.go"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.end.bracket.square.go"}},patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"},{include:"$self"}]}]}},match:"(\\b[\\w\\.]+)(\\[(?:[^\\]]+)?\\])?(?=\\{)(?\\|\\&]+\\:)|(?:\\:\\b[\\w\\.\\*\\+/\\-\\%\\<\\>\\|\\&]+))(?:\\b[\\w\\.\\*\\+/\\-\\%\\<\\>\\|\\&]+)?(?:\\:\\b[\\w\\.\\*\\+/\\-\\%\\<\\>\\|\\&]+)?)(?=\\])"},statements:{patterns:[{include:"#package_name"},{include:"#import"},{include:"#syntax_errors"},{include:"#group-functions"},{include:"#group-types"},{include:"#group-variables"},{include:"#field_hover"}]},storage_types:{patterns:[{match:"\\bbool\\b",name:"storage.type.boolean.go"},{match:"\\bbyte\\b",name:"storage.type.byte.go"},{match:"\\berror\\b",name:"storage.type.error.go"},{match:"\\b(complex(64|128)|float(32|64)|u?int(8|16|32|64)?)\\b",name:"storage.type.numeric.go"},{match:"\\brune\\b",name:"storage.type.rune.go"},{match:"\\bstring\\b",name:"storage.type.string.go"},{match:"\\buintptr\\b",name:"storage.type.uintptr.go"},{match:"\\bany\\b",name:"entity.name.type.any.go"}]},string_escaped_char:{patterns:[{match:`\\\\([0-7]{3}|[abfnrtv\\\\'"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})`,name:"constant.character.escape.go"},{match:`\\\\[^0-7xuUabfnrtv\\'"]`,name:"invalid.illegal.unknown-escape.go"}]},string_literals:{patterns:[{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.go"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.go"}},name:"string.quoted.double.go",patterns:[{include:"#string_escaped_char"},{include:"#string_placeholder"}]}]},string_placeholder:{patterns:[{match:"%(\\[\\d+\\])?([\\+#\\-0\\x20]{,2}((\\d+|\\*)?(\\.?(\\d+|\\*|(\\[\\d+\\])\\*?)?(\\[\\d+\\])?)?))?[vT%tbcdoqxXUbeEfFgGspw]",name:"constant.other.placeholder.go"}]},struct_interface_declaration:{captures:{1:{name:"keyword.type.go"},2:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]}},match:"(?:(?:^\\s*)(\\btype\\b)(?:\\s*)([\\w\\.]+))"},struct_variable_types_fields_multi:{patterns:[{begin:"(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\bstruct\\b)(?:\\s*)(\\{))",beginCaptures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.other.property.go"}]},2:{name:"keyword.struct.go"},3:{name:"punctuation.definition.begin.bracket.curly.go"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#struct_variables_types_fields"},{include:"$self"}]},{begin:"(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\binterface\\b)(?:\\s*)(\\{))",beginCaptures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.other.property.go"}]},2:{name:"keyword.interface.go"},3:{name:"punctuation.definition.begin.bracket.curly.go"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#interface_variables_types_field"},{include:"$self"}]},{begin:"(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\bfunc\\b)(?:\\s*)(\\())",beginCaptures:{1:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"variable.other.property.go"}]},2:{name:"keyword.function.go"},3:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{include:"#function_param_types"},{include:"$self"}]},{include:"#parameter-variable-types"}]},struct_variables_types:{begin:"(\\bstruct\\b)\\s*(\\{)",beginCaptures:{1:{name:"keyword.struct.go"},2:{name:"punctuation.definition.begin.bracket.curly.go"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{include:"#struct_variables_types_fields"},{include:"$self"}]},struct_variables_types_fields:{patterns:[{include:"#struct_variable_types_fields_multi"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:"(?:(?<=\\{)\\s*((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\w\\.\\*\\[\\]]+))\\s*(?=\\}))"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"variable.other.property.go"}]},2:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:"(?:(?<=\\{)\\s*((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\w\\.\\*\\[\\]]+))\\s*(?=\\}))"},{captures:{1:{patterns:[{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"variable.other.property.go"}]},2:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:"(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\S]+)(?:\\;)?))"}]}},match:"(?:(?<=\\{)((?:\\s*(?:(?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?(?:(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\S]+)(?:\\;)?))+)\\s*(?=\\}))"},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:'(?:((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\w\\.\\*]+)\\s*)(?:(?=\\`|\\/|")|$))'},{captures:{1:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"variable.other.property.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#parameter-variable-types"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:'(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))([^\\`"\\/]+))'}]},support_functions:{captures:{1:{name:"entity.name.function.support.go"},2:{patterns:[{include:"#type-declarations"},{match:"\\d\\w*",name:"invalid.illegal.identifier.go"},{match:"\\w+",name:"entity.name.function.support.go"}]},3:{patterns:[{include:"#type-declarations-without-brackets"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\{",name:"punctuation.definition.begin.bracket.curly.go"},{match:"\\}",name:"punctuation.definition.end.bracket.curly.go"},{match:"\\w+",name:"entity.name.type.go"}]}},match:`(?:(?:((?<=\\.)\\b\\w+)|(\\b\\w+))(\\[(?:(?:[\\w\\.\\*\\[\\]\\{\\}"\\']+)(?:(?:\\,\\s*(?:[\\w\\.\\*\\[\\]\\{\\}]+))*))?\\])?(?=\\())`},switch_select_case_variables:{captures:{1:{name:"keyword.control.go"},2:{patterns:[{include:"#type-declarations"},{include:"#support_functions"},{include:"#variable_assignment"},{match:"\\w+",name:"variable.other.go"}]}},match:"(?:(?:^\\s*(\\bcase\\b))(?:\\s+)([\\s\\S]+(?:\\:)\\s*(?:/(?:/|\\*).*)?)$)"},switch_types:{begin:"(?<=\\bswitch\\b)(?:\\s*)(?:(\\w+\\s*\\:\\=)?\\s*([\\w\\.\\*\\(\\)\\[\\]\\+/\\-\\%\\<\\>\\|\\&]+))(\\.\\(\\btype\\b\\)\\s*)(\\{)",beginCaptures:{1:{patterns:[{include:"#operators"},{match:"\\w+",name:"variable.other.assignment.go"}]},2:{patterns:[{include:"#support_functions"},{include:"#type-declarations"},{match:"\\w+",name:"variable.other.go"}]},3:{patterns:[{include:"#delimiters"},{include:"#brackets"},{match:"\\btype\\b",name:"keyword.type.go"}]},4:{name:"punctuation.definition.begin.bracket.curly.go"}},end:"(?:\\})",endCaptures:{0:{name:"punctuation.definition.end.bracket.curly.go"}},patterns:[{captures:{1:{name:"keyword.control.go"},2:{patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]},3:{name:"punctuation.other.colon.go"},4:{patterns:[{include:"#comments"}]}},match:"(?:^\\s*(\\bcase\\b))(?:\\s+)([\\w\\.\\,\\*\\=\\<\\>\\!\\s]+)(:)(\\s*/(?:/|\\*)\\s*.*)?$"},{begin:"\\bcase\\b",beginCaptures:{0:{name:"keyword.control.go"}},end:"\\:",endCaptures:{0:{name:"punctuation.other.colon.go"}},patterns:[{include:"#type-declarations"},{match:"\\w+",name:"entity.name.type.go"}]},{include:"$self"}]},syntax_errors:{patterns:[{captures:{1:{name:"invalid.illegal.slice.go"}},match:"\\[\\](\\s+)"},{match:"\\b0[0-7]*[89]\\d*\\b",name:"invalid.illegal.numeric.go"}]},terminators:{match:";",name:"punctuation.terminator.go"},"type-declarations":{patterns:[{include:"#language_constants"},{include:"#comments"},{include:"#map_types"},{include:"#brackets"},{include:"#delimiters"},{include:"#keywords"},{include:"#operators"},{include:"#runes"},{include:"#storage_types"},{include:"#raw_string_literals"},{include:"#string_literals"},{include:"#numeric_literals"},{include:"#terminators"}]},"type-declarations-without-brackets":{patterns:[{include:"#language_constants"},{include:"#comments"},{include:"#map_types"},{include:"#delimiters"},{include:"#keywords"},{include:"#operators"},{include:"#runes"},{include:"#storage_types"},{include:"#raw_string_literals"},{include:"#string_literals"},{include:"#numeric_literals"},{include:"#terminators"}]},type_assertion_inline:{captures:{1:{name:"keyword.type.go"},2:{patterns:[{include:"#type-declarations"},{match:"(?:\\w+)",name:"entity.name.type.go"}]}},match:"(?:(?<=\\.\\()(?:(\\btype\\b)|((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?[\\w\\.\\[\\]\\*]+))(?=\\)))"},var_assignment:{patterns:[{captures:{1:{patterns:[{include:"#delimiters"},{match:"\\w+",name:"variable.other.assignment.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#generic_types"},{match:"\\(",name:"punctuation.definition.begin.bracket.round.go"},{match:"\\)",name:"punctuation.definition.end.bracket.round.go"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\w+",name:"entity.name.type.go"}]}},match:"(?:(?<=\\bvar\\b)(?:\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:\\=)?)?)"},{begin:"(?:(?<=\\bvar\\b)(?:\\s*)(\\())",beginCaptures:{1:{name:"punctuation.definition.begin.bracket.round.go"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.end.bracket.round.go"}},patterns:[{captures:{1:{patterns:[{include:"#delimiters"},{match:"\\w+",name:"variable.other.assignment.go"}]},2:{patterns:[{include:"#type-declarations-without-brackets"},{include:"#generic_types"},{match:"\\(",name:"punctuation.definition.begin.bracket.round.go"},{match:"\\)",name:"punctuation.definition.end.bracket.round.go"},{match:"\\[",name:"punctuation.definition.begin.bracket.square.go"},{match:"\\]",name:"punctuation.definition.end.bracket.square.go"},{match:"\\w+",name:"entity.name.type.go"}]}},match:"(?:(?:^\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:\\=)?)?)"},{include:"$self"}]}]},variable_assignment:{patterns:[{captures:{0:{patterns:[{include:"#delimiters"},{match:"\\d\\w*",name:"invalid.illegal.identifier.go"},{match:"\\w+",name:"variable.other.assignment.go"}]}},match:"\\b\\w+(?:\\,\\s*\\w+)*(?=\\s*:=)"},{captures:{0:{patterns:[{include:"#delimiters"},{include:"#operators"},{match:"\\d\\w*",name:"invalid.illegal.identifier.go"},{match:"\\w+",name:"variable.other.assignment.go"}]}},match:"\\b[\\w\\.\\*]+(?:\\,\\s*[\\w\\.\\*]+)*(?=\\s*=(?!=))"}]}},scopeName:"source.go"},rust:{displayName:"Rust",name:"rust",patterns:[{begin:"(<)(\\[)",beginCaptures:{1:{name:"punctuation.brackets.angle.rust"},2:{name:"punctuation.brackets.square.rust"}},end:">",endCaptures:{0:{name:"punctuation.brackets.angle.rust"}},patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#gtypes"},{include:"#lvariables"},{include:"#lifetimes"},{include:"#punctuation"},{include:"#types"}]},{captures:{1:{name:"keyword.operator.macro.dollar.rust"},3:{name:"keyword.other.crate.rust"},4:{name:"entity.name.type.metavariable.rust"},6:{name:"keyword.operator.key-value.rust"},7:{name:"variable.other.metavariable.specifier.rust"}},match:"(\\$)((crate)|([A-Z][A-Za-z0-9_]*))((:)(block|expr|ident|item|lifetime|literal|meta|path?|stmt|tt|ty|vis))?",name:"meta.macro.metavariable.type.rust",patterns:[{include:"#keywords"}]},{captures:{1:{name:"keyword.operator.macro.dollar.rust"},2:{name:"variable.other.metavariable.name.rust"},4:{name:"keyword.operator.key-value.rust"},5:{name:"variable.other.metavariable.specifier.rust"}},match:"(\\$)([a-z][A-Za-z0-9_]*)((:)(block|expr|ident|item|lifetime|literal|meta|path?|stmt|tt|ty|vis))?",name:"meta.macro.metavariable.rust",patterns:[{include:"#keywords"}]},{captures:{1:{name:"entity.name.function.macro.rules.rust"},3:{name:"entity.name.function.macro.rust"},4:{name:"entity.name.type.macro.rust"},5:{name:"punctuation.brackets.curly.rust"}},match:"\\b(macro_rules!)\\s+(([a-z0-9_]+)|([A-Z][a-z0-9_]*))\\s+(\\{)",name:"meta.macro.rules.rust"},{captures:{1:{name:"storage.type.rust"},2:{name:"entity.name.module.rust"}},match:"(mod)\\s+((?:r#(?!crate|[Ss]elf|super))?[a-z][A-Za-z0-9_]*)"},{begin:"\\b(extern)\\s+(crate)",beginCaptures:{1:{name:"storage.type.rust"},2:{name:"keyword.other.crate.rust"}},end:";",endCaptures:{0:{name:"punctuation.semi.rust"}},name:"meta.import.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#punctuation"}]},{begin:"\\b(use)\\s",beginCaptures:{1:{name:"keyword.other.rust"}},end:";",endCaptures:{0:{name:"punctuation.semi.rust"}},name:"meta.use.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#namespaces"},{include:"#punctuation"},{include:"#types"},{include:"#lvariables"}]},{include:"#block-comments"},{include:"#comments"},{include:"#attributes"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#types"},{include:"#keywords"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#variables"}],repository:{attributes:{begin:"(#)(\\!?)(\\[)",beginCaptures:{1:{name:"punctuation.definition.attribute.rust"},3:{name:"punctuation.brackets.attribute.rust"}},end:"\\]",endCaptures:{0:{name:"punctuation.brackets.attribute.rust"}},name:"meta.attribute.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#lifetimes"},{include:"#punctuation"},{include:"#strings"},{include:"#gtypes"},{include:"#types"}]},"block-comments":{patterns:[{match:"/\\*\\*/",name:"comment.block.rust"},{begin:"/\\*\\*",end:"\\*/",name:"comment.block.documentation.rust",patterns:[{include:"#block-comments"}]},{begin:"/\\*(?!\\*)",end:"\\*/",name:"comment.block.rust",patterns:[{include:"#block-comments"}]}]},comments:{patterns:[{captures:{1:{name:"punctuation.definition.comment.rust"}},match:"(///).*$",name:"comment.line.documentation.rust"},{captures:{1:{name:"punctuation.definition.comment.rust"}},match:"(//).*$",name:"comment.line.double-slash.rust"}]},constants:{patterns:[{match:"\\b[A-Z]{2}[A-Z0-9_]*\\b",name:"constant.other.caps.rust"},{captures:{1:{name:"storage.type.rust"},2:{name:"constant.other.caps.rust"}},match:"\\b(const)\\s+([A-Z][A-Za-z0-9_]*)\\b"},{captures:{1:{name:"punctuation.separator.dot.decimal.rust"},2:{name:"keyword.operator.exponent.rust"},3:{name:"keyword.operator.exponent.sign.rust"},4:{name:"constant.numeric.decimal.exponent.mantissa.rust"},5:{name:"entity.name.type.numeric.rust"}},match:"\\b\\d[\\d_]*(\\.?)[\\d_]*(?:(E|e)([+-]?)([\\d_]+))?(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b",name:"constant.numeric.decimal.rust"},{captures:{1:{name:"entity.name.type.numeric.rust"}},match:"\\b0x[\\da-fA-F_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b",name:"constant.numeric.hex.rust"},{captures:{1:{name:"entity.name.type.numeric.rust"}},match:"\\b0o[0-7_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b",name:"constant.numeric.oct.rust"},{captures:{1:{name:"entity.name.type.numeric.rust"}},match:"\\b0b[01_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b",name:"constant.numeric.bin.rust"},{match:"\\b(true|false)\\b",name:"constant.language.bool.rust"}]},escapes:{captures:{1:{name:"constant.character.escape.backslash.rust"},2:{name:"constant.character.escape.bit.rust"},3:{name:"constant.character.escape.unicode.rust"},4:{name:"constant.character.escape.unicode.punctuation.rust"},5:{name:"constant.character.escape.unicode.punctuation.rust"}},match:"(\\\\)(?:(?:(x[0-7][\\da-fA-F])|(u(\\{)[\\da-fA-F]{4,6}(\\}))|.))",name:"constant.character.escape.rust"},functions:{patterns:[{captures:{1:{name:"keyword.other.rust"},2:{name:"punctuation.brackets.round.rust"}},match:"\\b(pub)(\\()"},{begin:"\\b(fn)\\s+((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)((\\()|(<))",beginCaptures:{1:{name:"keyword.other.fn.rust"},2:{name:"entity.name.function.rust"},4:{name:"punctuation.brackets.round.rust"},5:{name:"punctuation.brackets.angle.rust"}},end:"(\\{)|(;)",endCaptures:{1:{name:"punctuation.brackets.curly.rust"},2:{name:"punctuation.semi.rust"}},name:"meta.function.definition.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#types"},{include:"#variables"}]},{begin:"((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)(\\()",beginCaptures:{1:{name:"entity.name.function.rust"},2:{name:"punctuation.brackets.round.rust"}},end:"\\)",endCaptures:{0:{name:"punctuation.brackets.round.rust"}},name:"meta.function.call.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#attributes"},{include:"#keywords"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#types"},{include:"#variables"}]},{begin:"((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)(?=::<.*>\\()",beginCaptures:{1:{name:"entity.name.function.rust"}},end:"\\)",endCaptures:{0:{name:"punctuation.brackets.round.rust"}},name:"meta.function.call.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#attributes"},{include:"#keywords"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#types"},{include:"#variables"}]}]},gtypes:{patterns:[{match:"\\b(Some|None)\\b",name:"entity.name.type.option.rust"},{match:"\\b(Ok|Err)\\b",name:"entity.name.type.result.rust"}]},interpolations:{captures:{1:{name:"punctuation.definition.interpolation.rust"},2:{name:"punctuation.definition.interpolation.rust"}},match:'({)[^"{}]*(})',name:"meta.interpolation.rust"},keywords:{patterns:[{match:"\\b(await|break|continue|do|else|for|if|loop|match|return|try|while|yield)\\b",name:"keyword.control.rust"},{match:"\\b(extern|let|macro|mod)\\b",name:"keyword.other.rust storage.type.rust"},{match:"\\b(const)\\b",name:"storage.modifier.rust"},{match:"\\b(type)\\b",name:"keyword.declaration.type.rust storage.type.rust"},{match:"\\b(enum)\\b",name:"keyword.declaration.enum.rust storage.type.rust"},{match:"\\b(trait)\\b",name:"keyword.declaration.trait.rust storage.type.rust"},{match:"\\b(struct)\\b",name:"keyword.declaration.struct.rust storage.type.rust"},{match:"\\b(abstract|static)\\b",name:"storage.modifier.rust"},{match:"\\b(as|async|become|box|dyn|move|final|gen|impl|in|override|priv|pub|ref|typeof|union|unsafe|unsized|use|virtual|where)\\b",name:"keyword.other.rust"},{match:"\\bfn\\b",name:"keyword.other.fn.rust"},{match:"\\bcrate\\b",name:"keyword.other.crate.rust"},{match:"\\bmut\\b",name:"storage.modifier.mut.rust"},{match:"(\\^|\\||\\|\\||&&|<<|>>|!)(?!=)",name:"keyword.operator.logical.rust"},{match:"&(?![&=])",name:"keyword.operator.borrow.and.rust"},{match:"(\\+=|-=|\\*=|/=|%=|\\^=|&=|\\|=|<<=|>>=)",name:"keyword.operator.assignment.rust"},{match:"(?])=(?!=|>)",name:"keyword.operator.assignment.equal.rust"},{match:"(=(=)?(?!>)|!=|<=|(?=)",name:"keyword.operator.comparison.rust"},{match:"(([+%]|(\\*(?!\\w)))(?!=))|(-(?!>))|(/(?!/))",name:"keyword.operator.math.rust"},{captures:{1:{name:"punctuation.brackets.round.rust"},2:{name:"punctuation.brackets.square.rust"},3:{name:"punctuation.brackets.curly.rust"},4:{name:"keyword.operator.comparison.rust"},5:{name:"punctuation.brackets.round.rust"},6:{name:"punctuation.brackets.square.rust"},7:{name:"punctuation.brackets.curly.rust"}},match:"(?:\\b|(?:(\\))|(\\])|(\\})))[ \\t]+([<>])[ \\t]+(?:\\b|(?:(\\()|(\\[)|(\\{)))"},{match:"::",name:"keyword.operator.namespace.rust"},{captures:{1:{name:"keyword.operator.dereference.rust"}},match:"(\\*)(?=\\w+)"},{match:"@",name:"keyword.operator.subpattern.rust"},{match:"\\.(?!\\.)",name:"keyword.operator.access.dot.rust"},{match:"\\.{2}(=|\\.)?",name:"keyword.operator.range.rust"},{match:":(?!:)",name:"keyword.operator.key-value.rust"},{match:"->|<-",name:"keyword.operator.arrow.skinny.rust"},{match:"=>",name:"keyword.operator.arrow.fat.rust"},{match:"\\$",name:"keyword.operator.macro.dollar.rust"},{match:"\\?",name:"keyword.operator.question.rust"}]},lifetimes:{patterns:[{captures:{1:{name:"punctuation.definition.lifetime.rust"},2:{name:"entity.name.type.lifetime.rust"}},match:"(['])([a-zA-Z_][0-9a-zA-Z_]*)(?!['])\\b"},{captures:{1:{name:"keyword.operator.borrow.rust"},2:{name:"punctuation.definition.lifetime.rust"},3:{name:"entity.name.type.lifetime.rust"}},match:"(\\&)(['])([a-zA-Z_][0-9a-zA-Z_]*)(?!['])\\b"}]},lvariables:{patterns:[{match:"\\b[Ss]elf\\b",name:"variable.language.self.rust"},{match:"\\bsuper\\b",name:"variable.language.super.rust"}]},macros:{patterns:[{captures:{2:{name:"entity.name.function.macro.rust"},3:{name:"entity.name.type.macro.rust"}},match:"(([a-z_][A-Za-z0-9_]*!)|([A-Z_][A-Za-z0-9_]*!))",name:"meta.macro.rust"}]},namespaces:{patterns:[{captures:{1:{name:"entity.name.namespace.rust"},2:{name:"keyword.operator.namespace.rust"}},match:"(?]",name:"punctuation.brackets.angle.rust"}]},strings:{patterns:[{begin:'(b?)(")',beginCaptures:{1:{name:"string.quoted.byte.raw.rust"},2:{name:"punctuation.definition.string.rust"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.rust"}},name:"string.quoted.double.rust",patterns:[{include:"#escapes"},{include:"#interpolations"}]},{begin:'(b?r)(#*)(")',beginCaptures:{1:{name:"string.quoted.byte.raw.rust"},2:{name:"punctuation.definition.string.raw.rust"},3:{name:"punctuation.definition.string.rust"}},end:'(")(\\2)',endCaptures:{1:{name:"punctuation.definition.string.rust"},2:{name:"punctuation.definition.string.raw.rust"}},name:"string.quoted.double.rust"},{begin:"(b)?(')",beginCaptures:{1:{name:"string.quoted.byte.raw.rust"},2:{name:"punctuation.definition.char.rust"}},end:"'",endCaptures:{0:{name:"punctuation.definition.char.rust"}},name:"string.quoted.single.char.rust",patterns:[{include:"#escapes"}]}]},types:{patterns:[{captures:{1:{name:"entity.name.type.numeric.rust"}},match:"(?",endCaptures:{0:{name:"punctuation.brackets.angle.rust"}},patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#lvariables"},{include:"#lifetimes"},{include:"#punctuation"},{include:"#types"},{include:"#variables"}]},{match:"\\b(bool|char|str)\\b",name:"entity.name.type.primitive.rust"},{captures:{1:{name:"keyword.declaration.trait.rust storage.type.rust"},2:{name:"entity.name.type.trait.rust"}},match:"\\b(trait)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b"},{captures:{1:{name:"keyword.declaration.struct.rust storage.type.rust"},2:{name:"entity.name.type.struct.rust"}},match:"\\b(struct)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b"},{captures:{1:{name:"keyword.declaration.enum.rust storage.type.rust"},2:{name:"entity.name.type.enum.rust"}},match:"\\b(enum)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b"},{captures:{1:{name:"keyword.declaration.type.rust storage.type.rust"},2:{name:"entity.name.type.declaration.rust"}},match:"\\b(type)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b"},{match:"\\b_?[A-Z][A-Za-z0-9_]*\\b(?!!)",name:"entity.name.type.rust"}]},variables:{patterns:[{match:"\\b(? string.quoted.json",settings:{foreground:"#e06c75"}},{scope:"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string",settings:{foreground:"#e06c75"}},{scope:"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation",settings:{foreground:"#98c379"}},{scope:"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json",settings:{foreground:"#56b6c2"}},{scope:"support.type.property-name.json",settings:{foreground:"#e06c75"}},{scope:"support.type.property-name.json punctuation",settings:{foreground:"#e06c75"}},{scope:"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade",settings:{foreground:"#c678dd"}},{scope:"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade",settings:{foreground:"#c678dd"}},{scope:"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php",settings:{foreground:"#e5c07b"}},{scope:"keyword.operator.error-control.php",settings:{foreground:"#c678dd"}},{scope:"keyword.operator.type.php",settings:{foreground:"#c678dd"}},{scope:"punctuation.section.array.begin.php",settings:{foreground:"#abb2bf"}},{scope:"punctuation.section.array.end.php",settings:{foreground:"#abb2bf"}},{scope:"invalid.illegal.non-null-typehinted.php",settings:{foreground:"#f44747"}},{scope:"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php",settings:{foreground:"#e5c07b"}},{scope:"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php",settings:{foreground:"#61afef"}},{scope:"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php",settings:{foreground:"#abb2bf"}},{scope:"support.constant.core.rust",settings:{foreground:"#d19a66"}},{scope:"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php",settings:{foreground:"#d19a66"}},{scope:"entity.name.goto-label.php,support.other.php",settings:{foreground:"#61afef"}},{scope:"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php",settings:{foreground:"#56b6c2"}},{scope:"keyword.operator.regexp.php",settings:{foreground:"#c678dd"}},{scope:"keyword.operator.comparison.php",settings:{foreground:"#56b6c2"}},{scope:"keyword.operator.heredoc.php,keyword.operator.nowdoc.php",settings:{foreground:"#c678dd"}},{scope:"meta.function.decorator.python",settings:{foreground:"#61afef"}},{scope:"support.token.decorator.python,meta.function.decorator.identifier.python",settings:{foreground:"#56b6c2"}},{scope:"function.parameter",settings:{foreground:"#abb2bf"}},{scope:"function.brace",settings:{foreground:"#abb2bf"}},{scope:"function.parameter.ruby, function.parameter.cs",settings:{foreground:"#abb2bf"}},{scope:"constant.language.symbol.ruby",settings:{foreground:"#56b6c2"}},{scope:"constant.language.symbol.hashkey.ruby",settings:{foreground:"#56b6c2"}},{scope:"rgb-value",settings:{foreground:"#56b6c2"}},{scope:"inline-color-decoration rgb-value",settings:{foreground:"#d19a66"}},{scope:"less rgb-value",settings:{foreground:"#d19a66"}},{scope:"selector.sass",settings:{foreground:"#e06c75"}},{scope:"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx",settings:{foreground:"#e5c07b"}},{scope:"block.scope.end,block.scope.begin",settings:{foreground:"#abb2bf"}},{scope:"storage.type.cs",settings:{foreground:"#e5c07b"}},{scope:"entity.name.variable.local.cs",settings:{foreground:"#e06c75"}},{scope:"token.info-token",settings:{foreground:"#61afef"}},{scope:"token.warn-token",settings:{foreground:"#d19a66"}},{scope:"token.error-token",settings:{foreground:"#f44747"}},{scope:"token.debug-token",settings:{foreground:"#c678dd"}},{scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"#c678dd"}},{scope:["meta.template.expression"],settings:{foreground:"#abb2bf"}},{scope:["keyword.operator.module"],settings:{foreground:"#c678dd"}},{scope:["support.type.type.flowtype"],settings:{foreground:"#61afef"}},{scope:["support.type.primitive"],settings:{foreground:"#e5c07b"}},{scope:["meta.property.object"],settings:{foreground:"#e06c75"}},{scope:["variable.parameter.function.js"],settings:{foreground:"#e06c75"}},{scope:["keyword.other.template.begin"],settings:{foreground:"#98c379"}},{scope:["keyword.other.template.end"],settings:{foreground:"#98c379"}},{scope:["keyword.other.substitution.begin"],settings:{foreground:"#98c379"}},{scope:["keyword.other.substitution.end"],settings:{foreground:"#98c379"}},{scope:["keyword.operator.assignment"],settings:{foreground:"#56b6c2"}},{scope:["keyword.operator.assignment.go"],settings:{foreground:"#e5c07b"}},{scope:["keyword.operator.arithmetic.go","keyword.operator.address.go"],settings:{foreground:"#c678dd"}},{scope:["keyword.operator.arithmetic.c","keyword.operator.arithmetic.cpp"],settings:{foreground:"#c678dd"}},{scope:["entity.name.package.go"],settings:{foreground:"#e5c07b"}},{scope:["support.type.prelude.elm"],settings:{foreground:"#56b6c2"}},{scope:["support.constant.elm"],settings:{foreground:"#d19a66"}},{scope:["punctuation.quasi.element"],settings:{foreground:"#c678dd"}},{scope:["constant.character.entity"],settings:{foreground:"#e06c75"}},{scope:["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],settings:{foreground:"#56b6c2"}},{scope:["entity.global.clojure"],settings:{foreground:"#e5c07b"}},{scope:["meta.symbol.clojure"],settings:{foreground:"#e06c75"}},{scope:["constant.keyword.clojure"],settings:{foreground:"#56b6c2"}},{scope:["meta.arguments.coffee","variable.parameter.function.coffee"],settings:{foreground:"#e06c75"}},{scope:["source.ini"],settings:{foreground:"#98c379"}},{scope:["meta.scope.prerequisites.makefile"],settings:{foreground:"#e06c75"}},{scope:["source.makefile"],settings:{foreground:"#e5c07b"}},{scope:["storage.modifier.import.groovy"],settings:{foreground:"#e5c07b"}},{scope:["meta.method.groovy"],settings:{foreground:"#61afef"}},{scope:["meta.definition.variable.name.groovy"],settings:{foreground:"#e06c75"}},{scope:["meta.definition.class.inherited.classes.groovy"],settings:{foreground:"#98c379"}},{scope:["support.variable.semantic.hlsl"],settings:{foreground:"#e5c07b"}},{scope:["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],settings:{foreground:"#c678dd"}},{scope:["text.variable","text.bracketed"],settings:{foreground:"#e06c75"}},{scope:["support.type.swift","support.type.vb.asp"],settings:{foreground:"#e5c07b"}},{scope:["entity.name.function.xi"],settings:{foreground:"#e5c07b"}},{scope:["entity.name.class.xi"],settings:{foreground:"#56b6c2"}},{scope:["constant.character.character-class.regexp.xi"],settings:{foreground:"#e06c75"}},{scope:["constant.regexp.xi"],settings:{foreground:"#c678dd"}},{scope:["keyword.control.xi"],settings:{foreground:"#56b6c2"}},{scope:["invalid.xi"],settings:{foreground:"#abb2bf"}},{scope:["beginning.punctuation.definition.quote.markdown.xi"],settings:{foreground:"#98c379"}},{scope:["beginning.punctuation.definition.list.markdown.xi"],settings:{foreground:"#7f848e"}},{scope:["constant.character.xi"],settings:{foreground:"#61afef"}},{scope:["accent.xi"],settings:{foreground:"#61afef"}},{scope:["wikiword.xi"],settings:{foreground:"#d19a66"}},{scope:["constant.other.color.rgb-value.xi"],settings:{foreground:"#ffffff"}},{scope:["punctuation.definition.tag.xi"],settings:{foreground:"#5c6370"}},{scope:["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],settings:{foreground:"#e5c07b"}},{scope:["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],settings:{foreground:"#e06c75"}},{scope:[" meta.brace.square"],settings:{foreground:"#abb2bf"}},{scope:"comment, punctuation.definition.comment",settings:{fontStyle:"italic",foreground:"#7f848e"}},{scope:"markup.quote.markdown",settings:{foreground:"#5c6370"}},{scope:"punctuation.definition.block.sequence.item.yaml",settings:{foreground:"#abb2bf"}},{scope:["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],settings:{foreground:"#56b6c2"}},{scope:["entity.name.variable.parameter.cs"],settings:{foreground:"#e5c07b"}},{scope:["entity.name.variable.field.cs"],settings:{foreground:"#e06c75"}},{scope:"markup.deleted",settings:{foreground:"#e06c75"}},{scope:"markup.inserted",settings:{foreground:"#98c379"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#BE5046"}},{scope:["support.other.namespace.php"],settings:{foreground:"#abb2bf"}},{scope:["variable.parameter.function.latex"],settings:{foreground:"#e06c75"}},{scope:["variable.other.object"],settings:{foreground:"#e5c07b"}},{scope:["variable.other.constant.property"],settings:{foreground:"#e06c75"}},{scope:["entity.other.inherited-class"],settings:{foreground:"#e5c07b"}},{scope:"variable.other.readwrite.c",settings:{foreground:"#e06c75"}},{scope:"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php",settings:{foreground:"#abb2bf"}},{scope:["constant.numeric.decimal.asm.x86_64"],settings:{foreground:"#c678dd"}},{scope:["support.other.parenthesis.regexp"],settings:{foreground:"#d19a66"}},{scope:["constant.character.escape"],settings:{foreground:"#56b6c2"}},{scope:["string.regexp"],settings:{foreground:"#e06c75"}},{scope:["log.info"],settings:{foreground:"#98c379"}},{scope:["log.warning"],settings:{foreground:"#e5c07b"}},{scope:["log.error"],settings:{foreground:"#e06c75"}},{scope:"keyword.operator.expression.is",settings:{foreground:"#c678dd"}},{scope:"entity.name.label",settings:{foreground:"#e06c75"}},{scope:["support.class.math.block.environment.latex","constant.other.general.math.tex"],settings:{foreground:"#61afef"}},{scope:["constant.character.math.tex"],settings:{foreground:"#98c379"}},{scope:"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super",settings:{fontStyle:"italic"}},{scope:"comment.line.double-slash,comment.block.documentation",settings:{fontStyle:"italic"}},{scope:"markup.italic.markdown",settings:{fontStyle:"italic"}}],type:"dark"}};let H=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Ye=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function In(){return 2147483648}function Bn(){return typeof performance<"u"?performance.now():Date.now()}const On=(n,e)=>n+(e-n%e)%e;async function jn(n){let e,t;const r={};function a(p){t=p,r.HEAPU8=new Uint8Array(p),r.HEAPU32=new Uint32Array(p)}function o(p,h,k){r.HEAPU8.copyWithin(p,h,h+k)}function s(p){try{return e.grow(p-t.byteLength+65535>>>16),a(e.buffer),1}catch{}}function c(p){const h=r.HEAPU8.length;p=p>>>0;const k=In();if(p>k)return!1;for(let y=1;y<=4;y*=2){let b=h*(1+.2/y);b=Math.min(b,p+100663296);const w=Math.min(k,On(Math.max(p,b),65536));if(s(w))return!0}return!1}const i=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function l(p,h,k=1024){const y=h+k;let b=h;for(;p[b]&&!(b>=y);)++b;if(b-h>16&&p.buffer&&i)return i.decode(p.subarray(h,b));let w="";for(;h>10,56320|I&1023)}}return w}function u(p,h){return p?l(r.HEAPU8,p,h):""}const d={emscripten_get_now:Bn,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function m(){const h=await n({env:d,wasi_snapshot_preview1:d});e=h.memory,a(e.buffer),Object.assign(r,h),r.UTF8ToString=u}return await m(),r}var Mn=Object.defineProperty,Fn=(n,e,t)=>e in n?Mn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,P=(n,e,t)=>(Fn(n,typeof e!="symbol"?e+"":e,t),t);let T=null;function Gn(n){throw new Ye(n.UTF8ToString(n.getLastOnigError()))}class Ne{constructor(e){P(this,"utf16Length"),P(this,"utf8Length"),P(this,"utf16Value"),P(this,"utf8Value"),P(this,"utf16OffsetToUtf8"),P(this,"utf8OffsetToUtf16");const t=e.length,r=Ne._utf8ByteLength(e),a=r!==t,o=a?new Uint32Array(t+1):null;a&&(o[t]=r);const s=a?new Uint32Array(r+1):null;a&&(s[r]=t);const c=new Uint8Array(r);let i=0;for(let l=0;l=55296&&u<=56319&&l+1=56320&&p<=57343&&(d=(u-55296<<10)+65536|p-56320,m=!0)}a&&(o[l]=i,m&&(o[l+1]=i),d<=127?s[i+0]=l:d<=2047?(s[i+0]=l,s[i+1]=l):d<=65535?(s[i+0]=l,s[i+1]=l,s[i+2]=l):(s[i+0]=l,s[i+1]=l,s[i+2]=l,s[i+3]=l)),d<=127?c[i++]=d:d<=2047?(c[i++]=192|(d&1984)>>>6,c[i++]=128|(d&63)>>>0):d<=65535?(c[i++]=224|(d&61440)>>>12,c[i++]=128|(d&4032)>>>6,c[i++]=128|(d&63)>>>0):(c[i++]=240|(d&1835008)>>>18,c[i++]=128|(d&258048)>>>12,c[i++]=128|(d&4032)>>>6,c[i++]=128|(d&63)>>>0),m&&l++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let t=0;for(let r=0,a=e.length;r=55296&&o<=56319&&r+1=56320&&i<=57343&&(s=(o-55296<<10)+65536|i-56320,c=!0)}s<=127?t+=1:s<=2047?t+=2:s<=65535?t+=3:t+=4,c&&r++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const F=class{constructor(n){if(P(this,"id",++F.LAST_ID),P(this,"_onigBinding"),P(this,"content"),P(this,"utf16Length"),P(this,"utf8Length"),P(this,"utf16OffsetToUtf8"),P(this,"utf8OffsetToUtf16"),P(this,"ptr"),!T)throw new Ye("Must invoke loadWasm first.");this._onigBinding=T,this.content=n;const e=new Ne(n);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!F._sharedPtrInUse?(F._sharedPtr||(F._sharedPtr=T.omalloc(1e4)),F._sharedPtrInUse=!0,T.HEAPU8.set(e.utf8Value,F._sharedPtr),this.ptr=F._sharedPtr):this.ptr=e.createString(T)}convertUtf8OffsetToUtf16(n){return this.utf8OffsetToUtf16?n<0?0:n>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[n]:n}convertUtf16OffsetToUtf8(n){return this.utf16OffsetToUtf8?n<0?0:n>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[n]:n}dispose(){this.ptr===F._sharedPtr?F._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let ce=F;P(ce,"LAST_ID",0);P(ce,"_sharedPtr",0);P(ce,"_sharedPtrInUse",!1);class $n{constructor(e){if(P(this,"_onigBinding"),P(this,"_ptr"),!T)throw new Ye("Must invoke loadWasm first.");const t=[],r=[];for(let c=0,i=e.length;c{let r=n;return r=await r,typeof r=="function"&&(r=await r(t)),typeof r=="function"&&(r=await r(t)),Un(r)?r=await r.instantiator(t):Dn(r)?r=await r.default(t):(qn(r)&&(r=r.data),zn(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Vn(r)(t):r=await Zn(r)(t):Wn(r)?r=await Be(r)(t):r instanceof WebAssembly.Module?r=await Be(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Be(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return pe=e(),pe}function Be(n){return e=>WebAssembly.instantiate(n,e)}function Vn(n){return e=>WebAssembly.instantiateStreaming(n,e)}function Zn(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Kn;function Xn(){return Kn}async function Lt(n){return n&&await Hn(n),{createScanner(e){return new $n(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new ce(e)}}}let Yn=3;function ye(n,e=3){e>Yn||console.trace(`[SHIKI DEPRECATE]: ${n}`)}function Jn(n){return Je(n)}function Je(n){return Array.isArray(n)?Qn(n):n instanceof RegExp?n:typeof n=="object"?er(n):n}function Qn(n){let e=[];for(let t=0,r=n.length;t{for(let r in t)n[r]=t[r]}),n}function Bt(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Bt(n.substring(0,n.length-1)):n.substr(~e+1)}var Oe=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,me=class{static hasCaptures(n){return n===null?!1:(Oe.lastIndex=0,Oe.test(n))}static replaceCaptures(n,e,t){return n.replace(Oe,(r,a,o,s)=>{let c=t[parseInt(a||o,10)];if(c){let i=e.substring(c.start,c.end);for(;i[0]===".";)i=i.substring(1);switch(s){case"downcase":return i.toLowerCase();case"upcase":return i.toUpperCase();default:return i}}else return r})}};function Ot(n,e){return ne?1:0}function jt(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,r=e.length;if(t===r){for(let a=0;athis._root.match(n)));this._colorMap=n,this._defaults=e,this._root=t}static createFromRawTheme(n,e){return this.createFromParsedTheme(rr(n),e)}static createFromParsedTheme(n,e){return or(n,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,r=this._cachedMatchRoot.get(e).find(a=>tr(n.parent,a.parentScopes));return r?new Gt(r.fontStyle,r.foreground,r.background):null}},je=class fe{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new fe(e,r);return e}static from(...e){let t=null;for(let r=0;r"){if(t===e.length-1)return!1;r=e[++t],a=!0}for(;n&&!nr(n.scopeName,r);){if(a)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function nr(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var Gt=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function rr(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],r=0;for(let a=0,o=e.length;a1&&(y=h.slice(0,h.length-1),y.reverse()),t[r++]=new ar(k,y,a,i,l,u)}}return t}var ar=class{constructor(n,e,t,r,a,o){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=a,this.background=o}},q=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(q||{});function or(n,e){n.sort((i,l)=>{let u=Ot(i.scope,l.scope);return u!==0||(u=jt(i.parentScopes,l.parentScopes),u!==0)?u:i.index-l.index});let t=0,r="#000000",a="#ffffff";for(;n.length>=1&&n[0].scope==="";){let i=n.shift();i.fontStyle!==-1&&(t=i.fontStyle),i.foreground!==null&&(r=i.foreground),i.background!==null&&(a=i.background)}let o=new sr(e),s=new Gt(t,o.getId(r),o.getId(a)),c=new cr(new De(0,null,-1,0,0),[]);for(let i=0,l=n.length;ie?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},cr=class qe{constructor(e,t=[],r={}){g(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,a=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[a]===">"&&a++,!(r>=e.parentScopes.length||a>=t.parentScopes.length);){const o=t.parentScopes[a].length-e.parentScopes[r].length;if(o!==0)return o;r++,a++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),a,o;if(r===-1?(a=e,o=""):(a=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(qe._cmpBySpecificity),t}insert(e,t,r,a,o,s){if(t===""){this._doInsertHere(e,r,a,o,s);return}let c=t.indexOf("."),i,l;c===-1?(i=t,l=""):(i=t.substring(0,c),l=t.substring(c+1));let u;this._children.hasOwnProperty(i)?u=this._children[i]:(u=new qe(this._mainRule.clone(),De.cloneArr(this._rulesWithParentScopes)),this._children[i]=u),u.insert(e+1,l,r,a,o,s)}_doInsertHere(e,t,r,a,o){if(t===null){this._mainRule.acceptOverwrite(e,r,a,o);return}for(let s=0,c=this._rulesWithParentScopes.length;s>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,a,o,s,c){let i=O.getLanguageId(e),l=O.getTokenType(e),u=O.containsBalancedBrackets(e)?1:0,d=O.getFontStyle(e),m=O.getForeground(e),p=O.getBackground(e);return t!==0&&(i=t),r!==8&&(l=r),a!==null&&(u=a?1:0),o!==-1&&(d=o),s!==0&&(m=s),c!==0&&(p=c),(i<<0|l<<8|u<<10|d<<11|m<<15|p<<24)>>>0}};function we(n,e){const t=[],r=lr(n);let a=r.next();for(;a!==null;){let i=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":i=1;break;case"L":i=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let l=s();if(t.push({matcher:l,priority:i}),a!==",")break;a=r.next()}return t;function o(){if(a==="-"){a=r.next();const i=o();return l=>!!i&&!i(l)}if(a==="("){a=r.next();const i=c();return a===")"&&(a=r.next()),i}if(dt(a)){const i=[];do i.push(a),a=r.next();while(dt(a));return l=>e(i,l)}return null}function s(){const i=[];let l=o();for(;l;)i.push(l),l=o();return u=>i.every(d=>d(u))}function c(){const i=[];let l=s();for(;l&&(i.push(l),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");l=s()}return u=>i.some(d=>d(u))}}function dt(n){return!!n&&!!n.match(/[\w\.:]+/)}function lr(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(n),r}}}function Ut(n){typeof n.dispose=="function"&&n.dispose()}var ae=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},ur=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},dr=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},pr=class{constructor(n,e){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ae(this.initialScopeName)]}processQueue(){const n=this.Q;this.Q=[];const e=new dr;for(const t of n)mr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof ae){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function mr(n,e,t,r){const a=t.lookup(n.scopeName);if(!a){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=t.lookup(e);n instanceof ae?be({baseGrammar:o,selfGrammar:a},r):ze(n.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const s=t.injections(n.scopeName);if(s)for(const c of s)r.add(new ae(c))}function ze(n,e,t){if(e.repository&&e.repository[n]){const r=e.repository[n];_e([r],e,t)}}function be(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&_e(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&_e(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function _e(n,e,t){for(const r of n){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const a=r.repository?It({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&_e(r.patterns,{...e,repository:a},t);const o=r.include;if(!o)continue;const s=Dt(o);switch(s.kind){case 0:be({...e,selfGrammar:e.baseGrammar},t);break;case 1:be(e,t);break;case 2:ze(s.ruleName,{...e,repository:a},t);break;case 3:case 4:const c=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const i={baseGrammar:e.baseGrammar,selfGrammar:c,repository:a};s.kind===4?ze(s.ruleName,i,t):be(i,t)}else s.kind===4?t.add(new ur(s.scopeName,s.ruleName)):t.add(new ae(s.scopeName));break}}}var gr=class{constructor(){g(this,"kind",0)}},hr=class{constructor(){g(this,"kind",1)}},fr=class{constructor(n){g(this,"kind",2);this.ruleName=n}},br=class{constructor(n){g(this,"kind",3);this.scopeName=n}},yr=class{constructor(n,e){g(this,"kind",4);this.scopeName=n,this.ruleName=e}};function Dt(n){if(n==="$base")return new gr;if(n==="$self")return new hr;const e=n.indexOf("#");if(e===-1)return new br(n);if(e===0)return new fr(n.substring(1));{const t=n.substring(0,e),r=n.substring(e+1);return new yr(t,r)}}var kr=/\\(\d+)/,pt=/\\(\d+)/g,wr=-1,qt=-2;var le=class{constructor(n,e,t,r){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=me.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=me.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Bt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:me.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:me.replaceCaptures(this._contentName,n,e)}},_r=class extends le{constructor(e,t,r,a,o){super(e,t,r,a);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,a){throw new Error("Not supported!")}},vr=class extends le{constructor(e,t,r,a,o){super(e,t,r,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new oe(a,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new se,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},mt=class extends le{constructor(e,t,r,a,o){super(e,t,r,a);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new se,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},We=class extends le{constructor(e,t,r,a,o,s,c,i,l,u){super(e,t,r,a);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new oe(o,this.id),this.beginCaptures=s,this._end=new oe(c||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new se;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},ve=class extends le{constructor(e,t,r,a,o,s,c,i,l){super(e,t,r,a);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new oe(o,this.id),this.beginCaptures=s,this.whileCaptures=i,this._while=new oe(c,qt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new se;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new se,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},zt=class E{static createCaptureRule(e,t,r,a,o){return e.registerRule(s=>new _r(t,s,r,a,o))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(a=>{if(e.id=a,e.match)return new vr(e.$vscodeTextmateLocation,e.id,e.name,e.match,E._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=It({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new mt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,E._compilePatterns(o,t,r))}return e.while?new ve(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,E._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,E._compileCaptures(e.whileCaptures||e.captures,t,r),E._compilePatterns(e.patterns,t,r)):new We(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,E._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,E._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,E._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let a=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);c>o&&(o=c)}for(let s=0;s<=o;s++)a[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);let i=0;e[s].patterns&&(i=E.getCompiledRuleId(e[s],t,r)),a[c]=E.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,i)}}return a}static _compilePatterns(e,t,r){let a=[];if(e)for(let o=0,s=e.length;oe.substring(a.start,a.end));return pt.lastIndex=0,this.source.replace(pt,(a,o)=>Mt(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],a=[],o,s,c,i;for(o=0,s=this.source.length;ot.source);this._cached=new gt(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let r=this._items.map(a=>a.resolveAnchors(e,t));return new gt(n,r,this._items.map(a=>a.ruleId))}},gt=class{constructor(n,e,t){g(this,"scanner");this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e{const t=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Me(t,r)}));this._defaultAttributes=new Me(e,8),this._embeddedLanguagesMatcher=new Sr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?D._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(D.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},g(D,"_NULL_SCOPE_METADATA",new Me(0,0)),g(D,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),D),Sr=class{constructor(n){g(this,"values");g(this,"scopesRegExp");if(n.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(n);const e=n.map(([t,r])=>Mt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(n){if(!this.scopesRegExp)return;const e=n.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},ht=class{constructor(n,e){this.stack=n,this.stoppedEarly=e}};function Ht(n,e,t,r,a,o,s,c){const i=e.content.length;let l=!1,u=-1;if(s){const p=Ar(n,e,t,r,a,o);a=p.stack,r=p.linePos,t=p.isFirstLine,u=p.anchorPosition}const d=Date.now();for(;!l;){if(c!==0&&Date.now()-d>c)return new ht(a,!0);m()}return new ht(a,!1);function m(){const p=xr(n,e,t,r,a,u);if(!p){o.produce(a,i),l=!0;return}const h=p.captureIndices,k=p.matchedRuleId,y=h&&h.length>0?h[0].end>r:!1;if(k===wr){const b=a.getRule(n);o.produce(a,h[0].start),a=a.withContentNameScopesList(a.nameScopesList),ne(n,e,t,a,o,b.endCaptures,h),o.produce(a,h[0].end);const w=a;if(a=a.parent,u=w.getAnchorPos(),!y&&w.getEnterPos()===r){a=w,o.produce(a,i),l=!0;return}}else{const b=n.getRule(k);o.produce(a,h[0].start);const w=a,_=b.getName(e.content,h),C=a.contentNameScopesList.pushAttributed(_,n);if(a=a.push(k,r,u,h[0].end===i,null,C,C),b instanceof We){const A=b;ne(n,e,t,a,o,A.beginCaptures,h),o.produce(a,h[0].end),u=h[0].end;const I=A.getContentName(e.content,h),R=C.pushAttributed(I,n);if(a=a.withContentNameScopesList(R),A.endHasBackReferences&&(a=a.withEndRule(A.getEndWithResolvedBackReferences(e.content,h))),!y&&w.hasSameRuleAs(a)){a=a.pop(),o.produce(a,i),l=!0;return}}else if(b instanceof ve){const A=b;ne(n,e,t,a,o,A.beginCaptures,h),o.produce(a,h[0].end),u=h[0].end;const I=A.getContentName(e.content,h),R=C.pushAttributed(I,n);if(a=a.withContentNameScopesList(R),A.whileHasBackReferences&&(a=a.withEndRule(A.getWhileWithResolvedBackReferences(e.content,h))),!y&&w.hasSameRuleAs(a)){a=a.pop(),o.produce(a,i),l=!0;return}}else if(ne(n,e,t,a,o,b.captures,h),o.produce(a,h[0].end),a=a.pop(),!y){a=a.safePop(),o.produce(a,i),l=!0;return}}h[0].end>r&&(r=h[0].end,t=!1)}}function Ar(n,e,t,r,a,o){let s=a.beginRuleCapturedEOL?0:-1;const c=[];for(let i=a;i;i=i.pop()){const l=i.getRule(n);l instanceof ve&&c.push({rule:l,stack:i})}for(let i=c.pop();i;i=c.pop()){const{ruleScanner:l,findOptions:u}=Nr(i.rule,n,i.stack.endRule,t,r===s),d=l.findNextMatchSync(e,r,u);if(d){if(d.ruleId!==qt){a=i.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(o.produce(i.stack,d.captureIndices[0].start),ne(n,e,t,i.stack,o,i.rule.whileCaptures,d.captureIndices),o.produce(i.stack,d.captureIndices[0].end),s=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,t=!1))}else{a=i.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:s,isFirstLine:t}}function xr(n,e,t,r,a,o){const s=Rr(n,e,t,r,a,o),c=n.getInjections();if(c.length===0)return s;const i=Pr(c,n,e,t,r,a,o);if(!i)return s;if(!s)return i;const l=s.captureIndices[0].start,u=i.captureIndices[0].start;return u=c)&&(c=_,i=w.captureIndices,l=w.ruleId,u=h.priority,c===a))break}return i?{priorityMatch:u===-1,captureIndices:i,matchedRuleId:l}:null}function Vt(n,e,t,r,a){return{ruleScanner:n.compileAG(e,t,r,a),findOptions:0}}function Nr(n,e,t,r,a){return{ruleScanner:n.compileWhileAG(e,t,r,a),findOptions:0}}function ne(n,e,t,r,a,o,s){if(o.length===0)return;const c=e.content,i=Math.min(o.length,s.length),l=[],u=s[0].end;for(let d=0;du)break;for(;l.length>0&&l[l.length-1].endPos<=p.start;)a.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?a.produceFromScopes(l[l.length-1].scopes,p.start):a.produce(r,p.start),m.retokenizeCapturedWithRuleId){const k=m.getName(c,s),y=r.contentNameScopesList.pushAttributed(k,n),b=m.getContentName(c,s),w=y.pushAttributed(b,n),_=r.push(m.retokenizeCapturedWithRuleId,p.start,-1,!1,null,y,w),C=n.createOnigString(c.substring(0,p.end));Ht(n,C,t&&p.start===0,p.start,_,a,!1,0),Ut(C);continue}const h=m.getName(c,s);if(h!==null){const y=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(h,n);l.push(new Tr(y,p.end))}}for(;l.length>0;)a.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Tr=class{constructor(n,e){g(this,"scopes");g(this,"endPos");this.scopes=n,this.endPos=e}};function Er(n,e,t,r,a,o,s,c){return new Ir(n,e,t,r,a,o,s,c)}function ft(n,e,t,r,a){const o=we(e,Ce),s=zt.getCompiledRuleId(t,r,a.repository);for(const c of o)n.push({debugSelector:e,matcher:c.matcher,ruleId:s,grammar:a,priority:c.priority})}function Ce(n,e){if(e.length{for(let a=t;at&&n.substr(0,t)===e&&n[t]==="."}var Ir=class{constructor(n,e,t,r,a,o,s,c){g(this,"_rootId");g(this,"_lastRuleId");g(this,"_ruleId2desc");g(this,"_includedGrammars");g(this,"_grammarRepository");g(this,"_grammar");g(this,"_injections");g(this,"_basicScopeAttributesProvider");g(this,"_tokenTypeMatchers");if(this._rootScopeName=n,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new Cr(t,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=bt(e,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const i of Object.keys(a)){const l=we(i,Ce);for(const u of l)this._tokenTypeMatchers.push({matcher:u.matcher,type:a[i]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const n of this._ruleId2desc)n&&n.dispose()}createOnigScanner(n){return this._onigLib.createOnigScanner(n)}createOnigString(n){return this._onigLib.createOnigString(n)}getMetadataForScope(n){return this._basicScopeAttributesProvider.getBasicScopeAttributes(n)}_collectInjections(){const n={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},e=[],t=this._rootScopeName,r=n.lookup(t);if(r){const a=r.injections;if(a)for(let s in a)ft(e,s,a[s],this,r);const o=this._grammarRepository.injections(t);o&&o.forEach(s=>{const c=this.getExternalGrammar(s);if(c){const i=c.injectionSelector;i&&ft(e,i,c,this,c)}})}return e.sort((a,o)=>a.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(n){const e=++this._lastRuleId,t=n(e);return this._ruleId2desc[e]=t,t}getRule(n){return this._ruleId2desc[n]}getExternalGrammar(n,e){if(this._includedGrammars[n])return this._includedGrammars[n];if(this._grammarRepository){const t=this._grammarRepository.lookup(n);if(t)return this._includedGrammars[n]=bt(t,e&&e.$base),this._includedGrammars[n]}}tokenizeLine(n,e,t=0){const r=this._tokenize(n,e,!1,t);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(n,e,t=0){const r=this._tokenize(n,e,!0,t);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(n,e,t,r){this._rootId===-1&&(this._rootId=zt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!e||e===He.NULL){a=!0;const l=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),d=Y.set(0,l.languageId,l.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),m=this.getRule(this._rootId).getName(null,null);let p;m?p=re.createRootAndLookUpScopeName(m,d,this):p=re.createRoot("unknown",d),e=new He(null,this._rootId,-1,-1,!1,null,p,p)}else a=!1,e.reset();n=n+` +`;const o=this.createOnigString(n),s=o.content.length,c=new Or(t,n,this._tokenTypeMatchers,this.balancedBracketSelectors),i=Ht(this,o,a,0,e,c,!0,r);return Ut(o),{lineLength:s,lineTokens:c,ruleStack:i.stack,stoppedEarly:i.stoppedEarly}}};function bt(n,e){return n=Jn(n),n.repository=n.repository||{},n.repository.$self={$vscodeTextmateLocation:n.$vscodeTextmateLocation,patterns:n.patterns,name:n.scopeName},n.repository.$base=e||n.repository.$self,n}var re=class G{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(e,t){let r=e,a=(e==null?void 0:e.scopePath)??null;for(const o of t)a=je.push(a,o.scopeNames),r=new G(r,a,o.encodedTokenAttributes);return r}static createRoot(e,t){return new G(null,new je(null,e),t)}static createRootAndLookUpScopeName(e,t,r){const a=r.getMetadataForScope(e),o=new je(null,e),s=r.themeProvider.themeMatch(o),c=G.mergeAttributes(t,a,s);return new G(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return G.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,r){let a=-1,o=0,s=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,s=r.backgroundId),Y.set(e,t.languageId,t.tokenType,null,a,o,s)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return G._pushAttributed(this,e,t);const r=e.split(/ /g);let a=this;for(const o of r)a=G._pushAttributed(a,o,t);return a}static _pushAttributed(e,t,r){const a=r.getMetadataForScope(t),o=e.scopePath.push(t),s=r.themeProvider.themeMatch(o),c=G.mergeAttributes(e.tokenAttributes,a,s);return new G(e,o,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var a;const t=[];let r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((a=r.parent)==null?void 0:a.scopePath)??null)}),r=r.parent;return r===e?t.reverse():void 0}},j,He=(j=class{constructor(e,t,r,a,o,s,c,i){g(this,"_stackElementBrand");g(this,"_enterPos");g(this,"_anchorPos");g(this,"depth");this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=c,this.contentNameScopesList=i,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}equals(e){return e===null?!1:j._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?re.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){j._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,a,o,s,c){return new j(this,e,t,r,a,o,s,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var r,a;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(a=this.contentNameScopesList)==null?void 0:a.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new j(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const r=re.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new j(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,re.fromExtension(r,t.contentNameScopesList))}},g(j,"NULL",new j(null,0,0,0,!1,null,null,null)),j),Br=class{constructor(n,e){g(this,"balancedBracketScopes");g(this,"unbalancedBracketScopes");g(this,"allowAny",!1);this.balancedBracketScopes=n.flatMap(t=>t==="*"?(this.allowAny=!0,[]):we(t,Ce).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>we(t,Ce).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(n){for(const e of this.unbalancedBracketScopes)if(e(n))return!1;for(const e of this.balancedBracketScopes)if(e(n))return!0;return this.allowAny}},Or=class{constructor(n,e,t,r){g(this,"_emitBinaryTokens");g(this,"_lineText");g(this,"_tokens");g(this,"_binaryTokens");g(this,"_lastTokenEndIndex");g(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=n,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(n,e){this.produceFromScopes(n.contentNameScopesList,e)}produceFromScopes(n,e){var r;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let a=(n==null?void 0:n.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=(n==null?void 0:n.getScopeNames())??[];for(const c of this._tokenTypeOverrides)c.matcher(s)&&(a=Y.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}if(o&&(a=Y.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=e;return}const t=(n==null?void 0:n.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(n,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(n,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let r=0,a=this._binaryTokens.length;r0;)s.Q.map(c=>this._loadSingleGrammar(c.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,r,a,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,a=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,a)}_grammarForScopeName(e,t=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,r,a,o)}},Ve=He.NULL;const Fr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ue{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}ue.prototype.property={};ue.prototype.normal={};ue.prototype.space=null;function Zt(n,e){const t={},r={};let a=-1;for(;++a4&&t.slice(0,4)==="data"&&qr.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(kt,Vr);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!kt.test(o)){let s=o.replace(zr,Hr);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}a=Qe}return new a(r,e)}function Hr(n){return"-"+n.toLowerCase()}function Vr(n){return n.charAt(1).toUpperCase()}const Zr=Zt([Yt,Xt,en,tn,Ur],"html"),nn=Zt([Yt,Xt,en,tn,Dr],"svg"),wt={}.hasOwnProperty;function Kr(n,e){const t=e||{};function r(a,...o){let s=r.invalid;const c=r.handlers;if(a&&wt.call(a,n)){const i=String(a[n]);s=wt.call(c,i)?c[i]:r.unknown}if(s)return s.call(this,a,...o)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const Xr=/["&'<>`]/g,Yr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Qr=/[|\\{}()[\]^$+*?.]/g,_t=new WeakMap;function ea(n,e){if(n=n.replace(e.subset?ta(e.subset):Xr,r),e.subset||e.escapeOnly)return n;return n.replace(Yr,t).replace(Jr,r);function t(a,o,s){return e.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),e)}function r(a,o,s){return e.format(a.charCodeAt(0),s.charCodeAt(o+1),e)}}function ta(n){let e=_t.get(n);return e||(e=na(n),_t.set(n,e)),e}function na(n){const e=[];let t=-1;for(;++t",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ca=["cent","copy","divide","gt","lt","not","para","times"],rn={}.hasOwnProperty,Xe={};let ge;for(ge in Ge)rn.call(Ge,ge)&&(Xe[Ge[ge]]=ge);const la=/[^\dA-Za-z]/;function ua(n,e,t,r){const a=String.fromCharCode(n);if(rn.call(Xe,a)){const o=Xe[a],s="&"+o;return t&&ia.includes(o)&&!ca.includes(o)&&(!r||e&&e!==61&&la.test(String.fromCharCode(e)))?s:s+";"}return""}function da(n,e,t){let r=aa(n,e,t.omitOptionalSemicolons),a;if((t.useNamedReferences||t.useShortestReferences)&&(a=ua(n,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!a)&&t.useShortestReferences){const o=sa(n,e,t.omitOptionalSemicolons);o.length|^->||--!>|"],ga=["<",">"];function ha(n,e,t,r){return r.settings.bogusComments?"":"";function a(o){return X(o,Object.assign({},r.settings.characterReferences,{subset:ga}))}}function fa(n,e,t,r){return""}function vt(n,e){const t=String(n);if(typeof e!="string")throw new TypeError("Expected character");let r=0,a=t.indexOf(e);for(;a!==-1;)r++,a=t.indexOf(e,a+e.length);return r}function ba(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function ya(n){return n.join(" ").trim()}const ka=/[ \t\n\f\r]/g;function et(n){return typeof n=="object"?n.type==="text"?Ct(n.value):!1:Ct(n)}function Ct(n){return n.replace(ka,"")===""}const N=on(1),an=on(-1),wa=[];function on(n){return e;function e(t,r,a){const o=t?t.children:wa;let s=(r||0)+n,c=o[s];if(!a)for(;c&&et(c);)s+=n,c=o[s];return c}}const _a={}.hasOwnProperty;function sn(n){return e;function e(t,r,a){return _a.call(n,t.tagName)&&n[t.tagName](t,r,a)}}const tt=sn({body:Ca,caption:$e,colgroup:$e,dd:Ra,dt:xa,head:$e,html:va,li:Aa,optgroup:Pa,option:Na,p:Sa,rp:St,rt:St,tbody:Ea,td:At,tfoot:La,th:At,thead:Ta,tr:Ia});function $e(n,e,t){const r=N(t,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&et(r.value.charAt(0)))}function va(n,e,t){const r=N(t,e);return!r||r.type!=="comment"}function Ca(n,e,t){const r=N(t,e);return!r||r.type!=="comment"}function Sa(n,e,t){const r=N(t,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Aa(n,e,t){const r=N(t,e);return!r||r.type==="element"&&r.tagName==="li"}function xa(n,e,t){const r=N(t,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Ra(n,e,t){const r=N(t,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function St(n,e,t){const r=N(t,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Pa(n,e,t){const r=N(t,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function Na(n,e,t){const r=N(t,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Ta(n,e,t){const r=N(t,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ea(n,e,t){const r=N(t,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function La(n,e,t){return!N(t,e)}function Ia(n,e,t){const r=N(t,e);return!r||r.type==="element"&&r.tagName==="tr"}function At(n,e,t){const r=N(t,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Ba=sn({body:Ma,colgroup:Fa,head:ja,html:Oa,tbody:Ga});function Oa(n){const e=N(n,-1);return!e||e.type!=="comment"}function ja(n){const e=new Set;for(const r of n.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const t=n.children[0];return!t||t.type==="element"}function Ma(n){const e=N(n,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&et(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Fa(n,e,t){const r=an(t,e),a=N(n,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&tt(r,t.children.indexOf(r),t)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Ga(n,e,t){const r=an(t,e),a=N(n,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&tt(r,t.children.indexOf(r),t)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const he={name:[[` +\f\r &/=>`.split(""),` +\f\r "&'/=>\``.split("")],[`\0 +\f\r "&'/<=>`.split(""),`\0 +\f\r "&'/<=>\``.split("")]],unquoted:[[` +\f\r &>`.split(""),`\0 +\f\r "&'<=>\``.split("")],[`\0 +\f\r "&'<=>\``.split(""),`\0 +\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function $a(n,e,t,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let s=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(n.tagName.toLowerCase());const c=[];let i;a.space==="html"&&n.tagName==="svg"&&(r.schema=nn);const l=Ua(r,n.properties),u=r.all(a.space==="html"&&n.tagName==="template"?n.content:n);return r.schema=a,u&&(s=!1),(l||!o||!Ba(n,e,t))&&(c.push("<",n.tagName,l?" "+l:""),s&&(a.space==="svg"||r.settings.closeSelfClosing)&&(i=l.charAt(l.length-1),(!r.settings.tightSelfClosing||i==="/"||i&&i!=='"'&&i!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(u),!s&&(!o||!tt(n,e,t))&&c.push(""),c.join("")}function Ua(n,e){const t=[];let r=-1,a;if(e){for(a in e)if(e[a]!==null&&e[a]!==void 0){const o=Da(n,a,e[a]);o&&t.push(o)}}for(;++rvt(t,n.alternative)&&(s=n.alternative),c=s+X(t,Object.assign({},n.settings.characterReferences,{subset:(s==="'"?he.single:he.double)[a][o],attribute:!0}))+s),i+(c&&"="+c))}const qa=["<","&"];function cn(n,e,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?n.value:X(n.value,Object.assign({},r.settings.characterReferences,{subset:qa}))}function za(n,e,t,r){return r.settings.allowDangerousHtml?n.value:cn(n,e,t,r)}function Wa(n,e,t,r){return r.all(n)}const Ha=Kr("type",{invalid:Va,unknown:Za,handlers:{comment:ha,doctype:fa,element:$a,raw:za,root:Wa,text:cn}});function Va(n){throw new Error("Expected node, not `"+n+"`")}function Za(n){const e=n;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Ka={},Xa={},Ya=[];function Ja(n,e){const t=Ka,r=t.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Qa,all:eo,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Fr,characterReferences:t.characterReferences||Xa,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?nn:Zr,quote:r,alternative:a}.one(Array.isArray(n)?{type:"root",children:n}:n,void 0,void 0)}function Qa(n,e,t){return Ha(n,e,t,this)}function eo(n){const e=[],t=n&&n.children||Ya;let r=-1;for(;++rt&&r.push({...n,content:n.content.slice(t,a),offset:n.offset+t}),t=a;return tr-a);return t.length?n.map(r=>r.flatMap(a=>{const o=t.filter(s=>a.offsets-a.offset).sort((s,c)=>s-c);return o.length?ao(a,o):a})):n}async function un(n){return Promise.resolve(typeof n=="function"?n():n).then(e=>e.default||e)}function Se(n,e){const t=typeof n=="string"?{}:{...n.colorReplacements},r=typeof n=="string"?n:n.name;for(const[a,o]of Object.entries((e==null?void 0:e.colorReplacements)||{}))typeof o=="string"?t[a]=o:a===r&&Object.assign(t,o);return t}function z(n,e){return n&&((e==null?void 0:e[n==null?void 0:n.toLowerCase()])||n)}function dn(n){const e={};return n.color&&(e.color=n.color),n.bgColor&&(e["background-color"]=n.bgColor),n.fontStyle&&(n.fontStyle&q.Italic&&(e["font-style"]="italic"),n.fontStyle&q.Bold&&(e["font-weight"]="bold"),n.fontStyle&q.Underline&&(e["text-decoration"]="underline")),e}function so(n){return typeof n=="string"?n:Object.entries(n).map(([e,t])=>`${e}:${t}`).join(";")}function io(n){const e=Te(n,!0).map(([a])=>a);function t(a){if(a===n.length)return{line:e.length-1,character:e[e.length-1].length};let o=a,s=0;for(const c of e){if(o[r,Ve])),e)}getInternalStack(e=this.theme){return this._stacks[e]}get scopes(){return ye("GrammarState.scopes is deprecated, use GrammarState.getScopes() instead"),xt(this._stacks[this.theme])}getScopes(e=this.theme){return xt(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function xt(n){const e=[],t=new Set;function r(a){var s;if(t.has(a))return;t.add(a);const o=(s=a==null?void 0:a.nameScopesList)==null?void 0:s.scopeName;o&&e.push(o),a.parent&&r(a.parent)}return r(n),e}function co(n,e){if(!(n instanceof Q))throw new L("Invalid grammar state");return n.getInternalStack(e)}function lo(){const n=new WeakMap;function e(t){if(!n.has(t.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>t.source.length)throw new L(`Invalid decoration offset: ${s}. Code length: ${t.source.length}`);return{...a.indexToPos(s),offset:s}}else{const c=a.lines[s.line];if(c===void 0)throw new L(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${a.lines.length}`);if(s.character<0||s.character>c.length)throw new L(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${c.length}`);return{...s,offset:a.posToIndex(s.line,s.character)}}};const a=io(t.source),o=(t.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));uo(o),n.set(t.meta,{decorations:o,converter:a,source:t.source})}return n.get(t.meta)}return{name:"shiki:decorations",tokens(t){var s;if(!((s=this.options.decorations)!=null&&s.length))return;const a=e(this).decorations.flatMap(c=>[c.start.offset,c.end.offset]);return oo(t,a)},code(t){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const r=e(this),a=Array.from(t.children).filter(d=>d.type==="element"&&d.tagName==="span");if(a.length!==r.converter.lines.length)throw new L(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(d,m,p,h){const k=a[d];let y="",b=-1,w=-1;if(m===0&&(b=0),p===0&&(w=0),p===Number.POSITIVE_INFINITY&&(w=k.children.length),b===-1||w===-1)for(let C=0;Cb);return d.tagName=m.tagName||"span",d.properties={...d.properties,...h,class:d.properties.class},(y=m.properties)!=null&&y.class&&ln(d,m.properties.class),d=k(d,p)||d,d}const i=[],l=r.decorations.sort((d,m)=>m.start.offset-d.start.offset||d.end.offset-m.end.offset);for(const d of l){const{start:m,end:p}=d;if(m.line===p.line)o(m.line,m.character,p.character,d);else if(m.lines(h,d));o(p.line,0,p.character,d)}}i.forEach(d=>d())}}}function uo(n){for(let e=0;et.end.offset)throw new L(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let r=e+1;rNumber.parseInt(s));o.length===3&&!o.some(s=>Number.isNaN(s))&&(a={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(n[e+t]);Number.isNaN(o)||(a={type:"table",index:Number(o)})}return[t,a]}function go(n){const e=[];for(let t=0;t=90&&a<=97?e.push({type:"setForegroundColor",value:{type:"named",name:W[a-90+8]}}):a>=100&&a<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:W[a-100+8]}})}return e}function ho(){let n=null,e=null,t=new Set;return{parse(r){const a=[];let o=0;do{const s=mo(r,o),c=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(c.length>0&&a.push({value:c,foreground:n,background:e,decorations:new Set(t)}),s.sequence){const i=go(s.sequence);for(const l of i)l.type==="resetAll"?(n=null,e=null,t.clear()):l.type==="resetForegroundColor"?n=null:l.type==="resetBackgroundColor"?e=null:l.type==="resetDecoration"&&t.delete(l.value);for(const l of i)l.type==="setForegroundColor"?n=l.value:l.type==="setBackgroundColor"?e=l.value:l.type==="setDecoration"&&t.add(l.value)}o=s.position}while(oMath.max(0,Math.min(i,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let l=0;l{var i;return[c,(i=n.colors)==null?void 0:i[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]}))),s=ho();return a.map(c=>s.parse(c[0]).map(i=>{let l,u;i.decorations.has("reverse")?(l=i.background?o.value(i.background):n.bg,u=i.foreground?o.value(i.foreground):n.fg):(l=i.foreground?o.value(i.foreground):n.fg,u=i.background?o.value(i.background):void 0),l=z(l,r),u=z(u,r),i.decorations.has("dim")&&(l=ko(l));let d=q.None;return i.decorations.has("bold")&&(d|=q.Bold),i.decorations.has("italic")&&(d|=q.Italic),i.decorations.has("underline")&&(d|=q.Underline),{content:i.value,offset:c[1],color:l,bgColor:u,fontStyle:d}}))}function ko(n){const e=n.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const r=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${r}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(r=>`${r}${r}`).join("")}80`;const t=n.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:n}function at(n,e,t={}){const{lang:r="text",theme:a=n.getLoadedThemes()[0]}=t;if(nt(r)||rt(a))return Te(e).map(i=>[{content:i[0],offset:i[1]}]);const{theme:o,colorMap:s}=n.setTheme(a);if(r==="ansi")return yo(o,e,t);const c=n.getLanguage(r);if(t.grammarState){if(t.grammarState.lang!==c.name)throw new H(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${c.name}"`);if(!t.grammarState.themes.includes(o.name))throw new H(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return _o(e,c,o,s,t)}function wo(...n){if(n.length===2)return ie(n[1]);const[e,t,r={}]=n,{lang:a="text",theme:o=e.getLoadedThemes()[0]}=r;if(nt(a)||rt(o))throw new H("Plain language does not have grammar state");if(a==="ansi")throw new H("ANSI language does not have grammar state");const{theme:s,colorMap:c}=e.setTheme(o),i=e.getLanguage(a);return new Q(xe(t,i,s,c,r).stateStack,i.name,s.name)}function _o(n,e,t,r,a){const o=xe(n,e,t,r,a),s=new Q(xe(n,e,t,r,a).stateStack,e.name,t.name);return Ee(o.tokens,s),o.tokens}function xe(n,e,t,r,a){const o=Se(t,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:c=500}=a,i=Te(n);let l=a.grammarState?co(a.grammarState,t.name)??Ve:a.grammarContextCode!=null?xe(a.grammarContextCode,e,t,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ve,u=[];const d=[];for(let m=0,p=i.length;m0&&h.length>=s){u=[],d.push([{content:h,offset:k,color:"",fontStyle:0}]);continue}let y,b,w;a.includeExplanation&&(y=e.tokenizeLine(h,l),b=y.tokens,w=0);const _=e.tokenizeLine2(h,l,c),C=_.tokens.length/2;for(let A=0;AIe.trim());break;case"object":Z=U.scope;break;default:continue}st.push({settings:U,selectors:Z.map(Ie=>Ie.split(/ /))})}Le.explanation=[];let it=0;for(;I+it({scopeName:e}))}function Co(n,e){const t=[];for(let r=0,a=e.length;r=0&&a>=0;)Pt(n[r],t[a])&&(r-=1),a-=1;return r===-1}function Ao(n,e,t){const r=[];for(const{selectors:a,settings:o}of n)for(const s of a)if(So(s,e,t)){r.push(o);break}return r}function gn(n,e,t){const r=Object.entries(t.themes).filter(i=>i[1]).map(i=>({color:i[0],theme:i[1]})),a=r.map(i=>{const l=at(n,e,{...t,theme:i.theme}),u=ie(l),d=typeof i.theme=="string"?i.theme:i.theme.name;return{tokens:l,state:u,theme:d}}),o=xo(...a.map(i=>i.tokens)),s=o[0].map((i,l)=>i.map((u,d)=>{const m={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in t&&t.includeExplanation&&(m.explanation=u.explanation),o.forEach((p,h)=>{const{content:k,explanation:y,offset:b,...w}=p[l][d];m.variants[r[h].color]=w}),m})),c=a[0].state?new Q(Object.fromEntries(a.map(i=>{var l;return[i.theme,(l=i.state)==null?void 0:l.getInternalStack(i.theme)]})),a[0].state.lang):void 0;return c&&Ee(s,c),s}function xo(...n){const e=n.map(()=>[]),t=n.length;for(let r=0;ri[r]),o=e.map(()=>[]);e.forEach((i,l)=>i.push(o[l]));const s=a.map(()=>0),c=a.map(i=>i[0]);for(;c.every(i=>i);){const i=Math.min(...c.map(l=>l.content.length));for(let l=0;ly[1]).map(y=>({color:y[0],theme:y[1]})).sort((y,b)=>y.color===l?-1:b.color===l?1:0);if(d.length===0)throw new H("`themes` option must not be empty");const m=gn(n,e,t);if(i=ie(m),l&&!d.find(y=>y.color===l))throw new H(`\`themes\` option must contain the defaultColor key \`${l}\``);const p=d.map(y=>n.getTheme(y.theme)),h=d.map(y=>y.color);o=m.map(y=>y.map(b=>Ro(b,h,u,l))),i&&Ee(o,i);const k=d.map(y=>Se(y.theme,t));a=d.map((y,b)=>(b===0&&l?"":`${u+y.color}:`)+(z(p[b].fg,k[b])||"inherit")).join(";"),r=d.map((y,b)=>(b===0&&l?"":`${u+y.color}-bg:`)+(z(p[b].bg,k[b])||"inherit")).join(";"),s=`shiki-themes ${p.map(y=>y.name).join(" ")}`,c=l?void 0:[a,r].join(";")}else if("theme"in t){const l=Se(t.theme,t);o=at(n,e,t);const u=n.getTheme(t.theme);r=z(u.bg,l),a=z(u.fg,l),s=u.name,i=ie(o)}else throw new H("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:s,rootStyle:c,grammarState:i}}function Ro(n,e,t,r){const a={content:n.content,explanation:n.explanation,offset:n.offset},o=e.map(i=>dn(n.variants[i])),s=new Set(o.flatMap(i=>Object.keys(i))),c={};return o.forEach((i,l)=>{for(const u of s){const d=i[u]||"inherit";if(l===0&&r)c[u]=d;else{const m=u==="color"?"":u==="background-color"?"-bg":`-${u}`,p=t+e[l]+(u==="color"?"":m);c[p]=d}}}),a.htmlStyle=c,a}function Pe(n,e,t,r={meta:{},options:t,codeToHast:(a,o)=>Pe(n,a,o),codeToTokens:(a,o)=>Re(n,a,o)}){var p,h;let a=e;for(const k of Ae(t))a=((p=k.preprocess)==null?void 0:p.call(r,a,t))||a;let{tokens:o,fg:s,bg:c,themeName:i,rootStyle:l,grammarState:u}=Re(n,a,t);const{mergeWhitespaces:d=!0}=t;d===!0?o=No(o):d==="never"&&(o=To(o));const m={...r,get source(){return a}};for(const k of Ae(t))o=((h=k.tokens)==null?void 0:h.call(m,o))||o;return Po(o,{...t,fg:s,bg:c,themeName:i,rootStyle:l},m,u)}function Po(n,e,t,r=ie(n)){var h,k,y;const a=Ae(e),o=[],s={type:"root",children:[]},{structure:c="classic",tabindex:i="0"}=e;let l={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...i!==!1&&i!=null?{tabindex:i.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([b])=>!b.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:o};const d=[],m={...t,structure:c,addClassToHast:ln,get source(){return t.source},get tokens(){return n},get options(){return e},get root(){return s},get pre(){return l},get code(){return u},get lines(){return d}};if(n.forEach((b,w)=>{var A,I;w&&(c==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&o.push({type:"text",value:` +`}));let _={type:"element",tagName:"span",properties:{class:"line"},children:[]},C=0;for(const R of b){let $={type:"element",tagName:"span",properties:{...R.htmlAttrs},children:[{type:"text",value:R.content}]};typeof R.htmlStyle=="string"&&ye("`htmlStyle` as a string is deprecated. Use an object instead.");const de=so(R.htmlStyle||dn(R));de&&($.properties.style=de);for(const ee of a)$=((A=ee==null?void 0:ee.span)==null?void 0:A.call(m,$,w+1,C,_,R))||$;c==="inline"?s.children.push($):c==="classic"&&_.children.push($),C+=R.content.length}if(c==="classic"){for(const R of a)_=((I=R==null?void 0:R.line)==null?void 0:I.call(m,_,w+1))||_;d.push(_),o.push(_)}}),c==="classic"){for(const b of a)u=((h=b==null?void 0:b.code)==null?void 0:h.call(m,u))||u;l.children.push(u);for(const b of a)l=((k=b==null?void 0:b.pre)==null?void 0:k.call(m,l))||l;s.children.push(l)}let p=s;for(const b of a)p=((y=b==null?void 0:b.root)==null?void 0:y.call(m,p))||p;return r&&Ee(p,r),p}function No(n){return n.map(e=>{const t=[];let r="",a=0;return e.forEach((o,s)=>{const i=!(o.fontStyle&&o.fontStyle&q.Underline);i&&o.content.match(/^\s+$/)&&e[s+1]?(a||(a=o.offset),r+=o.content):r?(i?t.push({...o,offset:a,content:r+o.content}):t.push({content:r,offset:a},o),a=0,r=""):t.push(o)}),t})}function To(n){return n.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const r=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return t;const[,a,o,s]=r;if(!a&&!s)return t;const c=[{...t,offset:t.offset+a.length,content:o}];return a&&c.unshift({content:a,offset:t.offset}),s&&c.push({content:s,offset:t.offset+a.length+o.length}),c}))}function Eo(n,e,t){var o;const r={meta:{},options:t,codeToHast:(s,c)=>Pe(n,s,c),codeToTokens:(s,c)=>Re(n,s,c)};let a=Ja(Pe(n,e,t,r));for(const s of Ae(t))a=((o=s.postprocess)==null?void 0:o.call(r,a,t))||a;return a}const Nt={light:"#333333",dark:"#bbbbbb"},Tt={light:"#fffffe",dark:"#1e1e1e"},Et="__shiki_resolved";function ot(n){var c,i,l,u,d;if(n!=null&&n[Et])return n;const e={...n};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:t,fg:r}=e;if(!t||!r){const m=e.settings?e.settings.find(p=>!p.name&&!p.scope):void 0;(c=m==null?void 0:m.settings)!=null&&c.foreground&&(r=m.settings.foreground),(i=m==null?void 0:m.settings)!=null&&i.background&&(t=m.settings.background),!r&&((l=e==null?void 0:e.colors)!=null&&l["editor.foreground"])&&(r=e.colors["editor.foreground"]),!t&&((u=e==null?void 0:e.colors)!=null&&u["editor.background"])&&(t=e.colors["editor.background"]),r||(r=e.type==="light"?Nt.light:Nt.dark),t||(t=e.type==="light"?Tt.light:Tt.dark),e.fg=r,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let a=0;const o=new Map;function s(m){var h;if(o.has(m))return o.get(m);a+=1;const p=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return(h=e.colorReplacements)!=null&&h[`#${p}`]?s(m):(o.set(m,p),p)}e.settings=e.settings.map(m=>{var y,b;const p=((y=m.settings)==null?void 0:y.foreground)&&!m.settings.foreground.startsWith("#"),h=((b=m.settings)==null?void 0:b.background)&&!m.settings.background.startsWith("#");if(!p&&!h)return m;const k={...m,settings:{...m.settings}};if(p){const w=s(m.settings.foreground);e.colorReplacements[w]=m.settings.foreground,k.settings.foreground=w}if(h){const w=s(m.settings.background);e.colorReplacements[w]=m.settings.background,k.settings.background=w}return k});for(const m of Object.keys(e.colors||{}))if((m==="editor.foreground"||m==="editor.background"||m.startsWith("terminal.ansi"))&&!((d=e.colors[m])!=null&&d.startsWith("#"))){const p=s(e.colors[m]);e.colorReplacements[p]=e.colors[m],e.colors[m]=p}return Object.defineProperty(e,Et,{enumerable:!1,writable:!1,value:!0}),e}async function hn(n){return Array.from(new Set((await Promise.all(n.filter(e=>!no(e)).map(async e=>await un(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function fn(n){return(await Promise.all(n.map(async t=>ro(t)?null:ot(await un(t))))).filter(t=>!!t)}class Lo extends Mr{constructor(t,r,a,o={}){super(t);g(this,"_resolvedThemes",new Map);g(this,"_resolvedGrammars",new Map);g(this,"_langMap",new Map);g(this,"_langGraph",new Map);g(this,"_textmateThemeCache",new WeakMap);g(this,"_loadedThemesCache",null);g(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=r,this._langs=a,this._alias=o,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const r=ot(t);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let r=this._textmateThemeCache.get(t);r||(r=ke.createFromRawTheme(t),this._textmateThemeCache.set(t,r)),this._syncRegistry.setTheme(r)}getGrammar(t){if(this._alias[t]){const r=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],r.has(t))throw new L(`Circular alias \`${Array.from(r).join(" -> ")} -> ${t}\``);r.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){var s,c,i,l;if(this.getGrammar(t.name))return;const r=new Set([...this._langMap.values()].filter(u=>{var d;return(d=u.embeddedLangsLazy)==null?void 0:d.includes(t.name)}));this._resolver.addLanguage(t);const a={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const o=this.loadGrammarWithConfiguration(t.scopeName,1,a);if(o.name=t.name,this._resolvedGrammars.set(t.name,o),t.aliases&&t.aliases.forEach(u=>{this._alias[u]=t.name}),this._loadedLanguagesCache=null,r.size)for(const u of r)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,(c=(s=this._syncRegistry)==null?void 0:s._injectionGrammars)==null||c.delete(u.scopeName),(l=(i=this._syncRegistry)==null?void 0:i._grammars)==null||l.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const o of t)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),a=r.filter(([o,s])=>!s);if(a.length){const o=r.filter(([s,c])=>{var i;return c&&((i=c.embeddedLangs)==null?void 0:i.some(l=>a.map(([u])=>u).includes(l)))}).filter(s=>!a.includes(s));throw new L(`Missing languages ${a.map(([s])=>`\`${s}\``).join(", ")}, required by ${o.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[o,s]of r)this._resolver.addLanguage(s);for(const[o,s]of r)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const r of t.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class Io{constructor(e,t){g(this,"_langs",new Map);g(this,"_scopeToLang",new Map);g(this,"_injections",new Map);g(this,"_onigLib");this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let r=[];for(let a=1;a<=t.length;a++){const o=t.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let te=0;function Bo(n){te+=1,n.warnings!==!1&&te>=10&&te%10===0&&console.warn(`[Shiki] ${te} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!n.engine)throw new L("`engine` option is required for synchronous mode");const t=(n.langs||[]).flat(1),r=(n.themes||[]).flat(1).map(ot),a=new Io(n.engine,t),o=new Lo(a,r,t,n.langAlias);let s;function c(w){y();const _=o.getGrammar(typeof w=="string"?w:w.name);if(!_)throw new L(`Language \`${w}\` not found, you may need to load it first`);return _}function i(w){if(w==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();const _=o.getTheme(w);if(!_)throw new L(`Theme \`${w}\` not found, you may need to load it first`);return _}function l(w){y();const _=i(w);s!==w&&(o.setTheme(_),s=w);const C=o.getColorMap();return{theme:_,colorMap:C}}function u(){return y(),o.getLoadedThemes()}function d(){return y(),o.getLoadedLanguages()}function m(...w){y(),o.loadLanguages(w.flat(1))}async function p(...w){return m(await hn(w))}function h(...w){y();for(const _ of w.flat(1))o.loadTheme(_)}async function k(...w){return y(),h(await fn(w))}function y(){if(e)throw new L("Shiki instance has been disposed")}function b(){e||(e=!0,o.dispose(),te-=1)}return{setTheme:l,getTheme:i,getLanguage:c,getLoadedThemes:u,getLoadedLanguages:d,loadLanguage:p,loadLanguageSync:m,loadTheme:k,loadThemeSync:h,dispose:b,[Symbol.dispose]:b}}async function Oo(n){n.loadWasm&&ye("`loadWasm` option is deprecated. Use `engine: createOnigurumaEngine(loadWasm)` instead."),n.engine||ye("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,r]=await Promise.all([fn(n.themes||[]),hn(n.langs||[]),n.engine||Lt(n.loadWasm||Xn())]);return Bo({...n,themes:e,langs:t,engine:r})}async function jo(n){const e=await Oo(n);return{getLastGrammarState:(...t)=>wo(e,...t),codeToTokensBase:(t,r)=>at(e,t,r),codeToTokensWithThemes:(t,r)=>gn(e,t,r),codeToTokens:(t,r)=>Re(e,t,r),codeToHast:(t,r)=>Pe(e,t,r),codeToHtml:(t,r)=>Eo(e,t,r),...e,getInternalContext:()=>e}}const Mo=kn({__name:"CodeEditor",setup(n,{expose:e}){e();let t=null,r=null,a=null;const{grammars:o,theme:s}=Ln,c=ct(),i=lt(),l=lt(),u=ct("");async function d(){t=await jo({themes:"light"in s&&"dark"in s?[s.light,s.dark]:[s],langs:Object.keys(o).map(k=>o[k]),engine:Lt(()=>Sn(()=>import("./wasm-CG6Dc4jp.js"),[]))})}function m(){if(t&&c.value&&u.value){const k=t.codeToHtml(u.value,{lang:c.value,..."light"in s&&"dark"in s?{themes:s,defaultColor:!1}:{theme:s}});r&&(r.innerHTML=k.replace(/^]*>/,"").replace(/<\/pre>$/,"").replace(/()(<\/span>)/g,"$1$2")),a&&(a.innerHTML=k.split(` +`).map(()=>'
').join(""))}}function p(){var k;r&&(r.scrollLeft=((k=l.value)==null?void 0:k.scrollLeft)||0)}wn([u],m,{flush:"post"}),_n(async()=>{if(!i.value||!l.value)return;await d(),r=i.value.querySelector("pre"),a=i.value.querySelector(".line-numbers");const k=vn(i.value);c.value=k.lang,u.value=k.code,l.value.addEventListener("scroll",p,{passive:!1}),window.addEventListener("resize",p)}),Cn(()=>{var k;(k=l.value)==null||k.removeEventListener("scroll",p),window.removeEventListener("resize",p),t=null,r=null,a=null});const h={get highlighter(){return t},set highlighter(k){t=k},get container(){return r},set container(k){r=k},get lineNumbers(){return a},set lineNumbers(k){a=k},grammars:o,theme:s,lang:c,editorEl:i,textAreaEl:l,input:u,init:d,highlight:m,updateScroll:p};return Object.defineProperty(h,"__isScriptSetup",{enumerable:!1,value:!0}),h}}),Fo={ref:"editorEl",class:"code-repl-editor"};function Go(n,e,t,r,a,o){return Rn(),xn("div",Fo,[Pn(n.$slots,"default",{},void 0,!0),Nn(En("textarea",{ref:"textAreaEl","onUpdate:modelValue":e[0]||(e[0]=s=>r.input=s),class:"code-repl-input"},null,512),[[Tn,r.input]])],512)}const Wo=An(Mo,[["render",Go],["__scopeId","data-v-3da7a52c"],["__file","CodeEditor.vue"]]);export{Wo as default}; diff --git a/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 b/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 new file mode 100644 index 0000000..0acaaff Binary files /dev/null and b/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 differ diff --git a/assets/KaTeX_AMS-Regular-DMm9YOAa.woff b/assets/KaTeX_AMS-Regular-DMm9YOAa.woff new file mode 100644 index 0000000..b804d7b Binary files /dev/null and b/assets/KaTeX_AMS-Regular-DMm9YOAa.woff differ diff --git a/assets/KaTeX_AMS-Regular-DRggAlZN.ttf b/assets/KaTeX_AMS-Regular-DRggAlZN.ttf new file mode 100644 index 0000000..c6f9a5e Binary files /dev/null and b/assets/KaTeX_AMS-Regular-DRggAlZN.ttf differ diff --git a/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf b/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf new file mode 100644 index 0000000..9ff4a5e Binary files /dev/null and b/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf differ diff --git a/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff b/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff new file mode 100644 index 0000000..9759710 Binary files /dev/null and b/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff differ diff --git a/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 b/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 new file mode 100644 index 0000000..f390922 Binary files /dev/null and b/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 differ diff --git a/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff b/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff new file mode 100644 index 0000000..9bdd534 Binary files /dev/null and b/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff differ diff --git a/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 b/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 new file mode 100644 index 0000000..75344a1 Binary files /dev/null and b/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 differ diff --git a/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf b/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf new file mode 100644 index 0000000..f522294 Binary files /dev/null and b/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf differ diff --git a/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf b/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf new file mode 100644 index 0000000..4e98259 Binary files /dev/null and b/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf differ diff --git a/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff b/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff new file mode 100644 index 0000000..e7730f6 Binary files /dev/null and b/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff differ diff --git a/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 b/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 new file mode 100644 index 0000000..395f28b Binary files /dev/null and b/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 differ diff --git a/assets/KaTeX_Fraktur-Regular-CB_wures.ttf b/assets/KaTeX_Fraktur-Regular-CB_wures.ttf new file mode 100644 index 0000000..b8461b2 Binary files /dev/null and b/assets/KaTeX_Fraktur-Regular-CB_wures.ttf differ diff --git a/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 b/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 new file mode 100644 index 0000000..735f694 Binary files /dev/null and b/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 differ diff --git a/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff b/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff new file mode 100644 index 0000000..acab069 Binary files /dev/null and b/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff differ diff --git a/assets/KaTeX_Main-Bold-Cx986IdX.woff2 b/assets/KaTeX_Main-Bold-Cx986IdX.woff2 new file mode 100644 index 0000000..ab2ad21 Binary files /dev/null and b/assets/KaTeX_Main-Bold-Cx986IdX.woff2 differ diff --git a/assets/KaTeX_Main-Bold-Jm3AIy58.woff b/assets/KaTeX_Main-Bold-Jm3AIy58.woff new file mode 100644 index 0000000..f38136a Binary files /dev/null and b/assets/KaTeX_Main-Bold-Jm3AIy58.woff differ diff --git a/assets/KaTeX_Main-Bold-waoOVXN0.ttf b/assets/KaTeX_Main-Bold-waoOVXN0.ttf new file mode 100644 index 0000000..4060e62 Binary files /dev/null and b/assets/KaTeX_Main-Bold-waoOVXN0.ttf differ diff --git a/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 b/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 new file mode 100644 index 0000000..5931794 Binary files /dev/null and b/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 differ diff --git a/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf b/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf new file mode 100644 index 0000000..dc00797 Binary files /dev/null and b/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf differ diff --git a/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff b/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff new file mode 100644 index 0000000..67807b0 Binary files /dev/null and b/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff differ diff --git a/assets/KaTeX_Main-Italic-3WenGoN9.ttf b/assets/KaTeX_Main-Italic-3WenGoN9.ttf new file mode 100644 index 0000000..0e9b0f3 Binary files /dev/null and b/assets/KaTeX_Main-Italic-3WenGoN9.ttf differ diff --git a/assets/KaTeX_Main-Italic-BMLOBm91.woff b/assets/KaTeX_Main-Italic-BMLOBm91.woff new file mode 100644 index 0000000..6f43b59 Binary files /dev/null and b/assets/KaTeX_Main-Italic-BMLOBm91.woff differ diff --git a/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 b/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 new file mode 100644 index 0000000..b50920e Binary files /dev/null and b/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 differ diff --git a/assets/KaTeX_Main-Regular-B22Nviop.woff2 b/assets/KaTeX_Main-Regular-B22Nviop.woff2 new file mode 100644 index 0000000..eb24a7b Binary files /dev/null and b/assets/KaTeX_Main-Regular-B22Nviop.woff2 differ diff --git a/assets/KaTeX_Main-Regular-Dr94JaBh.woff b/assets/KaTeX_Main-Regular-Dr94JaBh.woff new file mode 100644 index 0000000..21f5812 Binary files /dev/null and b/assets/KaTeX_Main-Regular-Dr94JaBh.woff differ diff --git a/assets/KaTeX_Main-Regular-ypZvNtVU.ttf b/assets/KaTeX_Main-Regular-ypZvNtVU.ttf new file mode 100644 index 0000000..dd45e1e Binary files /dev/null and b/assets/KaTeX_Main-Regular-ypZvNtVU.ttf differ diff --git a/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf b/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf new file mode 100644 index 0000000..728ce7a Binary files /dev/null and b/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf differ diff --git a/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 b/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 new file mode 100644 index 0000000..2965702 Binary files /dev/null and b/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 differ diff --git a/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff b/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff new file mode 100644 index 0000000..0ae390d Binary files /dev/null and b/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff differ diff --git a/assets/KaTeX_Math-Italic-DA0__PXp.woff b/assets/KaTeX_Math-Italic-DA0__PXp.woff new file mode 100644 index 0000000..eb5159d Binary files /dev/null and b/assets/KaTeX_Math-Italic-DA0__PXp.woff differ diff --git a/assets/KaTeX_Math-Italic-flOr_0UB.ttf b/assets/KaTeX_Math-Italic-flOr_0UB.ttf new file mode 100644 index 0000000..70d559b Binary files /dev/null and b/assets/KaTeX_Math-Italic-flOr_0UB.ttf differ diff --git a/assets/KaTeX_Math-Italic-t53AETM-.woff2 b/assets/KaTeX_Math-Italic-t53AETM-.woff2 new file mode 100644 index 0000000..215c143 Binary files /dev/null and b/assets/KaTeX_Math-Italic-t53AETM-.woff2 differ diff --git a/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf b/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf new file mode 100644 index 0000000..2f65a8a Binary files /dev/null and b/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf differ diff --git a/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 b/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 new file mode 100644 index 0000000..cfaa3bd Binary files /dev/null and b/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 differ diff --git a/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff b/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff new file mode 100644 index 0000000..8d47c02 Binary files /dev/null and b/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff differ diff --git a/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 b/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 new file mode 100644 index 0000000..349c06d Binary files /dev/null and b/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 differ diff --git a/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff b/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff new file mode 100644 index 0000000..7e02df9 Binary files /dev/null and b/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff differ diff --git a/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf b/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf new file mode 100644 index 0000000..d5850df Binary files /dev/null and b/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf differ diff --git a/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf b/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf new file mode 100644 index 0000000..537279f Binary files /dev/null and b/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf differ diff --git a/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff b/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff new file mode 100644 index 0000000..31b8482 Binary files /dev/null and b/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff differ diff --git a/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 b/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 new file mode 100644 index 0000000..a90eea8 Binary files /dev/null and b/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 differ diff --git a/assets/KaTeX_Script-Regular-C5JkGWo-.ttf b/assets/KaTeX_Script-Regular-C5JkGWo-.ttf new file mode 100644 index 0000000..fd679bf Binary files /dev/null and b/assets/KaTeX_Script-Regular-C5JkGWo-.ttf differ diff --git a/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 b/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 new file mode 100644 index 0000000..b3048fc Binary files /dev/null and b/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 differ diff --git a/assets/KaTeX_Script-Regular-D5yQViql.woff b/assets/KaTeX_Script-Regular-D5yQViql.woff new file mode 100644 index 0000000..0e7da82 Binary files /dev/null and b/assets/KaTeX_Script-Regular-D5yQViql.woff differ diff --git a/assets/KaTeX_Size1-Regular-C195tn64.woff b/assets/KaTeX_Size1-Regular-C195tn64.woff new file mode 100644 index 0000000..7f292d9 Binary files /dev/null and b/assets/KaTeX_Size1-Regular-C195tn64.woff differ diff --git a/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf b/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf new file mode 100644 index 0000000..871fd7d Binary files /dev/null and b/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf differ diff --git a/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 b/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 new file mode 100644 index 0000000..c5a8462 Binary files /dev/null and b/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 differ diff --git a/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf b/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf new file mode 100644 index 0000000..7a212ca Binary files /dev/null and b/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf differ diff --git a/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 b/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 new file mode 100644 index 0000000..e1bccfe Binary files /dev/null and b/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 differ diff --git a/assets/KaTeX_Size2-Regular-oD1tc_U0.woff b/assets/KaTeX_Size2-Regular-oD1tc_U0.woff new file mode 100644 index 0000000..d241d9b Binary files /dev/null and b/assets/KaTeX_Size2-Regular-oD1tc_U0.woff differ diff --git a/assets/KaTeX_Size3-Regular-CTq5MqoE.woff b/assets/KaTeX_Size3-Regular-CTq5MqoE.woff new file mode 100644 index 0000000..e6e9b65 Binary files /dev/null and b/assets/KaTeX_Size3-Regular-CTq5MqoE.woff differ diff --git a/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf b/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf new file mode 100644 index 0000000..00bff34 Binary files /dev/null and b/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf differ diff --git a/assets/KaTeX_Size4-Regular-BF-4gkZK.woff b/assets/KaTeX_Size4-Regular-BF-4gkZK.woff new file mode 100644 index 0000000..e1ec545 Binary files /dev/null and b/assets/KaTeX_Size4-Regular-BF-4gkZK.woff differ diff --git a/assets/KaTeX_Size4-Regular-DWFBv043.ttf b/assets/KaTeX_Size4-Regular-DWFBv043.ttf new file mode 100644 index 0000000..74f0892 Binary files /dev/null and b/assets/KaTeX_Size4-Regular-DWFBv043.ttf differ diff --git a/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 b/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 new file mode 100644 index 0000000..680c130 Binary files /dev/null and b/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 differ diff --git a/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff b/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff new file mode 100644 index 0000000..2432419 Binary files /dev/null and b/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff differ diff --git a/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 b/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 new file mode 100644 index 0000000..771f1af Binary files /dev/null and b/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 differ diff --git a/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf b/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf new file mode 100644 index 0000000..c83252c Binary files /dev/null and b/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf differ diff --git a/assets/SearchBox-CAdZKjwp.js b/assets/SearchBox-CAdZKjwp.js new file mode 100644 index 0000000..a221e4c --- /dev/null +++ b/assets/SearchBox-CAdZKjwp.js @@ -0,0 +1,8 @@ +var dt=Object.defineProperty;var ht=(a,e,t)=>e in a?dt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var we=(a,e,t)=>ht(a,typeof e!="symbol"?e+"":e,t);import{d as K,h as he,t as je,i as ft,u as pt,n as mt,w as Oe,j as gt,_ as ye,c as W,o as B,e as x,k as vt,l as bt,m as yt,p as wt,s as _e,q as Pe,v as _t,x as xt,y as xe,z as ce,A as St,B as It,C as kt,D as se,E as Et,F as Tt,G as Nt,H as Ve,I as Ft,J as Ot,K as Ct,b as Se,L as Rt,M as Mt,N as Be,O as At,P as We,g as ie,Q as re,T as Lt}from"./app-DhYi4InN.js";/*! +* tabbable 6.2.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var Ze=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],pe=Ze.join(","),Xe=typeof Element>"u",q=Xe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,me=!Xe&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},ge=function a(e,t){var n;t===void 0&&(t=!0);var s=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),r=s===""||s==="true",i=r||t&&e&&a(e.parentNode);return i},Dt=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},et=function(e,t,n){if(ge(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(pe));return t&&q.call(e,pe)&&s.unshift(e),s=s.filter(n),s},tt=function a(e,t,n){for(var s=[],r=Array.from(e);r.length;){var i=r.shift();if(!ge(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),c=o.length?o:i.children,l=a(c,!0,n);n.flatten?s.push.apply(s,l):s.push({scopeParent:i,candidates:l})}else{var d=q.call(i,pe);d&&n.filter(i)&&(t||!e.includes(i))&&s.push(i);var f=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),p=!ge(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(f&&p){var v=a(f===!0?i.children:f.children,!0,n);n.flatten?s.push.apply(s,v):s.push({scopeParent:i,candidates:v})}else r.unshift.apply(r,i.children)}}return s},nt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},U=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Dt(e))&&!nt(e)?0:e.tabIndex},zt=function(e,t){var n=U(e);return n<0&&t&&!nt(e)?0:n},jt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},st=function(e){return e.tagName==="INPUT"},Pt=function(e){return st(e)&&e.type==="hidden"},Vt=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},Bt=function(e,t){for(var n=0;nsummary:first-of-type"),i=r?e.parentElement:e;if(q.call(i,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof s=="function"){for(var o=e;e;){var c=e.parentElement,l=me(e);if(c&&!c.shadowRoot&&s(c)===!0)return $e(e);e.assignedSlot?e=e.assignedSlot:!c&&l!==e.ownerDocument?e=l.host:e=c}e=o}if(Kt(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return $e(e);return!1},qt=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},Ht=function a(e){var t=[],n=[];return e.forEach(function(s,r){var i=!!s.scopeParent,o=i?s.scopeParent:s,c=zt(o,i),l=i?a(s.candidates):o;c===0?i?t.push.apply(t,l):t.push(o):n.push({documentOrder:r,tabIndex:c,item:s,isScope:i,content:l})}),n.sort(jt).reduce(function(s,r){return r.isScope?s.push.apply(s,r.content):s.push(r.content),s},[]).concat(t)},Qt=function(e,t){t=t||{};var n;return t.getShadowRoot?n=tt([e],t.includeContainer,{filter:Ce.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Gt}):n=et(e,t.includeContainer,Ce.bind(null,t)),Ht(n)},Yt=function(e,t){t=t||{};var n;return t.getShadowRoot?n=tt([e],t.includeContainer,{filter:ve.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=et(e,t.includeContainer,ve.bind(null,t)),n},Y=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return q.call(e,pe)===!1?!1:Ce(t,e)},Zt=Ze.concat("iframe").join(","),Ie=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return q.call(e,Zt)===!1?!1:ve(t,e)};/*! +* focus-trap 7.6.4 +* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE +*/function Re(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=Array(e);t0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var s=e.indexOf(t);s===-1||e.splice(s,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},cn=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},ln=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},oe=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},un=function(e){return oe(e)&&!e.shiftKey},dn=function(e){return oe(e)&&e.shiftKey},qe=function(e){return setTimeout(e,0)},ae=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s1&&arguments[1]!==void 0?arguments[1]:{},g=h.hasFallback,k=g===void 0?!1:g,m=h.params,_=m===void 0?[]:m,w=r[u];if(typeof w=="function"&&(w=w.apply(void 0,sn(_))),w===!0&&(w=void 0),!w){if(w===void 0||w===!1)return w;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var N=w;if(typeof w=="string"){try{N=n.querySelector(w)}catch(F){throw new Error("`".concat(u,'` appears to be an invalid selector; error="').concat(F.message,'"'))}if(!N&&!k)throw new Error("`".concat(u,"` as selector refers to no known node"))}return N},f=function(){var u=d("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!Ie(u,r.tabbableOptions))if(l(n.activeElement)>=0)u=n.activeElement;else{var h=i.tabbableGroups[0],g=h&&h.firstTabbableNode;u=g||d("fallbackFocus")}else u===null&&(u=d("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},p=function(){if(i.containerGroups=i.containers.map(function(u){var h=Qt(u,r.tabbableOptions),g=Yt(u,r.tabbableOptions),k=h.length>0?h[0]:void 0,m=h.length>0?h[h.length-1]:void 0,_=g.find(function(F){return Y(F)}),w=g.slice().reverse().find(function(F){return Y(F)}),N=!!h.find(function(F){return U(F)>0});return{container:u,tabbableNodes:h,focusableNodes:g,posTabIndexesFound:N,firstTabbableNode:k,lastTabbableNode:m,firstDomTabbableNode:_,lastDomTabbableNode:w,nextTabbableNode:function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=h.indexOf(j);return R<0?A?g.slice(g.indexOf(j)+1).find(function(P){return Y(P)}):g.slice(0,g.indexOf(j)).reverse().find(function(P){return Y(P)}):h[R+(A?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(u){return u.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},v=function(u){var h=u.activeElement;if(h)return h.shadowRoot&&h.shadowRoot.activeElement!==null?v(h.shadowRoot):h},b=function(u){if(u!==!1&&u!==v(document)){if(!u||!u.focus){b(f());return}u.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=u,cn(u)&&u.select()}},y=function(u){var h=d("setReturnFocus",{params:[u]});return h||(h===!1?!1:u)},S=function(u){var h=u.target,g=u.event,k=u.isBackward,m=k===void 0?!1:k;h=h||le(g),p();var _=null;if(i.tabbableGroups.length>0){var w=l(h,g),N=w>=0?i.containerGroups[w]:void 0;if(w<0)m?_=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:_=i.tabbableGroups[0].firstTabbableNode;else if(m){var F=i.tabbableGroups.findIndex(function(te){var ne=te.firstTabbableNode;return h===ne});if(F<0&&(N.container===h||Ie(h,r.tabbableOptions)&&!Y(h,r.tabbableOptions)&&!N.nextTabbableNode(h,!1))&&(F=w),F>=0){var j=F===0?i.tabbableGroups.length-1:F-1,A=i.tabbableGroups[j];_=U(h)>=0?A.lastTabbableNode:A.lastDomTabbableNode}else oe(g)||(_=N.nextTabbableNode(h,!1))}else{var R=i.tabbableGroups.findIndex(function(te){var ne=te.lastTabbableNode;return h===ne});if(R<0&&(N.container===h||Ie(h,r.tabbableOptions)&&!Y(h,r.tabbableOptions)&&!N.nextTabbableNode(h))&&(R=w),R>=0){var P=R===i.tabbableGroups.length-1?0:R+1,Q=i.tabbableGroups[P];_=U(h)>=0?Q.firstTabbableNode:Q.firstDomTabbableNode}else oe(g)||(_=N.nextTabbableNode(h))}}else _=d("fallbackFocus");return _},I=function(u){var h=le(u);if(!(l(h,u)>=0)){if(ae(r.clickOutsideDeactivates,u)){o.deactivate({returnFocus:r.returnFocusOnDeactivate});return}ae(r.allowOutsideClick,u)||u.preventDefault()}},T=function(u){var h=le(u),g=l(h,u)>=0;if(g||h instanceof Document)g&&(i.mostRecentlyFocusedNode=h);else{u.stopImmediatePropagation();var k,m=!0;if(i.mostRecentlyFocusedNode)if(U(i.mostRecentlyFocusedNode)>0){var _=l(i.mostRecentlyFocusedNode),w=i.containerGroups[_].tabbableNodes;if(w.length>0){var N=w.findIndex(function(F){return F===i.mostRecentlyFocusedNode});N>=0&&(r.isKeyForward(i.recentNavEvent)?N+1=0&&(k=w[N-1],m=!1))}}else i.containerGroups.some(function(F){return F.tabbableNodes.some(function(j){return U(j)>0})})||(m=!1);else m=!1;m&&(k=S({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),b(k||i.mostRecentlyFocusedNode||f())}i.recentNavEvent=void 0},M=function(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=u;var g=S({event:u,isBackward:h});g&&(oe(u)&&u.preventDefault(),b(g))},z=function(u){(r.isKeyForward(u)||r.isKeyBackward(u))&&M(u,r.isKeyBackward(u))},L=function(u){ln(u)&&ae(r.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},D=function(u){var h=le(u);l(h,u)>=0||ae(r.clickOutsideDeactivates,u)||ae(r.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},O=function(){if(i.active)return Ue.activateTrap(s,o),i.delayInitialFocusTimer=r.delayInitialFocus?qe(function(){b(f())}):b(f()),n.addEventListener("focusin",T,!0),n.addEventListener("mousedown",I,{capture:!0,passive:!1}),n.addEventListener("touchstart",I,{capture:!0,passive:!1}),n.addEventListener("click",D,{capture:!0,passive:!1}),n.addEventListener("keydown",z,{capture:!0,passive:!1}),n.addEventListener("keydown",L),o},G=function(){if(i.active)return n.removeEventListener("focusin",T,!0),n.removeEventListener("mousedown",I,!0),n.removeEventListener("touchstart",I,!0),n.removeEventListener("click",D,!0),n.removeEventListener("keydown",z,!0),n.removeEventListener("keydown",L),o},H=function(u){var h=u.some(function(g){var k=Array.from(g.removedNodes);return k.some(function(m){return m===i.mostRecentlyFocusedNode})});h&&b(f())},J=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(H):void 0,V=function(){J&&(J.disconnect(),i.active&&!i.paused&&i.containers.map(function(u){J.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var h=c(u,"onActivate"),g=c(u,"onPostActivate"),k=c(u,"checkCanFocusTrap");k||p(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,h==null||h();var m=function(){k&&p(),O(),V(),g==null||g()};return k?(k(i.containers.concat()).then(m,m),this):(m(),this)},deactivate:function(u){if(!i.active)return this;var h=Ke({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,G(),i.active=!1,i.paused=!1,V(),Ue.deactivateTrap(s,o);var g=c(h,"onDeactivate"),k=c(h,"onPostDeactivate"),m=c(h,"checkCanReturnFocus"),_=c(h,"returnFocus","returnFocusOnDeactivate");g==null||g();var w=function(){qe(function(){_&&b(y(i.nodeFocusedBeforeActivation)),k==null||k()})};return _&&m?(m(y(i.nodeFocusedBeforeActivation)).then(w,w),this):(w(),this)},pause:function(u){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return i.active?(i.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var h=[].concat(u).filter(Boolean);return i.containers=h.map(function(g){return typeof g=="string"?n.querySelector(g):g}),i.active&&p(),V(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(u,h){if(i.paused===u)return this;if(i.paused=u,u){var g=c(h,"onPause"),k=c(h,"onPostPause");g==null||g(),G(),V(),k==null||k()}else{var m=c(h,"onUnpause"),_=c(h,"onPostUnpause");m==null||m(),p(),O(),V(),_==null||_()}return this}}}),o.updateContainerElements(e),o};function pn(a,e={}){let t;const{immediate:n,...s}=e,r=K(!1),i=K(!1),o=p=>t&&t.activate(p),c=p=>t&&t.deactivate(p),l=()=>{t&&(t.pause(),i.value=!0)},d=()=>{t&&(t.unpause(),i.value=!1)},f=he(()=>{const p=je(a);return ft(p).map(v=>{const b=je(v);return typeof b=="string"?b:pt(b)}).filter(mt)});return Oe(f,p=>{p.length&&(t=fn(p,{...s,onActivate(){r.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){r.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o())},{flush:"post"}),gt(()=>c()),{hasFocus:r,isPaused:i,activate:o,deactivate:c,pause:l,unpause:d}}class X{constructor(e,t=!0,n=[],s=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=s}static matches(e,t){const n=typeof t=="string"?[t]:t,s=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(s){let r=!1;return n.every(i=>s.call(e,i)?(r=!0,!1):!0),r}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{const s=t.filter(r=>r.contains(n)).length>0;t.indexOf(n)===-1&&!s&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let s;try{const r=e.contentWindow;if(s=r.document,!r||!s)throw new Error("iframe inaccessible")}catch{n()}s&&t(s)}isIframeBlank(e){const t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let s=!1,r=null;const i=()=>{if(!s){s=!0,clearTimeout(r);try{this.isIframeBlank(e)||(e.removeEventListener("load",i),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",i),r=setTimeout(i,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,s=>{n++,this.waitForIframes(s.querySelector("html"),()=>{--n||t()})},s=>{s||t()})}forEachIframe(e,t,n,s=()=>{}){let r=e.querySelectorAll("iframe"),i=r.length,o=0;r=Array.prototype.slice.call(r);const c=()=>{--i<=0&&s(o)};i||c(),r.forEach(l=>{X.matches(l,this.exclude)?c():this.onIframeReady(l,d=>{t(l)&&(o++,n(d)),c()},c)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new X(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){const s=e.compareDocumentPosition(n),r=Node.DOCUMENT_POSITION_PRECEDING;if(s&r)if(t!==null){const i=t.compareDocumentPosition(n),o=Node.DOCUMENT_POSITION_FOLLOWING;if(i&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,s){let r=!1,i=!1;return s.forEach((o,c)=>{o.val===n&&(r=c,i=o.handled)}),this.compareNodeIframe(e,t,n)?(r===!1&&!i?s.push({val:n,handled:!0}):r!==!1&&!i&&(s[r].handled=!0),!0):(r===!1&&s.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,s){e.forEach(r=>{r.handled||this.getIframeContents(r.val,i=>{this.createInstanceOnIframe(i).forEachNode(t,n,s)})})}iterateThroughNodes(e,t,n,s,r){const i=this.createIterator(t,e,s);let o=[],c=[],l,d,f=()=>({prevNode:d,node:l}=this.getIteratorNode(i),l);for(;f();)this.iframes&&this.forEachIframe(t,p=>this.checkIframeFilter(l,d,p,o),p=>{this.createInstanceOnIframe(p).forEachNode(e,v=>c.push(v),s)}),c.push(l);c.forEach(p=>{n(p)}),this.iframes&&this.handleOpenIframes(o,e,n,s),r()}forEachNode(e,t,n,s=()=>{}){const r=this.getContexts();let i=r.length;i||s(),r.forEach(o=>{const c=()=>{this.iterateThroughNodes(e,o,t,n,()=>{--i<=0&&s()})};this.iframes?this.waitForIframes(o,c):c()})}}let mn=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new X(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",s=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in t)if(t.hasOwnProperty(r)){const i=t[r],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(r):this.escapeStr(r),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i);o!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(c)})`,`gm${n}`),s+`(${this.processSynomyms(o)}|${this.processSynomyms(c)})`+s))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,s)=>{let r=s.charAt(n+1);return/[(|)\\]/.test(r)||r===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let s=[];return e.split("").forEach(r=>{n.every(i=>{if(i.indexOf(r)!==-1){if(s.indexOf(i)>-1)return!1;e=e.replace(new RegExp(`[${i}]`,`gm${t}`),`[${i}]`),s.push(i)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let n=this.opt.accuracy,s=typeof n=="string"?n:n.value,r=typeof n=="string"?[]:n.limiters,i="";switch(r.forEach(o=>{i+=`|${this.escapeStr(o)}`}),s){case"partially":default:return`()(${e})`;case"complementary":return i="\\s"+(i||this.escapeStr(t)),`()([^${i}]*${e}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${e})(?=$|\\s${i})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(s=>{s.trim()&&t.indexOf(s)===-1&&t.push(s)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,s)=>s.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let n=0;return e.sort((s,r)=>s.start-r.start).forEach(s=>{let{start:r,end:i,valid:o}=this.callNoMatchOnInvalidRanges(s,n);o&&(s.start=r,s.length=i-r,t.push(s),n=i)}),t}callNoMatchOnInvalidRanges(e,t){let n,s,r=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),s=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&s-t>0&&s-n>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:s,valid:r}}checkWhitespaceRanges(e,t,n){let s,r=!0,i=n.length,o=t-i,c=parseInt(e.start,10)-o;return c=c>i?i:c,s=c+parseInt(e.length,10),s>i&&(s=i,this.log(`End range automatically set to the max value of ${i}`)),c<0||s-c<0||c>i||s>i?(r=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(c,s).replace(/\s+/g,"")===""&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:s,valid:r}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,s=>{n.push({start:t.length,end:(t+=s.textContent).length,node:s})},s=>this.matchesExclude(s.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return X.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){const s=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(n-t);let o=document.createElement(s);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),i}wrapRangeInMappedTextNode(e,t,n,s,r){e.nodes.every((i,o)=>{const c=e.nodes[o+1];if(typeof c>"u"||c.start>t){if(!s(i.node))return!1;const l=t-i.start,d=(n>i.end?i.end:n)-i.start,f=e.value.substr(0,i.start),p=e.value.substr(d+i.start);if(i.node=this.wrapRangeInTextNode(i.node,l,d),e.value=f+p,e.nodes.forEach((v,b)=>{b>=o&&(e.nodes[b].start>0&&b!==o&&(e.nodes[b].start-=d),e.nodes[b].end-=d)}),n-=d,r(i.node.previousSibling,i.start),n>i.end)t=i.end;else return!1}return!0})}wrapMatches(e,t,n,s,r){const i=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(c=>{c=c.node;let l;for(;(l=e.exec(c.textContent))!==null&&l[i]!=="";){if(!n(l[i],c))continue;let d=l.index;if(i!==0)for(let f=1;f{let c;for(;(c=e.exec(o.value))!==null&&c[i]!=="";){let l=c.index;if(i!==0)for(let f=1;fn(c[i],f),(f,p)=>{e.lastIndex=p,s(f)})}r()})}wrapRangeFromIndex(e,t,n,s){this.getTextNodes(r=>{const i=r.value.length;e.forEach((o,c)=>{let{start:l,end:d,valid:f}=this.checkWhitespaceRanges(o,i,r.value);f&&this.wrapRangeInMappedTextNode(r,l,d,p=>t(p,o,r.value.substring(l,d),c),p=>{n(p,o)})}),s()})}unwrapMatches(e){const t=e.parentNode;let n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let n=0,s="wrapMatches";const r=i=>{n++,this.opt.each(i)};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),this[s](e,this.opt.ignoreGroups,(i,o)=>this.opt.filter(o,i,n),r,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,s="wrapMatches";const{keywords:r,length:i}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",c=l=>{let d=new RegExp(this.createRegExp(l),`gm${o}`),f=0;this.log(`Searching with expression "${d}"`),this[s](d,1,(p,v)=>this.opt.filter(v,l,n,f),p=>{f++,n++,this.opt.each(p)},()=>{f===0&&this.opt.noMatch(l),r[i-1]===l?this.opt.done(n):c(r[r.indexOf(l)+1])})};this.opt.acrossElements&&(s="wrapMatchesAcrossElements"),i===0?this.opt.done(n):c(r[0])}markRanges(e,t){this.opt=t;let n=0,s=this.checkRanges(e);s&&s.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(s)),this.wrapRangeFromIndex(s,(r,i,o,c)=>this.opt.filter(r,i,o,c),(r,i)=>{n++,this.opt.each(r,i)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{const s=X.matches(n,t),r=this.matchesExclude(n);return!s||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function gn(a){const e=new mn(a);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}function fe(a,e,t,n){function s(r){return r instanceof t?r:new t(function(i){i(r)})}return new(t||(t=Promise))(function(r,i){function o(d){try{l(n.next(d))}catch(f){i(f)}}function c(d){try{l(n.throw(d))}catch(f){i(f)}}function l(d){d.done?r(d.value):s(d.value).then(o,c)}l((n=n.apply(a,[])).next())})}const vn="ENTRIES",it="KEYS",rt="VALUES",C="";class ke{constructor(e,t){const n=e._tree,s=Array.from(n.keys());this.set=e,this._type=t,this._path=s.length>0?[{node:n,keys:s}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=Z(this._path);if(Z(t)===C)return{done:!1,value:this.result()};const n=e.get(Z(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=Z(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>Z(e)).filter(e=>e!==C).join("")}value(){return Z(this._path).node.get(C)}result(){switch(this._type){case rt:return this.value();case it:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const Z=a=>a[a.length-1],bn=(a,e,t)=>{const n=new Map;if(e===void 0)return n;const s=e.length+1,r=s+t,i=new Uint8Array(r*s).fill(t+1);for(let o=0;o{const c=r*i;e:for(const l of a.keys())if(l===C){const d=s[c-1];d<=t&&n.set(o,[a.get(l),d])}else{let d=r;for(let f=0;ft)continue e}at(a.get(l),e,t,n,s,d,i,o+l)}};class ${constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,n]=be(this._tree,e.slice(this._prefix.length));if(t===void 0){const[s,r]=De(n);for(const i of s.keys())if(i!==C&&i.startsWith(r)){const o=new Map;return o.set(i.slice(r.length),s.get(i)),new $(o,e)}}return new $(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,yn(this._tree,e)}entries(){return new ke(this,vn)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return bn(this._tree,e,t)}get(e){const t=Me(this._tree,e);return t!==void 0?t.get(C):void 0}has(e){const t=Me(this._tree,e);return t!==void 0&&t.has(C)}keys(){return new ke(this,it)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,Ee(this._tree,e).set(C,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=Ee(this._tree,e);return n.set(C,t(n.get(C))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=Ee(this._tree,e);let s=n.get(C);return s===void 0&&n.set(C,s=t()),s}values(){return new ke(this,rt)}[Symbol.iterator](){return this.entries()}static from(e){const t=new $;for(const[n,s]of e)t.set(n,s);return t}static fromObject(e){return $.from(Object.entries(e))}}const be=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const n of a.keys())if(n!==C&&e.startsWith(n))return t.push([a,n]),be(a.get(n),e.slice(n.length),t);return t.push([a,e]),be(void 0,"",t)},Me=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==C&&e.startsWith(t))return Me(a.get(t),e.slice(t.length))},Ee=(a,e)=>{const t=e.length;e:for(let n=0;a&&n{const[t,n]=be(a,e);if(t!==void 0){if(t.delete(C),t.size===0)ot(n);else if(t.size===1){const[s,r]=t.entries().next().value;ct(n,s,r)}}},ot=a=>{if(a.length===0)return;const[e,t]=De(a);if(e.delete(t),e.size===0)ot(a.slice(0,-1));else if(e.size===1){const[n,s]=e.entries().next().value;n!==C&&ct(a.slice(0,-1),n,s)}},ct=(a,e,t)=>{if(a.length===0)return;const[n,s]=De(a);n.set(s+e,t),n.delete(s)},De=a=>a[a.length-1],ze="or",lt="and",wn="and_not";class ee{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?Fe:e.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},Ne),e),{autoVacuum:t,searchOptions:Object.assign(Object.assign({},Ge),e.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},kn),e.autoSuggestOptions||{})}),this._index=new $,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Le,this.addFields(this._options.fields)}add(e){const{extractField:t,tokenize:n,processTerm:s,fields:r,idField:i}=this._options,o=t(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);const c=this.addDocumentId(o);this.saveStoredFields(c,e);for(const l of r){const d=t(e,l);if(d==null)continue;const f=n(d.toString(),l),p=this._fieldIds[l],v=new Set(f).size;this.addFieldLength(c,p,this._documentCount-1,v);for(const b of f){const y=s(b,l);if(Array.isArray(y))for(const S of y)this.addTerm(p,c,S);else y&&this.addTerm(p,c,y)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:n=10}=t,s={chunk:[],promise:Promise.resolve()},{chunk:r,promise:i}=e.reduce(({chunk:o,promise:c},l,d)=>(o.push(l),(d+1)%n===0?{chunk:[],promise:c.then(()=>new Promise(f=>setTimeout(f,0))).then(()=>this.addAll(o))}:{chunk:o,promise:c}),s);return i.then(()=>this.addAll(r))}remove(e){const{tokenize:t,processTerm:n,extractField:s,fields:r,idField:i}=this._options,o=s(e,i);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${i}"`);const c=this._idToShortId.get(o);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(const l of r){const d=s(e,l);if(d==null)continue;const f=t(d.toString(),l),p=this._fieldIds[l],v=new Set(f).size;this.removeFieldLength(c,p,this._documentCount,v);for(const b of f){const y=n(b,l);if(Array.isArray(y))for(const S of y)this.removeTerm(p,c,S);else y&&this.removeTerm(p,c,y)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(o),this._fieldLength.delete(c),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new $,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((n,s)=>{this.removeFieldLength(t,s,this._documentCount,n)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:s}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:s},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of e)this.discard(n)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:n}=this._options,s=n(e,t);this.discard(s),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Le,this.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}performVacuuming(e,t){return fe(this,void 0,void 0,function*(){const n=this._dirtCount;if(this.vacuumConditionsMet(t)){const s=e.batchSize||Ae.batchSize,r=e.batchWait||Ae.batchWait;let i=1;for(const[o,c]of this._index){for(const[l,d]of c)for(const[f]of d)this._documentIds.has(f)||(d.size<=1?c.delete(l):d.delete(f));this._index.get(o).size===0&&this._index.delete(o),i%s===0&&(yield new Promise(l=>setTimeout(l,r))),i+=1}this._dirtCount-=n}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t=t||Fe.minDirtCount,n=n||Fe.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const{searchOptions:n}=this._options,s=Object.assign(Object.assign({},n),t),r=this.executeQuery(e,t),i=[];for(const[o,{score:c,terms:l,match:d}]of r){const f=l.length||1,p={id:this._documentIds.get(o),score:c*f,terms:Object.keys(d),queryTerms:l,match:d};Object.assign(p,this._storedFields.get(o)),(s.filter==null||s.filter(p))&&i.push(p)}return e===ee.wildcard&&s.boostDocument==null||i.sort(Qe),i}autoSuggest(e,t={}){t=Object.assign(Object.assign({},this._options.autoSuggestOptions),t);const n=new Map;for(const{score:r,terms:i}of this.search(e,t)){const o=i.join(" "),c=n.get(o);c!=null?(c.score+=r,c.count+=1):n.set(o,{score:r,terms:i,count:1})}const s=[];for(const[r,{score:i,terms:o,count:c}]of n)s.push({suggestion:r,terms:o,score:i/c});return s.sort(Qe),s}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static loadJSONAsync(e,t){return fe(this,void 0,void 0,function*(){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)})}static getDefault(e){if(Ne.hasOwnProperty(e))return Te(Ne,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=ue(s),c._fieldLength=ue(r),c._storedFields=ue(i);for(const[l,d]of c._documentIds)c._idToShortId.set(d,l);for(const[l,d]of n){const f=new Map;for(const p of Object.keys(d)){let v=d[p];o===1&&(v=v.ds),f.set(parseInt(p,10),ue(v))}c._index.set(l,f)}return c}static loadJSAsync(e,t){return fe(this,void 0,void 0,function*(){const{index:n,documentIds:s,fieldLength:r,storedFields:i,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,t);c._documentIds=yield de(s),c._fieldLength=yield de(r),c._storedFields=yield de(i);for(const[d,f]of c._documentIds)c._idToShortId.set(f,d);let l=0;for(const[d,f]of n){const p=new Map;for(const v of Object.keys(f)){let b=f[v];o===1&&(b=b.ds),p.set(parseInt(v,10),yield de(b))}++l%1e3===0&&(yield ut(0)),c._index.set(d,p)}return c})}static instantiateMiniSearch(e,t){const{documentCount:n,nextId:s,fieldIds:r,averageFieldLength:i,dirtCount:o,serializationVersion:c}=e;if(c!==1&&c!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const l=new ee(t);return l._documentCount=n,l._nextId=s,l._idToShortId=new Map,l._fieldIds=r,l._avgFieldLength=i,l._dirtCount=o||0,l._index=new $,l}executeQuery(e,t={}){if(e===ee.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const p=Object.assign(Object.assign(Object.assign({},t),e),{queries:void 0}),v=e.queries.map(b=>this.executeQuery(b,p));return this.combineResults(v,p.combineWith)}const{tokenize:n,processTerm:s,searchOptions:r}=this._options,i=Object.assign(Object.assign({tokenize:n,processTerm:s},r),t),{tokenize:o,processTerm:c}=i,f=o(e).flatMap(p=>c(p)).filter(p=>!!p).map(In(i)).map(p=>this.executeQuerySpec(p,i));return this.combineResults(f,i.combineWith)}executeQuerySpec(e,t){const n=Object.assign(Object.assign({},this._options.searchOptions),t),s=(n.fields||this._options.fields).reduce((y,S)=>Object.assign(Object.assign({},y),{[S]:Te(n.boost,S)||1}),{}),{boostDocument:r,weights:i,maxFuzzy:o,bm25:c}=n,{fuzzy:l,prefix:d}=Object.assign(Object.assign({},Ge.weights),i),f=this._index.get(e.term),p=this.termResults(e.term,e.term,1,e.termBoost,f,s,r,c);let v,b;if(e.prefix&&(v=this._index.atPrefix(e.term)),e.fuzzy){const y=e.fuzzy===!0?.2:e.fuzzy,S=y<1?Math.min(o,Math.round(e.term.length*y)):y;S&&(b=this._index.fuzzyGet(e.term,S))}if(v)for(const[y,S]of v){const I=y.length-e.term.length;if(!I)continue;b==null||b.delete(y);const T=d*y.length/(y.length+.3*I);this.termResults(e.term,y,T,e.termBoost,S,s,r,c,p)}if(b)for(const y of b.keys()){const[S,I]=b.get(y);if(!I)continue;const T=l*y.length/(y.length+I);this.termResults(e.term,y,T,e.termBoost,S,s,r,c,p)}return p}executeWildcardQuery(e){const t=new Map,n=Object.assign(Object.assign({},this._options.searchOptions),e);for(const[s,r]of this._documentIds){const i=n.boostDocument?n.boostDocument(r,"",this._storedFields.get(s)):1;t.set(s,{score:i,terms:[],match:{}})}return t}combineResults(e,t=ze){if(e.length===0)return new Map;const n=t.toLowerCase(),s=_n[n];if(!s)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(s)||new Map}toJSON(){const e=[];for(const[t,n]of this._index){const s={};for(const[r,i]of n)s[r]=Object.fromEntries(i);e.push([t,s])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,n,s,r,i,o,c,l=new Map){if(r==null)return l;for(const d of Object.keys(i)){const f=i[d],p=this._fieldIds[d],v=r.get(p);if(v==null)continue;let b=v.size;const y=this._avgFieldLength[p];for(const S of v.keys()){if(!this._documentIds.has(S)){this.removeTerm(p,S,t),b-=1;continue}const I=o?o(this._documentIds.get(S),t,this._storedFields.get(S)):1;if(!I)continue;const T=v.get(S),M=this._fieldLength.get(S)[p],z=Sn(T,b,this._documentCount,M,y,c),L=n*s*f*I*z,D=l.get(S);if(D){D.score+=L,En(D.terms,e);const O=Te(D.match,t);O?O.push(d):D.match[t]=[d]}else l.set(S,{score:L,terms:[e],match:{[t]:[d]}})}}return l}addTerm(e,t,n){const s=this._index.fetch(n,Ye);let r=s.get(e);if(r==null)r=new Map,r.set(t,1),s.set(e,r);else{const i=r.get(t);r.set(t,(i||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}const s=this._index.fetch(n,Ye),r=s.get(e);r==null||r.get(t)==null?this.warnDocumentChanged(t,e,n):r.get(t)<=1?r.size<=1?s.delete(e):r.delete(t):r.set(t,r.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(const s of Object.keys(this._fieldIds))if(this._fieldIds[s]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${s}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;tObject.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,_n={[ze]:(a,e)=>{for(const t of e.keys()){const n=a.get(t);if(n==null)a.set(t,e.get(t));else{const{score:s,terms:r,match:i}=e.get(t);n.score=n.score+s,n.match=Object.assign(n.match,i),He(n.terms,r)}}return a},[lt]:(a,e)=>{const t=new Map;for(const n of e.keys()){const s=a.get(n);if(s==null)continue;const{score:r,terms:i,match:o}=e.get(n);He(s.terms,i),t.set(n,{score:s.score+r,terms:s.terms,match:Object.assign(s.match,o)})}return t},[wn]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},xn={k:1.2,b:.7,d:.5},Sn=(a,e,t,n,s,r)=>{const{k:i,b:o,d:c}=r;return Math.log(1+(t-e+.5)/(e+.5))*(c+a*(i+1)/(a+i*(1-o+o*n/s)))},In=a=>(e,t,n)=>{const s=typeof a.fuzzy=="function"?a.fuzzy(e,t,n):a.fuzzy||!1,r=typeof a.prefix=="function"?a.prefix(e,t,n):a.prefix===!0,i=typeof a.boostTerm=="function"?a.boostTerm(e,t,n):1;return{term:e,fuzzy:s,prefix:r,termBoost:i}},Ne={idField:"id",extractField:(a,e)=>a[e],tokenize:a=>a.split(Tn),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},Ge={combineWith:ze,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:xn},kn={combineWith:lt,prefix:(a,e,t)=>e===t.length-1},Ae={batchSize:1e3,batchWait:10},Le={minDirtFactor:.1,minDirtCount:20},Fe=Object.assign(Object.assign({},Ae),Le),En=(a,e)=>{a.includes(e)||a.push(e)},He=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},Qe=({score:a},{score:e})=>e-a,Ye=()=>new Map,ue=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},de=a=>fe(void 0,void 0,void 0,function*(){const e=new Map;let t=0;for(const n of Object.keys(a))e.set(parseInt(n,10),a[n]),++t%1e3===0&&(yield ut(0));return e}),ut=a=>new Promise(e=>setTimeout(e,a)),Tn=/[\n\r\p{Z}\p{P}]+/u;var Nn=class{constructor(a=10){we(this,"max");we(this,"cache");this.max=a,this.cache=new Map}get(a){const e=this.cache.get(a);return e!==void 0&&(this.cache.delete(a),this.cache.set(a,e)),e}set(a,e){this.cache.has(a)?this.cache.delete(a):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(a,e)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}};const Fn={},On={width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"};function Cn(a,e){return B(),W("svg",On,e[0]||(e[0]=[x("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 12H5m7 7l-7-7l7-7"},null,-1)]))}const Rn=ye(Fn,[["render",Cn],["__file","BackIcon.vue"]]),Mn={},An={width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"};function Ln(a,e){return B(),W("svg",An,e[0]||(e[0]=[x("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 5H9l-7 7l7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm-2 4l-6 6m0-6l6 6"},null,-1)]))}const Dn=ye(Mn,[["render",Ln],["__file","ClearIcon.vue"]]),zn={},jn={width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":"true"};function Pn(a,e){return B(),W("svg",jn,e[0]||(e[0]=[x("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[x("circle",{cx:"11",cy:"11",r:"8"}),x("path",{d:"m21 21l-4.35-4.35"})],-1)]))}const Vn=ye(zn,[["render",Pn],["__file","SearchIcon.vue"]]),Bn=vt({__name:"SearchBox",props:{locales:{},options:{}},emits:["close"],setup(a,{expose:e,emit:t}){e();const n=a,s=t,r=bt(),i=yt(wt(n.locales)),o=_e(),c=_e(),l=Tt(),{activate:d}=pn(o,{immediate:!0}),f=Pe(async()=>{var m,_,w,N,F;return Ve(ee.loadJSON((w=await((_=(m=l.value)[r.value])==null?void 0:_.call(m)))==null?void 0:w.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1}},...(N=n.options.miniSearch)==null?void 0:N.searchOptions,...(F=n.options.miniSearch)==null?void 0:F.options}))}),p=he(()=>{var m;return((m=n.options)==null?void 0:m.disableQueryPersistence)===!0}),v=p.value?K(""):_t("vuepress-plume:mini-search-filter",""),b=he(()=>i.value.buttonText||i.value.placeholder||"Search"),y=_e([]),S=K(!1);Oe(v,()=>{S.value=!1});const I=Pe(async()=>{if(c.value)return Ve(new gn(c.value))},null),T=new Nn(16);xt(()=>[f.value,v.value],async([m,_],w,N)=>{(w==null?void 0:w[0])!==m&&T.clear();let F=!1;if(N(()=>{F=!0}),!m)return;y.value=m.search(_).map(A=>{var R;return A.titles=((R=A.titles)==null?void 0:R.filter(Boolean))||[],A}),S.value=!0;const j=new Set;y.value=y.value.map(A=>{const[R,P]=A.id.split("#"),Q=T.get(R),te=(Q==null?void 0:Q.get(P))??"";for(const ne in A.match)j.add(ne);return{...A,text:te}}),await se(),!F&&await new Promise(A=>{var R;(R=I.value)==null||R.unmark({done:()=>{var P;(P=I.value)==null||P.markRegExp(h(j),{done:A})}})})},{debounce:200,immediate:!0});const M=K(),z=he(()=>{var m;return((m=v.value)==null?void 0:m.length)<=0});function L(m=!0){var _,w;(_=M.value)==null||_.focus(),m&&((w=M.value)==null||w.select())}xe(()=>{L()});function D(m){m.pointerType==="mouse"&&L()}const O=K(-1),G=K(!1);Oe(y,m=>{O.value=m.length?0:-1,H()});function H(){se(()=>{const m=document.querySelector(".result.selected");m&&m.scrollIntoView({block:"nearest"})})}ce("ArrowUp",m=>{m.preventDefault(),O.value--,O.value<0&&(O.value=y.value.length-1),G.value=!0,H()}),ce("ArrowDown",m=>{m.preventDefault(),O.value++,O.value>=y.value.length&&(O.value=0),G.value=!0,H()});const J=St();ce("Enter",m=>{if(m.isComposing||m.target instanceof HTMLButtonElement&&m.target.type!=="submit")return;const _=y.value[O.value];if(m.target instanceof HTMLInputElement&&!_){m.preventDefault();return}_&&(J.push(_.id),s("close"))}),ce("Escape",()=>{s("close")}),xe(()=>{window.history.pushState(null,"",null)}),It("popstate",m=>{m.preventDefault(),s("close")});const V=kt(typeof document<"u"?document.body:null);xe(()=>{se(()=>{V.value=!0,se().then(()=>d())})}),Et(()=>{V.value=!1});function E(){v.value="",se().then(()=>L(!1))}function u(m){return m.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function h(m){return new RegExp([...m].sort((_,w)=>w.length-_.length).map(_=>`(${u(_)})`).join("|"),"gi")}function g(m,_){m.preventDefault(),J.push(_.id),s("close")}const k={props:n,emit:s,routeLocale:r,locale:i,el:o,resultsEl:c,searchIndexData:l,activate:d,searchIndex:f,disableQueryPersistence:p,filterText:v,buttonText:b,results:y,enableNoResults:S,mark:I,cache:T,searchInput:M,disableReset:z,focusSearchInput:L,onSearchBarClick:D,selectedIndex:O,disableMouseOver:G,scrollToSelectedResult:H,router:J,isLocked:V,resetSearch:E,escapeRegExp:u,formMarkRegex:h,selectedClick:g,get withBase(){return Nt},BackIcon:Rn,ClearIcon:Dn,SearchIcon:Vn};return Object.defineProperty(k,"__isScriptSetup",{enumerable:!1,value:!0}),k}}),Wn=["aria-owns"],$n={class:"shell"},Jn=["title"],Kn={class:"search-actions before"},Un=["title"],qn=["placeholder"],Gn={class:"search-actions"},Hn=["disabled","title"],Qn=["id","role","aria-labelledby"],Yn=["aria-selected"],Zn=["href","aria-label","onMouseenter","onFocusin","onClick"],Xn={class:"titles"},es=["innerHTML"],ts={class:"title main"},ns=["innerHTML"],ss={key:0,class:"no-results"},is={class:"search-keyboard-shortcuts"},rs=["aria-label"],as=["aria-label"],os=["aria-label"],cs=["aria-label"];function ls(a,e,t,n,s,r){var i,o,c,l,d,f,p,v,b,y,S;return B(),Ft(Lt,{to:"body"},[x("div",{ref:"el",role:"button","aria-owns":(i=n.results)!=null&&i.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"mini-search-label",class:"VPLocalSearchBox"},[x("div",{class:"backdrop",onClick:e[0]||(e[0]=I=>a.$emit("close"))}),x("div",$n,[x("form",{class:"search-bar",onPointerup:e[3]||(e[3]=I=>n.onSearchBarClick(I)),onSubmit:e[4]||(e[4]=Ot(()=>{},["prevent"]))},[x("label",{id:"localsearch-label",title:n.buttonText,for:"localsearch-input"},[Se(n.SearchIcon,{class:"search-icon"})],8,Jn),x("div",Kn,[x("button",{class:"back-button",title:n.locale.backButtonTitle,onClick:e[1]||(e[1]=I=>a.$emit("close"))},[Se(n.BackIcon)],8,Un)]),Ct(x("input",{id:"localsearch-input",ref:"searchInput","onUpdate:modelValue":e[2]||(e[2]=I=>n.filterText=I),placeholder:n.buttonText,"aria-labelledby":"localsearch-label",class:"search-input"},null,8,qn),[[Rt,n.filterText]]),x("div",Gn,[x("button",{class:"clear-button",type:"reset",disabled:n.disableReset,title:n.locale.resetButtonTitle,onClick:n.resetSearch},[Se(n.ClearIcon)],8,Hn)])],32),x("ul",{id:(o=n.results)!=null&&o.length?"localsearch-list":void 0,ref:"resultsEl",role:(c=n.results)!=null&&c.length?"listbox":void 0,"aria-labelledby":(l=n.results)!=null&&l.length?"localsearch-label":void 0,class:"results",onMousemove:e[5]||(e[5]=I=>n.disableMouseOver=!1)},[(B(!0),W(We,null,Be(n.results,(I,T)=>(B(),W("li",{key:I.id,role:"option","aria-selected":n.selectedIndex===T?"true":"false"},[x("a",{href:n.withBase(I.id),class:At(["result",{selected:n.selectedIndex===T}]),"aria-label":[...I.titles,I.title].join(" > "),onMouseenter:M=>!n.disableMouseOver&&(n.selectedIndex=T),onFocusin:M=>n.selectedIndex=T,onClick:M=>n.selectedClick(M,I)},[x("div",null,[x("div",Xn,[e[7]||(e[7]=x("span",{class:"title-icon"},"#",-1)),(B(!0),W(We,null,Be(I.titles,(M,z)=>(B(),W("span",{key:z,class:"title"},[x("span",{class:"text",innerHTML:M},null,8,es),e[6]||(e[6]=x("svg",{width:"18",height:"18",viewBox:"0 0 24 24"},[x("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"})],-1))]))),128)),x("span",ts,[x("span",{class:"text",innerHTML:I.title},null,8,ns)])])])],42,Zn)],8,Yn))),128)),n.filterText&&!n.results.length&&n.enableNoResults?(B(),W("li",ss,[ie(re(n.locale.noResultsText)+' "',1),x("strong",null,re(n.filterText),1),e[8]||(e[8]=ie('" '))])):Mt("",!0)],40,Qn),x("div",is,[x("span",null,[x("kbd",{"aria-label":((d=n.locale.footer)==null?void 0:d.navigateUpKeyAriaLabel)??""},e[9]||(e[9]=[x("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[x("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19V5m-7 7l7-7l7 7"})],-1)]),8,rs),x("kbd",{"aria-label":((f=n.locale.footer)==null?void 0:f.navigateDownKeyAriaLabel)??""},e[10]||(e[10]=[x("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[x("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v14m7-7l-7 7l-7-7"})],-1)]),8,as),ie(" "+re(((p=n.locale.footer)==null?void 0:p.navigateText)??""),1)]),x("span",null,[x("kbd",{"aria-label":((v=n.locale.footer)==null?void 0:v.selectKeyAriaLabel)??""},e[11]||(e[11]=[x("svg",{width:"14",height:"14",viewBox:"0 0 24 24"},[x("g",{fill:"none",stroke:"currentcolor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[x("path",{d:"m9 10l-5 5l5 5"}),x("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})])],-1)]),8,os),ie(" "+re(((b=n.locale.footer)==null?void 0:b.selectText)??""),1)]),x("span",null,[x("kbd",{"aria-label":((y=n.locale.footer)==null?void 0:y.closeKeyAriaLabel)??""},"esc",8,cs),ie(" "+re(((S=n.locale.footer)==null?void 0:S.closeText)??""),1)])])])],8,Wn)])}const fs=ye(Bn,[["render",ls],["__scopeId","data-v-311234a7"],["__file","SearchBox.vue"]]);export{fs as default}; diff --git a/assets/app-DhYi4InN.js b/assets/app-DhYi4InN.js new file mode 100644 index 0000000..76c6548 --- /dev/null +++ b/assets/app-DhYi4InN.js @@ -0,0 +1,94 @@ +const qh="modulepreload",Yh=function(e){return"/"+e},yl={},nt=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=Yh(l),l in yl)return;yl[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":qh,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function $r(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ie={},gr=[],qt=()=>{},Kh=()=>!1,ks=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ea=e=>e.startsWith("onUpdate:"),Ze=Object.assign,La=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xh=Object.prototype.hasOwnProperty,Ee=(e,t)=>Xh.call(e,t),ve=Array.isArray,_r=e=>Ei(e)==="[object Map]",Zu=e=>Ei(e)==="[object Set]",ge=e=>typeof e=="function",Me=e=>typeof e=="string",_n=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Ju=e=>(Be(e)||ge(e))&&ge(e.then)&&ge(e.catch),Qu=Object.prototype.toString,Ei=e=>Qu.call(e),Zh=e=>Ei(e).slice(8,-1),ed=e=>Ei(e)==="[object Object]",Oa=e=>Me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yr=$r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Li=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Jh=/-(\w)/g,ht=Li(e=>e.replace(Jh,(t,n)=>n?n.toUpperCase():"")),Qh=/\B([A-Z])/g,yn=Li(e=>e.replace(Qh,"-$1").toLowerCase()),Ts=Li(e=>e.charAt(0).toUpperCase()+e.slice(1)),ti=Li(e=>e?`on${Ts(e)}`:""),Bn=(e,t)=>!Object.is(e,t),ni=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},zo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},em=e=>{const t=Me(e)?Number(e):NaN;return isNaN(t)?e:t};let bl;const Oi=()=>bl||(bl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function we(e){if(ve(e)){const t={};for(let n=0;n{if(n){const r=n.split(nm);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function im(e){if(!e)return"";if(Me(e))return e;let t="";for(const n in e){const r=e[n];if(Me(r)||typeof r=="number"){const s=n.startsWith("--")?n:yn(n);t+=`${s}:${r};`}}return t}function te(e){let t="";if(Me(e))t=e;else if(ve(e))for(let n=0;n?@[\\\]^`{|}~]/g;function fm(e,t){return e.replace(dm,n=>`\\${n}`)}const nd=e=>!!(e&&e.__v_isRef===!0),F=e=>Me(e)?e:e==null?"":ve(e)||Be(e)&&(e.toString===Qu||!ge(e.toString))?nd(e)?F(e.value):JSON.stringify(e,rd,2):String(e),rd=(e,t)=>nd(t)?rd(e,t.value):_r(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Ji(r,i)+" =>"]=s,n),{})}:Zu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ji(n))}:_n(t)?Ji(t):Be(t)&&!ve(t)&&!ed(t)?String(t):t,Ji=(e,t="")=>{var n;return _n(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ut;class pm{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ut,!t&&ut&&(this.index=(ut.scopes||(ut.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(ss){let t=ss;for(ss=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;rs;){let t=rs;for(rs=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function ld(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cd(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Va(r),mm(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Go(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ud(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ud(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ps))return;e.globalVersion=ps;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Go(e)){e.flags&=-3;return}const n=Ve,r=$t;Ve=e,$t=!0;try{ld(e);const s=e.fn(e._value);(t.version===0||Bn(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ve=n,$t=r,cd(e),e.flags&=-3}}function Va(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Va(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function mm(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let $t=!0;const dd=[];function bn(){dd.push($t),$t=!1}function wn(){const e=dd.pop();$t=e===void 0?!0:e}function Sl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ve;Ve=void 0;try{t()}finally{Ve=n}}}let ps=0;class vm{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ii{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Ve||!$t||Ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ve)n=this.activeLink=new vm(Ve,this),Ve.deps?(n.prevDep=Ve.depsTail,Ve.depsTail.nextDep=n,Ve.depsTail=n):Ve.deps=Ve.depsTail=n,fd(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ve.depsTail,n.nextDep=void 0,Ve.depsTail.nextDep=n,Ve.depsTail=n,Ve.deps===n&&(Ve.deps=r)}return n}trigger(t){this.version++,ps++,this.notify(t)}notify(t){Ma();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Aa()}}}function fd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)fd(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const pi=new WeakMap,Zn=Symbol(""),Wo=Symbol(""),hs=Symbol("");function rt(e,t,n){if($t&&Ve){let r=pi.get(e);r||pi.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Ii),s.map=r,s.key=n),s.track()}}function un(e,t,n,r,s,i){const o=pi.get(e);if(!o){ps++;return}const a=l=>{l&&l.trigger()};if(Ma(),t==="clear")o.forEach(a);else{const l=ve(e),c=l&&Oa(n);if(l&&n==="length"){const u=Number(r);o.forEach((d,f)=>{(f==="length"||f===hs||!_n(f)&&f>=u)&&a(d)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),c&&a(o.get(hs)),t){case"add":l?c&&a(o.get("length")):(a(o.get(Zn)),_r(e)&&a(o.get(Wo)));break;case"delete":l||(a(o.get(Zn)),_r(e)&&a(o.get(Wo)));break;case"set":_r(e)&&a(o.get(Zn));break}}Aa()}function gm(e,t){const n=pi.get(e);return n&&n.get(t)}function ur(e){const t=xe(e);return t===e?t:(rt(t,"iterate",hs),Et(e)?t:t.map(st))}function Mi(e){return rt(e=xe(e),"iterate",hs),e}const _m={__proto__:null,[Symbol.iterator](){return eo(this,Symbol.iterator,st)},concat(...e){return ur(this).concat(...e.map(t=>ve(t)?ur(t):t))},entries(){return eo(this,"entries",e=>(e[1]=st(e[1]),e))},every(e,t){return en(this,"every",e,t,void 0,arguments)},filter(e,t){return en(this,"filter",e,t,n=>n.map(st),arguments)},find(e,t){return en(this,"find",e,t,st,arguments)},findIndex(e,t){return en(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return en(this,"findLast",e,t,st,arguments)},findLastIndex(e,t){return en(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return en(this,"forEach",e,t,void 0,arguments)},includes(...e){return to(this,"includes",e)},indexOf(...e){return to(this,"indexOf",e)},join(e){return ur(this).join(e)},lastIndexOf(...e){return to(this,"lastIndexOf",e)},map(e,t){return en(this,"map",e,t,void 0,arguments)},pop(){return zr(this,"pop")},push(...e){return zr(this,"push",e)},reduce(e,...t){return xl(this,"reduce",e,t)},reduceRight(e,...t){return xl(this,"reduceRight",e,t)},shift(){return zr(this,"shift")},some(e,t){return en(this,"some",e,t,void 0,arguments)},splice(...e){return zr(this,"splice",e)},toReversed(){return ur(this).toReversed()},toSorted(e){return ur(this).toSorted(e)},toSpliced(...e){return ur(this).toSpliced(...e)},unshift(...e){return zr(this,"unshift",e)},values(){return eo(this,"values",st)}};function eo(e,t,n){const r=Mi(e),s=r[t]();return r!==e&&!Et(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const ym=Array.prototype;function en(e,t,n,r,s,i){const o=Mi(e),a=o!==e&&!Et(e),l=o[t];if(l!==ym[t]){const d=l.apply(e,i);return a?st(d):d}let c=n;o!==e&&(a?c=function(d,f){return n.call(this,st(d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=l.call(o,c,r);return a&&s?s(u):u}function xl(e,t,n,r){const s=Mi(e);let i=n;return s!==e&&(Et(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,st(a),l,e)}),s[t](i,...r)}function to(e,t,n){const r=xe(e);rt(r,"iterate",hs);const s=r[t](...n);return(s===-1||s===!1)&&Ra(n[0])?(n[0]=xe(n[0]),r[t](...n)):s}function zr(e,t,n=[]){bn(),Ma();const r=xe(e)[t].apply(e,n);return Aa(),wn(),r}const bm=$r("__proto__,__v_isRef,__isVue"),pd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_n));function wm(e){_n(e)||(e=String(e));const t=xe(this);return rt(t,"has",e),t.hasOwnProperty(e)}class hd{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;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?Im:_d:i?gd:vd).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=ve(t);if(!s){let l;if(o&&(l=_m[n]))return l;if(n==="hasOwnProperty")return wm}const a=Reflect.get(t,n,De(t)?t:r);return(_n(n)?pd.has(n):bm(n))||(s||rt(t,"get",n),i)?a:De(a)?o&&Oa(n)?a:a.value:Be(a)?s?Br(a):er(a):a}}class md extends hd{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=tr(i);if(!Et(r)&&!tr(r)&&(i=xe(i),r=xe(r)),!ve(t)&&De(i)&&!De(r))return l?!1:(i.value=r,!0)}const o=ve(t)&&Oa(n)?Number(n)e,Ds=e=>Reflect.getPrototypeOf(e);function Tm(e,t,n){return function(...r){const s=this.__v_raw,i=xe(s),o=_r(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...r),u=n?Uo:t?qo:st;return!t&&rt(i,"iterate",l?Wo:Zn),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Ns(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Cm(e,t){const n={get(s){const i=this.__v_raw,o=xe(i),a=xe(s);e||(Bn(s,a)&&rt(o,"get",s),rt(o,"get",a));const{has:l}=Ds(o),c=t?Uo:e?qo:st;if(l.call(o,s))return c(i.get(s));if(l.call(o,a))return c(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&rt(xe(s),"iterate",Zn),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,o=xe(i),a=xe(s);return e||(Bn(s,a)&&rt(o,"has",s),rt(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=xe(a),c=t?Uo:e?qo:st;return!e&&rt(l,"iterate",Zn),a.forEach((u,d)=>s.call(i,c(u),c(d),o))}};return Ze(n,e?{add:Ns("add"),set:Ns("set"),delete:Ns("delete"),clear:Ns("clear")}:{add(s){!t&&!Et(s)&&!tr(s)&&(s=xe(s));const i=xe(this);return Ds(i).has.call(i,s)||(i.add(s),un(i,"add",s,s)),this},set(s,i){!t&&!Et(i)&&!tr(i)&&(i=xe(i));const o=xe(this),{has:a,get:l}=Ds(o);let c=a.call(o,s);c||(s=xe(s),c=a.call(o,s));const u=l.call(o,s);return o.set(s,i),c?Bn(i,u)&&un(o,"set",s,i):un(o,"add",s,i),this},delete(s){const i=xe(this),{has:o,get:a}=Ds(i);let l=o.call(i,s);l||(s=xe(s),l=o.call(i,s)),a&&a.call(i,s);const c=i.delete(s);return l&&un(i,"delete",s,void 0),c},clear(){const s=xe(this),i=s.size!==0,o=s.clear();return i&&un(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Tm(s,e,t)}),n}function $a(e,t){const n=Cm(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Ee(n,s)&&s in r?n:r,s,i)}const Em={get:$a(!1,!1)},Lm={get:$a(!1,!0)},Om={get:$a(!0,!1)};const vd=new WeakMap,gd=new WeakMap,_d=new WeakMap,Im=new WeakMap;function Mm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Am(e){return e.__v_skip||!Object.isExtensible(e)?0:Mm(Zh(e))}function er(e){return tr(e)?e:Ba(e,!1,xm,Em,vd)}function yd(e){return Ba(e,!1,km,Lm,gd)}function Br(e){return Ba(e,!0,Pm,Om,_d)}function Ba(e,t,n,r,s){if(!Be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Am(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function br(e){return tr(e)?br(e.__v_raw):!!(e&&e.__v_isReactive)}function tr(e){return!!(e&&e.__v_isReadonly)}function Et(e){return!!(e&&e.__v_isShallow)}function Ra(e){return e?!!e.__v_raw:!1}function xe(e){const t=e&&e.__v_raw;return t?xe(t):e}function bd(e){return!Ee(e,"__v_skip")&&Object.isExtensible(e)&&kr(e,"__v_skip",!0),e}const st=e=>Be(e)?er(e):e,qo=e=>Be(e)?Br(e):e;function De(e){return e?e.__v_isRef===!0:!1}function H(e){return wd(e,!1)}function We(e){return wd(e,!0)}function wd(e,t){return De(e)?e:new Vm(e,t)}class Vm{constructor(t,n){this.dep=new Ii,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:xe(t),this._value=n?t:st(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Et(t)||tr(t);t=r?t:xe(t),Bn(t,n)&&(this._rawValue=t,this._value=r?t:st(t),this.dep.trigger())}}function pn(e){return De(e)?e.value:e}function fe(e){return ge(e)?e():pn(e)}const $m={get:(e,t,n)=>t==="__v_raw"?e:pn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return De(s)&&!De(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Sd(e){return br(e)?e:new Proxy(e,$m)}class Bm{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ii,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Da(e){return new Bm(e)}function Ai(e){const t=ve(e)?new Array(e.length):{};for(const n in e)t[n]=xd(e,n);return t}class Rm{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return gm(xe(this._object),this._key)}}class Dm{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ot(e,t,n){return De(e)?e:ge(e)?new Dm(e):Be(e)&&arguments.length>1?xd(e,t,n):H(e)}function xd(e,t,n){const r=e[t];return De(r)?r:new Rm(e,t,n)}class Nm{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ii(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ps-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ve!==this)return ad(this,!0),!0}get value(){const t=this.dep.track();return ud(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Hm(e,t,n=!1){let r,s;return ge(e)?r=e:(r=e.get,s=e.set),new Nm(r,s,n)}const Hs={},hi=new WeakMap;let qn;function jm(e,t=!1,n=qn){if(n){let r=hi.get(n);r||hi.set(n,r=[]),r.push(e)}}function Fm(e,t,n=Ie){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,c=w=>s?w:Et(w)||s===!1||s===0?dn(w,1):dn(w);let u,d,f,p,h=!1,v=!1;if(De(e)?(d=()=>e.value,h=Et(e)):br(e)?(d=()=>c(e),h=!0):ve(e)?(v=!0,h=e.some(w=>br(w)||Et(w)),d=()=>e.map(w=>{if(De(w))return w.value;if(br(w))return c(w);if(ge(w))return l?l(w,2):w()})):ge(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){bn();try{f()}finally{wn()}}const w=qn;qn=u;try{return l?l(e,3,[p]):e(p)}finally{qn=w}}:d=qt,t&&s){const w=d,C=s===!0?1/0:s;d=()=>dn(w(),C)}const y=sd(),b=()=>{u.stop(),y&&y.active&&La(y.effects,u)};if(i&&t){const w=t;t=(...C)=>{w(...C),b()}}let g=v?new Array(e.length).fill(Hs):Hs;const m=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(t){const C=u.run();if(s||h||(v?C.some((A,O)=>Bn(A,g[O])):Bn(C,g))){f&&f();const A=qn;qn=u;try{const O=[C,g===Hs?void 0:v&&g[0]===Hs?[]:g,p];l?l(t,3,O):t(...O),g=C}finally{qn=A}}}else u.run()};return a&&a(m),u=new id(d),u.scheduler=o?()=>o(m,!1):m,p=w=>jm(w,!1,u),f=u.onStop=()=>{const w=hi.get(u);if(w){if(l)l(w,4);else for(const C of w)C();hi.delete(u)}},t?r?m(!0):g=u.run():o?o(m.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function dn(e,t=1/0,n){if(t<=0||!Be(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,De(e))dn(e.value,t,n);else if(ve(e))for(let r=0;r{dn(r,t,n)});else if(ed(e)){for(const r in e)dn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&dn(e[r],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const is=[];let no=!1;function Ln(e,...t){if(no)return;no=!0,bn();const n=is.length?is[is.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=zm();if(r)Rr(r,n,11,[e+t.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${kf(n,i.type)}>`).join(` +`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(` +`,...Gm(s)),console.warn(...i)}wn(),no=!1}function zm(){let e=is[is.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Gm(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[` +`],...Wm(n))}),t}function Wm({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${kf(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...Um(e.props),i]:[s+i]}function Um(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Pd(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Pd(e,t,n){return Me(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:De(t)?(t=Pd(e,xe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ge(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=xe(t),n?t:[`${e}=`,t])}function Rr(e,t,n,r){try{return r?e(...r):e()}catch(s){Cs(s,t,n)}}function Dt(e,t,n,r){if(ge(e)){const s=Rr(e,t,n,r);return s&&Ju(s)&&s.catch(i=>{Cs(i,t,n)}),s}if(ve(e)){const s=[];for(let i=0;i>>1,s=dt[r],i=ms(s);i=ms(n)?dt.push(e):dt.splice(Ym(t),0,e),e.flags|=1,Td()}}function Td(){mi||(mi=kd.then(Cd))}function Km(e){ve(e)?wr.push(...e):On&&e.id===-1?On.splice(pr+1,0,e):e.flags&1||(wr.push(e),e.flags|=1),Td()}function Pl(e,t,n=Ft+1){for(;nms(n)-ms(r));if(wr.length=0,On){On.push(...t);return}for(On=t,pr=0;pre.id==null?e.flags&2?-1:1/0:e.id;function Cd(e){try{for(Ft=0;FtWt.emit(s,...i)),Qr=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Ed(i,t)}),setTimeout(()=>{Wt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Yo=!0,Qr=[])},3e3)):(Yo=!0,Qr=[])}function Xm(e,t){Vi("app:init",e,t,{Fragment:ne,Text:Rn,Comment:Qe,Static:Sr})}function Zm(e){Vi("app:unmount",e)}const Jm=Ha("component:added"),Ld=Ha("component:updated"),Qm=Ha("component:removed"),ev=e=>{Wt&&typeof Wt.cleanupBuffer=="function"&&!Wt.cleanupBuffer(e)&&Qm(e)};/*! #__NO_SIDE_EFFECTS__ */function Ha(e){return t=>{Vi(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function tv(e,t,n){Vi("component:emit",e.appContext.app,e,t,n)}let Ye=null,Od=null;function gi(e){const t=Ye;return Ye=e,Od=e&&e.type.__scopeId||null,t}function $(e,t=Ye,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&jl(-1);const i=gi(t);let o;try{o=e(...s)}finally{gi(i),r._d&&jl(1)}return Ld(t),o};return r._n=!0,r._c=!0,r._d=!0,r}function nr(e,t){if(Ye===null)return e;const n=Hi(Ye),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,os=e=>e&&(e.disabled||e.disabled===""),kl=e=>e&&(e.defer||e.defer===""),Tl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Cl=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ko=(e,t)=>{const n=e&&e.to;return Me(n)?t?t(n):null:n},Ad={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:h,createText:v,createComment:y}}=c,b=os(t.props);let{shapeFlag:g,children:m,dynamicChildren:w}=t;if(e==null){const C=t.el=v(""),A=t.anchor=v("");p(C,n,r),p(A,n,r);const O=(k,L)=>{g&16&&(s&&s.isCE&&(s.ce._teleportTarget=k),u(m,k,L,s,i,o,a,l))},D=()=>{const k=t.target=Ko(t.props,h),L=Vd(k,t,v,p);k&&(o!=="svg"&&Tl(k)?o="svg":o!=="mathml"&&Cl(k)&&(o="mathml"),b||(O(k,L),ri(t,!1)))};b&&(O(n,A),ri(t,!0)),kl(t.props)?ct(()=>{D(),t.el.__isMounted=!0},i):D()}else{if(kl(t.props)&&!e.el.__isMounted){ct(()=>{Ad.process(e,t,n,r,s,i,o,a,l,c),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,A=t.target=e.target,O=t.targetAnchor=e.targetAnchor,D=os(e.props),k=D?n:A,L=D?C:O;if(o==="svg"||Tl(A)?o="svg":(o==="mathml"||Cl(A))&&(o="mathml"),w?(f(e.dynamicChildren,w,k,s,i,o,a),za(e,t,!0)):l||d(e,t,k,L,s,i,o,a,!1),b)D?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):js(t,n,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const V=t.target=Ko(t.props,h);V&&js(t,V,null,c,0)}else D&&js(t,A,O,c,1);ri(t,b)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(s(c),s(u)),i&&s(l),o&16){const p=i||!os(f);for(let h=0;h{e.isMounted=!0}),Ls(()=>{e.isUnmounting=!0}),e}const Pt=[Function,Array],$d={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Pt,onEnter:Pt,onAfterEnter:Pt,onEnterCancelled:Pt,onBeforeLeave:Pt,onLeave:Pt,onAfterLeave:Pt,onLeaveCancelled:Pt,onBeforeAppear:Pt,onAppear:Pt,onAfterAppear:Pt,onAppearCancelled:Pt},Bd=e=>{const t=e.subTree;return t.component?Bd(t.component):t},sv={name:"BaseTransition",props:$d,setup(e,{slots:t}){const n=At(),r=rv();return()=>{const s=t.default&&Nd(t.default(),!0);if(!s||!s.length)return;const i=Rd(s),o=xe(e),{mode:a}=o;if(r.isLeaving)return ro(i);const l=El(i);if(!l)return ro(i);let c=Xo(l,o,r,n,d=>c=d);l.type!==Qe&&vs(l,c);let u=n.subTree&&El(n.subTree);if(u&&u.type!==Qe&&!Kn(l,u)&&Bd(n).type!==Qe){let d=Xo(u,o,r,n);if(vs(u,d),a==="out-in"&&l.type!==Qe)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},ro(i);a==="in-out"&&l.type!==Qe?d.delayLeave=(f,p,h)=>{const v=Dd(r,u);v[String(u.key)]=u,f[In]=()=>{p(),f[In]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{h(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function Rd(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Qe){t=n;break}}return t}const iv=sv;function Dd(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 Xo(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:y,onAppear:b,onAfterAppear:g,onAppearCancelled:m}=t,w=String(e.key),C=Dd(n,e),A=(k,L)=>{k&&Dt(k,r,9,L)},O=(k,L)=>{const V=L[1];A(k,L),ve(k)?k.every(R=>R.length<=1)&&V():k.length<=1&&V()},D={mode:o,persisted:a,beforeEnter(k){let L=l;if(!n.isMounted)if(i)L=y||l;else return;k[In]&&k[In](!0);const V=C[w];V&&Kn(e,V)&&V.el[In]&&V.el[In](),A(L,[k])},enter(k){let L=c,V=u,R=d;if(!n.isMounted)if(i)L=b||c,V=g||u,R=m||d;else return;let M=!1;const W=k[Fs]=Q=>{M||(M=!0,Q?A(R,[k]):A(V,[k]),D.delayedLeave&&D.delayedLeave(),k[Fs]=void 0)};L?O(L,[k,W]):W()},leave(k,L){const V=String(e.key);if(k[Fs]&&k[Fs](!0),n.isUnmounting)return L();A(f,[k]);let R=!1;const M=k[In]=W=>{R||(R=!0,L(),W?A(v,[k]):A(h,[k]),k[In]=void 0,C[V]===e&&delete C[V])};C[V]=e,p?O(p,[k,M]):M()},clone(k){const L=Xo(k,t,n,r,s);return s&&s(L),L}};return D}function ro(e){if(Es(e))return e=gn(e),e.children=null,e}function El(e){if(!Es(e))return Md(e.type)&&e.children?Rd(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ge(n.default))return n.default()}}function vs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,vs(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 Nd(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;in.value,set:i=>n.value=i})}return n}function gs(e,t,n,r,s=!1){if(ve(e)){e.forEach((h,v)=>gs(h,t&&(ve(t)?t[v]:t),n,r,s));return}if(Jn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&gs(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Hi(r.component):r.el,o=s?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ie?a.refs={}:a.refs,d=a.setupState,f=xe(d),p=d===Ie?()=>!1:h=>Ee(f,h);if(c!=null&&c!==l&&(Me(c)?(u[c]=null,p(c)&&(d[c]=null)):De(c)&&(c.value=null)),ge(l))Rr(l,a,12,[o,u]);else{const h=Me(l),v=De(l);if(h||v){const y=()=>{if(e.f){const b=h?p(l)?d[l]:u[l]:l.value;s?ve(b)&&La(b,i):ve(b)?b.includes(i)||b.push(i):h?(u[l]=[i],p(l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else h?(u[l]=o,p(l)&&(d[l]=o)):v&&(l.value=o,e.k&&(u[e.k]=o))};o?(y.id=-1,ct(y,n)):y()}}}let Ll=!1;const jn=()=>{Ll||(console.error("Hydration completed but contains mismatches."),Ll=!0)},ov=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",av=e=>e.namespaceURI.includes("MathML"),zs=e=>{if(e.nodeType===1){if(ov(e))return"svg";if(av(e))return"mathml"}},Yn=e=>e.nodeType===8;function lv(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:c}}=e,u=(m,w)=>{if(!w.hasChildNodes()){Ln("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,m,w),vi(),w._vnode=m;return}d(w.firstChild,m,null,null,null),vi(),w._vnode=m},d=(m,w,C,A,O,D=!1)=>{D=D||!!w.dynamicChildren;const k=Yn(m)&&m.data==="[",L=()=>v(m,w,C,A,O,k),{type:V,ref:R,shapeFlag:M,patchFlag:W}=w;let Q=m.nodeType;w.el=m,kr(m,"__vnode",w,!0),kr(m,"__vueParentComponent",C,!0),W===-2&&(D=!1,w.dynamicChildren=null);let ee=null;switch(V){case Rn:Q!==3?w.children===""?(l(w.el=s(""),o(m),m),ee=m):ee=L():(m.data!==w.children&&(Ln("Hydration text mismatch in",m.parentNode,` + - rendered on server: ${JSON.stringify(m.data)} + - expected on client: ${JSON.stringify(w.children)}`),jn(),m.data=w.children),ee=i(m));break;case Qe:g(m)?(ee=i(m),b(w.el=m.content.firstChild,m,C)):Q!==8||k?ee=L():ee=i(m);break;case Sr:if(k&&(m=i(m),Q=m.nodeType),Q===1||Q===3){ee=m;const ue=!w.children.length;for(let K=0;K{D=D||!!w.dynamicChildren;const{type:k,props:L,patchFlag:V,shapeFlag:R,dirs:M,transition:W}=w,Q=k==="input"||k==="option";if(Q||V!==-1){M&&zt(w,null,C,"created");let ee=!1;if(g(m)){ee=uf(null,W)&&C&&C.vnode.props&&C.vnode.props.appear;const K=m.content.firstChild;ee&&W.beforeEnter(K),b(K,m,C),w.el=m=K}if(R&16&&!(L&&(L.innerHTML||L.textContent))){let K=p(m.firstChild,w,m,C,A,O,D),be=!1;for(;K;){es(m,1)||(be||(Ln("Hydration children mismatch on",m,` +Server rendered element contains more child nodes than client vdom.`),be=!0),jn());const ke=K;K=K.nextSibling,a(ke)}}else if(R&8){let K=w.children;K[0]===` +`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(K=K.slice(1)),m.textContent!==K&&(es(m,0)||(Ln("Hydration text content mismatch on",m,` + - rendered on server: ${m.textContent} + - expected on client: ${w.children}`),jn()),m.textContent=w.children)}if(L){const K=m.tagName.includes("-");for(const be in L)!(M&&M.some(ke=>ke.dir.created))&&cv(m,be,L[be],w,C)&&jn(),(Q&&(be.endsWith("value")||be==="indeterminate")||ks(be)&&!yr(be)||be[0]==="."||K)&&r(m,be,null,L[be],void 0,C)}let ue;(ue=L&&L.onVnodeBeforeMount)&&kt(ue,C,w),M&&zt(w,null,C,"beforeMount"),((ue=L&&L.onVnodeMounted)||M||ee)&&gf(()=>{ue&&kt(ue,C,w),ee&&W.enter(m),M&&zt(w,null,C,"mounted")},A)}return m.nextSibling},p=(m,w,C,A,O,D,k)=>{k=k||!!w.dynamicChildren;const L=w.children,V=L.length;let R=!1;for(let M=0;M{const{slotScopeIds:k}=w;k&&(O=O?O.concat(k):k);const L=o(m),V=p(i(m),w,L,C,A,O,D);return V&&Yn(V)&&V.data==="]"?i(w.anchor=V):(jn(),l(w.anchor=c("]"),L,V),V)},v=(m,w,C,A,O,D)=>{if(es(m.parentElement,1)||(Ln(`Hydration node mismatch: +- rendered on server:`,m,m.nodeType===3?"(text)":Yn(m)&&m.data==="["?"(start of fragment)":"",` +- expected on client:`,w.type),jn()),w.el=null,D){const V=y(m);for(;;){const R=i(m);if(R&&R!==V)a(R);else break}}const k=i(m),L=o(m);return a(m),n(null,w,L,k,C,A,zs(L),O),C&&(C.vnode.el=w.el,mf(C,w.el)),k},y=(m,w="[",C="]")=>{let A=0;for(;m;)if(m=i(m),m&&Yn(m)&&(m.data===w&&A++,m.data===C)){if(A===0)return i(m);A--}return m},b=(m,w,C)=>{const A=w.parentNode;A&&A.replaceChild(m,w);let O=C;for(;O;)O.vnode.el===w&&(O.vnode.el=O.subTree.el=m),O=O.parent},g=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[u,d]}function cv(e,t,n,r,s){let i,o,a,l;if(t==="class")a=e.getAttribute("class"),l=te(n),uv(Ol(a||""),Ol(l))||(i=2,o="class");else if(t==="style"){a=e.getAttribute("style")||"",l=Me(n)?n:im(we(n));const c=Il(a),u=Il(l);if(r.dirs)for(const{dir:d,value:f}of r.dirs)d.name==="show"&&!f&&u.set("display","none");s&&jd(s,r,u),dv(c,u)||(i=3,o="style")}else(e instanceof SVGElement&&cm(t)||e instanceof HTMLElement&&(wl(t)||lm(t)))&&(wl(t)?(a=e.hasAttribute(t),l=Ia(n)):n==null?(a=e.hasAttribute(t),l=!1):(e.hasAttribute(t)?a=e.getAttribute(t):t==="value"&&e.tagName==="TEXTAREA"?a=e.value:a=!1,l=um(n)?String(n):!1),a!==l&&(i=4,o=t));if(i!=null&&!es(e,i)){const c=f=>f===!1?"(not rendered)":`${o}="${f}"`,u=`Hydration ${Fd[i]} mismatch on`,d=` + - rendered on server: ${c(a)} + - expected on client: ${c(l)} + Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead. + You should fix the source of the mismatch.`;return Ln(u,e,d),!0}return!1}function Ol(e){return new Set(e.trim().split(/\s+/))}function uv(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Il(e){const t=new Map;for(const n of e.split(";")){let[r,s]=n.split(":");r=r.trim(),s=s&&s.trim(),r&&s&&t.set(r,s)}return t}function dv(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e)if(r!==t.get(n))return!1;return!0}function jd(e,t,n){const r=e.subTree;if(e.getCssVars&&(t===r||r&&r.type===ne&&r.children.includes(t))){const s=e.getCssVars();for(const i in s)n.set(`--${fm(i)}`,String(s[i]))}t===r&&e.parent&&jd(e.parent,e.vnode,n)}const Ml="data-allow-mismatch",Fd={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function es(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ml);)e=e.parentElement;const n=e&&e.getAttribute(Ml);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(Fd[t])}}Oi().requestIdleCallback;Oi().cancelIdleCallback;function fv(e,t){if(Yn(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Yn(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Jn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function $i(e){ge(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=e;let c=null,u,d=0;const f=()=>(d++,c=null,p()),p=()=>{let h;return c||(h=c=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((y,b)=>{l(v,()=>y(f()),()=>b(v),d+1)});throw v}).then(v=>h!==c&&c?c:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};return z({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(h,v,y){const b=i?()=>{const g=i(y,m=>fv(h,m));g&&(v.bum||(v.bum=[])).push(g)}:y;u?b():p().then(()=>!v.isUnmounted&&b())},get __asyncResolved(){return u},setup(){const h=qe;if(ja(h),u)return()=>io(u,h);const v=m=>{c=null,Cs(m,h,13,!r)};if(a&&h.suspense||Tr)return p().then(m=>()=>io(m,h)).catch(m=>(v(m),()=>r?j(r,{error:m}):null));const y=H(!1),b=H(),g=H(!!s);return s&&setTimeout(()=>{g.value=!1},s),o!=null&&setTimeout(()=>{if(!y.value&&!b.value){const m=new Error(`Async component timed out after ${o}ms.`);v(m),b.value=m}},o),p().then(()=>{y.value=!0,h.parent&&Es(h.parent.vnode)&&h.parent.update()}).catch(m=>{v(m),b.value=m}),()=>{if(y.value&&u)return io(u,h);if(b.value&&r)return j(r,{error:b.value});if(n&&!g.value)return j(n)}}})}function io(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,o=j(e,r,s);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const Es=e=>e.type.__isKeepAlive;function pv(e,t){zd(e,"a",t)}function hv(e,t){zd(e,"da",t)}function zd(e,t,n=qe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Bi(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Es(s.parent.vnode)&&mv(r,t,n,s),s=s.parent}}function mv(e,t,n,r){const s=Bi(t,e,r,!0);Mt(()=>{La(r[t],s)},n)}function Bi(e,t,n=qe,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{bn();const a=Os(n),l=Dt(t,n,e,o);return a(),wn(),l});return r?s.unshift(i):s.push(i),i}}const Sn=e=>(t,n=qe)=>{(!Tr||e==="sp")&&Bi(e,(...r)=>t(...r),n)},vv=Sn("bm"),Se=Sn("m"),Gd=Sn("bu"),Ri=Sn("u"),Ls=Sn("bum"),Mt=Sn("um"),gv=Sn("sp"),_v=Sn("rtg"),yv=Sn("rtc");function bv(e,t=qe){Bi("ec",e,t)}const Wd="components";function ze(e,t){return qd(Wd,e,!0,t)||e}const Ud=Symbol.for("v-ndc");function Bt(e){return Me(e)?qd(Wd,e,!1)||e:e||Ud}function qd(e,t,n=!0,r=!1){const s=Ye||qe;if(s){const i=s.type;{const a=Pf(i,!1);if(a&&(a===t||a===ht(t)||a===Ts(ht(t))))return i}const o=Al(s[e]||i[e],t)||Al(s.appContext[e],t);return!o&&r?i:o}}function Al(e,t){return e&&(e[t]||e[ht(t)]||e[Ts(ht(t))])}function _e(e,t,n,r){let s;const i=n,o=ve(e);if(o||Me(e)){const a=o&&br(e);let l=!1;a&&(l=!Et(e),e=Mi(e)),s=new Array(e.length);for(let c=0,u=e.length;ct(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;lys(t)?!(t.type===Qe||t.type===ne&&!Yd(t.children)):!0)?e:null}function wv(e,t){const n={};for(const r in e)n[/[A-Z]/.test(r)?`on:${r}`:ti(r)]=e[r];return n}const Zo=e=>e?wf(e)?Hi(e):Zo(e.parent):null,as=Ze(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=>Zo(e.parent),$root:e=>Zo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Zd(e),$forceUpdate:e=>e.f||(e.f=()=>{Na(e.update)}),$nextTick:e=>e.n||(e.n=St.bind(e.proxy)),$watch:e=>Fv.bind(e)}),oo=(e,t)=>e!==Ie&&!e.__isScriptSetup&&Ee(e,t),Sv={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(oo(r,t))return o[t]=1,r[t];if(s!==Ie&&Ee(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&Ee(c,t))return o[t]=3,i[t];if(n!==Ie&&Ee(n,t))return o[t]=4,n[t];Jo&&(o[t]=0)}}const u=as[t];let d,f;if(u)return t==="$attrs"&&rt(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Ie&&Ee(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,Ee(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return oo(s,t)?(s[t]=n,!0):r!==Ie&&Ee(r,t)?(r[t]=n,!0):Ee(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 a;return!!n[o]||e!==Ie&&Ee(e,o)||oo(t,o)||(a=i[0])&&Ee(a,o)||Ee(r,o)||Ee(as,o)||Ee(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Kd(){return xv().slots}function xv(){const e=At();return e.setupContext||(e.setupContext=xf(e))}function Vl(e){return ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Jo=!0;function Pv(e){const t=Zd(e),n=e.proxy,r=e.ctx;Jo=!1,t.beforeCreate&&$l(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:h,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:g,destroyed:m,unmounted:w,render:C,renderTracked:A,renderTriggered:O,errorCaptured:D,serverPrefetch:k,expose:L,inheritAttrs:V,components:R,directives:M,filters:W}=t;if(c&&kv(c,r,null),o)for(const ue in o){const K=o[ue];ge(K)&&(r[ue]=K.bind(n))}if(s){const ue=s.call(n,n);Be(ue)&&(e.data=er(ue))}if(Jo=!0,i)for(const ue in i){const K=i[ue],be=ge(K)?K.bind(n,n):ge(K.get)?K.get.bind(n,n):qt,ke=!ge(K)&&ge(K.set)?K.set.bind(n):qt,Ke=T({get:be,set:ke});Object.defineProperty(r,ue,{enumerable:!0,configurable:!0,get:()=>Ke.value,set:Ue=>Ke.value=Ue})}if(a)for(const ue in a)Xd(a[ue],r,n,ue);if(l){const ue=ge(l)?l.call(n):l;Reflect.ownKeys(ue).forEach(K=>{Lt(K,ue[K])})}u&&$l(u,e,"c");function ee(ue,K){ve(K)?K.forEach(be=>ue(be.bind(n))):K&&ue(K.bind(n))}if(ee(vv,d),ee(Se,f),ee(Gd,p),ee(Ri,h),ee(pv,v),ee(hv,y),ee(bv,D),ee(yv,A),ee(_v,O),ee(Ls,g),ee(Mt,w),ee(gv,k),ve(L))if(L.length){const ue=e.exposed||(e.exposed={});L.forEach(K=>{Object.defineProperty(ue,K,{get:()=>n[K],set:be=>n[K]=be})})}else e.exposed||(e.exposed={});C&&e.render===qt&&(e.render=C),V!=null&&(e.inheritAttrs=V),R&&(e.components=R),M&&(e.directives=M),k&&ja(e)}function kv(e,t,n=qt){ve(e)&&(e=Qo(e));for(const r in e){const s=e[r];let i;Be(s)?"default"in s?i=He(s.from||r,s.default,!0):i=He(s.from||r):i=He(s),De(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function $l(e,t,n){Dt(ve(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Xd(e,t,n,r){let s=r.includes(".")?pf(n,r):()=>n[r];if(Me(e)){const i=t[e];ge(i)&&he(s,i)}else if(ge(e))he(s,e.bind(n));else if(Be(e))if(ve(e))e.forEach(i=>Xd(i,t,n,r));else{const i=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(i)&&he(s,i,e)}}function Zd(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>_i(l,c,o,!0)),_i(l,t,o)),Be(t)&&i.set(t,l),l}function _i(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&_i(e,i,n,!0),s&&s.forEach(o=>_i(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Tv[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Tv={data:Bl,props:Rl,emits:Rl,methods:ts,computed:ts,beforeCreate:lt,created:lt,beforeMount:lt,mounted:lt,beforeUpdate:lt,updated:lt,beforeDestroy:lt,beforeUnmount:lt,destroyed:lt,unmounted:lt,activated:lt,deactivated:lt,errorCaptured:lt,serverPrefetch:lt,components:ts,directives:ts,watch:Ev,provide:Bl,inject:Cv};function Bl(e,t){return t?e?function(){return Ze(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Cv(e,t){return ts(Qo(e),Qo(t))}function Qo(e){if(ve(e)){const t={};for(let n=0;n1)return n&&ge(t)?t.call(r&&r.proxy):t}}function Qd(){return!!(qe||Ye||Qn)}const ef={},tf=()=>Object.create(ef),nf=e=>Object.getPrototypeOf(e)===ef;function Iv(e,t,n,r=!1){const s={},i=tf();e.propsDefaults=Object.create(null),rf(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:yd(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Mv(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=xe(s),[l]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,p]=sf(d,t,!0);Ze(o,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return Be(e)&&r.set(e,gr),gr;if(ve(i))for(let u=0;ue[0]==="_"||e==="$stable",Fa=e=>ve(e)?e.map(Tt):[Tt(e)],Vv=(e,t,n)=>{if(t._n)return t;const r=$((...s)=>Fa(t(...s)),n);return r._c=!1,r},af=(e,t,n)=>{const r=e._ctx;for(const s in e){if(of(s))continue;const i=e[s];if(ge(i))t[s]=Vv(s,i,r);else if(i!=null){const o=Fa(i);t[s]=()=>o}}},lf=(e,t)=>{const n=Fa(t);e.slots.default=()=>n},cf=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},$v=(e,t,n)=>{const r=e.slots=tf();if(e.vnode.shapeFlag&32){const s=t._;s?(cf(r,t,n),n&&kr(r,"_",s,!0)):af(t,r)}else t&&lf(e,t)},Bv=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=Ie;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:cf(s,t,n):(i=!t.$stable,af(t,s)),o=t}else t&&(lf(e,t),o={default:1});if(i)for(const a in s)!of(a)&&o[a]==null&&delete s[a]},ct=gf;function Rv(e){return Dv(e,lv)}function Dv(e,t){const n=Oi();n.__VUE__=!0,Ed(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=qt,insertStaticContent:h}=e,v=(P,E,N,X=null,U=null,Z=null,ie=void 0,se=null,re=!!E.dynamicChildren)=>{if(P===E)return;P&&!Kn(P,E)&&(X=Y(P),Ue(P,U,Z,!0),P=null),E.patchFlag===-2&&(re=!1,E.dynamicChildren=null);const{type:J,ref:me,shapeFlag:le}=E;switch(J){case Rn:y(P,E,N,X);break;case Qe:b(P,E,N,X);break;case Sr:P==null&&g(E,N,X,ie);break;case ne:R(P,E,N,X,U,Z,ie,se,re);break;default:le&1?C(P,E,N,X,U,Z,ie,se,re):le&6?M(P,E,N,X,U,Z,ie,se,re):(le&64||le&128)&&J.process(P,E,N,X,U,Z,ie,se,re,de)}me!=null&&U&&gs(me,P&&P.ref,Z,E||P,!E)},y=(P,E,N,X)=>{if(P==null)r(E.el=a(E.children),N,X);else{const U=E.el=P.el;E.children!==P.children&&c(U,E.children)}},b=(P,E,N,X)=>{P==null?r(E.el=l(E.children||""),N,X):E.el=P.el},g=(P,E,N,X)=>{[P.el,P.anchor]=h(P.children,E,N,X,P.el,P.anchor)},m=({el:P,anchor:E},N,X)=>{let U;for(;P&&P!==E;)U=f(P),r(P,N,X),P=U;r(E,N,X)},w=({el:P,anchor:E})=>{let N;for(;P&&P!==E;)N=f(P),s(P),P=N;s(E)},C=(P,E,N,X,U,Z,ie,se,re)=>{E.type==="svg"?ie="svg":E.type==="math"&&(ie="mathml"),P==null?A(E,N,X,U,Z,ie,se,re):k(P,E,U,Z,ie,se,re)},A=(P,E,N,X,U,Z,ie,se)=>{let re,J;const{props:me,shapeFlag:le,transition:pe,dirs:ye}=P;if(re=P.el=o(P.type,Z,me&&me.is,me),le&8?u(re,P.children):le&16&&D(P.children,re,null,X,U,ao(P,Z),ie,se),ye&&zt(P,null,X,"created"),O(re,P,P.scopeId,ie,X),me){for(const Ae in me)Ae!=="value"&&!yr(Ae)&&i(re,Ae,null,me[Ae],Z,X);"value"in me&&i(re,"value",null,me.value,Z),(J=me.onVnodeBeforeMount)&&kt(J,X,P)}kr(re,"__vnode",P,!0),kr(re,"__vueParentComponent",X,!0),ye&&zt(P,null,X,"beforeMount");const Pe=uf(U,pe);Pe&&pe.beforeEnter(re),r(re,E,N),((J=me&&me.onVnodeMounted)||Pe||ye)&&ct(()=>{J&&kt(J,X,P),Pe&&pe.enter(re),ye&&zt(P,null,X,"mounted")},U)},O=(P,E,N,X,U)=>{if(N&&p(P,N),X)for(let Z=0;Z{for(let J=re;J{const se=E.el=P.el;se.__vnode=E;let{patchFlag:re,dynamicChildren:J,dirs:me}=E;re|=P.patchFlag&16;const le=P.props||Ie,pe=E.props||Ie;let ye;if(N&&Fn(N,!1),(ye=pe.onVnodeBeforeUpdate)&&kt(ye,N,E,P),me&&zt(E,P,N,"beforeUpdate"),N&&Fn(N,!0),(le.innerHTML&&pe.innerHTML==null||le.textContent&&pe.textContent==null)&&u(se,""),J?L(P.dynamicChildren,J,se,N,X,ao(E,U),Z):ie||K(P,E,se,null,N,X,ao(E,U),Z,!1),re>0){if(re&16)V(se,le,pe,N,U);else if(re&2&&le.class!==pe.class&&i(se,"class",null,pe.class,U),re&4&&i(se,"style",le.style,pe.style,U),re&8){const Pe=E.dynamicProps;for(let Ae=0;Ae{ye&&kt(ye,N,E,P),me&&zt(E,P,N,"updated")},X)},L=(P,E,N,X,U,Z,ie)=>{for(let se=0;se{if(E!==N){if(E!==Ie)for(const Z in E)!yr(Z)&&!(Z in N)&&i(P,Z,E[Z],null,U,X);for(const Z in N){if(yr(Z))continue;const ie=N[Z],se=E[Z];ie!==se&&Z!=="value"&&i(P,Z,se,ie,U,X)}"value"in N&&i(P,"value",E.value,N.value,U)}},R=(P,E,N,X,U,Z,ie,se,re)=>{const J=E.el=P?P.el:a(""),me=E.anchor=P?P.anchor:a("");let{patchFlag:le,dynamicChildren:pe,slotScopeIds:ye}=E;ye&&(se=se?se.concat(ye):ye),P==null?(r(J,N,X),r(me,N,X),D(E.children||[],N,me,U,Z,ie,se,re)):le>0&&le&64&&pe&&P.dynamicChildren?(L(P.dynamicChildren,pe,N,U,Z,ie,se),(E.key!=null||U&&E===U.subTree)&&za(P,E,!0)):K(P,E,N,me,U,Z,ie,se,re)},M=(P,E,N,X,U,Z,ie,se,re)=>{E.slotScopeIds=se,P==null?E.shapeFlag&512?U.ctx.activate(E,N,X,ie,re):W(E,N,X,U,Z,ie,re):Q(P,E,re)},W=(P,E,N,X,U,Z,ie)=>{const se=P.component=Qv(P,X,U);if(Es(P)&&(se.ctx.renderer=de),eg(se,!1,ie),se.asyncDep){if(U&&U.registerDep(se,ee,ie),!P.el){const re=se.subTree=j(Qe);b(null,re,E,N)}}else ee(se,P,E,N,U,Z,ie)},Q=(P,E,N)=>{const X=E.component=P.component;if(qv(P,E,N))if(X.asyncDep&&!X.asyncResolved){ue(X,E,N);return}else X.next=E,X.update();else E.el=P.el,X.vnode=E},ee=(P,E,N,X,U,Z,ie)=>{const se=()=>{if(P.isMounted){let{next:le,bu:pe,u:ye,parent:Pe,vnode:Ae}=P;{const vt=df(P);if(vt){le&&(le.el=Ae.el,ue(P,le,ie)),vt.asyncDep.then(()=>{P.isUnmounted||se()});return}}let Oe=le,mt;Fn(P,!1),le?(le.el=Ae.el,ue(P,le,ie)):le=Ae,pe&&ni(pe),(mt=le.props&&le.props.onVnodeBeforeUpdate)&&kt(mt,Pe,le,Ae),Fn(P,!0);const tt=lo(P),Vt=P.subTree;P.subTree=tt,v(Vt,tt,d(Vt.el),Y(Vt),P,U,Z),le.el=tt.el,Oe===null&&mf(P,tt.el),ye&&ct(ye,U),(mt=le.props&&le.props.onVnodeUpdated)&&ct(()=>kt(mt,Pe,le,Ae),U),Ld(P)}else{let le;const{el:pe,props:ye}=E,{bm:Pe,m:Ae,parent:Oe,root:mt,type:tt}=P,Vt=Jn(E);if(Fn(P,!1),Pe&&ni(Pe),!Vt&&(le=ye&&ye.onVnodeBeforeMount)&&kt(le,Oe,E),Fn(P,!0),pe&&Ne){const vt=()=>{P.subTree=lo(P),Ne(pe,P.subTree,P,U,null)};Vt&&tt.__asyncHydrate?tt.__asyncHydrate(pe,P,vt):vt()}else{mt.ce&&mt.ce._injectChildStyle(tt);const vt=P.subTree=lo(P);v(null,vt,N,X,P,U,Z),E.el=vt.el}if(Ae&&ct(Ae,U),!Vt&&(le=ye&&ye.onVnodeMounted)){const vt=E;ct(()=>kt(le,Oe,vt),U)}(E.shapeFlag&256||Oe&&Jn(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&P.a&&ct(P.a,U),P.isMounted=!0,Jm(P),E=N=X=null}};P.scope.on();const re=P.effect=new id(se);P.scope.off();const J=P.update=re.run.bind(re),me=P.job=re.runIfDirty.bind(re);me.i=P,me.id=P.uid,re.scheduler=()=>Na(me),Fn(P,!0),J()},ue=(P,E,N)=>{E.component=P;const X=P.vnode.props;P.vnode=E,P.next=null,Mv(P,E.props,X,N),Bv(P,E.children,N),bn(),Pl(P),wn()},K=(P,E,N,X,U,Z,ie,se,re=!1)=>{const J=P&&P.children,me=P?P.shapeFlag:0,le=E.children,{patchFlag:pe,shapeFlag:ye}=E;if(pe>0){if(pe&128){ke(J,le,N,X,U,Z,ie,se,re);return}else if(pe&256){be(J,le,N,X,U,Z,ie,se,re);return}}ye&8?(me&16&&xt(J,U,Z),le!==J&&u(N,le)):me&16?ye&16?ke(J,le,N,X,U,Z,ie,se,re):xt(J,U,Z,!0):(me&8&&u(N,""),ye&16&&D(le,N,X,U,Z,ie,se,re))},be=(P,E,N,X,U,Z,ie,se,re)=>{P=P||gr,E=E||gr;const J=P.length,me=E.length,le=Math.min(J,me);let pe;for(pe=0;peme?xt(P,U,Z,!0,!1,le):D(E,N,X,U,Z,ie,se,re,le)},ke=(P,E,N,X,U,Z,ie,se,re)=>{let J=0;const me=E.length;let le=P.length-1,pe=me-1;for(;J<=le&&J<=pe;){const ye=P[J],Pe=E[J]=re?Mn(E[J]):Tt(E[J]);if(Kn(ye,Pe))v(ye,Pe,N,null,U,Z,ie,se,re);else break;J++}for(;J<=le&&J<=pe;){const ye=P[le],Pe=E[pe]=re?Mn(E[pe]):Tt(E[pe]);if(Kn(ye,Pe))v(ye,Pe,N,null,U,Z,ie,se,re);else break;le--,pe--}if(J>le){if(J<=pe){const ye=pe+1,Pe=yepe)for(;J<=le;)Ue(P[J],U,Z,!0),J++;else{const ye=J,Pe=J,Ae=new Map;for(J=Pe;J<=pe;J++){const gt=E[J]=re?Mn(E[J]):Tt(E[J]);gt.key!=null&&Ae.set(gt.key,J)}let Oe,mt=0;const tt=pe-Pe+1;let Vt=!1,vt=0;const Fr=new Array(tt);for(J=0;J=tt){Ue(gt,U,Z,!0);continue}let jt;if(gt.key!=null)jt=Ae.get(gt.key);else for(Oe=Pe;Oe<=pe;Oe++)if(Fr[Oe-Pe]===0&&Kn(gt,E[Oe])){jt=Oe;break}jt===void 0?Ue(gt,U,Z,!0):(Fr[jt-Pe]=J+1,jt>=vt?vt=jt:Vt=!0,v(gt,E[jt],N,null,U,Z,ie,se,re),mt++)}const gl=Vt?Nv(Fr):gr;for(Oe=gl.length-1,J=tt-1;J>=0;J--){const gt=Pe+J,jt=E[gt],_l=gt+1{const{el:Z,type:ie,transition:se,children:re,shapeFlag:J}=P;if(J&6){Ke(P.component.subTree,E,N,X);return}if(J&128){P.suspense.move(E,N,X);return}if(J&64){ie.move(P,E,N,de);return}if(ie===ne){r(Z,E,N);for(let le=0;lese.enter(Z),U);else{const{leave:le,delayLeave:pe,afterLeave:ye}=se,Pe=()=>r(Z,E,N),Ae=()=>{le(Z,()=>{Pe(),ye&&ye()})};pe?pe(Z,Pe,Ae):Ae()}else r(Z,E,N)},Ue=(P,E,N,X=!1,U=!1)=>{const{type:Z,props:ie,ref:se,children:re,dynamicChildren:J,shapeFlag:me,patchFlag:le,dirs:pe,cacheIndex:ye}=P;if(le===-2&&(U=!1),se!=null&&gs(se,null,N,P,!0),ye!=null&&(E.renderCache[ye]=void 0),me&256){E.ctx.deactivate(P);return}const Pe=me&1&&pe,Ae=!Jn(P);let Oe;if(Ae&&(Oe=ie&&ie.onVnodeBeforeUnmount)&&kt(Oe,E,P),me&6)Rs(P.component,N,X);else{if(me&128){P.suspense.unmount(N,X);return}Pe&&zt(P,null,E,"beforeUnmount"),me&64?P.type.remove(P,E,N,de,X):J&&!J.hasOnce&&(Z!==ne||le>0&&le&64)?xt(J,E,N,!1,!0):(Z===ne&&le&384||!U&&me&16)&&xt(re,E,N),X&&lr(P)}(Ae&&(Oe=ie&&ie.onVnodeUnmounted)||Pe)&&ct(()=>{Oe&&kt(Oe,E,P),Pe&&zt(P,null,E,"unmounted")},N)},lr=P=>{const{type:E,el:N,anchor:X,transition:U}=P;if(E===ne){cr(N,X);return}if(E===Sr){w(P);return}const Z=()=>{s(N),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(P.shapeFlag&1&&U&&!U.persisted){const{leave:ie,delayLeave:se}=U,re=()=>ie(N,Z);se?se(P.el,Z,re):re()}else Z()},cr=(P,E)=>{let N;for(;P!==E;)N=f(P),s(P),P=N;s(E)},Rs=(P,E,N)=>{const{bum:X,scope:U,job:Z,subTree:ie,um:se,m:re,a:J}=P;Nl(re),Nl(J),X&&ni(X),U.stop(),Z&&(Z.flags|=8,Ue(ie,P,E,N)),se&&ct(se,E),ct(()=>{P.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve()),ev(P)},xt=(P,E,N,X=!1,U=!1,Z=0)=>{for(let ie=Z;ie{if(P.shapeFlag&6)return Y(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const E=f(P.anchor||P.el),N=E&&E[Id];return N?f(N):E};let ce=!1;const oe=(P,E,N)=>{P==null?E._vnode&&Ue(E._vnode,null,null,!0):v(E._vnode||null,P,E,null,null,null,N),E._vnode=P,ce||(ce=!0,Pl(),vi(),ce=!1)},de={p:v,um:Ue,m:Ke,r:lr,mt:W,mc:D,pc:K,pbc:L,n:Y,o:e};let Ce,Ne;return t&&([Ce,Ne]=t(de)),{render:oe,hydrate:Ce,createApp:Ov(oe,Ce)}}function ao({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 Fn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function uf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function za(e,t,n=!1){const r=e.children,s=t.children;if(ve(r)&&ve(s))for(let i=0;i>1,e[n[a]]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 df(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:df(t)}function Nl(e){if(e)for(let t=0;tHe(Hv);function Dr(e,t){return Di(e,null,t)}function ff(e,t){return Di(e,null,{flush:"post"})}function he(e,t,n){return Di(e,t,n)}function Di(e,t,n=Ie){const{immediate:r,deep:s,flush:i,once:o}=n,a=Ze({},n),l=t&&r||!t&&i!=="post";let c;if(Tr){if(i==="sync"){const p=jv();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=qt,p.resume=qt,p.pause=qt,p}}const u=qe;a.call=(p,h,v)=>Dt(p,u,h,v);let d=!1;i==="post"?a.scheduler=p=>{ct(p,u&&u.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(p,h)=>{h?p():Na(p)}),a.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=Fm(e,t,a);return Tr&&(c?c.push(f):l&&f()),f}function Fv(e,t,n){const r=this.proxy,s=Me(e)?e.includes(".")?pf(r,e):()=>r[e]:e.bind(r,r);let i;ge(t)?i=t:(i=t.handler,n=t);const o=Os(this),a=Di(s,i.bind(r),n);return o(),a}function pf(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ht(t)}Modifiers`]||e[`${yn(t)}Modifiers`];function Gv(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ie;let s=n;const i=t.startsWith("update:"),o=i&&zv(r,t.slice(7));o&&(o.trim&&(s=n.map(u=>Me(u)?u.trim():u)),o.number&&(s=n.map(zo))),tv(e,t,s);let a,l=r[a=ti(t)]||r[a=ti(ht(t))];!l&&i&&(l=r[a=ti(yn(t))]),l&&Dt(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Dt(c,e,6,s)}}function hf(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!ge(e)){const l=c=>{const u=hf(c,t,!0);u&&(a=!0,Ze(o,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Be(e)&&r.set(e,null),null):(ve(i)?i.forEach(l=>o[l]=null):Ze(o,i),Be(e)&&r.set(e,o),o)}function Ni(e,t){return!e||!ks(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ee(e,t[0].toLowerCase()+t.slice(1))||Ee(e,yn(t))||Ee(e,t))}function lo(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:h,inheritAttrs:v}=e,y=gi(e);let b,g;try{if(n.shapeFlag&4){const w=s||r,C=w;b=Tt(c.call(C,w,u,d,p,f,h)),g=a}else{const w=t;b=Tt(w.length>1?w(d,{attrs:a,slots:o,emit:l}):w(d,null)),g=t.props?a:Wv(a)}}catch(w){ls.length=0,Cs(w,e,1),b=j(Qe)}let m=b;if(g&&v!==!1){const w=Object.keys(g),{shapeFlag:C}=m;w.length&&C&7&&(i&&w.some(Ea)&&(g=Uv(g,i)),m=gn(m,g,!1,!0))}return n.dirs&&(m=gn(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&vs(m,n.transition),b=m,gi(y),b}const Wv=e=>{let t;for(const n in e)(n==="class"||n==="style"||ks(n))&&((t||(t={}))[n]=e[n]);return t},Uv=(e,t)=>{const n={};for(const r in e)(!Ea(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function qv(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Hl(r,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function gf(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):Km(e)}const ne=Symbol.for("v-fgt"),Rn=Symbol.for("v-txt"),Qe=Symbol.for("v-cmt"),Sr=Symbol.for("v-stc"),ls=[];let yt=null;function _(e=!1){ls.push(yt=e?null:[])}function Yv(){ls.pop(),yt=ls[ls.length-1]||null}let _s=1;function jl(e,t=!1){_s+=e,e<0&&yt&&t&&(yt.hasOnce=!0)}function _f(e){return e.dynamicChildren=_s>0?yt||gr:null,Yv(),_s>0&&yt&&yt.push(e),e}function x(e,t,n,r,s,i){return _f(S(e,t,n,r,s,i,!0))}function q(e,t,n,r,s){return _f(j(e,t,n,r,s,!0))}function ys(e){return e?e.__v_isVNode===!0:!1}function Kn(e,t){return e.type===t.type&&e.key===t.key}const yf=({key:e})=>e??null,si=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Me(e)||De(e)||ge(e)?{i:Ye,r:e,k:t,f:!!n}:e:null);function S(e,t=null,n=null,r=0,s=null,i=e===ne?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yf(t),ref:t&&si(t),scopeId:Od,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:Ye};return a?(Ga(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Me(n)?8:16),_s>0&&!o&&yt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&yt.push(l),l}const j=Kv;function Kv(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Ud)&&(e=Qe),ys(e)){const a=gn(e,t,!0);return n&&Ga(a,n),_s>0&&!i&&yt&&(a.shapeFlag&6?yt[yt.indexOf(e)]=a:yt.push(a)),a.patchFlag=-2,a}if(ig(e)&&(e=e.__vccOpts),t){t=bf(t);let{class:a,style:l}=t;a&&!Me(a)&&(t.class=te(a)),Be(l)&&(Ra(l)&&!ve(l)&&(l=Ze({},l)),t.style=we(l))}const o=Me(e)?1:vf(e)?128:Md(e)?64:Be(e)?4:ge(e)?2:0;return S(e,t,n,r,s,o,i,!0)}function bf(e){return e?Ra(e)||nf(e)?Ze({},e):e:null}function gn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,c=t?Yt(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&yf(c),ref:t&&t.ref?n&&i?ve(i)?i.concat(si(t)):[i,si(t)]:si(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ne?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gn(e.ssContent),ssFallback:e.ssFallback&&gn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&vs(u,l.clone(u)),u}function Le(e=" ",t=0){return j(Rn,null,e,t)}function Xv(e,t){const n=j(Sr,null,e);return n.staticCount=t,n}function B(e="",t=!1){return t?(_(),q(Qe,null,e)):j(Qe,null,e)}function Tt(e){return e==null||typeof e=="boolean"?j(Qe):ve(e)?j(ne,null,e.slice()):ys(e)?Mn(e):j(Rn,null,String(e))}function Mn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gn(e)}function Ga(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ve(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Ga(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!nf(t)?t._ctx=Ye:s===3&&Ye&&(Ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:Ye},n=32):(t=String(t),r&64?(n=16,t=[Le(t)]):n=8);e.children=t,e.shapeFlag|=n}function Yt(...e){const t={};for(let n=0;nqe||Ye;let yi,ta;{const e=Oi(),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)}};yi=t("__VUE_INSTANCE_SETTERS__",n=>qe=n),ta=t("__VUE_SSR_SETTERS__",n=>Tr=n)}const Os=e=>{const t=qe;return yi(e),e.scope.on(),()=>{e.scope.off(),yi(t)}},Fl=()=>{qe&&qe.scope.off(),yi(null)};function wf(e){return e.vnode.shapeFlag&4}let Tr=!1;function eg(e,t=!1,n=!1){t&&ta(t);const{props:r,children:s}=e.vnode,i=wf(e);Iv(e,r,i,t),$v(e,s,n);const o=i?tg(e,t):void 0;return t&&ta(!1),o}function tg(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Sv);const{setup:r}=n;if(r){bn();const s=e.setupContext=r.length>1?xf(e):null,i=Os(e),o=Rr(r,e,0,[e.props,s]),a=Ju(o);if(wn(),i(),(a||e.sp)&&!Jn(e)&&ja(e),a){if(o.then(Fl,Fl),t)return o.then(l=>{zl(e,l)}).catch(l=>{Cs(l,e,0)});e.asyncDep=o}else zl(e,o)}else Sf(e)}function zl(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Be(t)&&(e.devtoolsRawSetupState=t,e.setupState=Sd(t)),Sf(e)}function Sf(e,t,n){const r=e.type;e.render||(e.render=r.render||qt);{const s=Os(e);bn();try{Pv(e)}finally{wn(),s()}}}const ng={get(e,t){return rt(e,"get",""),e[t]}};function xf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ng),slots:e.slots,emit:e.emit,expose:t}}function Hi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Sd(bd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in as)return as[n](e)},has(t,n){return n in t||n in as}})):e.proxy}const rg=/(?:^|[-_])(\w)/g,sg=e=>e.replace(rg,t=>t.toUpperCase()).replace(/[-_]/g,"");function Pf(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function kf(e,t,n=!1){let r=Pf(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e&&e.parent){const s=i=>{for(const o in i)if(i[o]===t)return o};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?sg(r):n?"App":"Anonymous"}function ig(e){return ge(e)&&"__vccOpts"in e}const T=(e,t)=>Hm(e,t,Tr);function Re(e,t,n){const r=arguments.length;return r===2?Be(t)&&!ve(t)?ys(t)?j(e,null,[t]):j(e,t):j(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ys(n)&&(n=[n]),j(e,t,n))}const Gl="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let na;const Wl=typeof window<"u"&&window.trustedTypes;if(Wl)try{na=Wl.createPolicy("vue",{createHTML:e=>e})}catch{}const Tf=na?e=>na.createHTML(e):e=>e,og="http://www.w3.org/2000/svg",ag="http://www.w3.org/1998/Math/MathML",an=typeof document<"u"?document:null,Ul=an&&an.createElement("template"),lg={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"?an.createElementNS(og,e):t==="mathml"?an.createElementNS(ag,e):n?an.createElement(e,{is:n}):an.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>an.createTextNode(e),createComment:e=>an.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>an.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{Ul.innerHTML=Tf(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=Ul.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Cn="transition",Gr="animation",bs=Symbol("_vtc"),Cf={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},cg=Ze({},$d,Cf),ug=e=>(e.displayName="Transition",e.props=cg,e),xn=ug((e,{slots:t})=>Re(iv,dg(e),t)),zn=(e,t=[])=>{ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},ql=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function dg(e){const t={};for(const R in e)R in Cf||(t[R]=e[R]);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:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=fg(s),v=h&&h[0],y=h&&h[1],{onBeforeEnter:b,onEnter:g,onEnterCancelled:m,onLeave:w,onLeaveCancelled:C,onBeforeAppear:A=b,onAppear:O=g,onAppearCancelled:D=m}=t,k=(R,M,W,Q)=>{R._enterCancelled=Q,Gn(R,M?u:a),Gn(R,M?c:o),W&&W()},L=(R,M)=>{R._isLeaving=!1,Gn(R,d),Gn(R,p),Gn(R,f),M&&M()},V=R=>(M,W)=>{const Q=R?O:g,ee=()=>k(M,R,W);zn(Q,[M,ee]),Yl(()=>{Gn(M,R?l:i),tn(M,R?u:a),ql(Q)||Kl(M,r,v,ee)})};return Ze(t,{onBeforeEnter(R){zn(b,[R]),tn(R,i),tn(R,o)},onBeforeAppear(R){zn(A,[R]),tn(R,l),tn(R,c)},onEnter:V(!1),onAppear:V(!0),onLeave(R,M){R._isLeaving=!0;const W=()=>L(R,M);tn(R,d),R._enterCancelled?(tn(R,f),Jl()):(Jl(),tn(R,f)),Yl(()=>{R._isLeaving&&(Gn(R,d),tn(R,p),ql(w)||Kl(R,r,y,W))}),zn(w,[R,W])},onEnterCancelled(R){k(R,!1,void 0,!0),zn(m,[R])},onAppearCancelled(R){k(R,!0,void 0,!0),zn(D,[R])},onLeaveCancelled(R){L(R),zn(C,[R])}})}function fg(e){if(e==null)return null;if(Be(e))return[co(e.enter),co(e.leave)];{const t=co(e);return[t,t]}}function co(e){return em(e)}function tn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[bs]||(e[bs]=new Set)).add(t)}function Gn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[bs];n&&(n.delete(t),n.size||(e[bs]=void 0))}function Yl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pg=0;function Kl(e,t,n,r){const s=e._endId=++pg,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=hg(e,t);if(!o)return r();const c=o+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[h]||"").split(", "),s=r(`${Cn}Delay`),i=r(`${Cn}Duration`),o=Xl(s,i),a=r(`${Gr}Delay`),l=r(`${Gr}Duration`),c=Xl(a,l);let u=null,d=0,f=0;t===Cn?o>0&&(u=Cn,d=o,f=i.length):t===Gr?c>0&&(u=Gr,d=c,f=l.length):(d=Math.max(o,c),u=d>0?o>c?Cn:Gr:null,f=u?u===Cn?i.length:l.length:0);const p=u===Cn&&/\b(transform|all)(,|$)/.test(r(`${Cn}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Xl(e,t){for(;e.lengthZl(n)+Zl(e[r])))}function Zl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Jl(){return document.body.offsetHeight}function mg(e,t,n){const r=e[bs];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bi=Symbol("_vod"),Ef=Symbol("_vsh"),Cr={beforeMount(e,{value:t},{transition:n}){e[bi]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Wr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Wr(e,!0),r.enter(e)):r.leave(e,()=>{Wr(e,!1)}):Wr(e,t))},beforeUnmount(e,{value:t}){Wr(e,t)}};function Wr(e,t){e.style.display=t?e[bi]:"none",e[Ef]=!t}const vg=Symbol(""),gg=/(^|;)\s*display\s*:/;function _g(e,t,n){const r=e.style,s=Me(n);let i=!1;if(n&&!s){if(t)if(Me(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&ii(r,a,"")}else for(const o in t)n[o]==null&&ii(r,o,"");for(const o in n)o==="display"&&(i=!0),ii(r,o,n[o])}else if(s){if(t!==n){const o=r[vg];o&&(n+=";"+o),r.cssText=n,i=gg.test(n)}}else t&&e.removeAttribute("style");bi in e&&(e[bi]=i?r.display:"",e[Ef]&&(r.display="none"))}const Ql=/\s*!important$/;function ii(e,t,n){if(ve(n))n.forEach(r=>ii(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=yg(e,t);Ql.test(n)?e.setProperty(yn(r),n.replace(Ql,""),"important"):e[r]=n}}const ec=["Webkit","Moz","ms"],uo={};function yg(e,t){const n=uo[t];if(n)return n;let r=ht(t);if(r!=="filter"&&r in e)return uo[t]=r;r=Ts(r);for(let s=0;sfo||(xg.then(()=>fo=0),fo=Date.now());function kg(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Dt(Tg(r,n.value),t,5,[r])};return n.value=e,n.attached=Pg(),n}function Tg(e,t){if(ve(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 oc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cg=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?mg(e,r,o):t==="style"?_g(e,n,r):ks(t)?Ea(t)||wg(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Eg(e,t,r,o))?(rc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&nc(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Me(r))?rc(e,ht(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),nc(e,t,r,o))};function Eg(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&oc(t)&&ge(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 oc(t)&&Me(n)?!1:t in e}const ac=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?n=>ni(t,n):t};function Lg(e){e.target.composing=!0}function lc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const po=Symbol("_assign"),Og={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[po]=ac(s);const i=r||s.props&&s.props.type==="number";hr(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=zo(a)),e[po](a)}),n&&hr(e,"change",()=>{e.value=e.value.trim()}),t||(hr(e,"compositionstart",Lg),hr(e,"compositionend",lc),hr(e,"change",lc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[po]=ac(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?zo(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},Ig=["ctrl","shift","alt","meta"],Mg={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)=>Ig.some(n=>e[`${n}Key`]&&!t.includes(n))},Lf=(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=yn(s.key);if(t.some(o=>o===i||Ag[o]===i))return e(s)})},Vg=Ze({patchProp:Cg},lg);let ho,cc=!1;function $g(){return ho=cc?ho:Rv(Vg),cc=!0,ho}const Bg=(...e)=>{const t=$g().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Dg(r);if(s)return n(s,!0,Rg(s))},t};function Rg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Dg(e){return Me(e)?document.querySelector(e):e}var If=e=>/^[a-z][a-z0-9+.-]*:/.test(e)||e.startsWith("//"),Ng=/.md((\?|#).*)?$/,Hg=(e,t="/")=>If(e)||e.startsWith("/")&&!e.startsWith(t)&&!Ng.test(e),bt=e=>/^(https?:)?\/\//.test(e),uc=e=>{if(!e||e.endsWith("/"))return e;let t=e.replace(/(^|\/)README.md$/i,"$1index.html");return t.endsWith(".md")?t=`${t.substring(0,t.length-3)}.html`:t.endsWith(".html")||(t=`${t}.html`),t.endsWith("/index.html")&&(t=t.substring(0,t.length-10)),t},jg="http://.",Fg=(e,t)=>{if(!e.startsWith("/")&&t){const n=t.slice(0,t.lastIndexOf("/"));return uc(new URL(`${n}/${e}`,jg).pathname)}return uc(e)},zg=(e,t)=>{const n=Object.keys(e).sort((r,s)=>{const i=s.split("/").length-r.split("/").length;return i!==0?i:s.length-r.length});for(const r of n)if(t.startsWith(r))return r;return"/"},Gg=/(#|\?)/,Mf=e=>{const[t,...n]=e.split(Gg);return{pathname:t,hashAndQueries:n.join("")}},Wg=["link","meta","script","style","noscript","template"],Ug=["title","base"],qg=([e,t,n])=>Ug.includes(e)?e:Wg.includes(e)?e==="meta"&&t.name?`${e}.${t.name}`:e==="template"&&t.id?`${e}.${t.id}`:JSON.stringify([e,Object.entries(t).map(([r,s])=>typeof s=="boolean"?s?[r,""]:null:[r,s]).filter(r=>r!=null).sort(([r],[s])=>r.localeCompare(s)),n]):null,Yg=e=>{const t=new Set,n=[];return e.forEach(r=>{const s=qg(r);s&&!t.has(s)&&(t.add(s),n.push(r))}),n},Af=e=>e.startsWith("/")?e:`/${e}`,Vf=e=>e.endsWith("/")||e.endsWith(".html")?e:`${e}/`,$f=e=>e.endsWith("/")?e.slice(0,-1):e,ji=e=>e.startsWith("/")?e.slice(1):e,Kg=e=>typeof e=="function",Nt=e=>Object.prototype.toString.call(e)==="[object Object]",Kt=e=>typeof e=="string";const Xg=JSON.parse('{"/Java/test.html":"/article/zpa70dxk/","/Java/wait_notify.html":"/article/bdav8vie/","/Other/custom-component.example.html":"/article/j6n6sw4o/","/Other/markdown.html":"/article/bds6nvb2/"}'),Zg=Object.fromEntries([["/",{loader:()=>nt(()=>import("./index.html-rqcV38ck.js"),[]),meta:{title:"lhc-s-blog"}}],["/article/zpa70dxk/",{loader:()=>nt(()=>import("./index.html-BSNATQw0.js"),[]),meta:{title:"test"}}],["/article/bdav8vie/",{loader:()=>nt(()=>import("./index.html-B5MHBrbz.js"),[]),meta:{title:"wait_notify"}}],["/article/j6n6sw4o/",{loader:()=>nt(()=>import("./index.html-vIuKfthi.js"),[]),meta:{title:"自定义组件"}}],["/article/bds6nvb2/",{loader:()=>nt(()=>import("./index.html-BjzNc4Jv.js"),[]),meta:{title:"Markdown"}}],["/404.html",{loader:()=>nt(()=>import("./404.html-B0n372Wn.js"),[]),meta:{title:""}}],["/blog/",{loader:()=>nt(()=>import("./index.html-DOOHu6GY.js"),[]),meta:{title:"博客"}}],["/blog/tags/",{loader:()=>nt(()=>import("./index.html-Bu8NRLiI.js"),[]),meta:{title:"标签"}}],["/blog/archives/",{loader:()=>nt(()=>import("./index.html-DMa-QslL.js"),[]),meta:{title:"归档"}}],["/blog/categories/",{loader:()=>nt(()=>import("./index.html-vcyxgUF1.js"),[]),meta:{title:"分类"}}]]);function Jg(){return Bf().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Bf(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Qg=typeof Proxy=="function",e1="devtools-plugin:setup",t1="plugin:settings:set";let dr,ra;function n1(){var e;return dr!==void 0||(typeof window<"u"&&window.performance?(dr=!0,ra=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(dr=!0,ra=globalThis.perf_hooks.performance):dr=!1),dr}function r1(){return n1()?ra.now():Date.now()}class s1{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const o in t.settings){const a=t.settings[o];r[o]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},r);try{const o=localStorage.getItem(s),a=JSON.parse(o);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}i=o},now(){return r1()}},n&&n.on(t1,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function i1(e,t){const n=e,r=Bf(),s=Jg(),i=Qg&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))s.emit(e1,e,t);else{const o=i?new s1(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*! + * vue-router v4.5.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const ln=typeof document<"u";function Rf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function o1(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Rf(e.default)}const Te=Object.assign;function mo(e,t){const n={};for(const r in t){const s=t[r];n[r]=wt(s)?s.map(e):e(s)}return n}const cs=()=>{},wt=Array.isArray,Df=/#/g,a1=/&/g,l1=/\//g,c1=/=/g,u1=/\?/g,Nf=/\+/g,d1=/%5B/g,f1=/%5D/g,Hf=/%5E/g,p1=/%60/g,jf=/%7B/g,h1=/%7C/g,Ff=/%7D/g,m1=/%20/g;function Wa(e){return encodeURI(""+e).replace(h1,"|").replace(d1,"[").replace(f1,"]")}function v1(e){return Wa(e).replace(jf,"{").replace(Ff,"}").replace(Hf,"^")}function sa(e){return Wa(e).replace(Nf,"%2B").replace(m1,"+").replace(Df,"%23").replace(a1,"%26").replace(p1,"`").replace(jf,"{").replace(Ff,"}").replace(Hf,"^")}function g1(e){return sa(e).replace(c1,"%3D")}function _1(e){return Wa(e).replace(Df,"%23").replace(u1,"%3F")}function y1(e){return e==null?"":_1(e).replace(l1,"%2F")}function Er(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const b1=/\/$/,w1=e=>e.replace(b1,"");function vo(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=k1(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:Er(o)}}function S1(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function dc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function x1(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Dn(t.matched[r],n.matched[s])&&zf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Dn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!P1(e[n],t[n]))return!1;return!0}function P1(e,t){return wt(e)?fc(e,t):wt(t)?fc(t,e):e===t}function fc(e,t){return wt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function k1(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const sn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ws;(function(e){e.pop="pop",e.push="push"})(ws||(ws={}));var us;(function(e){e.back="back",e.forward="forward",e.unknown=""})(us||(us={}));function T1(e){if(!e)if(ln){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),w1(e)}const C1=/^[^#]+#/;function E1(e,t){return e.replace(C1,"#")+t}function L1(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Fi=()=>({left:window.scrollX,top:window.scrollY});function O1(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=L1(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function pc(e,t){return(history.state?history.state.position-t:-1)+e}const ia=new Map;function I1(e,t){ia.set(e,t)}function M1(e){const t=ia.get(e);return ia.delete(e),t}let A1=()=>location.protocol+"//"+location.host;function Gf(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),dc(l,"")}return dc(n,e)+r+s}function V1(e,t,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const p=Gf(e,location),h=n.value,v=t.value;let y=0;if(f){if(n.value=p,t.value=f,o&&o===h){o=null;return}y=v?f.position-v.position:0}else r(p);s.forEach(b=>{b(n.value,h,{delta:y,type:ws.pop,direction:y?y>0?us.forward:us.back:us.unknown})})};function l(){o=n.value}function c(f){s.push(f);const p=()=>{const h=s.indexOf(f);h>-1&&s.splice(h,1)};return i.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(Te({},f.state,{scroll:Fi()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function hc(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Fi():null}}function $1(e){const{history:t,location:n}=window,r={value:Gf(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:A1()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function o(l,c){const u=Te({},t.state,hc(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});i(l,u,!0),r.value=l}function a(l,c){const u=Te({},s.value,t.state,{forward:l,scroll:Fi()});i(u.current,u,!0);const d=Te({},hc(r.value,l,null),{position:u.position+1},c);i(l,d,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function B1(e){e=T1(e);const t=$1(e),n=V1(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=Te({location:"",base:e,go:r,createHref:E1.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Wf(e){return typeof e=="string"||e&&typeof e=="object"}function Uf(e){return typeof e=="string"||typeof e=="symbol"}const qf=Symbol("");var mc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(mc||(mc={}));function Lr(e,t){return Te(new Error,{type:e,[qf]:!0},t)}function nn(e,t){return e instanceof Error&&qf in e&&(t==null||!!(e.type&t))}const vc="[^/]+?",R1={sensitive:!1,strict:!1,start:!0,end:!0},D1=/[.+*?^${}()[\]/\\]/g;function N1(e,t){const n=Te({},R1,t),r=[];let s=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function Yf(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const j1={type:0,value:""},F1=/[a-zA-Z0-9_]/;function z1(e){if(!e)return[[]];if(e==="/")return[[j1]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{o(m)}:cs}function o(d){if(Uf(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function l(d){const f=Y1(d,n);n.splice(f,0,d),d.record.name&&!bc(d)&&r.set(d.record.name,d)}function c(d,f){let p,h={},v,y;if("name"in d&&d.name){if(p=r.get(d.name),!p)throw Lr(1,{location:d});y=p.record.name,h=Te(_c(f.params,p.keys.filter(m=>!m.optional).concat(p.parent?p.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),d.params&&_c(d.params,p.keys.map(m=>m.name))),v=p.stringify(h)}else if(d.path!=null)v=d.path,p=n.find(m=>m.re.test(v)),p&&(h=p.parse(v),y=p.record.name);else{if(p=f.name?r.get(f.name):n.find(m=>m.re.test(f.path)),!p)throw Lr(1,{location:d,currentLocation:f});y=p.record.name,h=Te({},f.params,d.params),v=p.stringify(h)}const b=[];let g=p;for(;g;)b.unshift(g.record),g=g.parent;return{name:y,path:v,params:h,matched:b,meta:q1(b)}}e.forEach(d=>i(d));function u(){n.length=0,r.clear()}return{addRoute:i,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function _c(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function yc(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:U1(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function U1(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function bc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function q1(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function wc(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Y1(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;Yf(e,t[i])<0?r=i:n=i+1}const s=K1(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function K1(e){let t=e;for(;t=t.parent;)if(Kf(t)&&Yf(e,t)===0)return t}function Kf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function X1(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&sa(i)):[r&&sa(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Z1(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=wt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const J1=Symbol(""),xc=Symbol(""),zi=Symbol(""),Ua=Symbol(""),oa=Symbol("");function Ur(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function An(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(Lr(4,{from:n,to:t})):f instanceof Error?l(f):Wf(f)?l(Lr(2,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),a())},u=i(()=>e.call(r&&r.instances[s],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function go(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(Rf(l)){const u=(l.__vccOpts||l)[t];u&&i.push(An(u,n,r,o,a,s))}else{let c=l();i.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const d=o1(u)?u.default:u;o.mods[a]=u,o.components[a]=d;const p=(d.__vccOpts||d)[t];return p&&An(p,n,r,o,a,s)()}))}}return i}function Pc(e){const t=He(zi),n=He(Ua),r=T(()=>{const l=pn(e.to);return t.resolve(l)}),s=T(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Dn.bind(null,u));if(f>-1)return f;const p=kc(l[c-2]);return c>1&&kc(u)===p&&d[d.length-1].path!==p?d.findIndex(Dn.bind(null,l[c-2])):f}),i=T(()=>s.value>-1&&r0(n.params,r.value.params)),o=T(()=>s.value>-1&&s.value===n.matched.length-1&&zf(n.params,r.value.params));function a(l={}){if(n0(l)){const c=t[pn(e.replace)?"replace":"push"](pn(e.to)).catch(cs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}if(ln){const l=At();if(l){const c={route:r.value,isActive:i.value,isExactActive:o.value,error:null};l.__vrl_devtools=l.__vrl_devtools||[],l.__vrl_devtools.push(c),Dr(()=>{c.route=r.value,c.isActive=i.value,c.isExactActive=o.value,c.error=Wf(pn(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:r,href:T(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function Q1(e){return e.length===1?e[0]:e}const e0=z({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Pc,setup(e,{slots:t}){const n=er(Pc(e)),{options:r}=He(zi),s=T(()=>({[Tc(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Tc(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&Q1(t.default(n));return e.custom?i:Re("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),t0=e0;function n0(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function r0(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!wt(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function kc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Tc=(e,t,n)=>e??t??n,s0=z({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=He(oa),s=T(()=>e.route||r.value),i=He(xc,0),o=T(()=>{let c=pn(i);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=T(()=>s.value.matched[o.value]);Lt(xc,T(()=>o.value+1)),Lt(J1,a),Lt(oa,s);const l=H();return he(()=>[l.value,a.value,e.name],([c,u,d],[f,p,h])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Dn(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return Cc(n.default,{Component:f,route:c});const p=d.props[u],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=Re(f,Te({},h,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[u]=null)},ref:l}));if(ln&&y.ref){const b={depth:o.value,name:d.name,path:d.path,meta:d.meta};(wt(y.ref)?y.ref.map(m=>m.i):[y.ref.i]).forEach(m=>{m.__vrv_devtools=b})}return Cc(n.default,{Component:y,route:c})||y}}});function Cc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const i0=s0;function qr(e,t){const n=Te({},e,{matched:e.matched.map(r=>v0(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Gs(e){return{_custom:{display:e}}}let o0=0;function a0(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=o0++;i1({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},s=>{typeof s.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.on.inspectComponent((u,d)=>{u.instanceData&&u.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:qr(t.currentRoute.value,"Current Route")})}),s.on.visitComponentTree(({treeNode:u,componentInstance:d})=>{if(d.__vrv_devtools){const f=d.__vrv_devtools;u.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:Xf})}wt(d.__vrl_devtools)&&(d.__devtoolsApi=s,d.__vrl_devtools.forEach(f=>{let p=f.route.path,h=Qf,v="",y=0;f.error?(p=f.error,h=f0,y=p0):f.isExactActive?(h=Jf,v="This is exactly active"):f.isActive&&(h=Zf,v="This link is active"),u.tags.push({label:p,textColor:y,tooltip:v,backgroundColor:h})}))}),he(t.currentRoute,()=>{l(),s.notifyComponentUpdate(),s.sendInspectorTree(a),s.sendInspectorState(a)});const i="router:navigations:"+r;s.addTimelineLayer({id:i,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((u,d)=>{s.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:d.fullPath,logType:"error",time:s.now(),data:{error:u},groupId:d.meta.__navigationId}})});let o=0;t.beforeEach((u,d)=>{const f={guard:Gs("beforeEach"),from:qr(d,"Current Location during this navigation"),to:qr(u,"Target location")};Object.defineProperty(u.meta,"__navigationId",{value:o++}),s.addTimelineEvent({layerId:i,event:{time:s.now(),title:"Start of navigation",subtitle:u.fullPath,data:f,groupId:u.meta.__navigationId}})}),t.afterEach((u,d,f)=>{const p={guard:Gs("afterEach")};f?(p.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},p.status=Gs("❌")):p.status=Gs("✅"),p.from=qr(d,"Current Location during this navigation"),p.to=qr(u,"Target location"),s.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:u.fullPath,time:s.now(),data:p,logType:f?"warning":"default",groupId:u.meta.__navigationId}})});const a="router-inspector:"+r;s.addInspector({id:a,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!c)return;const u=c;let d=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);d.forEach(np),u.filter&&(d=d.filter(f=>aa(f,u.filter.toLowerCase()))),d.forEach(f=>tp(f,t.currentRoute.value)),u.rootNodes=d.map(ep)}let c;s.on.getInspectorTree(u=>{c=u,u.app===e&&u.inspectorId===a&&l()}),s.on.getInspectorState(u=>{if(u.app===e&&u.inspectorId===a){const f=n.getRoutes().find(p=>p.record.__vd_id===u.nodeId);f&&(u.state={options:c0(f)})}}),s.sendInspectorTree(a),s.sendInspectorState(a)})}function l0(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function c0(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(r=>`${r.name}${l0(r)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(r=>r.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(r=>r.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const Xf=15485081,Zf=2450411,Jf=8702998,u0=2282478,Qf=16486972,d0=6710886,f0=16704226,p0=12131356;function ep(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:u0}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Qf}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Xf}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Jf}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Zf}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:d0});let r=n.__vd_id;return r==null&&(r=String(h0++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(ep)}}let h0=0;const m0=/^\/(.*)\/([a-z]*)$/;function tp(e,t){const n=t.matched.length&&Dn(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(r=>Dn(r,e.record))),e.children.forEach(r=>tp(r,t))}function np(e){e.__vd_match=!1,e.children.forEach(np)}function aa(e,t){const n=String(e.re).match(m0);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(o=>aa(o,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const s=e.record.path.toLowerCase(),i=Er(s);return!t.startsWith("/")&&(i.includes(t)||s.includes(t))||i.startsWith(t)||s.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(o=>aa(o,t))}function v0(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function g0(e){const t=W1(e.routes,e),n=e.parseQuery||X1,r=e.stringifyQuery||Sc,s=e.history,i=Ur(),o=Ur(),a=Ur(),l=We(sn);let c=sn;ln&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=mo.bind(null,Y=>""+Y),d=mo.bind(null,y1),f=mo.bind(null,Er);function p(Y,ce){let oe,de;return Uf(Y)?(oe=t.getRecordMatcher(Y),de=ce):de=Y,t.addRoute(de,oe)}function h(Y){const ce=t.getRecordMatcher(Y);ce&&t.removeRoute(ce)}function v(){return t.getRoutes().map(Y=>Y.record)}function y(Y){return!!t.getRecordMatcher(Y)}function b(Y,ce){if(ce=Te({},ce||l.value),typeof Y=="string"){const E=vo(n,Y,ce.path),N=t.resolve({path:E.path},ce),X=s.createHref(E.fullPath);return Te(E,N,{params:f(N.params),hash:Er(E.hash),redirectedFrom:void 0,href:X})}let oe;if(Y.path!=null)oe=Te({},Y,{path:vo(n,Y.path,ce.path).path});else{const E=Te({},Y.params);for(const N in E)E[N]==null&&delete E[N];oe=Te({},Y,{params:d(E)}),ce.params=d(ce.params)}const de=t.resolve(oe,ce),Ce=Y.hash||"";de.params=u(f(de.params));const Ne=S1(r,Te({},Y,{hash:v1(Ce),path:de.path})),P=s.createHref(Ne);return Te({fullPath:Ne,hash:Ce,query:r===Sc?Z1(Y.query):Y.query||{}},de,{redirectedFrom:void 0,href:P})}function g(Y){return typeof Y=="string"?vo(n,Y,l.value.path):Te({},Y)}function m(Y,ce){if(c!==Y)return Lr(8,{from:ce,to:Y})}function w(Y){return O(Y)}function C(Y){return w(Te(g(Y),{replace:!0}))}function A(Y){const ce=Y.matched[Y.matched.length-1];if(ce&&ce.redirect){const{redirect:oe}=ce;let de=typeof oe=="function"?oe(Y):oe;return typeof de=="string"&&(de=de.includes("?")||de.includes("#")?de=g(de):{path:de},de.params={}),Te({query:Y.query,hash:Y.hash,params:de.path!=null?{}:Y.params},de)}}function O(Y,ce){const oe=c=b(Y),de=l.value,Ce=Y.state,Ne=Y.force,P=Y.replace===!0,E=A(oe);if(E)return O(Te(g(E),{state:typeof E=="object"?Te({},Ce,E.state):Ce,force:Ne,replace:P}),ce||oe);const N=oe;N.redirectedFrom=ce;let X;return!Ne&&x1(r,de,oe)&&(X=Lr(16,{to:N,from:de}),Ke(de,de,!0,!1)),(X?Promise.resolve(X):L(N,de)).catch(U=>nn(U)?nn(U,2)?U:ke(U):K(U,N,de)).then(U=>{if(U){if(nn(U,2))return O(Te({replace:P},g(U.to),{state:typeof U.to=="object"?Te({},Ce,U.to.state):Ce,force:Ne}),ce||N)}else U=R(N,de,!0,P,Ce);return V(N,de,U),U})}function D(Y,ce){const oe=m(Y,ce);return oe?Promise.reject(oe):Promise.resolve()}function k(Y){const ce=cr.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(Y):Y()}function L(Y,ce){let oe;const[de,Ce,Ne]=_0(Y,ce);oe=go(de.reverse(),"beforeRouteLeave",Y,ce);for(const E of de)E.leaveGuards.forEach(N=>{oe.push(An(N,Y,ce))});const P=D.bind(null,Y,ce);return oe.push(P),xt(oe).then(()=>{oe=[];for(const E of i.list())oe.push(An(E,Y,ce));return oe.push(P),xt(oe)}).then(()=>{oe=go(Ce,"beforeRouteUpdate",Y,ce);for(const E of Ce)E.updateGuards.forEach(N=>{oe.push(An(N,Y,ce))});return oe.push(P),xt(oe)}).then(()=>{oe=[];for(const E of Ne)if(E.beforeEnter)if(wt(E.beforeEnter))for(const N of E.beforeEnter)oe.push(An(N,Y,ce));else oe.push(An(E.beforeEnter,Y,ce));return oe.push(P),xt(oe)}).then(()=>(Y.matched.forEach(E=>E.enterCallbacks={}),oe=go(Ne,"beforeRouteEnter",Y,ce,k),oe.push(P),xt(oe))).then(()=>{oe=[];for(const E of o.list())oe.push(An(E,Y,ce));return oe.push(P),xt(oe)}).catch(E=>nn(E,8)?E:Promise.reject(E))}function V(Y,ce,oe){a.list().forEach(de=>k(()=>de(Y,ce,oe)))}function R(Y,ce,oe,de,Ce){const Ne=m(Y,ce);if(Ne)return Ne;const P=ce===sn,E=ln?history.state:{};oe&&(de||P?s.replace(Y.fullPath,Te({scroll:P&&E&&E.scroll},Ce)):s.push(Y.fullPath,Ce)),l.value=Y,Ke(Y,ce,oe,P),ke()}let M;function W(){M||(M=s.listen((Y,ce,oe)=>{if(!Rs.listening)return;const de=b(Y),Ce=A(de);if(Ce){O(Te(Ce,{replace:!0,force:!0}),de).catch(cs);return}c=de;const Ne=l.value;ln&&I1(pc(Ne.fullPath,oe.delta),Fi()),L(de,Ne).catch(P=>nn(P,12)?P:nn(P,2)?(O(Te(g(P.to),{force:!0}),de).then(E=>{nn(E,20)&&!oe.delta&&oe.type===ws.pop&&s.go(-1,!1)}).catch(cs),Promise.reject()):(oe.delta&&s.go(-oe.delta,!1),K(P,de,Ne))).then(P=>{P=P||R(de,Ne,!1),P&&(oe.delta&&!nn(P,8)?s.go(-oe.delta,!1):oe.type===ws.pop&&nn(P,20)&&s.go(-1,!1)),V(de,Ne,P)}).catch(cs)}))}let Q=Ur(),ee=Ur(),ue;function K(Y,ce,oe){ke(Y);const de=ee.list();return de.length?de.forEach(Ce=>Ce(Y,ce,oe)):console.error(Y),Promise.reject(Y)}function be(){return ue&&l.value!==sn?Promise.resolve():new Promise((Y,ce)=>{Q.add([Y,ce])})}function ke(Y){return ue||(ue=!Y,W(),Q.list().forEach(([ce,oe])=>Y?oe(Y):ce()),Q.reset()),Y}function Ke(Y,ce,oe,de){const{scrollBehavior:Ce}=e;if(!ln||!Ce)return Promise.resolve();const Ne=!oe&&M1(pc(Y.fullPath,0))||(de||!oe)&&history.state&&history.state.scroll||null;return St().then(()=>Ce(Y,ce,Ne)).then(P=>P&&O1(P)).catch(P=>K(P,Y,ce))}const Ue=Y=>s.go(Y);let lr;const cr=new Set,Rs={currentRoute:l,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:v,resolve:b,options:e,push:w,replace:C,go:Ue,back:()=>Ue(-1),forward:()=>Ue(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:ee.add,isReady:be,install(Y){const ce=this;Y.component("RouterLink",t0),Y.component("RouterView",i0),Y.config.globalProperties.$router=ce,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>pn(l)}),ln&&!lr&&l.value===sn&&(lr=!0,w(s.location).catch(Ce=>{}));const oe={};for(const Ce in sn)Object.defineProperty(oe,Ce,{get:()=>l.value[Ce],enumerable:!0});Y.provide(zi,ce),Y.provide(Ua,yd(oe)),Y.provide(oa,l);const de=Y.unmount;cr.add(Y),Y.unmount=function(){cr.delete(Y),cr.size<1&&(c=sn,M&&M(),M=null,l.value=sn,lr=!1,ue=!1),de()},ln&&a0(Y,ce,t)}};function xt(Y){return Y.reduce((ce,oe)=>ce.then(()=>k(oe)),Promise.resolve())}return Rs}function _0(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oDn(c,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(c=>Dn(c,l))||s.push(l))}return[n,r,s]}function Nr(){return He(zi)}function ot(e){return He(Ua)}var qa=Symbol(""),Pn=()=>{const e=He(qa);if(!e)throw new Error("useClientData() is called without provider.");return e},rp=()=>Pn().pageComponent,sp=()=>Pn().pageData,Is=()=>Pn().pageFrontmatter,y0=()=>Pn().pageHead,Nn=()=>Pn().pageLang,b0=()=>Pn().pageLayout,kn=()=>Pn().routeLocale,ip=()=>Pn().routePath,op=()=>Pn().siteLocaleData,w0=Symbol(""),la=We(Xg),xr=We(Zg),ap=(e,t)=>{const n=Fg(e,t);if(xr.value[n])return n;const r=encodeURI(n);if(xr.value[r])return r;const s=la.value[n]||la.value[r];return s||n},Or=(e,t)=>{const{pathname:n,hashAndQueries:r}=Mf(e),s=ap(n,t),i=s+r;return xr.value[s]?{...xr.value[s],path:i,notFound:!1}:{...xr.value["/404.html"],path:i,notFound:!0}},Tn=(e,t)=>{const{pathname:n,hashAndQueries:r}=Mf(e);return ap(n,t)+r},S0=e=>{if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget){const t=e.currentTarget.getAttribute("target");if(t!=null&&t.match(/\b_blank\b/i))return}return e.preventDefault(),!0}},x0=z({name:"RouteLink",props:{to:{type:String,required:!0},active:Boolean,activeClass:{type:String,default:"route-link-active"}},slots:Object,setup(e,{slots:t}){const n=Nr(),r=ot(),s=T(()=>e.to.startsWith("#")||e.to.startsWith("?")?e.to:`/${Tn(e.to,r.path).substring(1)}`);return()=>Re("a",{class:["route-link",{[e.activeClass]:e.active}],href:s.value,onClick:(i={})=>{S0(i)&&n.push(e.to).catch()}},t.default())}}),P0=z({name:"ClientOnly",setup(e,t){const n=H(!1);return Se(()=>{n.value=!0}),()=>{var r,s;return n.value?(s=(r=t.slots).default)==null?void 0:s.call(r):null}}}),lp=z({name:"Content",props:{path:{type:String,required:!1,default:""}},setup(e){const t=rp(),n=T(()=>{if(!e.path)return t.value;const r=Or(e.path);return $i(async()=>r.loader().then(({comp:s})=>s))});return()=>Re(n.value)}}),k0="Layout",T0="en-US",Wn=er({resolveLayouts:e=>e.reduce((t,n)=>({...t,...n.layouts}),{}),resolvePageHead:(e,t,n)=>{const r=Kt(t.description)?t.description:n.description,s=[...Array.isArray(t.head)?t.head:[],...n.head,["title",{},e],["meta",{name:"description",content:r}]];return Yg(s)},resolvePageHeadTitle:(e,t)=>[e.title,t.title].filter(n=>!!n).join(" | "),resolvePageLang:(e,t)=>e.lang||t.lang||T0,resolvePageLayout:(e,t)=>{const n=Kt(e.frontmatter.layout)?e.frontmatter.layout:k0;if(!t[n])throw new Error(`[vuepress] Cannot resolve layout: ${n}`);return t[n]},resolveRouteLocale:(e,t)=>zg(e,decodeURI(t)),resolveSiteLocaleData:({base:e,locales:t,...n},r)=>{var s;return{...n,...t[r],head:[...((s=t[r])==null?void 0:s.head)??[],...n.head]}}}),Hn=(e={})=>e,ft=e=>bt(e)?e:`/${ji(e)}`,C0={};const E0=Object.freeze(Object.defineProperty({__proto__:null,default:C0},Symbol.toStringTag,{value:"Module"}));var oi=[];function L0(e){oi.push(e),Mt(()=>{oi=oi.filter(t=>t!==e)})}function _o(e){oi.forEach(t=>t(e))}var O0=z({name:"Content",props:{path:{type:String,required:!1,default:""}},setup(e){const t=rp(),n=T(()=>{if(!e.path)return t.value;const r=Or(e.path);return $i(()=>r.loader().then(({comp:s})=>s))});return()=>Re(n.value,{onVnodeMounted:()=>_o({mounted:!0}),onVnodeUpdated:()=>_o({updated:!0}),onVnodeBeforeUnmount:()=>_o({beforeUnmount:!0})})}}),I0=Hn({enhance({app:e}){e._context.components.Content&&delete e._context.components.Content,e.component("Content",O0)}});const M0=Object.freeze(Object.defineProperty({__proto__:null,default:I0},Symbol.toStringTag,{value:"Module"}));function Zt(e){return sd()?(hm(e),!0):!1}const yo=new WeakMap,A0=(...e)=>{var t;const n=e[0],r=(t=At())==null?void 0:t.proxy;if(r==null&&!Qd())throw new Error("injectLocal must be called in setup");return r&&yo.has(r)&&n in yo.get(r)?yo.get(r)[n]:He(...e)},rr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const V0=e=>e!=null,$0=Object.prototype.toString,B0=e=>$0.call(e)==="[object Object]",Rt=()=>{},R0=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ca=D0();function D0(){var e,t;return rr&&((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 Ya(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 cp=e=>e();function up(e,t={}){let n,r,s=Rt;const i=l=>{clearTimeout(l),s(),s=Rt};let o;return l=>{const c=fe(e),u=fe(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(l())):new Promise((d,f)=>{s=t.rejectOnCancel?f:d,o=l,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,d(o())},u)),n=setTimeout(()=>{r&&i(r),r=null,d(l())},c)})}}function N0(...e){let t=0,n,r=!0,s=Rt,i,o,a,l,c;!De(e[0])&&typeof e[0]=="object"?{delay:o,trailing:a=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[o,a=!0,l=!0,c=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,s(),s=Rt)};return f=>{const p=fe(o),h=Date.now()-t,v=()=>i=f();return u(),p<=0?(t=Date.now(),v()):(h>p&&(l||!r)?(t=Date.now(),v()):a&&(i=new Promise((y,b)=>{s=c?b:y,n=setTimeout(()=>{t=Date.now(),r=!0,y(v()),u()},Math.max(0,p-h))})),!l&&!n&&(n=setTimeout(()=>r=!0,p)),r=!1,i)}}function H0(e=cp){const t=H(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...i)=>{t.value&&e(...i)};return{isActive:Br(t),pause:n,resume:r,eventFilter:s}}function j0(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function Ec(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function F0(e){return At()}function ds(e){return Array.isArray(e)?e:[e]}function dp(...e){if(e.length!==1)return Ot(...e);const t=e[0];return typeof t=="function"?Br(Da(()=>({get:t,set:Rt}))):H(t)}function fp(e,t=200,n={}){return Ya(up(t,n),e)}function pp(e,t=200,n=!1,r=!0,s=!1){return Ya(N0(t,n,r,s),e)}function hp(e,t,n={}){const{eventFilter:r=cp,...s}=n;return he(e,Ya(r,t),s)}function z0(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:i,pause:o,resume:a,isActive:l}=H0(r);return{stop:hp(e,t,{...s,eventFilter:i}),pause:o,resume:a,isActive:l}}function Ms(e,t=!0,n){F0()?Se(e,n):t?e():St(e)}function G0(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const o=H(!1);function a(){i&&(clearInterval(i),i=null)}function l(){o.value=!1,a()}function c(){const u=fe(t);u<=0||(o.value=!0,s&&e(),a(),o.value&&(i=setInterval(e,u)))}if(r&&rr&&c(),De(t)||typeof t=="function"){const u=he(t,()=>{o.value&&rr&&c()});Zt(u)}return Zt(l),{isActive:o,pause:l,resume:c}}function W0(e=1e3,t={}){const{controls:n=!1,immediate:r=!0,callback:s}=t,i=H(0),o=()=>i.value+=1,a=()=>{i.value=0},l=G0(s?()=>{o(),s(i.value)}:o,e,{immediate:r});return n?{counter:i,reset:a,...l}:i}function U0(e,t,n={}){const{immediate:r=!0}=n,s=H(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function a(){s.value=!1,o()}function l(...c){o(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=null,e(...c)},fe(t))}return r&&(s.value=!0,rr&&l()),Zt(a),{isPending:Br(s),start:l,stop:a}}function q0(e,t,n={}){const{debounce:r=0,maxWait:s=void 0,...i}=n;return hp(e,t,{...i,eventFilter:up(r,{maxWait:s})})}function wi(e,t,n){return he(e,t,{...n,immediate:!0})}function EL(e,t,n){let r;De(n)?r={evaluating:n}:r={};const{lazy:s=!1,evaluating:i=void 0,shallow:o=!0,onError:a=Rt}=r,l=H(!s),c=o?We(t):H(t);let u=0;return Dr(async d=>{if(!l.value)return;u++;const f=u;let p=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const h=await e(v=>{d(()=>{i&&(i.value=!1),p||v()})});f===u&&(c.value=h)}catch(h){a(h)}finally{i&&f===u&&(i.value=!1),p=!0}}),s?T(()=>(l.value=!0,c.value)):c}const it=rr?window:void 0,Y0=rr?window.document:void 0,mp=rr?window.navigator:void 0;function et(e){var t;const n=fe(e);return(t=n==null?void 0:n.$el)!=null?t:n}function $e(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},r=(a,l,c,u)=>(a.addEventListener(l,c,u),()=>a.removeEventListener(l,c,u)),s=T(()=>{const a=ds(fe(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),i=wi(()=>{var a,l;return[(l=(a=s.value)==null?void 0:a.map(c=>et(c)))!=null?l:[it].filter(c=>c!=null),ds(fe(s.value?e[1]:e[0])),ds(pn(s.value?e[2]:e[1])),fe(s.value?e[3]:e[2])]},([a,l,c,u])=>{if(n(),!(a!=null&&a.length)||!(l!=null&&l.length)||!(c!=null&&c.length))return;const d=B0(u)?{...u}:u;t.push(...a.flatMap(f=>l.flatMap(p=>c.map(h=>r(f,p,h,d)))))},{flush:"post"}),o=()=>{i(),n()};return Zt(n),o}let Lc=!1;function Ka(e,t,n={}){const{window:r=it,ignore:s=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return Rt;if(ca&&!Lc){Lc=!0;const v={passive:!0};Array.from(r.document.body.children).forEach(y=>$e(y,"click",Rt,v)),$e(r.document.documentElement,"click",Rt,v)}let a=!0;const l=v=>fe(s).some(y=>{if(typeof y=="string")return Array.from(r.document.querySelectorAll(y)).some(b=>b===v.target||v.composedPath().includes(b));{const b=et(y);return b&&(v.target===b||v.composedPath().includes(b))}});function c(v){const y=fe(v);return y&&y.$.subTree.shapeFlag===16}function u(v,y){const b=fe(v),g=b.$.subTree&&b.$.subTree.children;return g==null||!Array.isArray(g)?!1:g.some(m=>m.el===y.target||y.composedPath().includes(m.el))}const d=v=>{const y=et(e);if(v.target!=null&&!(!(y instanceof Element)&&c(e)&&u(e,v))&&!(!y||y===v.target||v.composedPath().includes(y))){if(v.detail===0&&(a=!l(v)),!a){a=!0;return}t(v)}};let f=!1;const p=[$e(r,"click",v=>{f||(f=!0,setTimeout(()=>{f=!1},0),d(v))},{passive:!0,capture:i}),$e(r,"pointerdown",v=>{const y=et(e);a=!l(v)&&!!(y&&!v.composedPath().includes(y))},{passive:!0}),o&&$e(r,"blur",v=>{setTimeout(()=>{var y;const b=et(e);((y=r.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(b!=null&&b.contains(r.document.activeElement))&&t(v)},0)},{passive:!0})].filter(Boolean);return()=>p.forEach(v=>v())}function K0(){const e=H(!1),t=At();return t&&Se(()=>{e.value=!0},t),e}function Hr(e){const t=K0();return T(()=>(t.value,!!e()))}function vp(e,t,n={}){const{window:r=it,...s}=n;let i;const o=Hr(()=>r&&"MutationObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=T(()=>{const f=fe(e),p=ds(f).map(et).filter(V0);return new Set(p)}),c=he(()=>l.value,f=>{a(),o.value&&f.size&&(i=new MutationObserver(t),f.forEach(p=>i.observe(p,s)))},{immediate:!0,flush:"post"}),u=()=>i==null?void 0:i.takeRecords(),d=()=>{c(),a()};return Zt(d),{isSupported:o,stop:d,takeRecords:u}}function X0(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Oc(...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=it,eventName:i="keydown",passive:o=!1,dedupe:a=!1}=r,l=X0(t);return $e(s,i,u=>{u.repeat&&fe(a)||l(u)&&n(u)},o)}const Z0=Symbol("vueuse-ssr-width");function J0(){const e=Qd()?A0(Z0,null):null;return typeof e=="number"?e:void 0}function It(e,t={}){const{window:n=it,ssrWidth:r=J0()}=t,s=Hr(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=H(typeof r=="number"),o=We(),a=H(!1),l=c=>{a.value=c.matches};return Dr(()=>{if(i.value){i.value=!s.value;const c=fe(e).split(",");a.value=c.some(u=>{const d=u.includes("not all"),f=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),p=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let h=!!(f||p);return f&&h&&(h=r>=Ec(f[1])),p&&h&&(h=r<=Ec(p[1])),d?!h:h});return}s.value&&(o.value=n.matchMedia(fe(e)),a.value=o.value.matches)}),$e(o,"change",l,{passive:!0}),T(()=>a.value)}function Ic(e,t={}){const{controls:n=!1,navigator:r=mp}=t,s=Hr(()=>r&&"permissions"in r),i=We(),o=typeof e=="string"?{name:e}:e,a=We(),l=()=>{var u,d;a.value=(d=(u=i.value)==null?void 0:u.state)!=null?d:"prompt"};$e(i,"change",l,{passive:!0});const c=j0(async()=>{if(s.value){if(!i.value)try{i.value=await r.permissions.query(o)}catch{i.value=void 0}finally{l()}if(n)return xe(i.value)}});return c(),n?{state:a,isSupported:s,query:c}:a}function Q0(e={}){const{navigator:t=mp,read:n=!1,source:r,copiedDuring:s=1500,legacy:i=!1}=e,o=Hr(()=>t&&"clipboard"in t),a=Ic("clipboard-read"),l=Ic("clipboard-write"),c=T(()=>o.value||i),u=H(""),d=H(!1),f=U0(()=>d.value=!1,s,{immediate:!1});function p(){let g=!(o.value&&b(a.value));if(!g)try{t.clipboard.readText().then(m=>{u.value=m})}catch{g=!0}g&&(u.value=y())}c.value&&n&&$e(["copy","cut"],p,{passive:!0});async function h(g=fe(r)){if(c.value&&g!=null){let m=!(o.value&&b(l.value));if(!m)try{await t.clipboard.writeText(g)}catch{m=!0}m&&v(g),u.value=g,d.value=!0,f.start()}}function v(g){const m=document.createElement("textarea");m.value=g??"",m.style.position="absolute",m.style.opacity="0",document.body.appendChild(m),m.select(),document.execCommand("copy"),m.remove()}function y(){var g,m,w;return(w=(m=(g=document==null?void 0:document.getSelection)==null?void 0:g.call(document))==null?void 0:m.toString())!=null?w:""}function b(g){return g==="granted"||g==="prompt"}return{isSupported:c,text:u,copied:d,copy:h}}const Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Us="__vueuse_ssr_handlers__",e_=t_();function t_(){return Us in Ws||(Ws[Us]=Ws[Us]||{}),Ws[Us]}function gp(e,t){return e_[e]||t}function n_(e){return It("(prefers-color-scheme: dark)",e)}function r_(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 s_={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()}},Mc="vueuse-storage";function As(e,t,n,r={}){var s;const{flush:i="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=it,eventFilter:f,onError:p=V=>{console.error(V)},initOnMounted:h}=r,v=(u?We:H)(typeof t=="function"?t():t),y=T(()=>fe(e));if(!n)try{n=gp("getDefaultStorage",()=>{var V;return(V=it)==null?void 0:V.localStorage})()}catch(V){p(V)}if(!n)return v;const b=fe(t),g=r_(b),m=(s=r.serializer)!=null?s:s_[g],{pause:w,resume:C}=z0(v,()=>O(v.value),{flush:i,deep:o,eventFilter:f});he(y,()=>k(),{flush:i}),d&&a&&Ms(()=>{n instanceof Storage?$e(d,"storage",k,{passive:!0}):$e(d,Mc,L),h&&k()}),h||k();function A(V,R){if(d){const M={key:y.value,oldValue:V,newValue:R,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",M):new CustomEvent(Mc,{detail:M}))}}function O(V){try{const R=n.getItem(y.value);if(V==null)A(R,null),n.removeItem(y.value);else{const M=m.write(V);R!==M&&(n.setItem(y.value,M),A(R,M))}}catch(R){p(R)}}function D(V){const R=V?V.newValue:n.getItem(y.value);if(R==null)return l&&b!=null&&n.setItem(y.value,m.write(b)),b;if(!V&&c){const M=m.read(R);return typeof c=="function"?c(M,b):g==="object"&&!Array.isArray(M)?{...b,...M}:M}else return typeof R!="string"?R:m.read(R)}function k(V){if(!(V&&V.storageArea!==n)){if(V&&V.key==null){v.value=b;return}if(!(V&&V.key!==y.value)){w();try{(V==null?void 0:V.newValue)!==m.write(v.value)&&(v.value=D(V))}catch(R){p(R)}finally{V?St(C):C()}}}}function L(V){k(V.detail)}return v}const i_="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function o_(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:s=it,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:l,emitAuto:c,disableTransition:u=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},f=n_({window:s}),p=T(()=>f.value?"dark":"light"),h=l||(o==null?dp(r):As(o,r,i,{window:s,listenToStorageChanges:a})),v=T(()=>h.value==="auto"?p.value:h.value),y=gp("updateHTMLAttrs",(w,C,A)=>{const O=typeof w=="string"?s==null?void 0:s.document.querySelector(w):et(w);if(!O)return;const D=new Set,k=new Set;let L=null;if(C==="class"){const R=A.split(/\s/g);Object.values(d).flatMap(M=>(M||"").split(/\s/g)).filter(Boolean).forEach(M=>{R.includes(M)?D.add(M):k.add(M)})}else L={key:C,value:A};if(D.size===0&&k.size===0&&L===null)return;let V;u&&(V=s.document.createElement("style"),V.appendChild(document.createTextNode(i_)),s.document.head.appendChild(V));for(const R of D)O.classList.add(R);for(const R of k)O.classList.remove(R);L&&O.setAttribute(L.key,L.value),u&&(s.getComputedStyle(V).opacity,document.head.removeChild(V))});function b(w){var C;y(t,n,(C=d[w])!=null?C:w)}function g(w){e.onChanged?e.onChanged(w,b):b(w)}he(v,g,{flush:"post",immediate:!0}),Ms(()=>g(v.value));const m=T({get(){return c?h.value:v.value},set(w){h.value=w}});return Object.assign(m,{store:h,system:p,state:v})}function _p(e,t,n={}){const{window:r=it,initialValue:s,observe:i=!1}=n,o=H(s),a=T(()=>{var c;return et(t)||((c=r==null?void 0:r.document)==null?void 0:c.documentElement)});function l(){var c;const u=fe(e),d=fe(a);if(d&&r&&u){const f=(c=r.getComputedStyle(d).getPropertyValue(u))==null?void 0:c.trim();o.value=f||s}}return i&&vp(a,l,{attributeFilter:["style","class"],window:r}),he([a,()=>fe(e)],(c,u)=>{u[0]&&u[1]&&u[0].style.removeProperty(u[1]),l()},{immediate:!0}),he(o,c=>{var u;const d=fe(e);(u=a.value)!=null&&u.style&&d&&(c==null?a.value.style.removeProperty(d):a.value.style.setProperty(d,c))}),o}function a_(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=o_({...e,onChanged:(o,a)=>{var l;e.onChanged?(l=e.onChanged)==null||l.call(e,o==="dark",a,o):a(o)},modes:{dark:t,light:n}}),s=T(()=>r.system.value);return T({get(){return r.value==="dark"},set(o){const a=o?"dark":"light";s.value===a?r.value="auto":r.value=a}})}function yp(e,t,n={}){const{window:r=it,...s}=n;let i;const o=Hr(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=T(()=>{const d=fe(e);return Array.isArray(d)?d.map(f=>et(f)):[et(d)]}),c=he(l,d=>{if(a(),o.value&&r){i=new ResizeObserver(t);for(const f of d)f&&i.observe(f,s)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Zt(u),{isSupported:o,stop:u}}function l_(e,t={width:0,height:0},n={}){const{window:r=it,box:s="content-box"}=n,i=T(()=>{var d,f;return(f=(d=et(e))==null?void 0:d.namespaceURI)==null?void 0:f.includes("svg")}),o=H(t.width),a=H(t.height),{stop:l}=yp(e,([d])=>{const f=s==="border-box"?d.borderBoxSize:s==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(r&&i.value){const p=et(e);if(p){const h=p.getBoundingClientRect();o.value=h.width,a.value=h.height}}else if(f){const p=ds(f);o.value=p.reduce((h,{inlineSize:v})=>h+v,0),a.value=p.reduce((h,{blockSize:v})=>h+v,0)}else o.value=d.contentRect.width,a.value=d.contentRect.height},n);Ms(()=>{const d=et(e);d&&(o.value="offsetWidth"in d?d.offsetWidth:t.width,a.value="offsetHeight"in d?d.offsetHeight:t.height)});const c=he(()=>et(e),d=>{o.value=d?t.width:0,a.value=d?t.height:0});function u(){l(),c()}return{width:o,height:a,stop:u}}const Ac=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function c_(e,t={}){const{document:n=Y0,autoExit:r=!1}=t,s=T(()=>{var g;return(g=et(e))!=null?g:n==null?void 0:n.querySelector("html")}),i=H(!1),o=T(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(g=>n&&g in n||s.value&&g in s.value)),a=T(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(g=>n&&g in n||s.value&&g in s.value)),l=T(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(g=>n&&g in n||s.value&&g in s.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(g=>n&&g in n),u=Hr(()=>s.value&&n&&o.value!==void 0&&a.value!==void 0&&l.value!==void 0),d=()=>c?(n==null?void 0:n[c])===s.value:!1,f=()=>{if(l.value){if(n&&n[l.value]!=null)return n[l.value];{const g=s.value;if((g==null?void 0:g[l.value])!=null)return!!g[l.value]}}return!1};async function p(){if(!(!u.value||!i.value)){if(a.value)if((n==null?void 0:n[a.value])!=null)await n[a.value]();else{const g=s.value;(g==null?void 0:g[a.value])!=null&&await g[a.value]()}i.value=!1}}async function h(){if(!u.value||i.value)return;f()&&await p();const g=s.value;o.value&&(g==null?void 0:g[o.value])!=null&&(await g[o.value](),i.value=!0)}async function v(){await(i.value?p():h())}const y=()=>{const g=f();(!g||g&&d())&&(i.value=g)},b={capture:!1,passive:!0};return $e(n,Ac,y,b),$e(()=>et(s),Ac,y,b),r&&Zt(p),{isSupported:u,isFullscreen:i,enter:h,exit:p,toggle:v}}function bo(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const Vc=1;function u_(e,t={}){const{throttle:n=0,idle:r=200,onStop:s=Rt,onScroll:i=Rt,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:l="auto",window:c=it,onError:u=O=>{console.error(O)}}=t,d=H(0),f=H(0),p=T({get(){return d.value},set(O){v(O,void 0)}}),h=T({get(){return f.value},set(O){v(void 0,O)}});function v(O,D){var k,L,V,R;if(!c)return;const M=fe(e);if(!M)return;(V=M instanceof Document?c.document.body:M)==null||V.scrollTo({top:(k=fe(D))!=null?k:h.value,left:(L=fe(O))!=null?L:p.value,behavior:fe(l)});const W=((R=M==null?void 0:M.document)==null?void 0:R.documentElement)||(M==null?void 0:M.documentElement)||M;p!=null&&(d.value=W.scrollLeft),h!=null&&(f.value=W.scrollTop)}const y=H(!1),b=er({left:!0,right:!1,top:!0,bottom:!1}),g=er({left:!1,right:!1,top:!1,bottom:!1}),m=O=>{y.value&&(y.value=!1,g.left=!1,g.right=!1,g.top=!1,g.bottom=!1,s(O))},w=fp(m,n+r),C=O=>{var D;if(!c)return;const k=((D=O==null?void 0:O.document)==null?void 0:D.documentElement)||(O==null?void 0:O.documentElement)||et(O),{display:L,flexDirection:V,direction:R}=getComputedStyle(k),M=R==="rtl"?-1:1,W=k.scrollLeft;g.left=Wd.value;const Q=W*M<=(o.left||0),ee=W*M+k.clientWidth>=k.scrollWidth-(o.right||0)-Vc;L==="flex"&&V==="row-reverse"?(b.left=ee,b.right=Q):(b.left=Q,b.right=ee),d.value=W;let ue=k.scrollTop;O===c.document&&!ue&&(ue=c.document.body.scrollTop),g.top=uef.value;const K=ue<=(o.top||0),be=ue+k.clientHeight>=k.scrollHeight-(o.bottom||0)-Vc;L==="flex"&&V==="column-reverse"?(b.top=be,b.bottom=K):(b.top=K,b.bottom=be),f.value=ue},A=O=>{var D;if(!c)return;const k=(D=O.target.documentElement)!=null?D:O.target;C(k),y.value=!0,w(O),i(O)};return $e(e,"scroll",n?pp(A,n,!0,!1):A,a),Ms(()=>{try{const O=fe(e);if(!O)return;C(O)}catch(O){u(O)}}),$e(e,"scrollend",m,a),{x:p,y:h,isScrolling:y,arrivedState:b,directions:g,measure(){const O=fe(e);c&&O&&C(O)}}}function bp(e,t,n={}){const{window:r=it}=n;return As(e,t,r==null?void 0:r.localStorage,n)}function wp(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 wo=new WeakMap;function Xa(e,t=!1){const n=H(t);let r=null,s="";he(dp(e),a=>{const l=bo(fe(a));if(l){const c=l;if(wo.get(c)||wo.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(s=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const i=()=>{const a=bo(fe(e));!a||n.value||(ca&&(r=$e(a,"touchmove",l=>{d_(l)},{passive:!1})),a.style.overflow="hidden",n.value=!0)},o=()=>{const a=bo(fe(e));!a||!n.value||(ca&&(r==null||r()),a.style.overflow=s,wo.delete(a),n.value=!1)};return Zt(o),T({get(){return n.value},set(a){a?i():o()}})}function Sp(e,t,n={}){const{window:r=it}=n;return As(e,t,r==null?void 0:r.sessionStorage,n)}function Za(e={}){const{window:t=it,...n}=e;return u_(t,n)}function f_(e={}){const{window:t=it,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:i=!0,type:o="inner"}=e,a=H(n),l=H(r),c=()=>{if(t)if(o==="outer")a.value=t.outerWidth,l.value=t.outerHeight;else if(o==="visual"&&t.visualViewport){const{width:d,height:f,scale:p}=t.visualViewport;a.value=Math.round(d*p),l.value=Math.round(f*p)}else i?(a.value=t.innerWidth,l.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};c(),Ms(c);const u={passive:!0};if($e("resize",c,u),t&&o==="visual"&&t.visualViewport&&$e(t.visualViewport,"resize",c,u),s){const d=It("(orientation: portrait)");he(d,()=>c())}return{width:a,height:l}}const ua=(e,t)=>{var r;const n=(r=At())==null?void 0:r.appContext.components;return n?e in n||ht(e)in n||Ts(ht(e))in n:!1},p_=e=>new Promise(t=>{setTimeout(t,e)}),xp=e=>{const t=kn();return T(()=>e[t.value]??{})},h_=e=>typeof e<"u",{isArray:Si}=Array,m_=(e,t)=>Kt(e)&&e.startsWith(t),Pp=e=>m_(e,"/")&&e[1]!=="/";/** + * NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT + */const $c=(e,t)=>{e.classList.add(t)},Bc=(e,t)=>{e.classList.remove(t)},v_=e=>{var t;(t=e==null?void 0:e.parentNode)==null||t.removeChild(e)},So=(e,t,n)=>en?n:e,Rc=e=>(-1+e)*100,g_=(()=>{const e=[],t=()=>{const n=e.shift();n&&n(t)};return n=>{e.push(n),e.length===1&&t()}})(),__=e=>e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(t,n)=>n.toUpperCase()),qs=(()=>{const e=["Webkit","O","Moz","ms"],t={},n=i=>{const{style:o}=document.body;if(i in o)return i;const a=i.charAt(0).toUpperCase()+i.slice(1);let l=e.length;for(;l--;){const c=`${e[l]}${a}`;if(c in o)return c}return i},r=i=>{const o=__(i);return t[o]??(t[o]=n(o))},s=(i,o,a)=>{i.style[r(o)]=a};return(i,o)=>{for(const a in o){const l=o[a];Object.hasOwn(o,a)&&h_(l)&&s(i,a,l)}}})(),rn={minimum:.08,easing:"ease",speed:200,trickleRate:.02,trickleSpeed:800,barSelector:'[role="bar"]',parent:"body",template:'
'},je={percent:null,isRendered:()=>!!document.getElementById("nprogress"),set:e=>{const{speed:t,easing:n}=rn,r=je.isStarted(),s=So(e,rn.minimum,1);je.percent=s===1?null:s;const i=je.render(!r),o=i.querySelector(rn.barSelector);return i.offsetWidth,g_(a=>{qs(o,{transform:`translate3d(${Rc(s)}%,0,0)`,transition:`all ${t}ms ${n}`}),s===1?(qs(i,{transition:"none",opacity:"1"}),i.offsetWidth,setTimeout(()=>{qs(i,{transition:`all ${t}ms linear`,opacity:"0"}),setTimeout(()=>{je.remove(),a()},t)},t)):setTimeout(()=>{a()},t)}),je},isStarted:()=>typeof je.percent=="number",start:()=>{je.percent||je.set(0);const e=()=>{setTimeout(()=>{je.percent&&(je.trickle(),e())},rn.trickleSpeed)};return e(),je},done:e=>!e&&!je.percent?je:je.increase(.3+.5*Math.random()).set(1),increase:e=>{let{percent:t}=je;return t?(t=So(t+(typeof e=="number"?e:(1-t)*So(Math.random()*t,.1,.95)),0,.994),je.set(t)):je.start()},trickle:()=>je.increase(Math.random()*rn.trickleRate),render:e=>{if(je.isRendered())return document.getElementById("nprogress");$c(document.documentElement,"nprogress-busy");const t=document.createElement("div");t.id="nprogress",t.innerHTML=rn.template;const n=t.querySelector(rn.barSelector),r=document.querySelector(rn.parent),s=e?"-100":Rc(je.percent??0);return qs(n,{transition:"all 0 linear",transform:`translate3d(${s}%,0,0)`}),r&&(r!==document.body&&$c(r,"nprogress-custom-parent"),r.appendChild(t)),t},remove:()=>{Bc(document.documentElement,"nprogress-busy"),Bc(document.querySelector(rn.parent),"nprogress-custom-parent"),v_(document.getElementById("nprogress"))}},y_=()=>{Se(()=>{const e=Nr(),t=new Set;t.add(e.currentRoute.value.path),e.beforeEach(n=>{t.has(n.path)||je.start()}),e.afterEach(n=>{t.add(n.path),je.done()})})},b_=Hn({setup(){y_()}}),w_=Object.freeze(Object.defineProperty({__proto__:null,default:b_},Symbol.toStringTag,{value:"Module"})),S_=H({}),kp=Symbol(""),x_=()=>He(kp),P_=e=>{e.provide(kp,S_)},Tp=e=>new Promise((t,n)=>{e.complete?t({type:"image",element:e,src:e.src,width:e.naturalWidth,height:e.naturalHeight,alt:e.alt,msrc:e.src}):(e.onload=()=>{t(Tp(e))},e.onerror=()=>{n()})}),k_='
',T_=(e,{download:t=!0,fullscreen:n=!0}={})=>{e.on("uiRegister",()=>{if(e.ui.registerElement({name:"bulletsIndicator",className:"photo-swipe-bullets-indicator",appendTo:"wrapper",onInit:r=>{const s=[];let i=-1;for(let o=0;o{e.goTo(s.indexOf(l.target))},s.push(a),r.appendChild(a)}e.on("change",()=>{i>=0&&s[i].classList.remove("active"),s[e.currIndex].classList.add("active"),i=e.currIndex})}}),n){const{isSupported:r,toggle:s}=c_();r.value&&e.ui.registerElement({name:"fullscreen",order:7,isButton:!0,html:'',onClick:()=>{s()}})}t&&e.ui.registerElement({name:"download",order:8,isButton:!0,tagName:"a",html:{isCustomSVG:!0,inner:'',outlineID:"pswp__icn-download"},onInit:r=>{r.setAttribute("download",""),r.setAttribute("target","_blank"),r.setAttribute("rel","noopener"),e.on("change",()=>{r.setAttribute("href",e.currSlide.data.src)})}})})},C_=({selector:e,locales:t,download:n=!0,fullscreen:r=!0,scrollToClose:s=!0})=>{const i=x_(),o=xp(t),a=Is(),l=T(()=>{const{photoSwipe:h}=a.value;return h===!1?null:Kt(h)?h:Si(e)?e.join(", "):e}),c=T(()=>({...i.value,...o.value,download:n,fullscreen:r,scrollToClose:s}));let u=null,d=0,f=null;const p=async h=>{const v=h.target;if(!l.value||!u||!v.matches(l.value))return;d!==0&&f.destroy();const y=Date.now(),b=await u,g=Array.from(document.querySelectorAll(l.value)),m=g.map(C=>({html:k_,element:C,msrc:C.src})),w=g.findIndex(C=>C===v);f=new b({preloaderDelay:0,showHideAnimationType:"zoom",...c,dataSource:m,index:w,...s?{closeOnVerticalDrag:!0,wheelToZoom:!1}:{}}),d=y,T_(f,{download:n,fullscreen:r}),f.init(),f.on("destroy",()=>{f=null,d=0}),g.map((C,A)=>Tp(C).then(O=>{d===y&&(m.splice(A,1,O),f==null||f.refreshSlideContent(A))}))};Se(()=>{const h="requestIdleCallback"in window?window.requestIdleCallback:setTimeout;$e("click",p),$e("wheel",()=>{c.value.scrollToClose&&(f==null||f.close())}),h(()=>{u=nt(async()=>{const{default:v}=await import("./photoswipe.esm-DXWKOczD.js");return{default:v}},[]).then(({default:v})=>v)})}),Mt(()=>{f==null||f.destroy()})};var E_={"/":{closeTitle:"关闭",downloadTitle:"下载图片",fullscreenTitle:"切换全屏",zoomTitle:"缩放",arrowPrevTitle:"上一个 (左箭头)",arrowNextTitle:"下一个 (右箭头)"}};const L_=".plume-content > img, .plume-content :not(a) > img",O_=E_,I_=!0,M_=!0,A_=!0;var V_=Hn({enhance:({app:e})=>{P_(e)},setup:()=>{C_({selector:L_,locales:O_,download:I_,fullscreen:M_,scrollToClose:A_})}});const $_=Object.freeze(Object.defineProperty({__proto__:null,default:V_},Symbol.toStringTag,{value:"Module"})),B_={"/":()=>nt(()=>import("./searchBox-default-Dy-ivece.js"),[])};var Dc={"/":{placeholder:"Search",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}};function R_(e){const t=Ot(e),n=kn();return T(()=>t.value[n.value]??Dc[n.value]??Dc["/"])}var D_=We(B_);function LL(){return D_}const N_=z({__name:"SearchButton",props:{locales:{}},setup(e,{expose:t}){t();const n=e,r=R_(Ot(n.locales)),s={props:n,locale:r};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),G=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},H_=["aria-label"],j_={class:"mini-search-button-container"},F_={class:"mini-search-button-placeholder"};function z_(e,t,n,r,s,i){return _(),x("button",{type:"button",class:"mini-search mini-search-button","aria-label":r.locale.placeholder},[S("span",j_,[t[0]||(t[0]=S("span",{class:"mini-search-search-icon vpi-mini-search","aria-label":"search icon"},null,-1)),S("span",F_,F(r.locale.placeholder),1)]),t[1]||(t[1]=S("span",{class:"mini-search-button-keys"},[S("kbd",{class:"mini-search-button-key"}),S("kbd",{class:"mini-search-button-key"},"K")],-1))],8,H_)}const G_=G(N_,[["render",z_],["__file","SearchButton.vue"]]),W_=z({__name:"Search",props:{locales:{},options:{}},setup(e,{expose:t}){t();const n=$i(()=>nt(()=>import("./SearchBox-CAdZKjwp.js"),[])),r=H(!1);Oc("k",o=>{(o.ctrlKey||o.metaKey)&&(o.preventDefault(),r.value=!0)}),Oc("/",o=>{s(o)||(o.preventDefault(),r.value=!0)});function s(o){const a=o.target,l=a.tagName;return a.isContentEditable||l==="INPUT"||l==="SELECT"||l==="TEXTAREA"}const i={SearchBox:n,showSearch:r,isEditingContent:s,SearchButton:G_};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),U_={class:"search-wrapper"},q_={id:"local-search"};function Y_(e,t,n,r,s,i){return _(),x("div",U_,[r.showSearch?(_(),q(r.SearchBox,{key:0,locales:n.locales,options:n.options,onClose:t[0]||(t[0]=o=>r.showSearch=!1)},null,8,["locales","options"])):B("",!0),S("div",q_,[j(r.SearchButton,{locales:n.locales,onClick:t[1]||(t[1]=o=>r.showSearch=!0)},null,8,["locales"])])])}const K_=G(W_,[["render",Y_],["__scopeId","data-v-97535d1e"],["__file","Search.vue"]]);var X_={"/":{placeholder:"搜索文档",resetButtonTitle:"重置搜索",backButtonTitle:"关闭",noResultsText:"无搜索结果:",footer:{selectText:"选择",selectKeyAriaLabel:"输入",navigateText:"切换",navigateUpKeyAriaLabel:"向上",navigateDownKeyAriaLabel:"向下",closeText:"关闭",closeKeyAriaLabel:"退出"}}},Z_={},J_=X_,Q_=Z_,ey=Hn({enhance({app:e}){e.component("SearchBox",t=>Re(K_,{locales:J_,options:Q_,...t}))}});const ty=Object.freeze(Object.defineProperty({__proto__:null,default:ey},Symbol.toStringTag,{value:"Module"}));var ny=/language-(?:shellscript|shell|bash|sh|zsh)/,ry=[".vp-copy-ignore",".diff.remove"];function sy({selector:e='div[class*="language-"] > button.copy',duration:t=2e3}={}){const n=new WeakMap,{copy:r}=Q0({legacy:!0});$e("click",s=>{const i=s.target;if(i.matches(e)){const o=i.parentElement,a=i.nextElementSibling;if(!o||!a)return;const l=ny.test(o.className),c=a.cloneNode(!0);c.querySelectorAll(ry.join(",")).forEach(d=>d.remove());let u=c.textContent||"";l&&(u=u.replace(/^ *(\$|>) /gm,"").trim()),r(u).then(()=>{if(t<=0)return;i.classList.add("copied"),clearTimeout(n.get(i));const d=setTimeout(()=>{i.classList.remove("copied"),i.blur(),n.delete(i)},t);n.set(i,d)})}})}function iy({selector:e='div[class*="language-"] > .collapsed-lines'}={}){$e("click",t=>{const n=t.target;if(n.matches(e)){const r=n.parentElement;r!=null&&r.classList.toggle("collapsed")&&r.scrollIntoView({block:"center",behavior:"instant"})}})}const oy={setup(){sy({selector:'div[class*="language-"] > button.copy',duration:2e3}),iy()}},ay=Object.freeze(Object.defineProperty({__proto__:null,default:oy},Symbol.toStringTag,{value:"Module"})),ly=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),cy={enhance:({app:e})=>{}},uy=Object.freeze(Object.defineProperty({__proto__:null,default:cy},Symbol.toStringTag,{value:"Module"})),Nc="VUEPRESS_TAB_STORE",dy=z({__name:"Tabs",props:{id:{},tabId:{default:""},active:{default:0},data:{}},setup(e,{expose:t}){t();const n=e,r=As(Nc,{}),s=H(n.active),i=We([]);function o(){n.tabId&&(r.value[n.tabId]=n.data[s.value].id)}function a(p=s.value){s.value=p0?p-1:i.value.length-1,i.value[s.value].focus()}function c(p,h){p.key===" "||p.key==="Enter"?(p.preventDefault(),s.value=h):p.key==="ArrowRight"?(p.preventDefault(),a()):p.key==="ArrowLeft"&&(p.preventDefault(),l()),o()}function u(){if(n.tabId){const p=n.data.findIndex(({id:h})=>r.value[n.tabId]===h);if(p!==-1)return p}return n.active}Se(()=>{s.value=u(),he(()=>r.value[n.tabId],(p,h)=>{if(n.tabId&&p!==h){const v=n.data.findIndex(({id:y})=>y===p);v!==-1&&(s.value=v)}})});function d(p){s.value=p,o()}const f={props:n,TAB_STORE_NAME:Nc,tabStore:r,activeIndex:s,tabRefs:i,updateStore:o,activateNext:a,activatePrev:l,keyboardHandler:c,getInitialIndex:u,onTabNavClick:d};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),fy={key:0,class:"vp-tabs"},py={class:"vp-tabs-nav",role:"tablist"},hy=["aria-controls","aria-selected","onClick","onKeydown"],my=["id","aria-expanded"],vy={class:"vp-tab-title"};function gy(e,t,n,r,s,i){return n.data.length?(_(),x("div",fy,[S("div",py,[(_(!0),x(ne,null,_e(n.data,(o,a)=>(_(),x("button",{key:a,ref_for:!0,ref:l=>l&&(r.tabRefs[a]=l),class:te(["vp-tab-nav",{active:a===r.activeIndex}]),type:"button",role:"tab","aria-controls":`tab-${n.id}-${a}`,"aria-selected":a===r.activeIndex,onClick:()=>r.onTabNavClick(a),onKeydown:l=>r.keyboardHandler(l,a)},[I(e.$slots,`title${a}`,{value:o.id,isActive:a===r.activeIndex})],42,hy))),128))]),(_(!0),x(ne,null,_e(n.data,(o,a)=>(_(),x("div",{id:`tab-${n.id}-${a}`,key:a,class:te(["vp-tab",{active:a===r.activeIndex}]),role:"tabpanel","aria-expanded":a===r.activeIndex},[S("div",vy,[I(e.$slots,`title${a}`,{value:o.id,isActive:a===r.activeIndex})]),I(e.$slots,`tab${a}`,{value:o.id,isActive:a===r.activeIndex})],10,my))),128))])):B("",!0)}const _y=G(dy,[["render",gy],["__file","Tabs.vue"]]),Hc="VUEPRESS_CODE_TAB_STORE",yy=z({__name:"CodeTabs",props:{id:{},tabId:{default:""},active:{default:0},data:{}},setup(e,{expose:t}){t();const n=e,r=As(Hc,{}),s=H(n.active),i=We([]);function o(){n.tabId&&(r.value[n.tabId]=n.data[s.value].id)}function a(p=s.value){s.value=p0?p-1:i.value.length-1,i.value[s.value].focus()}function c(p,h){p.key===" "||p.key==="Enter"?(p.preventDefault(),s.value=h):p.key==="ArrowRight"?(p.preventDefault(),a()):p.key==="ArrowLeft"&&(p.preventDefault(),l()),n.tabId&&(r.value[n.tabId]=n.data[s.value].id)}function u(){if(n.tabId){const p=n.data.findIndex(({id:h})=>r.value[n.tabId]===h);if(p!==-1)return p}return n.active}Se(()=>{s.value=u(),he(()=>r.value[n.tabId],(p,h)=>{if(n.tabId&&p!==h){const v=n.data.findIndex(({id:y})=>y===p);v!==-1&&(s.value=v)}})});function d(p){s.value=p,o()}const f={props:n,CODE_TAB_STORE_NAME:Hc,codeTabStore:r,activeIndex:s,tabRefs:i,updateStore:o,activateNext:a,activatePrev:l,keyboardHandler:c,getInitialIndex:u,onTabNavClick:d};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),by={key:0,class:"vp-code-tabs"},wy={class:"vp-code-tabs-nav",role:"tablist"},Sy=["aria-controls","aria-selected","onClick","onKeydown"],xy=["id","aria-expanded"],Py={class:"vp-code-tab-title"};function ky(e,t,n,r,s,i){return n.data.length?(_(),x("div",by,[S("div",wy,[(_(!0),x(ne,null,_e(n.data,(o,a)=>(_(),x("button",{key:a,ref_for:!0,ref:l=>l&&(r.tabRefs[a]=l),class:te(["vp-code-tab-nav",{active:a===r.activeIndex}]),type:"button",role:"tab","aria-controls":`codetab-${n.id}-${a}`,"aria-selected":a===r.activeIndex,onClick:()=>r.onTabNavClick(a),onKeydown:l=>r.keyboardHandler(l,a)},[I(e.$slots,`title${a}`,{value:o.id,isActive:a===r.activeIndex})],42,Sy))),128))]),(_(!0),x(ne,null,_e(n.data,(o,a)=>(_(),x("div",{id:`codetab-${n.id}-${a}`,key:a,class:te(["vp-code-tab",{active:a===r.activeIndex}]),role:"tabpanel","aria-expanded":a===r.activeIndex},[S("div",Py,[I(e.$slots,`title${a}`,{value:o.id,isActive:a===r.activeIndex})]),I(e.$slots,`tab${a}`,{value:o.id,isActive:a===r.activeIndex})],10,xy))),128))])):B("",!0)}const Ty=G(yy,[["render",ky],["__file","CodeTabs.vue"]]);var Cy=["mp4","mp3","webm","ogg"];function Ey(e){return/\b(?:Android|iPhone)/i.test(e)}function Ly(e){return/version\/[\w.]+ .*(?:mobile ?safari|safari)/i.test(e)}function Oy(e){return[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i].some(t=>t.test(e))}function Iy(e){const{page:t,noToolbar:n,zoom:r}=e;let i=[`page=${t}`,`toolbar=${n?0:1}`,`zoom=${r}`].join("&");return i&&(i=`#${i}`),i}function jc(e,t,n,r){t=bt(t)?t:new URL(ft(t),typeof location<"u"?location.href:"").toString();const s={};s.pdfjsUrl??(s.pdfjsUrl="https://static.pengzhanbo.cn/pdfjs/");const i=`${Vf(ft(s.pdfjsUrl))}web/viewer.html`,o=Iy(r),a=n==="pdfjs"?`${i}?file=${t}${o}`:`${t}${o}`,l=n==="pdfjs"||n==="iframe"?"iframe":"embed";e.innerHTML="";const c=document.createElement(l);c.className="pdf-viewer",c.type="application/pdf",c.title=r.title||"PDF Viewer",c.src=a,c instanceof HTMLIFrameElement&&(c.allow="fullscreen"),e.appendChild(c)}function My(e,t,n){var u;if(typeof window>"u"||!((u=window==null?void 0:window.navigator)!=null&&u.userAgent))return;const{navigator:r}=window,{userAgent:s}=r,i=typeof window.Promise=="function",o=Oy(s)||Ey(s),a=!o&&Ly(s),l=!o&&/firefox/iu.test(s)&&s.split("rv:").length>1?Number.parseInt(s.split("rv:")[1].split(".")[0],10)>18:!1,c=!o&&(i||l);if(t)return c||!o?jc(e,t,a?"iframe":"embed",n):jc(e,t,"pdfjs",n)}function Gi(e,t=0){const n=We(),r=T(()=>fe(e.width)||"100%"),s=H("auto"),i=a=>{const l=fe(e.height),c=Ay(fe(e.ratio));return l||`${Number(a)/c+fe(t)}px`},o=()=>{n.value&&(s.value=i(n.value.offsetWidth))};return Se(()=>{o(),De(t)&&he(t,o),$e("orientationchange",o),$e("resize",o)}),{el:n,width:r,height:s,resize:o}}function Ay(e){if(typeof e=="string"){const[t,n]=e.split(":"),r=Number(t)/Number(n);if(!Number.isNaN(r))return r}return typeof e=="number"?e:16/9}const Vy=z({__name:"PDFViewer",props:{page:{},noToolbar:{type:Boolean},zoom:{},src:{},title:{},width:{},height:{},ratio:{}},setup(e,{expose:t}){t();const n=e,r=Ai(n),{el:s,width:i,height:o,resize:a}=Gi(r);Se(()=>{s.value&&(My(s.value,n.src,{page:n.page,zoom:n.zoom,noToolbar:n.noToolbar}),a())});const l={props:n,options:r,el:s,width:i,height:o,resize:a};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}});function $y(e,t,n,r,s,i){return _(),x("div",{ref:"el",class:"pdf-viewer-wrapper",style:we({width:r.width,height:r.height})},null,4)}const By=G(Vy,[["render",$y],["__file","PDFViewer.vue"]]),Ry="accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture",Dy=z({__name:"Bilibili",props:{src:{},title:{},width:{},height:{},ratio:{}},setup(e,{expose:t}){t();const n=e,r=Ai(n),{el:s,width:i,height:o,resize:a}=Gi(r);function l(){a()}const c={props:n,IFRAME_ALLOW:Ry,options:r,el:s,width:i,height:o,resize:a,onLoad:l};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}}),Ny=["src","title"];function Hy(e,t,n,r,s,i){const o=ze("ClientOnly");return _(),q(o,null,{default:$(()=>[S("iframe",{ref:"el",class:"video_bilibili_iframe",src:n.src,title:n.title||"Bilibili",style:we({width:r.width,height:r.height}),allow:r.IFRAME_ALLOW,onLoad:r.onLoad},null,44,Ny)]),_:1})}const jy=G(Dy,[["render",Hy],["__file","Bilibili.vue"]]),Fy="accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture",zy=z({__name:"Youtube",props:{src:{},title:{},width:{},height:{},ratio:{}},setup(e,{expose:t}){t();const n=e,r=Ai(n),{el:s,width:i,height:o,resize:a}=Gi(r),l={props:n,IFRAME_ALLOW:Fy,options:r,el:s,width:i,height:o,resize:a};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),Gy=["src","title"];function Wy(e,t,n,r,s,i){const o=ze("ClientOnly");return _(),q(o,null,{default:$(()=>[S("iframe",{ref:"el",class:"video-youtube-iframe",src:n.src,title:n.title||"Youtube",style:we({width:r.width,height:r.height}),allow:r.IFRAME_ALLOW,onLoad:t[0]||(t[0]=(...a)=>r.resize&&r.resize(...a))},null,44,Gy)]),_:1})}const Uy=G(zy,[["render",Wy],["__file","Youtube.vue"]]),qy=z({__name:"Loading",props:{absolute:{type:Boolean},height:{}},setup(e,{expose:t}){t();const n={};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}});function Yy(e,t,n,r,s,i){return _(),x("div",{class:te(["md-power-loading",{absolute:n.absolute}]),style:we({height:n.height})},t[0]||(t[0]=[S("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},[S("path",{fill:"none",stroke:"currentColor","stroke-dasharray":"15","stroke-dashoffset":"15","stroke-linecap":"round","stroke-width":"2",d:"M12 3C16.9706 3 21 7.02944 21 12"},[S("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),S("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})])],-1)]),6)}const Ja=G(qy,[["render",Yy],["__file","Loading.vue"]]),Fc="https://replit.com/",Ky=z({__name:"Replit",props:{title:{},source:{},theme:{},width:{},height:{},ratio:{}},setup(e,{expose:t}){t();const n=e,r=At(),s=H("47px"),i=H(!1),o=T(()=>r==null?void 0:r.appContext.config.globalProperties.$isDark.value),a=T(()=>{const u=new URL(`/${n.source}`,Fc);u.searchParams.set("embed","true");const d=n.theme||(o.value?"dark":"light");return u.searchParams.set("theme",d),u.toString()});function l(){i.value=!0,s.value=n.height||"450px"}const c={props:n,current:r,height:s,loaded:i,REPLIT_LINK:Fc,isDark:o,link:a,onload:l,Loading:Ja};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}}),Xy=["src","title"];function Zy(e,t,n,r,s,i){const o=ze("ClientOnly");return _(),q(o,null,{default:$(()=>[S("iframe",{class:"replit-iframe-wrapper",src:r.link,title:n.title||"Replit",style:we({width:n.width,height:r.height}),allowtransparency:"true",allowfullscree:"true",onLoad:r.onload},null,44,Xy),r.loaded?B("",!0):(_(),q(r.Loading,{key:0}))]),_:1})}const Jy=G(Ky,[["render",Zy],["__file","Replit.vue"]]),zc="https://codesandbox.io/embed/",Gc="https://codesandbox.io/p/sandbox/",Qy="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking",eb="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts",tb=z({__name:"CodeSandbox",props:{user:{},id:{},layout:{},type:{},title:{},filepath:{},navbar:{type:Boolean},console:{type:Boolean},width:{},height:{},ratio:{}},setup(e,{expose:t}){t();const n=e,r=T(()=>{const i=new URLSearchParams;n.filepath&&i.set(n.type==="embed"?"module":"file",encodeURIComponent(n.filepath)),n.type==="embed"?(i.set("view",n.layout?n.layout.replace(/,/g,"+"):"Editor+Preview"),n.console&&i.set("expanddevtools","1"),n.navbar===!1&&i.set("hidenavigation","1")):i.set("from-embed","");const o=n.type==="embed"?zc:Gc,a=n.type!=="embed"&&n.user?`${n.user}-${n.id}`:n.id;return`${o}${a}?${i.toString()}`}),s={props:n,EMBED_LINK:zc,SHARE_LINK:Gc,ALLOW:Qy,SANDBOX:eb,source:r};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),nb=["src","title"],rb={key:1},sb=["href","aria-label"];function ib(e,t,n,r,s,i){const o=ze("ClientOnly");return n.type==="embed"?(_(),q(o,{key:0},{default:$(()=>[S("iframe",{src:r.source,class:"code-sandbox-iframe",title:n.title||"CodeSandbox",allow:r.ALLOW,sandbox:r.SANDBOX,style:we({width:n.width,height:n.height})},null,12,nb)]),_:1})):(_(),x("p",rb,[S("a",{class:"code-sandbox-link no-icon",href:r.source,target:"_blank",rel:"noopener noreferrer","aria-label":n.title||"CodeSandbox"},t[0]||(t[0]=[Xv('',1)]),8,sb)]))}const ob=G(tb,[["render",ib],["__file","CodeSandbox.vue"]]),ab=z({__name:"Plot",props:{mask:{},color:{},trigger:{}},setup(e,{expose:t}){t();const n=e,r=Is(),s=T(()=>{const d={};return{trigger:n.trigger||r.value.plotTrigger||d.trigger||"hover",color:n.color||d.color,mask:n.mask||d.mask}}),i=T(()=>{const d=s.value;if(!d.color&&!d.mask)return{};const f={};return d.color&&(typeof d.color=="string"?f["--vp-c-plot-light"]=d.color:(f["--vp-c-plot-light"]=d.color.light,f["--vp-c-plot-dark"]=d.color.dark)),d.mask&&(typeof d.mask=="string"?f["--vp-c-bg-plot-light"]=d.mask:(f["--vp-c-bg-plot-light"]=d.mask.light,f["--vp-c-bg-plot-dark"]=d.mask.dark)),f}),o=It("(max-width: 768px)"),a=H(!1),l=We();Ka(l,()=>{(s.value.trigger==="click"||o.value)&&(a.value=!1)});function c(){(n.trigger==="click"||o.value)&&(a.value=!a.value)}const u={props:n,matter:r,options:s,styles:i,isMobile:o,active:a,el:l,onClick:c};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}});function lb(e,t,n,r,s,i){return _(),x("span",{ref:"el",class:te(["vp-plot",{hover:r.options.trigger!=="click",active:r.active}]),style:we(r.styles),onClick:r.onClick},[I(e.$slots,"default")],6)}const cb=G(ab,[["render",lb],["__file","Plot.vue"]]);var Wc={get:async(e,t)=>{const n=new URL(e);if(t)for(const[s,i]of Object.entries(t))n.searchParams.append(s,i);return await(await fetch(n.toString())).json()},post:async(e,t)=>await(await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:t?JSON.stringify(t):void 0})).json()};function ub(e){return new Promise(t=>{setTimeout(t,e)})}var db="wss://play.rust-lang.org/websocket",Xn={connected:"websocket/connected",request:"output/execute/wsExecuteRequest",execute:{begin:"output/execute/wsExecuteBegin",stderr:"output/execute/wsExecuteStderr",stdout:"output/execute/wsExecuteStdout",end:"output/execute/wsExecuteEnd"}},Fe=null,xo=!1,da=0;function fb(){return xo?Promise.resolve():(Fe=new WebSocket(db),da=0,Fe.addEventListener("open",()=>{xo=!0,Cp(Xn.connected,{iAcceptThisIsAnUnsupportedApi:!0},{websocket:!0,sequenceNumber:da})}),Fe.addEventListener("close",()=>{xo=!1,Fe=null}),Zt(()=>Fe==null?void 0:Fe.close()),new Promise(e=>{function t(n){JSON.parse(n.data).type===Xn.connected&&(Fe==null||Fe.removeEventListener("message",t),e())}Fe==null||Fe.addEventListener("message",t)}))}function Cp(e,t,n){const r={type:e,meta:n,payload:t};Fe==null||Fe.send(JSON.stringify(r))}async function pb(e,{onEnd:t,onError:n,onStderr:r,onStdout:s,onBegin:i}){await fb();const o={sequenceNumber:da++},a={backtrace:!1,channel:"stable",crateType:"bin",edition:"2021",mode:"release",tests:!1,code:e};Cp(Xn.request,a,o);let l="",c="";function u(d){const f=JSON.parse(d.data),{type:p,payload:h,meta:v={}}=f;if(v.sequenceNumber===o.sequenceNumber){if(p===Xn.execute.begin&&(i==null||i()),p===Xn.execute.stdout&&(l+=h,l.endsWith(` +`)&&(s==null||s(l),l="")),p===Xn.execute.stderr&&(c+=h,c.endsWith(` +`))){if(c.startsWith("error:")){const y=c.indexOf(` +`);r==null||r(c.slice(0,y)),r==null||r(c.slice(y+1))}else r==null||r(c);c=""}p===Xn.execute.end&&(h.success===!1&&(n==null||n(h.exitDetail)),Fe==null||Fe.removeEventListener("message",u),t==null||t())}}Fe==null||Fe.addEventListener("message",u)}var hb=[".diff.remove",".vp-copy-ignore"],mb=/language-(\w+)/,Uc={go:"https://api.pengzhanbo.cn/repl/golang/run",kotlin:"https://api.pengzhanbo.cn/repl/kotlin/run"},vb={kt:"kotlin",kotlin:"kotlin",go:"go",rust:"rust",rs:"rust"},gb=["kotlin","go","rust"];function _b(e){return e?vb[e]||e:""}function yb(e){const t=e.cloneNode(!0);return t.querySelectorAll(hb.join(",")).forEach(n=>n.remove()),t.textContent||""}function qc(e){var i;const t=e.querySelector("div[class*=language-]"),n=(i=t==null?void 0:t.className.match(mb))==null?void 0:i[1],r=t==null?void 0:t.querySelector("pre");let s="";return r&&(s=yb(r)),{lang:_b(n),code:s}}function bb(e){const t=H(),n=H(!0),r=H(!0),s=H(!0),i=H([]),o=H([]),a=H(""),l=H("");Se(()=>{if(e.value){const v=qc(e.value);t.value=v.lang}});const c={kotlin:p,go:f,rust:h};function u(){n.value=!1,s.value=!1,i.value=[],o.value=[],a.value="",r.value=!0,l.value=""}async function d(){var y;if(!e.value||!n.value)return;const v=qc(e.value);t.value=v.lang,!(!t.value||!v.code||!gb.includes(t.value))&&(r.value&&(r.value=!1),n.value=!1,s.value=!1,i.value=[],o.value=[],a.value="",await((y=c[t.value])==null?void 0:y.call(c,v.code)))}async function f(v){const y=await Wc.post(Uc.go,{code:v});if(l.value=`v${y.version}`,n.value=!0,y.error){a.value=y.error,s.value=!0;return}const b=y.events||[];for(const g of b)g.kind==="stdout"?(g.delay&&await ub(g.delay/1e6),i.value.push(g.message)):g.kind==="stderr"&&o.value.push(g.message);s.value=!0}async function p(v){const y="File.kt",b=await Wc.post(Uc.kotlin,{args:"",files:[{name:y,publicId:"",text:v}]});if(l.value=`v${b.version}`,n.value=!0,b.errors){const g=Array.isArray(b.errors[y])?b.errors[y]:[b.errors[y]];g.length&&g.forEach(({message:m,severity:w})=>w==="ERROR"&&o.value.push(m))}i.value.push(b.text),s.value=!0}async function h(v){await pb(v,{onBegin:()=>{n.value=!0,s.value=!1,i.value=[],o.value=[],a.value="",l.value="release"},onError(y){a.value=y},onStdout(y){i.value.push(y)},onStderr(y){o.value.push(y)},onEnd:()=>{s.value=!0}})}return{onRunCode:d,onCleanRun:u,lang:t,backendVersion:l,firstRun:r,stderr:o,stdout:i,loaded:n,finished:s,error:a}}const wb={},Sb={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"};function xb(e,t){return _(),x("svg",Sb,t[0]||(t[0]=[S("path",{fill:"currentColor",d:"M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6z"},null,-1)]))}const Pb=G(wb,[["render",xb],["__file","IconClose.vue"]]),kb={},Tb={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"};function Cb(e,t){return _(),x("svg",Tb,t[0]||(t[0]=[S("path",{fill:"currentColor",d:"M20 19V7H4v12zm0-16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-7 14v-2h5v2zm-3.42-4L5.57 9H8.4l3.3 3.3c.39.39.39 1.03 0 1.42L8.42 17H5.59z"},null,-1)]))}const Eb=G(kb,[["render",Cb],["__file","IconConsole.vue"]]),Lb={},Ob={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"};function Ib(e,t){return _(),x("svg",Ob,t[0]||(t[0]=[S("path",{fill:"currentColor",d:"M21.409 9.353a2.998 2.998 0 0 1 0 5.294L8.597 21.614C6.534 22.737 4 21.277 4 18.968V5.033c0-2.31 2.534-3.769 4.597-2.648z"},null,-1)]))}const Mb=G(Lb,[["render",Ib],["__file","IconRun.vue"]]),Ab=z({__name:"CodeRepl",props:{editable:{type:Boolean},title:{}},setup(e,{expose:t}){t();const n=$i(()=>nt(()=>import("./CodeEditor-DRQb67VB.js"),[])),r=We(null),s=We(null),{onRunCode:i,onCleanRun:o,firstRun:a,stderr:l,stdout:c,error:u,loaded:d,finished:f,lang:p,backendVersion:h}=bb(r);function v(){var b,g;i(),s.value&&((g=(b=s.value).scrollIntoView)==null||g.call(b,{behavior:"smooth",block:"center"}))}const y={Editor:n,replEl:r,outputEl:s,onRunCode:i,onCleanRun:o,firstRun:a,stderr:l,stdout:c,error:u,loaded:d,finished:f,lang:p,backendVersion:h,runCode:v,IconClose:Pb,IconConsole:Eb,IconRun:Mb,Loading:Ja};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),Vb={ref:"replEl",class:"code-repl"},$b={class:"code-repl-title"},Bb={ref:"outputEl",class:"code-repl-pin"},Rb={key:2,class:"code-repl-output"},Db={class:"output-head"},Nb={key:0,class:"output-version"},Hb={key:0,class:"output-content"},jb={key:0,class:"error"},Fb={key:1,class:"stderr"},zb={key:2,class:"stdout"},Gb={key:0};function Wb(e,t,n,r,s,i){return _(),x("div",Vb,[S("div",$b,[S("h4",null,F(n.title),1),nr(S("span",{class:"icon-run",title:"Run Code",onClick:r.runCode},[j(r.IconRun)],512),[[Cr,r.loaded&&r.finished]])]),n.editable?(_(),q(r.Editor,{key:0},{default:$(()=>[I(e.$slots,"default",{},void 0,!0)]),_:3})):I(e.$slots,"default",{key:1},void 0,!0),S("div",Bb,null,512),r.firstRun?B("",!0):(_(),x("div",Rb,[S("div",Db,[j(r.IconConsole,{class:"icon-console"}),t[0]||(t[0]=S("span",{class:"title"},"console",-1)),r.lang&&r.backendVersion?(_(),x("span",Nb,[Le(" Running on: "+F(r.lang)+" ",1),S("i",null,F(r.backendVersion),1)])):B("",!0),j(r.IconClose,{class:"icon-close",onClick:r.onCleanRun},null,8,["onClick"])]),r.loaded?(_(),x("div",{key:1,class:te(["output-content",r.lang])},[r.error?(_(),x("p",jb,F(r.error),1)):B("",!0),r.stderr.length?(_(),x("div",Fb,[t[1]||(t[1]=S("h4",null,"Stderr:",-1)),(_(!0),x(ne,null,_e(r.stderr,(o,a)=>(_(),x("pre",{key:a,class:te({error:r.lang==="rust"&&o.startsWith("error")})},F(o),3))),128))])):B("",!0),r.stdout.length?(_(),x("div",zb,[r.stderr.length?(_(),x("h4",Gb," Stdout: ")):B("",!0),(_(!0),x(ne,null,_e(r.stdout,(o,a)=>(_(),x("pre",{key:a},F(o),1))),128))])):B("",!0)],2)):(_(),x("div",Hb,[j(r.Loading)]))]))],512)}const Ub=G(Ab,[["render",Wb],["__scopeId","data-v-4138521d"],["__file","CodeRepl.vue"]]),Yc="https://caniuse.pengzhanbo.cn/",qb=z({__name:"CanIUse",props:{feature:{},past:{default:"2"},future:{default:"1"},meta:{default:""}},setup(e,{expose:t}){t();const n=e,r=At(),s=H("330px"),i=T(()=>r==null?void 0:r.appContext.config.globalProperties.$isDark.value),o=T(()=>`${Yc}${n.feature}#past=${n.past}&future=${n.future}&meta=${n.meta}&theme=${i.value?"dark":"light"}`);$e("message",c=>{const u=a(c.data),{type:d,payload:f}=u;d==="ciu_embed"&&f&&f.feature===n.feature&&f.meta===n.meta&&(s.value=`${Math.ceil(f.height)}px`)});function a(c){if(typeof c=="string")try{return JSON.parse(c)}catch{return{type:""}}return c}const l={props:n,url:Yc,current:r,height:s,isDark:i,source:o,parseData:a};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),Yb=["data-feature","data-meta","data-past","data-future"],Kb=["src","title"];function Xb(e,t,n,r,s,i){return _(),x("div",{class:"ciu_embed","data-feature":n.feature,"data-meta":n.meta,"data-past":n.past,"data-future":n.future},[S("iframe",{src:r.source,style:we({height:r.height}),title:`Can I use ${n.feature}`},null,12,Kb)],8,Yb)}const Zb=G(qb,[["render",Xb],["__file","CanIUse.vue"]]),Jb=z({__name:"FileTreeItem",props:{type:{},expanded:{type:Boolean},empty:{type:Boolean}},setup(e,{expose:t}){t();const n=e,r=H(!!n.expanded),s=H();function i(a){const l=a.target;l.matches(".comment")||a.currentTarget===l||(r.value=!r.value)}Se(()=>{var a;!s.value||n.type!=="folder"||(a=s.value.querySelector(".tree-node.folder"))==null||a.addEventListener("click",i)}),Mt(()=>{var a;!s.value||n.type!=="folder"||(a=s.value.querySelector(".tree-node.folder"))==null||a.removeEventListener("click",i)});const o={props:n,active:r,el:s,toggle:i};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),Qb={key:0};function e2(e,t,n,r,s,i){return _(),x("li",{ref:"el",class:te(["file-tree-item",{expanded:r.active}])},[I(e.$slots,"default"),r.props.type==="folder"&&r.props.empty?(_(),x("ul",Qb,t[0]||(t[0]=[S("li",{class:"file-tree-item"},[S("span",{class:"tree-node file"},[S("span",{class:"name"},"…")])],-1)]))):B("",!0)],2)}const t2=G(Jb,[["render",e2],["__file","FileTreeItem.vue"]]),n2=z({__name:"ArtPlayer",props:{src:{},type:{},width:{},height:{},ratio:{},id:{},poster:{},theme:{},lang:{},volume:{},isLive:{type:Boolean},muted:{type:Boolean},autoplay:{type:Boolean},autoSize:{type:Boolean},autoMini:{type:Boolean},loop:{type:Boolean},flip:{type:Boolean},playbackRate:{type:Boolean},aspectRatio:{type:Boolean},screenshot:{type:Boolean},setting:{type:Boolean},hotkey:{type:Boolean,default:!0},pip:{type:Boolean},mutex:{type:Boolean,default:!0},backdrop:{type:Boolean},fullscreen:{type:Boolean},fullscreenWeb:{type:Boolean},subtitleOffset:{type:Boolean},miniProgressBar:{type:Boolean},useSSR:{type:Boolean},playsInline:{type:Boolean,default:!0},lock:{type:Boolean},fastForward:{type:Boolean},autoPlayback:{type:Boolean},autoOrientation:{type:Boolean},airplay:{type:Boolean},proxy:{},plugins:{},layers:{},contextmenu:{},controls:{},settings:{},quality:{},highlight:{},thumbnails:{},subtitle:{},moreVideoAttr:{},i18n:{},icons:{},cssVar:{},customType:{}},setup(e,{expose:t}){t();const n=e,r=H(!1),s=Nn(),i=_p("--vp-c-brand-1"),{el:o,width:a,height:l,resize:c}=Gi(Ai(n));let u=null;async function d(){if(!o.value)return;r.value=!1;const{default:h}=await nt(async()=>{const{default:k}=await import("./artplayer-CNWhCQhE.js").then(L=>L.a);return{default:k}},[]);r.value=!0;const{src:v,type:y,width:b,height:g,ratio:m,...w}=n,{customType:C={},...A}=w;Object.keys(A).forEach(k=>{typeof A[k]>"u"&&delete A[k]});const O=n.type??v.split(".").pop()??"",D=bt(v)?v:ft(v);if(!Cy.includes(O)){console.error(`Unsupported video type: ${O}`);return}u=new h({container:o.value,url:D,type:O,lang:s.value.split("-")[0]==="zh"?"zh-cn":"en",volume:.75,useSSR:!1,theme:i.value??"#5086a1",...A,customType:{...f(O),...C}})}function f(h){const v={};return(h==="m3u8"||h==="hls")&&(v[h]=async function(y,b,g){if(y.canPlayType("application/x-mpegURL")||y.canPlayType("application/vnd.apple.mpegURL")){y.src=b;return}}),v}Se(async()=>{await d(),c()}),Mt(()=>{u==null||u.destroy(),u=null});const p={props:n,loaded:r,lang:s,brandColor:i,el:o,width:a,height:l,resize:c,get player(){return u},set player(h){u=h},createPlayer:d,initCustomType:f,Loading:Ja};return Object.defineProperty(p,"__isScriptSetup",{enumerable:!1,value:!0}),p}}),r2={class:"vp-artplayer-wrapper"};function s2(e,t,n,r,s,i){return _(),x("div",r2,[S("div",{ref:"el",class:"vp-artplayer",style:we({width:r.width,height:r.height})},null,4),r.loaded?B("",!0):(_(),q(r.Loading,{key:0,absolute:""}))])}const i2=G(n2,[["render",s2],["__file","ArtPlayer.vue"]]);var Kc={"audio/flac":["flac","fla"],"audio/mpeg":["mp3","mpga"],"audio/mp4":["mp4","m4a"],"audio/ogg":["ogg","oga"],"audio/aac":["aac","adts"],"audio/x-ms-wma":["wma"],"audio/x-aiff":["aiff","aif","aifc"],"audio/webm":["webm"]},Ys=[];function o2(e,t={}){let n=null,r=!1;const s=H(!1),i=H(!1),o=H(!0),a=H(0),l=H(0),c=H(1);function u(){n=document.createElement("audio"),n.className="audio-player",n.style.display="none",n.preload=t.autoplay?"auto":"none",n.autoplay=t.autoplay??!1,document.body.appendChild(n),Ys.push(n),n.onloadedmetadata=()=>{l.value=n.duration,a.value=n.currentTime,c.value=n.volume,i.value=!0},n.oncanplay=(...y)=>{var b;i.value=!0,r&&(s.value=!0),(b=t.oncanplay)==null||b.bind(n)(...y)},n.onplay=(...y)=>{var b;o.value=!1,(b=t.onplay)==null||b.bind(n)(...y)},n.onpause=(...y)=>{var b;o.value=!0,(b=t.onpause)==null||b.bind(n)(...y)},n.ontimeupdate=()=>{var y,b;if(h(n.duration)){const g=p();g<=n.duration&&((y=t.ontimeupdate)==null||y.bind(n)(g),a.value=g,(b=t.onprogress)==null||b.bind(n)(g,n.duration))}},n.onvolumechange=()=>{var y;c.value=n.volume,(y=t.onvolume)==null||y.bind(n)(n.volume)},n.onended=(...y)=>{var b;o.value=!0,(b=t.onend)==null||b.bind(n)(...y)},n.onplaying=t.onplaying,n.onload=t.onload,n.onerror=t.onerror,n.onseeked=t.onseeked,n.oncanplaythrough=t.oncanplaythrough,n.onwaiting=t.onwaiting,s.value=d(),n.src=fe(e),n.load()}function d(){if(!n)return!1;let y=fe(t.type);if(!y){const g=fe(e).split(".").pop()||"";y=Object.keys(Kc).filter(m=>Kc[m].includes(g))[0]}if(!y)return r=!0,!1;const b=n.canPlayType(y)!=="";return b||console.warn(`The specified type "${y}" is not supported by the browser.`),b}function f(){if(!n)return[];const y=[],b=n.buffered||[],g=0;for(let m=0,w=b.length;mm.startn.currentTime);return b?b.end:y[y.length-1].end}function h(y){return!!(y&&!Number.isNaN(y)&&y!==Number.POSITIVE_INFINITY&&y!==Number.NEGATIVE_INFINITY)}function v(){n==null||n.pause(),n==null||n.remove(),Ys.splice(Ys.indexOf(n),1),n=null}return Se(()=>{u(),he([e,t.type],()=>{v(),i.value=!1,o.value=!0,a.value=0,l.value=0,u()})}),Mt(()=>v()),{isSupported:s,paused:o,loaded:i,currentTime:a,duration:l,player:n,destroy:v,play:()=>{if(t.mutex??!0)for(const y of Ys)y!==n&&y.pause();n==null||n.play()},pause:()=>n==null?void 0:n.pause(),seek(y){n&&(n.currentTime=y)},setVolume(y){n&&(n.volume=Math.min(1,Math.max(0,y)))}}}const a2=z({__name:"AudioReader",props:{src:{},autoplay:{type:Boolean},type:{},volume:{},startTime:{},endTime:{}},setup(e,{expose:t}){t();const n=e,{paused:r,play:s,pause:i,seek:o,setVolume:a}=o2(Ot(()=>n.src),{type:Ot(()=>n.type||""),autoplay:n.autoplay,oncanplay:()=>{n.startTime&&o(n.startTime)},ontimeupdate:f=>{n.endTime&&f>=n.endTime&&(i(),n.startTime&&o(n.startTime))}}),l=W0(300,{controls:!0,immediate:!1});he(r,()=>{r.value&&l.pause()});function c(f){return r.value||l.counter.value%3>=f?1:0}function u(){r.value?(s(),l.reset(),l.resume()):i()}Se(()=>{he(()=>n.volume,f=>{typeof f<"u"&&a(f)},{immediate:!0})});const d={props:n,paused:r,play:s,pause:i,seek:o,setVolume:a,interval:l,opacity:c,toggle:u};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),l2={class:"icon-audio"},c2={fill:"currentcolor",width:"16",height:"16",viewBox:"0 0 54 54",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},u2={stroke:"none","stroke-width":"1","fill-rule":"evenodd"};function d2(e,t,n,r,s,i){return _(),x("span",{class:"vp-audio-reader",onClick:r.toggle},[I(e.$slots,"default"),S("span",l2,[(_(),x("svg",c2,[S("g",u2,[t[0]||(t[0]=S("path",{d:"M24.1538 5.86289C24.8505 5.23954 25.738 4.95724 26.6005 5.00519C27.463 5.05313 28.3137 5.43204 28.9371 6.12878C29.4928 6.74989 29.8 7.55405 29.8 8.38746V46.28C29.8 47.2149 29.4186 48.0645 28.8078 48.6754C28.197 49.2862 27.3474 49.6675 26.4125 49.6675C25.5843 49.6675 24.7848 49.3641 24.1651 48.8147L13.0526 38.9618C12.5285 38.4971 11.8523 38.2405 11.1518 38.2405H5.3875C4.45261 38.2405 3.603 37.8591 2.99218 37.2483C2.38135 36.6375 2 35.7879 2 34.853V19.7719C2 18.837 2.38135 17.9874 2.99218 17.3766C3.603 16.7658 4.45262 16.3844 5.3875 16.3844H11.2991C12.004 16.3844 12.6841 16.1246 13.2095 15.6546L24.1538 5.86289ZM25.8 9.75731L15.8766 18.6356C14.6178 19.7618 12.9881 20.3844 11.2991 20.3844H6V34.2405H11.1518C12.8302 34.2405 14.4505 34.8553 15.7064 35.9688L25.8 44.9184V9.75731Z"},null,-1)),S("path",{style:we({opacity:r.opacity(1)}),d:"M38.1519 17.8402L36.992 16.2108L33.7333 18.5304L34.8931 20.1598C36.2942 22.1281 37.1487 24.6457 37.1487 27.4131C37.1487 30.1933 36.2862 32.7214 34.8736 34.6937L33.709 36.3197L36.9609 38.6488L38.1255 37.0229C40.0285 34.366 41.1487 31.0221 41.1487 27.4131C41.1487 23.8207 40.0388 20.4911 38.1519 17.8402Z"},null,4),S("path",{style:we({opacity:r.opacity(2)}),d:"M43.617 8.17398L44.9714 9.64556C49.0913 14.1219 51.6179 20.3637 51.6179 27.2257C51.6179 34.0838 49.0943 40.3223 44.9787 44.798L43.6249 46.2702L40.6805 43.5627L42.0343 42.0905C45.4542 38.3714 47.6179 33.1061 47.6179 27.2257C47.6179 21.3419 45.4516 16.0739 42.0282 12.3544L40.6738 10.8828L43.617 8.17398Z"},null,4)])]))])])}const f2=G(a2,[["render",d2],["__file","AudioReader.vue"]]);function Ep(e=!0){const t=H(e);function n(){t.value=!t.value}return[t,n]}function p2(e,t){const n=T(()=>{const o=fe(t);return o?[{name:"JavaScript",items:o.jsLib.map(a=>({name:r(a),url:a}))},{name:"CSS",items:o.cssLib.map(a=>({name:r(a),url:a}))}].filter(a=>a.items.length):[]});function r(o){return o.slice(o.lastIndexOf("/")+1)}const s=H(!1);function i(){s.value=!s.value}return Ka(e,()=>{s.value=!1}),{resources:n,showResources:s,toggleResources:i}}function h2(e,t){const n=H({js:"",css:"",html:"",jsType:"",cssType:""});return Se(()=>{var i,o;if(!e.value)return;const r=fe(t);n.value.html=(r==null?void 0:r.html)??"";const s=Array.from(e.value.querySelectorAll('div[class*="language-"]'));for(const a of s){const l=((i=a.className.match(/language-(\w+)/))==null?void 0:i[1])??"",c=((o=a.querySelector("pre"))==null?void 0:o.textContent)??"";(l==="js"||l==="javascript")&&(n.value.js=c,n.value.jsType="js"),(l==="ts"||l==="typescript")&&(n.value.js=c,n.value.jsType="ts"),(l==="css"||l==="scss"||l==="less"||l==="stylus"||l==="styl")&&(n.value.css=c,n.value.cssType=l==="styl"?"stylus":l)}}),n}function m2(e,t,n){const r=At(),s=Hd(),i=T(()=>r==null?void 0:r.appContext.config.globalProperties.$isDark.value),o=H("100px");return Se(()=>{var c;if(!e.value)return;const a=e.value.contentDocument||((c=e.value.contentWindow)==null?void 0:c.document);if(!a)return;const l=`VPDemoNormalDraw${s}`;$e("message",u=>{const d=g2(u.data);d.type===l&&(o.value=`${d.height+5}px`)}),he([n,t],()=>{a.write(v2(fe(t)||"Demo",l,fe(n)))},{immediate:!0}),he(i,()=>{a.documentElement.dataset.theme=i.value?"dark":"light"},{immediate:!0})}),{id:s,height:o}}function v2(e,t,n){const{cssLib:r=[],jsLib:s=[],html:i,css:o,script:a}=n||{},l=r.map(u=>``).join(""),c=s.map(u=>`归档 | upcloudrabbit blog
Skip to content

归档

2025 4 篇

upcloudrabbit blog

upcloudrabbit blog

some descriptions

Power by upcloudrabbiit

\ No newline at end of file diff --git a/blog/categories/index.html b/blog/categories/index.html new file mode 100644 index 0000000..62ddf4b --- /dev/null +++ b/blog/categories/index.html @@ -0,0 +1 @@ +分类 | upcloudrabbit blog
Skip to content

upcloudrabbit blog

upcloudrabbit blog

some descriptions

Power by upcloudrabbiit

\ No newline at end of file diff --git a/blog/index.html b/blog/index.html new file mode 100644 index 0000000..32a1806 --- /dev/null +++ b/blog/index.html @@ -0,0 +1 @@ +博客 | upcloudrabbit blog
Skip to content

upcloudrabbit blog

upcloudrabbit blog

some descriptions

Power by upcloudrabbiit

\ No newline at end of file diff --git a/blog/tags/index.html b/blog/tags/index.html new file mode 100644 index 0000000..f89d525 --- /dev/null +++ b/blog/tags/index.html @@ -0,0 +1 @@ +标签 | upcloudrabbit blog
Skip to content

标签

markdown1

预览1

组件1

upcloudrabbit blog

upcloudrabbit blog

some descriptions

Power by upcloudrabbiit

\ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..d553c50 --- /dev/null +++ b/index.html @@ -0,0 +1,8 @@ +lhc-s-blog | upcloudrabbit blog
Skip to content

lhc-s-blog

约 259 字小于 1 分钟

贡献者: upcloudrabbit

Power by upcloudrabbiit

\ No newline at end of file diff --git a/plume.svg b/plume.svg new file mode 100644 index 0000000..62ee70c --- /dev/null +++ b/plume.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..36cfb01 --- /dev/null +++ b/robots.txt @@ -0,0 +1,3 @@ + +User-agent:* +Disallow: diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..fa63fbe --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,3 @@ + + +https://upcloudrabbit.github.com/2025-02-10T14:43:32.000Zdailyhttps://upcloudrabbit.github.com/article/zpa70dxk/2025-02-10T14:43:32.000Zdailyhttps://upcloudrabbit.github.com/article/bdav8vie/2025-02-10T14:43:32.000Zdailyhttps://upcloudrabbit.github.com/article/j6n6sw4o/2025-02-10T14:43:32.000Zdailyhttps://upcloudrabbit.github.com/article/bds6nvb2/2025-02-10T14:43:32.000Zdailyhttps://upcloudrabbit.github.com/blog/dailyhttps://upcloudrabbit.github.com/blog/tags/dailyhttps://upcloudrabbit.github.com/blog/archives/dailyhttps://upcloudrabbit.github.com/blog/categories/daily \ No newline at end of file diff --git a/sitemap.xsl b/sitemap.xsl new file mode 100644 index 0000000..a76881a --- /dev/null +++ b/sitemap.xsl @@ -0,0 +1,207 @@ + + + + + + + XML Sitemap + + + + + +
+

Sitemap

+ + + + + + + + + + + + + + + + + + + + + +
+ + PriorityChange FrequencyLast Updated Time
+ + + + + + + + + + + + + 0.5 + + + + + + + + + - + + + + +
+
+ + + +
+