diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index b6f2e2beb8121398afb93718eebbb9331f967f47..0000000000000000000000000000000000000000 --- a/.gitattributes +++ /dev/null @@ -1,97 +0,0 @@ -data/.cache/lilac/concept/lilac/negative-sentiment/cohere.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/positive-sentiment/cohere.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/profanity/cohere.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/profanity/gte-base.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/profanity/gte-small.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/profanity/openai.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/profanity/palm.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/profanity/sbert.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/toxicity/cohere.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/toxicity/gte-base.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/toxicity/gte-small.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/toxicity/openai.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/toxicity/palm.pkl filter=lfs diff=lfs merge=lfs -text -data/.cache/lilac/concept/lilac/toxicity/sbert.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/piqa/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/piqa/goal/gte-small/hnsw.hnswlib.bin filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/piqa/goal/gte-small/hnsw.lookup.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/piqa/goal/gte-small/spans.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/piqa/sol1/gte-small/hnsw.hnswlib.bin filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/piqa/sol1/gte-small/hnsw.lookup.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/piqa/sol1/gte-small/spans.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/piqa/sol2/gte-small/hnsw.hnswlib.bin filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/piqa/sol2/gte-small/hnsw.lookup.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/piqa/sol2/gte-small/spans.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/pile-of-law-atticus-contracts/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/choices/gte-small/hnsw.hnswlib.bin filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/choices/gte-small/hnsw.lookup.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/choices/gte-small/spans.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/choices/lang_detection/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/choices/near_dup/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/choices/pii/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/choices/text_statistics/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/question/gte-small/hnsw.hnswlib.bin filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/question/gte-small/hnsw.lookup.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/question/gte-small/spans.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/question/lang_detection/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/question/near_dup/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/question/pii/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/mmlu_professional_law/question/text_statistics/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/pile-of-law-r-legaladvice/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/hnsw.hnswlib.bin filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/hnsw.lookup.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/spans.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/pile-of-law-r-legaladvice/text/lang_detection/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/pile-of-law-r-legaladvice/text/near_dup/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/pile-of-law-r-legaladvice/text/pii/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/pile-of-law-r-legaladvice/text/text_statistics/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/open-asssistant-conversations/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/open-asssistant-conversations/text/gte-small/hnsw.hnswlib.bin filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/open-asssistant-conversations/text/gte-small/hnsw.lookup.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/open-asssistant-conversations/text/gte-small/spans.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/open-asssistant-conversations/text/lang_detection/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/open-asssistant-conversations/text/near_dup/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/open-asssistant-conversations/text/pii/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/open-asssistant-conversations/text/text_statistics/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/answers/text/lang_detection/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/answers/text/near_dup/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/answers/text/pii/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/answers/text/text_statistics/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/context/gte-small/hnsw.hnswlib.bin filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/context/gte-small/hnsw.lookup.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/context/gte-small/spans.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/context/lang_detection/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/context/near_dup/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/context/pii/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/context/text_statistics/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/question/lang_detection/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/question/near_dup/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/question/pii/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/squad_v2/question/text_statistics/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/imdb/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/imdb/text/gte-small/hnsw.hnswlib.bin filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/imdb/text/gte-small/hnsw.lookup.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/imdb/text/gte-small/spans.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/imdb/text/lang_detection/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/imdb/text/near_dup/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/imdb/text/pii/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/imdb/text/text_statistics/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/databricks-dolly-15k-curated-en/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/wikitext-2-raw-v1/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/hnsw.hnswlib.bin filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/hnsw.lookup.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/spans.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/wikitext-2-raw-v1/text/lang_detection/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/wikitext-2-raw-v1/text/near_dup/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/wikitext-2-raw-v1/text/pii/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/wikitext-2-raw-v1/text/text_statistics/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/medical_dialog/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/hnsw.hnswlib.bin filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/hnsw.lookup.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/spans.pkl filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/medical_dialog/dialogue_turns/utterance/lang_detection/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/medical_dialog/dialogue_turns/utterance/near_dup/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/medical_dialog/dialogue_turns/utterance/pii/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text -data/datasets/lilac/medical_dialog/dialogue_turns/utterance/text_statistics/data-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text diff --git a/data/.cache/lilac/concept/lilac/legal-termination/cohere.pkl b/data/.cache/lilac/concept/lilac/legal-termination/cohere.pkl deleted file mode 100644 index 46223ca89f21a10e97d6832f0c9cc99e4bfd1512..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/legal-termination/cohere.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/legal-termination/gte-base.pkl b/data/.cache/lilac/concept/lilac/legal-termination/gte-base.pkl deleted file mode 100644 index 33db9f08e220c2c98be7de4868b0152d1cddde69..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/legal-termination/gte-base.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/legal-termination/gte-small.pkl b/data/.cache/lilac/concept/lilac/legal-termination/gte-small.pkl deleted file mode 100644 index 3b7900c2eedc85659fba12281f3bf495191f482e..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/legal-termination/gte-small.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/legal-termination/openai.pkl b/data/.cache/lilac/concept/lilac/legal-termination/openai.pkl deleted file mode 100644 index 89d4dc40d248fe874172157fc668b3ca590d08ad..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/legal-termination/openai.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/legal-termination/palm.pkl b/data/.cache/lilac/concept/lilac/legal-termination/palm.pkl deleted file mode 100644 index 1d0431007c8d46db70fb7a82cb5cee316468ca0b..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/legal-termination/palm.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/legal-termination/sbert.pkl b/data/.cache/lilac/concept/lilac/legal-termination/sbert.pkl deleted file mode 100644 index b69b4bfdeecd361c0f46a22ed72c1c3060d67639..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/legal-termination/sbert.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/negative-sentiment/cohere.pkl b/data/.cache/lilac/concept/lilac/negative-sentiment/cohere.pkl deleted file mode 100644 index 3fd2c80215b8dabbf4d471abfcfd59439e2a5f85..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/negative-sentiment/cohere.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be0a6613703986f991d3795a6b3cfdccd40b75ce1c6cbf36e852403c8d8a6b7b -size 2088021 diff --git a/data/.cache/lilac/concept/lilac/negative-sentiment/gte-base.pkl b/data/.cache/lilac/concept/lilac/negative-sentiment/gte-base.pkl deleted file mode 100644 index 0c4ad0c1c0d5253af8aa26336b030ec31585cce7..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/negative-sentiment/gte-base.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/negative-sentiment/gte-small.pkl b/data/.cache/lilac/concept/lilac/negative-sentiment/gte-small.pkl deleted file mode 100644 index 71ee18b4d03c41bd71ccf9fafc231f9a9092d6ff..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/negative-sentiment/gte-small.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/negative-sentiment/openai.pkl b/data/.cache/lilac/concept/lilac/negative-sentiment/openai.pkl deleted file mode 100644 index b660406d25013c175c8cb6602003771baf8ed22a..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/negative-sentiment/openai.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/negative-sentiment/palm.pkl b/data/.cache/lilac/concept/lilac/negative-sentiment/palm.pkl deleted file mode 100644 index d4decef51e14385121129e840686e845bd3782f2..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/negative-sentiment/palm.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/negative-sentiment/sbert.pkl b/data/.cache/lilac/concept/lilac/negative-sentiment/sbert.pkl deleted file mode 100644 index 25f8a9cc54ba52f21c17e889066866bf63b5ce2c..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/negative-sentiment/sbert.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/positive-sentiment/cohere.pkl b/data/.cache/lilac/concept/lilac/positive-sentiment/cohere.pkl deleted file mode 100644 index 01db88079f7994909c97ae06dfa67524415afe7d..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/positive-sentiment/cohere.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d654cd9eb459aba5509d6b21d48e2f2560c84457608a0ddefc0d7e26a685b7ef -size 1857652 diff --git a/data/.cache/lilac/concept/lilac/positive-sentiment/gte-base.pkl b/data/.cache/lilac/concept/lilac/positive-sentiment/gte-base.pkl deleted file mode 100644 index b34400213b0f78b7bd5da8c6e4c207addc383ee6..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/positive-sentiment/gte-base.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/positive-sentiment/gte-small.pkl b/data/.cache/lilac/concept/lilac/positive-sentiment/gte-small.pkl deleted file mode 100644 index 77b474ac9dd757b90ceac1f1e8e61880273ea921..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/positive-sentiment/gte-small.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/positive-sentiment/openai.pkl b/data/.cache/lilac/concept/lilac/positive-sentiment/openai.pkl deleted file mode 100644 index ca8eba326e3b4a13f825f950134d70aff252a952..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/positive-sentiment/openai.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/positive-sentiment/palm.pkl b/data/.cache/lilac/concept/lilac/positive-sentiment/palm.pkl deleted file mode 100644 index dfcb603cf03afcf26d2a2ceb8586eb7540dc27cf..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/positive-sentiment/palm.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/positive-sentiment/sbert.pkl b/data/.cache/lilac/concept/lilac/positive-sentiment/sbert.pkl deleted file mode 100644 index 4983617d0078d4aca9143fea9cf18507d621c965..0000000000000000000000000000000000000000 Binary files a/data/.cache/lilac/concept/lilac/positive-sentiment/sbert.pkl and /dev/null differ diff --git a/data/.cache/lilac/concept/lilac/profanity/cohere.pkl b/data/.cache/lilac/concept/lilac/profanity/cohere.pkl deleted file mode 100644 index 8f83eb3e67b36b2aae289c66a94444374da5581e..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/profanity/cohere.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0d68aeb0d88c4a501e21173ed3e5e53fa4998447ece6812d046c1c48b2595739 -size 17413997 diff --git a/data/.cache/lilac/concept/lilac/profanity/gte-base.pkl b/data/.cache/lilac/concept/lilac/profanity/gte-base.pkl deleted file mode 100644 index 1f1c1ea1424b9c3bd4067c1870e594192ef7202d..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/profanity/gte-base.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20c4454090ac980db7f02e5f2ff974b0fe75e26982c40e323891fae4b3785d38 -size 3301326 diff --git a/data/.cache/lilac/concept/lilac/profanity/gte-small.pkl b/data/.cache/lilac/concept/lilac/profanity/gte-small.pkl deleted file mode 100644 index b45d52a7f0d138fcfe22dc9cf19feb559cd7a127..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/profanity/gte-small.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef20b176c6faec04280e7f4fcc5edfd01c8261b4838eab2955885a171e46590d -size 1672960 diff --git a/data/.cache/lilac/concept/lilac/profanity/openai.pkl b/data/.cache/lilac/concept/lilac/profanity/openai.pkl deleted file mode 100644 index 1d253b2297b8d22a559a186208d168d26670d176..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/profanity/openai.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6a8e4c306cbbdbfa1d5dde1504fa67ee8e5ffa02ab77f1e8d06d15b9ea777398 -size 6558076 diff --git a/data/.cache/lilac/concept/lilac/profanity/palm.pkl b/data/.cache/lilac/concept/lilac/profanity/palm.pkl deleted file mode 100644 index 16b265ce399967c601626aa8859d9e562930c5b2..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/profanity/palm.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0450ba56a6af797838a696e5d1046e84dbca2d6c6a00724c3bf403465980b1f5 -size 3301322 diff --git a/data/.cache/lilac/concept/lilac/profanity/sbert.pkl b/data/.cache/lilac/concept/lilac/profanity/sbert.pkl deleted file mode 100644 index bbbe0b2adad2932e5d577f52a7590de02709d469..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/profanity/sbert.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:44f41da69be02fb8ffe4db5d7d16cdd0e8f4357f8147d4259ae5518863577087 -size 1672951 diff --git a/data/.cache/lilac/concept/lilac/toxicity/cohere.pkl b/data/.cache/lilac/concept/lilac/toxicity/cohere.pkl deleted file mode 100644 index 3a019406403f294283a7c0163599a100eee89ec1..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/toxicity/cohere.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8ec3b151a149f0664813f50ba599001bc3a44cc7b6f8c35a48e213ee9c9682fb -size 19602537 diff --git a/data/.cache/lilac/concept/lilac/toxicity/gte-base.pkl b/data/.cache/lilac/concept/lilac/toxicity/gte-base.pkl deleted file mode 100644 index 29bf964eaad364f9bde19551719e408463249a6b..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/toxicity/gte-base.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bd428cfda7f66401cf3b6ec9f1b356c3e0d79ab5bce8675c271e562c24de3580 -size 3719127 diff --git a/data/.cache/lilac/concept/lilac/toxicity/gte-small.pkl b/data/.cache/lilac/concept/lilac/toxicity/gte-small.pkl deleted file mode 100644 index 882f34b47a9cee29cb00b3a0ba1af35626ed48a1..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/toxicity/gte-small.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b9bab578121263c97f51049e82846b7b517b79655bfd9b6ad5fe861dbefd1212 -size 1886446 diff --git a/data/.cache/lilac/concept/lilac/toxicity/openai.pkl b/data/.cache/lilac/concept/lilac/toxicity/openai.pkl deleted file mode 100644 index 05a9cbea3fe133916163c103984ee75851a8a029..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/toxicity/openai.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e9be59c226a117c78c32cdb0f4befaf771b74a7af820af25f86053e1cf80614 -size 7384512 diff --git a/data/.cache/lilac/concept/lilac/toxicity/palm.pkl b/data/.cache/lilac/concept/lilac/toxicity/palm.pkl deleted file mode 100644 index 728b8483d7fd4f12896ebff8f6811f313f3dd249..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/toxicity/palm.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b334cd21b80823eb0b7a6c177ba2f6ed8cadc504b642e7b89481f0e583dcfece -size 3719128 diff --git a/data/.cache/lilac/concept/lilac/toxicity/sbert.pkl b/data/.cache/lilac/concept/lilac/toxicity/sbert.pkl deleted file mode 100644 index 80b65b41c212a1a8f05b78ed2ff1d703acaa0a15..0000000000000000000000000000000000000000 --- a/data/.cache/lilac/concept/lilac/toxicity/sbert.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:64540327c019de743fa40b494f21cf1a5a7b0af80df6243eb44b56cf3810ccbf -size 1886440 diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/config.yml b/data/datasets/lilac/databricks-dolly-15k-curated-en/config.yml deleted file mode 100644 index 1bc623216b054ea5a1230672d4a5c5e6fab11019..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/config.yml +++ /dev/null @@ -1,140 +0,0 @@ -embeddings: -- embedding: gte-small - path: original-context -- embedding: gte-small - path: - - new-context - - value - - '*' -name: databricks-dolly-15k-curated-en -namespace: lilac -settings: - preferred_embedding: gte-small - ui: - media_paths: - - original-instruction - - original-context - - original-response - - - new-instruction - - value - - '*' - - - new-context - - value - - '*' - - - new-response - - value - - '*' -signals: -- path: original-instruction - signal: - signal_name: near_dup -- path: original-instruction - signal: - signal_name: text_statistics -- path: original-instruction - signal: - signal_name: pii -- path: original-instruction - signal: - signal_name: lang_detection -- path: original-context - signal: - signal_name: near_dup -- path: original-context - signal: - signal_name: text_statistics -- path: original-context - signal: - signal_name: lang_detection -- path: original-context - signal: - signal_name: pii -- path: original-response - signal: - signal_name: near_dup -- path: original-response - signal: - signal_name: text_statistics -- path: original-response - signal: - signal_name: pii -- path: original-response - signal: - signal_name: lang_detection -- path: - - new-instruction - - value - - '*' - signal: - signal_name: near_dup -- path: - - new-instruction - - value - - '*' - signal: - signal_name: text_statistics -- path: - - new-instruction - - value - - '*' - signal: - signal_name: pii -- path: - - new-instruction - - value - - '*' - signal: - signal_name: lang_detection -- path: - - new-context - - value - - '*' - signal: - signal_name: near_dup -- path: - - new-context - - value - - '*' - signal: - signal_name: text_statistics -- path: - - new-context - - value - - '*' - signal: - signal_name: lang_detection -- path: - - new-context - - value - - '*' - signal: - signal_name: pii -- path: - - new-response - - value - - '*' - signal: - signal_name: near_dup -- path: - - new-response - - value - - '*' - signal: - signal_name: text_statistics -- path: - - new-response - - value - - '*' - signal: - signal_name: pii -- path: - - new-response - - value - - '*' - signal: - signal_name: lang_detection -source: - dataset_name: argilla/databricks-dolly-15k-curated-en - source_name: huggingface -tags: -- machine-learning diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/data-00000-of-00001.parquet deleted file mode 100644 index 6f3e495af1e7f4ddfd11c5992863d7b9d056d3f5..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad225b50d5880a097ea66eb4ca70fc529c0321cf8a5652bd8fbe7a638d016851 -size 15882489 diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/manifest.json deleted file mode 100644 index 99f8429981b50b56ce5a88c70dddf0f36d8b3a5c..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/manifest.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "data_schema": { - "fields": { - "id": { - "dtype": "string" - }, - "category": { - "dtype": "string" - }, - "original-instruction": { - "dtype": "string" - }, - "original-context": { - "dtype": "string" - }, - "original-response": { - "dtype": "string" - }, - "new-instruction": { - "fields": { - "user_id": { - "repeated_field": { - "dtype": "string" - } - }, - "value": { - "repeated_field": { - "dtype": "string" - } - }, - "status": { - "repeated_field": { - "dtype": "string" - } - } - } - }, - "new-context": { - "fields": { - "user_id": { - "repeated_field": { - "dtype": "string" - } - }, - "value": { - "repeated_field": { - "dtype": "string" - } - }, - "status": { - "repeated_field": { - "dtype": "string" - } - } - } - }, - "new-response": { - "fields": { - "user_id": { - "repeated_field": { - "dtype": "string" - } - }, - "value": { - "repeated_field": { - "dtype": "string" - } - }, - "status": { - "repeated_field": { - "dtype": "string" - } - } - } - }, - "external_id": { - "dtype": "string" - }, - "__hfsplit__": { - "dtype": "string" - } - } - } -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index b8d1499ffb19d8d2f17c22a5bbe601834aeace40..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/lang_detection/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/lang_detection/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/lang_detection/signal_manifest.json deleted file mode 100644 index c11f8548ff603d6eb0d15c29932722551e1d3b37..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/lang_detection/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-context.value.lang_detection", - "data_schema": { - "fields": { - "new-context": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "new-context", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 4158d72ec64ad8b8545ddcbd8ef847fa1f417de0..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/near_dup/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/near_dup/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/near_dup/signal_manifest.json deleted file mode 100644 index 4073c8f8ac113853212b8f6044be10dd76d9f812..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/near_dup/signal_manifest.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-context.value.near_dup", - "data_schema": { - "fields": { - "new-context": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "new-context", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/pii/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/pii/data-00000-of-00001.parquet deleted file mode 100644 index 60eba5cc8eb5270f6f99e3582907dff1418899ea..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/pii/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/pii/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/pii/signal_manifest.json deleted file mode 100644 index 72078ebd95cefffaebae75f16ebedf8a826ac169..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/pii/signal_manifest.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-context.value.pii", - "data_schema": { - "fields": { - "new-context": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "new-context", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 59bd2f1f595ad324d3270f98da46d389688b7d49..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/text_statistics/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/text_statistics/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/text_statistics/signal_manifest.json deleted file mode 100644 index 3478c83a2bddeb2a2a0327af7111c9df9da8a382..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-context/value/text_statistics/signal_manifest.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-context.value.text_statistics", - "data_schema": { - "fields": { - "new-context": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "new-context", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 98ba124f0a0bd25d7813652dfa354cba6efc4804..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/lang_detection/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/lang_detection/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/lang_detection/signal_manifest.json deleted file mode 100644 index f98dac730493a7766689f497fea10f3828cc452a..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/lang_detection/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-instruction.value.lang_detection", - "data_schema": { - "fields": { - "new-instruction": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "new-instruction", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index f2fd29976a8f58808f740eca1b5dcf0b75c9e8f6..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/near_dup/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/near_dup/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/near_dup/signal_manifest.json deleted file mode 100644 index 8515abb66bc3386682861b3169001a9c3723781b..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/near_dup/signal_manifest.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-instruction.value.near_dup", - "data_schema": { - "fields": { - "new-instruction": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "new-instruction", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/pii/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/pii/data-00000-of-00001.parquet deleted file mode 100644 index aa43d9bc9361fcfb1363caf7b317d1025ee41679..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/pii/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/pii/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/pii/signal_manifest.json deleted file mode 100644 index 2b936b5bbc8c4d2cc898e784b4adc61745c01d61..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/pii/signal_manifest.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-instruction.value.pii", - "data_schema": { - "fields": { - "new-instruction": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "new-instruction", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 06daa94984714d8b0e7c637e7193662928719c19..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/text_statistics/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/text_statistics/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/text_statistics/signal_manifest.json deleted file mode 100644 index 9e1c321f5b2c6fbfab34d1f480571f886b2cf2b1..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-instruction/value/text_statistics/signal_manifest.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-instruction.value.text_statistics", - "data_schema": { - "fields": { - "new-instruction": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "new-instruction", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index dd30adaa74359b66cff48ceb4597f98c8a525ff5..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/lang_detection/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/lang_detection/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/lang_detection/signal_manifest.json deleted file mode 100644 index c30b358c1ab83d9b1b8cd521105fcbeb6fccca1e..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/lang_detection/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-response.value.lang_detection", - "data_schema": { - "fields": { - "new-response": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "new-response", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 7d6f738e4631123dec03fdd84f8886d2dd6c44b6..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/near_dup/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/near_dup/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/near_dup/signal_manifest.json deleted file mode 100644 index 46fd22477b7513f89995377f6864357d49b3c387..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/near_dup/signal_manifest.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-response.value.near_dup", - "data_schema": { - "fields": { - "new-response": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "new-response", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/pii/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/pii/data-00000-of-00001.parquet deleted file mode 100644 index b14b5408c676a1c9a45b72f9c2558ef818f09ecb..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/pii/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/pii/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/pii/signal_manifest.json deleted file mode 100644 index b2707f21da26dc46ee307e2868e92761ce463d42..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/pii/signal_manifest.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-response.value.pii", - "data_schema": { - "fields": { - "new-response": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "new-response", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index a6d001b61474e85e717f3e3e67db47d3b9ac351a..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/text_statistics/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/text_statistics/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/text_statistics/signal_manifest.json deleted file mode 100644 index 7baeaf6b8e07107fa7e01151777ebb12ca900b6c..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/new-response/value/text_statistics/signal_manifest.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "new-response.value.text_statistics", - "data_schema": { - "fields": { - "new-response": { - "fields": { - "value": { - "repeated_field": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "new-response", - "value", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 5939f2159b06190f1c1dcf3eeb9bc527b28a0f29..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/lang_detection/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/lang_detection/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/lang_detection/signal_manifest.json deleted file mode 100644 index da8924b91e8cf100d33257dcb7359c12eb8201f9..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/lang_detection/signal_manifest.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-context.lang_detection", - "data_schema": { - "fields": { - "original-context": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "original-context" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index e1bae69a076649cb6e353f50e83728b3bd66cc76..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/near_dup/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/near_dup/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/near_dup/signal_manifest.json deleted file mode 100644 index 3d6ad15530590e56a58b4174545b1c02d9e87f16..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/near_dup/signal_manifest.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-context.near_dup", - "data_schema": { - "fields": { - "original-context": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "original-context" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/pii/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/pii/data-00000-of-00001.parquet deleted file mode 100644 index 97b1eae81f685872087d9ff0f1268b6ae24696e3..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/pii/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/pii/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/pii/signal_manifest.json deleted file mode 100644 index 1c8c86b08156615bdcbb1b01b027e867896abf47..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/pii/signal_manifest.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-context.pii", - "data_schema": { - "fields": { - "original-context": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "original-context" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 4bd457460b79956cdb8b0a30df236cec6da45ca9..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/text_statistics/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/text_statistics/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/text_statistics/signal_manifest.json deleted file mode 100644 index c219f72073ea506cc102e7be5b0bf18e014e8e37..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-context/text_statistics/signal_manifest.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-context.text_statistics", - "data_schema": { - "fields": { - "original-context": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "original-context" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 810d08c58f34a358392e919be1c4fac8cedab492..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/lang_detection/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/lang_detection/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/lang_detection/signal_manifest.json deleted file mode 100644 index 5403ea73713ca19b6d9695d84d708a0717951f3d..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/lang_detection/signal_manifest.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-instruction.lang_detection", - "data_schema": { - "fields": { - "original-instruction": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "original-instruction" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 7883ab9e315bfdd7388c9ae8b84c5322cc94e323..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/near_dup/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/near_dup/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/near_dup/signal_manifest.json deleted file mode 100644 index 3fc2b8e2488c7829bed0da6873b766efff7c063c..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/near_dup/signal_manifest.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-instruction.near_dup", - "data_schema": { - "fields": { - "original-instruction": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "original-instruction" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/pii/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/pii/data-00000-of-00001.parquet deleted file mode 100644 index 8363079b3420a3523700dd807f5d2cdbd4699caf..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/pii/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/pii/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/pii/signal_manifest.json deleted file mode 100644 index dd64ca3e3586fde559d800f71d42652d70b8b2c7..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/pii/signal_manifest.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-instruction.pii", - "data_schema": { - "fields": { - "original-instruction": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "original-instruction" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index b6bd8cd14b7f30f26f3ba6aa150bf0f5261423a4..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/text_statistics/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/text_statistics/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/text_statistics/signal_manifest.json deleted file mode 100644 index 20205ab39a7aabb320e8527ab5d07d6f11ca437e..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-instruction/text_statistics/signal_manifest.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-instruction.text_statistics", - "data_schema": { - "fields": { - "original-instruction": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "original-instruction" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 5e707ad570708ed3b7e663bd8b846680a819315e..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/lang_detection/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/lang_detection/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/lang_detection/signal_manifest.json deleted file mode 100644 index 77708983524bc2566292b0a9c4bddc858e9a8827..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/lang_detection/signal_manifest.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-response.lang_detection", - "data_schema": { - "fields": { - "original-response": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "original-response" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 6eaa55fbbc21749eb43cd41f2e09df2f68860c1d..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/near_dup/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/near_dup/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/near_dup/signal_manifest.json deleted file mode 100644 index 1cc681b7f142ca25d3a13d4ce07269b3378c8269..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/near_dup/signal_manifest.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-response.near_dup", - "data_schema": { - "fields": { - "original-response": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "original-response" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/pii/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/pii/data-00000-of-00001.parquet deleted file mode 100644 index 0a68c98404049718414e64dda90c0d7e8df35c15..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/pii/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/pii/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/pii/signal_manifest.json deleted file mode 100644 index 9e3fd2284477b88b191df29e67c3c8234ac8bd54..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/pii/signal_manifest.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-response.pii", - "data_schema": { - "fields": { - "original-response": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "original-response" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index c98e8763b5974843818f90576d1b05f7d3a1cb7e..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/text_statistics/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/text_statistics/signal_manifest.json b/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/text_statistics/signal_manifest.json deleted file mode 100644 index a34980ab39dd12332c28e815d0ecc96a7d37507a..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/databricks-dolly-15k-curated-en/original-response/text_statistics/signal_manifest.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "original-response.text_statistics", - "data_schema": { - "fields": { - "original-response": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "original-response" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/imdb/config.yml b/data/datasets/lilac/imdb/config.yml deleted file mode 100644 index 73e9df5d09dd8107a938e6101096b0f846e328b0..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/config.yml +++ /dev/null @@ -1,31 +0,0 @@ -embeddings: -- embedding: gte-small - path: text -name: imdb -namespace: local -settings: - preferred_embedding: gte-small - ui: - media_paths: - - text -signals: -- path: text - signal: - signal_name: near_dup -- path: text - signal: - signal_name: text_statistics -- path: text - signal: - signal_name: lang_detection -- path: text - signal: - signal_name: spacy_ner -- path: text - signal: - signal_name: pii -source: - dataset_name: imdb - source_name: huggingface -tags: -- machine-learning diff --git a/data/datasets/lilac/imdb/data-00000-of-00001.parquet b/data/datasets/lilac/imdb/data-00000-of-00001.parquet deleted file mode 100644 index 7de63f25ce8a56ffcdd5d13481936d94b0bf1114..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6fe90be23f86ca1e73b8a77a235344db822601f794a5643dca9d0d07c49ce3d8 -size 86160450 diff --git a/data/datasets/lilac/imdb/manifest.json b/data/datasets/lilac/imdb/manifest.json deleted file mode 100644 index c31e03ff0e29009dadc31f58a3651126532ba9a2..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/manifest.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "data_schema": { - "fields": { - "text": { - "dtype": "string" - }, - "label": { - "dtype": "string" - }, - "__hfsplit__": { - "dtype": "string" - }, - "__rowid__": { - "dtype": "string" - } - } - } -} \ No newline at end of file diff --git a/data/datasets/lilac/imdb/text/gte-small/hnsw.hnswlib.bin b/data/datasets/lilac/imdb/text/gte-small/hnsw.hnswlib.bin deleted file mode 100644 index 7c55dfabe007419c6d7b9bf8b5f2802db050d614..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/gte-small/hnsw.hnswlib.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b8fc440b947f068966bc68c83ce4b5502b98e3aab928d58c295dc8a7b7b016c -size 691432396 diff --git a/data/datasets/lilac/imdb/text/gte-small/hnsw.lookup.pkl b/data/datasets/lilac/imdb/text/gte-small/hnsw.lookup.pkl deleted file mode 100644 index 53b11645b72ae8b2ac0a7d4f8d3911ab8c38d54f..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/gte-small/hnsw.lookup.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d3ee2426c761b50025e02f2388fa65c51eb9705d6fd65f95d6502650214b8472 -size 10390867 diff --git a/data/datasets/lilac/imdb/text/gte-small/signal_manifest.json b/data/datasets/lilac/imdb/text/gte-small/signal_manifest.json deleted file mode 100644 index 6c4df1308025f01afd7ad11c2e4eab36963c61b0..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/gte-small/signal_manifest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "files": [], - "parquet_id": "gte-small(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "gte-small": { - "repeated_field": { - "fields": { - "embedding": { - "dtype": "embedding" - } - }, - "dtype": "string_span" - }, - "signal": { - "signal_name": "gte-small" - } - } - } - } - } - }, - "signal": { - "signal_name": "gte-small" - }, - "enriched_path": [ - "text" - ], - "vector_store": "hnsw" -} \ No newline at end of file diff --git a/data/datasets/lilac/imdb/text/gte-small/spans.pkl b/data/datasets/lilac/imdb/text/gte-small/spans.pkl deleted file mode 100644 index 3e11946858f1457913e6325909c7ef4c4627aadd..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/gte-small/spans.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:16417449057fc4304e098e037cb2b3e9a693570768a68bdca457d452adaee130 -size 7476546 diff --git a/data/datasets/lilac/imdb/text/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/imdb/text/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 74adfd2807c8751cdadb71fcb56559359e0e17ac..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/lang_detection/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:adba6df16ec47b68625618b01a0b8d2cc65de572acb20eed561128b037fcdfd7 -size 3309315 diff --git a/data/datasets/lilac/imdb/text/lang_detection/signal_manifest.json b/data/datasets/lilac/imdb/text/lang_detection/signal_manifest.json deleted file mode 100644 index 2163e9fd9535885346193cbb0e9772d01841cd31..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/lang_detection/signal_manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/imdb/text/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/imdb/text/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 35392cacc82b31fc8f031326450153f1bbd0c0f9..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/near_dup/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c75a5f0d12b8b02671e99a2dd313d292610c9264f2302ad1877959430420079 -size 3915752 diff --git a/data/datasets/lilac/imdb/text/near_dup/signal_manifest.json b/data/datasets/lilac/imdb/text/near_dup/signal_manifest.json deleted file mode 100644 index 6febd3e69b9125b0be3b4778f7b65fab8a5d325b..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/near_dup/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/imdb/text/pii/data-00000-of-00001.parquet b/data/datasets/lilac/imdb/text/pii/data-00000-of-00001.parquet deleted file mode 100644 index 1c7fdb96547b73a53ccbc529c6fbcedd09998938..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/pii/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2dfe71845bfd419a2a309b132456341bf317d63e8ccf8bc100835f1a20c81c5b -size 3313701 diff --git a/data/datasets/lilac/imdb/text/pii/signal_manifest.json b/data/datasets/lilac/imdb/text/pii/signal_manifest.json deleted file mode 100644 index ecb2e8b26fb5328004c7cd7b5363b79e88acf8ac..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/pii/signal_manifest.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/imdb/text/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/imdb/text/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 945b09c374c6967dbb6bc9074a3d1c271724f334..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/text_statistics/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4919817d0c520fc5aacc9721f01a0e29fb4d2c89b6698865c9680c81c44ce920 -size 4403809 diff --git a/data/datasets/lilac/imdb/text/text_statistics/signal_manifest.json b/data/datasets/lilac/imdb/text/text_statistics/signal_manifest.json deleted file mode 100644 index 642e3171e68afe580d2043a5f4a9f1331fc85208..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/imdb/text/text_statistics/signal_manifest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/medical_dialog/config.yml b/data/datasets/lilac/medical_dialog/config.yml deleted file mode 100644 index 91d145f38322a6d9a71bddadf39ce69d7fc054d3..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/config.yml +++ /dev/null @@ -1,46 +0,0 @@ -embeddings: -- embedding: gte-small - path: - - dialogue_turns - - utterance - - '*' -name: medical_dialog -namespace: lilac -settings: - preferred_embedding: gte-small - ui: - media_paths: - - - dialogue_turns - - utterance - - '*' -signals: -- path: - - dialogue_turns - - utterance - - '*' - signal: - signal_name: near_dup -- path: - - dialogue_turns - - utterance - - '*' - signal: - signal_name: text_statistics -- path: - - dialogue_turns - - utterance - - '*' - signal: - signal_name: pii -- path: - - dialogue_turns - - utterance - - '*' - signal: - signal_name: lang_detection -source: - config_name: en - dataset_name: medical_dialog - source_name: huggingface -tags: -- medical diff --git a/data/datasets/lilac/medical_dialog/data-00000-of-00001.parquet b/data/datasets/lilac/medical_dialog/data-00000-of-00001.parquet deleted file mode 100644 index b2d8f059e08cc2dd45d5f0a3ae75136506dc1f72..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:91f506cf1e86dbf133857b13ccdbe1dbbb2c5e616f83197502790739257d2f06 -size 134394415 diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/hnsw.hnswlib.bin b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/hnsw.hnswlib.bin deleted file mode 100644 index 26d4e53c8a9b9d542e02cc9af975c730994d9f68..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/hnsw.hnswlib.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:88b70375d7904939284f054ce7a116b86d670a9b467edf045e9a1263b8bc740c -size 1271359144 diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/hnsw.lookup.pkl b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/hnsw.lookup.pkl deleted file mode 100644 index d2276ce7d46d59d7797e86be323e5bab2b50abcc..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/hnsw.lookup.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b523a5b28a70edaa92063c5a151b887037fb8d14ca91583fd989c0484f8f1855 -size 20992247 diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/signal_manifest.json b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/signal_manifest.json deleted file mode 100644 index 07ab01f52bb499bbb121135eca73ccd45cb83ee3..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/signal_manifest.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "files": [], - "parquet_id": "dialogue_turns.utterance.gte-small", - "data_schema": { - "fields": { - "dialogue_turns": { - "fields": { - "utterance": { - "repeated_field": { - "fields": { - "gte-small": { - "repeated_field": { - "fields": { - "embedding": { - "dtype": "embedding" - } - }, - "dtype": "string_span" - }, - "signal": { - "signal_name": "gte-small" - } - } - } - } - } - } - } - } - }, - "signal": { - "signal_name": "gte-small" - }, - "enriched_path": [ - "dialogue_turns", - "utterance", - "*" - ], - "vector_store": "hnsw" -} \ No newline at end of file diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/spans.pkl b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/spans.pkl deleted file mode 100644 index eaa1c51e3730d9b2bc80837ac33c4803a6d8ed24..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/gte-small/spans.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:50c7a00e5d244549fca543f29703a79d79b0be8dbd934e724020aa7acd5c7cf0 -size 17593826 diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index a1782b1f878ee1b545b3cee01e78d2dc92556600..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/lang_detection/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c5263a90c6ab29d6b39d6a6b5393118ce58aef0d3c2d414301eb4e2f3f3c4e3 -size 6380428 diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/lang_detection/signal_manifest.json b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/lang_detection/signal_manifest.json deleted file mode 100644 index b992266ba5d967e885593eb9b4e77d9b97c468c4..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/lang_detection/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "dialogue_turns.utterance.lang_detection", - "data_schema": { - "fields": { - "dialogue_turns": { - "fields": { - "utterance": { - "repeated_field": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "dialogue_turns", - "utterance", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 12348fc1a58d935ce04d9f0143300ccf4918b001..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/near_dup/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c08f38f01f169afac104875890e33f829f50d0a6582c1838681d8fc836a57a1 -size 8687974 diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/near_dup/signal_manifest.json b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/near_dup/signal_manifest.json deleted file mode 100644 index 0a54163de2ff843d59d61e21127f4dd8e7432aa4..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/near_dup/signal_manifest.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "dialogue_turns.utterance.near_dup", - "data_schema": { - "fields": { - "dialogue_turns": { - "fields": { - "utterance": { - "repeated_field": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "dialogue_turns", - "utterance", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/pii/data-00000-of-00001.parquet b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/pii/data-00000-of-00001.parquet deleted file mode 100644 index 8b28df73fc1a306c004b015f1e282d7de26cbd1f..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/pii/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:28bcf251e88f21fefa5df0417cc9c706730e1b4777ac6591323f209611f37f0f -size 6428720 diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/pii/signal_manifest.json b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/pii/signal_manifest.json deleted file mode 100644 index c656a712b21919da9a8b9f96bd4a8cac92d516ac..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/pii/signal_manifest.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "dialogue_turns.utterance.pii", - "data_schema": { - "fields": { - "dialogue_turns": { - "fields": { - "utterance": { - "repeated_field": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "dialogue_turns", - "utterance", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 76aa761185f4a6fd0c0ae1b6267c7e740390443a..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/text_statistics/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a77052cab1e9dbb312c92d4e735aa3b18fd4706b0f3098d20f59b99ea8068e67 -size 9486961 diff --git a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/text_statistics/signal_manifest.json b/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/text_statistics/signal_manifest.json deleted file mode 100644 index 54f6a34ccd45206c6ed39a41067a20fe5bb3f7bb..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/dialogue_turns/utterance/text_statistics/signal_manifest.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "dialogue_turns.utterance.text_statistics", - "data_schema": { - "fields": { - "dialogue_turns": { - "fields": { - "utterance": { - "repeated_field": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "dialogue_turns", - "utterance", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/medical_dialog/manifest.json b/data/datasets/lilac/medical_dialog/manifest.json deleted file mode 100644 index 91eed2cfec6d952b28296bce1023745f08a50237..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/medical_dialog/manifest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "data_schema": { - "fields": { - "file_name": { - "dtype": "string" - }, - "dialogue_id": { - "dtype": "int32" - }, - "dialogue_url": { - "dtype": "string" - }, - "dialogue_turns": { - "fields": { - "speaker": { - "repeated_field": { - "dtype": "int32" - } - }, - "utterance": { - "repeated_field": { - "dtype": "string" - } - } - } - }, - "__hfsplit__": { - "dtype": "string" - } - } - } -} \ No newline at end of file diff --git a/data/datasets/lilac/mmlu_professional_law/choices/gte-small/hnsw.hnswlib.bin b/data/datasets/lilac/mmlu_professional_law/choices/gte-small/hnsw.hnswlib.bin deleted file mode 100644 index bb52449d84416dc773f1df977ecc9babdee5ad6b..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/gte-small/hnsw.hnswlib.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:df9d6e2f5df4b8693544f31ca78a9d1936a4caf47acc2babeb1cb766131b7636 -size 684360968 diff --git a/data/datasets/lilac/mmlu_professional_law/choices/gte-small/hnsw.lookup.pkl b/data/datasets/lilac/mmlu_professional_law/choices/gte-small/hnsw.lookup.pkl deleted file mode 100644 index 550767a8331b0368aa657fb61e7cac286b3a225e..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/gte-small/hnsw.lookup.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2081ce5d760026fe341e0553cd9e40747ca902e4e7edb851cb747f350f19bb0d -size 11174465 diff --git a/data/datasets/lilac/mmlu_professional_law/choices/gte-small/signal_manifest.json b/data/datasets/lilac/mmlu_professional_law/choices/gte-small/signal_manifest.json deleted file mode 100644 index 6c04490217303a73516da9928f8e598115a3cb37..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/gte-small/signal_manifest.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "files": [], - "parquet_id": "gte-small(choices)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "choices": { - "repeated_field": { - "fields": { - "gte-small": { - "repeated_field": { - "fields": { - "embedding": { - "dtype": "embedding" - } - }, - "dtype": "string_span" - }, - "signal": { - "signal_name": "gte-small" - } - } - } - } - } - } - }, - "signal": { - "signal_name": "gte-small" - }, - "enriched_path": [ - "choices", - "*" - ], - "vector_store": "hnsw" -} \ No newline at end of file diff --git a/data/datasets/lilac/mmlu_professional_law/choices/gte-small/spans.pkl b/data/datasets/lilac/mmlu_professional_law/choices/gte-small/spans.pkl deleted file mode 100644 index a8a3c3a2e60b5a6b6ee315f06cf24a8ec15c4588..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/gte-small/spans.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:02fb1662da21f33ea1429a0f9adf1301185da46f642a722717fe7c523314fa57 -size 11173475 diff --git a/data/datasets/lilac/mmlu_professional_law/choices/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/mmlu_professional_law/choices/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index f784fc68538c4d3a5546066cf36efb2a2874125f..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/lang_detection/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:968d4f87c7b51b995d9e3a96423a06b91984e5ee4a47062cd53fe87cca5cafbe -size 3469413 diff --git a/data/datasets/lilac/mmlu_professional_law/choices/lang_detection/signal_manifest.json b/data/datasets/lilac/mmlu_professional_law/choices/lang_detection/signal_manifest.json deleted file mode 100644 index 132c9444fdce498203606a96b8b38e3d97cbac7d..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/lang_detection/signal_manifest.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(choices)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "choices": { - "repeated_field": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "choices", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/mmlu_professional_law/choices/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/mmlu_professional_law/choices/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index d22aa7cf65a7a6f3dc4a5c2e7e05db5bdde6f6fe..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/near_dup/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:316f3be499fcbb960bc1e83a201838ca0b3047a71d8e1c302fe4e0d833a3bf90 -size 5544176 diff --git a/data/datasets/lilac/mmlu_professional_law/choices/near_dup/signal_manifest.json b/data/datasets/lilac/mmlu_professional_law/choices/near_dup/signal_manifest.json deleted file mode 100644 index f39b2f7882b80a1a9b55fe5f6d6e6ded78c7013c..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/near_dup/signal_manifest.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(choices)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "choices": { - "repeated_field": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "choices", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/mmlu_professional_law/choices/pii/data-00000-of-00001.parquet b/data/datasets/lilac/mmlu_professional_law/choices/pii/data-00000-of-00001.parquet deleted file mode 100644 index db00f582f70626ec2204613e14872306f5272f5d..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/pii/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7cb41d4e9d0d82bd824abfa733d5be3a599e011098c5d41ebadeb1166a15f722 -size 3393096 diff --git a/data/datasets/lilac/mmlu_professional_law/choices/pii/signal_manifest.json b/data/datasets/lilac/mmlu_professional_law/choices/pii/signal_manifest.json deleted file mode 100644 index 901a0d06bbe458a729ec40a278e59267bb54a949..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/pii/signal_manifest.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(choices)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "choices": { - "repeated_field": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "choices", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/mmlu_professional_law/choices/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/mmlu_professional_law/choices/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 995c8e0124c6daaf85c0e3b2d3fc59ce01f989ed..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/text_statistics/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bc00a68e0f835e25b214d90e7e48251b39d748f1e836af713440cd0ea2517ead -size 4634821 diff --git a/data/datasets/lilac/mmlu_professional_law/choices/text_statistics/signal_manifest.json b/data/datasets/lilac/mmlu_professional_law/choices/text_statistics/signal_manifest.json deleted file mode 100644 index 710776d4bdd3983e70fa8797d558337eb07de097..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/choices/text_statistics/signal_manifest.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(choices)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "choices": { - "repeated_field": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "choices", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/mmlu_professional_law/config.yml b/data/datasets/lilac/mmlu_professional_law/config.yml deleted file mode 100644 index cc20ff4f60cf5075a5410dae0e1eb5db2d922053..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/config.yml +++ /dev/null @@ -1,63 +0,0 @@ -embeddings: -- embedding: gte-small - path: - - choices - - '*' -- embedding: gte-small - path: question -name: mmlu_professional_law -namespace: local -settings: - preferred_embedding: gte-small - ui: - media_paths: - - question - - - choices - - '*' -signals: -- path: question - signal: - signal_name: text_statistics -- path: question - signal: - signal_name: pii -- path: question - signal: - signal_name: near_dup -- path: - - choices - - '*' - signal: - signal_name: text_statistics -- path: - - choices - - '*' - signal: - signal_name: spacy_ner -- path: question - signal: - signal_name: lang_detection -- path: - - choices - - '*' - signal: - signal_name: near_dup -- path: - - choices - - '*' - signal: - signal_name: pii -- path: - - choices - - '*' - signal: - signal_name: lang_detection -- path: question - signal: - signal_name: spacy_ner -source: - config_name: professional_law - dataset_name: cais/mmlu - source_name: huggingface -tags: -- legal diff --git a/data/datasets/lilac/mmlu_professional_law/data-00000-of-00001.parquet b/data/datasets/lilac/mmlu_professional_law/data-00000-of-00001.parquet deleted file mode 100644 index 72c4ca5a5b0858d72e2a5d89b3926426c70243be..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:65cd2771cf0bb88dbed9ad66ceaff472115f07c9dfea866c7e3f65b68392e745 -size 50699938 diff --git a/data/datasets/lilac/mmlu_professional_law/manifest.json b/data/datasets/lilac/mmlu_professional_law/manifest.json deleted file mode 100644 index 2a8c653bebcf792e4fb958593f3b2fd8e5e38492..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/manifest.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "data_schema": { - "fields": { - "question": { - "dtype": "string" - }, - "choices": { - "repeated_field": { - "dtype": "string" - } - }, - "answer": { - "dtype": "string" - }, - "__hfsplit__": { - "dtype": "string" - }, - "__rowid__": { - "dtype": "string" - } - } - } -} \ No newline at end of file diff --git a/data/datasets/lilac/mmlu_professional_law/question/gte-small/hnsw.hnswlib.bin b/data/datasets/lilac/mmlu_professional_law/question/gte-small/hnsw.hnswlib.bin deleted file mode 100644 index 4569a02af01da1f1634eeb504a906bb583dcdb17..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/gte-small/hnsw.hnswlib.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b02300405fccc3011294e15ee869933dd81578173435defbcb19e3b40a65e93 -size 771802212 diff --git a/data/datasets/lilac/mmlu_professional_law/question/gte-small/hnsw.lookup.pkl b/data/datasets/lilac/mmlu_professional_law/question/gte-small/hnsw.lookup.pkl deleted file mode 100644 index e16a5c06f3590404cf63126390e80ac14f0aaab1..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/gte-small/hnsw.lookup.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f72169740d80ee2b2ea66589d7ebcc58c83381978a4640a27510c416a02bf6c7 -size 11296648 diff --git a/data/datasets/lilac/mmlu_professional_law/question/gte-small/signal_manifest.json b/data/datasets/lilac/mmlu_professional_law/question/gte-small/signal_manifest.json deleted file mode 100644 index 70228c5da7472862dc18b8642dc253faba48c558..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/gte-small/signal_manifest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "files": [], - "parquet_id": "gte-small(question)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "question": { - "fields": { - "gte-small": { - "repeated_field": { - "fields": { - "embedding": { - "dtype": "embedding" - } - }, - "dtype": "string_span" - }, - "signal": { - "signal_name": "gte-small" - } - } - } - } - } - }, - "signal": { - "signal_name": "gte-small" - }, - "enriched_path": [ - "question" - ], - "vector_store": "hnsw" -} \ No newline at end of file diff --git a/data/datasets/lilac/mmlu_professional_law/question/gte-small/spans.pkl b/data/datasets/lilac/mmlu_professional_law/question/gte-small/spans.pkl deleted file mode 100644 index 2c191ec72cf74fe65597763ee0fd9267c75677cd..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/gte-small/spans.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b51cad455e94b167bc9cf130c262ed1b143a8f386c7074a61983e01cd93d277 -size 7911602 diff --git a/data/datasets/lilac/mmlu_professional_law/question/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/mmlu_professional_law/question/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 23b1a6a53511c3187c805eee93017682a06d221b..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/lang_detection/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bf6cf8cdc246ce4406599aec8782d3be02f2585f1fbad74173faf0ffcb453a49 -size 3361922 diff --git a/data/datasets/lilac/mmlu_professional_law/question/lang_detection/signal_manifest.json b/data/datasets/lilac/mmlu_professional_law/question/lang_detection/signal_manifest.json deleted file mode 100644 index 973db6d92666ad6b4e67edd70b041618e1ed5be7..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/lang_detection/signal_manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(question)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "question": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "question" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/mmlu_professional_law/question/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/mmlu_professional_law/question/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 8fcde5a91f92f7d942777bca0dacda105d6677b3..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/near_dup/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2c4139f699d1a248cf5378c442ef6f17970913394d5d0c79bd7c6e6801ab548a -size 3697516 diff --git a/data/datasets/lilac/mmlu_professional_law/question/near_dup/signal_manifest.json b/data/datasets/lilac/mmlu_professional_law/question/near_dup/signal_manifest.json deleted file mode 100644 index 3da5c66d3d35050bd9590d6ee73d0107dfc6d788..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/near_dup/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(question)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "question": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "question" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/mmlu_professional_law/question/pii/data-00000-of-00001.parquet b/data/datasets/lilac/mmlu_professional_law/question/pii/data-00000-of-00001.parquet deleted file mode 100644 index 9d23c418b1121440a401cb356ee95ca4a2ef4b28..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/pii/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2735c4a2c5d40973652d369140533af74425db6dd753f8a25850d4efeee4928e -size 3369080 diff --git a/data/datasets/lilac/mmlu_professional_law/question/pii/signal_manifest.json b/data/datasets/lilac/mmlu_professional_law/question/pii/signal_manifest.json deleted file mode 100644 index 7f82232c8066c00959e30503f41c1d852627a812..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/pii/signal_manifest.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(question)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "question": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "question" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/mmlu_professional_law/question/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/mmlu_professional_law/question/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 7a614f56286007faeb3212c67d97bce12ebc3da8..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/text_statistics/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:995b3ac42907ea244d9cb04c68a4715af8ddb7d72dcced056bc58dc9a9f05e7e -size 4389031 diff --git a/data/datasets/lilac/mmlu_professional_law/question/text_statistics/signal_manifest.json b/data/datasets/lilac/mmlu_professional_law/question/text_statistics/signal_manifest.json deleted file mode 100644 index e52fe6eef5bd2c1f65350e1b161e182aec82e7f6..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/mmlu_professional_law/question/text_statistics/signal_manifest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(question)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "question": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "question" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/open-asssistant-conversations/config.yml b/data/datasets/lilac/open-asssistant-conversations/config.yml deleted file mode 100644 index d0184048316f7bb319f07185adbb94cad4409764..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/config.yml +++ /dev/null @@ -1,31 +0,0 @@ -embeddings: -- embedding: gte-small - path: text -name: open-asssistant-conversations -namespace: local -settings: - preferred_embedding: gte-small - ui: - media_paths: - - text -signals: -- path: text - signal: - signal_name: text_statistics -- path: text - signal: - signal_name: lang_detection -- path: text - signal: - signal_name: near_dup -- path: text - signal: - signal_name: spacy_ner -- path: text - signal: - signal_name: pii -source: - dataset_name: OpenAssistant/oasst1 - source_name: huggingface -tags: -- machine-learning diff --git a/data/datasets/lilac/open-asssistant-conversations/data-00000-of-00001.parquet b/data/datasets/lilac/open-asssistant-conversations/data-00000-of-00001.parquet deleted file mode 100644 index dc3a623c724e5f9fa2df301daf5b58fbe4b91485..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d53dbedb539cf7fa3f89d739f698fd3ccf1fbbd86dac20bd0b74cf674cc508e8 -size 42071566 diff --git a/data/datasets/lilac/open-asssistant-conversations/manifest.json b/data/datasets/lilac/open-asssistant-conversations/manifest.json deleted file mode 100644 index a7f6735e9a780150f779c9c133c09f08bc8eb19b..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/manifest.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "data_schema": { - "fields": { - "message_id": { - "dtype": "string" - }, - "parent_id": { - "dtype": "string" - }, - "user_id": { - "dtype": "string" - }, - "created_date": { - "dtype": "string" - }, - "text": { - "dtype": "string" - }, - "role": { - "dtype": "string" - }, - "lang": { - "dtype": "string" - }, - "review_count": { - "dtype": "int32" - }, - "review_result": { - "dtype": "boolean" - }, - "deleted": { - "dtype": "boolean" - }, - "rank": { - "dtype": "int32" - }, - "synthetic": { - "dtype": "boolean" - }, - "model_name": { - "dtype": "string" - }, - "detoxify": { - "fields": { - "toxicity": { - "dtype": "float64" - }, - "severe_toxicity": { - "dtype": "float64" - }, - "obscene": { - "dtype": "float64" - }, - "identity_attack": { - "dtype": "float64" - }, - "insult": { - "dtype": "float64" - }, - "threat": { - "dtype": "float64" - }, - "sexual_explicit": { - "dtype": "float64" - } - } - }, - "message_tree_id": { - "dtype": "string" - }, - "tree_state": { - "dtype": "string" - }, - "emojis": { - "fields": { - "name": { - "repeated_field": { - "dtype": "string" - } - }, - "count": { - "repeated_field": { - "dtype": "int32" - } - } - } - }, - "labels": { - "fields": { - "name": { - "repeated_field": { - "dtype": "string" - } - }, - "value": { - "repeated_field": { - "dtype": "float64" - } - }, - "count": { - "repeated_field": { - "dtype": "int32" - } - } - } - }, - "__hfsplit__": { - "dtype": "string" - }, - "__rowid__": { - "dtype": "string" - } - } - } -} \ No newline at end of file diff --git a/data/datasets/lilac/open-asssistant-conversations/text/gte-small/hnsw.hnswlib.bin b/data/datasets/lilac/open-asssistant-conversations/text/gte-small/hnsw.hnswlib.bin deleted file mode 100644 index 32d02a95613ae3b99cc663122401df64d1c50038..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/gte-small/hnsw.hnswlib.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:138c8efe1e911904c3702c582b892acc8c5616062a35773c31872a8969e2badf -size 327991072 diff --git a/data/datasets/lilac/open-asssistant-conversations/text/gte-small/hnsw.lookup.pkl b/data/datasets/lilac/open-asssistant-conversations/text/gte-small/hnsw.lookup.pkl deleted file mode 100644 index 39c725c45331d117370d4b9a8e5994c75ce3728e..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/gte-small/hnsw.lookup.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f8bcd3f617d324acd7e13d0d0fabd38065012bea40141579e16681bcdfdcaf46 -size 6171232 diff --git a/data/datasets/lilac/open-asssistant-conversations/text/gte-small/signal_manifest.json b/data/datasets/lilac/open-asssistant-conversations/text/gte-small/signal_manifest.json deleted file mode 100644 index 6c4df1308025f01afd7ad11c2e4eab36963c61b0..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/gte-small/signal_manifest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "files": [], - "parquet_id": "gte-small(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "gte-small": { - "repeated_field": { - "fields": { - "embedding": { - "dtype": "embedding" - } - }, - "dtype": "string_span" - }, - "signal": { - "signal_name": "gte-small" - } - } - } - } - } - }, - "signal": { - "signal_name": "gte-small" - }, - "enriched_path": [ - "text" - ], - "vector_store": "hnsw" -} \ No newline at end of file diff --git a/data/datasets/lilac/open-asssistant-conversations/text/gte-small/spans.pkl b/data/datasets/lilac/open-asssistant-conversations/text/gte-small/spans.pkl deleted file mode 100644 index 478681332a8a920e16a7503ab303e4d7d2ebdd3b..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/gte-small/spans.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b1cda70a8dc3259ff058e5e3ffc24cfbaaafe3fb9ba5c1b836e0757180114e28 -size 5164058 diff --git a/data/datasets/lilac/open-asssistant-conversations/text/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/open-asssistant-conversations/text/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 1d410264dedd48599cc425eb9fb1f954b0b65b90..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/lang_detection/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5f8944421e23764080d8fde7460d08aa683ebbafc6fad2bd65654ea701ba50ca -size 2980981 diff --git a/data/datasets/lilac/open-asssistant-conversations/text/lang_detection/signal_manifest.json b/data/datasets/lilac/open-asssistant-conversations/text/lang_detection/signal_manifest.json deleted file mode 100644 index 2163e9fd9535885346193cbb0e9772d01841cd31..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/lang_detection/signal_manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/open-asssistant-conversations/text/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/open-asssistant-conversations/text/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index e11365f402ba9c9d9aa8485a7d0a64a9420c7e9a..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/near_dup/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e2949cfca1b91bb99c56364fdb47679301b90d1f51bd1963f04fbbcbe093d15c -size 3486319 diff --git a/data/datasets/lilac/open-asssistant-conversations/text/near_dup/signal_manifest.json b/data/datasets/lilac/open-asssistant-conversations/text/near_dup/signal_manifest.json deleted file mode 100644 index 6febd3e69b9125b0be3b4778f7b65fab8a5d325b..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/near_dup/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/open-asssistant-conversations/text/pii/data-00000-of-00001.parquet b/data/datasets/lilac/open-asssistant-conversations/text/pii/data-00000-of-00001.parquet deleted file mode 100644 index a02dd0f102a3eda91bb698aa5e5d69c00c156db4..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/pii/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5c010e414a4379f8c1637c54864c46c7872a7ed0dc26990c5b755581d2073f8b -size 2953059 diff --git a/data/datasets/lilac/open-asssistant-conversations/text/pii/signal_manifest.json b/data/datasets/lilac/open-asssistant-conversations/text/pii/signal_manifest.json deleted file mode 100644 index ecb2e8b26fb5328004c7cd7b5363b79e88acf8ac..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/pii/signal_manifest.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/open-asssistant-conversations/text/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/open-asssistant-conversations/text/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index ad531d7932a5f1ca1820567dcb83b9322ebc7265..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/text_statistics/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb0f5af1af587a3b083dd7859f9cd4a5cf2943e41396c776db9a2a4f59eb4c9d -size 3827015 diff --git a/data/datasets/lilac/open-asssistant-conversations/text/text_statistics/signal_manifest.json b/data/datasets/lilac/open-asssistant-conversations/text/text_statistics/signal_manifest.json deleted file mode 100644 index 642e3171e68afe580d2043a5f4a9f1331fc85208..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/open-asssistant-conversations/text/text_statistics/signal_manifest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/pile-of-law-atticus-contracts/config.yml b/data/datasets/lilac/pile-of-law-atticus-contracts/config.yml deleted file mode 100644 index 53a4e88a33bc2073f5e71c55f760852b4384902a..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-atticus-contracts/config.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: pile-of-law-atticus-contracts -namespace: lilac -settings: - preferred_embedding: gte-small - ui: - media_paths: - - text -source: - config_name: atticus_contracts - dataset_name: pile-of-law/pile-of-law - sample_size: 100000 - source_name: huggingface -tags: -- legal diff --git a/data/datasets/lilac/pile-of-law-atticus-contracts/data-00000-of-00001.parquet b/data/datasets/lilac/pile-of-law-atticus-contracts/data-00000-of-00001.parquet deleted file mode 100644 index 3025f61a94ea6d0b1dcad7f65e77c55ddf166e66..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-atticus-contracts/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:654fd626e1d336406da59fd0efe676c91e58c3752fa0bf668523df6872d2b131 -size 4778681829 diff --git a/data/datasets/lilac/pile-of-law-atticus-contracts/manifest.json b/data/datasets/lilac/pile-of-law-atticus-contracts/manifest.json deleted file mode 100644 index a5568a64b007a55a0195e0a86ec236567a652b2d..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-atticus-contracts/manifest.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "data_schema": { - "fields": { - "text": { - "dtype": "string" - }, - "created_timestamp": { - "dtype": "string" - }, - "downloaded_timestamp": { - "dtype": "string" - }, - "url": { - "dtype": "string" - }, - "__hfsplit__": { - "dtype": "string" - }, - "__rowid__": { - "dtype": "string" - } - } - } -} \ No newline at end of file diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/config.yml b/data/datasets/lilac/pile-of-law-r-legaladvice/config.yml deleted file mode 100644 index 549eba60231ac13311f9a29e6c490e2edcc065b8..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/config.yml +++ /dev/null @@ -1,32 +0,0 @@ -embeddings: -- embedding: gte-small - path: text -name: pile-of-law-r-legaladvice -namespace: lilac -settings: - preferred_embedding: gte-small - ui: - media_paths: - - text -signals: -- path: text - signal: - signal_name: near_dup -- path: text - signal: - signal_name: text_statistics -- path: text - signal: - signal_name: pii -- path: text - signal: - signal_name: lang_detection -- path: text - signal: - signal_name: spacy_ner -source: - config_name: r_legaladvice - dataset_name: pile-of-law/pile-of-law - source_name: huggingface -tags: -- legal diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/data-00000-of-00001.parquet b/data/datasets/lilac/pile-of-law-r-legaladvice/data-00000-of-00001.parquet deleted file mode 100644 index fb97fabdf28a292b11466042e1b31bc8cca7f2cc..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:315910747b04a2b504c0df875caf84812252602ea10a14c2049a45737a80db86 -size 190604294 diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/manifest.json b/data/datasets/lilac/pile-of-law-r-legaladvice/manifest.json deleted file mode 100644 index a5568a64b007a55a0195e0a86ec236567a652b2d..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/manifest.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "data_schema": { - "fields": { - "text": { - "dtype": "string" - }, - "created_timestamp": { - "dtype": "string" - }, - "downloaded_timestamp": { - "dtype": "string" - }, - "url": { - "dtype": "string" - }, - "__hfsplit__": { - "dtype": "string" - }, - "__rowid__": { - "dtype": "string" - } - } - } -} \ No newline at end of file diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/hnsw.hnswlib.bin b/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/hnsw.hnswlib.bin deleted file mode 100644 index 8ef8df8cacfe7ff6821eca1cc3e17b51ece938b7..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/hnsw.hnswlib.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b613d5dd1584d6a5f8323d1464fa1f9d7a6a3cb8547963a8f3451afc56542a3c -size 1922075524 diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/hnsw.lookup.pkl b/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/hnsw.lookup.pkl deleted file mode 100644 index 619b37a6c1607c502dd4a36d173dbb19a9d78ad0..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/hnsw.lookup.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f6ea206b1c4dba51a9e18f6db3822615cfe4c0ec435d3ce8c0e78ed4a604d11c -size 24945492 diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/signal_manifest.json b/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/signal_manifest.json deleted file mode 100644 index 6c4df1308025f01afd7ad11c2e4eab36963c61b0..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/signal_manifest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "files": [], - "parquet_id": "gte-small(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "gte-small": { - "repeated_field": { - "fields": { - "embedding": { - "dtype": "embedding" - } - }, - "dtype": "string_span" - }, - "signal": { - "signal_name": "gte-small" - } - } - } - } - } - }, - "signal": { - "signal_name": "gte-small" - }, - "enriched_path": [ - "text" - ], - "vector_store": "hnsw" -} \ No newline at end of file diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/spans.pkl b/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/spans.pkl deleted file mode 100644 index 192b9a5531330c94e16a04417907e4e42606b28c..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/gte-small/spans.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c233892a5f8fb35cdff7539bc657e15b91f91be9410c63e5a6dfc0aa627831ae -size 15099068 diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/pile-of-law-r-legaladvice/text/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 385f81d5b3b5ad7f7d98c6001d9698a2e6639470..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/lang_detection/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f09e13588467643bc515248dc8b75003ecab9787b8d30b01959dd4f85d0a5eb0 -size 4827225 diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/lang_detection/signal_manifest.json b/data/datasets/lilac/pile-of-law-r-legaladvice/text/lang_detection/signal_manifest.json deleted file mode 100644 index 2163e9fd9535885346193cbb0e9772d01841cd31..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/lang_detection/signal_manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/pile-of-law-r-legaladvice/text/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 161f7545c3c6c2b955ffe2d1775fbd2a8dbf5dd2..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/near_dup/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b3d7c4f4df146865336e8e0addba0ff1bfe0218bd6ef7d9b6cd2b1ef21a20405 -size 5743841 diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/near_dup/signal_manifest.json b/data/datasets/lilac/pile-of-law-r-legaladvice/text/near_dup/signal_manifest.json deleted file mode 100644 index 6febd3e69b9125b0be3b4778f7b65fab8a5d325b..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/near_dup/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/pii/data-00000-of-00001.parquet b/data/datasets/lilac/pile-of-law-r-legaladvice/text/pii/data-00000-of-00001.parquet deleted file mode 100644 index 1baf009a7f79be183ca0036d9b458d01b1f8951c..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/pii/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:38ca9bdf0f4a9dd4b0d1bc83f6f6b1446aa5b61c0566e1ffa165dac1565e3099 -size 4834322 diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/pii/signal_manifest.json b/data/datasets/lilac/pile-of-law-r-legaladvice/text/pii/signal_manifest.json deleted file mode 100644 index ecb2e8b26fb5328004c7cd7b5363b79e88acf8ac..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/pii/signal_manifest.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/pile-of-law-r-legaladvice/text/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 5d0a0c370a9a08c6eef6d06044c84c58d9c6e916..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/text_statistics/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bcfb0d11c300e2d97d10c57e63b777cb347936e24253758c716bed24e0b7a2e8 -size 6649363 diff --git a/data/datasets/lilac/pile-of-law-r-legaladvice/text/text_statistics/signal_manifest.json b/data/datasets/lilac/pile-of-law-r-legaladvice/text/text_statistics/signal_manifest.json deleted file mode 100644 index 642e3171e68afe580d2043a5f4a9f1331fc85208..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/pile-of-law-r-legaladvice/text/text_statistics/signal_manifest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/config.yml b/data/datasets/lilac/piqa/config.yml deleted file mode 100644 index d52225af41706646b4a8c53d4bd78bd70dc0669e..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/config.yml +++ /dev/null @@ -1,67 +0,0 @@ -embeddings: -- embedding: gte-small - path: goal -- embedding: gte-small - path: sol2 -- embedding: gte-small - path: sol1 -name: piqa -namespace: local -settings: - preferred_embedding: gte-small - ui: - media_paths: - - sol1 - - sol2 - - goal -signals: -- path: sol1 - signal: - signal_name: near_dup -- path: sol1 - signal: - signal_name: text_statistics -- path: sol1 - signal: - signal_name: pii -- path: sol1 - signal: - signal_name: lang_detection -- path: sol1 - signal: - signal_name: spacy_ner -- path: sol2 - signal: - signal_name: near_dup -- path: sol2 - signal: - signal_name: pii -- path: sol2 - signal: - signal_name: spacy_ner -- path: sol2 - signal: - signal_name: lang_detection -- path: sol2 - signal: - signal_name: text_statistics -- path: goal - signal: - signal_name: near_dup -- path: goal - signal: - signal_name: text_statistics -- path: goal - signal: - signal_name: spacy_ner -- path: goal - signal: - signal_name: lang_detection -- path: goal - signal: - signal_name: pii -source: - dataset_name: piqa - source_name: huggingface -tags: -- machine-learning diff --git a/data/datasets/lilac/piqa/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/data-00000-of-00001.parquet deleted file mode 100644 index bf38c39924376e7eee1170e510f0ee20521fc431..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1530d99cdc0988b355d3dcbcd6f7e29439e4048535b598eaf08f2c372d5a76a4 -size 4040510 diff --git a/data/datasets/lilac/piqa/goal/gte-small/hnsw.hnswlib.bin b/data/datasets/lilac/piqa/goal/gte-small/hnsw.hnswlib.bin deleted file mode 100644 index b5a0eb8ccf59130822d17474d84435ed47ee0b8a..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/goal/gte-small/hnsw.hnswlib.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e46018f32560457c6bb77c8cb6270be81c48730a37e640d70de62b5e75d9b0ad -size 35437836 diff --git a/data/datasets/lilac/piqa/goal/gte-small/hnsw.lookup.pkl b/data/datasets/lilac/piqa/goal/gte-small/hnsw.lookup.pkl deleted file mode 100644 index f70d0ecbbf3e2ce4f690321fca45533e20d67b14..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/goal/gte-small/hnsw.lookup.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:151e20cb34bc6ff100936ca9da15e7443e8ecc23cf68aa10977f90a5f5e3802b -size 1010253 diff --git a/data/datasets/lilac/piqa/goal/gte-small/signal_manifest.json b/data/datasets/lilac/piqa/goal/gte-small/signal_manifest.json deleted file mode 100644 index e38b0540f2a3f21235cb535004316e0c442228f3..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/goal/gte-small/signal_manifest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "files": [], - "parquet_id": "gte-small(goal)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "goal": { - "fields": { - "gte-small": { - "repeated_field": { - "fields": { - "embedding": { - "dtype": "embedding" - } - }, - "dtype": "string_span" - }, - "signal": { - "signal_name": "gte-small" - } - } - } - } - } - }, - "signal": { - "signal_name": "gte-small" - }, - "enriched_path": [ - "goal" - ], - "vector_store": "hnsw" -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/goal/gte-small/spans.pkl b/data/datasets/lilac/piqa/goal/gte-small/spans.pkl deleted file mode 100644 index 4097d71f5a2333d7e96161221ea78a1b0678dce1..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/goal/gte-small/spans.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:af17a91bcfa9ef113f360a6a6a625741b81ba887a577393c23aff0621535b52b -size 1009873 diff --git a/data/datasets/lilac/piqa/goal/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/goal/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 42fc59c8b41da29d5c0d947ef5e41c12f584256b..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/goal/lang_detection/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/goal/lang_detection/signal_manifest.json b/data/datasets/lilac/piqa/goal/lang_detection/signal_manifest.json deleted file mode 100644 index 20fd48a65b9a66e2b42b59952a06c9e8c4bd23a5..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/goal/lang_detection/signal_manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(goal)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "goal": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "goal" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/goal/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/goal/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 3f8aa38ac019e6a12a9a42ea72bd90fb46975fe8..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/goal/near_dup/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/goal/near_dup/signal_manifest.json b/data/datasets/lilac/piqa/goal/near_dup/signal_manifest.json deleted file mode 100644 index 229d8c6643b134214a13ccfa54b27648bb23aba4..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/goal/near_dup/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(goal)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "goal": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "goal" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/goal/pii/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/goal/pii/data-00000-of-00001.parquet deleted file mode 100644 index b8419aa671392c0397e45e5b2623ae15bfeaacff..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/goal/pii/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/goal/pii/signal_manifest.json b/data/datasets/lilac/piqa/goal/pii/signal_manifest.json deleted file mode 100644 index cf829e25c9fb255627cf66f09e37bb2249cb0644..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/goal/pii/signal_manifest.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(goal)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "goal": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "goal" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/goal/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/goal/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 2db9b856db171622031762b075eadb1cd201b2f2..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/goal/text_statistics/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/goal/text_statistics/signal_manifest.json b/data/datasets/lilac/piqa/goal/text_statistics/signal_manifest.json deleted file mode 100644 index 7411f33b9cf775aa384d9cf6868101647212599d..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/goal/text_statistics/signal_manifest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(goal)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "goal": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "goal" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/manifest.json b/data/datasets/lilac/piqa/manifest.json deleted file mode 100644 index cc381f565472c6d4c2588d10e9d9d19e5f864d26..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/manifest.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "data_schema": { - "fields": { - "goal": { - "dtype": "string" - }, - "sol1": { - "dtype": "string" - }, - "sol2": { - "dtype": "string" - }, - "label": { - "dtype": "string" - }, - "__hfsplit__": { - "dtype": "string" - }, - "__rowid__": { - "dtype": "string" - } - } - } -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/sol1/gte-small/hnsw.hnswlib.bin b/data/datasets/lilac/piqa/sol1/gte-small/hnsw.hnswlib.bin deleted file mode 100644 index 7a236ec29b4499a1b55a9d01fc1e977dbf925744..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol1/gte-small/hnsw.hnswlib.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:91976ea520234c445b947e745fabddaae0cf455d2a8e8d18ccb945905c642ed2 -size 36174988 diff --git a/data/datasets/lilac/piqa/sol1/gte-small/hnsw.lookup.pkl b/data/datasets/lilac/piqa/sol1/gte-small/hnsw.lookup.pkl deleted file mode 100644 index 4016b3e5cbc2eb7d0a2d2c9bc814d4989bf4b5c2..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol1/gte-small/hnsw.lookup.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1333c87108731a3851176d7751a918e8a170de5a6d4e0e0a5b79f8663b37494e -size 1018110 diff --git a/data/datasets/lilac/piqa/sol1/gte-small/signal_manifest.json b/data/datasets/lilac/piqa/sol1/gte-small/signal_manifest.json deleted file mode 100644 index e2fc00649d968a40bcfd6e8b602475aff580b5e8..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol1/gte-small/signal_manifest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "files": [], - "parquet_id": "gte-small(sol1)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "sol1": { - "fields": { - "gte-small": { - "repeated_field": { - "fields": { - "embedding": { - "dtype": "embedding" - } - }, - "dtype": "string_span" - }, - "signal": { - "signal_name": "gte-small" - } - } - } - } - } - }, - "signal": { - "signal_name": "gte-small" - }, - "enriched_path": [ - "sol1" - ], - "vector_store": "hnsw" -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/sol1/gte-small/spans.pkl b/data/datasets/lilac/piqa/sol1/gte-small/spans.pkl deleted file mode 100644 index 37a2fbf2f14cc8ce3bdfffb6d99a9b3e68838d6c..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol1/gte-small/spans.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b043969052fae73d232c222d10362ce093ca26b9224b6ea14c87cf65affd04df -size 1015221 diff --git a/data/datasets/lilac/piqa/sol1/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/sol1/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index ea0da12d380c06c0a8d6a3db11b768e1583bbb64..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/sol1/lang_detection/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/sol1/lang_detection/signal_manifest.json b/data/datasets/lilac/piqa/sol1/lang_detection/signal_manifest.json deleted file mode 100644 index c86df1c4c09f3bff65d0223549be1df392b9a8eb..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol1/lang_detection/signal_manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(sol1)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "sol1": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "sol1" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/sol1/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/sol1/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 290a52d50eb6aea1f5cf4abd78dca49dbb411f22..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/sol1/near_dup/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/sol1/near_dup/signal_manifest.json b/data/datasets/lilac/piqa/sol1/near_dup/signal_manifest.json deleted file mode 100644 index ce5c8c5432a9475af951a5ab8f895132940bad1a..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol1/near_dup/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(sol1)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "sol1": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "sol1" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/sol1/pii/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/sol1/pii/data-00000-of-00001.parquet deleted file mode 100644 index 193364c2e59d6967ba5d2e00791cf6440b26be50..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/sol1/pii/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/sol1/pii/signal_manifest.json b/data/datasets/lilac/piqa/sol1/pii/signal_manifest.json deleted file mode 100644 index 5a53e8f453f2df2e34367079c7d52e5499dc07d0..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol1/pii/signal_manifest.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(sol1)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "sol1": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "sol1" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/sol1/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/sol1/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 9706fd142b5c777bc00e63a5f3229b39c299f41b..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/sol1/text_statistics/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/sol1/text_statistics/signal_manifest.json b/data/datasets/lilac/piqa/sol1/text_statistics/signal_manifest.json deleted file mode 100644 index d8177cbf4d1e85fb3064088ed71b0db1977cebcf..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol1/text_statistics/signal_manifest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(sol1)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "sol1": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "sol1" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/sol2/gte-small/hnsw.hnswlib.bin b/data/datasets/lilac/piqa/sol2/gte-small/hnsw.hnswlib.bin deleted file mode 100644 index ca467cc92758852bc183f82d923710481eed6a83..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol2/gte-small/hnsw.hnswlib.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b61683bccd432e615553a1e508b236f265663e74ec67c60edb4f368e169d7b65 -size 36180028 diff --git a/data/datasets/lilac/piqa/sol2/gte-small/hnsw.lookup.pkl b/data/datasets/lilac/piqa/sol2/gte-small/hnsw.lookup.pkl deleted file mode 100644 index 77935440f5af04e0a91346a9f61a07725c0e4972..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol2/gte-small/hnsw.lookup.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d814ae715f918b41488589fabed6fba617820b1619c484e437a6d575a89692c3 -size 1018164 diff --git a/data/datasets/lilac/piqa/sol2/gte-small/signal_manifest.json b/data/datasets/lilac/piqa/sol2/gte-small/signal_manifest.json deleted file mode 100644 index ea3076918836fe1c827391a2a3a39f2282bbbfe5..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol2/gte-small/signal_manifest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "files": [], - "parquet_id": "gte-small(sol2)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "sol2": { - "fields": { - "gte-small": { - "repeated_field": { - "fields": { - "embedding": { - "dtype": "embedding" - } - }, - "dtype": "string_span" - }, - "signal": { - "signal_name": "gte-small" - } - } - } - } - } - }, - "signal": { - "signal_name": "gte-small" - }, - "enriched_path": [ - "sol2" - ], - "vector_store": "hnsw" -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/sol2/gte-small/spans.pkl b/data/datasets/lilac/piqa/sol2/gte-small/spans.pkl deleted file mode 100644 index e53d139449545d1a8ebfd44cfa159c7ad97d06e0..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol2/gte-small/spans.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1bae45d635be51218f7dbf110a5fd4935d7afb802dd79425d18164161e2f1645 -size 1015232 diff --git a/data/datasets/lilac/piqa/sol2/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/sol2/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index ed2b6372ff6de411e3b56e1cd5fbe6ea81faacbd..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/sol2/lang_detection/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/sol2/lang_detection/signal_manifest.json b/data/datasets/lilac/piqa/sol2/lang_detection/signal_manifest.json deleted file mode 100644 index 9cfe8b083d788adcdabc203d60f3bd1018f7f4d7..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol2/lang_detection/signal_manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(sol2)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "sol2": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "sol2" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/sol2/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/sol2/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 5608922e59505fb08b564fc9fd2920ff580cbeea..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/sol2/near_dup/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/sol2/near_dup/signal_manifest.json b/data/datasets/lilac/piqa/sol2/near_dup/signal_manifest.json deleted file mode 100644 index 3683dfd250bec75cbdf7c6e72c395e322d4c747f..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol2/near_dup/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(sol2)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "sol2": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "sol2" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/sol2/pii/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/sol2/pii/data-00000-of-00001.parquet deleted file mode 100644 index f9a93454f68babb682a06575688013ad9ac41660..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/sol2/pii/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/sol2/pii/signal_manifest.json b/data/datasets/lilac/piqa/sol2/pii/signal_manifest.json deleted file mode 100644 index 850d74ea1694d636715e818ac90fd3261354272e..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol2/pii/signal_manifest.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(sol2)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "sol2": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "sol2" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/piqa/sol2/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/piqa/sol2/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 5a3e37e4c595d75bfb1e294270c15fa5b9caf8eb..0000000000000000000000000000000000000000 Binary files a/data/datasets/lilac/piqa/sol2/text_statistics/data-00000-of-00001.parquet and /dev/null differ diff --git a/data/datasets/lilac/piqa/sol2/text_statistics/signal_manifest.json b/data/datasets/lilac/piqa/sol2/text_statistics/signal_manifest.json deleted file mode 100644 index 1bc865bf833b4da708fd65d3f366c80188498b0e..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/piqa/sol2/text_statistics/signal_manifest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(sol2)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "sol2": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "sol2" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/answers/text/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/answers/text/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 18370c77f27621e4898136157d8b4601c7d496fc..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/answers/text/lang_detection/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c03103ba132a7209461f86bd1045431d06db431930344e4bdf97236347cc2164 -size 4738120 diff --git a/data/datasets/lilac/squad_v2/answers/text/lang_detection/signal_manifest.json b/data/datasets/lilac/squad_v2/answers/text/lang_detection/signal_manifest.json deleted file mode 100644 index d9140bd6b0a3567aa8f4f54dca03ff53dde54c62..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/answers/text/lang_detection/signal_manifest.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(answers.text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "answers": { - "fields": { - "text": { - "repeated_field": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "answers", - "text", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/answers/text/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/answers/text/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 1ac3c2fcf06bafc847c9d371316e3aebcc95eaf4..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/answers/text/near_dup/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cf4ae7259d126104da2aea0e1fad0c7cd83033f7774f0d44a2436f7c891fde34 -size 5224344 diff --git a/data/datasets/lilac/squad_v2/answers/text/near_dup/signal_manifest.json b/data/datasets/lilac/squad_v2/answers/text/near_dup/signal_manifest.json deleted file mode 100644 index 8832994bd6398ffe3af09c791f63af9b655eb9e5..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/answers/text/near_dup/signal_manifest.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(answers.text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "answers": { - "fields": { - "text": { - "repeated_field": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "answers", - "text", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/answers/text/pii/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/answers/text/pii/data-00000-of-00001.parquet deleted file mode 100644 index fc02cf578d3adb754281fb2428acff8aa5aeb050..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/answers/text/pii/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:adf2c35877ae9957a987049c40a9a1b2edbe4b2d93b1da86bfeb739fae240040 -size 4841393 diff --git a/data/datasets/lilac/squad_v2/answers/text/pii/signal_manifest.json b/data/datasets/lilac/squad_v2/answers/text/pii/signal_manifest.json deleted file mode 100644 index 8495a5ffb37e173e3df5160432a4e580399db30a..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/answers/text/pii/signal_manifest.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(answers.text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "answers": { - "fields": { - "text": { - "repeated_field": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "answers", - "text", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/answers/text/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/answers/text/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 59aceaf596dd4f7485424af0a6567f6b5223f685..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/answers/text/text_statistics/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:16b5ddbc51455341a26121c5427bd0f32639515dad34d77561402df81d8ab903 -size 5100206 diff --git a/data/datasets/lilac/squad_v2/answers/text/text_statistics/signal_manifest.json b/data/datasets/lilac/squad_v2/answers/text/text_statistics/signal_manifest.json deleted file mode 100644 index 05168462e15f9fa6579b65b4ac047f19ac184184..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/answers/text/text_statistics/signal_manifest.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(answers.text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "answers": { - "fields": { - "text": { - "repeated_field": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "answers", - "text", - "*" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/config.yml b/data/datasets/lilac/squad_v2/config.yml deleted file mode 100644 index c08953432e5cace62d0ec2f9db9e4f6ebb68a08f..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/config.yml +++ /dev/null @@ -1,80 +0,0 @@ -embeddings: -- embedding: gte-small - path: context -name: squad_v2 -namespace: local -settings: - preferred_embedding: gte-small - ui: - media_paths: - - context - - question - - - answers - - text - - '*' -signals: -- path: context - signal: - signal_name: text_statistics -- path: context - signal: - signal_name: pii -- path: context - signal: - signal_name: near_dup -- path: question - signal: - signal_name: spacy_ner -- path: question - signal: - signal_name: pii -- path: - - answers - - text - - '*' - signal: - signal_name: pii -- path: - - answers - - text - - '*' - signal: - signal_name: spacy_ner -- path: - - answers - - text - - '*' - signal: - signal_name: near_dup -- path: context - signal: - signal_name: lang_detection -- path: - - answers - - text - - '*' - signal: - signal_name: lang_detection -- path: question - signal: - signal_name: near_dup -- path: question - signal: - signal_name: lang_detection -- path: - - answers - - text - - '*' - signal: - signal_name: text_statistics -- path: question - signal: - signal_name: text_statistics -- path: context - signal: - signal_name: spacy_ner -source: - dataset_name: squad_v2 - source_name: huggingface -tags: -- machine-learning diff --git a/data/datasets/lilac/squad_v2/context/gte-small/hnsw.hnswlib.bin b/data/datasets/lilac/squad_v2/context/gte-small/hnsw.hnswlib.bin deleted file mode 100644 index f4feaca6fddbbe1b2a3f74deee7d786b1bdc5651..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/gte-small/hnsw.hnswlib.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e24a3d0200e46bb221dacc8066ccc85033ff0378721338cfd60612f130e034d1 -size 601394376 diff --git a/data/datasets/lilac/squad_v2/context/gte-small/hnsw.lookup.pkl b/data/datasets/lilac/squad_v2/context/gte-small/hnsw.lookup.pkl deleted file mode 100644 index c41e5ecd61d84ce1484cdaaa03a6698179d4c1a2..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/gte-small/hnsw.lookup.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bc41116b96f4e1fa547697ce62afe0fe7aba054a8d694b308e1e0270474801da -size 10694495 diff --git a/data/datasets/lilac/squad_v2/context/gte-small/signal_manifest.json b/data/datasets/lilac/squad_v2/context/gte-small/signal_manifest.json deleted file mode 100644 index 772cd149b1871246d577334ba66c97eba2970f67..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/gte-small/signal_manifest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "files": [], - "parquet_id": "gte-small(context)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "context": { - "fields": { - "gte-small": { - "repeated_field": { - "fields": { - "embedding": { - "dtype": "embedding" - } - }, - "dtype": "string_span" - }, - "signal": { - "signal_name": "gte-small" - } - } - } - } - } - }, - "signal": { - "signal_name": "gte-small" - }, - "enriched_path": [ - "context" - ], - "vector_store": "hnsw" -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/context/gte-small/spans.pkl b/data/datasets/lilac/squad_v2/context/gte-small/spans.pkl deleted file mode 100644 index c35befc2653003f14dca0488d4d983f4aa2fac4f..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/gte-small/spans.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d69a524ee48c0c218eeb901ae265ae74b12511fee17fe31ae1627c0122e25f04 -size 8815907 diff --git a/data/datasets/lilac/squad_v2/context/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/context/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index ff2336747f6c1a09d311195ce9e9ab086f2e0f65..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/lang_detection/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd10704958387059935d9e22f0415677a6daf3105105af8314314ce3c3114274 -size 4682949 diff --git a/data/datasets/lilac/squad_v2/context/lang_detection/signal_manifest.json b/data/datasets/lilac/squad_v2/context/lang_detection/signal_manifest.json deleted file mode 100644 index a9c658f13553ec6197f0b5342c878d96956f32b3..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/lang_detection/signal_manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(context)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "context": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "context" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/context/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/context/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 9ec286b9d904b07a9b8c17d99d0c1a2f0f4f040c..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/near_dup/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0d3a359a05aa7c073900e4973569f808afa26c7bf0328c31e553efcc14bea90 -size 4962702 diff --git a/data/datasets/lilac/squad_v2/context/near_dup/signal_manifest.json b/data/datasets/lilac/squad_v2/context/near_dup/signal_manifest.json deleted file mode 100644 index 74e3d7239cf63d33a84ce5aba5a88cecd5dc6873..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/near_dup/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(context)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "context": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "context" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/context/pii/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/context/pii/data-00000-of-00001.parquet deleted file mode 100644 index 901d98cbc959ebfa6f6fc072505bfde60008f61c..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/pii/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0265330a9d7ff27498f4f0e9ddce89a027203d11941d6bc8f8d4334872346d9c -size 4685328 diff --git a/data/datasets/lilac/squad_v2/context/pii/signal_manifest.json b/data/datasets/lilac/squad_v2/context/pii/signal_manifest.json deleted file mode 100644 index 5e2c68f4626d74914590e8adf2e0b726291bc900..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/pii/signal_manifest.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(context)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "context": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "context" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/context/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/context/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index fe26d3844a63b0a797c292e402ed812119e15c38..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/text_statistics/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f1915970f9199dc82019cbb6089c85df3ddfd189848e0f34f549e34b617cd0f8 -size 5165481 diff --git a/data/datasets/lilac/squad_v2/context/text_statistics/signal_manifest.json b/data/datasets/lilac/squad_v2/context/text_statistics/signal_manifest.json deleted file mode 100644 index e2b1f42d5fa12885616ea8f299e070aea59da166..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/context/text_statistics/signal_manifest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(context)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "context": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "context" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/data-00000-of-00001.parquet deleted file mode 100644 index ccd293f00e4d1767ee97582ad38417d6e0470549..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a9f54db85b8bacd3ea30ecf70410441e300c783e621767c1d9746d6474852ceb -size 27086838 diff --git a/data/datasets/lilac/squad_v2/manifest.json b/data/datasets/lilac/squad_v2/manifest.json deleted file mode 100644 index 95e901df7d68ab16d58b36a5df33832aa858af99..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/manifest.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "data_schema": { - "fields": { - "id": { - "dtype": "string" - }, - "title": { - "dtype": "string" - }, - "context": { - "dtype": "string" - }, - "question": { - "dtype": "string" - }, - "answers": { - "fields": { - "text": { - "repeated_field": { - "dtype": "string" - } - }, - "answer_start": { - "repeated_field": { - "dtype": "int32" - } - } - } - }, - "__hfsplit__": { - "dtype": "string" - }, - "__rowid__": { - "dtype": "string" - } - } - } -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/question/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/question/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 3b5fc2a8b43e007eabb9a61b4a92cd7c182b8c87..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/question/lang_detection/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:06d32aa3096865a6236fd620a16499876c919b245e26fe9a2809b3c02eebc13d -size 4694280 diff --git a/data/datasets/lilac/squad_v2/question/lang_detection/signal_manifest.json b/data/datasets/lilac/squad_v2/question/lang_detection/signal_manifest.json deleted file mode 100644 index 973db6d92666ad6b4e67edd70b041618e1ed5be7..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/question/lang_detection/signal_manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(question)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "question": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "question" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/question/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/question/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 97ba0ef1589b7603fdcf116f03b2d5ddfc17ad0d..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/question/near_dup/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b7e1d521750d16c37c70c378306ef22916e2d9715a565f1127d9e3626c966d4 -size 5571030 diff --git a/data/datasets/lilac/squad_v2/question/near_dup/signal_manifest.json b/data/datasets/lilac/squad_v2/question/near_dup/signal_manifest.json deleted file mode 100644 index 3da5c66d3d35050bd9590d6ee73d0107dfc6d788..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/question/near_dup/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(question)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "question": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "question" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/question/pii/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/question/pii/data-00000-of-00001.parquet deleted file mode 100644 index c42879fa94caac7faeae4af1437d0b7c249c54ee..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/question/pii/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a72f4f32331de183cfe67be224ba473ec83ba8f855dafab97371580684718e4f -size 4685523 diff --git a/data/datasets/lilac/squad_v2/question/pii/signal_manifest.json b/data/datasets/lilac/squad_v2/question/pii/signal_manifest.json deleted file mode 100644 index 7f82232c8066c00959e30503f41c1d852627a812..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/question/pii/signal_manifest.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(question)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "question": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "question" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/squad_v2/question/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/squad_v2/question/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 44faabb88c9e0ccdf1e7b0d0a7ba994ec0d4c910..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/question/text_statistics/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:36304efa2147c8737c1c4da192837aa855504ecfe9eb6f14d267c501bcaaa246 -size 5104750 diff --git a/data/datasets/lilac/squad_v2/question/text_statistics/signal_manifest.json b/data/datasets/lilac/squad_v2/question/text_statistics/signal_manifest.json deleted file mode 100644 index e52fe6eef5bd2c1f65350e1b161e182aec82e7f6..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/squad_v2/question/text_statistics/signal_manifest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(question)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "question": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "question" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/wikitext-2-raw-v1/config.yml b/data/datasets/lilac/wikitext-2-raw-v1/config.yml deleted file mode 100644 index 4a736bcc67562349cb0e143a08e4f231a96d13f3..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/config.yml +++ /dev/null @@ -1,32 +0,0 @@ -embeddings: -- embedding: gte-small - path: text -name: wikitext-2-raw-v1 -namespace: local -settings: - preferred_embedding: gte-small - ui: - media_paths: - - text -signals: -- path: text - signal: - signal_name: pii -- path: text - signal: - signal_name: near_dup -- path: text - signal: - signal_name: lang_detection -- path: text - signal: - signal_name: text_statistics -- path: text - signal: - signal_name: spacy_ner -source: - config_name: wikitext-2-raw-v1 - dataset_name: wikitext - source_name: huggingface -tags: -- machine-learning diff --git a/data/datasets/lilac/wikitext-2-raw-v1/data-00000-of-00001.parquet b/data/datasets/lilac/wikitext-2-raw-v1/data-00000-of-00001.parquet deleted file mode 100644 index be71c28d7173f5876194c5e663b53d5f77bbfb73..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d2722d7f4c6b75fdd39f4477d67ed046ab1da08f1fa6d757109d8df77a1a4c2 -size 9171984 diff --git a/data/datasets/lilac/wikitext-2-raw-v1/manifest.json b/data/datasets/lilac/wikitext-2-raw-v1/manifest.json deleted file mode 100644 index 6b0b5700fe6080dfedfee42ab57dc5c8f38051bb..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/manifest.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "data_schema": { - "fields": { - "text": { - "dtype": "string" - }, - "__hfsplit__": { - "dtype": "string" - }, - "__rowid__": { - "dtype": "string" - } - } - } -} \ No newline at end of file diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/hnsw.hnswlib.bin b/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/hnsw.hnswlib.bin deleted file mode 100644 index c09f28fa576401bc02c3fa645050d661e5bb043c..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/hnsw.hnswlib.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c9c5174ef8444ec37b0cc39acb01225d77ef8e131d6af4501ac85e904d80a9b2 -size 91233592 diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/hnsw.lookup.pkl b/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/hnsw.lookup.pkl deleted file mode 100644 index 16765de4ed616eaa17be110e0839b87c06c4bb67..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/hnsw.lookup.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c6de9264ae1f50b8dd78b4fec2601cd88625cfe253eaab24542890a870ecd900 -size 1848900 diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/signal_manifest.json b/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/signal_manifest.json deleted file mode 100644 index 6c4df1308025f01afd7ad11c2e4eab36963c61b0..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/signal_manifest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "files": [], - "parquet_id": "gte-small(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "gte-small": { - "repeated_field": { - "fields": { - "embedding": { - "dtype": "embedding" - } - }, - "dtype": "string_span" - }, - "signal": { - "signal_name": "gte-small" - } - } - } - } - } - }, - "signal": { - "signal_name": "gte-small" - }, - "enriched_path": [ - "text" - ], - "vector_store": "hnsw" -} \ No newline at end of file diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/spans.pkl b/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/spans.pkl deleted file mode 100644 index 96bb1f5443116fd861dba7852016928328c0a046..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/gte-small/spans.pkl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:064d18ca7f0f3b021ebfa93323bcbe9f50271da2ea2234393581a8113322683a -size 1629720 diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/lang_detection/data-00000-of-00001.parquet b/data/datasets/lilac/wikitext-2-raw-v1/text/lang_detection/data-00000-of-00001.parquet deleted file mode 100644 index 52365e79c0276932e5a3c6cf4c49666f81cf3eb2..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/lang_detection/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:68e4d6290a46a7dac484299be15b8536324cb677ced9721934bd150a277ddaf9 -size 1532348 diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/lang_detection/signal_manifest.json b/data/datasets/lilac/wikitext-2-raw-v1/text/lang_detection/signal_manifest.json deleted file mode 100644 index 2163e9fd9535885346193cbb0e9772d01841cd31..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/lang_detection/signal_manifest.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "lang_detection(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "lang_detection": { - "dtype": "string", - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - } - } - } - } - } - }, - "signal": { - "split_by_paragraph": false, - "signal_name": "lang_detection" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/near_dup/data-00000-of-00001.parquet b/data/datasets/lilac/wikitext-2-raw-v1/text/near_dup/data-00000-of-00001.parquet deleted file mode 100644 index 8a5403fb1b4148c5368424e97429d5ac0e97dcc5..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/near_dup/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3f316a8a3f031470cf9fa99475b81a04e962f2da7704d61de8a44089bbf7e59b -size 1703637 diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/near_dup/signal_manifest.json b/data/datasets/lilac/wikitext-2-raw-v1/text/near_dup/signal_manifest.json deleted file mode 100644 index 6febd3e69b9125b0be3b4778f7b65fab8a5d325b..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/near_dup/signal_manifest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "near_dup(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "near_dup": { - "fields": { - "cluster_id": { - "dtype": "uint32", - "categorical": true - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - } - } - } - } - } - }, - "signal": { - "threshold": 0.85, - "signal_name": "near_dup" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/pii/data-00000-of-00001.parquet b/data/datasets/lilac/wikitext-2-raw-v1/text/pii/data-00000-of-00001.parquet deleted file mode 100644 index 8029f40ee89cf359dbcda728226e7ae4c33fc0fb..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/pii/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fb257c0e65788f446b23d8f389db299c51a896baf0dcbd4d37114b625868f0ad -size 1517126 diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/pii/signal_manifest.json b/data/datasets/lilac/wikitext-2-raw-v1/text/pii/signal_manifest.json deleted file mode 100644 index ecb2e8b26fb5328004c7cd7b5363b79e88acf8ac..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/pii/signal_manifest.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "pii(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "pii": { - "fields": { - "emails": { - "repeated_field": { - "dtype": "string_span" - } - }, - "ip_addresses": { - "repeated_field": { - "dtype": "string_span" - } - }, - "secrets": { - "repeated_field": { - "dtype": "string_span" - } - } - }, - "signal": { - "signal_name": "pii" - } - } - } - } - } - }, - "signal": { - "signal_name": "pii" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/text_statistics/data-00000-of-00001.parquet b/data/datasets/lilac/wikitext-2-raw-v1/text/text_statistics/data-00000-of-00001.parquet deleted file mode 100644 index 5d0e5dedb36bcaa931a3dd1a30e4da9d9fdd67ed..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/text_statistics/data-00000-of-00001.parquet +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96b6d56208f0c74e7c9bc1d858ebabaae941eaf2c95cdf9207a7bdd1418a59ce -size 1827010 diff --git a/data/datasets/lilac/wikitext-2-raw-v1/text/text_statistics/signal_manifest.json b/data/datasets/lilac/wikitext-2-raw-v1/text/text_statistics/signal_manifest.json deleted file mode 100644 index 642e3171e68afe580d2043a5f4a9f1331fc85208..0000000000000000000000000000000000000000 --- a/data/datasets/lilac/wikitext-2-raw-v1/text/text_statistics/signal_manifest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "files": [ - "data-00000-of-00001.parquet" - ], - "parquet_id": "text_statistics(text)", - "data_schema": { - "fields": { - "__rowid__": { - "dtype": "string" - }, - "text": { - "fields": { - "text_statistics": { - "fields": { - "num_characters": { - "dtype": "int32" - }, - "readability": { - "dtype": "float32" - }, - "log(type_token_ratio)": { - "dtype": "float32" - }, - "frac_non_ascii": { - "dtype": "float32", - "bins": [ - [ - "Low", - null, - 0.15 - ], - [ - "Medium", - 0.15, - 0.3 - ], - [ - "High", - 0.3, - null - ] - ] - } - }, - "signal": { - "signal_name": "text_statistics" - } - } - } - } - } - }, - "signal": { - "signal_name": "text_statistics" - }, - "enriched_path": [ - "text" - ] -} \ No newline at end of file diff --git a/lilac/data/dataset_duckdb.py b/lilac/data/dataset_duckdb.py index 694c615fdb24bf0153db6ad3992c69469d313af6..678dff3053f3346d6b3b18b3adf4a39adcfdce8f 100644 --- a/lilac/data/dataset_duckdb.py +++ b/lilac/data/dataset_duckdb.py @@ -55,7 +55,7 @@ from ..signals.semantic_similarity import SemanticSimilaritySignal from ..signals.substring_search import SubstringSignal from ..sources.source import Source from ..tasks import TaskStepId, progress -from ..utils import DebugTimer, get_dataset_output_dir, log, open_file +from ..utils import DebugTimer, get_dataset_output_dir, log, open_file, to_yaml from . import dataset from .dataset import ( BINARY_OPS, @@ -166,7 +166,7 @@ class DatasetDuckDB(Dataset): config = DatasetConfig( namespace=namespace, name=dataset_name, source=source_cls(), settings=settings) with open(get_config_filepath(self.namespace, self.dataset_name), 'w') as f: - yaml.dump(config.dict(exclude_none=True, exclude_defaults=True), f) + f.write(to_yaml(config.dict(exclude_none=True, exclude_defaults=True), f)) # Create a join table from all the parquet files. self.manifest() @@ -293,7 +293,7 @@ class DatasetDuckDB(Dataset): config.embeddings.append(embedding_config) with open(get_config_filepath(self.namespace, self.dataset_name), 'w') as f: - yaml.dump(config.dict(exclude_none=True, exclude_defaults=True), f) + f.write(to_yaml(config.dict(exclude_none=True, exclude_defaults=True))) @override def config(self) -> DatasetConfig: diff --git a/lilac/data/dataset_test_utils.py b/lilac/data/dataset_test_utils.py index 345fa480c1412c588a0482cf4d24c92b4a181195..9c9c7387387c1624f57674ab31bbe89d29497372 100644 --- a/lilac/data/dataset_test_utils.py +++ b/lilac/data/dataset_test_utils.py @@ -24,7 +24,7 @@ from ..schema import ( SourceManifest, ) from ..sources.source import Source -from ..utils import get_dataset_output_dir, open_file +from ..utils import get_dataset_output_dir, open_file, to_yaml from .dataset import Dataset, default_settings from .dataset_utils import is_primitive, write_items_to_parquet @@ -109,7 +109,7 @@ def make_dataset(dataset_cls: Type[Dataset], config_filepath = os.path.join( get_dataset_output_dir(str(tmp_path), TEST_NAMESPACE, TEST_DATASET_NAME), CONFIG_FILENAME) with open_file(config_filepath, 'w') as f: - f.write(yaml.dump(config.dict(exclude_defaults=True, exclude_none=True, exclude_unset=True))) + f.write(to_yaml(config.dict(exclude_defaults=True, exclude_none=True, exclude_unset=True))) return dataset diff --git a/lilac/data_loader.py b/lilac/data_loader.py index c1187d5653383d0293bbfb3fa6afb615d58dad2e..8ae4584bac3cfb2dc14ccacb2d2486952b6cb380 100644 --- a/lilac/data_loader.py +++ b/lilac/data_loader.py @@ -31,7 +31,7 @@ from .schema import ( is_float, ) from .tasks import TaskStepId, progress -from .utils import get_dataset_output_dir, log, open_file +from .utils import get_dataset_output_dir, log, open_file, to_yaml def create_dataset(config: DatasetConfig) -> Dataset: @@ -81,7 +81,7 @@ def process_source(base_dir: Union[str, pathlib.Path], dataset = get_dataset(config.namespace, config.name) config.settings = default_settings(dataset) with open_file(os.path.join(output_dir, CONFIG_FILENAME), 'w') as f: - f.write(yaml.dump(config.dict(exclude_defaults=True, exclude_none=True))) + f.write(to_yaml(config.dict(exclude_defaults=True, exclude_none=True))) log(f'Dataset "{config.name}" written to {output_dir}') diff --git a/lilac/router_dataset.py b/lilac/router_dataset.py index 8ecd38c77e4b2756ebaeb63288eece66d6138b7b..4485533b0a1ade05c04d32fb2771484f478e4cb0 100644 --- a/lilac/router_dataset.py +++ b/lilac/router_dataset.py @@ -293,7 +293,7 @@ def get_config(namespace: str, dataset_name: str, dataset = get_dataset(namespace, dataset_name) config_dict = dataset.config().dict(exclude_defaults=True, exclude_none=True) if format == 'yaml': - return yaml.dump(config_dict) + return to_yaml(config_dict) elif format == 'json': return config_dict diff --git a/lilac/utils.py b/lilac/utils.py index 10ee45978bba82e9120944c52f46235d027c80d0..ed04bfde169e2d60b5e101dc147500bdcf9e9a3b 100644 --- a/lilac/utils.py +++ b/lilac/utils.py @@ -18,6 +18,7 @@ from typing import IO, Any, Awaitable, Callable, Iterable, Optional, TypeVar, Un import numpy as np import requests +import yaml from google.cloud.storage import Blob, Client from pydantic import BaseModel @@ -288,3 +289,8 @@ def pretty_timedelta(delta: timedelta) -> str: return '%dm%ds' % (minutes, seconds) else: return '%ds' % (seconds,) + + +def to_yaml(input: dict) -> str: + """Convert a dictionary to a pretty yaml representation.""" + return yaml.dump(input, default_flow_style=None) diff --git a/lilac/web/_app/immutable/chunks/ChevronUp.31af30c3.js b/lilac/web/_app/immutable/chunks/ChevronUp.31af30c3.js new file mode 100644 index 0000000000000000000000000000000000000000..aac843de1a9ff49d3a089ab5740b38a7e450b069 --- /dev/null +++ b/lilac/web/_app/immutable/chunks/ChevronUp.31af30c3.js @@ -0,0 +1,6 @@ +import{S as Me,i as ze,s as De,G as Be,E as U,k as N,a as j,l as V,m as T,c as G,h as m,n as b,H as g,I as Te,b as O,J as L,K as P,g as v,v as le,d as z,f as te,L as ye,M as Ce,N as Ee,O as Oe,P as sl,D as ie,C as fl,R as ul,j as dl,F as ne,a8 as cl,y as ue,z as de,A as ce,B as me,q as w,r as p,u as x,Q as fe,w as ge,e as Le,a4 as ml,_ as ae,$ as oe,a0 as ke,a1 as ve}from"./index.27e2a960.js";import{aF as bl,aG as je,B as Se}from"./Commands.2fa1e469.js";import{w as hl}from"./index.7efffca5.js";function Ae(i,e,l){const t=i.slice();return t[55]=e[l],t}const _l=i=>({}),Fe=i=>({}),gl=i=>({}),He=i=>({});function Pe(i){let e,l,t,a,f;return l=new je({props:{size:20,class:"bx--modal-close__icon","aria-hidden":"true"}}),{c(){e=N("button"),ue(l.$$.fragment),this.h()},l(n){e=V(n,"BUTTON",{type:!0,"aria-label":!0});var o=T(e);de(l.$$.fragment,o),o.forEach(m),this.h()},h(){b(e,"type","button"),b(e,"aria-label",i[8]),g(e,"bx--modal-close",!0)},m(n,o){O(n,e,o),ce(l,e,null),i[37](e),t=!0,a||(f=P(e,"click",i[38]),a=!0)},p(n,o){(!t||o[0]&256)&&b(e,"aria-label",n[8])},i(n){t||(v(l.$$.fragment,n),t=!0)},o(n){z(l.$$.fragment,n),t=!1},d(n){n&&m(e),me(l),i[37](null),a=!1,f()}}}function Re(i){let e,l;const t=i[31].label,a=Be(t,i,i[50],He),f=a||kl(i);return{c(){e=N("h2"),f&&f.c(),this.h()},l(n){e=V(n,"H2",{id:!0});var o=T(e);f&&f.l(o),o.forEach(m),this.h()},h(){b(e,"id",i[25]),g(e,"bx--modal-header__label",!0)},m(n,o){O(n,e,o),f&&f.m(e,null),l=!0},p(n,o){a?a.p&&(!l||o[1]&524288)&&ye(a,t,n,n[50],l?Ee(t,n[50],o,gl):Ce(n[50]),He):f&&f.p&&(!l||o[0]&128)&&f.p(n,l?o:[-1,-1]),(!l||o[0]&33554432)&&b(e,"id",n[25])},i(n){l||(v(f,n),l=!0)},o(n){z(f,n),l=!1},d(n){n&&m(e),f&&f.d(n)}}}function kl(i){let e;return{c(){e=w(i[7])},l(l){e=p(l,i[7])},m(l,t){O(l,e,t)},p(l,t){t[0]&128&&x(e,l[7])},d(l){l&&m(e)}}}function vl(i){let e;return{c(){e=w(i[6])},l(l){e=p(l,i[6])},m(l,t){O(l,e,t)},p(l,t){t[0]&64&&x(e,l[6])},d(l){l&&m(e)}}}function Ne(i){let e,l,t,a,f;return l=new je({props:{size:20,class:"bx--modal-close__icon","aria-hidden":"true"}}),{c(){e=N("button"),ue(l.$$.fragment),this.h()},l(n){e=V(n,"BUTTON",{type:!0,"aria-label":!0});var o=T(e);de(l.$$.fragment,o),o.forEach(m),this.h()},h(){b(e,"type","button"),b(e,"aria-label",i[8]),g(e,"bx--modal-close",!0)},m(n,o){O(n,e,o),ce(l,e,null),i[39](e),t=!0,a||(f=P(e,"click",i[40]),a=!0)},p(n,o){(!t||o[0]&256)&&b(e,"aria-label",n[8])},i(n){t||(v(l.$$.fragment,n),t=!0)},o(n){z(l.$$.fragment,n),t=!1},d(n){n&&m(e),me(l),i[39](null),a=!1,f()}}}function Ve(i){let e;return{c(){e=N("div"),this.h()},l(l){e=V(l,"DIV",{}),T(e).forEach(m),this.h()},h(){g(e,"bx--modal-content--overflow-indicator",!0)},m(l,t){O(l,e,t)},d(l){l&&m(e)}}}function qe(i){let e,l,t,a,f,n;const o=[yl,Bl],u=[];function d(h,k){return h[16].length>0?0:h[15]?1:-1}return~(l=d(i))&&(t=u[l]=o[l](i)),f=new Se({props:{kind:i[3]?"danger":"primary",disabled:i[12],icon:i[13],$$slots:{default:[Ml]},$$scope:{ctx:i}}}),f.$on("click",i[43]),{c(){e=N("div"),t&&t.c(),a=j(),ue(f.$$.fragment),this.h()},l(h){e=V(h,"DIV",{});var k=T(e);t&&t.l(k),a=G(k),de(f.$$.fragment,k),k.forEach(m),this.h()},h(){g(e,"bx--modal-footer",!0),g(e,"bx--modal-footer--three-button",i[16].length===2)},m(h,k){O(h,e,k),~l&&u[l].m(e,null),L(e,a),ce(f,e,null),n=!0},p(h,k){let H=l;l=d(h),l===H?~l&&u[l].p(h,k):(t&&(le(),z(u[H],1,1,()=>{u[H]=null}),te()),~l?(t=u[l],t?t.p(h,k):(t=u[l]=o[l](h),t.c()),v(t,1),t.m(e,a)):t=null);const C={};k[0]&8&&(C.kind=h[3]?"danger":"primary"),k[0]&4096&&(C.disabled=h[12]),k[0]&8192&&(C.icon=h[13]),k[0]&2048|k[1]&524288&&(C.$$scope={dirty:k,ctx:h}),f.$set(C),(!n||k[0]&65536)&&g(e,"bx--modal-footer--three-button",h[16].length===2)},i(h){n||(v(t),v(f.$$.fragment,h),n=!0)},o(h){z(t),z(f.$$.fragment,h),n=!1},d(h){h&&m(e),~l&&u[l].d(),me(f)}}}function Bl(i){let e,l;return e=new Se({props:{kind:"secondary",$$slots:{default:[Cl]},$$scope:{ctx:i}}}),e.$on("click",i[42]),{c(){ue(e.$$.fragment)},l(t){de(e.$$.fragment,t)},m(t,a){ce(e,t,a),l=!0},p(t,a){const f={};a[0]&32768|a[1]&524288&&(f.$$scope={dirty:a,ctx:t}),e.$set(f)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){z(e.$$.fragment,t),l=!1},d(t){me(e,t)}}}function yl(i){let e,l,t=i[16],a=[];for(let n=0;nz(a[n],1,1,()=>{a[n]=null});return{c(){for(let n=0;n{E=null}),te()),s[7]?M?(M.p(s,c),c[0]&128&&v(M,1)):(M=Re(s),M.c(),v(M,1),M.m(t,f)):M&&(le(),z(M,1,1,()=>{M=null}),te()),K?K.p&&(!_||c[1]&524288)&&ye(K,ee,s,s[50],_?Ee(ee,s[50],c,_l):Ce(s[50]),Fe):S&&S.p&&(!_||c[0]&64)&&S.p(s,_?c:[-1,-1]),(!_||c[0]&16777216)&&b(n,"id",s[24]),s[5]?B&&(le(),z(B,1,1,()=>{B=null}),te()):B?(B.p(s,c),c[0]&32&&v(B,1)):(B=Ne(s),B.c(),v(B,1),B.m(t,null)),I&&I.p&&(!_||c[1]&524288)&&ye(I,X,s,s[50],_?Ee(X,s[50],c,null):Ce(s[50]),null),(!_||c[0]&8388608)&&b(d,"id",s[23]),(!_||c[0]&1024&&h!==(h=s[10]?"0":void 0))&&b(d,"tabindex",h),(!_||c[0]&1024&&k!==(k=s[10]?"region":void 0))&&b(d,"role",k),(!_||c[0]&4195328&&H!==(H=s[10]?s[22]:void 0))&&b(d,"aria-label",H),(!_||c[0]&50331776&&C!==(C=s[7]?s[25]:s[24]))&&b(d,"aria-labelledby",C),(!_||c[0]&512)&&g(d,"bx--modal-content--with-form",s[9]),(!_||c[0]&1024)&&g(d,"bx--modal-scroll-content",s[10]),s[10]?D||(D=Ve(),D.c(),D.m(l,J)):D&&(D.d(1),D=null),s[5]?y&&(le(),z(y,1,1,()=>{y=null}),te()):y?(y.p(s,c),c[0]&32&&v(y,1)):(y=qe(s),y.c(),v(y,1),y.m(l,null)),(!_||c[0]&48&&Q!==(Q=s[4]?s[5]?"alert":"alertdialog":"dialog"))&&b(l,"role",Q),(!_||c[0]&8388656&&Y!==(Y=s[4]&&!s[5]?s[23]:void 0))&&b(l,"aria-describedby",Y),(!_||c[0]&4194304)&&b(l,"aria-label",s[22]),(!_||c[0]&4)&&g(l,"bx--modal-container--xs",s[2]==="xs"),(!_||c[0]&4)&&g(l,"bx--modal-container--sm",s[2]==="sm"),(!_||c[0]&4)&&g(l,"bx--modal-container--lg",s[2]==="lg"),Te(e,R=Oe(q,[{role:"presentation"},(!_||c[0]&262144)&&{id:s[18]},c[0]&268435456&&s[28]])),g(e,"bx--modal",!0),g(e,"bx--modal-tall",!s[5]),g(e,"is-visible",s[0]),g(e,"bx--modal--danger",s[3])},i(s){_||(v(E),v(M),v(S,s),v(B),v(I,s),v(y),_=!0)},o(s){z(E),z(M),z(S,s),z(B),z(I,s),z(y),_=!1},d(s){s&&m(e),E&&E.d(),M&&M.d(),S&&S.d(s),B&&B.d(),I&&I.d(s),D&&D.d(),y&&y.d(),i[44](null),i[46](null),W=!1,sl(re)}}}function Dl(i,e,l){let t,a,f,n;const o=["size","open","danger","alert","passiveModal","modalHeading","modalLabel","modalAriaLabel","iconDescription","hasForm","hasScrollingContent","primaryButtonText","primaryButtonDisabled","primaryButtonIcon","shouldSubmitOnEnter","secondaryButtonText","secondaryButtons","selectorPrimaryFocus","preventCloseOnClickOutside","id","ref"];let u=ie(e,o),d,{$$slots:h={},$$scope:k}=e,{size:H=void 0}=e,{open:C=!1}=e,{danger:$=!1}=e,{alert:J=!1}=e,{passiveModal:Q=!1}=e,{modalHeading:Y=void 0}=e,{modalLabel:_=void 0}=e,{modalAriaLabel:W=void 0}=e,{iconDescription:re="Close the modal"}=e,{hasForm:E=!1}=e,{hasScrollingContent:M=!1}=e,{primaryButtonText:ee=""}=e,{primaryButtonDisabled:K=!1}=e,{primaryButtonIcon:S=void 0}=e,{shouldSubmitOnEnter:B=!0}=e,{secondaryButtonText:X=""}=e,{secondaryButtons:I=[]}=e,{selectorPrimaryFocus:D="[data-modal-primary-focus]"}=e,{preventCloseOnClickOutside:y=!1}=e,{id:q="ccs-"+Math.random().toString(36)}=e,{ref:R=null}=e;const s=fl();let c=null,A=null,F=!1,Z=!1;function be(r){((r||A).querySelector(D)||c).focus()}const he=hl(C);ul(i,he,r=>l(52,d=r)),bl(he),dl(()=>{F?C||(F=!1,s("close")):C&&(F=!0,be(),s("open"))});function Ge(r){fe.call(this,i,r)}function Je(r){fe.call(this,i,r)}function Qe(r){fe.call(this,i,r)}function We(r){fe.call(this,i,r)}function Xe(r){fe.call(this,i,r)}function Ze(r){ge[r?"unshift":"push"](()=>{c=r,l(19,c)})}const we=()=>{l(0,C=!1)};function pe(r){ge[r?"unshift":"push"](()=>{c=r,l(19,c)})}const xe=()=>{l(0,C=!1)},$e=r=>{s("click:button--secondary",{text:r.text})},el=()=>{s("click:button--secondary",{text:X})},ll=()=>{s("submit"),s("click:button--primary")};function tl(r){ge[r?"unshift":"push"](()=>{A=r,l(20,A)})}const il=()=>{l(21,Z=!0)};function nl(r){ge[r?"unshift":"push"](()=>{R=r,l(1,R)})}const al=r=>{if(C)if(r.key==="Escape")l(0,C=!1);else if(r.key==="Tab"){const Ie=` + a[href], area[href], input:not([disabled]):not([tabindex='-1']), + button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), + textarea:not([disabled]):not([tabindex='-1']), + iframe, object, embed, *[tabindex]:not([tabindex='-1']):not([disabled]), *[contenteditable=true] +`,_e=Array.from(R.querySelectorAll(Ie));let se=_e.indexOf(document.activeElement);se===-1&&r.shiftKey&&(se=0),se+=_e.length+(r.shiftKey?-1:1),se%=_e.length,_e[se].focus(),r.preventDefault()}else B&&r.key==="Enter"&&!K&&(s("submit"),s("click:button--primary"))},ol=()=>{!Z&&!y&&l(0,C=!1),l(21,Z=!1)},rl=r=>{r.propertyName==="transform"&&s("transitionend",{open:C})};return i.$$set=r=>{l(54,e=U(U({},e),ne(r))),l(28,u=ie(e,o)),"size"in r&&l(2,H=r.size),"open"in r&&l(0,C=r.open),"danger"in r&&l(3,$=r.danger),"alert"in r&&l(4,J=r.alert),"passiveModal"in r&&l(5,Q=r.passiveModal),"modalHeading"in r&&l(6,Y=r.modalHeading),"modalLabel"in r&&l(7,_=r.modalLabel),"modalAriaLabel"in r&&l(29,W=r.modalAriaLabel),"iconDescription"in r&&l(8,re=r.iconDescription),"hasForm"in r&&l(9,E=r.hasForm),"hasScrollingContent"in r&&l(10,M=r.hasScrollingContent),"primaryButtonText"in r&&l(11,ee=r.primaryButtonText),"primaryButtonDisabled"in r&&l(12,K=r.primaryButtonDisabled),"primaryButtonIcon"in r&&l(13,S=r.primaryButtonIcon),"shouldSubmitOnEnter"in r&&l(14,B=r.shouldSubmitOnEnter),"secondaryButtonText"in r&&l(15,X=r.secondaryButtonText),"secondaryButtons"in r&&l(16,I=r.secondaryButtons),"selectorPrimaryFocus"in r&&l(30,D=r.selectorPrimaryFocus),"preventCloseOnClickOutside"in r&&l(17,y=r.preventCloseOnClickOutside),"id"in r&&l(18,q=r.id),"ref"in r&&l(1,R=r.ref),"$$scope"in r&&l(50,k=r.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&1&&cl(he,d=C,d),i.$$.dirty[0]&262144&&l(25,t=`bx--modal-header__label--modal-${q}`),i.$$.dirty[0]&262144&&l(24,a=`bx--modal-header__heading--modal-${q}`),i.$$.dirty[0]&262144&&l(23,f=`bx--modal-body--${q}`),l(22,n=_||e["aria-label"]||W||Y)},e=ne(e),[C,R,H,$,J,Q,Y,_,re,E,M,ee,K,S,B,X,I,y,q,c,A,Z,n,f,a,t,s,he,u,W,D,h,Ge,Je,Qe,We,Xe,Ze,we,pe,xe,$e,el,ll,tl,il,nl,al,ol,rl,k]}class Ol extends Me{constructor(e){super(),ze(this,e,Dl,zl,De,{size:2,open:0,danger:3,alert:4,passiveModal:5,modalHeading:6,modalLabel:7,modalAriaLabel:29,iconDescription:8,hasForm:9,hasScrollingContent:10,primaryButtonText:11,primaryButtonDisabled:12,primaryButtonIcon:13,shouldSubmitOnEnter:14,secondaryButtonText:15,secondaryButtons:16,selectorPrimaryFocus:30,preventCloseOnClickOutside:17,id:18,ref:1},null,[-1,-1])}}const Pl=Ol;function Ye(i){let e,l;return{c(){e=ae("title"),l=w(i[1])},l(t){e=oe(t,"title",{});var a=T(e);l=p(a,i[1]),a.forEach(m)},m(t,a){O(t,e,a),L(e,l)},p(t,a){a&2&&x(l,t[1])},d(t){t&&m(e)}}}function Sl(i){let e,l,t=i[1]&&Ye(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let n=0;n{l(5,e=U(U({},e),ne(d))),l(3,n=ie(e,f)),"size"in d&&l(0,o=d.size),"title"in d&&l(1,u=d.title)},i.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||u),l(2,a={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ne(e),[o,u,a,n,t]}class Rl extends Me{constructor(e){super(),ze(this,e,Il,Sl,De,{size:0,title:1})}}function Ke(i){let e,l;return{c(){e=ae("title"),l=w(i[1])},l(t){e=oe(t,"title",{});var a=T(e);l=p(a,i[1]),a.forEach(m)},m(t,a){O(t,e,a),L(e,l)},p(t,a){a&2&&x(l,t[1])},d(t){t&&m(e)}}}function Tl(i){let e,l,t=i[1]&&Ke(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let n=0;n{l(5,e=U(U({},e),ne(d))),l(3,n=ie(e,f)),"size"in d&&l(0,o=d.size),"title"in d&&l(1,u=d.title)},i.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||u),l(2,a={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ne(e),[o,u,a,n,t]}class Nl extends Me{constructor(e){super(),ze(this,e,Ll,Tl,De,{size:0,title:1})}}export{Rl as C,Pl as M,Nl as a}; diff --git a/lilac/web/_app/immutable/chunks/ComboBox.9e29cdb2.js b/lilac/web/_app/immutable/chunks/ComboBox.9e29cdb2.js new file mode 100644 index 0000000000000000000000000000000000000000..5ec85c4605fd4840d1763538a401a24ee5bc132f --- /dev/null +++ b/lilac/web/_app/immutable/chunks/ComboBox.9e29cdb2.js @@ -0,0 +1 @@ +import{S as p,i as $,s as ee,E as B,_ as Le,$ as ze,m as N,h as v,n as U,a0 as Pe,b as C,J as q,O as le,a1 as Ve,D as F,F as Z,q as ie,r as te,u as ne,G as he,k as V,a as Y,e as y,l as R,c as G,I as O,H as I,K as L,ak as Ce,L as me,M as ce,N as _e,g as W,d as A,P as re,Q as M,ad as oe,ai as ye,w as se,y as H,z as J,A as K,B as Q,v as ae,f as fe,C as xe,j as kl,t as Il,al as Re,U as vl,V as Tl,X as El,Y as Wl}from"./index.27e2a960.js";import{aN as Sl,aG as pe,aO as Cl,aP as Al}from"./Commands.2fa1e469.js";function Fe(l){let e,i;return{c(){e=Le("title"),i=ie(l[1])},l(t){e=ze(t,"title",{});var s=N(e);i=te(s,l[1]),s.forEach(v)},m(t,s){C(t,e,s),q(e,i)},p(t,s){s&2&&ne(i,t[1])},d(t){t&&v(e)}}}function Ll(l){let e,i,t=l[1]&&Fe(l),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],o={};for(let f=0;f{i(5,e=B(B({},e),Z(r))),i(3,f=F(e,o)),"size"in r&&i(0,a=r.size),"title"in r&&i(1,n=r.title)},l.$$.update=()=>{i(4,t=e["aria-label"]||e["aria-labelledby"]||n),i(2,s={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Z(e),[a,n,s,f,t]}class Bl extends p{constructor(e){super(),$(this,e,zl,Ll,ee,{size:0,title:1})}}const Dl=Bl;function Ue(l){let e,i;return{c(){e=V("div"),i=ie(l[6]),this.h()},l(t){e=R(t,"DIV",{});var s=N(e);i=te(s,l[6]),s.forEach(v),this.h()},h(){I(e,"bx--form-requirement",!0)},m(t,s){C(t,e,s),q(e,i)},p(t,s){s&64&&ne(i,t[6])},d(t){t&&v(e)}}}function qe(l){let e,i;return{c(){e=V("div"),i=ie(l[8]),this.h()},l(t){e=R(t,"DIV",{});var s=N(e);i=te(s,l[8]),s.forEach(v),this.h()},h(){I(e,"bx--form-requirement",!0)},m(t,s){C(t,e,s),q(e,i)},p(t,s){s&256&&ne(i,t[8])},d(t){t&&v(e)}}}function Ml(l){let e,i,t,s,o,f,a,n;const r=l[11].default,d=he(r,l,l[10],null);let u=[{role:"listbox"},{tabindex:"-1"},{"data-invalid":i=l[5]||void 0},l[9]],b={};for(let m=0;m{l.key==="Escape"&&l.stopPropagation()};function Pl(l,e,i){const t=["size","type","open","light","disabled","invalid","invalidText","warn","warnText"];let s=F(e,t),{$$slots:o={},$$scope:f}=e,{size:a=void 0}=e,{type:n="default"}=e,{open:r=!1}=e,{light:d=!1}=e,{disabled:u=!1}=e,{invalid:b=!1}=e,{invalidText:g=""}=e,{warn:_=!1}=e,{warnText:m=""}=e;function T(k){M.call(this,l,k)}function c(k){M.call(this,l,k)}return l.$$set=k=>{e=B(B({},e),Z(k)),i(9,s=F(e,t)),"size"in k&&i(0,a=k.size),"type"in k&&i(1,n=k.type),"open"in k&&i(2,r=k.open),"light"in k&&i(3,d=k.light),"disabled"in k&&i(4,u=k.disabled),"invalid"in k&&i(5,b=k.invalid),"invalidText"in k&&i(6,g=k.invalidText),"warn"in k&&i(7,_=k.warn),"warnText"in k&&i(8,m=k.warnText),"$$scope"in k&&i(10,f=k.$$scope)},[a,n,r,d,u,b,g,_,m,s,f,o,T,c]}class Vl extends p{constructor(e){super(),$(this,e,Pl,Ml,ee,{size:0,type:1,open:2,light:3,disabled:4,invalid:5,invalidText:6,warn:7,warnText:8})}}const Rl=Vl;function Fl(l){let e,i,t,s,o,f,a,n;const r=l[11].default,d=he(r,l,l[10],null);let u=[{role:l[2]},{"aria-expanded":l[6]},{"aria-owns":i=l[6]&&l[5]||void 0},{"aria-controls":t=l[6]&&l[5]||void 0},{"aria-disabled":l[1]},{"aria-label":s=l[6]?l[4]("close"):l[4]("open")},{tabindex:o=l[1]?"-1":l[3]},l[7]],b={};for(let g=0;gT[E]}=e,{id:_="ccs-"+Math.random().toString(36)}=e,{ref:m=null}=e;const T={[b.close]:"Close menu",[b.open]:"Open menu"},c=ye("MultiSelect");function k(E){M.call(this,l,E)}function w(E){M.call(this,l,E)}function ue(E){M.call(this,l,E)}function S(E){M.call(this,l,E)}function ge(E){M.call(this,l,E)}function ke(E){M.call(this,l,E)}function Ie(E){M.call(this,l,E)}function ve(E){se[E?"unshift":"push"](()=>{m=E,i(0,m)})}return l.$$set=E=>{i(22,e=B(B({},e),Z(E))),i(7,f=F(e,o)),"disabled"in E&&i(1,r=E.disabled),"role"in E&&i(2,d=E.role),"tabindex"in E&&i(3,u=E.tabindex),"translateWithId"in E&&i(4,g=E.translateWithId),"id"in E&&i(9,_=E.id),"ref"in E&&i(0,m=E.ref),"$$scope"in E&&i(10,n=E.$$scope)},l.$$.update=()=>{l.$$.dirty&1&&c&&m&&c.declareRef({key:"field",ref:m}),i(6,t=e["aria-expanded"]),l.$$.dirty&512&&i(5,s=`menu-${_}`)},e=Z(e),[m,r,d,u,g,s,t,f,b,_,n,a,k,w,ue,S,ge,ke,Ie,ve]}class ql extends p{constructor(e){super(),$(this,e,Ul,Fl,ee,{disabled:1,role:2,tabindex:3,translationIds:8,translateWithId:4,id:9,ref:0})}get translationIds(){return this.$$.ctx[8]}}const Ol=ql;function Yl(l){let e,i,t,s,o;const f=l[4].default,a=he(f,l,l[3],null);let n=[{role:"listbox"},{id:i="menu-"+l[1]},l[2]],r={};for(let d=0;d{n=u,i(0,n)})}return l.$$set=u=>{e=B(B({},e),Z(u)),i(2,s=F(e,t)),"id"in u&&i(1,a=u.id),"ref"in u&&i(0,n=u.ref),"$$scope"in u&&i(3,f=u.$$scope)},[n,a,s,f,o,r,d]}class Xl extends p{constructor(e){super(),$(this,e,Gl,Yl,ee,{id:1,ref:0})}}const jl=Xl;function Hl(l){let e,i,t,s,o;i=new Sl({props:{"aria-label":l[1],title:l[1]}});let f=[l[2]],a={};for(let n=0;nd[b]}=e;const d={[n.close]:"Close menu",[n.open]:"Open menu"};function u(b){M.call(this,l,b)}return l.$$set=b=>{e=B(B({},e),Z(b)),i(2,f=F(e,o)),"open"in b&&i(0,a=b.open),"translateWithId"in b&&i(4,r=b.translateWithId)},l.$$.update=()=>{l.$$.dirty&1&&i(5,t=a?n.close:n.open),l.$$.dirty&48&&i(1,s=(r==null?void 0:r(t))??d[t])},[a,s,f,n,r,t,u]}class Kl extends p{constructor(e){super(),$(this,e,Jl,Hl,ee,{open:0,translationIds:3,translateWithId:4})}get translationIds(){return this.$$.ctx[3]}}const Ql=Kl;function Zl(l){let e,i,t,s,o,f;const a=l[8].default,n=he(a,l,l[7],null);let r=[{role:"option"},{tabindex:"-1"},{"aria-selected":l[0]},{disabled:t=l[2]?!0:void 0},l[5]],d={};for(let u=0;u{b=c,i(3,b)})}return l.$$set=c=>{e=B(B({},e),Z(c)),i(5,f=F(e,o)),"active"in c&&i(0,r=c.active),"highlighted"in c&&i(1,d=c.highlighted),"disabled"in c&&i(2,u=c.disabled),"$$scope"in c&&i(7,n=c.$$scope)},l.$$.update=()=>{l.$$.dirty&8&&i(6,t=(b==null?void 0:b.offsetWidth)<(b==null?void 0:b.scrollWidth)),l.$$.dirty&72&&i(4,s=t?b==null?void 0:b.innerText:void 0),l.$$.dirty&10&&d&&b&&!b.matches(":hover")&&b.scrollIntoView({block:"nearest"})},[r,d,u,b,s,f,t,n,a,g,_,m,T]}class yl extends p{constructor(e){super(),$(this,e,wl,Zl,ee,{active:0,highlighted:1,disabled:2})}}const xl=yl;function pl(l){let e,i,t,s,o,f,a,n=l[1]!==void 0&&Oe(l);t=new pe({});let r=[{role:"button"},{"aria-label":l[4]},{title:l[4]},{tabindex:s=l[2]?"-1":"0"},l[6]],d={};for(let u=0;u{f[d]=null}),fe(),i=f[e],i?i.p(n,r):(i=f[e]=o[e](n),i.c()),W(i,1),i.m(t.parentNode,t))},i(n){s||(W(i),s=!0)},o(n){A(i),s=!1},d(n){f[e].d(n),n&&v(t)}}}function li(l,e,i){let t,s;const o=["selectionCount","disabled","translationIds","translateWithId","ref"];let f=F(e,o),{selectionCount:a=void 0}=e,{disabled:n=!1}=e;const r={clearAll:"clearAll",clearSelection:"clearSelection"};let{translateWithId:d=S=>b[S]}=e,{ref:u=null}=e;const b={[r.clearAll]:"Clear all selected items",[r.clearSelection]:"Clear selected item"},g=xe(),_=ye("MultiSelect");function m(S){se[S?"unshift":"push"](()=>{u=S,i(0,u)})}const T=S=>{n||g("clear",S)},c=S=>{!n&&S.key==="Enter"&&g("clear",S)};function k(S){se[S?"unshift":"push"](()=>{u=S,i(0,u)})}const w=S=>{n||g("clear",S)},ue=S=>{!n&&S.key==="Enter"&&g("clear",S)};return l.$$set=S=>{e=B(B({},e),Z(S)),i(6,f=F(e,o)),"selectionCount"in S&&i(1,a=S.selectionCount),"disabled"in S&&i(2,n=S.disabled),"translateWithId"in S&&i(7,d=S.translateWithId),"ref"in S&&i(0,u=S.ref)},l.$$.update=()=>{l.$$.dirty&1&&_&&u&&_.declareRef({key:"selection",ref:u}),l.$$.dirty&2&&i(8,t=a?r.clearAll:r.clearSelection),l.$$.dirty&384&&i(4,s=(d==null?void 0:d(t))??b[t])},[u,a,n,r,s,g,f,d,t,m,T,c,k,w,ue]}class ii extends p{constructor(e){super(),$(this,e,li,ei,ee,{selectionCount:1,disabled:2,translationIds:3,translateWithId:7,ref:0})}get translationIds(){return this.$$.ctx[3]}}const ti=ii;function Ye(l,e,i){const t=l.slice();return t[56]=e[i],t[58]=i,t}const ni=l=>({item:l[0]&16777216,index:l[0]&16777216}),Ge=l=>({item:l[56],index:l[58]});function Xe(l){let e,i;return{c(){e=V("label"),i=ie(l[9]),this.h()},l(t){e=R(t,"LABEL",{for:!0});var s=N(e);i=te(s,l[9]),s.forEach(v),this.h()},h(){U(e,"for",l[19]),I(e,"bx--label",!0),I(e,"bx--label--disabled",l[8])},m(t,s){C(t,e,s),q(e,i)},p(t,s){s[0]&512&&ne(i,t[9]),s[0]&524288&&U(e,"for",t[19]),s[0]&256&&I(e,"bx--label--disabled",t[8])},d(t){t&&v(e)}}}function je(l){let e,i;return e=new Cl({props:{class:"bx--list-box__invalid-icon"}}),{c(){H(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,s){K(e,t,s),i=!0},i(t){i||(W(e.$$.fragment,t),i=!0)},o(t){A(e.$$.fragment,t),i=!1},d(t){Q(e,t)}}}function He(l){let e,i;return e=new Al({props:{class:"bx--list-box__invalid-icon bx--list-box__invalid-icon--warning"}}),{c(){H(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,s){K(e,t,s),i=!0},i(t){i||(W(e.$$.fragment,t),i=!0)},o(t){A(e.$$.fragment,t),i=!1},d(t){Q(e,t)}}}function Je(l){let e,i;return e=new ti({props:{translateWithId:l[18],disabled:l[8],open:l[2]}}),e.$on("clear",l[46]),e.$on("clear",l[21]),{c(){H(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,s){K(e,t,s),i=!0},p(t,s){const o={};s[0]&262144&&(o.translateWithId=t[18]),s[0]&256&&(o.disabled=t[8]),s[0]&4&&(o.open=t[2]),e.$set(o)},i(t){i||(W(e.$$.fragment,t),i=!0)},o(t){A(e.$$.fragment,t),i=!1},d(t){Q(e,t)}}}function ai(l){let e,i,t,s,o,f,a,n,r,d,u,b=[{tabindex:"0"},{autocomplete:"off"},{"aria-autocomplete":"list"},{"aria-expanded":l[2]},{"aria-activedescendant":l[25]},{"aria-labelledby":l[26]},{"aria-disabled":l[8]},{"aria-controls":i=l[2]?l[27]:void 0},{"aria-owns":t=l[2]?l[27]:void 0},{disabled:l[8]},{placeholder:l[10]},{id:l[19]},{name:l[20]},l[30]],g={};for(let c=0;c{_=null}),fe()),!c[13]&&c[14]?m?k[0]&24576&&W(m,1):(m=He(),m.c(),W(m,1),m.m(f.parentNode,f)):m&&(ae(),A(m,1,1,()=>{m=null}),fe()),c[1]?T?(T.p(c,k),k[0]&2&&W(T,1)):(T=Je(c),T.c(),W(T,1),T.m(a.parentNode,a)):T&&(ae(),A(T,1,1,()=>{T=null}),fe());const w={};k[0]&131072&&(w.translateWithId=c[17]),k[0]&4&&(w.open=c[2]),n.$set(w)},i(c){r||(W(_),W(m),W(T),W(n.$$.fragment,c),r=!0)},o(c){A(_),A(m),A(T),A(n.$$.fragment,c),r=!1},d(c){c&&v(e),l[41](null),c&&v(s),_&&_.d(c),c&&v(o),m&&m.d(c),c&&v(f),T&&T.d(c),c&&v(a),Q(n,c),d=!1,re(u)}}}function Ke(l){let e,i,t;function s(f){l[51](f)}let o={"aria-label":l[28],id:l[19],$$slots:{default:[ui]},$$scope:{ctx:l}};return l[4]!==void 0&&(o.ref=l[4]),e=new jl({props:o}),se.push(()=>vl(e,"ref",s)),e.$on("scroll",l[52]),{c(){H(e.$$.fragment)},l(f){J(e.$$.fragment,f)},m(f,a){K(e,f,a),t=!0},p(f,a){const n={};a[0]&268435456&&(n["aria-label"]=f[28]),a[0]&524288&&(n.id=f[19]),a[0]&29360167|a[1]&4194304&&(n.$$scope={dirty:a,ctx:f}),!i&&a[0]&16&&(i=!0,n.ref=f[4],Tl(()=>i=!1)),e.$set(n)},i(f){t||(W(e.$$.fragment,f),t=!0)},o(f){A(e.$$.fragment,f),t=!1},d(f){Q(e,f)}}}function fi(l){let e=l[5](l[56])+"",i;return{c(){i=ie(e)},l(t){i=te(t,e)},m(t,s){C(t,i,s)},p(t,s){s[0]&16777248&&e!==(e=t[5](t[56])+"")&&ne(i,e)},d(t){t&&v(i)}}}function Qe(l){let e,i;return e=new Dl({props:{class:"bx--list-box__menu-item__selected-icon"}}),{c(){H(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,s){K(e,t,s),i=!0},i(t){i||(W(e.$$.fragment,t),i=!0)},o(t){A(e.$$.fragment,t),i=!1},d(t){Q(e,t)}}}function si(l){let e,i,t;const s=l[34].default,o=he(s,l,l[53],Ge),f=o||fi(l);let a=l[22]&&l[22].id===l[56].id&&Qe();return{c(){f&&f.c(),e=Y(),a&&a.c(),i=Y()},l(n){f&&f.l(n),e=G(n),a&&a.l(n),i=G(n)},m(n,r){f&&f.m(n,r),C(n,e,r),a&&a.m(n,r),C(n,i,r),t=!0},p(n,r){o?o.p&&(!t||r[0]&16777216|r[1]&4194304)&&me(o,s,n,n[53],t?_e(s,n[53],r,ni):ce(n[53]),Ge):f&&f.p&&(!t||r[0]&16777248)&&f.p(n,t?r:[-1,-1]),n[22]&&n[22].id===n[56].id?a?r[0]&20971520&&W(a,1):(a=Qe(),a.c(),W(a,1),a.m(i.parentNode,i)):a&&(ae(),A(a,1,1,()=>{a=null}),fe())},i(n){t||(W(f,n),W(a),t=!0)},o(n){A(f,n),A(a),t=!1},d(n){f&&f.d(n),n&&v(e),a&&a.d(n),n&&v(i)}}}function Ze(l,e){let i,t,s;function o(...a){return e[49](e[56],e[58],...a)}function f(){return e[50](e[56],e[58])}return t=new xl({props:{id:e[56].id,active:e[0]===e[56].id,highlighted:e[23]===e[58],disabled:e[56].disabled,$$slots:{default:[si]},$$scope:{ctx:e}}}),t.$on("click",o),t.$on("mouseenter",f),{key:l,first:null,c(){i=y(),H(t.$$.fragment),this.h()},l(a){i=y(),J(t.$$.fragment,a),this.h()},h(){this.first=i},m(a,n){C(a,i,n),K(t,a,n),s=!0},p(a,n){e=a;const r={};n[0]&16777216&&(r.id=e[56].id),n[0]&16777217&&(r.active=e[0]===e[56].id),n[0]&25165824&&(r.highlighted=e[23]===e[58]),n[0]&16777216&&(r.disabled=e[56].disabled),n[0]&20971552|n[1]&4194304&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(a){s||(W(t.$$.fragment,a),s=!0)},o(a){A(t.$$.fragment,a),s=!1},d(a){a&&v(i),Q(t,a)}}}function ui(l){let e=[],i=new Map,t,s,o=l[24];const f=a=>a[56].id;for(let a=0;a{o=null}),fe())},i(f){s||(W(e.$$.fragment,f),W(o),s=!0)},o(f){A(e.$$.fragment,f),A(o),s=!1},d(f){Q(e,f),f&&v(i),o&&o.d(f),f&&v(t)}}}function we(l){let e,i;return{c(){e=V("div"),i=ie(l[11]),this.h()},l(t){e=R(t,"DIV",{});var s=N(e);i=te(s,l[11]),s.forEach(v),this.h()},h(){I(e,"bx--form__helper-text",!0),I(e,"bx--form__helper-text--disabled",l[8])},m(t,s){C(t,e,s),q(e,i)},p(t,s){s[0]&2048&&ne(i,t[11]),s[0]&256&&I(e,"bx--form__helper-text--disabled",t[8])},d(t){t&&v(e)}}}function ri(l){let e,i,t,s,o,f,a,n=l[9]&&Xe(l);t=new Rl({props:{class:"bx--combo-box "+(l[6]==="top"&&"bx--list-box--up")+" "+(!l[13]&&l[14]&&"bx--combo-box--warning"),id:l[26],"aria-label":l[28],disabled:l[8],invalid:l[13],invalidText:l[12],open:l[2],light:l[16],size:l[7],warn:l[14],warnText:l[15],$$slots:{default:[oi]},$$scope:{ctx:l}}});let r=!l[13]&&l[11]&&!l[14]&&we(l);return{c(){e=V("div"),n&&n.c(),i=Y(),H(t.$$.fragment),s=Y(),r&&r.c(),this.h()},l(d){e=R(d,"DIV",{});var u=N(e);n&&n.l(u),i=G(u),J(t.$$.fragment,u),s=G(u),r&&r.l(u),u.forEach(v),this.h()},h(){I(e,"bx--list-box__wrapper",!0)},m(d,u){C(d,e,u),n&&n.m(e,null),q(e,i),K(t,e,null),q(e,s),r&&r.m(e,null),o=!0,f||(a=L(window,"click",l[40]),f=!0)},p(d,u){d[9]?n?n.p(d,u):(n=Xe(d),n.c(),n.m(e,i)):n&&(n.d(1),n=null);const b={};u[0]&24640&&(b.class="bx--combo-box "+(d[6]==="top"&&"bx--list-box--up")+" "+(!d[13]&&d[14]&&"bx--combo-box--warning")),u[0]&67108864&&(b.id=d[26]),u[0]&268435456&&(b["aria-label"]=d[28]),u[0]&256&&(b.disabled=d[8]),u[0]&8192&&(b.invalid=d[13]),u[0]&4096&&(b.invalidText=d[12]),u[0]&4&&(b.open=d[2]),u[0]&65536&&(b.light=d[16]),u[0]&128&&(b.size=d[7]),u[0]&16384&&(b.warn=d[14]),u[0]&32768&&(b.warnText=d[15]),u[0]&1608475967|u[1]&4194304&&(b.$$scope={dirty:u,ctx:d}),t.$set(b),!d[13]&&d[11]&&!d[14]?r?r.p(d,u):(r=we(d),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},i(d){o||(W(t.$$.fragment,d),o=!0)},o(d){A(t.$$.fragment,d),o=!1},d(d){d&&v(e),n&&n.d(),Q(t),r&&r.d(),f=!1,a()}}}function di(l,e,i){let t,s,o,f,a;const n=["items","itemToString","selectedId","value","direction","size","disabled","titleText","placeholder","helperText","invalidText","invalid","warn","warnText","light","open","shouldFilterItem","translateWithId","translateWithIdSelection","id","name","ref","listRef","clear"];let r=F(e,n),{$$slots:d={},$$scope:u}=e,{items:b=[]}=e,{itemToString:g=h=>h.text||h.id}=e,{selectedId:_=void 0}=e,{value:m=""}=e,{direction:T="bottom"}=e,{size:c=void 0}=e,{disabled:k=!1}=e,{titleText:w=""}=e,{placeholder:ue=""}=e,{helperText:S=""}=e,{invalidText:ge=""}=e,{invalid:ke=!1}=e,{warn:Ie=!1}=e,{warnText:ve=""}=e,{light:E=!1}=e,{open:D=!1}=e,{shouldFilterItem:Te=()=>!0}=e,{translateWithId:Be=void 0}=e,{translateWithIdSelection:De=void 0}=e,{id:Ee="ccs-"+Math.random().toString(36)}=e,{name:Me=void 0}=e,{ref:X=null}=e,{listRef:We=null}=e;const $e=xe();let j,de=null,P=-1;function Ae(h){let z=P+h,x=a!=null&&a.length?a:b;if(x.length===0)return;z<0?z=x.length-1:z>=x.length&&(z=0);let be=b[z].disabled;for(;be;)z=z+h,z<0?z=b.length-1:z>=b.length&&(z=0),be=b[z].disabled;i(23,P=z)}function Ne(h={}){i(33,de=null),i(23,P=-1),i(25,f=void 0),i(0,_=void 0),i(22,j=void 0),i(2,D=!1),i(1,m=""),(h==null?void 0:h.focus)!==!1&&(X==null||X.focus())}kl(()=>{D?(X.focus(),i(24,a=b.filter(h=>Te(h,m)))):(i(23,P=-1),i(24,a=[]),j?i(1,m=g(j)):(i(0,_=void 0),i(1,m=""),i(23,P=-1),i(25,f=void 0)))});function el(h){M.call(this,l,h)}function ll(h){M.call(this,l,h)}function il(h){M.call(this,l,h)}function tl(h){M.call(this,l,h)}function nl(h){M.call(this,l,h)}const al=({target:h})=>{D&&X&&!X.contains(h)&&i(2,D=!1)};function fl(h){se[h?"unshift":"push"](()=>{X=h,i(3,X)})}function sl(){m=this.value,i(1,m)}const ul=({target:h})=>{!D&&h.value.length>0&&i(2,D=!0),m.length||(Ne(),i(2,D=!0))},ol=h=>{var x;const{key:z}=h;if(["Enter","ArrowDown","ArrowUp"].includes(z)&&h.preventDefault(),z==="Enter"){if(i(2,D=!D),P>-1&&((x=a[P])==null?void 0:x.id)!==_)i(2,D=!1),a[P]&&(i(1,m=g(a[P])),i(22,j=a[P]),i(0,_=a[P].id));else{const be=a.find(Se=>Se.text.toLowerCase()===(m==null?void 0:m.toLowerCase())&&!Se.disabled)??a.find(Se=>!Se.disabled);be&&(i(2,D=!1),i(22,j=be),i(1,m=g(j)),i(0,_=j.id))}i(23,P=-1)}else z==="Tab"?i(2,D=!1):z==="ArrowDown"?Ae(1):z==="ArrowUp"?Ae(-1):z==="Escape"&&i(2,D=!1)},rl=({relatedTarget:h})=>{!D||!h||h&&!["INPUT","SELECT","TEXTAREA"].includes(h.tagName)&&h.getAttribute("role")!=="button"&&h.getAttribute("role")!=="searchbox"&&X.focus()};function dl(h){M.call(this,l,h)}const bl=h=>{k||(h.stopPropagation(),i(2,D=!D))},hl=async()=>{k||(i(2,D=!0),await Il(),X.focus())},ml=(h,z,x)=>{if(h.disabled){x.stopPropagation();return}i(0,_=h.id),i(2,D=!1),a[z]&&i(1,m=g(a[z]))},cl=(h,z)=>{h.disabled||i(23,P=z)};function _l(h){We=h,i(4,We)}function gl(h){M.call(this,l,h)}return l.$$set=h=>{i(55,e=B(B({},e),Z(h))),i(30,r=F(e,n)),"items"in h&&i(31,b=h.items),"itemToString"in h&&i(5,g=h.itemToString),"selectedId"in h&&i(0,_=h.selectedId),"value"in h&&i(1,m=h.value),"direction"in h&&i(6,T=h.direction),"size"in h&&i(7,c=h.size),"disabled"in h&&i(8,k=h.disabled),"titleText"in h&&i(9,w=h.titleText),"placeholder"in h&&i(10,ue=h.placeholder),"helperText"in h&&i(11,S=h.helperText),"invalidText"in h&&i(12,ge=h.invalidText),"invalid"in h&&i(13,ke=h.invalid),"warn"in h&&i(14,Ie=h.warn),"warnText"in h&&i(15,ve=h.warnText),"light"in h&&i(16,E=h.light),"open"in h&&i(2,D=h.open),"shouldFilterItem"in h&&i(32,Te=h.shouldFilterItem),"translateWithId"in h&&i(17,Be=h.translateWithId),"translateWithIdSelection"in h&&i(18,De=h.translateWithIdSelection),"id"in h&&i(19,Ee=h.id),"name"in h&&i(20,Me=h.name),"ref"in h&&i(3,X=h.ref),"listRef"in h&&i(4,We=h.listRef),"$$scope"in h&&i(53,u=h.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&2|l.$$.dirty[1]&3&&i(24,a=b.filter(h=>Te(h,m))),l.$$.dirty[0]&20971525|l.$$.dirty[1]&5&&(_!==void 0?de!==_&&(i(33,de=_),(a==null?void 0:a.length)===1&&D?(i(0,_=a[0].id),i(22,j=a[0]),i(23,P=-1),i(25,f=void 0)):i(22,j=b.find(h=>h.id===_)),$e("select",{selectedId:_,selectedItem:j})):(i(33,de=_),i(22,j=void 0))),i(28,t=e["aria-label"]||"Choose an item"),l.$$.dirty[0]&524288&&i(27,s=`menu-${Ee}`),l.$$.dirty[0]&524288&&i(26,o=`combo-${Ee}`),l.$$.dirty[0]&8388608|l.$$.dirty[1]&1&&i(25,f=b[P]?b[P].id:0)},e=Z(e),[_,m,D,X,We,g,T,c,k,w,ue,S,ge,ke,Ie,ve,E,Be,De,Ee,Me,Ne,j,P,a,f,o,s,t,Ae,r,b,Te,de,d,el,ll,il,tl,nl,al,fl,sl,ul,ol,rl,dl,bl,hl,ml,cl,_l,gl,u]}class bi extends p{constructor(e){super(),$(this,e,di,ri,ee,{items:31,itemToString:5,selectedId:0,value:1,direction:6,size:7,disabled:8,titleText:9,placeholder:10,helperText:11,invalidText:12,invalid:13,warn:14,warnText:15,light:16,open:2,shouldFilterItem:32,translateWithId:17,translateWithIdSelection:18,id:19,name:20,ref:3,listRef:4,clear:21},null,[-1,-1])}get clear(){return this.$$.ctx[21]}}const ci=bi;export{ci as C}; diff --git a/lilac/web/_app/immutable/chunks/Commands.2fa1e469.js b/lilac/web/_app/immutable/chunks/Commands.2fa1e469.js new file mode 100644 index 0000000000000000000000000000000000000000..f4307b8753501f7cd13a07f73cd462ea76858fa1 --- /dev/null +++ b/lilac/web/_app/immutable/chunks/Commands.2fa1e469.js @@ -0,0 +1,93 @@ +var vh=Object.defineProperty;var kh=(r,e,t)=>e in r?vh(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var js=(r,e,t)=>(kh(r,typeof e!="symbol"?e+"":e,t),t),Ls=(r,e,t)=>{if(!e.has(r))throw TypeError("Cannot "+t)};var He=(r,e,t)=>(Ls(r,e,"read from private field"),t?t.call(r):e.get(r)),Zt=(r,e,t)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,t)},St=(r,e,t,n)=>(Ls(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t);import{S as me,i as pe,s as he,e as G,b as P,a1 as ie,h as g,D as ge,E as Z,F as Te,Q as X,k as j,l as L,m as R,I as we,H as b,K as W,O as Ne,P as Ge,a4 as et,p as Cn,q as ce,r as de,J as I,v as ne,d as v,f as re,g as _,ah as hi,ai as bt,w as qe,G as Ie,x as je,a as $,y as U,c as ee,z as J,A as H,L as Re,M as De,N as Me,B as Q,W as Nt,u as ye,C as dt,n as T,_ as Ee,$ as Se,a0 as We,o as ln,ac as Eh,R as xe,T as Ut,t as Sh,j as Hl,a8 as Ur,ad as qs,al as Bs,am as mi,a2 as Oh,ae as wh,U as Ke,a7 as Ah,V as Je,ab as Ql,a5 as Fs,ap as Th,ar as Ph,aa as Ch}from"./index.27e2a960.js";import{w as ct,r as Hr,d as sc}from"./index.7efffca5.js";function zs(r,e,t){const n=r.slice();return n[2]=e[t].width,n}function Ih(r){let e,t,n,i,s=[r[4],{style:t="width: "+r[2]+";"+r[4].style}],l={};for(let o=0;o{e=Z(Z({},e),Te(C)),t(4,o=ge(e,l)),"lines"in C&&t(5,a=C.lines),"heading"in C&&t(0,u=C.heading),"paragraph"in C&&t(1,f=C.paragraph),"width"in C&&t(2,c=C.width)},r.$$.update=()=>{if(r.$$.dirty&4&&t(7,i=parseInt(c,10)),r.$$.dirty&4&&t(6,s=c.includes("px")),r.$$.dirty&238&&f)for(let C=0;C{e=Z(Z({},e),Te(p)),t(2,i=ge(e,n)),"href"in p&&t(0,s=p.href),"size"in p&&t(1,l=p.size)},[s,l,i,o,a,u,f,c,h,d,m]}class zh extends me{constructor(e){super(),pe(this,e,Fh,Bh,he,{href:0,size:1})}}const Vh=zh,Uh=r=>({props:r[0]&512}),Us=r=>({props:r[9]});function Hh(r){let e,t,n,i,s,l,o=r[8]&&Hs(r);const a=r[19].default,u=Ie(a,r,r[18],null);var f=r[2];function c(m){return{props:{"aria-hidden":"true",class:"bx--btn__icon",style:m[8]?"margin-left: 0":void 0,"aria-label":m[3]}}}f&&(n=je(f,c(r)));let h=[r[9]],d={};for(let m=0;m{Q(k,1)}),re()}f?(n=je(f,c(m)),U(n.$$.fragment),_(n.$$.fragment,1),H(n,e,null)):n=null}else f&&n.$set(y);we(e,d=Ne(h,[p[0]&512&&m[9]]))},i(m){i||(_(u,m),n&&_(n.$$.fragment,m),i=!0)},o(m){v(u,m),n&&v(n.$$.fragment,m),i=!1},d(m){m&&g(e),o&&o.d(),u&&u.d(m),n&&Q(n),r[33](null),s=!1,Ge(l)}}}function Qh(r){let e,t,n,i,s,l,o=r[8]&&Qs(r);const a=r[19].default,u=Ie(a,r,r[18],null);var f=r[2];function c(m){return{props:{"aria-hidden":"true",class:"bx--btn__icon","aria-label":m[3]}}}f&&(n=je(f,c(r)));let h=[r[9]],d={};for(let m=0;m{Q(k,1)}),re()}f?(n=je(f,c(m)),U(n.$$.fragment),_(n.$$.fragment,1),H(n,e,null)):n=null}else f&&n.$set(y);we(e,d=Ne(h,[p[0]&512&&m[9]]))},i(m){i||(_(u,m),n&&_(n.$$.fragment,m),i=!0)},o(m){v(u,m),n&&v(n.$$.fragment,m),i=!1},d(m){m&&g(e),o&&o.d(),u&&u.d(m),n&&Q(n),r[32](null),s=!1,Ge(l)}}}function Wh(r){let e;const t=r[19].default,n=Ie(t,r,r[18],Us);return{c(){n&&n.c()},l(i){n&&n.l(i)},m(i,s){n&&n.m(i,s),e=!0},p(i,s){n&&n.p&&(!e||s[0]&262656)&&Re(n,t,i,i[18],e?Me(t,i[18],s,Uh):De(i[18]),Us)},i(i){e||(_(n,i),e=!0)},o(i){v(n,i),e=!1},d(i){n&&n.d(i)}}}function Gh(r){let e,t;const n=[{href:r[7]},{size:r[1]},r[10],{style:r[8]&&"width: 3rem;"}];let i={};for(let s=0;s{l[f]=null}),re(),t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n))},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){l[e].d(a),a&&g(n)}}}function Jh(r,e,t){let n,i;const s=["kind","size","expressive","isSelected","icon","iconDescription","tooltipAlignment","tooltipPosition","as","skeleton","disabled","href","tabindex","type","ref"];let l=ge(e,s),{$$slots:o={},$$scope:a}=e;const u=hi(o);let{kind:f="primary"}=e,{size:c="default"}=e,{expressive:h=!1}=e,{isSelected:d=!1}=e,{icon:m=void 0}=e,{iconDescription:p=void 0}=e,{tooltipAlignment:y="center"}=e,{tooltipPosition:k="bottom"}=e,{as:O=!1}=e,{skeleton:E=!1}=e,{disabled:S=!1}=e,{href:C=void 0}=e,{tabindex:A="0"}=e,{type:D="button"}=e,{ref:w=null}=e;const B=bt("ComposedModal");function M(se){X.call(this,r,se)}function F(se){X.call(this,r,se)}function q(se){X.call(this,r,se)}function N(se){X.call(this,r,se)}function Y(se){X.call(this,r,se)}function V(se){X.call(this,r,se)}function K(se){X.call(this,r,se)}function oe(se){X.call(this,r,se)}function fe(se){X.call(this,r,se)}function x(se){X.call(this,r,se)}function te(se){X.call(this,r,se)}function ke(se){X.call(this,r,se)}function z(se){qe[se?"unshift":"push"](()=>{w=se,t(0,w)})}function _e(se){qe[se?"unshift":"push"](()=>{w=se,t(0,w)})}return r.$$set=se=>{e=Z(Z({},e),Te(se)),t(10,l=ge(e,s)),"kind"in se&&t(11,f=se.kind),"size"in se&&t(1,c=se.size),"expressive"in se&&t(12,h=se.expressive),"isSelected"in se&&t(13,d=se.isSelected),"icon"in se&&t(2,m=se.icon),"iconDescription"in se&&t(3,p=se.iconDescription),"tooltipAlignment"in se&&t(14,y=se.tooltipAlignment),"tooltipPosition"in se&&t(15,k=se.tooltipPosition),"as"in se&&t(4,O=se.as),"skeleton"in se&&t(5,E=se.skeleton),"disabled"in se&&t(6,S=se.disabled),"href"in se&&t(7,C=se.href),"tabindex"in se&&t(16,A=se.tabindex),"type"in se&&t(17,D=se.type),"ref"in se&&t(0,w=se.ref),"$$scope"in se&&t(18,a=se.$$scope)},r.$$.update=()=>{r.$$.dirty[0]&1&&B&&w&&B.declareRef(w),r.$$.dirty[0]&4&&t(8,n=m&&!u.default),t(9,i={type:C&&!S?void 0:D,tabindex:A,disabled:S===!0?!0:void 0,href:C,"aria-pressed":n&&f==="ghost"&&!C?d:void 0,...l,class:["bx--btn",h&&"bx--btn--expressive",(c==="small"&&!h||c==="sm"&&!h||c==="small"&&!h)&&"bx--btn--sm",c==="field"&&!h||c==="md"&&!h&&"bx--btn--md",c==="field"&&"bx--btn--field",c==="small"&&"bx--btn--sm",c==="lg"&&"bx--btn--lg",c==="xl"&&"bx--btn--xl",f&&`bx--btn--${f}`,S&&"bx--btn--disabled",n&&"bx--btn--icon-only",n&&"bx--tooltip__trigger",n&&"bx--tooltip--a11y",n&&k&&`bx--btn--icon-only--${k}`,n&&y&&`bx--tooltip--align-${y}`,n&&d&&f==="ghost"&&"bx--btn--selected",l.class].filter(Boolean).join(" ")})},[w,c,m,p,O,E,S,C,n,i,l,f,h,d,y,k,A,D,a,o,M,F,q,N,Y,V,K,oe,fe,x,te,ke,z,_e]}class Zh extends me{constructor(e){super(),pe(this,e,Jh,Kh,he,{kind:11,size:1,expressive:12,isSelected:13,icon:2,iconDescription:3,tooltipAlignment:14,tooltipPosition:15,as:4,skeleton:5,disabled:6,href:7,tabindex:16,type:17,ref:0},null,[-1,-1])}}const jn=Zh;function Yh(r){let e,t,n,i,s=[r[0]],l={};for(let o=0;o{e=Z(Z({},e),Te(u)),t(0,i=ge(e,n))},[i,s,l,o,a]}class xh extends me{constructor(e){super(),pe(this,e,Xh,Yh,he,{})}}const $h=xh,em=r=>({}),Ws=r=>({});function tm(r){let e,t,n,i,s,l,o,a;const u=r[19].labelText,f=Ie(u,r,r[18],Ws),c=f||rm(r);let h=[r[16]],d={};for(let m=0;m{l[f]=null}),re(),t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n))},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){l[e].d(a),a&&g(n)}}}function lm(r,e,t){let n,i;const s=["value","checked","group","indeterminate","skeleton","required","readonly","disabled","labelText","hideLabel","name","title","id","ref"];let l=ge(e,s),{$$slots:o={},$$scope:a}=e,{value:u=""}=e,{checked:f=!1}=e,{group:c=void 0}=e,{indeterminate:h=!1}=e,{skeleton:d=!1}=e,{required:m=!1}=e,{readonly:p=!1}=e,{disabled:y=!1}=e,{labelText:k=""}=e,{hideLabel:O=!1}=e,{name:E=""}=e,{title:S=void 0}=e,{id:C="ccs-"+Math.random().toString(36)}=e,{ref:A=null}=e;const D=dt();let w=null;function B(z){X.call(this,r,z)}function M(z){X.call(this,r,z)}function F(z){X.call(this,r,z)}function q(z){X.call(this,r,z)}function N(z){X.call(this,r,z)}function Y(z){X.call(this,r,z)}function V(z){X.call(this,r,z)}function K(z){X.call(this,r,z)}function oe(z){X.call(this,r,z)}function fe(z){X.call(this,r,z)}function x(z){qe[z?"unshift":"push"](()=>{A=z,t(3,A)})}const te=()=>{n?t(1,c=c.includes(u)?c.filter(z=>z!==u):[...c,u]):t(0,f=!f)};function ke(z){qe[z?"unshift":"push"](()=>{w=z,t(14,w)})}return r.$$set=z=>{e=Z(Z({},e),Te(z)),t(16,l=ge(e,s)),"value"in z&&t(4,u=z.value),"checked"in z&&t(0,f=z.checked),"group"in z&&t(1,c=z.group),"indeterminate"in z&&t(5,h=z.indeterminate),"skeleton"in z&&t(6,d=z.skeleton),"required"in z&&t(7,m=z.required),"readonly"in z&&t(8,p=z.readonly),"disabled"in z&&t(9,y=z.disabled),"labelText"in z&&t(10,k=z.labelText),"hideLabel"in z&&t(11,O=z.hideLabel),"name"in z&&t(12,E=z.name),"title"in z&&t(2,S=z.title),"id"in z&&t(13,C=z.id),"ref"in z&&t(3,A=z.ref),"$$scope"in z&&t(18,a=z.$$scope)},r.$$.update=()=>{r.$$.dirty[0]&2&&t(15,n=Array.isArray(c)),r.$$.dirty[0]&32787&&t(0,f=n?c.includes(u):f),r.$$.dirty[0]&1&&D("check",f),r.$$.dirty[0]&16384&&t(17,i=(w==null?void 0:w.offsetWidth)<(w==null?void 0:w.scrollWidth)),r.$$.dirty[0]&147460&&t(2,S=!S&&i?w==null?void 0:w.innerText:S)},[f,c,S,A,u,h,d,m,p,y,k,O,E,C,w,n,l,i,a,o,B,M,F,q,N,Y,V,K,oe,fe,x,te,ke]}class sm extends me{constructor(e){super(),pe(this,e,lm,im,he,{value:4,checked:0,group:1,indeterminate:5,skeleton:6,required:7,readonly:8,disabled:9,labelText:10,hideLabel:11,name:12,title:2,id:13,ref:3},null,[-1,-1])}}const om=sm;function Gs(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function am(r){let e,t,n,i=r[1]&&Gs(r),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],l={};for(let o=0;o{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class fm extends me{constructor(e){super(),pe(this,e,um,am,he,{size:0,title:1})}}const ur=fm;function Ks(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function cm(r){let e,t,n,i,s=r[1]&&Ks(r),l=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],o={};for(let a=0;a{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class hm extends me{constructor(e){super(),pe(this,e,dm,cm,he,{size:0,title:1})}}const pi=hm;function Js(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function mm(r){let e,t,n=r[1]&&Js(r),i=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let l=0;l{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class gm extends me{constructor(e){super(),pe(this,e,pm,mm,he,{size:0,title:1})}}const oc=gm;function Zs(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function bm(r){let e,t,n=r[1]&&Zs(r),i=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let l=0;l{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}let ym=class extends me{constructor(e){super(),pe(this,e,_m,bm,he,{size:0,title:1})}};const Wl=ym,tl=new Set,ac=ct(0),Ys=()=>ac.set([...tl].filter(r=>Eh(r)).length),vm=r=>ln(()=>{tl.add(r);const e=r.subscribe(Ys);return()=>{e(),tl.delete(r),Ys()}});ac.subscribe(r=>{typeof document<"u"&&document.body.classList.toggle("bx--body--with-modal-open",r>0)});function km(r){let e,t,n,i,s,l;const o=r[18].default,a=Ie(o,r,r[17],null);let u=[{role:"presentation"},r[14]],f={};for(let c=0;ct(9,o=te));let E=null,S=null,C=!1;Ut("ComposedModal",{closeModal:()=>{t(0,c=!1)},submit:()=>{k("submit"),k("click:button--primary")},declareRef:te=>{E=te},updateLabel:te=>{O.set(te)}});function A(te){var z;if(p==null)return;const ke=((z=te||S)==null?void 0:z.querySelector(p))||E;ke!=null&&ke.focus()}let D=!1;const w=ct(c);xe(r,w,te=>t(32,l=te)),vm(w),ln(()=>{Sh().then(()=>{A()})}),Hl(()=>{D?c||(D=!1,k("close")):c&&(D=!0,k("open"))});function B(te){X.call(this,r,te)}function M(te){X.call(this,r,te)}function F(te){X.call(this,r,te)}function q(te){X.call(this,r,te)}function N(te){X.call(this,r,te)}function Y(te){qe[te?"unshift":"push"](()=>{S=te,t(6,S)})}const V=()=>{t(7,C=!0)};function K(te){qe[te?"unshift":"push"](()=>{y=te,t(1,y)})}const oe=te=>{if(c){if(te.key==="Escape")t(0,c=!1);else if(te.key==="Tab"){const ke=` + a[href], area[href], input:not([disabled]):not([tabindex='-1']), + button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), + textarea:not([disabled]):not([tabindex='-1']), + iframe, object, embed, *[tabindex]:not([tabindex='-1']):not([disabled]), *[contenteditable=true] +`,z=Array.from(y.querySelectorAll(ke));let _e=z.indexOf(document.activeElement);_e===-1&&te.shiftKey&&(_e=0),_e+=z.length+(te.shiftKey?-1:1),_e%=z.length,z[_e].focus(),te.preventDefault()}}},fe=()=>{!C&&!d&&t(0,c=!1),t(7,C=!1)},x=({propertyName:te,currentTarget:ke})=>{te==="transform"&&k("transitionend",{open:c}),n&&(A(ke),t(8,n=!1))};return r.$$set=te=>{t(15,e=Z(Z({},e),Te(te))),t(14,s=ge(e,i)),"size"in te&&t(2,f=te.size),"open"in te&&t(0,c=te.open),"danger"in te&&t(3,h=te.danger),"preventCloseOnClickOutside"in te&&t(4,d=te.preventCloseOnClickOutside),"containerClass"in te&&t(5,m=te.containerClass),"selectorPrimaryFocus"in te&&t(16,p=te.selectorPrimaryFocus),"ref"in te&&t(1,y=te.ref),"$$scope"in te&&t(17,u=te.$$scope)},r.$$.update=()=>{r.$$.dirty[0]&1&&t(8,n=c),r.$$.dirty[0]&1&&Ur(w,l=c,l)},e=Te(e),[c,y,f,h,d,m,S,C,n,o,k,O,A,w,s,e,p,u,a,B,M,F,q,N,Y,V,K,oe,fe,x]}class Sm extends me{constructor(e){super(),pe(this,e,Em,km,he,{size:2,open:0,danger:3,preventCloseOnClickOutside:4,containerClass:5,selectorPrimaryFocus:16,ref:1},null,[-1,-1])}}const Gl=Sm;function Xs(r){let e,t;return{c(){e=j("h2"),t=ce(r[1]),this.h()},l(n){e=L(n,"H2",{class:!0});var i=R(e);t=de(i,r[1]),i.forEach(g),this.h()},h(){T(e,"class",r[2]),b(e,"bx--modal-header__label",!0),b(e,"bx--type-delta",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1]),i&4&&T(e,"class",n[2]),i&4&&b(e,"bx--modal-header__label",!0),i&4&&b(e,"bx--type-delta",!0)},d(n){n&&g(e)}}}function xs(r){let e,t;return{c(){e=j("h3"),t=ce(r[0]),this.h()},l(n){e=L(n,"H3",{class:!0});var i=R(e);t=de(i,r[0]),i.forEach(g),this.h()},h(){T(e,"class",r[3]),b(e,"bx--modal-header__heading",!0),b(e,"bx--type-beta",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&1&&ye(t,n[0]),i&8&&T(e,"class",n[3]),i&8&&b(e,"bx--modal-header__heading",!0),i&8&&b(e,"bx--type-beta",!0)},d(n){n&&g(e)}}}function Om(r){let e,t,n,i,s,l,o,a,u,f=r[1]&&Xs(r),c=r[0]&&xs(r);const h=r[10].default,d=Ie(h,r,r[9],null);l=new Wl({props:{size:20,class:"bx--modal-close__icon "+r[5],"aria-hidden":"true"}});let m=[r[8]],p={};for(let y=0;y{e=Z(Z({},e),Te(k)),t(8,i=ge(e,n)),"title"in k&&t(0,o=k.title),"label"in k&&t(1,a=k.label),"labelClass"in k&&t(2,u=k.labelClass),"titleClass"in k&&t(3,f=k.titleClass),"closeClass"in k&&t(4,c=k.closeClass),"closeIconClass"in k&&t(5,h=k.closeIconClass),"iconDescription"in k&&t(6,d=k.iconDescription),"$$scope"in k&&t(9,l=k.$$scope)},r.$$.update=()=>{r.$$.dirty&2&&p(a)},[o,a,u,f,c,h,d,m,i,l,s,y]}class Am extends me{constructor(e){super(),pe(this,e,wm,Om,he,{title:0,label:1,labelClass:2,titleClass:3,closeClass:4,closeIconClass:5,iconDescription:6})}}const Kl=Am;function $s(r){let e;return{c(){e=j("div"),this.h()},l(t){e=L(t,"DIV",{}),R(e).forEach(g),this.h()},h(){b(e,"bx--modal-content--overflow-indicator",!0)},m(t,n){P(t,e,n)},d(t){t&&g(e)}}}function Tm(r){let e,t,n,i,s,l;const o=r[4].default,a=Ie(o,r,r[3],null);let u=[{tabindex:t=r[1]?"0":void 0},{role:n=r[1]?"region":void 0},r[2]],f={};for(let h=0;h{e=Z(Z({},e),Te(u)),t(2,i=ge(e,n)),"hasForm"in u&&t(0,o=u.hasForm),"hasScrollingContent"in u&&t(1,a=u.hasScrollingContent),"$$scope"in u&&t(3,l=u.$$scope)},[o,a,i,l,s]}class Cm extends me{constructor(e){super(),pe(this,e,Pm,Tm,he,{hasForm:0,hasScrollingContent:1})}}const Jl=Cm;function eo(r,e,t){const n=r.slice();return n[16]=e[t],n}function Im(r){let e,t;return e=new jn({props:{kind:"secondary",class:r[6],$$slots:{default:[Dm]},$$scope:{ctx:r}}}),e.$on("click",r[14]),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&64&&(s.class=n[6]),i&32784&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function Rm(r){let e,t,n=r[5],i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l0?0:p[4]?1:-1}~(t=u(r))&&(n=a[t]=o[t](r));let f=r[0]&&no(r);const c=r[12].default,h=Ie(c,r,r[15],null);let d=[r[11]],m={};for(let p=0;p{a[k]=null}),re()),~t?(n=a[t],n?n.p(p,y):(n=a[t]=o[t](p),n.c()),_(n,1),n.m(e,i)):n=null),p[0]?f?(f.p(p,y),y&1&&_(f,1)):(f=no(p),f.c(),_(f,1),f.m(e,s)):f&&(ne(),v(f,1,1,()=>{f=null}),re()),h&&h.p&&(!l||y&32768)&&Re(h,c,p,p[15],l?Me(c,p[15],y,null):De(p[15]),null),we(e,m=Ne(d,[y&2048&&p[11]])),b(e,"bx--modal-footer",!0),b(e,"bx--modal-footer--three-button",p[5].length===2)},i(p){l||(_(n),_(f),_(h,p),l=!0)},o(p){v(n),v(f),v(h,p),l=!1},d(p){p&&g(e),~t&&a[t].d(),f&&f.d(),h&&h.d(p)}}}function Lm(r,e,t){const n=["primaryButtonText","primaryButtonIcon","primaryButtonDisabled","primaryClass","secondaryButtonText","secondaryButtons","secondaryClass","danger"];let i=ge(e,n),{$$slots:s={},$$scope:l}=e,{primaryButtonText:o=""}=e,{primaryButtonIcon:a=void 0}=e,{primaryButtonDisabled:u=!1}=e,{primaryClass:f=void 0}=e,{secondaryButtonText:c=""}=e,{secondaryButtons:h=[]}=e,{secondaryClass:d=void 0}=e,{danger:m=!1}=e;const p=dt(),{closeModal:y,submit:k}=bt("ComposedModal"),O=S=>{p("click:button--secondary",{text:S.text})},E=()=>{y(),p("click:button--secondary",{text:c})};return r.$$set=S=>{e=Z(Z({},e),Te(S)),t(11,i=ge(e,n)),"primaryButtonText"in S&&t(0,o=S.primaryButtonText),"primaryButtonIcon"in S&&t(1,a=S.primaryButtonIcon),"primaryButtonDisabled"in S&&t(2,u=S.primaryButtonDisabled),"primaryClass"in S&&t(3,f=S.primaryClass),"secondaryButtonText"in S&&t(4,c=S.secondaryButtonText),"secondaryButtons"in S&&t(5,h=S.secondaryButtons),"secondaryClass"in S&&t(6,d=S.secondaryClass),"danger"in S&&t(7,m=S.danger),"$$scope"in S&&t(15,l=S.$$scope)},[o,a,u,f,c,h,d,m,p,y,k,i,s,O,E,l]}class qm extends me{constructor(e){super(),pe(this,e,Lm,jm,he,{primaryButtonText:0,primaryButtonIcon:1,primaryButtonDisabled:2,primaryClass:3,secondaryButtonText:4,secondaryButtons:5,secondaryClass:6,danger:7})}}const Zl=qm;function ro(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function Bm(r){let e,t,n,i=r[1]&&ro(r),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],l={};for(let o=0;o{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class zm extends me{constructor(e){super(),pe(this,e,Fm,Bm,he,{size:0,title:1})}}const uc=zm;function Vm(r){let e,t,n,i,s,l,o,a,u,f=r[0]&&io(r),c=[{"aria-atomic":"true"},{"aria-labelledby":r[4]},{"aria-live":u=r[1]?"assertive":"off"},r[6]],h={};for(let d=0;d{e=Z(Z({},e),Te(c)),t(6,s=ge(e,i)),"small"in c&&t(0,l=c.small),"active"in c&&t(1,o=c.active),"withOverlay"in c&&t(2,a=c.withOverlay),"description"in c&&t(3,u=c.description),"id"in c&&t(4,f=c.id)},r.$$.update=()=>{r.$$.dirty&1&&t(5,n=l?"42":"44")},[l,o,a,u,f,n,s]}class Wm extends me{constructor(e){super(),pe(this,e,Qm,Hm,he,{small:0,active:1,withOverlay:2,description:3,id:4})}}const Gm=Wm;function so(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function Km(r){let e,t,n,i=r[1]&&so(r),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],l={};for(let o=0;o{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class Zm extends me{constructor(e){super(),pe(this,e,Jm,Km,he,{size:0,title:1})}}const fc=Zm;function Ym(r){let e,t;return e=new Gm({props:{small:!0,description:r[2],withOverlay:!1,active:r[0]==="active"}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&4&&(s.description=n[2]),i&1&&(s.active=n[0]==="active"),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function Xm(r){let e,t;return e=new uc({props:{class:"bx--inline-loading__checkmark-container",title:r[2]}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&4&&(s.title=n[2]),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function xm(r){let e,t;return e=new fc({props:{class:"bx--inline-loading--error",title:r[2]}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&4&&(s.title=n[2]),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function oo(r){let e,t;return{c(){e=j("div"),t=ce(r[1]),this.h()},l(n){e=L(n,"DIV",{});var i=R(e);t=de(i,r[1]),i.forEach(g),this.h()},h(){b(e,"bx--inline-loading__text",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function $m(r){let e,t,n,i,s,l,o,a;const u=[xm,Xm,Ym],f=[];function c(p,y){return p[0]==="error"?0:p[0]==="finished"?1:p[0]==="inactive"||p[0]==="active"?2:-1}~(n=c(r))&&(i=f[n]=u[n](r));let h=r[1]&&oo(r),d=[{"aria-live":"assertive"},r[3]],m={};for(let p=0;p{f[k]=null}),re()),~n?(i=f[n],i?i.p(p,y):(i=f[n]=u[n](p),i.c()),_(i,1),i.m(t,null)):i=null),p[1]?h?h.p(p,y):(h=oo(p),h.c(),h.m(e,null)):h&&(h.d(1),h=null),we(e,m=Ne(d,[{"aria-live":"assertive"},y&8&&p[3]])),b(e,"bx--inline-loading",!0)},i(p){l||(_(i),l=!0)},o(p){v(i),l=!1},d(p){p&&g(e),~n&&f[n].d(),h&&h.d(),o=!1,Ge(a)}}}function ep(r,e,t){const n=["status","description","iconDescription","successDelay"];let i=ge(e,n),{status:s="active"}=e,{description:l=void 0}=e,{iconDescription:o=void 0}=e,{successDelay:a=1500}=e;const u=dt();let f;ln(()=>()=>{clearTimeout(f)}),Hl(()=>{s==="finished"&&(f=setTimeout(()=>{u("success")},a))});function c(p){X.call(this,r,p)}function h(p){X.call(this,r,p)}function d(p){X.call(this,r,p)}function m(p){X.call(this,r,p)}return r.$$set=p=>{e=Z(Z({},e),Te(p)),t(3,i=ge(e,n)),"status"in p&&t(0,s=p.status),"description"in p&&t(1,l=p.description),"iconDescription"in p&&t(2,o=p.iconDescription),"successDelay"in p&&t(4,a=p.successDelay)},[s,l,o,i,a,c,h,d,m]}class tp extends me{constructor(e){super(),pe(this,e,ep,$m,he,{status:0,description:1,iconDescription:2,successDelay:4})}}const cc=tp;function np(r){let e,t,n,i,s;var l=r[1];function o(f){return{props:{size:20,title:f[2],class:(f[0]==="toast"&&"bx--toast-notification__close-icon")+" "+(f[0]==="inline"&&"bx--inline-notification__close-icon")}}}l&&(t=je(l,o(r)));let a=[{type:"button"},{"aria-label":r[3]},{title:r[3]},r[4]],u={};for(let f=0;f{Q(d,1)}),re()}l?(t=je(l,o(f)),U(t.$$.fragment),_(t.$$.fragment,1),H(t,e,null)):t=null}else l&&t.$set(h);we(e,u=Ne(a,[{type:"button"},(!n||c&8)&&{"aria-label":f[3]},(!n||c&8)&&{title:f[3]},c&16&&f[4]])),b(e,"bx--toast-notification__close-button",f[0]==="toast"),b(e,"bx--inline-notification__close-button",f[0]==="inline")},i(f){n||(t&&_(t.$$.fragment,f),n=!0)},o(f){t&&v(t.$$.fragment,f),n=!1},d(f){f&&g(e),t&&Q(t),i=!1,Ge(s)}}}function rp(r,e,t){const n=["notificationType","icon","title","iconDescription"];let i=ge(e,n),{notificationType:s="toast"}=e,{icon:l=Wl}=e,{title:o=void 0}=e,{iconDescription:a="Close icon"}=e;function u(d){X.call(this,r,d)}function f(d){X.call(this,r,d)}function c(d){X.call(this,r,d)}function h(d){X.call(this,r,d)}return r.$$set=d=>{e=Z(Z({},e),Te(d)),t(4,i=ge(e,n)),"notificationType"in d&&t(0,s=d.notificationType),"icon"in d&&t(1,l=d.icon),"title"in d&&t(2,o=d.title),"iconDescription"in d&&t(3,a=d.iconDescription)},[s,l,o,a,i,u,f,c,h]}class ip extends me{constructor(e){super(),pe(this,e,rp,np,he,{notificationType:0,icon:1,title:2,iconDescription:3})}}const lp=ip;function ao(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function sp(r){let e,t,n,i=r[1]&&ao(r),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],l={};for(let o=0;o{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class ap extends me{constructor(e){super(),pe(this,e,op,sp,he,{size:0,title:1})}}const up=ap;function uo(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function fp(r){let e,t,n,i=r[1]&&uo(r),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],l={};for(let o=0;o{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class dp extends me{constructor(e){super(),pe(this,e,cp,fp,he,{size:0,title:1})}}const hp=dp;function mp(r){let e,t,n;var i=r[3][r[0]];function s(l){return{props:{size:20,title:l[2],class:(l[1]==="toast"&&"bx--toast-notification__icon")+" "+(l[1]==="inline"&&"bx--inline-notification__icon")}}}return i&&(e=je(i,s(r))),{c(){e&&U(e.$$.fragment),t=G()},l(l){e&&J(e.$$.fragment,l),t=G()},m(l,o){e&&H(e,l,o),P(l,t,o),n=!0},p(l,[o]){const a={};if(o&4&&(a.title=l[2]),o&2&&(a.class=(l[1]==="toast"&&"bx--toast-notification__icon")+" "+(l[1]==="inline"&&"bx--inline-notification__icon")),o&1&&i!==(i=l[3][l[0]])){if(e){ne();const u=e;v(u.$$.fragment,1,0,()=>{Q(u,1)}),re()}i?(e=je(i,s(l)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else i&&e.$set(a)},i(l){n||(e&&_(e.$$.fragment,l),n=!0)},o(l){e&&v(e.$$.fragment,l),n=!1},d(l){l&&g(t),e&&Q(e,l)}}}function pp(r,e,t){let{kind:n="error"}=e,{notificationType:i="toast"}=e,{iconDescription:s}=e;const l={error:fc,"info-square":hp,info:up,success:uc,warning:ur,"warning-alt":pi};return r.$$set=o=>{"kind"in o&&t(0,n=o.kind),"notificationType"in o&&t(1,i=o.notificationType),"iconDescription"in o&&t(2,s=o.iconDescription)},[n,i,s,l]}class gp extends me{constructor(e){super(),pe(this,e,pp,mp,he,{kind:0,notificationType:1,iconDescription:2})}}const bp=gp,_p=r=>({}),fo=r=>({}),yp=r=>({}),co=r=>({}),vp=r=>({}),ho=r=>({});function mo(r){let e,t,n,i,s,l,o,a,u,f,c,h,d,m;n=new bp({props:{notificationType:"inline",kind:r[0],iconDescription:r[6]}});const p=r[13].title,y=Ie(p,r,r[12],ho),k=y||kp(r),O=r[13].subtitle,E=Ie(O,r,r[12],co),S=E||Ep(r),C=r[13].default,A=Ie(C,r,r[12],null),D=r[13].actions,w=Ie(D,r,r[12],fo);let B=!r[5]&&po(r),M=[{role:r[2]},{kind:r[0]},r[10]],F={};for(let q=0;q{B=null}),re()):B?(B.p(q,N),N&32&&_(B,1)):(B=po(q),B.c(),_(B,1),B.m(e,null)),we(e,F=Ne(M,[(!h||N&4)&&{role:q[2]},(!h||N&1)&&{kind:q[0]},N&1024&&q[10]])),b(e,"bx--inline-notification",!0),b(e,"bx--inline-notification--low-contrast",q[1]),b(e,"bx--inline-notification--hide-close-button",q[5]),b(e,"bx--inline-notification--error",q[0]==="error"),b(e,"bx--inline-notification--info",q[0]==="info"),b(e,"bx--inline-notification--info-square",q[0]==="info-square"),b(e,"bx--inline-notification--success",q[0]==="success"),b(e,"bx--inline-notification--warning",q[0]==="warning"),b(e,"bx--inline-notification--warning-alt",q[0]==="warning-alt")},i(q){h||(_(n.$$.fragment,q),_(k,q),_(S,q),_(A,q),_(w,q),_(B),h=!0)},o(q){v(n.$$.fragment,q),v(k,q),v(S,q),v(A,q),v(w,q),v(B),h=!1},d(q){q&&g(e),Q(n),k&&k.d(q),S&&S.d(q),A&&A.d(q),w&&w.d(q),B&&B.d(),d=!1,Ge(m)}}}function kp(r){let e;return{c(){e=ce(r[3])},l(t){e=de(t,r[3])},m(t,n){P(t,e,n)},p(t,n){n&8&&ye(e,t[3])},d(t){t&&g(e)}}}function Ep(r){let e;return{c(){e=ce(r[4])},l(t){e=de(t,r[4])},m(t,n){P(t,e,n)},p(t,n){n&16&&ye(e,t[4])},d(t){t&&g(e)}}}function po(r){let e,t;return e=new lp({props:{iconDescription:r[7],notificationType:"inline"}}),e.$on("click",r[9]),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&128&&(s.iconDescription=n[7]),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function Sp(r){let e,t,n=r[8]&&mo(r);return{c(){n&&n.c(),e=G()},l(i){n&&n.l(i),e=G()},m(i,s){n&&n.m(i,s),P(i,e,s),t=!0},p(i,[s]){i[8]?n?(n.p(i,s),s&256&&_(n,1)):(n=mo(i),n.c(),_(n,1),n.m(e.parentNode,e)):n&&(ne(),v(n,1,1,()=>{n=null}),re())},i(i){t||(_(n),t=!0)},o(i){v(n),t=!1},d(i){n&&n.d(i),i&&g(e)}}}function Op(r,e,t){const n=["kind","lowContrast","timeout","role","title","subtitle","hideCloseButton","statusIconDescription","closeButtonDescription"];let i=ge(e,n),{$$slots:s={},$$scope:l}=e,{kind:o="error"}=e,{lowContrast:a=!1}=e,{timeout:u=0}=e,{role:f="alert"}=e,{title:c=""}=e,{subtitle:h=""}=e,{hideCloseButton:d=!1}=e,{statusIconDescription:m=o+" icon"}=e,{closeButtonDescription:p="Close notification"}=e;const y=dt();let k=!0,O;function E(w){y("close",{timeout:w===!0},{cancelable:!0})&&t(8,k=!1)}ln(()=>(u&&(O=setTimeout(()=>E(!0),u)),()=>{clearTimeout(O)}));function S(w){X.call(this,r,w)}function C(w){X.call(this,r,w)}function A(w){X.call(this,r,w)}function D(w){X.call(this,r,w)}return r.$$set=w=>{e=Z(Z({},e),Te(w)),t(10,i=ge(e,n)),"kind"in w&&t(0,o=w.kind),"lowContrast"in w&&t(1,a=w.lowContrast),"timeout"in w&&t(11,u=w.timeout),"role"in w&&t(2,f=w.role),"title"in w&&t(3,c=w.title),"subtitle"in w&&t(4,h=w.subtitle),"hideCloseButton"in w&&t(5,d=w.hideCloseButton),"statusIconDescription"in w&&t(6,m=w.statusIconDescription),"closeButtonDescription"in w&&t(7,p=w.closeButtonDescription),"$$scope"in w&&t(12,l=w.$$scope)},[o,a,f,c,h,d,m,p,k,E,i,u,l,s,S,C,A,D]}class wp extends me{constructor(e){super(),pe(this,e,Op,Sp,he,{kind:0,lowContrast:1,timeout:11,role:2,title:3,subtitle:4,hideCloseButton:5,statusIconDescription:6,closeButtonDescription:7})}}const dc=wp;function go(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function Ap(r){let e,t,n=r[1]&&go(r),i=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let l=0;l{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class Pp extends me{constructor(e){super(),pe(this,e,Tp,Ap,he,{size:0,title:1})}}const Cp=Pp;function bo(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function Ip(r){let e,t,n=r[1]&&bo(r),i=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let l=0;l{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class Dp extends me{constructor(e){super(),pe(this,e,Rp,Ip,he,{size:0,title:1})}}const Mp=Dp;function _o(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function Np(r){let e,t,n=r[1]&&_o(r),i=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let l=0;l{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class Lp extends me{constructor(e){super(),pe(this,e,jp,Np,he,{size:0,title:1})}}const hc=Lp,qp=r=>({}),yo=r=>({});function vo(r){let e,t;const n=r[34].label,i=Ie(n,r,r[33],yo),s=i||Bp(r);return{c(){e=j("label"),s&&s.c(),this.h()},l(l){e=L(l,"LABEL",{for:!0});var o=R(e);s&&s.l(o),o.forEach(g),this.h()},h(){T(e,"for",r[18]),b(e,"bx--label",!0),b(e,"bx--label--disabled",r[8]),b(e,"bx--visually-hidden",r[17])},m(l,o){P(l,e,o),s&&s.m(e,null),t=!0},p(l,o){i?i.p&&(!t||o[1]&4)&&Re(i,n,l,l[33],t?Me(n,l[33],o,qp):De(l[33]),yo):s&&s.p&&(!t||o[0]&65536)&&s.p(l,t?o:[-1,-1]),(!t||o[0]&262144)&&T(e,"for",l[18]),(!t||o[0]&256)&&b(e,"bx--label--disabled",l[8]),(!t||o[0]&131072)&&b(e,"bx--visually-hidden",l[17])},i(l){t||(_(s,l),t=!0)},o(l){v(s,l),t=!1},d(l){l&&g(e),s&&s.d(l)}}}function Bp(r){let e;return{c(){e=ce(r[16])},l(t){e=de(t,r[16])},m(t,n){P(t,e,n)},p(t,n){n[0]&65536&&ye(e,t[16])},d(t){t&&g(e)}}}function Fp(r){let e,t,n,i=r[11]&&ko(),s=!r[11]&&r[13]&&Eo();return{c(){i&&i.c(),e=$(),s&&s.c(),t=G()},l(l){i&&i.l(l),e=ee(l),s&&s.l(l),t=G()},m(l,o){i&&i.m(l,o),P(l,e,o),s&&s.m(l,o),P(l,t,o),n=!0},p(l,o){l[11]?i?o[0]&2048&&_(i,1):(i=ko(),i.c(),_(i,1),i.m(e.parentNode,e)):i&&(ne(),v(i,1,1,()=>{i=null}),re()),!l[11]&&l[13]?s?o[0]&10240&&_(s,1):(s=Eo(),s.c(),_(s,1),s.m(t.parentNode,t)):s&&(ne(),v(s,1,1,()=>{s=null}),re())},i(l){n||(_(i),_(s),n=!0)},o(l){v(i),v(s),n=!1},d(l){i&&i.d(l),l&&g(e),s&&s.d(l),l&&g(t)}}}function zp(r){let e,t;return e=new hc({props:{class:"bx--text-input__readonly-icon"}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p:ie,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function ko(r){let e,t;return e=new ur({props:{class:"bx--number__invalid"}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function Eo(r){let e,t;return e=new pi({props:{class:"bx--number__invalid bx--number__invalid--warning"}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function So(r){let e,t,n,i,s,l,o,a,u,f,c,h,d,m,p,y,k;return n=new Mp({props:{class:"down-icon"}}),f=new Cp({props:{class:"up-icon"}}),{c(){e=j("div"),t=j("button"),U(n.$$.fragment),l=$(),o=j("div"),a=$(),u=j("button"),U(f.$$.fragment),d=$(),m=j("div"),this.h()},l(O){e=L(O,"DIV",{});var E=R(e);t=L(E,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var S=R(t);J(n.$$.fragment,S),S.forEach(g),l=ee(E),o=L(E,"DIV",{}),R(o).forEach(g),a=ee(E),u=L(E,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var C=R(u);J(f.$$.fragment,C),C.forEach(g),d=ee(E),m=L(E,"DIV",{}),R(m).forEach(g),E.forEach(g),this.h()},h(){T(t,"type","button"),T(t,"tabindex","-1"),T(t,"title",i=r[23]||r[10]),T(t,"aria-label",s=r[23]||r[10]),t.disabled=r[8],b(t,"bx--number__control-btn",!0),b(t,"down-icon",!0),b(o,"bx--number__rule-divider",!0),T(u,"type","button"),T(u,"tabindex","-1"),T(u,"title",c=r[24]||r[10]),T(u,"aria-label",h=r[24]||r[10]),u.disabled=r[8],b(u,"bx--number__control-btn",!0),b(u,"up-icon",!0),b(m,"bx--number__rule-divider",!0),b(e,"bx--number__controls",!0)},m(O,E){P(O,e,E),I(e,t),H(n,t,null),I(e,l),I(e,o),I(e,a),I(e,u),H(f,u,null),I(e,d),I(e,m),p=!0,y||(k=[W(t,"click",r[45]),W(u,"click",r[46])],y=!0)},p(O,E){(!p||E[0]&8389632&&i!==(i=O[23]||O[10]))&&T(t,"title",i),(!p||E[0]&8389632&&s!==(s=O[23]||O[10]))&&T(t,"aria-label",s),(!p||E[0]&256)&&(t.disabled=O[8]),(!p||E[0]&16778240&&c!==(c=O[24]||O[10]))&&T(u,"title",c),(!p||E[0]&16778240&&h!==(h=O[24]||O[10]))&&T(u,"aria-label",h),(!p||E[0]&256)&&(u.disabled=O[8])},i(O){p||(_(n.$$.fragment,O),_(f.$$.fragment,O),p=!0)},o(O){v(n.$$.fragment,O),v(f.$$.fragment,O),p=!1},d(O){O&&g(e),Q(n),Q(f),y=!1,Ge(k)}}}function Oo(r){let e,t;return{c(){e=j("div"),t=ce(r[15]),this.h()},l(n){e=L(n,"DIV",{});var i=R(e);t=de(i,r[15]),i.forEach(g),this.h()},h(){b(e,"bx--form__helper-text",!0),b(e,"bx--form__helper-text--disabled",r[8])},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&32768&&ye(t,n[15]),i[0]&256&&b(e,"bx--form__helper-text--disabled",n[8])},d(n){n&&g(e)}}}function wo(r){let e,t;return{c(){e=j("div"),t=ce(r[12]),this.h()},l(n){e=L(n,"DIV",{id:!0});var i=R(e);t=de(i,r[12]),i.forEach(g),this.h()},h(){T(e,"id",r[21]),b(e,"bx--form-requirement",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&4096&&ye(t,n[12]),i[0]&2097152&&T(e,"id",n[21])},d(n){n&&g(e)}}}function Ao(r){let e,t;return{c(){e=j("div"),t=ce(r[14]),this.h()},l(n){e=L(n,"DIV",{id:!0});var i=R(e);t=de(i,r[14]),i.forEach(g),this.h()},h(){T(e,"id",r[21]),b(e,"bx--form-requirement",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&16384&&ye(t,n[14]),i[0]&2097152&&T(e,"id",n[21])},d(n){n&&g(e)}}}function Vp(r){let e,t,n,i,s,l,o,a,u,f,c,h,d,m,p,y,k,O,E,S,C=(r[28].label||r[16])&&vo(r),A=[{type:"number"},{pattern:"[0-9]*"},{"aria-describedby":r[21]},{"data-invalid":l=r[22]||void 0},{"aria-invalid":o=r[22]||void 0},{"aria-label":a=r[16]?void 0:r[20]},{disabled:r[8]},{id:r[18]},{name:r[19]},{max:r[4]},{min:r[5]},{step:r[3]},{value:u=r[0]??""},{readOnly:r[7]},r[29]],D={};for(let V=0;V{C=null}),re()),we(s,D=Ne(A,[{type:"number"},{pattern:"[0-9]*"},(!O||K[0]&2097152)&&{"aria-describedby":V[21]},(!O||K[0]&4194304&&l!==(l=V[22]||void 0))&&{"data-invalid":l},(!O||K[0]&4194304&&o!==(o=V[22]||void 0))&&{"aria-invalid":o},(!O||K[0]&1114112&&a!==(a=V[16]?void 0:V[20]))&&{"aria-label":a},(!O||K[0]&256)&&{disabled:V[8]},(!O||K[0]&262144)&&{id:V[18]},(!O||K[0]&524288)&&{name:V[19]},(!O||K[0]&16)&&{max:V[4]},(!O||K[0]&32)&&{min:V[5]},(!O||K[0]&8)&&{step:V[3]},(!O||K[0]&1&&u!==(u=V[0]??"")&&s.value!==u)&&{value:u},(!O||K[0]&128)&&{readOnly:V[7]},K[0]&536870912&&V[29]]));let oe=c;c=M(V),c===oe?B[c].p(V,K):(ne(),v(B[oe],1,1,()=>{B[oe]=null}),re(),h=B[c],h?h.p(V,K):(h=B[c]=w[c](V),h.c()),_(h,1),h.m(i,d)),V[9]?F&&(ne(),v(F,1,1,()=>{F=null}),re()):F?(F.p(V,K),K[0]&512&&_(F,1)):(F=So(V),F.c(),_(F,1),F.m(i,null)),(!O||K[0]&10240)&&b(i,"bx--number__input-wrapper--warning",!V[11]&&V[13]),!V[22]&&!V[13]&&V[15]?q?q.p(V,K):(q=Oo(V),q.c(),q.m(t,p)):q&&(q.d(1),q=null),V[22]?N?N.p(V,K):(N=wo(V),N.c(),N.m(t,y)):N&&(N.d(1),N=null),!V[22]&&V[13]?Y?Y.p(V,K):(Y=Ao(V),Y.c(),Y.m(t,null)):Y&&(Y.d(1),Y=null),(!O||K[0]&4194304&&k!==(k=V[22]||void 0))&&T(t,"data-invalid",k),(!O||K[0]&128)&&b(t,"bx--number--readonly",V[7]),(!O||K[0]&64)&&b(t,"bx--number--light",V[6]),(!O||K[0]&131072)&&b(t,"bx--number--nolabel",V[17]),(!O||K[0]&512)&&b(t,"bx--number--nosteppers",V[9]),(!O||K[0]&4)&&b(t,"bx--number--sm",V[2]==="sm"),(!O||K[0]&4)&&b(t,"bx--number--xl",V[2]==="xl")},i(V){O||(_(C),_(h),_(F),O=!0)},o(V){v(C),v(h),v(F),O=!1},d(V){V&&g(e),C&&C.d(),r[44](null),B[c].d(),F&&F.d(),q&&q.d(),N&&N.d(),Y&&Y.d(),E=!1,Ge(S)}}}function To(r){return r!=""?Number(r):null}function Up(r,e,t){let n,i,s,l,o;const a=["size","value","step","max","min","light","readonly","allowEmpty","disabled","hideSteppers","iconDescription","invalid","invalidText","warn","warnText","helperText","label","hideLabel","translateWithId","translationIds","id","name","ref"];let u=ge(e,a),{$$slots:f={},$$scope:c}=e;const h=hi(f);let{size:d=void 0}=e,{value:m=null}=e,{step:p=1}=e,{max:y=void 0}=e,{min:k=void 0}=e,{light:O=!1}=e,{readonly:E=!1}=e,{allowEmpty:S=!1}=e,{disabled:C=!1}=e,{hideSteppers:A=!1}=e,{iconDescription:D=""}=e,{invalid:w=!1}=e,{invalidText:B=""}=e,{warn:M=!1}=e,{warnText:F=""}=e,{helperText:q=""}=e,{label:N=""}=e,{hideLabel:Y=!1}=e,{translateWithId:V=ue=>te[ue]}=e;const K={increment:"increment",decrement:"decrement"};let{id:oe="ccs-"+Math.random().toString(36)}=e,{name:fe=void 0}=e,{ref:x=null}=e;const te={[K.increment]:"Increment number",[K.decrement]:"Decrement number"},ke=dt();function z(ue){ue?x.stepUp():x.stepDown(),t(0,m=+x.value),ke("input",m),ke("change",m)}function _e({target:ue}){t(0,m=To(ue.value)),ke("input",m)}function se({target:ue}){ke("change",To(ue.value))}function Ye(ue){X.call(this,r,ue)}function lt(ue){X.call(this,r,ue)}function Et(ue){X.call(this,r,ue)}function yt(ue){X.call(this,r,ue)}function Pe(ue){X.call(this,r,ue)}function le(ue){X.call(this,r,ue)}function ae(ue){X.call(this,r,ue)}function vt(ue){X.call(this,r,ue)}function Sn(ue){X.call(this,r,ue)}function tt(ue){qe[ue?"unshift":"push"](()=>{x=ue,t(1,x)})}const On=()=>{z(!1)},Pt=()=>{z(!0)};return r.$$set=ue=>{t(49,e=Z(Z({},e),Te(ue))),t(29,u=ge(e,a)),"size"in ue&&t(2,d=ue.size),"value"in ue&&t(0,m=ue.value),"step"in ue&&t(3,p=ue.step),"max"in ue&&t(4,y=ue.max),"min"in ue&&t(5,k=ue.min),"light"in ue&&t(6,O=ue.light),"readonly"in ue&&t(7,E=ue.readonly),"allowEmpty"in ue&&t(30,S=ue.allowEmpty),"disabled"in ue&&t(8,C=ue.disabled),"hideSteppers"in ue&&t(9,A=ue.hideSteppers),"iconDescription"in ue&&t(10,D=ue.iconDescription),"invalid"in ue&&t(11,w=ue.invalid),"invalidText"in ue&&t(12,B=ue.invalidText),"warn"in ue&&t(13,M=ue.warn),"warnText"in ue&&t(14,F=ue.warnText),"helperText"in ue&&t(15,q=ue.helperText),"label"in ue&&t(16,N=ue.label),"hideLabel"in ue&&t(17,Y=ue.hideLabel),"translateWithId"in ue&&t(31,V=ue.translateWithId),"id"in ue&&t(18,oe=ue.id),"name"in ue&&t(19,fe=ue.name),"ref"in ue&&t(1,x=ue.ref),"$$scope"in ue&&t(33,c=ue.$$scope)},r.$$.update=()=>{r.$$.dirty[1]&1&&t(24,n=V("increment")),r.$$.dirty[1]&1&&t(23,i=V("decrement")),r.$$.dirty[0]&1073744049&&t(22,s=w&&!E||!S&&m==null||m>y||typeof m=="number"&&m({}),Po=r=>({});function Co(r){let e,t;const n=r[26].labelText,i=Ie(n,r,r[25],Po),s=i||Gp(r);return{c(){e=j("label"),s&&s.c(),this.h()},l(l){e=L(l,"LABEL",{for:!0});var o=R(e);s&&s.l(o),o.forEach(g),this.h()},h(){T(e,"for",r[5]),b(e,"bx--label",!0),b(e,"bx--visually-hidden",r[14]),b(e,"bx--label--disabled",r[4])},m(l,o){P(l,e,o),s&&s.m(e,null),t=!0},p(l,o){i?i.p&&(!t||o[0]&33554432)&&Re(i,n,l,l[25],t?Me(n,l[25],o,Wp):De(l[25]),Po):s&&s.p&&(!t||o[0]&8192)&&s.p(l,t?o:[-1,-1]),(!t||o[0]&32)&&T(e,"for",l[5]),(!t||o[0]&16384)&&b(e,"bx--visually-hidden",l[14]),(!t||o[0]&16)&&b(e,"bx--label--disabled",l[4])},i(l){t||(_(s,l),t=!0)},o(l){v(s,l),t=!1},d(l){l&&g(e),s&&s.d(l)}}}function Gp(r){let e;return{c(){e=ce(r[13])},l(t){e=de(t,r[13])},m(t,n){P(t,e,n)},p(t,n){n[0]&8192&&ye(e,t[13])},d(t){t&&g(e)}}}function Io(r){let e,t,n,i,s,l,o,a,u,f,c,h,d,m,p,y,k;const O=r[26].default,E=Ie(O,r,r[25],null);u=new oc({props:{class:"bx--select__arrow"}});let S=r[7]&&Ro(),C=r[7]&&Do(r),A=r[11]&&Mo(r);return{c(){e=j("div"),t=j("div"),n=j("select"),E&&E.c(),a=$(),U(u.$$.fragment),f=$(),S&&S.c(),h=$(),C&&C.c(),d=$(),A&&A.c(),m=G(),this.h()},l(D){e=L(D,"DIV",{});var w=R(e);t=L(w,"DIV",{"data-invalid":!0});var B=R(t);n=L(B,"SELECT",{"aria-describedby":!0,"aria-invalid":!0,id:!0,name:!0});var M=R(n);E&&E.l(M),M.forEach(g),a=ee(B),J(u.$$.fragment,B),f=ee(B),S&&S.l(B),B.forEach(g),h=ee(w),C&&C.l(w),w.forEach(g),d=ee(D),A&&A.l(D),m=G(),this.h()},h(){T(n,"aria-describedby",i=r[7]?r[16]:void 0),T(n,"aria-invalid",s=r[7]||void 0),n.disabled=l=r[4]||void 0,n.required=o=r[15]||void 0,T(n,"id",r[5]),T(n,"name",r[6]),b(n,"bx--select-input",!0),b(n,"bx--select-input--sm",r[1]==="sm"),b(n,"bx--select-input--xl",r[1]==="xl"),T(t,"data-invalid",c=r[7]||void 0),b(t,"bx--select-input__wrapper",!0),b(e,"bx--select-input--inline__wrapper",!0)},m(D,w){P(D,e,w),I(e,t),I(t,n),E&&E.m(n,null),r[35](n),I(t,a),H(u,t,null),I(t,f),S&&S.m(t,null),I(e,h),C&&C.m(e,null),P(D,d,w),A&&A.m(D,w),P(D,m,w),p=!0,y||(k=[W(n,"change",r[21]),W(n,"change",r[31]),W(n,"input",r[32]),W(n,"focus",r[33]),W(n,"blur",r[34])],y=!0)},p(D,w){E&&E.p&&(!p||w[0]&33554432)&&Re(E,O,D,D[25],p?Me(O,D[25],w,null):De(D[25]),null),(!p||w[0]&65664&&i!==(i=D[7]?D[16]:void 0))&&T(n,"aria-describedby",i),(!p||w[0]&128&&s!==(s=D[7]||void 0))&&T(n,"aria-invalid",s),(!p||w[0]&16&&l!==(l=D[4]||void 0))&&(n.disabled=l),(!p||w[0]&32768&&o!==(o=D[15]||void 0))&&(n.required=o),(!p||w[0]&32)&&T(n,"id",D[5]),(!p||w[0]&64)&&T(n,"name",D[6]),(!p||w[0]&2)&&b(n,"bx--select-input--sm",D[1]==="sm"),(!p||w[0]&2)&&b(n,"bx--select-input--xl",D[1]==="xl"),D[7]?S?w[0]&128&&_(S,1):(S=Ro(),S.c(),_(S,1),S.m(t,null)):S&&(ne(),v(S,1,1,()=>{S=null}),re()),(!p||w[0]&128&&c!==(c=D[7]||void 0))&&T(t,"data-invalid",c),D[7]?C?C.p(D,w):(C=Do(D),C.c(),C.m(e,null)):C&&(C.d(1),C=null),D[11]?A?A.p(D,w):(A=Mo(D),A.c(),A.m(m.parentNode,m)):A&&(A.d(1),A=null)},i(D){p||(_(E,D),_(u.$$.fragment,D),_(S),p=!0)},o(D){v(E,D),v(u.$$.fragment,D),v(S),p=!1},d(D){D&&g(e),E&&E.d(D),r[35](null),Q(u),S&&S.d(),C&&C.d(),D&&g(d),A&&A.d(D),D&&g(m),y=!1,Ge(k)}}}function Ro(r){let e,t;return e=new ur({props:{class:"bx--select__invalid-icon"}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function Do(r){let e,t;return{c(){e=j("div"),t=ce(r[8]),this.h()},l(n){e=L(n,"DIV",{id:!0});var i=R(e);t=de(i,r[8]),i.forEach(g),this.h()},h(){T(e,"id",r[16]),b(e,"bx--form-requirement",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&256&&ye(t,n[8]),i[0]&65536&&T(e,"id",n[16])},d(n){n&&g(e)}}}function Mo(r){let e,t;return{c(){e=j("div"),t=ce(r[11]),this.h()},l(n){e=L(n,"DIV",{});var i=R(e);t=de(i,r[11]),i.forEach(g),this.h()},h(){b(e,"bx--form__helper-text",!0),b(e,"bx--form__helper-text--disabled",r[4])},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&2048&&ye(t,n[11]),i[0]&16&&b(e,"bx--form__helper-text--disabled",n[4])},d(n){n&&g(e)}}}function No(r){let e,t,n,i,s,l,o,a,u,f,c,h,d,m,p,y,k,O;const E=r[26].default,S=Ie(E,r,r[25],null);a=new oc({props:{class:"bx--select__arrow"}});let C=r[7]&&jo(),A=!r[7]&&r[9]&&Lo(),D=!r[7]&&r[11]&&qo(r),w=r[7]&&Bo(r),B=!r[7]&&r[9]&&Fo(r);return{c(){e=j("div"),t=j("select"),S&&S.c(),o=$(),U(a.$$.fragment),u=$(),C&&C.c(),f=$(),A&&A.c(),h=$(),D&&D.c(),d=$(),w&&w.c(),m=$(),B&&B.c(),p=G(),this.h()},l(M){e=L(M,"DIV",{"data-invalid":!0});var F=R(e);t=L(F,"SELECT",{id:!0,name:!0,"aria-describedby":!0,"aria-invalid":!0});var q=R(t);S&&S.l(q),q.forEach(g),o=ee(F),J(a.$$.fragment,F),u=ee(F),C&&C.l(F),f=ee(F),A&&A.l(F),F.forEach(g),h=ee(M),D&&D.l(M),d=ee(M),w&&w.l(M),m=ee(M),B&&B.l(M),p=G(),this.h()},h(){T(t,"id",r[5]),T(t,"name",r[6]),T(t,"aria-describedby",n=r[7]?r[16]:void 0),t.disabled=i=r[4]||void 0,t.required=s=r[15]||void 0,T(t,"aria-invalid",l=r[7]||void 0),b(t,"bx--select-input",!0),b(t,"bx--select-input--sm",r[1]==="sm"),b(t,"bx--select-input--xl",r[1]==="xl"),T(e,"data-invalid",c=r[7]||void 0),b(e,"bx--select-input__wrapper",!0)},m(M,F){P(M,e,F),I(e,t),S&&S.m(t,null),r[36](t),I(e,o),H(a,e,null),I(e,u),C&&C.m(e,null),I(e,f),A&&A.m(e,null),P(M,h,F),D&&D.m(M,F),P(M,d,F),w&&w.m(M,F),P(M,m,F),B&&B.m(M,F),P(M,p,F),y=!0,k||(O=[W(t,"change",r[21]),W(t,"change",r[27]),W(t,"input",r[28]),W(t,"focus",r[29]),W(t,"blur",r[30])],k=!0)},p(M,F){S&&S.p&&(!y||F[0]&33554432)&&Re(S,E,M,M[25],y?Me(E,M[25],F,null):De(M[25]),null),(!y||F[0]&32)&&T(t,"id",M[5]),(!y||F[0]&64)&&T(t,"name",M[6]),(!y||F[0]&65664&&n!==(n=M[7]?M[16]:void 0))&&T(t,"aria-describedby",n),(!y||F[0]&16&&i!==(i=M[4]||void 0))&&(t.disabled=i),(!y||F[0]&32768&&s!==(s=M[15]||void 0))&&(t.required=s),(!y||F[0]&128&&l!==(l=M[7]||void 0))&&T(t,"aria-invalid",l),(!y||F[0]&2)&&b(t,"bx--select-input--sm",M[1]==="sm"),(!y||F[0]&2)&&b(t,"bx--select-input--xl",M[1]==="xl"),M[7]?C?F[0]&128&&_(C,1):(C=jo(),C.c(),_(C,1),C.m(e,f)):C&&(ne(),v(C,1,1,()=>{C=null}),re()),!M[7]&&M[9]?A?F[0]&640&&_(A,1):(A=Lo(),A.c(),_(A,1),A.m(e,null)):A&&(ne(),v(A,1,1,()=>{A=null}),re()),(!y||F[0]&128&&c!==(c=M[7]||void 0))&&T(e,"data-invalid",c),!M[7]&&M[11]?D?D.p(M,F):(D=qo(M),D.c(),D.m(d.parentNode,d)):D&&(D.d(1),D=null),M[7]?w?w.p(M,F):(w=Bo(M),w.c(),w.m(m.parentNode,m)):w&&(w.d(1),w=null),!M[7]&&M[9]?B?B.p(M,F):(B=Fo(M),B.c(),B.m(p.parentNode,p)):B&&(B.d(1),B=null)},i(M){y||(_(S,M),_(a.$$.fragment,M),_(C),_(A),y=!0)},o(M){v(S,M),v(a.$$.fragment,M),v(C),v(A),y=!1},d(M){M&&g(e),S&&S.d(M),r[36](null),Q(a),C&&C.d(),A&&A.d(),M&&g(h),D&&D.d(M),M&&g(d),w&&w.d(M),M&&g(m),B&&B.d(M),M&&g(p),k=!1,Ge(O)}}}function jo(r){let e,t;return e=new ur({props:{class:"bx--select__invalid-icon"}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function Lo(r){let e,t;return e=new pi({props:{class:"bx--select__invalid-icon bx--select__invalid-icon--warning"}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function qo(r){let e,t;return{c(){e=j("div"),t=ce(r[11]),this.h()},l(n){e=L(n,"DIV",{});var i=R(e);t=de(i,r[11]),i.forEach(g),this.h()},h(){b(e,"bx--form__helper-text",!0),b(e,"bx--form__helper-text--disabled",r[4])},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&2048&&ye(t,n[11]),i[0]&16&&b(e,"bx--form__helper-text--disabled",n[4])},d(n){n&&g(e)}}}function Bo(r){let e,t;return{c(){e=j("div"),t=ce(r[8]),this.h()},l(n){e=L(n,"DIV",{id:!0});var i=R(e);t=de(i,r[8]),i.forEach(g),this.h()},h(){T(e,"id",r[16]),b(e,"bx--form-requirement",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&256&&ye(t,n[8]),i[0]&65536&&T(e,"id",n[16])},d(n){n&&g(e)}}}function Fo(r){let e,t;return{c(){e=j("div"),t=ce(r[10]),this.h()},l(n){e=L(n,"DIV",{id:!0});var i=R(e);t=de(i,r[10]),i.forEach(g),this.h()},h(){T(e,"id",r[16]),b(e,"bx--form-requirement",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&1024&&ye(t,n[10]),i[0]&65536&&T(e,"id",n[16])},d(n){n&&g(e)}}}function Kp(r){let e,t,n,i,s,l=!r[12]&&Co(r),o=r[2]&&Io(r),a=!r[2]&&No(r),u=[r[22]],f={};for(let c=0;c{l=null}),re()):l?(l.p(c,h),h[0]&4096&&_(l,1)):(l=Co(c),l.c(),_(l,1),l.m(t,n)),c[2]?o?(o.p(c,h),h[0]&4&&_(o,1)):(o=Io(c),o.c(),_(o,1),o.m(t,i)):o&&(ne(),v(o,1,1,()=>{o=null}),re()),c[2]?a&&(ne(),v(a,1,1,()=>{a=null}),re()):a?(a.p(c,h),h[0]&4&&_(a,1)):(a=No(c),a.c(),_(a,1),a.m(t,null)),(!s||h[0]&4)&&b(t,"bx--select--inline",c[2]),(!s||h[0]&8)&&b(t,"bx--select--light",c[3]),(!s||h[0]&128)&&b(t,"bx--select--invalid",c[7]),(!s||h[0]&16)&&b(t,"bx--select--disabled",c[4]),(!s||h[0]&512)&&b(t,"bx--select--warning",c[9]),we(e,f=Ne(u,[h[0]&4194304&&c[22]])),b(e,"bx--form-item",!0)},i(c){s||(_(l),_(o),_(a),s=!0)},o(c){v(l),v(o),v(a),s=!1},d(c){c&&g(e),l&&l.d(),o&&o.d(),a&&a.d()}}}function Jp(r,e,t){let n;const i=["selected","size","inline","light","disabled","id","name","invalid","invalidText","warn","warnText","helperText","noLabel","labelText","hideLabel","ref","required"];let s=ge(e,i),l,o,a,u,{$$slots:f={},$$scope:c}=e,{selected:h=void 0}=e,{size:d=void 0}=e,{inline:m=!1}=e,{light:p=!1}=e,{disabled:y=!1}=e,{id:k="ccs-"+Math.random().toString(36)}=e,{name:O=void 0}=e,{invalid:E=!1}=e,{invalidText:S=""}=e,{warn:C=!1}=e,{warnText:A=""}=e,{helperText:D=""}=e,{noLabel:w=!1}=e,{labelText:B=""}=e,{hideLabel:M=!1}=e,{ref:F=null}=e,{required:q=!1}=e;const N=dt(),Y=ct(h);xe(r,Y,le=>t(38,o=le));const V=ct(null);xe(r,V,le=>t(40,u=le));const K=ct(null);xe(r,K,le=>t(24,l=le));const oe=ct({});xe(r,oe,le=>t(39,a=le)),Ut("Select",{selectedValue:Y,setDefaultValue:(le,ae)=>{l===null?(V.set(le),K.set(ae)):u===le&&Y.set(ae),oe.update(vt=>({...vt,[ae]:typeof ae}))}});const fe=({target:le})=>{let ae=le.value;a[ae]==="number"&&(ae=Number(ae)),Y.set(ae)};let x;Hl(()=>{t(23,h=o),x!==void 0&&h!==x&&N("update",o),x=h});function te(le){X.call(this,r,le)}function ke(le){X.call(this,r,le)}function z(le){X.call(this,r,le)}function _e(le){X.call(this,r,le)}function se(le){X.call(this,r,le)}function Ye(le){X.call(this,r,le)}function lt(le){X.call(this,r,le)}function Et(le){X.call(this,r,le)}function yt(le){qe[le?"unshift":"push"](()=>{F=le,t(0,F)})}function Pe(le){qe[le?"unshift":"push"](()=>{F=le,t(0,F)})}return r.$$set=le=>{e=Z(Z({},e),Te(le)),t(22,s=ge(e,i)),"selected"in le&&t(23,h=le.selected),"size"in le&&t(1,d=le.size),"inline"in le&&t(2,m=le.inline),"light"in le&&t(3,p=le.light),"disabled"in le&&t(4,y=le.disabled),"id"in le&&t(5,k=le.id),"name"in le&&t(6,O=le.name),"invalid"in le&&t(7,E=le.invalid),"invalidText"in le&&t(8,S=le.invalidText),"warn"in le&&t(9,C=le.warn),"warnText"in le&&t(10,A=le.warnText),"helperText"in le&&t(11,D=le.helperText),"noLabel"in le&&t(12,w=le.noLabel),"labelText"in le&&t(13,B=le.labelText),"hideLabel"in le&&t(14,M=le.hideLabel),"ref"in le&&t(0,F=le.ref),"required"in le&&t(15,q=le.required),"$$scope"in le&&t(25,c=le.$$scope)},r.$$.update=()=>{r.$$.dirty[0]&32&&t(16,n=`error-${k}`),r.$$.dirty[0]&25165824&&Y.set(h??l)},[F,d,m,p,y,k,O,E,S,C,A,D,w,B,M,q,n,Y,V,K,oe,fe,s,h,l,c,f,te,ke,z,_e,se,Ye,lt,Et,yt,Pe]}class Zp extends me{constructor(e){super(),pe(this,e,Jp,Kp,he,{selected:23,size:1,inline:2,light:3,disabled:4,id:5,name:6,invalid:7,invalidText:8,warn:9,warnText:10,helperText:11,noLabel:12,labelText:13,hideLabel:14,ref:0,required:15},null,[-1,-1])}}const sn=Zp;function Yp(r){let e,t=(r[1]||r[0])+"",n,i,s;return{c(){e=j("option"),n=ce(t),this.h()},l(l){e=L(l,"OPTION",{class:!0,style:!0});var o=R(e);n=de(o,t),o.forEach(g),this.h()},h(){e.__value=r[0],e.value=e.__value,e.disabled=r[3],e.hidden=r[2],e.selected=r[4],T(e,"class",i=r[5].class),T(e,"style",s=r[5].style),b(e,"bx--select-option",!0)},m(l,o){P(l,e,o),I(e,n)},p(l,[o]){o&3&&t!==(t=(l[1]||l[0])+"")&&ye(n,t),o&1&&(e.__value=l[0],e.value=e.__value),o&8&&(e.disabled=l[3]),o&4&&(e.hidden=l[2]),o&16&&(e.selected=l[4]),o&32&&i!==(i=l[5].class)&&T(e,"class",i),o&32&&s!==(s=l[5].style)&&T(e,"style",s),o&32&&b(e,"bx--select-option",!0)},i:ie,o:ie,d(l){l&&g(e)}}}function Xp(r,e,t){const n=["value","text","hidden","disabled"];let i=ge(e,n),{value:s=""}=e,{text:l=""}=e,{hidden:o=!1}=e,{disabled:a=!1}=e;const u="ccs-"+Math.random().toString(36),f=bt("Select")||bt("TimePickerSelect");let c=!1;const h=f.selectedValue.subscribe(d=>{t(4,c=d===s)});return ln(()=>()=>h()),r.$$set=d=>{e=Z(Z({},e),Te(d)),t(5,i=ge(e,n)),"value"in d&&t(0,s=d.value),"text"in d&&t(1,l=d.text),"hidden"in d&&t(2,o=d.hidden),"disabled"in d&&t(3,a=d.disabled)},r.$$.update=()=>{var d;r.$$.dirty&1&&((d=f==null?void 0:f.setDefaultValue)==null||d.call(f,u,s))},[s,l,o,a,c,i]}class xp extends me{constructor(e){super(),pe(this,e,Xp,Yp,he,{value:0,text:1,hidden:2,disabled:3})}}const on=xp;function zo(r){let e;return{c(){e=j("span"),this.h()},l(t){e=L(t,"SPAN",{}),R(e).forEach(g),this.h()},h(){b(e,"bx--label",!0),b(e,"bx--skeleton",!0)},m(t,n){P(t,e,n)},d(t){t&&g(e)}}}function $p(r){let e,t,n,i,s,l,o=!r[0]&&zo(),a=[r[1]],u={};for(let f=0;f{e=Z(Z({},e),Te(f)),t(1,i=ge(e,n)),"hideLabel"in f&&t(0,s=f.hideLabel)},[s,i,l,o,a,u]}class tg extends me{constructor(e){super(),pe(this,e,eg,$p,he,{hideLabel:0})}}const Yl=tg;function ng(r){let e,t;const n=r[4].default,i=Ie(n,r,r[3],null);let s=[{label:r[1]},{disabled:r[0]},r[2]],l={};for(let o=0;o{e=Z(Z({},e),Te(u)),t(2,i=ge(e,n)),"disabled"in u&&t(0,o=u.disabled),"label"in u&&t(1,a=u.label),"$$scope"in u&&t(3,l=u.$$scope)},[o,a,i,l,s]}class ig extends me{constructor(e){super(),pe(this,e,rg,ng,he,{disabled:0,label:1})}}const mc=ig;function lg(r){let e,t,n,i=[r[1]],s={};for(let l=0;l{e=Z(Z({},e),Te(f)),t(1,i=ge(e,n)),"size"in f&&t(0,s=f.size)},[s,i,l,o,a,u]}class og extends me{constructor(e){super(),pe(this,e,sg,lg,he,{size:0})}}const ag=og,ug=r=>({}),Vo=r=>({}),fg=r=>({}),Uo=r=>({props:{class:"bx--tag__label"}}),cg=r=>({}),Ho=r=>({props:{class:"bx--tag__label"}});function dg(r){let e,t,n,i,s,l,o=(r[11].icon||r[7])&&Qo(r);const a=r[13].default,u=Ie(a,r,r[12],null);let f=[{id:r[8]},r[10]],c={};for(let h=0;h{o=null}),re()),u&&u.p&&(!i||d&4096)&&Re(u,a,h,h[12],i?Me(a,h[12],d,null):De(h[12]),null),we(e,c=Ne(f,[(!i||d&256)&&{id:h[8]},d&1024&&h[10]])),b(e,"bx--tag",!0),b(e,"bx--tag--disabled",h[3]),b(e,"bx--tag--sm",h[1]==="sm"),b(e,"bx--tag--red",h[0]==="red"),b(e,"bx--tag--magenta",h[0]==="magenta"),b(e,"bx--tag--purple",h[0]==="purple"),b(e,"bx--tag--blue",h[0]==="blue"),b(e,"bx--tag--cyan",h[0]==="cyan"),b(e,"bx--tag--teal",h[0]==="teal"),b(e,"bx--tag--green",h[0]==="green"),b(e,"bx--tag--gray",h[0]==="gray"),b(e,"bx--tag--cool-gray",h[0]==="cool-gray"),b(e,"bx--tag--warm-gray",h[0]==="warm-gray"),b(e,"bx--tag--high-contrast",h[0]==="high-contrast"),b(e,"bx--tag--outline",h[0]==="outline")},i(h){i||(_(o),_(u,h),i=!0)},o(h){v(o),v(u,h),i=!1},d(h){h&&g(e),o&&o.d(),u&&u.d(h),s=!1,Ge(l)}}}function hg(r){let e,t,n,i,s,l,o,a=(r[11].icon||r[7])&&Wo(r);const u=r[13].default,f=Ie(u,r,r[12],null);let c=[{type:"button"},{id:r[8]},{disabled:r[3]},{"aria-disabled":r[3]},{tabindex:i=r[3]?"-1":void 0},r[10]],h={};for(let d=0;d{a=null}),re()),f&&f.p&&(!s||m&4096)&&Re(f,u,d,d[12],s?Me(u,d[12],m,null):De(d[12]),null),we(e,h=Ne(c,[{type:"button"},(!s||m&256)&&{id:d[8]},(!s||m&8)&&{disabled:d[3]},(!s||m&8)&&{"aria-disabled":d[3]},(!s||m&8&&i!==(i=d[3]?"-1":void 0))&&{tabindex:i},m&1024&&d[10]])),b(e,"bx--tag",!0),b(e,"bx--tag--interactive",!0),b(e,"bx--tag--disabled",d[3]),b(e,"bx--tag--sm",d[1]==="sm"),b(e,"bx--tag--red",d[0]==="red"),b(e,"bx--tag--magenta",d[0]==="magenta"),b(e,"bx--tag--purple",d[0]==="purple"),b(e,"bx--tag--blue",d[0]==="blue"),b(e,"bx--tag--cyan",d[0]==="cyan"),b(e,"bx--tag--teal",d[0]==="teal"),b(e,"bx--tag--green",d[0]==="green"),b(e,"bx--tag--gray",d[0]==="gray"),b(e,"bx--tag--cool-gray",d[0]==="cool-gray"),b(e,"bx--tag--warm-gray",d[0]==="warm-gray"),b(e,"bx--tag--high-contrast",d[0]==="high-contrast"),b(e,"bx--tag--outline",d[0]==="outline")},i(d){s||(_(a),_(f,d),s=!0)},o(d){v(a),v(f,d),s=!1},d(d){d&&g(e),a&&a.d(),f&&f.d(d),l=!1,Ge(o)}}}function mg(r){let e,t,n,i,s,l,o;const a=r[13].default,u=Ie(a,r,r[12],Ho),f=u||_g(r);i=new Wl({});let c=[{"aria-label":r[6]},{id:r[8]},r[10]],h={};for(let d=0;d{Q(a,1)}),re()}i?(e=je(i,s()),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}},i(l){n||(e&&_(e.$$.fragment,l),n=!0)},o(l){e&&v(e.$$.fragment,l),n=!1},d(l){l&&g(t),e&&Q(e,l)}}}function Wo(r){let e,t;const n=r[13].icon,i=Ie(n,r,r[12],Uo),s=i||bg(r);return{c(){e=j("div"),s&&s.c(),this.h()},l(l){e=L(l,"DIV",{});var o=R(e);s&&s.l(o),o.forEach(g),this.h()},h(){b(e,"bx--tag__custom-icon",!0)},m(l,o){P(l,e,o),s&&s.m(e,null),t=!0},p(l,o){i?i.p&&(!t||o&4096)&&Re(i,n,l,l[12],t?Me(n,l[12],o,fg):De(l[12]),Uo):s&&s.p&&(!t||o&128)&&s.p(l,t?o:-1)},i(l){t||(_(s,l),t=!0)},o(l){v(s,l),t=!1},d(l){l&&g(e),s&&s.d(l)}}}function bg(r){let e,t,n;var i=r[7];function s(l){return{}}return i&&(e=je(i,s())),{c(){e&&U(e.$$.fragment),t=G()},l(l){e&&J(e.$$.fragment,l),t=G()},m(l,o){e&&H(e,l,o),P(l,t,o),n=!0},p(l,o){if(o&128&&i!==(i=l[7])){if(e){ne();const a=e;v(a.$$.fragment,1,0,()=>{Q(a,1)}),re()}i?(e=je(i,s()),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}},i(l){n||(e&&_(e.$$.fragment,l),n=!0)},o(l){e&&v(e.$$.fragment,l),n=!1},d(l){l&&g(t),e&&Q(e,l)}}}function _g(r){let e,t;return{c(){e=j("span"),t=ce(r[0]),this.h()},l(n){e=L(n,"SPAN",{});var i=R(e);t=de(i,r[0]),i.forEach(g),this.h()},h(){b(e,"bx--tag__label",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&1&&ye(t,n[0])},d(n){n&&g(e)}}}function yg(r){let e,t,n,i;const s=[pg,mg,hg,dg],l=[];function o(a,u){return a[5]?0:a[2]?1:a[4]?2:3}return e=o(r),t=l[e]=s[e](r),{c(){t.c(),n=G()},l(a){t.l(a),n=G()},m(a,u){l[e].m(a,u),P(a,n,u),i=!0},p(a,[u]){let f=e;e=o(a),e===f?l[e].p(a,u):(ne(),v(l[f],1,1,()=>{l[f]=null}),re(),t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n))},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){l[e].d(a),a&&g(n)}}}function vg(r,e,t){const n=["type","size","filter","disabled","interactive","skeleton","title","icon","id"];let i=ge(e,n),{$$slots:s={},$$scope:l}=e;const o=hi(s);let{type:a=void 0}=e,{size:u="default"}=e,{filter:f=!1}=e,{disabled:c=!1}=e,{interactive:h=!1}=e,{skeleton:d=!1}=e,{title:m="Clear filter"}=e,{icon:p=void 0}=e,{id:y="ccs-"+Math.random().toString(36)}=e;const k=dt();function O(x){X.call(this,r,x)}function E(x){X.call(this,r,x)}function S(x){X.call(this,r,x)}function C(x){X.call(this,r,x)}function A(x){X.call(this,r,x)}function D(x){X.call(this,r,x)}function w(x){X.call(this,r,x)}function B(x){X.call(this,r,x)}function M(x){X.call(this,r,x)}function F(x){X.call(this,r,x)}function q(x){X.call(this,r,x)}function N(x){X.call(this,r,x)}function Y(x){X.call(this,r,x)}function V(x){X.call(this,r,x)}function K(x){X.call(this,r,x)}function oe(x){X.call(this,r,x)}const fe=()=>{k("close")};return r.$$set=x=>{e=Z(Z({},e),Te(x)),t(10,i=ge(e,n)),"type"in x&&t(0,a=x.type),"size"in x&&t(1,u=x.size),"filter"in x&&t(2,f=x.filter),"disabled"in x&&t(3,c=x.disabled),"interactive"in x&&t(4,h=x.interactive),"skeleton"in x&&t(5,d=x.skeleton),"title"in x&&t(6,m=x.title),"icon"in x&&t(7,p=x.icon),"id"in x&&t(8,y=x.id),"$$scope"in x&&t(12,l=x.$$scope)},[a,u,f,c,h,d,m,p,y,k,i,o,l,s,O,E,S,C,A,D,w,B,M,F,q,N,Y,V,K,oe,fe]}class kg extends me{constructor(e){super(),pe(this,e,vg,yg,he,{type:0,size:1,filter:2,disabled:3,interactive:4,skeleton:5,title:6,icon:7,id:8})}}const Eg=kg,Sg=r=>({}),Go=r=>({}),Og=r=>({}),Ko=r=>({});function Jo(r){let e,t,n,i=r[9]&&Zo(r),s=!r[22]&&r[6]&&Yo(r);return{c(){e=j("div"),i&&i.c(),t=$(),s&&s.c(),this.h()},l(l){e=L(l,"DIV",{});var o=R(e);i&&i.l(o),t=ee(o),s&&s.l(o),o.forEach(g),this.h()},h(){b(e,"bx--text-input__label-helper-wrapper",!0)},m(l,o){P(l,e,o),i&&i.m(e,null),I(e,t),s&&s.m(e,null),n=!0},p(l,o){l[9]?i?(i.p(l,o),o[0]&512&&_(i,1)):(i=Zo(l),i.c(),_(i,1),i.m(e,t)):i&&(ne(),v(i,1,1,()=>{i=null}),re()),!l[22]&&l[6]?s?s.p(l,o):(s=Yo(l),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i(l){n||(_(i),n=!0)},o(l){v(i),n=!1},d(l){l&&g(e),i&&i.d(),s&&s.d()}}}function Zo(r){let e,t;const n=r[28].labelText,i=Ie(n,r,r[27],Ko),s=i||wg(r);return{c(){e=j("label"),s&&s.c(),this.h()},l(l){e=L(l,"LABEL",{for:!0});var o=R(e);s&&s.l(o),o.forEach(g),this.h()},h(){T(e,"for",r[7]),b(e,"bx--label",!0),b(e,"bx--visually-hidden",r[10]),b(e,"bx--label--disabled",r[5]),b(e,"bx--label--inline",r[16]),b(e,"bx--label--inline--sm",r[2]==="sm"),b(e,"bx--label--inline--xl",r[2]==="xl")},m(l,o){P(l,e,o),s&&s.m(e,null),t=!0},p(l,o){i?i.p&&(!t||o[0]&134217728)&&Re(i,n,l,l[27],t?Me(n,l[27],o,Og):De(l[27]),Ko):s&&s.p&&(!t||o[0]&512)&&s.p(l,t?o:[-1,-1]),(!t||o[0]&128)&&T(e,"for",l[7]),(!t||o[0]&1024)&&b(e,"bx--visually-hidden",l[10]),(!t||o[0]&32)&&b(e,"bx--label--disabled",l[5]),(!t||o[0]&65536)&&b(e,"bx--label--inline",l[16]),(!t||o[0]&4)&&b(e,"bx--label--inline--sm",l[2]==="sm"),(!t||o[0]&4)&&b(e,"bx--label--inline--xl",l[2]==="xl")},i(l){t||(_(s,l),t=!0)},o(l){v(s,l),t=!1},d(l){l&&g(e),s&&s.d(l)}}}function wg(r){let e;return{c(){e=ce(r[9])},l(t){e=de(t,r[9])},m(t,n){P(t,e,n)},p(t,n){n[0]&512&&ye(e,t[9])},d(t){t&&g(e)}}}function Yo(r){let e,t;return{c(){e=j("div"),t=ce(r[6]),this.h()},l(n){e=L(n,"DIV",{});var i=R(e);t=de(i,r[6]),i.forEach(g),this.h()},h(){b(e,"bx--form__helper-text",!0),b(e,"bx--form__helper-text--disabled",r[5]),b(e,"bx--form__helper-text--inline",r[16])},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&64&&ye(t,n[6]),i[0]&32&&b(e,"bx--form__helper-text--disabled",n[5]),i[0]&65536&&b(e,"bx--form__helper-text--inline",n[16])},d(n){n&&g(e)}}}function Xo(r){let e,t;const n=r[28].labelText,i=Ie(n,r,r[27],Go),s=i||Ag(r);return{c(){e=j("label"),s&&s.c(),this.h()},l(l){e=L(l,"LABEL",{for:!0});var o=R(e);s&&s.l(o),o.forEach(g),this.h()},h(){T(e,"for",r[7]),b(e,"bx--label",!0),b(e,"bx--visually-hidden",r[10]),b(e,"bx--label--disabled",r[5]),b(e,"bx--label--inline",r[16]),b(e,"bx--label--inline-sm",r[16]&&r[2]==="sm"),b(e,"bx--label--inline-xl",r[16]&&r[2]==="xl")},m(l,o){P(l,e,o),s&&s.m(e,null),t=!0},p(l,o){i?i.p&&(!t||o[0]&134217728)&&Re(i,n,l,l[27],t?Me(n,l[27],o,Sg):De(l[27]),Go):s&&s.p&&(!t||o[0]&512)&&s.p(l,t?o:[-1,-1]),(!t||o[0]&128)&&T(e,"for",l[7]),(!t||o[0]&1024)&&b(e,"bx--visually-hidden",l[10]),(!t||o[0]&32)&&b(e,"bx--label--disabled",l[5]),(!t||o[0]&65536)&&b(e,"bx--label--inline",l[16]),(!t||o[0]&65540)&&b(e,"bx--label--inline-sm",l[16]&&l[2]==="sm"),(!t||o[0]&65540)&&b(e,"bx--label--inline-xl",l[16]&&l[2]==="xl")},i(l){t||(_(s,l),t=!0)},o(l){v(s,l),t=!1},d(l){l&&g(e),s&&s.d(l)}}}function Ag(r){let e;return{c(){e=ce(r[9])},l(t){e=de(t,r[9])},m(t,n){P(t,e,n)},p(t,n){n[0]&512&&ye(e,t[9])},d(t){t&&g(e)}}}function Tg(r){let e,t,n,i=r[11]&&xo(),s=!r[11]&&r[13]&&$o();return{c(){i&&i.c(),e=$(),s&&s.c(),t=G()},l(l){i&&i.l(l),e=ee(l),s&&s.l(l),t=G()},m(l,o){i&&i.m(l,o),P(l,e,o),s&&s.m(l,o),P(l,t,o),n=!0},p(l,o){l[11]?i?o[0]&2048&&_(i,1):(i=xo(),i.c(),_(i,1),i.m(e.parentNode,e)):i&&(ne(),v(i,1,1,()=>{i=null}),re()),!l[11]&&l[13]?s?o[0]&10240&&_(s,1):(s=$o(),s.c(),_(s,1),s.m(t.parentNode,t)):s&&(ne(),v(s,1,1,()=>{s=null}),re())},i(l){n||(_(i),_(s),n=!0)},o(l){v(i),v(s),n=!1},d(l){i&&i.d(l),l&&g(e),s&&s.d(l),l&&g(t)}}}function Pg(r){let e,t;return e=new hc({props:{class:"bx--text-input__readonly-icon"}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p:ie,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function xo(r){let e,t;return e=new ur({props:{class:"bx--text-input__invalid-icon"}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function $o(r){let e,t;return e=new pi({props:{class:`bx--text-input__invalid-icon + bx--text-input__invalid-icon--warning`}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function ea(r){let e;return{c(){e=j("hr"),this.h()},l(t){e=L(t,"HR",{}),this.h()},h(){b(e,"bx--text-input__divider",!0)},m(t,n){P(t,e,n)},d(t){t&&g(e)}}}function ta(r){let e,t;return{c(){e=j("div"),t=ce(r[12]),this.h()},l(n){e=L(n,"DIV",{id:!0});var i=R(e);t=de(i,r[12]),i.forEach(g),this.h()},h(){T(e,"id",r[19]),b(e,"bx--form-requirement",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&4096&&ye(t,n[12]),i[0]&524288&&T(e,"id",n[19])},d(n){n&&g(e)}}}function na(r){let e,t;return{c(){e=j("div"),t=ce(r[14]),this.h()},l(n){e=L(n,"DIV",{id:!0});var i=R(e);t=de(i,r[14]),i.forEach(g),this.h()},h(){T(e,"id",r[18]),b(e,"bx--form-requirement",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&16384&&ye(t,n[14]),i[0]&262144&&T(e,"id",n[18])},d(n){n&&g(e)}}}function ra(r){let e,t;return{c(){e=j("div"),t=ce(r[6]),this.h()},l(n){e=L(n,"DIV",{id:!0});var i=R(e);t=de(i,r[6]),i.forEach(g),this.h()},h(){T(e,"id",r[20]),b(e,"bx--form__helper-text",!0),b(e,"bx--form__helper-text--disabled",r[5]),b(e,"bx--form__helper-text--inline",r[16])},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&64&&ye(t,n[6]),i[0]&1048576&&T(e,"id",n[20]),i[0]&32&&b(e,"bx--form__helper-text--disabled",n[5]),i[0]&65536&&b(e,"bx--form__helper-text--inline",n[16])},d(n){n&&g(e)}}}function ia(r){let e,t;return{c(){e=j("div"),t=ce(r[12]),this.h()},l(n){e=L(n,"DIV",{id:!0});var i=R(e);t=de(i,r[12]),i.forEach(g),this.h()},h(){T(e,"id",r[19]),b(e,"bx--form-requirement",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&4096&&ye(t,n[12]),i[0]&524288&&T(e,"id",n[19])},d(n){n&&g(e)}}}function la(r){let e,t;return{c(){e=j("div"),t=ce(r[14]),this.h()},l(n){e=L(n,"DIV",{id:!0});var i=R(e);t=de(i,r[14]),i.forEach(g),this.h()},h(){T(e,"id",r[18]),b(e,"bx--form-requirement",!0)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i[0]&16384&&ye(t,n[14]),i[0]&262144&&T(e,"id",n[18])},d(n){n&&g(e)}}}function Cg(r){let e,t,n,i,s,l,o,a,u,f,c,h,d,m,p,y,k,O,E,S,C,A,D,w,B=r[16]&&Jo(r),M=!r[16]&&(r[9]||r[26].labelText)&&Xo(r);const F=[Pg,Tg],q=[];function N(z,_e){return z[17]?0:1}l=N(r),o=q[l]=F[l](r);let Y=[{"data-invalid":f=r[21]||void 0},{"aria-invalid":c=r[21]||void 0},{"data-warn":h=r[13]||void 0},{"aria-describedby":d=r[21]?r[19]:r[13]?r[18]:r[6]?r[20]:void 0},{disabled:r[5]},{id:r[7]},{name:r[8]},{placeholder:r[3]},{required:r[15]},{readOnly:r[17]},r[25]],V={};for(let z=0;z{B=null}),re()),!z[16]&&(z[9]||z[26].labelText)?M?(M.p(z,_e),_e[0]&67174912&&_(M,1)):(M=Xo(z),M.c(),_(M,1),M.m(e,n)):M&&(ne(),v(M,1,1,()=>{M=null}),re());let se=l;l=N(z),l===se?q[l].p(z,_e):(ne(),v(q[se],1,1,()=>{q[se]=null}),re(),o=q[l],o?o.p(z,_e):(o=q[l]=F[l](z),o.c()),_(o,1),o.m(s,a)),we(u,V=Ne(Y,[(!A||_e[0]&2097152&&f!==(f=z[21]||void 0))&&{"data-invalid":f},(!A||_e[0]&2097152&&c!==(c=z[21]||void 0))&&{"aria-invalid":c},(!A||_e[0]&8192&&h!==(h=z[13]||void 0))&&{"data-warn":h},(!A||_e[0]&3940416&&d!==(d=z[21]?z[19]:z[13]?z[18]:z[6]?z[20]:void 0))&&{"aria-describedby":d},(!A||_e[0]&32)&&{disabled:z[5]},(!A||_e[0]&128)&&{id:z[7]},(!A||_e[0]&256)&&{name:z[8]},(!A||_e[0]&8)&&{placeholder:z[3]},(!A||_e[0]&32768)&&{required:z[15]},(!A||_e[0]&131072)&&{readOnly:z[17]},_e[0]&33554432&&z[25]])),_e[0]&1&&u.value!==z[0]&&Bs(u,z[0]),b(u,"bx--text-input",!0),b(u,"bx--text-input--light",z[4]),b(u,"bx--text-input--invalid",z[21]),b(u,"bx--text-input--warning",z[13]),b(u,"bx--text-input--sm",z[2]==="sm"),b(u,"bx--text-input--xl",z[2]==="xl"),z[22]?K||(K=ea(),K.c(),K.m(s,p)):K&&(K.d(1),K=null),z[22]&&!z[16]&&z[11]?oe?oe.p(z,_e):(oe=ta(z),oe.c(),oe.m(s,y)):oe&&(oe.d(1),oe=null),z[22]&&!z[16]&&z[13]?fe?fe.p(z,_e):(fe=na(z),fe.c(),fe.m(s,null)):fe&&(fe.d(1),fe=null),(!A||_e[0]&2097152&&k!==(k=z[21]||void 0))&&T(s,"data-invalid",k),(!A||_e[0]&8192&&O!==(O=z[13]||void 0))&&T(s,"data-warn",O),(!A||_e[0]&10240)&&b(s,"bx--text-input__field-wrapper--warning",!z[11]&&z[13]),!z[11]&&!z[13]&&!z[22]&&!z[16]&&z[6]?x?x.p(z,_e):(x=ra(z),x.c(),x.m(i,S)):x&&(x.d(1),x=null),!z[22]&&z[11]?te?te.p(z,_e):(te=ia(z),te.c(),te.m(i,C)):te&&(te.d(1),te=null),!z[22]&&!z[11]&&z[13]?ke?ke.p(z,_e):(ke=la(z),ke.c(),ke.m(i,null)):ke&&(ke.d(1),ke=null),(!A||_e[0]&65536)&&b(i,"bx--text-input__field-outer-wrapper--inline",z[16]),(!A||_e[0]&65536)&&b(e,"bx--text-input-wrapper--inline",z[16]),(!A||_e[0]&16)&&b(e,"bx--text-input-wrapper--light",z[4]),(!A||_e[0]&131072)&&b(e,"bx--text-input-wrapper--readonly",z[17])},i(z){A||(_(B),_(M),_(o),A=!0)},o(z){v(B),v(M),v(o),A=!1},d(z){z&&g(e),B&&B.d(),M&&M.d(),q[l].d(),r[38](null),K&&K.d(),oe&&oe.d(),fe&&fe.d(),x&&x.d(),te&&te.d(),ke&&ke.d(),D=!1,Ge(w)}}}function Ig(r,e,t){let n,i,s,l,o;const a=["size","value","placeholder","light","disabled","helperText","id","name","labelText","hideLabel","invalid","invalidText","warn","warnText","ref","required","inline","readonly"];let u=ge(e,a),{$$slots:f={},$$scope:c}=e;const h=hi(f);let{size:d=void 0}=e,{value:m=""}=e,{placeholder:p=""}=e,{light:y=!1}=e,{disabled:k=!1}=e,{helperText:O=""}=e,{id:E="ccs-"+Math.random().toString(36)}=e,{name:S=void 0}=e,{labelText:C=""}=e,{hideLabel:A=!1}=e,{invalid:D=!1}=e,{invalidText:w=""}=e,{warn:B=!1}=e,{warnText:M=""}=e,{ref:F=null}=e,{required:q=!1}=e,{inline:N=!1}=e,{readonly:Y=!1}=e;const V=bt("Form"),K=dt();function oe(ae){return u.type!=="number"?ae:ae!=""?Number(ae):null}const fe=ae=>{t(0,m=oe(ae.target.value)),K("input",m)},x=ae=>{K("change",oe(ae.target.value))};function te(ae){X.call(this,r,ae)}function ke(ae){X.call(this,r,ae)}function z(ae){X.call(this,r,ae)}function _e(ae){X.call(this,r,ae)}function se(ae){X.call(this,r,ae)}function Ye(ae){X.call(this,r,ae)}function lt(ae){X.call(this,r,ae)}function Et(ae){X.call(this,r,ae)}function yt(ae){X.call(this,r,ae)}function Pe(ae){qe[ae?"unshift":"push"](()=>{F=ae,t(1,F)})}function le(){m=this.value,t(0,m)}return r.$$set=ae=>{e=Z(Z({},e),Te(ae)),t(25,u=ge(e,a)),"size"in ae&&t(2,d=ae.size),"value"in ae&&t(0,m=ae.value),"placeholder"in ae&&t(3,p=ae.placeholder),"light"in ae&&t(4,y=ae.light),"disabled"in ae&&t(5,k=ae.disabled),"helperText"in ae&&t(6,O=ae.helperText),"id"in ae&&t(7,E=ae.id),"name"in ae&&t(8,S=ae.name),"labelText"in ae&&t(9,C=ae.labelText),"hideLabel"in ae&&t(10,A=ae.hideLabel),"invalid"in ae&&t(11,D=ae.invalid),"invalidText"in ae&&t(12,w=ae.invalidText),"warn"in ae&&t(13,B=ae.warn),"warnText"in ae&&t(14,M=ae.warnText),"ref"in ae&&t(1,F=ae.ref),"required"in ae&&t(15,q=ae.required),"inline"in ae&&t(16,N=ae.inline),"readonly"in ae&&t(17,Y=ae.readonly),"$$scope"in ae&&t(27,c=ae.$$scope)},r.$$.update=()=>{r.$$.dirty[0]&133120&&t(21,i=D&&!Y),r.$$.dirty[0]&128&&t(20,s=`helper-${E}`),r.$$.dirty[0]&128&&t(19,l=`error-${E}`),r.$$.dirty[0]&128&&t(18,o=`warn-${E}`)},t(22,n=!!V&&V.isFluid),[m,F,d,p,y,k,O,E,S,C,A,D,w,B,M,q,N,Y,o,l,s,i,n,fe,x,u,h,c,f,te,ke,z,_e,se,Ye,lt,Et,yt,Pe,le]}class Rg extends me{constructor(e){super(),pe(this,e,Ig,Cg,he,{size:2,value:0,placeholder:3,light:4,disabled:5,helperText:6,id:7,name:8,labelText:9,hideLabel:10,invalid:11,invalidText:12,warn:13,warnText:14,ref:1,required:15,inline:16,readonly:17},null,[-1,-1])}}const _n=Rg,Dg=r=>({}),sa=r=>({}),Mg=r=>({}),oa=r=>({}),Ng=r=>({}),aa=r=>({});function jg(r){let e;return{c(){e=ce(r[5])},l(t){e=de(t,r[5])},m(t,n){P(t,e,n)},p(t,n){n&32&&ye(e,t[5])},d(t){t&&g(e)}}}function Lg(r){let e;return{c(){e=ce(r[3])},l(t){e=de(t,r[3])},m(t,n){P(t,e,n)},p(t,n){n&8&&ye(e,t[3])},d(t){t&&g(e)}}}function qg(r){let e;return{c(){e=ce(r[4])},l(t){e=de(t,r[4])},m(t,n){P(t,e,n)},p(t,n){n&16&&ye(e,t[4])},d(t){t&&g(e)}}}function Bg(r){let e,t,n,i,s,l,o,a,u,f,c,h,d,m,p,y;const k=r[12].labelText,O=Ie(k,r,r[11],aa),E=O||jg(r),S=r[12].labelA,C=Ie(S,r,r[11],oa),A=C||Lg(r),D=r[12].labelB,w=Ie(D,r,r[11],sa),B=w||qg(r);let M=[r[9],{style:d=r[9].style+"; user-select: none"}],F={};for(let q=0;q{t(0,a=!a)},M=F=>{(F.key===" "||F.key==="Enter")&&(F.preventDefault(),t(0,a=!a))};return r.$$set=F=>{t(10,e=Z(Z({},e),Te(F))),t(9,i=ge(e,n)),"size"in F&&t(1,o=F.size),"toggled"in F&&t(0,a=F.toggled),"disabled"in F&&t(2,u=F.disabled),"labelA"in F&&t(3,f=F.labelA),"labelB"in F&&t(4,c=F.labelB),"labelText"in F&&t(5,h=F.labelText),"hideLabel"in F&&t(6,d=F.hideLabel),"id"in F&&t(7,m=F.id),"name"in F&&t(8,p=F.name),"$$scope"in F&&t(11,l=F.$$scope)},r.$$.update=()=>{r.$$.dirty&1&&y("toggle",{toggled:a})},e=Te(e),[a,o,u,f,c,h,d,m,p,i,e,l,s,k,O,E,S,C,A,D,w,B,M]}class zg extends me{constructor(e){super(),pe(this,e,Fg,Bg,he,{size:1,toggled:0,disabled:2,labelA:3,labelB:4,labelText:5,hideLabel:6,id:7,name:8})}}const Vg=zg;class Vn{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const er=typeof window>"u"||"Deno"in window;function kt(){}function Ug(r,e){return typeof r=="function"?r(e):r}function nl(r){return typeof r=="number"&&r>=0&&r!==1/0}function pc(r,e){return Math.max(r+(e||0)-Date.now(),0)}function In(r,e,t){return fr(r)?typeof e=="function"?{...t,queryKey:r,queryFn:e}:{...e,queryKey:r}:r}function Hg(r,e,t){return fr(r)?typeof e=="function"?{...t,mutationKey:r,mutationFn:e}:{...e,mutationKey:r}:typeof r=="function"?{...e,mutationFn:r}:{...r}}function Xt(r,e,t){return fr(r)?[{...e,queryKey:r},t]:[r||{},e]}function ua(r,e){const{type:t="all",exact:n,fetchStatus:i,predicate:s,queryKey:l,stale:o}=r;if(fr(l)){if(n){if(e.queryHash!==Xl(l,e.options))return!1}else if(!Qr(e.queryKey,l))return!1}if(t!=="all"){const a=e.isActive();if(t==="active"&&!a||t==="inactive"&&a)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||typeof i<"u"&&i!==e.state.fetchStatus||s&&!s(e))}function fa(r,e){const{exact:t,fetching:n,predicate:i,mutationKey:s}=r;if(fr(s)){if(!e.options.mutationKey)return!1;if(t){if(hn(e.options.mutationKey)!==hn(s))return!1}else if(!Qr(e.options.mutationKey,s))return!1}return!(typeof n=="boolean"&&e.state.status==="loading"!==n||i&&!i(e))}function Xl(r,e){return((e==null?void 0:e.queryKeyHashFn)||hn)(r)}function hn(r){return JSON.stringify(r,(e,t)=>il(t)?Object.keys(t).sort().reduce((n,i)=>(n[i]=t[i],n),{}):t)}function Qr(r,e){return gc(r,e)}function gc(r,e){return r===e?!0:typeof r!=typeof e?!1:r&&e&&typeof r=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!gc(r[t],e[t])):!1}function bc(r,e){if(r===e)return r;const t=ca(r)&&ca(e);if(t||il(r)&&il(e)){const n=t?r.length:Object.keys(r).length,i=t?e:Object.keys(e),s=i.length,l=t?[]:{};let o=0;for(let a=0;a"u")return!0;const t=e.prototype;return!(!da(t)||!t.hasOwnProperty("isPrototypeOf"))}function da(r){return Object.prototype.toString.call(r)==="[object Object]"}function fr(r){return Array.isArray(r)}function _c(r){return new Promise(e=>{setTimeout(e,r)})}function ha(r){_c(0).then(r)}function Qg(){if(typeof AbortController=="function")return new AbortController}function ll(r,e,t){return t.isDataEqual!=null&&t.isDataEqual(r,e)?r:typeof t.structuralSharing=="function"?t.structuralSharing(r,e):t.structuralSharing!==!1?bc(r,e):e}class Wg extends Vn{constructor(){super(),this.setup=e=>{if(!er&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.focused=e,e&&this.onFocus()}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Wr=new Wg,ma=["online","offline"];class Gg extends Vn{constructor(){super(),this.setup=e=>{if(!er&&window.addEventListener){const t=()=>e();return ma.forEach(n=>{window.addEventListener(n,t,!1)}),()=>{ma.forEach(n=>{window.removeEventListener(n,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(e){this.online=e,e&&this.onOnline()}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Gr=new Gg;function Kg(r){return Math.min(1e3*2**r,3e4)}function gi(r){return(r??"online")==="online"?Gr.isOnline():!0}class yc{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function Ir(r){return r instanceof yc}function vc(r){let e=!1,t=0,n=!1,i,s,l;const o=new Promise((y,k)=>{s=y,l=k}),a=y=>{n||(d(new yc(y)),r.abort==null||r.abort())},u=()=>{e=!0},f=()=>{e=!1},c=()=>!Wr.isFocused()||r.networkMode!=="always"&&!Gr.isOnline(),h=y=>{n||(n=!0,r.onSuccess==null||r.onSuccess(y),i==null||i(),s(y))},d=y=>{n||(n=!0,r.onError==null||r.onError(y),i==null||i(),l(y))},m=()=>new Promise(y=>{i=k=>{const O=n||!c();return O&&y(k),O},r.onPause==null||r.onPause()}).then(()=>{i=void 0,n||r.onContinue==null||r.onContinue()}),p=()=>{if(n)return;let y;try{y=r.fn()}catch(k){y=Promise.reject(k)}Promise.resolve(y).then(h).catch(k=>{var O,E;if(n)return;const S=(O=r.retry)!=null?O:3,C=(E=r.retryDelay)!=null?E:Kg,A=typeof C=="function"?C(t,k):C,D=S===!0||typeof S=="number"&&t{if(c())return m()}).then(()=>{e?d(k):p()})})};return gi(r.networkMode)?p():m().then(p),{promise:o,cancel:a,continue:()=>(i==null?void 0:i())?o:Promise.resolve(),cancelRetry:u,continueRetry:f}}const xl=console;function Jg(){let r=[],e=0,t=f=>{f()},n=f=>{f()};const i=f=>{let c;e++;try{c=f()}finally{e--,e||o()}return c},s=f=>{e?r.push(f):ha(()=>{t(f)})},l=f=>(...c)=>{s(()=>{f(...c)})},o=()=>{const f=r;r=[],f.length&&ha(()=>{n(()=>{f.forEach(c=>{t(c)})})})};return{batch:i,batchCalls:l,schedule:s,setNotifyFunction:f=>{t=f},setBatchNotifyFunction:f=>{n=f}}}const Xe=Jg();class kc{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nl(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(er?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Zg extends kc{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||xl,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||Yg(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const n=ll(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return(t=this.retryer)==null||t.cancel(e),n?n.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!pc(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(m=>m.options.queryFn);d&&this.setOptions(d.options)}Array.isArray(this.options.queryKey);const l=Qg(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>{if(l)return this.abortSignalConsumed=!0,l.signal}})};a(o);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn"),f={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(a(f),(n=this.options.behavior)==null||n.onFetch(f),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=f.fetchOptions)==null?void 0:i.meta)){var c;this.dispatch({type:"fetch",meta:(c=f.fetchOptions)==null?void 0:c.meta})}const h=d=>{if(Ir(d)&&d.silent||this.dispatch({type:"error",error:d}),!Ir(d)){var m,p,y,k;(m=(p=this.cache.config).onError)==null||m.call(p,d,this),(y=(k=this.cache.config).onSettled)==null||y.call(k,this.state.data,d,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=vc({fn:f.fetchFn,abort:l==null?void 0:l.abort.bind(l),onSuccess:d=>{var m,p,y,k;if(typeof d>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(d),(m=(p=this.cache.config).onSuccess)==null||m.call(p,d,this),(y=(k=this.cache.config).onSettled)==null||y.call(k,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(d,m)=>{this.dispatch({type:"failed",failureCount:d,error:m})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=n=>{var i,s;switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=e.meta)!=null?i:null,fetchStatus:gi(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(s=e.dataUpdatedAt)!=null?s:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=e.error;return Ir(l)&&l.revert&&this.revertState?{...this.revertState}:{...n,error:l,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Xe.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function Yg(r){const e=typeof r.initialData=="function"?r.initialData():r.initialData,t=typeof e<"u",n=t?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class Xg extends Vn{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var i;const s=t.queryKey,l=(i=t.queryHash)!=null?i:Xl(s,t);let o=this.get(l);return o||(o=new Zg({cache:this,logger:e.getLogger(),queryKey:s,queryHash:l,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(n=>n!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Xe.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Xt(e,t);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(i=>ua(n,i))}findAll(e,t){const[n]=Xt(e,t);return Object.keys(n).length>0?this.queries.filter(i=>ua(n,i)):this.queries}notify(e){Xe.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){Xe.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){Xe.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class xg extends kc{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||xl,this.observers=[],this.state=e.state||Ec(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var D;return this.retryer=vc({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(w,B)=>{this.dispatch({type:"failed",failureCount:w,error:B})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(D=this.options.retry)!=null?D:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var n,i,s,l,o,a,u,f;if(!t){var c,h,d,m;this.dispatch({type:"loading",variables:this.options.variables}),await((c=(h=this.mutationCache.config).onMutate)==null?void 0:c.call(h,this.state.variables,this));const w=await((d=(m=this.options).onMutate)==null?void 0:d.call(m,this.state.variables));w!==this.state.context&&this.dispatch({type:"loading",context:w,variables:this.state.variables})}const D=await e();return await((n=(i=this.mutationCache.config).onSuccess)==null?void 0:n.call(i,D,this.state.variables,this.state.context,this)),await((s=(l=this.options).onSuccess)==null?void 0:s.call(l,D,this.state.variables,this.state.context)),await((o=(a=this.mutationCache.config).onSettled)==null?void 0:o.call(a,D,null,this.state.variables,this.state.context,this)),await((u=(f=this.options).onSettled)==null?void 0:u.call(f,D,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:D}),D}catch(D){try{var p,y,k,O,E,S,C,A;throw await((p=(y=this.mutationCache.config).onError)==null?void 0:p.call(y,D,this.state.variables,this.state.context,this)),await((k=(O=this.options).onError)==null?void 0:k.call(O,D,this.state.variables,this.state.context)),await((E=(S=this.mutationCache.config).onSettled)==null?void 0:E.call(S,void 0,D,this.state.variables,this.state.context,this)),await((C=(A=this.options).onSettled)==null?void 0:C.call(A,void 0,D,this.state.variables,this.state.context)),D}finally{this.dispatch({type:"error",error:D})}}}dispatch(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!gi(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...n,...e.state}}};this.state=t(this.state),Xe.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function Ec(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class $g extends Vn{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const i=new xg({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){Xe.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>fa(e,t))}findAll(e){return this.mutations.filter(t=>fa(e,t))}notify(e){Xe.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(n=>n.state.isPaused);return Xe.batch(()=>t.reduce((n,i)=>n.then(()=>i.continue().catch(kt)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function sl(){return{onFetch:r=>{r.fetchFn=()=>{var e,t,n,i,s,l;const o=(e=r.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,a=(n=r.fetchOptions)==null||(i=n.meta)==null?void 0:i.fetchMore,u=a==null?void 0:a.pageParam,f=(a==null?void 0:a.direction)==="forward",c=(a==null?void 0:a.direction)==="backward",h=((s=r.state.data)==null?void 0:s.pages)||[],d=((l=r.state.data)==null?void 0:l.pageParams)||[];let m=d,p=!1;const y=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>{var D;if((D=r.signal)!=null&&D.aborted)p=!0;else{var w;(w=r.signal)==null||w.addEventListener("abort",()=>{p=!0})}return r.signal}})},k=r.options.queryFn||(()=>Promise.reject("Missing queryFn")),O=(A,D,w,B)=>(m=B?[D,...m]:[...m,D],B?[w,...A]:[...A,w]),E=(A,D,w,B)=>{if(p)return Promise.reject("Cancelled");if(typeof w>"u"&&!D&&A.length)return Promise.resolve(A);const M={queryKey:r.queryKey,pageParam:w,meta:r.options.meta};y(M);const F=k(M);return Promise.resolve(F).then(N=>O(A,w,N,B))};let S;if(!h.length)S=E([]);else if(f){const A=typeof u<"u",D=A?u:ol(r.options,h);S=E(h,A,D)}else if(c){const A=typeof u<"u",D=A?u:Sc(r.options,h);S=E(h,A,D,!0)}else{m=[];const A=typeof r.options.getNextPageParam>"u";S=(o&&h[0]?o(h[0],0,h):!0)?E([],A,d[0]):Promise.resolve(O([],d[0],h[0]));for(let w=1;w{if(o&&h[w]?o(h[w],w,h):!0){const F=A?d[w]:ol(r.options,B);return E(B,A,F)}return Promise.resolve(O(B,d[w],h[w]))})}return S.then(A=>({pages:A,pageParams:m}))}}}}function ol(r,e){return r.getNextPageParam==null?void 0:r.getNextPageParam(e[e.length-1],e)}function Sc(r,e){return r.getPreviousPageParam==null?void 0:r.getPreviousPageParam(e[0],e)}function e1(r,e){if(r.getNextPageParam&&Array.isArray(e)){const t=ol(r,e);return typeof t<"u"&&t!==null&&t!==!1}}function t1(r,e){if(r.getPreviousPageParam&&Array.isArray(e)){const t=Sc(r,e);return typeof t<"u"&&t!==null&&t!==!1}}class n1{constructor(e={}){this.queryCache=e.queryCache||new Xg,this.mutationCache=e.mutationCache||new $g,this.logger=e.logger||xl,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Wr.subscribe(()=>{Wr.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Gr.subscribe(()=>{Gr.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=Xt(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state.data}ensureQueryData(e,t,n){const i=In(e,t,n),s=this.getQueryData(i.queryKey);return s?Promise.resolve(s):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.queryCache.find(e),s=i==null?void 0:i.state.data,l=Ug(t,s);if(typeof l>"u")return;const o=In(e),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Xe.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e,t){var n;return(n=this.queryCache.find(e,t))==null?void 0:n.state}removeQueries(e,t){const[n]=Xt(e,t),i=this.queryCache;Xe.batch(()=>{i.findAll(n).forEach(s=>{i.remove(s)})})}resetQueries(e,t,n){const[i,s]=Xt(e,t,n),l=this.queryCache,o={type:"active",...i};return Xe.batch(()=>(l.findAll(i).forEach(a=>{a.reset()}),this.refetchQueries(o,s)))}cancelQueries(e,t,n){const[i,s={}]=Xt(e,t,n);typeof s.revert>"u"&&(s.revert=!0);const l=Xe.batch(()=>this.queryCache.findAll(i).map(o=>o.cancel(s)));return Promise.all(l).then(kt).catch(kt)}invalidateQueries(e,t,n){const[i,s]=Xt(e,t,n);return Xe.batch(()=>{var l,o;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const a={...i,type:(l=(o=i.refetchType)!=null?o:i.type)!=null?l:"active"};return this.refetchQueries(a,s)})}refetchQueries(e,t,n){const[i,s]=Xt(e,t,n),l=Xe.batch(()=>this.queryCache.findAll(i).filter(a=>!a.isDisabled()).map(a=>{var u;return a.fetch(void 0,{...s,cancelRefetch:(u=s==null?void 0:s.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let o=Promise.all(l).then(kt);return s!=null&&s.throwOnError||(o=o.catch(kt)),o}fetchQuery(e,t,n){const i=In(e,t,n),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);const l=this.queryCache.build(this,s);return l.isStaleByTime(s.staleTime)?l.fetch(s):Promise.resolve(l.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(kt).catch(kt)}fetchInfiniteQuery(e,t,n){const i=In(e,t,n);return i.behavior=sl(),this.fetchQuery(i)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(kt).catch(kt)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(i=>hn(e)===hn(i.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(n=>Qr(e,n.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(i=>hn(e)===hn(i.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(n=>Qr(e,n.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Xl(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Oc extends Vn{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),pa(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return al(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return al(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),rl(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const s=this.hasListeners();s&&ga(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(t),s&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const l=this.computeRefetchInterval();s&&(this.currentQuery!==i||this.options.enabled!==n.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e);return this.createResult(t,e)}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(kt)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),er||this.currentResult.isStale||!nl(this.options.staleTime))return;const t=pc(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(er||this.options.enabled===!1||!nl(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Wr.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,i=this.options,s=this.currentResult,l=this.currentResultState,o=this.currentResultOptions,a=e!==n,u=a?e.state:this.currentQueryInitialState,f=a?this.currentResult:this.previousQueryResult,{state:c}=e;let{dataUpdatedAt:h,error:d,errorUpdatedAt:m,fetchStatus:p,status:y}=c,k=!1,O=!1,E;if(t._optimisticResults){const w=this.hasListeners(),B=!w&&pa(e,t),M=w&&ga(e,n,t,i);(B||M)&&(p=gi(e.options.networkMode)?"fetching":"paused",h||(y="loading")),t._optimisticResults==="isRestoring"&&(p="idle")}if(t.keepPreviousData&&!c.dataUpdatedAt&&f!=null&&f.isSuccess&&y!=="error")E=f.data,h=f.dataUpdatedAt,y=f.status,k=!0;else if(t.select&&typeof c.data<"u")if(s&&c.data===(l==null?void 0:l.data)&&t.select===this.selectFn)E=this.selectResult;else try{this.selectFn=t.select,E=t.select(c.data),E=ll(s==null?void 0:s.data,E,t),this.selectResult=E,this.selectError=null}catch(w){this.selectError=w}else E=c.data;if(typeof t.placeholderData<"u"&&typeof E>"u"&&y==="loading"){let w;if(s!=null&&s.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData))w=s.data;else if(w=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof w<"u")try{w=t.select(w),this.selectError=null}catch(B){this.selectError=B}typeof w<"u"&&(y="success",E=ll(s==null?void 0:s.data,w,t),O=!0)}this.selectError&&(d=this.selectError,E=this.selectResult,m=Date.now(),y="error");const S=p==="fetching",C=y==="loading",A=y==="error";return{status:y,fetchStatus:p,isLoading:C,isSuccess:y==="success",isError:A,isInitialLoading:C&&S,data:E,dataUpdatedAt:h,error:d,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!C,isLoadingError:A&&c.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:O,isPreviousData:k,isRefetchError:A&&c.dataUpdatedAt!==0,isStale:$l(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,rl(n,t))return;this.currentResult=n;const i={cache:!0},s=()=>{if(!t)return!0;const{notifyOnChangeProps:l}=this.options;if(l==="all"||!l&&!this.trackedProps.size)return!0;const o=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(a=>{const u=a;return this.currentResult[u]!==t[u]&&o.has(u)})};(e==null?void 0:e.listeners)!==!1&&s()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!Ir(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){Xe.batch(()=>{if(e.onSuccess){var t,n,i,s;(t=(n=this.options).onSuccess)==null||t.call(n,this.currentResult.data),(i=(s=this.options).onSettled)==null||i.call(s,this.currentResult.data,null)}else if(e.onError){var l,o,a,u;(l=(o=this.options).onError)==null||l.call(o,this.currentResult.error),(a=(u=this.options).onSettled)==null||a.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:f})=>{f(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function r1(r,e){return e.enabled!==!1&&!r.state.dataUpdatedAt&&!(r.state.status==="error"&&e.retryOnMount===!1)}function pa(r,e){return r1(r,e)||r.state.dataUpdatedAt>0&&al(r,e,e.refetchOnMount)}function al(r,e,t){if(e.enabled!==!1){const n=typeof t=="function"?t(r):t;return n==="always"||n!==!1&&$l(r,e)}return!1}function ga(r,e,t,n){return t.enabled!==!1&&(r!==e||n.enabled===!1)&&(!t.suspense||r.state.status!=="error")&&$l(r,t)}function $l(r,e){return r.isStaleByTime(e.staleTime)}class i1 extends Oc{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:sl()},t)}getOptimisticResult(e){return e.behavior=sl(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var n,i,s,l,o,a;const{state:u}=e,f=super.createResult(e,t),{isFetching:c,isRefetching:h}=f,d=c&&((n=u.fetchMeta)==null||(i=n.fetchMore)==null?void 0:i.direction)==="forward",m=c&&((s=u.fetchMeta)==null||(l=s.fetchMore)==null?void 0:l.direction)==="backward";return{...f,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:e1(t,(o=u.data)==null?void 0:o.pages),hasPreviousPage:t1(t,(a=u.data)==null?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:m,isRefetching:h&&!d&&!m}}}class l1 extends Vn{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),rl(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.currentMutation)==null||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();const t={listeners:!0};e.type==="success"?t.onSuccess=!0:e.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof e<"u"?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:Ec(),t={...e,isLoading:e.status==="loading",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){Xe.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(e.onSuccess){var t,n,i,s;(t=(n=this.mutateOptions).onSuccess)==null||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(s=this.mutateOptions).onSettled)==null||i.call(s,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(e.onError){var l,o,a,u;(l=(o=this.mutateOptions).onError)==null||l.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(a=(u=this.mutateOptions).onSettled)==null||a.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}e.listeners&&this.listeners.forEach(({listener:f})=>{f(this.currentResult)})})}}const wc="$$_queryClient",s1=()=>{const r=bt(wc);if(!r)throw new Error("No QueryClient was found in Svelte context. Did you forget to wrap your component with QueryClientProvider?");return r},j3=r=>{Ut(wc,r)};function Ac(){return s1()}function Tc(r,e){const t=Ac(),n=t.defaultQueryOptions(r);n._optimisticResults="optimistic";let i=new e(t,n);n.onError&&(n.onError=Xe.batchCalls(n.onError)),n.onSuccess&&(n.onSuccess=Xe.batchCalls(n.onSuccess)),n.onSettled&&(n.onSettled=Xe.batchCalls(n.onSettled)),Hr(i).subscribe(o=>{i=o,i.setOptions(n,{listeners:!1})});const s=Hr(i.getCurrentResult(),o=>i.subscribe(Xe.batchCalls(o))),{subscribe:l}=sc(s,o=>(o=i.getOptimisticResult(n),n.notifyOnChangeProps?o:i.trackResult(o)));return{subscribe:l}}function o1(r,e,t){const n=In(r,e,t);return Tc(n,Oc)}function a1(r,e,t){const n=In(r,e,t);return Tc(n,i1)}function u1(r,e,t){const n=Hg(r,e,t),i=Ac();let s=new l1(i,n),l;Hr(s).subscribe(u=>{s=u,l=(f,c)=>{s.mutate(f,c).catch(f1)},s.setOptions(n)});const o=Hr(s.getCurrentResult(),u=>s.subscribe(Xe.batchCalls(f=>u(f)))),{subscribe:a}=sc(o,u=>({...u,mutate:l,mutateAsync:u.mutate}));return{subscribe:a}}function f1(){}const ba=ct([]),rt=new n1({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:1/0,retry:!1,onError:r=>{var e;console.error((e=r.body)==null?void 0:e.detail),ba.update(t=>[...t,r])}},mutations:{onError:r=>{var e;console.error((e=r.body)==null?void 0:e.detail),ba.update(t=>[...t,r])}}}});class _a extends Error{constructor(e,t,n){super(n),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}}class c1 extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}var Rt,Dt,wt,$t,pn,ar,Nn;class d1{constructor(e){Zt(this,Rt,void 0);Zt(this,Dt,void 0);Zt(this,wt,void 0);Zt(this,$t,void 0);Zt(this,pn,void 0);Zt(this,ar,void 0);Zt(this,Nn,void 0);St(this,Rt,!1),St(this,Dt,!1),St(this,wt,!1),St(this,$t,[]),St(this,pn,new Promise((t,n)=>{St(this,ar,t),St(this,Nn,n);const i=o=>{var a;He(this,Rt)||He(this,Dt)||He(this,wt)||(St(this,Rt,!0),(a=He(this,ar))==null||a.call(this,o))},s=o=>{var a;He(this,Rt)||He(this,Dt)||He(this,wt)||(St(this,Dt,!0),(a=He(this,Nn))==null||a.call(this,o))},l=o=>{He(this,Rt)||He(this,Dt)||He(this,wt)||He(this,$t).push(o)};return Object.defineProperty(l,"isResolved",{get:()=>He(this,Rt)}),Object.defineProperty(l,"isRejected",{get:()=>He(this,Dt)}),Object.defineProperty(l,"isCancelled",{get:()=>He(this,wt)}),e(i,s,l)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,t){return He(this,pn).then(e,t)}catch(e){return He(this,pn).catch(e)}finally(e){return He(this,pn).finally(e)}cancel(){var e;if(!(He(this,Rt)||He(this,Dt)||He(this,wt))){if(St(this,wt,!0),He(this,$t).length)try{for(const t of He(this,$t))t()}catch(t){console.warn("Cancellation threw an error",t);return}He(this,$t).length=0,(e=He(this,Nn))==null||e.call(this,new c1("Request aborted"))}}get isCancelled(){return He(this,wt)}}Rt=new WeakMap,Dt=new WeakMap,wt=new WeakMap,$t=new WeakMap,pn=new WeakMap,ar=new WeakMap,Nn=new WeakMap;const Be={BASE:"",VERSION:"0.1.0",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0},es=r=>r!=null,cr=r=>typeof r=="string",wi=r=>cr(r)&&r!=="",ts=r=>typeof r=="object"&&typeof r.type=="string"&&typeof r.stream=="function"&&typeof r.arrayBuffer=="function"&&typeof r.constructor=="function"&&typeof r.constructor.name=="string"&&/^(Blob|File)$/.test(r.constructor.name)&&/^(Blob|File)$/.test(r[Symbol.toStringTag]),Pc=r=>r instanceof FormData,h1=r=>{try{return btoa(r)}catch{return Buffer.from(r).toString("base64")}},m1=r=>{const e=[],t=(i,s)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(s))}`)},n=(i,s)=>{es(s)&&(Array.isArray(s)?s.forEach(l=>{n(i,l)}):typeof s=="object"?Object.entries(s).forEach(([l,o])=>{n(`${i}[${l}]`,o)}):t(i,s))};return Object.entries(r).forEach(([i,s])=>{n(i,s)}),e.length>0?`?${e.join("&")}`:""},p1=(r,e)=>{const t=r.ENCODE_PATH||encodeURI,n=e.url.replace("{api-version}",r.VERSION).replace(/{(.*?)}/g,(s,l)=>{var o;return(o=e.path)!=null&&o.hasOwnProperty(l)?t(String(e.path[l])):s}),i=`${r.BASE}${n}`;return e.query?`${i}${m1(e.query)}`:i},g1=r=>{if(r.formData){const e=new FormData,t=(n,i)=>{cr(i)||ts(i)?e.append(n,i):e.append(n,JSON.stringify(i))};return Object.entries(r.formData).filter(([n,i])=>es(i)).forEach(([n,i])=>{Array.isArray(i)?i.forEach(s=>t(n,s)):t(n,i)}),e}},yr=async(r,e)=>typeof e=="function"?e(r):e,b1=async(r,e)=>{const t=await yr(e,r.TOKEN),n=await yr(e,r.USERNAME),i=await yr(e,r.PASSWORD),s=await yr(e,r.HEADERS),l=Object.entries({Accept:"application/json",...s,...e.headers}).filter(([o,a])=>es(a)).reduce((o,[a,u])=>({...o,[a]:String(u)}),{});if(wi(t)&&(l.Authorization=`Bearer ${t}`),wi(n)&&wi(i)){const o=h1(`${n}:${i}`);l.Authorization=`Basic ${o}`}return e.body&&(e.mediaType?l["Content-Type"]=e.mediaType:ts(e.body)?l["Content-Type"]=e.body.type||"application/octet-stream":cr(e.body)?l["Content-Type"]="text/plain":Pc(e.body)||(l["Content-Type"]="application/json")),new Headers(l)},_1=r=>{var e;if(r.body!==void 0)return(e=r.mediaType)!=null&&e.includes("/json")?JSON.stringify(r.body):cr(r.body)||ts(r.body)||Pc(r.body)?r.body:JSON.stringify(r.body)},y1=async(r,e,t,n,i,s,l)=>{const o=new AbortController,a={headers:s,body:n??i,method:e.method,signal:o.signal};return r.WITH_CREDENTIALS&&(a.credentials=r.CREDENTIALS),l(()=>o.abort()),await fetch(t,a)},v1=(r,e)=>{if(e){const t=r.headers.get(e);if(cr(t))return t}},k1=async r=>{if(r.status!==204)try{const e=r.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(i=>e.toLowerCase().startsWith(i))?await r.json():await r.text()}catch(e){console.error(e)}},E1=(r,e)=>{const n={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...r.errors}[e.status];if(n)throw new _a(r,e,n);if(!e.ok)throw new _a(r,e,"Generic Error")},Fe=(r,e)=>new d1(async(t,n,i)=>{try{const s=p1(r,e),l=g1(e),o=_1(e),a=await b1(r,e);if(!i.isCancelled){const u=await y1(r,e,s,o,l,a,i),f=await k1(u),c=v1(u,e.responseHeader),h={url:s,ok:u.ok,status:u.status,statusText:u.statusText,body:c??f};E1(e,h),t(h.body)}}catch(s){n(s)}});class Ht{static getConcepts(){return Fe(Be,{method:"GET",url:"/api/v1/concepts/"})}static getConcept(e,t,n){return Fe(Be,{method:"GET",url:"/api/v1/concepts/{namespace}/{concept_name}",path:{namespace:e,concept_name:t},query:{draft:n},errors:{422:"Validation Error"}})}static editConcept(e,t,n){return Fe(Be,{method:"POST",url:"/api/v1/concepts/{namespace}/{concept_name}",path:{namespace:e,concept_name:t},body:n,mediaType:"application/json",errors:{422:"Validation Error"}})}static deleteConcept(e,t){return Fe(Be,{method:"DELETE",url:"/api/v1/concepts/{namespace}/{concept_name}",path:{namespace:e,concept_name:t},errors:{422:"Validation Error"}})}static createConcept(e){return Fe(Be,{method:"POST",url:"/api/v1/concepts/create",body:e,mediaType:"application/json",errors:{422:"Validation Error"}})}static mergeConceptDraft(e,t,n){return Fe(Be,{method:"POST",url:"/api/v1/concepts/{namespace}/{concept_name}/merge_draft",path:{namespace:e,concept_name:t},body:n,mediaType:"application/json",errors:{422:"Validation Error"}})}static getConceptModels(e,t){return Fe(Be,{method:"GET",url:"/api/v1/concepts/{namespace}/{concept_name}/model",path:{namespace:e,concept_name:t},errors:{422:"Validation Error"}})}static getConceptModel(e,t,n){return Fe(Be,{method:"GET",url:"/api/v1/concepts/{namespace}/{concept_name}/model/{embedding_name}",path:{namespace:e,concept_name:t,embedding_name:n},errors:{422:"Validation Error"}})}static score(e,t,n,i){return Fe(Be,{method:"POST",url:"/api/v1/concepts/{namespace}/{concept_name}/model/{embedding_name}/score",path:{namespace:e,concept_name:t,embedding_name:n},body:i,mediaType:"application/json",errors:{422:"Validation Error"}})}static generateExamples(e){return Fe(Be,{method:"GET",url:"/api/v1/concepts/generate_examples",query:{description:e},errors:{422:"Validation Error"}})}}class ns{static getSources(){return Fe(Be,{method:"GET",url:"/api/v1/data_loaders/"})}static getSourceSchema(e){return Fe(Be,{method:"GET",url:"/api/v1/data_loaders/{source_name}",path:{source_name:e},errors:{422:"Validation Error"}})}static load(e,t){return Fe(Be,{method:"POST",url:"/api/v1/data_loaders/{source_name}/load",path:{source_name:e},body:t,mediaType:"application/json",errors:{422:"Validation Error"}})}}class ot{static getDatasets(){return Fe(Be,{method:"GET",url:"/api/v1/datasets/"})}static getManifest(e,t){return Fe(Be,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static deleteDataset(e,t){return Fe(Be,{method:"DELETE",url:"/api/v1/datasets/{namespace}/{dataset_name}",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static computeSignal(e,t,n){return Fe(Be,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/compute_signal",path:{namespace:e,dataset_name:t},body:n,mediaType:"application/json",errors:{422:"Validation Error"}})}static deleteSignal(e,t,n){return Fe(Be,{method:"DELETE",url:"/api/v1/datasets/{namespace}/{dataset_name}/delete_signal",path:{namespace:e,dataset_name:t},body:n,mediaType:"application/json",errors:{422:"Validation Error"}})}static getStats(e,t,n){return Fe(Be,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/stats",path:{namespace:e,dataset_name:t},body:n,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectRowsDownload(e,t,n){return Fe(Be,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows_download",path:{namespace:e,dataset_name:t},query:{url_safe_options:n},errors:{422:"Validation Error"}})}static selectRows(e,t,n){return Fe(Be,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows",path:{namespace:e,dataset_name:t},body:n,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectRowsSchema(e,t,n){return Fe(Be,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_rows_schema",path:{namespace:e,dataset_name:t},body:n,mediaType:"application/json",errors:{422:"Validation Error"}})}static selectGroups(e,t,n){return Fe(Be,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/select_groups",path:{namespace:e,dataset_name:t},body:n,mediaType:"application/json",errors:{422:"Validation Error"}})}static getMedia(e,t,n,i){return Fe(Be,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/media",path:{namespace:e,dataset_name:t},query:{item_id:n,leaf_path:i},errors:{422:"Validation Error"}})}static getConfig(e,t,n){return Fe(Be,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/config",path:{namespace:e,dataset_name:t},query:{format:n},errors:{422:"Validation Error"}})}static getSettings(e,t){return Fe(Be,{method:"GET",url:"/api/v1/datasets/{namespace}/{dataset_name}/settings",path:{namespace:e,dataset_name:t},errors:{422:"Validation Error"}})}static updateSettings(e,t,n){return Fe(Be,{method:"POST",url:"/api/v1/datasets/{namespace}/{dataset_name}/settings",path:{namespace:e,dataset_name:t},body:n,mediaType:"application/json",errors:{422:"Validation Error"}})}}class S1{static authInfo(){return Fe(Be,{method:"GET",url:"/auth_info"})}}class bi{static getSignals(){return Fe(Be,{method:"GET",url:"/api/v1/signals/"})}static getEmbeddings(){return Fe(Be,{method:"GET",url:"/api/v1/signals/embeddings"})}static compute(e){return Fe(Be,{method:"POST",url:"/api/v1/signals/compute",body:e,mediaType:"application/json",errors:{422:"Validation Error"}})}static schema(e){return Fe(Be,{method:"POST",url:"/api/v1/signals/schema",body:e,mediaType:"application/json",errors:{422:"Validation Error"}})}}class O1{static getTaskManifest(){return Fe(Be,{method:"GET",url:"/api/v1/tasks/"})}}const Kr="*",w1="__rowid__",mn="__value__",A1={text:["string","string_span"],text_embedding:["embedding"],image:["binary"]};function L3(r){return T1(r)||P1(r)}function T1(r){return["float16","float32","float64"].indexOf(r??"")>=0}function P1(r){return["int8","int16","int32","int64","uint8","uint16","uint32","uint64"].indexOf(r)>=0}function mt(r){return typeof r=="string"?r:r.map(e=>e.includes(".")?`"${e}"`:e).join(".")}function C1(r){return r.repeated_field?C1(r.repeated_field):r.dtype&&!["embedding","binary"].includes(r.dtype)}function q3(r){return r.dtype&&!["embedding","binary"].includes(r.dtype)}function rn(r){var t;return Array.isArray(r)?r:((t=r.match(/(?:"[^"]*"|[^.])+(?:\.+$)?/g))==null?void 0:t.map(n=>n.replace(/"/g,"")))||[]}function At(r,e){if(!r||!e||(r=rn(r),e=rn(e),r.length!==e.length))return!1;for(let t=0;tt.path.length>0)}function z3(r){return r==null?[]:ft(r).filter(e=>e.dtype!=null)}function V3(r,e){return e==null?[]:(e?ft(e):[]).filter(n=>n.dtype==r)}function Rr(r){let e;if(Array.isArray(r))e=[...r,...r.flatMap(Rr)];else{const{[mn]:t,[tr]:n,[nr]:i,...s}=r,l=Object.values(s||{});e=[];for(const o of l)if(Array.isArray(o)){e=[...e,o];for(const a of o)e=[...e,a,...Rr(a)]}else e=[...e,o,...Rr(o)]}return e}function Ic(r,e){return ft(r).find(n=>rs(n.path,e))}function U3(r,e){return Rr(r).filter(n=>rs(e,Rc.path(n)))}function Jr(r,e,t=!1){return D1(e)&&(t=!0),e===r?t:e.fields!=null?Object.values(e.fields).some(n=>Jr(r,n,t)):e.repeated_field!=null?Jr(r,e.repeated_field,t):!1}function D1(r){return r.signal!=null}const Rc={path:r=>{if(!r)return;const e=r[tr];if(e==null)throw Error(`Item does not have a path defined: ${JSON.stringify(r)}`);return e},value:(r,e)=>r?r[mn]:null,field:r=>{if(r)return r[nr]},dtype:r=>{const e=Rc.field(r);return e==null?void 0:e.dtype}};function ul(r,e=[]){const{fields:t,repeated_field:n,...i}=r,s={...i,path:[]};if(t!=null){s.fields={};for(const[l,o]of Object.entries(t)){const a=ul(o,[...e,l]);a.path=[...e,l],s.fields[l]=a}}if(n!=null){const l=ul(n,[...e,Kr]);l.path=[...e,Kr],s.repeated_field=l}return s}function fl(r,e,t){const n=e.find(s=>rs(s.path,t));let i={};if(Array.isArray(r))return i=r.map((s,l)=>fl(s,e,[...t,l.toString()])),i[mn]=null,i[tr]=t,i[nr]=n,i;if(r!=null&&typeof r=="object"){const{[mn]:s,...l}=r;i=Object.entries(l).reduce((o,[a,u])=>(o[a]=fl(u,e,[...t,a]),o),{}),i[mn]=s}else i[mn]=r;return i[tr]=t,i[nr]=n,i}function vr(r){return!!(r&&typeof r=="object"&&!Array.isArray(r))}function cl(r,...e){if(!e.length)return r;const t=e.shift();if(vr(r)&&vr(t))for(const n in t){const i=r[n],s=t[n];vr(s)&&vr(i)?(i||Object.assign(r,{[n]:{}}),cl(i,s)):i||Object.assign(r,{[n]:s})}return cl(r,...e)}const M1=(r,e,...t)=>[...r,e,...t];function Ze(r,e,t={}){return e=Array.isArray(e)?e:[e],(...n)=>o1({queryKey:M1(e,r.name,...n),queryFn:()=>r(...n),...t})}function Qt(r,e={}){return()=>u1({mutationFn:t=>r(...t),...e})}const N1="auth_info",j1=Ze(S1.authInfo,N1),ls="tasks",H3=Ze(O1.getTaskManifest,ls,{staleTime:500,refetchInterval:500,refetchIntervalInBackground:!1,refetchOnWindowFocus:!0}),Dc=ct({taskCallbacks:new Map});function Mc(r,e){Dc.update(t=>{const n=t.taskCallbacks.get(r)||[];return t.taskCallbacks.set(r,[...n,e]),t})}function Q3(r){Dc.update(e=>{var t;for(const n of e.taskCallbacks.keys()){const i=r.tasks[n];if((i==null?void 0:i.status)=="error"||i.status==="completed"){const s=e.taskCallbacks.get(n)||[];for(;s.length;)(t=s.pop())==null||t(i);e.taskCallbacks.delete(n)}}return e})}const dl="URL_HASH_CONTEXT";function W3(){const{subscribe:r,update:e}=ct({hash:"",page:null,identifier:null,hashState:null});return{subscribe:r,setHash(t,n){e(i=>{const[s,...l]=n.slice(1).split("&");return i.page=t,i.hash=n,i.identifier=s,i.hashState=l.join("&"),i})}}}function L1(r,e){const t=`#${r}`+(e!=""?`&${e}`:"");t!=location.hash&&history.pushState(null,"",t)}function G3(r){Ut(dl,r)}function K3(){if(!mi(dl))throw new Error("UrlHashStoreContext not found");return bt(dl)}function Nc(r,e){const t=Object.keys(r);for(const n of t){const i=r[n],s=e[n],l=JSON.stringify(i),o=JSON.stringify(s);l==o&&delete r[n],typeof i=="object"&&s!=null&&i!=null&&Nc(i,s)}}function q1(r,e){r=JSON.parse(JSON.stringify(r)),Nc(r,e);const t=[];for(const n of Object.keys(r)){const i=JSON.stringify(r[n]);t.push([n,i])}return t.map(([n,i])=>`${n}=${encodeURIComponent(i)}`).join("&")}function B1(r,e){if(e=JSON.parse(JSON.stringify(e)),r==null||r=="")return e;const t={},n=(decodeURIComponent(r)||"").split("&");for(const i of n){if(i==null)continue;const[s,l]=i.split("=");t[s]=JSON.parse(l)}return cl(e,t)}function F1(r,e,t,n,i,s){let l=!1;n.subscribe(o=>{o.page===r&&o.identifier===e&&(l=!0,t.set(i(o.hashState)))}),t.subscribe(o=>{o!=null&&(l||L1(e,s(o)),l=!1)})}const $e="datasets",_i="config",jc="settings",ya=20,z1=Ze(ot.getDatasets,$e),J3=Ze(ot.getManifest,$e,{}),ss=Ze(ot.getManifest,$e,{select:r=>is(r.dataset_manifest.data_schema)}),Z3=Ze(function(e,t){return e&&t?ot.getManifest(e,t):Promise.resolve(void 0)},$e,{select:r=>r?is(r.dataset_manifest.data_schema):void 0}),Y3=Ze(ns.getSources,$e),X3=Ze(ns.getSourceSchema,$e,{select:r=>r}),x3=Qt(ns.load,{onSuccess:r=>{rt.invalidateQueries([ls]),Mc(r.task_id,()=>{rt.invalidateQueries([$e,"getDatasets"])})}}),V1=Qt(ot.computeSignal,{onSuccess:r=>{rt.invalidateQueries([ls]),Mc(r.task_id,()=>{rt.invalidateQueries([$e,"getManifest"]),rt.invalidateQueries([$e,"selectRowsSchema"]),rt.invalidateQueries([$e,"selectRows"]),rt.invalidateQueries([_i])})}}),$3=Qt(ot.deleteDataset,{onSuccess:()=>{rt.invalidateQueries([$e])}}),ew=Qt(ot.deleteSignal,{onSuccess:()=>{rt.invalidateQueries([$e,"getManifest"]),rt.invalidateQueries([$e,"selectRowsSchema"]),rt.invalidateQueries([$e,"selectRows"]),rt.invalidateQueries([_i])}}),tw=Ze(ot.getStats,$e),nw=Ze(function(e,t,n){const i=n.map(s=>ot.getStats(e,t,{leaf_path:s}));return Promise.all(i)},$e),rw=Ze(async function(e,t,n,i){const s=await ot.selectRows(e,t,n);return{rows:i==null?s.rows:s.rows.map(l=>Cc(l,i)),total_num_rows:s.total_num_rows}},$e),U1=Ze(ot.selectRowsSchema,$e,{select:r=>({schema:is(r.data_schema),...r})}),iw=Ze(ot.selectGroups,$e),lw=(r,e,t,n)=>a1({queryKey:[$e,"selectRows",r,e,t],queryFn:({pageParam:i=0})=>ot.selectRows(r,e,{...t,limit:t.limit||ya,offset:i*(t.limit||ya)}),select:i=>({...i,pages:i.pages.map(s=>({rows:s.rows.map(l=>Cc(l,n)),total_num_rows:s.total_num_rows}))}),getNextPageParam:(i,s)=>s.length,enabled:!!n}),sw=Ze(ot.getConfig,_i),ow=Ze(ot.getSettings,jc),aw=Qt(ot.updateSettings,{onSuccess:()=>{rt.invalidateQueries([jc]),rt.invalidateQueries([_i])}}),an="concepts",uw=Ze(Ht.getConcept,an),H1=Ze(Ht.getConcepts,an),fw=Ze(Ht.getConceptModels,an),cw=Qt(Ht.getConceptModel,{onSuccess:()=>{rt.invalidateQueries([an])}}),Q1=Qt(Ht.createConcept,{onSuccess:()=>{rt.invalidateQueries([an])}}),W1=Qt(Ht.editConcept,{onSuccess:()=>{rt.invalidateQueries([an]),rt.invalidateQueries([$e,"selectRows"])}}),dw=Qt(Ht.deleteConcept,{onSuccess:()=>rt.invalidateQueries([an])}),hw=Ze(Ht.score,an),yi="signals",G1=Ze(bi.getSignals,yi),K1=Ze(bi.getEmbeddings,yi),mw=Ze(bi.compute,yi),pw=Ze(bi.schema,yi),hl="NAVIGATION_CONTEXT";function gw(){return ct({open:!0})}function bw(r){Ut(hl,r)}function _w(){if(!mi(hl))throw new Error("NavigationContext not found");return bt(hl)}function va(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function J1(r){let e,t,n=r[1]&&va(r),i=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let l=0;l{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class Lc extends me{constructor(e){super(),pe(this,e,Z1,J1,he,{size:0,title:1})}}function ka(r){let e,t;return{c(){e=Ee("title"),t=ce(r[1])},l(n){e=Se(n,"title",{});var i=R(e);t=de(i,r[1]),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&2&&ye(t,n[1])},d(n){n&&g(e)}}}function Y1(r){let e,t,n,i=r[1]&&ka(r),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],l={};for(let o=0;o{t(5,e=Z(Z({},e),Te(u))),t(3,l=ge(e,s)),"size"in u&&t(0,o=u.size),"title"in u&&t(1,a=u.title)},r.$$.update=()=>{t(4,n=e["aria-label"]||e["aria-labelledby"]||a),t(2,i={"aria-hidden":n?void 0:!0,role:n?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[o,a,i,l,n]}class x1 extends me{constructor(e){super(),pe(this,e,X1,Y1,he,{size:0,title:1})}}function Ea(r){let e,t,n,i,s,l=`${r[2]}px`,o=`${Math.max(r[5]/2+kr,Math.min(r[1],r[6]-r[5]/2-kr))}px`,a;const u=[eb,$1],f=[];function c(h,d){return h[0]?0:h[3]?1:-1}return~(n=c(r))&&(i=f[n]=u[n](r)),{c(){e=j("div"),t=j("div"),i&&i.c(),this.h()},l(h){e=L(h,"DIV",{role:!0,class:!0});var d=R(e);t=L(d,"DIV",{class:!0});var m=R(t);i&&i.l(m),m.forEach(g),d.forEach(g),this.h()},h(){T(t,"class","min-w-xl text-container svelte-1a6oxtp"),T(e,"role","tooltip"),T(e,"class","hover-tooltip absolute mt-2 -translate-x-1/2 break-words border border-gray-300 bg-white p-2 shadow-md"),Oh(()=>r[7].call(e)),Cn(e,"top",l),Cn(e,"left",o)},m(h,d){P(h,e,d),I(e,t),~n&&f[n].m(t,null),s=wh(e,r[7].bind(e)),a=!0},p(h,d){let m=n;n=c(h),n===m?~n&&f[n].p(h,d):(i&&(ne(),v(f[m],1,1,()=>{f[m]=null}),re()),~n?(i=f[n],i?i.p(h,d):(i=f[n]=u[n](h),i.c()),_(i,1),i.m(t,null)):i=null),d&4&&l!==(l=`${h[2]}px`)&&Cn(e,"top",l),d&34&&o!==(o=`${Math.max(h[5]/2+kr,Math.min(h[1],h[6]-h[5]/2-kr))}px`)&&Cn(e,"left",o)},i(h){a||(_(i),a=!0)},o(h){v(i),a=!1},d(h){h&&g(e),~n&&f[n].d(),s()}}}function $1(r){let e,t,n;const i=[r[4]];var s=r[3];function l(o){let a={};for(let u=0;u{Q(f,1)}),re()}s?(e=je(s,l()),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else s&&e.$set(u)},i(o){n||(e&&_(e.$$.fragment,o),n=!0)},o(o){e&&v(e.$$.fragment,o),n=!1},d(o){o&&g(t),e&&Q(e,o)}}}function eb(r){let e,t;return{c(){e=j("span"),t=ce(r[0]),this.h()},l(n){e=L(n,"SPAN",{class:!0});var i=R(e);t=de(i,r[0]),i.forEach(g),this.h()},h(){T(e,"class","whitespace-pre-wrap")},m(n,i){P(n,e,i),I(e,t)},p(n,i){i&1&&ye(t,n[0])},i:ie,o:ie,d(n){n&&g(e)}}}function tb(r){let e,t,n=r[0]!=""&&Ea(r);return{c(){n&&n.c(),e=G()},l(i){n&&n.l(i),e=G()},m(i,s){n&&n.m(i,s),P(i,e,s),t=!0},p(i,[s]){i[0]!=""?n?(n.p(i,s),s&1&&_(n,1)):(n=Ea(i),n.c(),_(n,1),n.m(e.parentNode,e)):n&&(ne(),v(n,1,1,()=>{n=null}),re())},i(i){t||(_(n),t=!0)},o(i){v(n),t=!1},d(i){n&&n.d(i),i&&g(e)}}}const kr=10;function nb(r,e,t){let{text:n}=e,{x:i}=e,{y:s}=e,{component:l}=e,{props:o}=e;const a=window.innerWidth;let u=0;function f(){u=this.clientWidth,t(5,u)}return r.$$set=c=>{"text"in c&&t(0,n=c.text),"x"in c&&t(1,i=c.x),"y"in c&&t(2,s=c.y),"component"in c&&t(3,l=c.component),"props"in c&&t(4,o=c.props)},[n,i,s,l,o,u,a,f]}class rb extends me{constructor(e){super(),pe(this,e,nb,tb,he,{text:0,x:1,y:2,component:3,props:4})}}function ib(r,{text:e,component:t,props:n}){if(t==null&&e==null)return;let i,s=e,l=t,o=n;function a(){if(i!=null)return;const f=r.getBoundingClientRect();i=new rb({props:{text:s,component:l,props:o,x:f.left+f.width/2,y:f.bottom},target:document.body})}function u(){i==null||i.$destroy(),i=void 0}return r.addEventListener("mouseover",a),r.addEventListener("mouseleave",u),r.addEventListener("click",u),{update({text:f,component:c,props:h}){s=f,l=c,o=h,i==null||i.$set({tooltipText:f})},destroy(){u(),r.removeEventListener("mouseover",a),r.removeEventListener("mouseleave",u),r.removeEventListener("click",u)}}}function Sa(r,e,t){const n=r.slice();return n[4]=e[t],n[5]=e,n[6]=t,n}function Oa(r){let e,t,n=r[6]+1+"",i,s,l,o,a,u,f,c,h,d,m,p,y;function k(S){r[1](S,r[6])}let O={};r[0][r[6]]!==void 0&&(O.value=r[0][r[6]]),o=new _n({props:O}),qe.push(()=>Ke(o,"value",k)),h=new Lc({});function E(){return r[2](r[6])}return{c(){e=j("div"),t=j("div"),i=ce(n),s=$(),l=j("div"),U(o.$$.fragment),u=$(),f=j("div"),c=j("button"),U(h.$$.fragment),d=$(),this.h()},l(S){e=L(S,"DIV",{class:!0});var C=R(e);t=L(C,"DIV",{class:!0});var A=R(t);i=de(A,n),A.forEach(g),s=ee(C),l=L(C,"DIV",{class:!0});var D=R(l);J(o.$$.fragment,D),D.forEach(g),u=ee(C),f=L(C,"DIV",{});var w=R(f);c=L(w,"BUTTON",{class:!0});var B=R(c);J(h.$$.fragment,B),B.forEach(g),w.forEach(g),d=ee(C),C.forEach(g),this.h()},h(){T(t,"class","shrink-0 text-base"),T(l,"class","grow"),T(c,"class","px-1 py-2"),T(e,"class","flex flex-row items-center gap-x-2")},m(S,C){P(S,e,C),I(e,t),I(t,i),I(e,s),I(e,l),H(o,l,null),I(e,u),I(e,f),I(f,c),H(h,c,null),I(e,d),m=!0,p||(y=[Ah(ib.call(null,c,{text:"Remove example"})),W(c,"click",E)],p=!0)},p(S,C){r=S;const A={};!a&&C&1&&(a=!0,A.value=r[0][r[6]],Je(()=>a=!1)),o.$set(A)},i(S){m||(_(o.$$.fragment,S),_(h.$$.fragment,S),m=!0)},o(S){v(o.$$.fragment,S),v(h.$$.fragment,S),m=!1},d(S){S&&g(e),Q(o),Q(h),p=!1,Ge(y)}}}function lb(r){let e,t,n,i,s,l,o,a,u,f=r[0],c=[];for(let d=0;dv(c[d],1,1,()=>{c[d]=null});return{c(){e=j("div"),t=j("div");for(let d=0;d0),T(e,"class","flex flex-col gap-y-2")},m(d,m){P(d,e,m),I(e,t);for(let p=0;p0)},i(d){if(!o){for(let m=0;m{n.splice(o,1),t(0,n)},l=()=>{t(0,n=[...n||[],""])};return r.$$set=o=>{"examples"in o&&t(0,n=o.examples)},[n,i,s,l]}class wa extends me{constructor(e){super(),pe(this,e,sb,lb,he,{examples:0})}}function Aa(r,e,t){const n=r.slice();return n[40]=e[t],n}function Ta(r,e,t){const n=r.slice();return n[6]=e[t],n}function ob(r){let e,t,n;function i(l){r[32](l)}let s={labelText:"namespace"};return r[14]!==void 0&&(s.value=r[14]),e=new _n({props:s}),qe.push(()=>Ke(e,"value",i)),{c(){U(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){H(e,l,o),n=!0},p(l,o){const a={};!t&&o[0]&16384&&(t=!0,a.value=l[14],Je(()=>t=!1)),e.$set(a)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){v(e.$$.fragment,l),n=!1},d(l){Q(e,l)}}}function ab(r){let e,t;return e=new _n({props:{labelText:"namespace",disabled:!0}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p:ie,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function Pa(r){let e,t;return{c(){e=j("div"),t=ce("This concept will be created under your namespace, so only will be visible to you."),this.h()},l(n){e=L(n,"DIV",{class:!0});var i=R(e);t=de(i,"This concept will be created under your namespace, so only will be visible to you."),i.forEach(g),this.h()},h(){T(e,"class","mb-8 text-xs text-neutral-700")},m(n,i){P(n,e,i),I(e,t)},d(n){n&&g(e)}}}function ub(r){let e,t,n,i;return n=new cc({}),{c(){e=ce(`Generate + `),t=j("span"),U(n.$$.fragment),this.h()},l(s){e=de(s,`Generate + `),t=L(s,"SPAN",{class:!0});var l=R(t);J(n.$$.fragment,l),l.forEach(g),this.h()},h(){T(t,"class","ml-2"),b(t,"invisible",!r[9])},m(s,l){P(s,e,l),P(s,t,l),H(n,t,null),i=!0},p(s,l){(!i||l[0]&512)&&b(t,"invisible",!s[9])},i(s){i||(_(n.$$.fragment,s),i=!0)},o(s){v(n.$$.fragment,s),i=!1},d(s){s&&g(e),s&&g(t),Q(n)}}}function fb(r){let e,t;return e=new sn({props:{labelText:"Dataset",selected:r[15],$$slots:{default:[hb]},$$scope:{ctx:r}}}),e.$on("change",r[20]),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i[0]&32768&&(s.selected=n[15]),i[0]&16|i[1]&16384&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function cb(r){let e,t;return e=new dc({props:{kind:"error",title:"Error",subtitle:r[4].error.message,hideCloseButton:!0}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i[0]&16&&(s.subtitle=n[4].error.message),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function db(r){let e,t;return e=new Yl({}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p:ie,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function Ca(r){let e,t;return e=new on({props:{value:`${r[6].namespace}/${r[6].dataset_name}`}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i[0]&16&&(s.value=`${n[6].namespace}/${n[6].dataset_name}`),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function hb(r){let e,t,n=r[4].data,i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;lKe(f,"value",vt));let tt=r[3]&&Pa();function On(ve){r[34](ve)}let Pt={labelText:"Concept description",helperText:"This will be used by an LLM to generate example sentences.",placeholder:"Enter the concept description..."};r[8]!==void 0&&(Pt.value=r[8]),E=new _n({props:Pt}),qe.push(()=>Ke(E,"value",On)),D=new jn({props:{disabled:!r[8]||r[9],$$slots:{default:[ub]},$$scope:{ctx:r}}}),D.$on("click",r[23]);function ue(ve){r[35](ve)}let Ps={};r[11]!==void 0&&(Ps.examples=r[11]),B=new wa({props:Ps}),qe.push(()=>Ke(B,"examples",ue));const Cs=[db,cb,fb],Wt=[];function Is(ve,Ve){return ve[4].isLoading?0:ve[4].isError?1:ve[4].data.length>0?2:-1}~(oe=Is(r))&&(fe=Wt[oe]=Cs[oe](r));const Rs=[gb,pb,mb],Gt=[];function Ds(ve,Ve){var pt,Kt;return(pt=ve[5])!=null&&pt.isLoading?0:(Kt=ve[5])!=null&&Kt.isError?1:ve[1].length>0?2:-1}~(te=Ds(r))&&(ke=Gt[te]=Rs[te](r)),se=new jn({props:{disabled:!r[6]||!r[0],$$slots:{default:[_b]},$$scope:{ctx:r}}}),se.$on("click",r[24]);function yh(ve){r[36](ve)}let Ms={};return r[12]!==void 0&&(Ms.examples=r[12]),lt=new wa({props:Ms}),qe.push(()=>Ke(lt,"examples",yh)),{c(){e=j("div"),t=j("section"),n=j("div"),i=ce("Step 1. Concept details"),s=$(),l=j("div"),a.c(),u=$(),U(f.$$.fragment),h=$(),tt&&tt.c(),d=$(),m=j("section"),p=j("div"),y=ce("Step 2. Add positive examples"),k=$(),O=j("div"),U(E.$$.fragment),C=$(),A=j("div"),U(D.$$.fragment),w=$(),U(B.$$.fragment),F=$(),q=j("section"),N=j("div"),Y=ce("Step 3. Add negative examples"),V=$(),K=j("div"),fe&&fe.c(),x=$(),ke&&ke.c(),z=$(),_e=j("div"),U(se.$$.fragment),Ye=$(),U(lt.$$.fragment),this.h()},l(ve){e=L(ve,"DIV",{class:!0});var Ve=R(e);t=L(Ve,"SECTION",{});var pt=R(t);n=L(pt,"DIV",{class:!0});var Kt=R(n);i=de(Kt,"Step 1. Concept details"),Kt.forEach(g),s=ee(pt),l=L(pt,"DIV",{class:!0});var cn=R(l);a.l(cn),u=ee(cn),J(f.$$.fragment,cn),cn.forEach(g),h=ee(pt),tt&&tt.l(pt),pt.forEach(g),d=ee(Ve),m=L(Ve,"SECTION",{});var Ct=R(m);p=L(Ct,"DIV",{class:!0});var Hn=R(p);y=de(Hn,"Step 2. Add positive examples"),Hn.forEach(g),k=ee(Ct),O=L(Ct,"DIV",{class:!0});var Jt=R(O);J(E.$$.fragment,Jt),C=ee(Jt),A=L(Jt,"DIV",{class:!0});var wn=R(A);J(D.$$.fragment,wn),wn.forEach(g),Jt.forEach(g),w=ee(Ct),J(B.$$.fragment,Ct),Ct.forEach(g),F=ee(Ve),q=L(Ve,"SECTION",{});var It=R(q);N=L(It,"DIV",{class:!0});var Qn=R(N);Y=de(Qn,"Step 3. Add negative examples"),Qn.forEach(g),V=ee(It),K=L(It,"DIV",{class:!0});var An=R(K);fe&&fe.l(An),x=ee(An),ke&&ke.l(An),z=ee(An),_e=L(An,"DIV",{class:!0});var Ns=R(_e);J(se.$$.fragment,Ns),Ns.forEach(g),An.forEach(g),Ye=ee(It),J(lt.$$.fragment,It),It.forEach(g),Ve.forEach(g),this.h()},h(){T(n,"class","header-step svelte-62ihoh"),T(l,"class","flex flex-row gap-x-12"),T(p,"class","header-step svelte-62ihoh"),T(A,"class","generate-button pt-6"),T(O,"class","my-4 flex gap-x-2"),T(N,"class","header-step svelte-62ihoh"),T(_e,"class","generate-button"),T(K,"class","my-4 flex items-end gap-x-2"),T(e,"class","flex flex-col gap-y-8")},m(ve,Ve){P(ve,e,Ve),I(e,t),I(t,n),I(n,i),I(t,s),I(t,l),le[o].m(l,null),I(l,u),H(f,l,null),I(t,h),tt&&tt.m(t,null),I(e,d),I(e,m),I(m,p),I(p,y),I(m,k),I(m,O),H(E,O,null),I(O,C),I(O,A),H(D,A,null),I(m,w),H(B,m,null),I(e,F),I(e,q),I(q,N),I(N,Y),I(q,V),I(q,K),~oe&&Wt[oe].m(K,null),I(K,x),~te&&Gt[te].m(K,null),I(K,z),I(K,_e),H(se,_e,null),I(q,Ye),H(lt,q,null),yt=!0},p(ve,Ve){let pt=o;o=ae(ve),o===pt?le[o].p(ve,Ve):(ne(),v(le[pt],1,1,()=>{le[pt]=null}),re(),a=le[o],a?a.p(ve,Ve):(a=le[o]=Pe[o](ve),a.c()),_(a,1),a.m(l,u));const Kt={};!c&&Ve[0]&128&&(c=!0,Kt.value=ve[7],Je(()=>c=!1)),f.$set(Kt),ve[3]?tt||(tt=Pa(),tt.c(),tt.m(t,null)):tt&&(tt.d(1),tt=null);const cn={};!S&&Ve[0]&256&&(S=!0,cn.value=ve[8],Je(()=>S=!1)),E.$set(cn);const Ct={};Ve[0]&768&&(Ct.disabled=!ve[8]||ve[9]),Ve[0]&512|Ve[1]&16384&&(Ct.$$scope={dirty:Ve,ctx:ve}),D.$set(Ct);const Hn={};!M&&Ve[0]&2048&&(M=!0,Hn.examples=ve[11],Je(()=>M=!1)),B.$set(Hn);let Jt=oe;oe=Is(ve),oe===Jt?~oe&&Wt[oe].p(ve,Ve):(fe&&(ne(),v(Wt[Jt],1,1,()=>{Wt[Jt]=null}),re()),~oe?(fe=Wt[oe],fe?fe.p(ve,Ve):(fe=Wt[oe]=Cs[oe](ve),fe.c()),_(fe,1),fe.m(K,x)):fe=null);let wn=te;te=Ds(ve),te===wn?~te&&Gt[te].p(ve,Ve):(ke&&(ne(),v(Gt[wn],1,1,()=>{Gt[wn]=null}),re()),~te?(ke=Gt[te],ke?ke.p(ve,Ve):(ke=Gt[te]=Rs[te](ve),ke.c()),_(ke,1),ke.m(K,z)):ke=null);const It={};Ve[0]&65&&(It.disabled=!ve[6]||!ve[0]),Ve[0]&1024|Ve[1]&16384&&(It.$$scope={dirty:Ve,ctx:ve}),se.$set(It);const Qn={};!Et&&Ve[0]&4096&&(Et=!0,Qn.examples=ve[12],Je(()=>Et=!1)),lt.$set(Qn)},i(ve){yt||(_(a),_(f.$$.fragment,ve),_(E.$$.fragment,ve),_(D.$$.fragment,ve),_(B.$$.fragment,ve),_(fe),_(ke),_(se.$$.fragment,ve),_(lt.$$.fragment,ve),yt=!0)},o(ve){v(a),v(f.$$.fragment,ve),v(E.$$.fragment,ve),v(D.$$.fragment,ve),v(B.$$.fragment,ve),v(fe),v(ke),v(se.$$.fragment,ve),v(lt.$$.fragment,ve),yt=!1},d(ve){ve&&g(e),le[o].d(),Q(f),tt&&tt.d(),Q(E),Q(D),Q(B),~oe&&Wt[oe].d(),~te&&Gt[te].d(),Q(se),Q(lt)}}}function vb(r){let e,t,n,i,s,l;return e=new Kl({props:{title:"New Concept"}}),n=new Jl({props:{hasForm:!0,$$slots:{default:[yb]},$$scope:{ctx:r}}}),s=new Zl({props:{primaryButtonText:"Create",secondaryButtonText:"Cancel",primaryButtonDisabled:r[14].length==0||r[7].length==0}}),s.$on("click:button--secondary",r[25]),{c(){U(e.$$.fragment),t=$(),U(n.$$.fragment),i=$(),U(s.$$.fragment)},l(o){J(e.$$.fragment,o),t=ee(o),J(n.$$.fragment,o),i=ee(o),J(s.$$.fragment,o)},m(o,a){H(e,o,a),P(o,t,a),H(n,o,a),P(o,i,a),H(s,o,a),l=!0},p(o,a){const u={};a[0]&65531|a[1]&16384&&(u.$$scope={dirty:a,ctx:o}),n.$set(u);const f={};a[0]&16512&&(f.primaryButtonDisabled=o[14].length==0||o[7].length==0),s.$set(f)},i(o){l||(_(e.$$.fragment,o),_(n.$$.fragment,o),_(s.$$.fragment,o),l=!0)},o(o){v(e.$$.fragment,o),v(n.$$.fragment,o),v(s.$$.fragment,o),l=!1},d(o){Q(e,o),o&&g(t),Q(n,o),o&&g(i),Q(s,o)}}}function kb(r){let e,t;return e=new Gl({props:{open:!0,size:"lg",$$slots:{default:[vb]},$$scope:{ctx:r}}}),e.$on("submit",r[22]),e.$on("close",r[25]),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i[0]&65531|i[1]&16384&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function Eb(r,e,t){let n,i,s,l,o,a,u,f,c,h,d,m,p,y,k,O,E=ie,S=()=>(E(),E=Ql(c,Pe=>t(5,O=Pe)),c),C;r.$$.on_destroy.push(()=>E());let{command:A}=e;const D=j1();xe(r,D,Pe=>t(31,C=Pe));let w=A.conceptName||"",B,M=!1,F=!1;const q=Q1();xe(r,q,Pe=>t(38,y=Pe));const N=W1();xe(r,N,Pe=>t(37,p=Pe));const Y=dt(),V=z1();xe(r,V,Pe=>t(4,k=Pe));function K(Pe){const le=Pe.target.value;if(le==="")t(6,o=void 0);else{const[ae,vt]=le.split("/");t(6,o={namespace:ae,name:vt})}t(0,u=void 0)}function oe(Pe){const le=Pe.target.value;t(0,u=rn(le))}let fe=[""],x=[""];function te(){y.mutate([{namespace:l,name:w,type:"text",description:B}],{onSuccess:()=>{p.mutate([l,w,{insert:[...fe.filter(Pe=>Pe!="").map(Pe=>({text:Pe,label:!0})),...x.filter(Pe=>Pe!="").map(Pe=>({text:Pe,label:!1}))]}],{onSuccess:()=>{Y("create",{namespace:l,name:w}),_e()}})}})}async function ke(){if(!B)return;t(9,M=!0);const Pe=await Ht.generateExamples(B);t(9,M=!1),fe.at(-1)===""&&fe.pop(),fe.push(...Pe),t(11,fe)}async function z(){if(!o||!u)return;t(10,F=!0);const Pe=await ot.selectRows(o.namespace,o.name,{columns:[u],limit:10,sort_by:[w1]});t(10,F=!1),x.at(-1)===""&&x.pop();const le=Pe.rows.map(ae=>ae[f]);x.push(...le),t(12,x)}function _e(){Y("close")}function se(Pe){l=Pe,t(14,l),t(26,A),t(29,s),t(3,n),t(30,i),t(31,C)}function Ye(Pe){w=Pe,t(7,w)}function lt(Pe){B=Pe,t(8,B)}function Et(Pe){fe=Pe,t(11,fe)}function yt(Pe){x=Pe,t(12,x)}return r.$$set=Pe=>{"command"in Pe&&t(26,A=Pe.command)},r.$$.update=()=>{var Pe,le,ae;r.$$.dirty[1]&1&&t(3,n=(Pe=C.data)==null?void 0:Pe.auth_enabled),r.$$.dirty[1]&1&&t(30,i=(ae=(le=C.data)==null?void 0:le.user)==null?void 0:ae.id),r.$$.dirty[0]&1073741832&&t(29,s=(n?i:null)||"local"),r.$$.dirty[0]&603979776&&t(14,l=A.namespace||s),r.$$.dirty[0]&67108864&&t(6,o=A.dataset),r.$$.dirty[0]&80&&k.data&&k.data.length>0&&o===void 0&&t(6,o={namespace:k.data[0].namespace,name:k.data[0].dataset_name}),r.$$.dirty[0]&64&&t(15,a=o?`${o.namespace}/${o.name}`:""),r.$$.dirty[0]&67108864&&t(0,u=A.path),r.$$.dirty[0]&64&&S(t(2,c=o&&ss(o.namespace,o.name))),r.$$.dirty[0]&36&&t(28,h=c&&(O==null?void 0:O.data)),r.$$.dirty[0]&268435456&&t(27,d=h?ft(h).filter(vt=>vt.dtype==="string"&&!Jr(vt,h)):[]),r.$$.dirty[0]&134217728&&t(1,m=d.sort((vt,Sn)=>{const tt=ft(vt).some(Pt=>Pt.signal!=null&&ft(Pt).some(ue=>ue.dtype==="embedding")),On=ft(Sn).some(Pt=>Pt.signal!=null&&ft(Pt).some(ue=>ue.dtype==="embedding"));return tt&&!On?-1:!tt&&On?1:0})),r.$$.dirty[0]&3&&m&&m.length>0&&u===void 0&&t(0,u=rn(m[0].path)),r.$$.dirty[0]&1&&t(13,f=u?mt(u):void 0)},[u,m,c,n,k,O,o,w,B,M,F,fe,x,f,l,a,D,q,N,V,K,oe,te,ke,z,_e,A,d,h,s,i,C,se,Ye,lt,Et,yt]}class Sb extends me{constructor(e){super(),pe(this,e,Eb,kb,he,{command:26},null,[-1,-1])}}var vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ob(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(e,i);return new s}return e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var Ra=Object.prototype.toString,qc=function(e){var t=Ra.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Ra.call(e.callee)==="[object Function]"),n},Ti,Da;function wb(){if(Da)return Ti;Da=1;var r;if(!Object.keys){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=qc,i=Object.prototype.propertyIsEnumerable,s=!i.call({toString:null},"toString"),l=i.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=function(h){var d=h.constructor;return d&&d.prototype===h},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if(typeof window>"u")return!1;for(var h in window)try{if(!u["$"+h]&&e.call(window,h)&&window[h]!==null&&typeof window[h]=="object")try{a(window[h])}catch{return!0}}catch{return!0}return!1}(),c=function(h){if(typeof window>"u"||!f)return a(h);try{return a(h)}catch{return!1}};r=function(d){var m=d!==null&&typeof d=="object",p=t.call(d)==="[object Function]",y=n(d),k=m&&t.call(d)==="[object String]",O=[];if(!m&&!p&&!y)throw new TypeError("Object.keys called on a non-object");var E=l&&p;if(k&&d.length>0&&!e.call(d,0))for(var S=0;S0)for(var C=0;C"u"||!it?Le:it(Uint8Array),bn={"%AggregateError%":typeof AggregateError>"u"?Le:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Le:ArrayBuffer,"%ArrayIteratorPrototype%":Tn&&it?it([][Symbol.iterator]()):Le,"%AsyncFromSyncIteratorPrototype%":Le,"%AsyncFunction%":Pn,"%AsyncGenerator%":Pn,"%AsyncGeneratorFunction%":Pn,"%AsyncIteratorPrototype%":Pn,"%Atomics%":typeof Atomics>"u"?Le:Atomics,"%BigInt%":typeof BigInt>"u"?Le:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Le:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Le:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Le:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Le:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Le:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Le:FinalizationRegistry,"%Function%":Fc,"%GeneratorFunction%":Pn,"%Int8Array%":typeof Int8Array>"u"?Le:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Le:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Le:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Tn&&it?it(it([][Symbol.iterator]())):Le,"%JSON%":typeof JSON=="object"?JSON:Le,"%Map%":typeof Map>"u"?Le:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Tn||!it?Le:it(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Le:Promise,"%Proxy%":typeof Proxy>"u"?Le:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Le:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Le:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Tn||!it?Le:it(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Le:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Tn&&it?it(""[Symbol.iterator]()):Le,"%Symbol%":Tn?Symbol:Le,"%SyntaxError%":Ln,"%ThrowTypeError%":qb,"%TypedArray%":Fb,"%TypeError%":Mn,"%Uint8Array%":typeof Uint8Array>"u"?Le:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Le:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Le:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Le:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Le:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Le:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Le:WeakSet};if(it)try{null.error}catch(r){var zb=it(it(r));bn["%Error.prototype%"]=zb}var Vb=function r(e){var t;if(e==="%AsyncFunction%")t=Ci("async function () {}");else if(e==="%GeneratorFunction%")t=Ci("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Ci("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=r("%AsyncGenerator%");i&&it&&(t=it(i.prototype))}return bn[e]=t,t},qa={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},hr=us,Zr=Bc,Ub=hr.call(Function.call,Array.prototype.concat),Hb=hr.call(Function.apply,Array.prototype.splice),Ba=hr.call(Function.call,String.prototype.replace),Yr=hr.call(Function.call,String.prototype.slice),Qb=hr.call(Function.call,RegExp.prototype.exec),Wb=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gb=/\\(\\)?/g,Kb=function(e){var t=Yr(e,0,1),n=Yr(e,-1);if(t==="%"&&n!=="%")throw new Ln("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new Ln("invalid intrinsic syntax, expected opening `%`");var i=[];return Ba(e,Wb,function(s,l,o,a){i[i.length]=o?Ba(a,Gb,"$1"):l||s}),i},Jb=function(e,t){var n=e,i;if(Zr(qa,n)&&(i=qa[n],n="%"+i[0]+"%"),Zr(bn,n)){var s=bn[n];if(s===Pn&&(s=Vb(n)),typeof s>"u"&&!t)throw new Mn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new Ln("intrinsic "+e+" does not exist!")},jt=function(e,t){if(typeof e!="string"||e.length===0)throw new Mn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Mn('"allowMissing" argument must be a boolean');if(Qb(/^%?[^%]*%?$/,e)===null)throw new Ln("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Kb(e),i=n.length>0?n[0]:"",s=Jb("%"+i+"%",t),l=s.name,o=s.value,a=!1,u=s.alias;u&&(i=u[0],Hb(n,Ub([0,1],u)));for(var f=1,c=!0;f=n.length){var p=gn(o,h);c=!!p,c&&"get"in p&&!("originalValue"in p.get)?o=p.get:o=o[h]}else c=Zr(o,h),o=o[h];c&&!a&&(bn[l]=o)}}return o},Zb=jt,ml=Zb("%Object.defineProperty%",!0),pl=function(){if(ml)try{return ml({},"a",{value:1}),!0}catch{return!1}return!1};pl.hasArrayLengthDefineBug=function(){if(!pl())return null;try{return ml([],"length",{value:1}).length!==1}catch{return!0}};var Yb=pl,Xb=os,xb=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",$b=Object.prototype.toString,e_=Array.prototype.concat,zc=Object.defineProperty,t_=function(r){return typeof r=="function"&&$b.call(r)==="[object Function]"},n_=Yb(),Vc=zc&&n_,r_=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!t_(n)||!n())return}Vc?zc(r,e,{configurable:!0,enumerable:!1,value:t,writable:!0}):r[e]=t},Uc=function(r,e){var t=arguments.length>2?arguments[2]:{},n=Xb(e);xb&&(n=e_.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i-1?Wc(n):n},l_=os,Gc=ki(),Kc=_t,Fa=Object,s_=Kc("Array.prototype.push"),za=Kc("Object.prototype.propertyIsEnumerable"),o_=Gc?Object.getOwnPropertySymbols:null,Jc=function(e,t){if(e==null)throw new TypeError("target must be an object");var n=Fa(e);if(arguments.length===1)return n;for(var i=1;i=0&&gl(e)!=="[object Array]"&&gl(e.callee)==="[object Function]"},F_=function(){return Ei(arguments)}();Ei.isLegacyArguments=rd;var id=F_?Ei:rd;const z_={},V_=Object.freeze(Object.defineProperty({__proto__:null,default:z_},Symbol.toStringTag,{value:"Module"})),U_=Ob(V_);var fs=typeof Map=="function"&&Map.prototype,Di=Object.getOwnPropertyDescriptor&&fs?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xr=fs&&Di&&typeof Di.get=="function"?Di.get:null,Ua=fs&&Map.prototype.forEach,cs=typeof Set=="function"&&Set.prototype,Mi=Object.getOwnPropertyDescriptor&&cs?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,xr=cs&&Mi&&typeof Mi.get=="function"?Mi.get:null,Ha=cs&&Set.prototype.forEach,H_=typeof WeakMap=="function"&&WeakMap.prototype,xn=H_?WeakMap.prototype.has:null,Q_=typeof WeakSet=="function"&&WeakSet.prototype,$n=Q_?WeakSet.prototype.has:null,W_=typeof WeakRef=="function"&&WeakRef.prototype,Qa=W_?WeakRef.prototype.deref:null,G_=Boolean.prototype.valueOf,K_=Object.prototype.toString,J_=Function.prototype.toString,Z_=String.prototype.match,ds=String.prototype.slice,en=String.prototype.replace,Y_=String.prototype.toUpperCase,Wa=String.prototype.toLowerCase,ld=RegExp.prototype.test,Ga=Array.prototype.concat,Mt=Array.prototype.join,X_=Array.prototype.slice,Ka=Math.floor,bl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ni=Object.getOwnPropertySymbols,_l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,qn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ut=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===qn||"symbol")?Symbol.toStringTag:null,sd=Object.prototype.propertyIsEnumerable,Ja=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Za(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||ld.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Ka(-r):Ka(r);if(n!==r){var i=String(n),s=ds.call(e,i.length+1);return en.call(i,t,"$&_")+"."+en.call(en.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return en.call(e,t,"$&_")}var yl=U_,Ya=yl.custom,Xa=ad(Ya)?Ya:null,x_=function r(e,t,n,i){var s=t||{};if(xt(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xt(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=xt(s,"customInspect")?s.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xt(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xt(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=s.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return fd(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var a=String(e);return o?Za(e,a):a}if(typeof e=="bigint"){var u=String(e)+"n";return o?Za(e,u):u}var f=typeof s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof e=="object")return vl(e)?"[Array]":"[Object]";var c=g0(s,n);if(typeof i>"u")i=[];else if(ud(i,e)>=0)return"[Circular]";function h(N,Y,V){if(Y&&(i=X_.call(i),i.push(Y)),V){var K={depth:s.depth};return xt(s,"quoteStyle")&&(K.quoteStyle=s.quoteStyle),r(N,K,n+1,i)}return r(N,s,n+1,i)}if(typeof e=="function"&&!xa(e)){var d=o0(e),m=Er(e,h);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(m.length>0?" { "+Mt.call(m,", ")+" }":"")}if(ad(e)){var p=qn?en.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):_l.call(e);return typeof e=="object"&&!qn?Wn(p):p}if(h0(e)){for(var y="<"+Wa.call(String(e.nodeName)),k=e.attributes||[],O=0;O",y}if(vl(e)){if(e.length===0)return"[]";var E=Er(e,h);return c&&!p0(E)?"["+kl(E,c)+"]":"[ "+Mt.call(E,", ")+" ]"}if(t0(e)){var S=Er(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!sd.call(e,"cause")?"{ ["+String(e)+"] "+Mt.call(Ga.call("[cause]: "+h(e.cause),S),", ")+" }":S.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Mt.call(S,", ")+" }"}if(typeof e=="object"&&l){if(Xa&&typeof e[Xa]=="function"&&yl)return yl(e,{depth:f-n});if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(a0(e)){var C=[];return Ua&&Ua.call(e,function(N,Y){C.push(h(Y,e,!0)+" => "+h(N,e))}),$a("Map",Xr.call(e),C,c)}if(c0(e)){var A=[];return Ha&&Ha.call(e,function(N){A.push(h(N,e))}),$a("Set",xr.call(e),A,c)}if(u0(e))return ji("WeakMap");if(d0(e))return ji("WeakSet");if(f0(e))return ji("WeakRef");if(r0(e))return Wn(h(Number(e)));if(l0(e))return Wn(h(bl.call(e)));if(i0(e))return Wn(G_.call(e));if(n0(e))return Wn(h(String(e)));if(!e0(e)&&!xa(e)){var D=Er(e,h),w=Ja?Ja(e)===Object.prototype:e instanceof Object||e.constructor===Object,B=e instanceof Object?"":"null prototype",M=!w&&ut&&Object(e)===e&&ut in e?ds.call(fn(e),8,-1):B?"Object":"",F=w||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",q=F+(M||B?"["+Mt.call(Ga.call([],M||[],B||[]),": ")+"] ":"");return D.length===0?q+"{}":c?q+"{"+kl(D,c)+"}":q+"{ "+Mt.call(D,", ")+" }"}return String(e)};function od(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function $_(r){return en.call(String(r),/"/g,""")}function vl(r){return fn(r)==="[object Array]"&&(!ut||!(typeof r=="object"&&ut in r))}function e0(r){return fn(r)==="[object Date]"&&(!ut||!(typeof r=="object"&&ut in r))}function xa(r){return fn(r)==="[object RegExp]"&&(!ut||!(typeof r=="object"&&ut in r))}function t0(r){return fn(r)==="[object Error]"&&(!ut||!(typeof r=="object"&&ut in r))}function n0(r){return fn(r)==="[object String]"&&(!ut||!(typeof r=="object"&&ut in r))}function r0(r){return fn(r)==="[object Number]"&&(!ut||!(typeof r=="object"&&ut in r))}function i0(r){return fn(r)==="[object Boolean]"&&(!ut||!(typeof r=="object"&&ut in r))}function ad(r){if(qn)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!_l)return!1;try{return _l.call(r),!0}catch{}return!1}function l0(r){if(!r||typeof r!="object"||!bl)return!1;try{return bl.call(r),!0}catch{}return!1}var s0=Object.prototype.hasOwnProperty||function(r){return r in this};function xt(r,e){return s0.call(r,e)}function fn(r){return K_.call(r)}function o0(r){if(r.name)return r.name;var e=Z_.call(J_.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function ud(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return fd(ds.call(r,0,e.maxStringLength),e)+n}var i=en.call(en.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,m0);return od(i,"single",e)}function m0(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+Y_.call(e.toString(16))}function Wn(r){return"Object("+r+")"}function ji(r){return r+" { ? }"}function $a(r,e,t,n){var i=n?kl(t,n):Mt.call(t,", ");return r+" ("+e+") {"+i+"}"}function p0(r){for(var e=0;e=0)return!1;return!0}function g0(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=Mt.call(Array(r.indent+1)," ");else return null;return{base:t,prev:Mt.call(Array(e+1),t)}}function kl(r,e){if(r.length===0)return"";var t=` +`+e.prev+e.base;return t+Mt.call(r,","+t)+` +`+e.prev}function Er(r,e){var t=vl(r),n=[];if(t){n.length=r.length;for(var i=0;i=n)return t+1;var i=ou(e,t);if(i<55296||i>56319)return t+1;var s=ou(e,t+1);return s<56320||s>57343?t+1:t+2},qi=function(e){var t=0;return{next:function(){var i=t>=e.length,s;return i||(s=e[t],t+=1),{done:i,value:s}}}},au=function(e,t){if(V0(e)||ru(e))return qi(e);if(U0(e)){var n=0;return{next:function(){var s=G0(e,n),l=W0(e,n,s);return n=s,{done:s>e.length,value:l}}}}if(t&&typeof e["_es6-shim iterator_"]<"u")return e["_es6-shim iterator_"]()};if(!H0&&!Q0)Mr.exports=function(e){if(e!=null)return au(e,!0)};else{var K0=pd,J0=bd,uu=Ot("Map.prototype.forEach",!0),fu=Ot("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var cu=Ot("Map.prototype.iterator",!0),du=Ot("Set.prototype.iterator",!0);var hu=Ot("Map.prototype.@@iterator",!0)||Ot("Map.prototype._es6-shim iterator_",!0),mu=Ot("Set.prototype.@@iterator",!0)||Ot("Set.prototype._es6-shim iterator_",!0),Z0=function(e){if(K0(e)){if(cu)return iu(cu(e));if(hu)return hu(e);if(uu){var t=[];return uu(e,function(i,s){su(t,[s,i])}),qi(t)}}if(J0(e)){if(du)return iu(du(e));if(mu)return mu(e);if(fu){var n=[];return fu(e,function(i){su(n,i)}),qi(n)}}};Mr.exports=function(e){return Z0(e)||au(e)}}}var Y0=Mr.exports,pu=function(r){return r!==r},_d=function(e,t){return e===0&&t===0?1/e===1/t:!!(e===t||pu(e)&&pu(t))},X0=_d,yd=function(){return typeof Object.is=="function"?Object.is:X0},x0=yd,$0=vn,ey=function(){var e=x0();return $0(Object,{is:e},{is:function(){return Object.is!==e}}),e},ty=vn,ny=mr,ry=_d,vd=yd,iy=ey,kd=ny(vd(),Object);ty(kd,{getPolyfill:vd,implementation:ry,shim:iy});var ly=kd,Ed=Function.prototype.toString,Rn=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,El,Nr;if(typeof Rn=="function"&&typeof Object.defineProperty=="function")try{El=Object.defineProperty({},"length",{get:function(){throw Nr}}),Nr={},Rn(function(){throw 42},null,El)}catch(r){r!==Nr&&(Rn=null)}else Rn=null;var sy=/^\s*class\b/,Sl=function(e){try{var t=Ed.call(e);return sy.test(t)}catch{return!1}},Bi=function(e){try{return Sl(e)?!1:(Ed.call(e),!0)}catch{return!1}},jr=Object.prototype.toString,oy="[object Object]",ay="[object Function]",uy="[object GeneratorFunction]",fy="[object HTMLAllCollection]",cy="[object HTML document.all class]",dy="[object HTMLCollection]",hy=typeof Symbol=="function"&&!!Symbol.toStringTag,my=!(0 in[,]),Ol=function(){return!1};if(typeof document=="object"){var py=document.all;jr.call(py)===jr.call(document.all)&&(Ol=function(e){if((my||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=jr.call(e);return(t===fy||t===cy||t===dy||t===oy)&&e("")==null}catch{}return!1})}var gy=Rn?function(e){if(Ol(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{Rn(e,null,El)}catch(t){if(t!==Nr)return!1}return!Sl(e)&&Bi(e)}:function(e){if(Ol(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(hy)return Bi(e);if(Sl(e))return!1;var t=jr.call(e);return t!==ay&&t!==uy&&!/^\[object HTML/.test(t)?!1:Bi(e)},by=gy,_y=Object.prototype.toString,Sd=Object.prototype.hasOwnProperty,yy=function(e,t,n){for(var i=0,s=e.length;i=3&&(i=n),_y.call(e)==="[object Array]"?yy(e,t,i):typeof e=="string"?vy(e,t,i):ky(e,t,i)},Od=Ey,Fi=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Sy=typeof globalThis>"u"?vi:globalThis,wd=function(){for(var e=[],t=0;t"u"?vi:globalThis,Cd=wy(),Py=_s("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return qr?Iy(e):!1},Ry=mr,Dy=_t,Dd=jt,My=Rd,gu=Dd("ArrayBuffer",!0),bu=Dd("Float32Array",!0),Br=Dy("ArrayBuffer.prototype.byteLength",!0),_u=gu&&!Br&&new gu().slice,yu=_u&&Ry(_u),Md=Br||yu?function(e){if(!e||typeof e!="object")return!1;try{return Br?Br(e):yu(e,0),!0}catch{return!1}}:bu?function(e){try{return new bu(e).buffer===e&&!My(e)}catch(t){return typeof e=="object"&&t.name==="RangeError"}}:function(e){return!1},Ny=Date.prototype.getDay,jy=function(e){try{return Ny.call(e),!0}catch{return!1}},Ly=Object.prototype.toString,qy="[object Date]",By=un(),Fy=function(e){return typeof e!="object"||e===null?!1:By?jy(e):Ly.call(e)===qy},wl=_t,Nd=un(),jd,Ld,Al,Tl;if(Nd){jd=wl("Object.prototype.hasOwnProperty"),Ld=wl("RegExp.prototype.exec"),Al={};var Vi=function(){throw Al};Tl={toString:Vi,valueOf:Vi},typeof Symbol.toPrimitive=="symbol"&&(Tl[Symbol.toPrimitive]=Vi)}var zy=wl("Object.prototype.toString"),Vy=Object.getOwnPropertyDescriptor,Uy="[object RegExp]",Hy=Nd?function(e){if(!e||typeof e!="object")return!1;var t=Vy(e,"lastIndex"),n=t&&jd(t,"value");if(!n)return!1;try{Ld(e,Tl)}catch(i){return i===Al}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:zy(e)===Uy},Qy=_t,vu=Qy("SharedArrayBuffer.prototype.byteLength",!0),Wy=vu?function(e){if(!e||typeof e!="object")return!1;try{return vu(e),!0}catch{return!1}}:function(e){return!1},Gy=Number.prototype.toString,Ky=function(e){try{return Gy.call(e),!0}catch{return!1}},Jy=Object.prototype.toString,Zy="[object Number]",Yy=un(),Xy=function(e){return typeof e=="number"?!0:typeof e!="object"?!1:Yy?Ky(e):Jy.call(e)===Zy},qd=_t,xy=qd("Boolean.prototype.toString"),$y=qd("Object.prototype.toString"),ev=function(e){try{return xy(e),!0}catch{return!1}},tv="[object Boolean]",nv=un(),rv=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:nv&&Symbol.toStringTag in e?ev(e):$y(e)===tv},Pl={exports:{}},iv=Object.prototype.toString,lv=as();if(lv){var sv=Symbol.prototype.toString,ov=/^Symbol\(.*\)$/,av=function(e){return typeof e.valueOf()!="symbol"?!1:ov.test(sv.call(e))};Pl.exports=function(e){if(typeof e=="symbol")return!0;if(iv.call(e)!=="[object Symbol]")return!1;try{return av(e)}catch{return!1}}}else Pl.exports=function(e){return!1};var uv=Pl.exports,Cl={exports:{}},ku=typeof BigInt<"u"&&BigInt,fv=function(){return typeof ku=="function"&&typeof BigInt=="function"&&typeof ku(42)=="bigint"&&typeof BigInt(42)=="bigint"},cv=fv();if(cv){var dv=BigInt.prototype.valueOf,hv=function(e){try{return dv.call(e),!0}catch{}return!1};Cl.exports=function(e){return e===null||typeof e>"u"||typeof e=="boolean"||typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="function"?!1:typeof e=="bigint"?!0:hv(e)}}else Cl.exports=function(e){return!1};var mv=Cl.exports,pv=hd,gv=Xy,bv=rv,_v=uv,yv=mv,vv=function(e){if(e==null||typeof e!="object"&&typeof e!="function")return null;if(pv(e))return"String";if(gv(e))return"Number";if(bv(e))return"Boolean";if(_v(e))return"Symbol";if(yv(e))return"BigInt"},ti=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Eu=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,ni;ti||(ni=function(e){return!1});var Il=ti?ti.prototype.has:null,Ui=Eu?Eu.prototype.has:null;!ni&&!Il&&(ni=function(e){return!1});var kv=ni||function(e){if(!e||typeof e!="object")return!1;try{if(Il.call(e,Il),Ui)try{Ui.call(e,Ui)}catch{return!0}return e instanceof ti}catch{}return!1},Rl={exports:{}},Ev=jt,Bd=_t,Sv=Ev("%WeakSet%",!0),Hi=Bd("WeakSet.prototype.has",!0);if(Hi){var Qi=Bd("WeakMap.prototype.has",!0);Rl.exports=function(e){if(!e||typeof e!="object")return!1;try{if(Hi(e,Hi),Qi)try{Qi(e,Qi)}catch{return!0}return e instanceof Sv}catch{}return!1}}else Rl.exports=function(e){return!1};var Ov=Rl.exports,wv=pd,Av=bd,Tv=kv,Pv=Ov,Cv=function(e){if(e&&typeof e=="object"){if(wv(e))return"Map";if(Av(e))return"Set";if(Tv(e))return"WeakMap";if(Pv(e))return"WeakSet"}return!1},Fd=Od,Iv=wd,zd=_t,Wi=Ad,Rv=zd("Object.prototype.toString"),Vd=un(),Su=typeof globalThis>"u"?vi:globalThis,Dv=Iv(),Mv=zd("String.prototype.slice"),Ud={},Gi=Object.getPrototypeOf;Vd&&Wi&&Gi&&Fd(Dv,function(r){if(typeof Su[r]=="function"){var e=new Su[r];if(Symbol.toStringTag in e){var t=Gi(e),n=Wi(t,Symbol.toStringTag);if(!n){var i=Gi(t);n=Wi(i,Symbol.toStringTag)}Ud[r]=n.get}}});var Nv=function(e){var t=!1;return Fd(Ud,function(n,i){if(!t)try{var s=n.call(e);s===i&&(t=s)}catch{}}),t},jv=Rd,Lv=function(e){return jv(e)?!Vd||!(Symbol.toStringTag in e)?Mv(Rv(e),8,-1):Nv(e):!1},qv=_t,Ou=qv("ArrayBuffer.prototype.byteLength",!0),Bv=Md,Fv=function(e){return Bv(e)?Ou?Ou(e):e.byteLength:NaN},Hd=__,Lt=_t,wu=j_,zv=jt,Bn=Y0,Vv=cd,Au=ly,Tu=id,Pu=dd,Cu=Md,Iu=Fy,Ru=Hy,Du=Wy,Mu=os,Nu=vv,ju=Cv,Lu=Lv,qu=Fv,Bu=Lt("SharedArrayBuffer.prototype.byteLength",!0),Fu=Lt("Date.prototype.getTime"),Ki=Object.getPrototypeOf,zu=Lt("Object.prototype.toString"),ri=zv("%Set%",!0),Dl=Lt("Map.prototype.has",!0),ii=Lt("Map.prototype.get",!0),Vu=Lt("Map.prototype.size",!0),li=Lt("Set.prototype.add",!0),Qd=Lt("Set.prototype.delete",!0),si=Lt("Set.prototype.has",!0),Fr=Lt("Set.prototype.size",!0);function Uu(r,e,t,n){for(var i=Bn(r),s;(s=i.next())&&!s.done;)if(Tt(e,s.value,t,n))return Qd(r,s.value),!0;return!1}function Wd(r){if(typeof r>"u")return null;if(typeof r!="object")return typeof r=="symbol"?!1:typeof r=="string"||typeof r=="number"?+r==+r:!0}function Uv(r,e,t,n,i,s){var l=Wd(t);if(l!=null)return l;var o=ii(e,l),a=Hd({},i,{strict:!1});return typeof o>"u"&&!Dl(e,l)||!Tt(n,o,a,s)?!1:!Dl(r,l)&&Tt(n,o,a,s)}function Hv(r,e,t){var n=Wd(t);return n??(si(e,n)&&!si(r,n))}function Hu(r,e,t,n,i,s){for(var l=Bn(r),o,a;(o=l.next())&&!o.done;)if(a=o.value,Tt(t,a,i,s)&&Tt(n,ii(e,a),i,s))return Qd(r,a),!0;return!1}function Tt(r,e,t,n){var i=t||{};if(i.strict?Au(r,e):r===e)return!0;var s=Nu(r),l=Nu(e);if(s!==l)return!1;if(!r||!e||typeof r!="object"&&typeof e!="object")return i.strict?Au(r,e):r==e;var o=n.has(r),a=n.has(e),u;if(o&&a){if(n.get(r)===n.get(e))return!0}else u={};return o||n.set(r,u),a||n.set(e,u),Gv(r,e,i,n)}function Qu(r){return!r||typeof r!="object"||typeof r.length!="number"||typeof r.copy!="function"||typeof r.slice!="function"||r.length>0&&typeof r[0]!="number"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))}function Qv(r,e,t,n){if(Fr(r)!==Fr(e))return!1;for(var i=Bn(r),s=Bn(e),l,o,a;(l=i.next())&&!l.done;)if(l.value&&typeof l.value=="object")a||(a=new ri),li(a,l.value);else if(!si(e,l.value)){if(t.strict||!Hv(r,e,l.value))return!1;a||(a=new ri),li(a,l.value)}if(a){for(;(o=s.next())&&!o.done;)if(o.value&&typeof o.value=="object"){if(!Uu(a,o.value,t.strict,n))return!1}else if(!t.strict&&!si(r,o.value)&&!Uu(a,o.value,t.strict,n))return!1;return Fr(a)===0}return!0}function Wv(r,e,t,n){if(Vu(r)!==Vu(e))return!1;for(var i=Bn(r),s=Bn(e),l,o,a,u,f,c;(l=i.next())&&!l.done;)if(u=l.value[0],f=l.value[1],u&&typeof u=="object")a||(a=new ri),li(a,u);else if(c=ii(e,u),typeof c>"u"&&!Dl(e,u)||!Tt(f,c,t,n)){if(t.strict||!Uv(r,e,u,f,t,n))return!1;a||(a=new ri),li(a,u)}if(a){for(;(o=s.next())&&!o.done;)if(u=o.value[0],c=o.value[1],u&&typeof u=="object"){if(!Hu(a,r,u,c,t,n))return!1}else if(!t.strict&&(!r.has(u)||!Tt(ii(r,u),c,t,n))&&!Hu(a,r,u,c,Hd({},t,{strict:!1}),n))return!1;return Fr(a)===0}return!0}function Gv(r,e,t,n){var i,s;if(typeof r!=typeof e||r==null||e==null||zu(r)!==zu(e)||Tu(r)!==Tu(e))return!1;var l=Pu(r),o=Pu(e);if(l!==o)return!1;var a=r instanceof Error,u=e instanceof Error;if(a!==u||(a||u)&&(r.name!==e.name||r.message!==e.message))return!1;var f=Ru(r),c=Ru(e);if(f!==c||(f||c)&&(r.source!==e.source||wu(r)!==wu(e)))return!1;var h=Iu(r),d=Iu(e);if(h!==d||(h||d)&&Fu(r)!==Fu(e)||t.strict&&Ki&&Ki(r)!==Ki(e))return!1;var m=Lu(r),p=Lu(e);if((m||p)&&m!==p)return!1;var y=Qu(r),k=Qu(e);if(y!==k)return!1;if(y||k){if(r.length!==e.length)return!1;for(i=0;i=0;i--)if(A[i]!=D[i])return!1;for(i=A.length-1;i>=0;i--)if(s=A[i],!Tt(r[s],e[s],t,n))return!1;var w=ju(r),B=ju(e);return w!==B?!1:w==="Set"||B==="Set"?Qv(r,e,t,n):w==="Map"?Wv(r,e,t,n):!0}var Kv=function(e,t,n){return Tt(e,t,n,Vv())};const Ji=dr(Kv),Ml="DATASET_VIEW_CONTEXT",Jv={};function Gd(r,e){return`${r}/${e}`}function Zv(r,e){return{namespace:r,datasetName:e,searchPath:null,searchEmbedding:null,selectedColumns:{},expandedColumns:{},query:{columns:[],combine_columns:!0},schemaCollapsed:!1}}function yw(r,e,t){const n=Zv(e,t),{subscribe:i,set:s,update:l}=ct(JSON.parse(JSON.stringify(n))),o={subscribe:i,set:s,update:l,reset:()=>{s(JSON.parse(JSON.stringify(n)))},addSelectedColumn:a=>l(u=>(u.selectedColumns[mt(a)]=!0,u)),removeSelectedColumn:a=>l(u=>{u.selectedColumns[mt(a)]=!1;for(const f of Object.keys(u.selectedColumns))Ai(f,a)&&!At(a,f)&&delete u.selectedColumns[f];return u}),addExpandedColumn(a){l(u=>(u.expandedColumns[mt(a)]=!0,u))},removeExpandedColumn(a){l(u=>(delete u.expandedColumns[mt(a)],u))},addUdfColumn:a=>l(u=>{var f;return(f=u.query.columns)==null||f.push(a),u}),removeUdfColumn:a=>l(u=>{var f;return u.query.columns=(f=u.query.columns)==null?void 0:f.filter(c=>c!==a),u}),editUdfColumn:a=>l(u=>{var f;return u.query.columns=(f=u.query.columns)==null?void 0:f.map(c=>I1(c)&&At(c.path,a.path)?a:c),u}),setSearchPath:a=>l(u=>(u.searchPath=mt(a),u)),setSearchEmbedding:a=>l(u=>(u.searchEmbedding=a,u)),addSearch:a=>l(u=>{u.query.searches=u.query.searches||[];for(const f of u.query.searches)if(Ji(f,a))return u;return(a.type==="semantic"||a.type==="concept")&&(u.query.sort_by=void 0,u.query.sort_order=void 0),u.query.searches.push(a),u}),removeSearch:(a,u)=>l(f=>{var c,h;return f.query.searches=(c=f.query.searches)==null?void 0:c.filter(d=>!Ji(d,a)),(f.query.searches||[]).length===0&&(f.query.searches=void 0),(u==null?void 0:u.sorts)!=null&&(f.query.sort_by=(h=f.query.sort_by)==null?void 0:h.filter(d=>!((u==null?void 0:u.sorts)||[]).some(m=>At(m.path,d)))),f}),setSortBy:a=>l(u=>(a==null?u.query.sort_by=void 0:u.query.sort_by=[a],u)),addSortBy:a=>l(u=>(u.query.sort_by=[...u.query.sort_by||[],a],u)),removeSortBy:a=>l(u=>{var f;return u.query.sort_by=(f=u.query.sort_by)==null?void 0:f.filter(c=>!At(c,a)),u}),clearSorts:()=>l(a=>(a.query.sort_by=void 0,a.query.sort_order=void 0,a)),setSortOrder:a=>l(u=>(u.query.sort_order=a||void 0,u)),removeFilter:a=>l(u=>{var f;return u.query.filters=(f=u.query.filters)==null?void 0:f.filter(c=>!Ji(c,a)),(u.query.filters||[]).length===0&&(u.query.filters=void 0),u}),addFilter:a=>l(u=>(u.query.filters=[...u.query.filters||[],a],u)),deleteSignal:a=>l(u=>{var f,c;return u.query.filters=(f=u.query.filters)==null?void 0:f.filter(h=>!Ai(a,h.path)),u.query.sort_by=(c=u.query.sort_by)==null?void 0:c.filter(h=>!Ai(a,h)),u}),deleteConcept(a,u,f){function c(h){return h.type==="concept"&&h.concept_namespace===a&&h.concept_name===u}l(h=>{var m,p,y;const d=[];return h.query.searches=(m=h.query.searches)==null?void 0:m.filter(k=>{const O=!c(k);if(!O&&f!=null&&f.search_results!=null){const E=f.search_results.filter(S=>At(S.search_path,k.path)).map(S=>S.result_path);d.push(...E)}return O}),h.query.sort_by=(p=h.query.sort_by)==null?void 0:p.filter(k=>!d.some(O=>At(O,k))),h.query.filters=(y=h.query.filters)==null?void 0:y.filter(k=>!d.some(O=>At(O,k.path))),h})}};return F1("datasets",`${e}/${t}`,o,r,a=>B1(a,n),a=>q1(a,n)),Jv[Gd(e,t)]=o,o}function vw(r){Ut(Ml,r)}function Si(){if(!mi(Ml))throw new Error("DatasetViewContext not found");return bt(Ml)}function Yv(r){const e=["*",...r.query.columns??[]];return{...r.query,columns:e}}function Xv(r){const e=Yv(r);return{columns:e.columns,searches:e.searches,combine_columns:e.combine_columns,sort_by:e.sort_by,sort_order:e.sort_order}}const Nl="DATASET_INFO_CONTEXT",xv={},kw=(r,e)=>{const t={schema:null,stats:null,selectRowsSchema:null,visibleFields:null,settings:null},{subscribe:n,set:i,update:s}=ct(t),l={subscribe:n,set:i,update:s,reset:()=>{i(t)},setSchema:o=>s(a=>(a.schema=o,a)),setStats:o=>s(a=>(a.stats=o,a)),setVisibleFields:o=>s(a=>(a.visibleFields=o,a)),setSelectRowsSchema:o=>s(a=>(a.selectRowsSchema=o,a)),setSettings:o=>s(a=>(a.settings=o,a))};return xv[Gd(r,e)]=l,l};function Ew(r){Ut(Nl,r)}function $v(){if(!mi(Nl))throw new Error("DatasetViewContext not found");return bt(Nl)}function Wu(r,e,t){const n=r.slice();return n[5]=e[t],n}function e2(r){let e,t,n=r[1],i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){e=j("div");for(let l=0;l{f=null}),re()),(!o||d&6&&l!==(l=r[2]===r[5].value))&&T(e,"data-active",l)},i(h){o||(_(f),o=!0)},o(h){v(f),o=!1},d(h){h&&g(e),f&&f.d(),a=!1,u()}}}function r2(r){let e,t,n,i;const s=[t2,e2],l=[];function o(a,u){return a[0]?0:1}return e=o(r),t=l[e]=s[e](r),{c(){t.c(),n=G()},l(a){t.l(a),n=G()},m(a,u){l[e].m(a,u),P(a,n,u),i=!0},p(a,[u]){let f=e;e=o(a),e===f?l[e].p(a,u):(ne(),v(l[f],1,1,()=>{l[f]=null}),re(),t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n))},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){l[e].d(a),a&&g(n)}}}function i2(r,e,t){let{skeleton:n=!1}=e,{items:i=[]}=e,{item:s=void 0}=e;const l=dt(),o=a=>l("select",a.value);return r.$$set=a=>{"skeleton"in a&&t(0,n=a.skeleton),"items"in a&&t(1,i=a.items),"item"in a&&t(2,s=a.item)},[n,i,s,l,o]}class pr extends me{constructor(e){super(),pe(this,e,i2,r2,he,{skeleton:0,items:1,item:2})}}function Ju(r,e,t){const n=r.slice();return n[22]=e[t],n[23]=e,n[24]=t,n}function Zu(r,e,t){const n=r.slice();return n[25]=e[t],n}function Zi(r){const e=r.slice(),t=e[1].path;return e[21]=t,e}function Yu(r){let e,t,n,i=r[2].length>0?"and":"add",s,l,o,a,u=r[2],f=[];for(let d=0;dv(f[d],1,1,()=>{f[d]=null});function h(){return r[19](r[21])}return{c(){for(let d=0;d0?"and":"add")&&ye(s,i)},i(d){if(!l){for(let m=0;mv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;lKe(e,"value",i)),{c(){U(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){H(e,l,o),n=!0},p(l,o){r=l;const a={};!t&&o&4&&(t=!0,a.value=r[22].value,Je(()=>t=!1)),e.$set(a)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){v(e.$$.fragment,l),n=!1},d(l){Q(e,l)}}}function o2(r){let e,t;return{c(){e=j("span"),t=ce("Blob filter not yet implemented")},l(n){e=L(n,"SPAN",{});var i=R(e);t=de(i,"Blob filter not yet implemented"),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p:ie,i:ie,o:ie,d(n){n&&g(e)}}}function a2(r){let e,t;return e=new om({}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p:ie,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function u2(r){let e,t;return{c(){e=j("span"),t=ce("In operator not yet implemented")},l(n){e=L(n,"SPAN",{});var i=R(e);t=de(i,"In operator not yet implemented"),i.forEach(g)},m(n,i){P(n,e,i),I(e,t)},p:ie,i:ie,o:ie,d(n){n&&g(e)}}}function f2(r){return{c:ie,l:ie,m:ie,p:ie,i:ie,o:ie,d:ie}}function xu(r){let e,t,n,i,s,l,o,a,u,f,c,h;function d(E){r[16](E,r[22])}let m={labelText:"Operation",$$slots:{default:[l2]},$$scope:{ctx:r}};r[22].op!==void 0&&(m.selected=r[22].op),t=new sn({props:m}),qe.push(()=>Ke(t,"selected",d));const p=[f2,u2,a2,o2,s2],y=[];function k(E,S){return E[22].op==="exists"?0:E[22].op==="in"?1:typeof E[22].value=="boolean"?2:typeof E[22].value=="function"?3:4}s=k(r),l=y[s]=p[s](r),u=new x1({props:{size:20}});function O(){return r[18](r[22])}return{c(){e=j("div"),U(t.$$.fragment),i=$(),l.c(),o=$(),a=j("button"),U(u.$$.fragment),this.h()},l(E){e=L(E,"DIV",{class:!0});var S=R(e);J(t.$$.fragment,S),i=ee(S),l.l(S),o=ee(S),a=L(S,"BUTTON",{class:!0});var C=R(a);J(u.$$.fragment,C),C.forEach(g),S.forEach(g),this.h()},h(){T(a,"class","mt-5"),T(e,"class","flex items-center gap-x-2")},m(E,S){P(E,e,S),H(t,e,null),I(e,i),y[s].m(e,null),I(e,o),I(e,a),H(u,a,null),f=!0,c||(h=W(a,"click",O),c=!0)},p(E,S){r=E;const C={};S&268435456&&(C.$$scope={dirty:S,ctx:r}),!n&&S&4&&(n=!0,C.selected=r[22].op,Je(()=>n=!1)),t.$set(C);let A=s;s=k(r),s===A?y[s].p(r,S):(ne(),v(y[A],1,1,()=>{y[A]=null}),re(),l=y[s],l?l.p(r,S):(l=y[s]=p[s](r),l.c()),_(l,1),l.m(e,o))},i(E){f||(_(t.$$.fragment,E),_(l),_(u.$$.fragment,E),f=!0)},o(E){v(t.$$.fragment,E),v(l),v(u.$$.fragment,E),f=!1},d(E){E&&g(e),Q(t),y[s].d(),Q(u),c=!1,h()}}}function c2(r){let e,t,n,i,s,l;n=new pr({props:{items:r[3],item:r[1]}}),n.$on("select",r[15]);let o=r[1]&&Yu(Zi(r));return{c(){e=j("div"),t=j("div"),U(n.$$.fragment),i=$(),s=j("div"),o&&o.c(),this.h()},l(a){e=L(a,"DIV",{class:!0});var u=R(e);t=L(u,"DIV",{class:!0});var f=R(t);J(n.$$.fragment,f),f.forEach(g),i=ee(u),s=L(u,"DIV",{class:!0});var c=R(s);o&&o.l(c),c.forEach(g),u.forEach(g),this.h()},h(){T(t,"class","-ml-4 mr-4 w-80 grow-0"),T(s,"class","flex w-full flex-col gap-y-6"),T(e,"class","flex flex-row")},m(a,u){P(a,e,u),I(e,t),H(n,t,null),I(e,i),I(e,s),o&&o.m(s,null),l=!0},p(a,u){const f={};u&8&&(f.items=a[3]),u&2&&(f.item=a[1]),n.$set(f),a[1]?o?(o.p(Zi(a),u),u&2&&_(o,1)):(o=Yu(Zi(a)),o.c(),_(o,1),o.m(s,null)):o&&(ne(),v(o,1,1,()=>{o=null}),re())},i(a){l||(_(n.$$.fragment,a),_(o),l=!0)},o(a){v(n.$$.fragment,a),v(o),l=!1},d(a){a&&g(e),Q(n),o&&o.d()}}}function d2(r){let e,t,n,i,s,l;return e=new Kl({props:{label:"Filters",title:"Edit Filters"}}),n=new Jl({props:{hasForm:!0,$$slots:{default:[c2]},$$scope:{ctx:r}}}),s=new Zl({props:{primaryButtonText:"Save",secondaryButtonText:"Cancel",primaryButtonDisabled:!1}}),s.$on("click:button--secondary",r[8]),{c(){U(e.$$.fragment),t=$(),U(n.$$.fragment),i=$(),U(s.$$.fragment)},l(o){J(e.$$.fragment,o),t=ee(o),J(n.$$.fragment,o),i=ee(o),J(s.$$.fragment,o)},m(o,a){H(e,o,a),P(o,t,a),H(n,o,a),P(o,i,a),H(s,o,a),l=!0},p(o,a){const u={};a&268435471&&(u.$$scope={dirty:a,ctx:o}),n.$set(u)},i(o){l||(_(e.$$.fragment,o),_(n.$$.fragment,o),_(s.$$.fragment,o),l=!0)},o(o){v(e.$$.fragment,o),v(n.$$.fragment,o),v(s.$$.fragment,o),l=!1},d(o){Q(e,o),o&&g(t),Q(n,o),o&&g(i),Q(s,o)}}}function h2(r){let e,t;return e=new Gl({props:{open:!0,$$slots:{default:[d2]},$$scope:{ctx:r}}}),e.$on("submit",r[9]),e.$on("close",r[8]),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,[i]){const s={};i&268435471&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function m2(r,e,t){let n,i,s,l,o,a,u=ie,f=()=>(u(),u=Ql(n,M=>t(13,a=M)),n),c;r.$$.on_destroy.push(()=>u());let{command:h}=e;const d=Si();xe(r,d,M=>t(12,o=M));const m=$v();xe(r,m,M=>t(14,c=M));const p=dt();let y=[];ln(()=>{t(0,y=structuredClone(o.query.filters||[]))});let k;const O=[["equals","equals (=)"],["not_equal","not equal (!=)"],["greater","greater than (>)"],["greater_equal","greater or equal (>=)"],["less","less than (<)"],["less_equal","less or equal (<=)"],["in","in"],["exists","exists"]];function E(){p("close")}function S(){Ur(d,o.query.filters=y,o),E()}const C=M=>t(1,k=M.detail);function A(M,F){r.$$.not_equal(F.op,M)&&(F.op=M,t(2,l),t(0,y),t(1,k),t(11,s),t(13,a),t(10,h))}function D(M,F){r.$$.not_equal(F.value,M)&&(F.value=M,t(2,l),t(0,y),t(1,k),t(11,s),t(13,a),t(10,h))}const w=M=>{t(0,y=y.filter(F=>F!=M))},B=M=>t(0,y=[...y,{path:M,op:"equals",value:""}]);return r.$$set=M=>{"command"in M&&t(10,h=M.command)},r.$$.update=()=>{if(r.$$.dirty&5120&&f(t(4,n=U1(h.namespace,h.datasetName,Xv(o)))),r.$$.dirty&24577&&t(3,i=a!=null&&a.isSuccess&&c.schema?ft(c.schema).map(M=>{const F=y.filter(q=>At(q.path,M.path));return{title:M.path.join("."),value:M,tag:F.length>0?{value:F.length.toString(),type:"blue"}:void 0}}):[]),r.$$.dirty&9216&&t(11,s=a!=null&&a.isSuccess?Ic(a.data.schema,h.path):void 0),r.$$.dirty&2050&&!k&&s&&t(1,k=s),r.$$.dirty&3&&t(2,l=y.filter(M=>At(M.path,k==null?void 0:k.path))),r.$$.dirty&1)for(const M of y)M.op==="exists"&&(M.value=null)},[y,k,l,i,n,d,m,O,E,S,h,s,o,a,c,C,A,D,w,B]}class p2 extends me{constructor(e){super(),pe(this,e,m2,h2,he,{command:10})}}function g2(){const r=console.warn;console.warn=e=>{e.includes("unknown prop")||e.includes("unexpected slot")||r(e)},ln(()=>{console.warn=r})}function $u(r,e,t){const n=r.slice();return n[18]=e[t],n}function ef(r,e,t){const n=r.slice();return n[18]=e[t],n}function tf(r,e,t){const n=r.slice();return n[10]=e[t],n}function nf(r,e,t){const n=r.slice();return n[13]=e[t],n[15]=t,n}function rf(r,e,t){const n=r.slice();return n[16]=e[t],n[15]=t,n}function lf(r,e,t){const n=r.slice();return n[7]=e[t],n}function b2(r){let e,t,n,i;const s=[k2,v2,y2],l=[];function o(a,u){return a[0]==="table"?0:a[0]==="list"?1:2}return e=o(r),t=l[e]=s[e](r),{c(){t.c(),n=G()},l(a){t.l(a),n=G()},m(a,u){l[e].m(a,u),P(a,n,u),i=!0},p(a,u){let f=e;e=o(a),e===f?l[e].p(a,u):(ne(),v(l[f],1,1,()=>{l[f]=null}),re(),t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n))},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){l[e].d(a),a&&g(n)}}}function _2(r){let e,t,n=r[1],i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l{Q(f,1)}),re()}s?(e=je(s,l(o)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else s&&e.$set(u)},i(o){n||(e&&_(e.$$.fragment,o),n=!0)},o(o){e&&v(e.$$.fragment,o),n=!1},d(o){o&&g(t),e&&Q(e,o)}}}function v2(r){let e,t,n,i;const s=[A2,w2],l=[];function o(a,u){return a[4]?0:1}return e=o(r),t=l[e]=s[e](r),{c(){t.c(),n=G()},l(a){t.l(a),n=G()},m(a,u){l[e].m(a,u),P(a,n,u),i=!0},p(a,u){let f=e;e=o(a),e===f?l[e].p(a,u):(ne(),v(l[f],1,1,()=>{l[f]=null}),re(),t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n))},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){l[e].d(a),a&&g(n)}}}function k2(r){let e,t,n;var i=r[5].table;function s(l){return{props:{$$slots:{default:[q2]},$$scope:{ctx:l}}}}return i&&(e=je(i,s(r))),{c(){e&&U(e.$$.fragment),t=G()},l(l){e&&J(e.$$.fragment,l),t=G()},m(l,o){e&&H(e,l,o),P(l,t,o),n=!0},p(l,o){const a={};if(o&8388716&&(a.$$scope={dirty:o,ctx:l}),o&32&&i!==(i=l[5].table)){if(e){ne();const u=e;v(u.$$.fragment,1,0,()=>{Q(u,1)}),re()}i?(e=je(i,s(l)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else i&&e.$set(a)},i(l){n||(e&&_(e.$$.fragment,l),n=!0)},o(l){e&&v(e.$$.fragment,l),n=!1},d(l){l&&g(t),e&&Q(e,l)}}}function E2(r){let e=r[6].raw+"",t;return{c(){t=ce(e)},l(n){t=de(n,e)},m(n,i){P(n,t,i)},p(n,i){i&64&&e!==(e=n[6].raw+"")&&ye(t,e)},i:ie,o:ie,d(n){n&&g(t)}}}function S2(r){let e,t;return e=new kn({props:{tokens:r[1],renderers:r[5]}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&2&&(s.tokens=n[1]),i&32&&(s.renderers=n[5]),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function O2(r){let e,t,n,i;const s=[S2,E2],l=[];function o(a,u){return a[1]?0:1}return e=o(r),t=l[e]=s[e](r),{c(){t.c(),n=G()},l(a){t.l(a),n=G()},m(a,u){l[e].m(a,u),P(a,n,u),i=!0},p(a,u){let f=e;e=o(a),e===f?l[e].p(a,u):(ne(),v(l[f],1,1,()=>{l[f]=null}),re(),t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n))},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){l[e].d(a),a&&g(n)}}}function w2(r){let e,t,n;const i=[{ordered:r[4]},r[6]];var s=r[5].list;function l(o){let a={$$slots:{default:[P2]},$$scope:{ctx:o}};for(let u=0;u{Q(f,1)}),re()}s?(e=je(s,l(o)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else s&&e.$set(u)},i(o){n||(e&&_(e.$$.fragment,o),n=!0)},o(o){e&&v(e.$$.fragment,o),n=!1},d(o){o&&g(t),e&&Q(e,o)}}}function A2(r){let e,t,n;const i=[{ordered:r[4]},r[6]];var s=r[5].list;function l(o){let a={$$slots:{default:[I2]},$$scope:{ctx:o}};for(let u=0;u{Q(f,1)}),re()}s?(e=je(s,l(o)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else s&&e.$set(u)},i(o){n||(e&&_(e.$$.fragment,o),n=!0)},o(o){e&&v(e.$$.fragment,o),n=!1},d(o){o&&g(t),e&&Q(e,o)}}}function T2(r){let e,t,n;return e=new kn({props:{tokens:r[18].tokens,renderers:r[5]}}),{c(){U(e.$$.fragment),t=$()},l(i){J(e.$$.fragment,i),t=ee(i)},m(i,s){H(e,i,s),P(i,t,s),n=!0},p(i,s){const l={};s&64&&(l.tokens=i[18].tokens),s&32&&(l.renderers=i[5]),e.$set(l)},i(i){n||(_(e.$$.fragment,i),n=!0)},o(i){v(e.$$.fragment,i),n=!1},d(i){Q(e,i),i&&g(t)}}}function sf(r){let e,t,n;const i=[r[18]];var s=r[5].unorderedlistitem||r[5].listitem;function l(o){let a={$$slots:{default:[T2]},$$scope:{ctx:o}};for(let u=0;u{Q(f,1)}),re()}s?(e=je(s,l(o)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else s&&e.$set(u)},i(o){n||(e&&_(e.$$.fragment,o),n=!0)},o(o){e&&v(e.$$.fragment,o),n=!1},d(o){o&&g(t),e&&Q(e,o)}}}function P2(r){let e,t,n=r[6].items,i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l{Q(f,1)}),re()}s?(e=je(s,l(o)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else s&&e.$set(u)},i(o){n||(e&&_(e.$$.fragment,o),n=!0)},o(o){e&&v(e.$$.fragment,o),n=!1},d(o){o&&g(t),e&&Q(e,o)}}}function I2(r){let e,t,n=r[6].items,i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l{Q(u,1)}),re()}i?(e=je(i,s(l)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else i&&e.$set(a)},i(l){n||(e&&_(e.$$.fragment,l),n=!0)},o(l){e&&v(e.$$.fragment,l),n=!1},d(l){l&&g(t),e&&Q(e,l)}}}function D2(r){let e,t,n=r[2],i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l{Q(u,1)}),re()}i?(e=je(i,s(l)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else i&&e.$set(a)},i(l){n||(e&&_(e.$$.fragment,l),n=!0)},o(l){e&&v(e.$$.fragment,l),n=!1},d(l){l&&g(t),e&&Q(e,l)}}}function N2(r){let e,t;return e=new kn({props:{tokens:r[13].tokens,renderers:r[5]}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&8&&(s.tokens=n[13].tokens),i&32&&(s.renderers=n[5]),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function uf(r){let e,t,n;var i=r[5].tablecell;function s(l){return{props:{header:!1,align:l[6].align[l[15]]||"center",$$slots:{default:[N2]},$$scope:{ctx:l}}}}return i&&(e=je(i,s(r))),{c(){e&&U(e.$$.fragment),t=G()},l(l){e&&J(e.$$.fragment,l),t=G()},m(l,o){e&&H(e,l,o),P(l,t,o),n=!0},p(l,o){const a={};if(o&64&&(a.align=l[6].align[l[15]]||"center"),o&8388648&&(a.$$scope={dirty:o,ctx:l}),o&32&&i!==(i=l[5].tablecell)){if(e){ne();const u=e;v(u.$$.fragment,1,0,()=>{Q(u,1)}),re()}i?(e=je(i,s(l)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else i&&e.$set(a)},i(l){n||(e&&_(e.$$.fragment,l),n=!0)},o(l){e&&v(e.$$.fragment,l),n=!1},d(l){l&&g(t),e&&Q(e,l)}}}function j2(r){let e,t,n=r[10],i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l{Q(u,1)}),re()}i?(e=je(i,s(l)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else i&&e.$set(a)},i(l){n||(e&&_(e.$$.fragment,l),n=!0)},o(l){e&&v(e.$$.fragment,l),n=!1},d(l){l&&g(t),e&&Q(e,l)}}}function L2(r){let e,t,n=r[3],i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l{Q(m,1)}),re()}l?(e=je(l,o(f)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,t.parentNode,t)):e=null}else l&&e.$set(h);const d={};if(c&8388712&&(d.$$scope={dirty:c,ctx:f}),c&32&&a!==(a=f[5].tablebody)){if(n){ne();const m=n;v(m.$$.fragment,1,0,()=>{Q(m,1)}),re()}a?(n=je(a,u(f)),U(n.$$.fragment),_(n.$$.fragment,1),H(n,i.parentNode,i)):n=null}else a&&n.$set(d)},i(f){s||(e&&_(e.$$.fragment,f),n&&_(n.$$.fragment,f),s=!0)},o(f){e&&v(e.$$.fragment,f),n&&v(n.$$.fragment,f),s=!1},d(f){e&&Q(e,f),f&&g(t),f&&g(i),n&&Q(n,f)}}}function cf(r){let e,t;const n=[r[7],{renderers:r[5]}];let i={};for(let s=0;s{l[f]=null}),re()),~e?(t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){~e&&l[e].d(a),a&&g(n)}}}function F2(r,e,t){const n=["type","tokens","header","rows","ordered","renderers"];let i=ge(e,n),{type:s=void 0}=e,{tokens:l=void 0}=e,{header:o=void 0}=e,{rows:a=void 0}=e,{ordered:u=!1}=e,{renderers:f}=e;return g2(),r.$$set=c=>{e=Z(Z({},e),Te(c)),t(6,i=ge(e,n)),"type"in c&&t(0,s=c.type),"tokens"in c&&t(1,l=c.tokens),"header"in c&&t(2,o=c.header),"rows"in c&&t(3,a=c.rows),"ordered"in c&&t(4,u=c.ordered),"renderers"in c&&t(5,f=c.renderers)},[s,l,o,a,u,f,i]}let kn=class extends me{constructor(e){super(),pe(this,e,F2,B2,he,{type:0,tokens:1,header:2,rows:3,ordered:4,renderers:5})}};function Kd(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let En=Kd();function z2(r){En=r}const Jd=/[&<>"']/,V2=new RegExp(Jd.source,"g"),Zd=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,U2=new RegExp(Zd.source,"g"),H2={"&":"&","<":"<",">":">",'"':""","'":"'"},df=r=>H2[r];function at(r,e){if(e){if(Jd.test(r))return r.replace(V2,df)}else if(Zd.test(r))return r.replace(U2,df);return r}const Q2=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Yd(r){return r.replace(Q2,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const W2=/(^|[^\[])\^/g;function Qe(r,e){r=typeof r=="string"?r:r.source,e=e||"";const t={replace:(n,i)=>(i=i.source||i,i=i.replace(W2,"$1"),r=r.replace(n,i),t),getRegex:()=>new RegExp(r,e)};return t}const G2=/[^\w:]/g,K2=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function hf(r,e,t){if(r){let n;try{n=decodeURIComponent(Yd(t)).replace(G2,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!K2.test(t)&&(t=X2(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const wr={},J2=/^[^:]+:\/*[^/]*$/,Z2=/^([^:]+:)[\s\S]*$/,Y2=/^([^:]+:\/*[^/]*)[\s\S]*$/;function X2(r,e){wr[" "+r]||(J2.test(r)?wr[" "+r]=r+"/":wr[" "+r]=zr(r,"/",!0)),r=wr[" "+r];const t=r.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:r.replace(Z2,"$1")+e:e.charAt(0)==="/"?t?e:r.replace(Y2,"$1")+e:r+e}const oi={exec:function(){}};function mf(r,e){const t=r.replace(/\|/g,(s,l,o)=>{let a=!1,u=l;for(;--u>=0&&o[u]==="\\";)a=!a;return a?"|":" |"}),n=t.split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length1;)e&1&&(t+=r),e>>=1,r+=r;return t+r}function gf(r,e,t,n){const i=e.href,s=e.title?at(e.title):null,l=r[1].replace(/\\([\[\]])/g,"$1");if(r[0].charAt(0)!=="!"){n.state.inLink=!0;const o={type:"link",raw:t,href:i,title:s,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,o}return{type:"image",raw:t,href:i,title:s,text:at(l)}}function ek(r,e){const t=r.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(` +`).map(i=>{const s=i.match(/^\s+/);if(s===null)return i;const[l]=s;return l.length>=n.length?i.slice(n.length):i}).join(` +`)}class ys{constructor(e){this.options=e||En}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:zr(n,` +`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],i=ek(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const i=zr(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:s,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,i,s,l,o,a,u,f,c,h,d,m,p=t[1].trim();const y=p.length>1,k={type:"list",raw:"",ordered:y,start:y?+p.slice(0,-1):"",loose:!1,items:[]};p=y?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=y?p:"[*+-]");const O=new RegExp(`^( {0,3}${p})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(m=!1,!(!(t=O.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),f=t[2].split(` +`,1)[0].replace(/^\t+/,S=>" ".repeat(3*S.length)),c=e.split(` +`,1)[0],this.options.pedantic?(l=2,d=f.trimLeft()):(l=t[2].search(/[^ ]/),l=l>4?1:l,d=f.slice(l),l+=t[1].length),a=!1,!f&&/^ *$/.test(c)&&(n+=c+` +`,e=e.substring(c.length+1),m=!0),!m){const S=new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),C=new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),A=new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),D=new RegExp(`^ {0,${Math.min(3,l-1)}}#`);for(;e&&(h=e.split(` +`,1)[0],c=h,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(A.test(c)||D.test(c)||S.test(c)||C.test(e)));){if(c.search(/[^ ]/)>=l||!c.trim())d+=` +`+c.slice(l);else{if(a||f.search(/[^ ]/)>=4||A.test(f)||D.test(f)||C.test(f))break;d+=` +`+c}!a&&!c.trim()&&(a=!0),n+=h+` +`,e=e.substring(h.length+1),f=c.slice(l)}}k.loose||(u?k.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(d),i&&(s=i[0]!=="[ ] ",d=d.replace(/^\[[ xX]\] +/,""))),k.items.push({type:"list_item",raw:n,task:!!i,checked:s,loose:!1,text:d}),k.raw+=n}k.items[k.items.length-1].raw=n.trimRight(),k.items[k.items.length-1].text=d.trimRight(),k.raw=k.raw.trimRight();const E=k.items.length;for(o=0;oA.type==="space"),C=S.length>0&&S.some(A=>/\n.*\n/.test(A.raw));k.loose=C}if(k.loose)for(o=0;o$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(t){const n={type:"table",header:mf(t[1]).map(i=>({text:i})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(n.header.length===n.align.length){n.raw=t[0];let i=n.align.length,s,l,o,a;for(s=0;s({text:u}));for(i=n.header.length,l=0;l/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):at(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const l=zr(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{const l=x2(t[2],"()");if(l>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);l&&(i=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),gf(t,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(/\s+/g," ");if(i=t[i.toLowerCase()],!i){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return gf(n,i,n[0],this.lexer)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrong.lDelim.exec(e);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=i[1]||i[2]||"";if(!s||s&&(n===""||this.rules.inline.punctuation.exec(n))){const l=i[0].length-1;let o,a,u=l,f=0;const c=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+l);(i=c.exec(t))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=o.length,i[3]||i[4]){u+=a;continue}else if((i[5]||i[6])&&l%3&&!((l+a)%3)){f+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+f);const h=e.slice(0,l+i.index+(i[0].length-o.length)+a);if(Math.min(l,a)%2){const m=h.slice(1,-1);return{type:"em",raw:h,text:m,tokens:this.lexer.inlineTokens(m)}}const d=h.slice(2,-2);return{type:"strong",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const i=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return i&&s&&(n=n.substring(1,n.length-1)),n=at(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let i,s;return n[2]==="@"?(i=at(this.options.mangle?t(n[1]):n[1]),s="mailto:"+i):(i=at(n[1]),s=i),{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let i,s;if(n[2]==="@")i=at(this.options.mangle?t(n[0]):n[0]),s="mailto:"+i;else{let l;do l=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(l!==n[0]);i=at(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let i;return this.lexer.state.inRawBlock?i=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):at(n[0]):n[0]:i=at(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}}}}const Ae={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:oi,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Ae._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;Ae._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Ae.def=Qe(Ae.def).replace("label",Ae._label).replace("title",Ae._title).getRegex();Ae.bullet=/(?:[*+-]|\d{1,9}[.)])/;Ae.listItemStart=Qe(/^( *)(bull) */).replace("bull",Ae.bullet).getRegex();Ae.list=Qe(Ae.list).replace(/bull/g,Ae.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ae.def.source+")").getRegex();Ae._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";Ae._comment=/|$)/;Ae.html=Qe(Ae.html,"i").replace("comment",Ae._comment).replace("tag",Ae._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Ae.paragraph=Qe(Ae._paragraph).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ae._tag).getRegex();Ae.blockquote=Qe(Ae.blockquote).replace("paragraph",Ae.paragraph).getRegex();Ae.normal={...Ae};Ae.gfm={...Ae.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};Ae.gfm.table=Qe(Ae.gfm.table).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ae._tag).getRegex();Ae.gfm.paragraph=Qe(Ae._paragraph).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ae.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ae._tag).getRegex();Ae.pedantic={...Ae.normal,html:Qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ae._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:oi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Qe(Ae.normal._paragraph).replace("hr",Ae.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Ae.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const be={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:oi,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:oi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";be.punctuation=Qe(be.punctuation).replace(/punctuation/g,be._punctuation).getRegex();be.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;be.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;be._comment=Qe(Ae._comment).replace("(?:-->|$)","-->").getRegex();be.emStrong.lDelim=Qe(be.emStrong.lDelim).replace(/punct/g,be._punctuation).getRegex();be.emStrong.rDelimAst=Qe(be.emStrong.rDelimAst,"g").replace(/punct/g,be._punctuation).getRegex();be.emStrong.rDelimUnd=Qe(be.emStrong.rDelimUnd,"g").replace(/punct/g,be._punctuation).getRegex();be._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;be._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;be._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;be.autolink=Qe(be.autolink).replace("scheme",be._scheme).replace("email",be._email).getRegex();be._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;be.tag=Qe(be.tag).replace("comment",be._comment).replace("attribute",be._attribute).getRegex();be._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;be._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;be._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;be.link=Qe(be.link).replace("label",be._label).replace("href",be._href).replace("title",be._title).getRegex();be.reflink=Qe(be.reflink).replace("label",be._label).replace("ref",Ae._label).getRegex();be.nolink=Qe(be.nolink).replace("ref",Ae._label).getRegex();be.reflinkSearch=Qe(be.reflinkSearch,"g").replace("reflink",be.reflink).replace("nolink",be.nolink).getRegex();be.normal={...be};be.pedantic={...be.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Qe(/^!?\[(label)\]\((.*?)\)/).replace("label",be._label).getRegex(),reflink:Qe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",be._label).getRegex()};be.gfm={...be.normal,escape:Qe(be.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class Vt{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||En,this.options.tokenizer=this.options.tokenizer||new ys,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Ae.normal,inline:be.normal};this.options.pedantic?(t.block=Ae.pedantic,t.inline=be.pedantic):this.options.gfm&&(t.block=Ae.gfm,this.options.breaks?t.inline=be.breaks:t.inline=be.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ae,inline:be}}static lex(e,t){return new Vt(t).lex(e)}static lexInline(e,t){return new Vt(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,` +`),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(o,a,u)=>a+" ".repeat(u.length));let n,i,s,l;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(n=o.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+=` +`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` +`+n.raw,i.text+=` +`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` +`+n.raw,i.text+=` +`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const a=e.slice(1);let u;this.options.extensions.startBlock.forEach(function(f){u=f.call({lexer:this},a),typeof u=="number"&&u>=0&&(o=Math.min(o,u))}),o<1/0&&o>=0&&(s=e.substring(0,o+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){i=t[t.length-1],l&&i.type==="paragraph"?(i.raw+=` +`+n.raw,i.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),l=s.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=` +`+n.raw,i.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,i,s,l=e,o,a,u;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+pf("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,o.index)+"["+pf("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(l))!=null;)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),i=t[t.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,l,u)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e,bf)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,bf))){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const c=e.slice(1);let h;this.options.extensions.startInline.forEach(function(d){h=d.call({lexer:this},c),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(s=e.substring(0,f+1))}if(n=this.tokenizer.inlineText(s,tk)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(u=n.raw.slice(-1)),a=!0,i=t[t.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(e){const f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return t}}class vs{constructor(e){this.options=e||En}code(e,t,n){const i=(t||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(e,i);s!=null&&s!==e&&(n=!0,e=s)}return e=e.replace(/\n$/,"")+` +`,i?'
'+(n?e:at(e,!0))+`
+`:"
"+(n?e:at(e,!0))+`
+`}blockquote(e){return`
+${e}
+`}html(e){return e}heading(e,t,n,i){if(this.options.headerIds){const s=this.options.headerPrefix+i.slug(n);return`${e} +`}return`${e} +`}hr(){return this.options.xhtml?`
+`:`
+`}list(e,t,n){const i=t?"ol":"ul",s=t&&n!==1?' start="'+n+'"':"";return"<"+i+s+`> +`+e+" +`}listitem(e){return`
  • ${e}
  • +`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    +`}table(e,t){return t&&(t=`${t}`),` + +`+e+` +`+t+`
    +`}tablerow(e){return` +${e} +`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+` +`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){if(e=hf(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let i='",i}image(e,t,n){if(e=hf(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let i=`${n}":">",i}text(e){return e}}class Xd{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class ks{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do i++,n=e+"-"+i;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}let gr=class jl{constructor(e){this.options=e||En,this.options.renderer=this.options.renderer||new vs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Xd,this.slugger=new ks}static parse(e,t){return new jl(t).parse(e)}static parseInline(e,t){return new jl(t).parseInline(e)}parse(e,t=!0){let n="",i,s,l,o,a,u,f,c,h,d,m,p,y,k,O,E,S,C,A;const D=e.length;for(i=0;i0&&O.tokens[0].type==="paragraph"?(O.tokens[0].text=C+" "+O.tokens[0].text,O.tokens[0].tokens&&O.tokens[0].tokens.length>0&&O.tokens[0].tokens[0].type==="text"&&(O.tokens[0].tokens[0].text=C+" "+O.tokens[0].tokens[0].text)):O.tokens.unshift({type:"text",text:C}):k+=C),k+=this.parse(O.tokens,y),h+=this.renderer.listitem(k,S,E);n+=this.renderer.list(h,m,p);continue}case"html":{n+=this.renderer.html(d.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(d.tokens));continue}case"text":{for(h=d.tokens?this.parseInline(d.tokens):d.text;i+1{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,r){const i="

    An error occurred:

    "+at(n.message+"",!0)+"
    ";if(e)return Promise.resolve(i);if(t){t(null,i);return}return i}if(e)return Promise.reject(n);if(t){t(n);return}throw n}}function xd(r,e){return(t,n,i)=>{typeof n=="function"&&(i=n,n=null);const s={...n};n={...Ce.defaults,...s};const l=nk(n.silent,n.async,i);if(typeof t>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if($2(n),n.hooks&&(n.hooks.options=n),i){const o=n.highlight;let a;try{n.hooks&&(t=n.hooks.preprocess(t)),a=r(t,n)}catch(c){return l(c)}const u=function(c){let h;if(!c)try{n.walkTokens&&Ce.walkTokens(a,n.walkTokens),h=e(a,n),n.hooks&&(h=n.hooks.postprocess(h))}catch(d){c=d}return n.highlight=o,c?l(c):i(null,h)};if(!o||o.length<3||(delete n.highlight,!a.length))return u();let f=0;Ce.walkTokens(a,function(c){c.type==="code"&&(f++,setTimeout(()=>{o(c.text,c.lang,function(h,d){if(h)return u(h);d!=null&&d!==c.text&&(c.text=d,c.escaped=!0),f--,f===0&&u()})},0))}),f===0&&u();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(t):t).then(o=>r(o,n)).then(o=>n.walkTokens?Promise.all(Ce.walkTokens(o,n.walkTokens)).then(()=>o):o).then(o=>e(o,n)).then(o=>n.hooks?n.hooks.postprocess(o):o).catch(l);try{n.hooks&&(t=n.hooks.preprocess(t));const o=r(t,n);n.walkTokens&&Ce.walkTokens(o,n.walkTokens);let a=e(o,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(o){return l(o)}}}function Ce(r,e,t){return xd(Vt.lex,gr.parse)(r,e,t)}Ce.options=Ce.setOptions=function(r){return Ce.defaults={...Ce.defaults,...r},z2(Ce.defaults),Ce};Ce.getDefaults=Kd;Ce.defaults=En;Ce.use=function(...r){const e=Ce.defaults.extensions||{renderers:{},childTokens:{}};r.forEach(t=>{const n={...t};if(n.async=Ce.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if(i.renderer){const s=e.renderers[i.name];s?e.renderers[i.name]=function(...l){let o=i.renderer.apply(this,l);return o===!1&&(o=s.apply(this,l)),o}:e.renderers[i.name]=i.renderer}if(i.tokenizer){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[i.level]?e[i.level].unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),n.extensions=e),t.renderer){const i=Ce.defaults.renderer||new vs;for(const s in t.renderer){const l=i[s];i[s]=(...o)=>{let a=t.renderer[s].apply(i,o);return a===!1&&(a=l.apply(i,o)),a}}n.renderer=i}if(t.tokenizer){const i=Ce.defaults.tokenizer||new ys;for(const s in t.tokenizer){const l=i[s];i[s]=(...o)=>{let a=t.tokenizer[s].apply(i,o);return a===!1&&(a=l.apply(i,o)),a}}n.tokenizer=i}if(t.hooks){const i=Ce.defaults.hooks||new ai;for(const s in t.hooks){const l=i[s];ai.passThroughHooks.has(s)?i[s]=o=>{if(Ce.defaults.async)return Promise.resolve(t.hooks[s].call(i,o)).then(u=>l.call(i,u));const a=t.hooks[s].call(i,o);return l.call(i,a)}:i[s]=(...o)=>{let a=t.hooks[s].apply(i,o);return a===!1&&(a=l.apply(i,o)),a}}n.hooks=i}if(t.walkTokens){const i=Ce.defaults.walkTokens;n.walkTokens=function(s){let l=[];return l.push(t.walkTokens.call(this,s)),i&&(l=l.concat(i.call(this,s))),l}}Ce.setOptions(n)})};Ce.walkTokens=function(r,e){let t=[];for(const n of r)switch(t=t.concat(e.call(Ce,n)),n.type){case"table":{for(const i of n.header)t=t.concat(Ce.walkTokens(i.tokens,e));for(const i of n.rows)for(const s of i)t=t.concat(Ce.walkTokens(s.tokens,e));break}case"list":{t=t.concat(Ce.walkTokens(n.items,e));break}default:Ce.defaults.extensions&&Ce.defaults.extensions.childTokens&&Ce.defaults.extensions.childTokens[n.type]?Ce.defaults.extensions.childTokens[n.type].forEach(function(i){t=t.concat(Ce.walkTokens(n[i],e))}):n.tokens&&(t=t.concat(Ce.walkTokens(n.tokens,e)))}return t};Ce.parseInline=xd(Vt.lexInline,gr.parseInline);Ce.Parser=gr;Ce.parser=gr.parse;Ce.Renderer=vs;Ce.TextRenderer=Xd;Ce.Lexer=Vt;Ce.lexer=Vt.lex;Ce.Tokenizer=ys;Ce.Slugger=ks;Ce.Hooks=ai;Ce.parse=Ce;Ce.options;Ce.setOptions;Ce.use;Ce.walkTokens;Ce.parseInline;gr.parse;Vt.lex;const $d={};function rk(r){let e;return{c(){e=ce(r[1])},l(t){e=de(t,r[1])},m(t,n){P(t,e,n)},p(t,n){n&2&&ye(e,t[1])},i:ie,o:ie,d(t){t&&g(e)}}}function ik(r){let e,t;const n=r[5].default,i=Ie(n,r,r[4],null);return{c(){e=j("h6"),i&&i.c(),this.h()},l(s){e=L(s,"H6",{id:!0});var l=R(e);i&&i.l(l),l.forEach(g),this.h()},h(){T(e,"id",r[2])},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,l){i&&i.p&&(!t||l&16)&&Re(i,n,s,s[4],t?Me(n,s[4],l,null):De(s[4]),null),(!t||l&4)&&T(e,"id",s[2])},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function lk(r){let e,t;const n=r[5].default,i=Ie(n,r,r[4],null);return{c(){e=j("h5"),i&&i.c(),this.h()},l(s){e=L(s,"H5",{id:!0});var l=R(e);i&&i.l(l),l.forEach(g),this.h()},h(){T(e,"id",r[2])},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,l){i&&i.p&&(!t||l&16)&&Re(i,n,s,s[4],t?Me(n,s[4],l,null):De(s[4]),null),(!t||l&4)&&T(e,"id",s[2])},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function sk(r){let e,t;const n=r[5].default,i=Ie(n,r,r[4],null);return{c(){e=j("h4"),i&&i.c(),this.h()},l(s){e=L(s,"H4",{id:!0});var l=R(e);i&&i.l(l),l.forEach(g),this.h()},h(){T(e,"id",r[2])},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,l){i&&i.p&&(!t||l&16)&&Re(i,n,s,s[4],t?Me(n,s[4],l,null):De(s[4]),null),(!t||l&4)&&T(e,"id",s[2])},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function ok(r){let e,t;const n=r[5].default,i=Ie(n,r,r[4],null);return{c(){e=j("h3"),i&&i.c(),this.h()},l(s){e=L(s,"H3",{id:!0});var l=R(e);i&&i.l(l),l.forEach(g),this.h()},h(){T(e,"id",r[2])},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,l){i&&i.p&&(!t||l&16)&&Re(i,n,s,s[4],t?Me(n,s[4],l,null):De(s[4]),null),(!t||l&4)&&T(e,"id",s[2])},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function ak(r){let e,t;const n=r[5].default,i=Ie(n,r,r[4],null);return{c(){e=j("h2"),i&&i.c(),this.h()},l(s){e=L(s,"H2",{id:!0});var l=R(e);i&&i.l(l),l.forEach(g),this.h()},h(){T(e,"id",r[2])},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,l){i&&i.p&&(!t||l&16)&&Re(i,n,s,s[4],t?Me(n,s[4],l,null):De(s[4]),null),(!t||l&4)&&T(e,"id",s[2])},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function uk(r){let e,t;const n=r[5].default,i=Ie(n,r,r[4],null);return{c(){e=j("h1"),i&&i.c(),this.h()},l(s){e=L(s,"H1",{id:!0});var l=R(e);i&&i.l(l),l.forEach(g),this.h()},h(){T(e,"id",r[2])},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,l){i&&i.p&&(!t||l&16)&&Re(i,n,s,s[4],t?Me(n,s[4],l,null):De(s[4]),null),(!t||l&4)&&T(e,"id",s[2])},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function fk(r){let e,t,n,i;const s=[uk,ak,ok,sk,lk,ik,rk],l=[];function o(a,u){return a[0]===1?0:a[0]===2?1:a[0]===3?2:a[0]===4?3:a[0]===5?4:a[0]===6?5:6}return e=o(r),t=l[e]=s[e](r),{c(){t.c(),n=G()},l(a){t.l(a),n=G()},m(a,u){l[e].m(a,u),P(a,n,u),i=!0},p(a,[u]){let f=e;e=o(a),e===f?l[e].p(a,u):(ne(),v(l[f],1,1,()=>{l[f]=null}),re(),t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n))},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){l[e].d(a),a&&g(n)}}}function ck(r,e,t){let n,{$$slots:i={},$$scope:s}=e,{depth:l}=e,{raw:o}=e,{text:a}=e;const{slug:u,getOptions:f}=bt($d),c=f();return r.$$set=h=>{"depth"in h&&t(0,l=h.depth),"raw"in h&&t(1,o=h.raw),"text"in h&&t(3,a=h.text),"$$scope"in h&&t(4,s=h.$$scope)},r.$$.update=()=>{r.$$.dirty&8&&t(2,n=c.headerIds?c.headerPrefix+u(a):void 0)},[l,o,n,a,s,i]}class dk extends me{constructor(e){super(),pe(this,e,ck,fk,he,{depth:0,raw:1,text:3})}}function hk(r){let e,t;const n=r[1].default,i=Ie(n,r,r[0],null);return{c(){e=j("p"),i&&i.c()},l(s){e=L(s,"P",{});var l=R(e);i&&i.l(l),l.forEach(g)},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,[l]){i&&i.p&&(!t||l&1)&&Re(i,n,s,s[0],t?Me(n,s[0],l,null):De(s[0]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function mk(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=s=>{"$$scope"in s&&t(0,i=s.$$scope)},[i,n]}class pk extends me{constructor(e){super(),pe(this,e,mk,hk,he,{})}}function gk(r){let e;const t=r[3].default,n=Ie(t,r,r[2],null);return{c(){n&&n.c()},l(i){n&&n.l(i)},m(i,s){n&&n.m(i,s),e=!0},p(i,[s]){n&&n.p&&(!e||s&4)&&Re(n,t,i,i[2],e?Me(t,i[2],s,null):De(i[2]),null)},i(i){e||(_(n,i),e=!0)},o(i){v(n,i),e=!1},d(i){n&&n.d(i)}}}function bk(r,e,t){let{$$slots:n={},$$scope:i}=e,{text:s}=e,{raw:l}=e;return r.$$set=o=>{"text"in o&&t(0,s=o.text),"raw"in o&&t(1,l=o.raw),"$$scope"in o&&t(2,i=o.$$scope)},[s,l,i,n]}class _k extends me{constructor(e){super(),pe(this,e,bk,gk,he,{text:0,raw:1})}}function yk(r){let e,t;return{c(){e=j("img"),this.h()},l(n){e=L(n,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){Fs(e.src,t=r[0])||T(e,"src",t),T(e,"title",r[1]),T(e,"alt",r[2])},m(n,i){P(n,e,i)},p(n,[i]){i&1&&!Fs(e.src,t=n[0])&&T(e,"src",t),i&2&&T(e,"title",n[1]),i&4&&T(e,"alt",n[2])},i:ie,o:ie,d(n){n&&g(e)}}}function vk(r,e,t){let{href:n=""}=e,{title:i=void 0}=e,{text:s=""}=e;return r.$$set=l=>{"href"in l&&t(0,n=l.href),"title"in l&&t(1,i=l.title),"text"in l&&t(2,s=l.text)},[n,i,s]}class kk extends me{constructor(e){super(),pe(this,e,vk,yk,he,{href:0,title:1,text:2})}}function Ek(r){let e,t;const n=r[3].default,i=Ie(n,r,r[2],null);return{c(){e=j("a"),i&&i.c(),this.h()},l(s){e=L(s,"A",{href:!0,title:!0});var l=R(e);i&&i.l(l),l.forEach(g),this.h()},h(){T(e,"href",r[0]),T(e,"title",r[1])},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,[l]){i&&i.p&&(!t||l&4)&&Re(i,n,s,s[2],t?Me(n,s[2],l,null):De(s[2]),null),(!t||l&1)&&T(e,"href",s[0]),(!t||l&2)&&T(e,"title",s[1])},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function Sk(r,e,t){let{$$slots:n={},$$scope:i}=e,{href:s=""}=e,{title:l=void 0}=e;return r.$$set=o=>{"href"in o&&t(0,s=o.href),"title"in o&&t(1,l=o.title),"$$scope"in o&&t(2,i=o.$$scope)},[s,l,i,n]}class Ok extends me{constructor(e){super(),pe(this,e,Sk,Ek,he,{href:0,title:1})}}function wk(r){let e,t;const n=r[1].default,i=Ie(n,r,r[0],null);return{c(){e=j("em"),i&&i.c()},l(s){e=L(s,"EM",{});var l=R(e);i&&i.l(l),l.forEach(g)},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,[l]){i&&i.p&&(!t||l&1)&&Re(i,n,s,s[0],t?Me(n,s[0],l,null):De(s[0]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function Ak(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=s=>{"$$scope"in s&&t(0,i=s.$$scope)},[i,n]}class Tk extends me{constructor(e){super(),pe(this,e,Ak,wk,he,{})}}function Pk(r){let e,t;const n=r[1].default,i=Ie(n,r,r[0],null);return{c(){e=j("del"),i&&i.c()},l(s){e=L(s,"DEL",{});var l=R(e);i&&i.l(l),l.forEach(g)},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,[l]){i&&i.p&&(!t||l&1)&&Re(i,n,s,s[0],t?Me(n,s[0],l,null):De(s[0]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function Ck(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=s=>{"$$scope"in s&&t(0,i=s.$$scope)},[i,n]}class Ik extends me{constructor(e){super(),pe(this,e,Ck,Pk,he,{})}}function Rk(r){let e,t=r[0].replace(/`/g,"")+"",n;return{c(){e=j("code"),n=ce(t)},l(i){e=L(i,"CODE",{});var s=R(e);n=de(s,t),s.forEach(g)},m(i,s){P(i,e,s),I(e,n)},p(i,[s]){s&1&&t!==(t=i[0].replace(/`/g,"")+"")&&ye(n,t)},i:ie,o:ie,d(i){i&&g(e)}}}function Dk(r,e,t){let{raw:n}=e;return r.$$set=i=>{"raw"in i&&t(0,n=i.raw)},[n]}class Mk extends me{constructor(e){super(),pe(this,e,Dk,Rk,he,{raw:0})}}function Nk(r){let e,t;const n=r[1].default,i=Ie(n,r,r[0],null);return{c(){e=j("strong"),i&&i.c()},l(s){e=L(s,"STRONG",{});var l=R(e);i&&i.l(l),l.forEach(g)},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,[l]){i&&i.p&&(!t||l&1)&&Re(i,n,s,s[0],t?Me(n,s[0],l,null):De(s[0]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function jk(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=s=>{"$$scope"in s&&t(0,i=s.$$scope)},[i,n]}class Lk extends me{constructor(e){super(),pe(this,e,jk,Nk,he,{})}}function qk(r){let e,t;const n=r[1].default,i=Ie(n,r,r[0],null);return{c(){e=j("table"),i&&i.c()},l(s){e=L(s,"TABLE",{});var l=R(e);i&&i.l(l),l.forEach(g)},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,[l]){i&&i.p&&(!t||l&1)&&Re(i,n,s,s[0],t?Me(n,s[0],l,null):De(s[0]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function Bk(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=s=>{"$$scope"in s&&t(0,i=s.$$scope)},[i,n]}class Fk extends me{constructor(e){super(),pe(this,e,Bk,qk,he,{})}}function zk(r){let e,t;const n=r[1].default,i=Ie(n,r,r[0],null);return{c(){e=j("thead"),i&&i.c()},l(s){e=L(s,"THEAD",{});var l=R(e);i&&i.l(l),l.forEach(g)},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,[l]){i&&i.p&&(!t||l&1)&&Re(i,n,s,s[0],t?Me(n,s[0],l,null):De(s[0]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function Vk(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=s=>{"$$scope"in s&&t(0,i=s.$$scope)},[i,n]}class Uk extends me{constructor(e){super(),pe(this,e,Vk,zk,he,{})}}function Hk(r){let e,t;const n=r[1].default,i=Ie(n,r,r[0],null);return{c(){e=j("tbody"),i&&i.c()},l(s){e=L(s,"TBODY",{});var l=R(e);i&&i.l(l),l.forEach(g)},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,[l]){i&&i.p&&(!t||l&1)&&Re(i,n,s,s[0],t?Me(n,s[0],l,null):De(s[0]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function Qk(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=s=>{"$$scope"in s&&t(0,i=s.$$scope)},[i,n]}class Wk extends me{constructor(e){super(),pe(this,e,Qk,Hk,he,{})}}function Gk(r){let e,t;const n=r[1].default,i=Ie(n,r,r[0],null);return{c(){e=j("tr"),i&&i.c()},l(s){e=L(s,"TR",{});var l=R(e);i&&i.l(l),l.forEach(g)},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,[l]){i&&i.p&&(!t||l&1)&&Re(i,n,s,s[0],t?Me(n,s[0],l,null):De(s[0]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function Kk(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=s=>{"$$scope"in s&&t(0,i=s.$$scope)},[i,n]}class Jk extends me{constructor(e){super(),pe(this,e,Kk,Gk,he,{})}}function Zk(r){let e,t;const n=r[3].default,i=Ie(n,r,r[2],null);return{c(){e=j("td"),i&&i.c(),this.h()},l(s){e=L(s,"TD",{align:!0});var l=R(e);i&&i.l(l),l.forEach(g),this.h()},h(){T(e,"align",r[1])},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,l){i&&i.p&&(!t||l&4)&&Re(i,n,s,s[2],t?Me(n,s[2],l,null):De(s[2]),null),(!t||l&2)&&T(e,"align",s[1])},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function Yk(r){let e,t;const n=r[3].default,i=Ie(n,r,r[2],null);return{c(){e=j("th"),i&&i.c(),this.h()},l(s){e=L(s,"TH",{align:!0});var l=R(e);i&&i.l(l),l.forEach(g),this.h()},h(){T(e,"align",r[1])},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,l){i&&i.p&&(!t||l&4)&&Re(i,n,s,s[2],t?Me(n,s[2],l,null):De(s[2]),null),(!t||l&2)&&T(e,"align",s[1])},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function Xk(r){let e,t,n,i;const s=[Yk,Zk],l=[];function o(a,u){return a[0]?0:1}return e=o(r),t=l[e]=s[e](r),{c(){t.c(),n=G()},l(a){t.l(a),n=G()},m(a,u){l[e].m(a,u),P(a,n,u),i=!0},p(a,[u]){let f=e;e=o(a),e===f?l[e].p(a,u):(ne(),v(l[f],1,1,()=>{l[f]=null}),re(),t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n))},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){l[e].d(a),a&&g(n)}}}function xk(r,e,t){let{$$slots:n={},$$scope:i}=e,{header:s}=e,{align:l}=e;return r.$$set=o=>{"header"in o&&t(0,s=o.header),"align"in o&&t(1,l=o.align),"$$scope"in o&&t(2,i=o.$$scope)},[s,l,i,n]}class $k extends me{constructor(e){super(),pe(this,e,xk,Xk,he,{header:0,align:1})}}function eE(r){let e,t;const n=r[3].default,i=Ie(n,r,r[2],null);return{c(){e=j("ul"),i&&i.c()},l(s){e=L(s,"UL",{});var l=R(e);i&&i.l(l),l.forEach(g)},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,l){i&&i.p&&(!t||l&4)&&Re(i,n,s,s[2],t?Me(n,s[2],l,null):De(s[2]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function tE(r){let e,t;const n=r[3].default,i=Ie(n,r,r[2],null);return{c(){e=j("ol"),i&&i.c(),this.h()},l(s){e=L(s,"OL",{start:!0});var l=R(e);i&&i.l(l),l.forEach(g),this.h()},h(){T(e,"start",r[1])},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,l){i&&i.p&&(!t||l&4)&&Re(i,n,s,s[2],t?Me(n,s[2],l,null):De(s[2]),null),(!t||l&2)&&T(e,"start",s[1])},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function nE(r){let e,t,n,i;const s=[tE,eE],l=[];function o(a,u){return a[0]?0:1}return e=o(r),t=l[e]=s[e](r),{c(){t.c(),n=G()},l(a){t.l(a),n=G()},m(a,u){l[e].m(a,u),P(a,n,u),i=!0},p(a,[u]){let f=e;e=o(a),e===f?l[e].p(a,u):(ne(),v(l[f],1,1,()=>{l[f]=null}),re(),t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n))},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){l[e].d(a),a&&g(n)}}}function rE(r,e,t){let{$$slots:n={},$$scope:i}=e,{ordered:s}=e,{start:l}=e;return r.$$set=o=>{"ordered"in o&&t(0,s=o.ordered),"start"in o&&t(1,l=o.start),"$$scope"in o&&t(2,i=o.$$scope)},[s,l,i,n]}class iE extends me{constructor(e){super(),pe(this,e,rE,nE,he,{ordered:0,start:1})}}function lE(r){let e,t;const n=r[1].default,i=Ie(n,r,r[0],null);return{c(){e=j("li"),i&&i.c()},l(s){e=L(s,"LI",{});var l=R(e);i&&i.l(l),l.forEach(g)},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,[l]){i&&i.p&&(!t||l&1)&&Re(i,n,s,s[0],t?Me(n,s[0],l,null):De(s[0]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function sE(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=s=>{"$$scope"in s&&t(0,i=s.$$scope)},[i,n]}class oE extends me{constructor(e){super(),pe(this,e,sE,lE,he,{})}}function aE(r){let e;return{c(){e=j("hr")},l(t){e=L(t,"HR",{})},m(t,n){P(t,e,n)},p:ie,i:ie,o:ie,d(t){t&&g(e)}}}class uE extends me{constructor(e){super(),pe(this,e,null,aE,he,{})}}function fE(r){let e,t;return{c(){e=new Th(!1),t=G(),this.h()},l(n){e=Ph(n,!1),t=G(),this.h()},h(){e.a=t},m(n,i){e.m(r[0],n,i),P(n,t,i)},p(n,[i]){i&1&&e.p(n[0])},i:ie,o:ie,d(n){n&&g(t),n&&e.d()}}}function cE(r,e,t){let{text:n}=e;return r.$$set=i=>{"text"in i&&t(0,n=i.text)},[n]}class dE extends me{constructor(e){super(),pe(this,e,cE,fE,he,{text:0})}}function hE(r){let e,t;const n=r[1].default,i=Ie(n,r,r[0],null);return{c(){e=j("blockquote"),i&&i.c()},l(s){e=L(s,"BLOCKQUOTE",{});var l=R(e);i&&i.l(l),l.forEach(g)},m(s,l){P(s,e,l),i&&i.m(e,null),t=!0},p(s,[l]){i&&i.p&&(!t||l&1)&&Re(i,n,s,s[0],t?Me(n,s[0],l,null):De(s[0]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function mE(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=s=>{"$$scope"in s&&t(0,i=s.$$scope)},[i,n]}class pE extends me{constructor(e){super(),pe(this,e,mE,hE,he,{})}}function gE(r){let e,t,n;return{c(){e=j("pre"),t=j("code"),n=ce(r[1]),this.h()},l(i){e=L(i,"PRE",{class:!0});var s=R(e);t=L(s,"CODE",{});var l=R(t);n=de(l,r[1]),l.forEach(g),s.forEach(g),this.h()},h(){T(e,"class",r[0])},m(i,s){P(i,e,s),I(e,t),I(t,n)},p(i,[s]){s&2&&ye(n,i[1]),s&1&&T(e,"class",i[0])},i:ie,o:ie,d(i){i&&g(e)}}}function bE(r,e,t){let{lang:n}=e,{text:i}=e;return r.$$set=s=>{"lang"in s&&t(0,n=s.lang),"text"in s&&t(1,i=s.text)},[n,i]}class _E extends me{constructor(e){super(),pe(this,e,bE,gE,he,{lang:0,text:1})}}function yE(r){let e,t;const n=r[1].default,i=Ie(n,r,r[0],null);return{c(){e=j("br"),i&&i.c()},l(s){e=L(s,"BR",{}),i&&i.l(s)},m(s,l){P(s,e,l),i&&i.m(s,l),t=!0},p(s,[l]){i&&i.p&&(!t||l&1)&&Re(i,n,s,s[0],t?Me(n,s[0],l,null):De(s[0]),null)},i(s){t||(_(i,s),t=!0)},o(s){v(i,s),t=!1},d(s){s&&g(e),i&&i.d(s)}}}function vE(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=s=>{"$$scope"in s&&t(0,i=s.$$scope)},[i,n]}class kE extends me{constructor(e){super(),pe(this,e,vE,yE,he,{})}}const EE={heading:dk,paragraph:pk,text:_k,image:kk,link:Ok,em:Tk,strong:Lk,codespan:Mk,del:Ik,table:Fk,tablehead:Uk,tablebody:Wk,tablerow:Jk,tablecell:$k,list:iE,orderedlistitem:null,unorderedlistitem:null,listitem:oE,hr:uE,html:dE,blockquote:pE,code:_E,br:kE},SE={baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,xhtml:!1};function OE(r){let e,t;return e=new kn({props:{tokens:r[0],renderers:r[1]}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,[i]){const s={};i&1&&(s.tokens=n[0]),i&2&&(s.renderers=n[1]),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function wE(r,e,t){let n,i,s,l,{source:o=[]}=e,{renderers:a={}}=e,{options:u={}}=e,{isInline:f=!1}=e;const c=dt();let h,d,m;return Ut($d,{slug:p=>i?i.slug(p):"",getOptions:()=>s}),ln(()=>{t(7,m=!0)}),r.$$set=p=>{"source"in p&&t(2,o=p.source),"renderers"in p&&t(3,a=p.renderers),"options"in p&&t(4,u=p.options),"isInline"in p&&t(5,f=p.isInline)},r.$$.update=()=>{r.$$.dirty&4&&t(8,n=Array.isArray(o)),r.$$.dirty&4&&(i=o?new ks:void 0),r.$$.dirty&16&&t(9,s={...SE,...u}),r.$$.dirty&869&&(n?t(0,h=o):(t(6,d=new Vt(s)),t(0,h=f?d.inlineTokens(o):d.lex(o)),c("parsed",{tokens:h}))),r.$$.dirty&8&&t(1,l={...EE,...a}),r.$$.dirty&385&&m&&!n&&c("parsed",{tokens:h})},[h,l,o,a,u,f,d,m,n,s]}class eh extends me{constructor(e){super(),pe(this,e,wE,OE,he,{source:2,renderers:3,options:4,isInline:5})}}const AE={AdditionalItemsError:"Array at `{{pointer}}` may not have an additional item `{{key}}`",AdditionalPropertiesError:"Additional property `{{property}}` on `{{pointer}}` does not match schema `{{schema}}`",AllOfError:"Value `{{value}}` at `{{pointer}}` does not match schema of `{{allOf}}`",AnyOfError:"Value `{{value}}` at `{{pointer}}` does not match any schema of `{{anyOf}}`",ConstError:"Expected value at `{{pointer}}` to be `{{expected}}`, but value given is `{{value}}`",containsAnyError:"The array at `{{pointer}}` must contain at least one item",ContainsArrayError:"The property at `{{pointer}}` must not be an array",ContainsError:"The array at `{{pointer}}` must contain an element that matches `{{schema}}`",EnumError:"Expected given value `{{value}}` in `{{pointer}}` to be one of `{{values}}`",FormatDateError:"Value `{{value}}` at `{{pointer}}` is not a valid date",FormatDateTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid date-time",FormatEmailError:"Value `{{value}}` at `{{pointer}}` is not a valid email",FormatHostnameError:"Value `{{value}}` at `{{pointer}}` is not a valid hostname",FormatIPV4Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv4 address",FormatIPV4LeadingZeroError:"IPv4 addresses starting with zero are invalid, since they are interpreted as octals",FormatIPV6Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv6 address",FormatIPV6LeadingZeroError:"IPv6 addresses starting with zero are invalid, since they are interpreted as octals",FormatJSONPointerError:"Value `{{value}}` at `{{pointer}}` is not a valid json-pointer",FormatRegExError:"Value `{{value}}` at `{{pointer}}` is not a valid regular expression",FormatTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid time",FormatURIError:"Value `{{value}}` at `{{pointer}}` is not a valid uri",FormatURIReferenceError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-reference",FormatURITemplateError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-template",FormatURLError:"Value `{{value}}` at `{{pointer}}` is not a valid url",InvalidDataError:"No value may be specified in `{{pointer}}`",InvalidPropertyNameError:"Invalid property name `{{property}}` at `{{pointer}}`",MaximumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{maximum}}` at maximum",MaxItemsError:"Too many items in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MaxLengthError:"Value `{{pointer}}` should have a maximum length of `{{maxLength}}`, but got `{{length}}`.",MaxPropertiesError:"Too many properties in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MinimumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{minimum}}` at minimum",MinItemsError:"Too few items in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MinItemsOneError:"At least one item is required in `{{pointer}}`",MinLengthError:"Value `{{pointer}}` should have a minimum length of `{{minLength}}`, but got `{{length}}`.",MinLengthOneError:"A value is required in `{{pointer}}`",MinPropertiesError:"Too few properties in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MissingDependencyError:"The required propery '{{missingProperty}}' in `{{pointer}}` is missing",MissingOneOfPropertyError:"Value at `{{pointer}}` property: `{{property}}`",MultipleOfError:"Expected `{{value}}` in `{{pointer}}` to be multiple of `{{multipleOf}}`",MultipleOneOfError:"Value `{{value}}` should not match multiple schemas in oneOf `{{matches}}`",NoAdditionalPropertiesError:"Additional property `{{property}}` in `{{pointer}}` is not allowed",NotError:"Value `{{value}}` at pointer should not match schema `{{not}}`",OneOfError:"Value `{{value}}` in `{{pointer}}` does not match any given oneof schema",OneOfPropertyError:"Failed finding a matching oneOfProperty schema in `{{pointer}}` where `{{property}}` matches `{{value}}`",PatternError:"Value in `{{pointer}}` should match `{{description}}`, but received `{{received}}`",PatternPropertiesError:"Property `{{key}}` does not match any patterns in `{{pointer}}`. Valid patterns are: {{patterns}}",RequiredPropertyError:"The required property `{{key}}` is missing at `{{pointer}}`",TypeError:"Expected `{{value}}` ({{received}}) in `{{pointer}}` to be of type `{{expected}}`",UndefinedValueError:"Value must not be undefined in `{{pointer}}`",UniqueItemsError:"Expected unique items in {{pointer}}: duplicate value `{{value}}` found at {{itemPointer}} and {{duplicatePointer}}",UnknownPropertyError:"Could not find a valid schema for property `{{pointer}}` within object",ValueNotEmptyError:"A value for `{{property}}` is required at `{{pointer}}`"};function TE(r,e={}){return r.replace(/\{\{\w+\}\}/g,t=>e[t.replace(/[{}]/g,"")])}function PE(r,e,t=r){const n=AE[r]||t;return TE(n,e)}function CE(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function IE(r,e){return{type:"error",name:r,code:CE(r),message:PE(r,e),data:e}}function Oe(r){return IE.bind(null,r)}const RE=Object.prototype.toString;function ze(r){const e=RE.call(r).match(/\s([^\]]+)\]/).pop().toLowerCase();return e==="file"?"object":e}function st(r){return(r==null?void 0:r.type)==="error"}function DE(r){return r instanceof Promise}function ui(r){return st(r)||DE(r)}function ir(r,e=[]){for(let t=0;t0)l.push(...h);else return f}return r.errors.oneOfPropertyError({property:o,value:a,pointer:n,errors:l})}const i=[],s=[];for(let l=0;l0?s.push(...a):i.push(o)}return i.length===1?i[0]:i.length>1?r.errors.multipleOneOfError({value:e,pointer:n,matches:i}):r.errors.oneOfError({value:JSON.stringify(e),pointer:n,oneOf:t.oneOf,errors:s})}const Es=r=>JSON.parse(JSON.stringify(r));var NE=function(e){return jE(e)&&!LE(e)};function jE(r){return!!r&&typeof r=="object"}function LE(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||FE(r)}var qE=typeof Symbol=="function"&&Symbol.for,BE=qE?Symbol.for("react.element"):60103;function FE(r){return r.$$typeof===BE}function zE(r){return Array.isArray(r)?[]:{}}function lr(r,e){return e.clone!==!1&&e.isMergeableObject(r)?Fn(zE(r),r,e):r}function VE(r,e,t){return r.concat(e).map(function(n){return lr(n,t)})}function UE(r,e){if(!e.customMerge)return Fn;var t=e.customMerge(r);return typeof t=="function"?t:Fn}function HE(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function _f(r){return Object.keys(r).concat(HE(r))}function th(r,e){try{return e in r}catch{return!1}}function QE(r,e){return th(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function WE(r,e,t){var n={};return t.isMergeableObject(r)&&_f(r).forEach(function(i){n[i]=lr(r[i],t)}),_f(e).forEach(function(i){QE(r,i)||(th(r,i)&&t.isMergeableObject(e[i])?n[i]=UE(i,t)(r[i],e[i],t):n[i]=lr(e[i],t))}),n}function Fn(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||VE,t.isMergeableObject=t.isMergeableObject||NE,t.cloneUnlessOtherwiseSpecified=lr;var n=Array.isArray(e),i=Array.isArray(r),s=n===i;return s?n?t.arrayMerge(r,e,t):WE(r,e,t):lr(e,t)}Fn.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Fn(n,i,t)},{})};var GE=Fn,KE=GE;const nh=dr(KE),JE=(r,e)=>e,sr=(r,e)=>nh(r,e,{arrayMerge:JE}),ZE=(r,e)=>{const t=r.concat(e);return t.filter((n,i)=>t.indexOf(n)===i)},YE=(r,e)=>nh(r,e,{arrayMerge:ZE});function Ll(r,e,t){var n;const i={...(n=r.resolveRef(e))!==null&&n!==void 0?n:{}};if(i.if&&(i.then||i.else)){const s=r.isValid(t,i.if);if(s&&i.then)return Ll(r,i.then,t);if(!s&&i.else)return Ll(r,i.else,t);delete i.if,delete i.then,delete i.else}return i}function XE(r,e,t=r.rootSchema,n="#"){let i=Es(t);for(let s=0;s0)s.push(...c);else return u}return r.errors.oneOfPropertyError({property:l,value:o,pointer:n,errors:s})}const i=[];for(let s=0;s1?r.errors.multipleOneOfError({matches:i,data:e,pointer:n}):r.errors.oneOfError({value:JSON.stringify(e),pointer:n,oneOf:t.oneOf})}function $E(r,e){return r==null||r.$ref==null?r:r.getRoot?r.getRoot().getRef(r):e.getRef(r)}function eS(r,e){if(r==null||r.$ref==null)return r;const t=e.getRef(r),n=Object.assign({},t,r);return delete n.$ref,Object.defineProperty(n,"__ref",{enumerable:!1,value:r.__ref}),Object.defineProperty(n,"getRoot",{enumerable:!1,value:r.getRoot}),n}var rh={exports:{}};(function(r,e){(function(t,n){r.exports=n()})(typeof self<"u"?self:vi,()=>(()=>{var t={d:(N,Y)=>{for(var V in Y)t.o(Y,V)&&!t.o(N,V)&&Object.defineProperty(N,V,{enumerable:!0,get:Y[V]})},o:(N,Y)=>Object.prototype.hasOwnProperty.call(N,Y),r:N=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(N,"__esModule",{value:!0})}},n={};function i(N){return N==="#"||N===""||Array.isArray(N)&&N.length===0||!1}t.r(n),t.d(n,{default:()=>q,get:()=>h,isRoot:()=>i,join:()=>M,remove:()=>C,removeUndefinedItems:()=>S,set:()=>k,split:()=>c,splitLast:()=>F});const s=/~1/g,l=/~0/g,o=/\/+/g,a=/(^[#/]*|\/+$)/g;function u(N){return N.replace(s,"/").replace(l,"~")}function f(N){return u(decodeURIComponent(N))}function c(N){if(N==null||typeof N!="string"||i(N))return Array.isArray(N)?N:[];const Y=N.indexOf("#")>=0?f:u,V=(N=(N=N.replace(o,"/")).replace(a,"")).split("/");for(let K=0,oe=V.length;K0&&Y[0]=="prototype"}function k(N,Y,V){if(Y==null)return N;const K=c(Y);if(K.length===0)return N;N==null&&(N=m.test(K[0])?[]:{});let oe,fe,x=N;for(;K.length>1;)oe=K.shift(),fe=m.test(K[0]),y(oe,K)||(x=E(x,oe,fe));return oe=K.pop(),O(x,oe,V),N}function O(N,Y,V){let K;const oe=Y.match(p);Y==="[]"&&Array.isArray(N)?N.push(V):oe?(K=oe.pop(),N[K]=V):N[Y]=V}function E(N,Y,V){if(N[Y]!=null)return N[Y];const K=V?[]:{};return O(N,Y,K),K}function S(N){let Y=0,V=0;for(;Y+V0?null:{type:null,text:t[0],rest:r.substr(t[0].length),start:0,end:t[0].length-1,fullText:t[0],errors:[],children:[],parent:null}:null}gt.readToken=ql;function sh(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}gt.escapeRegExp=sh;function oh(r){r.rest="",r.children&&r.children.forEach(e=>oh(e))}function ah(r,e){r.start+=e,r.end+=e,r.children&&r.children.forEach(t=>ah(t,r.start))}function uh(r,e){e.errors&&e.errors.length&&e.errors.forEach(t=>r.push(t)),e.children&&e.children.forEach(t=>uh(r,t))}function dn(r){let e=vf.exec(r),t=kf.exec(r),n=e&&e[0]||"",i=t&&t[0]||"",s={raw:r,name:r.replace(vf,"").replace(kf,""),isOptional:n=="?"||n=="*",allowRepetition:n=="+"||n=="*",atLeastOne:n=="+",lookupPositive:i=="&",lookupNegative:i=="!",pinned:i=="@",lookup:!1,isLiteral:!1};return s.isLiteral=s.name[0]=="'"||s.name[0]=='"',s.lookup=s.lookupNegative||s.lookupPositive,s}gt.parseRuleName=dn;function fh(r,e){let t=dn(r);return e.cachedRules[t.name]||null}gt.findRuleByName=fh;function Bl(r,e){if(r.children){let t=r.children.filter(n=>n.type&&e.test(n.type));for(let n=0;nBl(n,e))}}const sS=["EOF"];class ch{constructor(e,t){this.grammarRules=e,this.options=t,this.cachedRules={},this.debug=t?t.debug===!0:!1;let n=[],i=[];if(e.forEach(s=>{let l=dn(s.name);if(l.name in this.cachedRules){n.push("Duplicated rule "+l.name);return}else this.cachedRules[l.name]=s;if(!s.bnf||!s.bnf.length){let o="Missing rule content, rule: "+s.name;n.indexOf(o)==-1&&n.push(o)}else s.bnf.forEach(o=>{if(typeof o[0]=="string"&&dn(o[0]).name==s.name){let u="Left recursion is not allowed, rule: "+s.name;n.indexOf(u)==-1&&n.push(u)}o.forEach(a=>{if(typeof a=="string"){let u=dn(a);!u.isLiteral&&i.indexOf(u.name)==-1&&sS.indexOf(u.name)==-1&&i.push(u.name)}})});Ar==s.name&&(s.implicitWs=!1),s.implicitWs&&i.indexOf(Ar)==-1&&i.push(Ar),s.recover&&i.indexOf(s.recover)==-1&&i.push(s.recover)}),i.forEach(s=>{s in this.cachedRules||n.push("Missing rule "+s)}),n.length)throw new Error(n.join(` +`))}getAST(e,t){t||(t=this.grammarRules.filter(i=>!i.fragment&&i.name.indexOf("%")!=0)[0].name);let n=this.parse(e,t);if(n){uh(n.errors,n),ah(n,0),Bl(n,/^%/),(!this.options||!this.options.keepUpperRules)&&Bl(n,yf);let i=n.rest;i&&new Tr.TokenError(`Unexpected end of input: +`+i,n),oh(n),n.rest=i}return n}emitSource(){return"CANNOT EMIT SOURCE FROM BASE Parser"}parse(e,t,n=0){let i=null,s=dn(t),l,o=this.debug&&!yf.test(s.name);o&&console.log(new Array(n).join("│ ")+"Trying to get "+t+" from "+JSON.stringify(e.split(` +`)[0]));let a=s.name,u=fh(s.name,this);if(s.name=="EOF"){if(e.length)return null;if(e.length==0)return{type:"EOF",text:"",rest:"",start:0,end:0,fullText:"",errors:[],children:[],parent:null}}try{if(!u&&s.isLiteral){let f=s.name.trim();if(f.startsWith('"')?f=JSON.parse(f):f.startsWith("'")&&(f=f.replace(/^'(.+)'$/,"$1").replace(/\\'/g,"'")),f==="")return{type:"%%EMPTY%%",text:"",rest:e,start:0,end:0,fullText:"",errors:[],children:[],parent:null};l=new RegExp(sh(f)),a=null}}catch(f){return f instanceof ReferenceError&&console.error(f),null}if(l){let f=ql(e,l);if(f)return f.type=a,f}else{let f=u.bnf;f instanceof Array&&f.forEach(c=>{if(i)return;let h=null,d={type:s.name,text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:e};u.fragment&&(d.fragment=!0);let m=e,p=0,y=c.length>0,k=!1;for(let O=0;O{A.start+=p,A.end+=p,A.parent=d,d.children.push(A)}):(S.parent=d,d.children.push(S))),E.lookup&&(S.lookup=!0),o&&console.log(new Array(n+1).join("│ ")+"└─ "+S.type+" "+JSON.stringify(S.text)),!E.lookup&&!S.lookup&&(d.text=d.text+S.text,d.end=d.text.length,m=m.substr(S.text.length),p+=S.text.length),d.rest=m}while(S&&E.allowRepetition&&m.length&&!S.lookup)}else{let E=ql(m,c[O]);if(!E)return;o&&console.log(new Array(n+1).join("│ ")+"└> "+JSON.stringify(E.text)+c[O].source),k=!0,E.start+=p,E.end+=p,d.text=d.text+E.text,d.end=d.text.length,m=m.substr(E.text.length),p+=E.text.length,d.rest=m}k&&(i=d,o&&console.log(new Array(n).join("│ ")+"├<─┴< PUSHING "+i.type+" "+JSON.stringify(i.text)))}),i&&u.simplifyWhenOneChildren&&i.children.length==1&&(i=i.children[0])}return i||o&&console.log(t+" NOT RESOLVED FROM "+e),i}parseRecovery(e,t,n){if(e.recover&&t.length){let i=this.debug;i&&console.log(new Array(n+1).join("│ ")+"Trying to recover until token "+e.recover+" from "+JSON.stringify(t.split(` +`)[0]+t.split(` +`)[1]));let s={type:"SyntaxError",text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:""},l;do if(l=this.parse(t,e.recover,n+1),l){new Tr.TokenError('Unexpected input: "'+s.text+`" Expecting: ${e.name}`,s);break}else s.text=s.text+t[0],s.end=s.text.length,t=t.substr(1);while(!l&&t.length>0);if(s.text.length>0&&l)return i&&console.log(new Array(n+1).join("│ ")+"Recovered text: "+JSON.stringify(s.text)),s}return null}}gt.Parser=ch;gt.default=ch;Object.defineProperty(lh,"__esModule",{value:!0});const Jn=gt;var Fl;(function(r){r.RULES=[{name:"Grammar",bnf:[["RULE_S*","%Atomic*","EOF"]]},{name:"%Atomic",bnf:[["Production","RULE_S*"]],fragment:!0},{name:"Production",bnf:[["NCName","RULE_S*",'"::="',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*","RULE_EOL+","RULE_S*"]]},{name:"NCName",bnf:[[/[a-zA-Z][a-zA-Z_0-9]*/]]},{name:"Choice",bnf:[["SequenceOrDifference","%_Choice_1*"]],fragment:!0},{name:"%_Choice_1",bnf:[["RULE_WHITESPACE*",'"|"',"RULE_WHITESPACE*","SequenceOrDifference"]],fragment:!0},{name:"SequenceOrDifference",bnf:[["Item","RULE_WHITESPACE*","%_Item_1?"]]},{name:"%_Item_1",bnf:[["Minus","Item"],["Item*"]],fragment:!0},{name:"Minus",bnf:[['"-"']]},{name:"Item",bnf:[["RULE_WHITESPACE*","%Primary","PrimaryDecoration?"]],fragment:!0},{name:"PrimaryDecoration",bnf:[['"?"'],['"*"'],['"+"']]},{name:"DecorationName",bnf:[['"ebnf://"',/[^\x5D#]+/]]},{name:"%Primary",bnf:[["NCName"],["StringLiteral"],["CharCode"],["CharClass"],["SubItem"]],fragment:!0},{name:"SubItem",bnf:[['"("',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*",'")"']]},{name:"StringLiteral",bnf:[[`'"'`,/[^"]*/,`'"'`],[`"'"`,/[^']*/,`"'"`]],pinned:1},{name:"CharCode",bnf:[['"#x"',/[0-9a-zA-Z]+/]]},{name:"CharClass",bnf:[["'['","'^'?","%RULE_CharClass_1+",'"]"']]},{name:"%RULE_CharClass_1",bnf:[["CharCodeRange"],["CharRange"],["CharCode"],["RULE_Char"]],fragment:!0},{name:"RULE_Char",bnf:[[/\x09/],[/\x0A/],[/\x0D/],[/[\x20-\x5c]/],[/[\x5e-\uD7FF]/],[/[\uE000-\uFFFD]/]]},{name:"CharRange",bnf:[["RULE_Char",'"-"',"RULE_Char"]]},{name:"CharCodeRange",bnf:[["CharCode",'"-"',"CharCode"]]},{name:"RULE_WHITESPACE",bnf:[["%RULE_WHITESPACE_CHAR*"],["Comment","RULE_WHITESPACE*"]]},{name:"RULE_S",bnf:[["RULE_WHITESPACE","RULE_S*"],["RULE_EOL","RULE_S*"]]},{name:"%RULE_WHITESPACE_CHAR",bnf:[[/\x09/],[/\x20/]],fragment:!0},{name:"Comment",bnf:[['"/*"',"%RULE_Comment_Body*",'"*/"']]},{name:"%RULE_Comment_Body",bnf:[['!"*/"',/[^*]/]],fragment:!0},{name:"RULE_EOL",bnf:[[/\x0D/,/\x0A/],[/\x0A/],[/\x0D/]]},{name:"Link",bnf:[["'['","Url","']'"]]},{name:"Url",bnf:[[/[^\x5D:/?#]/,'"://"',/[^\x5D#]+/,"%Url1?"]]},{name:"%Url1",bnf:[['"#"',"NCName"]],fragment:!0}],r.defaultParser=new Jn.Parser(r.RULES,{debug:!1});const e=/^(!|&)/,t=/(\?|\+|\*)$/,n=/^%/;function i(k,O){if(typeof k=="string"){if(e.test(k))return"";if(n.test(k)){let S=t.exec(k),C=S?S[0]+" ":"";return s(k,O)?o(k,O)+C:"("+o(k,O)+")"+C}return k}else return k.source.replace(/\\(?:x|u)([a-zA-Z0-9]+)/g,"#x$1").replace(/\[\\(?:x|u)([a-zA-Z0-9]+)-\\(?:x|u)([a-zA-Z0-9]+)\]/g,"[#x$1-#x$2]")}function s(k,O){let E=Jn.findRuleByName(k,O);return E&&E.bnf.length==1&&E.bnf[0].length==1&&(E.bnf[0][0]instanceof RegExp||E.bnf[0][0][0]=='"'||E.bnf[0][0][0]=="'")}function l(k,O){return k.map(E=>i(E,O)).join(" ")}function o(k,O){let E=Jn.findRuleByName(k,O);return E?E.bnf.map(S=>l(S,O)).join(" | "):"RULE_NOT_FOUND {"+k+"}"}function a(k){let O=[];return k.grammarRules.forEach(E=>{if(!/^%/.test(E.name)){let S=E.recover?" /* { recoverUntil="+E.recover+" } */":"";O.push(E.name+" ::= "+o(E.name,k)+S)}}),O.join(` +`)}r.emit=a;let u=0;function f(k,O){throw console.log("reberia restar "+O+" a "+k),new Error("Difference not supported yet")}function c(k){return new RegExp(k.replace(/#x([a-zA-Z0-9]{4})/g,"\\u$1").replace(/#x([a-zA-Z0-9]{3})/g,"\\u0$1").replace(/#x([a-zA-Z0-9]{2})/g,"\\x$1").replace(/#x([a-zA-Z0-9]{1})/g,"\\x0$1"))}function h(k,O,E){let S=null,C=[];return O.children.forEach((A,D)=>{A.type=="Minus"&&f(S,A);let w=O.children[D+1];w=w&&w.type=="PrimaryDecoration"&&w.text||"";let B="";switch(A.type){case"SubItem":let M="%"+(E+u++);d(k,A,M),C.push(B+M+w);break;case"NCName":case"StringLiteral":C.push(B+A.text+w);break;case"CharCode":case"CharClass":if(w||B){let F={name:"%"+(E+u++),bnf:[[c(A.text)]]};k.push(F),C.push(B+F.name+w)}else C.push(c(A.text));break;case"PrimaryDecoration":break;default:throw new Error(" HOW SHOULD I PARSE THIS? "+A.type+" -> "+JSON.stringify(A.text))}S=A}),C}function d(k,O,E){let S=O.children.filter(D=>D.type=="SequenceOrDifference").map(D=>h(k,D,E)),C={name:E,bnf:S},A=null;S.forEach(D=>{A=A||D.recover,delete D.recover}),E.indexOf("%")==0&&(C.fragment=!0),A&&(C.recover=A),k.push(C)}function m(k,O=r.defaultParser){let E=O.getAST(k);if(!E)throw new Error("Could not parse "+k);if(E.errors&&E.errors.length)throw E.errors[0];let S=[];return E.children.filter(C=>C.type=="Production").map(C=>{let A=C.children.filter(D=>D.type=="NCName")[0].text;d(S,C,A)}),S}r.getRules=m;function p(k,O=r.defaultParser){return m(k.join(""),O)}r.Transform=p;class y extends Jn.Parser{constructor(O,E){const S=E&&E.debugRulesParser===!0?new Jn.Parser(r.RULES,{debug:!0}):r.defaultParser;super(m(O,S),E)}emitSource(){return a(this)}}r.Parser=y})(Fl||(Fl={}));var oS=lh.default=Fl;const aS="[^?/{}*,()#]+",uS=` +root ::= ("#" recursion | recursion | (query | pattern) recursion* | "#" SEP? | SEP) +recursion ::= (SEP query | pattern)* + +query ::= (ESC escaped ESC | property | all | any | regex) typecheck? lookahead? +property ::= ${aS} +regex ::= "{" [^}]+ "}" +SEP ::= "/" +all ::= "**" +any ::= "*" + +typecheck ::= "?:" ("value" | "boolean" | "string" | "number" | "object" | "array") +lookahead ::= "?" expression ((andExpr | orExpr) expression)* +andExpr ::= S? "&&" S? +orExpr ::= S? "||" S? + +expression ::= (exprProperty | ESC escaped ESC) ((isnot | is) (exprProperty | regex | ESC escaped ESC))* +exprProperty ::= [a-zA-Z0-9-_ $]+ +escaped ::= [^"]+ +is ::= ":" +isnot ::= ":!" +ESC ::= '"' + +pattern ::= S? "(" (SEP query | pattern (orPattern? pattern)*)* ")" quantifier? S? lookahead? +quantifier ::= "+" | "*" | [0-9]+ +orPattern ::= S? "," S? + +S ::= [ ]* +`,fS=new oS.Parser(uS),cS=r=>fS.getAST(r),ht=0,zn=3,fi=(r,e)=>`${r}/${e}`,dh=Object.prototype.toString,dS=/Object|Array/,zl=r=>dS.test(dh.call(r)),hS=r=>dh.call(r).match(/\s([^\]]+)\]/).pop().toLowerCase();function hh(r){return new RegExp(r.text.replace(/(^{|}$)/g,""))}function mS(r,e){Array.isArray(r)?r.forEach(e):Object.prototype.toString.call(r)==="[object Object]"&&Object.keys(r).forEach(function(t){e(r[t],t,r)})}function Ef(r){return Array.isArray(r)?r.map(function(e,t){return`${t}`}):Object.prototype.toString.call(r)==="[object Object]"?Object.keys(r):[]}const nn={mem:[],get(r,e){const t=r[ht][e];if(!nn.mem.includes(t))return zl(t)&&nn.mem.push(t),[t,e,r[ht],fi(r[zn],e)]},reset(){nn.mem.length=0}},Vl={any(r,e){const t=e[ht];return Ef(t).map(n=>[t[n],n,t,fi(e[zn],n)])},all(r,e){const t=[e];return mS(e[ht],(n,i)=>{const s=nn.get(e,i);s&&t.push(...Vl.all(r,s))}),t},regex(r,e){const t=hh(r),n=e[ht];return Ef(n).filter(i=>t.test(i)).map(i=>[n[i],i,n,fi(e[zn],i)])}},ci={escaped:(r,e)=>ci.property(r,e),property:(r,e)=>{const t=r.text;if(e[ht]&&e[ht][t]!==void 0)return[e[ht][t],t,e[ht],fi(e[zn],t)]},typecheck:(r,e)=>{const t=r.text.replace(/^\?:/,"");if(t==="value")return zl(e[ht])?void 0:e;if(hS(e[ht])===t)return e},lookahead:(r,e)=>{let t=!0,n=!1;return r.children.forEach(i=>{if(i.type==="expression"){const s=ci.expression(i,e)!==void 0;t=n===!0?t||s:t&&s}else n=i.type==="orExpr"}),t?e:void 0},expression:(r,e)=>{const t=r.children[0].text,n=r.children[1],i=r.children[2],s=e[ht];if(zl(s)!==!1)return pS(s[t],n,i)?e:void 0}};function pS(r,e,t){if(e===void 0)return r!==void 0;let n;const i=`${r}`;return t.type==="regex"?n=hh(t).test(i):n=i===t.text,e.type==="isnot"&&(n=n===!1&&r!==void 0),n}function gS(r,e,t,n){const i=[];for(let s=0,l=e.length;s{if(Vl[i.type])n=gS(Vl[i.type],n,i,t);else if(ci[i.type])n=bS(ci[i.type],n,i,t);else throw new Error(`Unknown filter ${i.type}`)}),n}function yS(r,e,t){const n=[];let i=r;return e.children.forEach(s=>{if(s.type==="orPattern"){n.push(...i),i=r;return}i=Os(i,s,t)}),n.push(...i),n}function vS(r){if(r==null)return 1;if(r==="*"||r==="+")return 1/0;const e=parseInt(r);return isNaN(e)?1:e}function kS(r,e,t){const n=[],i=e.children.find(a=>a.type==="quantifier"),s=vS(i&&i.text);let l=r;i&&i.text==="*"&&n.push(...l);let o=0;for(;l.length>0&&on=Os(n,i,t)),n}function Os(r,e,t){let n;return e.type==="query"?n=_S(r,e,t):e.type==="pattern"?n=kS(r,e,t):n=ES(r,e,t),nn.reset(),nn.mem.push(r),n}function SS(r,e){return nn.reset(),nn.mem.push(r),Os([[r,null,null,"#"]],e)}const Sf={value:r=>r.map(e=>e[ht]),pointer:r=>r.map(e=>e[zn]),all:r=>r,map:r=>{const e={};return r.forEach(t=>e[t[zn]]=t[ht]),e}};var yn;(function(r){r.POINTER="pointer",r.VALUE="value",r.ALL="all",r.MAP="map"})(yn||(yn={}));_r.POINTER=yn.POINTER;_r.VALUE=yn.VALUE;_r.ALL=yn.ALL;_r.MAP=yn.MAP;function _r(r,e,t=yn.VALUE){if(e==null)return[];e=e.replace(/(\/$)/g,""),e===""&&(e="#");const n=cS(e);if(n==null)throw new Error(`empty ast for '${e}'`);if(n.rest!=="")throw new Error(`Failed parsing queryString from: '${n.rest}'`);const i=SS(r,n);return typeof t=="function"?i.map(s=>t(...s)):Sf[t]?Sf[t](i):i}var di;(function(r){r.REPLACE_ITEMS="replace",r.INSERT_ITEMS="insert"})(di||(di={}));di.REPLACE_ITEMS;di.INSERT_ITEMS;const Ft={$ref:{type:!1},allOf:{type:!1,definitions:["allOf/*"]},anyOf:{type:!1,definitions:["anyOf/*"]},array:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","items","items/*","additionalItems"],validationKeywords:["minItems","maxItems","uniqueItems"],keywords:["items","additionalItems","minItems","maxItems","uniqueItems"]},boolean:{type:!0},enum:{type:!1},integer:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},not:{type:!1,definitions:["not"]},number:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},null:{type:!0},object:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","properties/*","additionalProperties","patternProperties/*","dependencies/*"],validationKeywords:["minProperties","maxProperties","required"],keywords:["properties","additionalProperties","patternProperties","dependencies","minProperties","maxProperties","required"]},oneOf:{type:!1,definitions:["oneOf/*"]},string:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minLength","maxLength","pattern"]}},OS=r=>Object.prototype.toString.call(r)==="[object Object]",wS=Object.keys(Ft).filter(r=>Ft[r].type===!1),Of=Object.prototype.hasOwnProperty;function wf(r){if(OS(r)===!1)return;if(r.enum)return"enum";if(Ft[r.type]||Array.isArray(r.type))return r.type;const e=wS.filter(t=>r[t]);if(e.length===1)return e[0];if(e.length===0){for(let t=0,n=Ft.object.keywords.length;tObject.prototype.toString.call(r)==="[object Object]";function TS(r){const e=[],t=wf(r);if(t==null)return e;let n;if(Array.isArray(t)){n={};for(let i=0,s=t.length;i{_r(r,i,(s,l,o,a)=>{AS(s)&&wf(s)&&e.push({pointer:or.join(or.split(a),!1),def:s})})}),e}const PS=r=>Object.prototype.toString.call(r)==="[object Object]";function CS(r,e){if(this.callback(r,e)===!0)return;TS(r).forEach(n=>this.nextTypeDefs(n.def,or.join(e,n.pointer,!1)))}function Pr(r,e,t,n="definitions"){const i=e[n];Object.keys(i).forEach(s=>{if(i[s]===!1||PS(i[s])){r.nextTypeDefs(i[s],or.join(t,n,s,!1));return}})}function mh(r,e,t="#"){const n={callback:e,nextTypeDefs:CS};n.nextTypeDefs(r,t),r.definitions!=null&&(n.callback=(i,s)=>{e(i,s),i.definitions!=null&&Pr(n,i,s)},Pr(n,r,t)),r.$defs!=null&&(n.callback=(i,s)=>{e(i,s),i.definitions!=null&&Pr(n,i,s)},Pr(n,r,t,"$defs"))}const IS=/(#|\/)+$/,Cr=/#$/,RS=/^[^:]+:\/\/[^/]+\//,DS=/\/[^/]*$/,MS=/#.*$/;function Af(r,e){return r==null&&e==null?"#":e==null?r.replace(Cr,""):r==null?e.replace(Cr,""):e[0]==="#"?`${r.replace(MS,"")}${e.replace(IS,"")}`:RS.test(e)?e.replace(Cr,""):`${r.replace(DS,"")}/${e.replace(Cr,"")}`}const Zn=/(#|\/)+$/g,NS=["",null,"#"];function jS(r){if(NS.includes(r))return[];if(r=r.replace(Zn,""),r.indexOf("#")===-1)return[r.replace(Zn,"")];if(r.indexOf("#")===0)return[r.replace(Zn,"")];const e=r.split("#");return e[0]=e[0].replace(Zn,""),e[1]=`#${e[1].replace(Zn,"")}`,e}const LS=/(#|\/)+$/g,qS=r=>ze(r)==="object";function Yt(r,e,t){if(qS(t)&&(t=t.__ref||t.$ref),t==null)return e;let n;const i=t.replace(LS,"");if(r.remotes[i])return n=r.remotes[i],n&&n.$ref?Yt(r,e,n.$ref):n;if(r.ids[t])return n=Dn.get(e,r.ids[t]),n&&n.$ref?Yt(r,e,n.$ref):n;const s=jS(t);if(s.length===0)return e;if(s.length===1){if(t=s[0],r.remotes[t])return n=r.remotes[t],Yt(r,e,n.$ref);if(r.ids[t])return n=Dn.get(e,r.ids[t]),n&&n.$ref?Yt(r,e,n.$ref):n}if(s.length===2){const l=s[0];if(t=s[1],r.remotes[l])return r.remotes[l].getRef?r.remotes[l].getRef(t):Yt(r,r.remotes[l],t);if(r.ids[l])return Yt(r,Dn.get(e,r.ids[l]),t)}return n=Dn.get(e,r.ids[t]||t),n&&n.$ref?Yt(r,e,n.$ref):n}const Tf="__compiled",Pf="__ref",BS="getRef",FS="getRoot",zS=/(#|\/)+$/g;function VS(r,e,t=e,n=!1){if(e===!0||e===!1||e===void 0||e[Tf]!==void 0)return e;const i={ids:{},remotes:r.remotes},s=JSON.stringify(e),l=JSON.parse(s);if(Object.defineProperty(l,Tf,{enumerable:!1,value:!0}),Object.defineProperty(l,BS,{enumerable:!1,value:Yt.bind(null,i,l)}),n===!1&&s.includes("$ref")===!1)return l;l!==t&&Object.defineProperty(l,"$defs",{enumerable:!0,value:Object.assign({},t.definitions,t.$defs,l.definitions,l.$defs)});const o={},a=()=>l;return mh(l,(u,f)=>{var c;if(u.$id){if(u.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(f)){const y=f.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),k=Dn.get(l,y);u.$id=(c=k.$id)!==null&&c!==void 0?c:u.$id}i.ids[u.$id.replace(zS,"")]=f}f=`#${f}`.replace(/##+/,"#");const h=f.replace(/\/[^/]+$/,""),d=f.replace(/\/[^/]+\/[^/]+$/,""),m=o[h]||o[d],p=Af(m,u.$id);o[f]=p,i.ids[p]==null&&(i.ids[p]=f),u.$ref&&!u[Pf]&&(Object.defineProperty(u,Pf,{enumerable:!1,value:Af(p,u.$ref)}),Object.defineProperty(u,FS,{enumerable:!1,value:a}))}),l}function US(r,e,t,n=r.rootSchema,i="#"){n=r.resolveRef(n),t(n,e,i);const s=ze(e);s==="object"?Object.keys(e).forEach(l=>{const o=r.step(l,n,e,i),a=e[l];r.each(a,t,o,`${i}/${l}`)}):s==="array"&&e.forEach((l,o)=>{const a=r.step(o,n,e,i);r.each(l,t,a,`${i}/${o}`)})}const Ue={additionalItemsError:Oe("AdditionalItemsError"),additionalPropertiesError:Oe("AdditionalPropertiesError"),anyOfError:Oe("AnyOfError"),allOfError:Oe("AllOfError"),constError:Oe("ConstError"),containsError:Oe("ContainsError"),containsArrayError:Oe("ContainsArrayError"),containsAnyError:Oe("ContainsAnyError"),enumError:Oe("EnumError"),formatURLError:Oe("FormatURLError"),formatURIError:Oe("FormatURIError"),formatURIReferenceError:Oe("FormatURIReferenceError"),formatURITemplateError:Oe("FormatURITemplateError"),formatDateError:Oe("FormatDateaError"),formatDateTimeError:Oe("FormatDateTimeError"),formatEmailError:Oe("FormatEmailError"),formatHostnameError:Oe("FormatHostnameError"),formatIPV4Error:Oe("FormatIPV4Error"),formatIPV4LeadingZeroError:Oe("FormatIPV4LeadingZeroError"),formatIPV6Error:Oe("FormatIPV6Error"),formatIPV6LeadingZeroError:Oe("FormatIPV6LeadingZeroError"),formatJSONPointerError:Oe("FormatJSONPointerError"),formatRegExError:Oe("FormatRegExError"),formatTimeError:Oe("FormatTimeError"),invalidSchemaError:Oe("InvalidSchemaError"),invalidDataError:Oe("InvalidDataError"),invalidTypeError:Oe("InvalidTypeError"),invalidPropertyNameError:Oe("InvalidPropertyNameError"),maximumError:Oe("MaximumError"),maxItemsError:Oe("MaxItemsError"),maxLengthError:Oe("MaxLengthError"),maxPropertiesError:Oe("MaxPropertiesError"),minimumError:Oe("MinimumError"),minItemsError:Oe("MinItemsError"),minItemsOneError:Oe("MinItemsOneError"),minLengthError:Oe("MinLengthError"),minLengthOneError:Oe("MinLengthOneError"),minPropertiesError:Oe("MinPropertiesError"),missingDependencyError:Oe("MissingDependencyError"),missingOneOfPropertyError:Oe("MissingOneOfPropertyError"),multipleOfError:Oe("MultipleOfError"),multipleOneOfError:Oe("MultipleOneOfError"),noAdditionalPropertiesError:Oe("NoAdditionalPropertiesError"),notError:Oe("NotError"),oneOfError:Oe("OneOfError"),oneOfPropertyError:Oe("OneOfPropertyError"),patternError:Oe("PatternError"),patternPropertiesError:Oe("PatternPropertiesError"),requiredPropertyError:Oe("RequiredPropertyError"),typeError:Oe("TypeError"),undefinedValueError:Oe("UndefinedValueError"),uniqueItemsError:Oe("UniqueItemsError"),unknownPropertyError:Oe("UnknownPropertyError"),valueNotEmptyError:Oe("ValueNotEmptyError")};var ph={exports:{}};(function(r){(function(e){e.exports.is_uri=n,e.exports.is_http_uri=i,e.exports.is_https_uri=s,e.exports.is_web_uri=l,e.exports.isUri=n,e.exports.isHttpUri=i,e.exports.isHttpsUri=s,e.exports.isWebUri=l;var t=function(o){var a=o.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/);return a};function n(o){if(o&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(o)&&!/%[^0-9a-f]/i.test(o)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(o)){var a=[],u="",f="",c="",h="",d="",m="";if(a=t(o),u=a[1],f=a[2],c=a[3],h=a[4],d=a[5],!!(u&&u.length&&c.length>=0)){if(f&&f.length){if(!(c.length===0||/^\//.test(c)))return}else if(/^\/\//.test(c))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(u.toLowerCase()))return m+=u+":",f&&f.length&&(m+="//"+f),m+=c,h&&h.length&&(m+="?"+h),d&&d.length&&(m+="#"+d),m}}}function i(o,a){if(n(o)){var u=[],f="",c="",h="",d="",m="",p="",y="";if(u=t(o),f=u[1],c=u[2],h=u[3],m=u[4],p=u[5],!!f){if(a){if(f.toLowerCase()!="https")return}else if(f.toLowerCase()!="http")return;if(c)return/:(\d+)$/.test(c)&&(d=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),y+=f+":",y+="//"+c,d&&(y+=d),y+=h,m&&m.length&&(y+="?"+m),p&&p.length&&(y+="#"+p),y}}}function s(o){return i(o,!0)}function l(o){return i(o)||s(o)}})(r)})(ph);var HS=ph.exports;const Cf=dr(HS),QS=new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([Zz])|([\\+|\\-]([01][0-9]|2[0-3]):[0-5][0-9]))$"),WS=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,GS=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,KS=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,JS=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ZS=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,YS=[0,31,28,31,30,31,30,31,31,30,31,30,31],XS=/^(?:\/(?:[^~/]|~0|~1)*)*$/,xS=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,$S=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,eO=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,tO={date:(r,e,t,n)=>{if(typeof t!="string")return;const i=t.match(JS);if(!i)return Ue.formatDateTimeError({value:t,pointer:n});const s=+i[1],l=+i[2],o=+i[3],a=s%4===0&&(s%100!==0||s%400===0);if(!(l>=1&&l<=12&&o>=1&&o<=(l==2&&a?29:YS[l])))return Ue.formatDateError({value:t,pointer:n})},"date-time":(r,e,t,n)=>{if(typeof t=="string")return t===""||QS.test(t)?new Date(t).toString()==="Invalid Date"?Ue.formatDateTimeError({value:t,pointer:n}):void 0:Ue.formatDateTimeError({value:t,pointer:n})},email:(r,e,t,n)=>{if(typeof t!="string")return;if(t[0]==='"')return Ue.formatEmailError({value:t,pointer:n});const[i,s,...l]=t.split("@");if(!i||!s||l.length!==0||i.length>64||s.length>253)return Ue.formatEmailError({value:t,pointer:n});if(i[0]==="."||i.endsWith(".")||i.includes(".."))return Ue.formatEmailError({value:t,pointer:n});if(!/^[a-z0-9.-]+$/i.test(s)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(i))return Ue.formatEmailError({value:t,pointer:n});if(!s.split(".").every(o=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(o)))return Ue.formatEmailError({value:t,pointer:n})},hostname:(r,e,t,n)=>{if(typeof t=="string"&&!(t===""||KS.test(t)))return Ue.formatHostnameError({value:t,pointer:n})},ipv4:(r,e,t,n)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return Ue.formatIPV4LeadingZeroError({value:t,pointer:n});if(!(t.length<=15&&WS.test(t)))return Ue.formatIPV4Error({value:t,pointer:n})}},ipv6:(r,e,t,n)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return Ue.formatIPV6LeadingZeroError({value:t,pointer:n});if(!(t.length<=45&&GS.test(t)))return Ue.formatIPV6Error({value:t,pointer:n})}},"json-pointer":(r,e,t,n)=>{if(!(typeof t!="string"||t==="")&&!XS.test(t))return Ue.formatJSONPointerError({value:t,pointer:n})},"relative-json-pointer":(r,e,t,n)=>{if(!(typeof t!="string"||t==="")&&!xS.test(t))return Ue.formatJSONPointerError({value:t,pointer:n})},regex:(r,e,t,n)=>{if(typeof t=="string"&&/\\Z$/.test(t)===!1){try{new RegExp(t);return}catch{}return Ue.formatRegExError({value:t,pointer:n})}if(!(typeof t=="object"||typeof t=="number"||Array.isArray(t)))return Ue.formatRegExError({value:t,pointer:n})},time:(r,e,t,n)=>{if(typeof t!="string")return;const i=t.match(ZS);if(!i)return Ue.formatDateTimeError({value:t,pointer:n});const s=+i[1],l=+i[2],o=+i[3],a=!!i[5];if(!((s<=23&&l<=59&&o<=59||s==23&&l==59&&o==60)&&a))return Ue.formatTimeError({value:t,pointer:n})},uri:(r,e,t,n)=>{if(!(typeof t!="string"||t==="")&&!Cf.isUri(t))return Ue.formatURIError({value:t,pointer:n})},"uri-reference":(r,e,t,n)=>{if(!(typeof t!="string"||t==="")&&!$S.test(t))return Ue.formatURIReferenceError({value:t,pointer:n})},"uri-template":(r,e,t,n)=>{if(!(typeof t!="string"||t==="")&&!eO.test(t))return Ue.formatURITemplateError({value:t,pointer:n})},url:(r,e,t,n)=>{if(!(t===""||Cf.isWebUri(t)))return Ue.formatURLError({value:t,pointer:n})}};function nO(r){switch(ze(r)){case"string":case"array":return r.length===0;case"null":case"undefined":return!0;case"object":return Object.keys(r).length===0;default:return!1}}const rO={addOptionalProps:!0,removeInvalidData:!1};let zt;function xi(r,e){const{$ref:t}=r;return t==null?!0:(zt[e]==null||zt[e][t]==null?0:zt[e][t])0){if(xi(e.anyOf[0],`${n}/anyOf/0`)){const s=$i(r,e.anyOf[0],`${n}/anyOf/0`);i=sr(i,s),i.pointer=e.anyOf[0].$ref||i.pointer}delete i.anyOf}if(Array.isArray(e.allOf)){for(let s=0,l=e.allOf.length;sr&&typeof r=="object";function Bt(r,e,t,n,i){if(t==null)throw new Error(`getTemplate: missing schema for data: ${JSON.stringify(e)}`);if(n==null)throw new Error("Missing pointer");let s=gh(r,t,e,n);if(!If(s))return;if(n=s.pointer,s!=null&&s.const)return s.const;if(Array.isArray(s.oneOf))if(nO(e)){const u=s.oneOf[0].type||s.type||s.const&&typeof s.const||ze(e);s={...s.oneOf[0],type:u}}else{const u=Ss(r,e,s);if(st(u)){if(e!=null&&i.removeInvalidData!==!0)return e;s=s.oneOf[0],e=void 0}else s=u}if(!If(s)||s.type==null)return;const l=Array.isArray(s.type)?lO(s.type,e,s.default):s.type,o=ze(e);return e!=null&&o!==l&&!(o==="number"&&l==="integer")&&(e=iO(l,e)),Rf[l]==null?i.removeInvalidData?void 0:e:Rf[l](r,s,e,n,i)}function lO(r,e,t){if(e==null){if(t!=null){const i=ze(t);if(r.includes(i))return i}return r[0]}const n=ze(e);return r.includes(n)?n:r[0]}const Rf={null:(r,e,t)=>Yn(e,t,null),string:(r,e,t)=>Yn(e,t,""),number:(r,e,t)=>Yn(e,t,0),integer:(r,e,t)=>Yn(e,t,0),boolean:(r,e,t)=>Yn(e,t,!1),object:(r,e,t,n,i)=>{var s;const l=e.default===void 0?{}:e.default,o={},a=(s=e.required)!==null&&s!==void 0?s:[];if(e.properties&&Object.keys(e.properties).forEach(u=>{const f=t==null||t[u]==null?l[u]:t[u],c=a.includes(u);(f!=null||c||i.addOptionalProps)&&(o[u]=Bt(r,f,e.properties[u],`${n}/properties/${u}`,i))}),e.dependencies&&Object.keys(e.dependencies).forEach(u=>{if(o[u]===void 0)return;const f=e.dependencies[u];if(Array.isArray(f)){f.forEach(h=>{o[h]=Bt(r,o[h],e.properties[h],`${n}/properties/${h}`,i)});return}if(ze(f)!=="object")return;const c=Bt(r,t,{...f,type:"object"},`${n}/dependencies/${u}`,i);c&&!st(c)&&Object.assign(o,c)}),t&&Object.keys(t).forEach(u=>o[u]==null&&(o[u]=t[u])),e.if&&(e.then||e.else)){const u=r.isValid(o,e.if);if(u&&e.then){const f=r.getTemplate(o,{type:"object",...e.then},i);Object.assign(o,f)}else if(!u&&e.else){const f=r.getTemplate(o,{type:"object",...e.else},i);Object.assign(o,f)}}return o},array:(r,e,t,n,i)=>{var s,l,o;const a=e.default===void 0?[]:e.default;e.minItems=e.minItems||0;const u=t||[];if(e.items==null)return u;if(Array.isArray(e.items)){for(let c=0,h=Math.max((s=e.minItems)!==null&&s!==void 0?s:0,(o=(l=e.items)===null||l===void 0?void 0:l.length)!==null&&o!==void 0?o:0);c0){const c=Math.max(e.minItems,u.length);for(let h=0;h(zt={mi:{}},Bt(r,e,t,"#",n));function oO(r,e,t=r.rootSchema,n="#"){return r.validate(e,t,n).length===0}function Ul(r,e){const t=typeof r;if(t!==typeof e)return!1;if(Array.isArray(r)){if(!Array.isArray(e))return!1;const n=r.length;if(n!==e.length)return!1;for(let i=0;i=55296&&i<=56319&&t!(r[e]===void 0||!aO.call(r,e)),uO={additionalProperties:(r,e,t,n)=>{if(e.additionalProperties===!0||e.additionalProperties==null||ze(e.patternProperties)==="object"&&e.additionalProperties===!1)return;const i=[];let s=Object.keys(t).filter(o=>br.propertyBlacklist.includes(o)===!1);const l=Object.keys(e.properties||{});if(ze(e.patternProperties)==="object"){const o=Object.keys(e.patternProperties).map(a=>new RegExp(a));s=s.filter(a=>{for(let u=0;u{if(Array.isArray(e.allOf)===!1)return;const i=[];return e.allOf.forEach(s=>{i.push(...r.validate(t,s,n))}),i},anyOf:(r,e,t,n)=>{if(Array.isArray(e.anyOf)!==!1){for(let i=0;i{if(ze(e.dependencies)!=="object")return;const i=[];return Object.keys(t).forEach(s=>{if(e.dependencies[s]===void 0||e.dependencies[s]===!0)return;if(e.dependencies[s]===!1){i.push(r.errors.missingDependencyError({pointer:n}));return}let l;const o=ze(e.dependencies[s]);if(o==="array")l=e.dependencies[s].filter(a=>t[a]===void 0).map(a=>r.errors.missingDependencyError({missingProperty:a,pointer:n}));else if(o==="object")l=r.validate(t,e.dependencies[s],n);else throw new Error(`Invalid dependency definition for ${n}/${s}. Must be list or schema`);i.push(...l)}),i.length>0?i:void 0},enum:(r,e,t,n)=>{const i=ze(t);if(i==="object"||i==="array"){const s=JSON.stringify(t);for(let l=0;l{if(r.validateFormat[e.format])return r.validateFormat[e.format](r,e,t,n)},items:(r,e,t,n)=>{if(e.items===!1)return Array.isArray(t)&&t.length===0?void 0:r.errors.invalidDataError({pointer:n,value:t});const i=[];for(let s=0;s{if(!isNaN(e.maximum)){if(e.maximum&&e.maximum{if(!isNaN(e.maxItems)&&e.maxItems{if(isNaN(e.maxLength))return;const i=Df(t).length;if(e.maxLength{const i=Object.keys(t).length;if(isNaN(e.maxProperties)===!1&&e.maxProperties{if(isNaN(e.minLength))return;const i=Df(t).length;if(e.minLength>i)return e.minLength===1?r.errors.minLengthOneError({minLength:e.minLength,length:i,pointer:n}):r.errors.minLengthError({minLength:e.minLength,length:i,pointer:n})},minimum:(r,e,t,n)=>{if(!isNaN(e.minimum)){if(e.minimum>t)return r.errors.minimumError({minimum:e.minimum,length:t,pointer:n});if(e.exclusiveMinimum===!0&&e.minimum===t)return r.errors.minimumError({minimum:e.minimum,length:t,pointer:n})}},minItems:(r,e,t,n)=>{if(!isNaN(e.minItems)&&e.minItems>t.length)return e.minItems===1?r.errors.minItemsOneError({minItems:e.minItems,length:t.length,pointer:n}):r.errors.minItemsError({minItems:e.minItems,length:t.length,pointer:n})},minProperties:(r,e,t,n)=>{if(isNaN(e.minProperties))return;const i=Object.keys(t).length;if(e.minProperties>i)return r.errors.minPropertiesError({minProperties:e.minProperties,length:i,pointer:n})},multipleOf:(r,e,t,n)=>{if(!isNaN(e.multipleOf)&&t*el%(e.multipleOf*el)/el!==0)return r.errors.multipleOfError({multipleOf:e.multipleOf,value:t,pointer:n})},not:(r,e,t,n)=>{const i=[];return r.validate(t,e.not,n).length===0&&i.push(r.errors.notError({value:t,not:e.not,pointer:n})),i},oneOf:(r,e,t,n)=>{if(Array.isArray(e.oneOf)!==!1&&(e=r.resolveOneOf(t,e,n),st(e)))return e},pattern:(r,e,t,n)=>{if(new RegExp(e.pattern,"u").test(t)===!1)return r.errors.patternError({pattern:e.pattern,description:e.patternExample||e.pattern,received:t,pointer:n})},patternProperties:(r,e,t,n)=>{const i=e.properties||{},s=e.patternProperties;if(ze(s)!=="object")return;const l=[],o=Object.keys(t),a=Object.keys(s).map(u=>({regex:new RegExp(u),patternSchema:s[u]}));return o.forEach(u=>{let f=!1;for(let c=0,h=a.length;c0&&l.push(...d)}i[u]||f===!1&&e.additionalProperties===!1&&l.push(r.errors.patternPropertiesError({key:u,pointer:n,patterns:Object.keys(s).join(",")}))}),l},properties:(r,e,t,n)=>{const i=[],s=Object.keys(e.properties||{});for(let l=0;l{const i=[],s=Object.keys(e.properties||{});for(let l=0;l{if(Array.isArray(e.required)!==!1)return e.required.map(i=>{if(!Mf(t,i))return r.errors.requiredPropertyError({key:i,pointer:n})})},requiredNotEmpty:(r,e,t,n)=>{if(Array.isArray(e.required)!==!1)return e.required.map(i=>{if(t[i]==null||t[i]==="")return r.errors.valueNotEmptyError({property:i,pointer:`${n}/${i}`})})},uniqueItems:(r,e,t,n)=>{if((Array.isArray(t)&&e.uniqueItems)===!1)return;const i=[];return t.forEach((s,l)=>{for(let o=l+1;o{if(e.contains===!1)return r.errors.containsArrayError({pointer:n,value:t});if(e.contains===!0)return Array.isArray(t)&&t.length===0?r.errors.containsAnyError({pointer:n}):void 0;if(ze(e.contains)==="object"){for(let i=0;i{if(!isNaN(e.exclusiveMaximum)&&e.exclusiveMaximum<=t)return r.errors.maximumError({maximum:e.exclusiveMaximum,length:t,pointer:n})},exclusiveMinimum:(r,e,t,n)=>{if(!isNaN(e.exclusiveMinimum)&&e.exclusiveMinimum>=t)return r.errors.minimumError({minimum:e.exclusiveMinimum,length:t,pointer:n})},if:(r,e,t,n)=>{if(e.if==null)return;const i=r.validate(t,e.if,n);if(i.length===0&&e.then)return r.validate(t,e.then,n);if(i.length!==0&&e.else)return r.validate(t,e.else,n)},maximum:(r,e,t,n)=>{if(!isNaN(e.maximum)&&e.maximum&&e.maximum{if(!isNaN(e.minimum)&&e.minimum>t)return r.errors.minimumError({minimum:e.minimum,length:t,pointer:n})},patternProperties:(r,e,t,n)=>{const i=e.properties||{},s=e.patternProperties;if(ze(s)!=="object")return;const l=[],o=Object.keys(t),a=Object.keys(s).map(u=>({regex:new RegExp(u),patternSchema:s[u]}));return o.forEach(u=>{let f=!1;for(let c=0,h=a.length;c0&&l.push(...d)}i[u]||f===!1&&e.additionalProperties===!1&&l.push(r.errors.patternPropertiesError({key:u,pointer:n,patterns:Object.keys(s).join(",")}))}),l},propertyNames:(r,e,t,n)=>{if(e.propertyNames===!1)return Object.keys(t).length===0?void 0:r.errors.invalidPropertyNameError({property:Object.keys(t),pointer:n,value:t});if(e.propertyNames===!0||ze(e.propertyNames)!=="object")return;const i=[],s=Object.keys(t),l={...e.propertyNames,type:"string"};return s.forEach(o=>{const a=r.validate(o,l,`${n}/${o}`);a.length>0&&i.push(r.errors.invalidPropertyNameError({property:o,pointer:n,validationError:a[0],value:t[o]}))}),i}};function cO(r,e,t=r.rootSchema,n="#"){let i=!1,s=Es(t);for(let l=0;le.properties[t]=tn(r[t]))),e.type==="array"&&r.length===1?e.items=tn(r[0]):e.type==="array"&&(e.items=r.map(tn)),e}function dO(r,e,t=r.rootSchema){const n=r.step(e,t,{},"#");return st(n)?n.code==="one-of-error"?n.data.oneOf.map(i=>r.resolveRef(i)):n:[n]}const Nf={array:(r,e,t,n,i)=>{const s=ze(t.items);if(s==="object")return Array.isArray(t.items.oneOf)?r.resolveOneOf(n[e],t.items,i):Array.isArray(t.items.anyOf)?r.resolveAnyOf(n[e],t.items,i):Array.isArray(t.items.allOf)?r.resolveAllOf(n[e],t.items,i):r.resolveRef(t.items);if(s==="array"){if(t.items[e]===!0)return tn(n[e]);if(t.items[e]===!1)return Ue.invalidDataError({key:e,value:n[e],pointer:i});if(t.items[e])return r.resolveRef(t.items[e]);if(t.additionalItems===!1)return Ue.additionalItemsError({key:e,value:n[e],pointer:i});if(t.additionalItems===!0||t.additionalItems===void 0)return tn(n[e]);if(ze(t.additionalItems)==="object")return t.additionalItems;throw new Error(`Invalid schema ${JSON.stringify(t,null,4)} for ${JSON.stringify(n,null,4)}`)}return t.additionalItems!==!1&&n[e]?tn(n[e]):new Error(`Invalid array schema for ${e} at ${i}`)},object:(r,e,t,n,i)=>{if(Array.isArray(t.oneOf)){const o=r.resolveOneOf(n,t,i);if(t=sr(t,o),st(t))return t}if(Array.isArray(t.anyOf)&&(t=r.resolveAnyOf(n,t,i),st(t))||Array.isArray(t.allOf)&&(t=r.resolveAllOf(n,t,i),st(t)))return t;let s;if(t.properties&&t.properties[e]!==void 0){if(s=r.resolveRef(t.properties[e]),st(s))return s;if(s&&Array.isArray(s.oneOf)){let o=r.resolveOneOf(n[e],s,`${i}/${e}`);const a=s.oneOf.findIndex(u=>u===o);return o.variableSchema=!0,o.oneOfIndex=a,o.oneOfSchema=s,o}if(s)return s}const{dependencies:l}=t;if(ze(l)==="object"){const o=Object.keys(l).filter(a=>ze(l[a])==="object");for(let a=0,u=o.length;ar.typeKeywords.array.filter(i=>e&&e[i]!=null).map(i=>r.validateKeyword[i](r,e,t,n)),object:(r,e,t,n)=>r.typeKeywords.object.filter(i=>e&&e[i]!=null).map(i=>r.validateKeyword[i](r,e,t,n)),string:(r,e,t,n)=>r.typeKeywords.string.filter(i=>e&&e[i]!=null).map(i=>r.validateKeyword[i](r,e,t,n)),integer:(r,e,t,n)=>r.typeKeywords.number.filter(i=>e&&e[i]!=null).map(i=>r.validateKeyword[i](r,e,t,n)),number:(r,e,t,n)=>r.typeKeywords.number.filter(i=>e&&e[i]!=null).map(i=>r.validateKeyword[i](r,e,t,n)),boolean:(r,e,t,n)=>r.typeKeywords.boolean.filter(i=>e&&e[i]!=null).map(i=>r.validateKeyword[i](r,e,t,n)),null:(r,e,t,n)=>r.typeKeywords.null.filter(i=>e&&e[i]!=null).map(i=>r.validateKeyword[i](r,e,t,n))};var mO=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!r(e[i],t[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){var l=s[i];if(!r(e[l],t[l]))return!1}return!0}return e!==e&&t!==t};const pO=dr(mO);function gO(r,e){const t=ze(r);return t==="number"&&(e==="integer"||Array.isArray(e)&&e.includes("integer"))?Number.isInteger(r)||isNaN(r)?"integer":"number":t}function bO(r,e,t=r.rootSchema,n="#"){if(t=r.resolveRef(t),ze(t)==="boolean")return t?[]:[r.errors.invalidDataError({value:e,pointer:n})];if(st(t))return[t];if(t.const!==void 0)return pO(t.const,e)?[]:[r.errors.constError({value:e,expected:t.const,pointer:n})];const i=gO(e,t.type),s=t.type||i;return i!==s&&(!Array.isArray(s)||!s.includes(i))?[r.errors.typeError({received:i,expected:s,value:e,pointer:n})]:r.validateType[i]==null?[r.errors.invalidTypeError({receivedType:i,pointer:n})]:ir(r.validateType[i](r,t,e,n)).filter(ui)}const bh={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:fO,validateType:hO,validateFormat:tO,errors:Ue,addRemoteSchema:iS,compileSchema:VS,createSchemaOf:tn,each:US,eachSchema:mh,getChildSchemaSelection:dO,getSchema:nS,getTemplate:sO,isValid:oO,resolveAllOf:XE,resolveAnyOf:cO,resolveOneOf:ME,resolveRef:$E,step:Vr,validate:bO};class _O extends rS{constructor(e,t={}){super(sr(bh,t),e)}}({...bh});function jf(r,e,t){const n=r.slice();return n[10]=e[t],n[11]=e,n[12]=t,n}function Lf(r){let e,t,n=r[12]+1+"",i,s,l,o,a,u,f,c,h;function d(y){r[7](y,r[12])}let m={path:r[1]+"/"+r[12],schema:r[3],rootValue:r[2],validationErrors:r[4],customComponents:r[5],required:!0};r[0][r[12]]!==void 0&&(m.value=r[0][r[12]]),o=new ws({props:m}),qe.push(()=>Ke(o,"value",d));function p(){return r[8](r[12])}return c=new jn({props:{size:"small",kind:"ghost",icon:Lc,expressive:!1,iconDescription:"Remove",tooltipPosition:"top",tooltipAlignment:"end"}}),c.$on("click",p),{c(){e=j("div"),t=j("div"),i=ce(n),s=$(),l=j("div"),U(o.$$.fragment),u=$(),f=j("div"),U(c.$$.fragment),this.h()},l(y){e=L(y,"DIV",{class:!0});var k=R(e);t=L(k,"DIV",{class:!0});var O=R(t);i=de(O,n),O.forEach(g),s=ee(k),l=L(k,"DIV",{class:!0});var E=R(l);J(o.$$.fragment,E),E.forEach(g),u=ee(k),f=L(k,"DIV",{class:!0});var S=R(f);J(c.$$.fragment,S),S.forEach(g),k.forEach(g),this.h()},h(){T(t,"class","mt-3 w-8 shrink-0 text-lg"),T(l,"class","flex w-full grow flex-col"),T(f,"class","mt-3"),T(e,"class","flex w-full flex-row")},m(y,k){P(y,e,k),I(e,t),I(t,i),I(e,s),I(e,l),H(o,l,null),I(e,u),I(e,f),H(c,f,null),h=!0},p(y,k){r=y;const O={};k&2&&(O.path=r[1]+"/"+r[12]),k&8&&(O.schema=r[3]),k&4&&(O.rootValue=r[2]),k&16&&(O.validationErrors=r[4]),k&32&&(O.customComponents=r[5]),!a&&k&1&&(a=!0,O.value=r[0][r[12]],Je(()=>a=!1)),o.$set(O)},i(y){h||(_(o.$$.fragment,y),_(c.$$.fragment,y),h=!0)},o(y){v(o.$$.fragment,y),v(c.$$.fragment,y),h=!1},d(y){y&&g(e),Q(o),Q(c)}}}function yO(r){let e,t,n,i,s,l,o,a,u=r[0]||[],f=[];for(let h=0;hv(f[h],1,1,()=>{f[h]=null});return{c(){e=j("div");for(let h=0;h0),T(e,"class","bx--form-item flex flex-col")},m(h,d){P(h,e,d);for(let m=0;m0)},i(h){if(!l){for(let d=0;d{s.splice(d,1),t(0,s)},h=()=>{t(0,s=[...s||[],n])};return r.$$set=d=>{"path"in d&&t(1,i=d.path),"value"in d&&t(0,s=d.value),"rootValue"in d&&t(2,l=d.rootValue),"schema"in d&&t(3,o=d.schema),"validationErrors"in d&&t(4,a=d.validationErrors),"customComponents"in d&&t(5,u=d.customComponents)},r.$$.update=()=>{r.$$.dirty&11&&t(6,n=o.getTemplate(void 0,o.getSchema(i+"/0",s)))},[s,i,l,o,a,u,n,f,c,h]}class kO extends me{constructor(e){super(),pe(this,e,vO,yO,he,{path:1,value:0,rootValue:2,schema:3,validationErrors:4,customComponents:5})}}function qf(r,e,t){const n=r.slice();return n[25]=e[t],n[26]=e,n[27]=t,n}function Bf(r,e,t){const n=r.slice();return n[21]=e[t],n}function EO(r){const e=r.slice(),t=Object.keys(e[11].properties??{});return e[24]=t,e}function Ff(r){let e,t,n,i,s,l,o;const a=[OO,SO],u=[];function f(p,y){return p[11].type==="object"?0:1}e=f(r),t=u[e]=a[e](r);const c=[MO,DO,RO,IO,CO,PO,TO,AO,wO],h=[];function d(p,y){return p[8][p[2]]?0:p[11].type=="error"?1:p[11].enum?2:p[11].type=="string"?3:p[11].type=="number"||p[11].type=="integer"?4:p[11].type=="boolean"?5:p[11].type=="array"?6:p[11].type=="object"?7:8}function m(p,y){return y===7?EO(p):p}return i=d(r),s=h[i]=c[i](m(r,i)),{c(){t.c(),n=$(),s.c(),l=G()},l(p){t.l(p),n=ee(p),s.l(p),l=G()},m(p,y){u[e].m(p,y),P(p,n,y),h[i].m(p,y),P(p,l,y),o=!0},p(p,y){let k=e;e=f(p),e===k?u[e].p(p,y):(ne(),v(u[k],1,1,()=>{u[k]=null}),re(),t=u[e],t?t.p(p,y):(t=u[e]=a[e](p),t.c()),_(t,1),t.m(n.parentNode,n));let O=i;i=d(p),i===O?h[i].p(m(p,i),y):(ne(),v(h[O],1,1,()=>{h[O]=null}),re(),s=h[i],s?s.p(m(p,i),y):(s=h[i]=c[i](m(p,i)),s.c()),_(s,1),s.m(l.parentNode,l))},i(p){o||(_(t),_(s),o=!0)},o(p){v(t),v(s),o=!1},d(p){u[e].d(p),p&&g(n),h[i].d(p),p&&g(l)}}}function SO(r){let e,t,n,i,s=r[11].description&&r[6]&&zf(r);return{c(){e=j("div"),t=ce(r[13]),n=$(),s&&s.c(),i=G(),this.h()},l(l){e=L(l,"DIV",{class:!0});var o=R(e);t=de(o,r[13]),o.forEach(g),n=ee(l),s&&s.l(l),i=G(),this.h()},h(){T(e,"class","label text-s mb-2 font-medium text-gray-700")},m(l,o){P(l,e,o),I(e,t),P(l,n,o),s&&s.m(l,o),P(l,i,o)},p(l,o){o&8192&&ye(t,l[13]),l[11].description&&l[6]?s?s.p(l,o):(s=zf(l),s.c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},i:ie,o:ie,d(l){l&&g(e),l&&g(n),s&&s.d(l),l&&g(i)}}}function OO(r){let e,t,n=r[11].description&&r[6]&&Vf(r);return{c(){n&&n.c(),e=G()},l(i){n&&n.l(i),e=G()},m(i,s){n&&n.m(i,s),P(i,e,s),t=!0},p(i,s){i[11].description&&i[6]?n?(n.p(i,s),s&2112&&_(n,1)):(n=Vf(i),n.c(),_(n,1),n.m(e.parentNode,e)):n&&(ne(),v(n,1,1,()=>{n=null}),re())},i(i){t||(_(n),t=!0)},o(i){v(n),t=!1},d(i){n&&n.d(i),i&&g(e)}}}function zf(r){let e,t=r[11].description+"",n;return{c(){e=j("div"),n=ce(t),this.h()},l(i){e=L(i,"DIV",{class:!0});var s=R(e);n=de(s,t),s.forEach(g),this.h()},h(){T(e,"class","bx--label pb-2 text-xs text-gray-500")},m(i,s){P(i,e,s),I(e,n)},p(i,s){s&2048&&t!==(t=i[11].description+"")&&ye(n,t)},d(i){i&&g(e)}}}function Vf(r){let e,t,n;return t=new eh({props:{source:r[11].description}}),{c(){e=j("div"),U(t.$$.fragment),this.h()},l(i){e=L(i,"DIV",{class:!0});var s=R(e);J(t.$$.fragment,s),s.forEach(g),this.h()},h(){T(e,"class","description mb-4")},m(i,s){P(i,e,s),H(t,e,null),n=!0},p(i,s){const l={};s&2048&&(l.source=i[11].description),t.$set(l)},i(i){n||(_(t.$$.fragment,i),n=!0)},o(i){v(t.$$.fragment,i),n=!1},d(i){i&&g(e),Q(t)}}}function wO(r){let e,t=JSON.stringify(r[11])+"",n;return{c(){e=ce("Unknown property: "),n=ce(t)},l(i){e=de(i,"Unknown property: "),n=de(i,t)},m(i,s){P(i,e,s),P(i,n,s)},p(i,s){s&2048&&t!==(t=JSON.stringify(i[11])+"")&&ye(n,t)},i:ie,o:ie,d(i){i&&g(e),i&&g(n)}}}function AO(r){let e,t,n=r[24],i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;lKe(e,"value",i)),{c(){U(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){H(e,l,o),n=!0},p(l,o){const a={};o&4&&(a.path=l[2]),o&2&&(a.schema=l[1]),o&128&&(a.validationErrors=l[7]),o&256&&(a.customComponents=l[8]),o&16&&(a.rootValue=l[4]),!t&&o&1&&(t=!0,a.value=l[0],Je(()=>t=!1)),e.$set(a)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){v(e.$$.fragment,l),n=!1},d(l){Q(e,l)}}}function PO(r){let e,t,n,i;function s(o){r[18](o)}let l={labelA:"False",labelB:"True",labelText:r[13],hideLabel:!0};return r[0]!==void 0&&(l.toggled=r[0]),t=new Vg({props:l}),qe.push(()=>Ke(t,"toggled",s)),{c(){e=j("div"),U(t.$$.fragment)},l(o){e=L(o,"DIV",{});var a=R(e);J(t.$$.fragment,a),a.forEach(g)},m(o,a){P(o,e,a),H(t,e,null),i=!0},p(o,a){const u={};a&8192&&(u.labelText=o[13]),!n&&a&1&&(n=!0,u.toggled=o[0],Je(()=>n=!1)),t.$set(u)},i(o){i||(_(t.$$.fragment,o),i=!0)},o(o){v(t.$$.fragment,o),i=!1},d(o){o&&g(e),Q(t)}}}function CO(r){let e,t,n;function i(l){r[17](l)}let s={allowEmpty:!r[3],name:r[2],label:r[13],hideLabel:!0,invalid:!r[0]&&r[3]};return r[9]!==void 0&&(s.value=r[9]),e=new Qp({props:s}),qe.push(()=>Ke(e,"value",i)),{c(){U(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){H(e,l,o),n=!0},p(l,o){const a={};o&8&&(a.allowEmpty=!l[3]),o&4&&(a.name=l[2]),o&8192&&(a.label=l[13]),o&9&&(a.invalid=!l[0]&&l[3]),!t&&o&512&&(t=!0,a.value=l[9],Je(()=>t=!1)),e.$set(a)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){v(e.$$.fragment,l),n=!1},d(l){Q(e,l)}}}function IO(r){let e,t,n;function i(l){r[16](l)}let s={name:r[2],invalid:!!r[10].length,invalidText:r[12],labelText:r[13],hideLabel:!0,placeholder:r[3]?"":"(optional)"};return r[0]!==void 0&&(s.value=r[0]),e=new _n({props:s}),qe.push(()=>Ke(e,"value",i)),{c(){U(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){H(e,l,o),n=!0},p(l,o){const a={};o&4&&(a.name=l[2]),o&1024&&(a.invalid=!!l[10].length),o&4096&&(a.invalidText=l[12]),o&8192&&(a.labelText=l[13]),o&8&&(a.placeholder=l[3]?"":"(optional)"),!t&&o&1&&(t=!0,a.value=l[0],Je(()=>t=!1)),e.$set(a)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){v(e.$$.fragment,l),n=!1},d(l){Q(e,l)}}}function RO(r){let e,t,n;function i(l){r[15](l)}let s={name:r[2],labelText:r[13],hideLabel:!0,$$slots:{default:[NO]},$$scope:{ctx:r}};return r[0]!==void 0&&(s.selected=r[0]),e=new sn({props:s}),qe.push(()=>Ke(e,"selected",i)),{c(){U(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){H(e,l,o),n=!0},p(l,o){const a={};o&4&&(a.name=l[2]),o&8192&&(a.labelText=l[13]),o&268437512&&(a.$$scope={dirty:o,ctx:l}),!t&&o&1&&(t=!0,a.selected=l[0],Je(()=>t=!1)),e.$set(a)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){v(e.$$.fragment,l),n=!1},d(l){Q(e,l)}}}function DO(r){let e,t=r[11].message+"",n;return{c(){e=j("div"),n=ce(t),this.h()},l(i){e=L(i,"DIV",{class:!0});var s=R(e);n=de(s,t),s.forEach(g),this.h()},h(){T(e,"class","text-red-600")},m(i,s){P(i,e,s),I(e,n)},p(i,s){s&2048&&t!==(t=i[11].message+"")&&ye(n,t)},i:ie,o:ie,d(i){i&&g(e)}}}function MO(r){let e,t,n,i;function s(a){r[14](a)}var l=r[8][r[2]];function o(a){let u={rootValue:a[4],invalid:!!a[10].length,invalidText:a[12]};return a[0]!==void 0&&(u.value=a[0]),{props:u}}return l&&(e=je(l,o(r)),qe.push(()=>Ke(e,"value",s))),{c(){e&&U(e.$$.fragment),n=G()},l(a){e&&J(e.$$.fragment,a),n=G()},m(a,u){e&&H(e,a,u),P(a,n,u),i=!0},p(a,u){const f={};if(u&16&&(f.rootValue=a[4]),u&1024&&(f.invalid=!!a[10].length),u&4096&&(f.invalidText=a[12]),!t&&u&1&&(t=!0,f.value=a[0],Je(()=>t=!1)),u&260&&l!==(l=a[8][a[2]])){if(e){ne();const c=e;v(c.$$.fragment,1,0,()=>{Q(c,1)}),re()}l?(e=je(l,o(a)),qe.push(()=>Ke(e,"value",s)),U(e.$$.fragment),_(e.$$.fragment,1),H(e,n.parentNode,n)):e=null}else l&&e.$set(f)},i(a){i||(e&&_(e.$$.fragment,a),i=!0)},o(a){e&&v(e.$$.fragment,a),i=!1},d(a){a&&g(n),e&&Q(e,a)}}}function Uf(r){var a;let e,t,n,i,s;function l(u){r[20](u,r[25])}let o={path:r[2]+"/"+r[25],schema:r[1],hiddenProperties:r[5],validationErrors:r[7],customComponents:r[8],rootValue:r[4],required:(a=r[11].required)==null?void 0:a.includes(r[25])};return r[0][r[25]]!==void 0&&(o.value=r[0][r[25]]),t=new ws({props:o}),qe.push(()=>Ke(t,"value",l)),{c(){e=j("div"),U(t.$$.fragment),i=$(),this.h()},l(u){e=L(u,"DIV",{class:!0});var f=R(e);J(t.$$.fragment,f),i=ee(f),f.forEach(g),this.h()},h(){T(e,"class","mt-4 border-gray-300"),b(e,"border-b",r[27]n=!1)),t.$set(c),(!s||f&2048)&&b(e,"border-b",r[27]v(l[a],1,1,()=>{l[a]=null});return{c(){i&&i.c(),e=$();for(let a=0;a{i=null}),re()):i?(i.p(a,u),u&8&&_(i,1)):(i=Hf(),i.c(),_(i,1),i.m(e.parentNode,e)),u&2048){s=a[11].enum;let f;for(f=0;f{i=null}),re())},i(l){n||(_(i),n=!0)},o(l){v(i),n=!1},d(l){i&&i.d(l),l&&g(t)}}}function LO(r,e,t){let n,i,s,{schema:l}=e,{path:o=""}=e,{required:a=!1}=e,{value:u}=e,{rootValue:f}=e,{hiddenProperties:c=[]}=e,{showDescription:h=!0}=e,{validationErrors:d=[]}=e,{customComponents:m}=e,p,y="";function k(w){u=w,t(0,u),t(9,p)}function O(w){u=w,t(0,u),t(9,p)}function E(w){u=w,t(0,u),t(9,p)}function S(w){p=w,t(9,p)}function C(w){u=w,t(0,u),t(9,p)}function A(w){u=w,t(0,u),t(9,p)}function D(w,B){r.$$.not_equal(u[B],w)&&(u[B]=w,t(0,u),t(9,p))}return r.$$set=w=>{"schema"in w&&t(1,l=w.schema),"path"in w&&t(2,o=w.path),"required"in w&&t(3,a=w.required),"value"in w&&t(0,u=w.value),"rootValue"in w&&t(4,f=w.rootValue),"hiddenProperties"in w&&t(5,c=w.hiddenProperties),"showDescription"in w&&t(6,h=w.showDescription),"validationErrors"in w&&t(7,d=w.validationErrors),"customComponents"in w&&t(8,m=w.customComponents)},r.$$.update=()=>{r.$$.dirty&512&&p!==void 0&&t(0,u=p===null?void 0:p),r.$$.dirty&1&&u===""&&t(0,u=void 0),r.$$.dirty&7&&t(11,n=l.getSchema(o,u||{})),r.$$.dirty&2056&&t(13,i=n.title?`${n.title} ${a?"*":""}`:""),r.$$.dirty&132&&t(10,s=d.filter(w=>{var B,M,F;return`${(B=w==null?void 0:w.data)==null?void 0:B.pointer}${(M=w==null?void 0:w.data)!=null&&M.key?"/"+((F=w==null?void 0:w.data)==null?void 0:F.key):""}`.replaceAll("#","")==o})),r.$$.dirty&1024&&(s.length==0?t(12,y=""):s[0].code==="min-length-one-error"||s[0].code==="required-property-error"?t(12,y="Value is required"):t(12,y=s[0].message))},[u,l,o,a,f,c,h,d,m,p,s,n,y,i,k,O,E,S,C,A,D]}class ws extends me{constructor(e){super(),pe(this,e,LO,jO,he,{schema:1,path:2,required:3,value:0,rootValue:4,hiddenProperties:5,showDescription:6,validationErrors:7,customComponents:8})}}function Wf(r){let e,t,n;function i(l){r[7](l)}let s={schema:r[5],hiddenProperties:r[2],showDescription:r[3],validationErrors:r[1],customComponents:r[4],rootValue:r[0]};return r[0]!==void 0&&(s.value=r[0]),e=new ws({props:s}),qe.push(()=>Ke(e,"value",i)),{c(){U(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){H(e,l,o),n=!0},p(l,o){const a={};o&32&&(a.schema=l[5]),o&4&&(a.hiddenProperties=l[2]),o&8&&(a.showDescription=l[3]),o&2&&(a.validationErrors=l[1]),o&16&&(a.customComponents=l[4]),o&1&&(a.rootValue=l[0]),!t&&o&1&&(t=!0,a.value=l[0],Je(()=>t=!1)),e.$set(a)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){v(e.$$.fragment,l),n=!1},d(l){Q(e,l)}}}function qO(r){let e,t,n=r[5]&&Wf(r);return{c(){n&&n.c(),e=G()},l(i){n&&n.l(i),e=G()},m(i,s){n&&n.m(i,s),P(i,e,s),t=!0},p(i,[s]){i[5]?n?(n.p(i,s),s&32&&_(n,1)):(n=Wf(i),n.c(),_(n,1),n.m(e.parentNode,e)):n&&(ne(),v(n,1,1,()=>{n=null}),re())},i(i){t||(_(n),t=!0)},o(i){v(n),t=!1},d(i){n&&n.d(i),i&&g(e)}}}function BO(r,e,t){let n,{schema:i}=e,{value:s={}}=e,{hiddenProperties:l=[]}=e,{validationErrors:o=[]}=e,{showDescription:a=!0}=e,{customComponents:u={}}=e;function f(h){t(0,s=h.getTemplate(s,void 0,{addOptionalProps:!1}));for(const[d,m]of Object.entries(i.properties||{})){const p=m.default;p&&s[d]!=p&&t(0,s[d]=p,s)}}function c(h){s=h,t(0,s)}return r.$$set=h=>{"schema"in h&&t(6,i=h.schema),"value"in h&&t(0,s=h.value),"hiddenProperties"in h&&t(2,l=h.hiddenProperties),"validationErrors"in h&&t(1,o=h.validationErrors),"showDescription"in h&&t(3,a=h.showDescription),"customComponents"in h&&t(4,u=h.customComponents)},r.$$.update=()=>{r.$$.dirty&64&&t(5,n=typeof i=="object"?new _O(i):null),r.$$.dirty&32&&n&&f(n),r.$$.dirty&33&&t(1,o=n?n.validate(s):[])},[s,o,l,a,u,n,i,c]}class FO extends me{constructor(e){super(),pe(this,e,BO,qO,he,{schema:6,value:0,hiddenProperties:2,validationErrors:1,showDescription:3,customComponents:4})}}function zO(r,e,t){let{value:n}=e;return r.$$set=i=>{"value"in i&&t(0,n=i.value)},[n]}class VO extends me{constructor(e){super(),pe(this,e,zO,null,he,{value:0})}}function Gf(r,e,t){const n=r.slice();return n[9]=e[t],n}function Kf(r,e,t){const n=r.slice();return n[12]=e[t],n}function Jf(r){let e,t,n=r[5],i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l{n=null}),re())},i(i){t||(_(n),t=!0)},o(i){v(n),t=!1},d(i){n&&n.d(i),i&&g(e)}}}function QO(r){let e,t;return e=new sn({props:{labelText:"Concept *",selected:`${r[0].namespace}/${r[1]}`,invalid:r[2],invalidText:r[3],$$slots:{default:[HO]},$$scope:{ctx:r}}}),e.$on("update",r[7]),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,[i]){const s={};i&3&&(s.selected=`${n[0].namespace}/${n[1]}`),i&4&&(s.invalid=n[2]),i&8&&(s.invalidText=n[3]),i&32816&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function WO(r,e,t){let n,i,s,{rootValue:l}=e,{invalid:o}=e,{invalidText:a}=e,{value:u}=e;const f=H1();xe(r,f,h=>t(4,s=h));function c(h){const[d,m]=h.detail.toString().split("/");!d||!m||(t(0,l.namespace=d,l),t(1,u=m))}return r.$$set=h=>{"rootValue"in h&&t(0,l=h.rootValue),"invalid"in h&&t(2,o=h.invalid),"invalidText"in h&&t(3,a=h.invalidText),"value"in h&&t(1,u=h.value)},r.$$.update=()=>{r.$$.dirty&16&&t(8,n=s.isSuccess?[...new Set(s.data.map(h=>h.namespace))]:[]),r.$$.dirty&272&&t(5,i=s.isSuccess?n.map(h=>{var d;return{namespace:h,concepts:((d=s.data)==null?void 0:d.filter(m=>m.namespace===h))||[]}}):[]),r.$$.dirty&19&&(!u||!l.namespace)&&s.isSuccess&&(t(0,l.namespace=s.data[0].namespace,l),t(1,u=s.data[0].name))},[l,u,o,a,s,i,f,c,n]}class GO extends me{constructor(e){super(),pe(this,e,WO,QO,he,{rootValue:0,invalid:2,invalidText:3,value:1})}}function Xf(r,e,t){var s;const n=r.slice();n[16]=e[t];const i=(s=n[3])==null?void 0:s.some(function(...o){return r[14](n[16],...o)});return n[4]=i,n}function xf(r){var n,i;let e,t;return e=new on({props:{value:(n=r[16])==null?void 0:n.toString(),text:(i=r[16])==null?void 0:i.toString(),disabled:!r[4]}}),{c(){U(e.$$.fragment)},l(s){J(e.$$.fragment,s)},m(s,l){H(e,s,l),t=!0},p(s,l){var a,u;const o={};l&64&&(o.value=(a=s[16])==null?void 0:a.toString()),l&64&&(o.text=(u=s[16])==null?void 0:u.toString()),l&72&&(o.disabled=!s[4]),e.$set(o)},i(s){t||(_(e.$$.fragment,s),t=!0)},o(s){v(e.$$.fragment,s),t=!1},d(s){Q(e,s)}}}function KO(r){let e,t,n=r[6],i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;lt(15,f=E));const p=ss(f.namespace,f.datasetName);xe(r,p,E=>t(13,u=E));const y=E3();xe(r,y,E=>t(12,a=E));function k(E){t(0,d=E.target.value)}const O=(E,S)=>{var C;return((C=S.signal)==null?void 0:C.signal_name)===(E==null?void 0:E.toString())};return r.$$set=E=>{"invalid"in E&&t(1,c=E.invalid),"invalidText"in E&&t(2,h=E.invalidText),"value"in E&&t(0,d=E.value)},r.$$.update=()=>{var E,S,C;r.$$.dirty&4096&&t(11,n=(S=(E=a.jsonSchema)==null?void 0:E.properties)==null?void 0:S.embedding),r.$$.dirty&12288&&t(3,i=a.path&&u.data?ft(Ic(u.data,a.path)).filter(A=>A.signal!=null&&ft(A).some(D=>D.dtype==="embedding")):void 0),r.$$.dirty&2056&&t(6,s=[...(n==null?void 0:n.enum)||[]].sort((A,D)=>{const w=i==null?void 0:i.some(M=>{var F;return((F=M.signal)==null?void 0:F.signal_name)===(A==null?void 0:A.toString())}),B=i==null?void 0:i.some(M=>{var F;return((F=M.signal)==null?void 0:F.signal_name)===(D==null?void 0:D.toString())});return w&&!B?-1:!w&&B?1:0})),r.$$.dirty&8&&i!=null&&i.length&&(C=i[0].signal)!=null&&C.signal_name&&t(0,d=i[0].signal.signal_name),r.$$.dirty&9&&t(4,l=(i==null?void 0:i.some(A=>{var D;return((D=A.signal)==null?void 0:D.signal_name)===(d==null?void 0:d.toString())}))||!1),r.$$.dirty&16&&t(5,o=l?void 0:"Embedding not pre-computed for this split")},[d,c,h,i,l,o,s,m,p,y,k,n,a,u,O]}class YO extends me{constructor(e){super(),pe(this,e,ZO,JO,he,{invalid:1,invalidText:2,value:0})}}function XO(r){let e,t;return e=new pr({props:{skeleton:!0}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p:ie,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function xO(r){let e,t;return e=new pr({props:{items:r[1].data.map($f),item:r[0]}}),e.$on("select",r[3]),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&2&&(s.items=n[1].data.map($f)),i&1&&(s.item=n[0]),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function $O(r){let e,t,n,i;const s=[xO,XO],l=[];function o(a,u){return a[1].isSuccess?0:a[1].isLoading?1:-1}return~(e=o(r))&&(t=l[e]=s[e](r)),{c(){t&&t.c(),n=G()},l(a){t&&t.l(a),n=G()},m(a,u){~e&&l[e].m(a,u),P(a,n,u),i=!0},p(a,[u]){let f=e;e=o(a),e===f?~e&&l[e].p(a,u):(t&&(ne(),v(l[f],1,1,()=>{l[f]=null}),re()),~e?(t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){~e&&l[e].d(a),a&&g(n)}}}const $f=r=>({title:r.json_schema.title||"Unnamed embedding",value:r});function e3(r,e,t){let n,{embedding:i=void 0}=e;const s=K1();xe(r,s,o=>t(1,n=o));const l=o=>t(0,i=o.detail);return r.$$set=o=>{"embedding"in o&&t(0,i=o.embedding)},r.$$.update=()=>{var o;r.$$.dirty&3&&n.isSuccess&&!i&&t(0,i=(o=n.data)==null?void 0:o[0])},[i,n,s,l]}class t3 extends me{constructor(e){super(),pe(this,e,e3,$O,he,{embedding:0})}}function ec(r,e,t){const n=r.slice();return n[13]=e[t],n}function n3(r){let e,t,n;function i(l){r[12](l)}let s={labelText:r[0],helperText:r[1],required:!0,$$slots:{default:[s3]},$$scope:{ctx:r}};return r[2]!==void 0&&(s.selected=r[2]),e=new sn({props:s}),qe.push(()=>Ke(e,"selected",i)),{c(){U(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){H(e,l,o),n=!0},p(l,o){const a={};o&1&&(a.labelText=l[0]),o&2&&(a.helperText=l[1]),o&65568&&(a.$$scope={dirty:o,ctx:l}),!t&&o&4&&(t=!0,a.selected=l[2],Je(()=>t=!1)),e.$set(a)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){v(e.$$.fragment,l),n=!1},d(l){Q(e,l)}}}function r3(r){let e,t;return e=new sn({props:{invalid:!0,invalidText:"No valid fields found"}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p:ie,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function i3(r){let e,t;return e=new Yl({}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p:ie,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function tc(r){let e,t;return e=new mc({props:{label:"Source Fields",$$slots:{default:[l3]},$$scope:{ctx:r}}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&65568&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function nc(r){let e,t;return e=new on({props:{value:mt(r[13].path),disabled:!1,text:rc(r[13])}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&32&&(s.value=mt(n[13].path)),i&32&&(s.text=rc(n[13])),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function l3(r){let e,t,n=r[5],i=[];for(let l=0;lv(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l{n=null}),re())},i(s){t||(_(n),t=!0)},o(s){v(n),t=!1},d(s){n&&n.d(s),s&&g(e)}}}function o3(r){let e,t,n,i;const s=[i3,r3,n3],l=[];function o(a,u){var f;return a[4].isLoading?0:((f=a[3])==null?void 0:f.length)===0?1:2}return e=o(r),t=l[e]=s[e](r),{c(){t.c(),n=G()},l(a){t.l(a),n=G()},m(a,u){l[e].m(a,u),P(a,n,u),i=!0},p(a,[u]){let f=e;e=o(a),e===f?l[e].p(a,u):(ne(),v(l[f],1,1,()=>{l[f]=null}),re(),t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n))},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){l[e].d(a),a&&g(n)}}}function rc(r){return`${r.path.join(".")} (${r.dtype})`}function a3(r,e,t){let n,i,s,l,o=ie,a=()=>(o(),o=Ql(n,O=>t(4,l=O)),n),u;r.$$.on_destroy.push(()=>o());let{labelText:f="Field"}=e,{helperText:c=void 0}=e,{filter:h=void 0}=e,{defaultPath:d=void 0}=e,{path:m=void 0}=e;const p=Si();xe(r,p,O=>t(11,u=O));let y;function k(O){y=O,t(2,y),t(10,d),t(3,i),t(4,l),t(9,h)}return r.$$set=O=>{"labelText"in O&&t(0,f=O.labelText),"helperText"in O&&t(1,c=O.helperText),"filter"in O&&t(9,h=O.filter),"defaultPath"in O&&t(10,d=O.defaultPath),"path"in O&&t(8,m=O.path)},r.$$.update=()=>{if(r.$$.dirty&2048&&a(t(6,n=ss(u.namespace,u.datasetName))),r.$$.dirty&528&&t(3,i=l.isSuccess?ft(l.data).filter(O=>O.path.length>0).filter(O=>h?h(O):!0):null),r.$$.dirty&24&&t(5,s=i==null?void 0:i.filter(O=>l.data&&!Jr(O,l.data))),r.$$.dirty&1036&&d&&i&&!y){const O=i.find(E=>At(E.path,d));O&&t(2,y=mt(O.path))}if(r.$$.dirty&24&&!(i!=null&&i.length)&&l.isSuccess&&t(8,m=void 0),r.$$.dirty&12&&i&&y&&(i.some(E=>mt(E.path)===y)||t(2,y=mt(i[0].path))),r.$$.dirty&12&&i){const O=i==null?void 0:i.find(E=>mt(E.path)===y);O&&t(8,m=O.path)}},[f,c,y,i,l,s,n,p,m,h,d,u,k]}class u3 extends me{constructor(e){super(),pe(this,e,a3,o3,he,{labelText:0,helperText:1,filter:9,defaultPath:10,path:8})}}function f3(r){let e,t;return e=new pr({props:{skeleton:!0}}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p:ie,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function c3(r){let e,t;return e=new pr({props:{items:r[1].map(ic),item:r[0]}}),e.$on("select",r[5]),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&2&&(s.items=n[1].map(ic)),i&1&&(s.item=n[0]),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function d3(r){let e,t,n,i;const s=[c3,f3],l=[];function o(a,u){return a[1]?0:a[2].isLoading?1:-1}return~(e=o(r))&&(t=l[e]=s[e](r)),{c(){t&&t.c(),n=G()},l(a){t&&t.l(a),n=G()},m(a,u){~e&&l[e].m(a,u),P(a,n,u),i=!0},p(a,[u]){let f=e;e=o(a),e===f?~e&&l[e].p(a,u):(t&&(ne(),v(l[f],1,1,()=>{l[f]=null}),re()),~e?(t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){~e&&l[e].d(a),a&&g(n)}}}const ic=r=>({title:r.json_schema.title||"Unnamed signal",value:r});function h3(r,e,t){let n,i,{defaultSignal:s=void 0}=e,{signal:l=void 0}=e;const o=G1();xe(r,o,u=>t(2,i=u));const a=u=>t(0,l=u.detail);return r.$$set=u=>{"defaultSignal"in u&&t(4,s=u.defaultSignal),"signal"in u&&t(0,l=u.signal)},r.$$.update=()=>{var u;r.$$.dirty&4&&t(1,n=(u=i.data)==null?void 0:u.filter(f=>f.name!="concept_score"&&f.name!="concept_labels")),r.$$.dirty&19&&n&&!l&&t(0,l=n.find(f=>f.name===s)||n[0])},[l,n,i,o,s,a]}class m3 extends me{constructor(e){super(),pe(this,e,h3,d3,he,{defaultSignal:4,signal:0})}}function p3(r){let e,t,n;function i(l){r[13](l)}let s={defaultSignal:r[0].signalName};return r[2]!==void 0&&(s.signal=r[2]),e=new m3({props:s}),qe.push(()=>Ke(e,"signal",i)),{c(){U(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){H(e,l,o),n=!0},p(l,o){const a={};o&1&&(a.defaultSignal=l[0].signalName),!t&&o&4&&(t=!0,a.signal=l[2],Je(()=>t=!1)),e.$set(a)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){v(e.$$.fragment,l),n=!1},d(l){Q(e,l)}}}function g3(r){let e,t,n;function i(l){r[12](l)}let s={};return r[2]!==void 0&&(s.embedding=r[2]),e=new t3({props:s}),qe.push(()=>Ke(e,"embedding",i)),{c(){U(e.$$.fragment)},l(l){J(e.$$.fragment,l)},m(l,o){H(e,l,o),n=!0},p(l,o){const a={};!t&&o&4&&(t=!0,a.embedding=l[2],Je(()=>t=!1)),e.$set(a)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){v(e.$$.fragment,l),n=!1},d(l){Q(e,l)}}}function b3(r){let e;return{c(){e=ce("No signal selected")},l(t){e=de(t,"No signal selected")},m(t,n){P(t,e,n)},p:ie,i:ie,o:ie,d(t){t&&g(e)}}}function _3(r){let e=r[2],t,n,i=lc(r);return{c(){i.c(),t=G()},l(s){i.l(s),t=G()},m(s,l){i.m(s,l),P(s,t,l),n=!0},p(s,l){l&4&&he(e,e=s[2])?(ne(),v(i,1,1,ie),re(),i=lc(s),i.c(),_(i,1),i.m(t.parentNode,t)):i.p(s,l)},i(s){n||(_(i),n=!0)},o(s){v(i),n=!1},d(s){s&&g(t),i.d(s)}}}function lc(r){var y,k,O;let e,t,n,i,s,l,o,a,u,f;t=new eh({props:{source:r[2].json_schema.description}});function c(E){r[14](E)}let h={filter:r[6],defaultPath:r[0].path,labelText:"Field"};r[1]!==void 0&&(h.path=r[1]),i=new u3({props:h}),qe.push(()=>Ke(i,"path",c));function d(E){r[15](E)}function m(E){r[16](E)}let p={schema:r[2].json_schema,showDescription:!1,hiddenProperties:["/signal_name"],customComponents:r[9][(y=r[2])==null?void 0:y.name]};return r[3][(k=r[2])==null?void 0:k.name]!==void 0&&(p.value=r[3][(O=r[2])==null?void 0:O.name]),r[4]!==void 0&&(p.validationErrors=r[4]),o=new FO({props:p}),qe.push(()=>Ke(o,"value",d)),qe.push(()=>Ke(o,"validationErrors",m)),{c(){e=j("div"),U(t.$$.fragment),n=$(),U(i.$$.fragment),l=$(),U(o.$$.fragment)},l(E){e=L(E,"DIV",{});var S=R(e);J(t.$$.fragment,S),S.forEach(g),n=ee(E),J(i.$$.fragment,E),l=ee(E),J(o.$$.fragment,E)},m(E,S){P(E,e,S),H(t,e,null),P(E,n,S),H(i,E,S),P(E,l,S),H(o,E,S),f=!0},p(E,S){var w,B;const C={};S&4&&(C.source=E[2].json_schema.description),t.$set(C);const A={};S&64&&(A.filter=E[6]),S&1&&(A.defaultPath=E[0].path),!s&&S&2&&(s=!0,A.path=E[1],Je(()=>s=!1)),i.$set(A);const D={};S&4&&(D.schema=E[2].json_schema),S&4&&(D.customComponents=E[9][(w=E[2])==null?void 0:w.name]),!a&&S&12&&(a=!0,D.value=E[3][(B=E[2])==null?void 0:B.name],Je(()=>a=!1)),!u&&S&16&&(u=!0,D.validationErrors=E[4],Je(()=>u=!1)),o.$set(D)},i(E){f||(_(t.$$.fragment,E),_(i.$$.fragment,E),_(o.$$.fragment,E),f=!0)},o(E){v(t.$$.fragment,E),v(i.$$.fragment,E),v(o.$$.fragment,E),f=!1},d(E){E&&g(e),Q(t),E&&g(n),Q(i,E),E&&g(l),Q(o,E)}}}function y3(r){let e,t,n,i,s,l,o,a,u;const f=[g3,p3],c=[];function h(y,k){return y[0].command===nt.ComputeEmbedding?0:1}n=h(r),i=c[n]=f[n](r);const d=[_3,b3],m=[];function p(y,k){return y[2]?0:1}return o=p(r),a=m[o]=d[o](r),{c(){e=j("div"),t=j("div"),i.c(),s=$(),l=j("div"),a.c(),this.h()},l(y){e=L(y,"DIV",{class:!0});var k=R(e);t=L(k,"DIV",{class:!0});var O=R(t);i.l(O),O.forEach(g),s=ee(k),l=L(k,"DIV",{class:!0});var E=R(l);a.l(E),E.forEach(g),k.forEach(g),this.h()},h(){T(t,"class","-ml-4 mr-4 w-96 grow-0"),T(l,"class","flex w-full flex-col gap-y-6 rounded border border-gray-300 bg-white p-4"),T(e,"class","flex flex-row")},m(y,k){P(y,e,k),I(e,t),c[n].m(t,null),I(e,s),I(e,l),m[o].m(l,null),u=!0},p(y,k){let O=n;n=h(y),n===O?c[n].p(y,k):(ne(),v(c[O],1,1,()=>{c[O]=null}),re(),i=c[n],i?i.p(y,k):(i=c[n]=f[n](y),i.c()),_(i,1),i.m(t,null));let E=o;o=p(y),o===E?m[o].p(y,k):(ne(),v(m[E],1,1,()=>{m[E]=null}),re(),a=m[o],a?a.p(y,k):(a=m[o]=d[o](y),a.c()),_(a,1),a.m(l,null))},i(y){u||(_(i),_(a),u=!0)},o(y){v(i),v(a),u=!1},d(y){y&&g(e),c[n].d(),m[o].d()}}}function v3(r){let e,t,n,i,s,l;return e=new Kl({props:{title:r[5]}}),n=new Jl({props:{hasForm:!0,$$slots:{default:[y3]},$$scope:{ctx:r}}}),s=new Zl({props:{primaryButtonText:r[0].command===nt.ComputeSignal||r[0].command===nt.ComputeEmbedding?"Compute":"Preview",secondaryButtonText:"Cancel",primaryButtonDisabled:r[4].length>0||!r[1]}}),s.$on("click:button--secondary",r[11]),{c(){U(e.$$.fragment),t=$(),U(n.$$.fragment),i=$(),U(s.$$.fragment)},l(o){J(e.$$.fragment,o),t=ee(o),J(n.$$.fragment,o),i=ee(o),J(s.$$.fragment,o)},m(o,a){H(e,o,a),P(o,t,a),H(n,o,a),P(o,i,a),H(s,o,a),l=!0},p(o,a){const u={};a&32&&(u.title=o[5]),e.$set(u);const f={};a&8388703&&(f.$$scope={dirty:a,ctx:o}),n.$set(f);const c={};a&1&&(c.primaryButtonText=o[0].command===nt.ComputeSignal||o[0].command===nt.ComputeEmbedding?"Compute":"Preview"),a&18&&(c.primaryButtonDisabled=o[4].length>0||!o[1]),s.$set(c)},i(o){l||(_(e.$$.fragment,o),_(n.$$.fragment,o),_(s.$$.fragment,o),l=!0)},o(o){v(e.$$.fragment,o),v(n.$$.fragment,o),v(s.$$.fragment,o),l=!1},d(o){Q(e,o),o&&g(t),Q(n,o),o&&g(i),Q(s,o)}}}function k3(r){let e,t;return e=new Gl({props:{open:!0,$$slots:{default:[v3]},$$scope:{ctx:r}}}),e.$on("submit",r[10]),e.$on("close",r[11]),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,[i]){const s={};i&8388735&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}const _h="COMMAND_SIGNAL_CONTEXT";function E3(){return bt(_h)}function S3(r,e){const t=ct({path:r,jsonSchema:e});return Ut(_h,t),t}function O3(r,e,t){let n,i,s,l,o,{command:a}=e,u=a.path,f,c={},h=[];(a.command===nt.EditPreviewConcept||a.command==nt.ComputeSignalCommand)&&a.signalName&&(c={[a.signalName]:{...a.value}});const d=S3(u,f==null?void 0:f.json_schema);xe(r,d,M=>t(19,o=M));const m=Si(),p=dt(),y=V1();xe(r,y,M=>t(18,l=M));const k={concept_score:{"/namespace":VO,"/concept_name":GO,"/embedding":YO}};function O(M){M in c||t(3,c[M]={},c),t(3,c[M].signal_name=M,c)}function E(){n&&(a.command===nt.ComputeSignal||a.command===nt.ComputeEmbedding?l.mutate([a.namespace,a.datasetName,{leaf_path:u||[],signal:n}]):a.command===nt.PreviewConcept?u&&m.addUdfColumn({path:u,signal_udf:n}):a.command===nt.EditPreviewConcept&&u&&m.editUdfColumn({path:u,signal_udf:n}),S())}function S(){p("close")}function C(M){f=M,t(2,f)}function A(M){f=M,t(2,f)}function D(M){u=M,t(1,u)}function w(M){r.$$.not_equal(c[f==null?void 0:f.name],M)&&(c[f==null?void 0:f.name]=M,t(3,c))}function B(M){h=M,t(4,h)}return r.$$set=M=>{"command"in M&&t(0,a=M.command)},r.$$.update=()=>{r.$$.dirty&2&&Ur(d,o.path=u,o),r.$$.dirty&4&&Ur(d,o.jsonSchema=f==null?void 0:f.json_schema,o),r.$$.dirty&4&&f!=null&&f.name&&O(f.name),r.$$.dirty&12&&(n=f!=null&&f.name?c[f.name]:void 0),r.$$.dirty&4&&t(6,i=M=>M.dtype?f!=null&&f.input_type?A1[f.input_type].includes(M.dtype):!0:!1),r.$$.dirty&1&&t(5,s=a.command===nt.ComputeSignal?"Compute Signal":a.command===nt.ComputeEmbedding?"Compute Embedding":"Preview Signal")},[a,u,f,c,h,s,i,d,y,k,E,S,C,A,D,w,B]}class w3 extends me{constructor(e){super(),pe(this,e,O3,k3,he,{command:0})}}function A3(r){let e,t;return e=new Sb({props:{command:r[0]}}),e.$on("close",Ts),e.$on("create",function(){Ch(r[0].onCreate)&&r[0].onCreate.apply(this,arguments)}),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){r=n;const s={};i&1&&(s.command=r[0]),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function T3(r){let e,t;return e=new p2({props:{command:r[0]}}),e.$on("close",Ts),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&1&&(s.command=n[0]),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function P3(r){let e,t;return e=new w3({props:{command:r[0]}}),e.$on("close",Ts),{c(){U(e.$$.fragment)},l(n){J(e.$$.fragment,n)},m(n,i){H(e,n,i),t=!0},p(n,i){const s={};i&1&&(s.command=n[0]),e.$set(s)},i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){v(e.$$.fragment,n),t=!1},d(n){Q(e,n)}}}function C3(r){let e,t,n,i;const s=[P3,T3,A3],l=[];function o(a,u){return a[0].command===nt.ComputeSignal||a[0].command===nt.ComputeEmbedding||a[0].command===nt.PreviewConcept||a[0].command===nt.EditPreviewConcept?0:a[0].command===nt.EditFilter?1:a[0].command===nt.CreateConcept?2:-1}return~(e=o(r))&&(t=l[e]=s[e](r)),{c(){t&&t.c(),n=G()},l(a){t&&t.l(a),n=G()},m(a,u){~e&&l[e].m(a,u),P(a,n,u),i=!0},p(a,[u]){let f=e;e=o(a),e===f?~e&&l[e].p(a,u):(t&&(ne(),v(l[f],1,1,()=>{l[f]=null}),re()),~e?(t=l[e],t?t.p(a,u):(t=l[e]=s[e](a),t.c()),_(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(_(t),i=!0)},o(a){v(t),i=!1},d(a){~e&&l[e].d(a),a&&g(n)}}}var nt=(r=>(r.ComputeSignal="computeSignal",r.PreviewConcept="previewConcept",r.EditPreviewConcept="editPreviewConcept",r.EditFilter="editFilter",r.CreateConcept="createConcept",r.ComputeEmbedding="computeEmbedding",r.ComputeSignalCommand="computeSignal",r))(nt||{});function Ow(r){As.set(r)}let As=ct({});function Ts(){As.set({})}function I3(r,e,t){let n,i;return xe(r,As,s=>t(1,i=s)),r.$$.update=()=>{r.$$.dirty&2&&t(0,n=i)},[n,i]}class ww extends me{constructor(e){super(),pe(this,e,I3,C3,he,{})}}export{ew as $,Si as A,jn as B,nt as C,F3 as D,rn as E,mt as F,$v as G,z3 as H,Lc as I,mc as J,ow as K,U3 as L,Rc as M,bp as N,At as O,J3 as P,n1 as Q,ss as R,sn as S,Vg as T,Yv as U,lw as V,dc as W,cc as X,V1 as Y,K1 as Z,Ji as _,lp as a,Be as a$,Jr as a0,D1 as a1,C1 as a2,q3 as a3,tw as a4,L3 as a5,iw as a6,om as a7,Kr as a8,ft as a9,W1 as aA,Z3 as aB,Ic as aC,cw as aD,fw as aE,vm as aF,Wl as aG,o1 as aH,Y3 as aI,x3 as aJ,X3 as aK,Mc as aL,FO as aM,oc as aN,ur as aO,pi as aP,mw as aQ,eh as aR,VO as aS,GO as aT,YO as aU,Ai as aV,Rr as aW,B3 as aX,fc as aY,uc as aZ,Fe as a_,mn as aa,Gl as ab,aw as ac,$3 as ad,w1 as ae,Kl as af,Jl as ag,Zl as ah,pr as ai,_n as aj,Yl as ak,rw as al,sw as am,vw as an,Ew as ao,yw as ap,kw as aq,V3 as ar,nw as as,U1 as at,Xv as au,pw as av,hw as aw,ul as ax,Cc as ay,R1 as az,on as b,Qt as b0,N1 as b1,an as b2,$e as b3,Gm as b4,ww as b5,j1 as c,jh as d,Eg as e,_w as f,K3 as g,ib as h,z1 as i,H1 as j,G1 as k,rt as l,G3 as m,bw as n,Q3 as o,W3 as p,H3 as q,gw as r,j3 as s,Ow as t,ba as u,dw as v,Jv as w,uw as x,xv as y,x1 as z}; diff --git a/lilac/web/_app/immutable/chunks/ConceptView.b8745847.js b/lilac/web/_app/immutable/chunks/ConceptView.b8745847.js new file mode 100644 index 0000000000000000000000000000000000000000..474cebbe5d4dcfd6210291e7721ec329c3b183f7 --- /dev/null +++ b/lilac/web/_app/immutable/chunks/ConceptView.b8745847.js @@ -0,0 +1 @@ +import{S as fe,i as ue,s as de,E as ie,_ as re,$ as se,m as D,h as d,n as y,a0 as be,b as N,J as h,O as Ae,a1 as K,D as ve,F as we,q as Z,r as j,u as te,G as At,k as S,a as G,l as A,c as x,K as Be,L as Pt,M as Rt,N as Bt,v as le,d as V,f as ne,g as v,y as O,z as L,A as F,B as U,w as qe,U as Ze,V as je,a4 as Me,C as Qt,a6 as Xe,H as Ie,R as $e,o as Gt,ab as ze,e as ke,P as xt,a7 as Ht,aa as Wt}from"./index.27e2a960.js";import{aj as Kt,D as pe,B as Qe,S as Oe,Z as Nt,av as Jt,aw as Xt,ax as el,ay as tl,d as Ot,b as Pe,M as Te,az as Ce,ae as Re,aA as Lt,al as et,i as ll,aB as nl,a9 as ye,a0 as rl,F as Se,aC as sl,g as al,E as il,ap as ol,W as Ft,ak as Ut,c as cl,aD as fl,aE as ul,h as Yt,X as Ue}from"./Commands.2fa1e469.js";import{T as dl,S as ml,a as qt,b as Zt}from"./StringSpanHighlight.3d7a4bbd.js";import{C as hl,a as _l}from"./ChevronUp.31af30c3.js";import{g as jt}from"./settingsStore.a935cb75.js";import{i as gl,r as pl}from"./notificationsStore.4af93bc4.js";import{g as bl}from"./navigation.06af7fa8.js";import{b as vl}from"./utils.97898c57.js";function tt(r){let e,l;return{c(){e=re("title"),l=Z(r[1])},l(t){e=se(t,"title",{});var n=D(e);l=j(n,r[1]),n.forEach(d)},m(t,n){N(t,e,n),h(e,l)},p(t,n){n&2&&te(l,t[1])},d(t){t&&d(e)}}}function wl(r){let e,l,t=r[1]&&tt(r),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],o={};for(let s=0;s{l(5,e=ie(ie({},e),we(c))),l(3,s=ve(e,o)),"size"in c&&l(0,a=c.size),"title"in c&&l(1,i=c.title)},r.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||i),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=we(e),[a,i,n,s,t]}class $l extends fe{constructor(e){super(),ue(this,e,kl,wl,de,{size:0,title:1})}}function lt(r){let e,l;return{c(){e=re("title"),l=Z(r[1])},l(t){e=se(t,"title",{});var n=D(e);l=j(n,r[1]),n.forEach(d)},m(t,n){N(t,e,n),h(e,l)},p(t,n){n&2&&te(l,t[1])},d(t){t&&d(e)}}}function El(r){let e,l,t,n=r[1]&<(r),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let a=0;a{l(5,e=ie(ie({},e),we(c))),l(3,s=ve(e,o)),"size"in c&&l(0,a=c.size),"title"in c&&l(1,i=c.title)},r.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||i),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=we(e),[a,i,n,s,t]}class nt extends fe{constructor(e){super(),ue(this,e,Vl,El,de,{size:0,title:1})}}function rt(r){let e,l;return{c(){e=re("title"),l=Z(r[1])},l(t){e=se(t,"title",{});var n=D(e);l=j(n,r[1]),n.forEach(d)},m(t,n){N(t,e,n),h(e,l)},p(t,n){n&2&&te(l,t[1])},d(t){t&&d(e)}}}function Dl(r){let e,l,t=r[1]&&rt(r),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],o={};for(let s=0;s{l(5,e=ie(ie({},e),we(c))),l(3,s=ve(e,o)),"size"in c&&l(0,a=c.size),"title"in c&&l(1,i=c.title)},r.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||i),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=we(e),[a,i,n,s,t]}class Nn extends fe{constructor(e){super(),ue(this,e,Ml,Dl,de,{size:0,title:1})}}function st(r){let e,l;return{c(){e=re("title"),l=Z(r[1])},l(t){e=se(t,"title",{});var n=D(e);l=j(n,r[1]),n.forEach(d)},m(t,n){N(t,e,n),h(e,l)},p(t,n){n&2&&te(l,t[1])},d(t){t&&d(e)}}}function Il(r){let e,l,t,n=r[1]&&st(r),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let a=0;a{l(5,e=ie(ie({},e),we(c))),l(3,s=ve(e,o)),"size"in c&&l(0,a=c.size),"title"in c&&l(1,i=c.title)},r.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||i),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=we(e),[a,i,n,s,t]}class Tl extends fe{constructor(e){super(),ue(this,e,zl,Il,de,{size:0,title:1})}}function at(r){let e,l;return{c(){e=re("title"),l=Z(r[1])},l(t){e=se(t,"title",{});var n=D(e);l=j(n,r[1]),n.forEach(d)},m(t,n){N(t,e,n),h(e,l)},p(t,n){n&2&&te(l,t[1])},d(t){t&&d(e)}}}function Cl(r){let e,l,t,n=r[1]&&at(r),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let a=0;a{l(5,e=ie(ie({},e),we(c))),l(3,s=ve(e,o)),"size"in c&&l(0,a=c.size),"title"in c&&l(1,i=c.title)},r.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||i),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=we(e),[a,i,n,s,t]}class Sl extends fe{constructor(e){super(),ue(this,e,yl,Cl,de,{size:0,title:1})}}const Al=r=>({}),it=r=>({}),Pl=r=>({}),ot=r=>({});function Rl(r){let e,l;return e=new hl({}),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Bl(r){let e,l;return e=new _l({}),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function ct(r){let e,l;const t=r[2].below,n=At(t,r,r[1],it);return{c(){e=S("div"),n&&n.c(),this.h()},l(o){e=A(o,"DIV",{class:!0});var s=D(e);n&&n.l(s),s.forEach(d),this.h()},h(){y(e,"class","p-4")},m(o,s){N(o,e,s),n&&n.m(e,null),l=!0},p(o,s){n&&n.p&&(!l||s&2)&&Pt(n,t,o,o[1],l?Bt(t,o[1],s,Al):Rt(o[1]),it)},i(o){l||(v(n,o),l=!0)},o(o){V(n,o),l=!1},d(o){o&&d(e),n&&n.d(o)}}}function Hl(r){let e,l,t,n,o,s,a,i,c,f;const C=r[2].above,g=At(C,r,r[1],ot),_=[Bl,Rl],u=[];function m(z,M){return z[0]?0:1}o=m(r),s=u[o]=_[o](r);let k=r[0]&&ct(r);return{c(){e=S("div"),l=S("button"),t=S("div"),g&&g.c(),n=G(),s.c(),a=G(),k&&k.c(),this.h()},l(z){e=A(z,"DIV",{class:!0});var M=D(e);l=A(M,"BUTTON",{class:!0});var $=D(l);t=A($,"DIV",{class:!0});var E=D(t);g&&g.l(E),n=x(E),s.l(E),E.forEach(d),$.forEach(d),a=x(M),k&&k.l(M),M.forEach(d),this.h()},h(){y(t,"class","flex items-center justify-between"),y(l,"class","w-full p-4 text-left hover:bg-gray-200"),y(e,"class","rounded-xl border border-gray-200")},m(z,M){N(z,e,M),h(e,l),h(l,t),g&&g.m(t,null),h(t,n),u[o].m(t,null),h(e,a),k&&k.m(e,null),i=!0,c||(f=Be(l,"click",r[3]),c=!0)},p(z,[M]){g&&g.p&&(!i||M&2)&&Pt(g,C,z,z[1],i?Bt(C,z[1],M,Pl):Rt(z[1]),ot);let $=o;o=m(z),o!==$&&(le(),V(u[$],1,1,()=>{u[$]=null}),ne(),s=u[o],s||(s=u[o]=_[o](z),s.c()),v(s,1),s.m(t,null)),z[0]?k?(k.p(z,M),M&1&&v(k,1)):(k=ct(z),k.c(),v(k,1),k.m(e,null)):k&&(le(),V(k,1,1,()=>{k=null}),ne())},i(z){i||(v(g,z),v(s),v(k),i=!0)},o(z){V(g,z),V(s),V(k),i=!1},d(z){z&&d(e),g&&g.d(z),u[o].d(),k&&k.d(),c=!1,f()}}}function Nl(r,e,l){let{$$slots:t={},$$scope:n}=e,{expanded:o=!1}=e;const s=()=>l(0,o=!o);return r.$$set=a=>{"expanded"in a&&l(0,o=a.expanded),"$$scope"in a&&l(1,n=a.$$scope)},[o,n,t,s]}class Ye extends fe{constructor(e){super(),ue(this,e,Nl,Hl,de,{expanded:0})}}function ft(r,e,l){const t=r.slice();return t[6]=e[l],t}function ut(r){let e,l,t=r[6].text+"",n,o,s,a,i,c,f,C;a=new Tl({props:{size:16}});function g(){return r[5](r[6])}return{c(){e=S("div"),l=S("span"),n=Z(t),o=G(),s=S("button"),O(a.$$.fragment),i=G(),this.h()},l(_){e=A(_,"DIV",{class:!0});var u=D(e);l=A(u,"SPAN",{class:!0});var m=D(l);n=j(m,t),m.forEach(d),o=x(u),s=A(u,"BUTTON",{title:!0,class:!0});var k=D(s);L(a.$$.fragment,k),k.forEach(d),i=x(u),u.forEach(d),this.h()},h(){y(l,"class","shrink"),y(s,"title","Remove sample"),y(s,"class","shrink-0 opacity-50 hover:text-red-400 hover:opacity-100"),y(e,"class","flex w-full justify-between gap-x-2 border-b border-gray-200 p-2 hover:bg-gray-50")},m(_,u){N(_,e,u),h(e,l),h(l,n),h(e,o),h(e,s),F(a,s,null),h(e,i),c=!0,f||(C=Be(s,"click",g),f=!0)},p(_,u){r=_,(!c||u&1)&&t!==(t=r[6].text+"")&&te(n,t)},i(_){c||(v(a.$$.fragment,_),c=!0)},o(_){V(a.$$.fragment,_),c=!1},d(_){_&&d(e),U(a),f=!1,C()}}}function Ol(r){let e,l,t,n,o,s;function a(g){r[3](g)}let i={labelText:"Add example"};r[1]!==void 0&&(i.value=r[1]),l=new Kt({props:i}),qe.push(()=>Ze(l,"value",a)),l.$on("keydown",r[4]);let c=[...r[0]].reverse(),f=[];for(let g=0;gV(f[g],1,1,()=>{f[g]=null});return{c(){e=S("div"),O(l.$$.fragment),n=G(),o=S("div");for(let g=0;gt=!1)),l.$set(u),_&5){c=[...g[0]].reverse();let m;for(m=0;m{c.key==="Enter"&&(o("add",n),l(1,n=""))},i=c=>o("remove",c.id);return r.$$set=c=>{"data"in c&&l(0,t=c.data)},[t,n,o,s,a,i]}class dt extends fe{constructor(e){super(),ue(this,e,Ll,Ol,de,{data:0})}}const He={not_good:"text-red-600",ok:"text-yellow-600",good:"text-green-600",very_good:"text-blue-600",great:"text-purple-600"},Ne={not_good:"Not good",ok:"OK",good:"Good",very_good:"Very good",great:"Great"};function Fl(r){let e,l,t,n,o,s=Ne[r[0].overall]+"",a,i,c,f,C,g,_,u=pe(r[0].f1)+"",m,k,z,M,$,E,p=pe(r[0].recall)+"",b,T,H,Y,B,I,w=pe(r[0].precision)+"",P,q,X,ae,oe,ce,J=pe(r[0].roc_auc)+"",ee;return{c(){e=S("table"),l=S("tr"),t=S("td"),n=Z("Overall score"),o=S("td"),a=Z(s),c=G(),f=S("tr"),C=S("td"),g=Z("F1"),_=S("td"),m=Z(u),k=G(),z=S("tr"),M=S("td"),$=Z("Recall"),E=S("td"),b=Z(p),T=G(),H=S("tr"),Y=S("td"),B=Z("Precision"),I=S("td"),P=Z(w),q=G(),X=S("tr"),ae=S("td"),oe=Z("Area under ROC"),ce=S("td"),ee=Z(J),this.h()},l(Q){e=A(Q,"TABLE",{class:!0});var R=D(e);l=A(R,"TR",{});var W=D(l);t=A(W,"TD",{class:!0});var he=D(t);n=j(he,"Overall score"),he.forEach(d),o=A(W,"TD",{class:!0});var _e=D(o);a=j(_e,s),_e.forEach(d),W.forEach(d),c=x(R),f=A(R,"TR",{});var me=D(f);C=A(me,"TD",{class:!0});var ge=D(C);g=j(ge,"F1"),ge.forEach(d),_=A(me,"TD",{class:!0});var Ee=D(_);m=j(Ee,u),Ee.forEach(d),me.forEach(d),k=x(R),z=A(R,"TR",{});var Ve=D(z);M=A(Ve,"TD",{class:!0});var De=D(M);$=j(De,"Recall"),De.forEach(d),E=A(Ve,"TD",{class:!0});var Ge=D(E);b=j(Ge,p),Ge.forEach(d),Ve.forEach(d),T=x(R),H=A(R,"TR",{});var Le=D(H);Y=A(Le,"TD",{class:!0});var xe=D(Y);B=j(xe,"Precision"),xe.forEach(d),I=A(Le,"TD",{class:!0});var We=D(I);P=j(We,w),We.forEach(d),Le.forEach(d),q=x(R),X=A(R,"TR",{});var Fe=D(X);ae=A(Fe,"TD",{class:!0});var Ke=D(ae);oe=j(Ke,"Area under ROC"),Ke.forEach(d),ce=A(Fe,"TD",{class:!0});var Je=D(ce);ee=j(Je,J),Je.forEach(d),Fe.forEach(d),R.forEach(d),this.h()},h(){y(t,"class","svelte-zc5pc5"),y(o,"class",i=Xe(He[r[0].overall])+" svelte-zc5pc5"),y(C,"class","svelte-zc5pc5"),y(_,"class","svelte-zc5pc5"),y(M,"class","svelte-zc5pc5"),y(E,"class","svelte-zc5pc5"),y(Y,"class","svelte-zc5pc5"),y(I,"class","svelte-zc5pc5"),y(ae,"class","svelte-zc5pc5"),y(ce,"class","svelte-zc5pc5"),y(e,"class","svelte-zc5pc5")},m(Q,R){N(Q,e,R),h(e,l),h(l,t),h(t,n),h(l,o),h(o,a),h(e,c),h(e,f),h(f,C),h(C,g),h(f,_),h(_,m),h(e,k),h(e,z),h(z,M),h(M,$),h(z,E),h(E,b),h(e,T),h(e,H),h(H,Y),h(Y,B),h(H,I),h(I,P),h(e,q),h(e,X),h(X,ae),h(ae,oe),h(X,ce),h(ce,ee)},p(Q,[R]){R&1&&s!==(s=Ne[Q[0].overall]+"")&&te(a,s),R&1&&i!==(i=Xe(He[Q[0].overall])+" svelte-zc5pc5")&&y(o,"class",i),R&1&&u!==(u=pe(Q[0].f1)+"")&&te(m,u),R&1&&p!==(p=pe(Q[0].recall)+"")&&te(b,p),R&1&&w!==(w=pe(Q[0].precision)+"")&&te(P,w),R&1&&J!==(J=pe(Q[0].roc_auc)+"")&&te(ee,J)},i:K,o:K,d(Q){Q&&d(e)}}}function Ul(r,e,l){let{metrics:t}=e;return r.$$set=n=>{"metrics"in n&&l(0,t=n.metrics)},[t]}class mt extends fe{constructor(e){super(),ue(this,e,Ul,Fl,de,{metrics:0})}}function ht(r,e,l){const t=r.slice();return t[21]=e[l],t}function Yl(r){let e;return{c(){e=Z("Compute")},l(l){e=j(l,"Compute")},m(l,t){N(l,e,t)},d(l){l&&d(e)}}}function _t(r){let e,l;return e=new Pe({props:{value:r[21].name}}),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},p(t,n){const o={};n&512&&(o.value=t[21].name),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function ql(r){var s;let e,l,t=((s=r[9])==null?void 0:s.data)||[],n=[];for(let a=0;aV(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;aZe(f,"selected",z));const $=[jl,Zl],E=[];function p(b,T){var H;return b[7]&&((H=b[2])!=null&&H.isFetching)?0:b[4]!=null&&b[0]!=null?1:-1}return~(u=p(r))&&(m=E[u]=$[u](r)),{c(){e=S("div"),l=S("div"),O(t.$$.fragment),n=G(),o=S("div"),s=S("div"),O(a.$$.fragment),i=G(),c=S("div"),O(f.$$.fragment),g=G(),_=S("div"),m&&m.c(),this.h()},l(b){e=A(b,"DIV",{class:!0});var T=D(e);l=A(T,"DIV",{});var H=D(l);L(t.$$.fragment,H),n=x(H),o=A(H,"DIV",{class:!0});var Y=D(o);s=A(Y,"DIV",{class:!0});var B=D(s);L(a.$$.fragment,B),B.forEach(d),i=x(Y),c=A(Y,"DIV",{class:!0});var I=D(c);L(f.$$.fragment,I),I.forEach(d),Y.forEach(d),H.forEach(d),g=x(T),_=A(T,"DIV",{class:!0});var w=D(_);m&&m.l(w),w.forEach(d),T.forEach(d),this.h()},h(){y(s,"class","pt-4"),y(c,"class","mb-2 w-32"),y(o,"class","flex flex-row justify-between"),y(_,"class","mt-4 border-gray-200"),Ie(_,"border-t",r[0]!=null),y(e,"class","flex flex-col gap-x-8")},m(b,T){N(b,e,T),h(e,l),F(t,l,null),h(l,n),h(l,o),h(o,s),F(a,s,null),h(o,i),h(o,c),F(f,c,null),h(e,g),h(e,_),~u&&E[u].m(_,null),k=!0},p(b,[T]){const H={};T&8&&(H.value=b[3]),t.$set(H);const Y={};T&16777216&&(Y.$$scope={dirty:T,ctx:b}),a.$set(Y);const B={};T&16777728&&(B.$$scope={dirty:T,ctx:b}),!C&&T&2&&(C=!0,B.selected=b[1],je(()=>C=!1)),f.$set(B);let I=u;u=p(b),u===I?~u&&E[u].p(b,T):(m&&(le(),V(E[I],1,1,()=>{E[I]=null}),ne()),~u?(m=E[u],m?m.p(b,T):(m=E[u]=$[u](b),m.c()),v(m,1),m.m(_,null)):m=null),(!k||T&1)&&Ie(_,"border-t",b[0]!=null)},i(b){k||(v(t.$$.fragment,b),v(a.$$.fragment,b),v(f.$$.fragment,b),v(m),k=!0)},o(b){V(t.$$.fragment,b),V(a.$$.fragment,b),V(f.$$.fragment,b),V(m),k=!1},d(b){b&&d(e),U(t),U(a),U(f),~u&&E[u].d()}}}function Gl(r,e,l){var w;let t,n,o,s,a=K,i=()=>(a(),a=ze(o,P=>l(2,s=P)),o),c,f=K,C=()=>(f(),f=ze(n,P=>l(17,c=P)),n),g,_;r.$$.on_destroy.push(()=>a()),r.$$.on_destroy.push(()=>f());let{concept:u}=e,{example:m}=e;const k=Nt();$e(r,k,P=>l(9,_=P));const z=jt();$e(r,z,P=>l(20,g=P));let M=(w=m.text)==null?void 0:w.trim();Gt(()=>{b()});function $(P){l(3,M=P.target.value),l(0,E=void 0)}let E,p=g.embedding;function b(){l(0,E=M)}let T,H,Y;const B=()=>b();function I(P){p=P,l(1,p)}return r.$$set=P=>{"concept"in P&&l(14,u=P.concept),"example"in P&&l(15,m=P.example)},r.$$.update=()=>{var P;if(r.$$.dirty&32768&&m.text&&(l(3,M=m.text.trim()),l(0,E=void 0)),r.$$.dirty&16386&&l(16,t={signal_name:"concept_score",concept_name:u.concept_name,namespace:u.namespace,embedding:p}),r.$$.dirty&65536&&C(l(8,n=t.embedding?Jt({signal:t}):void 0)),r.$$.dirty&16387&&i(l(7,o=p!=null&&E!=null?Xt(u.namespace,u.concept_name,p,{examples:[{text:E}]}):null)),r.$$.dirty&196614&&(s==null?void 0:s.data)!=null&&p!=null&&((P=c==null?void 0:c.data)==null?void 0:P.fields)!=null){const q=el(c.data.fields);q.signal=t,l(4,T=tl(s.data[0],q));const X=gl(q);l(6,Y=X.spanPaths),l(5,H=X.valuePaths)}},[E,p,s,M,T,H,Y,o,n,_,k,z,$,b,u,m,t,c,B,I]}class xl extends fe{constructor(e){super(),ue(this,e,Gl,Ql,de,{concept:14,example:15})}}function Wl(r,e,l,t,n,o){const s={...r};if(e==null||l==null)return s;const a=[...e,...l],i=new Set,c=[];for(const u of a){const m=Te.value(Ce(u,[Re]),"string");if(m==null||i.has(m))continue;i.add(m);const k=Ce(u,n);if(k==null)continue;const z=Te.value(k,"string");if(z==null)continue;const M=`${t.namespace}/${t.concept_name}`,$=Ce(k,[`${M}/${o}`]);if($==null)continue;const E=Ce(k,[`${M}/labels`]),p=[];if(E!=null)for(const b of E){const T=Te.value(b,"string_span");T!=null&&p.push(T)}for(const b of $){const T=Te.value(b,"string_span");if(T==null||!p.every(I=>I.start>T.end||I.endm.score-u.score);const C=c[0],g=c.slice().reverse().find(u=>u!=C);c.sort((u,m)=>Math.abs(u.score-.5)-Math.abs(m.score-.5));const _=c.find(u=>u!=C&&u!=g);return C!=null&&s.positive==null&&(s.positive=f(C)),_!=null&&s.neutral==null&&(s.neutral=f(_)),g!=null&&s.negative==null&&(s.negative=f(g)),s}function gt(r,e,l){const t=r.slice();return t[20]=e[l],t}function Kl(r){const e=r.slice(),l=tn(e[20].score);e[23]=l;const t=ln(e[20].score);return e[24]=t,e}function Jl(r){let e,l,t,n,o,s,a,i,c,f=r[20].text+"",C,g,_,u=r[24]+"",m,k,z=pe(r[20].score,2)+"",M,$,E,p,b,T;n=new qt({});function H(){return r[17](r[20])}a=new Zt({});function Y(){return r[18](r[20])}return{c(){e=S("div"),l=S("div"),t=S("button"),O(n.$$.fragment),o=G(),s=S("button"),O(a.$$.fragment),i=G(),c=S("div"),C=Z(f),g=G(),_=S("div"),m=Z(u),k=G(),M=Z(z),$=G(),this.h()},l(B){e=A(B,"DIV",{class:!0});var I=D(e);l=A(I,"DIV",{class:!0});var w=D(l);t=A(w,"BUTTON",{class:!0});var P=D(t);L(n.$$.fragment,P),P.forEach(d),o=x(w),s=A(w,"BUTTON",{class:!0});var q=D(s);L(a.$$.fragment,q),q.forEach(d),w.forEach(d),i=x(I),c=A(I,"DIV",{class:!0});var X=D(c);C=j(X,f),X.forEach(d),g=x(I),_=A(I,"DIV",{class:!0});var ae=D(_);m=j(ae,u),k=x(ae),M=j(ae,z),ae.forEach(d),$=x(I),I.forEach(d),this.h()},h(){y(t,"class","p-2 hover:bg-gray-200"),Ie(t,"text-blue-500",r[20].label===!0),y(s,"class","p-2 hover:bg-gray-200"),Ie(s,"text-red-500",r[20].label===!1),y(l,"class","mr-2 flex flex-shrink-0 gap-x-1"),y(c,"class","flex-grow"),y(_,"class","w-40 flex-shrink-0 text-right"),y(e,"class",E=`flex flex-grow items-center rounded-md border border-gray-300 p-4 pl-2 ${r[23]}`)},m(B,I){N(B,e,I),h(e,l),h(l,t),F(n,t,null),h(l,o),h(l,s),F(a,s,null),h(e,i),h(e,c),h(c,C),h(e,g),h(e,_),h(_,m),h(_,k),h(_,M),h(e,$),p=!0,b||(T=[Be(t,"click",H),Be(s,"click",Y)],b=!0)},p(B,I){r=B,(!p||I&1)&&Ie(t,"text-blue-500",r[20].label===!0),(!p||I&1)&&Ie(s,"text-red-500",r[20].label===!1),(!p||I&1)&&f!==(f=r[20].text+"")&&te(C,f),(!p||I&1)&&u!==(u=r[24]+"")&&te(m,u),(!p||I&1)&&z!==(z=pe(r[20].score,2)+"")&&te(M,z),(!p||I&1&&E!==(E=`flex flex-grow items-center rounded-md border border-gray-300 p-4 pl-2 ${r[23]}`))&&y(e,"class",E)},i(B){p||(v(n.$$.fragment,B),v(a.$$.fragment,B),p=!0)},o(B){V(n.$$.fragment,B),V(a.$$.fragment,B),p=!1},d(B){B&&d(e),U(n),U(a),b=!1,xt(T)}}}function Xl(r){let e,l;return e=new Ot({props:{paragraph:!0,lines:2}}),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},p:K,i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function pt(r){let e,l,t,n;const o=[Xl,Jl],s=[];function a(c,f){return c[20]==null?0:1}function i(c,f){return f===1?Kl(c):c}return e=a(r),l=s[e]=o[e](i(r,e)),{c(){l.c(),t=ke()},l(c){l.l(c),t=ke()},m(c,f){s[e].m(c,f),N(c,t,f),n=!0},p(c,f){let C=e;e=a(c),e===C?s[e].p(i(c,e),f):(le(),V(s[C],1,1,()=>{s[C]=null}),ne(),l=s[e],l?l.p(i(c,e),f):(l=s[e]=o[e](i(c,e)),l.c()),v(l,1),l.m(t.parentNode,t))},i(c){n||(v(l),n=!0)},o(c){V(l),n=!1},d(c){s[e].d(c),c&&d(t)}}}function en(r){let e,l,t=r[0],n=[];for(let s=0;sV(n[s],1,1,()=>{n[s]=null});return{c(){e=S("div");for(let s=0;s(C(),C=ze(a,I=>l(15,f=I)),a),_,u=K,m=()=>(u(),u=ze(n,I=>l(16,_=I)),n);r.$$.on_destroy.push(()=>C()),r.$$.on_destroy.push(()=>u());let{dataset:k}=e,{concept:z}=e,{fieldPath:M}=e,{schema:$}=e,{embedding:E}=e;const p=Lt();$e(r,p,I=>l(19,c=I));let b={},T={};function H(I,w){if(I==null)return;const P={text:I.text,label:w},q=Object.keys(T).find(X=>T[X]===I);l(10,b={...T}),c.mutate([z.namespace,z.concept_name,{insert:[P]}],{onSuccess:()=>l(10,b={...b,[q]:void 0})})}const Y=I=>H(I,!0),B=I=>H(I,!1);return r.$$set=I=>{"dataset"in I&&l(5,k=I.dataset),"concept"in I&&l(6,z=I.concept),"fieldPath"in I&&l(7,M=I.fieldPath),"schema"in I&&l(8,$=I.schema),"embedding"in I&&l(9,E=I.embedding)},r.$$.update=()=>{var I,w;r.$$.dirty&704&&l(14,t={path:M,type:"concept",concept_namespace:z.namespace,concept_name:z.concept_name,embedding:E}),r.$$.dirty&16800&&m(l(2,n=et(k.namespace,k.name,{columns:[Re,M],limit:bt,combine_columns:!0,searches:[t]},$))),r.$$.dirty&576&&l(13,o={signal_name:"concept_score",namespace:z.namespace,concept_name:z.concept_name,embedding:E}),r.$$.dirty&64&&l(12,s={signal_name:"concept_labels",namespace:z.namespace,concept_name:z.concept_name}),r.$$.dirty&12704&&g(l(1,a=et(k.namespace,k.name,{columns:[Re,M,{path:M,signal_udf:o},{path:M,signal_udf:s}],limit:bt,combine_columns:!0,sort_by:[Re]},$))),r.$$.dirty&100032&&l(11,T=Wl(b,_.isFetching||(I=_.data)==null?void 0:I.rows,f.isFetching||(w=f.data)==null?void 0:w.rows,z,M,E)),r.$$.dirty&2048&&l(0,i=[T.positive,T.neutral,T.negative])},[i,a,n,p,H,k,z,M,$,E,b,T,s,o,t,f,_,Y,B]}class rn extends fe{constructor(e){super(),ue(this,e,nn,en,de,{dataset:5,concept:6,fieldPath:7,schema:8,embedding:9})}}function vt(r,e,l){const t=r.slice();return t[23]=e[l],t}function wt(r,e,l){const t=r.slice();return t[26]=e[l],t}function kt(r,e,l){const t=r.slice();return t[7]=e[l],t}function sn(r){let e,l;return e=new Oe({props:{labelText:"Dataset",selected:r[10],$$slots:{default:[cn]},$$scope:{ctx:r}}}),e.$on("change",r[14]),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},p(t,n){const o={};n[0]&1024&&(o.selected=t[10]),n[0]&64|n[1]&1&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function an(r){let e,l;return e=new Ft({props:{kind:"error",title:"Error",subtitle:r[6].error.message,hideCloseButton:!0}}),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},p(t,n){const o={};n[0]&64&&(o.subtitle=t[6].error.message),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function on(r){let e,l;return e=new Ut({}),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},p:K,i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function $t(r){let e,l;return e=new Pe({props:{value:`${r[7].namespace}/${r[7].dataset_name}`}}),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},p(t,n){const o={};n[0]&64&&(o.value=`${t[7].namespace}/${t[7].dataset_name}`),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function cn(r){let e,l,t,n;e=new Pe({props:{value:"",text:"none"}});let o=r[6].data,s=[];for(let i=0;iV(s[i],1,1,()=>{s[i]=null});return{c(){O(e.$$.fragment),l=G();for(let i=0;iV(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sZe(e,"selected",n)),{c(){O(e.$$.fragment)},l(s){L(e.$$.fragment,s)},m(s,a){F(e,s,a),t=!0},p(s,a){const i={};a[0]&512|a[1]&1&&(i.$$scope={dirty:a,ctx:s}),!l&&a[0]&8&&(l=!0,i.selected=s[3],je(()=>l=!1)),e.$set(i)},i(s){t||(v(e.$$.fragment,s),t=!0)},o(s){V(e.$$.fragment,s),t=!1},d(s){U(e,s)}}}function Dt(r){let e,l;return e=new Pe({props:{value:r[23]}}),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},p(t,n){const o={};n[0]&512&&(o.value=t[23]),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function hn(r){let e,l,t=r[9],n=[];for(let s=0;sV(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s0?2:-1}~(t=u(r))&&(n=_[t]=g[t](r));const m=[dn,un,fn],k=[];function z(p,b){return p[5].isLoading?0:p[5].isError?1:p[4].length>0?2:-1}~(s=z(r))&&(a=k[s]=m[s](r));let M=r[9].length>0&&Vt(r),$=r[8]!=null&&r[3]!=null&&Mt(r),E=r[7]!=null&&r[2]!=null&&r[1]!=null&&r[3]!=null&&It(r);return{c(){e=S("div"),l=S("div"),n&&n.c(),o=G(),a&&a.c(),i=G(),M&&M.c(),c=G(),$&&$.c(),f=G(),E&&E.c(),this.h()},l(p){e=A(p,"DIV",{class:!0});var b=D(e);l=A(b,"DIV",{class:!0});var T=D(l);n&&n.l(T),o=x(T),a&&a.l(T),i=x(T),M&&M.l(T),c=x(T),$&&$.l(T),T.forEach(d),f=x(b),E&&E.l(b),b.forEach(d),this.h()},h(){y(l,"class","flex flex-row gap-x-2"),y(e,"class","flex flex-col gap-y-4")},m(p,b){N(p,e,b),h(e,l),~t&&_[t].m(l,null),h(l,o),~s&&k[s].m(l,null),h(l,i),M&&M.m(l,null),h(l,c),$&&$.m(l,null),h(e,f),E&&E.m(e,null),C=!0},p(p,b){let T=t;t=u(p),t===T?~t&&_[t].p(p,b):(n&&(le(),V(_[T],1,1,()=>{_[T]=null}),ne()),~t?(n=_[t],n?n.p(p,b):(n=_[t]=g[t](p),n.c()),v(n,1),n.m(l,o)):n=null);let H=s;s=z(p),s===H?~s&&k[s].p(p,b):(a&&(le(),V(k[H],1,1,()=>{k[H]=null}),ne()),~s?(a=k[s],a?a.p(p,b):(a=k[s]=m[s](p),a.c()),v(a,1),a.m(l,i)):a=null),p[9].length>0?M?(M.p(p,b),b[0]&512&&v(M,1)):(M=Vt(p),M.c(),v(M,1),M.m(l,c)):M&&(le(),V(M,1,1,()=>{M=null}),ne()),p[8]!=null&&p[3]!=null?$?($.p(p,b),b[0]&264&&v($,1)):($=Mt(p),$.c(),v($,1),$.m(l,null)):$&&(le(),V($,1,1,()=>{$=null}),ne()),p[7]!=null&&p[2]!=null&&p[1]!=null&&p[3]!=null?E?(E.p(p,b),b[0]&142&&v(E,1)):(E=It(p),E.c(),v(E,1),E.m(e,null)):E&&(le(),V(E,1,1,()=>{E=null}),ne())},i(p){C||(v(n),v(a),v(M),v($),v(E),C=!0)},o(p){V(n),V(a),V(M),V($),V(E),C=!1},d(p){p&&d(e),~t&&_[t].d(),~s&&k[s].d(),M&&M.d(),$&&$.d(),E&&E.d()}}}function gn(r,e,l){let t,n,o,s,a,i,c,f,C,g,_=K,u=()=>(_(),_=ze(o,w=>l(5,g=w)),o),m,k;r.$$.on_destroy.push(()=>_());let{concept:z}=e;const M=jt();$e(r,M,w=>l(20,k=w));let $,E,p,b;const T=ll();$e(r,T,w=>l(6,m=w));function H(w){const P=w.target.value;if(P==="")l(7,$=null);else{const[q,X]=P.split("/");l(7,$={namespace:q,name:X})}}function Y(w){const P=w.target.value;l(2,p=il(P))}function B(){if(a==null||b==null||$==null)return;ol(t,$.namespace,$.name).addSearch({path:[a],type:"concept",concept_namespace:z.namespace,concept_name:z.concept_name,embedding:b}),bl(vl($.namespace,$.name))}function I(w){b=w,l(3,b),l(17,f),l(2,p),l(1,E),l(4,c),l(5,g),l(19,i)}return r.$$set=w=>{"concept"in w&&l(0,z=w.concept)},r.$$.update=()=>{if(r.$$.dirty[0]&1048576&&l(18,n=[k.embedding,"gte-small","gte-base","openai","sbert"]),r.$$.dirty[0]&192&&m.data&&m.data.length>0&&$===void 0&&l(7,$={namespace:m.data[0].namespace,name:m.data[0].dataset_name}),r.$$.dirty[0]&128&&u(l(11,o=nl($==null?void 0:$.namespace,$==null?void 0:$.name))),r.$$.dirty[0]&128&&l(10,s=$?`${$.namespace}/${$.name}`:""),r.$$.dirty[0]&32&&l(1,E=g.data),r.$$.dirty[0]&2&&l(19,i=E?ye(E).filter(w=>!rl(w,E)&&w.dtype!=null):[]),r.$$.dirty[0]&524288&&l(4,c=i.filter(w=>ye(w).some(P=>P.signal!=null&&ye(P).some(q=>q.dtype==="embedding")))),r.$$.dirty[0]&20&&p!=null){const w=Se(p);c.some(q=>Se(q.path)===w)||l(2,p=void 0)}r.$$.dirty[0]&20&&c.length>0&&p==null&&l(2,p=c[0].path),r.$$.dirty[0]&4&&l(8,a=p?Se(p):void 0),r.$$.dirty[0]&6&&l(17,f=p&&E?ye(sl(E,p)).filter(w=>w.signal!=null&&ye(w).some(P=>P.dtype==="embedding")):[]),r.$$.dirty[0]&393216&&l(9,C=f.map(w=>w.signal.signal_name).sort((w,P)=>{let q=n.indexOf(w),X=n.indexOf(P);return q===-1&&(q=n.length),X===-1&&(X=n.length),q-X})),r.$$.dirty[0]&131080&&b!=null&&(f.some(P=>P.path.at(-1)===b)||l(3,b=void 0))},t=al(),[z,E,p,b,c,g,m,$,a,C,s,o,M,T,H,Y,B,f,n,i,k,I]}class pn extends fe{constructor(e){super(),ue(this,e,gn,_n,de,{concept:0},null,[-1,-1])}}function zt(r,e,l){const t=r.slice();t[23]=e[l];const n=t[3][t[23].name];t[24]=n;const o=t[9].isLoading&&t[9].variables&&t[9].variables[2]==t[23].name;return t[25]=o,t}function Tt(r){let e,l,t,n,o;return l=new Sl({props:{class:"ml-2"}}),{c(){e=S("div"),O(l.$$.fragment)},l(s){e=A(s,"DIV",{});var a=D(e);L(l.$$.fragment,a),a.forEach(d)},m(s,a){N(s,e,a),F(l,e,null),t=!0,n||(o=Ht(Yt.call(null,e,{text:"Your concepts are only visible to you when logged in with Google."})),n=!0)},i(s){t||(v(l.$$.fragment,s),t=!0)},o(s){V(l.$$.fragment,s),t=!1},d(s){s&&d(e),U(l),n=!1,o()}}}function Ct(r){let e,l=r[0].description+"",t;return{c(){e=S("div"),t=Z(l),this.h()},l(n){e=A(n,"DIV",{class:!0});var o=D(e);t=j(o,l),o.forEach(d),this.h()},h(){y(e,"class","text text-base text-gray-600")},m(n,o){N(n,e,o),h(e,t)},p(n,o){o&1&&l!==(l=n[0].description+"")&&te(t,l)},d(n){n&&d(e)}}}function bn(r){let e,l;return{c(){e=S("div"),l=Z("Try it"),this.h()},l(t){e=A(t,"DIV",{slot:!0,class:!0});var n=D(e);l=j(n,"Try it"),n.forEach(d),this.h()},h(){y(e,"slot","above"),y(e,"class","text-md font-semibold")},m(t,n){N(t,e,n),h(e,l)},p:K,d(t){t&&d(e)}}}function vn(r){let e,l;return e=new xl({props:{example:r[4],concept:r[0],slot:"below"}}),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},p(t,n){const o={};n&16&&(o.example=t[4]),n&1&&(o.concept=t[0]),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function yt(r){let e,l;return e=new Ye({props:{expanded:!0,$$slots:{below:[Dn],above:[wn]},$$scope:{ctx:r}}}),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},p(t,n){const o={};n&268436237&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function wn(r){let e,l;return{c(){e=S("div"),l=Z("Metrics"),this.h()},l(t){e=A(t,"DIV",{slot:!0,class:!0});var n=D(e);l=j(n,"Metrics"),n.forEach(d),this.h()},h(){y(e,"slot","above"),y(e,"class","text-md font-semibold")},m(t,n){N(t,e,n),h(e,l)},p:K,d(t){t&&d(e)}}}function kn(r){let e,l;function t(){return r[17](r[23])}return e=new Qe({props:{icon:r[25]?Ue:nt,class:"w-28 text-3xl",$$slots:{default:[Vn]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){O(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){F(e,n,o),l=!0},p(n,o){r=n;const s={};o&768&&(s.icon=r[25]?Ue:nt),o&268435456&&(s.$$scope={dirty:o,ctx:r}),e.$set(s)},i(n){l||(v(e.$$.fragment,n),l=!0)},o(n){V(e.$$.fragment,n),l=!1},d(n){U(e,n)}}}function $n(r){let e,l=Ne[r[24].metrics.overall]+"",t,n,o,s,a;return{c(){e=S("div"),t=Z(l),this.h()},l(i){e=A(i,"DIV",{class:!0});var c=D(e);t=j(c,l),c.forEach(d),this.h()},h(){y(e,"class",n="concept-score-pill cursor-default text-2xl font-light "+He[r[24].metrics.overall])},m(i,c){N(i,e,c),h(e,t),s||(a=Ht(o=Yt.call(null,e,{component:mt,props:{metrics:r[24].metrics}})),s=!0)},p(i,c){r=i,c&264&&l!==(l=Ne[r[24].metrics.overall]+"")&&te(t,l),c&264&&n!==(n="concept-score-pill cursor-default text-2xl font-light "+He[r[24].metrics.overall])&&y(e,"class",n),o&&Wt(o.update)&&c&264&&o.update.call(null,{component:mt,props:{metrics:r[24].metrics}})},i:K,o:K,d(i){i&&d(e),s=!1,a()}}}function En(r){let e,l;return e=new Ue({}),{c(){O(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){F(e,t,n),l=!0},p:K,i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Vn(r){let e;return{c(){e=Z("Compute")},l(l){e=j(l,"Compute")},m(l,t){N(l,e,t)},d(l){l&&d(e)}}}function St(r){let e,l,t=r[23].name+"",n,o,s,a,i,c;const f=[En,$n,kn],C=[];function g(_,u){return _[2].isLoading?0:_[24]&&_[24].metrics?1:2}return s=g(r),a=C[s]=f[s](r),{c(){e=S("div"),l=S("div"),n=Z(t),o=G(),a.c(),i=G(),this.h()},l(_){e=A(_,"DIV",{class:!0});var u=D(e);l=A(u,"DIV",{class:!0});var m=D(l);n=j(m,t),m.forEach(d),o=x(u),a.l(u),i=x(u),u.forEach(d),this.h()},h(){y(l,"class","text-gray-500"),y(e,"class","flex w-36 flex-col items-center gap-y-2 rounded-md border border-b-0 border-gray-200 p-4 shadow-md")},m(_,u){N(_,e,u),h(e,l),h(l,n),h(e,o),C[s].m(e,null),h(e,i),c=!0},p(_,u){(!c||u&256)&&t!==(t=_[23].name+"")&&te(n,t);let m=s;s=g(_),s===m?C[s].p(_,u):(le(),V(C[m],1,1,()=>{C[m]=null}),ne(),a=C[s],a?a.p(_,u):(a=C[s]=f[s](_),a.c()),v(a,1),a.m(e,i))},i(_){c||(v(a),c=!0)},o(_){V(a),c=!1},d(_){_&&d(e),C[s].d()}}}function Dn(r){let e,l,t=r[8].data,n=[];for(let s=0;sV(n[s],1,1,()=>{n[s]=null});return{c(){e=S("div");for(let s=0;s{J=null}),ne()),R[0].description?ee?ee.p(R,W):(ee=Ct(R),ee.c(),ee.m(l,null)):ee&&(ee.d(1),ee=null);const he={};W&268435473&&(he.$$scope={dirty:W,ctx:R}),c.$set(he),R[8].data?Q?(Q.p(R,W),W&256&&v(Q,1)):(Q=yt(R),Q.c(),v(Q,1),Q.m(e,C)):Q&&(le(),V(Q,1,1,()=>{Q=null}),ne());const _e={};W&268435457&&(_e.$$scope={dirty:W,ctx:R}),g.$set(_e),(!ce||W&2)&&$!==($=R[1].length+"")&&te(E,$);const me={};W&2&&(me.data=R[1]),T.$set(me),(!ce||W&32)&&P!==(P=R[5].length+"")&&te(q,P);const ge={};W&32&&(ge.data=R[5]),oe.$set(ge)},i(R){ce||(v(J),v(c.$$.fragment,R),v(Q),v(g.$$.fragment,R),v(z.$$.fragment,R),v(T.$$.fragment,R),v(I.$$.fragment,R),v(oe.$$.fragment,R),ce=!0)},o(R){V(J),V(c.$$.fragment,R),V(Q),V(g.$$.fragment,R),V(z.$$.fragment,R),V(T.$$.fragment,R),V(I.$$.fragment,R),V(oe.$$.fragment,R),ce=!1},d(R){R&&d(e),J&&J.d(),ee&&ee.d(),U(c),Q&&Q.d(),U(g),U(z),U(T),U(I),U(oe)}}}function Tn(r,e,l){let t,n,o,s,a,i,c,f=K,C=()=>(f(),f=ze(n,w=>l(2,c=w)),n),g,_,u;r.$$.on_destroy.push(()=>f());let{concept:m}=e;const k=cl();$e(r,k,w=>l(16,g=w));const z=Lt();$e(r,z,w=>l(22,i=w));const M=Nt();$e(r,M,w=>l(8,_=w));let $={};const E=fl();$e(r,E,w=>l(9,u=w));function p(w){!m.namespace||!m.concept_name||i.mutate([m.namespace,m.concept_name,{remove:[w]}])}function b(w,P){!m.namespace||!m.concept_name||i.mutate([m.namespace,m.concept_name,{insert:[{text:w,label:P}]}])}const T=w=>u.mutate([m.namespace,m.concept_name,w.name]),H=w=>p(w.detail),Y=w=>b(w.detail,!0),B=w=>p(w.detail),I=w=>b(w.detail,!1);return r.$$set=w=>{"concept"in w&&l(0,m=w.concept)},r.$$.update=()=>{var w,P;if(r.$$.dirty&65536&&l(7,t=(P=(w=g.data)==null?void 0:w.user)==null?void 0:P.id),r.$$.dirty&1&&C(l(6,n=ul(m.namespace,m.concept_name))),r.$$.dirty&4&&c.data){l(3,$={});for(const q of c.data)l(3,$[q.embedding_name]=q,$)}r.$$.dirty&1&&l(1,o=Object.values(m.data).filter(q=>q.label==!0)),r.$$.dirty&1&&l(5,s=Object.values(m.data).filter(q=>q.label==!1)),r.$$.dirty&2&&l(4,a=o[Math.floor(Math.random()*o.length)])},[m,o,c,$,a,s,n,t,_,u,k,z,M,E,p,b,g,T,H,Y,B,I]}class On extends fe{constructor(e){super(),ue(this,e,Tn,zn,de,{concept:0})}}export{On as C,Nn as I,Tl as T,nt as a}; diff --git a/lilac/web/_app/immutable/chunks/Page.7d66a333.js b/lilac/web/_app/immutable/chunks/Page.7d66a333.js new file mode 100644 index 0000000000000000000000000000000000000000..161d93d78670442e1c8f6a34e2d4e5a34bace553 --- /dev/null +++ b/lilac/web/_app/immutable/chunks/Page.7d66a333.js @@ -0,0 +1,5 @@ +import{S as me,i as be,s as _e,E as y,_ as K,$ as W,m as M,h as b,n as I,a0 as De,b as R,J as z,O as ge,a1 as le,D as Z,F as ie,q as Y,r as F,u as te,G as fe,ap as ht,e as he,a as X,k as B,aq as mt,ar as bt,c as J,l as L,I as ne,H as c,K as H,L as ue,M as de,N as ce,g as V,v as ve,d as A,f as pe,P as Oe,ai as st,C as at,R as Ie,T as _t,j as ft,x as Se,y as x,z as oe,A as $,B as ee,Q as we,w as Me,ah as gt,p as ye,ad as vt,a7 as He,aa as ut,X as pt,Y as kt,ab as wt,a8 as Et}from"./index.27e2a960.js";import{aY as Tt,aZ as It,a_ as qe,a$ as Ue,b0 as Dt,l as Ge,b1 as Ct,b2 as zt,b3 as Mt,q as Ot,c as dt,h as Ye,b4 as Vt,b5 as At,f as Rt,B as Bt}from"./Commands.2fa1e469.js";import{w as Pe}from"./index.7efffca5.js";function Fe(l){let e,t;return{c(){e=K("title"),t=Y(l[1])},l(i){e=W(i,"title",{});var o=M(e);t=F(o,l[1]),o.forEach(b)},m(i,o){R(i,e,o),z(e,t)},p(i,o){o&2&&te(t,i[1])},d(i){i&&b(e)}}}function Lt(l){let e,t,i,o,s=l[1]&&Fe(l),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],a={};for(let r=0;r{t(5,e=y(y({},e),ie(f))),t(3,n=Z(e,s)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,r=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||r),t(2,o={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ie(e),[a,r,o,n,i]}class St extends me{constructor(e){super(),be(this,e,Pt,Lt,_e,{size:0,title:1})}}const yt=St;function je(l){let e,t;return{c(){e=K("title"),t=Y(l[1])},l(i){e=W(i,"title",{});var o=M(e);t=F(o,l[1]),o.forEach(b)},m(i,o){R(i,e,o),z(e,t)},p(i,o){o&2&&te(t,i[1])},d(i){i&&b(e)}}}function Nt(l){let e,t,i,o,s=l[1]&&je(l),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],a={};for(let r=0;r{t(5,e=y(y({},e),ie(f))),t(3,n=Z(e,s)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,r=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||r),t(2,o={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ie(e),[a,r,o,n,i]}class Ut extends me{constructor(e){super(),be(this,e,qt,Nt,_e,{size:0,title:1})}}const Gt=Ut,Ht=l=>({}),Qe=l=>({});function Yt(l){let e,t,i;var o=l[1];function s(n){return{props:{"aria-label":n[10],title:n[10],class:"bx--overflow-menu__icon "+n[9]}}}return o&&(e=Se(o,s(l))),{c(){e&&x(e.$$.fragment),t=he()},l(n){e&&oe(e.$$.fragment,n),t=he()},m(n,a){e&&$(e,n,a),R(n,t,a),i=!0},p(n,a){const r={};if(a[0]&1024&&(r["aria-label"]=n[10]),a[0]&1024&&(r.title=n[10]),a[0]&512&&(r.class="bx--overflow-menu__icon "+n[9]),a[0]&2&&o!==(o=n[1])){if(e){ve();const f=e;A(f.$$.fragment,1,0,()=>{ee(f,1)}),pe()}o?(e=Se(o,s(n)),x(e.$$.fragment),V(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}else o&&e.$set(r)},i(n){i||(e&&V(e.$$.fragment,n),i=!0)},o(n){e&&A(e.$$.fragment,n),i=!1},d(n){n&&b(t),e&&ee(e,n)}}}function Xe(l){let e,t;const i=l[24].default,o=fe(i,l,l[23],null);return{c(){e=B("ul"),o&&o.c(),this.h()},l(s){e=L(s,"UL",{role:!0,tabindex:!0,"aria-label":!0,"data-floating-menu-direction":!0,class:!0});var n=M(e);o&&o.l(n),n.forEach(b),this.h()},h(){I(e,"role","menu"),I(e,"tabindex","-1"),I(e,"aria-label",l[13]),I(e,"data-floating-menu-direction",l[5]),I(e,"class",l[8]),c(e,"bx--overflow-menu-options",!0),c(e,"bx--overflow-menu--flip",l[7]),c(e,"bx--overflow-menu-options--open",l[0]),c(e,"bx--overflow-menu-options--light",l[6]),c(e,"bx--overflow-menu-options--sm",l[4]==="sm"),c(e,"bx--overflow-menu-options--xl",l[4]==="xl"),c(e,"bx--breadcrumb-menu-options",!!l[14])},m(s,n){R(s,e,n),o&&o.m(e,null),l[31](e),t=!0},p(s,n){o&&o.p&&(!t||n[0]&8388608)&&ue(o,i,s,s[23],t?ce(i,s[23],n,null):de(s[23]),null),(!t||n[0]&8192)&&I(e,"aria-label",s[13]),(!t||n[0]&32)&&I(e,"data-floating-menu-direction",s[5]),(!t||n[0]&256)&&I(e,"class",s[8]),(!t||n[0]&256)&&c(e,"bx--overflow-menu-options",!0),(!t||n[0]&384)&&c(e,"bx--overflow-menu--flip",s[7]),(!t||n[0]&257)&&c(e,"bx--overflow-menu-options--open",s[0]),(!t||n[0]&320)&&c(e,"bx--overflow-menu-options--light",s[6]),(!t||n[0]&272)&&c(e,"bx--overflow-menu-options--sm",s[4]==="sm"),(!t||n[0]&272)&&c(e,"bx--overflow-menu-options--xl",s[4]==="xl"),(!t||n[0]&16640)&&c(e,"bx--breadcrumb-menu-options",!!s[14])},i(s){t||(V(o,s),t=!0)},o(s){A(o,s),t=!1},d(s){s&&b(e),o&&o.d(s),l[31](null)}}}function Ft(l){let e,t,i,o,s,n,a,r;const f=l[24].menu,d=fe(f,l,l[23],Qe),u=d||Yt(l);let _=l[0]&&Xe(l),v=[{type:"button"},{"aria-haspopup":""},{"aria-expanded":l[0]},{"aria-label":l[13]},{id:l[11]},l[19]],T={};for(let g=0;g{_=null}),pe()),ne(o,T=ge(v,[{type:"button"},{"aria-haspopup":""},(!n||k[0]&1)&&{"aria-expanded":g[0]},(!n||k[0]&8192)&&{"aria-label":g[13]},(!n||k[0]&2048)&&{id:g[11]},k[0]&524288&&g[19]])),c(o,"bx--overflow-menu",!0),c(o,"bx--overflow-menu--open",g[0]),c(o,"bx--overflow-menu--light",g[6]),c(o,"bx--overflow-menu--sm",g[4]==="sm"),c(o,"bx--overflow-menu--xl",g[4]==="xl")},i(g){n||(V(u,g),V(_),n=!0)},o(g){A(u,g),A(_),n=!1},d(g){b(t),g&&e.d(),g&&b(i),g&&b(o),u&&u.d(g),_&&_.d(),l[32](null),a=!1,Oe(r)}}}function jt(l,e,t){let i,o;const s=["size","direction","open","light","flipped","menuOptionsClass","icon","iconClass","iconDescription","id","buttonRef","menuRef"];let n=Z(e,s),a,r,f,{$$slots:d={},$$scope:u}=e,{size:_=void 0}=e,{direction:v="bottom"}=e,{open:T=!1}=e,{light:g=!1}=e,{flipped:k=!1}=e,{menuOptionsClass:w=void 0}=e,{icon:h=yt}=e,{iconClass:C=void 0}=e,{iconDescription:D="Open and close list of options"}=e,{id:E="ccs-"+Math.random().toString(36)}=e,{buttonRef:O=null}=e,{menuRef:P=null}=e;const N=st("BreadcrumbItem"),re=at(),G=Pe([]);Ie(l,G,p=>t(22,r=p));const se=Pe(void 0);Ie(l,se,p=>t(37,f=p));const j=Pe(void 0),S=Pe(-1);Ie(l,S,p=>t(21,a=p));let ae,Q=!0;_t("OverflowMenu",{focusedId:j,add:({id:p,text:U,primaryFocus:Ce,disabled:ct})=>{G.update(Ne=>(Ce&&S.set(Ne.length),[...Ne,{id:p,text:U,primaryFocus:Ce,disabled:ct,index:Ne.length}]))},update:p=>{se.set(p)},change:p=>{let U=a+p;U<0?U=r.length-1:U>=r.length&&(U=0);let Ce=r[U].disabled;for(;Ce;)U=U+p,U<0?U=r.length-1:U>=r.length&&(U=0),Ce=r[U].disabled;S.set(U)}}),ft(()=>{if(f){const{index:p,text:U}=r.filter(Ce=>Ce.id===f)[0];re("close",{index:p,text:U}),t(0,T=!1)}if(T){const{width:p,height:U}=O.getBoundingClientRect();t(20,ae=p),!Q&&a<0&&P.focus(),k&&(t(3,P.style.left="auto",P),t(3,P.style.right=0,P)),v==="top"?(t(3,P.style.top="auto",P),t(3,P.style.bottom=U+"px",P)):v==="bottom"&&t(3,P.style.top=U+"px",P),N&&(t(3,P.style.top=U+10+"px",P),t(3,P.style.left="-11px",P))}T||(G.set([]),se.set(void 0),S.set(0)),Q=!1});function ze(p){we.call(this,l,p)}function m(p){we.call(this,l,p)}function q(p){we.call(this,l,p)}function ke(p){we.call(this,l,p)}function Ve(p){we.call(this,l,p)}const Ee=({target:p})=>{O&&O.contains(p)||P&&!P.contains(p)&&t(0,T=!1)};function Ae(p){Me[p?"unshift":"push"](()=>{P=p,t(3,P)})}function Re(p){Me[p?"unshift":"push"](()=>{O=p,t(2,O)})}const Be=({target:p})=>{P&&P.contains(p)||(t(0,T=!T),T||re("close"))},Te=p=>{T&&(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp"].includes(p.key)?p.preventDefault():p.key==="Escape"&&(p.stopPropagation(),re("close"),t(0,T=!1),O.focus()))},Le=p=>{T&&(O.contains(p.relatedTarget)||(re("close"),t(0,T=!1)))};return l.$$set=p=>{t(39,e=y(y({},e),ie(p))),t(19,n=Z(e,s)),"size"in p&&t(4,_=p.size),"direction"in p&&t(5,v=p.direction),"open"in p&&t(0,T=p.open),"light"in p&&t(6,g=p.light),"flipped"in p&&t(7,k=p.flipped),"menuOptionsClass"in p&&t(8,w=p.menuOptionsClass),"icon"in p&&t(1,h=p.icon),"iconClass"in p&&t(9,C=p.iconClass),"iconDescription"in p&&t(10,D=p.iconDescription),"id"in p&&t(11,E=p.id),"buttonRef"in p&&t(2,O=p.buttonRef),"menuRef"in p&&t(3,P=p.menuRef),"$$scope"in p&&t(23,u=p.$$scope)},l.$$.update=()=>{t(13,i=e["aria-label"]||"menu"),l.$$.dirty[0]&6291456&&r[a]&&j.set(r[a].id),l.$$.dirty[0]&1050624&&t(12,o=``)},N&&t(1,h=Gt),e=ie(e),[T,h,O,P,_,v,g,k,w,C,D,E,o,i,N,re,G,se,S,n,ae,a,r,u,d,ze,m,q,ke,Ve,Ee,Ae,Re,Be,Te,Le]}class Qt extends me{constructor(e){super(),be(this,e,jt,Ft,_e,{size:4,direction:5,open:0,light:6,flipped:7,menuOptionsClass:8,icon:1,iconClass:9,iconDescription:10,id:11,buttonRef:2,menuRef:3},null,[-1,-1])}}const Xt=Qt;function Jt(l){let e,t,i,o;const s=l[16].default,n=fe(s,l,l[15],null),a=n||Wt(l);let r=[l[7]],f={};for(let d=0;d{n[_]=null}),pe(),i=n[t],i?i.p(d,u):(i=n[t]=s[t](d),i.c()),V(i,1),i.m(e,null)),ne(e,f=ge(r,[{role:"none"},(!o||u&64)&&{id:d[6]},u&2048&&d[11]])),c(e,"bx--overflow-menu-options__option",!0),c(e,"bx--overflow-menu--divider",d[4]),c(e,"bx--overflow-menu-options__option--danger",d[5]),c(e,"bx--overflow-menu-options__option--disabled",d[3])},i(d){o||(V(i),o=!0)},o(d){A(i),o=!1},d(d){d&&b(e),n[t].d()}}}function $t(l,e,t){let i;const o=["text","href","primaryFocus","disabled","hasDivider","danger","requireTitle","id","ref"];let s=Z(e,o),n,{$$slots:a={},$$scope:r}=e;const f=gt(a);let{text:d="Provide text"}=e,{href:u=""}=e,{primaryFocus:_=!1}=e,{disabled:v=!1}=e,{hasDivider:T=!1}=e,{danger:g=!1}=e,{requireTitle:k=!0}=e,{id:w="ccs-"+Math.random().toString(36)}=e,{ref:h=null}=e;const{focusedId:C,add:D,update:E,change:O}=st("OverflowMenu");Ie(l,C,m=>t(14,n=m)),D({id:w,text:d,primaryFocus:_,disabled:v}),ft(()=>{h&&_&&h.focus()});function P(m){we.call(this,l,m)}function N(m){we.call(this,l,m)}function re(m){we.call(this,l,m)}function G(m){we.call(this,l,m)}function se(m){Me[m?"unshift":"push"](()=>{h=m,t(0,h)})}const j=()=>{E(w)},S=({key:m})=>{m==="ArrowDown"?O(1):m==="ArrowUp"&&O(-1)};function ae(m){Me[m?"unshift":"push"](()=>{h=m,t(0,h)})}const Q=()=>{E(w)},ze=({key:m})=>{m==="ArrowDown"?O(1):m==="ArrowUp"&&O(-1)};return l.$$set=m=>{e=y(y({},e),ie(m)),t(11,s=Z(e,o)),"text"in m&&t(1,d=m.text),"href"in m&&t(2,u=m.href),"primaryFocus"in m&&t(12,_=m.primaryFocus),"disabled"in m&&t(3,v=m.disabled),"hasDivider"in m&&t(4,T=m.hasDivider),"danger"in m&&t(5,g=m.danger),"requireTitle"in m&&t(13,k=m.requireTitle),"id"in m&&t(6,w=m.id),"ref"in m&&t(0,h=m.ref),"$$scope"in m&&t(15,r=m.$$scope)},l.$$.update=()=>{l.$$.dirty&16448&&t(12,_=n===w),l.$$.dirty&8206&&t(7,i={role:"menuitem",tabindex:"-1",class:"bx--overflow-menu-options__btn",disabled:u?void 0:v,href:u||void 0,title:k?f.default?void 0:d:void 0})},[h,d,u,v,T,g,w,i,C,E,O,s,_,k,n,r,a,P,N,re,G,se,j,S,ae,Q,ze]}class el extends me{constructor(e){super(),be(this,e,$t,xt,_e,{text:1,href:2,primaryFocus:12,disabled:3,hasDivider:4,danger:5,requireTitle:13,id:6,ref:0})}}const tl=el;function ll(l){let e,t,i,o,s,n;const a=l[11].default,r=fe(a,l,l[10],null);let f=[l[9],{style:i=l[9].style+"; "+(l[6]&&"position: relative")}],d={};for(let u=0;u{a&&(g.contains(h.target)||(T("click:outside",{target:h.target}),r&&t(0,a=!1)))};function w(h){Me[h?"unshift":"push"](()=>{g=h,t(7,g)})}return l.$$set=h=>{e=y(y({},e),ie(h)),t(9,o=Z(e,i)),"open"in h&&t(0,a=h.open),"closeOnOutsideClick"in h&&t(1,r=h.closeOnOutsideClick),"caret"in h&&t(2,f=h.caret),"align"in h&&t(3,d=h.align),"light"in h&&t(4,u=h.light),"highContrast"in h&&t(5,_=h.highContrast),"relative"in h&&t(6,v=h.relative),"$$scope"in h&&t(10,n=h.$$scope)},[a,r,f,d,u,_,v,g,T,o,n,s,k,w]}class ol extends me{constructor(e){super(),be(this,e,il,ll,_e,{open:0,closeOnOutsideClick:1,caret:2,align:3,light:4,highContrast:5,relative:6})}}const nl=ol,rl=l=>({}),Je=l=>({});function sl(l){let e;return{c(){e=Y(l[4])},l(t){e=F(t,l[4])},m(t,i){R(t,e,i)},p(t,i){i&16&&te(e,t[4])},d(t){t&&b(e)}}}function Ke(l){let e,t,i;var o=l[10][l[2]];function s(n){return{props:{class:"bx--progress-bar__status-icon"}}}return o&&(e=Se(o,s())),{c(){e&&x(e.$$.fragment),t=he()},l(n){e&&oe(e.$$.fragment,n),t=he()},m(n,a){e&&$(e,n,a),R(n,t,a),i=!0},p(n,a){if(a&4&&o!==(o=n[10][n[2]])){if(e){ve();const r=e;A(r.$$.fragment,1,0,()=>{ee(r,1)}),pe()}o?(e=Se(o,s()),x(e.$$.fragment),V(e.$$.fragment,1),$(e,t.parentNode,t)):e=null}},i(n){i||(e&&V(e.$$.fragment,n),i=!0)},o(n){e&&A(e.$$.fragment,n),i=!1},d(n){n&&b(t),e&&ee(e,n)}}}function We(l){let e,t;return{c(){e=B("div"),t=Y(l[6]),this.h()},l(i){e=L(i,"DIV",{id:!0});var o=M(e);t=F(o,l[6]),o.forEach(b),this.h()},h(){I(e,"id",l[11]),c(e,"bx--progress-bar__helper-text",!0)},m(i,o){R(i,e,o),z(e,t)},p(i,o){o&64&&te(t,i[6])},d(i){i&&b(e)}}}function al(l){let e,t,i,o,s,n,a,r,f,d,u,_,v;const T=l[15].labelText,g=fe(T,l,l[14],Je),k=g||sl(l);let w=(l[2]==="error"||l[2]==="finished")&&Ke(l),h=l[6]&&We(l),C=[l[12]],D={};for(let E=0;E{w=null}),pe()),(!v||O&128)&&I(t,"for",E[7]),(!v||O&32)&&c(t,"bx--visually-hidden",E[5]),O&261&&ye(n,"transform",E[2]==="active"&&`scaleX(${E[8]/E[0]})`),(!v||O&128)&&I(s,"id",E[7]),(!v||O&4&&a!==(a=E[2]==="active"))&&I(s,"aria-busy",a),(!v||O&512&&r!==(r=E[9]?void 0:0))&&I(s,"aria-valuemin",r),(!v||O&513&&f!==(f=E[9]?void 0:E[0]))&&I(s,"aria-valuemax",f),(!v||O&768&&d!==(d=E[9]?void 0:E[8]))&&I(s,"aria-valuenow",d),(!v||O&64&&u!==(u=E[6]?E[11]:null))&&I(s,"aria-describedby",u),E[6]?h?h.p(E,O):(h=We(E),h.c(),h.m(e,null)):h&&(h.d(1),h=null),ne(e,D=ge(C,[O&4096&&E[12]])),c(e,"bx--progress-bar",!0),c(e,"bx--progress-bar--indeterminate",E[9]),c(e,"bx--progress-bar--big",E[3]==="md"),c(e,"bx--progress-bar--small",E[3]==="sm"),c(e,"bx--progress-bar--inline",E[1]==="inline"),c(e,"bx--progress-bar--indented",E[1]==="indented"),c(e,"bx--progress-bar--error",E[2]==="error"),c(e,"bx--progress-bar--finished",E[2]==="finished")},i(E){v||(V(k,E),V(w),v=!0)},o(E){A(k,E),A(w),v=!1},d(E){E&&b(e),k&&k.d(E),w&&w.d(),h&&h.d()}}}function fl(l,e,t){let i;const o=["value","max","kind","status","size","labelText","hideLabel","helperText","id"];let s=Z(e,o),{$$slots:n={},$$scope:a}=e,{value:r=void 0}=e,{max:f=100}=e,{kind:d="default"}=e,{status:u="active"}=e,{size:_="md"}=e,{labelText:v=""}=e,{hideLabel:T=!1}=e,{helperText:g=""}=e,{id:k="ccs-"+Math.random().toString(36)}=e;const w={error:Tt,finished:It};let h="ccs-"+Math.random().toString(36),C;return l.$$set=D=>{e=y(y({},e),ie(D)),t(12,s=Z(e,o)),"value"in D&&t(13,r=D.value),"max"in D&&t(0,f=D.max),"kind"in D&&t(1,d=D.kind),"status"in D&&t(2,u=D.status),"size"in D&&t(3,_=D.size),"labelText"in D&&t(4,v=D.labelText),"hideLabel"in D&&t(5,T=D.hideLabel),"helperText"in D&&t(6,g=D.helperText),"id"in D&&t(7,k=D.id),"$$scope"in D&&t(14,a=D.$$scope)},l.$$.update=()=>{l.$$.dirty&8196&&t(9,i=r===void 0&&u==="active"),l.$$.dirty&8197&&(u==="error"||r<0?t(8,C=0):r>f?t(8,C=f):t(8,C=r))},[f,d,u,_,v,T,g,k,C,i,w,h,s,r,a,n]}class ul extends me{constructor(e){super(),be(this,e,fl,al,_e,{value:13,max:0,kind:1,status:2,size:3,labelText:4,hideLabel:5,helperText:6,id:7})}}const dl=ul;class cl{static login(e){return qe(Ue,{method:"GET",url:"/google/login",query:{origin_url:e},errors:{422:"Validation Error"}})}static auth(){return qe(Ue,{method:"GET",url:"/google/auth"})}static logout(){return qe(Ue,{method:"GET",url:"/google/logout"})}}function Ze(l){let e,t;return{c(){e=K("title"),t=Y(l[1])},l(i){e=W(i,"title",{});var o=M(e);t=F(o,l[1]),o.forEach(b)},m(i,o){R(i,e,o),z(e,t)},p(i,o){o&2&&te(t,i[1])},d(i){i&&b(e)}}}function hl(l){let e,t,i=l[1]&&Ze(l),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],s={};for(let n=0;n{t(5,e=y(y({},e),ie(f))),t(3,n=Z(e,s)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,r=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||r),t(2,o={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ie(e),[a,r,o,n,i]}class bl extends me{constructor(e){super(),be(this,e,ml,hl,_e,{size:0,title:1})}}function xe(l){let e,t;return{c(){e=K("title"),t=Y(l[1])},l(i){e=W(i,"title",{});var o=M(e);t=F(o,l[1]),o.forEach(b)},m(i,o){R(i,e,o),z(e,t)},p(i,o){o&2&&te(t,i[1])},d(i){i&&b(e)}}}function _l(l){let e,t,i=l[1]&&xe(l),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],s={};for(let n=0;n{t(5,e=y(y({},e),ie(f))),t(3,n=Z(e,s)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,r=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||r),t(2,o={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ie(e),[a,r,o,n,i]}class vl extends me{constructor(e){super(),be(this,e,gl,_l,_e,{size:0,title:1})}}const pl=Dt(cl.logout,{onSuccess:()=>{Ge.invalidateQueries([Ct]),Ge.invalidateQueries([zt]),Ge.invalidateQueries([Mt])}});function $e(l,e,t){const i=l.slice();i[13]=e[t][0],i[14]=e[t][1];const o=i[14].step_progress==null?void 0:i[14].step_progress;return i[15]=o,i}function et(l){let e,t,i,o,s,n,a,r,f,d,u,_,v;const T=[El,wl,kl],g=[];function k(h,C){return h[5].length?0:h[4].length?1:2}o=k(l),s=g[o]=T[o](l);let w=l[5].length===1&&tt(l);return r=new nl({props:{align:"bottom-right",caret:!0,closeOnOutsideClick:!0,open:l[1],$$slots:{default:[Tl]},$$scope:{ctx:l}}}),r.$on("click:outside",l[11]),{c(){e=B("div"),t=B("button"),i=B("div"),s.c(),n=X(),w&&w.c(),a=X(),x(r.$$.fragment),this.h()},l(h){e=L(h,"DIV",{});var C=M(e);t=L(C,"BUTTON",{class:!0});var D=M(t);i=L(D,"DIV",{class:!0});var E=M(i);s.l(E),E.forEach(b),n=J(D),w&&w.l(D),a=J(D),oe(r.$$.fragment,D),D.forEach(b),C.forEach(b),this.h()},h(){I(i,"class","relative z-10 flex gap-x-2"),t.disabled=f=!l[2],I(t,"class","task-button relative h-8 rounded border p-2 transition"),c(t,"opacity-40",!l[2]),c(t,"bg-white",!l[5].length),c(t,"bg-blue-200",l[5].length),c(t,"border-blue-400",l[5].length)},m(h,C){R(h,e,C),z(e,t),z(t,i),g[o].m(i,null),z(t,n),w&&w.m(t,null),z(t,a),$(r,t,null),u=!0,_||(v=[H(t,"click",vt(l[12])),He(d=Ye.call(null,e,{text:l[2]?"":"User does not have access to run tasks."}))],_=!0)},p(h,C){let D=o;o=k(h),o===D?g[o].p(h,C):(ve(),A(g[D],1,1,()=>{g[D]=null}),pe(),s=g[o],s?s.p(h,C):(s=g[o]=T[o](h),s.c()),V(s,1),s.m(i,null)),h[5].length===1?w?w.p(h,C):(w=tt(h),w.c(),w.m(t,a)):w&&(w.d(1),w=null);const E={};C&2&&(E.open=h[1]),C&262145&&(E.$$scope={dirty:C,ctx:h}),r.$set(E),(!u||C&4&&f!==(f=!h[2]))&&(t.disabled=f),(!u||C&4)&&c(t,"opacity-40",!h[2]),(!u||C&32)&&c(t,"bg-white",!h[5].length),(!u||C&32)&&c(t,"bg-blue-200",h[5].length),(!u||C&32)&&c(t,"border-blue-400",h[5].length),d&&ut(d.update)&&C&4&&d.update.call(null,{text:h[2]?"":"User does not have access to run tasks."})},i(h){u||(V(s),V(r.$$.fragment,h),u=!0)},o(h){A(s),A(r.$$.fragment,h),u=!1},d(h){h&&b(e),g[o].d(),w&&w.d(),ee(r),_=!1,Oe(v)}}}function kl(l){let e,t,i;return t=new bl({}),{c(){e=Y("Tasks "),x(t.$$.fragment)},l(o){e=F(o,"Tasks "),oe(t.$$.fragment,o)},m(o,s){R(o,e,s),$(t,o,s),i=!0},p:le,i(o){i||(V(t.$$.fragment,o),i=!0)},o(o){A(t.$$.fragment,o),i=!1},d(o){o&&b(e),ee(t,o)}}}function wl(l){let e=l[4].length+"",t,i,o=l[4].length>1?"s":"",s;return{c(){t=Y(e),i=Y(" failed task"),s=Y(o)},l(n){t=F(n,e),i=F(n," failed task"),s=F(n,o)},m(n,a){R(n,t,a),R(n,i,a),R(n,s,a)},p(n,a){a&16&&e!==(e=n[4].length+"")&&te(t,e),a&16&&o!==(o=n[4].length>1?"s":"")&&te(s,o)},i:le,o:le,d(n){n&&b(t),n&&b(i),n&&b(s)}}}function El(l){let e=l[5].length+"",t,i,o=l[5].length>1?"s":"",s,n,a,r;return a=new Vt({props:{withOverlay:!1,small:!0}}),{c(){t=Y(e),i=Y(" running task"),s=Y(o),n=Y("... "),x(a.$$.fragment)},l(f){t=F(f,e),i=F(f," running task"),s=F(f,o),n=F(f,"... "),oe(a.$$.fragment,f)},m(f,d){R(f,t,d),R(f,i,d),R(f,s,d),R(f,n,d),$(a,f,d),r=!0},p(f,d){(!r||d&32)&&e!==(e=f[5].length+"")&&te(t,e),(!r||d&32)&&o!==(o=f[5].length>1?"s":"")&&te(s,o)},i(f){r||(V(a.$$.fragment,f),r=!0)},o(f){A(a.$$.fragment,f),r=!1},d(f){f&&b(t),f&&b(i),f&&b(s),f&&b(n),ee(a,f)}}}function tt(l){let e,t=`${l[3]*100}%`;return{c(){e=B("div"),this.h()},l(i){e=L(i,"DIV",{class:!0}),M(e).forEach(b),this.h()},h(){I(e,"class","absolute left-0 top-0 z-0 h-full bg-blue-400 transition"),ye(e,"width",t)},m(i,o){R(i,e,o)},p(i,o){o&8&&t!==(t=`${i[3]*100}%`)&&ye(e,"width",t)},d(i){i&&b(e)}}}function lt(l,e){let t,i,o,s=e[14].name+"",n,a,r,f,d,u;return f=new dl({props:{labelText:e[14].message||"",helperText:e[14].status!="completed"?e[14].details:"",value:e[14].status==="completed"?1:e[15],max:1,size:"sm",status:e[7][e[14].status]}}),{key:l,first:null,c(){t=B("div"),i=B("div"),o=B("div"),n=Y(s),a=X(),r=B("div"),x(f.$$.fragment),d=X(),this.h()},l(_){t=L(_,"DIV",{class:!0});var v=M(t);i=L(v,"DIV",{class:!0});var T=M(i);o=L(T,"DIV",{class:!0});var g=M(o);n=F(g,s),g.forEach(b),T.forEach(b),a=J(v),r=L(v,"DIV",{class:!0});var k=M(r);oe(f.$$.fragment,k),k.forEach(b),d=J(v),v.forEach(b),this.h()},h(){I(o,"class","mr-2"),I(i,"class","text-s flex flex-row"),I(r,"class","progress-container mt-3"),I(t,"class","relative border-b-2 border-slate-200 p-4 text-left last:border-b-0"),this.first=t},m(_,v){R(_,t,v),z(t,i),z(i,o),z(o,n),z(t,a),z(t,r),$(f,r,null),z(t,d),u=!0},p(_,v){e=_,(!u||v&1)&&s!==(s=e[14].name+"")&&te(n,s);const T={};v&1&&(T.labelText=e[14].message||""),v&1&&(T.helperText=e[14].status!="completed"?e[14].details:""),v&1&&(T.value=e[14].status==="completed"?1:e[15]),v&1&&(T.status=e[7][e[14].status]),f.$set(T)},i(_){u||(V(f.$$.fragment,_),u=!0)},o(_){A(f.$$.fragment,_),u=!1},d(_){_&&b(t),ee(f)}}}function Tl(l){let e,t=[],i=new Map,o,s=l[0];const n=a=>a[13];for(let a=0;a{i=null}),pe())},i(o){t||(V(i),t=!0)},o(o){A(i),t=!1},d(o){i&&i.d(o),o&&b(e)}}}function Dl(l,e,t){let i,o,s,n,a,r,f;const d=Ot();Ie(l,d,k=>t(10,f=k));let u=!1;const _={pending:"active",completed:"finished",error:"error"},v=dt();Ie(l,v,k=>t(9,r=k));const T=()=>{u&&t(1,u=!1)},g=()=>t(1,u=!u);return l.$$.update=()=>{var k,w,h,C;l.$$.dirty&1024&&t(0,i=Object.entries(((k=f.data)==null?void 0:k.tasks)||{}).sort(([,D],[,E])=>Date.parse(E.start_timestamp)-Date.parse(D.start_timestamp))),l.$$.dirty&1&&t(5,o=i.filter(([,D])=>D.status==="pending")),l.$$.dirty&1&&t(4,s=i.filter(([,D])=>D.status==="error")),l.$$.dirty&1024&&t(3,n=((w=f.data)==null?void 0:w.progress)||0),l.$$.dirty&512&&t(2,a=((h=r.data)==null?void 0:h.access.dataset.compute_signals)||((C=r.data)==null?void 0:C.access.create_dataset))},[i,u,a,n,s,o,d,_,v,r,f,T,g]}class Cl extends me{constructor(e){super(),be(this,e,Dl,Il,_e,{})}}const zl=l=>({}),it=l=>({}),Ml=l=>({}),ot=l=>({}),Ol=l=>({}),nt=l=>({});function rt(l){let e,t,i,o;const s=[Al,Vl],n=[];function a(r,f){var d;return((d=r[2].data)==null?void 0:d.user)!=null?0:1}return e=a(l),t=n[e]=s[e](l),{c(){t.c(),i=he()},l(r){t.l(r),i=he()},m(r,f){n[e].m(r,f),R(r,i,f),o=!0},p(r,f){let d=e;e=a(r),e===d?n[e].p(r,f):(ve(),A(n[d],1,1,()=>{n[d]=null}),pe(),t=n[e],t?t.p(r,f):(t=n[e]=s[e](r),t.c()),V(t,1),t.m(i.parentNode,i))},i(r){o||(V(t),o=!0)},o(r){A(t),o=!1},d(r){n[e].d(r),r&&b(i)}}}function Vl(l){let e,t;return e=new Bt({props:{size:"small",href:l[4],target:l[7],$$slots:{default:[Rl]},$$scope:{ctx:l}}}),{c(){x(e.$$.fragment)},l(i){oe(e.$$.fragment,i)},m(i,o){$(e,i,o),t=!0},p(i,o){const s={};o&1024&&(s.$$scope={dirty:o,ctx:i}),e.$set(s)},i(i){t||(V(e.$$.fragment,i),t=!0)},o(i){A(e.$$.fragment,i),t=!1},d(i){ee(e,i)}}}function Al(l){var _;let e,t,i=((_=l[2].data)==null?void 0:_.user.given_name)+"",o,s,n,a,r,f,d,u;return r=new Xt({props:{flipped:!0,$$slots:{default:[Bl]},$$scope:{ctx:l}}}),{c(){e=B("div"),t=B("div"),o=Y(i),n=X(),a=B("div"),x(r.$$.fragment),this.h()},l(v){e=L(v,"DIV",{class:!0});var T=M(e);t=L(T,"DIV",{class:!0});var g=M(t);o=F(g,i),g.forEach(b),n=J(T),a=L(T,"DIV",{});var k=M(a);oe(r.$$.fragment,k),k.forEach(b),T.forEach(b),this.h()},h(){I(t,"class","ml-2 mr-1 flex"),I(e,"class","flex h-9 flex-row items-center rounded border border-neutral-200")},m(v,T){var g,k;R(v,e,T),z(e,t),z(t,o),z(e,n),z(e,a),$(r,a,null),f=!0,d||(u=He(s=Ye.call(null,t,{text:`Logged into Google as ${(g=l[2].data)==null?void 0:g.user.name} with email ${(k=l[2].data)==null?void 0:k.user.email}`})),d=!0)},p(v,T){var k,w,h;(!f||T&4)&&i!==(i=((k=v[2].data)==null?void 0:k.user.given_name)+"")&&te(o,i),s&&ut(s.update)&&T&4&&s.update.call(null,{text:`Logged into Google as ${(w=v[2].data)==null?void 0:w.user.name} with email ${(h=v[2].data)==null?void 0:h.user.email}`});const g={};T&1024&&(g.$$scope={dirty:T,ctx:v}),r.$set(g)},i(v){f||(V(r.$$.fragment,v),f=!0)},o(v){A(r.$$.fragment,v),f=!1},d(v){v&&b(e),ee(r),d=!1,u()}}}function Rl(l){let e;return{c(){e=Y("Login")},l(t){e=F(t,"Login")},m(t,i){R(t,e,i)},d(t){t&&b(e)}}}function Bl(l){let e,t;return e=new tl({props:{class:"optionOne",text:"Logout"}}),e.$on("click",l[6]),{c(){x(e.$$.fragment)},l(i){oe(e.$$.fragment,i)},m(i,o){$(e,i,o),t=!0},p:le,i(i){t||(V(e.$$.fragment,i),t=!0)},o(i){A(e.$$.fragment,i),t=!1},d(i){ee(e,i)}}}function Ll(l){var ze;let e,t,i,o,s,n,a,r,f,d,u,_,v,T,g,k,w,h,C,D,E,O;o=new vl({});const P=l[8]["header-subtext"],N=fe(P,l,l[10],nt),re=l[8]["header-center"],G=fe(re,l,l[10],ot),se=l[8]["header-right"],j=fe(se,l,l[10],it);T=new Cl({});let S=((ze=l[2].data)==null?void 0:ze.auth_enabled)&&rt(l);const ae=l[8].default,Q=fe(ae,l,l[10],null);return C=new At({}),{c(){e=B("div"),t=B("div"),i=B("button"),x(o.$$.fragment),s=X(),n=B("div"),a=B("div"),r=B("div"),N&&N.c(),f=X(),d=B("div"),G&&G.c(),u=X(),_=B("div"),j&&j.c(),v=X(),x(T.$$.fragment),g=X(),S&&S.c(),k=X(),w=B("div"),Q&&Q.c(),h=X(),x(C.$$.fragment),this.h()},l(m){e=L(m,"DIV",{class:!0});var q=M(e);t=L(q,"DIV",{class:!0});var ke=M(t);i=L(ke,"BUTTON",{class:!0});var Ve=M(i);oe(o.$$.fragment,Ve),Ve.forEach(b),s=J(ke),n=L(ke,"DIV",{class:!0});var Ee=M(n);a=L(Ee,"DIV",{class:!0});var Ae=M(a);r=L(Ae,"DIV",{class:!0});var Re=M(r);N&&N.l(Re),Re.forEach(b),Ae.forEach(b),f=J(Ee),d=L(Ee,"DIV",{class:!0});var Be=M(d);G&&G.l(Be),Be.forEach(b),u=J(Ee),_=L(Ee,"DIV",{class:!0});var Te=M(_);j&&j.l(Te),v=J(Te),oe(T.$$.fragment,Te),g=J(Te),S&&S.l(Te),Te.forEach(b),Ee.forEach(b),ke.forEach(b),k=J(q),w=L(q,"DIV",{class:!0});var Le=M(w);Q&&Q.l(Le),Le.forEach(b),h=J(q),oe(C.$$.fragment,q),q.forEach(b),this.h()},h(){I(i,"class","ml-1 opacity-60 hover:bg-gray-200"),c(i,"invisible",l[1].open),I(r,"class","mt-1"),I(a,"class","mr-4 flex flex-row items-center"),I(d,"class","flex-grow flex-row items-center justify-center"),I(_,"class","flex flex-row items-center gap-x-2"),I(n,"class","ml-1 flex flex-grow flex-row items-center justify-between justify-items-center gap-x-12 py-2 pr-4"),I(t,"class","header flex w-full flex-initial flex-row items-center justify-between justify-items-center border-b border-gray-200"),I(w,"class","relative flex h-full w-full overflow-hidden"),I(e,"class","flex h-full w-full flex-col")},m(m,q){R(m,e,q),z(e,t),z(t,i),$(o,i,null),z(t,s),z(t,n),z(n,a),z(a,r),N&&N.m(r,null),z(n,f),z(n,d),G&&G.m(d,null),z(n,u),z(n,_),j&&j.m(_,null),z(_,v),$(T,_,null),z(_,g),S&&S.m(_,null),z(e,k),z(e,w),Q&&Q.m(w,null),z(e,h),$(C,e,null),D=!0,E||(O=[He(Ye.call(null,i,{text:"Open sidebar"})),H(i,"click",l[9])],E=!0)},p(m,[q]){var ke;(!D||q&2)&&c(i,"invisible",m[1].open),N&&N.p&&(!D||q&1024)&&ue(N,P,m,m[10],D?ce(P,m[10],q,Ol):de(m[10]),nt),G&&G.p&&(!D||q&1024)&&ue(G,re,m,m[10],D?ce(re,m[10],q,Ml):de(m[10]),ot),j&&j.p&&(!D||q&1024)&&ue(j,se,m,m[10],D?ce(se,m[10],q,zl):de(m[10]),it),(ke=m[2].data)!=null&&ke.auth_enabled?S?(S.p(m,q),q&4&&V(S,1)):(S=rt(m),S.c(),V(S,1),S.m(_,null)):S&&(ve(),A(S,1,1,()=>{S=null}),pe()),Q&&Q.p&&(!D||q&1024)&&ue(Q,ae,m,m[10],D?ce(ae,m[10],q,null):de(m[10]),null)},i(m){D||(V(o.$$.fragment,m),V(N,m),V(G,m),V(j,m),V(T.$$.fragment,m),V(S),V(Q,m),V(C.$$.fragment,m),D=!0)},o(m){A(o.$$.fragment,m),A(N,m),A(G,m),A(j,m),A(T.$$.fragment,m),A(S),A(Q,m),A(C.$$.fragment,m),D=!1},d(m){m&&b(e),ee(o),N&&N.d(m),G&&G.d(m),j&&j.d(m),ee(T),S&&S.d(),Q&&Q.d(m),ee(C),E=!1,Oe(O)}}}function Pl(l,e,t){let i,o,s,n=le,a=()=>(n(),n=wt(i,C=>t(1,s=C)),i),r;l.$$.on_destroy.push(()=>n());let{$$slots:f={},$$scope:d}=e;const u=dt();Ie(l,u,C=>t(2,r=C));const _=location.origin,v=`${_}/google/login?origin_url=${_}`,T=pl();Ie(l,T,C=>t(11,o=C));function g(){o.mutate([])}const w=window.self!==window.top?"_blank":"",h=()=>Et(i,s.open=!0,s);return l.$$set=C=>{"$$scope"in C&&t(10,d=C.$$scope)},a(t(0,i=Rt())),[i,s,r,u,v,T,g,w,f,h,d]}class ql extends me{constructor(e){super(),be(this,e,Pl,Ll,_e,{})}}export{bl as C,Xt as O,ql as P,tl as a}; diff --git a/lilac/web/_app/immutable/chunks/RowItemMetadata.3e67c6f0.js b/lilac/web/_app/immutable/chunks/RowItemMetadata.3e67c6f0.js new file mode 100644 index 0000000000000000000000000000000000000000..cde75817d9de68a0bf5898b88dba6f0135355460 --- /dev/null +++ b/lilac/web/_app/immutable/chunks/RowItemMetadata.3e67c6f0.js @@ -0,0 +1 @@ +import{S as O,i as Q,s as X,G as de,E as R,k as B,a as te,y as me,l as V,m as S,h as k,c as le,z as ge,n as A,H as D,I as ie,b as W,J as P,A as ve,K as q,ak as ue,ad as Ze,L as fe,M as ce,N as he,O as re,g as N,d as F,B as ke,P as Re,D as H,C as qe,R as j,T as je,t as Ge,j as Ue,F as G,q as ae,r as ne,u as se,Q as ee,w as Be,ai as Ve,_ as J,$ as K,a0 as _e,a1 as be,a7 as Je,W as Ke,e as ze,v as we,f as Ee,X as Oe,Y as Qe,p as Me}from"./index.27e2a960.js";import{d as pe,w as oe}from"./index.7efffca5.js";import{aN as Xe,e as xe,h as $e,Z as et,aW as tt,M as $,aV as lt,a1 as it,D as at,F as nt}from"./Commands.2fa1e469.js";import{t as st,o as rt}from"./notificationsStore.4af93bc4.js";import{E as ot}from"./StringSpanHighlight.3d7a4bbd.js";const dt=i=>({}),Se=i=>({});function Te(i){let e=i[3].label+"",t;return{c(){t=ae(e)},l(l){t=ne(l,e)},m(l,a){W(l,t,a)},p(l,a){a[0]&8&&e!==(e=l[3].label+"")&&se(t,e)},d(l){l&&k(t)}}}function ut(i){let e,t,l,a,o,d,f,s,n,r,g,M,u=i[3]&&Te(i);o=new Xe({props:{"aria-hidden":"true",title:i[1]}});const c=i[20].default,m=de(c,i,i[19],null);let C=[{role:"navigation"},i[10]],y={};for(let h=0;ht(18,n=b));const h=pe(v,b=>b.reduce((p,U)=>({...p,[U.id]:U}),{}));j(i,h,b=>t(28,r=b));const w=oe(m),I=oe(void 0);j(i,I,b=>t(16,f=b));const T=oe([]);j(i,T,b=>t(17,s=b));const z=pe(T,b=>b.reduce((p,U)=>({...p,[U.id]:U}),{})),Y=oe(void 0);let Z=null;je("Tabs",{tabs:v,contentById:z,selectedTab:I,selectedContent:Y,useAutoWidth:w,add:b=>{v.update(p=>[...p,{...b,index:p.length}])},addContent:b=>{T.update(p=>[...p,{...b,index:p.length}])},update:b=>{t(14,_=r[b].index)},change:async b=>{let p=_+b;p<0?p=n.length-1:p>=n.length&&(p=0);let U=n[p].disabled;for(;U;)p=p+b,p<0?p=n.length-1:p>=n.length&&(p=0),U=n[p].disabled;t(14,_=p),await Ge();const Ae=Z==null?void 0:Z.querySelectorAll("[role='tab']")[_];Ae==null||Ae.focus()}}),Ue(()=>{t(12,u=_),x>-1&&x!==_&&E("change",_),x=_});let L=!0,_=u,x=-1;function Ne(b){ee.call(this,i,b)}function We(b){ee.call(this,i,b)}const Le=()=>{t(5,L=!L)},Fe=()=>{t(5,L=!L)},He=()=>{t(5,L=!L)};function Ye(b){Be[b?"unshift":"push"](()=>{Z=b,t(4,Z)})}return i.$$set=b=>{t(11,e=R(R({},e),G(b))),t(10,d=H(e,o)),"selected"in b&&t(12,u=b.selected),"type"in b&&t(0,c=b.type),"autoWidth"in b&&t(13,m=b.autoWidth),"iconDescription"in b&&t(1,C=b.iconDescription),"triggerHref"in b&&t(2,y=b.triggerHref),"$$scope"in b&&t(19,M=b.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&4096&&t(14,_=u),i.$$.dirty[0]&278528&&t(3,l=n[_]||void 0),i.$$.dirty[0]&147456&&t(15,a=s[_]||void 0),i.$$.dirty[0]&32776&&(l&&I.set(l.id),a&&Y.set(a.id)),i.$$.dirty[0]&65536&&f&&t(5,L=!0),i.$$.dirty[0]&8192&&w.set(m)},e=G(e),[c,C,y,l,Z,L,v,h,I,T,d,e,u,m,_,a,f,s,n,M,g,Ne,We,Le,Fe,He,Ye]}class ct extends O{constructor(e){super(),Q(this,e,ft,ut,X,{selected:12,type:0,autoWidth:13,iconDescription:1,triggerHref:2},null,[-1,-1])}}const Lt=ct;function ht(i){let e;return{c(){e=ae(i[1])},l(t){e=ne(t,i[1])},m(t,l){W(t,e,l)},p(t,l){l&2&&se(e,t[1])},d(t){t&&k(e)}}}function _t(i){let e,t,l,a,o,d,f;const s=i[15].default,n=de(s,i,i[14],null),r=n||ht(i);let g=[{tabindex:"-1"},{role:"presentation"},i[12]],M={};for(let u=0;ut(13,d=_)),j(i,y,_=>t(7,f=_)),E({id:c,label:r,disabled:M});function w(_){ee.call(this,i,_)}function I(_){ee.call(this,i,_)}function T(_){ee.call(this,i,_)}function z(_){ee.call(this,i,_)}function Y(_){Be[_?"unshift":"push"](()=>{m=_,t(0,m)})}const Z=()=>{M||v(c)},L=({key:_})=>{M||(_==="ArrowRight"?h(1):_==="ArrowLeft"?h(-1):(_===" "||_==="Enter")&&v(c))};return i.$$set=_=>{e=R(R({},e),G(_)),t(12,o=H(e,a)),"label"in _&&t(1,r=_.label),"href"in _&&t(2,g=_.href),"disabled"in _&&t(3,M=_.disabled),"tabindex"in _&&t(4,u=_.tabindex),"id"in _&&t(5,c=_.id),"ref"in _&&t(0,m=_.ref),"$$scope"in _&&t(14,n=_.$$scope)},i.$$.update=()=>{i.$$.dirty&8224&&t(6,l=d===c)},[m,r,g,M,u,c,l,f,C,y,v,h,o,d,n,s,w,I,T,z,Y,Z,L]}class mt extends O{constructor(e){super(),Q(this,e,bt,_t,X,{label:1,href:2,disabled:3,tabindex:4,id:5,ref:0})}}const Ft=mt;function gt(i){let e,t,l,a;const o=i[12].default,d=de(o,i,i[11],null);let f=[{role:"tabpanel"},{"aria-labelledby":i[1]},{"aria-hidden":t=!i[2]},{hidden:l=i[2]?void 0:""},{id:i[0]},i[6]],s={};for(let n=0;nt(10,r=E)),j(i,C,E=>t(8,s=E)),j(i,y,E=>t(9,n=E)),m({id:u}),i.$$set=E=>{e=R(R({},e),G(E)),t(6,f=H(e,d)),"id"in E&&t(0,u=E.id),"$$scope"in E&&t(11,M=E.$$scope)},i.$$.update=()=>{i.$$.dirty&1025&&t(2,l=r===u),i.$$.dirty&513&&t(7,a=n[u].index),i.$$.dirty&384&&t(1,o=s[a].id)},[u,o,l,c,C,y,f,a,s,n,r,M,g]}class kt extends O{constructor(e){super(),Q(this,e,vt,gt,X,{id:0})}}const Ht=kt;function Pe(i){let e,t;return{c(){e=J("title"),t=ae(i[1])},l(l){e=K(l,"title",{});var a=S(e);t=ne(a,i[1]),a.forEach(k)},m(l,a){W(l,e,a),P(e,t)},p(l,a){a&2&&se(t,l[1])},d(l){l&&k(e)}}}function At(i){let e,t,l=i[1]&&Pe(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],o={};for(let d=0;d{t(5,e=R(R({},e),G(n))),t(3,d=H(e,o)),"size"in n&&t(0,f=n.size),"title"in n&&t(1,s=n.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||s),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=G(e),[f,s,a,d,l]}class Et extends O{constructor(e){super(),Q(this,e,wt,At,X,{size:0,title:1})}}function Ce(i){let e,t;return{c(){e=J("title"),t=ae(i[1])},l(l){e=K(l,"title",{});var a=S(e);t=ne(a,i[1]),a.forEach(k)},m(l,a){W(l,e,a),P(e,t)},p(l,a){a&2&&se(t,l[1])},d(l){l&&k(e)}}}function zt(i){let e,t,l,a=i[1]&&Ce(i),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],d={};for(let f=0;f{t(5,e=R(R({},e),G(n))),t(3,d=H(e,o)),"size"in n&&t(0,f=n.size),"title"in n&&t(1,s=n.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||s),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=G(e),[f,s,a,d,l]}class pt extends O{constructor(e){super(),Q(this,e,Mt,zt,X,{size:0,title:1})}}function St(i){let e,t,l,a,o;const d=[i[3],{type:i[0]?"green":"blue"},{icon:i[2]}];let f={};for(let s=0;s{e=R(R({},e),G(s)),t(3,a=H(e,l)),"isPreview"in s&&t(0,o=s.isPreview)},[o,d,f,a]}class Pt extends O{constructor(e){super(),Q(this,e,Tt,St,X,{isPreview:0})}}function ye(i,e,t){const l=i.slice();return l[0]=e[t],l}function Ie(i){let e,t,l=[],a=new Map,o,d=i[1];const f=s=>nt(s[0].path);for(let s=0;s{w[Y]=null}),Ee()),~r?(g=w[r],g?g.p(e,z):(g=w[r]=h[r](e),g.c()),N(g,1),g.m(n,null)):g=null),(!v||z&2)&&m!==(m=e[0].formattedValue+"")&&se(C,m),(!v||z&2&&y!==(y=`${e[0].value}`))&&A(c,"title",y),(!v||z&2)&&D(c,"italic",e[0].formattedValue===null)},i(T){v||(N(g),v=!0)},o(T){F(g),v=!1},d(T){T&&k(t),~r&&w[r].d()}}}function It(i){let e,t,l=i[1].length>0&&Ie(i);return{c(){l&&l.c(),e=ze()},l(a){l&&l.l(a),e=ze()},m(a,o){l&&l.m(a,o),W(a,e,o),t=!0},p(a,[o]){a[1].length>0?l?(l.p(a,o),o&2&&N(l,1)):(l=Ie(a),l.c(),N(l,1),l.m(e.parentNode,e)):l&&(we(),F(l,1,1,()=>{l=null}),Ee())},i(a){t||(N(l),t=!0)},o(a){F(l),t=!1},d(a){l&&l.d(a),a&&k(e)}}}function Dt(i,e,t){let l,a,{row:o}=e,{visibleFields:d}=e,{selectRowsSchema:f=void 0}=e;const s=et();j(i,s,r=>t(5,a=r));function n(r){const g=tt(r).filter(u=>st(u,d)),M=g.filter(u=>{var c;return((c=$.field(u))==null?void 0:c.dtype)==="string_span"}).map(u=>$.path(u));return g.filter(u=>!M.some(c=>lt($.path(u),c))).map(u=>{var h;const c=$.field(u),m=$.path(u);let C=$.value(u);if(c.dtype==="string_span")return null;const y=((h=a.data)==null?void 0:h.some(w=>{var I;return w.name===((I=c.signal)==null?void 0:I.signal_name)}))||!1,E=it(c);let v;return y||E&&c.dtype==null||c.dtype==="embedding"||c.repeated_field!=null?v="":C==null?v=null:v=at(C),{indentLevel:m.length-1,fieldName:m[m.length-1],field:c,path:m,isSignal:E,isPreviewSignal:f!=null?rt(f,m):!1,isEmbeddingSignal:y,value:C,formattedValue:v}}).filter(u=>u!=null)}return i.$$set=r=>{"row"in r&&t(0,o=r.row),"visibleFields"in r&&t(3,d=r.visibleFields),"selectRowsSchema"in r&&t(4,f=r.selectRowsSchema)},i.$$.update=()=>{i.$$.dirty&1&&t(1,l=n(o))},[o,l,s,d,f]}class Yt extends O{constructor(e){super(),Q(this,e,Dt,It,X,{row:0,visibleFields:3,selectRowsSchema:4})}}export{Yt as R,Pt as S,Lt as T,Ft as a,Ht as b}; diff --git a/lilac/web/_app/immutable/chunks/StringSpanHighlight.3d7a4bbd.js b/lilac/web/_app/immutable/chunks/StringSpanHighlight.3d7a4bbd.js new file mode 100644 index 0000000000000000000000000000000000000000..c8685ccad3ea9b0fc69314920a1cc3fa33e17ae9 --- /dev/null +++ b/lilac/web/_app/immutable/chunks/StringSpanHighlight.3d7a4bbd.js @@ -0,0 +1,3 @@ +import{S as le,i as ie,s as ne,E as R,k as H,a as U,l as L,m as w,c as X,h as c,I as De,H as C,n as P,b as V,J as S,al as Oe,K as O,g as N,v as x,d as A,f as $,O as he,P as Me,D as G,ah as wt,F as ee,G as Et,L as yt,M as Tt,N as Nt,q as M,r as z,u as Y,y as ae,z as se,A as oe,B as re,Q,w as Ct,_ as K,$ as J,a0 as fe,a1 as j,a7 as pe,W as Pt,a2 as bt,a3 as Fe,C as Vt,X as gt,Y as Bt,p as te,ae as Ht,an as Lt,a4 as At,R as Ye,ai as It,e as Ee,ab as Mt,aa as je}from"./index.27e2a960.js";import{aO as zt,e as Rt,h as vt,a5 as Le,E as pt,O as kt,az as Dt,M as Se,F as we,aA as Ot,L as Ft,B as St,aR as Yt}from"./Commands.2fa1e469.js";import{A as Ue,p as Xe,I as jt,u as Ut,v as Xt,f as Wt}from"./notificationsStore.4af93bc4.js";import{a as qt}from"./utils.97898c57.js";const Gt=i=>({}),We=i=>({});function qe(i){let e,t,l,a;const f=i[20].labelText,o=Et(f,i,i[19],We),n=o||Kt(i);let r=i[5]&&Ge(i);return{c(){e=H("div"),t=H("label"),n&&n.c(),l=U(),r&&r.c(),this.h()},l(s){e=L(s,"DIV",{});var u=w(e);t=L(u,"LABEL",{for:!0});var d=w(t);n&&n.l(d),d.forEach(c),l=X(u),r&&r.l(u),u.forEach(c),this.h()},h(){P(t,"for",i[14]),C(t,"bx--label",!0),C(t,"bx--visually-hidden",i[11]),C(t,"bx--label--disabled",i[7]),C(e,"bx--text-area__label-wrapper",!0)},m(s,u){V(s,e,u),S(e,t),n&&n.m(t,null),S(e,l),r&&r.m(e,null),a=!0},p(s,u){o?o.p&&(!a||u[0]&524288)&&yt(o,f,s,s[19],a?Nt(f,s[19],u,Gt):Tt(s[19]),We):n&&n.p&&(!a||u[0]&1024)&&n.p(s,a?u:[-1,-1]),(!a||u[0]&16384)&&P(t,"for",s[14]),(!a||u[0]&2048)&&C(t,"bx--visually-hidden",s[11]),(!a||u[0]&128)&&C(t,"bx--label--disabled",s[7]),s[5]?r?r.p(s,u):(r=Ge(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},i(s){a||(N(n,s),a=!0)},o(s){A(n,s),a=!1},d(s){s&&c(e),n&&n.d(s),r&&r.d()}}}function Kt(i){let e;return{c(){e=M(i[10])},l(t){e=z(t,i[10])},m(t,l){V(t,e,l)},p(t,l){l[0]&1024&&Y(e,t[10])},d(t){t&&c(e)}}}function Ge(i){let e,t=i[0].length+"",l,a,f;return{c(){e=H("div"),l=M(t),a=M("/"),f=M(i[5]),this.h()},l(o){e=L(o,"DIV",{});var n=w(e);l=z(n,t),a=z(n,"/"),f=z(n,i[5]),n.forEach(c),this.h()},h(){C(e,"bx--label",!0),C(e,"bx--label--disabled",i[7])},m(o,n){V(o,e,n),S(e,l),S(e,a),S(e,f)},p(o,n){n[0]&1&&t!==(t=o[0].length+"")&&Y(l,t),n[0]&32&&Y(f,o[5]),n[0]&128&&C(e,"bx--label--disabled",o[7])},d(o){o&&c(e)}}}function Ke(i){let e,t;return e=new zt({props:{class:"bx--text-area__invalid-icon"}}),{c(){ae(e.$$.fragment)},l(l){se(e.$$.fragment,l)},m(l,a){oe(e,l,a),t=!0},i(l){t||(N(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){re(e,l)}}}function Je(i){let e,t;return{c(){e=H("div"),t=M(i[9]),this.h()},l(l){e=L(l,"DIV",{});var a=w(e);t=z(a,i[9]),a.forEach(c),this.h()},h(){C(e,"bx--form__helper-text",!0),C(e,"bx--form__helper-text--disabled",i[7])},m(l,a){V(l,e,a),S(e,t)},p(l,a){a[0]&512&&Y(t,l[9]),a[0]&128&&C(e,"bx--form__helper-text--disabled",l[7])},d(l){l&&c(e)}}}function Qe(i){let e,t;return{c(){e=H("div"),t=M(i[13]),this.h()},l(l){e=L(l,"DIV",{id:!0});var a=w(e);t=z(a,i[13]),a.forEach(c),this.h()},h(){P(e,"id",i[16]),C(e,"bx--form-requirement",!0)},m(l,a){V(l,e,a),S(e,t)},p(l,a){a[0]&8192&&Y(t,l[13]),a[0]&65536&&P(e,"id",l[16])},d(l){l&&c(e)}}}function Jt(i){let e,t,l,a,f,o,n,r,s,u,d,m,g,y,h=(i[10]||i[17].labelText)&&!i[11]&&qe(i),v=i[12]&&Ke(),T=[{"aria-invalid":o=i[12]||void 0},{"aria-describedby":n=i[12]?i[16]:void 0},{disabled:i[7]},{id:i[14]},{name:i[15]},{cols:i[3]},{rows:i[4]},{placeholder:i[2]},{readOnly:i[8]},{maxlength:r=i[5]??void 0},i[18]],I={};for(let _=0;_{h=null}),$()),_[12]?v?k[0]&4096&&N(v,1):(v=Ke(),v.c(),N(v,1),v.m(l,a)):v&&(x(),A(v,1,1,()=>{v=null}),$()),De(f,I=he(T,[(!m||k[0]&4096&&o!==(o=_[12]||void 0))&&{"aria-invalid":o},(!m||k[0]&69632&&n!==(n=_[12]?_[16]:void 0))&&{"aria-describedby":n},(!m||k[0]&128)&&{disabled:_[7]},(!m||k[0]&16384)&&{id:_[14]},(!m||k[0]&32768)&&{name:_[15]},(!m||k[0]&8)&&{cols:_[3]},(!m||k[0]&16)&&{rows:_[4]},(!m||k[0]&4)&&{placeholder:_[2]},(!m||k[0]&256)&&{readOnly:_[8]},(!m||k[0]&32&&r!==(r=_[5]??void 0))&&{maxlength:r},k[0]&262144&&_[18]])),k[0]&1&&Oe(f,_[0]),C(f,"bx--text-area",!0),C(f,"bx--text-area--light",_[6]),C(f,"bx--text-area--invalid",_[12]),(!m||k[0]&4096&&s!==(s=_[12]||void 0))&&P(l,"data-invalid",s),!_[12]&&_[9]?E?E.p(_,k):(E=Je(_),E.c(),E.m(e,d)):E&&(E.d(1),E=null),_[12]?B?B.p(_,k):(B=Qe(_),B.c(),B.m(e,null)):B&&(B.d(1),B=null)},i(_){m||(N(h),N(v),m=!0)},o(_){A(h),A(v),m=!1},d(_){_&&c(e),h&&h.d(),v&&v.d(),i[32](null),E&&E.d(),B&&B.d(),g=!1,Me(y)}}}function Qt(i,e,t){let l;const a=["value","placeholder","cols","rows","maxCount","light","disabled","readonly","helperText","labelText","hideLabel","invalid","invalidText","id","name","ref"];let f=G(e,a),{$$slots:o={},$$scope:n}=e;const r=wt(o);let{value:s=""}=e,{placeholder:u=""}=e,{cols:d=50}=e,{rows:m=4}=e,{maxCount:g=void 0}=e,{light:y=!1}=e,{disabled:h=!1}=e,{readonly:v=!1}=e,{helperText:T=""}=e,{labelText:I=""}=e,{hideLabel:E=!1}=e,{invalid:B=!1}=e,{invalidText:_=""}=e,{id:k="ccs-"+Math.random().toString(36)}=e,{name:F=void 0}=e,{ref:W=null}=e;function q(b){Q.call(this,i,b)}function ue(b){Q.call(this,i,b)}function de(b){Q.call(this,i,b)}function ce(b){Q.call(this,i,b)}function Z(b){Q.call(this,i,b)}function ke(b){Q.call(this,i,b)}function me(b){Q.call(this,i,b)}function ye(b){Q.call(this,i,b)}function Te(b){Q.call(this,i,b)}function Ne(b){Q.call(this,i,b)}function Ce(b){Q.call(this,i,b)}function Pe(b){Ct[b?"unshift":"push"](()=>{W=b,t(1,W)})}function Ve(){s=this.value,t(0,s)}return i.$$set=b=>{e=R(R({},e),ee(b)),t(18,f=G(e,a)),"value"in b&&t(0,s=b.value),"placeholder"in b&&t(2,u=b.placeholder),"cols"in b&&t(3,d=b.cols),"rows"in b&&t(4,m=b.rows),"maxCount"in b&&t(5,g=b.maxCount),"light"in b&&t(6,y=b.light),"disabled"in b&&t(7,h=b.disabled),"readonly"in b&&t(8,v=b.readonly),"helperText"in b&&t(9,T=b.helperText),"labelText"in b&&t(10,I=b.labelText),"hideLabel"in b&&t(11,E=b.hideLabel),"invalid"in b&&t(12,B=b.invalid),"invalidText"in b&&t(13,_=b.invalidText),"id"in b&&t(14,k=b.id),"name"in b&&t(15,F=b.name),"ref"in b&&t(1,W=b.ref),"$$scope"in b&&t(19,n=b.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&16384&&t(16,l=`error-${k}`)},[s,W,u,d,m,g,y,h,v,T,I,E,B,_,k,F,l,r,f,n,o,q,ue,de,ce,Z,ke,me,ye,Te,Ne,Ce,Pe,Ve]}class Zt extends le{constructor(e){super(),ie(this,e,Qt,Jt,ne,{value:0,placeholder:2,cols:3,rows:4,maxCount:5,light:6,disabled:7,readonly:8,helperText:9,labelText:10,hideLabel:11,invalid:12,invalidText:13,id:14,name:15,ref:1},null,[-1,-1])}}const Yl=Zt;function Ze(i){let e,t;return{c(){e=K("title"),t=M(i[1])},l(l){e=J(l,"title",{});var a=w(e);t=z(a,i[1]),a.forEach(c)},m(l,a){V(l,e,a),S(e,t)},p(l,a){a&2&&Y(t,l[1])},d(l){l&&c(e)}}}function xt(i){let e,t,l=i[1]&&Ze(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let o=0;o{t(5,e=R(R({},e),ee(s))),t(3,o=G(e,f)),"size"in s&&t(0,n=s.size),"title"in s&&t(1,r=s.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||r),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ee(e),[n,r,a,o,l]}class el extends le{constructor(e){super(),ie(this,e,$t,xt,ne,{size:0,title:1})}}function xe(i){let e,t;return{c(){e=K("title"),t=M(i[1])},l(l){e=J(l,"title",{});var a=w(e);t=z(a,i[1]),a.forEach(c)},m(l,a){V(l,e,a),S(e,t)},p(l,a){a&2&&Y(t,l[1])},d(l){l&&c(e)}}}function tl(i){let e,t,l=i[1]&&xe(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let o=0;o{t(5,e=R(R({},e),ee(s))),t(3,o=G(e,f)),"size"in s&&t(0,n=s.size),"title"in s&&t(1,r=s.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||r),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ee(e),[n,r,a,o,l]}class il extends le{constructor(e){super(),ie(this,e,ll,tl,ne,{size:0,title:1})}}function $e(i){let e,t;return{c(){e=K("title"),t=M(i[1])},l(l){e=J(l,"title",{});var a=w(e);t=z(a,i[1]),a.forEach(c)},m(l,a){V(l,e,a),S(e,t)},p(l,a){a&2&&Y(t,l[1])},d(l){l&&c(e)}}}function nl(i){let e,t,l=i[1]&&$e(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let o=0;o{t(5,e=R(R({},e),ee(s))),t(3,o=G(e,f)),"size"in s&&t(0,n=s.size),"title"in s&&t(1,r=s.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||r),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ee(e),[n,r,a,o,l]}class sl extends le{constructor(e){super(),ie(this,e,al,nl,ne,{size:0,title:1})}}function et(i){let e,t;return{c(){e=K("title"),t=M(i[1])},l(l){e=J(l,"title",{});var a=w(e);t=z(a,i[1]),a.forEach(c)},m(l,a){V(l,e,a),S(e,t)},p(l,a){a&2&&Y(t,l[1])},d(l){l&&c(e)}}}function ol(i){let e,t,l=i[1]&&et(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let o=0;o{t(5,e=R(R({},e),ee(s))),t(3,o=G(e,f)),"size"in s&&t(0,n=s.size),"title"in s&&t(1,r=s.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||r),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ee(e),[n,r,a,o,l]}class fl extends le{constructor(e){super(),ie(this,e,rl,ol,ne,{size:0,title:1})}}function ul(i,e){const t=l=>i&&!i.contains(l.target)&&!l.defaultPrevented&&e();return document.addEventListener("click",t,!0),{destroy(){document.removeEventListener("click",t,!0)}}}function dl(i){let e=(i[1]?"":i[0])+"",t;return{c(){t=M(e)},l(l){t=z(l,e)},m(l,a){V(l,t,a)},p(l,a){a&3&&e!==(e=(l[1]?"":l[0])+"")&&Y(t,e)},d(l){l&&c(t)}}}function cl(i){let e,t,l,a,f;const o=[i[2],{type:"purple"},{icon:Ue}];let n={$$slots:{default:[dl]},$$scope:{ctx:i}};for(let r=0;r{e=R(R({},e),ee(n)),t(2,a=G(e,l)),"embedding"in n&&t(0,f=n.embedding),"hideEmbeddingName"in n&&t(1,o=n.hideEmbeddingName)},[f,o,a]}class ml extends le{constructor(e){super(),ie(this,e,hl,cl,ne,{embedding:0,hideEmbeddingName:1})}}function tt(i,e,t){const l=i.slice();return l[12]=e[t],l}function lt(i){let e,t,l=i[0].conceptNamespace+"",a,f,o=i[0].conceptName+"",n,r,s,u,d,m,g,y,h,v,T;return d=new fl({}),y=new sl({}),{c(){e=H("div"),t=H("div"),a=M(l),f=M(" / "),n=M(o),r=U(),s=H("div"),u=H("button"),ae(d.$$.fragment),m=U(),g=H("button"),ae(y.$$.fragment),this.h()},l(I){e=L(I,"DIV",{class:!0});var E=w(e);t=L(E,"DIV",{class:!0});var B=w(t);a=z(B,l),f=z(B," / "),n=z(B,o),B.forEach(c),r=X(E),s=L(E,"DIV",{class:!0});var _=w(s);u=L(_,"BUTTON",{class:!0});var k=w(u);se(d.$$.fragment,k),k.forEach(c),m=X(_),g=L(_,"BUTTON",{class:!0});var F=w(g);se(y.$$.fragment,F),F.forEach(c),_.forEach(c),E.forEach(c),this.h()},h(){P(t,"class","flex-grow"),P(u,"class","p-1"),P(g,"class","p-1"),P(s,"class","shrink-0"),P(e,"class","flex flex-row items-center justify-between gap-x-4 p-2")},m(I,E){V(I,e,E),S(e,t),S(t,a),S(t,f),S(t,n),S(e,r),S(e,s),S(s,u),oe(d,u,null),S(s,m),S(s,g),oe(y,g,null),h=!0,v||(T=[O(u,"click",i[8]),O(g,"click",i[9])],v=!0)},p(I,E){(!h||E&1)&&l!==(l=I[0].conceptNamespace+"")&&Y(a,l),(!h||E&1)&&o!==(o=I[0].conceptName+"")&&Y(n,o)},i(I){h||(N(d.$$.fragment,I),N(y.$$.fragment,I),h=!0)},o(I){A(d.$$.fragment,I),A(y.$$.fragment,I),h=!1},d(I){I&&c(e),re(d),re(y),v=!1,Me(T)}}}function it(i){let e,t=[],l=new Map,a,f=i[2];const o=n=>n[12];for(let n=0;n{r=null}),$()),u[3]!=null?s?(s.p(u,d),d&8&&N(s,1)):(s=it(u),s.c(),N(s,1),s.m(e,null)):s&&(x(),A(s,1,1,()=>{s=null}),$()),(!f||d&2&&l!==(l=u[1]!=null?`left: ${u[1].x}px; top: ${u[1].y}px`:""))&&P(e,"style",l)},i(u){f||(N(r),N(s),bt(()=>{f&&(a||(a=Fe(e,Xe,{duration:60},!0)),a.run(1))}),f=!0)},o(u){A(r),A(s),a||(a=Fe(e,Xe,{duration:60},!1)),a.run(0),f=!1},d(u){u&&c(e),r&&r.d(),s&&s.d(),u&&a&&a.end(),o=!1,n()}}}function bl(i,e,t){let{details:l}=e,{clickPosition:a}=e,{embeddings:f}=e,{addConceptLabel:o}=e,{findSimilar:n}=e,{addNotification:r}=e;const s=Vt();function u(h){if(!l.conceptName||!l.conceptNamespace)throw Error("Label could not be added, no active concept.");o(l.conceptNamespace,l.conceptName,l.text,h),r({kind:"success",title:`[${h===!0?"Positive":"Negative"}] Concept label added`,subtitle:qt(l.conceptNamespace,l.conceptName),message:l.text}),s("click")}const d=()=>u(!0),m=()=>u(!1),g=h=>{n&&n(h,l.text),s("click")},y=()=>s("close");return i.$$set=h=>{"details"in h&&t(0,l=h.details),"clickPosition"in h&&t(1,a=h.clickPosition),"embeddings"in h&&t(2,f=h.embeddings),"addConceptLabel"in h&&t(6,o=h.addConceptLabel),"findSimilar"in h&&t(3,n=h.findSimilar),"addNotification"in h&&t(7,r=h.addNotification)},[l,a,f,n,s,u,o,r,d,m,g,y]}class gl extends le{constructor(e){super(),ie(this,e,bl,_l,ne,{details:0,clickPosition:1,embeddings:2,addConceptLabel:6,findSimilar:3,addNotification:7})}}function vl(i,e){let t,l=e;i.addEventListener("click",o=>a(o));function a(o){l.disabled||(t=new gl({props:{details:l.details(),clickPosition:{x:o.clientX,y:o.clientY},embeddings:l.embeddings,addConceptLabel:l.addConceptLabel,addNotification:l.addNotification,findSimilar:l.findSimilar},target:document.body}),t.$on("close",f),t.$on("click",f))}function f(){t==null||t.$destroy(),t=void 0}return{update(o){l=o,t==null||t.$set({details:l.details()})},destroy(){f()}}}const He=.5,at=.3,pl=.8,st="#3366cc";function Ae(i){return`rgba(180,215,255,${i})`}function Ie(i){let e=0;if(i>He){const t=(i-He)/(1-He);e=at+t*(pl-at)}return Ae(e)}function ot(i,e,t){const l=i.slice();return l[7]=e[t],l}function rt(i,e){let t,l,a=e[7].info.name+"",f,o,n,r,s=ft(e[7])+"",u,d;return{key:i,first:null,c(){t=H("div"),l=H("div"),f=M(a),o=U(),n=H("div"),r=H("span"),u=M(s),d=U(),this.h()},l(m){t=L(m,"DIV",{class:!0});var g=w(t);l=L(g,"DIV",{class:!0});var y=w(l);f=z(y,a),y.forEach(c),o=X(g),n=L(g,"DIV",{class:!0});var h=w(n);r=L(h,"SPAN",{class:!0});var v=w(r);u=z(v,s),v.forEach(c),h.forEach(c),d=X(g),g.forEach(c),this.h()},h(){P(l,"class","named-value-name table-cell max-w-xs truncate pr-2 svelte-1689hje"),P(r,"class","px-1"),C(r,"font-bold",e[7].info.type==="keyword"||e[7].info.type==="metadata"&&!Le(e[7].info.dtype)),te(r,"background-color",(e[7].info.type==="concept_score"||e[7].info.type==="semantic_similarity")&&typeof e[7].value=="number"?Ie(e[7].value):""),P(n,"class","table-cell rounded text-right"),P(t,"class","table-row"),this.first=t},m(m,g){V(m,t,g),S(t,l),S(l,f),S(t,o),S(t,n),S(n,r),S(r,u),S(t,d)},p(m,g){e=m,g&1&&a!==(a=e[7].info.name+"")&&Y(f,a),g&1&&s!==(s=ft(e[7])+"")&&Y(u,s),g&1&&C(r,"font-bold",e[7].info.type==="keyword"||e[7].info.type==="metadata"&&!Le(e[7].info.dtype)),g&1&&te(r,"background-color",(e[7].info.type==="concept_score"||e[7].info.type==="semantic_similarity")&&typeof e[7].value=="number"?Ie(e[7].value):"")},d(m){m&&c(t)}}}function kl(i){let e,t,l=[],a=new Map,f,o=`${i[4]}px`,n=`${Math.min(i[1],i[3]-i[2]-20)}px`,r=i[0];const s=u=>u[7];for(let u=0;ui[6].call(e)),C(e,"hidden",i[0].length===0),te(e,"top",o),te(e,"left",n)},m(u,d){V(u,e,d),S(e,t);for(let m=0;m{"namedValues"in u&&t(0,l=u.namedValues),"x"in u&&t(1,a=u.x),"y"in u&&t(5,f=u.y)},[l,a,n,o,r,f,s]}class wl extends le{constructor(e){super(),ie(this,e,Sl,kl,ne,{namedValues:0,x:1,y:5})}}function El(i,e){let t,l=e;const a=()=>o();l.isHovered&&f();function f(){const n=l.namedValues.filter(m=>Array.from(l.spansHovered).some(g=>{const y=pt(g);return kt(m.specificPath.slice(0,y.length),y)}));l.itemScrollContainer!=null&&l.itemScrollContainer.addEventListener("scroll",a);const r=i.getBoundingClientRect(),s=window.getComputedStyle(i),u=parseInt(s.getPropertyValue("line-height")),d=r.height>u?r.x+i.offsetLeft||i.clientLeft:r.x;t=new wl({props:{namedValues:n,x:d,y:r.top},target:document.body})}function o(){var n;t==null||t.$destroy(),(n=l.itemScrollContainer)==null||n.removeEventListener("scroll",a)}return{update(n){o(),l=n,l.isHovered&&f()},destroy(){o()}}}const yl=500,ve=100;function Tl(i,e,t){const l=[],a=new Set;for(const f of i){let o=!1;const n=[];for(const T of f.paths)a.has(T)||(n.push(T),a.add(T));const r=[],s=[];let u=-1/0;for(const[T,I]of Object.entries(f.originalSpans)){const E=e[T],B=pt(T);if(!(E==null||E.length===0))for(const _ of I)for(const k of E){const F=k.path.slice(B.length),W=Dt(_,F);if(W==null)continue;const q=Se.value(W);if(q==null)continue;if(k.dtype==="float32"){const Z=Se.value(W);Z!=null&&(u=Math.max(u,Z))}const ue=we(Se.path(_)),de=!n.includes(ue),ce={value:q,info:k,specificPath:Se.path(W)};de||r.push(ce),s.push(ce),k.type==="concept_score"||k.type==="semantic_similarity"?q>.5&&(o=!0):o=!0}}const d=s.some(T=>T.info.type==="label"),m=s.some(T=>T.info.type==="leaf_span"),g=s.some(T=>T.info.type==="keyword"),y=s.some(T=>T.info.type==="metadata"&&!Le(T.info.dtype)),h=f.paths.some(T=>t.has(T)),v=h&&n.length>0&&Array.from(t).some(T=>n.includes(T));l.push({backgroundColor:Ie(u),isBlackBolded:g||y||m,isHighlightBolded:d,isShownSnippet:o,snippetScore:u,namedValues:r,paths:f.paths,text:f.text,snippetText:f.text,originalSpans:f.originalSpans,isHovered:h,isFirstHover:v})}return l}function Nl(i,e){var o,n,r;if(i=i.map(s=>{if(s.isShownSnippet&&s.text.length>ve){const u={...s,text:s.text.slice(0,ve),snippetText:s.snippetText.slice(0,ve)},d={...s,text:s.text.slice(ve),snippetText:s.snippetText.slice(ve),isShownSnippet:!1,namedValues:[]};return[u,d]}else return[s]}).flat(),e)return{snippetSpans:i.map(s=>({renderSpan:s,isShown:!0})),someSnippetsHidden:!1};const t=[];let l=0;for(const s of i)s.isShownSnippet&&(l+=s.text.length);const a=i.filter(s=>!s.isShownSnippet).sort((s,u)=>u.snippetScore-s.snippetScore);for(const s of a)if(s.isShownSnippet=!0,l+=s.text.length,l>yl)break;let f=!1;for(const[s,u]of i.entries())if(u.isShownSnippet)t.push({renderSpan:u,isShown:!0});else{const d=((o=i[s+1])==null?void 0:o.isShownSnippet)===!0,m=((n=i[s-1])==null?void 0:n.isShownSnippet)===!0,g=((r=t[t.length-1])==null?void 0:r.isShown)===!0;t.push({renderSpan:u,isShown:!1,isEllipsis:(d||m)&&g,hasNewline:u.text.includes(` +`)}),f=!0}return{snippetSpans:t,someSnippetsHidden:f}}function ut(i,e,t){const l=i.slice();l[34]=e[t];const a=l[34].renderSpan;return l[35]=a,l}function Cl(i){let e,t,l,a,f,o=i[34].hasNewline&&dt();return{c(){e=H("span"),t=M("..."),o&&o.c(),l=Ee(),this.h()},l(n){e=L(n,"SPAN",{class:!0});var r=w(e);t=z(r,"..."),r.forEach(c),o&&o.l(n),l=Ee(),this.h()},h(){P(e,"class","highlight-span text-sm leading-5 svelte-8ox5pu")},m(n,r){V(n,e,r),S(e,t),o&&o.m(n,r),V(n,l,r),a||(f=pe(vt.call(null,e,{text:`Some text was hidden to improve readability. +Click "Show all" to show the entire document.`})),a=!0)},p(n,r){n[34].hasNewline?o||(o=dt(),o.c(),o.m(l.parentNode,l)):o&&(o.d(1),o=null)},i:j,o:j,d(n){n&&c(e),o&&o.d(n),n&&c(l),a=!1,f()}}}function Pl(i){let e,t,l,a,f,o,n,r;const s=[Bl,Vl],u=[];function d(h,v){return h[1]?0:1}t=d(i),l=u[t]=s[t](i);function m(){return i[27](i[35])}function g(){return i[28](i[35])}function y(){return i[29](i[35])}return{c(){e=H("span"),l.c(),this.h()},l(h){e=L(h,"SPAN",{class:!0});var v=w(e);l.l(v),v.forEach(c),this.h()},h(){P(e,"class","hover:cursor-poiner highlight-span break-words text-sm leading-5 svelte-8ox5pu"),C(e,"hover:cursor-pointer",i[0].length>0),C(e,"font-bold",i[35].isBlackBolded),C(e,"font-medium",i[35].isHighlightBolded&&!i[35].isBlackBolded),te(e,"color",i[35].isHighlightBolded&&!i[35].isBlackBolded?st:""),te(e,"background-color",i[35].isHovered?Ae(mt):i[35].backgroundColor)},m(h,v){V(h,e,v),u[t].m(e,null),o=!0,n||(r=[pe(a=El.call(null,e,{namedValues:i[35].namedValues,isHovered:i[35].isFirstHover,spansHovered:i[5],itemScrollContainer:i[9]})),pe(f=vl.call(null,e,{details:m,findSimilar:i[4]!=null?i[16]:null,embeddings:i[2],addConceptLabel:i[14],addNotification:i[17]!=null?i[17].addNotification:_t,disabled:i[35].paths.length===0||i[2].length===0})),O(e,"mouseenter",g),O(e,"mouseleave",y)],n=!0)},p(h,v){i=h;let T=t;t=d(i),t===T?u[t].p(i,v):(x(),A(u[T],1,1,()=>{u[T]=null}),$(),l=u[t],l?l.p(i,v):(l=u[t]=s[t](i),l.c()),N(l,1),l.m(e,null)),a&&je(a.update)&&v[0]&800&&a.update.call(null,{namedValues:i[35].namedValues,isHovered:i[35].isFirstHover,spansHovered:i[5],itemScrollContainer:i[9]}),f&&je(f.update)&&v[0]&276&&f.update.call(null,{details:m,findSimilar:i[4]!=null?i[16]:null,embeddings:i[2],addConceptLabel:i[14],addNotification:i[17]!=null?i[17].addNotification:_t,disabled:i[35].paths.length===0||i[2].length===0}),(!o||v[0]&1)&&C(e,"hover:cursor-pointer",i[0].length>0),(!o||v[0]&256)&&C(e,"font-bold",i[35].isBlackBolded),(!o||v[0]&256)&&C(e,"font-medium",i[35].isHighlightBolded&&!i[35].isBlackBolded),v[0]&256&&te(e,"color",i[35].isHighlightBolded&&!i[35].isBlackBolded?st:""),v[0]&256&&te(e,"background-color",i[35].isHovered?Ae(mt):i[35].backgroundColor)},i(h){o||(N(l),o=!0)},o(h){A(l),o=!1},d(h){h&&c(e),u[t].d(),n=!1,Me(r)}}}function dt(i){let e,t;return{c(){e=H("span"),t=H("br")},l(l){e=L(l,"SPAN",{});var a=w(e);t=L(a,"BR",{}),a.forEach(c)},m(l,a){V(l,e,a),S(e,t)},d(l){l&&c(e)}}}function Vl(i){let e=i[35].snippetText+"",t;return{c(){t=M(e)},l(l){t=z(l,e)},m(l,a){V(l,t,a)},p(l,a){a[0]&256&&e!==(e=l[35].snippetText+"")&&Y(t,e)},i:j,o:j,d(l){l&&c(t)}}}function Bl(i){let e,t;return e=new Yt({props:{source:i[35].snippetText}}),{c(){ae(e.$$.fragment)},l(l){se(e.$$.fragment,l)},m(l,a){oe(e,l,a),t=!0},p(l,a){const f={};a[0]&256&&(f.source=l[35].snippetText),e.$set(f)},i(l){t||(N(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){re(e,l)}}}function ct(i){let e,t,l,a;const f=[Pl,Cl],o=[];function n(r,s){return r[34].isShown?0:r[34].isEllipsis?1:-1}return~(e=n(i))&&(t=o[e]=f[e](i)),{c(){t&&t.c(),l=Ee()},l(r){t&&t.l(r),l=Ee()},m(r,s){~e&&o[e].m(r,s),V(r,l,s),a=!0},p(r,s){let u=e;e=n(r),e===u?~e&&o[e].p(r,s):(t&&(x(),A(o[u],1,1,()=>{o[u]=null}),$()),~e?(t=o[e],t?t.p(r,s):(t=o[e]=f[e](r),t.c()),N(t,1),t.m(l.parentNode,l)):t=null)},i(r){a||(N(t),a=!0)},o(r){A(t),a=!1},d(r){~e&&o[e].d(r),r&&c(l)}}}function ht(i){let e,t,l,a,f;const o=[Ll,Hl],n=[];function r(s,u){return s[6]?1:0}return l=r(i),a=n[l]=o[l](i),{c(){e=H("div"),t=H("div"),a.c(),this.h()},l(s){e=L(s,"DIV",{class:!0});var u=w(e);t=L(u,"DIV",{class:!0});var d=w(t);a.l(d),d.forEach(c),u.forEach(c),this.h()},h(){P(t,"class","w-30 mt-2 rounded border border-neutral-300 text-center"),P(e,"class","flex flex-row justify-center")},m(s,u){V(s,e,u),S(e,t),n[l].m(t,null),f=!0},p(s,u){let d=l;l=r(s),l===d?n[l].p(s,u):(x(),A(n[d],1,1,()=>{n[d]=null}),$(),a=n[l],a?a.p(s,u):(a=n[l]=o[l](s),a.c()),N(a,1),a.m(t,null))},i(s){f||(N(a),f=!0)},o(s){A(a),f=!1},d(s){s&&c(e),n[l].d()}}}function Hl(i){let e,t;return e=new St({props:{size:"small",class:"w-full",kind:"ghost",icon:il,$$slots:{default:[Al]},$$scope:{ctx:i}}}),e.$on("click",i[31]),{c(){ae(e.$$.fragment)},l(l){se(e.$$.fragment,l)},m(l,a){oe(e,l,a),t=!0},p(l,a){const f={};a[1]&128&&(f.$$scope={dirty:a,ctx:l}),e.$set(f)},i(l){t||(N(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){re(e,l)}}}function Ll(i){let e,t;return e=new St({props:{size:"small",class:"w-full",kind:"ghost",icon:el,$$slots:{default:[Il]},$$scope:{ctx:i}}}),e.$on("click",i[30]),{c(){ae(e.$$.fragment)},l(l){se(e.$$.fragment,l)},m(l,a){oe(e,l,a),t=!0},p(l,a){const f={};a[1]&128&&(f.$$scope={dirty:a,ctx:l}),e.$set(f)},i(l){t||(N(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){re(e,l)}}}function Al(i){let e;return{c(){e=M("Hide excess")},l(t){e=z(t,"Hide excess")},m(t,l){V(t,e,l)},d(t){t&&c(e)}}}function Il(i){let e;return{c(){e=M("Show all")},l(t){e=z(t,"Show all")},m(t,l){V(t,e,l)},d(t){t&&c(e)}}}function Ml(i){let e,t,l,a=i[8],f=[];for(let r=0;rA(f[r],1,1,()=>{f[r]=null});let n=(i[7]||i[6])&&ht(i);return{c(){e=H("div");for(let r=0;r{n=null}),$())},i(r){if(!l){for(let s=0;snull;function zl(i,e,t){let l,a,f,o,n,r,s=j,u=()=>(s(),s=Mt(E,p=>t(26,r=p)),E),d,m;i.$$.on_destroy.push(()=>s());let{text:g}=e,{row:y}=e,{spanPaths:h}=e,{valuePaths:v}=e,{markdown:T=!1}=e,{embeddings:I}=e,{datasetViewStore:E=void 0}=e;u();let{datasetStore:B=void 0}=e,_={},k=new Set;const F=p=>{p.paths.forEach(D=>k.add(D)),t(5,k)},W=p=>{p.paths.forEach(D=>k.delete(D)),t(5,k)};let q={};const ue=p=>{const _e={conceptName:null,conceptNamespace:null,text:f.filter(be=>be.paths.some(Be=>((p==null?void 0:p.paths)||[]).some(ge=>kt(ge,Be)))).map(be=>be.text).join("")};for(const be of Object.keys(p.originalSpans)){const Be=(_[be]||[]).filter(ge=>ge.type==="concept_score");for(const ge of Be){const Re=ge.signal;_e.conceptName=Re.concept_name,_e.conceptNamespace=Re.namespace;break}}return _e},de=Ot();Ye(i,de,p=>t(33,d=p));const ce=(p,D,ze,_e)=>{if(!D||!p)throw Error("Label could not be added, no active concept.");d.mutate([p,D,{insert:[{text:ze,label:_e}]}])};let Z=!1,ke=It(jt);Ye(i,ke,p=>t(9,m=p));let me;const ye=(p,D)=>{E==null||me==null||E.addSearch({path:[we(me)],type:"semantic",query:D,embedding:p})},Te=Ut(),Ne=p=>ue(p),Ce=p=>F(p),Pe=p=>W(p),Ve=()=>t(6,Z=!0),b=()=>t(6,Z=!1);return i.$$set=p=>{"text"in p&&t(18,g=p.text),"row"in p&&t(19,y=p.row),"spanPaths"in p&&t(0,h=p.spanPaths),"valuePaths"in p&&t(20,v=p.valuePaths),"markdown"in p&&t(1,T=p.markdown),"embeddings"in p&&t(2,I=p.embeddings),"datasetViewStore"in p&&u(t(3,E=p.datasetViewStore)),"datasetStore"in p&&t(4,B=p.datasetStore)},i.$$.update=()=>{if(i.$$.dirty[0]&524289&&t(25,l=Object.fromEntries(h.map(p=>[we(p),Ft(y,p)]))),i.$$.dirty[0]&3145728){t(21,_={});for(const p of v){const D=we(p.spanPath);_[D]==null&&t(21,_[D]=[],_),_[D].push(p)}}if(i.$$.dirty[0]&33816576&&t(24,a=Xt(g,l)),i.$$.dirty[0]&18874400&&t(23,f=Tl(a,_,k)),i.$$.dirty[0]&20971520){t(22,q={});for(const p of a)for(const D of p.paths)t(22,q[D]=q[D]||[],q),q[D].push(p)}i.$$.dirty[0]&8388672&&t(8,{snippetSpans:o,someSnippetsHidden:n}=Nl(f,Z),o,(t(7,n),t(23,f),t(6,Z),t(24,a),t(21,_),t(5,k),t(18,g),t(25,l),t(20,v),t(0,h),t(19,y))),i.$$.dirty[0]&67108880&&r!=null&&B!=null&&(me=Wt(r,B))},[h,T,I,E,B,k,Z,n,o,m,F,W,ue,de,ce,ke,ye,Te,g,y,v,_,q,f,a,l,r,Ne,Ce,Pe,Ve,b]}class jl extends le{constructor(e){super(),ie(this,e,zl,Ml,ne,{text:18,row:19,spanPaths:0,valuePaths:20,markdown:1,embeddings:2,datasetViewStore:3,datasetStore:4},null,[-1,-1])}}export{ml as E,jl as S,Yl as T,fl as a,sl as b}; diff --git a/lilac/web/_app/immutable/chunks/navigation.06af7fa8.js b/lilac/web/_app/immutable/chunks/navigation.06af7fa8.js new file mode 100644 index 0000000000000000000000000000000000000000..2f9b0e6a56d96c3a8f323c472bf6874334842d2c --- /dev/null +++ b/lilac/web/_app/immutable/chunks/navigation.06af7fa8.js @@ -0,0 +1 @@ +import{j as o}from"./singletons.42710e75.js";const e=o("goto");export{e as g}; diff --git a/lilac/web/_app/immutable/chunks/notificationsStore.4af93bc4.js b/lilac/web/_app/immutable/chunks/notificationsStore.4af93bc4.js new file mode 100644 index 0000000000000000000000000000000000000000..841bc13358141ed7d24ba58d5d223f1ed94129ae --- /dev/null +++ b/lilac/web/_app/immutable/chunks/notificationsStore.4af93bc4.js @@ -0,0 +1,2 @@ +import{ao as ue,S as B,i as N,s as R,E as b,_ as c,$ as g,m,h,n as V,a0 as E,b as H,J as w,O as x,a1 as C,D as y,F as A,q as P,r as j,u as T,T as fe,am as he,ai as de}from"./index.27e2a960.js";import{a9 as L,ar as ce,F as I,E as le,aX as ge,O as F,aV as q,aC as se,aa as S,M as ae}from"./Commands.2fa1e469.js";import{b as me,c as pe}from"./utils.97898c57.js";import{w as be}from"./index.7efffca5.js";function ve(l){const e=l-1;return e*e*e+1}function Ke(l,{delay:e=0,duration:n=400,easing:t=ue}={}){const i=+getComputedStyle(l).opacity;return{delay:e,duration:n,easing:t,css:r=>`opacity: ${r*i}`}}function Ge(l,{delay:e=0,duration:n=400,easing:t=ve,axis:i="y"}={}){const r=getComputedStyle(l),a=+r.opacity,s=i==="y"?"height":"width",o=parseFloat(r[s]),u=i==="y"?["top","bottom"]:["left","right"],f=u.map(O=>`${O[0].toUpperCase()}${O.slice(1)}`),_=parseFloat(r[`padding${f[0]}`]),p=parseFloat(r[`padding${f[1]}`]),z=parseFloat(r[`margin${f[0]}`]),v=parseFloat(r[`margin${f[1]}`]),d=parseFloat(r[`border${f[0]}Width`]),Y=parseFloat(r[`border${f[1]}Width`]);return{delay:e,duration:n,easing:t,css:O=>`overflow: hidden;opacity: ${Math.min(O*20,1)*a};${s}: ${O*o}px;padding-${u[0]}: ${O*_}px;padding-${u[1]}: ${O*p}px;margin-${u[0]}: ${O*z}px;margin-${u[1]}: ${O*v}px;border-${u[0]}-width: ${O*d}px;border-${u[1]}-width: ${O*Y}px;`}}function G(l){let e,n;return{c(){e=c("title"),n=P(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=j(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&T(n,t[1])},d(t){t&&h(e)}}}function _e(l){let e,n,t=l[1]&&G(l),i=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],r={};for(let a=0;a{n(5,e=b(b({},e),A(u))),n(3,a=y(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class ze extends B{constructor(e){super(),N(this,e,we,_e,R,{size:0,title:1})}}function U(l){let e,n;return{c(){e=c("title"),n=P(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=j(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&T(n,t[1])},d(t){t&&h(e)}}}function Me(l){let e,n,t,i=l[1]&&U(l),r=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],a={};for(let s=0;s{n(5,e=b(b({},e),A(u))),n(3,a=y(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class Ee extends B{constructor(e){super(),N(this,e,Ve,Me,R,{size:0,title:1})}}function J(l){let e,n;return{c(){e=c("title"),n=P(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=j(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&T(n,t[1])},d(t){t&&h(e)}}}function Ce(l){let e,n,t,i,r=l[1]&&J(l),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],s={};for(let o=0;o{n(5,e=b(b({},e),A(u))),n(3,a=y(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class D extends B{constructor(e){super(),N(this,e,ye,Ce,R,{size:0,title:1})}}function Q(l){let e,n;return{c(){e=c("title"),n=P(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=j(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&T(n,t[1])},d(t){t&&h(e)}}}function Ae(l){let e,n,t,i=l[1]&&Q(l),r=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],a={};for(let s=0;s{n(5,e=b(b({},e),A(u))),n(3,a=y(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class k extends B{constructor(e){super(),N(this,e,He,Ae,R,{size:0,title:1})}}function $(l){let e,n;return{c(){e=c("title"),n=P(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=j(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&T(n,t[1])},d(t){t&&h(e)}}}function Oe(l){let e,n,t,i=l[1]&&$(l),r=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],a={};for(let s=0;s{n(5,e=b(b({},e),A(u))),n(3,a=y(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class Be extends B{constructor(e){super(),N(this,e,ke,Oe,R,{size:0,title:1})}}function ee(l){let e,n;return{c(){e=c("title"),n=P(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=j(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&T(n,t[1])},d(t){t&&h(e)}}}function Ne(l){let e,n,t=l[1]&&ee(l),i=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],r={};for(let a=0;a{n(5,e=b(b({},e),A(u))),n(3,a=y(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class xe extends B{constructor(e){super(),N(this,e,Re,Ne,R,{size:0,title:1})}}function te(l){let e,n;return{c(){e=c("title"),n=P(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=j(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&T(n,t[1])},d(t){t&&h(e)}}}function Pe(l){let e,n,t=l[1]&&te(l),i=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],r={};for(let a=0;a{n(5,e=b(b({},e),A(u))),n(3,a=y(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class ie extends B{constructor(e){super(),N(this,e,je,Pe,R,{size:0,title:1})}}function ne(l){let e,n;return{c(){e=c("title"),n=P(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=j(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&T(n,t[1])},d(t){t&&h(e)}}}function Te(l){let e,n,t,i=l[1]&&ne(l),r=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],a={};for(let s=0;s{n(5,e=b(b({},e),A(u))),n(3,a=y(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class Z extends B{constructor(e){super(),N(this,e,Se,Te,R,{size:0,title:1})}}const Ue="itemScrollContainer",Je={string:ie,string_span:ie,uint8:k,uint16:k,uint32:k,uint64:k,int8:k,int16:k,int32:k,int64:k,boolean:Ee,float16:D,float32:D,float64:D,time:Z,date:Z,timestamp:Z,interval:Z,embedding:ze,binary:Be,null:xe};function Qe(l,e,n,t){if(e==null)return[];let i=[];return t==null?i=L(n||e):i=ce(t,n||e),i.filter(r=>re(l,r.path))}function Ye(l,e){return e.some(n=>F(n.path,l.path))}function $e(l,e){const n=ae.field(l);return n==null?!1:Ye(n,e)}function Le(l,e){const n={};let t;if(l.fields!=null){for(const[r,a]of Object.entries(l.fields))if(e.some(s=>F(s.path,a.path))){const s=Le(a,e);s!=null&&(n[r]=s)}}else l.repeated_field!=null&&(e.some(r=>{var a;return F(r.path,(a=l.repeated_field)==null?void 0:a.path)})?t=l.repeated_field:t=void 0);return t==null&&Object.keys(n).length===0?{...l,fields:void 0,repeated_field:void 0}:l.path.length===0||e.some(r=>F(r.path,l.path))?{...l,fields:n,repeated_field:t}:null}function et(l,e){var n;return l==null?[]:e==null?[]:(((n=e==null?void 0:e.ui)==null?void 0:n.media_paths)||[]).map(t=>se(l,t))}function re(l,e){if(l==null)return!1;if(typeof e!="string"&&(e=I(e)),l[e]!=null)return l[e];const n=le(e);return n.length>1?re(l,I(n.slice(0,n.length-1))):!0}function tt(l,e){return l.searchPath!=null&&l.selectedColumns[l.searchPath]!=!1?le(l.searchPath):Fe(e)}function it(l,e,n,t,i,r){if(n.searchEmbedding!=null)return n.searchEmbedding;if(e!=null&&e.preferred_embedding!=null)return e.preferred_embedding;if(l.embedding!=null)return l.embedding;if(i==null)return null;const a=oe(t,i);return(a!=null?[...r||[]].sort((o,u)=>{const f=a.includes(o),_=a.includes(u);return f&&_?0:f?-1:_?1:0}):[])[0]}function oe(l,e){if(l.schema==null||e==null)return[];const n=new Set,t=L(se(l.schema,e)).filter(i=>i.signal!=null&&L(i).some(r=>r.dtype==="embedding"));for(const i of t)i.signal!=null&&n.add(i.signal.signal_name);return Array.from(n)}function nt(l,e){return e==null||l==null?!1:(l.udfs||[]).some(n=>q(e,n.path))}function lt(l,e){return e==null?l.query.searches||[]:(l.query.searches||[]).filter(n=>F(n.path,e))}function Fe(l){if(l.stats==null||l.stats.length===0)return null;const e=(l.visibleFields||[]).filter(t=>t.dtype==="string").map(t=>I(t.path));let n=l.stats.map(t=>({path:t.path,embeddings:oe(l,t.path),avgTextLength:t.avg_text_length,isVisible:e.indexOf(I(t.path))>=0}));return n=n.sort((t,i)=>!t.isVisible&&i.isVisible?1:t.isVisible&&!i.isVisible||t.embeddings.length>0&&i.embeddings.length===0?-1:t.embeddings.length===0&&i.embeddings.length>0?1:t.avgTextLength!=null&&i.avgTextLength!=null?i.avgTextLength-t.avgTextLength:i.embeddings.length-t.embeddings.length),n[0].path}function st(l,e){const n={};for(const r of e){let a=[""];r.tags!=null&&r.tags.length>0&&(a=r.tags);for(const s of a)n[s]==null&&(n[s]={}),n[s][r.namespace]==null&&(n[s][r.namespace]=[]),n[s][r.namespace].push(r)}const t=["lilac"],i=[];for(const r of Object.keys(n).sort()){const a=Object.keys(n[r]).sort((s,o)=>t.indexOf(s)-t.indexOf(o)||s.localeCompare(o)).map(s=>({group:s,items:n[r][s].sort((o,u)=>o.dataset_name.localeCompare(u.dataset_name)).map(o=>({name:o.dataset_name,link:me(o.namespace,o.dataset_name),isSelected:(l==null?void 0:l.namespace)===o.namespace&&(l==null?void 0:l.datasetName)===o.dataset_name}))}));i.push({tag:r,groups:a})}return i}function at(l,e,n,t){const i={};for(const s of e){let o=[""];s.tags!=null&&s.tags.length>0&&(o=s.tags);for(const u of o)i[u]==null&&(i[u]={}),i[u][s.namespace]==null&&(i[u][s.namespace]=[]),i[u][s.namespace].push(s)}const r=["lilac"],a=[];for(const s of Object.keys(i).sort()){const o=Object.keys(i[s]).sort((u,f)=>r.indexOf(u)-r.indexOf(f)||u.localeCompare(f)).map(u=>({group:u===n?`${t}'s concepts`:u,items:i[s][u].sort((f,_)=>f.name.localeCompare(_.name)).map(f=>({name:f.name,link:pe(f.namespace,f.name),isSelected:(l==null?void 0:l.namespace)===f.namespace&&(l==null?void 0:l.name)===f.name}))}));a.push({tag:s,groups:o})}return a}function rt(l,e){const n={};for(const i of l)n[i.namespace]==null&&(n[i.namespace]=[]),n[i.namespace].push(i);const t=[e,"lilac"];return Object.keys(n).sort((i,r)=>t.indexOf(i)-t.indexOf(r)||i.localeCompare(r)).map(i=>({namespace:i,concepts:n[i].sort((r,a)=>r.name.localeCompare(a.name))}))}function ot(l,e,n){var t;return n!=null&&n.auth_enabled&&((t=n.user)==null?void 0:t.id)===l?e:`${l}/${e}`}function ut(l){var e,n;return(((n=(e=l.selectRowsSchema)==null?void 0:e.data)==null?void 0:n.sorts)||[])[0]||null}function ft(l,e){const n=[l,...L(l)],t=n.filter(f=>ge(f.signal)),i=n.filter(f=>{var _;return((_=f.signal)==null?void 0:_.signal_name)==="concept_labels"}),r=n.filter(f=>{var _;return((_=f.signal)==null?void 0:_.signal_name)==="semantic_similarity"}),a=n.filter(f=>{var _;return((_=f.signal)==null?void 0:_.signal_name)==="substring_search"}),s=n.filter(f=>f.dtype==="string_span").filter(f=>!L(f).some(_=>_.dtype==="embedding")),o=s.map(f=>f.path),u=[];for(const f of s){const p=L(f).filter(d=>d.dtype!="string_span").filter(d=>e==null||(e==null?void 0:e.some(Y=>F(Y.path,d.path)))).filter(d=>d.dtype!=null&&d.dtype!="embedding"),z=f.path,v=a.find(d=>q(f.path,d.path));if(v!=null){const d=v.signal;u.push({path:f.path,spanPath:z,type:"keyword",name:d.query,dtype:f.dtype,signal:d})}else p.length===0&&u.push({path:f.path,spanPath:z,type:"leaf_span",name:I(f.path.slice(0,-1)),dtype:f.dtype});for(const d of p){const Y=t.find(M=>q(d.path,M.path)),O=i.find(M=>q(d.path,M.path)),K=r.find(M=>q(d.path,M.path));if(Y!=null){const M=Y.signal;u.push({path:d.path,spanPath:z,type:"concept_score",name:`${M.namespace}/${M.concept_name}`,dtype:d.dtype,signal:M})}else if(O!=null){const M=O.signal;u.push({path:d.path,spanPath:z,type:"label",name:`${M.namespace}/${M.concept_name} label`,dtype:d.dtype,signal:M})}else if(K!=null){const M=K.signal;u.push({path:d.path,spanPath:z,type:"semantic_similarity",name:`similarity: ${M.query}`,dtype:d.dtype,signal:M})}else u.push({path:d.path,spanPath:z,type:"metadata",name:d.path[d.path.length-1],dtype:d.dtype})}}return{spanPaths:o,valuePaths:u}}function Ie(l){const e=` +`,n=l.split(e),t=[];let i=0;for(let r=0;ru.length>0));const n=Object.keys(e);if(n.length===0)return Ie(l);const t=X(l),i=t.length,r=Object.fromEntries(Object.keys(e).map(u=>[u,0]));for(const u of n)e[u].sort((f,_)=>{var v,d;const p=((v=f[S])==null?void 0:v.start)||0,z=((d=_[S])==null?void 0:d.start)||0;return p-z});let a=0;const s=[];let o=Object.fromEntries(Object.entries(r).map(([u,f])=>[u,[e[u][f],e[u][f+1]]]));for(;aa&&(u=v.start),v.enda&&(u=v.end))}const f=Object.fromEntries(Object.entries(o).map(([p,z])=>[p,z.filter(v=>v!=null&&v[S]!=null&&v[S].starta)]));for(const p of Object.keys(f))f[p].length===0&&delete f[p];const _=Object.values(f).flat().map(p=>ae.path(p)).map(p=>I(p));s.push({text:t.slice(a,u).join(""),span:{start:a,end:u},originalSpans:f,paths:_});for(const p of Object.keys(r)){const z=r[p],v=(o[p][0]||{})[S];if(!(v==null||z==null)&&v.end<=u){if(z>e[p].length){delete r[p];continue}r[p]++}}a=u,o=Object.fromEntries(Object.entries(r).map(([p,z])=>[p,[e[p][z],e[p][z+1]]]))}return a(i.notifications.push(t),i))},removeNotification(t){n(i=>(i.notifications=i.notifications.filter(r=>r!==t),i))}}}function gt(l){fe(W,l)}function mt(){if(!he(W))throw new Error("NotificationContext not found");return de(W)}export{ze as A,Je as D,Ue as I,at as a,gt as b,ct as c,lt as d,ut as e,tt as f,st as g,oe as h,ft as i,Le as j,et as k,it as l,rt as m,ot as n,nt as o,Ke as p,Qe as q,dt as r,Ge as s,$e as t,mt as u,ht as v}; diff --git a/lilac/web/_app/immutable/chunks/singletons.42710e75.js b/lilac/web/_app/immutable/chunks/singletons.42710e75.js new file mode 100644 index 0000000000000000000000000000000000000000..7a5309bcf95892bcf780ff02e4fd34b35c5f6529 --- /dev/null +++ b/lilac/web/_app/immutable/chunks/singletons.42710e75.js @@ -0,0 +1 @@ +import{w as u}from"./index.7efffca5.js";var p;const k=((p=globalThis.__sveltekit_1y5vqfz)==null?void 0:p.base)??"";var h;const m=((h=globalThis.__sveltekit_1y5vqfz)==null?void 0:h.assets)??k,w="1692114476171",R="sveltekit:snapshot",T="sveltekit:scroll",I="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function S(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function x(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function g(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function O(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=g(e)}}function U(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||E(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function L(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=g(s);function i(v){switch(v){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function _(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function y(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${m}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==w;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function E(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}let b;function N(e){b=e.client}function P(e){return(...t)=>b[e](...t)}const V={url:_({}),page:_({}),navigating:u(null),updated:y()};export{I,f as P,T as S,R as a,U as b,L as c,x as d,k as e,O as f,S as g,N as h,E as i,P as j,V as s}; diff --git a/lilac/web/_app/immutable/chunks/stores.81cee6f0.js b/lilac/web/_app/immutable/chunks/stores.81cee6f0.js new file mode 100644 index 0000000000000000000000000000000000000000..4203d2ec69dfa3cc0b9d7c64ad1f1fcf51f97bc8 --- /dev/null +++ b/lilac/web/_app/immutable/chunks/stores.81cee6f0.js @@ -0,0 +1 @@ +import{s as e}from"./singletons.42710e75.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; diff --git a/lilac/web/_app/immutable/entry/app.53a07666.js b/lilac/web/_app/immutable/entry/app.53a07666.js new file mode 100644 index 0000000000000000000000000000000000000000..ce274a946eea091950f8b3539e1a8d9b341f1102 --- /dev/null +++ b/lilac/web/_app/immutable/entry/app.53a07666.js @@ -0,0 +1 @@ +import{S as C,i as q,s as U,a as j,e as h,c as z,b,d,f as P,g,h as w,j as W,o as F,k as G,l as H,m as J,n as D,p as m,q as K,r as M,u as Q,v as A,w as I,x as E,y as v,z as O,A as R,B as L}from"../chunks/index.27e2a960.js";const X="modulepreload",Y=function(a,e){return new URL(a,e).href},T={},p=function(e,n,i){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(f=>{if(f=Y(f,i),f in T)return;T[f]=!0;const t=f.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!i)for(let l=s.length-1;l>=0;l--){const u=s[l];if(u.href===f&&(!t||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${r}`))return;const o=document.createElement("link");if(o.rel=t?"stylesheet":X,t||(o.as="script",o.crossOrigin=""),o.href=f,document.head.appendChild(o),t)return new Promise((l,u)=>{o.addEventListener("load",l),o.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${f}`)))})})).then(()=>e())},ie={};function Z(a){let e,n,i;var s=a[1][0];function f(t){return{props:{data:t[3],form:t[2]}}}return s&&(e=E(s,f(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&O(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),b(t,n,r),i=!0},p(t,r){const _={};if(r&8&&(_.data=t[3]),r&4&&(_.form=t[2]),r&2&&s!==(s=t[1][0])){if(e){A();const o=e;d(o.$$.fragment,1,0,()=>{L(o,1)}),P()}s?(e=E(s,f(t)),t[12](e),v(e.$$.fragment),g(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else s&&e.$set(_)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){a[12](null),t&&w(n),e&&L(e,t)}}}function $(a){let e,n,i;var s=a[1][0];function f(t){return{props:{data:t[3],$$slots:{default:[x]},$$scope:{ctx:t}}}}return s&&(e=E(s,f(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&O(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),b(t,n,r),i=!0},p(t,r){const _={};if(r&8&&(_.data=t[3]),r&8215&&(_.$$scope={dirty:r,ctx:t}),r&2&&s!==(s=t[1][0])){if(e){A();const o=e;d(o.$$.fragment,1,0,()=>{L(o,1)}),P()}s?(e=E(s,f(t)),t[11](e),v(e.$$.fragment),g(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else s&&e.$set(_)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){a[11](null),t&&w(n),e&&L(e,t)}}}function x(a){let e,n,i;var s=a[1][1];function f(t){return{props:{data:t[4],form:t[2]}}}return s&&(e=E(s,f(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&O(e.$$.fragment,t),n=h()},m(t,r){e&&R(e,t,r),b(t,n,r),i=!0},p(t,r){const _={};if(r&16&&(_.data=t[4]),r&4&&(_.form=t[2]),r&2&&s!==(s=t[1][1])){if(e){A();const o=e;d(o.$$.fragment,1,0,()=>{L(o,1)}),P()}s?(e=E(s,f(t)),t[10](e),v(e.$$.fragment),g(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else s&&e.$set(_)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){a[10](null),t&&w(n),e&&L(e,t)}}}function V(a){let e,n=a[6]&&y(a);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=H(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=J(e);n&&n.l(s),s.forEach(w),this.h()},h(){D(e,"id","svelte-announcer"),D(e,"aria-live","assertive"),D(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){b(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=y(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&w(e),n&&n.d()}}}function y(a){let e;return{c(){e=K(a[7])},l(n){e=M(n,a[7])},m(n,i){b(n,e,i)},p(n,i){i&128&&Q(e,n[7])},d(n){n&&w(e)}}}function ee(a){let e,n,i,s,f;const t=[$,Z],r=[];function _(l,u){return l[1][1]?0:1}e=_(a),n=r[e]=t[e](a);let o=a[5]&&V(a);return{c(){n.c(),i=j(),o&&o.c(),s=h()},l(l){n.l(l),i=z(l),o&&o.l(l),s=h()},m(l,u){r[e].m(l,u),b(l,i,u),o&&o.m(l,u),b(l,s,u),f=!0},p(l,[u]){let k=e;e=_(l),e===k?r[e].p(l,u):(A(),d(r[k],1,1,()=>{r[k]=null}),P(),n=r[e],n?n.p(l,u):(n=r[e]=t[e](l),n.c()),g(n,1),n.m(i.parentNode,i)),l[5]?o?o.p(l,u):(o=V(l),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i(l){f||(g(n),f=!0)},o(l){d(n),f=!1},d(l){r[e].d(l),l&&w(i),o&&o.d(l),l&&w(s)}}}function te(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:f}=e,{components:t=[]}=e,{form:r}=e,{data_0:_=null}=e,{data_1:o=null}=e;W(i.page.notify);let l=!1,u=!1,k=null;F(()=>{const c=i.page.subscribe(()=>{l&&(n(6,u=!0),n(7,k=document.title||"untitled page"))});return n(5,l=!0),c});function N(c){I[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function S(c){I[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function B(c){I[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return a.$$set=c=>{"stores"in c&&n(8,i=c.stores),"page"in c&&n(9,s=c.page),"constructors"in c&&n(1,f=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,r=c.form),"data_0"in c&&n(3,_=c.data_0),"data_1"in c&&n(4,o=c.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,f,r,_,o,l,u,k,i,s,N,S,B]}class se extends C{constructor(e){super(),q(this,e,te,ee,U,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const re=[()=>p(()=>import("../nodes/0.da30e0e4.js"),["../nodes/0.da30e0e4.js","../chunks/index.27e2a960.js","../chunks/ChevronUp.31af30c3.js","../chunks/Commands.2fa1e469.js","../chunks/index.7efffca5.js","../assets/Commands.319d3f89.css","../chunks/stores.81cee6f0.js","../chunks/singletons.42710e75.js","../chunks/navigation.06af7fa8.js","../chunks/utils.97898c57.js","../chunks/notificationsStore.4af93bc4.js","../chunks/Settings.a4f7a69e.js","../chunks/settingsStore.a935cb75.js","../assets/0.9e166f2a.css"],import.meta.url),()=>p(()=>import("../nodes/1.e4e956a9.js"),["../nodes/1.e4e956a9.js","../chunks/index.27e2a960.js","../chunks/stores.81cee6f0.js","../chunks/singletons.42710e75.js","../chunks/index.7efffca5.js"],import.meta.url),()=>p(()=>import("../nodes/2.8e5651f9.js"),["../nodes/2.8e5651f9.js","../chunks/index.27e2a960.js","../chunks/navigation.06af7fa8.js","../chunks/singletons.42710e75.js","../chunks/index.7efffca5.js","../chunks/Commands.2fa1e469.js","../assets/Commands.319d3f89.css","../chunks/Page.7d66a333.js","../assets/Page.61b340b0.css"],import.meta.url),()=>p(()=>import("../nodes/3.7fc68988.js"),["../nodes/3.7fc68988.js","../chunks/index.27e2a960.js","../chunks/navigation.06af7fa8.js","../chunks/singletons.42710e75.js","../chunks/index.7efffca5.js","../chunks/Page.7d66a333.js","../chunks/Commands.2fa1e469.js","../assets/Commands.319d3f89.css","../assets/Page.61b340b0.css","../chunks/ConceptView.b8745847.js","../chunks/StringSpanHighlight.3d7a4bbd.js","../chunks/notificationsStore.4af93bc4.js","../chunks/utils.97898c57.js","../assets/StringSpanHighlight.c928b3d5.css","../chunks/ChevronUp.31af30c3.js","../chunks/settingsStore.a935cb75.js","../assets/ConceptView.91d1847f.css"],import.meta.url),()=>p(()=>import("../nodes/4.9f919605.js"),["../nodes/4.9f919605.js","../chunks/index.27e2a960.js","../chunks/navigation.06af7fa8.js","../chunks/singletons.42710e75.js","../chunks/index.7efffca5.js","../chunks/Page.7d66a333.js","../chunks/Commands.2fa1e469.js","../assets/Commands.319d3f89.css","../assets/Page.61b340b0.css","../chunks/notificationsStore.4af93bc4.js","../chunks/utils.97898c57.js","../chunks/ConceptView.b8745847.js","../chunks/StringSpanHighlight.3d7a4bbd.js","../assets/StringSpanHighlight.c928b3d5.css","../chunks/ChevronUp.31af30c3.js","../chunks/settingsStore.a935cb75.js","../assets/ConceptView.91d1847f.css","../chunks/RowItemMetadata.3e67c6f0.js","../assets/RowItemMetadata.0f74c501.css","../chunks/ComboBox.9e29cdb2.js","../chunks/Settings.a4f7a69e.js","../assets/4.1e49baa5.css"],import.meta.url),()=>p(()=>import("../nodes/5.bc2d94e2.js"),["../nodes/5.bc2d94e2.js","../chunks/index.27e2a960.js","../chunks/navigation.06af7fa8.js","../chunks/singletons.42710e75.js","../chunks/index.7efffca5.js","../chunks/Commands.2fa1e469.js","../assets/Commands.319d3f89.css","../chunks/Page.7d66a333.js","../assets/Page.61b340b0.css","../chunks/ComboBox.9e29cdb2.js","../chunks/utils.97898c57.js","../assets/5.8302e01e.css"],import.meta.url),()=>p(()=>import("../nodes/6.23e058bb.js"),["../nodes/6.23e058bb.js","../chunks/index.27e2a960.js","../chunks/Page.7d66a333.js","../chunks/Commands.2fa1e469.js","../chunks/index.7efffca5.js","../assets/Commands.319d3f89.css","../assets/Page.61b340b0.css","../chunks/settingsStore.a935cb75.js"],import.meta.url),()=>p(()=>import("../nodes/7.515f40c3.js"),["../nodes/7.515f40c3.js","../chunks/index.27e2a960.js","../chunks/navigation.06af7fa8.js","../chunks/singletons.42710e75.js","../chunks/index.7efffca5.js","../chunks/Page.7d66a333.js","../chunks/Commands.2fa1e469.js","../assets/Commands.319d3f89.css","../assets/Page.61b340b0.css","../chunks/notificationsStore.4af93bc4.js","../chunks/utils.97898c57.js","../chunks/RowItemMetadata.3e67c6f0.js","../chunks/StringSpanHighlight.3d7a4bbd.js","../assets/StringSpanHighlight.c928b3d5.css","../assets/RowItemMetadata.0f74c501.css","../assets/7.483966d0.css"],import.meta.url)],oe=[],ae={"/":[2],"/concepts":[3],"/datasets":[4],"/datasets/new":[5],"/settings":[6],"/signals":[7]},le={handleError:({error:a})=>{console.error(a)}};export{ae as dictionary,le as hooks,ie as matchers,re as nodes,se as root,oe as server_loads}; diff --git a/lilac/web/_app/immutable/entry/start.7ad1fdc9.js b/lilac/web/_app/immutable/entry/start.7ad1fdc9.js new file mode 100644 index 0000000000000000000000000000000000000000..9102a895c06243cef5a4eeaaadc967448bb06e7b --- /dev/null +++ b/lilac/web/_app/immutable/entry/start.7ad1fdc9.js @@ -0,0 +1,3 @@ +import{o as De,t as ye}from"../chunks/index.27e2a960.js";import{S as He,a as Je,I as V,g as Ce,f as Ve,b as we,c as le,s as M,d as Q,i as _e,e as J,P as qe,h as We}from"../chunks/singletons.42710e75.js";function Xe(t,o){return t==="/"||o==="ignore"?t:o==="never"?t.endsWith("/")?t.slice(0,-1):t:o==="always"&&!t.endsWith("/")?t+"/":t}function Ze(t){return t.split("%25").map(decodeURI).join("%25")}function Qe(t){for(const o in t)t[o]=decodeURIComponent(t[o]);return t}const et=["href","pathname","search","searchParams","toString","toJSON"];function tt(t,o){const u=new URL(t);for(const i of et)Object.defineProperty(u,i,{get(){return o(),t[i]},enumerable:!0,configurable:!0});return nt(u),u}function nt(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const at="/__data.json";function rt(t){return t.replace(/\/$/,"")+at}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Fe(t,o){const u=JSON.stringify(o);try{sessionStorage[t]=u}catch{}}function ot(...t){let o=5381;for(const u of t)if(typeof u=="string"){let i=u.length;for(;i;)o=o*33^u.charCodeAt(--i)}else if(ArrayBuffer.isView(u)){const i=new Uint8Array(u.buffer,u.byteOffset,u.byteLength);let d=i.length;for(;d;)o=o*33^i[--d]}else throw new TypeError("value must be a string or TypedArray");return(o>>>0).toString(36)}const fe=window.fetch;window.fetch=(t,o)=>((t instanceof Request?t.method:(o==null?void 0:o.method)||"GET")!=="GET"&&te.delete(Se(t)),fe(t,o));const te=new Map;function it(t,o){const u=Se(t,o),i=document.querySelector(u);if(i!=null&&i.textContent){const{body:d,...f}=JSON.parse(i.textContent),S=i.getAttribute("data-ttl");return S&&te.set(u,{body:d,init:f,ttl:1e3*Number(S)}),Promise.resolve(new Response(d,f))}return fe(t,o)}function st(t,o,u){if(te.size>0){const i=Se(t,u),d=te.get(i);if(d){if(performance.now(){const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(i);if(d)return o.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(i);if(f)return o.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!i)return;const S=i.split(/\[(.+?)\](?!\])/);return"/"+S.map((b,w)=>{if(w%2){if(b.startsWith("x+"))return be(String.fromCharCode(parseInt(b.slice(2),16)));if(b.startsWith("u+"))return be(String.fromCharCode(...b.slice(2).split("-").map(P=>parseInt(P,16))));const p=ct.exec(b);if(!p)throw new Error(`Invalid param: ${b}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,D,x,k,N]=p;return o.push({name:k,matcher:N,optional:!!D,rest:!!x,chained:x?w===1&&S[0]==="":!1}),x?"(.*?)":D?"([^/]*)?":"([^/]+?)"}return be(b)}).join("")}).join("")}/?$`),params:o}}function ft(t){return!/^\([^)]+\)$/.test(t)}function ut(t){return t.slice(1).split("/").filter(ft)}function dt(t,o,u){const i={},d=t.slice(1);let f=0;for(let S=0;Sw).join("/"),f=0;continue}if(b===void 0){l.rest&&(i[l.name]="");continue}if(!l.matcher||u[l.matcher](b)){i[l.name]=b;const w=o[S+1],p=d[S+1];w&&!w.rest&&w.optional&&p&&l.chained&&(f=0);continue}if(l.optional&&l.chained){f++;continue}return}if(!f)return i}function be(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function pt({nodes:t,server_loads:o,dictionary:u,matchers:i}){const d=new Set(o);return Object.entries(u).map(([l,[b,w,p]])=>{const{pattern:D,params:x}=lt(l),k={id:l,exec:N=>{const P=D.exec(N);if(P)return dt(P,x,i)},errors:[1,...p||[]].map(N=>t[N]),layouts:[0,...w||[]].map(S),leaf:f(b)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function f(l){const b=l<0;return b&&(l=~l),[b,t[l]]}function S(l){return l===void 0?l:[d.has(l),t[l]]}}class ee{constructor(o,u){this.status=o,typeof u=="string"?this.body={message:u}:u?this.body=u:this.body={message:`Error: ${o}`}}toString(){return JSON.stringify(this.body)}}class Me{constructor(o,u){this.status=o,this.location=u}}async function ht(t){var o;for(const u in t)if(typeof((o=t[u])==null?void 0:o.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([i,d])=>[i,await d])));return t}const gt=-1,mt=-2,yt=-3,wt=-4,_t=-5,bt=-6;function vt(t,o){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const u=t,i=Array(u.length);function d(f,S=!1){if(f===gt)return;if(f===yt)return NaN;if(f===wt)return 1/0;if(f===_t)return-1/0;if(f===bt)return-0;if(S)throw new Error("Invalid input");if(f in i)return i[f];const l=u[f];if(!l||typeof l!="object")i[f]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const b=l[0],w=o==null?void 0:o[b];if(w)return i[f]=w(d(l[1]));switch(b){case"Date":i[f]=new Date(l[1]);break;case"Set":const p=new Set;i[f]=p;for(let k=1;ko!=null)}const kt="x-sveltekit-invalidated",K=Ke(He)??{},Z=Ke(Je)??{};function ve(t){K[t]=Q()}function Rt(t,o){var $e;const u=pt(t),i=t.nodes[0],d=t.nodes[1];i(),d();const f=document.documentElement,S=[],l=[];let b=null;const w={before_navigate:[],after_navigate:[]};let p={branch:[],error:null,url:null},D=!1,x=!1,k=!0,N=!1,P=!1,z=!1,B=!1,q,j=($e=history.state)==null?void 0:$e[V];j||(j=Date.now(),history.replaceState({...history.state,[V]:j},"",location.href));const ue=K[j];ue&&(history.scrollRestoration="manual",scrollTo(ue.x,ue.y));let F,ne,ae;async function ke(){ae=ae||Promise.resolve(),await ae,ae=null;const e=new URL(location.href),n=W(e,!0);b=null;const r=ne={},a=n&&await he(n);if(r===ne&&a){if(a.type==="redirect")return re(new URL(a.location,e).href,{},[e.pathname],r);a.props.page!==void 0&&(F=a.props.page),q.$set(a.props)}}function Re(e){l.some(n=>n==null?void 0:n.snapshot)&&(Z[e]=l.map(n=>{var r;return(r=n==null?void 0:n.snapshot)==null?void 0:r.capture()}))}function Ae(e){var n;(n=Z[e])==null||n.forEach((r,a)=>{var s,c;(c=(s=l[a])==null?void 0:s.snapshot)==null||c.restore(r)})}function Ie(){ve(j),Fe(He,K),Re(j),Fe(Je,Z)}async function re(e,{noScroll:n=!1,replaceState:r=!1,keepFocus:a=!1,state:s={},invalidateAll:c=!1},g,m){return typeof e=="string"&&(e=new URL(e,Ce(document))),ce({url:e,scroll:n?Q():null,keepfocus:a,redirect_chain:g,details:{state:s,replaceState:r},nav_token:m,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return b={id:e.id,promise:he(e).then(n=>(n.type==="loaded"&&n.state.error&&(b=null),n))},b.promise}async function oe(...e){const r=u.filter(a=>e.some(s=>a.exec(s))).map(a=>Promise.all([...a.layouts,a.leaf].map(s=>s==null?void 0:s[1]())));await Promise.all(r)}function Oe(e){var a;p=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),F=e.props.page,q=new t.root({target:o,props:{...e.props,stores:M,components:l},hydrate:!0}),Ae(j);const r={from:null,to:{params:p.params,route:{id:((a=p.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter"};w.after_navigate.forEach(s=>s(r)),x=!0}async function Y({url:e,params:n,branch:r,status:a,error:s,route:c,form:g}){let m="never";for(const _ of r)(_==null?void 0:_.slash)!==void 0&&(m=_.slash);e.pathname=Xe(e.pathname,m),e.search=e.search;const v={type:"loaded",state:{url:e,params:n,branch:r,error:s,route:c},props:{constructors:St(r).map(_=>_.node.component)}};g!==void 0&&(v.props.form=g);let y={},R=!F,A=0;for(let _=0;_(m.params.add(U),h[U])}),data:(c==null?void 0:c.data)??null,url:tt(r,()=>{m.url=!0}),async fetch(h,U){let $;h instanceof Request?($=h.url,U={body:h.method==="GET"||h.method==="HEAD"?void 0:await h.blob(),cache:h.cache,credentials:h.credentials,headers:h.headers,integrity:h.integrity,keepalive:h.keepalive,method:h.method,mode:h.mode,redirect:h.redirect,referrer:h.referrer,referrerPolicy:h.referrerPolicy,signal:h.signal,...U}):$=h;const C=new URL($,r);return O(C.href),C.origin===r.origin&&($=C.href.slice(r.origin.length)),x?st($,C.href,U):it($,U)},setHeaders:()=>{},depends:O,parent(){return m.parent=!0,n()}};g=await v.universal.load.call(null,_)??null,g=g?await ht(g):null}return{node:v,loader:e,server:c,universal:(R=v.universal)!=null&&R.load?{type:"data",data:g,uses:m}:null,data:g??(c==null?void 0:c.data)??null,slash:((A=v.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Pe(e,n,r,a,s){if(B)return!0;if(!a)return!1;if(a.parent&&e||a.route&&n||a.url&&r)return!0;for(const c of a.params)if(s[c]!==p.params[c])return!0;for(const c of a.dependencies)if(S.some(g=>g(new URL(c))))return!0;return!1}function pe(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}async function he({id:e,invalidating:n,url:r,params:a,route:s}){if((b==null?void 0:b.id)===e)return b.promise;const{errors:c,layouts:g,leaf:m}=s,v=[...g,m];c.forEach(E=>E==null?void 0:E().catch(()=>{})),v.forEach(E=>E==null?void 0:E[1]().catch(()=>{}));let y=null;const R=p.url?e!==p.url.pathname+p.url.search:!1,A=p.route?s.id!==p.route.id:!1;let O=!1;const _=v.map((E,L)=>{var H;const I=p.branch[L],T=!!(E!=null&&E[0])&&((I==null?void 0:I.loader)!==E[1]||Pe(O,A,R,(H=I.server)==null?void 0:H.uses,a));return T&&(O=!0),T});if(_.some(Boolean)){try{y=await Be(r,_)}catch(E){return ie({status:E instanceof ee?E.status:500,error:await X(E,{url:r,params:a,route:{id:s.id}}),url:r,route:s})}if(y.type==="redirect")return y}const h=y==null?void 0:y.nodes;let U=!1;const $=v.map(async(E,L)=>{var ge;if(!E)return;const I=p.branch[L],T=h==null?void 0:h[L];if((!T||T.type==="skip")&&E[1]===(I==null?void 0:I.loader)&&!Pe(U,A,R,(ge=I.universal)==null?void 0:ge.uses,a))return I;if(U=!0,(T==null?void 0:T.type)==="error")throw T;return de({loader:E[1],url:r,params:a,route:s,parent:async()=>{var Te;const je={};for(let me=0;me{});const C=[];for(let E=0;EPromise.resolve({}),server_data_node:pe(c)}),v={node:await d(),loader:d,universal:null,server:null,data:null};return await Y({url:r,params:s,branch:[m,v],status:e,error:n,route:null})}function W(e,n){if(_e(e,J))return;const r=se(e);for(const a of u){const s=a.exec(r);if(s)return{id:e.pathname+e.search,invalidating:n,route:a,params:Qe(s),url:e}}}function se(e){return Ze(e.pathname.slice(J.length)||"/")}function xe({url:e,type:n,intent:r,delta:a}){var m,v;let s=!1;const c={from:{params:p.params,route:{id:((m=p.route)==null?void 0:m.id)??null},url:p.url},to:{params:(r==null?void 0:r.params)??null,route:{id:((v=r==null?void 0:r.route)==null?void 0:v.id)??null},url:e},willUnload:!r,type:n};a!==void 0&&(c.delta=a);const g={...c,cancel:()=>{s=!0}};return P||w.before_navigate.forEach(y=>y(g)),s?null:c}async function ce({url:e,scroll:n,keepfocus:r,redirect_chain:a,details:s,type:c,delta:g,nav_token:m={},accepted:v,blocked:y}){var $,C,E;const R=W(e,!1),A=xe({url:e,type:c,delta:g,intent:R});if(!A){y();return}const O=j;v(),P=!0,x&&M.navigating.set(A),ne=m;let _=R&&await he(R);if(!_){if(_e(e,J))return await G(e);_=await Ne(e,{id:null},await X(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(R==null?void 0:R.url)||e,ne!==m)return!1;if(_.type==="redirect")if(a.length>10||a.includes(e.pathname))_=await ie({status:500,error:await X(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},[...a,e.pathname],m),!1;else(($=_.props.page)==null?void 0:$.status)>=400&&await M.updated.check()&&await G(e);if(S.length=0,B=!1,N=!0,ve(O),Re(O),(C=_.props.page)!=null&&C.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(E=_.props.page)==null?void 0:E.url.pathname),s){const L=s.replaceState?0:1;if(s.state[V]=j+=L,history[s.replaceState?"replaceState":"pushState"](s.state,"",e),!s.replaceState){let I=j+1;for(;Z[I]||K[I];)delete Z[I],delete K[I],I+=1}}b=null,x?(p=_.state,_.props.page&&(_.props.page.url=e),q.$set(_.props)):Oe(_);const{activeElement:h}=document;if(await ye(),k){const L=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));n?scrollTo(n.x,n.y):L?L.scrollIntoView():scrollTo(0,0)}const U=document.activeElement!==h&&document.activeElement!==document.body;!r&&!U&&Ee(),k=!0,_.props.page&&(F=_.props.page),P=!1,c==="popstate"&&Ae(j),w.after_navigate.forEach(L=>L(A)),M.navigating.set(null),N=!1}async function Ne(e,n,r,a){return e.origin===location.origin&&e.pathname===location.pathname&&!D?await ie({status:a,error:r,url:e,route:n}):await G(e)}function G(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;f.addEventListener("mousemove",c=>{const g=c.target;clearTimeout(e),e=setTimeout(()=>{a(g,2)},20)});function n(c){a(c.composedPath()[0],1)}f.addEventListener("mousedown",n),f.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(c=>{for(const g of c)g.isIntersecting&&(oe(se(new URL(g.target.href))),r.unobserve(g.target))},{threshold:0});function a(c,g){const m=Ve(c,f);if(!m)return;const{url:v,external:y,download:R}=we(m,J);if(y||R)return;const A=le(m);if(!A.reload)if(g<=A.preload_data){const O=W(v,!1);O&&Le(O)}else g<=A.preload_code&&oe(se(v))}function s(){r.disconnect();for(const c of f.querySelectorAll("a")){const{url:g,external:m,download:v}=we(c,J);if(m||v)continue;const y=le(c);y.reload||(y.preload_code===qe.viewport&&r.observe(c),y.preload_code===qe.eager&&oe(se(g)))}}w.after_navigate.push(s),s()}function X(e,n){return e instanceof ee?e.body:t.hooks.handleError({error:e,event:n})??{message:n.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{De(()=>(w.after_navigate.push(e),()=>{const n=w.after_navigate.indexOf(e);w.after_navigate.splice(n,1)}))},before_navigate:e=>{De(()=>(w.before_navigate.push(e),()=>{const n=w.before_navigate.indexOf(e);w.before_navigate.splice(n,1)}))},disable_scroll_handling:()=>{(N||!x)&&(k=!1)},goto:(e,n={})=>re(e,n,[]),invalidate:e=>{if(typeof e=="function")S.push(e);else{const{href:n}=new URL(e,location.href);S.push(r=>r.href===n)}return ke()},invalidate_all:()=>(B=!0,ke()),preload_data:async e=>{const n=new URL(e,Ce(document)),r=W(n,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${n}`);await Le(r)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const n=new URL(location.href),{branch:r,route:a}=p;if(!a)return;const s=await Ue(p.branch.length,r,a.errors);if(s){const c=await Y({url:n,params:p.params,branch:r.slice(0,s.idx).concat(s.node),status:e.status??500,error:e.error,route:a});p=c.state,q.$set(c.props),ye().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},[]):(q.$set({form:null,page:{...F,form:e.data,status:e.status}}),await ye(),q.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{var a;let r=!1;if(Ie(),!P){const s={from:{params:p.params,route:{id:((a=p.route)==null?void 0:a.id)??null},url:p.url},to:null,willUnload:!0,type:"leave",cancel:()=>r=!0};w.before_navigate.forEach(c=>c(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(e=navigator.connection)!=null&&e.saveData||Ye(),f.addEventListener("click",n=>{var A;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=Ve(n.composedPath()[0],f);if(!r)return;const{url:a,external:s,target:c,download:g}=we(r,J);if(!a)return;if(c==="_parent"||c==="_top"){if(window.parent!==window)return}else if(c&&c!=="_self")return;const m=le(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||g)return;if(s||m.reload){xe({url:a,type:"link"})?P=!0:n.preventDefault();return}const[y,R]=a.href.split("#");if(R!==void 0&&y===location.href.split("#")[0]){if(p.url.hash===a.hash){n.preventDefault(),(A=r.ownerDocument.getElementById(R))==null||A.scrollIntoView();return}if(z=!0,ve(j),p.url=a,M.page.set({...F,url:a}),M.page.notify(),!m.replace_state)return;z=!1,n.preventDefault()}ce({url:a,scroll:m.noscroll?Q():null,keepfocus:m.keep_focus??!1,redirect_chain:[],details:{state:{},replaceState:m.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),f.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const c=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(_e(c,J))return;const g=n.target,{keep_focus:m,noscroll:v,reload:y,replace_state:R}=le(g);if(y)return;n.preventDefault(),n.stopPropagation();const A=new FormData(g),O=a==null?void 0:a.getAttribute("name");O&&A.append(O,(a==null?void 0:a.getAttribute("value"))??""),c.search=new URLSearchParams(A).toString(),ce({url:c,scroll:v?Q():null,keepfocus:m??!1,redirect_chain:[],details:{state:{},replaceState:R??c.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[V]){if(n.state[V]===j)return;const a=K[n.state[V]];if(p.url.href.split("#")[0]===location.href.split("#")[0]){K[j]=Q(),j=n.state[V],scrollTo(a.x,a.y);return}const s=n.state[V]-j;await ce({url:new URL(location.href),scroll:a,keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{j=n.state[V]},blocked:()=>{history.go(-s)},type:"popstate",delta:s})}}),addEventListener("hashchange",()=>{z&&(z=!1,history.replaceState({...history.state,[V]:++j},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&M.navigating.set(null)})},_hydrate:async({status:e=200,error:n,node_ids:r,params:a,route:s,data:c,form:g})=>{D=!0;const m=new URL(location.href);({params:a={},route:s={id:null}}=W(m,!1)||{});let v;try{const y=r.map(async(O,_)=>{const h=c[_];return h!=null&&h.uses&&(h.uses=Ge(h.uses)),de({loader:t.nodes[O],url:m,params:a,route:s,parent:async()=>{const U={};for(let $=0;$<_;$+=1)Object.assign(U,(await y[$]).data);return U},server_data_node:pe(h)})}),R=await Promise.all(y),A=u.find(({id:O})=>O===s.id);if(A){const O=A.layouts;for(let _=0;_d?"1":"0").join(""));const i=await fe(u.href);if(!i.ok)throw new ee(i.status,await i.json());return new Promise(async d=>{var p;const f=new Map,S=i.body.getReader(),l=new TextDecoder;function b(D){return vt(D,{Promise:x=>new Promise((k,N)=>{f.set(x,{fulfil:k,reject:N})})})}let w="";for(;;){const{done:D,value:x}=await S.read();if(D&&!w)break;for(w+=!x&&w?` +`:l.decode(x);;){const k=w.indexOf(` +`);if(k===-1)break;const N=JSON.parse(w.slice(0,k));if(w=w.slice(k+1),N.type==="redirect")return d(N);if(N.type==="data")(p=N.nodes)==null||p.forEach(P=>{(P==null?void 0:P.type)==="data"&&(P.uses=Ge(P.uses),P.data=b(P.data))}),d(N);else if(N.type==="chunk"){const{id:P,data:z,error:B}=N,q=f.get(P);f.delete(P),B?q.reject(b(B)):q.fulfil(b(z))}}}})}function Ge(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function Ee(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const o=document.body,u=o.getAttribute("tabindex");o.tabIndex=-1,o.focus({preventScroll:!0,focusVisible:!1}),u!==null?o.setAttribute("tabindex",u):o.removeAttribute("tabindex");const i=getSelection();if(i&&i.type!=="None"){const d=[];for(let f=0;f{if(i.rangeCount===d.length){for(let f=0;f{const u=localStorage.getItem(t);if(u!=null)try{l(0,n=JSON.parse(u))}catch{l(0,n=u)}else a(),i("save")}),Et(()=>{o!==n&&(a(),i("update",{prevValue:o,value:n})),o=n}),s.$$set=u=>{"key"in u&&l(1,t=u.key),"value"in u&&l(0,n=u.value)},[n,t,r,kt]}class vl extends le{constructor(e){super(),se(this,e,bl,null,ne,{key:1,value:0,clearItem:2,clearAll:3})}get clearItem(){return this.$$.ctx[2]}get clearAll(){return kt}}const $l=vl,kl=s=>({}),Ue=s=>({}),wl=s=>({}),He=s=>({}),Sl=s=>({}),Fe=s=>({});function Pe(s){let e,l,t,n,r,i,o,a,u,f,d,_,c,S,O;l=new zt({props:{kind:s[0],iconDescription:s[6]}});const I=s[15].title,j=ue(I,s,s[14],Fe),h=j||El(s),$=s[15].subtitle,U=ue($,s,s[14],He),E=U||Cl(s),p=s[15].caption,k=ue(p,s,s[14],Ue),w=k||Il(s),W=s[15].default,D=ue(W,s,s[14],null);let H=!s[8]&&Re(s),pe=[{role:s[2]},{kind:s[0]},s[12],{style:_=""+((s[9]&&"width: 100%;")+s[12].style)}],be={};for(let g=0;g{H=null}),ee()):H?(H.p(g,V),V&256&&b(H,1)):(H=Re(g),H.c(),b(H,1),H.m(e,null)),me(e,be=ge(pe,[(!c||V&4)&&{role:g[2]},(!c||V&1)&&{kind:g[0]},V&4096&&g[12],(!c||V&4608&&_!==(_=""+((g[9]&&"width: 100%;")+g[12].style)))&&{style:_}])),T(e,"bx--toast-notification",!0),T(e,"bx--toast-notification--low-contrast",g[1]),T(e,"bx--toast-notification--error",g[0]==="error"),T(e,"bx--toast-notification--info",g[0]==="info"),T(e,"bx--toast-notification--info-square",g[0]==="info-square"),T(e,"bx--toast-notification--success",g[0]==="success"),T(e,"bx--toast-notification--warning",g[0]==="warning"),T(e,"bx--toast-notification--warning-alt",g[0]==="warning-alt")},i(g){c||(b(l.$$.fragment,g),b(h,g),b(E,g),b(w,g),b(D,g),b(H),c=!0)},o(g){v(l.$$.fragment,g),v(h,g),v(E,g),v(w,g),v(D,g),v(H),c=!1},d(g){g&&m(e),G(l),h&&h.d(g),E&&E.d(g),w&&w.d(g),D&&D.d(g),H&&H.d(),S=!1,we(O)}}}function El(s){let e;return{c(){e=J(s[3])},l(l){e=K(l,s[3])},m(l,t){C(l,e,t)},p(l,t){t&8&&Z(e,l[3])},d(l){l&&m(e)}}}function Cl(s){let e;return{c(){e=J(s[4])},l(l){e=K(l,s[4])},m(l,t){C(l,e,t)},p(l,t){t&16&&Z(e,l[4])},d(l){l&&m(e)}}}function Il(s){let e;return{c(){e=J(s[5])},l(l){e=K(l,s[5])},m(l,t){C(l,e,t)},p(l,t){t&32&&Z(e,l[5])},d(l){l&&m(e)}}}function Re(s){let e,l;return e=new yt({props:{iconDescription:s[7]}}),e.$on("click",s[11]),{c(){q(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&128&&(r.iconDescription=t[7]),e.$set(r)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function Dl(s){let e,l,t=s[10]&&Pe(s);return{c(){t&&t.c(),e=_e()},l(n){t&&t.l(n),e=_e()},m(n,r){t&&t.m(n,r),C(n,e,r),l=!0},p(n,[r]){n[10]?t?(t.p(n,r),r&1024&&b(t,1)):(t=Pe(n),t.c(),b(t,1),t.m(e.parentNode,e)):t&&(x(),v(t,1,1,()=>{t=null}),ee())},i(n){l||(b(t),l=!0)},o(n){v(t),l=!1},d(n){t&&t.d(n),n&&m(e)}}}function Vl(s,e,l){const t=["kind","lowContrast","timeout","role","title","subtitle","caption","statusIconDescription","closeButtonDescription","hideCloseButton","fullWidth"];let n=ie(e,t),{$$slots:r={},$$scope:i}=e,{kind:o="error"}=e,{lowContrast:a=!1}=e,{timeout:u=0}=e,{role:f="alert"}=e,{title:d=""}=e,{subtitle:_=""}=e,{caption:c=""}=e,{statusIconDescription:S=o+" icon"}=e,{closeButtonDescription:O="Close notification"}=e,{hideCloseButton:I=!1}=e,{fullWidth:j=!1}=e;const h=Ae();let $=!0,U;function E(D){h("close",{timeout:D===!0},{cancelable:!0})&&l(10,$=!1)}De(()=>(u&&(U=setTimeout(()=>E(!0),u)),()=>{clearTimeout(U)}));function p(D){Q.call(this,s,D)}function k(D){Q.call(this,s,D)}function w(D){Q.call(this,s,D)}function W(D){Q.call(this,s,D)}return s.$$set=D=>{e=Y(Y({},e),ve(D)),l(12,n=ie(e,t)),"kind"in D&&l(0,o=D.kind),"lowContrast"in D&&l(1,a=D.lowContrast),"timeout"in D&&l(13,u=D.timeout),"role"in D&&l(2,f=D.role),"title"in D&&l(3,d=D.title),"subtitle"in D&&l(4,_=D.subtitle),"caption"in D&&l(5,c=D.caption),"statusIconDescription"in D&&l(6,S=D.statusIconDescription),"closeButtonDescription"in D&&l(7,O=D.closeButtonDescription),"hideCloseButton"in D&&l(8,I=D.hideCloseButton),"fullWidth"in D&&l(9,j=D.fullWidth),"$$scope"in D&&l(14,i=D.$$scope)},[o,a,f,d,_,c,S,O,I,j,$,E,n,u,i,r,p,k,w,W]}class Nl extends le{constructor(e){super(),se(this,e,Vl,Dl,ne,{kind:0,lowContrast:1,timeout:13,role:2,title:3,subtitle:4,caption:5,statusIconDescription:6,closeButtonDescription:7,hideCloseButton:8,fullWidth:9})}}const wt=Nl;function Tl(s){let e,l,t,n;const r=s[8].default,i=ue(r,s,s[7],null);let o=[{role:"table"},s[4]],a={};for(let u=0;ul(6,r=h)),Ct("StructuredListWrapper",{selectedValue:c,update:h=>{c.set(h)}});function S(h){Q.call(this,s,h)}function O(h){Q.call(this,s,h)}function I(h){Q.call(this,s,h)}function j(h){Q.call(this,s,h)}return s.$$set=h=>{e=Y(Y({},e),ve(h)),l(4,n=ie(e,t)),"selected"in h&&l(5,a=h.selected),"condensed"in h&&l(0,u=h.condensed),"flush"in h&&l(1,f=h.flush),"selection"in h&&l(2,d=h.selection),"$$scope"in h&&l(7,o=h.$$scope)},s.$$.update=()=>{s.$$.dirty&64&&l(5,a=r),s.$$.dirty&64&&_("change",r)},[u,f,d,c,n,a,r,o,i,S,O,I,j]}class Bl extends le{constructor(e){super(),se(this,e,Ll,Tl,ne,{selected:5,condensed:0,flush:1,selection:2})}}const Ml=Bl;function Al(s){let e,l,t,n;const r=s[2].default,i=ue(r,s,s[1],null);let o=[{role:"rowgroup"},s[0]],a={};for(let u=0;u{e=Y(Y({},e),ve(d)),l(0,n=ie(e,t)),"$$scope"in d&&l(1,i=d.$$scope)},[n,i,r,o,a,u,f]}class zl extends le{constructor(e){super(),se(this,e,ql,Al,ne,{})}}const yl=zl;function Gl(s){let e,l,t,n,r;const i=s[4].default,o=ue(i,s,s[3],null);let a=[{role:l=s[0]?"columnheader":"cell"},s[2]],u={};for(let f=0;f{e=Y(Y({},e),ve(c)),l(2,n=ie(e,t)),"head"in c&&l(0,o=c.head),"noWrap"in c&&l(1,a=c.noWrap),"$$scope"in c&&l(3,i=c.$$scope)},[o,a,n,i,r,u,f,d,_]}class Ul extends le{constructor(e){super(),se(this,e,Ol,Gl,ne,{head:0,noWrap:1})}}const he=Ul;function Hl(s){let e,l,t,n;const r=s[5].default,i=ue(r,s,s[4],null);let o=[{role:"row"},s[3]],a={};for(let u=0;u{i[f]=null}),ee(),l=i[e],l?l.p(a,u):(l=i[e]=r[e](a),l.c()),b(l,1),l.m(t.parentNode,t))},i(a){n||(b(l),n=!0)},o(a){v(l),n=!1},d(a){i[e].d(a),a&&m(t)}}}function Rl(s,e,l){const t=["head","label","tabindex"];let n=ie(e,t),{$$slots:r={},$$scope:i}=e,{head:o=!1}=e,{label:a=!1}=e,{tabindex:u="0"}=e;function f($){Q.call(this,s,$)}function d($){Q.call(this,s,$)}function _($){Q.call(this,s,$)}function c($){Q.call(this,s,$)}function S($){Q.call(this,s,$)}function O($){Q.call(this,s,$)}function I($){Q.call(this,s,$)}function j($){Q.call(this,s,$)}function h($){Q.call(this,s,$)}return s.$$set=$=>{e=Y(Y({},e),ve($)),l(3,n=ie(e,t)),"head"in $&&l(0,o=$.head),"label"in $&&l(1,a=$.label),"tabindex"in $&&l(2,u=$.tabindex),"$$scope"in $&&l(4,i=$.$$scope)},[o,a,u,n,i,r,f,d,_,c,S,O,I,j,h]}class jl extends le{constructor(e){super(),se(this,e,Rl,Pl,ne,{head:0,label:1,tabindex:2})}}const Ie=jl,Wl=s=>({theme:s&1}),je=s=>({theme:s[0]});function We(s,e,l){const t=s.slice();return t[0]=e[l],t}function Je(s){let e,l,t;function n(i){s[9](i)}let r={key:s[2]};return s[0]!==void 0&&(r.value=s[0]),e=new $l({props:r}),mt.push(()=>ht(e,"value",n)),{c(){q(e.$$.fragment)},l(i){z(e.$$.fragment,i)},m(i,o){y(e,i,o),t=!0},p(i,o){const a={};o&4&&(a.key=i[2]),!l&&o&1&&(l=!0,a.value=i[0],gt(()=>l=!1)),e.$set(a)},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){v(e.$$.fragment,i),t=!1},d(i){G(e,i)}}}function Jl(s){let e,l,t;const n=[s[5]];function r(o){s[11](o)}let i={$$slots:{default:[Ql]},$$scope:{ctx:s}};for(let o=0;oht(e,"selected",r)),{c(){q(e.$$.fragment)},l(o){z(e.$$.fragment,o)},m(o,a){y(e,o,a),t=!0},p(o,a){const u=a&32?ge(n,[pt(o[5])]):{};a&4128&&(u.$$scope={dirty:a,ctx:o}),!l&&a&1&&(l=!0,u.selected=o[0],gt(()=>l=!1)),e.$set(u)},i(o){t||(b(e.$$.fragment,o),t=!0)},o(o){v(e.$$.fragment,o),t=!1},d(o){G(e,o)}}}function Kl(s){let e,l;const t=[s[4],{toggled:s[0]===s[4].themes[1]}];let n={};for(let r=0;ro[0];for(let o=0;o{i=null}),ee());let S=l;l=u(_),l===S?~l&&a[l].p(_,c):(t&&(x(),v(a[S],1,1,()=>{a[S]=null}),ee()),~l?(t=a[l],t?t.p(_,c):(t=a[l]=o[l](_),t.c()),b(t,1),t.m(n.parentNode,n)):t=null),d&&d.p&&(!r||c&4097)&&fe(d,f,_,_[12],r?de(f,_[12],c,Wl):ce(_[12]),je)},i(_){r||(b(i),b(t),b(d,_),r=!0)},o(_){v(i),v(t),v(d,_),r=!1},d(_){i&&i.d(_),_&&m(e),~l&&a[l].d(_),_&&m(n),d&&d.d(_)}}}function Xl(s,e,l){let{$$slots:t={},$$scope:n}=e,{theme:r="white"}=e,{tokens:i={}}=e,{persist:o=!1}=e,{persistKey:a="theme"}=e,{render:u=void 0}=e,{toggle:f={themes:["white","g100"],labelA:"",labelB:"",labelText:"Dark mode",hideLabel:!1}}=e;const d={white:"White",g10:"Gray 10",g80:"Gray 80",g90:"Gray 90",g100:"Gray 100"},_=Object.keys(d);let{select:c={themes:_,labelText:"Themes",hideLabel:!1}}=e;const S=Ae();function O(h){r=h,l(0,r)}const I=({detail:h})=>{l(0,r=h.toggled?f.themes[1]:f.themes[0])};function j(h){r=h,l(0,r)}return s.$$set=h=>{"theme"in h&&l(0,r=h.theme),"tokens"in h&&l(7,i=h.tokens),"persist"in h&&l(1,o=h.persist),"persistKey"in h&&l(2,a=h.persistKey),"render"in h&&l(3,u=h.render),"toggle"in h&&l(4,f=h.toggle),"select"in h&&l(5,c=h.select),"$$scope"in h&&l(12,n=h.$$scope)},s.$$.update=()=>{s.$$.dirty&129&&typeof window<"u"&&(Object.entries(i).forEach(([h,$])=>{document.documentElement.style.setProperty(`--cds-${h}`,$)}),r in d?(document.documentElement.setAttribute("theme",r),S("update",{theme:r})):console.warn(`[Theme.svelte] invalid theme "${r}". Value must be one of: ${JSON.stringify(Object.keys(d))}`))},[r,o,a,u,f,c,d,i,t,O,I,j,n]}class Zl extends le{constructor(e){super(),se(this,e,Xl,Yl,ne,{theme:0,tokens:7,persist:1,persistKey:2,render:3,toggle:4,select:5})}}const xl=Zl;function es(s){let e;return{c(){e=J("message")},l(l){e=K(l,"message")},m(l,t){C(l,e,t)},d(l){l&&m(e)}}}function ts(s){let e=s[0].message+"",l;return{c(){l=J(e)},l(t){l=K(t,e)},m(t,n){C(t,l,n)},p(t,n){n&1&&e!==(e=t[0].message+"")&&Z(l,e)},d(t){t&&m(l)}}}function ls(s){let e,l,t,n;return e=new he({props:{$$slots:{default:[es]},$$scope:{ctx:s}}}),t=new he({props:{$$slots:{default:[ts]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment),l=F(),q(t.$$.fragment)},l(r){z(e.$$.fragment,r),l=P(r),z(t.$$.fragment,r)},m(r,i){y(e,r,i),C(r,l,i),y(t,r,i),n=!0},p(r,i){const o={};i&2&&(o.$$scope={dirty:i,ctx:r}),e.$set(o);const a={};i&3&&(a.$$scope={dirty:i,ctx:r}),t.$set(a)},i(r){n||(b(e.$$.fragment,r),b(t.$$.fragment,r),n=!0)},o(r){v(e.$$.fragment,r),v(t.$$.fragment,r),n=!1},d(r){G(e,r),r&&m(l),G(t,r)}}}function ss(s){let e;return{c(){e=J("url")},l(l){e=K(l,"url")},m(l,t){C(l,e,t)},d(l){l&&m(e)}}}function ns(s){let e=s[0].request.method+"",l,t,n=s[0].request.url+"",r;return{c(){l=J(e),t=F(),r=J(n)},l(i){l=K(i,e),t=P(i),r=K(i,n)},m(i,o){C(i,l,o),C(i,t,o),C(i,r,o)},p(i,o){o&1&&e!==(e=i[0].request.method+"")&&Z(l,e),o&1&&n!==(n=i[0].request.url+"")&&Z(r,n)},d(i){i&&m(l),i&&m(t),i&&m(r)}}}function rs(s){let e,l,t,n;return e=new he({props:{$$slots:{default:[ss]},$$scope:{ctx:s}}}),t=new he({props:{$$slots:{default:[ns]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment),l=F(),q(t.$$.fragment)},l(r){z(e.$$.fragment,r),l=P(r),z(t.$$.fragment,r)},m(r,i){y(e,r,i),C(r,l,i),y(t,r,i),n=!0},p(r,i){const o={};i&2&&(o.$$scope={dirty:i,ctx:r}),e.$set(o);const a={};i&3&&(a.$$scope={dirty:i,ctx:r}),t.$set(a)},i(r){n||(b(e.$$.fragment,r),b(t.$$.fragment,r),n=!0)},o(r){v(e.$$.fragment,r),v(t.$$.fragment,r),n=!1},d(r){G(e,r),r&&m(l),G(t,r)}}}function is(s){let e;return{c(){e=J("status")},l(l){e=K(l,"status")},m(l,t){C(l,e,t)},d(l){l&&m(e)}}}function os(s){let e=s[0].status+"",l,t,n=s[0].statusText+"",r;return{c(){l=J(e),t=F(),r=J(n)},l(i){l=K(i,e),t=P(i),r=K(i,n)},m(i,o){C(i,l,o),C(i,t,o),C(i,r,o)},p(i,o){o&1&&e!==(e=i[0].status+"")&&Z(l,e),o&1&&n!==(n=i[0].statusText+"")&&Z(r,n)},d(i){i&&m(l),i&&m(t),i&&m(r)}}}function as(s){let e,l,t,n;return e=new he({props:{$$slots:{default:[is]},$$scope:{ctx:s}}}),t=new he({props:{$$slots:{default:[os]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment),l=F(),q(t.$$.fragment)},l(r){z(e.$$.fragment,r),l=P(r),z(t.$$.fragment,r)},m(r,i){y(e,r,i),C(r,l,i),y(t,r,i),n=!0},p(r,i){const o={};i&2&&(o.$$scope={dirty:i,ctx:r}),e.$set(o);const a={};i&3&&(a.$$scope={dirty:i,ctx:r}),t.$set(a)},i(r){n||(b(e.$$.fragment,r),b(t.$$.fragment,r),n=!0)},o(r){v(e.$$.fragment,r),v(t.$$.fragment,r),n=!1},d(r){G(e,r),r&&m(l),G(t,r)}}}function us(s){let e;return{c(){e=J("path")},l(l){e=K(l,"path")},m(l,t){C(l,e,t)},d(l){l&&m(e)}}}function fs(s){let e=JSON.stringify(s[0].request.path,null,2)+"",l;return{c(){l=J(e)},l(t){l=K(t,e)},m(t,n){C(t,l,n)},p(t,n){n&1&&e!==(e=JSON.stringify(t[0].request.path,null,2)+"")&&Z(l,e)},d(t){t&&m(l)}}}function cs(s){let e,l,t,n;return e=new he({props:{$$slots:{default:[us]},$$scope:{ctx:s}}}),t=new he({props:{class:"whitespace-pre",$$slots:{default:[fs]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment),l=F(),q(t.$$.fragment)},l(r){z(e.$$.fragment,r),l=P(r),z(t.$$.fragment,r)},m(r,i){y(e,r,i),C(r,l,i),y(t,r,i),n=!0},p(r,i){const o={};i&2&&(o.$$scope={dirty:i,ctx:r}),e.$set(o);const a={};i&3&&(a.$$scope={dirty:i,ctx:r}),t.$set(a)},i(r){n||(b(e.$$.fragment,r),b(t.$$.fragment,r),n=!0)},o(r){v(e.$$.fragment,r),v(t.$$.fragment,r),n=!1},d(r){G(e,r),r&&m(l),G(t,r)}}}function ds(s){let e;return{c(){e=J("body")},l(l){e=K(l,"body")},m(l,t){C(l,e,t)},d(l){l&&m(e)}}}function _s(s){let e=JSON.stringify(s[0].request.body,null,2)+"",l;return{c(){l=J(e)},l(t){l=K(t,e)},m(t,n){C(t,l,n)},p(t,n){n&1&&e!==(e=JSON.stringify(t[0].request.body,null,2)+"")&&Z(l,e)},d(t){t&&m(l)}}}function ms(s){let e,l,t,n;return e=new he({props:{$$slots:{default:[ds]},$$scope:{ctx:s}}}),t=new he({props:{class:"whitespace-pre",$$slots:{default:[_s]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment),l=F(),q(t.$$.fragment)},l(r){z(e.$$.fragment,r),l=P(r),z(t.$$.fragment,r)},m(r,i){y(e,r,i),C(r,l,i),y(t,r,i),n=!0},p(r,i){const o={};i&2&&(o.$$scope={dirty:i,ctx:r}),e.$set(o);const a={};i&3&&(a.$$scope={dirty:i,ctx:r}),t.$set(a)},i(r){n||(b(e.$$.fragment,r),b(t.$$.fragment,r),n=!0)},o(r){v(e.$$.fragment,r),v(t.$$.fragment,r),n=!1},d(r){G(e,r),r&&m(l),G(t,r)}}}function hs(s){let e;return{c(){e=J("details")},l(l){e=K(l,"details")},m(l,t){C(l,e,t)},d(l){l&&m(e)}}}function gs(s){let e=s[0].body.detail+"",l;return{c(){l=J(e)},l(t){l=K(t,e)},m(t,n){C(t,l,n)},p(t,n){n&1&&e!==(e=t[0].body.detail+"")&&Z(l,e)},d(t){t&&m(l)}}}function ps(s){let e,l,t,n;return e=new he({props:{$$slots:{default:[hs]},$$scope:{ctx:s}}}),t=new he({props:{class:"whitespace-break-spaces",$$slots:{default:[gs]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment),l=F(),q(t.$$.fragment)},l(r){z(e.$$.fragment,r),l=P(r),z(t.$$.fragment,r)},m(r,i){y(e,r,i),C(r,l,i),y(t,r,i),n=!0},p(r,i){const o={};i&2&&(o.$$scope={dirty:i,ctx:r}),e.$set(o);const a={};i&3&&(a.$$scope={dirty:i,ctx:r}),t.$set(a)},i(r){n||(b(e.$$.fragment,r),b(t.$$.fragment,r),n=!0)},o(r){v(e.$$.fragment,r),v(t.$$.fragment,r),n=!1},d(r){G(e,r),r&&m(l),G(t,r)}}}function bs(s){let e,l,t,n,r,i,o,a,u,f,d,_;return e=new Ie({props:{$$slots:{default:[ls]},$$scope:{ctx:s}}}),t=new Ie({props:{$$slots:{default:[rs]},$$scope:{ctx:s}}}),r=new Ie({props:{$$slots:{default:[as]},$$scope:{ctx:s}}}),o=new Ie({props:{$$slots:{default:[cs]},$$scope:{ctx:s}}}),u=new Ie({props:{$$slots:{default:[ms]},$$scope:{ctx:s}}}),d=new Ie({props:{$$slots:{default:[ps]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment),l=F(),q(t.$$.fragment),n=F(),q(r.$$.fragment),i=F(),q(o.$$.fragment),a=F(),q(u.$$.fragment),f=F(),q(d.$$.fragment)},l(c){z(e.$$.fragment,c),l=P(c),z(t.$$.fragment,c),n=P(c),z(r.$$.fragment,c),i=P(c),z(o.$$.fragment,c),a=P(c),z(u.$$.fragment,c),f=P(c),z(d.$$.fragment,c)},m(c,S){y(e,c,S),C(c,l,S),y(t,c,S),C(c,n,S),y(r,c,S),C(c,i,S),y(o,c,S),C(c,a,S),y(u,c,S),C(c,f,S),y(d,c,S),_=!0},p(c,S){const O={};S&3&&(O.$$scope={dirty:S,ctx:c}),e.$set(O);const I={};S&3&&(I.$$scope={dirty:S,ctx:c}),t.$set(I);const j={};S&3&&(j.$$scope={dirty:S,ctx:c}),r.$set(j);const h={};S&3&&(h.$$scope={dirty:S,ctx:c}),o.$set(h);const $={};S&3&&($.$$scope={dirty:S,ctx:c}),u.$set($);const U={};S&3&&(U.$$scope={dirty:S,ctx:c}),d.$set(U)},i(c){_||(b(e.$$.fragment,c),b(t.$$.fragment,c),b(r.$$.fragment,c),b(o.$$.fragment,c),b(u.$$.fragment,c),b(d.$$.fragment,c),_=!0)},o(c){v(e.$$.fragment,c),v(t.$$.fragment,c),v(r.$$.fragment,c),v(o.$$.fragment,c),v(u.$$.fragment,c),v(d.$$.fragment,c),_=!1},d(c){G(e,c),c&&m(l),G(t,c),c&&m(n),G(r,c),c&&m(i),G(o,c),c&&m(a),G(u,c),c&&m(f),G(d,c)}}}function vs(s){let e,l;return e=new yl({props:{$$slots:{default:[bs]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&3&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function $s(s){let e,l;return e=new Ml({props:{$$slots:{default:[vs]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&3&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function ks(s){let e,l;return e=new Bt({props:{passiveModal:!0,open:!!s[0],modalHeading:s[0].name,$$slots:{default:[$s]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.open=!!t[0]),n&1&&(r.modalHeading=t[0].name),n&3&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function ws(s,e,l){let{error:t}=e;return s.$$set=n=>{"error"in n&&l(0,t=n.error)},[t]}class Ss extends le{constructor(e){super(),se(this,e,ws,ks,ne,{error:0})}}function Es(s){let e;const l=s[2].default,t=ue(l,s,s[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,[r]){t&&t.p&&(!e||r&2)&&fe(t,l,n,n[1],e?de(l,n[1],r,null):ce(n[1]),null)},i(n){e||(b(t,n),e=!0)},o(n){v(t,n),e=!1},d(n){t&&t.d(n)}}}function Cs(s,e,l){let{$$slots:t={},$$scope:n}=e,{client:r=new Ht}=e;return De(()=>{r.mount()}),Ft(r),Vt(()=>{r.unmount()}),s.$$set=i=>{"client"in i&&l(0,r=i.client),"$$scope"in i&&l(1,n=i.$$scope)},[r,n,t]}class Is extends le{constructor(e){super(),se(this,e,Cs,Es,ne,{client:0})}}function Ds(s,e,l){let t,n,r;const i=Pt();ae(s,i,a=>l(3,n=a));const o=$t();return ae(s,o,a=>l(4,r=a)),s.$$.update=()=>{var a,u;s.$$.dirty&16&&l(2,t=((a=r.data)==null?void 0:a.access.dataset.compute_signals)||((u=r.data)==null?void 0:u.access.create_dataset)),s.$$.dirty&12&&n.isSuccess&&t&&Rt(n.data)},[i,o,t,n,r]}class Vs extends le{constructor(e){super(),se(this,e,Ds,null,ne,{})}}const Ns=""+new URL("../assets/logo_50x50.e6d62a62.png",import.meta.url).href;function Qe(s){let e,l;return{c(){e=Se("title"),l=J(s[1])},l(t){e=Ee(t,"title",{});var n=L(e);l=K(n,s[1]),n.forEach(m)},m(t,n){C(t,e,n),N(e,l)},p(t,n){n&2&&Z(l,t[1])},d(t){t&&m(e)}}}function Ts(s){let e,l,t,n=s[1]&&Qe(s),r=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],i={};for(let o=0;o{l(5,e=Y(Y({},e),ve(u))),l(3,i=ie(e,r)),"size"in u&&l(0,o=u.size),"title"in u&&l(1,a=u.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ve(e),[o,a,n,i,t]}class St extends le{constructor(e){super(),se(this,e,Ls,Ts,ne,{size:0,title:1})}}function Ye(s){let e,l;return{c(){e=Se("title"),l=J(s[1])},l(t){e=Ee(t,"title",{});var n=L(e);l=K(n,s[1]),n.forEach(m)},m(t,n){C(t,e,n),N(e,l)},p(t,n){n&2&&Z(l,t[1])},d(t){t&&m(e)}}}function Bs(s){let e,l,t=s[1]&&Ye(s),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],r={};for(let i=0;i{l(5,e=Y(Y({},e),ve(u))),l(3,i=ie(e,r)),"size"in u&&l(0,o=u.size),"title"in u&&l(1,a=u.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ve(e),[o,a,n,i,t]}class As extends le{constructor(e){super(),se(this,e,Ms,Bs,ne,{size:0,title:1})}}const qs=s=>({}),Xe=s=>({});function Ze(s,e,l){const t=s.slice();return t[8]=e[l].tag,t[9]=e[l].groups,t}function xe(s,e,l){const t=s.slice();return t[12]=e[l].group,t[13]=e[l].items,t}function et(s,e,l){const t=s.slice();return t[16]=e[l],t}function zs(s){let e,l;return e=new Mt({}),{c(){q(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function ys(s){let e,l;return e=new At({}),{c(){q(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function tt(s){let e,l,t,n,r;const i=[Os,Gs],o=[];function a(u,f){return u[2]?0:1}return l=a(s),t=o[l]=i[l](s),{c(){e=M("div"),t.c()},l(u){e=A(u,"DIV",{});var f=L(e);t.l(f),f.forEach(m)},m(u,f){C(u,e,f),o[l].m(e,null),r=!0},p(u,f){let d=l;l=a(u),l===d?o[l].p(u,f):(x(),v(o[d],1,1,()=>{o[d]=null}),ee(),t=o[l],t?t.p(u,f):(t=o[l]=i[l](u),t.c()),b(t,1),t.m(e,null))},i(u){r||(b(t),bt(()=>{r&&(n||(n=Be(e,Me,{},!0)),n.run(1))}),r=!0)},o(u){v(t),n||(n=Be(e,Me,{},!1)),n.run(0),r=!1},d(u){u&&m(e),o[l].d(),u&&n&&n.end()}}}function Gs(s){let e,l,t=s[3],n=[];for(let i=0;iv(n[i],1,1,()=>{n[i]=null});return{c(){e=M("div");for(let i=0;i{n=null}),ee()),a&8){r=o[9];let u;for(u=0;u{I[k]=null}),ee(),a=I[o],a||(a=I[o]=O[o](E),a.c()),b(a,1),a.m(t,null)),E[0]?h?(h.p(E,p),p&1&&b(h,1)):(h=tt(E),h.c(),b(h,1),h.m(e,f)):h&&(x(),v(h,1,1,()=>{h=null}),ee()),U&&U.p&&(!_||p&128)&&fe(U,$,E,E[7],_?de($,E[7],p,qs):ce(E[7]),Xe)},i(E){_||(b(a),b(h),b(U,E),_=!0)},o(E){v(a),v(h),v(U,E),_=!1},d(E){E&&m(e),I[o].d(),h&&h.d(),U&&U.d(E),c=!1,S()}}}function Fs(s,e,l){let{$$slots:t={},$$scope:n}=e,{title:r}=e,{isFetching:i}=e,{tagGroups:o}=e,{expanded:a=!0}=e;const u=()=>l(0,a=!a),f=d=>Te(d.link);return s.$$set=d=>{"title"in d&&l(1,r=d.title),"isFetching"in d&&l(2,i=d.isFetching),"tagGroups"in d&&l(3,o=d.tagGroups),"expanded"in d&&l(0,a=d.expanded),"$$scope"in d&&l(7,n=d.$$scope)},[a,r,i,o,t,u,f,n]}class qe extends le{constructor(e){super(),se(this,e,Fs,Hs,ne,{title:1,isFetching:2,tagGroups:3,expanded:0})}}function it(s){let e,l,t,n,r,i;return l=new St({props:{class:"mr-1"}}),{c(){e=M("button"),q(l.$$.fragment),t=J("Add dataset"),this.h()},l(o){e=A(o,"BUTTON",{class:!0});var a=L(e);z(l.$$.fragment,a),t=K(a,"Add dataset"),a.forEach(m),this.h()},h(){B(e,"class","mr-1 flex w-full flex-row px-1 py-1 text-black hover:bg-gray-200")},m(o,a){C(o,e,a),y(l,e,null),N(e,t),n=!0,r||(i=R(e,"click",s[23]),r=!0)},p:Ce,i(o){n||(b(l.$$.fragment,o),n=!0)},o(o){v(l.$$.fragment,o),n=!1},d(o){o&&m(e),G(l),r=!1,i()}}}function Ps(s){let e,l,t=s[7]&&it(s);return{c(){e=M("div"),t&&t.c(),this.h()},l(n){e=A(n,"DIV",{slot:!0,class:!0});var r=L(e);t&&t.l(r),r.forEach(m),this.h()},h(){B(e,"slot","add"),B(e,"class","w-full")},m(n,r){C(n,e,r),t&&t.m(e,null),l=!0},p(n,r){n[7]?t?(t.p(n,r),r&128&&b(t,1)):(t=it(n),t.c(),b(t,1),t.m(e,null)):t&&(x(),v(t,1,1,()=>{t=null}),ee())},i(n){l||(b(t),l=!0)},o(n){v(t),l=!1},d(n){n&&m(e),t&&t.d()}}}function Rs(s){let e,l,t,n,r,i,o;return t=new St({props:{class:"mr-1"}}),{c(){e=M("div"),l=M("button"),q(t.$$.fragment),n=J("Add concept"),this.h()},l(a){e=A(a,"DIV",{slot:!0,class:!0});var u=L(e);l=A(u,"BUTTON",{class:!0});var f=L(l);z(t.$$.fragment,f),n=K(f,"Add concept"),f.forEach(m),u.forEach(m),this.h()},h(){B(l,"class","mr-1 flex w-full flex-row px-1 py-1 text-black hover:bg-gray-200"),B(e,"slot","add"),B(e,"class","w-full")},m(a,u){C(a,e,u),N(e,l),y(t,l,null),N(l,n),r=!0,i||(o=R(l,"click",s[24]),i=!0)},p:Ce,i(a){r||(b(t.$$.fragment,a),r=!0)},o(a){v(t.$$.fragment,a),r=!1},d(a){a&&m(e),G(t),i=!1,o()}}}function js(s){let e,l,t,n,r,i,o,a,u,f,d,_,c,S,O,I,j,h,$,U,E,p,k,w,W,D,H,pe,be;return f=new As({}),_=new qe({props:{title:"Datasets",tagGroups:s[6],isFetching:s[2].isFetching,$$slots:{add:[Ps]},$$scope:{ctx:s}}}),S=new qe({props:{title:"Concepts",tagGroups:s[5],isFetching:s[1].isFetching,$$slots:{add:[Rs]},$$scope:{ctx:s}}}),I=new qe({props:{title:"Signals",tagGroups:s[4],isFetching:s[0].isFetching}}),W=new _l({}),{c(){e=M("div"),l=M("div"),t=M("div"),n=M("a"),r=M("img"),o=J(` + Lilac`),a=F(),u=M("button"),q(f.$$.fragment),d=F(),q(_.$$.fragment),c=F(),q(S.$$.fragment),O=F(),q(I.$$.fragment),j=F(),h=M("div"),$=M("button"),U=M("div"),E=M("div"),p=J("Settings"),k=F(),w=M("div"),q(W.$$.fragment),this.h()},l(g){e=A(g,"DIV",{class:!0});var V=L(e);l=A(V,"DIV",{class:!0});var X=L(l);t=A(X,"DIV",{class:!0});var te=L(t);n=A(te,"A",{class:!0,href:!0});var oe=L(n);r=A(oe,"IMG",{class:!0,src:!0,alt:!0}),o=K(oe,` + Lilac`),oe.forEach(m),a=P(te),u=A(te,"BUTTON",{class:!0});var $e=L(u);z(f.$$.fragment,$e),$e.forEach(m),te.forEach(m),X.forEach(m),d=P(V),z(_.$$.fragment,V),c=P(V),z(S.$$.fragment,V),O=P(V),z(I.$$.fragment,V),j=P(V),h=A(V,"DIV",{class:!0});var re=L(h);$=A(re,"BUTTON",{class:!0});var ke=L($);U=A(ke,"DIV",{class:!0});var Ne=L(U);E=A(Ne,"DIV",{class:!0});var ze=L(E);p=K(ze,"Settings"),ze.forEach(m),k=P(Ne),w=A(Ne,"DIV",{});var ye=L(w);z(W.$$.fragment,ye),ye.forEach(m),Ne.forEach(m),ke.forEach(m),re.forEach(m),V.forEach(m),this.h()},h(){B(r,"class","logo-img mr-2 rounded opacity-90 svelte-2fy31z"),Nt(r.src,i=Ns)||B(r,"src",i),B(r,"alt","Logo"),B(n,"class","flex flex-row items-center text-xl normal-case"),B(n,"href","/"),B(u,"class","mr-1 opacity-60 hover:bg-gray-200"),B(t,"class","header flex flex-row items-center justify-between px-1 pl-4"),B(l,"class","w-full border-b border-gray-200"),B(E,"class","text-sm font-medium"),B(U,"class","flex items-center justify-between"),B($,"class",D=Ge(`w-full px-4 py-2 text-left ${s[3]?"":"hover:bg-gray-100"}`)+" svelte-2fy31z"),T($,"bg-neutral-200",s[3]),B(h,"class","w-full px-1"),B(e,"class","nav-container flex h-full w-56 flex-col items-center overflow-y-scroll pb-2")},m(g,V){C(g,e,V),N(e,l),N(l,t),N(t,n),N(n,r),N(n,o),N(t,a),N(t,u),y(f,u,null),N(e,d),y(_,e,null),N(e,c),y(S,e,null),N(e,O),y(I,e,null),N(e,j),N(e,h),N(h,$),N($,U),N(U,E),N(E,p),N(U,k),N(U,w),y(W,w,null),H=!0,pe||(be=[Tt(Jt.call(null,u,{text:"Close sidebar"})),R(u,"click",s[22]),R($,"click",s[25])],pe=!0)},p(g,[V]){const X={};V&64&&(X.tagGroups=g[6]),V&4&&(X.isFetching=g[2].isFetching),V&134217856&&(X.$$scope={dirty:V,ctx:g}),_.$set(X);const te={};V&32&&(te.tagGroups=g[5]),V&2&&(te.isFetching=g[1].isFetching),V&134217728&&(te.$$scope={dirty:V,ctx:g}),S.$set(te);const oe={};V&16&&(oe.tagGroups=g[4]),V&1&&(oe.isFetching=g[0].isFetching),I.$set(oe),(!H||V&8&&D!==(D=Ge(`w-full px-4 py-2 text-left ${g[3]?"":"hover:bg-gray-100"}`)+" svelte-2fy31z"))&&B($,"class",D),(!H||V&8)&&T($,"bg-neutral-200",g[3])},i(g){H||(b(f.$$.fragment,g),b(_.$$.fragment,g),b(S.$$.fragment,g),b(I.$$.fragment,g),b(W.$$.fragment,g),H=!0)},o(g){v(f.$$.fragment,g),v(_.$$.fragment,g),v(S.$$.fragment,g),v(I.$$.fragment,g),v(W.$$.fragment,g),H=!1},d(g){g&&m(e),G(f),G(_),G(S),G(I),G(W),pe=!1,we(be)}}}function Ws(s,e,l){let t,n,r,i,o,a,u,f,d,_,c,S,O,I;const j=$t();ae(s,j,g=>l(21,O=g));const h=Kt();ae(s,h,g=>l(20,d=g));const $=Qt();ae(s,$,g=>l(8,I=g));const U=Yt();ae(s,U,g=>l(2,S=g));let E=null;const p=Xt();ae(s,p,g=>l(1,c=g));let k=null;const w=Zt();ae(s,w,g=>l(0,_=g));const W=["concept_labels","concept_score","near_dup"],D=()=>vt($,I.open=!1,I),H=()=>Te("/datasets/new"),pe=()=>xt({command:el.CreateConcept,onCreate:g=>Te(al(g.detail.namespace,g.detail.name))}),be=()=>Te("/settings");return s.$$.update=()=>{var g,V,X,te,oe,$e;if(s.$$.dirty&2097152&&l(19,t=(V=(g=O.data)==null?void 0:g.user)==null?void 0:V.id),s.$$.dirty&2097152&&l(18,n=(te=(X=O.data)==null?void 0:X.user)==null?void 0:te.given_name),s.$$.dirty&2097152&&l(7,r=(oe=O.data)==null?void 0:oe.access.create_dataset),s.$$.dirty&1048576)if(d.page==="datasets"&&d.identifier!=null){const[re,ke]=d.identifier.split("/");l(15,E={namespace:re,datasetName:ke})}else l(15,E=null);if(s.$$.dirty&32772&&l(6,i=ul(E,S.data||[])),s.$$.dirty&1048576)if(d.page==="concepts"&&d.identifier!=null){const[re,ke]=d.identifier.split("/");l(16,k={namespace:re,name:ke})}else l(16,k=null);s.$$.dirty&851970&&l(5,o=fl(k,c.data||[],t,n)),s.$$.dirty&1&&l(17,a=($e=_.data)==null?void 0:$e.filter(re=>!W.includes(re.name)).sort((re,ke)=>re.name.localeCompare(ke.name))),s.$$.dirty&1179648&&l(4,u=[{tag:"",groups:[{group:"lilac",items:(a||[]).map(re=>({name:re.name,link:ol(re.name),isSelected:d.page==="signals"&&d.identifier===re.name}))}]}]),s.$$.dirty&1048576&&l(3,f=d.page==="settings")},[_,c,S,f,u,o,i,r,I,j,h,$,U,p,w,E,k,a,n,t,d,O,D,H,pe,be]}class Js extends le{constructor(e){super(),se(this,e,Ws,js,ne,{})}}const{window:ot}=Lt;function at(s,e,l){const t=s.slice();return t[20]=e[l],t}function ut(s,e,l){const t=s.slice();return t[23]=e[l],t}function ft(s){let e,l,t,n;return l=new Js({}),{c(){e=M("div"),q(l.$$.fragment),this.h()},l(r){e=A(r,"DIV",{class:!0});var i=L(e);z(l.$$.fragment,i),i.forEach(m),this.h()},h(){B(e,"class","flex-shrink-0")},m(r,i){C(r,e,i),y(l,e,null),n=!0},i(r){n||(b(l.$$.fragment,r),bt(()=>{n&&(t||(t=Be(e,Me,{axis:"x"},!0)),t.run(1))}),n=!0)},o(r){v(l.$$.fragment,r),t||(t=Be(e,Me,{axis:"x"},!1)),t.run(0),n=!1},d(r){r&&m(e),G(l),r&&t&&t.end()}}}function ct(s){let e,l;function t(){return s[12](s[23])}return e=new wt({props:{lowContrast:!0,fullWidth:!0,title:s[23].title,subtitle:s[23].subtitle||"",caption:s[23].message,kind:s[23].kind,timeout:5e3}}),e.$on("close",t),{c(){q(e.$$.fragment)},l(n){z(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){s=n;const i={};r&2&&(i.title=s[23].title),r&2&&(i.subtitle=s[23].subtitle||""),r&2&&(i.caption=s[23].message),r&2&&(i.kind=s[23].kind),e.$set(i)},i(n){l||(b(e.$$.fragment,n),l=!0)},o(n){v(e.$$.fragment,n),l=!1},d(n){G(e,n)}}}function Ks(s){let e,l,t,n,r;function i(){return s[13](s[20])}return{c(){e=M("div"),l=M("button"),t=J("Show error"),this.h()},l(o){e=A(o,"DIV",{slot:!0});var a=L(e);l=A(a,"BUTTON",{class:!0});var u=L(l);t=K(u,"Show error"),u.forEach(m),a.forEach(m),this.h()},h(){B(l,"class","underline"),B(e,"slot","caption")},m(o,a){C(o,e,a),N(e,l),N(l,t),n||(r=R(l,"click",i),n=!0)},p(o,a){s=o},d(o){o&&m(e),n=!1,r()}}}function dt(s){let e,l;function t(){return s[14](s[20])}return e=new wt({props:{lowContrast:!0,title:s[20].name||"Error",subtitle:s[20].message,$$slots:{caption:[Ks]},$$scope:{ctx:s}}}),e.$on("close",t),{c(){q(e.$$.fragment)},l(n){z(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){s=n;const i={};r&8&&(i.title=s[20].name||"Error"),r&8&&(i.subtitle=s[20].message),r&32777&&(i.$$scope={dirty:r,ctx:s}),e.$set(i)},i(n){l||(b(e.$$.fragment,n),l=!0)},o(n){v(e.$$.fragment,n),l=!1},d(n){G(e,n)}}}function _t(s){let e,l;return e=new Ss({props:{error:s[0]}}),{c(){q(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&1&&(r.error=t[0]),e.$set(r)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function Qs(s){let e,l,t,n,r,i,o,a,u,f,d,_=s[2].open&&ft();const c=s[9].default,S=ue(c,s,s[15],null);let O=s[1],I=[];for(let p=0;pv(I[p],1,1,()=>{I[p]=null});let h=s[3],$=[];for(let p=0;pv($[p],1,1,()=>{$[p]=null});let E=s[0]&&_t(s);return f=new Vs({}),{c(){e=M("main"),_&&_.c(),l=F(),t=M("div"),S&&S.c(),n=F(),r=M("div");for(let p=0;p{_=null}),ee()),S&&S.p&&(!d||k&32768)&&fe(S,c,p,p[15],d?de(c,p[15],k,null):ce(p[15]),null),k&18){O=p[1];let w;for(w=0;w{E=null}),ee())},i(p){if(!d){b(_),b(S,p);for(let k=0;kl(7,r=k)),ae(s,Oe,k=>l(3,a=k));let{$$slots:u={},$$scope:f}=e,d;const _={"/":"home","/datasets":"datasets","/concepts":"concepts","/signals":"signals","/settings":"settings"};let c=nl();ll(c);const S=dl();ae(s,S,k=>l(8,i=k)),cl(S),De(()=>{c.setHash(t,r.url.hash)});function O(k){const w=new URL(k),W=_[w.pathname];c.setHash(W,w.hash)}De(()=>{window.parent=window,history.pushState=function(k,w,W){return W instanceof URL&&O(W),History.prototype.pushState.apply(history,arguments)}});const I=ml();hl(I);const j=rl();ae(s,j,k=>l(2,o=k)),sl(j);const h=k=>O(k.newURL),$=()=>O(location.href),U=k=>{S.removeNotification(k)},E=k=>l(0,d=k),p=k=>{vt(Oe,a=a.filter(w=>w!==k),a)};return s.$$set=k=>{"$$scope"in k&&l(15,f=k.$$scope)},s.$$.update=()=>{s.$$.dirty&128&&(t=r.route.id!=null?_[r.route.id]:"home"),s.$$.dirty&256&&l(1,n=(i==null?void 0:i.notifications)||[])},[d,n,o,a,S,O,j,r,i,u,h,$,U,E,p,f]}class fn extends le{constructor(e){super(),se(this,e,Xs,Ys,ne,{})}}export{fn as component,un as universal}; diff --git a/lilac/web/_app/immutable/nodes/1.e4e956a9.js b/lilac/web/_app/immutable/nodes/1.e4e956a9.js new file mode 100644 index 0000000000000000000000000000000000000000..57ee4ed8928318a449d7f397ef46054ce66cba24 --- /dev/null +++ b/lilac/web/_app/immutable/nodes/1.e4e956a9.js @@ -0,0 +1 @@ +import{S as x,i as S,s as g,k as u,q as h,a as k,l as d,m as v,r as b,h as m,c as y,b as _,J as E,u as $,a1 as q,R as C}from"../chunks/index.27e2a960.js";import{p as H}from"../chunks/stores.81cee6f0.js";function J(l){var f;let a,t=l[0].status+"",r,o,n,p=((f=l[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(t),o=k(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var s=v(a);r=b(s,t),s.forEach(m),o=y(e),n=d(e,"P",{});var i=v(n);c=b(i,p),i.forEach(m)},m(e,s){_(e,a,s),E(a,r),_(e,o,s),_(e,n,s),E(n,c)},p(e,[s]){var i;s&1&&t!==(t=e[0].status+"")&&$(r,t),s&1&&p!==(p=((i=e[0].error)==null?void 0:i.message)+"")&&$(c,p)},i:q,o:q,d(e){e&&m(a),e&&m(o),e&&m(n)}}}function P(l,a,t){let r;return C(l,H,o=>t(0,r=o)),[r]}class w extends x{constructor(a){super(),S(this,a,P,J,g,{})}}export{w as component}; diff --git a/lilac/web/_app/immutable/nodes/2.8e5651f9.js b/lilac/web/_app/immutable/nodes/2.8e5651f9.js new file mode 100644 index 0000000000000000000000000000000000000000..f13ea5dee951f6209ec09df3f3abde0240f49db3 --- /dev/null +++ b/lilac/web/_app/immutable/nodes/2.8e5651f9.js @@ -0,0 +1 @@ +import{S as T,i as U,s as Y,G as K,k as b,q as w,a as k,l as E,m as I,r as y,h as u,c as C,n as A,b as H,J as i,u as R,L as O,M as Q,N as W,g as z,d as L,y as x,z as P,A as B,B as G,R as X,e as M}from"../chunks/index.27e2a960.js";import{g as Z}from"../chunks/navigation.06af7fa8.js";import{c as tt,B as et}from"../chunks/Commands.2fa1e469.js";import{P as at}from"../chunks/Page.7d66a333.js";function st(o){let t,e,a,l,d,n,s,r,c,p,v,D,g;const N=o[4].default,_=K(N,o,o[3],null);return{c(){t=b("div"),e=b("div"),a=w(o[0]),l=w("."),d=k(),n=b("div"),s=b("div"),r=w(o[1]),c=k(),p=b("div"),v=w(o[2]),D=k(),_&&_.c(),this.h()},l(f){t=E(f,"DIV",{class:!0});var $=I(t);e=E($,"DIV",{class:!0});var m=I(e);a=y(m,o[0]),l=y(m,"."),m.forEach(u),d=C($),n=E($,"DIV",{class:!0});var h=I(n);s=E(h,"DIV",{class:!0});var V=I(s);r=y(V,o[1]),V.forEach(u),c=C(h),p=E(h,"DIV",{});var q=I(p);v=y(q,o[2]),q.forEach(u),D=C(h),_&&_.l(h),h.forEach(u),$.forEach(u),this.h()},h(){A(e,"class","font-bold"),A(s,"class","font-bold"),A(n,"class","flex flex-col gap-y-2"),A(t,"class","flex gap-x-1")},m(f,$){H(f,t,$),i(t,e),i(e,a),i(e,l),i(t,d),i(t,n),i(n,s),i(s,r),i(n,c),i(n,p),i(p,v),i(n,D),_&&_.m(n,null),g=!0},p(f,[$]){(!g||$&1)&&R(a,f[0]),(!g||$&2)&&R(r,f[1]),(!g||$&4)&&R(v,f[2]),_&&_.p&&(!g||$&8)&&O(_,N,f,f[3],g?W(N,f[3],$,null):Q(f[3]),null)},i(f){g||(z(_,f),g=!0)},o(f){L(_,f),g=!1},d(f){f&&u(t),_&&_.d(f)}}}function nt(o,t,e){let{$$slots:a={},$$scope:l}=t,{stepNumber:d}=t,{title:n}=t,{description:s}=t;return o.$$set=r=>{"stepNumber"in r&&e(0,d=r.stepNumber),"title"in r&&e(1,n=r.title),"description"in r&&e(2,s=r.description),"$$scope"in r&&e(3,l=r.$$scope)},[d,n,s,l,a]}class F extends T{constructor(t){super(),U(this,t,nt,st,Y,{stepNumber:0,title:1,description:2})}}function rt(o){let t;return{c(){t=w("+ Add dataset")},l(e){t=y(e,"+ Add dataset")},m(e,a){H(e,t,a)},d(e){e&&u(t)}}}function j(o){let t,e,a,l,d,n,s,r,c;return{c(){t=b("div"),e=b("span"),a=w("You do not have authorization to create a dataset."),l=k(),d=b("span"),n=w("For HuggingFace spaces, fork this space and set "),s=b("span"),r=w("LILAC_AUTH_ENABLED"),c=w(" environment flag to 'false' from settings."),this.h()},l(p){t=E(p,"DIV",{class:!0});var v=I(t);e=E(v,"SPAN",{class:!0});var D=I(e);a=y(D,"You do not have authorization to create a dataset."),D.forEach(u),l=C(v),d=E(v,"SPAN",{});var g=I(d);n=y(g,"For HuggingFace spaces, fork this space and set "),s=E(g,"SPAN",{class:!0});var N=I(s);r=y(N,"LILAC_AUTH_ENABLED"),N.forEach(u),c=y(g," environment flag to 'false' from settings."),g.forEach(u),v.forEach(u),this.h()},h(){A(e,"class","mb-2"),A(s,"class","font-mono"),A(t,"class","flex flex-col border border-neutral-100 bg-red-100 p-2")},m(p,v){H(p,t,v),i(t,e),i(e,a),i(t,l),i(t,d),i(d,n),i(d,s),i(s,r),i(d,c)},d(p){p&&u(t)}}}function lt(o){let t,e,a,l,d;e=new et({props:{disabled:!o[0],size:"small",$$slots:{default:[rt]},$$scope:{ctx:o}}}),e.$on("click",o[3]);let n=!o[0]&&j();return{c(){t=b("div"),x(e.$$.fragment),a=k(),n&&n.c(),l=M(),this.h()},l(s){t=E(s,"DIV",{class:!0});var r=I(t);P(e.$$.fragment,r),r.forEach(u),a=C(s),n&&n.l(s),l=M(),this.h()},h(){A(t,"class","mt-4")},m(s,r){H(s,t,r),B(e,t,null),H(s,a,r),n&&n.m(s,r),H(s,l,r),d=!0},p(s,r){const c={};r&1&&(c.disabled=!s[0]),r&16&&(c.$$scope={dirty:r,ctx:s}),e.$set(c),s[0]?n&&(n.d(1),n=null):n||(n=j(),n.c(),n.m(l.parentNode,l))},i(s){d||(z(e.$$.fragment,s),d=!0)},o(s){L(e.$$.fragment,s),d=!1},d(s){s&&u(t),G(e),s&&u(a),n&&n.d(s),s&&u(l)}}}function ot(o){let t,e,a,l,d,n,s,r,c,p,v,D,g,N,_,f,$;return p=new F({props:{stepNumber:1,title:"Import your dataset",description:"Click 'Add dataset' to add a new dataset.",$$slots:{default:[lt]},$$scope:{ctx:o}}}),D=new F({props:{stepNumber:2,title:"Configure and index the dataset",description:"Choose metadata fields to visualize and media fields to index and query."}}),N=new F({props:{stepNumber:3,title:"Enrich and explore your dataset",description:"Run signals and concepts over the data to produce additional metadata."}}),f=new F({props:{stepNumber:4,title:"Download the new data",description:"Click the Download button in the top-right corner to get the annotated dataset."}}),{c(){t=b("div"),e=b("div"),a=b("h3"),l=w("Getting started"),d=k(),n=b("div"),s=w("Import, analyze and enrich your dataset"),r=k(),c=b("div"),x(p.$$.fragment),v=k(),x(D.$$.fragment),g=k(),x(N.$$.fragment),_=k(),x(f.$$.fragment),this.h()},l(m){t=E(m,"DIV",{class:!0});var h=I(t);e=E(h,"DIV",{class:!0});var V=I(e);a=E(V,"H3",{});var q=I(a);l=y(q,"Getting started"),q.forEach(u),d=C(V),n=E(V,"DIV",{class:!0});var J=I(n);s=y(J,"Import, analyze and enrich your dataset"),J.forEach(u),V.forEach(u),r=C(h),c=E(h,"DIV",{class:!0});var S=I(c);P(p.$$.fragment,S),v=C(S),P(D.$$.fragment,S),g=C(S),P(N.$$.fragment,S),_=C(S),P(f.$$.fragment,S),S.forEach(u),h.forEach(u),this.h()},h(){A(n,"class","mt-2 text-gray-700"),A(e,"class","text-center"),A(c,"class","flex flex-col gap-y-8 rounded-lg border border-gray-200 p-9"),A(t,"class","flex w-full flex-col items-center gap-y-6 px-8 pt-20")},m(m,h){H(m,t,h),i(t,e),i(e,a),i(a,l),i(e,d),i(e,n),i(n,s),i(t,r),i(t,c),B(p,c,null),i(c,v),B(D,c,null),i(c,g),B(N,c,null),i(c,_),B(f,c,null),$=!0},p(m,[h]){const V={};h&17&&(V.$$scope={dirty:h,ctx:m}),p.$set(V)},i(m){$||(z(p.$$.fragment,m),z(D.$$.fragment,m),z(N.$$.fragment,m),z(f.$$.fragment,m),$=!0)},o(m){L(p.$$.fragment,m),L(D.$$.fragment,m),L(N.$$.fragment,m),L(f.$$.fragment,m),$=!1},d(m){m&&u(t),G(p),G(D),G(N),G(f)}}}function it(o,t,e){let a,l;const d=tt();X(o,d,s=>e(2,l=s));const n=()=>Z("/datasets/new");return o.$$.update=()=>{var s;o.$$.dirty&4&&e(0,a=(s=l.data)==null?void 0:s.access.create_dataset)},[a,d,l,n]}class dt extends T{constructor(t){super(),U(this,t,it,ot,Y,{})}}function ft(o){let t,e;return t=new dt({}),{c(){x(t.$$.fragment)},l(a){P(t.$$.fragment,a)},m(a,l){B(t,a,l),e=!0},i(a){e||(z(t.$$.fragment,a),e=!0)},o(a){L(t.$$.fragment,a),e=!1},d(a){G(t,a)}}}function ct(o){let t,e;return t=new at({props:{$$slots:{default:[ft]},$$scope:{ctx:o}}}),{c(){x(t.$$.fragment)},l(a){P(t.$$.fragment,a)},m(a,l){B(t,a,l),e=!0},p(a,[l]){const d={};l&1&&(d.$$scope={dirty:l,ctx:a}),t.$set(d)},i(a){e||(z(t.$$.fragment,a),e=!0)},o(a){L(t.$$.fragment,a),e=!1},d(a){G(t,a)}}}class _t extends T{constructor(t){super(),U(this,t,null,ct,Y,{})}}export{_t as component}; diff --git a/lilac/web/_app/immutable/nodes/3.7fc68988.js b/lilac/web/_app/immutable/nodes/3.7fc68988.js new file mode 100644 index 0000000000000000000000000000000000000000..7fb8f38c106ce9da0cce3af98e8ca9ef7d370dea --- /dev/null +++ b/lilac/web/_app/immutable/nodes/3.7fc68988.js @@ -0,0 +1 @@ +import{S as ie,i as fe,s as Y,y as N,z as V,A as B,g as _,d as h,B as H,R as O,k as v,a as Z,e as P,l as y,m as w,h as d,c as x,n as C,b as g,J as b,v as R,f as U,H as K,K as ee,a7 as ue,aa as pe,P as de,a1 as L,ab as me,q as S,r as I,u as M,ac as _e}from"../chunks/index.27e2a960.js";import{g as J}from"../chunks/navigation.06af7fa8.js";import{P as he}from"../chunks/Page.7d66a333.js";import{g as $e,j as be,v as ge,e as ke,h as ve,w as ye,x as we,d as Ce,y as Ee}from"../chunks/Commands.2fa1e469.js";import{T as Te,I as F,C as Se}from"../chunks/ConceptView.b8745847.js";import{c as Ie,a as G}from"../chunks/utils.97898c57.js";import{M as De}from"../chunks/ChevronUp.31af30c3.js";function Q(a){let e,n,t,o;const l=[Ve,Ne,Pe],r=[];function c(s,i){var f,p,k;return(f=s[7])!=null&&f.isLoading?0:(p=s[7])!=null&&p.isError?1:(k=s[7])!=null&&k.isSuccess?2:-1}return~(e=c(a))&&(n=r[e]=l[e](a)),{c(){n&&n.c(),t=P()},l(s){n&&n.l(s),t=P()},m(s,i){~e&&r[e].m(s,i),g(s,t,i),o=!0},p(s,i){let f=e;e=c(s),e===f?~e&&r[e].p(s,i):(n&&(R(),h(r[f],1,1,()=>{r[f]=null}),U()),~e?(n=r[e],n?n.p(s,i):(n=r[e]=l[e](s),n.c()),_(n,1),n.m(t.parentNode,t)):n=null)},i(s){o||(_(n),o=!0)},o(s){h(n),o=!1},d(s){~e&&r[e].d(s),s&&d(t)}}}function Pe(a){let e=a[7].data,n,t,o=W(a);return{c(){o.c(),n=P()},l(l){o.l(l),n=P()},m(l,r){o.m(l,r),g(l,n,r),t=!0},p(l,r){r&128&&Y(e,e=l[7].data)?(R(),h(o,1,1,L),U(),o=W(l),o.c(),_(o,1),o.m(n.parentNode,n)):o.p(l,r)},i(l){t||(_(o),t=!0)},o(l){h(o),t=!1},d(l){l&&d(n),o.d(l)}}}function Ne(a){let e,n=a[7].error+"",t;return{c(){e=v("p"),t=S(n)},l(o){e=y(o,"P",{});var l=w(e);t=I(l,n),l.forEach(d)},m(o,l){g(o,e,l),b(e,t)},p(o,l){l&128&&n!==(n=o[7].error+"")&&M(t,n)},i:L,o:L,d(o){o&&d(e)}}}function Ve(a){let e,n;return e=new Ce({}),{c(){N(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,o){B(e,t,o),n=!0},p:L,i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){h(e.$$.fragment,t),n=!1},d(t){H(e,t)}}}function W(a){let e,n;return e=new Se({props:{concept:a[7].data}}),{c(){N(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,o){B(e,t,o),n=!0},p(t,o){const l={};o&128&&(l.concept=t[7].data),e.$set(l)},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){h(e.$$.fragment,t),n=!1},d(t){H(e,t)}}}function X(a){let e,n;return e=new De({props:{danger:!0,open:!0,modalHeading:"Delete concept",primaryButtonText:"Delete",primaryButtonIcon:a[6].isLoading?F:void 0,secondaryButtonText:"Cancel",$$slots:{default:[Be]},$$scope:{ctx:a}}}),e.$on("click:button--secondary",a[17]),e.$on("close",a[18]),e.$on("submit",a[19]),{c(){N(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,o){B(e,t,o),n=!0},p(t,o){const l={};o&64&&(l.primaryButtonIcon=t[6].isLoading?F:void 0),o&1048580&&(l.$$scope={dirty:o,ctx:t}),e.$set(l)},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){h(e.$$.fragment,t),n=!1},d(t){H(e,t)}}}function Be(a){let e,n,t,o=a[2].namespace+"",l,r,c=a[2].name+"",s,i,f,p,k;return{c(){e=v("p"),n=S("Confirm deleting "),t=v("code"),l=S(o),r=S("/"),s=S(c),i=S(" ?"),f=Z(),p=v("p"),k=S("This is a permanent action and cannot be undone."),this.h()},l(u){e=y(u,"P",{class:!0});var m=w(e);n=I(m,"Confirm deleting "),t=y(m,"CODE",{});var D=w(t);l=I(D,o),r=I(D,"/"),s=I(D,c),D.forEach(d),i=I(m," ?"),m.forEach(d),f=x(u),p=y(u,"P",{class:!0});var E=w(p);k=I(E,"This is a permanent action and cannot be undone."),E.forEach(d),this.h()},h(){C(e,"class","!text-lg"),C(p,"class","mt-2")},m(u,m){g(u,e,m),b(e,n),b(e,t),b(t,l),b(t,r),b(t,s),b(e,i),g(u,f,m),g(u,p,m),b(p,k)},p(u,m){m&4&&o!==(o=u[2].namespace+"")&&M(l,o),m&4&&c!==(c=u[2].name+"")&&M(s,c)},d(u){u&&d(e),u&&d(f),u&&d(p)}}}function He(a){let e,n,t,o,l,r=a[0]!=null&&a[1]!=null&&Q(a),c=a[2]&&X(a);return{c(){e=v("div"),n=v("div"),r&&r.c(),t=Z(),c&&c.c(),o=P(),this.h()},l(s){e=y(s,"DIV",{class:!0});var i=w(e);n=y(i,"DIV",{class:!0});var f=w(n);r&&r.l(f),f.forEach(d),i.forEach(d),t=x(s),c&&c.l(s),o=P(),this.h()},h(){C(n,"class","lilac-page flex w-full"),C(e,"class","flex h-full w-full overflow-x-hidden overflow-y-scroll")},m(s,i){g(s,e,i),b(e,n),r&&r.m(n,null),g(s,t,i),c&&c.m(s,i),g(s,o,i),l=!0},p(s,i){s[0]!=null&&s[1]!=null?r?(r.p(s,i),i&3&&_(r,1)):(r=Q(s),r.c(),_(r,1),r.m(n,null)):r&&(R(),h(r,1,1,()=>{r=null}),U()),s[2]?c?(c.p(s,i),i&4&&_(c,1)):(c=X(s),c.c(),_(c,1),c.m(o.parentNode,o)):c&&(R(),h(c,1,1,()=>{c=null}),U())},i(s){l||(_(r),_(c),l=!0)},o(s){h(r),h(c),l=!1},d(s){s&&d(e),r&&r.d(),s&&d(t),c&&c.d(s),s&&d(o)}}}function qe(a){let e,n=G(a[0],a[1])+"",t,o,l;return{c(){e=v("a"),t=S(n),this.h()},l(r){e=y(r,"A",{class:!0,href:!0});var c=w(e);t=I(c,n),c.forEach(d),this.h()},h(){C(e,"class","font-semibold text-black"),C(e,"href",a[3])},m(r,c){g(r,e,c),b(e,t),o||(l=ee(e,"click",a[16]),o=!0)},p(r,c){c&3&&n!==(n=G(r[0],r[1])+"")&&M(t,n),c&8&&C(e,"href",r[3])},d(r){r&&d(e),o=!1,l()}}}function Le(a){let e,n,t;return n=new ke({props:{type:"green",$$slots:{default:[qe]},$$scope:{ctx:a}}}),{c(){e=v("div"),N(n.$$.fragment),this.h()},l(o){e=y(o,"DIV",{slot:!0});var l=w(e);V(n.$$.fragment,l),l.forEach(d),this.h()},h(){C(e,"slot","header-subtext")},m(o,l){g(o,e,l),B(n,e,null),t=!0},p(o,l){const r={};l&1048587&&(r.$$scope={dirty:l,ctx:o}),n.$set(r)},i(o){t||(_(n.$$.fragment,o),t=!0)},o(o){h(n.$$.fragment,o),t=!1},d(o){o&&d(e),H(n)}}}function Re(a){let e,n,t,o,l,r,c,s,i;return o=new Te({props:{size:16}}),{c(){e=v("div"),n=v("div"),t=v("button"),N(o.$$.fragment),this.h()},l(f){e=y(f,"DIV",{slot:!0});var p=w(e);n=y(p,"DIV",{});var k=w(n);t=y(k,"BUTTON",{title:!0,class:!0});var u=w(t);V(o.$$.fragment,u),u.forEach(d),k.forEach(d),p.forEach(d),this.h()},h(){C(t,"title","Remove concept"),t.disabled=l=!a[4],C(t,"class","p-3 hover:text-red-400 hover:opacity-100"),K(n,"opacity-40",!a[4]),C(e,"slot","header-right")},m(f,p){g(f,e,p),b(e,n),b(n,t),B(o,t,null),c=!0,s||(i=[ee(t,"click",a[15]),ue(r=ve.call(null,n,{text:a[4]?"":"User does not have access to delete this concept."}))],s=!0)},p(f,p){(!c||p&16&&l!==(l=!f[4]))&&(t.disabled=l),r&&pe(r.update)&&p&16&&r.update.call(null,{text:f[4]?"":"User does not have access to delete this concept."}),(!c||p&16)&&K(n,"opacity-40",!f[4])},i(f){c||(_(o.$$.fragment,f),c=!0)},o(f){h(o.$$.fragment,f),c=!1},d(f){f&&d(e),H(o),s=!1,de(i)}}}function Ue(a){let e,n;return e=new he({props:{$$slots:{"header-right":[Re],"header-subtext":[Le],default:[He]},$$scope:{ctx:a}}}),{c(){N(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,o){B(e,t,o),n=!0},p(t,[o]){const l={};o&1048799&&(l.$$scope={dirty:o,ctx:t}),e.$set(l)},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){h(e.$$.fragment,t),n=!1},d(t){H(e,t)}}}function Me(a,e,n){let t,o,l,r,c,s,i,f,p=L,k=()=>(p(),p=me(t,$=>n(7,f=$)),t);a.$$.on_destroy.push(()=>p());let u,m;const D=$e();O(a,D,$=>n(14,i=$));let E=null;const j=be();O(a,j,$=>n(13,s=$));const z=ge();O(a,z,$=>n(6,c=$));function A(){if(E==null)return;const{namespace:$,name:T}=E;c.mutate([$,T],{onSuccess:()=>{var q;for(const[se,ae]of Object.entries(ye)){const ce=(q=_e(Ee[se]).selectRowsSchema)==null?void 0:q.data;ae.deleteConcept($,T,ce)}n(2,E=null),J("/")}})}const te=()=>n(2,E={namespace:u,name:m}),ne=()=>J(r),oe=()=>n(2,E=null),le=()=>n(2,E=null),re=()=>A();return a.$$.update=()=>{var $;if(a.$$.dirty&16387&&i.page==="concepts"&&i.identifier!=null){const[T,q]=i.identifier.split("/");(u!=T||m!=q)&&(n(0,u=T),n(1,m=q))}a.$$.dirty&3&&k(n(5,t=u&&m?we(u,m):void 0)),a.$$.dirty&8195&&n(12,o=($=s.data)==null?void 0:$.find(T=>T.namespace===u&&T.name===m)),a.$$.dirty&4096&&n(4,l=o==null?void 0:o.acls.write),a.$$.dirty&3&&n(3,r=Ie(u,m))},[u,m,E,r,l,t,c,f,D,j,z,A,o,s,i,te,ne,oe,le,re]}class Ge extends ie{constructor(e){super(),fe(this,e,Me,Ue,Y,{})}}export{Ge as component}; diff --git a/lilac/web/_app/immutable/nodes/4.9f919605.js b/lilac/web/_app/immutable/nodes/4.9f919605.js new file mode 100644 index 0000000000000000000000000000000000000000..fd818ff3e736edbcee5ee7ff113b0cb6d1cc0be2 --- /dev/null +++ b/lilac/web/_app/immutable/nodes/4.9f919605.js @@ -0,0 +1,31 @@ +import{S as $e,i as ke,s as be,E as pe,_ as ve,$ as we,m as $,h as m,n as I,a0 as Te,b as V,J as p,O as Oe,a1 as X,D as Ie,F as Ve,q as Z,r as G,u as fe,e as ie,C as pt,o as On,Z as Hn,k as E,l as y,p as it,w as Pe,y as R,z as O,A,W as qn,g as h,d as v,B,Q as ut,G as Ln,a as U,c as Q,K as Re,ad as jn,L as Yn,M as Un,N as Qn,a7 as Fe,aa as Le,R as ge,v as le,f as ne,P as We,a4 as ze,ab as Ce,a2 as bt,ae as Jn,X as gn,Y as pn,H as Se,T as Kn,U as Ye,V as Ue,af as Zn,a8 as dt,a3 as mt,x as et,a6 as ct,ag as Gn}from"../chunks/index.27e2a960.js";import{g as bn}from"../chunks/navigation.06af7fa8.js";import{C as Ct,O as Wn,a as nt,P as Xn}from"../chunks/Page.7d66a333.js";import{e as Xe,z as xn,h as Me,A as Ae,D as ye,E as Et,F as Ee,t as Ze,C as Ge,G as Qe,S as vt,H as yt,I as er,x as tr,J as lr,d as je,b as ot,K as ft,L as nr,M as rr,O as Ke,P as sr,R as Dt,U as ir,V as ar,W as vn,B as rt,X as Ft,Y as wn,Z as $n,j as or,c as It,_ as fr,$ as cr,a0 as tt,a1 as ht,a2 as _t,a3 as $t,a4 as ur,a5 as dr,a6 as mr,a7 as kn,a8 as kt,a9 as st,aa as hr,ab as Sn,ac as _r,ad as gr,ae as pr,af as En,ag as yn,ah as Dn,ai as br,aj as vr,ak as wr,al as $r,am as kr,g as Sr,an as Er,ao as yr,ap as Dr,aq as Ir,ar as Vr,as as Nr,at as Tr,au as Cr}from"../chunks/Commands.2fa1e469.js";import{d as Vt,e as Fr,f as In,h as Vn,i as Mr,j as zr,k as Pr,I as Rr,l as Ar,m as Br,n as Or,o as Nn,s as gt,D as lt,p as Hr,q as qr}from"../chunks/notificationsStore.4af93bc4.js";import{w as Lr}from"../chunks/index.7efffca5.js";import{C as jr,a as St,I as Mt,T as Yr}from"../chunks/ConceptView.b8745847.js";import{E as Tn,S as Ur,T as Cn}from"../chunks/StringSpanHighlight.3d7a4bbd.js";import{M as Nt,C as Qr}from"../chunks/ChevronUp.31af30c3.js";import{n as Jr,d as Kr,b as Zr}from"../chunks/utils.97898c57.js";import{R as Gr,S as Wr,T as Xr,a as zt,b as Pt}from"../chunks/RowItemMetadata.3e67c6f0.js";import{g as Fn}from"../chunks/settingsStore.a935cb75.js";import{C as xr}from"../chunks/ComboBox.9e29cdb2.js";import{S as es}from"../chunks/Settings.a4f7a69e.js";function Rt(s){let e,l;return{c(){e=ve("title"),l=Z(s[1])},l(t){e=we(t,"title",{});var n=$(e);l=G(n,s[1]),n.forEach(m)},m(t,n){V(t,e,n),p(e,l)},p(t,n){n&2&&fe(l,t[1])},d(t){t&&m(e)}}}function ts(s){let e,l,t=s[1]&&Rt(s),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],o={};for(let r=0;r{l(5,e=pe(pe({},e),Ve(f))),l(3,r=Ie(e,o)),"size"in f&&l(0,i=f.size),"title"in f&&l(1,a=f.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[i,a,n,r,t]}class ns extends $e{constructor(e){super(),ke(this,e,ls,ts,be,{size:0,title:1})}}function At(s){let e,l;return{c(){e=ve("title"),l=Z(s[1])},l(t){e=we(t,"title",{});var n=$(e);l=G(n,s[1]),n.forEach(m)},m(t,n){V(t,e,n),p(e,l)},p(t,n){n&2&&fe(l,t[1])},d(t){t&&m(e)}}}function rs(s){let e,l,t=s[1]&&At(s),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],o={};for(let r=0;r{l(5,e=pe(pe({},e),Ve(f))),l(3,r=Ie(e,o)),"size"in f&&l(0,i=f.size),"title"in f&&l(1,a=f.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[i,a,n,r,t]}class is extends $e{constructor(e){super(),ke(this,e,ss,rs,be,{size:0,title:1})}}function Bt(s){let e,l;return{c(){e=ve("title"),l=Z(s[1])},l(t){e=we(t,"title",{});var n=$(e);l=G(n,s[1]),n.forEach(m)},m(t,n){V(t,e,n),p(e,l)},p(t,n){n&2&&fe(l,t[1])},d(t){t&&m(e)}}}function as(s){let e,l,t=s[1]&&Bt(s),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],o={};for(let r=0;r{l(5,e=pe(pe({},e),Ve(f))),l(3,r=Ie(e,o)),"size"in f&&l(0,i=f.size),"title"in f&&l(1,a=f.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[i,a,n,r,t]}class fs extends $e{constructor(e){super(),ke(this,e,os,as,be,{size:0,title:1})}}function Ot(s){let e,l;return{c(){e=ve("title"),l=Z(s[1])},l(t){e=we(t,"title",{});var n=$(e);l=G(n,s[1]),n.forEach(m)},m(t,n){V(t,e,n),p(e,l)},p(t,n){n&2&&fe(l,t[1])},d(t){t&&m(e)}}}function cs(s){let e,l,t=s[1]&&Ot(s),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],o={};for(let r=0;r{l(5,e=pe(pe({},e),Ve(f))),l(3,r=Ie(e,o)),"size"in f&&l(0,i=f.size),"title"in f&&l(1,a=f.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[i,a,n,r,t]}class ds extends $e{constructor(e){super(),ke(this,e,us,cs,be,{size:0,title:1})}}function Ht(s){let e,l;return{c(){e=ve("title"),l=Z(s[1])},l(t){e=we(t,"title",{});var n=$(e);l=G(n,s[1]),n.forEach(m)},m(t,n){V(t,e,n),p(e,l)},p(t,n){n&2&&fe(l,t[1])},d(t){t&&m(e)}}}function ms(s){let e,l,t,n=s[1]&&Ht(s),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],r={};for(let i=0;i{l(5,e=pe(pe({},e),Ve(f))),l(3,r=Ie(e,o)),"size"in f&&l(0,i=f.size),"title"in f&&l(1,a=f.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[i,a,n,r,t]}class at extends $e{constructor(e){super(),ke(this,e,hs,ms,be,{size:0,title:1})}}function qt(s){let e,l;return{c(){e=ve("title"),l=Z(s[1])},l(t){e=we(t,"title",{});var n=$(e);l=G(n,s[1]),n.forEach(m)},m(t,n){V(t,e,n),p(e,l)},p(t,n){n&2&&fe(l,t[1])},d(t){t&&m(e)}}}function _s(s){let e,l,t=s[1]&&qt(s),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],o={};for(let r=0;r{l(5,e=pe(pe({},e),Ve(f))),l(3,r=Ie(e,o)),"size"in f&&l(0,i=f.size),"title"in f&&l(1,a=f.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[i,a,n,r,t]}class Mn extends $e{constructor(e){super(),ke(this,e,gs,_s,be,{size:0,title:1})}}function Lt(s){let e,l;return{c(){e=ve("title"),l=Z(s[1])},l(t){e=we(t,"title",{});var n=$(e);l=G(n,s[1]),n.forEach(m)},m(t,n){V(t,e,n),p(e,l)},p(t,n){n&2&&fe(l,t[1])},d(t){t&&m(e)}}}function ps(s){let e,l,t=s[1]&&Lt(s),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],o={};for(let r=0;r{l(5,e=pe(pe({},e),Ve(f))),l(3,r=Ie(e,o)),"size"in f&&l(0,i=f.size),"title"in f&&l(1,a=f.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[i,a,n,r,t]}class vs extends $e{constructor(e){super(),ke(this,e,bs,ps,be,{size:0,title:1})}}function jt(s){let e,l;return{c(){e=ve("title"),l=Z(s[1])},l(t){e=we(t,"title",{});var n=$(e);l=G(n,s[1]),n.forEach(m)},m(t,n){V(t,e,n),p(e,l)},p(t,n){n&2&&fe(l,t[1])},d(t){t&&m(e)}}}function ws(s){let e,l,t=s[1]&&jt(s),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],o={};for(let r=0;r{l(5,e=pe(pe({},e),Ve(f))),l(3,r=Ie(e,o)),"size"in f&&l(0,i=f.size),"title"in f&&l(1,a=f.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[i,a,n,r,t]}class zn extends $e{constructor(e){super(),ke(this,e,$s,ws,be,{size:0,title:1})}}function Yt(s){let e,l;return{c(){e=ve("title"),l=Z(s[1])},l(t){e=we(t,"title",{});var n=$(e);l=G(n,s[1]),n.forEach(m)},m(t,n){V(t,e,n),p(e,l)},p(t,n){n&2&&fe(l,t[1])},d(t){t&&m(e)}}}function ks(s){let e,l,t=s[1]&&Yt(s),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],o={};for(let r=0;r{l(5,e=pe(pe({},e),Ve(f))),l(3,r=Ie(e,o)),"size"in f&&l(0,i=f.size),"title"in f&&l(1,a=f.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[i,a,n,r,t]}class Pn extends $e{constructor(e){super(),ke(this,e,Ss,ks,be,{size:0,title:1})}}function Ut(s){let e,l;return{c(){e=ve("title"),l=Z(s[1])},l(t){e=we(t,"title",{});var n=$(e);l=G(n,s[1]),n.forEach(m)},m(t,n){V(t,e,n),p(e,l)},p(t,n){n&2&&fe(l,t[1])},d(t){t&&m(e)}}}function Es(s){let e,l,t=s[1]&&Ut(s),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:s[0]},{height:s[0]},s[2],s[3]],o={};for(let r=0;r{l(5,e=pe(pe({},e),Ve(f))),l(3,r=Ie(e,o)),"size"in f&&l(0,i=f.size),"title"in f&&l(1,a=f.title)},s.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||a),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Ve(e),[i,a,n,r,t]}class Ds extends $e{constructor(e){super(),ke(this,e,ys,Es,be,{size:0,title:1})}}function Qt(s){let e;return{c(){e=E("div"),this.h()},l(l){e=y(l,"DIV",{id:!0,style:!0}),$(e).forEach(m),this.h()},h(){I(e,"id","svelte-infinite-scroll"),it(e,"width","0")},m(l,t){V(l,e,t),s[11](e)},p:X,d(l){l&&m(e),s[11](null)}}}function Is(s){let e,l=!s[1]&&!s[0]&&Qt(s);return{c(){l&&l.c(),e=ie()},l(t){l&&l.l(t),e=ie()},m(t,n){l&&l.m(t,n),V(t,e,n)},p(t,[n]){!t[1]&&!t[0]?l?l.p(t,n):(l=Qt(t),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:X,o:X,d(t){l&&l.d(t),t&&m(e)}}}function Vs(s,e,l){let{threshold:t=0}=e,{horizontal:n=!1}=e,{elementScroll:o=null}=e,{hasMore:r=!0}=e,{reverse:i=!1}=e,{window:a=!1}=e;const f=pt();let c=!1,d,u,_,g;const b=T=>{if(!r)return;const F=T.target;w(F,i,n)<=t?(!c&&r&&(f("loadMore"),l(8,u=F.scrollHeight),l(9,_=F.scrollTop)),l(7,c=!0)):l(7,c=!1)},w=(T,F,K)=>{const C=T.documentElement?T.documentElement:T;return F?K?C.scrollLeft:C.scrollTop:K?C.scrollWidth-C.clientWidth-C.scrollLeft:C.scrollHeight-C.clientHeight-C.scrollTop};On(()=>{a?l(10,g=document):o?l(10,g=o):l(10,g=d.parentNode)}),Hn(()=>{g&&(g.removeEventListener("scroll",b),g.removeEventListener("resize",b))});function S(T){Pe[T?"unshift":"push"](()=>{d=T,l(2,d)})}return s.$$set=T=>{"threshold"in T&&l(3,t=T.threshold),"horizontal"in T&&l(4,n=T.horizontal),"elementScroll"in T&&l(0,o=T.elementScroll),"hasMore"in T&&l(5,r=T.hasMore),"reverse"in T&&l(6,i=T.reverse),"window"in T&&l(1,a=T.window)},s.$$.update=()=>{s.$$.dirty&1088&&g&&(i&&l(10,g.scrollTop=g.scrollHeight,g),g.addEventListener("scroll",b),g.addEventListener("resize",b)),s.$$.dirty&1984&&c&&i&&l(10,g.scrollTop=g.scrollHeight-u+_,g)},[o,a,d,t,n,r,i,c,u,_,g,S]}class Ns extends $e{constructor(e){super(),ke(this,e,Vs,Is,be,{threshold:3,horizontal:4,elementScroll:0,hasMore:5,reverse:6,window:1})}}function Ts(s){let e,l,t,n,o,r,i,a;t=new xn({});const f=s[3].default,c=Ln(f,s,s[6],null);return{c(){e=E("div"),l=E("button"),R(t.$$.fragment),n=U(),o=E("span"),c&&c.c(),this.h()},l(d){e=y(d,"DIV",{class:!0});var u=$(e);l=y(u,"BUTTON",{class:!0});var _=$(l);O(t.$$.fragment,_),_.forEach(m),n=Q(u),o=y(u,"SPAN",{class:!0});var g=$(o);c&&c.l(g),g.forEach(m),u.forEach(m),this.h()},h(){I(l,"class","p-0 opacity-50 hover:opacity-100"),I(o,"class","truncate"),I(e,"class","removable-tag flex items-center gap-x-1")},m(d,u){V(d,e,u),p(e,l),A(t,l,null),p(e,n),p(e,o),c&&c.m(o,null),r=!0,i||(a=Re(l,"click",jn(s[4])),i=!0)},p(d,u){c&&c.p&&(!r||u&64)&&Yn(c,f,d,d[6],r?Qn(f,d[6],u,null):Un(d[6]),null)},i(d){r||(h(t.$$.fragment,d),h(c,d),r=!0)},o(d){v(t.$$.fragment,d),v(c,d),r=!1},d(d){d&&m(e),B(t),c&&c.d(d),i=!1,a()}}}function Cs(s){let e,l;const t=[{type:s[0]},s[2]];let n={$$slots:{default:[Ts]},$$scope:{ctx:s}};for(let o=0;oi("remove");function c(d){ut.call(this,s,d)}return s.$$set=d=>{e=pe(pe({},e),Ve(d)),l(2,n=Ie(e,t)),"type"in d&&l(0,a=d.type),"$$scope"in d&&l(6,r=d.$$scope)},[a,i,n,o,f,c,r]}class Tt extends $e{constructor(e){super(),ke(this,e,Fs,Cs,be,{type:0})}}function Ms(s){let e,l=(s[2]?"":s[5])+"",t,n,o=s[0][s[1].op]+"",r,i,a;return{c(){e=E("span"),t=Z(l),n=U(),r=Z(o),i=U(),a=Z(s[4]),this.h()},l(f){e=y(f,"SPAN",{class:!0});var c=$(e);t=G(c,l),c.forEach(m),n=Q(f),r=G(f,o),i=Q(f),a=G(f,s[4]),this.h()},h(){I(e,"class","font-mono")},m(f,c){V(f,e,c),p(e,t),V(f,n,c),V(f,r,c),V(f,i,c),V(f,a,c)},p(f,c){c&36&&l!==(l=(f[2]?"":f[5])+"")&&fe(t,l),c&2&&o!==(o=f[0][f[1].op]+"")&&fe(r,o),c&16&&fe(a,f[4])},d(f){f&&m(e),f&&m(n),f&&m(r),f&&m(i),f&&m(a)}}}function zs(s){let e,l,t,n,o,r;return l=new Tt({props:{interactive:!0,type:"magenta",$$slots:{default:[Ms]},$$scope:{ctx:s}}}),l.$on("click",s[9]),l.$on("remove",s[10]),{c(){e=E("div"),R(l.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=$(e);O(l.$$.fragment,a),a.forEach(m),this.h()},h(){I(e,"class","filter-pill items-center")},m(i,a){V(i,e,a),A(l,e,null),n=!0,o||(r=Fe(t=Me.call(null,e,{text:s[6]})),o=!0)},p(i,[a]){const f={};a&2102&&(f.$$scope={dirty:a,ctx:i}),l.$set(f),t&&Le(t.update)&&a&64&&t.update.call(null,{text:i[6]})},i(i){n||(h(l.$$.fragment,i),n=!0)},o(i){v(l.$$.fragment,i),n=!1},d(i){i&&m(e),B(l),o=!1,r()}}}function Ps(s,e,l){let t,n,o,r,i;const a={equals:"=",not_equal:"≠",less:"<",less_equal:"≤",greater:">",greater_equal:"≥",in:"in",exists:"exists"};let{filter:f}=e,{hidePath:c=!1}=e;const d=Ae();ge(s,d,g=>l(7,i=g));const u=()=>Ze({command:Ge.EditFilter,namespace:i.namespace,datasetName:i.datasetName,path:n}),_=()=>d.removeFilter(f);return s.$$set=g=>{"filter"in g&&l(1,f=g.filter),"hidePath"in g&&l(2,c=g.hidePath)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=ye(f.value||"false")),s.$$.dirty&2&&l(3,n=Et(f.path)),s.$$.dirty&18&&l(6,o=`${Ee(f.path)} ${a[f.op]} ${t}`),s.$$.dirty&8&&l(5,r=n.at(-1))},[a,f,c,n,t,r,o,i,d,u,_]}class Rn extends $e{constructor(e){super(),ke(this,e,Ps,zs,be,{FILTER_SHORTHANDS:0,filter:1,hidePath:2})}get FILTER_SHORTHANDS(){return this.$$.ctx[0]}}function Jt(s){let e,l=s[0].concept_namespace+"",t,n,o=s[0].concept_name+"",r;return{c(){e=E("div"),t=Z(l),n=Z(" / "),r=Z(o),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=$(e);t=G(a,l),n=G(a," / "),r=G(a,o),a.forEach(m),this.h()},h(){I(e,"class","mb-2 w-full text-center text-xs")},m(i,a){V(i,e,a),p(e,t),p(e,n),p(e,r)},p(i,a){a&1&&l!==(l=i[0].concept_namespace+"")&&fe(t,l),a&1&&o!==(o=i[0].concept_name+"")&&fe(r,o)},d(i){i&&m(e)}}}function Rs(s){let e=Ee(s[0].path)+"",l,t,n=s[0].type+"",o;return{c(){l=Z(e),t=Z(": "),o=Z(n)},l(r){l=G(r,e),t=G(r,": "),o=G(r,n)},m(r,i){V(r,l,i),V(r,t,i),V(r,o,i)},p(r,i){i&1&&e!==(e=Ee(r[0].path)+"")&&fe(l,e),i&1&&n!==(n=r[0].type+"")&&fe(o,n)},d(r){r&&m(l),r&&m(t),r&&m(o)}}}function Kt(s){let e,l,t;return l=new Tn({props:{embedding:s[0].embedding}}),{c(){e=E("div"),R(l.$$.fragment),this.h()},l(n){e=y(n,"DIV",{class:!0});var o=$(e);O(l.$$.fragment,o),o.forEach(m),this.h()},h(){I(e,"class","ml-2")},m(n,o){V(n,e,o),A(l,e,null),t=!0},p(n,o){const r={};o&1&&(r.embedding=n[0].embedding),l.$set(r)},i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){v(l.$$.fragment,n),t=!1},d(n){n&&m(e),B(l)}}}function Zt(s){let e,l;return{c(){e=E("div"),l=Z(s[2]),this.h()},l(t){e=y(t,"DIV",{class:!0});var n=$(e);l=G(n,s[2]),n.forEach(m),this.h()},h(){I(e,"class","mt-2 whitespace-pre-wrap text-left")},m(t,n){V(t,e,n),p(e,l)},p(t,n){n&4&&fe(l,t[2])},d(t){t&&m(e)}}}function As(s){let e,l,t,n,o,r,i,a,f=s[0].type==="concept"&&Jt(s);n=new Xe({props:{type:s[1],$$slots:{default:[Rs]},$$scope:{ctx:s}}});let c=(s[0].type==="semantic"||s[0].type==="concept")&&Kt(s),d=s[2]&&Zt(s);return{c(){f&&f.c(),e=U(),l=E("div"),t=E("div"),R(n.$$.fragment),o=U(),c&&c.c(),r=U(),d&&d.c(),i=ie(),this.h()},l(u){f&&f.l(u),e=Q(u),l=y(u,"DIV",{class:!0});var _=$(l);t=y(_,"DIV",{class:!0});var g=$(t);O(n.$$.fragment,g),g.forEach(m),o=Q(_),c&&c.l(_),_.forEach(m),r=Q(u),d&&d.l(u),i=ie(),this.h()},h(){I(t,"class","whitespace-nowrap"),I(l,"class","flex items-center justify-items-center")},m(u,_){f&&f.m(u,_),V(u,e,_),V(u,l,_),p(l,t),A(n,t,null),p(l,o),c&&c.m(l,null),V(u,r,_),d&&d.m(u,_),V(u,i,_),a=!0},p(u,[_]){u[0].type==="concept"?f?f.p(u,_):(f=Jt(u),f.c(),f.m(e.parentNode,e)):f&&(f.d(1),f=null);const g={};_&2&&(g.type=u[1]),_&9&&(g.$$scope={dirty:_,ctx:u}),n.$set(g),u[0].type==="semantic"||u[0].type==="concept"?c?(c.p(u,_),_&1&&h(c,1)):(c=Kt(u),c.c(),h(c,1),c.m(l,null)):c&&(le(),v(c,1,1,()=>{c=null}),ne()),u[2]?d?d.p(u,_):(d=Zt(u),d.c(),d.m(i.parentNode,i)):d&&(d.d(1),d=null)},i(u){a||(h(n.$$.fragment,u),h(c),a=!0)},o(u){v(n.$$.fragment,u),v(c),a=!1},d(u){f&&f.d(u),u&&m(e),u&&m(l),B(n),c&&c.d(),u&&m(r),d&&d.d(u),u&&m(i)}}}function Bs(s,e,l){let t,{search:n}=e,{tagType:o="outline"}=e;return s.$$set=r=>{"search"in r&&l(0,n=r.search),"tagType"in r&&l(1,o=r.tagType)},s.$$.update=()=>{s.$$.dirty&1&&l(2,t=n.type==="concept"?"":n.query)},[n,o,t]}class Gt extends $e{constructor(e){super(),ke(this,e,Bs,As,be,{search:0,tagType:1})}}function Os(s){let e,l=Ee(s[0].path)+"",t,n,o,r;return{c(){e=E("span"),t=Z(l),n=Z(' has "'),o=Z(s[2]),r=Z('"'),this.h()},l(i){e=y(i,"SPAN",{class:!0});var a=$(e);t=G(a,l),a.forEach(m),n=G(i,' has "'),o=G(i,s[2]),r=G(i,'"'),this.h()},h(){I(e,"class","font-mono")},m(i,a){V(i,e,a),p(e,t),V(i,n,a),V(i,o,a),V(i,r,a)},p(i,a){a&1&&l!==(l=Ee(i[0].path)+"")&&fe(t,l),a&4&&fe(o,i[2])},d(i){i&&m(e),i&&m(n),i&&m(o),i&&m(r)}}}function Hs(s){let e,l,t,n,o,r;return l=new Tt({props:{title:"query",interactive:!0,type:s[1],$$slots:{default:[Os]},$$scope:{ctx:s}}}),l.$on("click",s[6]),l.$on("remove",s[7]),{c(){e=E("div"),R(l.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=$(e);O(l.$$.fragment,a),a.forEach(m),this.h()},h(){I(e,"class","search-pill items-center text-left")},m(i,a){V(i,e,a),A(l,e,null),n=!0,o||(r=Fe(t=Me.call(null,e,{component:Gt,props:{search:s[0],tagType:s[1]}})),o=!0)},p(i,[a]){const f={};a&2&&(f.type=i[1]),a&517&&(f.$$scope={dirty:a,ctx:i}),l.$set(f),t&&Le(t.update)&&a&3&&t.update.call(null,{component:Gt,props:{search:i[0],tagType:i[1]}})},i(i){n||(h(l.$$.fragment,i),n=!0)},o(i){v(l.$$.fragment,i),n=!1},d(i){i&&m(e),B(l),o=!1,r()}}}function qs(s,e,l){let t,n,o,{search:r}=e;const i={keyword:"outline",semantic:"teal",concept:"green"},a=Ae(),f=Qe();ge(s,f,u=>l(3,o=u));function c(u){ut.call(this,s,u)}const d=()=>{var u;return a.removeSearch(r,((u=o.selectRowsSchema)==null?void 0:u.data)||null)};return s.$$set=u=>{"search"in u&&l(0,r=u.search)},s.$$.update=()=>{s.$$.dirty&1&&l(2,t=r.type==="concept"?r.concept_name:r.query),s.$$.dirty&1&&l(1,n=r.type!=null?i[r.type]:"outline")},[r,n,t,o,a,f,c,d]}class An extends $e{constructor(e){super(),ke(this,e,qs,Hs,be,{search:0})}}function Wt(s,e,l){const t=s.slice();return t[26]=e[l][0],t[27]=e[l][1],t}function Xt(s,e,l){const t=s.slice();return t[30]=e[l],t}function xt(s,e,l){const t=s.slice();return t[33]=e[l],t}function el(s,e,l){const t=s.slice();return t[36]=e[l],t}function tl(s,e,l){const t=s.slice();return t[39]=e[l],t}function Ls(s){let e,l,t,n=s[13],o=[];for(let a=0;av(o[a],1,1,()=>{o[a]=null});let i=s[8]!=null&&s[8].length>0&&sl(s);return{c(){e=E("div");for(let a=0;a0?i?(i.p(a,f),f[0]&256&&h(i,1)):(i=sl(a),i.c(),h(i,1),i.m(e,null)):i&&(le(),v(i,1,1,()=>{i=null}),ne())},i(a){if(!t){for(let f=0;fv(c[u],1,1,()=>{c[u]=null});return{c(){e=E("div"),l=E("div"),n=Z(t),o=U(),r=E("div");for(let u=0;u{t=null}),ne())},i(n){l||(h(t),l=!0)},o(n){v(t),l=!1},d(n){t&&t.d(n),n&&m(e)}}}function sl(s){let e,l,t,n,o,r,i=s[8],a=[];for(let c=0;cv(a[c],1,1,()=>{a[c]=null});return{c(){e=E("div"),l=E("div"),t=Z("Filters"),n=U(),o=E("div");for(let c=0;cv(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;rv(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;r{r[c]=null}),ne()),~e?(l=r[e],l?l.p(a,f):(l=r[e]=o[e](a),l.c()),h(l,1),l.m(t.parentNode,t)):l=null)},i(a){n||(h(l),n=!0)},o(a){v(l),n=!1},d(a){~e&&r[e].d(a),a&&m(t)}}}function Xs(s){let e,l,t,n,o,r,i,a,f,c,d,u,_,g,b,w,S,T,F,K,C,L,N=s[13].length>0&&Ls(s),M=s[0]&&s[1]&&al(s);c=new vt({props:{noLabel:!0,size:"sm",class:"w-80",selected:s[5],$$slots:{default:[Ys]},$$scope:{ctx:s}}}),c.$on("update",s[16]);let D=s[6]!=null&&cl(s);const k=[Js,Qs,Us],P=[];function ee(J,z){var j,q,H;return((j=J[4])==null?void 0:j.order)==null?0:((q=J[4])==null?void 0:q.order)==="ASC"?1:((H=J[4])==null?void 0:H.order)==="DESC"?2:-1}~(g=ee(s))&&(b=P[g]=k[g](s));let x=s[2]&&ul(s);return{c(){e=E("div"),N&&N.c(),l=U(),t=E("div"),n=E("div"),M&&M.c(),o=U(),r=E("div"),i=E("div"),a=Z("Sort by"),f=U(),R(c.$$.fragment),d=U(),D&&D.c(),u=U(),_=E("button"),b&&b.c(),T=U(),x&&x.c(),F=ie(),this.h()},l(J){e=y(J,"DIV",{class:!0});var z=$(e);N&&N.l(z),l=Q(z),t=y(z,"DIV",{class:!0});var j=$(t);n=y(j,"DIV",{class:!0});var q=$(n);M&&M.l(q),q.forEach(m),o=Q(j),r=y(j,"DIV",{class:!0});var H=$(r);i=y(H,"DIV",{class:!0});var Y=$(i);a=G(Y,"Sort by"),Y.forEach(m),f=Q(H),O(c.$$.fragment,H),d=Q(H),D&&D.l(H),u=Q(H),_=y(H,"BUTTON",{});var de=$(_);b&&b.l(de),de.forEach(m),H.forEach(m),j.forEach(m),z.forEach(m),T=Q(J),x&&x.l(J),F=ie(),this.h()},h(){I(n,"class","py-1"),I(i,"class","mr-1"),_.disabled=w=s[4]==null,I(r,"class","sort-container flex flex-row items-center gap-x-1"),I(t,"class","flex w-full flex-row items-center justify-between"),I(e,"class","mx-5 my-2 flex flex-col gap-y-2")},m(J,z){var j;V(J,e,z),N&&N.m(e,null),p(e,l),p(e,t),p(t,n),M&&M.m(n,null),p(t,o),p(t,r),p(r,i),p(i,a),p(r,f),A(c,r,null),p(r,d),D&&D.m(r,null),p(r,u),p(r,_),~g&&P[g].m(_,null),V(J,T,z),x&&x.m(J,z),V(J,F,z),K=!0,C||(L=[Fe(S=Me.call(null,_,{text:((j=s[4])==null?void 0:j.order)==="ASC"?"Sorted ascending. Toggle to switch to descending.":"Sorted descending. Toggle to switch to ascending."})),Re(_,"click",s[17])],C=!0)},p(J,z){var H;J[13].length>0&&N.p(J,z),J[0]&&J[1]?M?M.p(J,z):(M=al(J),M.c(),M.m(n,null)):M&&(M.d(1),M=null);const j={};z[0]&32&&(j.selected=J[5]),z[0]&128|z[1]&2048&&(j.$$scope={dirty:z,ctx:J}),c.$set(j),J[6]!=null?D?(D.p(J,z),z[0]&64&&h(D,1)):(D=cl(J),D.c(),h(D,1),D.m(r,u)):D&&(le(),v(D,1,1,()=>{D=null}),ne());let q=g;g=ee(J),g!==q&&(b&&(le(),v(P[q],1,1,()=>{P[q]=null}),ne()),~g?(b=P[g],b||(b=P[g]=k[g](J),b.c()),h(b,1),b.m(_,null)):b=null),(!K||z[0]&16&&w!==(w=J[4]==null))&&(_.disabled=w),S&&Le(S.update)&&z[0]&16&&S.update.call(null,{text:((H=J[4])==null?void 0:H.order)==="ASC"?"Sorted ascending. Toggle to switch to descending.":"Sorted descending. Toggle to switch to ascending."}),J[2]?x?(x.p(J,z),z[0]&4&&h(x,1)):(x=ul(J),x.c(),h(x,1),x.m(F.parentNode,F)):x&&(le(),v(x,1,1,()=>{x=null}),ne())},i(J){K||(h(N),h(c.$$.fragment,J),h(D),h(b),h(x),K=!0)},o(J){v(N),v(c.$$.fragment,J),v(D),v(b),v(x),K=!1},d(J){J&&m(e),N&&N.d(),M&&M.d(),B(c),D&&D.d(),~g&&P[g].d(),J&&m(T),x&&x.d(J),J&&m(F),C=!1,We(L)}}}function xs(s,e,l){let t,n,o,r,i,a,f,c,d,u,_,g=X,b=()=>(g(),g=Ce(t,z=>l(10,_=z)),t);s.$$.on_destroy.push(()=>g());let{totalNumRows:w}=e,{manifest:S}=e,T=Ae();ge(s,T,z=>l(22,u=z));let F=Qe();ge(s,F,z=>l(21,d=z));let K=null;const C=["keyword","semantic","concept"],L={keyword:"Keyword",semantic:"Semantic",concept:"Concepts"};let N={};function M(z){z.type==="concept"&&l(2,K={namespace:z.concept_namespace,name:z.concept_name})}let D={};const k=z=>{const j=z.detail;j!==i&&T.setSortBy(j===""?null:Et(j))},P=()=>{r!=null&&T.setSortBy(r.path),T.setSortOrder((r==null?void 0:r.order)==="ASC"?"DESC":"ASC")},ee=()=>{T.clearSorts()},x=z=>M(z),J=()=>l(2,K=null);return s.$$set=z=>{"totalNumRows"in z&&l(0,w=z.totalNumRows),"manifest"in z&&l(1,S=z.manifest)},s.$$.update=()=>{var z,j,q,H;if(s.$$.dirty[0]&4&&b(l(9,t=K?tr(K.namespace,K.name):void 0)),s.$$.dirty[0]&4194304&&l(20,n=Vt(u)),s.$$.dirty[0]&4194304&&l(8,o=u.query.filters),s.$$.dirty[0]&1048584){l(3,N={});for(const Y of n)Y.type&&(Y.type in N||l(3,N[Y.type]=[],N),N[Y.type].push(Y))}if(s.$$.dirty[0]&2097152&&l(4,r=Fr(d)),s.$$.dirty[0]&2097152)for(const Y of((j=(z=d.selectRowsSchema)==null?void 0:z.data)==null?void 0:j.search_results)||[])D[Ee(Y.result_path)]=Y;s.$$.dirty[0]&16&&l(5,i=r!=null&&r.path?Ee(r.path):""),s.$$.dirty[0]&4194304&&l(6,a=u.query.sort_by),s.$$.dirty[0]&2097248&&l(19,f=((H=(q=d.selectRowsSchema)==null?void 0:q.data)==null?void 0:H.schema)!=null?[{path:[""],text:"None",disabled:a==null&&i!==""},...yt(d.selectRowsSchema.data.schema).filter(Y=>Y.dtype!="embedding"&&Y.dtype!="string_span").map(Y=>({path:Y.path,text:Ee(Y.path.slice(1)),disabled:!1}))]:[]),s.$$.dirty[0]&524288&&l(7,c=f.reduce((Y,de)=>{const he=de.path[0];return(Y[he]=Y[he]||[]).push(de),Y},{}))},[w,S,K,N,r,i,a,c,o,t,_,T,F,C,L,M,k,P,ee,f,n,d,u,x,J]}class ei extends $e{constructor(e){super(),ke(this,e,xs,Xs,be,{totalNumRows:0,manifest:1},null,[-1,-1])}}function dl(s,e,l){var r,i,a;const t=s.slice();t[14]=e[l],t[18]=l;const n=t[3].length>1?`[${t[18]}]`:"";t[15]=n;const o=((a=(i=(r=t[7].data)==null?void 0:r.ui)==null?void 0:i.markdown_paths)==null?void 0:a.find(f=>Ke(f,t[0])))!=null;return t[16]=o,t}function ml(s){let e,l,t,n=s[0].join(".")+s[15]+"",o,r,i,a,f,c;return a=new Ur({props:{text:ye(s[14]),row:s[1],markdown:s[16],spanPaths:s[5].spanPaths,valuePaths:s[5].valuePaths,datasetViewStore:s[8],datasetStore:s[2],embeddings:s[6]}}),{c(){e=E("div"),l=E("div"),t=E("div"),o=Z(n),r=U(),i=E("div"),R(a.$$.fragment),f=U(),this.h()},l(d){e=y(d,"DIV",{class:!0});var u=$(e);l=y(u,"DIV",{class:!0});var _=$(l);t=y(_,"DIV",{class:!0});var g=$(t);o=G(g,n),g.forEach(m),r=Q(_),i=y(_,"DIV",{class:!0});var b=$(i);O(a.$$.fragment,b),b.forEach(m),_.forEach(m),f=Q(u),u.forEach(m),this.h()},h(){I(t,"class","sticky top-0 z-10 w-full self-start border-t border-neutral-200 bg-neutral-100 px-2 py-2 pb-2 font-mono font-medium text-neutral-500"),I(i,"class","mx-4 font-normal"),I(l,"class","flex w-full flex-col"),I(e,"class","flex flex-row")},m(d,u){V(d,e,u),p(e,l),p(l,t),p(t,o),p(l,r),p(l,i),A(a,i,null),p(e,f),c=!0},p(d,u){(!c||u&9)&&n!==(n=d[0].join(".")+d[15]+"")&&fe(o,n);const _={};u&8&&(_.text=ye(d[14])),u&2&&(_.row=d[1]),u&129&&(_.markdown=d[16]),u&32&&(_.spanPaths=d[5].spanPaths),u&32&&(_.valuePaths=d[5].valuePaths),u&4&&(_.datasetStore=d[2]),u&64&&(_.embeddings=d[6]),a.$set(_)},i(d){c||(h(a.$$.fragment,d),c=!0)},o(d){v(a.$$.fragment,d),c=!1},d(d){d&&m(e),B(a)}}}function ti(s){let e,l,t=s[3],n=[];for(let r=0;rv(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;r(u(),u=Ce(i,F=>l(7,d=F)),i);s.$$.on_destroy.push(()=>u());let{path:g}=e,{row:b}=e,{field:w}=e;const S=Ae();ge(s,S,F=>l(13,f=F));const T=Qe();return ge(s,T,F=>l(2,c=F)),s.$$set=F=>{"path"in F&&l(0,g=F.path),"row"in F&&l(1,b=F.row),"field"in F&&l(10,w=F.field)},s.$$.update=()=>{s.$$.dirty&4&&l(11,t=c.visibleFields||[]),s.$$.dirty&8196&&l(12,n=In(f,c)),s.$$.dirty&4100&&l(6,o=Vn(c,n)),s.$$.dirty&3072&&l(5,r=Mr(w,t)),s.$$.dirty&8192&&_(l(4,i=ft(f.namespace,f.datasetName))),s.$$.dirty&3&&l(3,a=nr(b,g).map(F=>rr.value(F)).filter(Jr))},[g,b,c,a,i,r,o,d,S,T,w,t,n,f]}class ni extends $e{constructor(e){super(),ke(this,e,li,ti,be,{path:0,row:1,field:10})}}function hl(s,e,l){const t=s.slice();return t[8]=e[l],t[10]=l,t}function _l(s){let e,l=[],t=new Map,n,o,r=s[1];const i=a=>Ee(a[8].path);for(let a=0;as[7].call(e))},m(a,f){V(a,e,f);for(let c=0;c0&&_l(s);return i=new Gr({props:{row:s[0],visibleFields:s[2],selectRowsSchema:s[4]}}),{c(){e=E("div"),l=E("div"),c&&c.c(),t=U(),n=E("div"),o=E("div"),r=E("div"),R(i.$$.fragment),this.h()},l(d){e=y(d,"DIV",{class:!0});var u=$(e);l=y(u,"DIV",{class:!0});var _=$(l);c&&c.l(_),t=Q(_),n=y(_,"DIV",{class:!0});var g=$(n);o=y(g,"DIV",{class:!0});var b=$(o);r=y(b,"DIV",{style:!0,class:!0});var w=$(r);O(i.$$.fragment,w),w.forEach(m),b.forEach(m),g.forEach(m),_.forEach(m),u.forEach(m),this.h()},h(){I(r,"style",a=`max-height: ${Math.max(pl,s[3])}px`),I(r,"class","overflow-y-auto"),I(o,"class","sticky top-0 self-start"),I(n,"class","flex h-full w-1/3 bg-neutral-100"),I(l,"class","flex h-full w-full flex-row"),I(e,"class","rounded border-x border-b border-neutral-200 shadow-md")},m(d,u){V(d,e,u),p(e,l),c&&c.m(l,null),p(l,t),p(l,n),p(n,o),p(o,r),A(i,r,null),f=!0},p(d,[u]){d[1].length>0?c?(c.p(d,u),u&2&&h(c,1)):(c=_l(d),c.c(),h(c,1),c.m(l,t)):c&&(le(),v(c,1,1,()=>{c=null}),ne());const _={};u&1&&(_.row=d[0]),u&4&&(_.visibleFields=d[2]),u&16&&(_.selectRowsSchema=d[4]),i.$set(_),(!f||u&8&&a!==(a=`max-height: ${Math.max(pl,d[3])}px`))&&I(r,"style",a)},i(d){f||(h(c),h(i.$$.fragment,d),f=!0)},o(d){v(c),v(i.$$.fragment,d),f=!1},d(d){d&&m(e),c&&c.d(),B(i)}}}const pl=320;function si(s,e,l){let t,n,{row:o}=e,{mediaFields:r}=e,{visibleFields:i}=e;const a=Qe();ge(s,a,d=>l(6,n=d));let f=0;function c(){f=this.clientHeight,l(3,f)}return s.$$set=d=>{"row"in d&&l(0,o=d.row),"mediaFields"in d&&l(1,r=d.mediaFields),"visibleFields"in d&&l(2,i=d.visibleFields)},s.$$.update=()=>{var d;s.$$.dirty&64&&l(4,t=(d=n.selectRowsSchema)==null?void 0:d.data)},[o,r,i,f,t,a,n,c]}class ii extends $e{constructor(e){super(),ke(this,e,si,ri,be,{row:0,mediaFields:1,visibleFields:2})}}function bl(s,e,l){const t=s.slice();return t[23]=e[l],t}function ai(s){let e,l;return{c(){e=E("div"),l=Z("No results."),this.h()},l(t){e=y(t,"DIV",{class:!0});var n=$(e);l=G(n,"No results."),n.forEach(m),this.h()},h(){I(e,"class","mx-4 mt-8 w-full text-gray-600")},m(t,n){V(t,e,n),p(e,l)},p:X,i:X,o:X,d(t){t&&m(e)}}}function oi(s){let e,l;return{c(){e=E("div"),l=Z("Select fields to display"),this.h()},l(t){e=y(t,"DIV",{class:!0});var n=$(e);l=G(n,"Select fields to display"),n.forEach(m),this.h()},h(){I(e,"class","mt-12 w-full text-center text-gray-600")},m(t,n){V(t,e,n),p(e,l)},p:X,i:X,o:X,d(t){t&&m(e)}}}function fi(s){let e,l;return e=new je({props:{paragraph:!0,lines:3}}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function ci(s){var t,n;let e,l;return e=new vn({props:{lowContrast:!0,title:"Could not fetch schema:",subtitle:((t=s[2].error.body)==null?void 0:t.detail)||((n=s[2])==null?void 0:n.error.message)}}),{c(){R(e.$$.fragment)},l(o){O(e.$$.fragment,o)},m(o,r){A(e,o,r),l=!0},p(o,r){var a,f;const i={};r&4&&(i.subtitle=((a=o[2].error.body)==null?void 0:a.detail)||((f=o[2])==null?void 0:f.error.message)),e.$set(i)},i(o){l||(h(e.$$.fragment,o),l=!0)},o(o){v(e.$$.fragment,o),l=!1},d(o){B(e,o)}}}function ui(s){var t;let e,l;return e=new vn({props:{lowContrast:!0,title:"Could not fetch rows:",subtitle:((t=s[4].error.body)==null?void 0:t.detail)||s[4].error.message}}),{c(){R(e.$$.fragment)},l(n){O(e.$$.fragment,n)},m(n,o){A(e,n,o),l=!0},p(n,o){var i;const r={};o&16&&(r.subtitle=((i=n[4].error.body)==null?void 0:i.detail)||n[4].error.message),e.$set(r)},i(n){l||(h(e.$$.fragment,n),l=!0)},o(n){v(e.$$.fragment,n),l=!1},d(n){B(e,n)}}}function vl(s){let e,l,t,n=s[6],o=[];for(let a=0;av(o[a],1,1,()=>{o[a]=null});let i=s[6].length>0&&$l(s);return{c(){e=E("div");for(let a=0;a0?i?(i.p(a,f),f&64&&h(i,1)):(i=$l(a),i.c(),h(i,1),i.m(e,null)):i&&(le(),v(i,1,1,()=>{i=null}),ne())},i(a){if(!t){for(let f=0;f0&&s[13].isSuccess&&s[5]!=null&&vl(s);return{c(){R(e.$$.fragment),l=U(),n&&n.c(),o=U(),d&&d.c(),r=ie()},l(u){O(e.$$.fragment,u),l=Q(u),n&&n.l(u),o=Q(u),d&&d.l(u),r=ie()},m(u,_){A(e,u,_),V(u,l,_),~t&&f[t].m(u,_),V(u,o,_),d&&d.m(u,_),V(u,r,_),i=!0},p(u,[_]){const g={};_&128&&(g.totalNumRows=u[7]),_&4096&&(g.manifest=u[12].data),e.$set(g);let b=t;t=c(u),t===b?~t&&f[t].p(u,_):(n&&(le(),v(f[b],1,1,()=>{f[b]=null}),ne()),~t?(n=f[t],n?n.p(u,_):(n=f[t]=a[t](u),n.c()),h(n,1),n.m(o.parentNode,o)):n=null),u[6]&&u[1].length>0&&u[13].isSuccess&&u[5]!=null?d?(d.p(u,_),_&8290&&h(d,1)):(d=vl(u),d.c(),h(d,1),d.m(r.parentNode,r)):d&&(le(),v(d,1,1,()=>{d=null}),ne())},i(u){i||(h(e.$$.fragment,u),h(n),h(d),i=!0)},o(u){v(e.$$.fragment,u),v(n),v(d),i=!1},d(u){B(e,u),u&&m(l),~t&&f[t].d(u),u&&m(o),d&&d.d(u),u&&m(r)}}}function mi(s,e,l){let t,n,o,r,i,a,f,c,d,u,_,g,b=X,w=()=>(b(),b=Ce(r,H=>l(3,g=H)),r),S,T,F=X,K=()=>(F(),F=Ce(a,H=>l(4,T=H)),a),C,L,N=X,M=()=>(N(),N=Ce(t,H=>l(12,L=H)),t),D,k=X,P=()=>(k(),k=Ce(n,H=>l(13,D=H)),n);s.$$.on_destroy.push(()=>b()),s.$$.on_destroy.push(()=>F()),s.$$.on_destroy.push(()=>N()),s.$$.on_destroy.push(()=>k());const ee=Ae();ge(s,ee,H=>l(19,C=H));const x=Qe();ge(s,x,H=>l(18,S=H));let J=null;const z=Lr(J),j=()=>T==null?void 0:T.fetchNextPage();function q(H){Pe[H?"unshift":"push"](()=>{J=H,l(0,J)})}return s.$$.update=()=>{var H,Y,de,he;s.$$.dirty&524288&&M(l(11,t=sr(C.namespace,C.datasetName))),s.$$.dirty&524288&&P(l(10,n=Dt(C.namespace,C.datasetName))),s.$$.dirty&524288&&l(17,o=ir(C)),s.$$.dirty&524288&&w(l(9,r=ft(C.namespace,C.datasetName))),s.$$.dirty&262144&&l(2,i=S.selectRowsSchema),s.$$.dirty&655364&&K(l(8,a=ar(C.namespace,C.datasetName,o||{},i!=null&&i.isSuccess?i.data.schema:void 0))),s.$$.dirty&16&&l(7,f=(H=T.data)==null?void 0:H.pages[0].total_num_rows),s.$$.dirty&16&&l(6,c=(Y=T.data)==null?void 0:Y.pages.flatMap(re=>re.rows)),s.$$.dirty&262144&&l(1,d=(S.visibleFields||[]).sort((re,De)=>Ee(re.path)>Ee(De.path)?1:-1)),s.$$.dirty&6&&l(16,u=((de=i==null?void 0:i.data)==null?void 0:de.schema)!=null?zr((he=i==null?void 0:i.data)==null?void 0:he.schema,d):null),s.$$.dirty&65544&&l(5,_=g.data?Pr(u,g.data):[]),s.$$.dirty&1&&z.set(J)},Kn(Rr,z),[J,d,i,g,T,_,c,f,a,r,n,t,L,D,ee,x,u,o,S,C,j,q]}class hi extends $e{constructor(e){super(),ke(this,e,mi,di,be,{})}}function kl(s,e,l){const t=s.slice();return t[45]=e[l],t}function Sl(s,e,l){const t=s.slice();return t[48]=e[l],t}function El(s){const e=s[5].find(function(...t){return s[37](s[51],...t)});s[52]=e}function _i(s){let e,l,t=s[52].text+"",n,o,r=s[52].description&&yl(s);return{c(){e=E("div"),l=E("div"),n=Z(t),o=U(),r&&r.c(),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=$(e);l=y(a,"DIV",{});var f=$(l);n=G(f,t),f.forEach(m),o=Q(a),r&&r.l(a),a.forEach(m),this.h()},h(){I(e,"class","flex justify-between gap-x-4")},m(i,a){V(i,e,a),p(e,l),p(l,n),p(e,o),r&&r.m(e,null)},p(i,a){a[0]&32|a[1]&1048576&&t!==(t=i[52].text+"")&&fe(n,t),i[52].description?r?r.p(i,a):(r=yl(i),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},i:X,o:X,d(i){i&&m(e),r&&r.d()}}}function gi(s){let e,l,t,n,o,r,i;return l=new Xe({props:{$$slots:{default:[wi]},$$scope:{ctx:s}}}),{c(){e=E("div"),R(l.$$.fragment),t=U(),n=E("div"),o=Z(`Semantic search: + `),r=Z(s[0]),this.h()},l(a){e=y(a,"DIV",{class:!0});var f=$(e);O(l.$$.fragment,f),t=Q(f),n=y(f,"DIV",{class:!0});var c=$(n);o=G(c,`Semantic search: + `),r=G(c,s[0]),c.forEach(m),f.forEach(m),this.h()},h(){I(n,"class","ml-2"),I(e,"class","new-keyword flex flex-row items-center justify-items-center")},m(a,f){V(a,e,f),A(l,e,null),p(e,t),p(e,n),p(n,o),p(n,r),i=!0},p(a,f){const c={};f[1]&4194304&&(c.$$scope={dirty:f,ctx:a}),l.$set(c),(!i||f[0]&1)&&fe(r,a[0])},i(a){i||(h(l.$$.fragment,a),i=!0)},o(a){v(l.$$.fragment,a),i=!1},d(a){a&&m(e),B(l)}}}function pi(s){let e,l,t,n,o,r,i;return l=new Xe({props:{$$slots:{default:[$i]},$$scope:{ctx:s}}}),{c(){e=E("div"),R(l.$$.fragment),t=U(),n=E("div"),o=Z(`Keyword search: + `),r=Z(s[0]),this.h()},l(a){e=y(a,"DIV",{class:!0});var f=$(e);O(l.$$.fragment,f),t=Q(f),n=y(f,"DIV",{class:!0});var c=$(n);o=G(c,`Keyword search: + `),r=G(c,s[0]),c.forEach(m),f.forEach(m),this.h()},h(){I(n,"class","ml-2"),I(e,"class","new-keyword flex flex-row items-center justify-items-center")},m(a,f){V(a,e,f),A(l,e,null),p(e,t),p(e,n),p(n,o),p(n,r),i=!0},p(a,f){const c={};f[1]&4194304&&(c.$$scope={dirty:f,ctx:a}),l.$set(c),(!i||f[0]&1)&&fe(r,a[0])},i(a){i||(h(l.$$.fragment,a),i=!0)},o(a){v(l.$$.fragment,a),i=!1},d(a){a&&m(e),B(l)}}}function bi(s){let e,l,t,n,o,r=s[0]!=""?":":"",i,a,f,c;return l=new Xe({props:{$$slots:{default:[ki]},$$scope:{ctx:s}}}),{c(){e=E("div"),R(l.$$.fragment),t=U(),n=E("div"),o=Z("New concept"),i=Z(r),a=U(),f=Z(s[0]),this.h()},l(d){e=y(d,"DIV",{class:!0});var u=$(e);O(l.$$.fragment,u),t=Q(u),n=y(u,"DIV",{class:!0});var _=$(n);o=G(_,"New concept"),i=G(_,r),a=Q(_),f=G(_,s[0]),_.forEach(m),u.forEach(m),this.h()},h(){I(n,"class","ml-2"),I(e,"class","new-concept flex flex-row items-center justify-items-center")},m(d,u){V(d,e,u),A(l,e,null),p(e,t),p(e,n),p(n,o),p(n,i),p(n,a),p(n,f),c=!0},p(d,u){const _={};u[1]&4194304&&(_.$$scope={dirty:u,ctx:d}),l.$set(_),(!c||u[0]&1)&&r!==(r=d[0]!=""?":":"")&&fe(i,r),(!c||u[0]&1)&&fe(f,d[0])},i(d){c||(h(l.$$.fragment,d),c=!0)},o(d){v(l.$$.fragment,d),c=!1},d(d){d&&m(e),B(l)}}}function vi(s){let e;return{c(){e=E("div")},l(l){e=y(l,"DIV",{}),$(e).forEach(m)},m(l,t){V(l,e,t)},p:X,i:X,o:X,d(l){l&&m(e)}}}function yl(s){let e,l=s[52].description+"",t;return{c(){e=E("div"),t=Z(l),this.h()},l(n){e=y(n,"DIV",{class:!0});var o=$(e);t=G(o,l),o.forEach(m),this.h()},h(){I(e,"class","truncate text-xs text-gray-500")},m(n,o){V(n,e,o),p(e,t)},p(n,o){o[0]&32|o[1]&1048576&&l!==(l=n[52].description+"")&&fe(t,l)},d(n){n&&m(e)}}}function wi(s){let e,l;return e=new Mn({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function $i(s){let e,l;return e=new Mn({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function ki(s){let e,l;return e=new ns({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Si(s){El(s);let e,l,t,n;const o=[vi,bi,pi,gi,_i],r=[];function i(a,f){return a[52]==null?0:a[52].id==="new-concept"?1:a[52].id==="keyword-search"?2:a[52].id==="semantic-search"?3:4}return e=i(s),l=r[e]=o[e](s),{c(){l.c(),t=ie()},l(a){l.l(a),t=ie()},m(a,f){r[e].m(a,f),V(a,t,f),n=!0},p(a,f){El(a);let c=e;e=i(a),e===c?r[e].p(a,f):(le(),v(r[c],1,1,()=>{r[c]=null}),ne(),l=r[e],l?l.p(a,f):(l=r[e]=o[e](a),l.c()),h(l,1),l.m(t.parentNode,t))},i(a){n||(h(l),n=!0)},o(a){v(l),n=!1},d(a){r[e].d(a),a&&m(t)}}}function Dl(s){let e,l;return e=new ot({props:{value:Ee(s[48]),text:Ee(s[48])}}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,n){const o={};n[0]&512&&(o.value=Ee(t[48])),n[0]&512&&(o.text=Ee(t[48])),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Ei(s){let e,l,t=s[9],n=[];for(let r=0;rv(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;rv(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;r({51:D}),({item:D})=>[0,D?1048576:0]]},$$scope:{ctx:s}};s[0]!==void 0&&(N.value=s[0]),c=new xr({props:N}),s[38](c),Pe.push(()=>Ye(c,"value",L)),c.$on("select",s[20]);let M=Il(s);return T=new vt({props:{size:"xl",selected:s[1]||"",name:s[1]||"",$$slots:{default:[yi]},$$scope:{ctx:s}}}),T.$on("change",s[18]),{c(){e=E("div"),l=E("div"),R(t.$$.fragment),n=U(),o=E("div"),r=E("div"),i=E("div"),a=E("div"),f=E("div"),R(c.$$.fragment),u=U(),_=E("div"),M.c(),b=U(),w=E("div"),S=E("div"),R(T.$$.fragment),this.h()},l(D){e=y(D,"DIV",{class:!0});var k=$(e);l=y(k,"DIV",{class:!0});var P=$(l);O(t.$$.fragment,P),P.forEach(m),n=Q(k),o=y(k,"DIV",{class:!0});var ee=$(o);r=y(ee,"DIV",{class:!0});var x=$(r);i=y(x,"DIV",{class:!0});var J=$(i);a=y(J,"DIV",{class:!0});var z=$(a);f=y(z,"DIV",{class:!0});var j=$(f);O(c.$$.fragment,j),j.forEach(m),z.forEach(m),J.forEach(m),x.forEach(m),ee.forEach(m),u=Q(k),_=y(k,"DIV",{class:!0});var q=$(_);M.l(q),q.forEach(m),b=Q(k),w=y(k,"DIV",{class:!0});var H=$(w);S=y(H,"DIV",{class:!0});var Y=$(S);O(T.$$.fragment,Y),Y.forEach(m),H.forEach(m),k.forEach(m),this.h()},h(){I(l,"class","compute-embedding mr-1"),Se(l,"compute-embedding-indexing",s[8]),I(f,"class","flex-grow"),I(a,"class","flex w-full flex-row items-start justify-items-start"),I(i,"class","flex flex-row"),I(r,"class","w-full"),I(o,"class","search-container flex w-full flex-grow flex-row"),I(_,"class","mx-1"),I(S,"class","w-32"),I(w,"class","embedding-select mr-8 flex flex-row"),I(e,"class","border-1 flex w-full flex-row items-center px-4")},m(D,k){V(D,e,k),p(e,l),A(t,l,null),p(e,n),p(e,o),p(o,r),p(r,i),p(i,a),p(a,f),A(c,f,null),p(e,u),p(e,_),M.m(_,null),p(e,b),p(e,w),p(w,S),A(T,S,null),F=!0,K||(C=[Fe(Me.call(null,_,{text:"Select the field to search over."})),Fe(Me.call(null,S,{text:"Select the embedding to use."}))],K=!0)},p(D,k){const P={};k[0]&264&&(P.disabled=D[3]||D[8]),k[0]&264&&(P.icon=D[3]?Ct:D[8]?Ft:St),t.$set(P),(!F||k[0]&256)&&Se(l,"compute-embedding-indexing",D[8]);const ee={};k[0]&32&&(ee.items=D[5]),k[0]&128&&(ee.placeholder=D[7]),k[0]&33|k[1]&5242880&&(ee.$$scope={dirty:k,ctx:D}),!d&&k[0]&1&&(d=!0,ee.value=D[0],Ue(()=>d=!1)),c.$set(ee),k[0]&512&&be(g,g=D[9])?(le(),v(M,1,1,X),ne(),M=Il(D),M.c(),h(M,1),M.m(_,null)):M.p(D,k);const x={};k[0]&2&&(x.selected=D[1]||""),k[0]&2&&(x.name=D[1]||""),k[0]&16|k[1]&4194304&&(x.$$scope={dirty:k,ctx:D}),T.$set(x)},i(D){F||(h(t.$$.fragment,D),h(c.$$.fragment,D),h(M),h(T.$$.fragment,D),F=!0)},o(D){v(t.$$.fragment,D),v(c.$$.fragment,D),v(M),v(T.$$.fragment,D),F=!1},d(D){D&&m(e),B(t),s[38](null),B(c),M.d(D),B(T),K=!1,We(C)}}}const Ii=(s,e)=>s.text.toLowerCase().includes(e.toLowerCase())||s.id==="new-concept";function Vi(s,e,l){let t,n,o,r,i,a,f,c,d,u,_,g,b,w,S,T,F,K,C,L,N,M,D=X,k=()=>(D(),D=Ce(t,oe=>l(34,M=oe)),t),P;s.$$.on_destroy.push(()=>D());const ee=Ae();ge(s,ee,oe=>l(33,N=oe));const x=Qe();ge(s,x,oe=>l(32,C=oe));const J=Fn();ge(s,J,oe=>l(35,P=oe));const z=wn();ge(s,z,oe=>l(42,T=oe));const j=$n();ge(s,j,oe=>l(4,L=oe));const q=(oe,Ne)=>`${Ee(oe||"")}_${Ne}`;let H={};const Y=or();ge(s,Y,oe=>l(31,K=oe));const de=It();ge(s,de,oe=>l(30,F=oe));let he=[],re="",De;const ue=oe=>{l(1,f=oe.target.value),ee.setSearchEmbedding(oe.target.value)},se=()=>{f!=null&&(l(22,H[q(r,f)]=!0,H),T.mutate([n,o,{leaf_path:Et(r||[]),signal:{signal_name:f}}]))};let ae;const me=(oe,Ne)=>{r==null||f==null||(ee.addSearch({path:r,type:"concept",concept_namespace:oe,concept_name:Ne,embedding:f}),ae.clear())},W=oe=>{if(!(r==null||f==null)){if(oe.detail.selectedId==="new-concept"){re===De.id&&l(0,re="");const Ne=re.split("/",2);let qe="",Be="";Ne.length===2?[qe,Be]=Ne:[Be]=Ne,Ze({command:Ge.CreateConcept,namespace:qe,conceptName:Be,dataset:{namespace:n,name:o},path:r,onCreate:xe=>me(xe.detail.namespace,xe.detail.name)}),ae.clear();return}else if(oe.detail.selectedId==="keyword-search"){if(re=="")return;ee.addSearch({path:r,type:"keyword",query:re}),ae.clear();return}else if(oe.detail.selectedId=="semantic-search"){if(re=="")return;ee.addSearch({path:r,type:"semantic",query:re,embedding:f}),ae.clear();return}me(oe.detail.selectedId.namespace,oe.detail.selectedId.name)}},te=oe=>{ee.setSearchPath(oe.target.value)},ce=()=>{se()},He=(oe,Ne)=>Ne.id===oe.id;function Je(oe){Pe[oe?"unshift":"push"](()=>{ae=oe,l(6,ae)})}function _e(oe){re=oe,l(0,re)}return s.$$.update=()=>{var oe,Ne;s.$$.dirty[1]&4&&k(l(10,t=ft(N.namespace,N.datasetName))),s.$$.dirty[1]&4&&(n=N.namespace),s.$$.dirty[1]&4&&(o=N.datasetName),s.$$.dirty[1]&6&&l(2,r=In(N,C)),s.$$.dirty[0]&4|s.$$.dirty[1]&4&&l(24,i=Vt(N,r)),s.$$.dirty[1]&2&&l(9,a=(C.visibleFields||[]).filter(qe=>qe.dtype==="string").map(qe=>Ee(qe.path))),s.$$.dirty[0]&20|s.$$.dirty[1]&30&&l(1,f=Ar(P,M.data,N,C,r,(L.data||[]).map(qe=>qe.name))),s.$$.dirty[0]&4|s.$$.dirty[1]&2&&l(29,c=Vn(C,r)),s.$$.dirty[0]&536870914&&l(3,d=c!=null&&!!c.includes(f||"")),s.$$.dirty[0]&4194318&&l(8,u=!d&&H[q(r,f)]),s.$$.dirty[0]&8&&l(7,_=d?"Search by concept or keyword.":'Search by keyword. Click "compute embedding" to search by concept.'),s.$$.dirty[0]&1073741824&&l(28,g=(Ne=(oe=F.data)==null?void 0:oe.user)==null?void 0:Ne.id),s.$$.dirty[0]&268435456|s.$$.dirty[1]&1&&l(25,b=Br(K.data||[],g)),s.$$.dirty[0]&9&&l(23,De={id:"new-concept",text:re,disabled:!d}),s.$$.dirty[0]&1&&l(27,w={id:"keyword-search",text:re}),s.$$.dirty[0]&9&&l(26,S={id:"semantic-search",text:re,disabled:!d}),s.$$.dirty[0]&1333788683|s.$$.dirty[1]&1&&l(5,he=K!=null&&K.data?[De,...re!=""?[w]:[],...re!=""&&f?[S]:[],...b.flatMap(qe=>qe.concepts.map(Be=>({id:{namespace:Be.namespace,name:Be.name},text:Or(Be.namespace,Be.name,F.data),description:Be.description,disabled:!d||i.some(xe=>xe.type==="concept"&&xe.concept_namespace===Be.namespace&&xe.concept_name===Be.name)})))]:[])},[re,f,r,d,L,he,ae,_,u,a,t,ee,x,J,z,j,Y,de,ue,se,W,te,H,De,i,b,S,w,g,c,F,K,C,N,M,P,ce,He,Je,_e]}class Ni extends $e{constructor(e){super(),ke(this,e,Vi,Di,be,{},null,[-1,-1])}}function Ti(s){let e,l;return e=new rt({props:{$$slots:{default:[Fi]},$$scope:{ctx:s}}}),e.$on("click",s[5]),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,n){const o={};n&512&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Ci(s){let e,l;return{c(){e=E("span"),l=Z("Invalid query"),this.h()},l(t){e=y(t,"SPAN",{class:!0});var n=$(e);l=G(n,"Invalid query"),n.forEach(m),this.h()},h(){I(e,"class","text-red-500")},m(t,n){V(t,e,n),p(e,l)},p:X,i:X,o:X,d(t){t&&m(e)}}}function Fi(s){let e;return{c(){e=Z("Apply")},l(l){e=G(l,"Apply")},m(l,t){V(l,e,t)},d(l){l&&m(e)}}}function Mi(s){let e,l,t,n,o,r,i,a,f,c,d;const u=[Ci,Ti],_=[];function g(b,w){return b[0]?b[3]?1:-1:0}return~(r=g(s))&&(i=_[r]=u[r](s)),{c(){e=E("pre"),l=Z(""),t=Z(s[2]),n=Z(` +`),o=U(),i&&i.c(),a=ie(),this.h()},l(b){e=y(b,"PRE",{class:!0,contenteditable:!0});var w=$(e);l=G(w,""),t=G(w,s[2]),n=G(w,` +`),w.forEach(m),o=Q(b),i&&i.l(b),a=ie(),this.h()},h(){I(e,"class","whitespace-pre bg-gray-50 p-4 font-mono"),I(e,"contenteditable",""),s[1]===void 0&&bt(()=>s[8].call(e)),Se(e,"outline-red-500",!s[0])},m(b,w){V(b,e,w),p(e,l),p(e,t),p(e,n),s[1]!==void 0&&(e.innerText=s[1]),V(b,o,w),~r&&_[r].m(b,w),V(b,a,w),f=!0,c||(d=Re(e,"input",s[8]),c=!0)},p(b,[w]){(!f||w&4)&&Zn(t,b[2]),w&2&&b[1]!==e.innerText&&(e.innerText=b[1]),(!f||w&1)&&Se(e,"outline-red-500",!b[0]);let S=r;r=g(b),r===S?~r&&_[r].p(b,w):(i&&(le(),v(_[S],1,1,()=>{_[S]=null}),ne()),~r?(i=_[r],i?i.p(b,w):(i=_[r]=u[r](b),i.c()),h(i,1),i.m(a.parentNode,a)):i=null)},i(b){f||(h(i),f=!0)},o(b){v(i),f=!1},d(b){b&&m(e),b&&m(o),~r&&_[r].d(b),b&&m(a),c=!1,d()}}}function zi(s,e,l){let t,n,o,r,i;const a=Ae();ge(s,a,u=>l(7,i=u));let f=!0;function c(){dt(a,i.query=JSON.parse(o),i)}function d(){o=this.innerText,l(1,o),l(2,n),l(6,t),l(7,i)}return s.$$.update=()=>{if(s.$$.dirty&128&&l(6,t=i.query),s.$$.dirty&64&&l(2,n=t?JSON.stringify(t,null,2):""),s.$$.dirty&4&&l(1,o=n),s.$$.dirty&2)try{JSON.parse(o),l(0,f=!0)}catch{l(0,f=!1)}s.$$.dirty&67&&l(3,r=f&&!fr(JSON.parse(o),t))},[f,o,n,r,a,c,t,i,d]}class Pi extends $e{constructor(e){super(),ke(this,e,zi,Mi,be,{})}}function Nl(s){let e,l;return e=new Wn({props:{light:!0,flipped:!0,$$slots:{default:[Ri]},$$scope:{ctx:s}}}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,n){const o={};n&1073742079&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Tl(s){let e,l;return e=new nt({props:{text:"Sort by"}}),e.$on("click",s[20]),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Cl(s){let e,l;return e=new nt({props:{text:"Filter"}}),e.$on("click",s[21]),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Fl(s){let e,l,t,n,o,r;return l=new nt({props:{disabled:!s[7],text:"Compute embedding"}}),l.$on("click",s[22]),{c(){e=E("div"),R(l.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=$(e);O(l.$$.fragment,a),a.forEach(m),this.h()},h(){I(e,"class","w-full")},m(i,a){V(i,e,a),A(l,e,null),n=!0,o||(r=Fe(t=Me.call(null,e,{text:s[7]?"":"User does not have access to compute embeddings over this dataset."})),o=!0)},p(i,a){const f={};a&128&&(f.disabled=!i[7]),l.$set(f),t&&Le(t.update)&&a&128&&t.update.call(null,{text:i[7]?"":"User does not have access to compute embeddings over this dataset."})},i(i){n||(h(l.$$.fragment,i),n=!0)},o(i){v(l.$$.fragment,i),n=!1},d(i){i&&m(e),B(l),o=!1,r()}}}function Ml(s){let e,l;return e=new nt({props:{text:"Preview signal"}}),e.$on("click",s[23]),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function zl(s){let e,l,t,n,o,r;return l=new nt({props:{text:"Compute signal",disabled:!s[7]}}),l.$on("click",s[24]),{c(){e=E("div"),R(l.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=$(e);O(l.$$.fragment,a),a.forEach(m),this.h()},h(){I(e,"class","w-full")},m(i,a){V(i,e,a),A(l,e,null),n=!0,o||(r=Fe(t=Me.call(null,e,{text:s[7]?"":"User does not have access to compute signals over this dataset."})),o=!0)},p(i,a){const f={};a&128&&(f.disabled=!i[7]),l.$set(f),t&&Le(t.update)&&a&128&&t.update.call(null,{text:i[7]?"":"User does not have access to compute signals over this dataset."})},i(i){n||(h(l.$$.fragment,i),n=!0)},o(i){v(l.$$.fragment,i),n=!1},d(i){i&&m(e),B(l),o=!1,r()}}}function Pl(s){let e,l,t,n,o,r;return l=new nt({props:{disabled:!s[6],text:"Delete signal"}}),l.$on("click",s[25]),{c(){e=E("div"),R(l.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=$(e);O(l.$$.fragment,a),a.forEach(m),this.h()},h(){I(e,"class","w-full")},m(i,a){V(i,e,a),A(l,e,null),n=!0,o||(r=Fe(t=Me.call(null,e,{text:s[6]?"":"User does not have access to delete signals for this dataset."})),o=!0)},p(i,a){const f={};a&64&&(f.disabled=!i[6]),l.$set(f),t&&Le(t.update)&&a&64&&t.update.call(null,{text:i[6]?"":"User does not have access to delete signals for this dataset."})},i(i){n||(h(l.$$.fragment,i),n=!0)},o(i){v(l.$$.fragment,i),n=!1},d(i){i&&m(e),B(l),o=!1,r()}}}function Ri(s){let e=_t(s[0]),l,t=$t(s[0]),n,o,r,i,a,f,c=e&&Tl(s),d=t&&Cl(s),u=!s[2]&&Fl(s),_=!s[2]&&Ml(s),g=!s[2]&&zl(s),b=s[1]&&Pl(s);return{c(){c&&c.c(),l=U(),d&&d.c(),n=U(),u&&u.c(),o=U(),_&&_.c(),r=U(),g&&g.c(),i=U(),b&&b.c(),a=ie()},l(w){c&&c.l(w),l=Q(w),d&&d.l(w),n=Q(w),u&&u.l(w),o=Q(w),_&&_.l(w),r=Q(w),g&&g.l(w),i=Q(w),b&&b.l(w),a=ie()},m(w,S){c&&c.m(w,S),V(w,l,S),d&&d.m(w,S),V(w,n,S),u&&u.m(w,S),V(w,o,S),_&&_.m(w,S),V(w,r,S),g&&g.m(w,S),V(w,i,S),b&&b.m(w,S),V(w,a,S),f=!0},p(w,S){S&1&&(e=_t(w[0])),e?c?(c.p(w,S),S&1&&h(c,1)):(c=Tl(w),c.c(),h(c,1),c.m(l.parentNode,l)):c&&(le(),v(c,1,1,()=>{c=null}),ne()),S&1&&(t=$t(w[0])),t?d?(d.p(w,S),S&1&&h(d,1)):(d=Cl(w),d.c(),h(d,1),d.m(n.parentNode,n)):d&&(le(),v(d,1,1,()=>{d=null}),ne()),w[2]?u&&(le(),v(u,1,1,()=>{u=null}),ne()):u?(u.p(w,S),S&4&&h(u,1)):(u=Fl(w),u.c(),h(u,1),u.m(o.parentNode,o)),w[2]?_&&(le(),v(_,1,1,()=>{_=null}),ne()):_?(_.p(w,S),S&4&&h(_,1)):(_=Ml(w),_.c(),h(_,1),_.m(r.parentNode,r)),w[2]?g&&(le(),v(g,1,1,()=>{g=null}),ne()):g?(g.p(w,S),S&4&&h(g,1)):(g=zl(w),g.c(),h(g,1),g.m(i.parentNode,i)),w[1]?b?(b.p(w,S),S&2&&h(b,1)):(b=Pl(w),b.c(),h(b,1),b.m(a.parentNode,a)):b&&(le(),v(b,1,1,()=>{b=null}),ne())},i(w){f||(h(c),h(d),h(u),h(_),h(g),h(b),f=!0)},o(w){v(c),v(d),v(u),v(_),v(g),v(b),f=!1},d(w){c&&c.d(w),w&&m(l),d&&d.d(w),w&&m(n),u&&u.d(w),w&&m(o),_&&_.d(w),w&&m(r),g&&g.d(w),w&&m(i),b&&b.d(w),w&&m(a)}}}function Ai(s){let e,l,t,n=Ee(s[0].path)+"",o,r,i,a,f;return{c(){e=E("p"),l=Z("Confirm deleting "),t=E("code"),o=Z(n),r=Z(" ?"),i=U(),a=E("p"),f=Z("This is a permanent action and cannot be undone."),this.h()},l(c){e=y(c,"P",{class:!0});var d=$(e);l=G(d,"Confirm deleting "),t=y(d,"CODE",{});var u=$(t);o=G(u,n),u.forEach(m),r=G(d," ?"),d.forEach(m),i=Q(c),a=y(c,"P",{class:!0});var _=$(a);f=G(_,"This is a permanent action and cannot be undone."),_.forEach(m),this.h()},h(){I(e,"class","!text-lg"),I(a,"class","mt-2")},m(c,d){V(c,e,d),p(e,l),p(e,t),p(t,o),p(e,r),V(c,i,d),V(c,a,d),p(a,f)},p(c,d){d&1&&n!==(n=Ee(c[0].path)+"")&&fe(o,n)},d(c){c&&m(e),c&&m(i),c&&m(a)}}}function Bi(s){let e,l,t,n,o=s[8]&&Nl(s);function r(a){s[26](a)}let i={danger:!0,modalHeading:"Delete signal",primaryButtonText:"Delete",primaryButtonIcon:s[9].isLoading?Mt:void 0,secondaryButtonText:"Cancel",$$slots:{default:[Ai]},$$scope:{ctx:s}};return s[3]!==void 0&&(i.open=s[3]),l=new Nt({props:i}),Pe.push(()=>Ye(l,"open",r)),l.$on("click:button--secondary",s[27]),l.$on("open",s[28]),l.$on("close",s[29]),l.$on("submit",s[14]),{c(){o&&o.c(),e=U(),R(l.$$.fragment)},l(a){o&&o.l(a),e=Q(a),O(l.$$.fragment,a)},m(a,f){o&&o.m(a,f),V(a,e,f),A(l,a,f),n=!0},p(a,[f]){a[8]?o?(o.p(a,f),f&256&&h(o,1)):(o=Nl(a),o.c(),h(o,1),o.m(e.parentNode,e)):o&&(le(),v(o,1,1,()=>{o=null}),ne());const c={};f&512&&(c.primaryButtonIcon=a[9].isLoading?Mt:void 0),f&1073741825&&(c.$$scope={dirty:f,ctx:a}),!t&&f&8&&(t=!0,c.open=a[3],Ue(()=>t=!1)),l.$set(c)},i(a){n||(h(o),h(l.$$.fragment,a),n=!0)},o(a){v(o),v(l.$$.fragment,a),n=!1},d(a){o&&o.d(a),a&&m(e),B(l,a)}}}function Oi(s,e,l){let t,n,o,r,i,a,f,c,d,u,_,g,{field:b}=e,{schema:w}=e,S=!1;const T=Ae();ge(s,T,q=>l(19,g=q));const F=Qe();ge(s,F,q=>l(18,_=q));const K=cr();ge(s,K,q=>l(9,d=q));const C=It();ge(s,C,q=>l(17,u=q));function L(){d.mutate([t,n,{signal_path:b.path}],{onSuccess:()=>{l(3,S=!1),T.deleteSignal(b.path)}})}const N=()=>T.addSortBy(b.path),M=()=>Ze({command:Ge.EditFilter,namespace:t,datasetName:n,path:b.path}),D=()=>Ze({command:Ge.ComputeEmbedding,namespace:t,datasetName:n,path:b==null?void 0:b.path}),k=()=>Ze({command:Ge.PreviewConcept,namespace:t,datasetName:n,path:b==null?void 0:b.path}),P=()=>Ze({command:Ge.ComputeSignal,namespace:t,datasetName:n,path:b==null?void 0:b.path}),ee=()=>l(3,S=!0);function x(q){S=q,l(3,S)}const J=()=>l(3,S=!1);function z(q){ut.call(this,s,q)}function j(q){ut.call(this,s,q)}return s.$$set=q=>{"field"in q&&l(0,b=q.field),"schema"in q&&l(15,w=q.schema)},s.$$.update=()=>{var q,H,Y;s.$$.dirty&524288&&l(5,t=g.namespace),s.$$.dirty&524288&&l(4,n=g.datasetName),s.$$.dirty&32769&&l(2,o=tt(b,w)),s.$$.dirty&1&&l(1,r=ht(b)),s.$$.dirty&262145&&l(16,i=Nn(((q=_.selectRowsSchema)==null?void 0:q.data)||null,b.path)),s.$$.dirty&65543&&l(8,a=(_t(b)||$t(b)||!o||r)&&!i),s.$$.dirty&131072&&l(7,f=(H=u.data)==null?void 0:H.access.dataset.compute_signals),s.$$.dirty&131072&&l(6,c=(Y=u.data)==null?void 0:Y.access.dataset.delete_signals)},[b,r,o,S,n,t,c,f,a,d,T,F,K,C,L,w,i,u,_,g,N,M,D,k,P,ee,x,J,z,j]}class Hi extends $e{constructor(e){super(),ke(this,e,Oi,Bi,be,{field:0,schema:15})}}function Rl(s,e,l){const t=s.slice();t[7]=e[l][0],t[8]=e[l][1];const n=t[2](t[7]);t[9]=n;const o=`${t[8]/t[1]*100}%`;t[10]=o;const r=ye(t[8]);return t[11]=r,t}function Al(s){let e,l,t=s[9]+"",n,o,r,i,a,f=s[11]+"",c,d,u,_,g;function b(){return s[6](s[7])}return{c(){e=E("button"),l=E("div"),n=Z(t),r=U(),i=E("div"),a=E("div"),c=Z(f),u=U(),this.h()},l(w){e=y(w,"BUTTON",{class:!0});var S=$(e);l=y(S,"DIV",{title:!0,class:!0});var T=$(l);n=G(T,t),T.forEach(m),r=Q(S),i=y(S,"DIV",{class:!0});var F=$(i);a=y(F,"DIV",{title:!0,class:!0});var K=$(a);c=G(K,f),K.forEach(m),F.forEach(m),u=Q(S),S.forEach(m),this.h()},h(){I(l,"title",o=s[9]),I(l,"class","w-48 flex-none truncate px-2"),I(a,"title",d=s[11]),I(a,"class","histogram-bar my-px bg-indigo-200 pl-2 text-xs leading-5"),it(a,"width",s[10]),I(i,"class","w-36 border-l border-gray-300 pl-2"),I(e,"class","flex items-center p-0 text-left text-xs text-black hover:bg-gray-200")},m(w,S){V(w,e,S),p(e,l),p(l,n),p(e,r),p(e,i),p(i,a),p(a,c),p(e,u),_||(g=Re(e,"click",b),_=!0)},p(w,S){s=w,S&1&&t!==(t=s[9]+"")&&fe(n,t),S&1&&o!==(o=s[9])&&I(l,"title",o),S&1&&f!==(f=s[11]+"")&&fe(c,f),S&1&&d!==(d=s[11])&&I(a,"title",d),S&3&&it(a,"width",s[10])},d(w){w&&m(e),_=!1,g()}}}function qi(s){let e,l=s[0],t=[];for(let n=0;na("row-click",{value:c});return s.$$set=c=>{"field"in c&&l(4,n=c.field),"counts"in c&&l(0,o=c.counts),"bins"in c&&l(5,r=c.bins)},s.$$.update=()=>{s.$$.dirty&1&&l(1,t=Math.max(...o.map(([c,d])=>d)))},[o,t,i,a,n,r,f]}class ji extends $e{constructor(e){super(),ke(this,e,Li,qi,be,{field:4,counts:0,bins:5})}}function Yi(s){let e,l,t,n,o,r,i,a,f,c,d,u=ye(s[4].total_count)+"",_,g,b,w,S,T,F,K,C,L,N,M,D=ye(s[4].approx_count_distinct)+"",k,P,ee,x,J,z;r=new at({props:{class:"inline"}}),T=new at({props:{class:"inline"}});let j=s[4].avg_text_length&&Bl(s),q=s[4].min_val&&s[4].max_val&&Ol(s);return{c(){e=E("table"),l=E("tbody"),t=E("tr"),n=E("td"),o=E("span"),R(r.$$.fragment),i=U(),a=E("span"),f=Z("Total count"),c=U(),d=E("td"),_=Z(u),g=U(),b=E("tr"),w=E("td"),S=E("span"),R(T.$$.fragment),F=U(),K=E("span"),C=Z("Unique values"),L=U(),N=E("td"),M=Z("~"),k=Z(D),P=U(),j&&j.c(),ee=U(),q&&q.c(),this.h()},l(H){e=y(H,"TABLE",{class:!0});var Y=$(e);l=y(Y,"TBODY",{});var de=$(l);t=y(de,"TR",{});var he=$(t);n=y(he,"TD",{class:!0});var re=$(n);o=y(re,"SPAN",{});var De=$(o);O(r.$$.fragment,De),De.forEach(m),i=Q(re),a=y(re,"SPAN",{});var ue=$(a);f=G(ue,"Total count"),ue.forEach(m),re.forEach(m),c=Q(he),d=y(he,"TD",{class:!0});var se=$(d);_=G(se,u),se.forEach(m),he.forEach(m),g=Q(de),b=y(de,"TR",{});var ae=$(b);w=y(ae,"TD",{class:!0});var me=$(w);S=y(me,"SPAN",{});var W=$(S);O(T.$$.fragment,W),W.forEach(m),F=Q(me),K=y(me,"SPAN",{});var te=$(K);C=G(te,"Unique values"),te.forEach(m),me.forEach(m),L=Q(ae),N=y(ae,"TD",{class:!0});var ce=$(N);M=G(ce,"~"),k=G(ce,D),ce.forEach(m),ae.forEach(m),P=Q(de),j&&j.l(de),ee=Q(de),q&&q.l(de),de.forEach(m),Y.forEach(m),this.h()},h(){I(n,"class","svelte-1tctrjz"),I(d,"class","svelte-1tctrjz"),I(w,"class","svelte-1tctrjz"),I(N,"class","svelte-1tctrjz"),I(e,"class","stats-table w-full svelte-1tctrjz")},m(H,Y){V(H,e,Y),p(e,l),p(l,t),p(t,n),p(n,o),A(r,o,null),p(n,i),p(n,a),p(a,f),p(t,c),p(t,d),p(d,_),p(l,g),p(l,b),p(b,w),p(w,S),A(T,S,null),p(w,F),p(w,K),p(K,C),p(b,L),p(b,N),p(N,M),p(N,k),p(l,P),j&&j.m(l,null),p(l,ee),q&&q.m(l,null),x=!0,J||(z=[Fe(Me.call(null,o,{text:"Total number of rows where the value is defined."})),Fe(Me.call(null,S,{text:"An approximation of the total number of unique values."}))],J=!0)},p(H,Y){(!x||Y&16)&&u!==(u=ye(H[4].total_count)+"")&&fe(_,u),(!x||Y&16)&&D!==(D=ye(H[4].approx_count_distinct)+"")&&fe(k,D),H[4].avg_text_length?j?(j.p(H,Y),Y&16&&h(j,1)):(j=Bl(H),j.c(),h(j,1),j.m(l,ee)):j&&(le(),v(j,1,1,()=>{j=null}),ne()),H[4].min_val&&H[4].max_val?q?(q.p(H,Y),Y&16&&h(q,1)):(q=Ol(H),q.c(),h(q,1),q.m(l,null)):q&&(le(),v(q,1,1,()=>{q=null}),ne())},i(H){x||(h(r.$$.fragment,H),h(T.$$.fragment,H),h(j),h(q),x=!0)},o(H){v(r.$$.fragment,H),v(T.$$.fragment,H),v(j),v(q),x=!1},d(H){H&&m(e),B(r),B(T),j&&j.d(),q&&q.d(),J=!1,We(z)}}}function Ui(s){let e,l;return e=new je({props:{paragraph:!0,width:"50%"}}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Qi(s){let e,l,t=s[2].error.message+"",n;return{c(){e=E("p"),l=Z("Error: "),n=Z(t)},l(o){e=y(o,"P",{});var r=$(e);l=G(r,"Error: "),n=G(r,t),r.forEach(m)},m(o,r){V(o,e,r),p(e,l),p(e,n)},p(o,r){r&4&&t!==(t=o[2].error.message+"")&&fe(n,t)},i:X,o:X,d(o){o&&m(e)}}}function Bl(s){let e,l,t,n,o,r,i,a,f,c=ye(s[4].avg_text_length)+"",d,u,_,g;return n=new at({props:{class:"inline"}}),{c(){e=E("tr"),l=E("td"),t=E("span"),R(n.$$.fragment),o=U(),r=E("span"),i=Z("Average text length"),a=U(),f=E("td"),d=Z(c),this.h()},l(b){e=y(b,"TR",{});var w=$(e);l=y(w,"TD",{class:!0});var S=$(l);t=y(S,"SPAN",{});var T=$(t);O(n.$$.fragment,T),T.forEach(m),o=Q(S),r=y(S,"SPAN",{});var F=$(r);i=G(F,"Average text length"),F.forEach(m),S.forEach(m),a=Q(w),f=y(w,"TD",{class:!0});var K=$(f);d=G(K,c),K.forEach(m),w.forEach(m),this.h()},h(){I(l,"class","svelte-1tctrjz"),I(f,"class","svelte-1tctrjz")},m(b,w){V(b,e,w),p(e,l),p(l,t),A(n,t,null),p(l,o),p(l,r),p(r,i),p(e,a),p(e,f),p(f,d),u=!0,_||(g=Fe(Me.call(null,t,{text:"The average length of the text in characters."})),_=!0)},p(b,w){(!u||w&16)&&c!==(c=ye(b[4].avg_text_length)+"")&&fe(d,c)},i(b){u||(h(n.$$.fragment,b),u=!0)},o(b){v(n.$$.fragment,b),u=!1},d(b){b&&m(e),B(n),_=!1,g()}}}function Ol(s){let e,l,t,n,o,r,i,a,f,c=ye(s[4].min_val)+"",d,u,_=ye(s[4].max_val)+"",g,b,w,S;return n=new at({props:{class:"inline"}}),{c(){e=E("tr"),l=E("td"),t=E("span"),R(n.$$.fragment),o=U(),r=E("span"),i=Z("Range"),a=U(),f=E("td"),d=Z(c),u=Z(" .. "),g=Z(_),this.h()},l(T){e=y(T,"TR",{});var F=$(e);l=y(F,"TD",{class:!0});var K=$(l);t=y(K,"SPAN",{});var C=$(t);O(n.$$.fragment,C),C.forEach(m),o=Q(K),r=y(K,"SPAN",{});var L=$(r);i=G(L,"Range"),L.forEach(m),K.forEach(m),a=Q(F),f=y(F,"TD",{class:!0});var N=$(f);d=G(N,c),u=G(N," .. "),g=G(N,_),N.forEach(m),F.forEach(m),this.h()},h(){I(l,"class","svelte-1tctrjz"),I(f,"class","svelte-1tctrjz")},m(T,F){V(T,e,F),p(e,l),p(l,t),A(n,t,null),p(l,o),p(l,r),p(r,i),p(e,a),p(e,f),p(f,d),p(f,u),p(f,g),b=!0,w||(S=Fe(Me.call(null,t,{text:"The minimum and maximum value across the dataset"})),w=!0)},p(T,F){(!b||F&16)&&c!==(c=ye(T[4].min_val)+"")&&fe(d,c),(!b||F&16)&&_!==(_=ye(T[4].max_val)+"")&&fe(g,_)},i(T){b||(h(n.$$.fragment,T),b=!0)},o(T){v(n.$$.fragment,T),b=!1},d(T){T&&m(e),B(n),w=!1,S()}}}function Ji(s){let e,l,t;return l=new ji({props:{counts:s[5],bins:s[3],field:s[0]}}),l.$on("row-click",s[13]),{c(){e=E("div"),R(l.$$.fragment),this.h()},l(n){e=y(n,"DIV",{class:!0});var o=$(e);O(l.$$.fragment,o),o.forEach(m),this.h()},h(){I(e,"class","mt-4")},m(n,o){V(n,e,o),A(l,e,null),t=!0},p(n,o){const r={};o&32&&(r.counts=n[5]),o&8&&(r.bins=n[3]),o&1&&(r.field=n[0]),l.$set(r)},i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){v(l.$$.fragment,n),t=!1},d(n){n&&m(e),B(l)}}}function Ki(s){let e,l;return e=new je({props:{paragraph:!0,width:"50%"}}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Zi(s){let e,l,t=s[1].error.message+"",n;return{c(){e=E("p"),l=Z("Error: "),n=Z(t)},l(o){e=y(o,"P",{});var r=$(e);l=G(r,"Error: "),n=G(r,t),r.forEach(m)},m(o,r){V(o,e,r),p(e,l),p(e,n)},p(o,r){r&2&&t!==(t=o[1].error.message+"")&&fe(n,t)},i:X,o:X,d(o){o&&m(e)}}}function Gi(s){let e,l,t,n,o,r,i;const a=[Qi,Ui,Yi],f=[];function c(g,b){return g[2].error?0:g[4]==null?1:2}l=c(s),t=f[l]=a[l](s);const d=[Zi,Ki,Ji],u=[];function _(g,b){return g[1].error?0:g[5]==null?1:g[5].length>0?2:-1}return~(o=_(s))&&(r=u[o]=d[o](s)),{c(){e=E("div"),t.c(),n=U(),r&&r.c(),this.h()},l(g){e=y(g,"DIV",{class:!0});var b=$(e);t.l(b),n=Q(b),r&&r.l(b),b.forEach(m),this.h()},h(){I(e,"class","p-4")},m(g,b){V(g,e,b),f[l].m(e,null),p(e,n),~o&&u[o].m(e,null),i=!0},p(g,[b]){let w=l;l=c(g),l===w?f[l].p(g,b):(le(),v(f[w],1,1,()=>{f[w]=null}),ne(),t=f[l],t?t.p(g,b):(t=f[l]=a[l](g),t.c()),h(t,1),t.m(e,n));let S=o;o=_(g),o===S?~o&&u[o].p(g,b):(r&&(le(),v(u[S],1,1,()=>{u[S]=null}),ne()),~o?(r=u[o],r?r.p(g,b):(r=u[o]=d[o](g),r.c()),h(r,1),r.m(e,null)):r=null)},i(g){i||(h(t),h(r),i=!0)},o(g){v(t),v(r),i=!1},d(g){g&&m(e),f[l].d(),~o&&u[o].d()}}}function Wi(s,e,l){let t,n,o,r,i,a=X,f=()=>(a(),a=Ce(n,C=>l(1,i=C)),n),c,d=X,u=()=>(d(),d=Ce(t,C=>l(2,c=C)),t),_;s.$$.on_destroy.push(()=>a()),s.$$.on_destroy.push(()=>d());let{field:g}=e;const b=Ae();ge(s,b,C=>l(12,_=C));let w,S,T=null;function F(C){if(C==null)return;if(T!=null){const[N,M]=T[C.toString()];if(N!=null){const D={path:g.path,op:"greater_equal",value:N};b.addFilter(D)}if(M!=null){const D={path:g.path,op:"less",value:M};b.addFilter(D)}return}const L={path:g.path,op:"equals",value:C};b.addFilter(L)}const K=C=>F(C.detail.value);return s.$$set=C=>{"field"in C&&l(0,g=C.field)},s.$$.update=()=>{var C;if(s.$$.dirty&4097&&u(l(7,t=ur(_.namespace,_.datasetName,{leaf_path:g.path}))),s.$$.dirty&1&&l(10,w=dr(g.dtype)&&!g.categorical?"value":"count"),s.$$.dirty&1024&&l(11,S=w==="value"?"ASC":"DESC"),s.$$.dirty&7169&&f(l(6,n=mr(_.namespace,_.datasetName,{leaf_path:g.path,filters:_.query.filters,sort_by:w,sort_order:S}))),s.$$.dirty&2&&l(5,o=i.data!=null?i.data.counts:null),s.$$.dirty&4&&l(4,r=c.data!=null?c.data:null),s.$$.dirty&2)if(((C=i.data)==null?void 0:C.bins)!=null){l(3,T={});for(const[L,N,M]of Object.values(i.data.bins))l(3,T[L]=[N,M],T)}else l(3,T=null)},[g,i,c,T,r,o,n,t,b,F,w,S,_,K]}class Xi extends $e{constructor(e){super(),ke(this,e,Wi,Gi,be,{field:0})}}function Hl(s,e,l){const t=s.slice();return t[38]=e[l],t}function ql(s,e,l){const t=s.slice();return t[41]=e[l],t}function Ll(s,e,l){const t=s.slice();return t[44]=e[l],t}function jl(s,e,l){const t=s.slice();return t[47]=e[l],t}function xi(s){let e,l="{}",t;return{c(){e=E("span"),t=Z(l),this.h()},l(n){e=y(n,"SPAN",{class:!0});var o=$(e);t=G(o,l),o.forEach(m),this.h()},h(){I(e,"class","font-mono")},m(n,o){V(n,e,o),p(e,t)},p:X,i:X,o:X,d(n){n&&m(e)}}}function ea(s){let e,l,t,n;var o=lt[s[1].repeated_field.dtype];function r(i){return{props:{title:i[1].dtype}}}return o&&(l=et(o,r(s))),{c(){e=E("div"),l&&R(l.$$.fragment),t=Z("[]"),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=$(e);l&&O(l.$$.fragment,a),t=G(a,"[]"),a.forEach(m),this.h()},h(){I(e,"class","flex")},m(i,a){V(i,e,a),l&&A(l,e,null),p(e,t),n=!0},p(i,a){const f={};if(a[0]&2&&(f.title=i[1].dtype),a[0]&2&&o!==(o=lt[i[1].repeated_field.dtype])){if(l){le();const c=l;v(c.$$.fragment,1,0,()=>{B(c,1)}),ne()}o?(l=et(o,r(i)),R(l.$$.fragment),h(l.$$.fragment,1),A(l,e,t)):l=null}else o&&l.$set(f)},i(i){n||(l&&h(l.$$.fragment,i),n=!0)},o(i){l&&v(l.$$.fragment,i),n=!1},d(i){i&&m(e),l&&B(l)}}}function ta(s){let e,l,t;var n=lt[s[1].dtype];function o(r){return{props:{title:r[1].dtype}}}return n&&(e=et(n,o(s))),{c(){e&&R(e.$$.fragment),l=ie()},l(r){e&&O(e.$$.fragment,r),l=ie()},m(r,i){e&&A(e,r,i),V(r,l,i),t=!0},p(r,i){const a={};if(i[0]&2&&(a.title=r[1].dtype),i[0]&2&&n!==(n=lt[r[1].dtype])){if(e){le();const f=e;v(f.$$.fragment,1,0,()=>{B(f,1)}),ne()}n?(e=et(n,o(r)),R(e.$$.fragment),h(e.$$.fragment,1),A(e,l.parentNode,l)):e=null}else n&&e.$set(a)},i(r){t||(e&&h(e.$$.fragment,r),t=!0)},o(r){e&&v(e.$$.fragment,r),t=!1},d(r){r&&m(l),e&&B(e,r)}}}function Yl(s){let e,l;return e=new Tt({props:{interactive:!0,type:"green",$$slots:{default:[ra]},$$scope:{ctx:s}}}),e.$on("click",s[32]),e.$on("remove",s[33]),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,n){const o={};n[0]&16384|n[1]&524288&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function la(s){let e,l;return e=new Pn({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function na(s){let e,l;return e=new zn({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function ra(s){let e,l,t,n,o,r,i,a;const f=[na,la],c=[];function d(u,_){return u[14]=="ASC"?0:1}return r=d(s),i=c[r]=f[r](s),{c(){e=E("div"),l=E("div"),t=Z("Sorted"),n=U(),o=E("span"),i.c(),this.h()},l(u){e=y(u,"DIV",{class:!0});var _=$(e);l=y(_,"DIV",{class:!0});var g=$(l);t=G(g,"Sorted"),g.forEach(m),n=Q(_),o=y(_,"SPAN",{});var b=$(o);i.l(b),b.forEach(m),_.forEach(m),this.h()},h(){I(l,"class","mr-1"),I(e,"class","flex flex-row")},m(u,_){V(u,e,_),p(e,l),p(l,t),p(e,n),p(e,o),c[r].m(o,null),a=!0},p(u,_){let g=r;r=d(u),r!==g&&(le(),v(c[g],1,1,()=>{c[g]=null}),ne(),i=c[r],i||(i=c[r]=f[r](u),i.c()),h(i,1),i.m(o,null))},i(u){a||(h(i),a=!0)},o(u){v(i),a=!1},d(u){u&&m(e),c[r].d()}}}function Ul(s){let e,l,t=s[7],n=[];for(let r=0;rv(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;r{n&&(t||(t=mt(e,gt,{},!0)),t.run(1))}),n=!0)},o(o){v(l.$$.fragment,o),o&&(t||(t=mt(e,gt,{},!1)),t.run(0)),n=!1},d(o){o&&m(e),B(l),o&&t&&t.end()}}}function Xl(s){let e,l,t=s[18],n=[];for(let r=0;rv(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;rv(Y[W],1,1,()=>{Y[W]=null});let he=s[16],re=[];for(let W=0;Wv(re[W],1,1,()=>{re[W]=null});let ue=s[4]&&s[21]&&Zl(s),se=s[10]&&Gl(s);C=new Hi({props:{field:s[1],schema:s[0]}});let ae=s[20]&&Wl(s),me=s[18].length&&Xl(s);return{c(){e=E("div"),l=E("div"),t=E("div"),R(n.$$.fragment),o=U(),r=E("div"),a.c(),c=U(),d=E("button"),u=Z(s[19]),g=U(),j&&j.c(),b=U(),q&&q.c(),w=U();for(let W=0;W{J[He]=null}),ne(),a=J[i],a?a.p(W,te):(a=J[i]=x[i](W),a.c()),h(a,1),a.m(r,null)),f&&Le(f.update)&&te[0]&2048&&f.update.call(null,{text:W[11]}),(!k||te[0]&32)&&Se(r,"bg-blue-200",W[5]),(!k||te[0]&524288)&&fe(u,W[19]),(!k||te[0]&1024&&_!==(_=!W[10]))&&(d.disabled=_),(!k||te[0]&1024)&&Se(d,"cursor-default",!W[10]),W[15]?j?(j.p(W,te),te[0]&32768&&h(j,1)):(j=Yl(W),j.c(),h(j,1),j.m(l,b)):j&&(le(),v(j,1,1,()=>{j=null}),ne()),W[13]?q?(q.p(W,te),te[0]&8192&&h(q,1)):(q=Ul(W),q.c(),h(q,1),q.m(l,w)):q&&(le(),v(q,1,1,()=>{q=null}),ne()),te[0]&4096){H=W[12];let _e;for(_e=0;_e{ue=null}),ne()),W[10]?se?(se.p(W,te),te[0]&1024&&h(se,1)):(se=Gl(W),se.c(),h(se,1),se.m(l,K)):se&&(le(),v(se,1,1,()=>{se=null}),ne());const Je={};te[0]&2&&(Je.field=W[1]),te[0]&1&&(Je.schema=W[0]),C.$set(Je),(!k||te[0]&32)&&Se(l,"bg-blue-50",W[5]),(!k||te[0]&16)&&Se(l,"bg-emerald-100",W[4]),(!k||te[0]&32)&&Se(l,"hover:bg-blue-100",W[5]),W[20]?ae?(ae.p(W,te),te[0]&1048576&&h(ae,1)):(ae=Wl(W),ae.c(),h(ae,1),ae.m(e,N)):ae&&(le(),v(ae,1,1,()=>{ae=null}),ne()),W[18].length?me?(me.p(W,te),te[0]&262144&&h(me,1)):(me=Xl(W),me.c(),h(me,1),me.m(M,null)):me&&(le(),v(me,1,1,()=>{me=null}),ne()),(!k||te[0]&32)&&Se(e,"border-b",!W[5])},i(W){if(!k){h(n.$$.fragment,W),h(a),h(j),h(q);for(let te=0;te{k&&(D||(D=mt(M,gt,{},!0)),D.run(1))}),k=!0}},o(W){v(n.$$.fragment,W),v(a),v(j),v(q),Y=Y.filter(Boolean);for(let te=0;tel(22,D=se));const z=Ae();ge(s,z,se=>l(9,N=se));const j=Qe();ge(s,j,se=>l(29,M=se));function q(se){return se!=null&&se.repeated_field?q(se.repeated_field):se!=null&&se.fields?[...Object.values(se.fields).filter(ae=>ae.path.at(-1)!==hr)].flatMap(ae=>{const me=q(ae);return me.some(W=>ht(W))?me:[ae]}).filter(ae=>{var me,W,te,ce;return!(ae.dtype==="embedding"||ae.signal!=null&&st(ae).some(He=>He.dtype==="embedding")||((me=ae.signal)==null?void 0:me.signal_name)==="sentences"||((W=ae.signal)==null?void 0:W.signal_name)==="substring_search"||((te=ae.signal)==null?void 0:te.signal_name)==="semantic_similarity"||((ce=ae.signal)==null?void 0:ce.signal_name)==="concept_labels")}):[]}const H=()=>{d?z.removeSelectedColumn(r):z.addSelectedColumn(r)},Y=()=>{L&&(i?z.removeExpandedColumn(r):z.addExpandedColumn(r))},de=()=>g==="ASC"?dt(z,N.query.sort_order="DESC",N):dt(z,N.query.sort_order="ASC",N),he=()=>z.removeSortBy(r),re=()=>P.signal&&S&&ee&&D.mutate([N.namespace,N.datasetName,{leaf_path:ee.path,signal:P.signal}]),De=()=>{var se;return P.signal&&S&&Ze({command:Ge.EditPreviewConcept,namespace:N.namespace,datasetName:N.datasetName,path:ee==null?void 0:ee.path,signalName:(se=P.signal)==null?void 0:se.signal_name,value:P.signal})},ue=()=>{i?z.removeExpandedColumn(r):z.addExpandedColumn(r)};return s.$$set=se=>{"schema"in se&&l(0,k=se.schema),"field"in se&&l(1,P=se.field),"sourceField"in se&&l(2,ee=se.sourceField),"indent"in se&&l(3,x=se.indent)},s.$$.update=()=>{var se,ae,me,W;s.$$.dirty[0]&3&&l(5,t=tt(P,k)),s.$$.dirty[0]&2&&l(21,n=ht(P)),s.$$.dirty[0]&32&&l(8,o=!t),s.$$.dirty[0]&2&&l(6,r=P.path),s.$$.dirty[0]&576&&l(20,i=N.expandedColumns[Ee(r)]||!1),s.$$.dirty[0]&64&&l(28,a=r.at(-1)===kt),s.$$.dirty[0]&268435520&&l(19,f=a?r.at(-2):r.at(-1)),s.$$.dirty[0]&2&&l(18,c=q(P)),s.$$.dirty[0]&536870976&&l(17,d=(se=M.visibleFields)==null?void 0:se.some(te=>Ke(te.path,r))),s.$$.dirty[0]&258&&l(16,u=o?st(P).filter(te=>te.signal!=null&&st(te).some(ce=>ce.dtype==="embedding")):[]),s.$$.dirty[0]&576&&l(15,_=(ae=N.query.sort_by)==null?void 0:ae.some(te=>Ke(te,r))),s.$$.dirty[0]&512&&l(14,g=N.query.sort_order),s.$$.dirty[0]&576&&l(7,b=((me=N.query.filters)==null?void 0:me.filter(te=>Ke(te.path,r)))||[]),s.$$.dirty[0]&128&&l(13,w=b.length>0),s.$$.dirty[0]&536870976&&l(4,S=Nn(((W=M.selectRowsSchema)==null?void 0:W.data)||null,r)),s.$$.dirty[0]&576&&l(12,T=Vt(N,r)),s.$$.dirty[0]&32&&l(26,F=t?". Generated by a signal":""),s.$$.dirty[0]&2&&l(27,K=P.dtype??(P.repeated_field&&P.repeated_field.dtype?`${P.repeated_field.dtype}[]`:"object")),s.$$.dirty[0]&201326592&&l(11,C=`${K}${F}`),s.$$.dirty[0]&18&&l(10,L=_t(P)&&!S)},[k,P,ee,x,S,t,r,b,o,N,L,C,T,w,g,_,u,d,c,f,i,n,D,J,z,j,F,K,a,M,H,Y,de,he,re,De,ue]}class Bn extends $e{constructor(e){super(),ke(this,e,ia,sa,be,{schema:0,field:1,sourceField:2,indent:3},null,[-1,-1])}}function en(s,e,l){const t=s.slice();return t[3]=e[l],t}function aa(s){let e,l,t,n;return e=new zt({props:{label:"Schema",class:"w-1/3"}}),t=new zt({props:{label:"Query",class:"w-1/3"}}),{c(){R(e.$$.fragment),l=U(),R(t.$$.fragment)},l(o){O(e.$$.fragment,o),l=Q(o),O(t.$$.fragment,o)},m(o,r){A(e,o,r),V(o,l,r),A(t,o,r),n=!0},p:X,i(o){n||(h(e.$$.fragment,o),h(t.$$.fragment,o),n=!0)},o(o){v(e.$$.fragment,o),v(t.$$.fragment,o),n=!1},d(o){B(e,o),o&&m(l),B(t,o)}}}function oa(s){let e=[],l=new Map,t,n,o=Object.keys(s[0].data.schema.fields);const r=i=>i[3];for(let i=0;i{r[c]=null}),ne()),~e?(l=r[e],l?l.p(a,f):(l=r[e]=o[e](a),l.c()),h(l,1),l.m(t.parentNode,t)):l=null)},i(a){n||(h(l),n=!0)},o(a){v(l),n=!1},d(a){~e&&r[e].d(a),a&&m(t)}}}function ua(s){let e,l;return e=new Pi({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function da(s){let e,l,t,n,o;return l=new Pt({props:{$$slots:{default:[ca]},$$scope:{ctx:s}}}),n=new Pt({props:{$$slots:{default:[ua]},$$scope:{ctx:s}}}),{c(){e=E("div"),R(l.$$.fragment),t=U(),R(n.$$.fragment),this.h()},l(r){e=y(r,"DIV",{class:!0,slot:!0});var i=$(e);O(l.$$.fragment,i),t=Q(i),O(n.$$.fragment,i),i.forEach(m),this.h()},h(){I(e,"class","h-full overflow-y-auto"),I(e,"slot","content")},m(r,i){V(r,e,i),A(l,e,null),p(e,t),A(n,e,null),o=!0},p(r,i){const a={};i&65&&(a.$$scope={dirty:i,ctx:r}),l.$set(a);const f={};i&64&&(f.$$scope={dirty:i,ctx:r}),n.$set(f)},i(r){o||(h(l.$$.fragment,r),h(n.$$.fragment,r),o=!0)},o(r){v(l.$$.fragment,r),v(n.$$.fragment,r),o=!1},d(r){r&&m(e),B(l),B(n)}}}function ma(s){let e,l,t;return l=new Xr({props:{class:"overflow-hidden border-b border-gray-200",$$slots:{content:[da],default:[aa]},$$scope:{ctx:s}}}),{c(){e=E("div"),R(l.$$.fragment),this.h()},l(n){e=y(n,"DIV",{class:!0});var o=$(e);O(l.$$.fragment,o),o.forEach(m),this.h()},h(){I(e,"class","schema flex h-full flex-col pt-4")},m(n,o){V(n,e,o),A(l,e,null),t=!0},p(n,[o]){const r={};o&65&&(r.$$scope={dirty:o,ctx:n}),l.$set(r)},i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){v(l.$$.fragment,n),t=!1},d(n){n&&m(e),B(l)}}}function ha(s,e,l){let t,n;const o=Qe();return ge(s,o,r=>l(2,n=r)),s.$$.update=()=>{s.$$.dirty&4&&l(0,t=n.selectRowsSchema)},[t,o,n]}class _a extends $e{constructor(e){super(),ke(this,e,ha,ma,be,{})}}function ln(s,e,l){const t=s.slice();return t[5]=e[l],t}function ga(s){let e,l="{}",t;return{c(){e=E("span"),t=Z(l),this.h()},l(n){e=y(n,"SPAN",{class:!0});var o=$(e);t=G(o,l),o.forEach(m),this.h()},h(){I(e,"class","font-mono")},m(n,o){V(n,e,o),p(e,t)},p:X,i:X,o:X,d(n){n&&m(e)}}}function pa(s){let e,l,t;var n=lt[s[5].dtype];function o(r){return{props:{title:r[5].dtype}}}return n&&(e=et(n,o(s))),{c(){e&&R(e.$$.fragment),l=ie()},l(r){e&&O(e.$$.fragment,r),l=ie()},m(r,i){e&&A(e,r,i),V(r,l,i),t=!0},p(r,i){const a={};if(i&2&&(a.title=r[5].dtype),i&2&&n!==(n=lt[r[5].dtype])){if(e){le();const f=e;v(f.$$.fragment,1,0,()=>{B(f,1)}),ne()}n?(e=et(n,o(r)),R(e.$$.fragment),h(e.$$.fragment,1),A(e,l.parentNode,l)):e=null}else n&&e.$set(a)},i(r){t||(e&&h(e.$$.fragment,r),t=!0)},o(r){e&&v(e.$$.fragment,r),t=!1},d(r){r&&m(l),e&&B(e,r)}}}function nn(s){let e;return{c(){e=Z("[]")},l(l){e=G(l,"[]")},m(l,t){V(l,e,t)},d(l){l&&m(e)}}}function rn(s){let e,l,t,n,o,r,i,a,f,c=s[5].path.indexOf(kt)>=0,d,u,_=Ee(s[5].path)+"",g,b,w;function S(...N){return s[3](s[5],...N)}function T(...N){return s[4](s[5],...N)}t=new kn({props:{labelText:"Download",hideLabel:!0,checked:s[0].find(S)!=null}}),t.$on("change",T);const F=[pa,ga],K=[];function C(N,M){return N[5].dtype?0:1}i=C(s),a=K[i]=F[i](s);let L=c&&nn();return{c(){e=E("div"),l=E("div"),R(t.$$.fragment),n=U(),o=E("div"),r=E("div"),a.c(),f=U(),L&&L.c(),d=U(),u=E("div"),g=Z(_),b=U(),this.h()},l(N){e=y(N,"DIV",{class:!0});var M=$(e);l=y(M,"DIV",{class:!0});var D=$(l);O(t.$$.fragment,D),D.forEach(m),n=Q(M),o=y(M,"DIV",{class:!0});var k=$(o);r=y(k,"DIV",{class:!0});var P=$(r);a.l(P),f=Q(P),L&&L.l(P),P.forEach(m),k.forEach(m),d=Q(M),u=y(M,"DIV",{class:!0});var ee=$(u);g=G(ee,_),ee.forEach(m),b=Q(M),M.forEach(m),this.h()},h(){I(l,"class","mr-2"),I(r,"class","inline-flex items-center rounded-md bg-blue-200 p-0.5"),I(o,"class","flex w-10"),I(u,"class","flex-grow"),I(e,"class","flex items-center")},m(N,M){V(N,e,M),p(e,l),A(t,l,null),p(e,n),p(e,o),p(o,r),K[i].m(r,null),p(r,f),L&&L.m(r,null),p(e,d),p(e,u),p(u,g),p(e,b),w=!0},p(N,M){s=N;const D={};M&3&&(D.checked=s[0].find(S)!=null),t.$set(D);let k=i;i=C(s),i===k?K[i].p(s,M):(le(),v(K[k],1,1,()=>{K[k]=null}),ne(),a=K[i],a?a.p(s,M):(a=K[i]=F[i](s),a.c()),h(a,1),a.m(r,f)),M&2&&(c=s[5].path.indexOf(kt)>=0),c?L||(L=nn(),L.c(),L.m(r,null)):L&&(L.d(1),L=null),(!w||M&2)&&_!==(_=Ee(s[5].path)+"")&&fe(g,_)},i(N){w||(h(t.$$.fragment,N),h(a),w=!0)},o(N){v(t.$$.fragment,N),v(a),w=!1},d(N){N&&m(e),B(t),K[i].d(),L&&L.d()}}}function ba(s){let e,l,t=s[1],n=[];for(let r=0;rv(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;rd!==a))}const r=(a,f)=>Ke(f.path,a.path),i=(a,f)=>o(a,f);return s.$$set=a=>{"fields"in a&&l(1,t=a.fields),"checkedFields"in a&&l(0,n=a.checkedFields)},[n,t,o,r,i]}class wt extends $e{constructor(e){super(),ke(this,e,va,ba,be,{fields:1,checkedFields:0})}}function sn(s,e,l){const t=s.slice();return t[29]=e[l],t}function wa(s){let e,l,t,n,o,r,i,a,f,c,d,u,_,g,b,w,S,T,F,K,C,L,N,M,D,k,P,ee;function x(z){s[23](z)}let J={invalid:s[8]!=s[9]};return s[8]!==void 0&&(J.value=s[8]),F=new vr({props:J}),Pe.push(()=>Ye(F,"value",x)),M=new Yr({}),{c(){e=E("div"),l=E("section"),t=E("div"),n=Z("Delete this dataset"),o=U(),r=E("div"),i=E("p"),a=Z("This action cannot be undone."),f=U(),c=E("p"),d=Z(`This will permanently delete the + `),u=E("span"),_=Z(s[9]),g=Z(` dataset and all its files. Please type + `),b=E("span"),w=Z(s[9]),S=Z(" to confirm."),T=U(),R(F.$$.fragment),C=U(),L=E("button"),N=Z(`I understand, delete this dataset + `),R(M.$$.fragment),this.h()},l(z){e=y(z,"DIV",{class:!0});var j=$(e);l=y(j,"SECTION",{class:!0});var q=$(l);t=y(q,"DIV",{class:!0});var H=$(t);n=G(H,"Delete this dataset"),H.forEach(m),o=Q(q),r=y(q,"DIV",{class:!0});var Y=$(r);i=y(Y,"P",{class:!0});var de=$(i);a=G(de,"This action cannot be undone."),de.forEach(m),f=Q(Y),c=y(Y,"P",{});var he=$(c);d=G(he,`This will permanently delete the + `),u=y(he,"SPAN",{class:!0});var re=$(u);_=G(re,s[9]),re.forEach(m),g=G(he,` dataset and all its files. Please type + `),b=y(he,"SPAN",{class:!0});var De=$(b);w=G(De,s[9]),De.forEach(m),S=G(he," to confirm."),he.forEach(m),Y.forEach(m),T=Q(q),O(F.$$.fragment,q),C=Q(q),L=y(q,"BUTTON",{class:!0});var ue=$(L);N=G(ue,`I understand, delete this dataset + `),O(M.$$.fragment,ue),ue.forEach(m),q.forEach(m),j.forEach(m),this.h()},h(){I(t,"class","text-lg text-gray-700"),I(i,"class","mb-2"),I(u,"class","font-bold"),I(b,"class","font-bold"),I(r,"class","mb-4 text-sm text-gray-500"),I(L,"class","flex cursor-pointer flex-row justify-between p-4 text-left hover:bg-gray-200"),L.disabled=D=s[8]!=s[9],Se(L,"cursor-not-allowed",s[8]!=s[9]),I(l,"class","flex flex-col gap-y-1"),I(e,"class","flex flex-col gap-y-6")},m(z,j){V(z,e,j),p(e,l),p(l,t),p(t,n),p(l,o),p(l,r),p(r,i),p(i,a),p(r,f),p(r,c),p(c,d),p(c,u),p(u,_),p(c,g),p(c,b),p(b,w),p(c,S),p(l,T),A(F,l,null),p(l,C),p(l,L),p(L,N),A(M,L,null),k=!0,P||(ee=Re(L,"click",s[24]),P=!0)},p(z,j){(!k||j[0]&512)&&fe(_,z[9]),(!k||j[0]&512)&&fe(w,z[9]);const q={};j[0]&768&&(q.invalid=z[8]!=z[9]),!K&&j[0]&256&&(K=!0,q.value=z[8],Ue(()=>K=!1)),F.$set(q),(!k||j[0]&768&&D!==(D=z[8]!=z[9]))&&(L.disabled=D),(!k||j[0]&768)&&Se(L,"cursor-not-allowed",z[8]!=z[9])},i(z){k||(h(F.$$.fragment,z),h(M.$$.fragment,z),k=!0)},o(z){v(F.$$.fragment,z),v(M.$$.fragment,z),k=!1},d(z){z&&m(e),B(F),B(M),P=!1,ee()}}}function $a(s){let e,l,t,n;const o=[Sa,ka],r=[];function i(a,f){return a[6].isFetching?0:1}return e=i(s),l=r[e]=o[e](s),{c(){l.c(),t=ie()},l(a){l.l(a),t=ie()},m(a,f){r[e].m(a,f),V(a,t,f),n=!0},p(a,f){let c=e;e=i(a),e===c?r[e].p(a,f):(le(),v(r[c],1,1,()=>{r[c]=null}),ne(),l=r[e],l?l.p(a,f):(l=r[e]=o[e](a),l.c()),h(l,1),l.m(t.parentNode,t))},i(a){n||(h(l),n=!0)},o(a){v(l),n=!1},d(a){r[e].d(a),a&&m(t)}}}function ka(s){let e,l,t,n,o,r,i,a,f,c,d,u,_,g,b,w,S,T,F,K,C,L,N,M,D,k=s[3]!=null&&an(s);const P=[ya,Ea],ee=[];function x(z,j){return z[11].isFetching?0:1}T=x(s),F=ee[T]=P[T](s);let J=s[3]!=null&&s[4]!=null&&fn(s);return{c(){e=E("div"),l=E("section"),t=E("div"),n=Z("Media fields"),o=U(),r=E("div"),i=Z("These fields will be presented differently from the rest of the metadata fields."),a=U(),k&&k.c(),f=U(),c=E("section"),d=E("div"),u=Z("Preferred embedding"),_=U(),g=E("div"),b=Z("This embedding will be used by default when indexing and querying the data."),w=U(),S=E("div"),F.c(),K=U(),C=E("section"),L=E("div"),N=Z("Render as markdown"),M=U(),J&&J.c(),this.h()},l(z){e=y(z,"DIV",{class:!0});var j=$(e);l=y(j,"SECTION",{class:!0});var q=$(l);t=y(q,"DIV",{class:!0});var H=$(t);n=G(H,"Media fields"),H.forEach(m),o=Q(q),r=y(q,"DIV",{class:!0});var Y=$(r);i=G(Y,"These fields will be presented differently from the rest of the metadata fields."),Y.forEach(m),a=Q(q),k&&k.l(q),q.forEach(m),f=Q(j),c=y(j,"SECTION",{class:!0});var de=$(c);d=y(de,"DIV",{class:!0});var he=$(d);u=G(he,"Preferred embedding"),he.forEach(m),_=Q(de),g=y(de,"DIV",{class:!0});var re=$(g);b=G(re,"This embedding will be used by default when indexing and querying the data."),re.forEach(m),w=Q(de),S=y(de,"DIV",{class:!0});var De=$(S);F.l(De),De.forEach(m),de.forEach(m),K=Q(j),C=y(j,"SECTION",{class:!0});var ue=$(C);L=y(ue,"DIV",{class:!0});var se=$(L);N=G(se,"Render as markdown"),se.forEach(m),M=Q(ue),J&&J.l(ue),ue.forEach(m),j.forEach(m),this.h()},h(){I(t,"class","text-lg text-gray-700"),I(r,"class","text-sm text-gray-500"),I(l,"class","flex flex-col gap-y-1"),I(d,"class","text-lg text-gray-700"),I(g,"class","text-sm text-gray-500"),I(S,"class","w-60"),I(c,"class","flex flex-col gap-y-1"),I(L,"class","text-lg text-gray-700"),I(C,"class","flex flex-col gap-y-1"),I(e,"class","flex flex-col gap-y-6")},m(z,j){V(z,e,j),p(e,l),p(l,t),p(t,n),p(l,o),p(l,r),p(r,i),p(l,a),k&&k.m(l,null),p(e,f),p(e,c),p(c,d),p(d,u),p(c,_),p(c,g),p(g,b),p(c,w),p(c,S),ee[T].m(S,null),p(e,K),p(e,C),p(C,L),p(L,N),p(C,M),J&&J.m(C,null),D=!0},p(z,j){z[3]!=null?k?(k.p(z,j),j[0]&8&&h(k,1)):(k=an(z),k.c(),h(k,1),k.m(l,null)):k&&(le(),v(k,1,1,()=>{k=null}),ne());let q=T;T=x(z),T===q?ee[T].p(z,j):(le(),v(ee[q],1,1,()=>{ee[q]=null}),ne(),F=ee[T],F?F.p(z,j):(F=ee[T]=P[T](z),F.c()),h(F,1),F.m(S,null)),z[3]!=null&&z[4]!=null?J?(J.p(z,j),j[0]&24&&h(J,1)):(J=fn(z),J.c(),h(J,1),J.m(C,null)):J&&(le(),v(J,1,1,()=>{J=null}),ne())},i(z){D||(h(k),h(F),h(J),D=!0)},o(z){v(k),v(F),v(J),D=!1},d(z){z&&m(e),k&&k.d(),ee[T].d(),J&&J.d()}}}function Sa(s){let e,l;return e=new je({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function an(s){let e,l,t;function n(r){s[21](r)}let o={fields:s[5]};return s[3]!==void 0&&(o.checkedFields=s[3]),e=new wt({props:o}),Pe.push(()=>Ye(e,"checkedFields",n)),{c(){R(e.$$.fragment)},l(r){O(e.$$.fragment,r)},m(r,i){A(e,r,i),t=!0},p(r,i){const a={};i[0]&32&&(a.fields=r[5]),!l&&i[0]&8&&(l=!0,a.checkedFields=r[3],Ue(()=>l=!1)),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){v(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Ea(s){var t;let e,l;return e=new vt({props:{selected:(t=s[6].data)==null?void 0:t.preferred_embedding,$$slots:{default:[Da]},$$scope:{ctx:s}}}),e.$on("change",s[16]),{c(){R(e.$$.fragment)},l(n){O(e.$$.fragment,n)},m(n,o){A(e,n,o),l=!0},p(n,o){var i;const r={};o[0]&64&&(r.selected=(i=n[6].data)==null?void 0:i.preferred_embedding),o[0]&2048|o[1]&2&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){l||(h(e.$$.fragment,n),l=!0)},o(n){v(e.$$.fragment,n),l=!1},d(n){B(e,n)}}}function ya(s){let e,l;return e=new wr({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function on(s){let e,l;return e=new ot({props:{value:s[29].name}}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,n){const o={};n[0]&2048&&(o.value=t[29].name),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Da(s){let e,l,t,n;e=new ot({props:{value:void 0,text:"None"}});let o=s[11].data||[],r=[];for(let a=0;av(r[a],1,1,()=>{r[a]=null});return{c(){R(e.$$.fragment),l=U();for(let a=0;aYe(e,"checkedFields",n)),{c(){R(e.$$.fragment)},l(r){O(e.$$.fragment,r)},m(r,i){A(e,r,i),t=!0},p(r,i){const a={};i[0]&8&&(a.fields=r[3]),!l&&i[0]&16&&(l=!0,a.checkedFields=r[4],Ue(()=>l=!1)),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){v(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Ia(s){let e,l,t,n,o,r,i,a;t=new br({props:{items:[{title:"Fields",value:"fields"},{title:"Administration",value:"administration"}],item:s[7]}}),t.$on("select",s[20]);const f=[$a,wa],c=[];function d(u,_){return u[7]==="fields"?0:u[7]==="administration"?1:-1}return~(r=d(s))&&(i=c[r]=f[r](s)),{c(){e=E("div"),l=E("div"),R(t.$$.fragment),n=U(),o=E("div"),i&&i.c(),this.h()},l(u){e=y(u,"DIV",{class:!0});var _=$(e);l=y(_,"DIV",{class:!0});var g=$(l);O(t.$$.fragment,g),g.forEach(m),n=Q(_),o=y(_,"DIV",{class:!0});var b=$(o);i&&i.l(b),b.forEach(m),_.forEach(m),this.h()},h(){I(l,"class","-ml-4 mr-4 w-96 grow-0"),I(o,"class","flex w-full flex-col gap-y-6 rounded border border-gray-300 bg-white p-4"),I(e,"class","flex flex-row")},m(u,_){V(u,e,_),p(e,l),A(t,l,null),p(e,n),p(e,o),~r&&c[r].m(o,null),a=!0},p(u,_){const g={};_[0]&128&&(g.item=u[7]),t.$set(g);let b=r;r=d(u),r===b?~r&&c[r].p(u,_):(i&&(le(),v(c[b],1,1,()=>{c[b]=null}),ne()),~r?(i=c[r],i?i.p(u,_):(i=c[r]=f[r](u),i.c()),h(i,1),i.m(o,null)):i=null)},i(u){a||(h(t.$$.fragment,u),h(i),a=!0)},o(u){v(t.$$.fragment,u),v(i),a=!1},d(u){u&&m(e),B(t),~r&&c[r].d()}}}function Va(s){let e,l,t,n,o,r;return e=new En({props:{label:"Changes",title:"Dataset settings"}}),t=new yn({props:{hasForm:!0,$$slots:{default:[Ia]},$$scope:{ctx:s}}}),o=new Dn({props:{primaryButtonText:"Save",secondaryButtonText:"Cancel"}}),o.$on("click:button--secondary",close),{c(){R(e.$$.fragment),l=U(),R(t.$$.fragment),n=U(),R(o.$$.fragment)},l(i){O(e.$$.fragment,i),l=Q(i),O(t.$$.fragment,i),n=Q(i),O(o.$$.fragment,i)},m(i,a){A(e,i,a),V(i,l,a),A(t,i,a),V(i,n,a),A(o,i,a),r=!0},p(i,a){const f={};a[0]&7166|a[1]&2&&(f.$$scope={dirty:a,ctx:i}),t.$set(f)},i(i){r||(h(e.$$.fragment,i),h(t.$$.fragment,i),h(o.$$.fragment,i),r=!0)},o(i){v(e.$$.fragment,i),v(t.$$.fragment,i),v(o.$$.fragment,i),r=!1},d(i){B(e,i),i&&m(l),B(t,i),i&&m(n),B(o,i)}}}function Na(s){let e,l;return e=new Sn({props:{open:s[0],$$slots:{default:[Va]},$$scope:{ctx:s}}}),e.$on("submit",s[17]),e.$on("close",s[25]),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,n){const o={};n[0]&1&&(o.open=t[0]),n[0]&7166|n[1]&2&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Ta(s,e,l){let t,n,o,r,i,a=X,f=()=>(a(),a=Ce(t,H=>l(6,i=H)),t),c,d,u;s.$$.on_destroy.push(()=>a());let{namespace:_}=e,{name:g}=e,{open:b=!1}=e,{schema:w}=e;const S=Fn();ge(s,S,H=>l(28,c=H));const T=$n();ge(s,T,H=>l(11,d=H));const F=_r();ge(s,F,H=>l(27,r=H));let K="fields",C=null,L=null,N=c.embedding;function M(H){N=H.target.value,N===""&&(N=void 0)}function D(){if(C==null)return;const H={ui:{media_paths:C.map(Y=>Y.path),markdown_paths:L==null?void 0:L.map(Y=>Y.path)},preferred_embedding:N};r.mutate([_,g,H],{onSuccess:()=>{l(0,b=!1)}})}let k="";const P=gr();ge(s,P,H=>l(12,u=H));const ee=H=>l(7,K=H.detail);function x(H){C=H,l(3,C),l(6,i),l(5,o),l(19,w)}function J(H){L=H,l(4,L),l(6,i),l(5,o),l(19,w)}function z(H){k=H,l(8,k)}const j=()=>u.mutate([_,g],{onSuccess:()=>bn("/")}),q=()=>l(0,b=!1);return s.$$set=H=>{"namespace"in H&&l(1,_=H.namespace),"name"in H&&l(2,g=H.name),"open"in H&&l(0,b=H.open),"schema"in H&&l(19,w=H.schema)},s.$$.update=()=>{var H,Y,de,he;if(s.$$.dirty[0]&6&&f(l(10,t=ft(_,g))),s.$$.dirty[0]&6&&l(9,n=Kr(_,g)),s.$$.dirty[0]&524288&&l(5,o=yt(w).filter(re=>re.dtype==="string"&&!Ke(re.path,[pr])&&!tt(re,w))),s.$$.dirty[0]&104&&C==null){const re=(Y=(H=i.data)==null?void 0:H.ui)==null?void 0:Y.media_paths;re!=null&&l(3,C=o.filter(De=>re.some(ue=>Ke(De.path,ue))))}if(s.$$.dirty[0]&112&&L==null){const re=(he=(de=i.data)==null?void 0:de.ui)==null?void 0:he.markdown_paths;re!=null&&l(4,L=o.filter(De=>re.some(ue=>Ke(De.path,ue))))}},[b,_,g,C,L,o,i,K,k,n,t,d,u,S,T,F,M,D,P,w,ee,x,J,z,j,q]}class Ca extends $e{constructor(e){super(),ke(this,e,Ta,Na,be,{namespace:1,name:2,open:0,schema:19},null,[-1,-1])}}function Fa(s){let e,l,t;function n(r){s[13](r)}let o={fields:s[6]};return s[1]!==void 0&&(o.checkedFields=s[1]),e=new wt({props:o}),Pe.push(()=>Ye(e,"checkedFields",n)),{c(){R(e.$$.fragment)},l(r){O(e.$$.fragment,r)},m(r,i){A(e,r,i),t=!0},p(r,i){const a={};i&64&&(a.fields=r[6]),!l&&i&2&&(l=!0,a.checkedFields=r[1],Ue(()=>l=!1)),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){v(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Ma(s){let e,l;return e=new je({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function cn(s){let e,l,t,n,o,r,i;const a=[Pa,za],f=[];function c(d,u){return d[5]==null?0:1}return o=c(s),r=f[o]=a[o](s),{c(){e=E("section"),l=E("h4"),t=Z("Select enriched fields"),n=U(),r.c(),this.h()},l(d){e=y(d,"SECTION",{});var u=$(e);l=y(u,"H4",{class:!0});var _=$(l);t=G(_,"Select enriched fields"),_.forEach(m),n=Q(u),r.l(u),u.forEach(m),this.h()},h(){I(l,"class","svelte-1ge817j")},m(d,u){V(d,e,u),p(e,l),p(l,t),p(e,n),f[o].m(e,null),i=!0},p(d,u){let _=o;o=c(d),o===_?f[o].p(d,u):(le(),v(f[_],1,1,()=>{f[_]=null}),ne(),r=f[o],r?r.p(d,u):(r=f[o]=a[o](d),r.c()),h(r,1),r.m(e,null))},i(d){i||(h(r),i=!0)},o(d){v(r),i=!1},d(d){d&&m(e),f[o].d()}}}function za(s){let e,l,t;function n(r){s[14](r)}let o={fields:s[5]};return s[2]!==void 0&&(o.checkedFields=s[2]),e=new wt({props:o}),Pe.push(()=>Ye(e,"checkedFields",n)),{c(){R(e.$$.fragment)},l(r){O(e.$$.fragment,r)},m(r,i){A(e,r,i),t=!0},p(r,i){const a={};i&32&&(a.fields=r[5]),!l&&i&4&&(l=!0,a.checkedFields=r[2],Ue(()=>l=!1)),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){v(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Pa(s){let e,l;return e=new je({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function un(s){let e,l;return{c(){e=E("p"),l=Z("No fields selected. Please select at least one field to download."),this.h()},l(t){e=y(t,"P",{class:!0});var n=$(e);l=G(n,"No fields selected. Please select at least one field to download."),n.forEach(m),this.h()},h(){I(e,"class","text-gray-600")},m(t,n){V(t,e,n),p(e,l)},d(t){t&&m(e)}}}function Ra(s){let e,l;return e=new Cn({props:{value:JSON.stringify(s[7].data,null,2),readonly:!0,rows:30,placeholder:"3 rows of data for previewing the response",class:"mb-2 font-mono"}}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,n){const o={};n&128&&(o.value=JSON.stringify(t[7].data,null,2)),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Aa(s){let e,l;return e=new je({props:{paragraph:!0}}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Ba(s){let e,l,t,n,o,r,i,a,f,c,d,u,_,g,b,w,S;const T=[Ma,Fa],F=[];function K(k,P){return k[6]==null?0:1}o=K(s),r=F[o]=T[o](s);let C=(s[5]==null||s[5].length>0)&&cn(s),L=s[3].length===0&&un();const N=[Aa,Ra],M=[];function D(k,P){return k[7]&&k[7].isFetching?0:k[4]&&k[7]?1:-1}return~(b=D(s))&&(w=M[b]=N[b](s)),{c(){e=E("section"),l=E("h4"),t=Z("Select source fields"),n=U(),r.c(),i=U(),C&&C.c(),a=U(),f=E("section"),c=E("h4"),d=Z("Download preview"),u=U(),L&&L.c(),_=U(),g=E("div"),w&&w.c(),this.h()},l(k){e=y(k,"SECTION",{});var P=$(e);l=y(P,"H4",{class:!0});var ee=$(l);t=G(ee,"Select source fields"),ee.forEach(m),n=Q(P),r.l(P),P.forEach(m),i=Q(k),C&&C.l(k),a=Q(k),f=y(k,"SECTION",{});var x=$(f);c=y(x,"H4",{class:!0});var J=$(c);d=G(J,"Download preview"),J.forEach(m),u=Q(x),L&&L.l(x),_=Q(x),g=y(x,"DIV",{class:!0});var z=$(g);w&&w.l(z),z.forEach(m),x.forEach(m),this.h()},h(){I(l,"class","svelte-1ge817j"),I(c,"class","svelte-1ge817j"),I(g,"class","preview svelte-1ge817j")},m(k,P){V(k,e,P),p(e,l),p(l,t),p(e,n),F[o].m(e,null),V(k,i,P),C&&C.m(k,P),V(k,a,P),V(k,f,P),p(f,c),p(c,d),p(f,u),L&&L.m(f,null),p(f,_),p(f,g),~b&&M[b].m(g,null),S=!0},p(k,P){let ee=o;o=K(k),o===ee?F[o].p(k,P):(le(),v(F[ee],1,1,()=>{F[ee]=null}),ne(),r=F[o],r?r.p(k,P):(r=F[o]=T[o](k),r.c()),h(r,1),r.m(e,null)),k[5]==null||k[5].length>0?C?(C.p(k,P),P&32&&h(C,1)):(C=cn(k),C.c(),h(C,1),C.m(a.parentNode,a)):C&&(le(),v(C,1,1,()=>{C=null}),ne()),k[3].length===0?L||(L=un(),L.c(),L.m(f,_)):L&&(L.d(1),L=null);let x=b;b=D(k),b===x?~b&&M[b].p(k,P):(w&&(le(),v(M[x],1,1,()=>{M[x]=null}),ne()),~b?(w=M[b],w?w.p(k,P):(w=M[b]=N[b](k),w.c()),h(w,1),w.m(g,null)):w=null)},i(k){S||(h(r),h(C),h(w),S=!0)},o(k){v(r),v(C),v(w),S=!1},d(k){k&&m(e),F[o].d(),k&&m(i),C&&C.d(k),k&&m(a),k&&m(f),L&&L.d(),~b&&M[b].d()}}}function Oa(s){let e,l,t,n,o,r;return e=new En({props:{title:"Download data"}}),t=new yn({props:{hasForm:!0,$$slots:{default:[Ba]},$$scope:{ctx:s}}}),o=new Dn({props:{primaryButtonText:"Download",primaryButtonDisabled:s[3].length===0,secondaryButtonText:"Cancel"}}),o.$on("click:button--secondary",s[10]),{c(){R(e.$$.fragment),l=U(),R(t.$$.fragment),n=U(),R(o.$$.fragment)},l(i){O(e.$$.fragment,i),l=Q(i),O(t.$$.fragment,i),n=Q(i),O(o.$$.fragment,i)},m(i,a){A(e,i,a),V(i,l,a),A(t,i,a),V(i,n,a),A(o,i,a),r=!0},p(i,a){const f={};a&262398&&(f.$$scope={dirty:a,ctx:i}),t.$set(f);const c={};a&8&&(c.primaryButtonDisabled=i[3].length===0),o.$set(c)},i(i){r||(h(e.$$.fragment,i),h(t.$$.fragment,i),h(o.$$.fragment,i),r=!0)},o(i){v(e.$$.fragment,i),v(t.$$.fragment,i),v(o.$$.fragment,i),r=!1},d(i){B(e,i),i&&m(l),B(t,i),i&&m(n),B(o,i)}}}function Ha(s){let e,l;return e=new Sn({props:{size:"lg",open:s[0],$$slots:{default:[Oa]},$$scope:{ctx:s}}}),e.$on("submit",s[9]),e.$on("close",s[15]),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,[n]){const o={};n&1&&(o.open=t[0]),n&262398&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function qa(s,e,l){let t,n,o,r,i,a,f=X,c=()=>(f(),f=Ce(r,N=>l(7,a=N)),r);s.$$.on_destroy.push(()=>f());let{open:d=!1}=e,{schema:u}=e;const _=pt(),g=Ae();ge(s,g,N=>l(12,i=N));let b=[],w=[];function S(N){if(N==null)return{sourceFields:null,enrichedFields:null};const D=yt(N).filter(P=>["embedding"].indexOf(P.dtype)===-1).filter(P=>!tt(P,N)),k=st(N).filter(P=>ht(P)).filter(P=>!st(P).some(ee=>ee.dtype==="embedding"));return{sourceFields:D,enrichedFields:k}}async function T(){const N=i.namespace,M=i.datasetName,D={combine_columns:!1,columns:o.map(ee=>ee.path)},k=`/api/v1/datasets/${N}/${M}/select_rows_download?url_safe_options=${encodeURIComponent(JSON.stringify(D))}`,P=document.createElement("a");P.download=`${N}_${M}.json`,P.href=k,document.body.appendChild(P),P.click(),P.remove()}function F(){l(0,d=!1),_("close")}function K(N){b=N,l(1,b)}function C(N){w=N,l(2,w)}const L=()=>l(0,d=!1);return s.$$set=N=>{"open"in N&&l(0,d=N.open),"schema"in N&&l(11,u=N.schema)},s.$$.update=()=>{s.$$.dirty&2048&&l(6,{sourceFields:t,enrichedFields:n}=S(u),t,(l(5,n),l(11,u))),s.$$.dirty&6&&l(3,o=[...b,...w]),s.$$.dirty&4104&&c(l(4,r=o.length>0?$r(i.namespace,i.datasetName,{columns:o.map(N=>N.path),limit:3,combine_columns:!1}):null))},[d,b,w,o,r,n,t,a,g,T,F,u,i,K,C,L]}class La extends $e{constructor(e){super(),ke(this,e,qa,Ha,be,{open:0,schema:11})}}function ja(s){let e,l;return e=new fs({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Ya(s){let e,l;return e=new is({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function dn(s){let e,l,t,n,o,r;function i(d){s[23](d)}let a={schema:s[12].data,namespace:s[0],name:s[1]};s[4]!==void 0&&(a.open=s[4]),e=new Ca({props:a}),Pe.push(()=>Ye(e,"open",i));function f(d){s[24](d)}let c={schema:s[12].data};return s[5]!==void 0&&(c.open=s[5]),n=new La({props:c}),Pe.push(()=>Ye(n,"open",f)),{c(){R(e.$$.fragment),t=U(),R(n.$$.fragment)},l(d){O(e.$$.fragment,d),t=Q(d),O(n.$$.fragment,d)},m(d,u){A(e,d,u),V(d,t,u),A(n,d,u),r=!0},p(d,u){const _={};u&4096&&(_.schema=d[12].data),u&1&&(_.namespace=d[0]),u&2&&(_.name=d[1]),!l&&u&16&&(l=!0,_.open=d[4],Ue(()=>l=!1)),e.$set(_);const g={};u&4096&&(g.schema=d[12].data),!o&&u&32&&(o=!0,g.open=d[5],Ue(()=>o=!1)),n.$set(g)},i(d){r||(h(e.$$.fragment,d),h(n.$$.fragment,d),r=!0)},o(d){v(e.$$.fragment,d),v(n.$$.fragment,d),r=!1},d(d){B(e,d),d&&m(t),B(n,d)}}}function mn(s){let e,l;return e=new Nt({props:{open:!0,modalHeading:"Dataset config",primaryButtonText:"Ok",secondaryButtonText:"Cancel",$$slots:{default:[Ja]},$$scope:{ctx:s}}}),e.$on("click:button--secondary",s[25]),e.$on("close",s[26]),e.$on("submit",s[27]),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,n){const o={};n&268443648&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Ua(s){let e,l;return e=new Cn({props:{value:`${s[13].data}`,readonly:!0,rows:15,placeholder:"3 rows of data for previewing the response",class:"mb-2 font-mono"}}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,n){const o={};n&8192&&(o.value=`${t[13].data}`),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Qa(s){let e,l;return e=new je({}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p:X,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function Ja(s){let e,l,t,n,o,r,i,a,f,c;const d=[Qa,Ua],u=[];function _(g,b){var w,S;return(w=g[13])!=null&&w.isFetching?0:(S=g[13])!=null&&S.data?1:-1}return~(i=_(s))&&(a=u[i]=d[i](s)),{c(){e=E("div"),l=Z(`This dataset configuration represents the transformations that created the dataset, + including signals, embeddings, and user settings. This can be used with lilac.load to + generate the dataset with the same view as presented.`),t=U(),n=E("div"),o=Z("config.yml"),r=U(),a&&a.c(),f=ie(),this.h()},l(g){e=y(g,"DIV",{class:!0});var b=$(e);l=G(b,`This dataset configuration represents the transformations that created the dataset, + including signals, embeddings, and user settings. This can be used with lilac.load to + generate the dataset with the same view as presented.`),b.forEach(m),t=Q(g),n=y(g,"DIV",{class:!0});var w=$(n);o=G(w,"config.yml"),w.forEach(m),r=Q(g),a&&a.l(g),f=ie(),this.h()},h(){I(e,"class","mb-4 text-sm"),I(n,"class","font-mono text-xs")},m(g,b){V(g,e,b),p(e,l),V(g,t,b),V(g,n,b),p(n,o),V(g,r,b),~i&&u[i].m(g,b),V(g,f,b),c=!0},p(g,b){let w=i;i=_(g),i===w?~i&&u[i].p(g,b):(a&&(le(),v(u[w],1,1,()=>{u[w]=null}),ne()),~i?(a=u[i],a?a.p(g,b):(a=u[i]=d[i](g),a.c()),h(a,1),a.m(f.parentNode,f)):a=null)},i(g){c||(h(a),c=!0)},o(g){v(a),c=!1},d(g){g&&m(e),g&&m(t),g&&m(n),g&&m(r),~i&&u[i].d(g),g&&m(f)}}}function Ka(s){let e,l,t,n,o,r,i,a,f,c,d,u,_,g,b,w,S,T,F;t=new _a({});const K=[Ya,ja],C=[];function L(D,k){return D[11]?1:0}r=L(s),i=C[r]=K[r](s),_=new hi({});let N=s[12].data&&dn(s),M=s[2]&&mn(s);return{c(){e=E("div"),l=E("div"),R(t.$$.fragment),n=U(),o=E("div"),i.c(),d=U(),u=E("div"),R(_.$$.fragment),g=U(),N&&N.c(),b=U(),M&&M.c(),w=ie(),this.h()},l(D){e=y(D,"DIV",{class:!0});var k=$(e);l=y(k,"DIV",{class:!0});var P=$(l);O(t.$$.fragment,P),n=Q(P),o=y(P,"DIV",{class:!0});var ee=$(o);i.l(ee),ee.forEach(m),P.forEach(m),d=Q(k),u=y(k,"DIV",{class:!0});var x=$(u);O(_.$$.fragment,x),x.forEach(m),k.forEach(m),g=Q(D),N&&N.l(D),b=Q(D),M&&M.l(D),w=ie(),this.h()},h(){I(o,"class",a=ct(`absolute right-0 top-1/2 flex + h-8 w-4 cursor-pointer items-center justify-center + rounded border + border-neutral-200 bg-neutral-100 + opacity-60 hover:bg-neutral-200 + hover:opacity-100 + ${s[11]?" translate-x-full":" translate-x-1/2"}`)+" svelte-1xlsh2v"),I(l,"class",c=ct(`schema-container relative h-full ${s[11]?"w-0":"w-1/3"} border-r border-gray-200`)+" svelte-1xlsh2v"),I(u,"class","h-full w-2/3 flex-grow"),I(e,"class","flex h-full w-full")},m(D,k){V(D,e,k),p(e,l),A(t,l,null),p(l,n),p(l,o),C[r].m(o,null),p(e,d),p(e,u),A(_,u,null),V(D,g,k),N&&N.m(D,k),V(D,b,k),M&&M.m(D,k),V(D,w,k),S=!0,T||(F=[Fe(f=Me.call(null,o,{text:s[11]?"Show Schema":"Hide Schema"})),Re(o,"click",s[15]),Re(o,"keypress",s[15])],T=!0)},p(D,k){let P=r;r=L(D),r!==P&&(le(),v(C[P],1,1,()=>{C[P]=null}),ne(),i=C[r],i||(i=C[r]=K[r](D),i.c()),h(i,1),i.m(o,null)),(!S||k&2048&&a!==(a=ct(`absolute right-0 top-1/2 flex + h-8 w-4 cursor-pointer items-center justify-center + rounded border + border-neutral-200 bg-neutral-100 + opacity-60 hover:bg-neutral-200 + hover:opacity-100 + ${D[11]?" translate-x-full":" translate-x-1/2"}`)+" svelte-1xlsh2v"))&&I(o,"class",a),f&&Le(f.update)&&k&2048&&f.update.call(null,{text:D[11]?"Show Schema":"Hide Schema"}),(!S||k&2048&&c!==(c=ct(`schema-container relative h-full ${D[11]?"w-0":"w-1/3"} border-r border-gray-200`)+" svelte-1xlsh2v"))&&I(l,"class",c),D[12].data?N?(N.p(D,k),k&4096&&h(N,1)):(N=dn(D),N.c(),h(N,1),N.m(b.parentNode,b)):N&&(le(),v(N,1,1,()=>{N=null}),ne()),D[2]?M?(M.p(D,k),k&4&&h(M,1)):(M=mn(D),M.c(),h(M,1),M.m(w.parentNode,w)):M&&(le(),v(M,1,1,()=>{M=null}),ne())},i(D){S||(h(t.$$.fragment,D),h(i),h(_.$$.fragment,D),h(N),h(M),S=!0)},o(D){v(t.$$.fragment,D),v(i),v(_.$$.fragment,D),v(N),v(M),S=!1},d(D){D&&m(e),B(t),C[r].d(),B(_),D&&m(g),N&&N.d(D),D&&m(b),M&&M.d(D),D&&m(w),T=!1,We(F)}}}function Za(s){let e,l,t=s[3].namespace+"",n,o,r=s[3].datasetName+"",i,a,f;return{c(){e=E("div"),l=E("a"),n=Z(t),o=Z("/"),i=Z(r),this.h()},l(c){e=y(c,"DIV",{class:!0});var d=$(e);l=y(d,"A",{class:!0,href:!0});var u=$(l);n=G(u,t),o=G(u,"/"),i=G(u,r),u.forEach(m),d.forEach(m),this.h()},h(){I(l,"class","font-semibold text-black"),I(l,"href",s[8]),I(e,"class","dataset-name svelte-1xlsh2v")},m(c,d){V(c,e,d),p(e,l),p(l,n),p(l,o),p(l,i),a||(f=Re(l,"click",s[21]),a=!0)},p(c,d){d&8&&t!==(t=c[3].namespace+"")&&fe(n,t),d&8&&r!==(r=c[3].datasetName+"")&&fe(i,r),d&256&&I(l,"href",c[8])},d(c){c&&m(e),a=!1,f()}}}function Ga(s){let e,l,t,n,o,r,i,a;return l=new Xe({props:{type:"outline",$$slots:{default:[Za]},$$scope:{ctx:s}}}),o=new at({}),{c(){e=E("div"),R(l.$$.fragment),t=U(),n=E("button"),R(o.$$.fragment),this.h()},l(f){e=y(f,"DIV",{slot:!0,class:!0});var c=$(e);O(l.$$.fragment,c),t=Q(c),n=y(c,"BUTTON",{});var d=$(n);O(o.$$.fragment,d),d.forEach(m),c.forEach(m),this.h()},h(){I(e,"slot","header-subtext"),I(e,"class","flex flex-row items-center")},m(f,c){V(f,e,c),A(l,e,null),p(e,t),p(e,n),A(o,n,null),r=!0,i||(a=Re(n,"click",s[22]),i=!0)},p(f,c){const d={};c&268435720&&(d.$$scope={dirty:c,ctx:f}),l.$set(d)},i(f){r||(h(l.$$.fragment,f),h(o.$$.fragment,f),r=!0)},o(f){v(l.$$.fragment,f),v(o.$$.fragment,f),r=!1},d(f){f&&m(e),B(l),B(o),i=!1,a()}}}function Wa(s){let e,l,t;return l=new Ni({}),{c(){e=E("div"),R(l.$$.fragment),this.h()},l(n){e=y(n,"DIV",{slot:!0,class:!0});var o=$(e);O(l.$$.fragment,o),o.forEach(m),this.h()},h(){I(e,"slot","header-center"),I(e,"class","flex w-full items-center")},m(n,o){V(n,e,o),A(l,e,null),t=!0},p:X,i(n){t||(h(l.$$.fragment,n),t=!0)},o(n){v(l.$$.fragment,n),t=!1},d(n){n&&m(e),B(l)}}}function hn(s){let e,l,t,n;return{c(){e=E("div"),l=Z("Copied!"),this.h()},l(o){e=y(o,"DIV",{class:!0});var r=$(e);l=G(r,"Copied!"),r.forEach(m),this.h()},h(){I(e,"class","absolute right-12 z-50 mt-2 rounded border border-neutral-300 bg-neutral-50 px-4 py-1 text-xs")},m(o,r){V(o,e,r),p(e,l),n=!0},i(o){n||(t&&t.end(1),n=!0)},o(o){t=Gn(e,Hr,{}),n=!1},d(o){o&&m(e),o&&t&&t.end()}}}function Xa(s){let e,l,t,n,o,r,i,a,f,c,d,u,_,g,b,w=s[6]&&hn();return r=new rt({props:{size:"field",kind:"ghost",icon:vs,iconDescription:"Copy the URL"}}),r.$on("click",s[18]),a=new rt({props:{size:"field",kind:"ghost",icon:ds,iconDescription:"Download data"}}),a.$on("click",s[19]),d=new rt({props:{disabled:!s[9],size:"field",kind:"ghost",icon:es,iconDescription:"Dataset settings"}}),d.$on("click",s[20]),{c(){e=E("div"),l=E("div"),t=E("div"),n=E("div"),w&&w.c(),o=U(),R(r.$$.fragment),i=U(),R(a.$$.fragment),f=U(),c=E("div"),R(d.$$.fragment),this.h()},l(S){e=y(S,"DIV",{slot:!0});var T=$(e);l=y(T,"DIV",{class:!0});var F=$(l);t=y(F,"DIV",{class:!0});var K=$(t);n=y(K,"DIV",{class:!0});var C=$(n);w&&w.l(C),o=Q(C),O(r.$$.fragment,C),C.forEach(m),i=Q(K),O(a.$$.fragment,K),f=Q(K),c=y(K,"DIV",{});var L=$(c);O(d.$$.fragment,L),L.forEach(m),K.forEach(m),F.forEach(m),T.forEach(m),this.h()},h(){I(n,"class","relative"),Se(c,"opacity-40",!s[9]),I(t,"class","flex"),I(l,"class","flex h-full flex-col"),I(e,"slot","header-right")},m(S,T){V(S,e,T),p(e,l),p(l,t),p(t,n),w&&w.m(n,null),p(n,o),A(r,n,null),p(t,i),A(a,t,null),p(t,f),p(t,c),A(d,c,null),_=!0,g||(b=Fe(u=Me.call(null,c,{text:s[9]?"":"User does not have access to update settings of this dataset."})),g=!0)},p(S,T){S[6]?w?T&64&&h(w,1):(w=hn(),w.c(),h(w,1),w.m(n,o)):w&&(le(),v(w,1,1,()=>{w=null}),ne());const F={};T&512&&(F.disabled=!S[9]),d.$set(F),u&&Le(u.update)&&T&512&&u.update.call(null,{text:S[9]?"":"User does not have access to update settings of this dataset."}),(!_||T&512)&&Se(c,"opacity-40",!S[9])},i(S){_||(h(w),h(r.$$.fragment,S),h(a.$$.fragment,S),h(d.$$.fragment,S),_=!0)},o(S){v(w),v(r.$$.fragment,S),v(a.$$.fragment,S),v(d.$$.fragment,S),_=!1},d(S){S&&m(e),w&&w.d(),B(r),B(a),B(d),g=!1,b()}}}function xa(s){let e,l;return e=new Xn({props:{$$slots:{"header-right":[Xa],"header-center":[Wa],"header-subtext":[Ga],default:[Ka]},$$scope:{ctx:s}}}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,[n]){const o={};n&268450687&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function eo(s,e,l){let t,n,o,r,i,a,f,c,d=X,u=()=>(d(),d=Ce(n,Y=>l(12,c=Y)),n),_,g=X,b=()=>(g(),g=Ce(i,Y=>l(13,_=Y)),i);s.$$.on_destroy.push(()=>d()),s.$$.on_destroy.push(()=>g());let{namespace:w}=e,{datasetName:S}=e;const T=Ae();ge(s,T,Y=>l(3,f=Y));function F(){dt(T,f.schemaCollapsed=!f.schemaCollapsed,f)}let K=!1,C=!1;const L=It();ge(s,L,Y=>l(17,a=Y));let N=!1,M=!1;const D=()=>navigator.clipboard.writeText(location.href).then(()=>{l(6,N=!0),setTimeout(()=>l(6,N=!1),2e3)},()=>{throw Error("Error copying link to clipboard.")}),k=()=>l(5,C=!0),P=()=>l(4,K=!0),ee=()=>bn(r),x=()=>l(2,M=!0);function J(Y){K=Y,l(4,K)}function z(Y){C=Y,l(5,C)}const j=()=>l(2,M=!1),q=()=>l(2,M=!1),H=()=>l(2,M=!1);return s.$$set=Y=>{"namespace"in Y&&l(0,w=Y.namespace),"datasetName"in Y&&l(1,S=Y.datasetName)},s.$$.update=()=>{var Y;s.$$.dirty&8&&l(11,t=f.schemaCollapsed),s.$$.dirty&8&&u(l(10,n=Dt(f.namespace,f.datasetName))),s.$$.dirty&131072&&l(9,o=(Y=a.data)==null?void 0:Y.access.dataset.update_settings),s.$$.dirty&3&&l(8,r=Zr(w,S)),s.$$.dirty&7&&b(l(7,i=M?kr(w,S,"yaml"):null))},[w,S,M,f,K,C,N,i,r,o,n,t,c,_,T,F,L,a,D,k,P,ee,x,J,z,j,q,H]}class to extends $e{constructor(e){super(),ke(this,e,eo,xa,be,{namespace:0,datasetName:1})}}function lo(s){let e;return{c(){e=Z("Page not found! Please specify a dataset.")},l(l){e=G(l,"Page not found! Please specify a dataset.")},m(l,t){V(l,e,t)},p:X,i:X,o:X,d(l){l&&m(e)}}}function no(s){let e=s[2],l,t,n=_n(s);return{c(){n.c(),l=ie()},l(o){n.l(o),l=ie()},m(o,r){n.m(o,r),V(o,l,r),t=!0},p(o,r){r&4&&be(e,e=o[2])?(le(),v(n,1,1,X),ne(),n=_n(o),n.c(),h(n,1),n.m(l.parentNode,l)):n.p(o,r)},i(o){t||(h(n),t=!0)},o(o){v(n),t=!1},d(o){o&&m(l),n.d(o)}}}function _n(s){let e,l;return e=new to({props:{namespace:s[0],datasetName:s[1]}}),{c(){R(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){A(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.namespace=t[0]),n&2&&(o.datasetName=t[1]),e.$set(o)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){B(e,t)}}}function ro(s){let e,l,t,n;const o=[no,lo],r=[];function i(a,f){return a[2]&&a[0]&&a[1]?0:1}return e=i(s),l=r[e]=o[e](s),{c(){l.c(),t=ie()},l(a){l.l(a),t=ie()},m(a,f){r[e].m(a,f),V(a,t,f),n=!0},p(a,[f]){let c=e;e=i(a),e===c?r[e].p(a,f):(le(),v(r[c],1,1,()=>{r[c]=null}),ne(),l=r[e],l?l.p(a,f):(l=r[e]=o[e](a),l.c()),h(l,1),l.m(t.parentNode,t))},i(a){n||(h(l),n=!0)},o(a){v(l),n=!1},d(a){r[e].d(a),a&&m(t)}}}function so(s,e,l){let t,n,o,r,i,a,f,c,d=X,u=()=>(d(),d=Ce(f,x=>l(10,c=x)),f),_,g=X,b=()=>(g(),g=Ce(t,x=>l(11,_=x)),t),w,S=X,T=()=>(S(),S=Ce(a,x=>l(12,w=x)),a),F,K=X,C=()=>(K(),K=Ce(r,x=>l(13,F=x)),r),L,N=X,M=()=>(N(),N=Ce(o,x=>l(14,L=x)),o),D;s.$$.on_destroy.push(()=>d()),s.$$.on_destroy.push(()=>g()),s.$$.on_destroy.push(()=>S()),s.$$.on_destroy.push(()=>K()),s.$$.on_destroy.push(()=>N());let k,P;const ee=Sr();return ge(s,ee,x=>l(15,D=x)),s.$$.update=()=>{var x,J;if(s.$$.dirty&32771&&D.page==="datasets")if(D.identifier==""||D.identifier==null)l(0,k=void 0),l(1,P=void 0);else{const[z,j]=D.identifier.split("/");(k!=z||P!=j)&&(l(0,k=z),l(1,P=j))}if(s.$$.dirty&3&&b(l(2,t=k&&P?Dr(ee,k,P):null)),s.$$.dirty&4&&t!=null&&Er(t),s.$$.dirty&3&&l(8,n=k&&P?Ir(k,P):null),s.$$.dirty&256&&n!=null&&yr(n),s.$$.dirty&3&&M(l(6,o=k&&P?ft(k,P):null)),s.$$.dirty&16640&&n&&L!=null&&L.data&&n.setSettings(L.data),s.$$.dirty&3&&C(l(5,r=k&&P?Dt(k,P):null)),s.$$.dirty&8448&&n&&F!=null&&F.data&&n.setSchema(F.data),s.$$.dirty&8192&&l(9,i=F!=null&&F.data?Vr("string",F.data):null),s.$$.dirty&515&&T(l(4,a=k&&P&&i?Nr(k,P,i.map(z=>z.path)):null)),s.$$.dirty&4352&&n&&w!=null&&w.data&&!w.isFetching&&n.setStats(w.data),s.$$.dirty&2051&&u(l(3,f=k&&P&&_?Tr(k,P,Cr(_)):null)),s.$$.dirty&1280&&n&&c!=null&&c.data&&n.setSelectRowsSchema(c),s.$$.dirty&3328&&n&&_&&(x=c==null?void 0:c.data)!=null&&x.schema){const z=qr(_.selectedColumns||{},((J=c.data)==null?void 0:J.schema)||null);n.setVisibleFields(z)}},[k,P,t,f,a,r,o,ee,n,i,c,_,w,F,L,D]}class $o extends $e{constructor(e){super(),ke(this,e,so,ro,be,{})}}export{$o as component}; diff --git a/lilac/web/_app/immutable/nodes/5.bc2d94e2.js b/lilac/web/_app/immutable/nodes/5.bc2d94e2.js new file mode 100644 index 0000000000000000000000000000000000000000..aa5709856adfafb0c7df83629bada93095425b9b --- /dev/null +++ b/lilac/web/_app/immutable/nodes/5.bc2d94e2.js @@ -0,0 +1 @@ +import{S as te,i as le,s as x,E as M,k as D,a as U,l as N,m as P,c as z,h as p,n as H,H as E,I as W,b as V,J as S,K as A,g as k,v as $,d as T,f as ee,O as oe,P as ue,D as X,ah as qe,ai as ze,R as se,F as fe,G as ce,L as de,M as _e,N as me,Q as q,w as Z,q as O,r as Y,u as be,a1 as R,C as Ke,T as Je,o as Oe,a8 as ve,aj as Ye,e as w,ab as ae,U as ne,y as F,z as B,A as Q,V as ie,B as C,a4 as We}from"../chunks/index.27e2a960.js";import{g as Xe}from"../chunks/navigation.06af7fa8.js";import{aH as Fe,aj as re,aI as Ze,aJ as we,c as xe,aK as $e,aL as et,B as tt,W as Be,d as lt,aM as nt}from"../chunks/Commands.2fa1e469.js";import{P as it}from"../chunks/Page.7d66a333.js";import{C as Qe}from"../chunks/ComboBox.9e29cdb2.js";import{b as at}from"../chunks/utils.97898c57.js";import{w as Ce}from"../chunks/index.7efffca5.js";const st=l=>({}),pe=l=>({});function ke(l){let e,t;const n=l[16].labelText,i=ce(n,l,l[15],pe),s=i||rt(l);return{c(){e=D("span"),s&&s.c(),this.h()},l(a){e=N(a,"SPAN",{});var o=P(e);s&&s.l(o),o.forEach(p),this.h()},h(){E(e,"bx--visually-hidden",l[7])},m(a,o){V(a,e,o),s&&s.m(e,null),t=!0},p(a,o){i?i.p&&(!t||o&32768)&&de(i,n,a,a[15],t?me(n,a[15],o,st):_e(a[15]),pe):s&&s.p&&(!t||o&64)&&s.p(a,t?o:-1),(!t||o&128)&&E(e,"bx--visually-hidden",a[7])},i(a){t||(k(s,a),t=!0)},o(a){T(s,a),t=!1},d(a){a&&p(e),s&&s.d(a)}}}function rt(l){let e;return{c(){e=O(l[6])},l(t){e=Y(t,l[6])},m(t,n){V(t,e,n)},p(t,n){n&64&&be(e,t[6])},d(t){t&&p(e)}}}function ot(l){let e,t,n,i,s,a,o,r,u,d=(l[6]||l[13].labelText)&&ke(l),g=[l[12]],c={};for(let _=0;_{d=null}),ee()),(!o||h&256)&&H(i,"for",_[8]),W(e,c=oe(g,[h&4096&&_[12]])),E(e,"bx--radio-button-wrapper",!0),E(e,"bx--radio-button-wrapper--label-left",_[5]==="left")},i(_){o||(k(d),o=!0)},o(_){T(d),o=!1},d(_){_&&p(e),l[18](null),d&&d.d(),r=!1,ue(u)}}}function ut(l,e,t){const n=["value","checked","disabled","required","labelPosition","labelText","hideLabel","id","name","ref"];let i=X(e,n),s,{$$slots:a={},$$scope:o}=e;const r=qe(a);let{value:u=""}=e,{checked:d=!1}=e,{disabled:g=!1}=e,{required:c=!1}=e,{labelPosition:_="right"}=e,{labelText:h=""}=e,{hideLabel:f=!1}=e,{id:b="ccs-"+Math.random().toString(36)}=e,{name:v=""}=e,{ref:y=null}=e;const j=ze("RadioButtonGroup"),K=j?j.selectedValue:Ce(d?u:void 0);se(l,K,I=>t(14,s=I)),j&&j.add({id:b,checked:d,disabled:g,value:u});function G(I){q.call(this,l,I)}function m(I){Z[I?"unshift":"push"](()=>{y=I,t(1,y)})}const J=()=>{j&&j.update(u)};return l.$$set=I=>{e=M(M({},e),fe(I)),t(12,i=X(e,n)),"value"in I&&t(2,u=I.value),"checked"in I&&t(0,d=I.checked),"disabled"in I&&t(3,g=I.disabled),"required"in I&&t(4,c=I.required),"labelPosition"in I&&t(5,_=I.labelPosition),"labelText"in I&&t(6,h=I.labelText),"hideLabel"in I&&t(7,f=I.hideLabel),"id"in I&&t(8,b=I.id),"name"in I&&t(9,v=I.name),"ref"in I&&t(1,y=I.ref),"$$scope"in I&&t(15,o=I.$$scope)},l.$$.update=()=>{l.$$.dirty&16388&&t(0,d=s===u)},[d,y,u,g,c,_,h,f,b,v,j,K,i,r,s,o,a,G,m,J]}class ft extends te{constructor(e){super(),le(this,e,ut,ot,x,{value:2,checked:0,disabled:3,required:4,labelPosition:5,labelText:6,hideLabel:7,id:8,name:9,ref:1})}}const ct=ft;function dt(l){let e,t,n,i;const s=l[3].default,a=ce(s,l,l[2],null);let o=[l[1]],r={};for(let u=0;u{o=f,t(0,o)})}return l.$$set=f=>{e=M(M({},e),fe(f)),t(1,i=X(e,n)),"ref"in f&&t(0,o=f.ref),"$$scope"in f&&t(2,a=f.$$scope)},[o,i,a,s,r,u,d,g,c,_,h]}class mt extends te{constructor(e){super(),le(this,e,_t,dt,x,{ref:0})}}const bt=mt;function Te(l){let e,t,n;return{c(){e=D("legend"),t=O(l[4]),this.h()},l(i){e=N(i,"LEGEND",{id:!0});var s=P(e);t=Y(s,l[4]),s.forEach(p),this.h()},h(){H(e,"id",n=l[5]||l[6]["aria-labelledby"]),E(e,"bx--label",!0)},m(i,s){V(i,e,s),S(e,t)},p(i,s){s&16&&be(t,i[4]),s&96&&n!==(n=i[5]||i[6]["aria-labelledby"])&&H(e,"id",n)},d(i){i&&p(e)}}}function Ee(l){let e,t;return{c(){e=D("div"),t=O(l[3]),this.h()},l(n){e=N(n,"DIV",{});var i=P(e);t=Y(i,l[3]),i.forEach(p),this.h()},h(){E(e,"bx--form__requirement",!0)},m(n,i){V(n,e,i),S(e,t)},p(n,i){i&8&&be(t,n[3])},d(n){n&&p(e)}}}function ht(l){let e,t,n,i,s,a,o,r,u=l[4]&&Te(l);const d=l[8].default,g=ce(d,l,l[7],null);let c=l[2]&&Ee(l),_=[{"data-invalid":i=l[1]||void 0},{"aria-labelledby":s=l[6]["aria-labelledby"]||l[5]},l[6]],h={};for(let f=0;f<_.length;f+=1)h=M(h,_[f]);return{c(){e=D("fieldset"),u&&u.c(),t=U(),g&&g.c(),n=U(),c&&c.c(),this.h()},l(f){e=N(f,"FIELDSET",{"data-invalid":!0,"aria-labelledby":!0});var b=P(e);u&&u.l(b),t=z(b),g&&g.l(b),n=z(b),c&&c.l(b),b.forEach(p),this.h()},h(){W(e,h),E(e,"bx--fieldset",!0),E(e,"bx--fieldset--no-margin",l[0])},m(f,b){V(f,e,b),u&&u.m(e,null),S(e,t),g&&g.m(e,null),S(e,n),c&&c.m(e,null),a=!0,o||(r=[A(e,"click",l[9]),A(e,"mouseover",l[10]),A(e,"mouseenter",l[11]),A(e,"mouseleave",l[12])],o=!0)},p(f,[b]){f[4]?u?u.p(f,b):(u=Te(f),u.c(),u.m(e,t)):u&&(u.d(1),u=null),g&&g.p&&(!a||b&128)&&de(g,d,f,f[7],a?me(d,f[7],b,null):_e(f[7]),null),f[2]?c?c.p(f,b):(c=Ee(f),c.c(),c.m(e,null)):c&&(c.d(1),c=null),W(e,h=oe(_,[(!a||b&2&&i!==(i=f[1]||void 0))&&{"data-invalid":i},(!a||b&96&&s!==(s=f[6]["aria-labelledby"]||f[5]))&&{"aria-labelledby":s},b&64&&f[6]])),E(e,"bx--fieldset",!0),E(e,"bx--fieldset--no-margin",f[0])},i(f){a||(k(g,f),a=!0)},o(f){T(g,f),a=!1},d(f){f&&p(e),u&&u.d(),g&&g.d(f),c&&c.d(),o=!1,ue(r)}}}function gt(l,e,t){const n=["noMargin","invalid","message","messageText","legendText","legendId"];let i=X(e,n),{$$slots:s={},$$scope:a}=e,{noMargin:o=!1}=e,{invalid:r=!1}=e,{message:u=!1}=e,{messageText:d=""}=e,{legendText:g=""}=e,{legendId:c=""}=e;function _(v){q.call(this,l,v)}function h(v){q.call(this,l,v)}function f(v){q.call(this,l,v)}function b(v){q.call(this,l,v)}return l.$$set=v=>{e=M(M({},e),fe(v)),t(6,i=X(e,n)),"noMargin"in v&&t(0,o=v.noMargin),"invalid"in v&&t(1,r=v.invalid),"message"in v&&t(2,u=v.message),"messageText"in v&&t(3,d=v.messageText),"legendText"in v&&t(4,g=v.legendText),"legendId"in v&&t(5,c=v.legendId),"$$scope"in v&&t(7,a=v.$$scope)},[o,r,u,d,g,c,i,a,s,_,h,f,b]}class vt extends te{constructor(e){super(),le(this,e,gt,ht,x,{noMargin:0,invalid:1,message:2,messageText:3,legendText:4,legendId:5})}}const Se=vt;function pt(l){let e,t,n,i,s,a,o=[l[0]],r={};for(let u=0;u{e=M(M({},e),fe(u)),t(0,i=X(e,n))},[i,s,a,o,r]}class Tt extends te{constructor(e){super(),le(this,e,kt,pt,x,{})}}const Et=Tt,St=l=>({}),Ie=l=>({});function ye(l){let e,t;const n=l[11].legendText,i=ce(n,l,l[10],Ie),s=i||It(l);return{c(){e=D("legend"),s&&s.c(),this.h()},l(a){e=N(a,"LEGEND",{});var o=P(e);s&&s.l(o),o.forEach(p),this.h()},h(){E(e,"bx--label",!0),E(e,"bx--visually-hidden",l[2])},m(a,o){V(a,e,o),s&&s.m(e,null),t=!0},p(a,o){i?i.p&&(!t||o&1024)&&de(i,n,a,a[10],t?me(n,a[10],o,St):_e(a[10]),Ie):s&&s.p&&(!t||o&2)&&s.p(a,t?o:-1),(!t||o&4)&&E(e,"bx--visually-hidden",a[2])},i(a){t||(k(s,a),t=!0)},o(a){T(s,a),t=!1},d(a){a&&p(e),s&&s.d(a)}}}function It(l){let e;return{c(){e=O(l[1])},l(t){e=Y(t,l[1])},m(t,n){V(t,e,n)},p(t,n){n&2&&be(e,t[1])},d(t){t&&p(e)}}}function yt(l){let e,t,n,i,s,a,o=(l[1]||l[8].legendText)&&ye(l);const r=l[11].default,u=ce(r,l,l[10],null);let d=[{id:l[5]},l[7]],g={};for(let c=0;c{o=null}),ee()),u&&u.p&&(!i||_&1024)&&de(u,r,c,c[10],i?me(r,c[10],_,null):_e(c[10]),null),(!i||_&1)&&(t.disabled=c[0]),(!i||_&16)&&E(t,"bx--radio-button-group--vertical",c[4]==="vertical"),(!i||_&8)&&E(t,"bx--radio-button-group--label-left",c[3]==="left"),(!i||_&8)&&E(t,"bx--radio-button-group--label-right",c[3]==="right"),W(e,g=oe(d,[(!i||_&32)&&{id:c[5]},_&128&&c[7]])),E(e,"bx--form-item",!0)},i(c){i||(k(o),k(u,c),i=!0)},o(c){T(o),T(u,c),i=!1},d(c){c&&p(e),o&&o.d(),u&&u.d(c),s=!1,ue(a)}}}function Dt(l,e,t){const n=["selected","disabled","legendText","hideLegend","labelPosition","orientation","id"];let i=X(e,n),s,{$$slots:a={},$$scope:o}=e;const r=qe(a);let{selected:u=void 0}=e,{disabled:d=!1}=e,{legendText:g=""}=e,{hideLegend:c=!1}=e,{labelPosition:_="right"}=e,{orientation:h="horizontal"}=e,{id:f=void 0}=e;const b=Ke(),v=Ce(u);se(l,v,m=>t(16,s=m)),Je("RadioButtonGroup",{selectedValue:v,add:({checked:m,value:J})=>{m&&v.set(J)},update:m=>{t(9,u=m)}}),Oe(()=>{ve(v,s=u,s)}),Ye(()=>{ve(v,s=u,s)}),v.subscribe(m=>{t(9,u=m),b("change",m)});function y(m){q.call(this,l,m)}function j(m){q.call(this,l,m)}function K(m){q.call(this,l,m)}function G(m){q.call(this,l,m)}return l.$$set=m=>{e=M(M({},e),fe(m)),t(7,i=X(e,n)),"selected"in m&&t(9,u=m.selected),"disabled"in m&&t(0,d=m.disabled),"legendText"in m&&t(1,g=m.legendText),"hideLegend"in m&&t(2,c=m.hideLegend),"labelPosition"in m&&t(3,_=m.labelPosition),"orientation"in m&&t(4,h=m.orientation),"id"in m&&t(5,f=m.id),"$$scope"in m&&t(10,o=m.$$scope)},[d,g,c,_,h,f,v,i,r,u,o,a,y,j,K,G]}class Nt extends te{constructor(e){super(),le(this,e,Dt,yt,x,{selected:9,disabled:0,legendText:1,hideLegend:2,labelPosition:3,orientation:4,id:5})}}const Pt=Nt,je="huggingface",he=l=>Fe({queryFn:()=>fetch(`https://datasets-server.huggingface.co/is-valid?dataset=${l}`).then(e=>e.status===200),queryKey:[je,"isValid",l]}),He=(l,e)=>Fe({queryFn:()=>fetch(`https://datasets-server.huggingface.co/splits?dataset=${l}&config=${e||""}`).then(t=>t.json()),queryKey:[je,"getSplits",l,e],select:t=>t.splits});function Vt(l){let e,t,n;function i(a){l[14](a)}let s={invalid:l[1],invalidText:l[2],labelText:"Config",placeholder:"(optional)"};return l[0]!==void 0&&(s.value=l[0]),e=new re({props:s}),Z.push(()=>ne(e,"value",i)),{c(){F(e.$$.fragment)},l(a){B(e.$$.fragment,a)},m(a,o){Q(e,a,o),n=!0},p(a,o){const r={};o&2&&(r.invalid=a[1]),o&4&&(r.invalidText=a[2]),!t&&o&1&&(t=!0,r.value=a[0],ie(()=>t=!1)),e.$set(r)},i(a){n||(k(e.$$.fragment,a),n=!0)},o(a){T(e.$$.fragment,a),n=!1},d(a){C(e,a)}}}function Lt(l){let e,t;return e=new Qe({props:{value:l[0]||"",invalid:l[1],invalidText:l[2],warn:!l[3],warnText:"Dataset doesn't exist",titleText:"Config",placeholder:"(optional)",items:l[4]}}),e.$on("select",l[12]),e.$on("clear",l[13]),{c(){F(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,i){const s={};i&1&&(s.value=n[0]||""),i&2&&(s.invalid=n[1]),i&4&&(s.invalidText=n[2]),i&8&&(s.warn=!n[3]),i&16&&(s.items=n[4]),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function At(l){let e,t,n,i;const s=[Lt,Vt],a=[];function o(r,u){return r[4]&&r[3]?0:1}return e=o(l),t=a[e]=s[e](l),{c(){t.c(),n=w()},l(r){t.l(r),n=w()},m(r,u){a[e].m(r,u),V(r,n,u),i=!0},p(r,[u]){let d=e;e=o(r),e===d?a[e].p(r,u):($(),T(a[d],1,1,()=>{a[d]=null}),ee(),t=a[e],t?t.p(r,u):(t=a[e]=s[e](r),t.c()),k(t,1),t.m(n.parentNode,n))},i(r){i||(k(t),i=!0)},o(r){T(t),i=!1},d(r){a[e].d(r),r&&p(n)}}}function qt(l,e,t){let n,i,s,a,o,r,u,d=R,g=()=>(d(),d=ae(a,m=>t(10,u=m)),a),c,_=R,h=()=>(_(),_=ae(i,m=>t(11,c=m)),i);l.$$.on_destroy.push(()=>d()),l.$$.on_destroy.push(()=>_());let{value:f}=e,{invalid:b}=e,{invalidText:v}=e,{rootValue:y}=e;const j=m=>{var J;return t(0,f=(J=m.detail.selectedItem)==null?void 0:J.id)},K=()=>t(0,f=void 0);function G(m){f=m,t(0,f)}return l.$$set=m=>{"value"in m&&t(0,f=m.value),"invalid"in m&&t(1,b=m.invalid),"invalidText"in m&&t(2,v=m.invalidText),"rootValue"in m&&t(7,y=m.rootValue)},l.$$.update=()=>{l.$$.dirty&128&&t(9,n=y.dataset_name),l.$$.dirty&512&&h(t(6,i=he(n))),l.$$.dirty&2048&&t(3,s=c.data===!0),l.$$.dirty&520&&g(t(5,a=s?He(n):void 0)),l.$$.dirty&1024&&t(8,o=u!=null&&u.data?new Set(u.data.map(m=>m.config)):void 0),l.$$.dirty&256&&t(4,r=o?[...o].map(m=>({id:m,text:m})):void 0)},[f,b,v,s,r,a,i,y,o,n,u,c,j,K,G]}class De extends te{constructor(e){super(),le(this,e,qt,At,x,{value:0,invalid:1,invalidText:2,rootValue:7})}}function Ft(l){let e,t,n;function i(a){l[6](a)}let s={invalid:l[1],invalidText:l[2],warn:!l[3],warnText:"Dataset doesn't exist"};return l[0]!==void 0&&(s.value=l[0]),e=new re({props:s}),Z.push(()=>ne(e,"value",i)),{c(){F(e.$$.fragment)},l(a){B(e.$$.fragment,a)},m(a,o){Q(e,a,o),n=!0},p(a,[o]){const r={};o&2&&(r.invalid=a[1]),o&4&&(r.invalidText=a[2]),o&8&&(r.warn=!a[3]),!t&&o&1&&(t=!0,r.value=a[0],ie(()=>t=!1)),e.$set(r)},i(a){n||(k(e.$$.fragment,a),n=!0)},o(a){T(e.$$.fragment,a),n=!1},d(a){C(e,a)}}}function Bt(l,e,t){let n,i,s,a=R,o=()=>(a(),a=ae(n,c=>t(5,s=c)),n);l.$$.on_destroy.push(()=>a());let{value:r}=e,{invalid:u}=e,{invalidText:d}=e;function g(c){r=c,t(0,r)}return l.$$set=c=>{"value"in c&&t(0,r=c.value),"invalid"in c&&t(1,u=c.invalid),"invalidText"in c&&t(2,d=c.invalidText)},l.$$.update=()=>{l.$$.dirty&1&&o(t(4,n=he(r))),l.$$.dirty&32&&t(3,i=s.data===!0)},[r,u,d,i,n,s,g]}class Ne extends te{constructor(e){super(),le(this,e,Bt,Ft,x,{value:0,invalid:1,invalidText:2})}}function Qt(l){let e,t,n;function i(a){l[14](a)}let s={invalid:l[1],invalidText:l[2],labelText:"Split",placeholder:"(optional)"};return l[0]!==void 0&&(s.value=l[0]),e=new re({props:s}),Z.push(()=>ne(e,"value",i)),{c(){F(e.$$.fragment)},l(a){B(e.$$.fragment,a)},m(a,o){Q(e,a,o),n=!0},p(a,o){const r={};o&2&&(r.invalid=a[1]),o&4&&(r.invalidText=a[2]),!t&&o&1&&(t=!0,r.value=a[0],ie(()=>t=!1)),e.$set(r)},i(a){n||(k(e.$$.fragment,a),n=!0)},o(a){T(e.$$.fragment,a),n=!1},d(a){C(e,a)}}}function Ct(l){let e,t;return e=new Qe({props:{invalid:l[1],invalidText:l[2],warn:!l[3],warnText:"Dataset doesn't exist",titleText:"Split",placeholder:"(optional)",items:l[4]}}),e.$on("select",l[12]),e.$on("clear",l[13]),{c(){F(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,i){const s={};i&2&&(s.invalid=n[1]),i&4&&(s.invalidText=n[2]),i&8&&(s.warn=!n[3]),i&16&&(s.items=n[4]),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function jt(l){let e,t,n,i;const s=[Ct,Qt],a=[];function o(r,u){return r[4]&&r[3]?0:1}return e=o(l),t=a[e]=s[e](l),{c(){t.c(),n=w()},l(r){t.l(r),n=w()},m(r,u){a[e].m(r,u),V(r,n,u),i=!0},p(r,[u]){let d=e;e=o(r),e===d?a[e].p(r,u):($(),T(a[d],1,1,()=>{a[d]=null}),ee(),t=a[e],t?t.p(r,u):(t=a[e]=s[e](r),t.c()),k(t,1),t.m(n.parentNode,n))},i(r){i||(k(t),i=!0)},o(r){T(t),i=!1},d(r){a[e].d(r),r&&p(n)}}}function Ht(l,e,t){let n,i,s,a,o,r,u,d=R,g=()=>(d(),d=ae(o,m=>t(10,u=m)),o),c,_=R,h=()=>(_(),_=ae(s,m=>t(11,c=m)),s);l.$$.on_destroy.push(()=>d()),l.$$.on_destroy.push(()=>_());let{value:f}=e,{invalid:b}=e,{invalidText:v}=e,{rootValue:y}=e;const j=m=>t(0,f=m.detail.selectedId.split("/")[1]),K=()=>t(0,f=void 0);function G(m){f=m,t(0,f)}return l.$$set=m=>{"value"in m&&t(0,f=m.value),"invalid"in m&&t(1,b=m.invalid),"invalidText"in m&&t(2,v=m.invalidText),"rootValue"in m&&t(7,y=m.rootValue)},l.$$.update=()=>{var m;l.$$.dirty&128&&t(9,n=y.dataset_name),l.$$.dirty&128&&t(8,i=y.config_name),l.$$.dirty&512&&h(t(6,s=he(n))),l.$$.dirty&2048&&t(3,a=c.data===!0),l.$$.dirty&776&&g(t(5,o=a?He(n,i):void 0)),l.$$.dirty&1024&&t(4,r=(m=u==null?void 0:u.data)==null?void 0:m.map(J=>({id:`${J.config}/${J.split}`,text:`${J.config}/${J.split}`})))},[f,b,v,a,r,o,s,y,i,n,u,c,j,K,G]}class Pe extends te{constructor(e){super(),le(this,e,Ht,jt,x,{value:0,invalid:1,invalidText:2,rootValue:7})}}function Mt(l){const e=l.slice(),t=e[11].data;return e[23]=t,e}function Ve(l,e,t){const n=l.slice();return n[24]=e[t],n}function Gt(l){let e,t,n,i,s,a,o,r,u;return{c(){e=D("div"),t=D("span"),n=O("You do not have authorization to create a dataset."),i=U(),s=D("span"),a=O("For HuggingFace spaces, fork this space and set "),o=D("span"),r=O("LILAC_AUTH_ENABLED"),u=O(" environment flag to 'false' from settings."),this.h()},l(d){e=N(d,"DIV",{class:!0});var g=P(e);t=N(g,"SPAN",{class:!0});var c=P(t);n=Y(c,"You do not have authorization to create a dataset."),c.forEach(p),i=z(g),s=N(g,"SPAN",{});var _=P(s);a=Y(_,"For HuggingFace spaces, fork this space and set "),o=N(_,"SPAN",{class:!0});var h=P(o);r=Y(h,"LILAC_AUTH_ENABLED"),h.forEach(p),u=Y(_," environment flag to 'false' from settings."),_.forEach(p),g.forEach(p),this.h()},h(){H(t,"class","mb-2"),H(o,"class","font-mono"),H(e,"class","mt-4 flex flex-col border border-neutral-100 bg-red-100 p-2")},m(d,g){V(d,e,g),S(e,t),S(t,n),S(e,i),S(e,s),S(s,a),S(s,o),S(o,r),S(s,u)},p:R,i:R,o:R,d(d){d&&p(e)}}}function Rt(l){let e,t;return e=new bt({props:{class:"py-8",$$slots:{default:[xt]},$$scope:{ctx:l}}}),{c(){F(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,i){const s={};i&134221055&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function Ut(l){let e,t,n,i,s,a,o,r,u,d;function g(f){l[17](f)}let c={labelText:"namespace",invalid:l[5]!=null,invalidText:l[5]};l[0]!==void 0&&(c.value=l[0]),t=new re({props:c}),Z.push(()=>ne(t,"value",g));function _(f){l[18](f)}let h={labelText:"name",invalid:l[6]!=null,invalidText:l[6]};return l[1]!==void 0&&(h.value=l[1]),r=new re({props:h}),Z.push(()=>ne(r,"value",_)),{c(){e=D("div"),F(t.$$.fragment),i=U(),s=D("span"),a=O("/"),o=U(),F(r.$$.fragment),this.h()},l(f){e=N(f,"DIV",{class:!0});var b=P(e);B(t.$$.fragment,b),i=z(b),s=N(b,"SPAN",{class:!0});var v=P(s);a=Y(v,"/"),v.forEach(p),o=z(b),B(r.$$.fragment,b),b.forEach(p),this.h()},h(){H(s,"class","mx-4 mt-6 text-lg"),H(e,"class","flex flex-row content-start")},m(f,b){V(f,e,b),Q(t,e,null),S(e,i),S(e,s),S(s,a),S(e,o),Q(r,e,null),d=!0},p(f,b){const v={};b&32&&(v.invalid=f[5]!=null),b&32&&(v.invalidText=f[5]),!n&&b&1&&(n=!0,v.value=f[0],ie(()=>n=!1)),t.$set(v);const y={};b&64&&(y.invalid=f[6]!=null),b&64&&(y.invalidText=f[6]),!u&&b&2&&(u=!0,y.value=f[1],ie(()=>u=!1)),r.$set(y)},i(f){d||(k(t.$$.fragment,f),k(r.$$.fragment,f),d=!0)},o(f){T(t.$$.fragment,f),T(r.$$.fragment,f),d=!1},d(f){f&&p(e),C(t),C(r)}}}function zt(l){let e,t;return e=new Be({props:{kind:"error",title:"Error",subtitle:l[3].error.message,hideCloseButton:!0}}),{c(){F(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,i){const s={};i&8&&(s.subtitle=n[3].error.message),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function Kt(l){let e,t,n,i;function s(o){l[19](o)}let a={$$slots:{default:[Ot]},$$scope:{ctx:l}};return l[2]!==void 0&&(a.selected=l[2]),t=new Pt({props:a}),Z.push(()=>ne(t,"selected",s)),{c(){e=D("div"),F(t.$$.fragment)},l(o){e=N(o,"DIV",{});var r=P(e);B(t.$$.fragment,r),r.forEach(p)},m(o,r){V(o,e,r),Q(t,e,null),i=!0},p(o,r){const u={};r&134218752&&(u.$$scope={dirty:r,ctx:o}),!n&&r&4&&(n=!0,u.selected=o[2],ie(()=>n=!1)),t.$set(u)},i(o){i||(k(t.$$.fragment,o),i=!0)},o(o){T(t.$$.fragment,o),i=!1},d(o){o&&p(e),C(t)}}}function Jt(l){let e,t;return e=new Et({}),{c(){F(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p:R,i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function Le(l){let e,t;return e=new ct({props:{labelText:l[24],value:l[24]}}),{c(){F(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,i){const s={};i&1024&&(s.labelText=n[24]),i&1024&&(s.value=n[24]),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function Ot(l){let e,t,n=l[10],i=[];for(let a=0;aT(i[a],1,1,()=>{i[a]=null});return{c(){for(let a=0;ane(e,"value",s)),Z.push(()=>ne(e,"validationErrors",a)),{c(){F(e.$$.fragment)},l(r){B(e.$$.fragment,r)},m(r,u){Q(e,r,u),i=!0},p(r,u){const d={};u&2048&&(d.schema=r[23]),u&4&&(d.customComponents=r[2]==="huggingface"?{"/dataset_name":Ne,"/split":Pe,"/config_name":De}:{}),!t&&u&128&&(t=!0,d.value=r[7],ie(()=>t=!1)),!n&&u&16&&(n=!0,d.validationErrors=r[4],ie(()=>n=!1)),e.$set(d)},i(r){i||(k(e.$$.fragment,r),i=!0)},o(r){T(e.$$.fragment,r),i=!1},d(r){C(e,r)}}}function Zt(l){let e,t,n,i,s,a,o;const r=[Jt,Kt,zt],u=[];function d(f,b){return f[3].isFetching?0:f[10]!=null?1:f[3].isError?2:-1}~(e=d(l))&&(t=u[e]=r[e](l));const g=[Xt,Wt,Yt],c=[];function _(f,b){return f[11].isSuccess?0:f[11].isError?1:f[11].isLoading?2:-1}function h(f,b){return b===0?Mt(f):f}return~(i=_(l))&&(s=c[i]=g[i](h(l,i))),{c(){t&&t.c(),n=U(),s&&s.c(),a=w()},l(f){t&&t.l(f),n=z(f),s&&s.l(f),a=w()},m(f,b){~e&&u[e].m(f,b),V(f,n,b),~i&&c[i].m(f,b),V(f,a,b),o=!0},p(f,b){let v=e;e=d(f),e===v?~e&&u[e].p(f,b):(t&&($(),T(u[v],1,1,()=>{u[v]=null}),ee()),~e?(t=u[e],t?t.p(f,b):(t=u[e]=r[e](f),t.c()),k(t,1),t.m(n.parentNode,n)):t=null);let y=i;i=_(f),i===y?~i&&c[i].p(h(f,i),b):(s&&($(),T(c[y],1,1,()=>{c[y]=null}),ee()),~i?(s=c[i],s?s.p(h(f,i),b):(s=c[i]=g[i](h(f,i)),s.c()),k(s,1),s.m(a.parentNode,a)):s=null)},i(f){o||(k(t),k(s),o=!0)},o(f){T(t),T(s),o=!1},d(f){~e&&u[e].d(f),f&&p(n),~i&&c[i].d(f),f&&p(a)}}}function wt(l){let e;return{c(){e=O("Add")},l(t){e=Y(t,"Add")},m(t,n){V(t,e,n)},d(t){t&&p(e)}}}function xt(l){var o;let e,t,n,i,s,a;return e=new Se({props:{legendText:"Name",$$slots:{default:[Ut]},$$scope:{ctx:l}}}),n=new Se({props:{legendText:"Data Loader",$$slots:{default:[Zt]},$$scope:{ctx:l}}}),s=new tt({props:{disabled:((o=l[4])==null?void 0:o.length)>0||l[6]!=null||l[5]!=null,$$slots:{default:[wt]},$$scope:{ctx:l}}}),s.$on("click",l[15]),{c(){F(e.$$.fragment),t=U(),F(n.$$.fragment),i=U(),F(s.$$.fragment)},l(r){B(e.$$.fragment,r),t=z(r),B(n.$$.fragment,r),i=z(r),B(s.$$.fragment,r)},m(r,u){Q(e,r,u),V(r,t,u),Q(n,r,u),V(r,i,u),Q(s,r,u),a=!0},p(r,u){var _;const d={};u&134217827&&(d.$$scope={dirty:u,ctx:r}),e.$set(d);const g={};u&134220956&&(g.$$scope={dirty:u,ctx:r}),n.$set(g);const c={};u&112&&(c.disabled=((_=r[4])==null?void 0:_.length)>0||r[6]!=null||r[5]!=null),u&134217728&&(c.$$scope={dirty:u,ctx:r}),s.$set(c)},i(r){a||(k(e.$$.fragment,r),k(n.$$.fragment,r),k(s.$$.fragment,r),a=!0)},o(r){T(e.$$.fragment,r),T(n.$$.fragment,r),T(s.$$.fragment,r),a=!1},d(r){C(e,r),r&&p(t),C(n,r),r&&p(i),C(s,r)}}}function $t(l){let e,t,n,i,s,a,o,r;const u=[Rt,Gt],d=[];function g(c,_){return c[9]?0:1}return a=g(l),o=d[a]=u[a](l),{c(){e=D("div"),t=D("div"),n=D("h2"),i=O("Add dataset"),s=U(),o.c(),this.h()},l(c){e=N(c,"DIV",{class:!0});var _=P(e);t=N(_,"DIV",{class:!0});var h=P(t);n=N(h,"H2",{});var f=P(n);i=Y(f,"Add dataset"),f.forEach(p),s=z(h),o.l(h),h.forEach(p),_.forEach(p),this.h()},h(){H(t,"class","new-form mx-auto flex h-full max-w-xl flex-col"),H(e,"class","flex h-full w-full gap-y-4 overflow-y-scroll p-4")},m(c,_){V(c,e,_),S(e,t),S(t,n),S(n,i),S(t,s),d[a].m(t,null),r=!0},p(c,_){let h=a;a=g(c),a===h?d[a].p(c,_):($(),T(d[h],1,1,()=>{d[h]=null}),ee(),o=d[a],o?o.p(c,_):(o=d[a]=u[a](c),o.c()),k(o,1),o.m(t,null))},i(c){r||(k(o),r=!0)},o(c){T(o),r=!1},d(c){c&&p(e),d[a].d()}}}function el(l){let e,t;return e=new it({props:{$$slots:{default:[$t]},$$scope:{ctx:l}}}),{c(){F(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,[i]){const s={};i&134221567&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function tl(l,e,t){let n,i,s,a,o,r,u,d=R,g=()=>(d(),d=ae(s,L=>t(11,u=L)),s);l.$$.on_destroy.push(()=>d());const c=Ze();se(l,c,L=>t(3,r=L));const _=we();se(l,_,L=>t(22,a=L));const h=xe();se(l,h,L=>t(16,o=L));let f="local",b="",v="huggingface",y=[],j,K,G={};function m(){y.length||a.mutate([v,{namespace:f,dataset_name:b,config:G}],{onSuccess:L=>{et(L.task_id,()=>{Xe(at(f,b))})}})}function J(L){f=L,t(0,f)}function I(L){b=L,t(1,b)}function Me(L){v=L,t(2,v)}function Ge(L){G=L,t(7,G),t(2,v)}function Re(L){y=L,t(4,y)}return l.$$.update=()=>{var L,ge;l.$$.dirty&8&&t(10,n=(L=r.data)==null?void 0:L.sources.filter(Ue=>Ue!=="pandas")),l.$$.dirty&65536&&t(9,i=(ge=o.data)==null?void 0:ge.access.create_dataset),l.$$.dirty&1&&(f==null||f==""?t(5,j="Enter a namespace"):f.includes("/")?t(5,j='Namespace cannot contain "/"'):t(5,j=void 0)),l.$$.dirty&2&&(b==null||b==""?t(6,K="Enter a name"):b.includes("/")?t(6,K='Name cannot contain "/"'):t(6,K=void 0)),l.$$.dirty&4&&g(t(8,s=$e(v))),l.$$.dirty&4&&t(7,G.source_name=v,G)},[f,b,v,r,y,j,K,G,s,i,n,u,c,_,h,m,o,J,I,Me,Ge,Re]}class ul extends te{constructor(e){super(),le(this,e,tl,el,x,{})}}export{ul as component}; diff --git a/lilac/web/_app/immutable/nodes/6.23e058bb.js b/lilac/web/_app/immutable/nodes/6.23e058bb.js new file mode 100644 index 0000000000000000000000000000000000000000..d23a541c7a9f5419a1714c9e282988ed5bed005d --- /dev/null +++ b/lilac/web/_app/immutable/nodes/6.23e058bb.js @@ -0,0 +1,3 @@ +import{S as Q,i as R,s as U,y as I,z as C,A as D,g as _,d as b,B as V,k as x,q as A,a as F,l as S,m as E,r as J,h,c as O,n as w,b as K,J as m,v as L,f as M,a1 as P,ab as Z,e as j,a4 as W}from"../chunks/index.27e2a960.js";import{P as X}from"../chunks/Page.7d66a333.js";import{Z as Y,S as ee,ak as te,b as se}from"../chunks/Commands.2fa1e469.js";import{g as ne}from"../chunks/settingsStore.a935cb75.js";function G(o,t,n){const e=o.slice();return e[5]=t[n],e}function le(o){let t,n;return t=new ee({props:{labelText:"Preferred embedding",selected:o[3].embedding,$$slots:{default:[ae]},$$scope:{ctx:o}}}),t.$on("change",o[4]),{c(){I(t.$$.fragment)},l(e){C(t.$$.fragment,e)},m(e,s){D(t,e,s),n=!0},p(e,s){const c={};s&8&&(c.selected=e[3].embedding),s&260&&(c.$$scope={dirty:s,ctx:e}),t.$set(c)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function re(o){let t,n;return t=new te({}),{c(){I(t.$$.fragment)},l(e){C(t.$$.fragment,e)},m(e,s){D(t,e,s),n=!0},p:P,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function H(o){let t,n;return t=new se({props:{value:o[5].name}}),{c(){I(t.$$.fragment)},l(e){C(t.$$.fragment,e)},m(e,s){D(t,e,s),n=!0},p(e,s){const c={};s&4&&(c.value=e[5].name),t.$set(c)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function ae(o){let t,n,e=o[2].data||[],s=[];for(let l=0;lb(s[l],1,1,()=>{s[l]=null});return{c(){for(let l=0;l{p[k]=null}),M(),i=p[f],i?i.p(u,$):(i=p[f]=T[f](u),i.c()),_(i,1),i.m(g,null))},i(u){v||(_(i),v=!0)},o(u){b(i),v=!1},d(u){u&&h(t),p[f].d()}}}function ce(o){let t,n;return t=new X({props:{$$slots:{default:[oe]},$$scope:{ctx:o}}}),{c(){I(t.$$.fragment)},l(e){C(t.$$.fragment,e)},m(e,s){D(t,e,s),n=!0},p(e,[s]){const c={};s&268&&(c.$$scope={dirty:s,ctx:e}),t.$set(c)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function ie(o,t,n){let e,s,c,l=P,a=()=>(l(),l=Z(e,i=>n(2,c=i)),e),r,d=P,g=()=>(d(),d=Z(s,i=>n(3,r=i)),s);o.$$.on_destroy.push(()=>l()),o.$$.on_destroy.push(()=>d());function f(i){const v=i.target.value;s.setEmbedding(v)}return a(n(1,e=Y())),g(n(0,s=ne())),[s,e,c,r,f]}class me extends Q{constructor(t){super(),R(this,t,ie,ce,U,{})}}export{me as component}; diff --git a/lilac/web/_app/immutable/nodes/7.515f40c3.js b/lilac/web/_app/immutable/nodes/7.515f40c3.js new file mode 100644 index 0000000000000000000000000000000000000000..4a688de4d304f21a79ebf2e5db8a51e8d9e29a80 --- /dev/null +++ b/lilac/web/_app/immutable/nodes/7.515f40c3.js @@ -0,0 +1 @@ +import{S as ke,i as we,s as re,k as V,q as Y,a as J,y,l as j,m as D,r as Z,h as d,c as M,z as P,n as F,H as ae,b as q,J as b,A as C,u as le,g as u,v as Q,d as _,f as G,B as T,o as Ie,w as ie,U as oe,V as fe,a1 as U,ab as ue,R as ce,e as me,K as Ve}from"../chunks/index.27e2a960.js";import{g as je}from"../chunks/navigation.06af7fa8.js";import{P as De}from"../chunks/Page.7d66a333.js";import{B as ye,aQ as Pe,av as Ce,aR as Te,aM as Fe,aS as He,aT as Re,aU as qe,ax as Ne,ay as Oe,H as Ae,aV as Je,d as se,g as Me,k as ze,e as Be}from"../chunks/Commands.2fa1e469.js";import{i as Ue}from"../chunks/notificationsStore.4af93bc4.js";import{T as Ke,a as _e,b as pe,R as Le}from"../chunks/RowItemMetadata.3e67c6f0.js";import{T as Se,S as Qe}from"../chunks/StringSpanHighlight.3d7a4bbd.js";import{s as Ge}from"../chunks/utils.97898c57.js";function de(s){let t,n,e;return n=new Te({props:{source:s[0].json_schema.description}}),{c(){t=V("div"),y(n.$$.fragment),this.h()},l(r){t=j(r,"DIV",{class:!0});var l=D(t);P(n.$$.fragment,l),l.forEach(d),this.h()},h(){F(t,"class","text text-base text-gray-600")},m(r,l){q(r,t,l),C(n,t,null),e=!0},p(r,l){const a={};l&1&&(a.source=r[0].json_schema.description),n.$set(a)},i(r){e||(u(n.$$.fragment,r),e=!0)},o(r){_(n.$$.fragment,r),e=!1},d(r){r&&d(t),T(n)}}}function We(s){let t;return{c(){t=Y("Compute")},l(n){t=Z(n,"Compute")},m(n,e){q(n,t,e)},d(n){n&&d(t)}}}function Xe(s){let t,n;return t=new Ke({props:{$$slots:{content:[tt],default:[Ze]},$$scope:{ctx:s}}}),{c(){y(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&8389594&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ye(s){let t,n;return t=new se({}),{c(){y(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p:U,i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ze(s){let t,n,e,r;return t=new _e({props:{label:"Preview"}}),e=new _e({props:{label:"Raw response"}}),{c(){y(t.$$.fragment),n=J(),y(e.$$.fragment)},l(l){P(t.$$.fragment,l),n=M(l),P(e.$$.fragment,l)},m(l,a){C(t,l,a),q(l,n,a),C(e,l,a),r=!0},p:U,i(l){r||(u(t.$$.fragment,l),u(e.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),_(e.$$.fragment,l),r=!1},d(l){T(t,l),l&&d(n),T(e,l)}}}function ge(s){let t,n;return t=new Qe({props:{text:s[1],row:s[6],spanPaths:s[3],valuePaths:s[7],embeddings:[]}}),{c(){y(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&2&&(l.text=e[1]),r&64&&(l.row=e[6]),r&8&&(l.spanPaths=e[3]),r&128&&(l.valuePaths=e[7]),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function $e(s){let t,n;return t=new Le({props:{row:s[6],visibleFields:s[8]}}),{c(){y(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&64&&(l.row=e[6]),r&256&&(l.visibleFields=e[8]),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function he(s){let t,n,e;return{c(){t=V("div"),n=V("div"),e=Y(s[9]),this.h()},l(r){t=j(r,"DIV",{class:!0});var l=D(t);n=j(l,"DIV",{class:!0});var a=D(n);e=Z(a,s[9]),a.forEach(d),l.forEach(d),this.h()},h(){F(n,"class","text text-base"),F(t,"class","flex flex-row items-center")},m(r,l){q(r,t,l),b(t,n),b(n,e)},p(r,l){l&512&&le(e,r[9])},d(r){r&&d(t)}}}function xe(s){let t,n,e,r,l=s[7].length>0&&ge(s),a=s[8].length>0&&$e(s),f=s[9]!=null&&he(s);return{c(){t=V("div"),l&&l.c(),n=J(),a&&a.c(),e=J(),f&&f.c(),this.h()},l(o){t=j(o,"DIV",{class:!0});var i=D(t);l&&l.l(i),n=M(i),a&&a.l(i),e=M(i),f&&f.l(i),i.forEach(d),this.h()},h(){F(t,"class","mt-2")},m(o,i){q(o,t,i),l&&l.m(t,null),b(t,n),a&&a.m(t,null),b(t,e),f&&f.m(t,null),r=!0},p(o,i){o[7].length>0?l?(l.p(o,i),i&128&&u(l,1)):(l=ge(o),l.c(),u(l,1),l.m(t,n)):l&&(Q(),_(l,1,1,()=>{l=null}),G()),o[8].length>0?a?(a.p(o,i),i&256&&u(a,1)):(a=$e(o),a.c(),u(a,1),a.m(t,e)):a&&(Q(),_(a,1,1,()=>{a=null}),G()),o[9]!=null?f?f.p(o,i):(f=he(o),f.c(),f.m(t,null)):f&&(f.d(1),f=null)},i(o){r||(u(l),u(a),r=!0)},o(o){_(l),_(a),r=!1},d(o){o&&d(t),l&&l.d(),a&&a.d(),f&&f.d()}}}function et(s){let t,n;return t=new Se({props:{value:JSON.stringify(s[4].data.items[0],null,2),readonly:!0,rows:10,class:"mb-2 font-mono"}}),{c(){y(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&16&&(l.value=JSON.stringify(e[4].data.items[0],null,2)),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function tt(s){let t,n,e,r;return t=new pe({props:{$$slots:{default:[xe]},$$scope:{ctx:s}}}),e=new pe({props:{$$slots:{default:[et]},$$scope:{ctx:s}}}),{c(){y(t.$$.fragment),n=J(),y(e.$$.fragment)},l(l){P(t.$$.fragment,l),n=M(l),P(e.$$.fragment,l)},m(l,a){C(t,l,a),q(l,n,a),C(e,l,a),r=!0},p(l,a){const f={};a&8389578&&(f.$$scope={dirty:a,ctx:l}),t.$set(f);const o={};a&8388624&&(o.$$scope={dirty:a,ctx:l}),e.$set(o)},i(l){r||(u(t.$$.fragment,l),u(e.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),_(e.$$.fragment,l),r=!1},d(l){T(t,l),l&&d(n),T(e,l)}}}function ve(s){var R;let t,n,e,r,l,a,f,o;function i(c){s[21](c)}function g(c){s[22](c)}let m={schema:s[0].json_schema,showDescription:!1,hiddenProperties:["/signal_name"],customComponents:s[16][(R=s[0])==null?void 0:R.name]};return s[2]!==void 0&&(m.value=s[2]),s[10]!==void 0&&(m.validationErrors=s[10]),l=new Fe({props:m}),ie.push(()=>oe(l,"value",i)),ie.push(()=>oe(l,"validationErrors",g)),{c(){t=V("div"),n=V("h4"),e=Y("Signal options"),r=J(),y(l.$$.fragment)},l(c){t=j(c,"DIV",{});var $=D(t);n=j($,"H4",{});var k=D(n);e=Z(k,"Signal options"),k.forEach(d),r=M($),P(l.$$.fragment,$),$.forEach(d)},m(c,$){q(c,t,$),b(t,n),b(n,e),b(t,r),C(l,t,null),o=!0},p(c,$){var K;const k={};$&1&&(k.schema=c[0].json_schema),$&1&&(k.customComponents=c[16][(K=c[0])==null?void 0:K.name]),!a&&$&4&&(a=!0,k.value=c[2],fe(()=>a=!1)),!f&&$&1024&&(f=!0,k.validationErrors=c[10],fe(()=>f=!1)),l.$set(k)},i(c){o||(u(l.$$.fragment,c),o=!0)},o(c){_(l.$$.fragment,c),o=!1},d(c){c&&d(t),T(l)}}}function nt(s){let t,n,e,r=s[0].json_schema.title+"",l,a,f,o,i,g,m,R,c,$,k,K,H,S,I,W,z,v=s[0].json_schema.description&&de(s);m=new Se({props:{value:s[5],cols:50,placeholder:"Paste text to try the signal.",rows:6,class:"mb-2"}}),m.$on("input",s[14]),k=new ye({props:{$$slots:{default:[We]},$$scope:{ctx:s}}}),k.$on("click",s[20]);const x=[Ye,Xe],N=[];function X(p,E){var O,h;return(O=p[4])!=null&&O.isFetching?0:p[6]!=null&&p[1]!=null&&((h=p[4])==null?void 0:h.data)!=null?1:-1}~(S=X(s))&&(I=N[S]=x[S](s));let w=s[11]&&ve(s);return{c(){t=V("div"),n=V("div"),e=V("div"),l=Y(r),a=J(),v&&v.c(),f=J(),o=V("div"),i=V("div"),g=V("div"),y(m.$$.fragment),R=J(),c=V("div"),$=V("div"),y(k.$$.fragment),K=J(),H=V("div"),I&&I.c(),W=J(),w&&w.c(),this.h()},l(p){t=j(p,"DIV",{class:!0});var E=D(t);n=j(E,"DIV",{});var O=D(n);e=j(O,"DIV",{class:!0});var h=D(e);l=Z(h,r),h.forEach(d),a=M(O),v&&v.l(O),O.forEach(d),f=M(E),o=j(E,"DIV",{class:!0});var B=D(o);i=j(B,"DIV",{class:!0});var A=D(i);g=j(A,"DIV",{});var L=D(g);P(m.$$.fragment,L),R=M(L),c=j(L,"DIV",{class:!0});var ee=D(c);$=j(ee,"DIV",{class:!0});var te=D($);P(k.$$.fragment,te),te.forEach(d),ee.forEach(d),L.forEach(d),K=M(A),H=j(A,"DIV",{class:!0});var ne=D(H);I&&I.l(ne),ne.forEach(d),W=M(A),w&&w.l(A),A.forEach(d),B.forEach(d),E.forEach(d),this.h()},h(){F(e,"class","mb-4 flex flex-row items-center text-2xl font-semibold"),F($,"class","pt-4"),F(c,"class","flex flex-row justify-between"),F(H,"class","mb-8 mt-4 border-gray-200 pt-4"),ae(H,"border-t",s[1]!=null),F(i,"class","flex w-full flex-col gap-x-8"),F(o,"class","w-full"),F(t,"class","flex h-full w-full flex-col gap-y-8 px-10")},m(p,E){q(p,t,E),b(t,n),b(n,e),b(e,l),b(n,a),v&&v.m(n,null),b(t,f),b(t,o),b(o,i),b(i,g),C(m,g,null),b(g,R),b(g,c),b(c,$),C(k,$,null),b(i,K),b(i,H),~S&&N[S].m(H,null),b(i,W),w&&w.m(i,null),z=!0},p(p,[E]){(!z||E&1)&&r!==(r=p[0].json_schema.title+"")&&le(l,r),p[0].json_schema.description?v?(v.p(p,E),E&1&&u(v,1)):(v=de(p),v.c(),u(v,1),v.m(n,null)):v&&(Q(),_(v,1,1,()=>{v=null}),G());const O={};E&32&&(O.value=p[5]),m.$set(O);const h={};E&8388608&&(h.$$scope={dirty:E,ctx:p}),k.$set(h);let B=S;S=X(p),S===B?~S&&N[S].p(p,E):(I&&(Q(),_(N[B],1,1,()=>{N[B]=null}),G()),~S?(I=N[S],I?I.p(p,E):(I=N[S]=x[S](p),I.c()),u(I,1),I.m(H,null)):I=null),(!z||E&2)&&ae(H,"border-t",p[1]!=null),p[11]?w?(w.p(p,E),E&2048&&u(w,1)):(w=ve(p),w.c(),u(w,1),w.m(i,null)):w&&(Q(),_(w,1,1,()=>{w=null}),G())},i(p){z||(u(v),u(m.$$.fragment,p),u(k.$$.fragment,p),u(I),u(w),z=!0)},o(p){_(v),_(m.$$.fragment,p),_(k.$$.fragment,p),_(I),_(w),z=!1},d(p){p&&d(t),v&&v.d(),T(m),T(k),~S&&N[S].d(),w&&w.d()}}}function lt(s,t,n){let e,r,l,a,f,o=U,i=()=>(o(),o=ue(l,h=>n(19,f=h)),l),g,m=U,R=()=>(m(),m=ue(r,h=>n(4,g=h)),r);s.$$.on_destroy.push(()=>o()),s.$$.on_destroy.push(()=>m());let{signalInfo:c}=t,{text:$=void 0}=t,k=($==null?void 0:$.trim())||"";Ie(()=>{$!=null&&I()});function K(h){n(5,k=h.target.value),n(1,H=void 0)}let H,S={};function I(){n(1,H=k)}let W,z,v,x,N,X=[];const w={concept_score:{"/namespace":He,"/concept_name":Re,"/embedding":qe}},p=()=>I();function E(h){S=h,n(2,S)}function O(h){X=h,n(10,X)}return s.$$set=h=>{"signalInfo"in h&&n(0,c=h.signalInfo),"text"in h&&n(17,$=h.text)},s.$$.update=()=>{var h,B;if(s.$$.dirty&131072&&$!=null&&(n(5,k=$.trim()),n(1,H=void 0)),s.$$.dirty&5&&n(18,e={...S,signal_name:c.name}),s.$$.dirty&262146&&R(n(13,r=H!=null?Pe({signal:e,inputs:[H]}):null)),s.$$.dirty&262144&&i(n(12,l=Ce({signal:e}))),s.$$.dirty&524312&&(g==null?void 0:g.data)!=null&&((h=f.data)==null?void 0:h.fields)!=null){n(9,N=null);const A=g.data.items[0],L=Ne(f.data.fields);n(6,W=Oe(A,L));const ee=Ue(L);n(3,v=ee.spanPaths),n(7,z=ee.valuePaths);const te=Ae(L);n(8,x=te.filter(ne=>!v.some(Ee=>Je(ne.path,Ee)))),te.length===0&&n(9,N=A)}s.$$.dirty&1&&n(11,a=Object.keys(((B=c==null?void 0:c.json_schema)==null?void 0:B.properties)||{}).filter(A=>A!="signal_name").length>0)},[c,H,S,v,g,k,W,z,x,N,X,a,l,r,K,I,w,$,e,f,p,E,O]}class rt extends ke{constructor(t){super(),we(this,t,lt,nt,re,{signalInfo:0,text:17})}}function st(s){let t=s[3],n,e,r=be(s);return{c(){r.c(),n=me()},l(l){r.l(l),n=me()},m(l,a){r.m(l,a),q(l,n,a),e=!0},p(l,a){a&8&&re(t,t=l[3])?(Q(),_(r,1,1,U),G(),r=be(l),r.c(),u(r,1),r.m(n.parentNode,n)):r.p(l,a)},i(l){e||(u(r),e=!0)},o(l){_(r),e=!1},d(l){l&&d(n),r.d(l)}}}function at(s){let t,n=s[1].error+"",e;return{c(){t=V("p"),e=Y(n)},l(r){t=j(r,"P",{});var l=D(t);e=Z(l,n),l.forEach(d)},m(r,l){q(r,t,l),b(t,e)},p(r,l){l&2&&n!==(n=r[1].error+"")&&le(e,n)},i:U,o:U,d(r){r&&d(t)}}}function it(s){let t,n;return t=new se({}),{c(){y(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p:U,i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function be(s){let t,n;return t=new rt({props:{signalInfo:s[3]}}),{c(){y(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&8&&(l.signalInfo=e[3]),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function ot(s){let t,n,e,r,l;const a=[it,at,st],f=[];function o(i,g){var m,R,c;return(m=i[1])!=null&&m.isFetching?0:(R=i[1])!=null&&R.isError?1:(c=i[1])!=null&&c.isSuccess&&i[3]?2:-1}return~(e=o(s))&&(r=f[e]=a[e](s)),{c(){t=V("div"),n=V("div"),r&&r.c(),this.h()},l(i){t=j(i,"DIV",{class:!0});var g=D(t);n=j(g,"DIV",{class:!0});var m=D(n);r&&r.l(m),m.forEach(d),g.forEach(d),this.h()},h(){F(n,"class","lilac-page flex w-full"),F(t,"class","flex h-full w-full overflow-x-hidden overflow-y-scroll")},m(i,g){q(i,t,g),b(t,n),~e&&f[e].m(n,null),l=!0},p(i,g){let m=e;e=o(i),e===m?~e&&f[e].p(i,g):(r&&(Q(),_(f[m],1,1,()=>{f[m]=null}),G()),~e?(r=f[e],r?r.p(i,g):(r=f[e]=a[e](i),r.c()),u(r,1),r.m(n,null)):r=null)},i(i){l||(u(r),l=!0)},o(i){_(r),l=!1},d(i){i&&d(t),~e&&f[e].d()}}}function ft(s){let t,n;return t=new Be({props:{type:"blue",$$slots:{default:[ct]},$$scope:{ctx:s}}}),{c(){y(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&261&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function ut(s){let t,n;return t=new se({}),{c(){y(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p:U,i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function ct(s){let t,n,e,r;return{c(){t=V("a"),n=Y(s[0]),this.h()},l(l){t=j(l,"A",{class:!0,href:!0});var a=D(t);n=Z(a,s[0]),a.forEach(d),this.h()},h(){F(t,"class","font-semibold text-black"),F(t,"href",s[2])},m(l,a){q(l,t,a),b(t,n),e||(r=Ve(t,"click",s[7]),e=!0)},p(l,a){a&1&&le(n,l[0]),a&4&&F(t,"href",l[2])},d(l){l&&d(t),e=!1,r()}}}function mt(s){let t,n,e,r;const l=[ut,ft],a=[];function f(o,i){return o[1].isFetching?0:1}return n=f(s),e=a[n]=l[n](s),{c(){t=V("div"),e.c(),this.h()},l(o){t=j(o,"DIV",{slot:!0});var i=D(t);e.l(i),i.forEach(d),this.h()},h(){F(t,"slot","header-subtext")},m(o,i){q(o,t,i),a[n].m(t,null),r=!0},p(o,i){let g=n;n=f(o),n===g?a[n].p(o,i):(Q(),_(a[g],1,1,()=>{a[g]=null}),G(),e=a[n],e?e.p(o,i):(e=a[n]=l[n](o),e.c()),u(e,1),e.m(t,null))},i(o){r||(u(e),r=!0)},o(o){_(e),r=!1},d(o){o&&d(t),a[n].d()}}}function _t(s){let t,n;return t=new De({props:{$$slots:{"header-subtext":[mt],default:[ot]},$$scope:{ctx:s}}}),{c(){y(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,[r]){const l={};r&271&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function pt(s,t,n){let e,r,l,a,f;const o=Me();ce(s,o,m=>n(6,a=m));const i=ze();ce(s,i,m=>n(1,l=m));const g=()=>je(r);return s.$$.update=()=>{var m;s.$$.dirty&65&&a.page==="signals"&&a.identifier!=null&&f!=a.identifier&&n(0,f=a.identifier),s.$$.dirty&3&&n(3,e=(m=l.data)==null?void 0:m.find(R=>R.name===f)),s.$$.dirty&1&&n(2,r=f!=null?Ge(f):"")},[f,l,r,e,o,i,a,g]}class St extends ke{constructor(t){super(),we(this,t,pt,_t,re,{})}}export{St as component}; diff --git a/lilac/web/_app/version.json b/lilac/web/_app/version.json index c2a0ff93ffe5df9e96227c44f513ef874e4278b8..1df4a7f49cfd0eb06f2f20bc5f19e5c76102f89e 100644 --- a/lilac/web/_app/version.json +++ b/lilac/web/_app/version.json @@ -1 +1 @@ -{"version":"1692113064061"} \ No newline at end of file +{"version":"1692114476171"} \ No newline at end of file diff --git a/lilac/web/concepts.html b/lilac/web/concepts.html index 8691726275d75343cf7e2d74a435dc3ba53621f1..7c3f0a8f10f5758b31abe7516ce8dbcc3443cd42 100644 --- a/lilac/web/concepts.html +++ b/lilac/web/concepts.html @@ -5,17 +5,17 @@ - + - + - +